Graeme Flashcards
What is Internetworking?
- Hides routing from the Transport layer
- The internet as a ‘network of networks
What are the function of the internet layer?
- Internetworking
- Transmitting packets
- Receiving packets
What happens when the internet layer transmits packets?
- Packetisation into datagrams
- Processing and Routing IP datagrams
- Fragmentation
What happens when the internet layer receives packets?
- Error checking
- Fragment Reassembly
What are the properties of the internet protocol?
- Packet-switched: connectionless
- Unreliable
- Routed
What does unreliable in for the internet protocol?
- No guarantee any given datagram will arrive
- Packets sent and routed on a best effort basis
- IP packets may get dropped or delayed (due to congestion/errors)
- Quality of Service methods can help
What does routed mean for the internet protocol?
- Usually destination-routed
- Routers have routing tables and determine routing
What are the Internet Layer Protocols?
Internet Protocol:
- IPv4
- IPv6
Diagnostics, Control:
- ICMP
- ICMPv6
IPSEC - encryption/security
IGMP - helps establish IPv4 multicast groups
What are the characteristics of IPv4: RFC 791?
- 32-bit addresses, written as dotted quads
- Originated as part of ARPANET in the 1970s
- Variable size header, minimum 20-bytes
What are the characteristics of IPv6: RFC 2460, 8200?
- 128-bit addresses, written as ‘colon-hex’
- Originated in the late 199-s
- Fixed size, simpler header: 40 bytes
How can IPv6 addresses be simplifed?
We can omit leaders 0s in a block replacing them with a single set of “::”
How is fragmentation handled by IPv4?
- Packets can be fragmented at any routing hop
- Generally re-assembled at the receiving host, but could be done at any intermediate router
How is fragmentation handled by IPv6?
- Packets may only be fragmented at the sending host
- Must use Path MTU Discovery before sending
What is Classless Inter Domain Routing?
CIDR (introduced in 1993) allows variable length prefixes, reducing IPv4 address consumption
What do subnets do?
They limit the propagation of Ethernet broadcast traffic and segment hosts by logically dividing a larger IP allocation network
What do routers do in the internet protocol layer?
- You need them any time there is a change in address space
- It needs an interface for each network segment
- Each interface needs an address that is reachable by hosts in that segment
What is Routing?
Routing describes how packets move between subnets
- Occurs at the internet layer and where there is a change in IP address space and each host has a routing table
What are Netmasks?
- Specifies how many bits identify the network prefix
What is the Internet Control Message Protocol (ICMP)?
ICMP packets are encapsulated in standard IP packets
How is ICMP used for IPv4?
Used for information and error messages
How is ICMP is used for IPv6?
Also used for Router advertisement and neighbour discovery
What is Multicast?
- One-to-many communication
- Packets are only sent to hosts that are interested in them
- Afterthought for IPv4, required for IPv6
What are uses for multicast?
- One-to-many multimedia
- Local service discovery
- Inherently part of IPv6 for router advertisements, neighbour discovery and duplicate address detection
What is Address Resolution Protocol (ARP)?
- Maps an IPv4 address on the local subnet to a MAC address
- The host looking for a MAC address broadcasts an ARP “who has” request
- The target sends a (unicast) reply to the requestor
What is Dynamic Host Configuration Protocol (DHCP)?
Automates the process for configuring addresses on a network for IPv4
How does Dynamic Host Configuration Protocol work?
- When a host connects to a network, it broadcasts a DHCP DISCOVER message
- The DHCP server reserves an address and replies with a DHCP OFFER
- The client then needs to DHCP REQUEST the address
- Finally, the server sends DHCP ACK, which contains lease duration and config
What is Neighbour Discovery Protocol?
- Maps an IPv6 address on the local subnet to a MAC address
- Uses ICMP and multicast, rather than encapsulated frames and broadcast
- Router solicitations sent to a solicited node address
- Router advertisements sent to the all nodes address
What does NDP replace?
ARP and ICMP router discovery
What are the 5 packet types for ICMPv6?
- Router Solicitation
- Router Advertisement
- Neighbour Solicitation
- Neighbour Advertisement
- Redirect
What is Router Solicitation?
Host request for router information