Using the Open Network Lab

Slides:



Advertisements
Similar presentations
NetFPGA Project: 4-Port Layer 2/3 Switch Ankur Singla Gene Juknevicius
Advertisements

Traffic Management - OpenFlow Switch on the NetFPGA platform Chun-Jen Chung( ) SriramGopinath( )
CS 268: Lecture 12 (Router Design) Ion Stoica March 18, 2002.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Chapter 4 Queuing, Datagrams, and Addressing
Computer Networks Switching Professor Hui Zhang
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Jon Turner (and a cast of thousands) Washington University Design of a High Performance Active Router Active Nets PI Meeting - 12/01.
Traffic Management - OpenFlow Switch on the NetFPGA platform Chun-Jen Chung( ) Sriram Gopinath( )
IP Forwarding.
Applied research laboratory David E. Taylor Users Guide: Fast IP Lookup (FIPL) in the FPX Gigabit Kits Workshop 1/2002.
Washington WASHINGTON UNIVERSITY IN ST LOUIS Packet Routing Within MSR Fred Kuhns
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
1 - Charlie Wiseman - 05/11/07 Design Review: XScale Charlie Wiseman ONL NP Router.
4/19/20021 TCPSplitter: A Reconfigurable Hardware Based TCP Flow Monitor David V. Schuehler.
Washington WASHINGTON UNIVERSITY IN ST LOUIS 1 DTI Visit - John DeHart- 4/25/2001 Agenda l WU/ARL Background – John DeHart (15 minutes) l DTI Background.
Field Programmable Port Extender (FPX) 1 NCHARGE: Remote Management of the Field Programmable Port Extender (FPX) Todd Sproull Washington University, Applied.
1 IEX8175 RF Electronics Avo Ots telekommunikatsiooni õppetool, TTÜ raadio- ja sidetehnika inst.
Field Programmable Port Extender (FPX) 1 Remote Management of the Field Programmable Port Extender (FPX) Todd Sproull Washington University, Applied Research.
Jon Turner Extreme Networking Achieving Nonstop Network Operation Under Extreme Operating Conditions DARPA.
LonWorks Introduction Hwayoung Chae.
VIRTUAL NETWORK PIPELINE PROCESSOR Design and Implementation Department of Communication System Engineering Presented by: Mark Yufit Rami Siadous.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI network layer CCNA Exploration Semester 1 – Chapter 5.
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
Chapter 3 Part 3 Switching and Bridging
6. The Open Network Lab Overview and getting started
Supercharged PlanetLab Platform, Control Overview
Chapter 9: Transport Layer
Instructor Materials Chapter 6: Quality of Service
Chapter 4 Network Layer All material copyright
Instructor Materials Chapter 9: Transport Layer
CS4470 Computer Networking Protocols
CS 268: Router Design Ion Stoica February 27, 2003.
Layered Architectures
Understand the OSI Model Part 2
Chapter 6: Network Layer
Troubleshooting IP Addressing
CSI 400/500 Operating Systems Spring 2009
Using the Open Network Lab
Using the Open Network Lab
Chapter 3 Part 3 Switching and Bridging
An NP-Based Router for the Open Network Lab
Chapter 5 Network and Transport Layers
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Quality of Service Connecting Networks.
CONGESTION CONTROL.
What’s “Inside” a Router?
Using the WUGS-20 GigE Line Card
The Open Network Lab Ken Wong Applied Research Laboratory Computer Science and Engineering Department
Demonstration of a High Performance Active Router DARPA Demo - 9/24/99
Design Slides for RAD Port to techX arl. wustl
An NP-Based Router for the Open Network Lab Overview by JST
Supercharged PlanetLab Platform, Control Overview
Next steps for SPP & ONL 2/6/2007
Network Core and QoS.
Setting Up Firewall using Netfilter and Iptables
Washington University, Applied Research Lab
Remote Management of the Field Programmable Port Extender (FPX)
Layered Protocol Wrappers Design and Interface review
Implementing an OpenFlow Switch on the NetFPGA platform
EE 122: Lecture 7 Ion Stoica September 18, 2001.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Chapter 3 Part 3 Switching and Bridging
Network Layer: Control/data plane, addressing, routers
Ch 17 - Binding Protocol Addresses
The Open Network Lab Ken Wong, Jonathan Turner, et. al. Applied Research Laboratory Computer Science and Engineering Department
ITIS 6167/8167: Network and Information Security
Multicast Support in the NSP (the “low-level” details)
Network Core and QoS.
Presentation transcript:

Using the Open Network Lab Jon Turner Applied Research Laboratory Computer Science and Engineering Department http://www.arl.wustl.edu/arl

