MC Notes 11
MC Notes 11
com
CS8601 MOBILE COMPUTING
UNIT – III
2
TEXT BOOKS:Jochen Schiller, Mobile Communications, PHI, Second Edn, 2003.
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Why Mobile IP?
❑ What do cellular networks and wireless LANs provide?
❑ Wireless connectivity
❑ Mobility at the data link layer
❑ What is Dynamic Host Configuration Protocol (DHCP)?
❑ It provides local IP addresses for mobile hosts
❑ Is not secure
❑ Does not maintain network connectivity when moving around
❑ What they do not provide:
❑ Transparent connectivity at the network layer
❑ Mobility with local access
❑ The difference between mobility and nomadicity!
❑ Mobile IP provides network layer mobility
❑ Provides seamless roaming. ‘‘Extends’’ the home network over the
entire Internet
3
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
IP Overview 1/3
❑ IP Addressing :
❑ Dotted Decimal Notation: 32 bits (4x8) used to
represent IPv4 addresses - 192.19.241.18
❑ Network Prefix and Host Portions: p - prefix, h - host,
p + h = 32. If p = 24 then h = 32 - 24 = 8. Using above
address the network prefix will be 192.19.241 and host
will be 18. For those of you familiar with subnet masks,
“p” represents the number of 1’s in the subnet mask. If
p = 24, subnet mask is 255.255.255.0, if p = 26, subnet
mask is 255.255.255.192.
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
4
www.edubuzz360.com
IP Overview 2/3
❑ IP Routing:
❑ Network prefix is used for routing. Routing tables are used to
look up next hop and the interface on the router that is to be
used.
❑ In the routing tables we use the following notation:
target/prefix length, e.g., 192.19.241.0/24, or
192.19.241.192/26.
❑ If two subnet masks/prefixes fit the address, the one with the
largest prefix is chosen for routing. E.g., a router with the
following 3 entries in its table: 7.7.7.99/32 (p=32 host specific)
and 7.7.7.0/24 (0<p<32 network prefix) and 0.0.0.0/0 (p=0
default) will use entry 2 for an IP packet with destination
7.7.7.1 and entry 3 for destination 192.33.14.12.
5
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
IP Overview 3/3
6
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Motivation for Mobile IP
❑ IP Routing
❑ based on IP destination address, network prefix (e.g. 129.13.42)
determines physical subnet
❑ change of physical subnet implies change of IP address to have a
topologically correct address (standard IP) or needs special entries in the
routing tables
❑ Specific routes to end-systems?
❑ requires changing all routing table entries to forward packets to the right
destination
❑ does not scale with the number of mobile hosts and frequent changes in
the location, security problems
❑ Changing the IP-address?
❑ adjust the host IP address depending on the current location
❑ almost impossible to find a mobile system, DNS updates take long time
❑ TCP connections break, security problems
7
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
What Mobile IP does?
❑ Mobile IP solves the following problems:
❑ if a node moves without changing its IP address it will be unable to
receive its packets,
❑ if a node changes its IP address it will have to terminate and restart its
ongoing connections everytime it moves to a new network area (new
network prefix).
❑ Mobile IP is a routing protocol with a very specific purpose.
❑ Mobile IP is a network layer solution to node mobility in the
Internet.
❑ Mobile IP is not a complete solution to mobility, changes to the
transport protocols need to be made for a better solution (i.e., the
transport layers are unaware of the mobile node’s point of
attachment and it might be useful if, e.g., TCP knew that a wireless
link was being used!).
8
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Requirements to Mobile IP (RFC 2002)
❑ Transparency
❑ mobile end-systems keep their IP address
❑ continuation of communication after interruption of link possible
❑ point of connection to the fixed network can be changed
❑ Compatibility
❑ support of the same layer 2 protocols as IP
❑ no changes to current end-systems and routers required
❑ mobile end-systems can communicate with fixed systems
❑ Security
❑ authentication of all registration messages
❑ Efficiency and scalability
❑ only little additional messages to the mobile system required (connection
typically via a low bandwidth radio link)
❑ world-wide support of a large number of mobile systems in the whole
Internet
9
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Mobile IP Terminology
❑ Mobile Node (MN)
❑ system (node) that can change the point of connection
to the network without changing its IP address
❑ Home Agent (HA)
❑ system in the home network of the MN, typically a router
❑ registers the location of the MN, tunnels IP datagrams to the COA
❑ Foreign Agent (FA)
❑ system in the current foreign network of the MN, typically a router
❑ forwards the tunneled datagrams to the MN, typically also the default
router for the MN
❑ Care-of Address (COA)
❑ address of the current tunnel end-point for the MN (at FA or MN)
❑ actual location of the MN from an IP point of view
❑ can be chosen, e.g., via DHCP
❑ Correspondent Node (CN)
❑ communication partner
10
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Mobile IP Operation: Summary
❑ Consists of 3 steps:
❑Agent discovery,
❑Registration, and
❑Routing/Tunneling
11
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Operation Summary 1/3
12
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Operation Summary 2/3
13
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Operation Summary 3/3
❑ Routing/Encapsulation/Tunneling: consists
of the delivery of the packets to the mobile
node at its current care of address.
❑ Sender does not need to know that the
destination is a MN.
❑ HA intercepts all packets for the MN and
passes them along to MN using a tunnel.
❑ MN communicates directly with the CN.
❑ Referred to as Triangle Routing
14
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Example network
HA
MN
router
end-system router
15
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Data transfer to the mobile system
HA
2
MN
FA foreign
network
16
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Data transfer from the mobile system
HA
1 MN
FA foreign
network
17
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Overview
COA
foreign
Internet network
CN router
3.
home router router
2. MN
network HA FA
4.
foreign
Internet network
1.
CN router
18
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Network integration
19
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Agent advertisement
0 7 8 15 16 23 24 31
type code checksum
#addresses addr. size lifetime
router address 1
preference level 1
router address 2
preference level 2
...
...
20
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Registration
MN FA HA MN HA
21
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Mobile IP registration request
0 7 8 15 16 23 24 31
identification
extensions . . .
22
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Processing Registration Messages 1/3
❑ A MN, depending on which registration scenario it is in, will figure what
addresses to use in the various fields of the Registration request message.
❑ Link layer addresses are tricky:
❑ A MN may not use ARP if it is using a FA COA. It needs to use the address of
the FA as the destination address.
❑ If it is using a collocated COA, then it uses ARP to locate the default router using
its COA as source. Note that if the ‘R’ bit is set is uses the FA address as the
destination address.
❑ For de-registration is uses ARP to locate the HA link address and it uses its own
home address for the ARP message.
❑ For network layer addresses (i.e., IP addresses):
❑ It uses the FA address as destination address when using the FA COA and its
own home address as the source address.
❑ If using a collocated COA it uses its COA as source address and the HA address
as destination address. Note that if the ‘R’ bit is set then is must use the same
addresses as for the FA COA scenario.
❑ For de-registration it uses its own home address as source and the HA address as
destination.
23
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Processing Registration Messages 2/3
❑ For the FA:
❑ A FA may refuse a Registration request for a number of reasons: lifetime
too long, authentication failed, requested tunneling not supported, cannot
handle another MN (current load too high).
❑ If an FA does not refuse the request it relays it to the HA. Relaying is
different from forwading as the FA is required to process the packet and
create new headers.
❑ Some important fields of the request message are recorded for use later
on: MN link layer address, MN IP address, UDP source port, HA IP
address, identification number and requested lifetime.
❑ Regarding a Registration reply message, the FA can refuse it and send a
decline to the MN is it finds the reply from the HA to be invalid.
Otherwise it updates its list of visiting MNs and begins acting on behalf of
the MN.
24
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Processing Registration Messages 3/3
❑ For a HA
❑ The HA will determine, as the FA did, whether
it will accept the request. If it does not it
returns a code in the reply message indicating
the cause of the failed request.
❑ If the request is accepted, the reply is sent back
by reversing all the IP addresses and UDP port
numbers.
❑ The HA updates the binding table
corresponding to that MN dependent upon the
nature of the request.
25
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing/Tunneling 1/5
26
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing/Tunneling 2/5
27
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing/Tunneling 3/5
28
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing/Tunneling 4/5
❑ How to ‘fool’ the routing table into handling tunneled
packets at the FA?
❑ The same procedure is used as above.
❑A packet coming in with a COA that is one of the FA
addresses’ is handled by the routing routine.
❑A host specific address (its own address) in the routing table
points to the higher layers and the packet is passed on to a
virtual interface.
❑ The virtual interface consists of a process that decapsulates
the packet and re-routes it to the routing routine.
❑ The routing routine routes the packet normally based upon a
host specific entry that is the MN’s home address (for which
it has the link layer address!).
29
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing/Tunneling 5/5
❑ How does a MN route its packets?
❑ It needs to find a router to send all its packets to.
❑ It can select a router in one of a number of ways dependent upon
whether it has a FA COA or a collocated COA.
❑ Having a FA COA does not imply that the MN needs to use it as its
default router for sending packets. It can use any router that sends
advertisements or that is advertised in the Agent Advertisement
message.
❑ If the MN is using a collocated COA it needs to listen for router
advertisements or is it hears none, use DHCP to find the default
router.
❑ Determining the link layer address is another issue. Collocated COA
MNs can use ARP. FA COA must note the link layer address when
they receive router advertisements or agent advertisements.
30
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Encapsulation Process
31
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Types of Encapsulation
➢ Three types of encapsulation protocols are specified
for Mobile IP:
❑ IP-in-IP encapsulation: required to be supported. Full IP
header added to the original IP packet. The new header
contains HA address as source and Care of Address as
destination.
❑ Minimal encapsulation: optional. Requires less overhead but
requires changes to the original header. Destination address
is changed to Care of Address and Source IP address is
maintained as is.
❑ Generic Routing Encapsulation (GRE): optional. Allows
packets of a different protocol suite to be encapsulated by
another protocol suite.
➢ Type of tunneling/encapsulation supported is
indicated in registration.
32
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
IP in IP Encapsulation
33
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Minimum Encapsulation
➢ Minimal encapsulation (optional)
❑ avoids repetition of identical fields
❑ e.g. TTL, IHL, version, TOS
❑ only applicable for unfragmented packets, no space left
for fragment identification
ver. IHL TOS length
IP identification flags fragment offset
TTL min. encap. IP checksum
IP address of HA
care-of address COA
lay. 4 protoc. S reserved IP checksum
IP address of MN
original sender IP address (if S=1)
TCP/UDP/ ... payload
34
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Generic Routing Encapsulation
original
original data
header
GRE original
outer header original data
header header
ver. IHL TOS length
IP identification flags fragment offset
TTL GRE IP checksum new header new data
IP address of HA
Care-of address COA
CRKS s rec. rsv. ver. protocol
checksum (optional) offset (optional)
key (optional)
sequence number (optional)
routing (optional)
ver. IHL TOS length
IP identification flags fragment offset
TTL lay. 4 prot. IP checksum
IP address of CN
IP address of MN
TCP/UDP/ ... payload
35
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing techniques
36
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Optimization of packet forwarding
➢ Change of FA
❑ packets on-the-fly during the change can be lost
❑ new FA informs old FA to avoid packet loss, old FA
now forwards remaining packets to new FA
❑ this information also enables the old FA to release
resources for the MN
37
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Change of foreign agent
CN HA FAold FAnew MN
request
update
ACK
data data
MN changes
location
registration registration
update
ACK
data
data data
warning
update
ACK
data
data
t
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Problems with Triangle Routing
➢ Triangle routing has the MN correspond directly
with the CN using its home address as the SA
❑ Firewalls at the foreign network may not allow that
❑ Multicasting: if a MN is to participate in a multicast
group, it needs to use a reverse tunnel to maintain its
association with the home network.
❑ TTL: a MN might have a TTL that is suitable for
communication when it is in its HM. This TTL may not
be sufficient when moving around (longer routes
possibly). When using a reverse tunnel, it only counts
as a single hop. A MN does not want to change the TTL
everytime it moves.
➢ Solution: reverse tunneling
39
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Reverse tunneling (RFC 2344)
HA
2
MN
FA foreign
network
1. MN sends to FA
3 2. FA tunnels packets to HA
CN by encapsulation
3. HA forwards the packet to the
receiver (standard case)
receiver
40
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Mobile IP with reverse tunneling
41
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Mobile IP and IPv6
➢ Mobile IP was developed for IPv4, but IPv6 simplifies the
protocols
❑ security is integrated and not an add-on, authentication of
registration is included
❑ COA can be assigned via auto-configuration (DHCPv6 is one
candidate), every node has address autoconfiguration
❑ no need for a separate FA, all routers perform router
advertisement which can be used instead of the special agent
advertisement
❑ MN can signal a sender directly the COA, sending via HA not
needed in this case (automatic path optimization)
❑ „soft“ hand-over, i.e. without packet loss, between two subnets is
supported
MN sends the new COA to its old router
the old router encapsulates all incoming packets for the MN and forwards
them to the new COA
authentication is always granted
42
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Problems with Mobile IP
➢ Security
❑ authentication with FA problematic, for the FA typically belongs to
another organization
❑ no protocol for key management and key distribution has been
standardized in the Internet
❑ patent and export restrictions
➢ Firewalls
❑ typically mobile IP cannot be used together with firewalls, special
set-ups are needed (such as reverse tunneling)
➢ QoS
❑ many new reservations in case of RSVP
❑ tunneling makes it hard to give a flow of packets a special treatment
needed for the QoS
➢ Security, firewalls, QoS etc. are topics of current research
and discussions!
43
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Security in Mobile IP
➢ Security requirements (Security Architecture for the
Internet Protocol, RFC 1825)
❑ Integrity
any changes to data between sender and receiver can be detected
by the receiver
❑ Authentication
sender address is really the address of the sender and all data
received is really data sent by this sender
❑ Confidentiality
only sender and receiver can read the data
❑ Non-Repudiation
sender cannot deny sending of data
❑ Traffic Analysis
creation of traffic and user profiles should not be possible
❑ Replay Protection - receivers can detect replay of messages
44
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
IP security architecture 1/2
➢ Two or more partners have to negotiate security
mechanisms to setup a security association
❑ typically, all partners choose the same parameters and
mechanisms
➢ Two headers have been defined for securing IP packets:
❑ Authentication-Header
guarantees integrity and authenticity of IP packets
if asymmetric encryption schemes are used, non-repudiation can also be
guaranteed
IP-Header
IP header Authentification-Header
authentication header UDP/TCP-Paket
UDP/TCP data
45
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
IP security architecture 2/2
➢ Mobile Security Association for registrations
❑ parameters for the mobile host (MH), home agent (HA), and foreign
agent (FA)
➢ Extensions of the IP security architecture
❑ extended authentication of registration
MH FA registration reply HA
registration reply
46
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Key distribution
➢ Home agent distributes session keys
FA MH
response:
EHA-FA {session key}
HA EHA-MH {session key}
47
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DHCP: Dynamic Host Configuration Protocol
➢ Application
❑ simplification of installation and maintenance of networked
computers
❑ supplies systems with all necessary information, such as IP
address, DNS server address, domain name, subnet mask, default
router etc.
❑ enables automatic integration of systems into an Intranet or the
Internet, can be used to acquire a COA for Mobile IP
➢ Client/Server-Model
❑ the client sends via a MAC broadcast a request to the DHCP
DHCPDISCOVER
server (might be via a DHCP relay)
DHCPDISCOVER
server client
client relay
48
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DHCP - protocol mechanisms
server client server
(not selected) initialization (selected)
DHCPDISCOVER DHCPDISCOVER
determine the determine the
configuration configuration
DHCPOFFER DHCPOFFER
collection of replies
selection of configuration
DHCPREQUEST DHCPREQUEST
(reject) (options) confirmation of
configuration
DHCPACK
initialization completed
release
DHCPRELEASE delete context
49
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DHCP characteristics
➢ Server
❑ several servers can be configured for DHCP, coordination not
yet standardized (i.e., manual configuration)
➢ Renewal of configurations
❑ IP addresses have to be requested periodically, simplified
protocol
➢ Options
❑ available for routers, subnet mask, NTP (network time
protocol) timeserver, SLP (service location protocol) directory,
DNS (domain name system)
➢ Big security problems!
❑ no authentication of DHCP information specified
50
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Ad hoc networks
➢ Standard Mobile IP needs an infrastructure
❑ Home Agent/Foreign Agent in the fixed network
❑ DNS, routing etc. are not designed for mobility
➢ Sometimes there is no infrastructure!
❑ remote areas, ad-hoc meetings, disaster areas
❑ cost can also be an argument against an infrastructure!
➢ Main topic: routing
❑ no default router available
❑ every node should be able to forward
A B C
51
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing examples for an ad-hoc network
N1
N1
N2
N3
N2
N3
N4 N4
N5 N5
good link
time = t1 time = t2
weak link
52
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Traditional routing algorithms
➢ Distance Vector
❑ periodic exchange of messages with all physical neighbors that
contain information about who can be reached at what distance
❑ selection of the shortest path if several paths available
➢ Link State
❑ periodic notification of all routers about the current state of all
physical links
❑ router get a complete picture of the network
➢ Example
❑ ARPA packet radio network (1973), DV-Routing
every 7.5s exchange of routing tables including link quality
updating of tables also by reception of packets
routing problems solved with limited flooding
53
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Problems of traditional routing algorithms
54
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSDV (Destination Sequenced Distance Vector)
56
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Dynamic source routing II
if the packet has already been received earlier (identified via ID) then discard
the packet
otherwise, append own address and broadcast packet
❑ sender receives packet with the current path (address list)
➢ Optimizations
❑ limit broadcasting if maximum diameter of the network is known
❑ caching of address lists (i.e. paths) with help of passing packets
stations can use the cached information for path discovery (own paths or
paths for other hosts)
➢ Maintaining paths
❑ after sending a packet
wait for a layer 2 acknowledgement (if applicable)
listen into the medium to detect if other stations forward the packet (if
possible)
request an explicit acknowledgement
❑ if a station encounters problems it can inform the sender of a packet or
look-up a new path locally
57
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Clustering of ad-hoc networks
Internet
cluster
super cluster
58
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Interference-based routing
➢ Routing based on assumptions about interference
between signals
N1
N2
R1
S1 N3
N4
N5 N6 R2
S2
N8 N9
N7
neighbors
(i.e. within radio range)
59
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Examples for interference based routing
60
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Questions ?
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
UNIT – IV
Unit - IV
MOBILE AD-HOC NETWORKS
*Prasant Kumar Pattnaik, Rajib Mall, “Fundamentals of Mobile Computing”, PHI Learning Pvt. Ltd, New Delhi
2
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Synopsis
Ad-Hoc Basic Concepts
Characteristics of MANETs
Applications of MANETs
MANET Design Issues
Routing
Essential of Traditional Routing Protocols
Popular Routing Protocols
Vehicular Ad-Hoc networks ( VANET)
MANET Vs VANET
Security
3
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Types of MANET
6
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Characteristics of MANET
Autonomous and infrastructureless
Multi-hop routing
Dynamic network topology
Device heterogeneity
Energy constrained operation
Bandwidth constrained variable capacity links
Limited physical security
Network scalability
Self-creation, self-organization and self-administration
7
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Applications of MANET
Tactical networks
Emergency services
Commercial and civilian environments
Home and enterprise networking
Education
Entertainment
Sensor networks
Context aware services
Coverage extension
8
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing
To find and maintain routes between nodes in a
dynamic topology with possibly uni-directional
links, using minimum resources.
Routing Protocols
Proactive protocols (table-based)
Traditional distributed shortest-path
protocols.
Based on periodic updates. High routing
overhead.
10
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing
Reactive (on-demand) protocols
Discover routes whenever needed to
reduce routing overhead.
No route created a priori. It is created
in response to a need. But introduces
delay.
Source-initiated route discovery.
Hybrid protocols
11
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing Algorithms
Objective of routing algorithms is to calculate
‘good’ routes
Routing algorithms for both datagrams and virtual
circuits should satisfy:
Correctness
Simplicity
Robustness
Stability
Optimality
Fairness
Impossible to satisfy everything at the same time
12
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
15
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Distance Vector
Each node maintains two tables:
Distance Table: Cost to each node via each
outgoing link
Routing Table: Minimum cost to each node and
next hop node
Nodes exchange messages that contain
information on the cost of a route
Reception of messages triggers recalculation
of routing table
17
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
18
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
19
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Characteristics of DV Routing
Periodic Updates: Updates to the routing tables are sent at
the end of a certain time period. A typical value is 90
seconds.
Triggered Updates: If a metric changes on a link, a router
immediately sends out an update without waiting for the
end of the update period.
Full Routing Table Update: Most distance vector routing
protocol send their neighbors the entire routing table (not
only entries which change).
Route invalidation timers: Routing table entries are invalid
if they are not refreshed. A typical value is to invalidate an
entry if no update is received after 3-6 update periods.
20
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
21
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Distance Vector vs. Link State Routing
In link state routing, each node has a complete map of the
topology
A B C A B C A B C
A B C
node can calculate
the new route
D E F
Difficulty: All nodes need to A B C
D E F
network D E F D E F
22
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
23
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
24
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
25
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Dijkstra’s
Link State Algorithm
Received IP Routing
Database
LSAs Table
26
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Dijkstra’s Shortest Path Algorithm
Input: Graph (N,E) with
N the set of nodes and E N × N the set of edges
dvw link cost (dvw = infinity if (v,w) E, dvv = 0)
s source node.
Output: Dn cost of the least-cost path from node s to node n
M = {s};
for each n M
Dn = dsn;
while (M all nodes) do
Find w M for which Dw = min{Dj ; j M};
Add w to M;
for each n M
Dn = minw [ Dn, Dw + dwn ];
Update route;
enddo
27
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
MANET vs. Traditional Routing
Every node is potentially a router in a MANET, while
most nodes in traditional wired networks do not route
packets
Nodes transmit and receive their own packets and, also,
forward packets for other nodes
Topologies are dynamic in MANETs due to mobile nodes,
but are relatively static in traditional networks
Routing in MANETs must consider both Layer 3 and
Layer 2 information, while traditional protocols rely on
Layer 3 information only
Link layer information can indicate connectivity and
interference
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
28
www.edubuzz360.com
29
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
31
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
32
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Popular Routing Protocols
Optimized Link State Routing Protocol (OLSR)
Destination Sequence Distance Vector(DSDV)
Ad hoc On-demand Distance Vector(AODV)
Dynamic Source Routing(DSR)
Flow-state in DSR
Power-Aware DSR-based
Cluster Based Routing Protocol
Fisheye State Routing protocol
Zone-based Hierarchical Link State Routing
Protocol
33
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
34
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
35
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSDV (Table Entries)
Sequence number originated from destination.
Ensures loop freeness.
36
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSDV (Route Advertisements)
Advertise to each neighbor own routing information
Destination Address
Metric = Number of Hops to Destination
Destination Sequence Number
Rules to set sequence number information
On each advertisement increase own destination
sequence number (use only even numbers)
If a node is no more reachable (timeout) increase
sequence number of this node by 1 (odd sequence
number) and set metric =
37
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSDV (Route Selection)
Update information is compared to own routing
table
Select route with higher destination sequence
number (This ensure to use always newest
information from destination)
Select the route with better metric when
sequence numbers are equal.
A 1 B 2 C
Dest. Next Metric Seq Dest. Next Metric Seq Dest. Next Metric Seq.
A A 0 A-550 A A 1 A-550 A B 1 A-550
B B 1 B-100 B B 0 B-100 B B 2 B-100
C B 3 C-586 C C 2 C-588 C C 0 C-588
38
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSDV (Route Advertisement)
A 1 B 1 C
Dest. Next Metric Seq Dest. Next Metric Seq Dest. Next Metric Seq.
A A 0 A-550 A A 1 A-550 A B 2 A-550
B B 1 B-102 B B 0 B-102 B B 1 B-102
C B 2 C-588 C C 1 C-588 C C 0 C-588
39
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSDV (Respond to Topology Changes)
Immediate advertisements
Information on new Routes, broken Links, metric
change is immediately propagated to neighbors.
Full/Incremental Update:
Full Update: Send all routing information from own
table.
Incremental Update: Send only entries that has
changed. (Make it fit into one single packet)
40
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
(D, 0, D-000)
A B C D
Dest. Next Metric Seq. Dest. Next Metric Seq. Dest. Next Metric Seq.
A A 0 A-550 A A 1 A-550 A B 2 A-550
B B 1 B-104 B B 0 B-104 B B 1 B-104
C B 2 C-590 C C 1 C-590 C C 0 C-590
D D 1 D-000
41
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
A B C D
Dest. Next Metric Seq. Dest. Next Metric Seq. Dest. Next Metric Seq.
A A 0 A-550 A A 1 A-550 A B 2 A-550
B B 1 B-104 B B 0 B-102 B B 1 B-102
C B 2 C-590 C C 1 C-592 C C 0 C-592
D C 2 D-000 D D 1 D-000
42
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSDV (No loops, No count to infinity)
2. B does its broadcast
-> no affect on C (C knows that B
has stale information because C has
higher seq. number for destination D)
-> no loop -> no count to infinity 1. Node C detects broken Link:
-> Increase Seq. Nr. by 1
(only case where not the destination
sets the sequence number -> odd
number)
(D, 2, D-100) (D, 2, D-100)
A B C D
Dest. Next Metric Seq. Dest.c Next Metric Seq. Dest. Next Metric Seq.
… … … … … … … … …
D B 3 D-100 D C 2 D-100 D D D-101
43
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
A B C D
Dest. Next Metric Seq. Dest.c Next Metric Seq. Dest. Next Metric Seq.
… … … ... … … … ... … … …
D B 4
3 D-100 D C 3
2 D-100 D B
D 1 D-100
D B D-101 D C D-101 D D D-101
44
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
45
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
46
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSR General
Route discovery
Is the mechanism by which a source
node S, obtains a route to a destination D
Used only when S attempt to send a
packet to D and does not already knows
a route to D
47
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSR General
Route maintainance
Is the mechanism by which source node S is
able to detect if the network topology has
changed and can no longer use its route to D
If S knows another route to D, use it
Else invoke route discovery process again to
find a new route
Used only when S wants to send a packet to D
48
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
DSR General
49
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
D S Source node
D Destination node
Z Id=2, {S, Y}
W Z Neighbor nodes
Id=2, {S, W}
V
RREQ packet
W
Y
Id=2, {S} U
S Id=2, {S, Y}
52
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
53
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
The source
Removes from the routing table the broken route
Retransmission of the original packet is a function of upper
layers (e.g. TCP)
It searches the routing table for another route, or start a
new Route Discovery process
55
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Z RERR packet
RERR(Z, D)
Intermediate V
node sents a
RERR
W
RERR(Z, D) Y
U
Route Table
D: S, W, Z, D S
V: S, Y, V
56
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
AODV Overview
AODV is a packet routing protocol designed for use in
mobile ad hoc networks (MANET)
Intended for networks that may contain thousands of
nodes
One of a class of demand-driven protocols
The route discovery mechanism is invoked only if a
route to a destination is not known
UDP is the transport layer protocol
Source, destination and next hop are addressed using IP
addressing
Each node maintains a routing table that contains
information about reaching destination nodes.
Each entry is keyed to a destination node.
57
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
AODV Overview
Routing table size is minimized by only including next
hop information, not the entire route to a destination
node.
Sequence numbers for both destination and source are
used.
Managing the sequence number is the key to efficient
routing and route maintenance
Sequence numbers are used to indicate the relative
freshness of routing information
Updated by an originating node, e.g., at initiation of
route discovery or a route reply.
Observed by other nodes to determine freshness.
58
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
AODV Overview
59
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
60
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
61
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
RREQ Message
A
B?
B?
B?
B?
B?
B? B?
B
62
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
63
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
RREP Message
A
A
A
B
64
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
65
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Message routing
Source
G
A RREQ RREQ
RREQ
RREP RREQ
B D RREQ
RREP
RREQ
RREQ RREP
F Destination
C RREQ
RREQ
E
66
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Congestion Handling
67
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Congestion Handling
68
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
AODV Routing
There are two phases
Route Discovery
Route Maintenance
Each node maintains a routing table with
knowledge about the network.
AODV deals with route table management.
Route information maintained even for short lived
routes – reverse pointers.
69
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Discovery
Broadcast RREQ messages.
Intermediate nodes update their routing table
Forward the RREQ if it is not the destination.
Maintain back-pointer to the originator.
Destination generates RREQ message.
RREQ sent back to source using the reverse pointer
set up by the intermediate nodes.
RREQ reaches destination, communication starts.
71
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
72
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Discovery
73
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Maintenance
74
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
75
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
76
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
RERR Messages
Message is broadcasted when
A node detects that a link with adjacent
neighbor is broken (destination no longer
reachable).
If it gets a data packet destined to a node
for which it does not have an active route
and is not repairing.
If it receives a RERR from a neighbor for
one or more active routes.
77
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
RERR Processing
78
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Destination Sequence #
Update sequence # for case i and ii
Copy sequence # for case iii
Invalidate route entry
Update Lifetime field as (current time +
DELETE_PERIOD)
Only now may route entry be deleted
79
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
A Combined Protocol
It is possible to exploit the good features of
both reactive and proactive protcols and the
Zone routing protocol does that.
The proactive part of the protocol is restricted
to a small neighbourhood of a node and the
reactive part is used for routing across the
network.
This reduces latency in route discovery and
reduces the number of control messages as
well.
81
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Routing Zones
Each node S in the network has a routing
zone. This is the proactive zone for S as S
collects information about its routing zone in
the manner of the DSDV protocol.
If the radius of the routing zone is k, each node
in the zone can be reached within k hops from
S.
The minimum distance of a peripheral node
from S is k (the radius).
82
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
A Routing Zone
K L
A
B
I
G
S
C E
D
83
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
84
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
85
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
86
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Intrazone Routing
Each node collects information about all
the nodes in its routing zone proactively.
This strategy is similar to a proactive
protocol like DSDV.
Each node maintains a routing table for its
routing zone, so that it can find a route to
any node in the routing zone from this
table.
87
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Intrazone Routing
88
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
89
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Keeping Track of Nodes in a Routing Zone
90#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
B
S
A C
D
E
F
91#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
B
S
A C
E D
F
92#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
B
S
A C
D
E
F
93#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Interzone Routing
The interzone routing discovers routes to the
destination reactively.
Consider a source (S) and a destination (D).
If D is within the routing zone of S, the
routing is completed in the intrazone routing
phase.
Otherwise, S sends the packet to the
peripheral nodes of its zone through
bordercasting.
94#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Bordercasting
The bordercasting to peripheral nodes can be
done mainly in two ways
By maintaining a multicast tree for the
peripheral nodes. S is the root of this tree.
Otherwise, S maintains complete routing
table for its zone and routes the packet to
the peripheral nodes by consulting this
routing table.
95#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
S C
B
D H
97#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
98#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
99#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Route Maintenance
When there is a broken link along an active
path between S and D, a local path repair
procedure is initiated.
A broken link is always within the routing
zone of some node.
B
A
100#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Route Maintenance
Hence, repairing a broken link requires
establishing a new path between two nodes
within a routing zone.
The repair is done by the starting node of the
link (node A in the previous diagram) by
sending a route repair message to node B
within its routing zone.
This is like a RREQ message from A with B as
the destination.
101#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
102#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
103#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
104#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
105#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Termination Strategies
In the promiscuous mode of operation
according to IEEE 802.11 standards, a node
can overhear passing traffic.
Also, a node may act as a routing node
during bordercasting in the intrazone routing
phase.
Whenever P receives a RREQ message
through any of these means, it remembers
which routing zone the message is meant for.
106#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Termination Strategies
107#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
A Q
B
P
C
X
N
108
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Evaluation of ZRP
When the radius of the routing zone is 1, the
behaviour of ZRP is like a pure reactive
protocol, for example, like DSR.
When the radius of the routing zone is
infinity (or the diameter of the network),
ZRP behaves like a pure proactive protocol,
for example, like DSDV.
The optimal zone radius depends on node
mobility and route query rates.
109
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Control Traffic
Control traffic generated by a protocol is the
number of overhead packets generated due to
route discovery requests.
In ZRP, control traffic is generated due to
interzone and intrazone routing.
Hello messages transmitted for neighbour
discovery are not considered as control
traffic since mobility has no effect on it.
110
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
111#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
112
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
115
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
116
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
117
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Expected advantages from multicast
routing
Providing efficient bandwidth
Reducing communication cost
Efficient delivery of data
Supporting dynamic topology
118
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Technical constraints for multicast
routing
Minimizing network load
Providing basic support for reliable
transmission
Designing optimal routes
Providing robustness, efficiency, and
adaptability
119
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Classification
120
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
VANETs
A VANET (Vehicular Ad hoc NETwork) is a special kind
of MANET in which packets are exchanged between
mobile nodes (vehicles) traveling on constrained paths
123
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Inter-vehicle communication (IVC)
Systems
IVC systems are completely infrastructure-free; only
onboard units (OBUs) sometimes also called in-vehicle
equipment (IVE) are needed.
Single-hop and multi-hop IVCs (SIVCs and MIVCs).
SIVC systems are useful for applications requiring
short-range communications (e.g., lane merging,
automatic cruise control)
MIVC systems are more complex than SIVCs but can
also support applications that require long-range
communications (e.g., traffic monitoring)
124
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
IVC systems
125
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Roadside-to-Vehicle Communication
(RVC) Systems
RVC systems assume that all communications
take place between roadside infrastructure
(including roadside units [RSUs]) and OBUs.
Depending on the application, two different
types of infrastructure can be distinguished
Sparse RVC (SRVC) system
Ubiquitous RVC (URVC) system
126
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
128
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Hybrid Vehicular Communication
(HVC) Systems
HVC systems are proposed for extending the range of
RVC systems.
In HVC systems vehicles communicate with roadside
infrastructure even when they are not in direct wireless
range by using other vehicles as mobile routers.
An HVC system enables the same applications as an
RVC system with a larger transmission range.
The main advantage is that it requires less roadside
infrastructure. However, one disadvantage is that
network connectivity may not be guaranteed in
scenarios with low vehicle density.
129
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
130
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
131
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
132
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
133
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
134
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
VANETs
Like MANETs:
They self-organize over an evolving topology
They may rely on multi-hop communications
They can work without the support of a fixed
infrastructure
Unlike MANETs:
They have been conceived for a different set of
applications
They move at higher speeds (0-40 m/s)
They do not have battery and storage constraints
135
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
VANETs
Communication modes:
Vehicle-to-Vehicle (V2V) among vehicles
Vehicle-to-Infrastructure (V2I), between vehicles and
Road-Side Units (RSUs)
Vehicle-to-X (V2X), mixed V2V-V2I approach
V2V
RSU
V2I V2I
V2V
RSU
136
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
VANETs Applications
Active Road-Safety Applications
To avoid the risk of car accidents: e.g., cooperative collision
warning, pre-crash sensing, lane change, traffic violation
warning
Traffic efficiency and management applications
To optimize flows of vehicles: e.g., enhanced route
guidance/navigation, traffic light optimal scheduling, lane
merging assistance
Comfort and Infotainment applications
To provide the driver with information support and
entertainment: e.g., point of interest notification, media
downloading, map download and update, parking access,
media streaming, voice over IP, multiplayer gaming, web
browsing, social networking
137
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
VANETs
VANETs applications exhibit very
heterogeneous requirements
Safety applications require reliable, low-latency,
and efficient message dissemination
Non-safety applications have very different
communication requirements, from no special
real-time requirements of traveler information
support applications, to guaranteed Quality-of-
Service needs of multimedia and interactive
entertainment applications
138
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Connectivity in VANETs
139
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Connectivity in VANETs
Network infrastructure
Vehicles connect to a centralized server or a backbone
network such as the Internet, through the road-side
infrastructure, e.g., cellular base stations, IEEE 802.11
Access Points, IEEE 802.11p RSUs
140
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Connectivity in VANETs
Inter-vehicle communications
Use of direct ad-hoc connectivity among vehicles via
multihop for applications requiring long-range
communications (e.g., traffic monitoring), as well as
short-range communications (e.g., lane merging)
141
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Connectivity in VANETs
Hybrid configuration
Use of a combination of V2V and V2I. Vehicles in
range directly connect to the road-side infrastructure,
while exploit multi-hop connectivity otherwise
142
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Connectivity in VANETs
Vehicles’ connectivity is determined by a
combination of several factors, like:
Space and time dynamics of moving vehicles
(i.e., vehicle density and speed)
Density of RSUs
Radio communication range RSU
Vehicle
density/speed
Communication
Connectivity range
Vehicular
Time of day
scenario
Market • Urban
penetration • Highway
143
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
144
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
145
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
146
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Examples
147#
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
148
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Problems in MANET
Routing
Security and Reliability
Quality of Service
Internetworking
Power Consumption
149
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
SECURITY
150
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Issues
Secure Multicasting
Secure routing
Privacy-aware Routing
Key management
Intrusion detection System
151
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Issues Contd..
Secure multicasting: Is a communication method where
a single data packet can be transmitted from a sender and
replicated to a set of receivers.
Secure routing: Most MANET routing protocols are
vulnerable to attacks that can freeze the whole network.
Need some solutions that work even if some nodes
compromised.
Privacy-aware Routing: Building routing protocols that
prevent intermediate nodes from performing traffic
analysis.
Schemes for minimizing size of crypto-tags( digital
signatures) are needed.
152
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Issues Contd..
Key Management
security goals in MANET are mainly achieved
through trusted Certificate Authority (CA)
compromised CA can easily damage the entire
network.
Intrusion detection and response schemes:
Anomaly detection is difficult in MANETs
(ex: types of attacks and their source).
collaborative IDS schemes are needed.
153
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Security Goals
Authentication
Confidentiality
Integrity
Non-repudiation
Availability
Detection and Isolation
154
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Security Goals
Authentication: A node must know the identity of the peer node it
is communicating with. Without authentication, an attacker could
gain sensitive information and interfere with other nodes
Confidentiality: Ensures certain information is never disclosed to
unauthorized entities.
Integrity: Message being transmitted is never corrupted.
Non-Repudiation: The sender cannot later deny sending the
information and the receiver cannot deny the reception.
Availability: Nodes should be available for communication at all
times. A node need continue to provide services despite attacks.
E.g.: Key management service.
Detection and Isolation: Require the protocol can identify
misbehaving nodes and render them unable to interfere with
routing.
155
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
IDS-MANET
IDS: Intrusion detection System which is used to detect and report
the malicious activity in ad hoc networks.
Ex: Detecting critical nodes using IDS
Intrusion Detection System (IDS) can collect and analyze audit data
for the entire network.
Critical node is a node whose failure or malicious behavior
disconnects or significantly degrades the performance of the
network.
Packets may be dropped due to network congestion or because a
malicious node is not faithfully executing a routing algorithm.
Researchers have proposed a number of collaborative IDS systems.
Some of the schemes are neighbor-monitoring, trust-building, and
cluster-based voting schemes which are used to detect and report
the malicious activity in ad hoc networks.
156
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
www.edubuzz360.com
Questions ?
157
https://play.google.com/store/apps/details?id=com.sss.edubuzz360