Forwarding, IPv4 & Addressing Flashcards

1
Q

Network Layer (Function)

A
  • Route packets end-to-end over a network, via multiple hops
  • Ties the entire protocol stack together!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Network Layer (Key Challenges)

A
  • How to represent addresses
  • How to route packets in a scalable manner
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The Internet Protocol (IP)

A
  • Realistically, there’s only one globally applicable data-transfer protocol at the Network Layer: Internet Protocol (IP)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Routers Revisited

A
  • LANs may be incompatible
    ¤ Ethernet, Wifi, etc…
  • How to connect them to form a network of networks?
  • How do routers know where to send a packet?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

IP Addressing (IPv4)

A
  • 32-bit addresses
    ¤ Usually written in dotted notation, e.g. 192.168.21.76
    ¤ Each number is encoded as 8 bits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What should an address be associated with?

A
  • Interface: connection between host/router and physical link
    • Routers typically have multiple interfaces
    • Host typically has one or two interfaces (e.g., wired Ethernet, wireless 802.11)
  • IP addresses associated with each interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do we assign IP addresses?

A
  • At the top level, IP address ranges are controlled by IANA
    ¤ Part of ICANN (The Internet Corporation for Assigned Names and Numbers)
  • IANA grants IPs to regional authorities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

IP Addressing and forwarding

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Flat IP Addressing does not scale well

A
  • Routing Table Requirements
    ¤ For every possible IP, give the next hop
    ¤ But for 32-bit addresses, 232 possibilities (4,294,967,296) !
    ¤ Too slow
  • Hierarchical address scheme
    ¤ Separate the address into a network and a host
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Classes of IP Addresses

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Class Sizes

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Classless Inter-Domain Routing (CIDR)

A
  • Motivation: Offer a better tradeoff between size of the routing table and efficient use of the IP address space
  • Key ideas: Flexible division between network and host addresses
    ¤ Get rid of IP classes
    ¤ Use a mask instead of fixed prefix
    ¤ A mask is a 32-bit number that determines the network part and the host part
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CIDR Example

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Subnets

A
  • What’s a subnet ?
    ¤ Set of device interfaces that can physically reach each other without an intervening router

¤ Set of device interfaces whose IP address has a common network part

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

CIDR and Subnetting Improve Routing Scalability

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Size of CIDR Routing Tables

A
  • From www.cidr-report.org
  • CIDR has kept IP routing table sizes in check
    – Currently ~500,000 entries for a complete IP routing table
    – Only required by backbone routers
17
Q

IP functionality

A
  • Getting the packet there:
    ¤ Where is the packet going (addressing)?
    ¤ Which protocol will process the packet on the destination host?
  • Network handling of packet:
    ¤ How should the packet be forwarded (e.g., priority)
    ¤ Where does the header end and the packet begin/end?
  • Coping with problems:
    ¤ Has the header been corrupted? (why not payload?)
    ¤ Has the packet been fragmented? If so, provide information needed to reconstruct
    ¤ Is packet caught in a loop? If so, drop packet
18
Q

From semantics to syntax

A
  • IP Datagrams are like a letter
    ¤ Totally self-contained
    ¤ Include all necessary addressing information
    ¤ No need for advanced setup of connections or circuits
19
Q

IP Header Fields: Word 1

A
  • Version: 4 for IPv4
  • Header Length: Number of 32-bit words (usually 5)
  • Differentiated Services Code Point/ Explicit Congestion Notification (not much used)
  • Datagram Length: Length of header + data in bytes
20
Q

IP Header Fields: Word 3

A
  • Time to Live: decremented by each router
    ¤ Used to kill looping packets
  • Protocol: ID of encapsulated protocol
    ¤ 6 = TCP, 17 = UDP
  • Checksum
21
Q

Problem: How to cope with
different MTUs?

A
  • Each network has its own Maximum Transmission Unit size (MTU)
    ¤ IP Datagram size may be > MTU
    ¤ Minimum MTU may not be known for a given path
  • Solution: fragmentation
    ¤ Split datagrams into pieces when MTU is reduced
22
Q

Where should reassembly happen?

A
  • Answer #1: within the network, with no help from end- host B (receiver) ✗
  • Answer #2: at end-host B (receiver) with no help from the network ✔
  • Fragments can travel across different paths!
23
Q

Fragmentation is Considered Harmful

A

Although IP’s “end-to-end” fragmentation is in keeping with the end-to-end principle, fragmentation is generally considered harmful - for two performance-related reasons:

  1. Fragmentation per-se adds performance overhead
  2. Loss of fragments leads to degraded performance
    ¤ Loss of any fragment requires retransmit of entire datagram
24
Q

IPv6

A
  • IPv6, first introduced in 1998(!)
    ¤ 128-bit addresses
    ¤ 4.8 * 1028 addresses per person
  • Address format
    ¤ 8 groups of 16-bit values, separated by ‘:’
    ¤ Leading zeroes in each group may be omitted
    ¤ Groups of zeroes can be omitted using ‘::’

2001:0db8:0000:0000:0000:ff00:0042:8329
2001:0db8:0:0:0:ff00:42:8329
2001:0db8::ff00:42:8329

25
Q

IPv6 Header

A
  • Double the size of IPv4 (320 bits vs. 160 bits)
26
Q

Deployment Challenges

A
  • Switching to IPv6 is a whole-Internet upgrade
    ¤ All routers, all hosts
    ¤ DNSv6, ICMPv6, DHCPv6, …
27
Q

Google IPv6 Statistics

A
28
Q

Beware unintended consequences of IPv6

A
  • Performance during transition?
    • “Tunnelling” has significant overheads
  • IP blocklists
    ¤ Blocklists are used to track IPs of spammers/bots
    ¤ Few IPv4 addresses mean blocklist sizes are reasonable
    – Hard for spammers/bots to acquire new IPs
  • Blocklists will not work with IPv6
    ¤ Address space is enormous
    ¤ Acquiring new IP addresses is trivial
  • How to manage subnet/IP allocation within networks?
    • Much larger address space