Motivation What is ONL? Why did we build ONL? remotely accessible networking lab gigabit routers with configurable hardware packet forwarding and embedded processors at each port routers can be remotely configured through intuitive GUI extensive support for traffic monitoring/visualization resource for network research community Why did we build ONL? difficult to experiment with high performance routers commercial routers are not open open PC routers have limited performance & experiments using them may have limited relevance to high performance routers net research community needs better experimental resources What can you do with ONL? evaluate new and existing protocols & apps in realistic testbed add new features to routers (embedded processors, hw mods) mount compelling demonstrations using real-time visualization

ONL Lab Overview Gigabit routers with embedded processors. PCs serve as hosts. half on shared subnets Net configuration switch. link routers in virtual topologies traffic generation programmable delay Tools for configuration and collecting results. monitoring traffic data capture and playback Open source all hw & sw sources on web 4 Gigabit Ethernet Switch 3 GigE Network Configuration Switch 16

Mitigating Denial of Service Attacks Users request connections to communicate with web site Requires temporary entry in table of partial connections Attacker User Extensible Router Target Web Site Shadow Table Partial Conn. Table Extensible router observes partial connections and clears those that don’t complete Table fills up blocking legitimate users. Attackers repeatedly start connection process but don’t complete it.

Attack Mitigation Displays Conn. Table fills when plugin off Image xfer blocked Table clears when plugin on Image xfer resumes

People Who Make it Happen Ken Wong Lab administration Web site manager Jyoti Parwatikar RLI software development Fred Kuhns SPC software FPX hardware John Dehart FPX hardware System integration

Gigabit Router Architecture ATM Switch Core FPX SPC PP . . . CP external links Lookup plugin env. to/from links to/from switch core Scalable architecture built around ATM switch core. core provides 2 Gb/s bandwidth per port (2x speedup) Port processors (PP) implement packet processing Field Programmable Port Extender (FPX) implements routine packet processing Smart Port Card (SPC) hosts programmable extensions Control Processor (Linux PC) handles configuration can support routing protocols, OA&M, etc.

Field Programmable Port Extender (FPX) Network Interface Device (NID) routes cells to/from RAD. Reprogrammable Application Device (RAD) functions: implements core router functions Xilinx Virtex 1E family 38K logic cells (LUT4 + flip flop) 160 block RAMs, 512 bytes each Core router functions include packet classification & route lookup packet storage manager queue manager link queues (datagram, reserved) per flow SPC queues virtual output queues to switch control cell processing access status & control registers update route tables, packet filters Network Interface Device Reprogrammable App. Device (38K logic cells +80 KB SRAM) SDRAM (128MB) SRAM (1 MB) 2 Gb/s interface ü ý þ 2 Gb/s (128 MB) 64 36

Packet Processing in the FPX Control Data Path Control Cell Processor DQ Status & Rate Control Route & Filter Updates Register Set Updates & Status SRAM Queue Manager ISAR SDRAM from SW from LC to SW to LC OSAR Packet Storage Manager (includes free space list) Header Pointer Discard Pointer Header Proc. Classification and Route Lookup

Packet Processing in the FPX Input/Output Segmentation and Reassembly (ISAR/OSAR) separate reassembly context for link, SPC and each input port IP packets extracted and stored in memory “chunks” by PSM headers passed to “control path” packets retrieved from memory on output and segmented Packet Storage Manager (PSM) stores packets in one of two SDRAMs based on where arriving from Classification and Route Lookup (CARL) route lookup (best prefix match) using external SRAM flow lookup (exact 5-tuple match) using external SRAM packet classification (general match) using on-chip resources Queue manager (QM) implements three sets of queues link queues per-flow and datagram queues using weighted DRR virtual output queues to switch with controllable output rates can be adjusted by control process in SPC SPC queues using weighted DRR Control Cell Processor (CCP) access to traffic counters, updates to lookup tables & control registers

Classification and Route Lookup (CARL) Three lookup tables. route table for routing datagrams – best prefix flow table for reserved flows – exact match filter table for management (adr prefixes, proto, ports) Lookup processing. parallel check of all three return highest priority primary entry and highest priority auxiliary entry each filter table entry has assignable priority all flow entries share same priority, same for routes Route Table Filter Table Flow Table Input Demux Result Proc. & Priority Resolution bypass headers Route lookup & flow filters share off-chip SRAM limited only by memory size General filters done on-chip total of 32

Lookup Contents Route table – ingress only output port, Queue Identifier (QID) packet counter incremented when entry returned as best match for packet Flow table (exact match) – both ingress and egress output port – for ingress Queue Identifier (QID) – for egress or SPC packet and byte counters updated for all matching packets Filter table (general) – ingress or egress (rate limits) for highest priority primary filter, returns QID packet counter incremented only if used same for highest priority auxiliary filter If packet matches both primary and auxiliary entries, copy is made.

