Beruflich Dokumente
Kultur Dokumente
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Motivation
q Data transfer
q Encapsulation
q Security
q IPv6
Problems
q DHCP
q Ad-hoc networks
q Routing protocols
9.0.1
Jochen H. Schiller
1999
9.1.1
9.1
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Compatibility
q
q
q
Security
q
9.2.1
Terminology
Mobile Node (MN)
q
communication partner
Jochen H. Schiller
1999
9.3.1
9.2
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Example network
HA
MN
router
home network
mobile end-system
Internet
FA foreign
network
router
(current physical network
for the MN)
CN
end-system
router
9.4.1
MN
home network
Internet
receiver
3
FA
CN
sender
Jochen H. Schiller
1999
foreign
network
9.3
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
home network
MN
sender
Internet
FA
foreign
network
CN
receiver
Mobile Communications: Network Protocols/Mobile IP
9.6.1
Overview
COA
home
network
router
FA
router
HA
MN
foreign
network
Internet
CN
router
home
network
router
HA
router
FA
2.
3.
MN
4.
Internet
foreign
network
1.
CN
router
Jochen H. Schiller
1999
9.7.1
9.4
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Network integration
Agent Advertisement
q
q
q
Advertisement
q
q
q
q
9.8.1
Agent advertisement
7 8
15 16
23 24
type
code
checksum
#addresses addr. size
lifetime
router address 1
preference level 1
router address 2
preference level 2
31
...
type
length
registration lifetime
sequence number
reserved
R B H F MG V
COA 1
COA 2
...
Jochen H. Schiller
1999
9.9.1
9.5
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Registration
MN r
egis
tr
requ
FA
HA
MN re
gis
regi
s
r e q u tration
est
tio
stra
regi
y
l
p
re
HA
r e q u tration
est
atio
est n
tio
stra
regi
y
l
p
re
tio
stra
regi
y
l
p
e
r
9.10.1
7 8
type
15 16
S B DMG V rsv
23 24
lifetime
31
home address
home agent
COA
identification
extensions . . .
Jochen H. Schiller
1999
9.11.1
9.6
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Encapsulation
original IP header
new IP header
outer header
original data
new data
inner header
original data
9.12.1
Encapsulation I
Encapsulation of one packet into another as payload
q
q
IHL
TOS
length
IP identification
flags
fragment offset
TTL
IP-in-IP
IP checksum
IP address of HA
Care-of address COA
ver. IHL
TOS
length
IP identification
flags
fragment offset
TTL
lay. 4 prot.
IP checksum
IP address of CN
IP address of MN
TCP/UDP/ ... payload
Jochen H. Schiller
1999
9.13.1
9.7
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Encapsulation II
Minimal encapsulation (optional)
q
q
q
IHL
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
9.14.1
outer header
new header
GRE
header
original
header
original data
original
header
original data
new data
ver.
IHL
TOS
length
IP identification
flags
fragment offset
TTL
GRE
IP checksum
IP address of HA
Care-of address COA
CR K S s rec.
rsv.
ver.
protocol
checksum (optional)
offset (optional)
key (optional)
sequence number (optional)
routing (optional)
ver.
IHL
TOS
length
IP identification
flags
fragment offset
TTL
lay. 4 prot.
IP checksum
IP address of CN
IP address of MN
TCP/UDP/ ... payload
Jochen H. Schiller
1999
9.15.1
9.8
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Solutions
q
q
q
q
Change of FA
q
q
q
9.16.1
HA
FAold
FAnew
MN
request
update
ACK
data
data
MN changes
location
registration
registration
update
ACK
data
data
warning
data
update
ACK
data
data
t
Jochen H. Schiller
1999
9.17.1
9.9
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
MN
home network
Internet
sender
FA foreign
network
CN
receiver
1. MN sends to FA
2. FA tunnels packets to HA
by encapsulation
3. HA forwards the packet to the
receiver (standard case)
9.18.1
Jochen H. Schiller
1999
9.19.1
9.10
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
9.20.1
Firewalls
q
QoS
q
q
Jochen H. Schiller
1999
9.21.1
9.11
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Security in Mobile IP
Security requirements (Security Architecture for the Internet
Protocol, RFC 1825)
q
q
q
q
q
Integrity
any changes to data between sender and receiver can be detected
by the receiver
Authentication
sender address is really the address of the sender and all data
received is really data sent by this sender
Confidentiality
only sender and receiver can read the data
Non-Repudiation
sender cannot deny sending of data
Traffic Analysis
creation of traffic and user profiles should not be possible
Replay Protection
receivers can detect replay of messages
9.22.1
IP security architecture I
q
Authentication-Header
l
l
Authentification-Header
authentication header
IP header
encrypted
ESP header
Jochen H. Schiller
1999
UDP/TCP-Paket
UDP/TCP data
encrypted data
9.23.1
9.12
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
IP security architecture II
q
parameters for the mobile host (MH), home agent (HA), and foreign
agent (FA)
MH
registration reply
registration request
FA
registration reply
HA
9.24.1
Key distribution
Home agent distributes session keys
FA
HA
MH
response:
EHA-FA {session key}
EHA-MH {session key}
Jochen H. Schiller
1999
9.25.1
9.13
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Client/Server-Model
q
the client sends via a MAC broadcast a request to the DHCP server
(might be via a DHCP relay)
DHCPDISCOVER
DHCPDISCOVER
server
client
client
relay
9.26.1
client
initialization
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
Jochen H. Schiller
1999
delete context
9.27.1
9.14
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
DHCP characteristics
Server
q
Renewal of configurations
q
Options
q
9.28.1
Ad hoc networks
Standard Mobile IP needs an infrastructure
q
q
Jochen H. Schiller
1999
C
9.29.1
9.15
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
N1
N1
N2
N4
time = t1
N3
N2
N3
N4
N5
good link
weak link
N5
time = t2
9.30.1
Link State
q
q
Example
q
q
q
q
Jochen H. Schiller
1999
9.31.1
9.16
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Problem
q
9.32.1
Jochen H. Schiller
1999
9.33.1
9.17
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Maintaining a path
q
only while the path is in use one has to make sure that it can be
used continuously
9.34.1
if the station is the receiver (i.e., has the correct destination address)
then return the packet to the sender (path was collected in the packet)
l if the packet has already been received earlier (identified via ID) then
discard the packet
l otherwise, append own address and broadcast packet
q
Optimizations
q
q
stations can use the cached information for path discovery (own paths
or paths for other hosts)
Jochen H. Schiller
1999
9.35.1
9.18
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
9.36.1
Internet
cluster
super cluster
Jochen H. Schiller
1999
9.37.1
9.19
University of Karlsruhe
Institute of Telematics
Mobile Communications
Chapter 9: Network Protocols
Interference-based routing
Routing based on assumptions about interference between signals
N1
N2
R1
S1
N3
N4
N5
N6
R2
S2
neighbors
(i.e. within radio range)
N7
N8
N9
9.38.1
Jochen H. Schiller
1999
9.39.1
9.20