15-441 Project 2 Fall 04 - PowerPoint PPT Presentation

About This Presentation
Title:

15-441 Project 2 Fall 04

Description:

PDIR = /afs/cs.cmu.edu/academic/class/15441-f04/project2. Read the README. Dir structure ... Exact match of destination IP in forwarding table. Statically ... – PowerPoint PPT presentation

Number of Views:18
Avg rating:3.0/5.0
Slides: 14
Provided by: prat60
Learn more at: http://www.cs.cmu.edu
Category:
Tags: fall | project | readme

less

Transcript and Presenter's Notes

Title: 15-441 Project 2 Fall 04


1
15-441 Project 2Fall 04
  • pratyus_at_cs
  • akannan_at_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/p
    roject2
  • 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
Write a Comment
User Comments (0)
About PowerShow.com