© Introduction to Internetworking – Alex Kooijman 04/04/2000 Introduction to internetworking Part Two
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Internet Protocol Suite IP and OSI/RM Internet Protocol IP Packet Type of Service Address Resolution Protocol User Datagram Protocol Transmission Control Protocol IP addressing
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Application Presentation Session Transport Network Data Link Physical TCP IP UDP telnet ftp smtp tftp IP and OSI/RM IP = Internet Protocol UDP = User Datagram Protocol
© Introduction to Internetworking – Alex Kooijman 04/04/2000 TIME TO LIVEPROTOCOLHEADER CHECKSUM IDENTIFICATION SERVICE TYPE SOURCE IP ADDRESS DESTINATION IP ADDRESS IP OPTIONS (if any)PADDING DATA... VERSHLENTOTAL LENGTH FRAGMENT OFFSET FLAGS IP Packet
© Introduction to Internetworking – Alex Kooijman 04/04/2000 PrecedenceDelayThrougputRelialbilityCostMBZ 000 routine 001 priority 010 intermediate 011 flash 100 flash override 101 critical 110 internetwork control 111 network control 0= normal 1= low 0= normal 1= high 0= normal 1= low 0= normal 1= high IP Type of Service Field
© Introduction to Internetworking – Alex Kooijman 04/04/ mac: MAC: abcde I want to connect to what is the MAC address of ? Address Resolution Protocol (1)
© Introduction to Internetworking – Alex Kooijman 04/04/ mac: MAC: abcde I am my MAC address is abcde Address Resolution Protocol (2)
© Introduction to Internetworking – Alex Kooijman 04/04/2000 UDP uses no sequence or acknowledgment fields UDP Datagram Source Port Destination Port LengthChecksumData 16
© Introduction to Internetworking – Alex Kooijman 04/04/2000 ACKNOWLEDGEMENT NUMBER SEQUENCE NUMBER SOURCE PORT HLEN reserved CODE BITS CHECKSUM URGENT POINTER WINDOW OPTIONS (if any)PADDING DATA... DESTINATION PORT TCP Segment
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Send SYN (seq=100 ctl=SYN) Host AHost B 1 TCP Three Way Handshake (1)
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Send SYN (seq=100 ctl=SYN) SYN received Host AHost B SYN received 1 2 Send SYN (seq=300 ack=101 ctl=syn,ack) TCP Three Way Handshake (2)
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Send SYN (seq=100 ctl=SYN) SYN received Send SYN (seq=300 ack=101 ctl=syn,ack) Send ACK (seq=101 ack=301 ctl=ack) Host AHost B SYN received ACK received connection is established TCP Three Way Handshake (3)
© Introduction to Internetworking – Alex Kooijman 04/04/2000 IP Addressing 32 bits represented in 4 decimal numbers, each representing 8 bits host part network part A, B, C, D, E class network numbers two types of broadcast: directed broadcast local network broadcast
© Introduction to Internetworking – Alex Kooijman 04/04/ Bits IP Addressing Class A:Network-part = 8 bits, Host-Part = 24 bits Class B:Network-part = 16 bits, Host-Part = 16 bits Class C:Network-part = 24 bits, Host-part = 8 bits Class D : multicast Class E : experimental Network partHost part
© Introduction to Internetworking – Alex Kooijman 04/04/ /24 Broadcast to Not forwarded by router / /24 IP Local Broadcast
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Broadcast to forwarded by router / / /24 IP Directed Broadcast
© Introduction to Internetworking – Alex Kooijman 04/04/2000 IP Subnetting Classless interdomain Routing (CIDR) route is known as address and mask supernetting and subnetting Variable Length Subnet Mask (VLSM) RFC1009 classfull networks can be split into multiple networks with larger subnet masks
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Class B Subnetting # BitsSubnet Mask# Subnets# Hosts IP Subnetting
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Internet Control Message Protocol Required on every IP stack provides feedback about problems time to live counter expires congestion failures destination not reachable direct into IP
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Internet Control Message Protocol Messages: Echo request/reply Destination Unreachable Source quench Redirect Time Exceeded parameter problem timestamp request/reply information request/reply address mask request/reply