Using ns-3 emulation to experiment with Wireless Mesh Network Routing: Lessons learned José Núñez-Martínez Research Engineer Centre Tecnologic de Telecomunicacions.

Slides:



Advertisements
Similar presentations
IEEE INFOCOM 2004 MultiNet: Connecting to Multiple IEEE Networks Using a Single Wireless Card.
Advertisements

CCNA3: Switching Basics and Intermediate Routing v3.0 CISCO NETWORKING ACADEMY PROGRAM Switching Concepts Introduction to Ethernet/802.3 LANs Introduction.
1 Chapter 22 Network layer Delivery, Forwarding and Routing.
RIP V1 W.lilakiatsakun.
MikroTik Vendor Session © MikroTik MikroTik Vendor Session WISPNOG February th, 2005 Chicago, IL.
Cs/ee 143 Communication Networks Chapter 6 Internetworking Text: Walrand & Parekh, 2010 Steven Low CMS, EE, Caltech.
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r Homework 3 out r Project 3 out, link state only. Some slides are.
Traffic Management - OpenFlow Switch on the NetFPGA platform Chun-Jen Chung( ) SriramGopinath( )
Traffic Management - OpenFlow Switch on the NetFPGA platform Chun-Jen Chung( ) Sriram Gopinath( )
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP and RARP Understand the need for ARP Understand the cases in which ARP is used.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
5-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
IP Routing: an Introduction. Quiz
Internetworking Devices that connect networks are called Internetworking devices. A segment is a network which does not contain Internetworking devices.
G Robert Grimm New York University Receiver Livelock.
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
QualNet 2014/05/ 尉遲仲涵. Outline Directory Structure QualNet Basic Message & Event QualNet simulation architecture Protocol Model Programming.
Semester 1 Module 8 Ethernet Switching Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Performance Validation of Mobile IP Wireless Networks Syed Shahzad Ali Muhammad Saqib Ilyas Advisor: Dr. Ravi Pendse.
CONVERGENCE KO Meeting EXPRESS: Implementing an SDN infrastructure over a federation of testbeds (experiment within the OpenLab project) Stefano Salsano.
CCNA2 Chapter 1 Wide Area Networks and Routers. WAN is a data communications network that operates beyond a LAN’s geographic scope. Users subscribe to.
1 Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
Chapter 4: Managing LAN Traffic
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Brierley 1 Module 4 Module 4 Introduction to LAN Switching.
Address Resolution Protocol(ARP) By:Protogenius. Overview Introduction When ARP is used? Types of ARP message ARP Message Format Example use of ARP ARP.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
Design and Implementation of a Multi-Channel Multi-Interface Network Chandrakanth Chereddi Pradeep Kyasanur Nitin H. Vaidya University of Illinois at Urbana-Champaign.
Mr. Mark Welton.  A computer network, or simply a network, is a collection of computers and other hardware interconnected by communication channels.
Hyung-Min Lee ©Networking Lab., 2001 Chapter 8 ARP and RARP.
Dynamic Source Routing in ad hoc wireless networks Alexander Stojanovic IST Lisabon 1.
Wireless Software R&D Group, IITP RAS Kirill Andreev, Aleksey Kovalenko, Dmitriy Lakontsev Realization of IEEE802.11s draft standard in NS-3.3 Institute.
The Routing Table Last Update Copyright Kenneth M. Chipps Ph.D.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 4 Switching Concepts.
Cisco 3 - Switching Perrine. J Page 16/4/2016 Chapter 4 Switches The performance of shared-medium Ethernet is affected by several factors: data frame broadcast.
802.11n Sniffer Design Overview Vladislav Mordohovich Igor Shtarev Luba Brouk.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
Traffic Management - OpenFlow Switch on the NetFPGA platform Chun-Jen Chung( ) Sriram Gopinath( )
Design, Implementation and Tracing of Dynamic Backpressure Routing for ns-3 José Núñez-Martínez Research Engineer Centre Tecnològic de Telecomunicacions.
Basic Routing Principles V1.2. Objectives Understand the function of router Know the basic conception in routing Know the working principle of router.
STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
An Energy Efficient MAC Protocol for Wireless LANs, E.-S. Jung and N.H. Vaidya, INFOCOM 2002, June 2002 吳豐州.
Switching Concepts Introduction to Ethernet/802.3 LANs
An Efficient Gigabit Ethernet Switch Model for Large-Scale Simulation Dong (Kevin) Jin.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
CCNA3 Module 4 Brierley Module 4. CCNA3 Module 4 Brierley Topics LAN congestion and its effect on network performance Advantages of LAN segmentation in.
Interconnecting Cisco Networking Devices Part 1 Pass4sureusa Pass4sure.
Address Resolution Protocol Yasir Jan 20 th March 2008 Future Internet.
Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:
ROUTING AND ROUTING TABLES 2 nd semester
Introduction to Networks v6.0
IP: Addressing, ARP, Routing
Instructor Materials Chapter 5: Ethernet
EE 122: Lecture 19 (Asynchronous Transfer Mode - ATM)
The Medium Access Control Sublayer
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
Network Load Balancing Topology
Introduction to Networking
Computer Networks 9/17/2018 Computer Networks.
Net 323: NETWORK Protocols
Virtual Network Management
© 2002, Cisco Systems, Inc. All rights reserved.
Chapter 2: Static Routing
© 2002, Cisco Systems, Inc. All rights reserved.
Presentation transcript:

