← 總目錄 / Contents

Chapter 06 · Mobility Management

流動性管理|English + 中文

根據第 06 章講義整理;英文概念後附中文解說。 / Based on lecture 06; English explanations are paired with Chinese.

重點筆記 / Core concepts

Location management and handoff

Location management tracks where a device can be reached; handoff transfers an active connection between access points or cells. A location area (LA) contains several cells: updates occur when crossing its boundary and paging searches within the LA. Larger LA generally means fewer updates but more paging.

位置管理追蹤裝置以便聯絡;切換把現有連線轉移至另一基地站或存取點。位置區 LA 包含多個細胞:跨越邊界時更新,來電時在 LA 內尋呼。較大的 LA 一般更新較少,但尋呼範圍較大。

Update policies

Time-based updates after each interval; movement-based after a specified number of cell crossings; distance-based checks distance from the last updated location, using the metric defined by the question. Hybrid rules trigger when either condition is met; reset relevant timer and counters as specified.

時間式按週期更新;移動次數式在跨越指定數目細胞後更新;距離式檢查距上次更新位置的距離,距離度量須依題目定義。混合規則可在任一門檻達到時觸發;按題目規定重設計時器及計數器。

Paging and HLR/VLR

Parallel paging searches all candidate cells at once: low delay but high signaling. Sequential paging checks cells one by one: lower expected paging messages, higher potential delay; decreasing probability order minimizes expected number under equal costs. HLR holds home subscriber information; VLR maintains local visiting information. Two-tier lookups may incur signaling, database bottlenecks and long-distance traffic.

平行尋呼同時搜尋所有候選細胞:延遲低但訊號開銷高。順序尋呼逐個搜尋:平均訊息數可能較低,但延遲較高;成本相同時,先查高機率細胞可減少期望次數。HLR 儲存歸屬用戶資訊;VLR 儲存訪客的本地資訊。兩層查詢可能帶來訊號流量、資料庫瓶頸和長途通訊。

RSS and hysteresis

Compare the current BS RSS to the strongest eligible new BS at each time. For hysteresis H, switch when new RSS > current RSS + H (or ≥ if the question defines equality that way). With a threshold T, also require current RSS < T under the stated rule. After switching, use the new current BS for the next comparison. Hysteresis suppresses ping-pong.

每個時間點比較目前基地站與最強合資格新基地站。遲滯 H 規則可寫為新 RSS > 目前 RSS + H(若題目包括等號則用 ≥)。加入門檻 T 時,按指定規則另要求目前 RSS < T。切換後下一次比較須以新基地站為目前基地站。遲滯可減少乒乓式切換。

Mobile IP

A mobile node keeps its home address and obtains a care-of address (CoA). Agent discovery identifies attachment; registration creates a home-address→CoA binding at the home agent (HA). A correspondent sends to the home address; HA tunnels the packet to CoA; the foreign agent or mobile node decapsulates it. Depending on policy, outbound traffic may go directly or use reverse tunneling. Route optimization can inform a correspondent of CoA, with authenticated binding updates.

流動節點保留歸屬地址並取得 care-of address(CoA)。代理發現識別所連網絡;註冊在歸屬代理 HA 建立歸屬地址→CoA 對應。通訊對象傳送到歸屬地址,HA 把封包封裝至 CoA,外地代理或流動節點解封裝。外送封包可依政策直接送出或反向隧道傳送。路由優化可把 CoA 告知對方,更新須經驗證。

6.1 Handoff stages and types · Slides 6–16

Handoff typically involves measurement, decision, resource preparation and execution. In hard handoff the old connection is released before the new one is established; in soft handoff the device may communicate with multiple base stations during transition where supported. Intra-system and inter-system handoffs differ in the networks or controllers involved. Resource availability and signaling delay can cause failure.

切換一般包括量度、決策、準備資源及執行。硬切換先釋放舊連線再建立新連線;支援軟切換的系統可在過渡期間與多個基地站通訊。系統內及系統間切換涉及不同網絡或控制器。資源不足及訊號延遲均可能令切換失敗。

6.2 RSS decision rules · Slides 10–11

Strongest RSS alone switches whenever a candidate is stronger, but fluctuating readings may cause ping-pong. A threshold rule delays switching until the current signal falls below T, then chooses a stronger candidate if the specific rule requires it. Hysteresis requires the candidate to beat current RSS by H. A combined rule requires both conditions; follow the exact strict or non-strict inequalities in the question.

最強 RSS 規則只要候選較強就切換,但訊號波動可能造成乒乓現象。門檻規則等待目前訊號低於 T,然後按題目規則選更強候選。遲滯規則要求候選比目前訊號強 H。混合規則需同時符合兩條件;必須依題目處理是否包含等號。

6.3 Location update, paging and databases · Slides 17–28

Without updates, an incoming call may require searching a large coverage area. With LAs, the device reports an LA boundary crossing; on a call, the network finds the recorded LA and pages its cells. The HLR keeps the subscriber record and information to reach its current serving area; a VLR stores visiting subscriber data. Registration, lookup and paging all incur signaling.

若沒有更新,來電可能要搜尋大範圍。有 LA 時,裝置跨越 LA 邊界便報告;來電時網絡查找記錄中的 LA 並尋呼該區細胞。HLR 保存用戶紀錄和到達現時服務區所需資訊;VLR 保存訪客用戶資料。註冊、查詢及尋呼都會產生訊號成本。

6.4 Time-, movement- and distance-based updates · Slides 29–36

Time-based triggers when a timer expires, even if no boundary is crossed. Movement-based counts cell crossings since the last update. Distance-based compares current position with the last updated position under the problem’s stated distance metric; it is not automatically cumulative travel distance. For hybrid policies, record the time, location and counters after every trigger and reset exactly as instructed.

