Routing, UDP, and the DNS
Tom Kelliher, CS43
Mar. 7, 1996
Note on the DNS homework problem: See named(1). You may also need to
refer to RFCs mentioned in the man page. Here are two URLs for RFC
files repositories.
- ftp://ftp.internic.net/rfc
- ftp://nic.ddn.mil/rfc
Recall that the format of an rfc file is rfcnnn.txt, where nnn
is replaced the the RFC number. For example, RFC 863 is in the file
rfc863.txt.
Schematic view:
Host vs. router
- Routing mechanism --- search routing table to determine which
interface to send a packet out
- Routing policy --- set of rules for deciding which routes are entered
into the routing table
The mechanism:
- Match host address
- Match network address
- Use default entry (if possible)
ICMP redirect messages
Static routing --- routing table set at boot time
Ok for hosts which:
- on small network
- have a single connection point to other networks
- have no redundant routes
Autonomous systems:
- NSFNET backbone
- PrepNet
- Westminster
Interior Gateway Protocols (IGP):
- Routing Information Protocol (RIP)
- Open Shortest Path First (OSPF)
Exterior Gateway Protocols (EGP):
- EGP
- Border Gateway Protocol (BGP)
Current size of routing tables: 10,000 entries
Could be reduced to 200 entries (CIDR)
Routing metric: hop count
Example:
Problems with downed routers, partitioned networks:
- Routing loops
- Convergence
- RIP --- distance-vector protocol
- OSPF --- link-state protocol
IP with port numbers and an optional checksum:
- Re-check:
- Source, destination IP addresses
- Protocol field
- Silently discards checksum errors
- Fragmentation
- UDP input queue full drops (source quench ignores)
- UDP output queue drops on miss in ARP cache
The /etc/hosts crisis.
A distributed database:
- Zones, zone files
- Primaries, secondaries; the SOA record
- Resolver routines, server
- Caching
- Address, pointer queries
- Hostname spoof check
Thomas P. Kelliher
Thu Mar 7 12:21:59 EST 1996
Tom Kelliher