text stringlengths 0 6.55k |
|---|
Step 1. Use the data-link Frame Check Sequence (FCS) field to ensure that the frame had no errors; if errors occurred, discard the frame. |
Step 2. Assuming that the frame was not discarded at Step 1, discard the old data-link header and trailer, leaving the IP packet. |
|||||||||||||||||||| Technet24 |
|||||||||||||||||||| |
Chapter 3: Fundamentals of WANs and IP Routing 71 |
Step 3. Compare the IP packet’s destination IP address to the routing table, and find the route that best matches the destination address. This route identifies the outgo-ing interface of the router and possibly the next-hop router IP address. |
Step 4. Encapsulate the IP packet inside a new data-link header and trailer, appropriate for the outgoing interface, and forward the frame. |
Figure 3-11 works through a repeat example of a packet sent by PC1 to PC2, followed by a |
detailed analysis of each device’s routing logic. Each explanation includes the details about 3 how PC1 and each of the three routers builds the appropriate new data-link headers. |
150.150.1.10 |
A PC1 Eth IP Packet Eth |
R1 Routing Table 150.150.1.4 |
Subnet |
150.150.4.0 |
Interface |
Serial0 |
Next Hop |
150.150.2.7 |
B R1 HDLC IP Packet HDLC S0 |
R2 Routing Table 150.150.2.7 |
Subnet |
150.150.4.0 |
Interface Next Hop |
FastEth0/0 150.150.3.1 |
C R2 Eth IP Packet Eth F0/0 |
R3 Routing Table 150.150.3.1 |
Subnet |
150.150.4.0 |
Interface Next Hop |
Gigabit0/0 N/A |
D R3 Eth IP Packet Eth G0/0 |
Subnet PC2 150.150.4.10 150.150.4.0 |
Figure 3-11 Network Layer and Data-Link Layer Encapsulation |
The following list explains the forwarding logic at each router, focusing on how the routing integrates with the data link. |
Step A. PC1 sends the packet to its default router. PC1’s network layer logic builds the IP packet, with a destination address of PC2’s IP address (150.150.4.10). The network layer also performs the analysis to decide that 150.150.4.10 is not in the local IP subnet, so PC1 needs to send the packet to R1 (PC1’s default ... |
nation Ethernet address of R1’s Ethernet address. PC1 sends the frame on to the Ethernet. |
Step B. R1 processes the incoming frame and forwards the packet to R2. Because the incoming Ethernet frame has a destination MAC of R1’s Ethernet MAC, R1 decides to process the frame. R1 checks the frame’s FCS for errors, and if none, R1 discards the Ethernet header and trailer. Next, R1 compares the packet’s |
|||||||||||||||||||| |
|||||||||||||||||||| |
72 CCNA 200-301 Official Cert Guide, Volume 1 |
destination address (150.150.4.10) to its routing table and finds the entry for subnet 150.150.4.0. Because the destination address of 150.150.4.10 is in that subnet, R1 forwards the packet out the interface listed in that matching route (Serial0) to next-hop Router R2 (150.150.2.7). R1 must first encapsulate the IP pa... |
Step C. R2 processes the incoming frame and forwards the packet to R3. R2 repeats the same general process as R1 when R2 receives the HDLC frame. R2 checks the FCS field and finds that no errors occurred and then discards the HDLC header and trailer. Next, R2 compares the packet’s destination address (150.150.4.10) to ... |
a route that directs R2 to send the packet out interface Fast Ethernet 0/0 to next-hop router 150.150.3.1 (R3). But first, R2 must encapsulate the packet in an Ethernet header. That header uses R2’s MAC address and R3’s MAC |
address on the Ethernet WAN link as the source and destination MAC address, respectively. |
Step D. R3 processes the incoming frame and forwards the packet to PC2. Like R1 and R2, R3 checks the FCS, discards the old data-link header and trailer, and matches its own route for subnet 150.150.4.0. R3’s routing table entry for 150.150.4.0 shows that the outgoing interface is R3’s Ethernet interface, but there is ... |
Because the routers build new data-link headers and trailers, and because the new headers contain data-link addresses, the PCs and routers must have some way to decide what data-link addresses to use. An example of how the router determines which data-link address to use is the IP Address Resolution Protocol (ARP). ARP... |
How IP Addressing Helps IP Routing |
IP defines network layer addresses that identify any host or router interface that connects to a TCP/IP network. The idea basically works like a postal address: Any interface that expects to receive IP packets needs an IP address, just like you need a postal address before receiving mail from the postal service. This n... |
NOTE IP defines the word network to mean a very specific concept. To avoid confusion when writing about IP addressing, this book (and others) often avoids using the term net-work for other uses. In particular, this book uses the term internetwork to refer more gener-ally to a network made up of routers, switches, ca... |
|||||||||||||||||||| Technet24 |
|||||||||||||||||||| |
Chapter 3: Fundamentals of WANs and IP Routing |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.