1 / 13

15-441 Project 2 Fall 04

15-441 Project 2 Fall 04. pratyus@cs akannan@andrew. Project 2. 2a - Implement IP forwarding in the simulator 2b - Implement Routing Daemon. Project Directory. $PDIR = /afs/cs.cmu.edu/academic/class/15441-f04/project2 Read the README Dir structure handouts lib template utils include.

kellsie
Download Presentation

15-441 Project 2 Fall 04

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. 15-441 Project 2Fall 04 pratyus@cs akannan@andrew

  2. Project 2 • 2a -Implement IP forwarding in the simulator • 2b - Implement Routing Daemon

  3. Project Directory • $PDIR = /afs/cs.cmu.edu/academic/class/15441-f04/project2 • Read the README • Dir structure • handouts • lib • template • utils • include

  4. Logical View of Simulator

  5. Reality

  6. To Do

  7. Network Layer • Addressing • IPv4 (RFC 791) • Forwarding • Exact match of destination IP in forwarding table • Statically populate forwarding table (proj 2a)

  8. Forwarding table • $PDIR/template/kernel/rtable.h • struct route_entry {}; • add • del • change • lookup

  9. IP header • Your implementation need not handle • Fragmentation • Options • Multicast/broadcast • ToS • You must handle • Checksum • Header length • Packet length • Src and destn address • Protocol number • TTL • IP version number

  10. ipforward.h • $PDIR/template/kernel/ipforward.h • void ip_init(); • int ip_output(struct pbuf *pkt, int flags, u_char proto, struct in_addr saddr, struct in_addr daddr); • void ip_if_input(struct ifnet *ifp, char *data, int datalen); • void ip_input(struct ifnet *ifp, struct pbuf *pkt); • void ip_input(struct ifnet *ifp, struct pbuf *pkt);

  11. pbuf • $PDIR/include/pbuf.h • Simulator handout (Section 4.5)

  12. Sending a Packet

  13. Receiving a Packet

More Related