CS518 CS518 Packet Handling in Linux Packet Handling in Linux
- -Gaurav
CS518 CS518 Packet Handling in Linux Packet Handling in Linux - - PowerPoint PPT Presentation
CS518 CS518 Packet Handling in Linux Packet Handling in Linux --Gaurav Gaurav Dawra Dawra -- Overview Internetworking: Past and Present Overview Internetworking: Past and Present Overview TCP/IP and OSI Model TCP/IP
Internetworking: Past and Present Overview
TCP/IP and OSI Model
Sockets Overview
Internetworking: Past and Present Overview
IP solutions:
– – Routing Routing – – Packet Forwarding Packet Forwarding – – Routing Vs Forwarding Routing Vs Forwarding – – Address resolution Protocol (ARP) Address resolution Protocol (ARP)
Wireless Networking : Brief Overview
* source: RPI Institute , internet protocol
* source: RPI Institute , internet protocol
Network Layer Routers
* source: RPI Institute , internet protocol
IP IP IP IP
* source: RPI Institute , internet protocol
Internetworking: Past and Present Overview
TCP/IP and OSI Model
Sockets Overview
Internetworking: Past and Present Overview
IP solutions:
– – Routing Routing – – Packet Forwarding Packet Forwarding – – Routing Vs Forwarding Routing Vs Forwarding – – Address resolution Protocol (ARP) Address resolution Protocol (ARP)
Wireless Networking : Brief Overview
Application Layer Application Layer Transport Layer Transport Layer Transport Layer Internet Layer Internet Layer Internet Layer Network Interface Layer Network Interface Layer Network Interface Layer
Internet Layer IP IP ICMP ICMP IGMP IGMP ARP ARP Network Interface Layer Ethernet Ethernet ATM ATM Transport Layer UDP UDP TCP TCP Application Layer FTP FTP HTTP HTTP
Internetworking: Past and Present Overview
TCP/IP and OSI Model
Sockets Overview
IP solutions:
– – Routing Routing – – Packet Forwarding Packet Forwarding – – Routing Vs Forwarding Routing Vs Forwarding – – Address resolution Protocol (ARP) Address resolution Protocol (ARP)
Wireless Networking: Brief Overview
Internetworking: Past and Present Overview
TCP/IP and OSI Model
IP addressing
Sockets Overview
IP solutions:
– – IP Packet Forwarding IP Packet Forwarding – – Routing Routing – – Routing Vs Forwarding Routing Vs Forwarding – – Address resolution Protocol (ARP) Address resolution Protocol (ARP)
Wireless Networking : Brief Overview
* source: RPI Institute , internet protocol
Kernel IP routing table
Destination Gateway Genmask Genmask Flags Metric Ref Use Flags Metric Ref Use Iface Iface
153.90.192.0 * 255.255.248.0 U 0 0 0 eth0 0 eth0
5.0.0.0 * 255.0.0.0 U 0 0 0 0 0 srcr srcr
6.0.0.0 * 255.0.0.0 U 0 0 0 wlan0 0 0 wlan0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo 0 0 lo
default epgwy192.msu.mo 0.0.0.0 UG 0 0 0 eth0 0 eth0
Boundary
223.1.1.1 223.1.1.2 223.1.1.3 223.1.1.4 223.1.2.9 223.1.2.2 223.1.2.1 223.1.3.2 223.1.3.1 223.1.3.27
A B E
misc fields source IP addr dest IP addr data
datagram remains unchanged, as it travels source to destination addr fields of interest here
223.1.1 1 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2
* source: RPI Institute , internet protocol
223.1.1.1 223.1.1.2 223.1.1.3 223.1.1.4 223.1.2.9 223.1.2.2 223.1.2.1 223.1.3.2 223.1.3.1 223.1.3.27
A B E
look up net. address of B find B is on same net. as A link layer will send datagram directly to B inside link-layer frame
223.1.1 1 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2
misc fields 223.1.1.1 223.1.1.3 data
* source: RPI Institute , internet protocol
223.1.1.1
223.1.1.2 223.1.1.3
223.1.1.4223.1.2.9
223.1.2.2
223.1.2.1 223.1.3.2 223.1.3.1 223.1.3.27
A B E
223.1.1 1 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2
look up network address of E E on different network
routing table: next hop router to E is 223.1.1.4 link layer sends datagram to router 223.1.1.4 inside link-layer frame datagram arrives at 223.1.1.4 continued…..
misc fields 223.1.1.1 223.1.2.2 data
* source: RPI Institute , internet protocol
routing table
IP protocol
ICMP protocol
Transport layer: TCP, UDP Link layer physical layer
* source: RPI Institute , internet protocol
Internetworking: Past and Present Overview
TCP/IP and OSI Model
IP addressing
Sockets Overview
Internetworking: Past and Present Overview
IP solutions: – – IP Packet Forwarding IP Packet Forwarding – – Routing Routing – – Routing Vs Forwarding Routing Vs Forwarding – – Address resolution Protocol (ARP) Address resolution Protocol (ARP)
Wireless Networking: Brief Overview
* source: RPI Institute , internet protocol
16”
Internetworking: Past and Present Overview
TCP/IP and OSI Model
IP addressing
Sockets Overview
Internetworking: Past and Present Overview
IP solutions: – – Routing Routing – – Packet Forwarding Packet Forwarding – – Routing Vs Forwarding Routing Vs Forwarding – – Address resolution Protocol (ARP) Address resolution Protocol (ARP)
Wireless Networking: Brief Overview
* Source British Educational Communications and technology agency
Internetworking: Past and Present Overview
TCP/IP and OSI Model
Sockets Overview
Internetworking: Past and Present Overview
IP solutions:
– – Routing Routing – – Packet Forwarding Packet Forwarding – – Routing Vs Forwarding Routing Vs Forwarding – – Address resolution Protocol (ARP) Address resolution Protocol (ARP)
Wireless Networking : An Overview