Professional Documents
Culture Documents
Contents
MobileAdhocNetworks (MANETs)
Introduction Characteristics Routing
ReactiveRoutingprotocols ProactiveRoutingprotocols
WirelessSensorNetworks (WSNs)
WirelessMeshNetworks (WMNs)
Definition Characteristics Applications
ZigBee InternetofThings
MobileAdhocNetworks(MANETs): ConceptandTerminology
Concept
Networkscomposedofnodeswhichare
Wireless Mobile
Allnodescanbe
Source/destination Router
Adhoc
Forthis Improvisation
Nonetworkplanning Noinfrastructure
Redes espontaneas de las cuales pueden entrar y salir dispositivos. Hay movimiento de los dispositivos mobiles. Tipologia dinamica y variable.
03/04/2013
Battlefieldconditions
Unitshavetobeabletocarrythecommunicationsdevices
Portabledevices
Unitsmovementcannotbeconstrained
Wirelessdevices
B C
MobileAdhocNetworks(MANETs): Inthelasttenyears(I)
Popularityofwireless,portabledevices
Laptops,smartphones,etc. E.g.802.11technology
03/04/2013
Wirelesslinks
Hardwarelimitationsofportabledevices
Variablenetworktopology
Sin infraestructura podemos tener una red con una cobertura amplia si tenemos bastantes nodos. No necesitamos routers ni switches. Peor la capcidad es limitada porque los terminales son nodos a la vez. La topologia cambia constantemente y por lo tanto las rutas tambien cambian. Las rutas se pueden romper al salir dispositivos. Calidad de servicio mala.
TraditionalInternetroutingprotocols(e.g.RIP,OSPF)areNOT suitableforMANETsprotocols
RIP
Bandwidthandenergyconsumption
OSPF AS1 AS2
OSPF AS3
Los protocolos ms usados en internet, del protocolo IP. Se utilizan dos. Estos protocolos para redes inalambricas no se puede utilizar, porque esta pensado para redes fijas, no se adapta para redes dinamicas. No se adapta a este entorno. Ademas no tienen en cuenta las limitaicones de ancho de banda y de recursos energeticos. Se han hehco otros que se adaptan a la mobilidad y caracteristicas de estos enclaces. Las transmisiones 3 y memorias han de ser minimas para reducir el consumo de energia.
03/04/2013
NewroutingprotocolsweredevelopedforMANETs
Referenceworkstartedby ytheIETFMANETWorking gGroup p(WG) ( )inthelast 90s Themostpopularprotocolswerepublishedaround2003
Routingprotocolscanbeclassifiedinto:
Reactiveprotocols
Routesarefoundondemand se crean los enlaces cuando se pide. Si la comunicacion acaba, la ruta tambien.
Proactiveprotocols
Routesareperiodicallyupdated
Nostrategyisthebestinallscenariosandforall requirements!!
La ruta se mantiene. La informacion se envia ms raido porque los nodos saben por donde enviar. El problema es que para mantener la ruta hay que generar continuamente mensajes sin tener necesariamente que mantener la ruta.
Respuesta rapida y pocas limitaciones de energia: proactivo. Se mueven mucho, consumo critico, poco movimiento de informacion: reactivo.
Reactiveroutingprotocols
Routesarefoundondemand Goal:resourcesareonlyconsumedwhennecessary Advantages
Ifnodatahavetobetransmitted,routingprotocolmessagesarenottransmitted
Drawbacks
Datalatencyisvariable
Examples
AdhocOndemandDistanceVector(AODV)routingprotocol
RFC3561(2003)
DynamicSourceRoutingprotocol(DSR)
RFC4728(2007)
DynamicMANETOndemand(DyMO)routingprotocol
Workinprogress
03/04/2013
Proactiveroutingprotocols
Routesareupdated p periodically p y Goal:availabilityofroutesatanymoment Advantages
Lowandconstantlatency
Drawbacks
Controlmessagesaretransmittedevenwhennodatahavetobetransmitted
Examples
OptimizedLinkStateRouting(OLSR)protocol
RFC3626(2003)
TopologyBroadcastbasedonReversePathForwarding(TBRPF)
RFC3864(2004)
OLSRv2
Workinprogress
MobileAdhocNetworks(MANETs):AODV(I)
Reactivo: crea la ruta al momento.
Each routing table entry specifies the next hop in the path towards a destination
nivel 3
Routediscovery
TheoriginatorbroadcastsRouteRequest(RREQ)messages Como no conoce la ruta, envie este mensaje a todos. RREQs include
BROADCAST!
The node creates (or updates) a route entry to the previous hop If the node does not know a route to the destination, the node broadcasts the RREQ Otherwise, the node transmits a Route Reply (RREP) message to its next hop in the route towards the originator (backward route)
03/04/2013
MobileAdhocNetworks(MANETs):AODV(II)
Routediscovery(continued)
WhenanodereceivesaRREP
A route entry for the destination is created (forward route) The next hop of this route is the node from which the RREP was received If the node is not the originator, then it forwards the RREP to its next hop in the backward route
Example (I)
MobileAdhocNetworks(MANETs):AODV(III)
EL nodo 2 mira si conoce el destino.
Example(II)
RREQ
2
DestNexthop x.y.z.1 x.y.z.1
3
DestNexthop x.y.z.1 x.y.z.2
Broadcast, porque no sabe donde esta el destinatario. La ruta es la informacion que tienen los nodos. Una vez establecida la ruta, ya pone en concreto la direccion.
03/04/2013
MobileAdhocNetworks(MANETs):AODV(IV)
Example(III)
RREP
RREP
2
DestNexthop x.y.z.1 x.y.z.3 x.y.z.2 x.y.z.3
3
Ya tiene la tabla de encaminamiento.
MobileAdhocNetworks(MANETs):AODV(V)
Example(IV)
1
DestNexthop x.y.z.2 x.y.z.3 x.y.z.2 x.y.z.2
Routecreated
si quiere enviar un mensaje al dos, se lo envia al dos directamente. si envia al tres, el destinatario es el tres pero el next hop es el dos,porque es por donde ha de pasar.
03/04/2013
MobileAdhocNetworks(MANETs):AODV(VI)
Initalized to ACTIVE_ROUTE_TIMEOUT (3 seconds by default) Updated if the route is used After ACTIVE ACTIVE_ROUTE_TIMEOUT ROUTE TIMEOUT of inactivity inactivity, the route is invalidated (and it is finally deleted) RREQsincludeaTTLfieldinordertolimittheroutediscoveryscope
Expandingringsearch
ReceivingmultipleRREQs
Originator
Destination
TTL, cada vez que se da un salto, ese TTL se descuenta y cuando llegue a 0, se elemina el mensaje, Para evitar que un mensaje se quede en el sistema.
MobileAdhocNetworks(MANETs):AODV(VII)
Route maintenance
Route discovery starts again The route is invalidated A Route Error (RERR) message is sent to affected precursor nodes to inform about the unreachable destinations through the broken link The node invalidates any route that used the RERR sender to reach a destination included in the RERR The RERR is propagated to precursor nodes The same process is repeated until the RERR reaches the originator node
03/04/2013
MobileAdhocNetworks(MANETs):AODV(VIII)
Localconnectivitymaintenance
Thegoalistodetectthelossofconnectivitywithaneighbor Linklayermechanisms
Examples Alinklayertransmissionfailure(i.e.anACKisnotreceived afteradataframe transmission) Nivel dos, de reconocimiento a cada trama que transmito. Deteccion muy PassiveACK rapida. Veryquickdetection(e.g.30ms) Implementationrequirescommunicationwithlayertwodriver(limitedapproach!!) PeriodicaltransmissionofHELLOmessages(bydefault,every1second) IfALLOWED ALLOWED_HELLO_LOSS HELLO LOSS(b (byd default, f l equal lto2)consecutive i messagesarenot receivedbyaneighbor,thelinkisbroken Averagelinkfailuredetectiondelayis1.5s(Why?) Easyimplementationandindependentofthelayertwodriver Envia trama de error a la fuente.
Upperlayermechanisms
Nivel 3, el mas utilizado, para mantener la ruta, ven si se mantiene el enlace enviando los HELLO,cada segundo.
Contents
MobileAdhocNetworks (MANETs)
Introduction Characteristics Routing
ReactiveRoutingprotocols ProactiveRoutingprotocols
WirelessSensorNetworks (WSNs)
WirelessMeshNetworks (WMNs)
Definition Characteristics Applications
ZigBee InternetofThings
03/04/2013
WirelessMeshNetworks(WMNs)
Crear una red con muy poca infraestructura pero ms fija.
Concept
Networks composed of wireless nodes All nodes can be hosts and routers Two types of nodes
Mesh routers Mesh clients Main purpose: routing May have multiple wireless interfaces May implement gateway functions de nivel 2.
Mesh routers
Mesh clients
Main purpose: receiving/generating data Typically, only one wireless interface No gateway functionality
WirelessMeshNetworks(WMNs)
Types of WMNs
InfrastructurebasedWMN
HybridWMN
ClientbasedWMN
10
03/04/2013
WirelessMeshNetworks(WMNs): WMNsVs.MANETs
redes mesh
planificacion de soporte.
Are purely spontaneous, improvised networks Do not account with infrastructure All nodes have the same features
Applications
MITRoofnet
Internet access (except for client-based WMNs) And MANET applications (whenever suitable)
Freifunk (Berlin)
11
03/04/2013
Contents
MobileAdhocNetworks (MANETs)
Introduction Characteristics Routing
ReactiveRoutingprotocols ProactiveRoutingprotocols
WirelessSensorNetworks (WSNs)
WirelessMeshNetworks (WMNs)
Definition Characteristics Applications
ZigBee InternetofThings
Sensores conectados entre si por redes de sensores. Aqui si que hay una normativa, solo para sensores, que no tienen alimentacion, con poca duracion de bateria.
WirelessSensorNetworks(WSNs)
Wirelesssensornode
Atleasthasonesensor
Sensor:devicethatconvertsthemeasurementofaphysicalpropertyand/or quantityintoasignal(e.g.electricalsignal)
Processingandwirelessnetworkingcapabilities Mayhaveactuators
Actuator:devicethatcancarryoutanactioninresponsetoacertainstimulus
Verybroaddefinition...
12
03/04/2013
WirelessSensorNetworks(WSNs)
Wirelesssensornodeexamples
Mica2dot
TelosB
WNGsown design
Smartdust
Wirelesssensornodesgenerallyhavealimitedenergysource
Batteryoperated Energy E h harvesting ti
Limitedapproach
Solarpanel
WirelessSensorNetworks(WSNs)
AWSNmayaccountwithaverylargenumberofnodes Topologies
Tree:Sinkorientedcommunication Mesh:Anytoanycommunication
Sinknode
Treetopology
Meshtopology
13
03/04/2013
WirelessSensorNetworks(WSNs):Applications
Homeautomation
Lightcontrol Remotecontrol Smartenergy Remotecare Securityandsafety
WirelessSensorNetworks(WSNs):Applications
Urbanautomation
Wateringcontrol Garbagecontaineroccupancy
GarbageContainer
Environmentalmonitoring
Pollutionmonitoring Meteorologicalinformation
Structuralmonitoring
E.g.Goldengatebridge
46hopWSN GoldenGateBridge
14
03/04/2013
Amendments:
IEEE802.15.4a(2007)
Precisionlocation,ultrawideband(UWB)
IEEE802.15.4c(2009),IEEE802.15.4d(2009)
PHYforChineseandJapanesemarkets
IEEE802.15.4e(workinprogress)
MACamendmentstoIEEE802.15.42006
IEEE802.15.4f(workinprogress)
RFIDapplications
IEEE802.15.4g(workinprogress)
Smartutilitynetworks
Currently,IEEE802.15.4isthemostpopularradiotechnology forWSNs
Openstandard
1 10 16
20 40 62.5
20 40 250
IEEE802.15.42006
Frequencyband Numberof channels Spreading technique Modulation Symbolrate perchannel (kbaud) Bitrateper channel(kbps)
1 10 1 10
12.5 50 25 62.5
15
03/04/2013
ReducedFunctionDevice(RFD)
CanonlycommunicatewithFFDs Suitableforverylimiteddevices
Deviceroles
PANcoordinator
FFD
Coordinator
FFD
Device
RFD,FFD
Networkconfigurations
Beaconenabled
dan permiso de transmitir en momentos determinados. Acoordinatortransmitsbeacons BeaconsareusedforsynchronizationandPANidentification
Nonbeaconenabled
Peertopeertopology
16
03/04/2013
OptionalContentionFreePeriod(CFP)
GuaranteedTimeSlots(GTS)
Nonbeaconenablednetworks
Unslotted CSMA/CA
Eliminar colisiones con slots.
Unreliablemode
ACKsarenotused
InterFrameSpace(IFS)
LongIFS(LIFS) ShortIFS(SIFS)
17
03/04/2013
Applicationlayer
Commands
DefinedbyZigBeeAlliance
DefinedbyIEEE802.15.4
Slo limita los niveles basicos, los dos primeros. A partir de aqui hace propuestas. (ZigBee).
18
03/04/2013
WirelessSensorNetworks(WSNs): ConnectingWSNstotheInternet
ConnectingWSNstotheInternet
Remotemanagementofsensornodes Remoteaccessto
Collecteddata Actuators
ThenumberofWSN solutionshasexploded!
Protocoltransalationgateways
Consistencyproblemsbetweenthetwosidesofthegateway Difficulttomanage
Se ha de utilizar Ip, conveniente IP v6.
AdvantagesoftheInternetProtocol
Openandfreelyavailable
Favorsinteroperability
Universalprotocol
Supportedbyalmostanytypeofdevice Supportsalmostanytypeofapplication
Testedatahugescale
AdvantagesoftheInternetProtocolversion6
Largeaddressspace
128bitaddresses
Toolsforunattendedoperation
Statelessaddressautoconfiguration NeighborDiscovery
TheindustryisconvergingtowardsIP!!
19
03/04/2013
WirelessSensorNetworks(WSNs): UseofIPinWSNs(II)
Feasibility
Source:A.Dunkels,J.P.Vasseur,IPforSmartObjects,Whitepaper#1,2008
uIP (ContikiOS)
Nanostack (TinyOS)
uIPv6 (ContikiOS)
lightweightIP
TheInternetofThings
Newparadigmonthe Internet
Internet
Formerly
20
03/04/2013
WirelessSensorNetworks(WSNs): ProtocolarchitecturefortheInternetofThings
IETFCoREWG
Applicationlayer functionalityfor constraineddevices(e.g. wirelesssensornodes) CoAP
IETFROLLWG
Routingfunctionalityfor sensornodes RPL
IETF6LoWPANWG
TransmissionofIPv6 packetsontopofIEEE 802.15.4networks 6LoWPANadaptationlayer
WG=WorkingGroup
WirelessSensorNetworks(WSNs):6LoWPAN
IPv6overLowPowerWirelessPersonalAreaNetworks(6LoWPAN) Dataunitsizes
IPv6requiressupportforpacketsofatleast1260bytes ThemaximumIEEE802.15.4framesizeis127bytes IPv6packet
40bytes (IPv6header)
802.15.4frame
81bytes (worstcasepayload)
Tramas muy cortas, direciones de 128 bits. Por lo tanto se ha de fragmentar y comprimir la cabecera.
FragmentationandIPv6headercompressionareneeded
Fragmentationandoldheadercompressionarealreadyspecified:RFC4944 (2007) Newheadercompressionisinprogress
Also,optimizationofIPv6NeighborDiscovery
Inprogress
21