Using ns-3 emulation to experiment with Wireless Mesh Network Routing: Lessons learned José Núñez-Martínez Research Engineer Centre Tecnologic de Telecomunicacions de Catalunya 25/03/2011

2 Goal of this talk Give the implementation details of porting the implementation of a routing protocol to a real WMN testbed by means of ns-3 emulation framework Initial results on the the performance evaluation of the ns-3 emulation framework in a real testbed

3 Outline Testbed Setup Ns-3 WMR Main changes in the routing protocol Performance Evaluation Conclusions

4 Outline Testbed Setup Ns-3 WMR Implications in the routing protocol Performance Evaluation Conclusions

5 Wireless Mesh Node Motherboard: Portwell Mini-ITX 1.6Ghz processor Storage: 80Gb PATA hard disk. Wireless Interfaces up to four mini-PCI CM9 atheros wireless 54Mbps 5Ghz band pseudo ad-hoc mode, one antenna 3G Femtocell connected through Ethernet iface via Switch OS Linux Fedora Core Madwifi 0.9.4

6 Wireless Mesh Testbed Deployed in the first floor of the CTTC building An approximate area of 1200 square meters 12 WiFi nodes acting as Wireless Mesh Routers Static and non-power constrained Backbone wireless mesh network Using 1 WiFi interface and 1 Ethernet to connect Femtocells Wifi Mesh initially set up to single radio single channel Network control via Ethernet LAN Controller for remote management purposes

7 Wireless Mesh Tesbed Deployment

8 Testbed Routing Configuration Flows directed to a Femtocell Add static routes to packets directed to the Femtocell connected by Ethernet Interface Backpressure to route packets to another Femtocell not directly connected by Ethernet Interface Flows coming from a Femtocell Static Default route added to reach the WMR directly connected via Ethernet Interface Static Default route of the GW in the mesh to reach Core Network Flows originated at the WMR Generate them within ns-3

9 Outline Testbed Setup Ns-3 WMR Implications in the routing protocol Performance Evaluation of ns3 Conclusions

