Chapter 6 Wireless and Mobile Networks A note
Chapter 6 Wireless and Mobile Networks A note on the use of these ppt slides: The notes used in this course are substantially based on powerpoint slides developed and copyrighted by J. F. Kurose and K. W. Ross, 2007 Computer Networking: A Top Down Approach 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007. 6: Wireless and Mobile Networks 6 -1
Chapter 6: Wireless and Mobile Networks Background: r # wireless (mobile) phone subscribers now exceeds # wired phone subscribers! r Computer nets: laptops, palmtops, PDAs, Internet-enabled phone promise anytime untethered Internet access r Two important (but different) challenges m m Wireless: communication over wireless link Mobility: handling the mobile user who changes point of attachment to network 6: Wireless and Mobile Networks 6 -2
Chapter 6 Outline 6. 1 Introduction Wireless r 6. 2 Wireless links, characteristics r 6. 3 IEEE 802. 11 wireless LANs (“wi-fi”) r 6. 4 Cellular Internet Access m m Architecture Standards (e. g. , GSM) Mobility r 6. 5 Principles: addressing and routing to mobile users r 6. 6 Mobile IP r 6. 7 Handling mobility in cellular networks r 6. 8 End-to-end mobility r 6. 9 Mobility and higherlayer protocols 6. 10 Summary 6: Wireless and Mobile Networks 6 -3
Elements of a Wireless Network Infrastructure Wireless Hosts r Laptop, PDA, IP phone r Run applications r May be stationary (non -mobile) or mobile m Wireless does not always mean mobility 6: Wireless and Mobile Networks 6 -4
Elements of a Wireless Network Infrastructure Base Station r Typically connected to wired network r Relay - responsible for sending packets between wired network and wireless host(s) in its “area” m E. g. , cell towers, 802. 11 access points 6: Wireless and Mobile Networks 6 -5
Elements of a Wireless Network Infrastructure Wireless Link r Typically used to connect mobile(s) to base station r Also used as backbone link r Multiple access protocol coordinates link access r Various data rates, transmission distance 6: Wireless and Mobile Networks 6 -6
Characteristics of Selected Wireless Link Standards Data rate (Mbps) 200 54 5 -11 802. 11 n 802. 11 a, g 802. 11 b 4 1 802. 11 a, g point-to-point data 802. 16 (Wi. MAX) UMTS/WCDMA-HSPDA, CDMA 2000 -1 x. EVDO 3 G cellular enhanced 802. 15 . 384 3 G UMTS/WCDMA, CDMA 2000 . 056 2 G IS-95, CDMA, GSM Indoor Outdoor 10 -30 m 50 -200 m Mid-range outdoor Long-range outdoor 200 m – 4 Km 5 Km – 20 Km 6: Wireless and Mobile Networks 6 -7
Elements of a Wireless Network Infrastructure Mode r Base station connects mobiles into wired network r Handoff: mobile changes base station providing connection into wired network 6: Wireless and Mobile Networks 6 -8
Elements of a Wireless Network Ad hoc Mode r No base stations r Nodes can only transmit to other nodes within link coverage r Nodes organize themselves into a network: route among themselves 6: Wireless and Mobile Networks 6 -9
Wireless Network Taxonomy single hop infrastructure (e. g. , APs) no infrastructure host connects to base station (Wi. Fi, Wi. MAX, cellular) which connects to larger Internet no base station, no connection to larger Internet (Bluetooth, ad hoc nets) multiple hops host may have to relay through several wireless nodes to connect to larger Internet: mesh net no base station, no connection to larger Internet. May have to relay to reach other a given wireless node MANET, VANET 6: Wireless and Mobile Networks 6 -10
Wireless Link Characteristics (1) Differences from wired link …. m Decreased signal strength: radio signal attenuates as it propagates through matter (path loss) m Interference from other sources: standardized wireless network frequencies (e. g. , 2. 4 GHz) shared by other devices (e. g. , phone); devices (motors) interfere as well m Multipath propagation: radio signal reflects off objects ground, arriving ad destination at slightly different times …. make communication across (even a point to point) wireless link much more “difficult” 6: Wireless and Mobile Networks 6 -11
Wireless Link Characteristics (2) r SNR: signal-to-noise ratio Larger SNR – easier to extract signal from noise (a “good thing”) r SNR versus BER tradeoffs m Given physical layer: increase power -> increase SNR->decrease BER m Given SNR: choose physical layer that meets BER requirement, giving highest thruput 10 -1 m • SNR may change with mobility: dynamically adapt physical layer (modulation technique, rate) 10 -2 BER 10 -3 10 -4 10 -5 10 -6 10 -7 10 20 30 40 SNR(d. B) QAM 256 (8 Mbps) QAM 16 (4 Mbps) BPSK (1 Mbps) 6: Wireless and Mobile Networks 6 -12
Wireless Network Characteristics Multiple wireless senders and receivers create additional problems (beyond multiple access): C A B Hidden terminal problem C C’s signal strength A’s signal strength space r B, A hear each other Signal attenuation: r A, C can not hear each other r B, C hear each other r B, A hear each other means A, C unaware of their interference at B r A, C can not hear each other interfering at B 6: Wireless and Mobile Networks 6 -13
Exposed Terminal Problem A B C not possible D r B talks to A r C wants to talk to D r C senses channel and finds it to be busy (as B is transmitting to A) r C stays quiet (when it could have ideally transmitted) 6: Wireless and Mobile Networks 6 -14
Hidden and Exposed Terminal Problems r Hidden Terminal m More collisions m Wastage of resources Carrier sense at sender may not prevent collision at receiver r Exposed Terminal m Underutilization of channel m Lower effective throughput 6: Wireless and Mobile Networks 6 -15
Chapter 6 outline 6. 1 Introduction Wireless r 6. 2 Wireless links, characteristics r 6. 3 IEEE 802. 11 wireless LANs (“wi-fi”) r 6. 4 cellular Internet access m m Architecture Standards (e. g. , GSM) Mobility r 6. 5 Principles: addressing and routing to mobile users r 6. 6 Mobile IP r 6. 7 Handling mobility in cellular networks r 6. 8 End-to-end mobility r 6. 9 Mobility and higherlayer protocols 6. 10 Summary 6: Wireless and Mobile Networks 6 -16
IEEE 802. 11 Wireless LAN r 802. 11 a r 802. 11 b m 5 -6 GHz range m 2. 4 -5 GHz unlicensed spectrum m Up to 54 Mbps m Up to 11 Mbps r 802. 11 g m Direct sequence spread spectrum (DSSS) in physical m 2. 4 -5 GHz range layer m Up to 54 Mbps • All hosts use same chipping r 802. 11 n: multiple antennae code m 2. 4 -5 GHz range m Up to 200 Mbps r All use CSMA/CA for multiple access r All have base-station and ad-hoc network versions 6: Wireless and Mobile Networks 6 -17
802. 11 LAN Architecture r Wireless host communicates Internet AP hub, switch or router BSS 1 AP BSS 2 with base station m Base station = access point (AP) r Basic Service Set (BSS) (aka “cell”) in infrastructure mode contains: m Wireless hosts m Access point (AP): base station m Ad hoc mode: hosts only 6: Wireless and Mobile Networks 6 -18
802. 11: Channels, Association r 802. 11 b: 2. 4 GHz-2. 485 GHz spectrum divided into 11 channels at different frequencies m AP admin chooses frequency for AP m Interference possible: channel can be same as that chosen by neighboring AP! r Host: must associate with an AP m Scans channels, listening for beacon frames containing AP’s name (SSID) and MAC address m Selects AP to associate with m May perform authentication [Chapter 8] m Will typically run DHCP to get IP address in AP’s subnet 6: Wireless and Mobile Networks 6 -19
802. 11: Passive/Active Scanning BBS 1 AP 1 BBS 2 1 1 2 AP 2 BBS 1 AP 1 BBS 2 1 2 3 (1) beacon frames sent from APs (2) association Request frame sent: H 1 to selected AP (3) association Response frame sent: H 1 to selected AP AP 2 4 H 1 Passive Scanning: 2 3 Active Scanning: (1) Probe Request frame broadcast from H 1 (2) Probes response frame sent from APs (3) Association Request frame sent: H 1 to selected AP (4) Association Response frame sent: H 1 to selected AP 6: Wireless and Mobile Networks 6 -20
IEEE 802. 11: Multiple Access r Avoid collisions: 2+ nodes transmitting at same time r 802. 11: CSMA - sense before transmitting m Don’t collide with ongoing transmission by other node r 802. 11: no collision detection! m Difficult to receive (sense collisions) when transmitting due to weak received signals (fading) m Can’t sense all collisions in any case: hidden terminal, fading m Goal: avoid collisions: CSMA/C(ollision)A(voidance) C A B C C’s signal strength A’s signal strength space 6: Wireless and Mobile Networks 6 -21
IEEE 802. 11 MAC Protocol: CSMA/CA 802. 11 sender 1 If sense channel idle for DIFS then transmit entire frame (no CD) 2 If sense channel busy then start random backoff timer counts down while channel idle transmit when timer expires if no ACK, increase random backoff interval, repeat 2 sender receiver DIFS data SIFS ACK 802. 11 receiver - If frame received OK return ACK after SIFS (ACK needed due to hidden terminal problem) 6: Wireless and Mobile Networks 6 -22
Avoiding Collisions (more) Idea: allow sender to “reserve” channel rather than random access of data frames: avoid collisions of long data frames r Sender first transmits small request-to-send (RTS) packets to BS using CSMA m RTSs may still collide with each other (but they’re short) r BS broadcasts clear-to-send CTS in response to RTS r RTS heard by all nodes m Sender transmits data frame m Other stations defer transmissions avoid data frame collisions completely using small reservation packets! 6: Wireless and Mobile Networks 6 -23
Collision Avoidance: RTS-CTS Exchange A B AP RTS(B) RTS(A) reservation collision RTS(A) CTS(A) DATA (A) time ACK(A) defer ACK(A) 6: Wireless and Mobile Networks 6 -24
RTS-CTS Exchange r Uses RTS-CTS exchange to avoid hidden terminal problem m m Question: how long should sender “reserve” the channel? Network Allocation Vector (NAV): each message includes length of time other nodes must wait to send Any node receiving the RTS cannot transmit for the duration of the transfer Any node overhearing a CTS cannot transmit for the duration of the transfer 6: Wireless and Mobile Networks 6 -25
RTS-CTS and NAV RTS = Request-to-Send RTS A B C D E F Pretending a circular range 6: Wireless and Mobile Networks 6 -26
RTS-CTS and NAV RTS = Request-to-Send RTS A B C D E F NAV = 10 NAV = remaining duration to keep quiet 6: Wireless and Mobile Networks 6 -27
RTS-CTS and NAV CTS = Clear-to-Send CTS A B C D E F 6: Wireless and Mobile Networks 6 -28
RTS-CTS and NAV CTS = Clear-to-Send CTS A B C D E F NAV = 8 6: Wireless and Mobile Networks 6 -29
RTS-CTS and NAV • DATA packet follows CTS • Successful data reception acknowledged using ACK DATA A B C D E F 6: Wireless and Mobile Networks 6 -30
RTS-CTS and NAV ACK A B C D E F 6: Wireless and Mobile Networks 6 -31
RTS-CTS and NAV Reserved area ACK A B C D E F 6: Wireless and Mobile Networks 6 -32
802. 11 Frame: Addressing 2 2 6 6 6 frame address duration control 1 2 3 Address 1: MAC address of wireless host or AP to receive this frame 2 6 seq address 4 control 0 - 2312 4 payload CRC Address 4: used only in ad hoc mode Address 3: MAC address of router interface to which AP is attached Address 2: MAC address of wireless host or AP transmitting this frame 6: Wireless and Mobile Networks 6 -33
802. 11 Frame: Addressing R 1 router H 1 Internet AP R 1 MAC addr AP MAC addr dest. address source address 802. 3 frame AP MAC addr H 1 MAC addr R 1 MAC address 1 address 2 address 3 802. 11 frame 6: Wireless and Mobile Networks 6 -34
802. 11 Frame: More frame seq # (for reliable ARQ) duration of reserved transmission time (RTS/CTS) 2 2 6 6 6 frame address duration control 1 2 3 2 Protocol version 2 4 1 Type Subtype To AP 6 2 1 seq address 4 control 1 From More AP frag 1 Retry 1 0 - 2312 4 payload CRC 1 Power More mgt data 1 1 WEP Rsvd frame type (RTS, CTS, ACK, data) 6: Wireless and Mobile Networks 6 -35
802. 11: Mobility within Same Subnet r H 1 remains in same IP subnet: IP address can remain same r Switch: which AP is associated with H 1? m Self-learning (Ch. 5): switch will see frame from H 1 and “remember” which switch port can be used to reach H 1 router hub or switch BBS 1 AP 2 H 1 BBS 2 6: Wireless and Mobile Networks 6 -36
802. 11: Advanced Capabilities QAM 256 (8 Mbps) QAM 16 (4 Mbps) BPSK (1 Mbps) operating point 10 -1 10 -2 10 -3 BER Rate Adaptation r Base station, mobile dynamically change transmission rate (physical layer modulation technique) as mobile moves, SNR varies 10 -4 10 -5 10 -6 10 -7 10 20 30 SNR(d. B) 40 1. SNR decreases, BER increase as node moves away from base station 2. When BER becomes too high, switch to lower transmission rate but with lower BER 6: Wireless and Mobile Networks 6 -37
Rate Adaptation r Multiple rates are supported by each wireless standard according to the channel quality m m 802. 11 b supports 1 M, 2 M, 5. 5 M and 11 Mbps 802. 11 g supports 6 M, 9 M, 12 M, 18 M, 36 M, 48 M, 54 M r The channel conditions vary m Temporal dimension m Spatial dimension (multiuser diversity) m Each user has independent channel condition r Multiple rates can be exploited to improve the transmission performance m Throughput, latency, etc. 6: Wireless and Mobile Networks 6 -38
A Simple Example B A C D T 0 B A C D T 1 D T 2 Scheme 1: A D A C A B A D A C Scheme 2: A B Of course, scheme 2 is better than scheme 1 6: Wireless and Mobile Networks 6 -39
802. 11: Advanced Capabilities Power Management r Mobile devices are battery powered r Current LAN protocols assume stations are always ready to receive m Idle receive state dominates LAN adapter power consumption over time r How can we power off during idle periods, yet maintain an active session? r 802. 11 Power Management protocol m Allows transceiver to be off as much as possible m Is transparent to existing protocols m Is flexible to support different applications • Possible to trade off throughput for battery life 6: Wireless and Mobile Networks 6 -40
Power Management Approach r Allow idle stations to go to sleep m Station’s power save mode stored in AP r APs buffer packets for sleeping stations m AP announces which stations have frames buffered m Traffic Indication Map (TIM) sent with every Beacon r Power saving stations wake up periodically m Listen for Beacons r Time Synchronization Function (TSF) assures AP and power save stations are synchronized m Stations will wake up to hear a Beacon m Synchronization allows extreme low power operation 6: Wireless and Mobile Networks 6 -41
Infrastructure Power Management TIM-Interval DTIM interval Time-axis Busy Medium TIM AP activity DTIM TIM Broadcast DTIM Broadcast PS Station PS-Poll Tx operation r Broadcast frames are also buffered in AP m Broadcasts/multicasts are only sent after DTIM m DTIM interval is a multiple of TIM interval r Stations wake up prior to an expected (D)TIM r If TIM indicates frame buffered m Station sends PS-Poll and stays awake to receive data 6: Wireless and Mobile Networks 6 -42
802. 15: Personal Area Network r Less than 10 m diameter r Replacement for cables (mouse, keyboard, headphones) r Ad hoc: no infrastructure r Master/slaves: m m Slaves request permission to send (to master) Master grants requests r 802. 15: evolved from Bluetooth specification m m 2. 4 -2. 5 GHz radio band Up to 721 kbps P S P radius of coverage M S P M Master device S Slave device P Parked device (inactive) 6: Wireless and Mobile Networks 6 -43
802. 16: Wi. MAX r Like 802. 11 & cellular: point-to-point base station model m Transmissions to/from base station by hosts with omnidirectional antenna m Base station-to-base station backhaul with point-to-point antenna point-to-multipoint r Unlike 802. 11: m Range ~ 6 miles (“city rather than coffee shop”) m ~14 Mbps 6: Wireless and Mobile Networks 6 -44
802. 16: Wi. MAX: Downlink, Uplink Scheduling r Transmission frame m Down-link subframe: base station to node m Uplink subframe: node to base station pream. … DL- ULMAP DL burst 1 DL burst 2 downlink subframe … … DL burst n Initial request SS #1 SS #2 maint. conn. … SS #k uplink subframe base station tells nodes who will get to receive (DL map) and who will get to send (UL map), and when r Wi. MAX standard provide mechanism for scheduling, but not scheduling algorithm 6: Wireless and Mobile Networks 6 -45
Chapter 6 outline 6. 1 Introduction Wireless r 6. 2 Wireless links, characteristics r 6. 3 IEEE 802. 11 wireless LANs (“wi-fi”) r 6. 4 Cellular Internet Access m m architecture standards (e. g. , GSM) Mobility r 6. 5 Principles: addressing and routing to mobile users r 6. 6 Mobile IP r 6. 7 Handling mobility in cellular networks r 6. 8 End-to-end mobility r 6. 9 Mobility and higherlayer protocols 6. 10 Summary 6: Wireless and Mobile Networks 6 -46
Components of Cellular Network Architecture MSC cell q connects cells to wide area net q manages call setup (more later!) q handles mobility (more later!) q covers geographical region q base station (BS) analogous to 802. 11 AP q mobile users attach to network through BS q air-interface: physical and link layer protocol between mobile and BS Mobile Switching Center Public telephone network, and Internet Mobile Switching Center wired network 6: Wireless and Mobile Networks 6 -47
Cellular Networks: the First Hop Two techniques for sharing mobile-to-BS radio spectrum r Combined FDMA/TDMA: divide spectrum in frequency channels, divide each channel into time slots frequency bands r CDMA: code division multiple access time slots 6: Wireless and Mobile Networks 6 -48
Cellular Standards: Brief Survey 2 G systems: voice channels r IS-136 TDMA: combined FDMA/TDMA (north america) r GSM (global system for mobile communications): combined FDMA/TDMA m most widely deployed r IS-95 CDMA: code division multiple access TDMA/FDMA 0 CDMA-200 GPRS EDGE UMTS IS-136 GSM IS-95 Don’t drown in a bowl of alphabet soup: use this for reference only 6: Wireless and Mobile Networks 6 -49
Cellular Standards: Brief Survey 2. 5 G systems: voice and data channels r For those who can’t wait for 3 G service: 2 G extensions r General packet radio service (GPRS) m Evolved from GSM m Data sent on multiple channels (if available) r Enhanced data rates for global evolution (EDGE) m Also evolved from GSM, using enhanced modulation m Data rates up to 384 K r CDMA-2000 (phase 1) m Data rates up to 144 K m Evolved from IS-95 6: Wireless and Mobile Networks 6 -50
Cellular Standards: Brief Survey 3 G systems: voice/data r Universal Mobile Telecommunications Service (UMTS) m Data service: High Speed Uplink/Downlink packet Access (HSDPA/HSUPA): 3 Mbps r CDMA-2000: CDMA in TDMA slots m Data service: 1 x. Evlution Data Optimized (1 x. EVDO) up to 14 Mbps …. . more (and more interesting) cellular topics due to mobility (stay tuned for details) 6: Wireless and Mobile Networks 6 -51
Chapter 6 outline 6. 1 Introduction Wireless r 6. 2 Wireless links, characteristics m CDMA r 6. 3 IEEE 802. 11 wireless LANs (“wi-fi”) r 6. 4 Cellular Internet Access m m architecture standards (e. g. , GSM) Mobility r 6. 5 Principles: addressing and routing to mobile users r 6. 6 Mobile IP r 6. 7 Handling mobility in cellular networks r 6. 8 Homeless Mobile IP r 6. 9 Mobility and higherlayer protocols 6. 10 Summary 6: Wireless and Mobile Networks 6 -52
What is Mobility? r Spectrum of mobility, from the network perspective: no mobility high mobility mobile wireless user, mobile user, using same access connecting/ point disconnecting from network using DHCP. mobile user, passing through multiple access point while maintaining ongoing connections (like cell phone) 6: Wireless and Mobile Networks 6 -53
Mobility: Vocabulary home network: permanent “home” of mobile (e. g. , 128. 119. 40/24) Permanent address: address in home network, can always be used to reach mobile e. g. , 128. 119. 40. 186 home agent: entity that will perform mobility functions on behalf of mobile, when mobile is remote wide area network correspondent 6: Wireless and Mobile Networks 6 -54
Mobility: more Vocabulary Permanent address: remains constant (e. g. , 128. 119. 40. 186) visited network: network in which mobile currently resides (e. g. , 79. 129. 13/24) Care-of-address: address in visited network. (e. g. , 79, 129. 13. 2) wide area network correspondent: wants to communicate with mobile foreign agent: entity in visited network that performs mobility functions on behalf of mobile. 6: Wireless and Mobile Networks 6 -55
How do You Contact a Mobile Friend: Consider friend frequently changing addresses, how do you find her? I wonder where Alice moved to? r Search all phone books? r Call her parents? r Expect her to let you know where he/she is? 6: Wireless and Mobile Networks 6 -56
Mobility: Approaches r Let routing handle it: routers advertise permanent address of mobile-nodes-in-residence via usual routing table exchange. m Routing tables indicate where each mobile located m No changes to end-systems r Let end-systems handle it: m Indirect routing: communication from correspondent to mobile goes through home agent, then forwarded to remote m Direct routing: correspondent gets foreign address of mobile, sends directly to mobile 6: Wireless and Mobile Networks 6 -57
Mobility: Approaches r Let routing handle it: routers advertise permanent not address of mobile-nodes-in-residence via usual scalable routing table exchange. to millions of m routing tables indicate mobiles where each mobile located m no changes to end-systems r Let end-systems handle it: m Indirect routing: communication from correspondent to mobile goes through home agent, then forwarded to remote m Direct routing: correspondent gets foreign address of mobile, sends directly to mobile 6: Wireless and Mobile Networks 6 -58
Mobility: Registration visited network home network 1 2 wide area network foreign agent contacts home agent home: “this mobile is resident in my network” mobile contacts foreign agent on entering visited network End result: r Foreign agent knows about mobile r Home agent knows location of mobile 6: Wireless and Mobile Networks 6 -59
Mobility via Indirect Routing foreign agent receives packets, forwards to mobile home agent intercepts packets, forwards to foreign agent home network visited network 3 wide area network correspondent addresses packets using home address of mobile 1 2 4 mobile replies directly to correspondent 6: Wireless and Mobile Networks 6 -60
Indirect Routing: Comments r Mobile uses two addresses: m permanent address: used by correspondent (hence mobile location is transparent to correspondent) m care-of-address: used by home agent to forward datagrams to mobile r Foreign agent functions may be done by mobile itself r Triangle routing: correspondent-home-networkmobile m Inefficient when correspondent, mobile are in same network 6: Wireless and Mobile Networks 6 -61
Indirect Routing: Moving between Networks r Suppose mobile user moves to another network m Registers with new foreign agent m New foreign agent registers with home agent m Home agent update care-of-address for mobile m Packets continue to be forwarded to mobile (but with new care-of-address) r Mobility, changing foreign networks transparent: on going connections can be maintained! 6: Wireless and Mobile Networks 6 -62
Mobility via Direct Routing correspondent forwards to foreign agent receives packets, forwards to mobile home network 4 wide area network 2 correspondent requests, receives foreign address of mobile visited network 1 3 4 mobile replies directly to correspondent 6: Wireless and Mobile Networks 6 -63
Mobility via Direct Routing: Comments r Overcome triangle routing problem r Non-transparent to correspondent: correspondent must get care-of-address from home agent m What if mobile changes visited network? 6: Wireless and Mobile Networks 6 -64
Accommodating Mobility with Direct Routing r Anchor foreign agent: FA in first visited network r Data always routed first to anchor FA r When mobile moves: new FA arranges to have data forwarded from old FA (chaining) foreign net visited at session start wide area network anchor foreign agent 1 2 4 5 correspondent agent 3 new foreign agent new foreign network 6: Wireless and Mobile Networks 6 -65
Chapter 6 outline 6. 1 Introduction Wireless r 6. 2 Wireless links, characteristics m CDMA r 6. 3 IEEE 802. 11 wireless LANs (“wi-fi”) r 6. 4 Cellular Internet Access m m architecture standards (e. g. , GSM) Mobility r 6. 5 Principles: addressing and routing to mobile users r 6. 6 Mobile IP r 6. 7 Handling mobility in cellular networks r 6. 8 End-to-end mobility r 6. 9 Mobility and higherlayer protocols 6. 10 Summary 6: Wireless and Mobile Networks 6 -66
Mobile IP r RFC 3344 r Has many features we’ve seen: m Home agents, foreign-agent registration, care-of-addresses, encapsulation (packet-within-a-packet) r Three components to standard: m Indirect routing of datagrams m Agent discovery m Registration with home agent 6: Wireless and Mobile Networks 6 -67
Mobile IP: Indirect Routing foreign-agent-to-mobile packet sent by home agent to foreign agent: a packet within a packet dest: 79. 129. 13. 2 dest: 128. 119. 40. 186 Permanent address: 128. 119. 40. 186 dest: 128. 119. 40. 186 Care-of address: 79. 129. 13. 2 packet sent by correspondent 6: Wireless and Mobile Networks 6 -68
Mobile IP: Agent Discovery r Agent advertisement: foreign/home agents advertise service by broadcasting ICMP messages (typefield = 9) H, F bits: home and/or foreign agent R bit: registration required 6: Wireless and Mobile Networks 6 -69
Mobile IP: Registration Example 6: Wireless and Mobile Networks 6 -70
Components of Cellular Network Architecture recall: correspondent wired public telephone network MSC MSC MSC different cellular networks, operated by different providers 6: Wireless and Mobile Networks 6 -71
Handling Mobility in Cellular Networks r Home network: network of cellular provider you subscribe to (e. g. , Sprint PCS, Verizon) m Home location register (HLR): database in home network containing permanent cell phone #, profile information (services, preferences, billing), information about current location (could be in another network) r Visited network: network in which mobile currently resides m Visitor location register (VLR): database with entry for each user currently in network m Could be home network 6: Wireless and Mobile Networks 6 -72
GSM: Indirect Routing to Mobile home network HLR 2 home MSC consults HLR, gets roaming number of mobile in visited network correspondent home Mobile Switching Center 1 VLR 3 Mobile Switching Center 4 Public switched telephone network call routed to home network home MSC sets up 2 nd leg of call to MSC in visited network mobile user visited network MSC in visited network completes call through base station to mobile 6: Wireless and Mobile Networks 6 -73
GSM: Handoff with Common MSC r Handoff goal: route call via new base station (without interruption) r Reasons for handoff: VLR Mobile Switching Center old routing old BSS m new routing m new BSS m Stronger signal to/from new BSS (continuing connectivity, less battery drain) Load balance: free up channel in current BSS GSM doesn’t mandate why to perform handoff (policy), only how (mechanism) r Handoff initiated by old BSS 6: Wireless and Mobile Networks 6 -74
GSM: Handoff with Common MSC VLR Mobile Switching Center 2 4 1 8 old BSS 5 7 3 6 new BSS 1. old BSS informs MSC of impending handoff, provides list of 1+ new BSSs 2. MSC sets up path (allocates resources) to new BSS 3. new BSS allocates radio channel for use by mobile 4. new BSS signals MSC, old BSS: ready 5. old BSS tells mobile: perform handoff to new BSS 6. mobile, new BSS signal to activate new channel 7. mobile signals via new BSS to MSC: handoff complete. MSC reroutes call 8 MSC-old-BSS resources released 6: Wireless and Mobile Networks 6 -75
GSM: Handoff between MSCs r Anchor MSC: first MSC visited during cal home network correspondent Home MSC anchor MSC m call remains routed through anchor MSC r New MSCs add on to end PSTN MSC (a) before handoff of MSC chain as mobile moves to new MSC r IS-41 allows optional path minimization step to shorten multi-MSC chain 6: Wireless and Mobile Networks 6 -76
GSM: Handoff between MSCs r Anchor MSC: first MSC visited during cal home network correspondent Home MSC anchor MSC m call remains routed through anchor MSC r New MSCs add on to end PSTN MSC (b) after handoff of MSC chain as mobile moves to new MSC r IS-41 allows optional path minimization step to shorten multi-MSC chain 6: Wireless and Mobile Networks 6 -77
Mobility: GSM versus Mobile IP GSM element Comment on GSM element Mobile IP element Home system Network to which mobile user’s permanent phone number belongs Home network Gateway Mobile Switching Center, or “home MSC”. Home Location Register (HLR) Home MSC: point of contact to obtain routable address of mobile user. HLR: database in home system containing permanent phone number, profile information, current location of mobile user, subscription information Home agent Visited System Network other than home system where mobile user is currently residing Visited network Visited Mobile services Switching Center. Visitor Location Record (VLR) Visited MSC: responsible for setting up calls Foreign agent to/from mobile nodes in cells associated with MSC. VLR: temporary database entry in visited system, containing subscription information for each visiting mobile user Mobile Station Roaming Number (MSRN), or “roaming number” Routable address for telephone call segment between home MSC and visited MSC, visible to neither the mobile nor the correspondent. Care-ofaddress 6: Wireless and Mobile Networks 6 -78
Chapter 6 outline 6. 1 Introduction Wireless r 6. 2 Wireless links, characteristics m CDMA r 6. 3 IEEE 802. 11 wireless LANs (“wi-fi”) r 6. 4 Cellular Internet Access m m architecture standards (e. g. , GSM) Mobility r 6. 5 Principles: addressing and routing to mobile users r 6. 6 Mobile IP r 6. 7 Handling mobility in cellular networks r 6. 8 End-to-end mobility r 6. 9 Mobility and higherlayer protocols 6. 10 Summary 6: Wireless and Mobile Networks 6 -79
End-to-End Mobility r Re-visit Mobile IP solution m Network centric m Home Agent needs handle not only signaling but also data packets m Network is hard to change r End-to-end mobility m Mobility solution without Home Agent! m Easy to deploy 6: Wireless and Mobile Networks 6 -80
Local Address Translation A <IP 2, port 1> <IP 1, port 1> C <IP 1, port 1> A A <IP 2, port 1> Connections Old Address and Port Info New Address and Port Info Mapping to Application Conn_A <IP 1, Port 1> <IP 2, Port 1> <IP 1, Port 1> 6: Wireless and Mobile Networks 6 -81
Transparent to Legacy Applications r Solution r Issue <IP 2, port 1> <IP 1, port 1> A <IP 1, port 1> C <IP 2, port 1> <IP 1, port 2> Receives Packet with <IP 1, port 1> B <IP 1, port 1> A A B From A ( ( ) Connections Old Address and Port Info New Address and Port Info Mapping to Application Conn_A <IP 1, Port 1> <IP 2, Port 1> <IP 1, Port 2> Conn_B 6: Wireless and Mobile Networks 6 -82
Simultaneous Movements Support 2 61. 18. 22. 34 B 1 B 2 A C 3 Subscribe /Notify service 65. 23. 64. 140 3 1 2 157. 23. 0. 112 2 A 211. 150. 224. 38 A moves from 65. 23. 64. 140 to 211. 150. 224. 38 B moves from 157. 23. 0. 112 to 61. 18. 22. 34 6: Wireless and Mobile Networks 6 -83
Chapter 6 outline 6. 1 Introduction Wireless r 6. 2 Wireless links, characteristics m CDMA r 6. 3 IEEE 802. 11 wireless LANs (“wi-fi”) r 6. 4 Cellular Internet Access m m architecture standards (e. g. , GSM) Mobility r 6. 5 Principles: addressing and routing to mobile users r 6. 6 Mobile IP r 6. 7 Handling mobility in cellular networks r 6. 8 End-to-end mobility r 6. 9 Mobility and higherlayer protocols 6. 10 Summary 6: Wireless and Mobile Networks 6 -84
Wireless, Mobility: Impact on Higher Layer Protocols r Logically, impact should be minimal … m Best effort service model remains unchanged m TCP and UDP can (and do) run over wireless, mobile r … but performance-wise: m Packet loss/delay due to bit-errors (discarded packets, delays for link-layer retransmissions), and handoff m TCP interprets loss as congestion, will decrease congestion window un-necessarily m Delay impairments for real-time traffic m Limited bandwidth of wireless links 6: Wireless and Mobile Networks 6 -85
Chapter 6 Summary Wireless r Wireless links: m m Capacity, distance Channel impairments r IEEE 802. 11 (“wi-fi”) m CSMA/CA reflects wireless channel characteristics r Cellular access m Architecture m Standards (e. g. , GSM, CDMA-2000, UMTS) Mobility r Principles: addressing, routing to mobile users m m m Home, visited networks Direct, indirect routing Care-of-addresses r Case studies m Mobile IP m Mobility in GSM m End-to-end mobility r Impact on higher-layer protocols 6: Wireless and Mobile Networks 6 -86
- Slides: 86