時間式在計時器到期時觸發,即使沒有跨越邊界亦可更新。移動式累計自上次更新後跨越的細胞數。距離式按題目指定的距離定義,比較現在位置與上次更新位置;不一定等於累計行程。混合政策應在每次觸發後記錄時間、位置和計數器,並嚴格按題目重設。

6.5 Paging probabilities and costs · Slides 25–27, 43–50

For n cells with probabilities pᵢ and equal cost c, parallel paging costs nc on a call. Sequential order σ costs cΣk·pσ(k) conditional on a call, assuming paging stops when the device is found. Multiply by call probability q for per-slot paging cost; add unconditional update costs separately. If rates or costs differ, do not blindly apply the equal-cost ordering.

n 個細胞機率為 pᵢ、每次成本相同為 c 時,平行尋呼在來電時成本為 nc。按次序 σ 順序尋呼、找到即停止時,來電條件成本為 cΣk·pσ(k)。乘來電機率 q 才得到每時段尋呼成本;更新成本須另外計算。若成本或速率不同,不能盲目套用等成本排序。

6.6 Markov modelling and LA boundary updates · Slides 44–50

For transition matrix P with Pᵢⱼ=Pr(next=j | current=i), every row sums to 1. Find stationary row vector π using πP=π and sum πᵢ=1. Long-run probability of crossing an LA boundary is ΣᵢΣⱼ πᵢPᵢⱼ over pairs in different LAs; multiply by update cost. Add call probability times the conditional expected paging cost, taking the known LA into account.

轉移矩陣 P 的 Pᵢⱼ=Pr(下一狀態=j|目前=i),每行總和為 1。解 πP=π 及 π 各項總和為 1,得到穩態列向量。跨 LA 邊界的長期機率是不同 LA 所有 (i,j) 的 ΣᵢΣⱼ πᵢPᵢⱼ;乘以更新成本,再加來電機率乘以已知 LA 條件下的期望尋呼成本。

6.7 Agent discovery and registration · Slides 52–60

The mobile node learns whether it is on the home or foreign network from agent advertisements and network information. In the Mobile IPv4 model, it obtains a foreign-agent CoA or a co-located CoA and registers the binding with its HA, possibly through the FA. Registration has a lifetime and must be renewed. A foreign-agent visitor list is relevant when an FA participates; exact fields depend on the model.

流動節點透過代理通告及網絡資訊判斷身處歸屬還是外地網絡。在 Mobile IPv4 模型中,它取得外地代理 CoA 或共址 CoA,並向 HA 註冊對應,過程可經 FA。註冊有有效期限,須適時更新。FA 參與時需要訪客列表,欄位以題目模型為準。

6.8 Tunnel and triangle routing · Slides 61–66

A correspondent addresses the packet to the home address. The HA intercepts and encapsulates it: the inner IP packet remains correspondent→home address, and the outer packet is HA→CoA. The tunnel endpoint removes the outer header. If the mobile sends directly to the correspondent, the asymmetric path through the HA is triangle routing. Authenticated route optimization can allow direct delivery to CoA; reverse tunneling may instead be required by policy.

通訊對象把封包寄到歸屬地址。HA 截取並封裝:內層仍是通訊對象→歸屬地址,外層是 HA→CoA。隧道端點移除外層標頭。若流動節點直接回傳通訊對象,經 HA 的非對稱路徑稱為三角路由。經認證的路由優化可讓對方直接送到 CoA;某些政策則要求反向隧道。

逐頁講義原文 / Slide-by-slide source text

以下為講義英文文字的自動提取,讓你逐頁核對上方中英筆記及搜尋細節;它不是逐頁中文翻譯。圖表、公式排版及部分旋轉文字可能缺失,請以原 PDF 為準。
Automatically extracted English lecture text for checking the bilingual explanations. Figures, formula layout and some rotated text may be missing; consult the original PDF.
講義第 1 頁 / Lecture slide 1
                              Mobility Management
講義第 2 頁 / Lecture slide 2
Outline
      Overview
      Mobility Management in Cellular Network
      Mobility Management in Wireless IP Network
講義第 3 頁 / Lecture slide 3
Why Mobility Management?
   Network needs to track the mobile user
   In wired networks, there is a fixed
   relationship between a device and its
   location
   In wireless networks, a mobile device is free
   to move and thus its network access point
   changes as it moves around the network
   coverage area
       The ID of a mobile device no longer provides
       the location information of the mobile device
       The location of each device has to be
講義第 4 頁 / Lecture slide 4
What is Mobility Management?
    The main objectives
         Location management - determine the location of the
         mobile device at a given time
             Location information is required for setting up connections and
             for message delivery
             As mobile devices power- on, move, or power- off, location
             information needs to be updated at the location databases
             Movement of mobile user creates location uncertainty of the
             device which needs to be handled by the network
         Handoff management - maintain    the connection as the
         mobile device continues to move and change its access
         point to the network
講義第 5 頁 / Lecture slide 5
Outline
      Overview
      Mobility Management in Cellular Network
      Mobility Management in Wireless IP Network
講義第 6 頁 / Lecture slide 6
Handoff Management in Cellular
Networks
  Handoff (handover) process
       The process of transferring an ongoing call from
       one channel connected to the core network to
       another channel;
       During the call, the old traffic channel is
       released and a new traffic channel is assigned
  Reasons for handoff
       Mobile user moves out of the coverage of a BS
       Signal strength deteriorates below a threshold
       Traffic load management
講義第 7 頁 / Lecture slide 7
Handoff Management in Cellular
Networks
   Handoff management maintains a user’s connection
   as the MS continues to move and needs handoff
   Handoff must be completed before signal strength
   drops below a minimum acceptable level; otherwise
   the call will be disconnected and dropped
                          BSC                              BSC
                    Cell Tower                       Cell Tower                        Cell T
                           1                                2
  RSSI: Received Signal Strength Indicator
