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!
2
Q
Network Layer (Key Challenges)
A
- How to represent addresses
- How to route packets in a scalable manner
3
Q
The Internet Protocol (IP)
A
- Realistically, there’s only one globally applicable data-transfer protocol at the Network Layer: Internet Protocol (IP)
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?
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
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
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
8
Q
IP Addressing and forwarding
A
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
10
Q
Classes of IP Addresses
A
11
Q
Class Sizes
A
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
13
Q
CIDR Example
A
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
15
Q
CIDR and Subnetting Improve Routing Scalability
A