Professional Documents
Culture Documents
OUTLINE
Network architecture
MAC protocols Routing protocols Denial of service attacks Solution to Denial of service attack
INTRODUCTION
An Ad-hoc network is a local area network or some other small network, especially one with wireless (or temporary plug in connections), in which some of the network
devices are the part of the network only for the duration of a communications
session.
Allows new network devices to be quickly added. Each user has a unique network address that is recognized as the part of the network.
Collection of nodes that do not rely on a predefined infrastructure Auto-configurable network and Self organizing Nodes are mobile and hence have dynamic network topology. Nodes in ad-hoc networks play both the roles of routers and terminals. Routing protocol required
EXAMPLES
Classroom
Large IT campus
Employees of a company moving within a large campus with PDAs, laptops, and cell phones
Customers spend part of the day in a networked mall of specialty shops, coffee shops, and restaurants
AD HOC NETWORK
FEATURES
There are certain features that can determine the efficiency and effectiveness of wireless ad
hoc network.
Knowledge of nodal location Effect to topology changes Adaptation to radio communication environment Power consciousness
Ad-hoc Networks
No fixed base stations, very rapid deployment. Highly dynamic network topologies, with multi-hop. Hostile environment (losses, noise) and irregular connectivity. Ad-hoc network automatically forms and conforms to change.
Relatively favorable environment and stable connectivity. Detailed planning before base stations can be installed.
MANET
A Mobile Ad-hoc Network (MANET) is a collection of autonomous nodes or terminals which communicate with each other by forming a multi-hop radio network and maintaining connectivity in a decentralized manner over relatively bandwidth constrained wireless links..
Each device in a MANET is free to move independently in any direction, and will therefore change its links to other devices frequently.
The topology is highly dynamic and frequent changes in the topology may be hard to predict.
A node with no remaining power, or one that is off, is not currently a part of the network.
Even if the source and the destination nodes are not within each others
communication range, data packets are forwarded to the destination by relaying transmission through other nodes that exist between the two nodes.
Lack of a centralized entity Network topology changes frequently and unpredictably Routing and Mobility Management Channel access/Bandwidth availability Hidden/Exposed station problem Lack of symmetrical links Physical security is limited due to the wireless transmission. Affected by higher loss rates, and can experience higher delays and jitter than fixed networks due to the wireless transmission.
As nodes are battery operated (power constraint), energy savings are an important system design criterion.
NETWORK ARCHITECTURE
MANETs is formed by set of mobile nodes such as laptops, mobile phones etc.
In multi hop communication, host communicate using intermediate hosts as many coverage area intersects with each other.
CELLULAR WIRELESS
Space divided into cells A base station is responsible to communicate with hosts in its cell Mobile hosts can change cells while communicating
Application
Transport
Network
Link
Physical
MAC PROTOCOLS
The topology is highly dynamic and frequent changes in the topology may be hard to predict.
MAC is responsible for resolving the conflicts among different nodes for channel access.
Hidden terminals
A sends to B, C cannot receive A C wants to send to B, C senses a free medium (CS fails) collision at B, A cannot receive the collision (CD fails) A is hidden for C
Exposed terminals
B sends to A, C wants to send to another terminal (not A or B) C senses carrier, finds medium in use and has to wait A is outside the radio range of C, therefore waiting is not necessary C is exposed to B
Ad hoc network MAC protocols can be classified into three types: Contention-based protocols Contention-based protocols with reservation mechanisms Contention-based protocols with scheduling mechanisms Other MAC protocols
MAC Protocols for Ad Hoc Wireless Networks
Contention-Based Protocols
Sender-Initiated Protocols
Single-Channel Protocols
MACAW FAMA
Asynchronous Protocols
MACA/PR RTMAC
PCM RBAR
Contention-based protocols
Single-channel sender-initiated protocols: A node that wins the contention to the channel can make use of the entire bandwidth.
Multichannel sender-initiated protocols: The available bandwidth is divided into multiple channels.
protocol.
Synchronous protocols: All nodes need to be synchronized. Global time synchronization is difficult to achieve.
Asynchronous protocols: These protocols use relative time information for effecting reservations.
21
Node scheduling is done in a manner so that all nodes are treated fairly and no node is starved of bandwidth.
Scheduling-based schemes are also used for enforcing priorities among flows
whose packets are queued at nodes.
Other protocols are those MAC protocols that do not strictly fall under the above
categories.
RTS (request to send) :sender request the right to send from a receiver with a short RTS packet before it sends a data packet
CTS (clear to send) :receiver grants the right to send as soon as it is ready to receive
The neighbor node that overhears an RTS packet has to defer its own transmission until the associated CTS packet is transmitted.
Then any node overhearing a CTS packet would defer for the length of
expected data transmission When a node wants to transmit a data packet, it first transmit a RTS (Request To Send) frame.
The receiver node, on receiving the RTS packet, if it is ready to receive the data packet, transmits a CTS (Clear to Send) packet.
Once the sender receives the CTS packet without any error, it starts
If a packet transmitted by a node is lost, the node uses the binary exponential back-off (BEB) algorithm to back off a random interval of
The binary exponential back-off mechanism used in MACA might starves flows sometimes.
MACA EXAMPLES
A and C want to send to B A sends RTS first C waits after receiving CTS from B
A RTS CTS B CTS C
B wants to send to A, C to another terminal now C does not have to wait for it cannot receive CTS from A
A RTS CTS B C
25
RTS
Limitations
MACA does not provide ACK RTS-CTS approach does not always solve the hidden node problem Example
A sends RTS to B B sends CTS to A; At the same time, D sends RTS to C The CTS & RTS packets collide at C A transmits data to B; D resends RTS to C; C sends CTS to D The data & CTS packets collide at B
MACAW
The sender senses the carrier to see and transmits a RTS (Request To Send) frame if no nearby station transmits a RTS.
see CTS, then keep quiet. see RTS but not CTS, then keep quiet until the CTS is back to the sender.
Collisions
There is no collision detection. The senders know collision when they dont receive CTS. They each wait for the exponential backoff time.
27
RTS-CTS-DS-DATA-ACK
RTS from A to B CTS from B to A Data Sending (DS) from A to B Data from A to B ACK from B to A Random wait after any successful/unsuccessful transmission
Significantly higher throughput than MACA Does not completely solve hidden & exposed node problems
RTS-CTS exchanges over a signaling channeling Data transmission over a separate data channel
Receiver sends out a busy tone, while receiving a data packet over the signaling
channel
down transceivers
A node powers itself off if it has nothing to transmit and its neighbor is transmitting
Send DATA & ACK with the min power required to communicate between the
sender and receiver
Based on the received signal strength of the RTS/CTS packet, adjust the power
Drawbacks
Two channels: one for busy tone & another for data
Request Power To Send (RTPS) & Accept Power To Send (APTS) on the data channel
Every receiver periodically sends out a busy tone Sender does carrier sensing
a data channel for data packet transmissions a control channel used to transmit the busy tone signal
When a node is ready for transmission, it senses the channel to check whether the busy tone is active.
If not, it turns on the busy tone signal and starts data transmissions Otherwise, it reschedules the packet for transmission after some random rescheduling delay.
Any other node which senses the carrier on the incoming data channel also transmits the busy tone signal on the control channel, thus, prevent two neighboring nodes from transmitting at the same time.
Dual Busy Tone Multiple Access Protocol (DBTMAP) is an extension of the BTMA scheme.
a data channel for data packet transmissions a control channel used for control packet transmissions (RTS and CTS packets) and also
ROUTING PROTOCOLS
overhead
MANET PROTOCOLS
Proactive Protocols
Reactive Protocols
Table driven
Continuously evaluate routes No latency in route discovery Large capacity to keep network information current
On Demand
Route discovery by some global search
Send periodic updates of the routes. Each node uses routing information to store the location information of
other nodes in the network and this information is then used to move
data among different nodes in the network.
37
Hosts perform periodic & triggered updates, issuing a new sequence number
Sequence number indicates the freshness of a route
Routes with more recent sequence numbers are preferred for packet
forwarding
TOPOLOGY CHANGES
Any route through a hop with a broken link is also assigned a metric of
routes are assigned new sequence numbers by any host and immediately broadcast via a triggered update
DSDV OPERATION
DAMPING FLUCTUATIONS
Routes preferred if later sequence numbers, or smaller metric for same sequence
numbers
Problem : Table fluctuations if worse metrics are received first, causing a ripple of triggered updates
Discard if id is in <initiator, request id> or node is in route record If node is the target, route record contains the full route to the target; return
a route reply
Use piggybacking
Sender truncates all routes which use nodes mentioned in route error Initiate route discovery
Z
S B A H I C G K D N E F M L
[S]
S B A H I C G K D E F M
Z
S B A H I C [S,C] G K D N E [S,E] F M L
Node H receives packet RREQ from two neighbors: potential for collision
Z
S B A H I C G [S,C,G] K D N E F [S,E,F] M L
Node C receives RREQ from G and H, but does not forward it again, because node C has already forwarded RREQ once
Z
S B A H I C G K D [S,C,G,K] N E F [S,E,F,J] M L
Nodes J and K both broadcast RREQ to node D Since nodes J and K are hidden from each other, their transmissions may collide
Z
S B A H I C G K D N E F [S,E,F,J,M]
Node D does not forward RREQ, because node D is the intended target of the route discovery
RREP is sent on a route obtained by reversing the route appended to received RREQ
Z
S B A H I C G K D N E RREP [S,E,F,J,D] F M L
Node S on receiving RREP, caches the route included in the RREP When node S sends a data packet to D, the entire route is included in the packet header
Intermediate nodes use the source route included in a packet to determine to whom a packet should be forwarded
DATA [S,E,F,J,D]
S B A H I C G K D E F M
When node S finds route [S,E,F,J,D] to node D, node S also learns route [S,E,F]
to node F
When node K receives Route Request [S,C,G] destined for node, node K learns route [K,G,C,S] to node S
When node F forwards Route Reply RREP [S,E,F,J,D], node F learns route [F,J,D] to node D
When node E forwards Data [S,E,F,J,D] it learns route [E,F,J,D] to node D A node may also learn a route when it overhears Data Problem: Stale caches may increase overheads
Route Cache
OPTIMIZATIONS
Piggybacking
when network becomes partitioned, buffer packets and use exponential back-off for route discovery
Listen to route replies promiscuously to remove entries Use negative information to ignore corrupt replies
A single route discovery may yield many routes to the destination, due to intermediate nodes replying from local caches
DSR: DISADVANTAGES
Packet header size grows with route length due to source routing
Flood of route requests may potentially reach all nodes in the network
Potential collisions between route requests propagated by neighboring nodes
Increased contention if too many route replies come back due to nodes replying using their local cache
AODV
Route Requests (RREQ) are forwarded in a manner similar to DSR When a node re-broadcasts a Route Request, it sets up a reverse path pointing towards the source AODV assumes symmetric (bi-directional) links
When the intended destination receives a Route Request, it replies by sending a Route Reply (RREP)
Route Reply travels along the reverse path set-up when Route Request is forwarded
RREQ arrives at a node that has current route to the destination ( larger/same
sequence number)
Reverse Path
Broadcast route request (RREQ) < source_addr, source_sequence-# , broadcast_id, dest_addr, dest_sequence_#, hop_cnt >
RREQ uniquely identified by <source_addr , broadcast_id> Route reply (RREP) if neighbor is the target, or knows a higher dest_sequence_#
Otherwise setup a pointer to the neighbor from whom RREQ was received Maintain reverse path entries based on timeouts
Z
S B A H I C G K D N E F M L
Z
S B A H I C G K D N E F M L
Z
S B A H I C G K D N E F M L
Z
S B A H I C G K D N E F M L
Node C receives RREQ from G and H, but does not forward it again, because node C has already forwarded RREQ once
Z
S B A H I C G K D N E F M L
Z
S B A H I C G K D N E F M L
Node D does not forward RREQ, because node D is the intended target of the RREQ
Z
S B A H I C G K D N E F M L
Forward links are setup when RREP travels along the reverse path Represents a link on the forward path
Route Request (RREQ) includes the last known sequence number for the destination An intermediate node may also send a Route Reply (RREP) provided that it knows a more recent path than the one previously known to sender Intermediate nodes that forward the RREP, also record the next hop to destination A routing table entry maintaining a reverse path is purged after a timeout interval A routing table entry maintaining a forward path is purged if not used for a active_route_timeout interval
LINK FAILURE
A neighbor of node X is considered active for a routing table entry if the neighbor sent a packet within active_route_timeout interval which was forwarded using that entry Neighboring nodes periodically exchange hello message
When the next hop link in a routing table entry breaks, all active neighbors are informed
Link failures are propagated by means of Route Error (RERR) messages, which also update destination sequence numbers
ROUTE ERROR
When node X is unable to forward packet P (from node S to node D) on link (X,Y), it generates a RERR message Node X increments the destination sequence number for D cached at node X The incremented sequence number N is included in the RERR When node S receives the RERR, it initiates a new route discovery for D using destination sequence number at least as large as N When node D receives the route request with destination sequence number N, node D will set its sequence number to N, unless it is already larger than N
AODV: SUMMARY
Routes need not be included in packet headers Nodes maintain routing tables containing entries only for routes that are in active use
Sequence numbers are used to avoid old/broken routes Sequence numbers prevent formation of routing loops
74
The basic principle is that it can capture pixel information with greater accuracy near its eyes focal point.
This accuracy decreases with increase in the distance from the centre of the focal point.
Each node exchanges topology information with its neighbor only instead of flooding. This is done periodically rather than being driven by an event.
It defines routing scopes, which is the set of nodes that are reachable in specific number
of hops.
The frequency of exchange decreases with the increase in scope. This process reduces the overhead in routing . Advantages: the reduces the BW consumed by the link state update packets. So used for large and highly mobile ad hoc networks.
A Denial of service attack is an explicit attempt to prevent the legitimate user of a service or data.
The common method of attack involves overloading the target system with requests, such that it cannot respond to legitimate traffic.
it makes the system or service unavailable for the user. The basic types of attack are: consumption of bandwidth or consumption of processor time, obstructing the communication between two machines, disruption of service to a specific system or person, disruption of routing information, disruption of physical components etc.
If the sensor network encounters DoS attacks, the attack gradually reduces the functionality as well as the overall performance of the wireless sensor network.
MODES OF ATTACK
the hidden terminal problem reduces the capacity of a network due to increasing
while the exposed terminal problem reduces the network capacity due to the unnecessarily deferring nodes from transmitting.
Ad-hoc networks can be more economical in some cases, as they eliminate fixed infrastructure costs and reduce power consumption at mobile nodes.
devices. More transmission power is required for sending a signal over any
distance in one long hop than in multiple shorter hops