Network Layer: Data Plane Flashcards
1
Q
IP Addressing
IPv4
A
32-bit identifier associated with each host/router interface
2
Q
IP Addressing
Interface
A
- Connection between host/router and physical link
- Each interface has its own IP address
- Routers have multiple interfaces (and therefore multiple IP addresses)
- Host has one or two interfaces
3
Q
IP Addressing
Subnet
A
Device interfaces that can physically reach each other wo passing through an intervening router
4
Q
IP Addressing
IP Address Structure
A
Subnet Part: devices in same subnet have common high order bits
Host Part: remaining low order bits
5
Q
IP Addressing
Subnet Mask
A
Divides the subnet part of the IP address from the host part
6
Q
IP Addressing
CIDR
A
- Classless InterDomain Routing
- Subnet portion of address has arbitrary length
- Address Format: a.b.d/x, where x is the # of bits in the subnet portion
7
Q
IP Addressing
How does a host get an IP address?
A
- hard-coded by sysadmin in config file
- DHCP gets address from server
8
Q
IP Addressing
DHCP
A
- Dynamic Host Configuration Protocol
- Dynamically obtain IP address from network server when it joins the network
- can renew lease on address in use
- allows reuse of addresses (only hold address while connected)
- support
9
Q
DHCP
DHCP Steps
A
- host broadcasts DHCP discover message (optional)
- DHCP server responds with DHCP offer message (optional)
- host requests IP address with DHCP request message
- DHCP server sends address with DCHP ACK message
10
Q
DHCP
DHCP Broadcast
A
- Optional
- Sent by client
- Asks if there are any DHCP servers
11
Q
DHCP
DHCP Offer
A
- Optional
- Sent by DHCP server
- Tells client that its a DHCP server and sends an avaliable IP address
12
Q
DHCP
DHCP Request
A
- Required
- Sent by client
- Asks DHCP server to use offered IP address
13
Q
DHCP
DHCP ACK
A
- Required
- Sent by DHCP server
- Sends confirmation to client that it has the IP address it requested
14
Q
DHCP
What can DHCP server return?
A
- Allocated IP address
- Address of first-hop (closest) router for client
- Name and IP address of DNS server
- Network mask/subnet mask (indicating network vs host portion of address)
15
Q
Network Address Translation
NAT
A
- Network Address Translation
- All devices in local network share just one IPv4 address as far as the outside world is concerned
- All datagrams leaving local network have same souce NAT IP address
- All datagrams inside local network have IP address containing subnet mask