Professional Documents
Culture Documents
8.1
Routing
based on IP destination address, network prefix (e.g.
129.13.42) determines physical subnet
change of physical subnet implies change of IP address to
have a topological correct address (standard IP) or needs
special entries in the routing tables
8.2
Transparency
mobile end-systems keep their IP address
continuation of communication after interruption of link
possible
point of connection to the fixed network can be changed
Compatibility
support of the same layer 2 protocols as IP
no changes to current end-systems and routers required
mobile end-systems can communicate with fixed systems
Security
authentication of all registration messages
8.3
Terminology
Mobile Node (MN)
8.4
Example network
HA
MN
router
home network
mobile end-system
Internet
FA
foreign
network
router
(current physical network
for the MN)
CN
end-system
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
router
8.5
MN
home network
Internet
receiver
3
FA
CN
sender
foreign
network
home network
MN
sender
Internet
FA
foreign
network
CN
receiver
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
8.7
Overview
COA
home
network
router
FA
router
HA
MN
foreign
network
Internet
CN
router
home
network
router
HA
router
FA
2.
Internet
3.
MN
4.
foreign
network
1.
CN
router
8.8
Network integration
Agent Advertisement
Advertisement
8.9
Agent advertisement
0
7 8
type
#addresses
15 16
23 24
checksum
lifetime
31
code
addr. size
router address 1
preference level 1
router address 2
preference level 2
...
type = 16
length = 6 + 4 * #COAs
type = 16
length
sequence number
R B H F M G r T reserved
R: registration required
registration lifetime
COA 1
B: busy, no more registrations
COA 2
H: home agent
F: foreign agent
...
M: minimal encapsulation
G: GRE encapsulation
r: =0, ignored (former Van Jacobson compression)
T: FA supports reverse tunneling
reserved: =0, ignored
8.10
Agent Advertisement
Agent Advertisement Packet Frame
8.11
MN re
FA
gist
requ ration
e
HA
MN re
HA
gist
requ ration
es
st
regi
s
requ tration
est
o
trati
s
i
g
re
y
repl
o
trati
s
i
g
re
y
repl
n
ratio
t
s
i
reg
y
repl
8.12
7 8
type = 1
15 16
S B DMG r T x
home address
home agent
COA
23 24
lifetime
31
identification
Extensions (e.g. authentication) . . .
S: simultaneous bindings (requests that multiple copies of packet are sent to each registered COA)
B: broadcast datagrams
D: decapsulation by MN (If Co-located COA is adopted)
M mininal encapsulation
G: GRE encapsulation
r: =0, ignored
T: reverse tunneling requested
x: =0, ignored
Type 1 registration request
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
8.13
7 8
type = 3
15 16
code
home address
home agent
31
lifetime
identification
Example codes:
extensions . . .
registration successful
0 registration accepted
1 registration accepted, but simultaneous mobility bindings unsupported
registration denied by FA
65 administratively prohibited
66 insufficient resources
67 mobile node failed authentication
68 home agent failed authentication
69 requested Lifetime too long
registration denied by HA
129 administratively prohibited
131 mobile node failed authentication
133 registration Identification mismatch
135 too many simultaneous mobility bindings
Type 3 resposta do home agente
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
8.14
Encapsulation
original IP header
new IP header
outer header
original data
new data
inner header
original data
8.15
Encapsulation I
IHL
DS (TOS)
length
IP identification
flags
fragment offset
TTL
IP-in-IP
IP checksum
IP address of HA
Care-of address COA
ver. IHL
DS (TOS)
length
IP identification
flags
fragment offset
TTL
lay. 4 prot.
IP checksum
IP address of CN
IP address of MN
TCP/UDP/ ... payload
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
8.16
Encapsulation II
IHL
DS (TOS)
length
IP identification
flags
fragment offset
TTL
min. encap.
IP checksum
IP address of HA
care-of address COA
lay. 4 protoc. S reserved
IP checksum
IP address of MN
original sender IP address (if S=1)
TCP/UDP/ ... payload
8.17
outer header
new header
RFC 1701
IHL
DS (TOS)
length
IP identification
flags
fragment offset
TTL
GRE
IP checksum
IP address of HA
Care-of address COA
C R K S s rec.
rsv.
ver.
protocol
checksum (optional)
offset (optional)
key (optional)
sequence number (optional)
routing (optional)
ver.
IHL
DS (TOS)
length
IP identification
flags
fragment offset
TTL
lay. 4 prot.
IP checksum
IP address of CN
IP address of MN
GRE
header
original
header
original data
original
header
original data
new data
ver.
reserved0
ver.
checksum (optional)
protocol
reserved1 (=0)
8.18
C: is checksum available?
R: offset and routing available and valid information?
K: key field present for authentication?
S: sequence number available? If so, strict sequence must
be obeyed to restore packet order
rec.: it determines the number of recursive
encapsulations; default is 0 (only one level)
rsv.: reserved; set to 0
Protocol: Ethernet? Mobile IP?
8.19
Solutions
Change of FA
packets on-the-fly during the change can be lost
new FA informs old FA to avoid packet loss, old FA now
forwards remaining packets to new FA
this information also enables the old FA to release resources
for the MN
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
8.20
FAold
HA
Data
Update
FAnew
Data
MN
Data
ACK
Data
Data
Update
ACK
Data
Data
Warning
MN changes
location
Registration
Data
Request
Update
ACK
Data
Data
8.21
MN
home network
Internet
sender
1
FA
CN
receiver
foreign
network
1. MN sends to FA
2. FA tunnels packets to HA
by encapsulation
3. HA forwards the packet to the
receiver (standard case)
8.22
8.23
8.24
Security
authentication with FA problematic, for the FA typically
belongs to another organization
no protocol for key management and key distribution has
been standardized in the Internet
Firewalls
typically mobile IP cannot be used together with firewalls,
special set-ups are needed (such as reverse tunneling)
QoS
many new reservations in case of RSVP
tunneling makes it hard to give a flow of packets a special
treatment needed for the QoS
8.25
Application
simplification of installation and maintenance of networked
computers
supplies systems with all necessary information, such as IP
address, DNS server address, domain name, subnet mask,
default router etc.
enables automatic integration of systems into an Intranet or
the Internet, can be used to acquire a COA for Mobile IP
Client/Server-Model
the client sends via a MAC broadcast a request to the DHCP
DHCPDISCOVER
server (might be via a DHCP relay)
DHCPDISCOVER
server
client
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
client
relay
8.26
server
(not selected)
determine the
configuration
DHCPDISCOVER
DHCPDISCOVER
server
(selected)
determine the
configuration
DHCPOFFER
DHCPOFFER
collection of replies
time
selection of configuration
DHCPREQUEST
(reject)
DHCPREQUEST
(options)
confirmation of
configuration
DHCPACK
initialization completed
release
DHCPRELEASE
delete context
8.27
DHCP characteristics
Server
several servers can be configured for DHCP, coordination not
yet standardized (i.e., manual configuration)
Renewal of configurations
IP addresses have to be requested periodically, simplified
protocol
Options
available for routers, subnet mask, NTP (network time
protocol) timeserver, SLP (service location protocol)
directory, DNS (domain name system)
8.28
A
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
8.29
Examples
Single-hop: All partners max. one hop apart
Bluetooth piconet, PDAs in a room,
gaming devices
8.30
Mobile
Router
Manet
Mobile
Devices
Mobile IP,
DHCP
Fixed
Network
Router
End system
8.31
N6
N7
N1
N1
N2
N4
N3
N2
N3
N4
N5
time = t1
N6
N5
time = t2
good link
weak link
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
8.32
Distance Vector
periodic exchange of messages with all physical neighbors
that contain information about who can be reached at what
distance
selection of the shortest path if several paths available
Link State
periodic notification of all routers about the current state of
all physical links
router get a complete picture of the network
Example
8.33
Reasons
Classical approaches from fixed networks fail
Very slow convergence, large overhead
Maximal
Stability of the logical network, battery run-time, time of
connectivity
courtesy from Prof. Dr.-Ing. Jochen H. Schiller
8.34
8.35
Early work
on demand version: AODV
8.36
Discover a path
only if a path for sending packets to a certain destination is
needed and no path is currently available
Maintaining a path
only while the path is in use one has to make sure that it can
be used continuously
8.37
Optimizations
limit broadcasting if maximum diameter of the network is known
caching of address lists (i.e. paths) with help of passing packets
stations can use the cached information for path discovery (own paths
or paths for other hosts)
8.38
G
I
H
L
D
F
8.39
[O,C,4711]
C
[O,C,4711]
H
L
D
F
8.40
[O,C/G,4711]
C
[O,C/B,4711]
B
[O,C/G,4711]
[O,C/E,4711] H
L
D
F
8.41
[O,C/G/I,4711]
[O,C/B/A,4711]
[O,C/E/H,4711]
D
F
[O,C/B/D,4711]
(alternatively: [O,C/E/D,4711])
8.42
[O,C/G/I/K,4711]
H
L
D
F
[O,C/B/D/F,4711]
J
[O,C/E/H/J,4711]
8.43
[O,C/G/I/K/M,4711]
H
L
D
F
J
[O,C/E/H/J/L,4711]
(alternatively: [O,C/G/I/K/L,4711])
8.44
G
I
H
L
D
F
N
[O,C/E/H/J/L/N,4711]
8.45
Path: M, K, I, G
H
L
D
F
8.46
Maintaining paths
after sending a packet
wait for a layer 2 acknowledgement (if applicable)
listen into the medium to detect if other stations forward the
packet (if possible)
request an explicit acknowledgement
8.47
Interference-based routing
N1
N2
R1
S1
N3
N4
S2
neighbors
(i.e. within radio range)
N5
N7
N6
N8
R2
N9
8.48
8.49
Service discovery
Discovery of services and service providers
Multicast
Transmission to a selected group of receivers
Quality-of-Service
Maintenance of a certain transmission quality
Power control
Minimizing interference, energy conservation mechanisms
Security
Data integrity, protection from attacks (e.g. Denial of Service)
Scalability
10 nodes? 100 nodes? 1000 nodes? 10000 nodes?
8.50
Internet
Cluster head
Base station
Cluster
Super cluster
8.51
Finalizando...
Fim do captulo Mobile network layer
Leiam o captulo 8
Prxima aula trataremos sobre a camada de transporte em
ambientes mveis
8.52