講義第 8 頁 / Lecture slide 8
Handoff Management in Cellular
Networks
  Four stages
   1.  Handoff initialization
            User or network agent identifies   the need for handoff
   2.  New connection generation
            Network finds resources for the handoff connection and performs
            additional routing operations for the connection establishment
   3.  Data-  flow control
            connection path to the new connection path according to the Network controls the delivery of the data-flow from the former
            agreement upon the service
   4.  Handoff completion
            The unneeded resources of
            the previous connection are
            released
講義第 9 頁 / Lecture slide 9
Handoff Management in Cellular
Networks
     Dissociation and re-association operations
          Dissociation
              MS is dissociated with old BS
              Traffic channel assigned to MS in old BS is released
          Re-  association
              MS is associated with new BS
              Traffic channel in new BS is assigned to MS to
              support the ongoing call
講義第 10 頁 / Lecture slide 10
Handoff Decision Algorithms
   Handoff decision algorithms determine the
   conditions that trigger the decision to initiate
   handoff process
   Handoff decision algorithms are based on received
   signal strength (RSS) or received signal power P at
   current and adjacent cells:
        RSS:  choose BSnew if Pnew > Pold
        RSS with threshold (PT):
                 choose BSnew if Pnew > Pold and Pold < PT
        RSS with hysteresis (PH):
                choose BSnew if Pnew > Pold+PH
        RSS with threshold (PT) and hysteresis (PH):
                choose BSnew if Pnew > Pold+PH and Pold < PT
講義第 11 頁 / Lecture slide 11
Handoff Decision Algorithms
講義第 12 頁 / Lecture slide 12
Types of Handoff Processes:
Hard Handoff vs Soft Handoff
                                               Hard handoff
                                                    “Break before make” connection
  1                                                      MS stays connected to only one
                                                         cell at a time
                                                         MS breaks the connection with the
                                                         old cell before establishing a
                                                         connection with the target cell
  2                                                 Cause momentary call
                                                    disruption during handoffs
                                                    E.g., FDMA and TDMA systems
                                                    use hard handoffs
  3
講義第 13 頁 / Lecture slide 13
Types of Handoff Processes:
Hard Handoff vs Soft Handoff
                                               Soft handoff
                                                    “Make before break” connection
                                                         While performing handoff, MS can
  1                                                      connect to multiple cells at the
                                                         same time and use the combined
                                                         multiple signals.
                                                         It then picks one cell and drop
  2                                                      others
                                                    MS instantaneously switches
                                                    from old to new connection
                                                    without call disruption
  3                                                 E.g., CDMA systems use soft
                                                    handoffs
講義第 14 頁 / Lecture slide 14
Types of Handoff Processes:
Intra-cell vs Inter-cell vs Inter-MSC
    Intra-cell handoff
         MS moves within a cell but across sector
         boundaries or MS experiences intolerable
         signal strength deterioration in the original
         traffic channel
         BS finds a new traffic channel with                                       MSC
         appropriate signal strength in the same cell
         User’s call is transferred to the new
         channel
         MS’s dissociation/re-association involve the
         traffic channels within the same cell
         MSC does not involve in the handoff
講義第 15 頁 / Lecture slide 15
Types of Handoff Processes:
Intra-cell vs Inter-cell vs Inter-MSC
    Inter-cell handoff
         MS moves into an adjacent cell
         User’s call is transferred to a new traffic
                                                                                               MSC
         channel in the target cell
         Handoff occurs between different BSs
         that are managed by the same MSC
         MS’s dissociation/re-association involve
         traffic channels of both BSs, and the
         links between each BS and the same
         MSC, all under coordination of the MSC
講義第 16 頁 / Lecture slide 16
Types of Handoff Processes:
Intra-cell vs Inter-cell vs Inter-MSC
   Inter-MSC handoff
        MS moves cross  the boundary
        of two cells which are managed
        by different MSCs                                                                     MSC
        Handoff occurs between
        different BSs that connect to
        different MSCs                                     MSC
        MS’s dissociation/re-association
        involves traffic channels of both
        BSs, over the links between
        different MSCs and BSs, and
        link between the MSCs
        Both MSCs involve the handoff
講義第 17 頁 / Lecture slide 17
Location Management  in Cellular
Networks
  Location management
      Locate and track MSs
      Discover the current access point of the MS for
      call/message delivery
      Update the location database
  Two main methods for location management
      Without location update
      Location update with location areas (LAs)
講義第 18 頁 / Lecture slide 18
Without Location Update
    Basic idea
        Network does not maintain the current location
        information of the MS
        Whenever a call arrives, the network sends searching
        messages all over the covered areas
        When MS receives the searching message, MS replies
        to the message so that the network finds the location of
        MS
    Advantages
        Simplicity
        No location update cost
    Disadvantages
        High searching cost for incoming calls
講義第 19 頁 / Lecture slide 19
Location Update with    Location
Areas
    Location area (LA)
         The network is divided into a number of non-
         overlapping partitions
         Each partition consists of a certain number of adjacent
         cells called as LA
         LA puts an upper bound on the location uncertainty
                                Cell
                                      LA1                       LA2
講義第 20 頁 / Lecture slide 20
Location Update with    Location
Areas
    Basic idea
        MS reports its current LA information to the system -
        location update
             Either periodically or when MS moves across an LA boundary
        System maintains the LA of the MS via location update
             It knows in which LA the MS locates
             But it does not know precisely in which cell MS locates
        When a new message arrives, the system only searches
        the MS inside the LA
    Advantage
        Since the system limits the searching area to the LA, it
        saves the searching cost
講義第 21 頁 / Lecture slide 21
Location Database
    Location information is maintained in two location
    databases
         home l    ocation register (HLR)  and visitor location
         register (VLR)HLR                            VLR
              A home DB for each MS                        A dynamic DB that contains
              Located at a pre-specified                   temporary info. about the MS
              zone                                         located at the MSC to serve the
              Maintains the user data                      visiting MS
              and current LA of the user                   When an MS moves into a new
              in the “user profile”                        MSC area, the VLR at that MSC
              When the MS moves, the                       will request info. about the MS
              LA info. will be updated                     from the HLR
                                                           If the MS makes a call later, the
                                                           VLR will have the info. needed
                                                           for call setup without having to
