1 Network Simulation and Testing Polly Huang EE NTU

Slides:



Advertisements
Similar presentations
Balaji Prabhakar Active queue management and bandwidth partitioning algorithms Balaji Prabhakar Departments of EE and CS Stanford University
Advertisements

QoS Strategy in DiffServ aware MPLS environment Teerapat Sanguankotchakorn, D.Eng. Telecommunications Program, School of Advanced Technologies Asian Institute.
© R. Jayanthan, K. Gunasakera 1999 Quality of Service in Multiservice Networks for Digital Economy R. Jayanthan & Kithsiri Gunasakera National IT Conference.
Network and Communications Hongsik Choi Department of Computer Science Virginia Commonwealth University.
Traffic Shaping Why traffic shaping? Isochronous shaping
Doc.: IEEE /0604r1 Submission May 2014 Slide 1 Modeling and Evaluating Variable Bit rate Video Steaming for ax Date: Authors:
© 2006 Cisco Systems, Inc. All rights reserved.QoS v2.2—5-1 Congestion Management Configuring FIFO and WFQ.
Congestion Control An Overview -Jyothi Guntaka. Congestion  What is congestion ?  The aggregate demand for network resources exceeds the available capacity.
1 CNPA B Nasser S. Abouzakhar Resource Allocation 2 Week 6 – Lecture 2 2 nd November, 2009.
Max Min Fairness How define fairness? “ Any session is entitled to as much network use as is any other ” ….unless some sessions can use more without hurting.
1 Secure Detection and Isolation of TCP-unfriendly Flows Shuo Chen (Summer Intern) Jose C. Brustoloni (Mentor) Network Software Research Department Bell.
Computer Networks Performance Metrics Advanced Computer Networks.
Differentiated Services. Service Differentiation in the Internet Different applications have varying bandwidth, delay, and reliability requirements How.
A Case for Relative Differentiated Services and the Proportional Differentiation Model Constantinos Dovrolis Parameswaran Ramanathan University of Wisconsin-Madison.
Introduction Future wireless systems will be characterized by their heterogeneity - availability of multiple access systems in the same physical space.
Analysis and Simulation of a Fair Queuing Algorithm
WPI - Advanced Computer Network 1 Promoting the Use of End-to-End Congestion Control in the Internet IEEE/ACM Transactions on Networking, May Sally.
1 Traffic Sensitive Quality of Service Controller Masters Thesis Submitted by :Abhishek Kumar Advisors: Prof Mark Claypool Prof Robert Kinicki Reader:
Denial of Service Resilience in Ad Hoc Networks Imad Aad, Jean-Pierre Hubaux, and Edward W. Knightly Designed by Yao Zhao.
Computer Networks: Performance Measures1 Computer Network Performance Measures.
Traffic Sensitive Active Queue Management - Mark Claypool, Robert Kinicki, Abhishek Kumar Dept. of Computer Science Worcester Polytechnic Institute Presenter.
Defending Against Low-rate TCP Attack: Dynamic Detection and Protection Haibin Sun John C.S.Lui CSE Dept. CUHK David K.Y.Yau CS Dept. Purdue U.
Promoting the Use of End-to- End Congestion Control in the Internet Sally Floyd and Kevin Fall Presented by Scott McLaren.
1 Emulating AQM from End Hosts Presenters: Syed Zaidi Ivor Rodrigues.
User-level Internet Path Diagnosis R. Mahajan, N. Spring, D. Wetherall and T. Anderson.
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
The War Between Mice and Elephants By Liang Guo (Graduate Student) Ibrahim Matta (Professor) Boston University ICNP’2001 Presented By Preeti Phadnis.
Not All Microseconds are Equal: Fine-Grained Per-Flow Measurements with Reference Latency Interpolation Myungjin Lee †, Nick Duffield‡, Ramana Rao Kompella†
Understanding QoS Fundamentals. The basic overview for QoS is “Who goes 1 st? ” from an exit perspective on a switch or router. ‘Evil Villains’ in the.
1 Performance Evaluation of Ring- based Peer-to-Peer Virtual Private Network (RING-P2P-VPN) Hiroyuki Ohsaki Graduate School of Information Sci. & Tech.
Integrated Services (RFC 1633) r Architecture for providing QoS guarantees to individual application sessions r Call setup: a session requiring QoS guarantees.
Top-Down Network Design Chapter Thirteen Optimizing Your Network Design Oppenheimer.
A Simple and Effective Cross Layer Networking System for Mobile Ad Hoc Networks Wing Ho Yuen, Heung-no Lee and Timothy Andersen.
1 Network Simulation and Testing Polly Huang EE NTU
Advance Computer Networking L-5 TCP & Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan.
Bandwidth partitioning (jointly with R. Pan, C. Psounis, C. Nair, B. Yang, L. Breslau and S. Shenker)
Understanding the Performance of TCP Pacing Amit Aggarwal, Stefan Savage, Thomas Anderson Department of Computer Science and Engineering University of.
ACN: CSFQ1 CSFQ Core-Stateless Fair Queueing Presented by Nagaraj Shirali Choong-Soo Lee ACN: CSFQ1.
1 Lecture 14 High-speed TCP connections Wraparound Keeping the pipeline full Estimating RTT Fairness of TCP congestion control Internet resource allocation.
1. Performance Guarantees Introduction –by asking sources about flow behavior it is possible to construct networks that could guarantee performance for.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 21 – Case Studies for Multimedia Network Support (Layer 3) Klara Nahrstedt Spring 2009.
Fair Queueing. 2 First-Come-First Served (FIFO) Packets are transmitted in the order of their arrival Advantage: –Very simple to implement Disadvantage:
Multimedia Wireless Networks: Technologies, Standards, and QoS Chapter 3. QoS Mechanisms TTM8100 Slides edited by Steinar Andresen.
A Dynamic Packet Stamping Methodology for DDoS Defense Project Presentation by Maitreya Natu, Kireeti Valicherla, Namratha Hundigopal CISC 859 University.
© 2006 Cisco Systems, Inc. All rights reserved. Optimizing Converged Cisco Networks (ONT) Module 3: Introduction to IP QoS.
Scavenger performance Cern External Network Division - Caltech Datagrid WP January, 2002.
S Master’s thesis seminar 8th August 2006 QUALITY OF SERVICE AWARE ROUTING PROTOCOLS IN MOBILE AD HOC NETWORKS Thesis Author: Shan Gong Supervisor:Sven-Gustav.
The Design and Implementation of Firewall, NAT, Traffic Shaper on FreeBSD.
Analysis of QoS Arjuna Mithra Sreenivasan. Objectives Explain the different queuing techniques. Describe factors affecting network voice quality. Analyse.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
1 1 July 28, Goal of this session is too have a discussion where we learn about the relevant data to help us understand the problem and design.
Self-generated Self-similar Traffic Péter Hága Péter Pollner Gábor Simon István Csabai Gábor Vattay.
Packet Scheduling: SCFQ, STFQ, WF2Q Yongho Seok Contents Review: GPS, PGPS SCFQ( Self-clocked fair queuing ) STFQ( Start time fair queuing ) WF2Q( Worst-case.
1 Wide Area Network Emulation on the Millennium Bhaskaran Raman Yan Chen Weidong Cui Randy Katz {bhaskar, yanchen, wdc, Millennium.
EE 122: Lecture 15 (Quality of Service) Ion Stoica October 25, 2001.
Access Control Lists (ACL). Access-List Overview 4 A Filter through which all traffic must pass 4 Used to Permit or Deny Access to Network 4 Provides.
Analysis of RED Goal: impact of RED on loss and delay of bursty (TCP) and less bursty or smooth (UDP) traffic RED eliminates loss bias against bursty traffic.
An Efficient Gigabit Ethernet Switch Model for Large-Scale Simulation Dong (Kevin) Jin.
An Efficient Gigabit Ethernet Switch Model for Large-Scale Simulation Dong (Kevin) Jin.
Queue Scheduling Disciplines
1 Transport Layer: Basics Outline Intro to transport UDP Congestion control basics.
Courtesy Piggybacking: Supporting Differentiated Services in Multihop Mobile Ad Hoc Networks Wei LiuXiang Chen Yuguang Fang WING Dept. of ECE University.
1 Lecture 15 Internet resource allocation and QoS Resource Reservation Protocol Integrated Services Differentiated Services.
Advanced Network Tap application for
Instructor Materials Chapter 6: Quality of Service
Corelite Architecture: Achieving Rated Weight Fairness
Chapter 6 Congestion Avoidance
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Quality of Service Connecting Networks.
Lottery Scheduling Ish Baid.
Fair Queueing.
Presentation transcript:

1 Network Simulation and Testing Polly Huang EE NTU

2 Testing on Real Systems dummynet

3 4 Weeks Week 1 –Introduction, basic features Week 2 –Setup and bandwidth management Week 3 –Advanced features Week 4 –Testing over a simple network

4 Today Advanced features Largely based on Luigi’s slides

5 Quick Review of Basic Features Two major components –The pipe –The packet filter Simple examples Configuration System setting

6 A Simple Example in out IP layer Link layer 12 ipfw add pipe 1 ip from any to any in ipfw add pipe 2 ip from any to any out

7 The Detailed System View in-traffic in-pipe ipfw true else drop Higher-level processes out-pipe ipfw true else drop out-traffic

8 Advanced Features Multipath –For packet re-ordering emulation Dynamic pipes –For automatic per-flow piping Dynamic queues –For automatic per-flow queuing Extensions –Bursty loss and delay jitter

9 Multipath For emulation of packet re-ordering The usage –Create multiple paths –Filter packets to these paths based on certain criteria –Currently, the criteria is probabilistic

10 Multipath Example ipfw pipe 1 config bw 2Mbits/s delay 80ms ipfw pipe 2 config bw 3Mbits/s delay 30ms ipfw pipe 3 config bw 1Mbits/s delay 100ms ipfw add prob 0.33 pipe 1 tcp from me to any ipfw add prob 0.5 pipe 2 tcp from me to any ipfw add prob 1 pipe 3 tcp from me to any

11 The Rules of Multipath Filtering For each packet arriving at the dummynet –Match the 1 st filter For each packet arriving at the filter –Take a random number –Check if it falls within the filter probability If yes, pass packets through the rule pipe If not, pass packets to the next filter Recursive use of the ‘packet arriving at the filter’ algorithm

12 Illustration of the Multi-Filtering Filter Filter Pipe 1Pipe 2Pipe 3 Filter else drop Higher-level processes out-traffic

13 Dynamic Pipes For per-flow piping and monitoring The usage –Adding a mask to the source or destination IP –Representing the level of flow classification

14 Dynamic Pipe Example ipfw pipe 1 config bw 2Mbits/s delay 80ms mask src-ip 0x000000ff

15 The Rules of Per-Flow Piping mask src-ip 0x000000ff Packet src/dst addresses are ANDed with the mask Src/dst addresses masking to the same number belong to the same flow –256 flows in this example The number is the flow ID A pipe of the same configuration is created per flow

16 WFQ Weighted Fair Queuing For sharing of bandwidth –Statistical limitation One pipe for all flows A flow-based queue to determine which flow gets how much bandwidth share

17 WFQ Example ipfw pipe 10 config bw 2Mbits/s ipfw queue 1 config pipe 10 weight 50 ipfw queue 2 config pipe 10 weight 20 ipfw queue 3 config pipe 10 weight 1 ipfw add queue 1 tcp from me to any ssh ipfw add queue 1 udp from me to any 53 ipfw add queue 2 tcp from me to any 25 ipfw add queue 3 IP from me to any

18 Calculating the Share Sum all the weights The flow gets the fraction of bandwidth proportional to –The ratio of its weight to the sum

19 Statistical Sharing Note the distinction of statistical bandwidth limitation to deterministic One flow can get the whole bandwidth if no one else is in queue

20 Dynamic Queuing The idea is similar to dynamic piping ipfw queue 1 config pipe 10 weight 50 mask src-ip ff

21 Extension What if we want to emulate –Bursty losses –Delay jitter

22 Using Existing Mechanism Bursty losses –Add bursty traffic to compete with the traffic of observation –So that the bursty traffic cause bursty drops to the traffic of observation Delay jitter –Add varying traffic to cause varying queue size –So that the delay variance is of the traffic of observation goes up

23 Adding to dummynet Modify –ip_fw.c –ip_dymmynet.c The BSD kernel is –Very modular –Extensively commented

24 Performance Packet forwarding rate with pipe is a few % lower than without pipe –Packet copying is constant –Queue and pipe schedule is O(logN) –N: number of queues or pipes Pipe/queue state fetching could be time consuming

25 Conclusion Quite easy to use –If installing BSD isn’t a problem –If loading the dummynet kernel isn’t a problem Quite a bit of applications with the simple functions Need to be careful about how data flow Complicated applications might be achievable with a bit of creativity Usually the hardest part is knowing what to test

26 Next Week Laptops –Running FreeBSD –With access to FreeBSD FreeBSD –The kernel with proper options