Queue Manager to SPC each queue has WDRR weight and discard threshold arriving packets ... SPC pkt. sched. to SPC datagram queues link pkt. sched. to link res. flow queues to switch each queue has WDRR weight and discard threshold 128 flow queues, each with WDRR weight and discard threshold VOQ per output, each with rate and discard threshold 64 datagram queues, each with WDRR weight and discard threshold all queues have a byte length that can be queried

Controlling the Queue Manager All queues are configurable. discard threshold WDRR quota Virtual Output Queues (QIDs 504-511) all packets going to switch placed in VOQ for target output Datagram output queues (QIDs 440-503) packets going to link with no special queue assignment are hashed to one these 64 queues Reserved output queues (QIDs 256-439) SPC queues (QIDs 1-127, 128-255) assigned in pairs (q, q+128) packets to SPC use 1-127 packets returning from SPC, going to link use 128-256

FPX Traffic Counters, Status Info. Packet and byte counters are read via control cells returned value includes counter value and timestamp timestamps used by software to compute rates Port level packet counters received from/sent to link (2 counters) received from/sent to SPC on ingress/egress side (4 counters) received from/sent to router input/output ports (16 counters) Packet drop counters ISAR dropped cell counter ISAR invalid packet counter (CRC failure, etc.) QM dropped packet for link queues, switch queues, SPC queues And many others,

Selected FPX Counters 00 packets from link 04 packets from ingress port 0 05 packets from ingress port 1 . . . 11 packets from ingress port 7 12 ingress-side packets from SPC 13 egress-side packets from SPC 16 packets to link 20 packets to egress port 0 27 packets to egress port 7 28 ingress-side packets to SPC 29 egress-side packets to SPC 64 ISAR input cell drops 65 ISAR invalid packet drops 66 QM packet drops for link 67 QM packet drops for switch 68 QM packet drops for SPC

Smart Port Card FPGA routes data straight-thru or to/from SPC. 128 MB 2 Gb/s data paths APIC is Network Interface Chip segments packets into cells on transmission reassembles in memory on reception 500 MHz Pentium III processor 100 MHz EDO memory 32 bit PCI at 33 MHz flash disk standard BIOS Hosts software plugins options processing application-specific processing APIC Pentium Flash Disk 128 MB Cache North Bridge PCI FPGA

Core ATM Switch . . . Cell Buffer OPP IPP VXT RCB CYCB Cell Buffer OXBAR IXBAR RSQ XMB . . . OPP IPP 4 Parallel Switch Planes each cell split into 4 pieces Resequencing Buffer Recycling Buffer Virtual Circuit/Path Lookup Table Dual Priority Transmit Buffer

PVCs for Inter-port Traffic VCI remapping FPX packets from input k received on VCI 64+k packets to output k sent on VCI 64+k Permanent Virtual Circuits carry traffic between FPXs. Egress FPX maintains separate reassembly buffers. Can use cell counters in switch to monitor traffic. Port-level cell counters also available.

Switch Congestion Causes Congestion avoidance VOQ rate controls switch provides bandwidth of about 2 Gb/s per port so, easy for multiple inputs to overload an output causing congestion in switch and lost packets problem can be exacerbated by fragmentation effects Congestion avoidance plan experiments to avoid excessive overloads by default, most link rates are limited to 600 Mb/s to reduce opportunities for congestion VOQ rate controls rate limits for virtual output queues can be used to ensure outputs are not overloaded automated configuration of rate limits is planned periodic exchange of VOQ backlog information by SPCs distributed allocation of switch bandwidth

netBSD server for plugin prep Testbed Organization 16 control subnet CP 2 3 GE 1 2,3 NSP10 NSP2 NSP3 NSP4 4-7 configuration switch onl server onlBSD netBSD server for plugin prep 192.160.1.* 192.160.4.* 192.160.3.* 192.160.2.* Internet onl usr

Configuring Topology Add hosts can as needed. Drag graphic elements to prettify display. Cluster includes router GE switch and fixed set of hosts Port 0 used for Control Processor. Spin handle rotates ports.

Configuring Topology (cont.) OLD Add links as needed. These are implemented using configuration switch. Select “Commit” item to transfer config changes to hardware. Note: first time is slow.

Configuring Topology (cont.) Note color change following commit. Indicates RLI connected to lab hw. OLD Save config. to a file for use in later session. Right-click on host to get host name and IP address.

Verifying Host Configuration OLD /sbin/ifconfig –a displays info on configured interfaces. Directly connected hosts use ATM interface. Verify that IP address of interface matches displayed address.

Configuring Routes Entry defined by address prefix and mask. Specifies router output port. Click on port to access route table (and other stuff). Default routes can be generated for local hosts.