講義第 22 頁 / Lecture slide 22
Location Management Operations
   Subscription
        When a user subscribes the service, a record of user profile is
        permanently created in the HLR
   Location update (registration)
        MS sends location update reports to the network when needed (e.g.,
        when it is powered on, or moving into new area)
        Network authenticates the MS
        Network updates the MS’s LA     information in location database
   Call delivery
        Network queries the precise location information of MS when a call
        arrives
        Network requires BSs to broadcast a paging message locally
        Target MS replies so that the network knows the precise cell where
        MS locates
講義第 23 頁 / Lecture slide 23
Location Update Process
   U1: MS enters new LA and sends location update message to BS
   U2: Message forwarded to MSC which launches registration query to VLR
   U3: If MS is known to VLR, VLR updates new location and registration is
         complete; else VLR determines location of MS’ HLR and sends
         location registration message to HLR
   U4: HLR authenticates MS, updates identity of current VLR in the
          database, and acknowledges the location                                        HLR
          registration to the VLR; all or part of                               U5
          user profile may be forwarded to new VLR                                              U4
                                                                                     U6        U3
   U5: HLR sends registration cancellation                                   VLR                    VLR
          to old VLR                                                         MSC                    MSC
   U6: Old VLR deletes the MS’ record and
          acknowledges the cancellation                                                      U2
                                                                       BS         BS BS       BS         BS  BS
                                                                                         U1
講義第 24 頁 / Lecture slide 24
Call Delivery Process
    C1: MS x makes a call request to BS for MS y
    C2: the message is forwarded to MSC and the VLR of x is queried for
          location of y
    C3: If failed, HLR of receiver y is queried
    C4: HLR identifies currently VLR of y and sends route request
          message to VLR
    C5: VLR of y responses to its HLR
    C6: HLR forwards location information to the MSC                                                 C3          VLR
          of x                                                                HLR
                                                                                               C6               MSC
    C7: Calling MSC of x sets up a connection to                                      C5
          receiving MSC of y                                                     C4             C7
    C8: Receiving MSC pages y via all the cells                                   VLR                                     C2
          in the LA in which y is currently located                                 MSC
                                                                                                          BS       BS   BS
    C9: y replies via serving BS; MSC allocates                                      C8
                                                                                                                        C1
          traffic channel in cell to y to complete a                                                                x
          call connection between x and y
                                                                               BS      BS  BS
                                                                                  C9
講義第 25 頁 / Lecture slide 25
Paging Process
   When call arrives, system initiates a search for the target MS
   by requiring the BSs of cells where the MS is likely residing
   to broadcast a paging message locally
   All MSs can hear the paging message but only target MS
   sends a response message   back
   Several BSs in the area might hear the response message.
   They all report to MSC that the MS is in their coverage areas
   together with signal strength measurements
   MSC receives these reports and chooses the one that has
   the strongest signal as the serving BS of the target MS.
講義第 26 頁 / Lecture slide 26
Parallel Paging vs Sequential
Paging
     Parallel paging
          All cells are paged simultaneously
          Reduce delay – good for paging with delay constraint
     Sequential paging
          Cells are paged once a time until the MS is located
              Shortest distance first: System sorts the cells in a shortest-
              distance-first order from MS’s last updated location and pages
              the cells according to the order
              Highest location probability first: System estimates the
              probability that MS may locate in each cell within the LA, sorts
              the cells in a decreasing order of probability, and pages the
              cells according to the order
          Save bandwidth – good for paging without delay
          constraint
講義第 27 頁 / Lecture slide 27
Location Management Cost
    Assume the following network scenario:
          The paging cost is one per cell
          The call arrival probability at t=1,2,3,…, is q (the system needs to locate the MS with
          a probability q at time t=1,2,3,…), q=0.4
          The probability that the MS locates at cell i   is S(i): S(A)=5/41, S(B)=15/41,
          S(C)=12/41, S(D)=9/41
          The cost that MS notifies its location to the network at time t=1,2,3,…, is U = 0.9
    The cost for locating the MS with location update U=0.9
    The cost for locating the MS without location update
          Parallel paging: paging all cells at the same time
               Cost = 4q = 1.6
          Sequential paging: paging cells A,B,C,D in order, one cell at a time
               Cost=[1×S(A)+2 ×S(B)+3 ×S(C)+4 ×S(D)]q = (107/41) ×0.4 = 1.044
          Sequential paging: paging the cell one at a time, the most probable cell first
               Cost= [1×S(B)+2 ×S(C)+3 ×S(D)+4 ×S(A)]q = (86/41) ×0.4 = 0.839
          Any better strategy?
               The last paging operation can be saved for sequential paging schemes
               Cost = [1×S(B)+2 ×S(C)+3 ×S(D)+3 ×S(A)]q = (81/41) ×0.4 = 0.790
    Location update or not is determined by the cost
          Choose the one with lower cost
講義第 28 頁 / Lecture slide 28
Location Management Issues
    There are many factors affecting the performance
    of location management
        Size of location area
        Location update methods
        Location database organization
    Location management needs to
        Minimize the location management cost (database’s
        update cost and query cost)
        Make trade-off between location update cost and call
        delivery cost
講義第 29 頁 / Lecture slide 29
Size of Location Areas
       Big size vs. small size
            Big LA
                  Decrease the location update cost
                  Increase the paging cost
            Small LA
                  Increase the location update cost
                  Decrease the paging cost
講義第 30 頁 / Lecture slide 30
Location Update Methods
   Static LAs vs. dynamic LAs
        Static LAs are fixed areas that may not match mobility
        changes and calling patterns
             e.g., users located at LA boundaries may move back and forth
             between two LAs, which causes frequent location update
             messages
        Dynamic LAs can be determined based on certain criteria
             MS’s location update process can be based on time, user mobility
             level, and user density level, etc.
                  e.g., high user mobility may result large LA
             Combine the use of location updates and paging operations
             Make a trade  -off between them
