Académique Documents
Professionnel Documents
Culture Documents
WirelessNetworkProtocols
Mr.ChetanKumar, ProtocolEngineering&Technology(PET)Lab ElectricalCommunicationEngineering, IndianInstituteofScience, Bangalore560012,India
Ubiquitous Computing
WirelessNetworkTypes
Satellitenetworks
WirelessWANs/MANs
WirelessLANs
WirelessPANs
Adhocnetworks
Sensornetworks 2
WirelessStandards
Ubiquitous Computing
SatelliteNetworks
Ubiquitous Computing
SatelliteNetworks(contd.)
Ubiquitous Computing
WirelessWANs
Ubiquitous Computing
WirelessLocalAreaNetworks
DistributionNetwork AccessPoint
Ubiquitous Computing
WirelessPANs
Ubiquitous Computing
AdhocNetworks
Ubiquitous Computing
AdhocNetworks(contd.)
Ubiquitous Computing
10
SensorNetworks
Ubiquitous Computing
11
CommonTypesofWirelessNetworking
Ubiquitous Computing
12
IrDA
Ubiquitous Computing
13
Bluetooth
Ubiquitous Computing
14
IEEE802.11
DominanttechnologyforWLANs Multipleflavors(802.11a,b,&g) 802.11bwasfirstwidespreadtechnology 802.11acamealongandofferedfivetimeshigher dataratebutitmadeitexpensivetoimplement combineda/bdevicesbecauseitusedadifferent frequencyrange 802.11gisthelatesttechnologyanditoffersthesame datarateas11a,butusesthesamefrequencyas 11b.Ithasquicklybecomemorepopularthan11aas thefastwirelessLANprotocol.802.11bisstillthe leastexpensivetechnology,butwilleventuallybe obsoletedby11g.
Ubiquitous Computing
15
IEEE802.11b,a,&g
STANDARD 11Mbps SPEED 100150feetindoors RANGE 2.4Ghz,abandalready crowdedwithcordless phones Hotspotsarealready establishedusingb. Equipmentisreadily available. 5Ghz,anuncrowdedband 2.4Ghz,stillacrowdof cordlessphonesand microwaves giscompatiblewiththe specsforb,meaningitcan beusedonanetworkbased onborgversions. 2575feetindoors 100150feetindoors 802.11b 54Mbps 802.11a 54Mbps 802.11g
FREQUENCY
ACCEPTANCE
Ubiquitous Computing
16
IrDA,Bluetooth,andIEEE802.11
Type How Transmitted Freq. Speed Range Governing Body UsedWhere UsedFor KeyFeatures
Homes, Computers/PD As cheap; simple;low power lowpower;only 8devices; adaptive frequency
IrDA
Infraredlight
.1Mb/sec
36ft
Offices
Blue tooth
RadioWaves
2.4GHz
1Mb/sec
upto33ft
802.11a
RadioWaves
5GHz
54Mb/sec
2575ft
IEEE
Computers/ PDAs
802.11b
RadioWaves
2.4GHz
11Mb/sec
100150 ft
IEEE
Computers/ PDAs
802.11g
RadioWaves
2.5GHz
54Mb/sec
100150 ft
IEEE
Computers/ PDAs
Ubiquitous Computing
17
WIRELESSNETWORKS
WIRELESS LOCALAREANETWORK(WLAN)
Ubiquitous Computing
18
WHYWLAN?
Ubiquitous Computing
19
ChallengesandConstraintsofWLAN
Ubiquitous Computing
20
TwoWLANstandards
HighPerformanceEuropeanRadioLAN
IEEE802.11WLAN
Ubiquitous Computing
21
Bandwidthcapabilities
802.11boffers11mb/sec
Currentstandard 2.4GHzband
802.11awilldeliverupto54mb/sec
AlsoreferstoWiFi 5GHzband
802.11g
futurestandard Backwardswith802.11b
Ubiquitous Computing
22
IEEE802.11WLAN(MACSchemes)
DistributedCoordinationFunction(DCF)
PointCoordinationFunction(PCF)
Ubiquitous Computing
23
PhysicalLayer
Frequencyhoppingspreadspectrum(FHSS)
Directsequencespreadspectrum(DSSS)
IR
24
MultipleAccessStrategies
Comparisonofmultipleaccessstrategies: 1.FDMA A quite old technology, in which we divide the frequency band into different frequency channels and users share these channels in order to get access 2.TDMA it`s time division multiplexing technology, in which users time-share the used spectrum (e.g. PCM-technology) 3.CDMA in this technology all users use the same spectrum simultaneously, but the number of users is limited by multiple-access interference 4.SDMA in this, users share the spectrum in angular direction with the use of smart antennas Real systems use usually a hybrid of two or more of these multipleaccess strategies (growth strategy, complexity of systems, existing systems)
Ubiquitous Computing
25
ComparisionofMultipleAccessStrategies
modulation FDMA and TDMA relies on bandwith efficient modulation, CDMA - simple modulation, SDMA transparent source coding FDMA and TDMA- improves efficiency CDMA - improves efficiency SDMA transparent diversity FDMA and TDMA requires multiple transmitters or receivers TDMA - can be also frequency hopped CDMA - includes frequency diversity when implemented with RAKE receiver SDMA single antenna reduces space diversity handover FDMA and TDMA hard CDMA soft and SDMA potentially soft flexibility FDMA fixed data rate, TDMA data rate variable in discrete steps, CDMA can provide a variety of data retes without affecting signal in space, SDMA - transparentUbiquitous Computing 26
PhysicalLayer
Toomanygadgetswantwirelessspectrum:garageopeners,radio stations,WLAN,etc FCCallocateswirelessspectrum:somelicensed,someunlicensed.E.g Radio(Mirchi)94.5FMlicensed FCCsolvesdemandproblemsbylumpingmanyusersintoISMbands (900MHz,2.4GHz,5.5GHz) EachcountrydecidesitsISMbands.Only2.4GHzworldwide WLANsuseISMbands Interferencebetweendevicescanbeaproblem:usespreadspectrum FCCpreviouslymandatedspreadspectruminISMbands,droppedthis in2002 Result?MyhomephonenowinterfereswithWLAN Speedincreases802.11bgaremostlyfromPHYlayeradvances:e.g. moresymbolspernbits
Ubiquitous Computing
27
MACSublayerIssues
Ubiquitous Computing
Hidden/ExposedTerminal
RTS-CTS handshake before starting transmission solves hidden terminal, called Collision Avoidance Ubiquitous Computing 29
MACSubLayer
Ubiquitous Computing
30
802.11MACSubLayer
Infrastructure:usesAccessPoints(AP),oradhoc DistributedMACprotocol(CSMA/CA) RTSCTSDATAACKpacketsequence(ACKseachpkt) Retransmissions:giveupearly(7retriesinsteadof10inEthernet) becauseretriesdonothelpjamming. ExponentialbackoffalgorithmlikeEthernet Timesynchronization:APperiodicallybroadcaststime Priorityscheme:differentwaitperiodsfordifferenttypesofpackets, trafficcalledInterframeSpace(IFS).E.g.ongoingconversation (CTS,DATA,fragment)<newmultimediatraffic<nonmultimedia newtraffic Ubiquitous Computing 31
Topologies
InfrastructureMode Accesspoints
32
Elementsofawirelessnetwork
wirelesshosts laptop,PDA,IPphone runapplications maybestationary(non mobile)ormobile
network infrastructure
wirelessdoesnotalways meanmobility
Ubiquitous Computing
33
Elementsofawirelessnetwork
basestation typicallyconnectedto wirednetwork relayresponsiblefor sendingpacketsbetween wirednetworkandwireless host(s)initsarea e.g.,celltowers 802.11accesspoints
network infrastructure
Ubiquitous Computing
34
Elementsofawirelessnetwork
wirelesslink typicallyusedtoconnect mobile(s)tobasestation alsousedasbackbonelink multipleaccessprotocol coordinateslinkaccess variousdatarates, transmissiondistance
network infrastructure
Ubiquitous Computing
35
Elementsofawirelessnetwork
infrastructuremode basestationconnects mobilesintowirednetwork handoff:mobilechanges basestationproviding connectionintowired network
network infrastructure
Ubiquitous Computing
36
Elementsofawirelessnetwork
Adhocmode nobasestations nodescanonlytransmitto othernodeswithinlink coverage nodesorganizethemselves intoanetwork:route amongthemselves
Ubiquitous Computing
37
WirelessLinkCharacteristics
Differencesfromwiredlink.
.makecommunicationacross(evenapointtopoint)wirelesslink muchmoredifficult
Ubiquitous Computing
38
Wirelessnetworkcharacteristics
Multiplewirelesssendersandreceiverscreateadditionalproblems (beyondmultipleaccess):
A C B
As signal strength
C
Cs signal strength
Hiddenterminalproblem
space
Signalfading:
Ubiquitous Computing
39
802.11LANarchitecture
Internet
wirelesshostcommunicateswith basestation
basestation=accesspoint (AP)
AP BSS 1
AP
BSS 2
Ubiquitous Computing
40
802.11:Channels,association
APadminchoosesfrequencyforAP interferencepossible:channelcanbesameasthat chosenbyneighboringAP! host:mustassociatewithanAP scanschannels,listeningforbeaconframescontaining APsname(SSID)andMACaddress selectsAPtoassociatewith mayperformauthentication willtypicallyrunDHCPtogetIPaddressinAPs subnet
802.11b:2.4GHz2.485GHzspectrumdividedinto11channels atdifferentfrequencies
Ubiquitous Computing
41
IEEE802.11:multipleaccess
avoidcollisions:2+nodestransmittingatsametime 802.11:CSMAsensebeforetransmitting
802.11:nocollisiondetection!
C A B
C
Cs signal strength
space
Ubiquitous Computing
42
IEEE802.11MACProtocol:CSMA/CA
802.11sender 1ifsensechannelidleforDIFSthen
transmitentireframe(noCD) 2ifsensechannelbusythen startrandombackofftime timercountsdownwhilechannelidle transmitwhentimerexpires ifnoACK,increaserandombackoffinterval,repeat2
data
sender
DIFS
receiver
802.11receiver ifframereceivedOK
returnACKafterSIFS(ACKneededduetohidden terminalproblem)
SIFS
ACK
Ubiquitous Computing
43
Avoidingcollisions(more)
idea:allowsendertoreservechannelratherthanrandomaccessofdata
frames:avoidcollisionsoflongdataframes
senderfirsttransmitssmallrequesttosend(RTS)packetstoBSusing CSMA
RTSsmaystillcollidewitheachother(buttheyreshort)
BSbroadcastscleartosendCTSinresponsetoRTS RTSheardbyallnodes
sendertransmitsdataframe otherstationsdefertransmissions
44
CollisionAvoidance:RTSCTSexchange
Ubiquitous Computing
45
802.11frame:addressing
2
frame control
2
duration
2
seq control
6
address 4
02312
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
Ubiquitous Computing
46
802.11frame:addressing
Internet
H1 AP
R1 router
802.11 frame
Ubiquitous Computing
47
802.11frame:more
duration of reserved transmission time (RTS/CTS) 2
frame control
2
duration
02312
payload
4
CRC
seq control
2
Protocol version
2
Type
4
Subtype
1
To AP
1
From AP
1
More frag
1
Retry
1
Power mgt
1
More data
1
WEP
1
Rsvd
Ubiquitous Computing
48
PeerToPeer(AdhocMode)
Eachcomputerwithawirelessinterfacecan communicatedirectlywithalloftheothers
Ubiquitous Computing
49
InfrastructureMode
Accesspointactsasahub,providingconnectivity forthewirelesscomputers
Ubiquitous Computing
50
WirelessHardware
Ubiquitous Computing
51
WIRELESSNETWORKS
BLUETOOTH
Ubiquitous Computing
52
TheCoreConcept
Interconnecteddevicesformapersonalareanetwork(PAN)via lowerpowerRF
Typicalrange:10meters Maximumrange:100meters
SomePANdevicescanbestationary
PAN'scanbridgewithotherPAN'sseemlessly 53
Ubiquitous Computing
BlueToothArchitecture
Ubiquitous Computing
54
BluetoothArchitecture
Master/SlaveDefinition NetworkTopology
data
RobustAirProtocoland AdaptiveRange
voice
frequencyhopping
receivedsignalstrength indicator(RSSI) 55
Ubiquitous Computing
BluetoothArchitectureCont...
EstablishingNetwork Connections
messagetypes
PAGE INQUIRY
LinkTypes
Ubiquitous Computing
56
BluetoothPacketStructure
Packet Access Code
Header
Ubiquitous Computing
57
WIRELESSNETWORKS
SENSORSNETWORKS
Ubiquitous Computing
58
SensorsandSmartSpaces
Sensewhat?
Environmentaliseasy,simplyintegrate Humanisalittleharder
59
SensorNode
Ubiquitous Computing
60
SensorNetworking
Sensornetworkissimilartoadhocnetworkwithfewdifferences:
Manymorenetworknodes Sensornodesaredenselydeployed Deployment?Throwabunchintophenomenon Sensorsarepronetofailure Manynodes=>topologychangelikely Sensornodesusebroadcast,adhocnetworkstendtobepoint topoint Sensornodesmorelimitedpower,CPU,etc GloballydistinctID(IPaddress)notfeasiblebecauseof numberofnodes 61
Ubiquitous Computing
SensorProtocolStack
SensorMAClayer
Ubiquitous Computing
62
SensorNetworkLayer
63
SensorTransportLayer
Ubiquitous Computing
64
WIRELESSNETWORKS
MOBILITY
Ubiquitous Computing
65
Whatismobility?
spectrumofmobility,fromthenetworkperspective:
high mobility
no mobility
mobile user, passing through multiple access point while maintaining ongoing connections (like cell phone)
Ubiquitous Computing
66
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
Ubiquitous Computing
67
Mobility:morevocabulary
Permanent address: remains constant (e.g., 128.119.40.186) visited network: network in which mobile currently resides (e.g., 79.129.13/24)
home agent: entity in visited network that performs mobility functions on behalf of mobile.
68
Howdoyoucontactamobilefriend:
Considerfriendfrequentlychanging addresses,howdoyoufindher?
Ubiquitous Computing
69
Mobility:approaches
1.Letroutinghandleit:routersadvertisepermanentaddressof mobilenodesinresidenceviausualroutingtableexchange.
2.Letendsystemshandleit:
FIRSTAPPROACHISNOTSCALABLETOMILLIONS
70
Mobility:registration
home network visited network
foreign agent contacts home agent home: this mobile is resident in my network
Endresult:
Foreignagentknowsaboutmobile Homeagentknowslocationofmobile
Ubiquitous Computing
71
MobilityviaIndirectRouting
home agent intercepts packets, forwards to foreign agent foreign agent receives packets, forwards to mobile
visited network
3
home network
wide area network
Ubiquitous Computing
72
IndirectRouting:comments
Mobileusestwoaddresses:
foreignagentfunctionsmaybedonebymobileitself trianglerouting:correspondenthomenetworkmobile
inefficientwhen
correspondent,mobile areinsamenetwork
Ubiquitous Computing
73
IndirectRouting:movingbetweennetworks
supposemobileusermovestoanothernetwork
mobility,changingforeignnetworkstransparent:ongoing connectionscanbemaintained!
Ubiquitous Computing
74
MobilityviaDirectRouting
correspondent forwards to foreign agent foreign agent receives packets, forwards to mobile
visited network
4
home network
2 1
wide area network
Ubiquitous Computing
75
MobilityviaDirectRouting:comments
whatifmobilechangesvisitednetwork?
Ubiquitous Computing
76
Accommodatingmobilitywithdirectrouting
anchorforeignagent:FAinfirstvisitednetwork dataalwaysroutedfirsttoanchorFA whenmobilemoves:newFAarrangestohavedataforwarded fromoldFA(chaining)
foreignnetvisited atsessionstart
2 4 5 3
newforeign agent new foreign network
correspondent
correspondent agent
Ubiquitous Computing
77
MobileIP
RFC3220 hasmanyfeaturesweveseen:
threecomponentstostandard:
Ubiquitous Computing
78
MobileIP
MobileIP:indirectrouting
foreign-agent-to-mobile packet packet sent by home agent to foreign agent: a packet within a packet
dest: 79.129.13.2 dest: 128.119.40.186 dest: 128.119.40.186
dest: 128.119.40.186
Ubiquitous Computing
80
MobileIP:agentdiscovery
agentadvertisement:foreign/homeagentsadvertiseserviceby broadcastingICMPmessages(typefield=9)
0 type=9 8 code=0 =9 routeraddress 16 24 checksum =9 standard ICMPfields
type=16
length
registrationlifetime
0ormorecareof addresses
Ubiquitous Computing
81
MobileIP:registrationexample
home agent HA: 128.119.40.7
registration req.
COA:79.129.13.2 HA:128.119.40.7 MA:128.119.40.186 Lifetime:9999 identification:714 encapsulationformat .
registration req.
COA:79.129.13.2 HA:128.119.40.7 MA:128.119.40.186 Lifetime:9999 identification:714 .
registration reply
HA:128.119.40.7 MA:128.119.40.186 Lifetime:4999 Identification:714 .
Ubiquitous Computing
82
Mobility:GSMversusMobileIP
GSMelement CommentonGSMelement MobileIPelement
Homesystem GatewayMobile SwitchingCenter,or homeMSC.Home LocationRegister(HLR) VisitedSystem VisitedMobileservices SwitchingCenter. VisitorLocationRecord (VLR) MobileStationRoaming Number(MSRN),or roamingnumber
Homenetwork Homeagent
Visitednetwork
VisitedMSC:responsibleforsettingupcallsto/from Foreignagent mobilenodesincellsassociatedwithMSC.VLR: temporarydatabaseentryinvisitedsystem, containingsubscriptioninformationforeachvisiting mobileuser Routableaddressfortelephonecallsegment betweenhomeMSCandvisitedMSC,visibleto neitherthemobilenorthecorrespondent. Careofaddress
Ubiquitous Computing
83