What does This Mean for Router? Route Table Filter Table Flow Table Input Demux Result Proc. & Priority Resolution bypass headers 192.168.1.16/28  0 192.168.1.32/28  1 192.168.1.48/28  2 192.168.1.64/28  3 192.168.1.80/28  4 192.168.1.96/28  5 192.168.2.0/24  6 192.168 =c0.a8 1 01 0000 00 6 5 2 4 3 Route table implemented using space-efficient variant of multibit trie.

So traffic carried on top link. Adding More Routes onl19.arl.wustl.edu 192.168.1.48 onl20.arl.wustl.edu 192.168.2.64 So traffic carried on top link. Causes packets received at port 2 for specified host to be routed thru output 6.

Routes for 2-Way Communication onl19.arl.wustl.edu 192.168.1.48 onl20.arl.wustl.edu 192.168.2.64 commit routing changes to make effective first hop of east-bound path second hop of east-bound path first hop of west-bound path second hop of west-bound path OLD

Verifying Routes secure shell session to onl19.arl.wustl.edu ping packets passing through ONL routers

Monitoring Traffic select desired monitor variable specify monitoring view peak per ping packet ping traffic

Monitoring Other Data OLD to add separate chart 0 for packets from link, 16 for packets to link OLD click to change label to select FPX packet counter shows packets/sec for entering/exiting traffic

Monitoring Still Other Data specify target output port new traces from 2 to outputs 6 and 7 set focus, so new trace goes here monitor bandwidth use on virtual circuit entering ATM core

Changing Routes changing next hop to 7 re-routes flow thru bottom link commit route change to make effective OLD now see traffic from input 2 to output 7 no traffic from input 2 to output 6 or east-bound on top link

Pause for Live Demo Configuring topology Configuring routing tables Verifying routes using ping Monitoring traffic

Using Flow Tables (Exact Match) add filter port numbers ignored for ICMP enter 1 for protocol (ICMP) specifies top link priority allows flow table entry to override route select igress filter tables for port 2 traffic switches from port 7 to port 6

Using General Filter Tables traffic switches back to 7 add general filter priority allows filter table entry to override flow table entry protocols and ranges may be “don’t-care” addresses may be specified as prefixes specifies bottom link

Using Auxiliary Filter to Copy Flow auxiliary filter replicates data stream lower priority irrelevant, since auxiliary flow being sent to both 6 and 7

Generating Traffic with Iperf available at http://dast.nlanr.net/projects/Iperf/ installed on all onl hosts Sample uses iperf –s -u run as UDP server on port 5001 iperf –c server –u –b 20m –t 300 run as client sending UDP packets to server at 20 Mb/s for 300 secs. iperf –s run as TCP server on port 5001 iperf –c server –w 4m –t 300 run as client, sending as fast as possible – make rcv window 4 MB

Using Iperf single UDP stream start UDP sender start UDP receiver onl30 192.168.1.80 onl28 192.168.2.80 start UDP sender start UDP receiver

Multiple Iperf Streams onl18 192.168.1.64 onl19 192.168.1.48 onl15 192.168.2.48 onl16 192.168.2.64 received bandwidth

Multiple Iperf Streams onl18 192.168.1.64 onl19 192.168.1.48 onl15 192.168.2.48 onl16 192.168.2.64 received bandwidth

Here

Displaying Incremental Bandwidth select Add Formula resulting formula select measures for inclusion resulting curve name curve

Displaying Incremental Bandwidth select Add Formula resulting formula select measures for inclusion resulting curve name curve

Modifying Link Rate select Queue Tables total received bandwidth limited modify link bandwidth and commit

Mapping Flows to Single Queue packets from each source mapped to common reserved flow queue

Monitoring Queue Length select Egress Qlength queue backlog when two or more active flows

Changing Queue Size adds entry to egress queue display change discard threshold and commit larger effective buffer enter number of queue of interest

Mapping Flows to Separate Queues modify queue in filter vary queue lengths varying queue lengths

Changing Bandwidth Shares proportional bandwidth allocation vary WDRR quantum packet discards

Changing VOQ Rates Select Port 2 Queue Tables reduced input rate change bandwidth to switch reduced queueing

Using Exact Match Filters interrupt to run netstat -a start long iperf session port numbers exact match filter to different queue lower priority for general match filter new queue used

uses all link bandwidth Using Iperf with TCP start TCP sender start TCP receiver interrupt with ctrl-Z uses most of 20 KB queue uses all link bandwidth

Competing TCP Flows slightly better match of sending/receiving rates senders adjust rate to match available bandwidth queue size increased by 100x, but only small increase in queueing using most of available queue space (20KB, 30KB, 40KB)

Pause for Live Demo Using Iperf with UDP Using filters Monitoring queues Using Iperf with TCP