講義第 31 頁 / Lecture slide 31
Location Update methods
Low user                                                                                                                             High user
mobility                                                                                                                             mobility
                                                     Dynamic LAs
講義第 32 頁 / Lecture slide 32
Location Update Methods
  Dynamic location update schemes
       Time-based : MS performances location update periodically  at a
       constant time interval (using time threshold)
       Distance-based : MS locate update is triggered by moving to a
       location far enough from the previous one (using distance threshold)
       Movement-based: MS locate update is triggered by crossing certain
       number of different cell boundaries (using movement threshold)
             Useful in some cases, e.g., user is moving back and forth between LA
             boundaries
       Time-based                                                                Movement-basedDistance-based
講義第 33 頁 / Lecture slide 33
Dynamic Location Update Schemes -
Example
Consider a cellular network.   The movement history of the user
(in terms of the cell ID), recorded at every minute, is as below:
21, 21, 15, 15, 9, 10, 10, 10, 16, 15, 21, 21, 21, 20, 26, 26, 27,
27, 21, 22, 16, 16, 16, 16, 21, 21, 22, 21, 21, 16, 16
                                               06
                                         05         12
                                    04         11         18
                              03         10         17         24
                         02         09         16         23         30
                   01         08         15         22         29          36
                         07         14         21         28         35
                              13         20         27         34
                                    19         26         33
                                         25         32
                                               31
講義第 34 頁 / Lecture slide 34
Dynamic Location Update Schemes -
Example
The user starts the location update at cell 21. When the time-based location
update scheme is used (T = 4minutes), the location updates will occur at the
following cells:
                                                    06
                                              05          12
                                        04          11          18
                                  03          10          17          24
                           02           09          16          23          30
                     01           08          15          22          29          36
                           07           14          21          28          35
                                  13          20          27          34
                                        19          26          33
                                              25          32
                                                    31
      21, 21, 15, 15, 9, 10, 10, 10, 16, 15, 21, 21, 21, 20, 26, 26, 27, 27,
      21, 22, 16, 16, 16, 16, 21, 21, 22, 21, 21, 16, 16
講義第 35 頁 / Lecture slide 35
Dynamic Location Update Schemes -
Example
The user starts the location update at cell 21.  When the distance-based
location update scheme is used (D = 2cells), the location updates will occur
at the following cells:
                                                   06
                                             05          12
                                       04          11          18
                                 03          10          17          24
                           02          09          16          23          30
                     01          08          15          22          29          36
                           07          14          21          28          35
                                 13          20          27          34
                                       19          26          33
                                             25          32
                                                   31
   21, 21, 15, 15, 9, 10, 10, 10, 16, 15, 21, 21, 21, 20, 26, 26, 27, 27, 21,
   22, 16, 16, 16, 16, 21, 21, 22, 21, 21, 16, 16
講義第 36 頁 / Lecture slide 36
Dynamic Location Update Schemes -
Example
The user starts the location update at cell 21.  When the movement-based
location update scheme is used (M = 3cells), the location updates will occur
at the following cells:
                                                   06
                                             05         12
                                       04          11         18
                                 03          10         17          24
                           02          09          16         23          30
                     01          08          15         22          29          36
                           07          14          21         28          35
                                 13          20         27          34
                                       19          26         33
                                             25         32
                                                   31
   21, 21, 15, 15, 9, 10, 10, 10, 16, 15, 21, 21, 21, 20, 26, 26, 27, 27, 21,
   22, 16, 16, 16, 16, 21, 21, 22, 21, 21, 16, 16
講義第 37 頁 / Lecture slide 37
   Location Database Organization
       Location information should be organized to reduce
       query cost and update cost
       Drawback of HLR/VLR
            Assignment of HLR to an MS is permanent
                User may permanently move to a new place but still
                has to contact the previous HLR
                e.g., the cost will be very high if MS is moved to
                Europe while its HLR is in Hong Kong
            Locality of mobility is not taken advantage of
                User tends to move around locally
                The cost will also be very high if MS is currently
                located far away from its HLR, e.g., if the MS is
                roaming in Europe while its HLR is in Hong Kong
講義第 38 頁 / Lecture slide 38
   Location Database Organization
        Enhanced schemes
             Schemes used to minimize HLR query cost for
             call delivery
                  Per-user location caching
                  User profile replication
             Schemes used to minimize HLR update cost for
             location update
                  Pointer forwarding
                  Local anchoring
講義第 39 頁 / Lecture slide 39
    Location Database Organization
                                                                                                             VLRc VLRx
                                                                                   HLRx
        Per-user location caching                                                                           MSC1
              Every time user x is called, x’s VLR is
              cached at the VLR of the MSC for caller c                               VLRx
                                                                                       MSC2
              Any subsequent call to x originated                                                       BS           BSBS
             from that MSC can reuse this information                                                             c
             as long as x does not move to a new LA                                BS         BS
                                                                                             BS
                   No need to contact user x’s HLR again                         x
        Problem: how to deal with the invalid cache?
              Eager caching - Whenever a user moves to a new LA, all cache
              entries for this user’s VLR are updated
                   Location update cost increases if a user moves around frequently
              Lazy caching - Cache update is not performed; when called, visit
              the cached VLR first; if hit, done; in case of a miss, contact the
              HLR
                   There is an additional cost when missed since the cached VLR must be
                   visited first
講義第 40 頁 / Lecture slide 40
    Location Database Organization
       User profile replication
            Observation
                 Each user usually communicates frequently with a small number
                 of users
            How to make use of this observation?
                 Replicate these frequently called users’ user profiles at selected
                 VLRs in advance
                 When a call is initiated from a certain LA, the corresponding
                 MSC determines if a replication of the called MS’s user profile is
                 available locally
                      If available, no HLR query is needed
                 When the MS moves to another LA, the network updates all
                 replications of the MS’s user profile
            The cost of querying the HLR can be reduced, but the
            overhead for location updates will be higher
