Wireless and Mobile Communications

Slides:



Advertisements
Similar presentations
Unicast Routing Protocols for Ad Hoc Networks Kumar Viswanath CMPE 293.
Advertisements

1 Chapter 04 Routing in Ad Hoc Networks Mobile Ad Hoc Networks (MANET) Introduction and Generalities.
802.11a/b/g Networks Herbert Rubens Some slides taken from UIUC Wireless Networking Group.
Network Layer Routing Issues (I). Infrastructure vs. multi-hop Infrastructure networks: Infrastructure networks: ◦ One or several Access-Points (AP) connected.
MANETs Routing Dr. Raad S. Al-Qassas Department of Computer Science PSUT
Advanced Topics in Next-Generation Wireless Networks
Mobile Ad-Hoc Networks (MANET)
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #4 Mobile Ad-Hoc Networks AODV Routing.
1 Routing in Mobile Ad Hoc Networks most slides taken with permission from presentation of Nitin H. Vaidya University of Illinois at Urbana-Champaign.
ITIS 6010/8010 Wireless Network Security Dr. Weichao Wang.
20 – Collision Avoidance, : Wireless and Mobile Networks6-1.
CS541 Advanced Networking 1 Mobile Ad Hoc Networks (MANETs) Neil Tang 02/02/2009.
1 Mobile Ad Hoc Networks (MANET). 2 Mobile Ad Hoc Networks  Formed by wireless hosts which may be mobile  Without (necessarily) using a pre-existing.
Comparison of Routing Metrics for Static Multi-Hop Wireless Networks Richard Draves, Jitendra Padhye and Brian Zill Microsoft Research Presented by Hoang.
1 Understanding and Mitigating the Impact of RF Interference on Networks Ramki Gummadi (MIT), David Wetherall (UW) Ben Greenstein (IRS), Srinivasan.
5-1 Data Link Layer r What is Data Link Layer? r Wireless Networks m Wi-Fi (Wireless LAN) r Comparison with Ethernet.
Ad Hoc Wireless Routing COS 461: Computer Networks
Network Topologies.
6: Wireless and Mobile Networks6-1 Elements of a wireless network network infrastructure wireless hosts r laptop, PDA, IP phone r run applications r may.
The Zone Routing Protocol (ZRP)
Mobile Ad Hoc Networks: Routing, MAC and Transport Issues Material in this slide set are from a tutorial by Prof. Nitin Vaidya 1.
Wi-Fi Wireless LANs Dr. Adil Yousif. What is a Wireless LAN  A wireless local area network(LAN) is a flexible data communications system implemented.
CIS 725 Wireless networks. Low bandwidth High error rates.
RTS/CTS-Induced Congestion in Ad Hoc Wireless LANs Saikat Ray, Jeffrey B. Carruthers, and David Starobinski Department of Electrical and Computer Engineering.
CS640: Introduction to Computer Networks Aditya Akella Lecture 22 - Wireless Networking.
Itrat Rasool Quadri ST ID COE-543 Wireless and Mobile Networks
Qian Zhang Department of Computer Science HKUST Advanced Topics in Next- Generation Wireless Networks Transport Protocols in Ad hoc Networks.
Multi-Channel MAC for Ad Hoc Networks: Handling Multi-Channel Hidden Terminals Using A Single Transceiver Jungmin So and Nitin Vaidya University of Illinois.
1 Spring Semester 2009, Dept. of Computer Science, Technion Internet Networking recitation #3 Mobile Ad-Hoc Networks AODV Routing.
Mobile Routing protocols MANET
Mobile Adhoc Network: Routing Protocol:AODV
ECE 256, Spring 2008 Multi-Channel MAC for Ad Hoc Networks: Handling Multi-Channel Hidden Terminals Using A Single Transceiver Jungmin So & Nitin Vaidya.
Ad-Hoc Networks. References r Elizabeth Royer and Chai-Keong Toh, " A Review of Current Routing Protocols for Ad Hoc Wireless Mobile Networks, " IEE Personal.
1 Impact of transmission errors on TCP performance (Nitin Vaidya)
Routing Protocols of On- Demand Dynamic Source Routing (DSR) Ad-Hoc On-Demand Distance Vector (AODV)
Copyright: S.Krishnamurthy, UCR Power Controlled Medium Access Control in Wireless Networks – The story continues.
1 Dynamic Source Routing in Ad Hoc Wireless Networks David B. Johnson and David A. Maltz published in the book “Mobile Computing” 1996.
Asstt. Professor Adeel Akram. Infrastructure vs. multi-hop Infrastructure networks: One or several Access-Points (AP) connected to the wired network.
1 Ad Hoc On-Demand Distance Vector Routing (AODV) Dr. R. B. Patel.
Load-Balancing Routing in Multichannel Hybrid Wireless Networks With Single Network Interface So, J.; Vaidya, N. H.; Vehicular Technology, IEEE Transactions.
Wireless and Mobility The term wireless is normally used to refer to any type of electrical or electronic operation which is accomplished without the use.
#1 EETS 8316/NTU CC725-N/TC/ Routing - Circuit Switching  Telephone switching was hierarchical with only one route possible —Added redundant routes.
Multi-Channel MAC for Ad Hoc Networks: Handling Multi- Channel Hidden Terminals Using a Single Transceiver (MMAC) Paper by Jungmin So and Nitin Vaidya.
DSR: Introduction Reference: D. B. Johnson, D. A. Maltz, Y.-C. Hu, and J. G. Jetcheva, “The Dynamic Source Routing Protocol for Mobile Ad Hoc Networks,”
SRL: A Bidirectional Abstraction for Unidirectional Ad Hoc Networks. Venugopalan Ramasubramanian Ranveer Chandra Daniel Mosse.
Traditional Routing A routing protocol sets up a routing table in routers A node makes a local choice depending on global topology.
Chapter 11 Extending LANs 1. Distance limitations of LANs 2. Connecting multiple LANs together 3. Repeaters 4. Bridges 5. Filtering frame 6. Bridged network.
1 Wireless Networking Primer (few topics that may help in understanding other lectures) Nitin Vaidya University of Illinois at Urbana-Champaign.
WIRELESS COMMUNICATION Husnain Sherazi Lecture 1.
Intro DSR AODV OLSR TRBPF Comp Concl 4/12/03 Jon KolstadAndreas Lundin CS Ad-Hoc Routing in Wireless Mobile Networks DSR AODV OLSR TBRPF.
Session 15 Mobile Adhoc Networks Prof. Sridhar Iyer IIT Bombay
a/b/g Networks Routing Herbert Rubens Slides taken from UIUC Wireless Networking Group.
SMAC: An Energy-efficient MAC Protocol for Wireless Networks
TCP OVER ADHOC NETWORK. TCP Basics TCP (Transmission Control Protocol) was designed to provide reliable end-to-end delivery of data over unreliable networks.
Ασύρματα Δίκτυα και Κινητές Επικοινωνίες Ενότητα # 13: Δρομολόγηση σε Κινητά Αδόμητα Δίκτυα (Mobile Ad Hoc Networks) Διδάσκων: Βασίλειος Σύρης Τμήμα: Πληροφορικής.
Dynamic Source Routing in Ad Hoc Wireless Networks
1 Mobile Ad Hoc Networks (MANET) Introduction and Generalities.
Medium Access Control in Wireless networks
Routing in Mobile Ad Hoc Network (MANET)
Ad Hoc On-Demand Distance Vector Routing (AODV) ietf
Performance Comparison of Ad Hoc Network Routing Protocols Presented by Venkata Suresh Tamminiedi Computer Science Department Georgia State University.
1 Wireless Networking Understanding the departure from wired networks, Case study: IEEE (WiFi)
Mobile Ad Hoc Networks. What is a MANET (Mobile Ad Hoc Networks)? Formed by wireless hosts which may be mobile No pre-existing infrastructure Routes between.
Media Access Methods MAC Functionality CSMA/CA with ACK
Internet Networking recitation #4
Mobile and Wireless Networking
Overview: Chapter 3 Networking sensors
Vinay Singh Graduate school of Software Dongseo University
Routing in Mobile Wireless Networks Neil Tang 11/14/2008
Impact of transmission errors on TCP performance
Presentation transcript:

Wireless and Mobile Communications

Outline Overview MAC Routing Wireless TCP Wireless in real world Leverage broadcasting nature Wireless security

From Wired to Wireless

The Difference: # 1

The Difference #2

Unicast vs. Broadcast

Why? Interference signal - to - noise - ratio Your signal is noise to others Broadcast nature

