1 / 13

Precept 5

Precept 5. Router & Assignment 2. Peng Sun. How VNS works. Just informational You don’t have to know it to finish assignment. How VNS works. Virtual Router Client. Raw Ethernet Frame. A. B. Virtual Router Server. Firewall. A pplication S ervers. Your VR Client.

pegeen
Download Presentation

Precept 5

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Precept 5 Router & Assignment 2 Peng Sun

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

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

  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

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

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

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

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

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

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

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

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

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

More Related