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.

3. Router B—Router B receives <strong>the</strong> packet on interface e0. It extracts <strong>the</strong> IP<br />

datagram and performs route lookup. Table 2.11 shows two gateways that<br />

advertise routes <strong>to</strong> <strong>the</strong> destination <strong>network</strong>.<br />

NOTE<br />

Table 2.11. Routing Table for Router B<br />

Network Address Netmask Gateway Interface<br />

172.168.1.0 /24 172.168.0.1 direct connect e0<br />

172.168.3.0 /30 172.168.3.1 direct connect s0<br />

172.168.3.8 /30 172.168.3.9 direct connect s1<br />

172.168.0.0 /24 172.168.1.254 e0<br />

172.168.3.4 /30 172.168.3.2 via s0<br />

172.168.3.10 via s1<br />

192.168.20.0 /24 172.168.3.2 via s0<br />

172.168.3.10 via s1<br />

192.168.21.0 /24 172.168.3.2 via s0<br />

172.168.3.10 via s1<br />

0.0.0.0 /0 172.168.3.2 s0<br />

4. Router D—Router D is <strong>the</strong> transition point from <strong>the</strong> remote delivery model <strong>to</strong><br />

<strong>the</strong> local delivery model. The IP datagram is now extracted from <strong>the</strong> Frame<br />

Relay frame, <strong>the</strong> route lookup is made, and <strong>the</strong> destination is local <strong>to</strong> <strong>the</strong><br />

router. Now, <strong>the</strong> router is interested in <strong>the</strong> host address. Routers are only<br />

interested in a datagram's host address when <strong>the</strong> destination is on <strong>the</strong><br />

router's own <strong>network</strong>. The router must perform an ARP lookup <strong>to</strong> find out <strong>the</strong><br />

destination host's Layer 2 address. After <strong>the</strong> ARP lookup is complete, <strong>the</strong><br />

datagram is placed in an E<strong>the</strong>rnet frame (source: d61; destination: 0x1) and<br />

forwarded directly <strong>to</strong> <strong>the</strong> destination host, where <strong>the</strong> Layer 4 data is<br />

extracted from <strong>the</strong> Layer 2 and Layer 3 packets.<br />

All things being equal, <strong>the</strong> router uses both interfaces <strong>to</strong> deliver traffic <strong>to</strong> a <strong>network</strong>.<br />

Determining just how equal <strong>the</strong>se two paths are is left <strong>to</strong> <strong>the</strong> routing pro<strong>to</strong>col. In this<br />

case, <strong>the</strong> route via <strong>the</strong> 172.168.3.2 address adds an additional hop, so <strong>the</strong> route via<br />

<strong>the</strong> 172.168.3.10 address will be used. The IP datagram is placed inside a Frame<br />

Relay packet and forwarded <strong>to</strong> <strong>the</strong> next hop. This part of <strong>the</strong> journey provides an<br />

example of a router being used as a Layer 2 media gateway.

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

Saved successfully!

Ooh no, something went wrong!