Beruflich Dokumente
Kultur Dokumente
over wireless link handling mobile user who changes point of attachment to network
6/2/05
CS118/Spring05
Infrastructure mode: basestations connect mobiles to wired networks when moving mobiles change basestations to keep Internet access (handoff)
Wired network infrastructure
Wireless host: may be stationary (non-mobile) or mobile Base station: typically connected to wired network relay - responsible for sending packets between wired network and wireless host(s) in its area 6/2/05
Ad hoc mode: no basestations each node helps forward packets to other node
CS118/Spring05
C B
CS118/Spring05
A
6/2/05 3
6/2/05
CS118/Spring05
AP BSS 1
AP admin chooses frequency for AP neighboring APs may choose same channelinterference SSID, MAC address
AP
BSS 2
host: must associate with an AP scan channels, listening for beacon frames containing APs name (SSID) and MAC address selects AP to associate with; initiates association protocol typically run DHCP to get IP address in 5 CS118/Spring05 APs subnet
6/2/05
CS118/Spring05
receiver
data
SIFS
802.11 receiver
if frame received OK - return ACK after SIFS (ACK needed due to hidden terminal problem)
ACK
RTSs may still collide with each other (but theyre short)
AP broadcasts clear-to-send CTS in response to RTS CTS heard by all nodes sender transmits data frame other stations defer transmissions
6/2/05
CS118/Spring05
reservation collision
DATA (A)
defer
time
6/2/05 9 CS118/Spring05
0 - 2312
payload
4
CRC
Address 1: MAC address of wireless host or AP to receive this frame Address 2: MAC address of wireless host or AP transmitting this frame
Address 3: used only in ad hoc mode Address 3: MAC address of router interface to which AP is attached
6/2/05
10
CS118/Spring05
H1
R1 router
AP
802.11 frame
6/2/05 11 CS118/Spring05
4
CRC
2
Protocol version
2
Type
4
Subtype
1
To AP
1
Retry
1
WEP
1
Rsvd
6/2/05
12
CS118/Spring05
signal from AP1, scan and find AP2 to attach to H1 remains in same IP subnet: IP address can remain same switch: which AP is associated with H1?
self-learning:
router
hub or switch BBS 1 AP 1 AP 2 H1 BBS 2
switch will see frame from H1 and remember which interface can be used to reach H1
13
6/2/05
CS118/Spring05
Mobility: Vocabulary
home network: permanent home of mobile (e.g., 128.119.40/24) home agent: entity that will perform mobility functions on behalf of mobile, when mobile is remote
Permanent address: address in home network, can always be used to reach mobile
e.g., 128.119.40.186
correspondent
foreign agent: entity in visited network that performs mobility functions on behalf of mobile.
CS118/Spring05
Mobility: approaches
Let routing handle it: routers advertise permanent
routing: correspondent sends packets to to home agent, which forwards to mobile direct routing: correspondent gets foreign address of mobile, sends directly to mobile
6/2/05 16 CS118/Spring05
Mobility: registration
home network visited network
foreign agent contacts home agent home: this mobile is resident in my network
End result: Foreign agent knows about mobile Home agent knows location of mobile
6/2/05 17 CS118/Spring05
visited network
3
home network
1 correspondent addresses packets using home address of mobile
home network
3
4
2 1
address: used by correspondent (hence mobile location is transparent to correspondent) care-of-address: used by home agent to forward datagrams to mobile foreign agent functions may be done by mobile itself triangle routing: correspondent-home-network-mobile inefficient when Correspondent & mobile are in same network
permanent
6/2/05
20
CS118/Spring05
network
registers
with new foreign agent new foreign agent registers with home agent home agent update care-of-address for mobile packets continue to be forwarded to mobile (but with new care-of-address)
mobility, changing foreign networks
visited network
home network
2 correspondent requests, receives foreign address of mobile 1
6/2/05
22
CS118/Spring05
6/2/05
23
CS118/Spring05
2 4 3
new foreign agent new foreign network
5
correspondent agent correspondent
6/2/05
24
CS118/Spring05