Sigcomm Education Workshop Aug 20 th , 2002 Teaching tools for a network  infrastructure teaching lab The Virtual Router a...
Outline <ul><li>Why have a network infrastructure teaching lab </li></ul><ul><li>Hardware Platform:  NetFPGA </li></ul><ul...
Why have a network infrastructure teaching lab <ul><li>Many of our students go to networking companies: </li></ul><ul><ul>...
Platform #1: Hardware Platform NetFPGA
Hardware Platform: NetFPGA <ul><li>What:  Circuit board with 8 Ethernet interfaces and user-programmable FPGAs. </li></ul>...
Hardware Platform: NetFPGA <ul><li>No CPU </li></ul><ul><li>Only interface is via Ethernet </li></ul><ul><li>Program FPGA ...
Hardware Platform: NetFPGA Ethernet  Interface #1 Ethernet  Interface #2 Ethernet  Interface #8 User FPGA User memory Ethe...
Hardware Platform: NetFPGA Status  <ul><li>Prototype:  Summer 2002 </li></ul><ul><li>First classroom use:  April 2003 </li...
Platform #2: Software Platform Virtual Router
Software Platform: Virtual Router <ul><li>Problem:  How to have 200 students each build and deploy their own router, witho...
Software Platform: Virtual Router Student’s view  Student’s  user-space router Ethernet frames Ethernet frames Ethernet fr...
Example assignment March 2002, ~100 BS/MS students   <ul><li>Implement a fully functional IP router, including: </li></ul>...
Software Platform: Virtual Router The Virtual Router Server  Web/ftp servers Campus Network Firewall PC Linux Instructiona...
Software Platform: Virtual Router Student’s view  VR Client VR Client VR Client VR Client VR Client Arbitrary topology Cam...
Software Platform: Virtual Router Student’s view  Topology per student Campus Network Web/ftp servers
Software Platform: Virtual Router The Virtual Router Server  Web/ftp servers Firewall/ Load-balancer Instructional  machin...
Software Platform: Virtual Router Status  <ul><li>Prototype V1.0:  Summer 2001 </li></ul><ul><li>First classroom use:  Mar...
Upcoming SlideShare
Loading in …5
×

CS244a: An Introduction to Computer Networks

616 views
518 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
616
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

