Presentation is loading. Please wait.

Presentation is loading. Please wait.

Precept 5 Router & Assignment 2 1 Peng Sun. How VNS works Just informational You don’t have to know it to finish assignment 2.

Similar presentations


Presentation on theme: "Precept 5 Router & Assignment 2 1 Peng Sun. How VNS works Just informational You don’t have to know it to finish assignment 2."— Presentation transcript:

1 Precept 5 Router & Assignment 2 1 Peng Sun

2 How VNS works Just informational You don’t have to know it to finish assignment 2

3 How VNS works 3 Virtual Router Server A B Application Servers Firewall Virtual Router Client Raw Ethernet Frame

4 Your VR Client Receive a Raw Ethernet Frame Analyze headers to decide actions Modify the frame e.g., decrement TTL, update checksum Or generate new frame e.g., ARP reply, ICMP echo reply Specify interface & Send the new frame to VR server 4

5 How Router works Scenario: A TCP connection to one application server 5

6 6 A A A Virtual Router Server Application Servers Firewall Your Client IP0 IP1 IP3 IP2 IP5 IP4 dstgweth IP3 eth1 IP4 eth2 OtherIP5eth0 Routing Table IPHW ARP Table 1. ARP Request on eth0: How has IP3?

7 7 A A A Virtual Router Server Application Servers Firewall Your Client IP0 IP1 IP3 IP2 IP5 IP4 dstgweth IP3 eth1 IP4 eth2 OtherIP5eth0 Routing Table IPHW ARP Table 2. ARP Reply on eth0: eth0 HW has IP3

8 8 A A A Virtual Router Server Application Servers Firewall Your Client IP0 IP1 IP3 IP2 IP5 IP4 dstgweth IP3 eth1 IP4 eth2 OtherIP5eth0 Routing Table IPHW ARP Table 3. IP packet on eth0: destined for IP3

9 9 A A A Virtual Router Server Application Servers Firewall Your Client IP0 IP1 IP3 IP2 IP5 IP4 dstgweth IP3 eth1 IP4 eth2 OtherIP5eth0 Routing Table IPHW ARP Table 4. ARP request on eth1: Who has IP3?

10 10 A A A Virtual Router Server Application Servers Firewall Your Client IP0 IP1 IP3 IP2 IP5 IP4 dstgweth IP3 eth1 IP4 eth2 OtherIP5eth0 Routing Table IPHWeth IP3HW3eth1 ARP Table 5. ARP reply on eth1: HW3 has IP3

11 11 A A A Virtual Router Server Application Servers Firewall Your Client IP0 IP1 IP3 IP2 IP5 IP4 dstgweth IP3 eth1 IP4 eth2 OtherIP5eth0 Routing Table ARP Table 6.IP packet on eth1: HW3 in Ethernet header. Destined for IP3 IPHWeth IP3HW3eth1

12 Big / Little endian Network order: big endian Host order: usually little endian (x86) Functions: htonl, htons ntohl, ntohs 12

13 Some Exam Questions Spring’11 Midterm Q1 Spring’10 Midterm Q1 Spring’09 Midterm Q4 etc. 13


Download ppt "Precept 5 Router & Assignment 2 1 Peng Sun. How VNS works Just informational You don’t have to know it to finish assignment 2."

Similar presentations


Ads by Google