Upload
buitruc
View
213
Download
0
Embed Size (px)
Citation preview
Ken WongApplied Research Laboratory
Computer Science and Engineering Departmenthttp://www.arl.wustl.edu/~kenw
[email protected]://www.onl.wustl.edu (ONL)
National Science Foundation ANI-023826,CNS-0551651, REL-0632580
The Open Network Lab(Part 1)
2 - Ken Wong– 1/28/2009
Testbed Organization
Internet TestbedController
Userwith GUI Endhosts Configuration
Switch
Routers
●●●
Network Configuration
Queue Length
Bandwidth Usage
YOUonlusrlogins
3 - Ken Wong– 1/28/2009
Network Processor Routers (NPRs)
6 Pairs of NPRs
100+ endhosts
4 - Ken Wong– 1/28/2009
Get An Account
get an account
onl.arl.wustl.edu,onl.wustl.edu,
www.onl.wustl.edu
tutorial
•onluser group•24-hour confirmation•1 password for web & hosts
5 - Ken Wong– 1/28/2009
Properties of ONL AccountsSame password for Web login and host loginHost account restrictions»Can only SSH to onl.arl.wustl.edu from remote
nActually end up on onlusr, the ONL user host
»Firewall blocks all connections from within ONLnCan’t push from ONL host to remote hostnCan’t pull to ONL host from remote host nBut can push to ONL host from remote host nBut can pull from ONL host from remote hostnNo email
»Can only access onlusr host and hosts assigned to your experiment
Password-free SSH between ONL hosts
6 - Ken Wong– 1/28/2009
Getting Started
configureSSH tunnel
for RLI
extra links•getting started•testbed status•reservations
X X
7 - Ken Wong– 1/28/2009
SSH Tunnel ConfigurationCookbook for 3 approaches»Unix or Unix-like (e.g., cygwin)
nssh -L 7070:onlsrv:7070 onl.arl.wustl.edun I use this (defined as an alias) from Linux
»MS Windows PuTTY (GUI-based)n I use this from MS XP laptop
and the SSH agent pageant
nSee Tutorial for URL (free software)
»MS Windows SSH client tool from SSH Corp
Follow instructions on ONL web pages»Don’t agonize over it See TA after 2 tries»If problems, send email to your grader/consultant
8 - Ken Wong– 1/28/2009
PuTTY SSH Tunnel Configuration
local port 7070remote host onlsrvremote port 7070
external host name =onl.arl.wustl.edu
session name = rli
9 - Ken Wong– 1/28/2009
Under the SSH Tunnel Hood
RLI
ssh sshd
ONLdaemon
port 7070
port 7070
port 22
Firewallonl.arl.wustl.edu
onlsrv
onlusr
your host(localhost)
controlsvirtualization
NPR
Experiment
10 - Ken Wong– 1/28/2009
The NPR Data Path
11 - Ken Wong– 1/28/2009
The IXP 2800
ME
ME
ME
MIMP
● ● ●
SRAM DRAM
input output
PCI,GigE
TC
TC ● ● ●
ALU
Local Memory8 threadcontexts
Microengine (ME)
● ● ● ● ● ●
5 Ports
Each NPR isone IXP 2800with 16 MEs
GPRs
12 - Ken Wong– 1/28/2009
drop pkt
NPR Packet Processing (1)
Classify pktCopy pkt
ParseLookup& Copy
Mux
Plugins
XscaleCP
In Out
Queues for each portPkt Scheduler (5 ports)
exception processing(IP options, ARP, 0 TTL)
Rx
Tx
HdrFmt
buffer pkt
custom processing8 threads/ME
Ethernet encap
transmitethernet frame
QueueManager
port 0
port 4
port 0
port 4
3 1 11 22
5
●●●
●●●
13 - Ken Wong– 1/28/2009
XscaleCP
NPR Packet Processing (2)
ParseLookup& Copy
Mux
Plugins
In OutRx
Tx
HdrFmt
QueueManager
port 0
port 4
port 0
port 4
3 1 11 22
5
Route TableFilters
Implements:Port RateBandwidth Share5 x 8,128 Reserved Queues5 x 64 Datagram Queues
14 - Ken Wong– 1/28/2009
NPR Packet Processing (3)Rx: Receive Pkt»Put pkt in DRAM; Send meta-packetMux: Multiplex traffic (inputs, CP, plugins)PLC: Parse, Lookup and Copy»Implements Route Table and Filter Table lookup»Uses TCAM (Ternary Content-Addressable Memory)QM: Queue Manager»Pkt scheduler for each of 5 output ports
n Implements port rate concept using token bucketn Implements bandwidth sharing concept using Weighted Deficit Round Robin (WDRR) algorithm
Hdr Format»Create ethernet frameTx: Transmit Ethernet Frame
15 - Ken Wong– 1/28/2009
Configuring a Virtual NetworkTopology (NPRs, hosts, links)Route Table» IP (get pkt 1 hop closer to dst)» LPM (Longest Prefix Match)» default RT: port or all ports
Queue Table» port rate» datagram vs reserved queues
n threshhold: queue sizen quantum: scheduling weight
Filter Table» forward to port/queue» forward to plugin, port/queue
Plugin Table» standard plugins
n e.g., delay
» user-defined plugins
16 - Ken Wong– 1/28/2009
Experiment 1
17 - Ken Wong– 1/28/2009
Topicsdemo1-573-sp09.exp2 NPRs, 3 hosts, 2 links between NPRshost interfacesifconfignetstatdefault RTsping
18 - Ken Wong– 1/28/2009
UDP Traffic
rcvr
sndr
sndr
UDP traffic
NPR.2 NPR.1
R
R
F
FQ300
1.366Mbps
0.683Mbps
99.718Mbps
13
2
4
1
34
2Mbps
0.8Mbps
19 - Ken Wong– 1/28/2009
Control Versus Data Interface
control interface
data interface
20 - Ken Wong– 1/28/2009
Generating UDP and ping Traffic
exec on onlusr host
lab1-ping.txt file
•max 580 msec•increase rate:
•~100 msec/sec
21 - Ken Wong– 1/28/2009
NPR.2 Configuration
22 - Ken Wong– 1/28/2009
NPR.1 Configurationfilter at ports 4 and 3
matches all pktsforward to port 1, queue 300overrides route table
23 - Ken Wong– 1/28/2009
Defining the Network
24 - Ken Wong– 1/28/2009
TopicsMenu Topology …»Add NPR, Add Host, Add Link, Generate Default
RoutesMenu File …»Save, Save As, Commit, OpenMenu Monitoring Add Monitoring DisplayPort Route Table Edit»Add/Delete Route, Generate Local Default RoutesPort Queue Table»Port Rate, Edit Add/Delete Queue, Threshold,
QuantumPort Filter Table Edit»Add/Edit/Delete Filter
25 - Ken Wong– 1/28/2009
Delaying Packets
26 - Ken Wong– 1/28/2009
Delaying Packets From n2p1
rcvr
sndr
sndr
UDP traffic
NPR.2 NPR.1
R
R
F
FQ300
1.366Mbps
0.683Mbps
99.718Mbps
13
2
4
1
34
2Mbps
0.8Mbps
•Add a delay plugin D•Add a filter F
NPR.2 NPR.1
R
F
F
FQ300
13
2
4
1
34D
27 - Ken Wong– 1/28/2009
Add The Delay Plugin
microengine 0
standard plugins~onl/npr/plugins/
5 possible plugin MEsnumbered 0-4NPR.2 NPR.1
R
F
F
FQ300
13
2
4
1
34D
28 - Ken Wong– 1/28/2009
Add The Filter
NPR.2 NPR.1
R
F
F
FQ300
13
2
4
1
34D