本章路線圖 / Learning path
- 1. What must a network know?|網絡需要知道甚麼?
- 2. Cells and location areas|細胞和位置區
- 3. Handoff with RSS|用接收訊號強度進行切換
- 4. Threshold and hysteresis together|同時使用門檻與遲滯
- 5. Three update rules|三種位置更新規則
- 6. Hybrid update: maintain a ledger|混合更新:建立記錄表
- 7. Parallel and sequential paging|平行與順序尋呼
- 8. Markov chains and stationary probabilities|馬可夫鏈及穩態機率
- 9. Mobile IP from beginning to end|Mobile IP 由頭到尾
- 10. Triangle routing|三角路由
開啟補充筆記、計算與自測 / Open additional notes, calculations and quiz →
1. What must a network know?|網絡需要知道甚麼?
A network needs to find a mobile device when someone calls or sends data. Location management keeps sufficiently recent information about its area. Handoff management transfers an ongoing connection as the device moves. Finding an idle device and maintaining an active connection are related but different tasks.
當有人致電或傳送資料時,網絡需要找到流動裝置。位置管理保存足夠新的區域資訊;切換管理在裝置移動時轉移現有連線。尋找閒置裝置和維持活動連線相關,但不是同一工作。
Location update changes a database record; handoff changes the serving connection. / 位置更新改變資料庫紀錄;切換改變正在服務的連線。
2. Cells and location areas|細胞和位置區
A cell is a coverage area served by a base station in the simplified model. A location area (LA) contains one or more cells. A device reports when it crosses an LA boundary; the network stores the LA, not necessarily the exact cell. When a call arrives, it pages candidate cells in that LA.
在簡化模型中,細胞是基地站服務的覆蓋區域;位置區 LA 包含一個或多個細胞。裝置跨越 LA 邊界時報告;網絡保存 LA,但未必知道確切細胞。來電時網絡尋呼該 LA 的候選細胞。
Large LA: fewer boundary updates but potentially more cells to page. Small LA: more updates but a smaller search area. The best size depends on mobility and call patterns. / 大 LA:邊界更新較少,但可能要尋呼更多細胞;小 LA:更新較多,但搜尋範圍較小。最佳大小取決於移動及來電模式。
3. Handoff with RSS|用接收訊號強度進行切換
RSS in dBm is usually negative; −50 dBm is stronger than −60 dBm. The simplest rule picks the strongest base station, but rapid fluctuations may cause repeated switching. Hysteresis H requires a candidate to exceed the current base station by H dB, reducing unnecessary ping-pong.
RSS 以 dBm 表示時通常為負數;−50 dBm 比 −60 dBm 強。最簡單規則選最強基地站,但快速波動可能造成反覆切換。遲滯 H 要求候選基地站比目前基地站強 H dB,減少不必要的乒乓切換。
Current A=−65, candidate B=−58: improvement=7 dB. With a strictly-greater-than 5 dB rule, 7>5 so switch. After switching, B is the current station at the next sample. / 目前 A=−65、候選 B=−58,強 7 dB;若規則要求嚴格超過 5 dB,就切換。下一次比較時 B 已成為目前基地站。
4. Threshold and hysteresis together|同時使用門檻與遲滯
A common combined rule switches only when current RSS is below threshold T AND the candidate is more than H stronger. Evaluate both conditions separately. Then choose the strongest eligible candidate. The paper may specify different inequality conventions; follow its exact wording.
常見混合規則要求目前 RSS 低於門檻 T,並且候選比目前站強超過 H,才切換。應分別檢查兩個條件,再選最強合資格候選。不同試卷可能使用不同等號規則,須依題目原文。
T=−60, H=5; current=−63 and candidate=−57. Since −63<−60 and −57−(−63)=6>5, switch. If current=−59, the threshold condition fails. / T=−60、H=5,目前 −63、候選 −57;兩條件均成立,故切換。若目前是 −59,則門檻條件不成立。
5. Three update rules|三種位置更新規則
Time-based: update when the timer reaches its limit, even with no movement. Movement-based: count cell crossings since the last update. Distance-based: compare the current location with the last reported location using the metric defined in the question; this can differ from total distance travelled.
時間式:計時器到期便更新,即使沒有移動。移動式:累計上次更新後跨越的細胞次數。距離式:使用題目指定的距離度量,比較現時與上次報告的位置;這可能不同於累計行走距離。
Start A, then A→B→A. Movement count is 2; displacement from A is 0 under ordinary geometric distance. The two policies can therefore trigger differently. / 從 A 出發,A→B→A:移動次數為 2;按一般幾何距離,距 A 的位移為 0。因此兩種政策可能有不同觸發結果。
6. Hybrid update: maintain a ledger|混合更新:建立記錄表
When either a timer or movement counter can trigger an update, keep a table with event time, current cell, timer expiry and crossing count. When an update happens, reset the timer and count if the question says both reset. Include timer events between movement events; do not check only at crossings.
當計時器或移動次數任一達標便更新時,應建立記錄表,列出事件時間、目前細胞、計時器到期時間及跨越次數。若題目說兩者均重設,每次更新後便重設。要包括兩次移動之間的計時器事件,不能只在跨邊界時檢查。
Start A at 10:00; T=60 min, M=2. Move A→B 10:20 and B→C 10:40: update at C and reset. Move C→D 11:10; at 11:40 the timer expires, so update at D. / 10:40 在 C 達第二次跨越而更新並重設;11:10 到 D;11:40 計時器到期,在 D 更新。
7. Parallel and sequential paging|平行與順序尋呼
Parallel paging contacts all candidate cells together. With n cells and cost c each, conditional cost given a call is nc. Sequential paging contacts one cell at a time and stops after finding the device. If positions are 1,2,… and corresponding probabilities are p1,p2,…, expected conditional cost is cΣkpk.
平行尋呼同時聯絡所有候選細胞。若有 n 個細胞且每個成本 c,來電條件下的成本是 nc。順序尋呼逐個聯絡,找到裝置即停止。若搜尋次序為 1、2、……,對應機率為 p1、p2、……,來電條件下期望成本為 cΣkpk。
Probabilities A=.4, B=.3, C=.2, D=.1 and equal unit cost: order A,B,C,D gives .4+2(.3)+3(.2)+4(.1)=2. If call probability is .5, unconditional paging cost per slot is .5×2=1. / A、B、C、D 機率分別 .4、.3、.2、.1,順序尋呼期望成本為 2;來電機率 .5 時,每時段無條件成本為 1。
8. Markov chains and stationary probabilities|馬可夫鏈及穩態機率
Pij is the probability of next state j given current state i. Every row must sum to 1. The row vector π is stationary if π=πP and its entries sum to 1. For two states, equating long-run flow A→B and B→A often gives a simple equation.
Pij 是在目前狀態 i 時,下個狀態為 j 的機率。每行總和須為 1。若列向量 π 滿足 π=πP,且各項總和為 1,便是穩態分布。兩狀態時,令 A→B 與 B→A 的長期流量相等,通常可簡化計算。
P=[[.8,.2],[.4,.6]]. Solve .2πA=.4πB and πA+πB=1: πA=2/3, πB=1/3. Boundary-crossing probability is (2/3)(.2)+(1/3)(.4)=4/15. / 解得 πA=2/3、πB=1/3;跨邊界機率為 4/15。
9. Mobile IP from beginning to end|Mobile IP 由頭到尾
A mobile node keeps a home address and obtains a care-of address (CoA) in the foreign network. It registers the home-address→CoA binding with its home agent (HA). A correspondent sends to the home address; HA intercepts and encapsulates the original packet in a new outer IP packet addressed to CoA. The tunnel endpoint decapsulates and delivers it.
流動節點保留歸屬地址,在外地網絡取得 care-of address(CoA),並向歸屬代理 HA 註冊歸屬地址→CoA 對應。通訊對象傳送至歸屬地址;HA 截取後把原封包封裝於新的外層 IP 封包,目的地為 CoA。隧道端點解封裝後交付。
If S=203.0.113.12, home=10.0.0.8, HA=10.0.0.1, CoA=192.0.2.7: inner header S→10.0.0.8; outer header 10.0.0.1→192.0.2.7. / 內層是 S→10.0.0.8;外層是 10.0.0.1→192.0.2.7。
10. Triangle routing|三角路由
If the correspondent sends through HA but the mobile sends replies directly, the two directions follow different paths, potentially wasting distance and latency. Route optimization can provide an authenticated binding to the correspondent so it can tunnel directly to CoA. Network policy may instead require reverse tunneling for outbound packets.
若通訊對象傳入時經 HA,而流動節點回覆時直接送出,兩個方向走不同路徑,可能浪費距離並增加延遲。路由優化可把經認證的對應資料交給通訊對象,讓它直接建立到 CoA 的隧道;某些網絡政策則要求外送封包使用反向隧道。
Do not confuse the inner home address with the outer CoA: encapsulation adds a header rather than replacing the original destination. / 不要混淆內層歸屬地址與外層 CoA:封裝是增加標頭,不是取代原來的目的地址。