09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Routers are also called intermediate systems (ISs) because a router acts as a<br />

forwarding intermediary. Layer 2 pro<strong>to</strong>cols and functions will be covered in Chapter<br />

4, "LAN Inter<strong>network</strong>ing Technologies," and Chapter 5, "WAN Inter<strong>network</strong>ing<br />

Technologies."<br />

Here, <strong>the</strong> destination host is not local <strong>to</strong> <strong>the</strong> source, so <strong>the</strong> datagram is forwarded <strong>to</strong><br />

an intermediate router. The intermediate router <strong>the</strong>n determines where <strong>to</strong> forward<br />

<strong>the</strong> IP datagram next. If <strong>the</strong> host is local <strong>to</strong> <strong>the</strong> intermediate router, it forwards <strong>the</strong><br />

datagram on <strong>to</strong> <strong>the</strong> destination host (as in this example). If it's not local, <strong>the</strong> router<br />

forwards <strong>the</strong> IP datagram on <strong>to</strong> a router that it believes can deliver <strong>the</strong> datagram.<br />

Routing table lookups make <strong>the</strong>se determinations.<br />

IP Routing and IP Datagram Forwarding<br />

All IP datagram delivery starts with a router table lookup. Every host that is part of<br />

a TCP/IP <strong>network</strong> has a routing table. The routing table is created ei<strong>the</strong>r by static or<br />

dynamic means. There are four basic values that make up an IP routing table entry:<br />

• Interface—The interface with which <strong>the</strong> route is associated<br />

• Network address—The <strong>network</strong> portion of IP address for <strong>the</strong> destination<br />

<strong>network</strong><br />

• Subnet mask—The bitmask used <strong>to</strong> distinguish <strong>the</strong> <strong>network</strong> address from <strong>the</strong><br />

host address<br />

• Gateway—The next hop <strong>to</strong> which <strong>the</strong> interface forwards <strong>the</strong> IP datagram for<br />

delivery<br />

All IP-based hosts create a local routing table at startup. Almost all end-station<br />

routing tables are created statically. Every device that uses TCP/IP for host-<strong>to</strong>-host<br />

communication has at least one static route: <strong>the</strong> default gateway.<br />

Table 2.10 provides <strong>the</strong> routing table for <strong>the</strong> <strong>network</strong> illustrated in Figure 2.9. The<br />

routing table has entries for all its connected interfaces and <strong>the</strong> default gateway,<br />

which is defined with a <strong>network</strong> address of 0.0.0.0 and a <strong>network</strong> mask of 0.0.0.0.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!