Presentation on theme: "Router Implementation Project-2"— Presentation transcript:
1 Router Implementation Project-2 Discussion November 17, 2014CSE 123-Fall 2014
2 Topology The skeleton and dependencies of the project have been setup in a VM for yourconvenience.VM has the networktopology and the allowsyour router implementationto talk with the network topology.
3 Overview What your routing logic needs to do Route Ethernet frames between the Internet (the myth cluster) and the HTTP serversHandle ARP request and repliesHandle traceroutesGenerate TTL Exceeds MessageHandle TCP/UDP packets sent to one of the routers' interfacesGenerate ICMP Port UnreachableRespond to ICMP echo requestsMaintain an ARP cacheSee webpage for full requirements
4 Getting StartedLoad the virtual machine disk image into your favourite VMM. Eg: VMWare Player, VirtualBox, VMWare fusion etc.Username/Password is mininet/mininet.Start Mininet and POX. Two steps to get the infrastructure up and running./cse123-p2/run_mininet.sh○ ./cse123-p2/run_pox.shBuild and execute routermake clean○ make○ ./srCheck packet flow with wiresharkExpected output
5 ARP Flow Chart Receive Raw Ethernet Frame It's an IP packet It's an ARP packetCache it, gothrough myrequest queueand sendoutstandingpacketsConstruct an ARPreply and send itbackReply to meRequest to me
7 Coding Advice sr_protocol.h ip header def sr_ethernet_hdr def hdr_icmp_t defarp header defProtocol Resolution definitionsSr_if.csr_get_interfacessr_add_interfacesr_set_ether_addr (set to the last interface in the interface list)sr_set_ether_ipPrint funcs for debugging