distributed systems mobile networking€¦ · mobile networking rik sarkar university of edinburgh...

25
Distributed Systems Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, 2016

Upload: others

Post on 28-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

DistributedSystems

MobilenetworkingRikSarkar

UniversityofEdinburgh

Fall2016

Distributed Systems, Edinburgh, 2016

Page 2: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Howdomobilephoneswork?

•  CellularbasestaEons(antennas+cpu)withhexagonalcells

Distributed Systems, Edinburgh, 2016

Page 3: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Channelassignments

•  EachbasestaEonusesasetof“channels”(e.g.frequencies)tocommunicatewithmobilenodesinitscell

•  Usuallyadjacentcellsdonotusesamechannel– Toavoidinterference

•  ButsamechannelcanbeusedatdistantbasestaEons

Distributed Systems, Edinburgh, 2016

Page 4: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

SpaEalReuse

•  Thisfeatureofusingthesamechannelindifferentcellsiscalled“spaEalreuse”– Samechannelcanbeusedindifferentpartsof“space”

•  DistancebetweenbasestaEonscanvary– Fewhundredmetersinurbanregion– Severalkilometersinopenspaces/ruralregions

Distributed Systems, Edinburgh, 2016

Page 5: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

•  Oneantennahasafixednumberofchannels•  Ifitscellislarge,theremaybemanypeopleinit,andtheantennamaynotbeabletohandle

•  HencecloserantennaplacementinciEes•  ButsElllimitedcapacityduetointerferencefromotherantennasusingsamechannel

Distributed Systems, Edinburgh, 2016

Page 6: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Channelassignments

•  Inaregion,theremaybedifferentmobileoperators

•  Theyusuallybidforrightstousedifferentpartsofthespectrum– Dependingonwheretheyneedmorechannelsorlessetc

– SpectrumaucEons– Thendecidewhichchanneltouseinwhichcell

Distributed Systems, Edinburgh, 2016

Page 7: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Therealmobilityissue

•  Whathappenswhenamobilephonemovesfromonecelltoanothercell?

Distributed Systems, Edinburgh, 2016

Page 8: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Terminology•  Mobilenode•  Homenetwork

–  Thenetworkthat“owns”themobilenumber•  Eg.EEorvodafoneorO2…•  Local

•  HomelocaEonregister–  Databaseofprofile,currentlocaEonetcofmobilenumbers

•  Visitednetwork– Wherethemobilecurrentlyresides–  VisitorlocaEonregister:databaseofnodescurrentlyinregion

Distributed Systems, Edinburgh, 2016

Page 9: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Call

•  Goesfirsttohomenetwork•  WhichreturnsthecurrentlocaEonofthemobile(itsvisitednetwork)

•  ThenthecallgoestotheactuallocaEon

Distributed Systems, Edinburgh, 2016

Page 10: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Handoff

•  Whenmobilemovesfromonecelltoanother–  It’scommunicaEonishandedofftothenewcell

•  Detectedbyweaksignalfromcell1butstrongsignalforcell2

•  Orforloadbalancing•  ExecutedbybasestaEonsandMSC

Distributed Systems, Edinburgh, 2016

Mobile Switching Center + VLR

Page 11: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Internetissues

Distributed Systems, Edinburgh, 2016

Page 12: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Internetissues

•  Cellularsystemsarefineforcalling,notforinternet

•  InternetrouEngisIP–based•  IPisgeographybased•  Whathappenswhenamobilephonemovestoadifferentarea?Orsimplytoadifferentcell?

Distributed Systems, Edinburgh, 2016

Page 13: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Internetissues

•  SocommunicaEonfromMNisdisrupted.•  MNmaybeabletore-iniEalizeeverything,butthatisundesirable

•  WewantapacketforIPXtosEllbedeliveredtoMN

Distributed Systems, Edinburgh, 2016

Page 14: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Internetissues

•  SupposeanMNhadIPaddressXinitsiniEalsubnet(localareanetwork)s1(incell1)

•  NowtheMNmovestoadifferentsubnets2– Xisnotavalidaddressins2– RoutersontheinternetwillsendpacketsforIPXtos1,nevertos2.

Distributed Systems, Edinburgh, 2016

Page 15: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

SoluEon:IPinIPencapsulaEon

•  WhenMNmoves,itinformsvisitednetworkofitsIPX