講義第 41 頁 / Lecture slide 41
    Location Database Organization
       Pointer forwarding
            Each time an MS moves to a new LA, a forwarding pointer is set up
            from its previous VLR to the new VLR
            Calls to the MS will first query the HLR to determine the first VLR
            and then follow the chain to reach the current VLR
            The length of the pointer chain can be limited to a maximum value
            K to reduce the delay in locating the MS
            When the length of the pointer chain reaches K, additional
            forwarding is not allowed and the location change is reported to the
            HLR
            This method can reduce the cost of
             updating the HLR, but may cause                                HLR
             longer searching delay                              MSC                                      MSC
                                                          VLR                                     VLR          LA 4
                                                                LA 1
                                                                      VLR           MSC  VLR            MSC
講義第 42 頁 / Lecture slide 42
    Location Database Organization
        Local anchoring
              A VLR close to MS is selected as the local anchor
              When MS moves to a new LA,    MS will perform location update to the
              local anchor, not the HLR of the MS
              Local anchor for MS will not change until a call request to MS arrives
              When a new call arrives, the VLR serving the user becomes the new
              local anchor and a location update will be carried out to the HLR
              This scheme can avoid frequent updates to HLR
              The drawback is that when the user keeps
              moving constantly without
              receiving any call, the updates                                   HLR
              to the local anchor may                           Local Anchor                           VLR
              become useless                                   VLR               MSC                               MSC
                                                                     LA 1                                    LA 4
                                                                          VLR               MSCVLR                          MSC
                                                                                LA 2                   LA 3
講義第 43 頁 / Lecture slide 43
Location Management Cost
       A cellular network consists of n cells C1, C2, .., Cn.
       A person (MS) may stay in a cell or move to another cell
       The network tracks the location of the MS at t, t+1, t+2,
   …, using the location of BS in (C1, C2, .., Cn)
       The transition probability is known
           P(               iCj  C|)1≤  ,i  ≤jn
      How to calculate the stable
      probability of the MS’ location
      in each cell
               S  (    iC)      1 ≤  i≤    n
講義第 44 頁 / Lecture slide 44
Markov Chain Model
      System states: the location of the MS
      Markov process: the next system state does not depend
      on the history state, but only depends on current state
      Discrete time Markov process: system state changes at
      time t,  t+1, t+2,…
      State transition probability P(next state | current state):
      the probability that the system state will change from the
      current state to the next state
      State stable probability: the probability that the system will
      be at a certain state that is independent of time
講義第 45 頁 / Lecture slide 45
Simple Example: Two Cells Case
     A cellular network has two cells A and B
     An MS may stay in a cell or move to another cell
     The network tracks the location of the MS at t, t+1, t+2, …, using the
     location of BS in cells A and B
     The state transitions are represented in the state transition diagram
     with state transition probabilities P(A|A), P(B|A), P(A|B), P(B|B)
                                        P(B|A)                  P(B|B)
              P(A|A)
                                                                                                                A
                          A                              B
                                                                                                    B
                                        P(A|B)        State transition graph
     What are the state stable probabilities S(A) and S(B)?
講義第 46 頁 / Lecture slide 46
Solution
     We have the following equations:                                  Suppose that
     S   (A)   =  S ( A)  P(  A  | A)  +  S (B)P(     A  |B)            P(A|A) = 0.4,   P(B|A) = 0.6
     S   (B)   =  S(  A)  P(  B  | A)  +  S (B)P(B       |B)            P(A|B) = 0.3,   P(B|B) = 0.7
     
                      S(  A)   + S(  B)   = 1
     
                                                                       The stable probabilities:
     We can compute that:
      S  ( A)   =           P(  A  |B)                                      S   (A)   =       0.3       =  1
                                                                            
                   P(   A  |B)   +  P(B    | A)                                          0.3   +  0.6      3
                            P(B    | A)                                     S   (B)   =      0.6        =  2
      S  (B)    =                                                                         0.3   +  0.6      3
                   P(   A | B)   +  P(B    | A)                             
      
講義第 47 頁 / Lecture slide 47
Another Example: Four Cells Case
     A cellular network has four cells A, B, C, D.
     An MS may stay in a cell or move to another cell
     The network tracks the location of the MS at t, t+1, t+2,
 …, using the location of BS in Cells A, B, C, D
     The state transition probability is known
                                                                                            A
         P(    ij| )     i  ∈,                   Dj{A,B,C,}
                                                                                 B                     D
     How to calculate the state stable
                                                                                            C
    probability of the person in each cell
          S  (i)          i∈{            DA,B,C,}
講義第 48 頁 / Lecture slide 48
Solution
    We have the following equations:
      S(  A) =  S (A)  P( A  |A)  + S(B)P(     A | B) +  S(C)P(    A  |C)  + S(D)P(     A | D)
      S(B)   =  S( A)  P(B   |A)  + S(B)P(B      | B) +  S(C)P(B      |C)  + S(D)P(B      | D)
     S (C)   = S(  A)P(C    | A) +  S(B)P(C      |B)  + S(C)P(C      |C)  +  S(D)P(C      | D)
     
     S (D)   =  S( A)P(D     |A)  + S(B)P(D      | B) +  S(C)P(D      |C)  +  S (D)  P(D   | D)
                               S (A)  + S(B)   +  S(C)   +  S(D)   = 1
     
     
     
   We have the matrix equation
                                                                       P( A  |A)     P(B   |A)     P(C   |A)     P(D   | A) 
                                                                       P( A  |B)     P(B   |B)     P(C   |B)     P(D   |B)  
    [S (A),  S(B),  S (C),  S (D)]  = [S  (A), S(B),   S (C), S (D)]                                                        
                                                                       P( A  |C)     P(B   |C)     P(C   |C)     P(D   |C)  
                                                                                                                            
                                                                       P( A  |D)     P(B   |D)     P(C   |D)     P(D   |D)
                                                                                                                            
