10 - IP Protocol Flashcards
Routing vs Forwarding
Routing: determine the path taken by packets as they flow from sender to receiver (Routers have algorithms/forwarding tables)
Forwarding: move packets from router’s input to appropriate output
IP Addresses
32 bit identifier for host, router interface
Interface:
Connection (boundary) between host/router and physical link.
Subnets
IP Addr: subnet part (high order bits) and host part (low order bits)
Creates separate virtual networks on same router
- 6.101.0/24 (/24 is called a subnet mask) means all addresses which have the first 24 bits equal to 128.6.101, i.e. addresses 128.6.101.0 to 128.6.101.255. Also written
- 6.101.x or 128.6.101.xxx.
CIDR
Classless InterDomain Routing
- subnet portion of address of arbitrary length
- address format a.b.c.d/x where x is # bits in subnet portion
DHCP
Dynamic Host Configuration Protocol
Lease an IP address from a server when it joins a network
Can return default gateway
name and ip of local DNS
network mask
ICANN
Internet Coporation for Assigned Names and Numbers
Allocates addresses
Manages DNS
Assigns domain names
NAT
Network Address Translation
Several devices on a local network can share one IP address, reducing the IPv4 shortage
BUT
routers should only process up to lyr 3
violates end to end agreement
address shortage should be solved by IPv6
IPv4
- Version = 4 bits for IPv4
- Header Length (4 bits): in multiples of 32 bit words
- Type of Service
- Datagram length (16 bits): in bytes
- Identifier, flags, fragmentation offset
- Time to live (number of hops allowed between routers)
- Upper layer protocol: 6 for TCP, 17 for UDP, 1 for ICMP
- Header checksum
- Source + Destination
- Options
- Data
MTU
Maximum Transmission Unit
Max size of payload in link layer frame. FOr ethernet 1500B, so IP datagram length at most 1500
ICMP
Internet COntrol Message Protocol
Used to report errors
IPv6
- Version (4bits) = 6
- Traffic class: similar to Type Of Service
- FLow label
- Payload length (16bits)
- Next header: same as upper layer protocol
- Hop limit: time to live
- SOurce/Dest IP addr 128 bits each
IPv6 vs IPv4
- IPv6 has 128bits
- IPv6 fixed header length: 40 bytes
- IPv6 no fragmentation allowed
- IPv6 no header checksum to save time
- ICMPv6: additional msg types and multicast group management functions