•  Homeagent–  AprocessonhomenetworkthatinterceptspacketsforIPX

–  SendsittoIPY(IPofforeignagent)•  Foreignagent(correspondingprocessonvisitednetwork)–  Receivespacket–  UnpackstoseeitisintendedforX–  DeliversthroughMAClayeraddress

Distributed Systems, Edinburgh, 2016

data X

Y data X

Page 16: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

MobileIP

•  SolvestherouEngproblem•  However,oniniEalmove,somepacketsoracksmaygetlost/delayed– TransportlayerthinksthereiscongesEon– Slowsdown– …

Distributed Systems, Edinburgh, 2016

Page 17: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Moreadvancedthings

•  Withadvancingtechnology•  Newfeaturesarecroppingupinmobilenets•  Newissuesareappearing

Distributed Systems, Edinburgh, 2016

Page 18: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

LocalizaEoninwirelessnetworks

•  Canbedonebasedonsignalstrengths– Decreaseswithdistance

•  TrilateraEon–threedistancessufficetolocateapoint– SignalstrengthfromthreeormorewirelesstransmiherswithknownlocaEon

– ApproximatelocalizaEonduetovariaEoninsignalpropagaEon,noiseetc

Distributed Systems, Edinburgh, 2016

Page 19: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

LocaEoninmobilenets

•  Canbedoneusingthreecellulartowers– Eitheratthemobilephone– Oratcellnetwork

•  NewpossibiliEes– PredicthandoffsfrommoEon,makepreparaEonsearly

– Learn/predictuserbehavior– GivelocaEonbasedrecommendaEonsetc…

Distributed Systems, Edinburgh, 2016

Page 20: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Privacyissues•  LocaEonisconsideredprivateinformaEon•  TrackinglocaEonalltheEmeisconsideredintrusive

•  Nowaytopreventcellcompaniesfromdoingit…•  Atthemobilephoneend,effortsarebeingmadetofuzzlocaEons– GivesomeinformaEonforlocaEonbasedservicestorun

– AvoidsomeotherinformaEon,oravoidpreciselocaEons

•  Context/acEvityinformaEonisalsoprivate…

Distributed Systems, Edinburgh, 2016

Page 21: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

Femto-cellnetworks

•  Smallpersonalizedcellantennas(~10mrange)– Plugintoyourwirelessrouter

•  EvenbeherspaEalreuse•  Lessorganized,trickiertocoordinatechannelassignmentetc

•  Possibilityofchannelclashwithmacrocells

Distributed Systems, Edinburgh, 2016

Page 22: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

BeamformingdirectedcommunicaEon

•  SendssignalsinaparEculardirecEon– UsesmulEpleantennastogethertransmijngstdifferentphases

– DestrucEveinterferenceensuresthatsignaldoesnottravelinotherdirecEons

– EasytochangedirecEonsquickly•  Anglecanrangefrom20or30degreestoafewdegrees(narrowbeam)

Distributed Systems, Edinburgh, 2016

Page 23: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

BeamformingdirectedcommunicaEon

•  Usuallyaround60GHzfrequency•  Highsupportedbandwidth•  Goodforhidefvideo,largedatavolumesetc•  Atthisrange,signalhashighahenuaEonfromair– Shortrange(fewmetersto100meters)

•  TogetherwithdirecEonalityimpliesveryeffecEvespaEalreuse

Distributed Systems, Edinburgh, 2016

Page 24: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

BeamformingdirectedcommunicaEon

•  Challenges– Easilyaffectedbyobstacles– Bothtransmiherandreceiverneedtobe“looking”ateach-otherattherightEme

•  Mediumaccessbecomesharder

– Mobilitycancreateachallengeof“tracking”adevice

Distributed Systems, Edinburgh, 2016

Page 25: Distributed Systems Mobile networking€¦ · Mobile networking Rik Sarkar University of Edinburgh Fall 2016 Distributed Systems, Edinburgh, ... • Suppose an MN had IP address X

MobilecompuEng

•  Mobilewirelessdevicesaregoingtobeevenmorepopular

•  Moreapps/services/media•  Greatneedforwirelessbeandwidth

– Currentinfrastructureisnotsufficient•  Newtechnologies•  Simultaneously,detecEonofcollecEvecontext,groupsetcforbeheradapEveservices

Distributed Systems, Edinburgh, 2016