講義第 49 頁 / Lecture slide 49
Solution
     Suppose the transition probability matrix is
                        0.6      0.1     0.2     0.1   
                         0.1     0.7     0.1     0.1   
          P(    ij|)=                                  
                        0.05     0.2     0.7    0.05
                                                       
                         0.1     0.2     0.1     0.6   
                                                       
     We have the following equations                                                       The stable probabilities
       S  (A)  =  0.6  × S ( A) +  0.1×   S (B)  + 0.05×    S (C)   + 0.1×   S (D)               S(  A)  =   7
                                                                                                            41
        S(  B)  =  0.1×  S ( A)  + 0.7  × S (B)   + 0.2×   S (C)   + 0.2  × S(D)                            15
                                                                                                 S(B)    =
        S  (C)  =  0.2 ×  S( A)  +  0.1×  S (B)   + 0.7  × S (C)   + 0.1×   S (D)                           41
       S  (D)  =  0.1×   S( A)  +  0.1×  S  (B)  + 0.05   × S(C   )+  0.6×   S (D)                          12
                                                                                                 S  (C)  =  41
                         S(  A) +  S(B)   +  S (C)  +  S (D)   = 1                               
                                                                                                 S(D)    =   7
                                                                                                             41
                                                                                                  
講義第 50 頁 / Lecture slide 50
Location Management Cost
    Assume the following network scenario:
          The paging cost is one per cell
          The call arrival probability at t=1,2,3,…, is q (the system needs to locate the MS with
          a probability q at time t=1,2,3,…), q=0.4
          The probability that the MS locates at cell i is S(i): S(A)=5/41, S(B)=15/41,
          S(C)=12/41, S(D)=9/41
          The cost that MS notifies its location to the network at time t=1,2,3,…, is U = 0.9
    The cost for locating the MS without location update
          Parallel paging: paging all cells at the same time
               Cost = 4q = 1.6
          Sequential paging: paging cells A,B,C,D in order, one at a time
               Cost=[1×S(A)+2 ×S(B)+3 ×S(C)+4 ×S(D)]q = (107/41) ×0.4 = 1.044
          Sequential paging: paging the cell one at a time, the most probable cell first
               Cost= [1×S(B)+2 ×S(C)+3 ×S(D)+4 ×S(A)]q = (86/41) ×0.4 = 0.839
          Any better strategy?
               The last paging operation can be saved for sequential paging schemes
               Cost = ? [1×S(B)+2 ×S(C)+3 ×S(D)+3 ×S(A)]q = (81/41) ×0.4 = 0.790
    The cost for locating the MS with location update U=0.9
    Location update or not is determined by the cost
          Choose the one with lower cost
講義第 51 頁 / Lecture slide 51
Outline
      Overview
      Mobility Management in Cellular Network
      Mobility Management in Wireless IP Network
講義第 52 頁 / Lecture slide 52
Mobile IP
   IP stands for Internet protocol
        A network layer protocol for Internet
        IP assumes end host is in fixed physical location and IP
        address is tied to end host
             Each IP address has network part and host part (network id +
             host id)
        IP addresses enable IP routing algorithms to send
        packets to the correct network
             packetIntermediate routers look at network id when forwarding the
   What happens if a host moves among networks?
        A mobile host (MH) cannot change IP address when it
        moves to a new network
        Without  specific  support,  message  delivery  to  MH  is
        impossible when MH is away from its dedicated network
        The solution is using mobile IP
講義第 53 頁 / Lecture slide 53
Mobile IP
   Mobile IP was developed as a means for transparently
   dealing with mobility of MHs
       Allow packets to be routed to   MHs by using their
       permanent addresses although the hosts may be
       connected to any assess point
       Enable MHs to move between networks seamlessly
       without interrupting the process as packets are being
       sent
       Require no changes to software of non-     MHs/routers
       Require no changes to IP address or IP address format
       Require additional    infrastructure components
講義第 54 頁 / Lecture slide 54
Mobile IP Architecture
     Mobile host (MH)
          A mobile host (MH) may change its access point from one network
          to another without changing its IP address.
     Home address
          When a MH has been registered at the home network, it has a
          permanent IP address called its home address
     Home network
          The network where the MH has registered
     Foreign network
          The network where the MH currently accesses the network
     Care-of-   address (COA)
          When a MH locates at the foreign network, it has got a temporary
          IP address   called care-of-address, which identifies the MH’s current
          location in the foreign network
講義第 55 頁 / Lecture slide 55
Mobile IP Architecture
     Home agent (HA)
          A router located at home network of MH
          With additional functionality
                Advertise itself periodically
                Bind MH’s home address   with its COA
                Forward packets to foreign network when MH      is away
                Encapsulate messages that are delivered to MH
     Foreign agent (FA)
          Another router located at the foreign network for MH
          With enhanced functionality
                Advertise itself periodically
                When MH is away from HA, it uses FA to send/receive data to/from HA
                Forward MH’s registration request
                Decapsulate messages that are  delivered to MH
     Correspondent host (CH)
          A CH, being stationary or mobile, can send packets to MH
講義第 56 頁 / Lecture slide 56
Mobile IP Architecture
              Mobile Host                                                                        Home Network
                                                                  Home Agent
                  Home Address
                  (Will never change)
                                                                                                                    Correspondent Host
                                                             Foreign Agent
                  In Foreign Network,
                  MH     acquires  a
                  Care-O         f-A   ddress
                                 Foreign Network
講義第 57 頁 / Lecture slide 57
Location Management in Mobile IP
     Agent Discovery
     Registration
     Data Delivery
