IPv4 Flashcards
What is a subnet?
Device interfaces with same subnet part of IP address
Can physically reach each other without intervening router
What is CIDR?
It is “Classless InterDomain Routing) - arbitrary subnet lengths
A.b.c.d/X where x is the number of bits for the subnet part
Why is classful routing inefficient?
Class C: 256 addresses: to small for small enterprises
Class B: 65536 addresses: too small for large enterprises and universities
Class A: 16 mio addresses: too large
Where is ICMP located (OSI)?
It resides in IP datagrams but is considered part of the IP layer
What 2 classes of icmp messages exist?
Query messages: generate another icmp message Error messages: contain IP and first 8 bytes of erroneous ip datagram; allows receiving icmp module to map message to protocol&port
When should a host send ARP requests?
When an IP address does not appear in the host-local ARP table.
How does ARP deal with hosts that change their address?
- Expiration timer
- some implementations send ARP request to revalidate to-be-removed table entries
What are gratuitous ARP requests?
A host sends ARP request for its own IP address; this can check if the ip is already in use in the LAN
Vulnerabilities of ARP?
- No authentication - packets can be forged
- Stateless: replies can be send without request
- Receiving ARP packet must update local cache
- Option: Force overwrite (ARP Poisoning) - can redirect traffic
ARP manipulation can also happen in WPA2 Wifi!
What is the difference between routers and switches?
Router: forwarding tables, routing protocols
Forwards IP packets based on FWD table & dst IP
Switch: switching tables, filtering & learning algorithms, spanning tree protocols
Switch L2 frames based on sw table & dst MAC
What are forwarding and routing?
Forwarding: data plane
- direct data packet to link
uses fwd table
Routing: control plane
- compute the paths the packet will follow
Creates fwd table
Name 3 routing protocols
RIP
OSPF
BGP
Routers talk amongst themselves
How does routing in SDN (software defined networking) work?
A router receives forwarding and routing information via SDN control plane
Control plane can be external