Existing Wireless Networks Wireless Metropolitan Area Network (WMAN) Cellular/Wireless Wide Area Network (WWAN) (GSM, WCDMA, EV-DO) Wireless Local Area Network (WLAN) Wireless Personal Area Network (WPAN) Ad hoc networks Sensor networks Emerging networks (variations of ad hoc networks Info-stations Vehicular networks Cognitive Radio Networks IEEE 802.22

Data Rate

Transmission Range

Power Dissipation

Network Architectures Cellular Networks (hierarchical systems)  QoS + mobility  $$$, lack of innovations WLAN / Mesh networks  Simple, cheap  Poor management Ad hoc networks  no infrastructure cost  no guarantee Sensor networks  Energy limited, low processing power

Challenges in Cellular Networks Explosion of mobile phones, 1.5billion users (2004) Scalability issues (particularly at radio network controller) Better architecture design Lack of bandwidth (we need mobile TV) Give us more spectrum

IEEE 802.11 - Architecture of an Infrastructure Network Station (STA) Terminal with access mechanisms to the wireless medium and radio contact to the access point Basic Service Set (BSS) Group of stations using the same radio frequency Access Point Station integrated into the wireless LAN and the distribution system Portal bridge to other (wired) networks Distribution System Interconnection network to form one logical network

Challenges in WiFi Again, explosion of users, devices… Interference, interference, interference Heavy interference /contention when accessing the AP, no QoS support Inter-AP interference Interference from other devices (microwave, cordless phones) in the same frequency band Mobility support Seamless roaming when users move between APs Normally low speed (3-10mph)

Challenges in Ad-hoc Networks A flexible network infrastructure Peer-to-peer communications No backbone infrastructure Routing can be multi-hop Topology is dynamic Challenges Devices need to self-manage to survive Manage interference (similar to WiFi but without AP, much harder) Manage connectivity and routing (node mobility and unreliable links) Transmission, access, and routing strategies for ad-hoc networks are generally ad-hoc User collaboration is a good direction but there are always selfish / malicious users

How does Wireless affect Networking? Wireless access is different from Ethernet access Wireless routing is different from IP routing Wireless security is different from wired security

Wireless Access vs. Ethernet Access Ethernet: fixed connection, always on, stable, fixed rate Wireless: unreliable connection, competition based, fading/unreliable, dynamic rate, limited bandwidth Critical: how to coordinate among devices to avoid interference Cellular: centralized, base station tells each device when and how to send/receive data WLAN + Ad hoc: distributed, CSMA, compete and backoff Mobility neighbor discovery + topology control Rate adaptations

Wireless Routing vs. Wired Routing Aside from traditional multi-hop routing Mobility: route discovery and maintenance Interference, interference, interference Multi-hop interference mitigation Spectrum assignment, multi-channel networks

Why is Security more of a Concern in Wireless? No inherent physical protection Physical connections between devices are replaced by logical associations Sending and receiving messages do not need physical access to the network infrastructure (cables, hubs, routers, etc.) Broadcast communications Wireless usually has a broadcast nature Transmissions can be overheard by anyone in range Anyone can generate transmissions, which will be received by other devices in range which will interfere with other nearby transmissions and may prevent their correct reception (jamming)

Wireless Attacks Eavesdropping is easy Injecting bogus messages into the network is easy Replaying previously recorded messages is easy Illegitimate access to the network and its services is easy Denial of service is easily achieved by jamming

So far Understand why wireless data rate is lower than wired… Understand different types of wireless networks: WPAN, WLAN, WWAN, WMAN and their challenges Understand the difference between infrastructure and ad hoc networks Understand the challenges in MAC, networking and security areas…

Outline Overview MAC Routing Wireless TCP Wireless in real world Leverage broadcasting nature Wireless security

Why Control Medium Access Wireless channel is a shared medium When conflict, interference disrupts communications Medium access control (MAC) Avoid interference Provide fairness Utilize channel variations to improve throughput Independent link variations

MAC Categories

Random Access Random Access vs. Controlled Access No fixed schedule, no special node to coordinate Distributed algorithm to determine how users share channel, when each user should transmit Challenges: two or more users can access the same channel simultaneously  Collisions Protocol components: How to detect and avoid collisions How to recover from collisions

Examples Slotted ALOHA Pure ALOHA CSMA, CSMA/CA, CSMA/CD

The Trivial Solution A B C Transmit and pray collision Plenty of collisions --> poor throughput at high load

The Simple Fix Don’t transmit A B C Can collisions still occur? Transmit and pray Plenty of collisions --> poor throughput at high load Listen before you talk Carrier sense multiple access (CSMA) Defer transmission when signal on channel Can collisions still occur?

CSMA Collisions Collisions can still occur: When collision: Note: spatial layout of nodes Collisions can still occur: Propagation delay non-zero between transmitters When collision: Entire packet transmission time wasted Note: Role of distance & propagation delay in determining collision probability

CSMA/CD (Collision Detection) Keep listening to channel While transmitting If (Transmitted_Signal != Sensed_Signal)  Sender knows it’s a Collision  ABORT

Two Observations on CSMA/CD Transmitter can send/listen concurrently If (Sensed - received = null)? Then success The signal is identical at Tx and Rx Non-dispersive The TRANSMITTER can detect if and when collision occurs

Both observations do not hold for wireless!!! Unfortunately … Both observations do not hold for wireless!!! Because …

Wireless Medium Access Control B Signal power SINR threhold Distance

Wireless Media Disperse Energy A cannot send and listen in parallel C D A B Signal power Signal not same at different locations SINR threhold Distance

Collision Detection Difficult B Signal reception based on SINR Transmitter can only hear itself Cannot determine signal quality at receiver A C D

Calculating SINR B A C D

C D X A B Signal power SINR threhold Distance Red < Blue = collision Red signal >> Blue signal C D X A B Signal power SINR threhold Distance

Important: C has not heard A, but can interfere at receiver B C is the hidden terminal to A C D X A B Signal power SINR threhold Distance

Y C D X A B Signal power SINR threhold Distance Important: X has heard A, but should not defer transmission to Y Y X is the exposed terminal to A C D X A B Signal power SINR threhold Distance

Exposed Terminal Problem (ETP) Don’t know whether two transmissions will conflict or not C wants to transmit to D but hears B; C defers transmission to D although it won’t disturb the transmission from B to A Critical fact #1: Interference is receiver driven while CSMA is sender driven

Hidden Terminal Problem (HTP) Reason: limited transmit/sensing capabilities B can communicate with A and C A and C can not hear each other If A transmits to B & C transmits to B, collision occurs at B

CSMA/CA-Avoiding Collisions Idea: allow sender to “reserve” channel rather than random access of data frames: avoid collisions of long data frames Sender first transmits small request-to-send (RTS) packets to BS using CSMA BS broadcasts clear-to-send CTS in response to RTS RTS heard by all nodes Sender transmits data frame Other stations defer transmissions avoid data frame collisions completely using small reservation packets!

Problems with Single Channel Collisions happen to RTS and CTS too Bandwidth is limited Are there alternatives to avoid interference??

Multiple Channel Motivation Ways to avoid interference Time Space Frequency/channel How to coordinate among users which channel to use?

Multi‐Channel Hidden Terminals A sends RTS

Multi‐Channel Hidden Terminals B sends CTS C does not hear CTS because C is listening on channel 2

Multi‐Channel Hidden Terminals C switches to channel 1 and transmits RTS Collision occurs at B

How to coordinate the channel usage?

Solution 1: Add a Control Radio Each user has two radios Radio 1: control radio; users exchange control information – which channel to use for their data radio Radio 2: data radio; transmit packets Pro: Simple; instantaneous coordination Con: Need an extra radio; bandwidth wasted..

Wu’s Protocol [Wu00ISPAN] Assumes 2 transceivers per host One transceiver always listens on control channel Negotiate channels using RTS/CTS/RES RTS/CTS/RES packets sent on control channel Sender includes preferred channels in RTS Receiver decides a channel and includes in CTS Sender transmits RES (Reservation) Sender sends DATA on the selected data channel What if each user only has one radio????

Solution 2: Add a control slot Each user transmits in two phases Phase I: users exchange control information – which channel to use for their data transmission Phase II: transmit packets on the pre-determined channel Pro: Only need one radio… Con: Need synchronization; Only periodic coordination

An example of Solution 2: MMAC Assumptions Each node is equipped with a single transceiver The transceiver is capable of switching channels Channel switching delay is approximately 250us Per-packet switching not recommended Occasional channel switching not too expensive Multi-hop synchronization is achieved by other means [so04] J. So and N. Vaidya, Multi‐channel MAC for Ad Hoc Networks: Handling Multi‐channel Hidden Terminals with a Single Transceiver, Mobihoc 2004.

Power Saving in 802.11 Ad hoc Mode Time is divided into beacon intervals Each beacon interval begins with an ATIM window If host A has a packet to transmit to B, A must send an ATIM Request to B during an ATIM Window If a host does not receive an ATIM Request during an ATIM window, and has no pending packets to transmit, it may sleep during rest of the beacon interval

Channel Negotiation

Channel Negotiation

Channel Negotiation

Channel Negotiation

Question: What is the limitation of MMAC??

Periodically rendezvous on a fixed channel to decide the next channel MMAC MMAC Basic idea: Periodically rendezvous on a fixed channel to decide the next channel Issues Packets to multiple destinations ⇒ high delays Control channel congestion

Outline Overview MAC Routing Wireless TCP Wireless in real world Leverage broadcasting nature Wireless security

Assumptions of Wireless Routing Inherent mobility Nodes are not static Transmission properties Classically assumed as unit-disc model All or nothing range R Symmetric reception

Scenarios

GOAL Minimize control overhead Minimize processing overhead Multi-hop path routing capability Dynamic topology maintenance No routing loops Self-starting

Brief Review of Internet Routing Intra-AS routing Link-state Distance vector Neighbors periodically exchange routing information with neighbors <destination IP addr, hop count> Nodes iteratively learn network routing info and compute routes to all destinations Suffer from problems like counting-to-infinity

Review Cont. Link State Nodes flood neighbor routing information to all nodes in network <neighbor IP Addr, cost> Once each node knows all links in network, can individually compute routing paths Use Dijkstra for example Minimize routing “cost” Supports metrics other than hop count, but is more complex

Review Cont. Examples of routing protocols Distance vector: RIP Link state: OSPF What do these have in common? Both maintain routes to all nodes in network

Approaches to Wireless Routing Proactive Routing Based on traditional distance-vector and link-state protocols Nodes proactively maintains route to each other Periodic and/or event triggered routing update exchange Higher overhead in most scenarios Longer route convergence time Examples: DSDV, TBRPF, OLSR

Approaches Cont. Reactive (on-demand) Routing Source build routes on-demand by “flooding” Maintain only active routes Route discovery cycle Typically, less control overhead, better scaling properties Drawback?? Route acquisition latency Example: AODV, DSR

WIRELESS ROUTING PROTOCOLS (1): Reactive protocols

Dynamic Source Routing (DSR) [Johnson96] When node S wants to send a packet to node D, but does not know a route to D, node S initiates a route discovery Source node S floods Route Request (RREQ) Each node appends own identifier when forwarding RREQ

Route Discovery in DSR Y Z S E F B C M L J A G H D K I N Represents a node that has received RREQ for D from S

Route Discovery in DSR Y Broadcast transmission Z [S] S E F B C M L J G H D K I N Represents transmission of RREQ [X,Y] Represents list of identifiers appended to RREQ

Route Discovery in DSR Y Z S [S,E] E F B C M L J A G [S,C] H D K I N Node H receives packet RREQ from two neighbors: potential for collision

Route Discovery in DSR Y Z S E F B [S,E,F] C M L J A G H D K [S,C,G] I Node C receives RREQ from G and H, but does not forward it again, because node C has already forwarded RREQ once

Route Discovery in DSR Y Z S E F [S,E,F,J] B C M L J A G H D K I N [S,C,G,K] Nodes J and K both broadcast RREQ to node D Since nodes J and K are hidden from each other, their transmissions may collide

Route Discovery in DSR Y Z S E [S,E,F,J,M] F B C M L J A G H D K I N Node D does not forward RREQ, because node D is the intended target of the route discovery

Route Discovery in DSR Destination D on receiving the first RREQ, sends a Route Reply (RREP) RREP is sent on a route obtained by reversing the route appended to received RREQ RREP includes the route from S to D on which RREQ was received by node D

Route Reply in DSR Y Z S RREP [S,E,F,J,D] E F B C M L J A G H D K I N Represents RREP control message

Route Reply in DSR Route Reply can be sent by reversing the route in Route Request (RREQ) only if links are guaranteed to be bi-directional To ensure this, RREQ should be forwarded only if it received on a link that is known to be bi-directional If unidirectional (asymmetric) links are allowed, then RREP may need a route discovery for S from node D Unless node D already knows a route to node S If a route discovery is initiated by D for a route to S, then the Route Reply is piggybacked on the Route Request from D. If IEEE 802.11 MAC is used to send data, then links have to be bi-directional (since Ack is used)

Dynamic Source Routing (DSR) 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 hence the name source routing Intermediate nodes use the source route included in a packet to determine to whom a packet should be forwarded

Data Delivery in DSR Y Z DATA [S,E,F,J,D] S E F B C M L J A G H D K I Packet header size grows with route length

When to Perform a Route Discovery When node S wants to send data to node D, but does not know a valid route node D

DSR Optimization: Route Caching Each node caches a new route it learns by any means 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 packets

Use of Route Caching When node S learns that a route to node D is broken, it uses another route from its local cache, if such a route to D exists in its cache. Otherwise, node S initiates route discovery by sending a route request Node X on receiving a Route Request for some node D can send a Route Reply if node X knows a route to node D Use of route cache can speed up route discovery can reduce propagation of route requests

Use of Route Caching S E F B C M L J A G H D K I N Z [S,E,F,J,D] [E,F,J,D] S E [F,J,D],[F,E,S] F B [J,F,E,S] C M L J A G [C,S] H D [G,C,S] K I N Z [P,Q,R] Represents cached route at a node (DSR maintains the cached routes in a tree format)

Use of Route Caching: Can Speed up Route Discovery [S,E,F,J,D] [E,F,J,D] S E [F,J,D],[F,E,S] F B [J,F,E,S] C M L [G,C,S] J A G [C,S] H D K [K,G,C,S] I N RREP RREQ Z When node Z sends a route request for node C, node K sends back a route reply [Z,K,G,C] to node Z using a locally cached route

Use of Route Caching: Can Reduce Propagation of Route Requests Y [S,E,F,J,D] [E,F,J,D] S E [F,J,D],[F,E,S] F B [J,F,E,S] C M L [G,C,S] J A G [C,S] H D K [K,G,C,S] I N RREP RREQ Z Assume that there is no link between D and Z. Route Reply (RREP) from node K limits flooding of RREQ. In general, the reduction may be less dramatic.

Route Error (RERR) Y Z RERR [J-D] S E F B C M L J A G H D K I N J sends a route error to S along route J-F-E-S when its attempt to forward the data packet S (with route SEFJD) on J-D fails Nodes hearing RERR update their route cache to remove link J-D

Route Caching: Beware! Stale caches can adversely affect performance With passage of time and host mobility, cached routes may become invalid A sender host may try several stale routes (obtained from local cache, or replied from cache by other nodes), before finding a good route An illustration of the adverse impact on TCP will be discussed later in the tutorial [Holland99]

Dynamic Source Routing: Advantages Routes maintained only between nodes who need to communicate reduces overhead of route maintenance Route caching can further reduce route discovery overhead A single route discovery may yield many routes to the destination, due to intermediate nodes replying from local caches

Dynamic Source Routing: Disadvantages Packet header size grows with route length due to source routing Flood of route requests may potentially reach all nodes in the network Care must be taken to avoid collisions between route requests propagated by neighboring nodes insertion of random delays before forwarding RREQ Increased contention if too many route replies come back due to nodes replying using their local cache Route Reply Storm problem Reply storm may be eased by preventing a node from sending RREP if it hears another RREP with a shorter route

Dynamic Source Routing: Disadvantages An intermediate node may send Route Reply using a stale cached route, thus polluting other caches This problem can be eased if some mechanism to purge (potentially) invalid cached routes is incorporated. For some proposals for cache invalidation, see [Hu00Mobicom] Static timeouts Adaptive timeouts based on link stability

Flooding of Control Packets How to reduce the scope of the route request flood ? LAR [Ko98Mobicom] Query localization [Castaneda99Mobicom] How to reduce redundant broadcasts ? The Broadcast Storm Problem [Ni99Mobicom]

Location-Aided Routing (LAR) [Ko98Mobicom] Exploits location information to limit scope of route request flood Location information may be obtained using GPS Expected Zone is determined as a region that is expected to hold the current location of the destination Expected region determined based on potentially old location information, and knowledge of the destination’s speed Route requests limited to a Request Zone that contains the Expected Zone and location of the sender node

Expected Zone in LAR X = last known location of node D, at time t0 Y = location of node D at current time t1, unknown to node S r = (t1 - t0) * estimate of D’s speed X r Y Expected Zone

Request Zone in LAR Network Space Request Zone X r B A Y S

LAR Only nodes within the request zone forward route requests Node A does not forward RREQ, but node B does (see previous slide) Request zone explicitly specified in the route request Each node must know its physical location to determine whether it is within the request zone

LAR Only nodes within the request zone forward route requests If route discovery using the smaller request zone fails to find a route, the sender initiates another route discovery (after a timeout) using a larger request zone the larger request zone may be the entire network Rest of route discovery protocol similar to DSR

LAR Variations: Adaptive Request Zone Each node may modify the request zone included in the forwarded request Modified request zone may be determined using more recent/accurate information, and may be smaller than the original request zone B S Request zone adapted by B Request zone defined by sender S

LAR Variations: Implicit Request Zone In the previous scheme, a route request explicitly specified a request zone Alternative approach: A node X forwards a route request received from Y if node X is deemed to be closer to the expected zone as compared to Y The motivation is to attempt to bring the route request physically closer to the destination node after each forwarding

Location-Aided Routing The basic proposal assumes that, initially, location information for node X becomes known to Y only during a route discovery This location information is used for a future route discovery Each route discovery yields more updated information which is used for the next discovery Variations Location information can also be piggybacked on any message from Y to X Y may also proactively distribute its location information Similar to other protocols discussed later (e.g., DREAM, GLS)

Location Aided Routing (LAR) Advantages reduces the scope of route request flood reduces overhead of route discovery Disadvantages Nodes need to know their physical locations Does not take into account possible existence of obstructions for radio transmissions

Query Localization [Castaneda99Mobicom] Limits route request flood without using physical information Route requests are propagated only along paths that are close to the previously known route The closeness property is defined without using physical location information

Query Localization Path locality heuristic: Look for a new path that contains at most k nodes that were not present in the previously known route Old route is piggybacked on a Route Request Route Request is forwarded only if the accumulated route in the Route Request contains at most k new nodes that were absent in the old route this limits propagation of the route request

Query Localization: Example G G Node F does not forward the route request since it is not on any route from S to D that contains at most 2 new nodes F F E E Node D moved D B C B C Permitted routes with k = 2 A D A Initial route from S to D S S

Query Localization Advantages: Disadvantage: Reduces overhead of route discovery without using physical location information Can perform better in presence of obstructions by searching for new routes in the vicinity of old routes Disadvantage: May yield routes longer than LAR (Shortest route may contain more than k new nodes)

Broadcast Storm Problem [Ni99Mobicom] When node A broadcasts a route query, nodes B and C both receive it B and C both forward to their neighbors B and C transmit at about the same time since they are reacting to receipt of the same message from A This results in a high probability of collisions D B C A

Broadcast Storm Problem Redundancy: A given node may receive the same route request from too many nodes, when one copy would have sufficed Node D may receive from nodes B and C both D B C A

Solutions for Broadcast Storm Probabilistic scheme: On receiving a route request for the first time, a node will re-broadcast (forward) the request with probability p Also, re-broadcasts by different nodes should be staggered by using a collision avoidance technique (wait a random delay when channel is idle) this would reduce the probability that nodes B and C would forward a packet simultaneously in the previous example

Solutions for Broadcast Storms Counter-Based Scheme: If node E hears more than k neighbors broadcasting a given route request, before it can itself forward it, then node E will not forward the request Intuition: k neighbors together have probably already forwarded the request to all of E’s neighbors D E B C F A

Solutions for Broadcast Storms Distance-Based Scheme: If node E hears RREQ broadcasted by some node Z within physical distance d, then E will not re-broadcast the request Intuition: Z and E are too close, so transmission areas covered by Z and E are not very different if E re-broadcasts the request, not many nodes who have not already heard the request from Z will hear the request E Z <d

Summary: Broadcast Storm Problem Flooding is used in many protocols, such as Dynamic Source Routing (DSR) Problems associated with flooding Collisions Redundancy Collisions may be reduced by “jittering” (waiting for a random interval before propagating the flood) Redundancy may be reduced by selectively re-broadcasting packets from only a subset of the nodes

Ad Hoc On-Demand Distance Vector Routing (AODV) [Perkins99Wmcsa] DSR includes source routes in packet headers Resulting large headers can sometimes degrade performance particularly when data contents of a packet are small AODV attempts to improve on DSR by maintaining routing tables at the nodes, so that data packets do not have to contain routes AODV retains the desirable feature of DSR that routes are maintained only between nodes which need to communicate

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 Route Reply travels along the reverse path set-up when Route Request is forwarded

Route Requests in AODV Y Z S E F B C M L J A G H D K I N Represents a node that has received RREQ for D from S

Route Requests in AODV Y Broadcast transmission Z S E F B C M L J A G H D K I N Represents transmission of RREQ

Route Requests in AODV Y Z S E F B C M L J A G H D K I N Represents links on Reverse Path

Reverse Path Setup in AODV Y Z S E F B C M L J A G H D K I N Node C receives RREQ from G and H, but does not forward it again, because node C has already forwarded RREQ once

Reverse Path Setup in AODV Y Z S E F B C M L J A G H D K I N

Reverse Path Setup in AODV Y Z S E F B C M L J A G H D K I N Node D does not forward RREQ, because node D is the intended target of the RREQ

Route Reply in AODV Y Z S E F B C M L J A G H D K I N Represents links on path taken by RREP

Route Reply in AODV An intermediate node (not the destination) may also send a Route Reply (RREP) provided that it knows a more recent path than the one previously known to sender S To determine whether the path known to an intermediate node is more recent, destination sequence numbers are used The likelihood that an intermediate node will send a Route Reply when using AODV not as high as DSR A new Route Request by node S for a destination is assigned a higher destination sequence number. An intermediate node which knows a route, but with a smaller sequence number, cannot send Route Reply

Forward Path Setup in AODV Y Z S E F B C M L J A G H D K I N Forward links are setup when RREP travels along the reverse path Represents a link on the forward path

Data Delivery in AODV Y DATA Z S E F B C M L J A G H D K I N Routing table entries used to forward data packet. Route is not included in packet header.

Timeouts A routing table entry maintaining a reverse path is purged after a timeout interval timeout should be long enough to allow RREP to come back A routing table entry maintaining a forward path is purged if not used for an active_route_timeout interval if no is data being sent using a particular routing table entry, that entry will be deleted from the routing table (even if the route may actually still be valid)

Link Failure Reporting 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 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 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

Destination Sequence Number Continuing from the previous slide … 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

Link Failure Detection Hello messages: Neighboring nodes periodically exchange hello message Absence of hello message is used as an indication of link failure Alternatively, failure to receive several MAC-level acknowledgement may be used as an indication of link failure

Why Sequence Numbers in AODV To avoid using old/broken routes To determine which route is newer To prevent formation of loops Assume that A does not know about failure of link C-D because RERR sent by C is lost Now C performs a route discovery for D. Node A receives the RREQ (say, via path C-E-A) Node A will reply since A knows a route to D via node B Results in a loop (for instance, C-E-A-B-C ) A B C D E

Why Sequence Numbers in AODV Loop C-E-A-B-C A B C D E

Optimization: Expanding Ring Search Route Requests are initially sent with small Time-to-Live (TTL) field, to limit their propagation DSR also includes a similar optimization If no Route Reply is received, then larger TTL tried

Summary: AODV Routes need not be included in packet headers Nodes maintain routing tables containing entries only for routes that are in active use At most one next-hop per destination maintained at each node DSR may maintain several routes for a single destination Unused routes expire even if topology does not change

WIRELESS ROUTING PROTOCOLS (2): proactive protocols

Proactive Protocols Most of the schemes discussed so far are reactive Proactive schemes based on distance-vector and link-state mechanisms have also been proposed

Link State Routing [Huitema95] Each node periodically floods status of its links Each node re-broadcasts link state information received from its neighbor Each node keeps track of link state information received from other nodes Each node uses above information to determine next hop to each destination

Optimized Link State Routing (OLSR) [Jacquet00ietf, Jacquet99Inria] The overhead of flooding link state information is reduced by requiring fewer nodes to forward the information A broadcast from node X is only forwarded by its multipoint relays Multipoint relays of node X are its neighbors such that each two-hop neighbor of X is a one-hop neighbor of at least one multipoint relay of X Each node transmits its neighbor list in periodic beacons, so that all nodes can know their 2-hop neighbors, in order to choose the multipoint relays

Optimized Link State Routing (OLSR) Nodes C and E are multipoint relays of node A B F J A E H C K G D Node that has broadcast state information from A

Optimized Link State Routing (OLSR) Nodes C and E forward information received from A B F J A E H C K G D Node that has broadcast state information from A

Optimized Link State Routing (OLSR) Nodes E and K are multipoint relays for node H Node K forwards information received from H E has already forwarded the same information once B F J A E H C K G D Node that has broadcast state information from A

OLSR OLSR floods information through the multipoint relays The flooded itself is fir links connecting nodes to respective multipoint relays Routes used by OLSR only include multipoint relays as intermediate nodes

Destination-Sequenced Distance-Vector (DSDV) [Perkins94Sigcomm] Each node maintains a routing table which stores next hop towards each destination a cost metric for the path to each destination a destination sequence number that is created by the destination itself Sequence numbers used to avoid formation of loops Each node periodically forwards the routing table to its neighbors Each node increments and appends its sequence number when sending its local routing table This sequence number will be attached to route entries created for this node

Destination-Sequenced Distance-Vector (DSDV) Assume that node X receives routing information from Y about a route to node Z Let S(X) and S(Y) denote the destination sequence number for node Z as stored at node X, and as sent by node Y with its routing table to node X, respectively X Y Z

Destination-Sequenced Distance-Vector (DSDV) Node X takes the following steps: If S(X) > S(Y), then X ignores the routing information received from Y If S(X) = S(Y), and cost of going through Y is smaller than the route known to X, then X sets Y as the next hop to Z If S(X) < S(Y), then X sets Y as the next hop to Z, and S(X) is updated to equal S(Y) X Y Z

WIRELESS ROUTING PROTOCOLS (1): hybrid protocols

Zone Routing Protocol (ZRP) [Haas98] Zone routing protocol combines Proactive protocol: which pro-actively updates network state and maintains route regardless of whether any data traffic exists or not Reactive protocol: which only determines route to a destination if there is some data to be sent to the destination

ZRP All nodes within hop distance at most d from a node X are said to be in the routing zone of node X All nodes at hop distance exactly d are said to be peripheral nodes of node X’s routing zone

ZRP Intra-zone routing: Pro-actively maintain state information for links within a short distance from any given node Routes to nodes within short distance are thus maintained proactively (using, say, link state or distance vector protocol) Inter-zone routing: Use a route discovery protocol for determining routes to far away nodes. Route discovery is similar to DSR with the exception that route requests are propagated via peripheral nodes.

ZRP: Example with Zone Radius = d = 2 B S performs route discovery for D C A E S D F Denotes route request

ZRP: Example with d = 2 S performs route discovery for D B S C A D E F E knows route from E to D, so route request need not be forwarded to D from E Denotes route reply

ZRP: Example with d = 2 S performs route discovery for D B S C A D E F Denotes route taken by Data

Landmark Routing (LANMAR) for MANET with Group Mobility [Pei00Mobihoc] A landmark node is elected for a group of nodes that are likely to move together A scope is defined such that each node would typically be within the scope of its landmark node Each node propagates link state information corresponding only to nodes within it scope and distance-vector information for all landmark nodes Combination of link-state and distance-vector Distance-vector used for landmark nodes outside the scope No state information for non-landmark nodes outside scope maintained

LANMAR Routing to Nodes Within Scope Assume that node C is within scope of node A Routing from A to C: Node A can determine next hop to node C using the available link state information H G D C B E A F

LANMAR Routing to Nodes Outside Scope Routing from node A to F which is outside A’s scope Let H be the landmark node for node F Node A somehow knows that H is the landmark for C Node A can determine next hop to node H using the available distance vector information H G C D B E A F

LANMAR Routing to Nodes Outside Scope Node D is within scope of node F Node D can determine next hop to node F using link state information The packet for F may never reach the landmark node H, even though initially node A sends it towards H H G D C B E A F

Outline Overview MAC Routing Wireless TCP Wireless in real world Leverage broadcasting nature Wireless security

We have a route, Now What ? Data Data NETWORK Data TCP TCP Data NETWORK Data Data Transport packets quickly and reliably over this network Network properties often unknown (or difficult to track) Where is the congestion ? How much cross traffic ? What is the bottleneck bandwidth ? How much buffers at intermediate nodes ?  Motivation for end to end TCP

The End to End Argument [Reed,Clark] “The function in question can completely and correctly be implemented only with the knowledge and help of the application standing at the end points of the communication system. Therefore, providing that questioned function as a feature of the communication system itself is not possible.” In other words, as a middle man, don’t attempt to do it, if you cannot do it completely. Let the end point handle it completely !! Caveat: Middle-man involvement OK for performance optimization Question is: Who is the end point ? TCP ? Application layer ? Human user ? … the debate goes on

The Control Problem Two main components in TCP Flow Control Flow Control and Congestion Control Flow Control If receiver’s bucket filling up, pour less water Congestion Control Don’t pour too much if there are leaks in intermediate pipes Regulate your flow based on how much is leaking out Aggressive pouring  calls for retransmission of lost packets Conservative pouring  lower e2e capacity Challenge: At what rate(t) should you pour ? Why ?

The TCP Protocol (in a nutshell) T transmits few packets, waits for ACK Called slow start R acknowledges all packet till seq #i by ACK i (optimizations possible) ACK sent out only on receiving a packet Can be Duplicate ACK if expected packet not received ACK reaches T  indicator of more capacity T transmits larger burst of packets (self clocking) … so on Burst size increased until packet drops (i.e., DupACK) When T gets DupACK or waits for longer than RTO Assumes congestion  reduces burst size (congestion window)

Several flavors of TCP: combines options / optimizations Reno, Vegas, Eifel, Westwood … Overall TCP has worked well – proven on the Internet Then why study it again for wireless networks ?

Renewed Challenge Key assumption in TCP A packet loss is indicative of network congestion Source needs to regulate flow by reducing CW Assumption closely true for wired networks BER ~ 10 -6 With wireless, errors due to fading, fluctuations Need not reduce CW in response … But, TCP is e2e  CANNOT see the network Thus, TCP cannot classify the cause of loss  CHALLENGE

The Problem Model TCP connection application transport network rxmt wireless physical link network transport application rxmt Wireline

Impact of Misclassification Best possible TCP with no errors (1.30 Mbps) TCP Reno (280 Kbps) Sequence number (bytes) Time (s) 2 MB wide-area TCP transfer over 2 Mbps WaveLAN

The Solution Space Much research on TCP over wireless Difficult to cover complete ground We peek into some of the key ideas Link layer mechanisms Split connection approach TCP-Aware link layer TCP-Unaware approximation of TCP-aware link layer Explicit notification Receiver-based discrimination Sender-based discrimination

LINK LAYER MECHANISMS

Link Layer Mechanisms Forward error corrections (FEC) Add redundancy in the packets to correct bit-errors TCP retransmissions can be alleviated Link layer retransmissions MAC layer ACKnowledgments Overhead only when errors occur (unlike FEC) Such mechanisms require no change in TCP Is that breaking e2e argument ??

Issues with Link Layer Mechanisms Link layer cannot guarantee reliability Have to drop packets after some finite limit What is the retransmission limit (??) Retransmission can take quite long Can be significant fraction of RTT TCP can timeout and retransmit the same packet again Increasing RTO can avoid this But that impacts TCP’s recovery from congestion Head of the line blocking Link layer has to keep retransmitting even if bad channel Blocks other streams

Findings Link layer retransmission good When channel errors infrequent When retransmit time << RTO When modifying TCP is not an acceptable solution

SPLIT CONNECTION APPROACH

1 TCP = ½ TCP + ½ (TCP or XXX) Per-TCP connection state TCP connection TCP connection wireless physical link network transport application rxmt Base Station

Splitting Approaches Indirect TCP [Baker97] Fixed host (FH) to base station (BS) uses TCP BS to mobile host (MH) uses another TCP connection Selective Repeat [Yavatkar94] Over FH to BS: Use TCP Over BS to MH: Use selective repeat on top of UDP No congestion control over wireless [Haas97] Also use less headers over wireless Header compression

Issues with Splitting E2E totally broken 2 separate connections BS maintains hard state for each connection What if MH disconnected from BS ? Huge buffer requirements at BS What if BS fails ? Handoff between BS requires state transfer What if Data and ACK travel on different routes ? BS will not see the ACK at all – splitting not feasible

TCP-AWARE LINK LAYER

Snoop Link layer at BS buffers un-acknowledged packets Now, BS peeks into every returning TCP ACK from MH If DupACK Retransmits the necessary packet Drops the DupACK DupACK does not reach sender Prevents fast retransmit

Snoop : Example 35 TCP state maintained at link layer 36 37 38 40 39 FH BS MH 34 36 Example assumes delayed ack - every other packet ack’d

Snoop : Example 35 39 36 37 38 41 40 39 38 34 36

Snoop : Example 37 40 38 39 42 41 40 39 36 36 dupack Duplicate acks are not delayed

Snoop : Example 37 40 38 41 39 43 42 41 40 36 36 36 Duplicate acks

Snoop : Example 37 40 38 41 39 42 44 43 37 41 FH BS MH Discard dupack 36 36 Discard dupack Dupack triggers retransmission of packet 37 from base station 36 BS needs to be TCP-aware to be able to interpret TCP headers

Snoop : Example 37 40 43 38 41 39 42 45 44 42 37 36 36 36 36

Snoop : Example 37 40 43 38 41 44 39 42 46 45 43 42 36 41 TCP sender does not fast retransmit 36 36 36

Snoop : Example 37 40 43 38 41 44 39 42 45 47 46 44 43 41 TCP sender does not fast retransmit 36 36 36 36

Snoop : Example 42 45 43 46 44 48 47 45 44 FH BS MH 41 43 36 36 36 36

Snoop [Balakrishnan95acm] 2 Mbps Wireless link

Issues with Snoop Link layer needs to be TCP aware Smelling cross layer Link layer needs to buffer and perform sliding window Not useful when TCP headers encrypted Not feasible when Data and ACK travel different routes RTT estimates can still go up due to link layer retransmission Affects performance of Snoop

Quick look at other schemes TCP-unaware schemes Explicit notification Receiver-based

TCP-Unaware, ELN Delayed DupACKs Explicit Loss Notification (ELN) Receiver waits for sometime before sending DupACK If link retransmission solves problem Then TCP sender does not send redundant packet Explicit Loss Notification (ELN) BS remembers only packet’s sequence numbers When DupACKs return through them, they check If packet was received by BS, then colors the DupACK Sender realizes that packet lost on wireless link Does not cut down CW, just retransmits that packet

Receiver-Based TCP Receiver estimates cause of packet loss If estimate == wireless loss, sets ELN bit 12 11 10 FH BS MH T 12 10 FH BS MH 11 When is this Mechanism a Big problem ? Congestion loss 2 T 12 11 10 Error loss FH BS MH

Closing Thoughts Reliable and in-order packet delivery important TCP aims to support these features Implements congestion control and flow control TCP widely tuned for wireline networks Proven to be efficient on the internet When network periphery has wireless “last mile” TCP exhibits myriad problems Mainly because of “misclassification between congestion and channel errors” Several solution approaches  but many open problems

Outline Overview MAC Routing Wireless TCP Wireless in real world Leverage broadcasting nature Wireless security

Wireless in the Real World Real world deployment patterns Mesh networks and deployments

Wireless Challenges Force us to rethink many assumptions Need to share airwaves rather than wire Don’t know what hosts are involved Host may not be using same link technology Mobility Other characteristics of wireless Noisy  lots of losses Slow Interaction of multiple transmitters at receiver Collisions, capture, interference Multipath interference

Overview IEEE 802.11 Deployment patterns Reaction to interference Interference mitigation Mesh networks Architecture Measurements

Characterizing Current Deployments Datasets Place Lab: 28,000 APs MAC, ESSID, GPS Selected US cities www.placelab.org Wifimaps: 300,000 APs MAC, ESSID, Channel, GPS (derived) wifimaps.com Pittsburgh Wardrive: 667 APs MAC, ESSID, Channel, Supported Rates, GPS Caveats Subset, old, Relative strengths of each Placelab: data collected as part of Intel’s placelab project, this is software that allows commodity hardware clients such as notebooks, PDAs to locate themselves by listening to radio beacons such as 802.11… Wifimaps: provides a graphic visualization tool to map out access points in specific areas of the world. This under database is contributed by various war-drive efforts. War-drive: small scale war drive of some dense areas of pittsburgh

AP Stats, Degrees: Placelab (Placelab: 28000 APs, MAC, ESSID, GPS) #APs Max. degree 50 m (i.e., # neighbors) Portland 8683 54 San Diego 7934 76 San Francisco 3037 85 Boston 2551 39 Data in placelab to understand how many APs in each city are in interference range of each other. Figure on the right shows a distribution of the number on interfering neighboring APs in the various cities. More than 4… 1 2

Degree Distribution: Place Lab Color Don’t say graph coloring, channel selection Search for “placelab” Data in placelab to understand how many APs in each city are in interference range of each other. Figure on the right shows a distribution of the number on interfering neighboring APs in the various cities. More than 4…

WifiMaps.com (300,000 APs, MAC, ESSID, Channel) Unmanaged Devices WifiMaps.com (300,000 APs, MAC, ESSID, Channel) Channel %age 6 51 11 21 1 14 10 4 Most users don’t change default channel Channel selection must be automated Change titles: as was done here… Caveat Mention autocell is used by new vendors, but solution is ? Newer access points include This is top 4 channels, number are unclassified We computed several interesting statistics about deployment and usage. 6 – default on most APs, showing that users more often than not leave their def configs on. In the table on the right, I show the relatives levels of deployment a and g. We can determine this by looking at the supporting rates info for the APs… relatively recent standardization….

Growing Interference in Unlicensed Bands Anecdotal evidence of problems, but how severe? Characterize how IEEE 802.11 operates under interference in practice Other 802.11 The main problem we’re concerned with today is the impact of growing RF interference in unlicensed spectrum such as the 2.4GHz band used by 802.11. There has recently been a spate of anecdotal reports about the increasing severity of RF interference problems on the operation of wireless networks such as 802.11, but we don’t yet clearly know what the magnitude or the trend of the problem is. So, we would like to characterize how 802.11 performs under interference in reality. Today, an 802.11 network has to contend with other 802.11 networks, as well as with other wireless devices that share the same spectrum, such as cordless phones, microwave ovens, car alarm systems, bluetooth, and a growing variety of other unlicensed band devices.

What do We Expect? Theory Throughput to decrease linearly with interference There to be lots of options for 802.11 devices to tolerate interference Bit-rate adaptation Power control FEC Packet size variation Spread-spectrum processing Transmission and reception diversity Interferer power (log-scale) Throughput (linear) Theory The standard SINR or (Signal to Interference and Noise Ratio) model predicts that throughput should decrease linearly with interferer power. The interferer power is on a log-scale. If this standard model holds in practice, then 802.11 devices have a variety of options at their disposal to tolerate interference gracefully. For example, they can change the bit rate at which they transmit, they can change the transmission power, they can use forward error correction, they can use smaller packets, and exploit various diversity techniques for transmission and reception, such as using multi-antenna systems.

Key Questions How damaging can a low-power and/or narrow-band interferer be? How can today’s hardware tolerate interference well? What 802.11 options work well, and why? The key questions before us are whether 802.11 copes well with different types of low-power and/or narrow-band interferers, and which of the 802.11 options work well in practice, and why.

What We See Effects of interference more severe in practice Caused by hardware limitations of commodity cards, which theory doesn’t model Practice Interferer power (log-scale) Throughput (linear) Theory The most interesting result we see is that the effects of interference are more severe in practice than theory would predict. There is a large gap between theory and practice at both low-end and high-end of the interference range. In fact, we find that the link throughput can drop to zero at medium to high end of the interference range. Such a rapid and severe degradation in performance is caused by several hardware limitations of commodity cards, which are not adequately modeled by theory.

Experimental Setup Access Point UDP flow 802.11 Interferer 802.11 Client Our setup is a controlled testbed within an office building consisting of 802.11 transmitter and receiver that use different commodity cards. They exchange UDP flows. Interferers are various types of wireless devices such as an 802.11 interferer that can output arbitrary modulated 802.11 bit patterns, ZigBee sensor nodes, cordless phones, and camera jammers. They represent both worst-case natural and adversarial interferers arising in practice. The interferer varies in power as its physical distance to the 802.11 link changes. In order to simulate the effects of such an interferer in a controlled manner, we use hardware attenuators to vary the output power. The picture here shows such an attenuated 802.11 interferer.

802.11 Receiver Path PHY MAC PHY MAC Amplifier control To RF Amplifiers AGC RF Signal ADC Analog signal Data (includes beacons) Timing Recovery Barker Correlator Demodulator Descrambler 6-bit samples Preamble Detector/ Header CRC-16 Checker Receiver For example, when three consecutive beacons from the AP are lost by the MAC layer, the link is commonly assumed to be dead. SYNC SFD CRC Payload PHY header Extend SINR model to capture these vulnerabilities Interested in worst-case natural or adversarial interference Have developed range of “attacks” that trigger these vulnerabilities

Timing Recovery Interference Interferer sends continuous SYNC pattern Interferes with packet acquisition (PHY reception errors) Weak interferer Moderate interferer Log-scale We found an interferer that sends a continuous sync pattern

Interference Management Interference will get worse Density/device diversity is increasing Unlicensed spectrum is not keeping up Spectrum management “Channel hopping” 802.11 effective at mitigating some performance problems [Sigcomm07] Coordinated spectrum use – based on RF sensor network Transmission power control Enable spatial reuse of spectrum by controlling transmit power Must also adapt carrier sense behavior to take advantage

Impact of frequency separation Even small frequency separation (i.e., adjacent 802.11 channel) helps 5MHz separation (good performance) Being slightly off channel can improve throughput significantly

Transmission Power Control Choose transmit power levels to maximize physical spatial reuse Tune MAC to ensure nodes transmit simultaneously when possible Spatial reuse = network capacity / link capacity Client2 Concurrent transmissions increase spatial reuse Client2 AP1 AP2 AP2 Client1 AP1 Client1 Spatial Reuse = 1 Spatial Reuse = 2

Transmission Power Control in Practice For simple scenario  easy to compute optimal transmit power May or may not enable simultaneous transmit Protocol builds on iterative pair-wise optimization Adjusting transmit power  requires adjusting carrier sense thresholds Echos, Alpha or eliminate carrier sense Altrusitic Echos – eliminates starvation in Echos AP1 AP2 Client1 Client2 d11 d22 d12 d21

Details of Power Control Hard to do per-packet with many NICs Some even might have to re-init (many ms) May have to balance power with rate Reasonable goal: lowest power for max rate But finding ths empirically is hard! Many {power, rate} combinations, and not always easy to predict how each will perform Alternate goal: lowest power for max needed rate But this interacts with other people because you use more channel time to send the same data. Uh-oh. Nice example of the difficulty of local vs. global optimization

Rate Adaptation General idea: Observe channel conditions like SNR (signal-to-noise ratio), bit errors, packet errors Pick a transmission rate that will get best goodput There are channel conditions when reducing the bitrate can greatly increase throughput – e.g., if a ½ decrease in bitrate gets you from 90% loss to 10% loss.

Simple Rate Adaptation Scheme Watch packet error rate over window (K packets or T seconds) If loss rate > threshhigh (or SNR <, etc) Reduce Tx rate If loss rate < threshlow Increase Tx rate Most devices support a discrete set of rates 802.11 – 1, 2, 5.5, 11Mbps, etc.

Challenges in Rate Adaptation Channel conditions change over time Loss rates must be measured over a window SNR estimates from the hardware are coarse, and don’t always predict loss rate May be some overhead (time, transient interruptions, etc.) to changing rates

Power and Rate Selection Algorithms Auto Rate Fallback: ARF Estimated Rate Fallback: ERF Goal: Transmit at minimum necessary power to reach receiver Minimizes interference with other nodes Paper: Can double or more capacity, if done right. Joint Power and Rate Selection Power Auto Rate Fallback: PARF Power Estimated Rate Fallback: PERF Conservative Algorithms Always attempt to achieve highest possible modulation rate

Power Control/Rate Control Summary Complex interactions…. More power: Higher received signal strength May enable faster rate (more S in S/N) May mean you occupy media for less time Interferes with more people Less power Interfere with fewer people Less power + less rate Fewer people but for a longer time Gets even harder once you consider Carrier sense Calibration and measurement error Mobility

Overview 802.11 Deployment patterns Reaction to interference Interference mitigation Mesh networks Architecture Measurements

Community Wireless Network Share a few wired Internet connections Construction of community networks Multi-hop network Nodes in chosen locations Directional antennas Require well-coordination Access point Clients directly connect Access points operates independently Do not require much coordination

Roofnet Goals Design decisions Operate without extensive planning or central management Provide wide coverage and acceptable performance Design decisions Unconstrained node placement Omni-directional antennas Multi-hop routing Optimization of routing for throughput in a slowly changing network

Roofnet Design Deployment Hardware Over an area of about four square kilometers in Cambridge, Messachusetts Most nodes are located in buildings 3~4 story apartment buildings 8 nodes are in taller buildings Each Rooftnet node is hosted by a volunteer user Hardware PC, omni-directional antenna, hard drive … 802.11b card RTS/CTS disabled Share the same 802.11b channel Non-standard “pseudo-IBSS” mode Similar to standard 802.11b IBSS (ad hoc) Omit beacon and BSSID (network ID)

Roofnet Node Map 1 kilometer

Roofnet

Typical Rooftop View

A Roofnet Self-Installation Kit Antenna ($65) 8dBi, 20 degree vertical 50 ft. Cable ($40) Low loss (3dB/100ft) Computer ($340) 533 MHz PC, hard disk, CDROM Miscellaneous ($75) Chimney Mount, Lightning Arrestor, etc. Software (“free”) Our networking software based on Click 802.11b card ($155) Engenius Prism 2.5, 200mW Total: $685 Takes a user about 45 minutes to install on a flat roof

Software and Auto-Configuration Linux, routing software, DHCP server, web server … Automatically solve a number of problems Allocating addresses Finding a gateway between Roofnet and the Internet Choosing a good multi-hop route to that gateway Addressing Roofnet carries IP packets inside its own header format and routing protocol Assign addresses automatically Only meaningful inside Roofnet, not globally routable The address of Roofnet nodes Low 24 bits are the low 24 bits of the node’s Ethernet address High 8 bits are an unused class-A IP address block The address of hosts Allocate 192.168.1.x via DHCP and use NAT between the Ethernet and Roofnet

Software and Auto-Configuration Gateway and Internet Access A small fraction of Roofnet users will share their wired Internet access links Nodes which can reach the Internet Advertise itself to Roofnet as an Internet gateway Acts as a NAT for connection from Roofnet to the Internet Other nodes Select the gateway which has the best route metric Roofnet currently has four Internet gateways

Evaluation Method Multi-hop TCP Single-hop TCP Loss matrix 15 second one-way bulk TCP transfer between each pair of Roofnet nodes Single-hop TCP The direct radio link between each pair of routes Loss matrix The loss rate between each pair of nodes using 1500-byte broadcasts Multi-hop density TCP throughput between a fixed set of four nodes Varying the number of Roofnet nodes that are participating in routing

Evaluation Basic Performance (Multi-hop TCP) The routes with low hop-count have much higher throughput Multi-hop routes suffer from inter-hop collisions

No problem in interactive sessions Evaluation Basic Performance (Multi-hop TCP) TCP throughput to each node from its chosen gateway Round-trip latencies for 84-byte ping packets to estimate interactive delay No problem in interactive sessions

Evaluation Link Quality and Distance (Single-hop TCP, Multi-hop TCP) Most available links are between 500m and 1300m and 500 kbits/s (most cases) Srcr Use almost all of the links faster than 2 Mbits/s and ignore majority of the links which are slower than that Fast short hops are the best policy a small number of links a few hundred meters long with throughputs of two megabits/second or more, and a few longer high-throughput links

Evaluation Link Quality and Distance (Multi-hop TCP, Loss matrix) Median delivery probability is 0.8 1/4 links have loss rates of 50% or more 802.11 detects the losses with its ACK mechanism and resends the packets meaning that Srcr often uses links with loss rates of 20% or more.

Evaluation Architectural Alternatives Comparison against communication over a direct radio link to a gateway (Access-point Network) Architectural Alternatives Maximize the number of additional nodes with non-zero throughput to some gateway Ties are broken by average throughput For small numbers of gateways, multi-hop routing improves both connectivity and throughput. Comparison of multi-hop and single-hop architectures, with “optimal" choice of gateways. Comparison of multi-hop and single-hop architectures with random gateway choice.

Evaluation Inter-hop Interference (Multi-hop TCP, Single-hop TCP) Concurrent transmissions on different hops of a route collide and cause packet loss The expected multi-hop throughputs are mostly higher than the measured throughputs.

Roofnet Summary The network’s architectures favors Ease of deployment Omni-directional antennas Self-configuring software Link-quality-aware multi-hop routing Evaluation of network performance Average throughput between nodes is 627kbits/s Well served by just a few gateways whose position is determined by convenience Multi-hop mesh increases both connectivity and throughput

Roofnet Link Level Measurements Analyze cause of packet loss Neighbor Abstraction Ability to hear control packets or No Interference Strong correlation between BER and S/N RoofNet pairs communicate At intermediate loss rates Temporal Variation Spatial Variation neighbor abstraction is a poor approximation of reality

Lossy Links are Common

Delivery Probabilities are Uniformly Distributed

Delivery vs. SNR SNR not a good predictor

Is it Bursty Interference? May interfere but not impact SNR measurement

Two Different Roofnet Links Top is typical of bursty interference, bottom is not Most links are like the bottom

Is it Multipath Interference? Simulate with channel emulator

A Plausible Explanation Multi-path can produce intermediate loss rates Appropriate multi-path delay is possible due to long-links

Key Implications Lack of a link abstraction! Links aren’t on or off… sometimes in-between Protocols must take advantage of these intermediate quality links to perform well How unique is this to Roofnet? Cards designed for indoor environments used outdoors

Outline Overview MAC Routing Wireless TCP Wireless in real world Leverage broadcasting nature Wireless security

Taking Advantage of Broadcast Opportunistic forwarding (ExOR) Network coding (COPE)

Initial Approach: Traditional Routing packet packet A B src dst packet just say picks a route, fwd over that route C Identify a route, forward over links Abstract radio to look like a wired link

Radios Aren’t Wires Every packet is broadcast src dst 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5 6 6 6 6 what’s really going on is we’re abstracting  as youall know, radios don’t work like links C Every packet is broadcast Reception is probabilistic

Exploiting Probabilistic Broadcast packet packet packet packet A B src dst packet packet packet packet packet say there’s an opportunity here, take advantage of bcast. spell it out: closest node should reduce the number of tx to get to dest. challenge:: key failure is that two people should not forward. make sure only one guy forwards C Decide who forwards after reception Goal: only closest receiver should forward Challenge: agree efficiently and avoid duplicate transmissions

Why ExOR Might Increase Throughput src N1 N2 N3 N4 N5 dst 75% 50% 25% new slide earlier, assume figured out design. explore why exor might improve throughput/develop a feel title -> why exor might beat trad routing. inverse prop to #trans, up to 4 hops Best traditional route over 50% hops: 3(1/0.5) = 6 tx Throughput  1/# transmissions ExOR exploits lucky long receptions: 4 transmissions Assumes probability falls off gradually with distance

Why ExOR Might Increase Throughput 25% 100% N2 25% 100% src dst 25% 100% N3 100% 25% N4 say this is a contrived example Traditional routing: 1/0.25 + 1 = 5 tx ExOR: 1/(1 – (1 – 0.25)4) + 1 = 2.5 transmissions Assumes independent losses

Comparing ExOR Traditional Routing: Co-operative Diversity: ExOR: One path followed from source to destination All packets sent along that path Co-operative Diversity: Broadcast of packets by all nodes Destination chooses the best one ExOR: Broadcast packets to all nodes Only one node forwards the packet Basic idea is delayed forwarding

ExOR Batching Challenge: finding the closest node to have rx’d tx: 0 tx: 100 tx:  9 tx: 57 -23  24 src dst N1 N3 tx:  8 tx: 23 Challenge: finding the closest node to have rx’d Send batches of packets for efficiency Node closest to the dst sends first Other nodes listen, send remaining packets in turn Repeat schedule until dst has whole batch add circle for source, then some more circles showing next iteration (no rx/tx numbers). say at the end, packets go through multiple iteration. add source, add n4.

Reliable Summaries Repeat summaries in every data packet contains the sender's best guess of the highest priority node to have received each packet tx: {2, 4, 10 ... 97, 98} batch map: {1,2,6, ... 97, 98, 99} N2 N4 src dst N1 N3 tx: {1, 6, 7 ... 91, 96, 99} The remaining forwarders transmit in order, but only send packets which were not acknowledged in the batch maps of higher priority nodes. just say we incude a summary in every packet repeated cumulative simplify: every node is listening, include list to make it more robust batch map: {1, 6, 7 ... 91, 96, 99} Repeat summaries in every data packet Cumulative: what all previous nodes rx’d This is a gossip mechanism for summaries

Priority Ordering Goal: nodes “closest” to the destination send first src dst N1 N3 Goal: nodes “closest” to the destination send first Sort by ETX metric to dst Nodes periodically flood ETX “link state” measurements Path ETX is weighted shortest path (Dijkstra’s algorithm) Source sorts, includes list in ExOR header source calculates path etx for each node to dest, talk about dijkstra, sort by lowest etx

Using ExOR with TCP Web Server Client PC Node Gateway Proxy Web Proxy ExOR Batches (not TCP) Node Gateway Proxy Web Proxy ExOR don’t say we will, say we do. Batching interacts badly with tcp. Internet cloud. NOT using TCP in the middle – spell it out Batching requires more packets than typical TCP window

Summary ExOR achieves 2x throughput improvement ExOR implemented on Roofnet Exploits radio properties, instead of hiding them

Outline Opportunistic forwarding (ExOR) Network coding (COPE)

Background Famous butterfly example: All links can send one message per unit of time Coding increases overall throughput

Require 4 transmissions Background Bob and Alice Relay Require 4 transmissions

Require 3 transmissions Background Bob and Alice Relay XOR XOR XOR Bridge the gap between theory of network coding and practical network design Require 3 transmissions

Coding Gain Coding gain = 4/3 1+3 1 3

Throughput Improvement UDP throughput improvement ~ a factor 2 > 4/3 coding gain 1+3 1 3

Coding Gain: more examples 3 5 1+2+3+4+5 2 4 1 Opportunistic Listening: Every node listens to all packets It stores all heard packets for a limited time Without opportunistic listening, coding [+MAC] gain=2N/(1+N)  2. With opportunistic listening, coding gain + MAC gain  ∞

COPE (Coding Opportunistically) Overhear neighbors’ transmissions Store these packets in a Packet Pool for a short time Report the packet pool info. to neighbors Determine what packets to code based on the info. Send encoded packets To send packet p to neighbor A, XOR p with packets already known to A. Thus, A can decode But how can multiple neighbors benefit from a single transmission?

Opportunistic Coding P4 P1 C P4 P3 P2 P1 B D A P3 P1 P4 P3 B’s queue Next hop P1 A P2 C P3 P4 D P4 P1 C P4 P3 P2 P1 B Coding Is it good? P1+P2 Bad (only C can decode) P1+P3 Better coding (Both A and C can decode) P1+P3+P4 Best coding (A, C, D can decode) D A P3 P1 P4 P3

Packet Coding Algorithm When to send? Option 1: delay packets till enough packets to code with Option 2: never delaying packets -- when there’s a transmission opportunity, send packet right away Which packets to use for XOR? Prefer XOR-ing packets of similar lengths Never code together packets headed to the same next hop Limit packet re-ordering XORing a packet as long as all its nexthops can decode it with a high enough probability

Packet Decoding Where to decode? How to decode? Decode at each intermediate hop How to decode? Upon receiving a packet encoded with n native packets find n-1 native packets from its queue XOR these n-1 native packets with the received packet to extract the new packet

Prevent Packet Reordering Packet reordering due to async acks degrade TCP performance Ordering agent Deliver in-sequence packets immediately Order the packets until the gap in seq. no is filled or timer expires

Summary of Results Improve UDP throughput by a factor of 3-4 Improve TCP by wo/ hidden terminal: up to 38% improvement w/ hidden terminal and high loss: little improvement Improvement is largest when uplink to downlink has similar traffic Interesting follow-on work using analog coding

Reasons for Lower Improvement in TCP COPE introduces packet re-ordering Router queue is small  smaller coding opportunity TCP congestion window does not sufficiently open up due to wireless losses TCP doesn’t provide fair allocation across different flows

Outline Overview MAC Routing Wireless TCP Wireless in real world Leverage broadcasting nature Wireless security

Overview Understand Attacks Stimulate cooperation Detect Attacks Defend

Attacking Wireless Networks

Attack 1: CSMA Selfish Behaviors Carrier sense: When a node wishes to transmit a packet, it first waits until the channel is idle Backoff Interval: used to reduce collision probability When transmitting a packet, choose a backoff interval in the range [0,cw]: cw is contention window Count down the backoff interval when medium is idle Count-down is suspended if medium becomes busy When backoff interval reaches 0, transmit IEEE 802.11 DCF: contention window cw is chosen dynamically depending on collision occurrence

Binary Exponential Backoff When a node faced a transmission failure, it increases the contention window cw is doubled (up to an upper bound) When a node successfully completes a data transfer, it restores cw to Cwmin cw follows a sawtooth curve

Attack 1: CSMA Selfish Behaviors Use smaller backoff window Transmit with you should not Attacker gets more bandwidth Cause collisions to others Figures from “Overcoming Misbehavior in Mobile Ad Hoc Networks: An Overview.”

Attack 2: Jamming jammer I can’t decode my data

Attack 3: Injecting Bogus Information

Introduction Traditionally, Denial of Service (DoS) attacks involve filling receiving buffers and/or bringing down servers In the wireless domain, DoS is more fundamentally linked with the medium MAC misbehavior or Preventing nodes from even communicating (i.e., jamming)

Roadmap Advanced Detection Mechanisms Basic Detection Mechanisms Jamming Models Basic Detection Mechanisms Advanced Detection Mechanisms

What is a Jammer? A jammer is purposefully trying to interfere with the physical transmit/receive

Jammers -- Hardware Cell phone jammer unit Signal generator Block every cellular phone!!! Signal generator Conventional devices

Goal of Jammer Interference How to measure their effectiveness: Prevent a sender from sensing out packets Prevent a receiver from receiving legitimate packets How to measure their effectiveness: Packet Send Ratio (PSR): Ratio of actual # of packets sent out versus # of packets intended Packet Delivery Ratio (PDR): Ratio of # of successfully delivered packets versus # of packets sent out Measured at sender [ACKs] or receiver [CRC check]

Jammer Attack Models Normal MAC protocol: Jammer: Need to send m start to Jammer: Need to send m Is channel idle? Backoff start to No Yes Is channel idle? Backoff No Yes

Jamming Models Constant Jammer Deceptive Jammer Random Jammer Continuously emits radio signal (random bits, no MAC-etiquette) Deceptive Jammer Continuously sends regular packets (preamble bits) without gaps in transmission Targeting sending Random Jammer Alternates between sleeping and jamming states. Takes energy conservation into consideration Reactive Jammer: Reacts to a sent message Targeting reception; Harder to detect

Constant Jammer Constant Jammer - continually emits a radio signal (noise). The device will not wait for the channel to be idle before transmitting. Can disrupt even signal strength comparison protocols .

Deceptive Jammer Deceptive Jammer - constantly injects regular packets with no gap between packets. A normal device will remain in the receive state and cannot switch to the send state because of the constant stream of incoming packets.

Random Jammer Random Jammer - alternates between sleeping and jamming. Can act as constant or deceptive when jamming. Takes energy conservation into consideration.

Reactive Jammer Reactive Jammer - other three are active this is not. It stays quiet until there is activity on the channel. This targets the reception of a message. This style does not conserve energy however it may be harder to detect.

Basic Jamming Detection What attributes will help us detect jamming? Signal strength (PHY-layer detection) Carrier sense (MAC layer detection) Packet Delivery Ratio Detects all jamming models Differentiates jamming from congestion Cannot differentiate jamming from node failure, battery loss, departure, etc.

Detection 1: Analyzing Signal Strength How can we use Signal Strength to detect Jamming? Signal strength distribution may be affected by the presence of a jammer Each device should gather its own statistics to make its own decisions on the possibility of jamming Establish a base line or build a statistical model of normal energy levels prior to jamming of noise levels….But how??

Two Methods for Signal Strength 1. Basic Average and Energy Detection We can extract two statistics from this reading, the average signal strength and the energy for detection over a period of time 2. Signal Strength Spectral Discrimination A method that employs higher order crossings (HOC) to calculate the differences between samples This method is practical to implement on resource constrained wireless devices, such as sensor nodes

Experiment Setup Involving three parties: Parameters dAB dXB dXA Normal nodes: Sender A Receiver B Jammer X Parameters Four jammers model Distance Let dXB = dXA Fix dAB at 30 inches Power PA = PB = P X = -4dBm Sender A Receiver B Jammer X dXB dAB dXA

CBR: 20 packets per second Signal Strength CBR: 20 packets per second The average values for the constant jammer and the MaxTraffic source are roughly equal The constant jammer and deceptive jammer have roughly the same average values The signal strength average from a CBR source does not differ much from the reactive jammer scenario These results suggest that we may not be able to use simple statistics such as average signal strength to identify jamming

Signal-Strength: Higher Order Crossing We can not distinguish the reactive or random jammer from normal traffic A reactive or random jammer will alternate between busy and idle in the same way as normal traffic behaves HOC will work for some jammer scenarios but are not powerful enough to detect all jammer scenarios Not working well….

Detection 2: Analyzing Carrier Sensing Time A jammer can prevent a legitimate source from sending out packets  channel might appear constantly busy to the source Keep track of the amount of time it spends waiting for the channel to become idle (carrier sensing time) Compare it with the sensing time during normal traffic operations to determine whether it is jammed Only true if MAC protocol employs a fixed signal strength threshold to determine whether channel is busy Determine when large sensing times are results of jamming by setting a threshold Threshold set conservatively to reduce false positive

Detection 2: Analyzing Carrier Sensing Time It detects the Constant and Deceptive Jammer Hard to detect a reactive jammer

Detection 3: Analyzing Packet Delivery Ratio How much PDR degradation can be caused by non-jamming, normal network dynamics, such as congestion? (PDR 78%) A jammer causes the PDR drop significantly, almost to 100% A simple threshold based on PDR is a powerful statistic to determine Jamming vs. congestion PDR can not differentiate non-aggressive jamming attacks from poor channel quality… Receiver MaxTraffic Sender

Basic Statistics Summary Both Signal Strength and Carrier Sensing time can only detect the constant and deceptive jammer Neither of these two statistics is effective in detecting the random or the reactive jammer PDR is a powerful statistic to determine Jamming vs. congestion It can not account for all network dynamics

Solution: Consistency Checks PDR is relatively good Normal scenario: High signal strength  high PDR Low signal strength  low PDR Low PDR in real life Poor channel quality Jamming attacks  high signal strength Consistency check Look at transmissions from neighbors If at least one neighbor has high PDR If all have low PDR  check signal strength  high  I am being jammed!

Location-Based Consistency Check Concept: Close neighbor nodes → high PDR Far neighbor nodes → lower PDR If all nearby neighbors exhibit low PDR  jammed!

PRD/Signal Strength Consistency PDR< Threshold No Yes Sample Signal Strength Not Jammed PDR consistent with SS Yes No Jammed

Results Observed Normal relationships High signal strength yields a high PDR Low signal strength yields a low PDR Jammed scenario: a high signal strength but a low PDR The Jammed region has above 99% signal strength confidence intervals and whose PDR is below 65%

What Happens After Detection?? This work has identified jamming models and described a means of detection Prevention? Reaction? Channel surfing and spatial retreats SSCH

Our Jammers MAC-layer Jammer PHY-layer Jammer Mica2 Motes (UC Berkeley) 8-bit CPU at 4MHz 512KB flash, 4KB RAM 916.7MHz radio OS: TinyOS Disable the CSMA Keep sending out the preamble PHY-layer Jammer Waveform Generator Tune frequency to 916.7MHz

Escaping From Jamming Attacks Channel Surfing Utilize frequency hopping if a node detects that it is being jammed it just switches to another channel Inspired by frequency hopping techniques, but operates at the link layer System Issues: Must have ability to choose multiple “orthogonal” channels Practical Issue: PHY specs do not necessarily translate into correct “orthogonal” channels Example: MICA2 Radio recommends: “choose separate channels with a minimum spacing of 150KHz” but…..

Throughput VS. Channel Assignment Sender sends the packet as fast as it can Receiver counts the packet and calculates the throughput The radio frequency of the sender and receiver was fixed at 916.7MHz Increased the interferer’s communication frequency by 50kHz each time When the Jammer’s communication frequency increases to 917.5MHz, there is almost no interference

Is Channel Surfing Feasible??

Escaping From Jamming Attacks “Orthogonal” channels The fact is that we need at least 800KHz to escape the interference Therefore, explicit determination of the amount of orthogonal channels is important Channel Surfing Target: maximize the delay before the attacker finds the new channel Solution: use a (keyed) pseudo-random channel assignment between nodes

Escaping from Jamming Attacks Spatial Retreats: If a node is jammed move spatially (physically) to another location When a node changes location, it needs to move to a new location where it can avoid being jammed but minimize network degradation Sometimes a spatial retreat will cause a network partition Two different strategies to defend against jamming Channel-surfing: changing the transmission frequency to a range where there is no interference from the attacker Spatial retreat: moving to a new location where there is no interference

Jammers will be Punished A man skilled in the operation of commercial wireless Internet networks was sentenced for intentionally bringing down wireless Internet services across the region of Vernal, Utah. Ryan Fisher, 24, was sentenced to 24 months in prison to be followed by 36 months of supervised release, and to pay $65,000 in restitution. In total, more than 170 customers lost Internet service, some of them for as long as three weeks

Sustaining Cooperation in Multi-Hop Wireless Networks

Motivation Free riding in multi-hop wireless networks less contribution to the group consume more than their fair share of a resource Routing protocols assume that nodes are well behaved Need for a system which discourages selfish behavior

Problem Definition B can avoid these forwarding loads in two distinct ways: Forwarding level : drop packets for forwarding from A Routing level : refuse to send routing messages that acknowledge connectivity with A

Assumptions Nodes  Selfish but not Malicious Most nodes in the system are cooperative Omni-directional radio transmitters and antennas Nodes have unforgeable ID

Catch !! Fear of punishment ! Enforcement based mechanism to discourage free-riding through Fear of punishment !

Main Idea …

Problems in doing this?? Distinguishing between Selfish nodes and Transmission errors Announcing the presence of free-rider to all, even if he/she is your only link to the outside world

Power of Anonymity The goal is to use cooperative nodes to monitor for the presence of free-riders and to isolate them Two problems Distinguish them Signal all of the free-rider’s neighbor

Solution.. Anonymous Challenge and Watchdogs To distinguish deliberate packet dropping from wireless errors Anonymous Neighbor Verification To inform all other testers of the free-rider to isolate him

Anonymous Challenges A watchdog is used All Testers regularly but unpredictably send an anonymous challenge to Testee for it to rebroadcast A cryptographic hash of a randomly generated token Even a selfish testee must depend on at least one of its testers to forward its packets if it is to stay connected Any tester, without hearing the rebroadcast of its challenge  Flag Testee as a Free Rider, refuses to forward packets

Anonymous Neighbor Verification Once free-rider is detected, other testers must also be informed Challenge: the only path must be via the testee Anonymous neighbor verification (ANV) sub-protocol is defined

Anonymous Neighbor Verification First phase – ANV Open Each tester sends cryptographic hash of a random token to the testee to rebroadcast All others take note Second phase – ANV Close If satisfied, release token to testee for it to rebroadcast If senders don’t receive tokens for all hash messages  infer that testee is free riding

Evaluation 15 PCs equipped with 802.11b Operating in the ad-hoc mode Diameter is between 3 and 5 hops Length of one epoch is set to one minute There are 15 anonymous ACM messages per epoch

Evaluation

Evaluation Three nodes: the second one acts as free-rider The number of epochs required to detect free-riders in the testbed versus the fraction of packets a free-rider dropped Each point is the average of 10 experiments

Evaluation Average Time to Isolation (ATI)

Conclusion Catch sustains cooperation with autonomous p nodes No central authority required unlike reputation/incentive based schemes No restrictions on workload, routing protocols or node objectives Isolates free‐riders rather quickly No false positives