講義第 58 頁 / Lecture slide 58
Agent Discovery
   MH uses discovery procedure to identify their     HA
   & FA
        MH must determine if it is attached to its home
        network or a foreign network
             MH listens for the periodical ICMP router advertisement
             messages from both HA and FA
             MH can also issue an ICMP router solicitation message if it
             needs advertisement immediately
             MH compares network ID of the router's IP address with the
             network ID of MH’s IP address
                  The same network ID, MH stays at home network
                  Different network IDs, MH locates at a foreign network
        If MH is moved to another foreign network, it   needs to
        obtain a new COA from FA
講義第 59 頁 / Lecture slide 59
Registration
   MH must register when
        A MH enters a new network area
        The timer for registration is expired
   Registration includes:
        MH registers itself with the FA and gets a COA
        MH registers itself with its HA,     informing its HA of the
        current COA. This is done by FA on behalf of the MH
        MH renews registration if it has expired
   Deregistration
        MH deregisters itself when it returns to home network
講義第 60 頁 / Lecture slide 60
Registration Procedure
        MH uses a registration procedure to inform HA of its COA
              MH sends registration request to the FA  with its Home Address
              FA forwards the registration request to HA
              If HA  accepts registration, it updates its mobility binding table associating
              the MH’s home address with its COA
              HA informs the FA that the registration is accepted
              FA updates its visitor list table that maps the MH’s home address to its
              MAC address and HA address
              FA informs the MH that the registration is accepted
       MH
                                                       FA                                            HA
                                Home          HA Address     MAC                               Home         COA
                                Address                      Address                           Address
講義第 61 頁 / Lecture slide 61
Data Delivery
   Tunneling -- to create a tunnel between the home network
   and foreign network and to send encapsulated data to that
   MH in the   tunnel
        When a CH sends packets to the MH   , all packets’ destination
        address is the MH   ’s home address, thus, all packets are sent to its
        home network
        Upon reception of the packet, the HA recognizes the destination
        address of the packet is belonging to a MH. Then,
             HA looks up the COA of the MH   in its mobility binding table
             The packet is wrapped in a new packet with the COA as the new
             packet’s destination address – referred to as encapsulation
             HA forwards the packet to the foreign network that has the COA
        FA recognizes the COA, unwraps the packet (referred to as de-
        capsulation) and sends it to the MH using its original home address
講義第 62 頁 / Lecture slide 62
Data Delivery
                                                   Encapsulated IP packet
                            HA                  Src     Dest
                                         2       HA     COA           Original IP Pkt                                                     MH
                                                   Header
     home network                                                                               3                               receiver
                                                     Internet
     Original IP packet                                                                                        FA         foreign
 Src     Dest                                                                                                             network
   CH     MH           Payload
     Header
                                 1                                                                            Src     Dest
        CH                                                                                                      CH     MH           Payload
                                                                                                                  Header
                                                                                                         Decapsulated original IP packet
                sender
講義第 63 頁 / Lecture slide 63
Routing Inefficiency
     Tunneling results in routing
     inefficiency
          CH sends packet to home
          address
          HA intercepts IP packets sent
          to MH   ’s home address
          Packet encapsulated in new IP
          packet is forwarded to COA via
          tunneling and de-capsulated                                     Triangle routing
          upon receipt
     Triangle routing
          Waste of network resources
          HA is a bottleneck
     Double crossing
          The packet crosses the
          internet twice                                                 Double crossing
講義第 64 頁 / Lecture slide 64
Routing Optimization
      Route optimization- let the MH    inform the CH of its COA, so
      that the CH can send the packet directly to the MH
           When the HA receives packets for the MH that is not at home, the
           HA sends binding update messages to the CH
                 Binding update message has the current  COA for MH
                 CH caches COA and future packets are sent directly to COA
           When the MH moves to new FA, cached COA in CH becomes stale
                 Packets sent to the old FA may be dropped if not re-transmitted to the
                 new address
                 The binding can become stale, then the CH sends a binding request
                 message to the HA of the MH                                                   lost
         CH         FA       MH                    CH         FA       MH                CH    x    FA       MH
              Binding                                                                 Binding Binding
              Update                                                                  Request Update
               HA                                        HA                                    HA
           Sending the first packet                  Sending subsequent packets            Sending the first packet
           to a mobile host                          to a mobile host                      to a mobile host
講義第 65 頁 / Lecture slide 65
Handoff Management in Mobile IP
      When the MH moves to a new FA2
            FAs periodically transmit advertisement messages
            MH registers to the new FA2
            FA2 sends the mobility binding to HA
            FA2 notifies the old FA1 to update the location of MH
            FA1 sends an ACK to FA2
            FA1 forwards any packets for the MH to FA2                                       HA
            FA2 sends handoff-  completion to MH                                             Register to HA
                                                                                           Notify old FA
                                                                                      FA2   Send ACK  FA1
                                                                                          Forward packets
                                                                      Register to new FA Handoff complete
                                                                                       MH              MH
講義第 66 頁 / Lecture slide 66
Handoff Management in Mobile IP
     When CH sends packet to old FA
          If the old FA knows MH’s current FA                                      CH                    FA1        MH
                the packet is forwarded to the current FA                                     Binding
                                                                                  Binding     Warning
                the old FA sends binding warning                                  Update
                message to HA                                                                            FA2        MH
                                                                                          HA
                HA sends the binding update message to                                   Sending the first packet
                                                                                         after a mobile host move
                CH
                future packet is sent to new FA directly
          If the old FA does not know MH’s current FA
                the packet is forwarded to the HA                                   CH                    FA1        MH
                the HA forwards the packet to current FA                           Binding
                                                                                   Update
                HA sends the binding update message to                                                    FA2        MH
                CH                                                                         HA
                                                                                          Tunneling the packet when
                future packet is sent to new FA directly                                  The cache entry has been dropped
講義第 67 頁 / Lecture slide 67
Summary
      Mobility management includes both handoff
      management and location management
      Mobility management in cellular networks
      Mobility management in mobile IP