CS244a: An Introduction to Computer Networks

  1. 1. Sigcomm Education Workshop Aug 20 th , 2002 Teaching tools for a network infrastructure teaching lab The Virtual Router and NetFPGA Sigcomm Education Workshop August 20 th , 2002 Nick McKeown Professor of Electrical Engineering and Computer Science, Stanford University [email_address] www.stanford.edu/~nickm
  2. 2. Outline <ul><li>Why have a network infrastructure teaching lab </li></ul><ul><li>Hardware Platform: NetFPGA </li></ul><ul><li>Software Platform: Virtual Router </li></ul><ul><li>Demo of Virtual Router (hopefully) </li></ul>
  3. 3. Why have a network infrastructure teaching lab <ul><li>Many of our students go to networking companies: </li></ul><ul><ul><li>Software engineers implement network protocols, and </li></ul></ul><ul><ul><li>Hardware engineers architect and design switches and routers. </li></ul></ul><ul><ul><li>More likely to design a router than a computer. </li></ul></ul><ul><li>We had classes on digital system design, computer programming, networking and on packet switch architectures. No lab classes in networking. </li></ul><ul><li>Want students to design, implement, deploy and debug their own infrastructure elements: IP routers, Ethernet switches, and elements of their own creation. </li></ul>
  4. 4. Platform #1: Hardware Platform NetFPGA
  5. 5. Hardware Platform: NetFPGA <ul><li>What: Circuit board with 8 Ethernet interfaces and user-programmable FPGAs. </li></ul><ul><li>How used: Students architect, design and deploy their own hardware in an operational network. </li></ul><ul><li>Canonical assignment: Ethernet switch </li></ul><ul><li>Other assignments: IP router, firewall, packet mis-sequencer, data transcoder, … </li></ul><ul><li>Design flow: Industry standard flow </li></ul><ul><ul><li>Verilog -> simulation/verification -> synthesis -> download </li></ul></ul>
  6. 6. Hardware Platform: NetFPGA <ul><li>No CPU </li></ul><ul><li>Only interface is via Ethernet </li></ul><ul><li>Program FPGA via Ethernet </li></ul><ul><li>Reset board remotely </li></ul>Ethernet Interface #1 Ethernet Interface #2 Ethernet Interface #8 User FPGA Controller User memory Packet buffers 1 2 8 User program
  7. 7. Hardware Platform: NetFPGA Ethernet Interface #1 Ethernet Interface #2 Ethernet Interface #8 User FPGA User memory Ethernet Interface #1 Ethernet Interface #2 Ethernet Interface #8 User FPGA User memory Firewall Campus Network Controller Web/ftp Analyzer
  8. 8. Hardware Platform: NetFPGA Status <ul><li>Prototype: Summer 2002 </li></ul><ul><li>First classroom use: April 2003 </li></ul><ul><li>Boards available: Early 2004 </li></ul><ul><li>Looking for sponsors and alpha-users… </li></ul>
  9. 9. Platform #2: Software Platform Virtual Router
  10. 10. Software Platform: Virtual Router <ul><li>Problem: How to have 200 students each build and deploy their own router, without kernel hacking and without their own dedicated machine? </li></ul><ul><li>What: PC/Linux-based “Virtual Router Server”; students write user-space “Virtual Router Clients” in C, C++, Java, Perl, … </li></ul><ul><li>How used: Students architect, design and deploy their own router in an operational network with their own arbitrary topology. </li></ul><ul><li>Canonical assignment: Internet router. </li></ul><ul><li>Other assignments: QoS router, lookup algorithms, routing protocols, Firewall, … </li></ul>
  11. 11. Software Platform: Virtual Router Student’s view Student’s user-space router Ethernet frames Ethernet frames Ethernet frames Ethernet frames Ethernet frames Web/ftp servers Campus Network “ Virtual Router Client” A B C D 1. Packet arrives destined for web server ‘C’. 2. Student’s code (in C, C++, Java, perl) receives Ethernet packet and must route it to correct interface.
  12. 12. Example assignment March 2002, ~100 BS/MS students <ul><li>Implement a fully functional IP router, including: </li></ul><ul><ul><li>Address lookup (static routing table) </li></ul></ul><ul><ul><li>TTL check and decrement </li></ul></ul><ul><ul><li>IP checksum check and update </li></ul></ul><ul><ul><li>ARP request/reply </li></ul></ul><ul><ul><li>ICMP: enough for traceroute and ping to work </li></ul></ul><ul><li>Environment: </li></ul><ul><ul><li>Students receive/send raw Ethernet packets </li></ul></ul><ul><ul><li>Four network interfaces </li></ul></ul><ul><ul><li>Written in ANSI C </li></ul></ul>
  13. 13. Software Platform: Virtual Router The Virtual Router Server Web/ftp servers Campus Network Firewall PC Linux Instructional machines “ Virtual Router Server” VR Client Socket
  14. 14. Software Platform: Virtual Router Student’s view VR Client VR Client VR Client VR Client VR Client Arbitrary topology Campus Network Web/ftp servers Each interface has locally unique Ethernet and IP address.
  15. 15. Software Platform: Virtual Router Student’s view Topology per student Campus Network Web/ftp servers
  16. 16. Software Platform: Virtual Router The Virtual Router Server Web/ftp servers Firewall/ Load-balancer Instructional machines “ Virtual Router Server” Classifies incoming packet to determine which student should route the packet. Picks next hop Ethernet DA to reach VR Client. Intercepts specific Ethernet addresses on behalf of VR Clients
  17. 17. Software Platform: Virtual Router Status <ul><li>Prototype V1.0: Summer 2001 </li></ul><ul><li>First classroom use: March 2002 </li></ul><ul><ul><li>CS244a at Stanford, Assignment #3, ~100 students </li></ul></ul><ul><li>V2.0: Summer 2002 </li></ul><ul><li>Next classroom use: March 2003 </li></ul><ul><li>First planned release: Summer 2003 </li></ul><ul><li>Looking for sponsors and alpha-users… </li></ul>

×