新編練習,題型參考提供的可見試卷頁面;非官方試題。建議先限時 90 分鐘作答,再展開答案自行評分。 / Original practice inspired by visible past-paper questions; not an official paper. Try under a 90-minute limit before checking solutions.
1 · MANET routing / 自組網路路由
Compare DSDV, DSR and AODV in route discovery, route storage and overhead. Explain the broadcast storm problem and give two mitigations. / 比較 DSDV、DSR、AODV 的路徑發現、儲存和開銷;解釋廣播風暴並提出兩種改善方法。
顯示參考答案 / Show solution
DSDV is proactive and keeps next-hop tables, with periodic updates. DSR is reactive, uses RREQ/RREP and carries a full source route; AODV is reactive and maintains next-hop entries with sequence numbers. Flooding produces redundant retransmissions, contention and collisions; suppress duplicates and select fewer relays. / DSDV 主動維護下一跳表及定期更新;DSR 按需搜尋並在封包攜帶完整路徑;AODV 按需搜尋,以序號及下一跳表轉發。泛洪造成冗餘重傳、競爭及碰撞;可抑制重複並減少轉發節點。
2 · 802.11 / 無線區域網
Describe infrastructure and ad hoc modes. Explain DCF, SIFS vs DIFS, RTS/CTS and one power-saving mechanism. / 說明基建及 ad hoc 模式、DCF、SIFS 與 DIFS、RTS/CTS 和一種省電機制。
顯示參考答案 / Show solution
Infrastructure stations associate with an AP; IBSS stations communicate without an AP. DCF uses carrier sensing, backoff and ACK. SIFS allows immediate ACK/CTS before DIFS contention. RTS/CTS helps reserve time around a receiver; AP buffers frames while a station sleeps and wakes for beacons. / 基建站台連接 AP;IBSS 無須 AP。DCF 使用偵聽、退避及 ACK;SIFS 令 ACK/CTS 優先;RTS/CTS 有助接收端附近預留時間;AP 在站台睡眠時暫存資料。
3 · Handoff / 切換計算
Initially connected to A; H=5 dB. Switch only if another BS is strictly more than H dB stronger. RSS: t0 A −50 B −60 C −65; t1 A −65 B −58 C −57; t2 A −53 B −61 C −59; t3 A −64 B −54 C −60. Identify the current BS and handoffs at every step. / 初始連接 A;只有新基地站嚴格強於目前基地站超過 5 dB 才切換。列出每時刻的基地站及切換。
顯示參考答案 / Show solution
t0 A. t1 C is strongest: −57−(−65)=8>5, switch A→C. t2 A−C=6>5, switch C→A. t3 B−A=10>5, switch A→B. Sequence A,C,A,B; handoffs at t1,t2,t3. / t0 為 A;t1 差 8,A→C;t2 差 6,C→A;t3 差 10,A→B。
4 · Paging / 尋呼成本
Cells A,B,C,D have probabilities .1,.4,.3,.2, paging cost 1 per cell, call probability q=.5. Compute the cost conditional on a call for parallel paging and optimal sequential paging, then the unconditional expected paging cost per slot for each. / 四細胞機率依次為 .1、.4、.3、.2;每細胞成本 1,來電機率 .5。計算來電條件下的平行與最佳順序尋呼成本,以及每時段無條件期望成本。
顯示參考答案 / Show solution
Parallel conditional cost = 4; per slot = .5×4=2. Optimal order B,C,D,A: conditional cost = 1(.4)+2(.3)+3(.2)+4(.1)=2; per slot = .5×2=1. No update cost is specified. / 平行來電成本 4,每時段 2;最佳順序 B,C,D,A,來電成本 2,每時段 1;題目沒有指定更新成本。
5 · Markov and location areas / 馬可夫與位置區
P=[[.8,.2],[.4,.6]], rows A,B; LA1={A}, LA2={B}. Calls occur with probability .5 per slot, paging cost 1, each LA crossing update costs .6. Find stationary distribution and long-run average total update plus paging cost per slot. / 兩個位置區各含一個細胞;來電機率 .5,每次尋呼成本 1,跨 LA 更新成本 .6。求穩態分布及每時段平均更新加尋呼成本。
顯示參考答案 / Show solution
Balance .2πA=.4πB and πA+πB=1: π=(2/3,1/3). Crossing probability=(2/3)(.2)+(1/3)(.4)=4/15. Update cost=(4/15)(.6)=.16. One cell per LA: paging cost=.5×1=.5. Total=.66 per slot. Assumes update before paging and independent call arrival. / 穩態為 (2/3,1/3);跨區機率 4/15,更新成本 .16;每 LA 一個細胞,尋呼成本 .5;總成本 .66。假設先更新再尋呼及來電獨立。
6 · TOA / 到達時間定位
Three synchronized anchors at (0,0),(6,0),(0,8) m measure ranges 5,5,5 m after correcting clocks. Find the location. If the transmitting clock is 0.01 μs fast and shows 0.002 μs at transmission, what is the propagation time when the receiver shows 1.000 μs? / 三個同步參考站距離分別為 5、5、5 米,求位置。若發送時鐘快 0.01 微秒,顯示發送時間 0.002 微秒,而接收端顯示 1.000 微秒,求傳播時間。
顯示參考答案 / Show solution
x²+y²=25; (x−6)²+y²=25 → x=3. x²+(y−8)²=25 → y=4. Position (3,4). Correct send time = .002−.01=−.008 μs; travel time =1−(−.008)=1.008 μs. / 相減得 x=3、y=4;修正發送時間 −.008 微秒,傳播時間 1.008 微秒。
7 · Mobile IP / 流動 IP
M home address 10.0.0.8; HA 10.0.0.1; CoA 192.0.2.7; correspondent S 203.0.113.12. Explain inbound inner and outer IP headers and outbound routing assuming direct delivery and no reverse-tunnel policy. / 寫出傳入封包的內外層來源和目的地址,並說明假設直接回送且沒有反向隧道政策時的外送路徑。
顯示參考答案 / Show solution
S sends inner src 203.0.113.12 → dst 10.0.0.8. HA tunnels with outer src 10.0.0.1 → dst 192.0.2.7; inner header remains S→M home. At CoA decapsulation delivers to M. Direct outbound is src 10.0.0.8 → dst 203.0.113.12, subject to network policy. / 內層 S→M 歸屬地址;外層 HA→CoA;解封裝後交予 M。直接回送為 M 歸屬地址→S,實際仍受網絡政策限制。
8 · Security / 安全
Explain the roles of encryption, signatures and certificates. Why can a VPN not protect against every threat to a stolen device? / 解釋加密、簽署、證書的角色,以及 VPN 為何無法防止被偷裝置面對的所有威脅。
顯示參考答案 / Show solution
Encryption protects confidentiality; digital signatures provide integrity and signer authentication with an authenticated public key; a certificate binds identity to that key. A VPN protects a tunnel but a stolen unlocked or compromised endpoint can expose local data and credentials. / 加密保護機密;簽署配合可信公鑰提供完整性與簽署者認證;證書綁定身份及公鑰。VPN 保護隧道,但已解鎖或被攻陷裝置仍可能洩露本機資料與憑證。