Internet Protocol Flashcards
IP Properties
+ Packet switched connectionless. + Unreliable + Routing + Globally unique, delegated addresses
IP (Un)Reliability
+ Routers forward packets on ‘best effort’ basis + IP Packets may get dropped, usually due to congestion. TCP, retransmissions are handled. UDP, application layer must handle. + Quality of Service methods can help.
IPv4 Header
Source IP. Destination IP. IHL - Header length ID Field. Fragment Offset Time to live IP header Checksum
IP Fragmentation
IP Datagram may be fragmented on it’s path if a link with smaller layer 2 Max Transmission Unit (MTU) is encountered. Ethernet typically has MTU of 1500 bytes. Preferable to avoid frag.
Classless Inter-Domain Routing
Allow’s use of any prefix length, not just /8 /16 or /24. ISP’s must give proof of address requirements to RIRs.
Network Address Translation (NAT)
Uses private IPv4 address internally to local network, global externally. However, NAT is limited as the number of global IP addresses the router held is the most users connected at one time. Fixed with NAPT
Network Address and Port Translation (NAPT)
Keeps record of which hosts are using IP addresses, share 1 global IP address between many hosts by storing TCP/UDP port numbers that map to internet addresses.
NAPT downsides:
+Scales poorly as requires state information + Breaks end to end transparency and security model. +Has problems if apps embed IP addresses. +Causes problems if multiple NATed sites merged, if they share common internal private IPs.
IPv6: Benefits
128-bit addresses. Supports billions more devices online. Potential to restore end-to-end capability. Removal of the need for NAT Network Plug and Play Streamlined extensible IPv6 header. Fragmentation only at sender
IPv6 header
Version Traffic Class Flow Label Payload Length Next Header Hop Limit Source Address Destination Address
IPv6 Addressing
Unicast: One to One (as seen in IPv4) Multicast: One to Many NEW: Various scopes of address are defined. + Link local addresses - used only on a local subnet/link +Unique Local Addresses (ULAs) - for use within a site (e.g. campus) +Global Addresses - globally unique and routable
Unique Local Addresses
Used only within a site. Devices likely to be multi-addressed. Completely unrelated to ISP, so even switching will mean internal communications are stable over ULA. Use ULA as source address if communicating within the site.
Stateless Address Autoconfiguration (SLAAC)
Allows hosts to autoconfig basic network settings without DHCP server. + Stateless - no state info held as no server. + Selects addresses based on network prefix and host’s MAC address
Transitioning to IPv6
Dual Stack Mode: Servers and Devices that can communicate with both protocols Translation: Rewriting IP header from one version to another (done at Application Layer) Tunnelling: Encapsulating IPv6 traffic as payload of IPv6 packets. NO ONE BEST METHOD. Focus on Dual Stack Deployment.