Week 3 TCP/IP Flashcards
What differentiates TCP/IP networks (week 3) from other weeks work?
Previous weeks have focused on LAN. TCP/IP looks at WAN - the Internet. Internet = Network layer 2
What is IP?
Internet Protocol:
- Connectionless service
- Network addressing
- Best effort
- Routing tables (OSPF/RIP)
- Fragmentation and reassembly of packets
IPv4 address example:
32 bits represented by dot notation: 138.77.45.3
Part of the bits represent the LAN, the other part represent the host inside the LAN
What classes of address are there?
What is subnet addressing?
Splitting the network for containment and faster routing -> i.e. one path has 1.1.0.0 and the other has all 1.2.0.0 addresses
What is different about IPv6 vs IPv4?
IPv6 offers:
An expansion of IP addresses
Hierarchical IP addresses
IPsec function
QOS control function
No fragmentation
Automatic allocation of IP addresses
Simplified header
Allows jumbograms (very big packets)
4 groups of digits: 128.40.42.82
What are IPv6 address blocks?
Blocks of ipv6 are formed so as to create segregated groups - these groups can have specific features such as:
- A limited multicast address space (note there is no broadcast in IPV6)
- A limited local unicast address space
- Local address blocks
- Global unicast (2000::/3)
- Special case unicast address (anycast)
How are IPv6 addresses allocated?
Designed to result in efficient routing tables.
1. Assignment are hierarchical with the Regional Internet Regristries getting large /12 allocations
2. /48 prefix are allocated to organisations and private individuals
3. Very large organisations may be assigned a /47 or a set of /48 prefixes
4. Recommendation is to use 64 bits for network part and 64 bits for host part
5. Host part is then derived using 48 bit MAC address padded to 65 bits
How do you identify a multicast address in IPv6?
A multicast address is indicated by FF in first byte.
FF02::1 = All nodes on a link
FF02::2 = All routers on a link
FF05::2 = All routers in a site
FF05::3 = All DHCP servers in a site
How are multicast addresses mapped to ethernet?
What is the Address Resolution Protocol (ARP)? (Given an IP address, what is the MAC address?)
What is the Address Resolution Protocol over a network on the internet?
What is the ARP equivalent process for IPv6?
How do you obtain your own IP address (IPv4/IPv6)?
IPv4=Dynamic Host Configuration Protocol (DHCP)
- Broadcast a message to discover DHCP
- Server eventually replies with default router, netmask, dns server to configure yourself
IPv6=StateLess Address AutoConfiguration (SLAAC)
- On host boot it binds each network interface to the following adddresses::
1. FF02::1 multicast
2. ::1 Loopback address
3. FF02::1:ffxx:xxxx node solicitation multicast address (xx part = mac address)
4. FE80::Inteface id
To access beyond LAN, host must then search for routers on the network. A router soliciation message is sent to all-routers multicast address (FF02::2) - each one replies with a router advertisement.
Host can then use DAD (Duplicate Address Detection) to construct a neighbour discovery packet to find if there is a node using the same address. For security, computer will also pick a series of bits randomly and fill in the last 48 btis randomly.
How is fragmentation done in IPv4/IPv6?
In IPv4 the message is fragmented by routers and defragmented by end systems. The packet will contain a fragment offset to describe which section it is.
In IPv6 no fragmentation exists. Messages are sent using Path MTU discovery - it sends a packet, if a link drops the packet because the packet is too big, it sends an ICMP message back to the host to alert them. The host then retries until it succeeds.
What is Internet Control Message Protocol (ICMP)?
ICMP is used by IP to send error and control messages. Can be sent by end hosts or routers. In IPv6 ICMP also is used for router and host configuration. Methods used:
PING - to see whether an IP address is reachable
TRACEROUTE - send packets with different time to live to determine how far it is.