How it works: Each computer on the net keeps a routing table. This routing table tells, for each network, where to deliver the packets. For every directly attached network, the table just says "send to the addressee". For other networks, the table says "deliver to the gateway named XXX". Finally, there is almost always a default entry. In the common case, the default entry will match all non-local (not at this university or company) addresses, and point to the gateway to the rest of the internet.
The Algorithm:
To Reach A Host On This Network |
Send to this Place |
20.0.0.0 | Delivery directly |
30.0.0.0 | Deliver directly |
10.0.0.0 | 20.0.0.5 |
40.0.0.0 | 30.0.0.7 |
A Real Routing Table
Destination Gateway
Genmask Flags
MSS Window irtt Iface
198.110.193.0 * 255.255.255.0 U 1500 0 0 eth0 127.0.0.0 * 255.0.0.0 U 3584 0 0 lo default 198.110.193.3 0.0.0.0 UG 1500 0 0 eth0 |
MSS: specifies the TCP Maximum Segment Size in Bytes (MSS)
for TCP Connections over this
route. This is normally used only for fine optimisation of routing setups.
The default is 536.