10 Ns-3 WMR configuration EmuNetDevice associated to each interface associated to ath0 Ptr device = CreateObject (); device->SetAttribute ("Address", Mac48AddressValue ("00:0b:6b:81:ce:2a"); device->SetAttribute ("DeviceName", StringValue (deviceName)); Static Routing and Backpressure Routing Static routing more priority than backpressure routing and removed routes associated in static routing to use backpressure routing list.Add (staticRouting, 10); // static routing list.Add (backpressure, 0); //dynamic backpressure routing staticRouting->RemoveRoute (1); //so that backpressure would be used to route within the WMN

11 Ns-3 WMR configuration To disable ARP in the testbed, fix static ARP entries in the node interfaces Create ARP cache Ptr arp = CreateObject (); arp->SetAliveTimeout (Seconds(3600*24*365)); Add ARP cache entry Mac48Address macAddr = Mac48Address("00:0b:6b:81:ce:2a"); Ipv4Address ipAddr = Ipv4Address(" "); ArpCache::Entry * entry = arp->Add(ipAddr); entry->MarkWaitReply(0); entry->MarkAlive(macAddr); Associate Arp Cache to the IP interface ipIface->SetAttribute("ArpCache", PointerValue(arp));

12 Outline Testbed Setup Ns-3 WMR Implications in the routing protocol Ns-3 Emulation Performance Evaluation Conclusions

13 Dynamic Backpressure Routing protocol Implementation EMU_MODE/SIMU_MODE depending on the mode there are some changes in the routing protocol module backpressure.Set("Mode", EnumValue(EMU_MODE)); Due to the particularities of dynamic backpressure routing there are some coding differences Interaction with WiFi MAC Queues Routing Protocol require some adjustments in emulation mode

14 Transmission Opportunities in EMU_MODE Recall that packets coming from upper//lower layers are not necessarily immediately forwarded Instead of this they are stored waiting for transmission opportunities In SIMU_MODE a callback from WiFi MAC layer is launched whenever there are free data slots in the WiFi MAC Layer In this case the real host has to tell somehow to ns-3 whether there is a new transmission opportunity or not

15 Interaction between ns3 and madwifi driver

16 Interacion between NS-3 and Madwifi driver Madwifi patched to trigger interruption Create a file in /proc/sys/ Patch madwifi driver to Write in /proc/sys/ file when the HW buffer is full Another write event when HW buffer is not full In the ns-3 dynamic backpressure routing module create a thread waiting for some write event on a file in /proc/sys/ Use select() system call waiting for a write event Continuous transmission opportunity in the routing module by default When the thread is unblocked and previously was idle transmission opportunities are locked

17 Outline Testbed Setup Ns-3 WMR Implications in the routing protocol Ns-3 Emulation Performance Evaluation Conclusions

18 NS-3 Mac Spoofing Be careful with the selected MAC address to spoof BSSID_MASK: mask to set up potential mac addresses of the VAPS associated to a WiFi card Not every random mac address is appropriate at least for WiFi cards In madWiFi higher bits of the mac address identify the VAP With MAC addresses which do not satisfy BSSID_MASK the WiFi card discard data packets though some of them are able to be processed

19 NS-3 performance Processing Linux host saturating a WiFi interface in a mode 4000pkts per second payload 1024bytes Ns-3 WMR processing packets EmuNetDevice RxQueueSize Performance degradation due to queue drops in EmuNetDevice Appropiate EmuNetDevice queue size

20 NS-3 performance Sending Ns-3 WMR saturating WiFi interface Performance at the receiver UDP traffic 4000pkts per second during 30seconds

21 Outline Testbed Setup Ns-3 WMR Implications in the routing protocol Ns-3 Emulation Performance Evaluation Conclusions

22 Conclusions Implementation particularities of the routing protocol and ns3 WMR router configuration Main issues with respect to ns-3 simulation are given by the interaction with the testbed But essentials of the routing protocol do not change HELLO messages, routing algorithm Initial ns-3 Emulation Performance Evaluation is satisfactory but more tests are needed Delays

23 Thanks for your kind attention! Questions? José Núñez-Martínez Research Engineer Centre Tecnologic de Telecomunicacions de Catalunya

24 Receiving and Transmitting Ns-3 WMR receiving and transmitting 2000 packets second Wifi card prioritizes packet reception (i.e., red flow) Ns-3 WMR receiving and transmitting at a rate of 1000 packets per second