逐頁講義原文 / 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