1. Home
  2. Explore
  3. Computer Science
  4. Routing Fundamentals

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Routing Fundamentals

  • 41Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Routing Fundamentals

What is routing, and what task does it perform when a router receives an IP packet?

41 questions

  1. 1

    What is routing, and what task does it perform when a router receives an IP packet?

    Model answer

    Routing is the process of determining the path an IP packet should take to reach its destination. A router uses routing information to decide where to send the packet.

    Explanation

    Routers consult their routing tables to find an appropriate route for packets they receive.

  2. 2

    What information does a router store in its routing table, and how does that differ from a switch’s MAC address table?

    Model answer

    A routing table stores routes to known destination networks; a switch’s MAC address table stores known destination MAC addresses.

    Explanation

    Routers use routes to forward IP packets, while switches use MAC address table entries to forward frames.

  3. 3

    What does a route instruct a router to do, and what does next hop mean?

    Model answer

    A route tells the router how to reach a destination, often by sending the packet to a next-hop router. The next hop is the next router along the path to the destination.

    Explanation

    A route may specify a next hop, direct delivery to a connected destination, or delivery to the router itself when the destination is one of its own IP addresses.

  4. 4

    How do dynamic routing and static routing differ in how routes are learned?

    Model answer

    Dynamic routing protocols let routers share routing information automatically, while static routes are manually configured by a network engineer or administrator.

    Explanation

    OSPF is an example of a dynamic routing protocol; static routes are entered manually.

  5. 5

    Are connected and local routes dynamic or static routes? Explain how they are added.

    Model answer

    They are neither dynamic nor static routes. They are added automatically when an IP address is configured on an enabled interface.

    Explanation

    Each enabled, addressed interface contributes a connected route to its network and a local route to its exact IP address.

  6. 6

    What is the difference between a WAN and a LAN, and how were they represented in the example network?

    Model answer

    A WAN spans a large geographical area, while a LAN is a local area network. The four interconnected routers represented a WAN, with LANs attached to the edge routers.

    Explanation

    The example used the WAN to connect routers that could be in different cities or countries, and showed LANs connected to R1 and R4.

  7. 7

    In the example, which routers were interconnected, and which routers had LANs shown?

    Model answer

    R1, R2, R3, and R4 were interconnected. LANs were shown connected to R1 and R4.

    Explanation

    The diagram omitted possible LANs on R2 and R3 to keep it simpler.

  8. 8

    What were the network and device addresses on the LAN connected to R1?

    Model answer

    The LAN was 192.168.1.0/24192.168.1.0/24192.168.1.0/24; R1’s G0/2 address was 192.168.1.1192.168.1.1192.168.1.1, and PC1’s address was 192.168.1.10192.168.1.10192.168.1.10.

    Explanation

    The router interface and PC were shown as hosts on the same 192.168.1.0/24192.168.1.0/24192.168.1.0/24 LAN.

  9. 9

    What addresses were used on the R1–R2 WAN link?

    Model answer

    The link network was 192.168.12.0/24192.168.12.0/24192.168.12.0/24; R1’s G0/1 address was 192.168.12.1192.168.12.1192.168.12.1, and R2’s G0/0 address was 192.168.12.2192.168.12.2192.168.12.2.

    Explanation

    The example assigned each router an address in the same WAN-link subnet.

  10. 10

    What addresses were used on the R1–R3 WAN link?

    Model answer

    The link network was 192.168.13.0/24192.168.13.0/24192.168.13.0/24; R1’s G0/0 address was 192.168.13.1192.168.13.1192.168.13.1, and R3’s G0/0 address was 192.168.13.3192.168.13.3192.168.13.3.

    Explanation

    R1’s interface address was also used in the configuration example.

  11. 11

    What addresses were used on the R2–R4 WAN link?

    Model answer

    The link network was 192.168.24.0/24192.168.24.0/24192.168.24.0/24; R2’s G0/1 address was 192.168.24.2192.168.24.2192.168.24.2, and R4’s G0/0 address was 192.168.24.4192.168.24.4192.168.24.4.

    Explanation

    The two router interfaces belonged to the same WAN-link subnet.

  12. 12

    What addresses were used on the R3–R4 WAN link?

    Model answer

    The link network was 192.168.34.0/24192.168.34.0/24192.168.34.0/24; R3’s G0/1 address was 192.168.34.3192.168.34.3192.168.34.3, and R4’s G0/1 address was 192.168.34.4192.168.34.4192.168.34.4.

    Explanation

    The example used this subnet for the final WAN connection between the routers.

  13. 13

    What were the network and device addresses on the LAN connected to R4?

    Model answer

    The LAN was 192.168.4.0/24192.168.4.0/24192.168.4.0/24; R4’s G0/2 address was 192.168.4.4192.168.4.4192.168.4.4, and PC4’s address was 192.168.4.10192.168.4.10192.168.4.10.

    Explanation

    R4’s interface connected the router to the LAN containing PC4.

  14. 14

    What simplifying IP-addressing pattern was used for the routers, and why should it not be assumed in real networks?

    Model answer

    Each router’s addresses used a final octet matching its router number, such as .1 for R1 and .4 for R4. This was a simplified scheme for lessons and labs, not a pattern to expect in real networks.

    Explanation

    The regular pattern made the example easier to follow.

  15. 15

    Which commands were used in the R1 configuration example to enable an interface, move to another interface, and verify interface addresses?

    Model answer

    The example used no shutdown to enable an interface, interface G0/1 to select another interface, and show ip interface brief to verify addresses and interface status.

    Explanation

    The interface command could be entered directly from interface configuration mode without first using exit to return to global configuration mode.

  16. 16

    Which command displays a Cisco router’s routing table?

    Model answer

    The command is show ip route.

    Explanation

    Its output includes a codes legend and the routes currently in the routing table.

  17. 17

    What do the C and L codes mean in a Cisco routing table?

    Model answer

    C means connected, and L means local.

    Explanation

    A connected route identifies the network attached to an interface; a local route identifies the interface’s exact IP address.

  18. 18

    How many routes are automatically added for each configured IP address on an enabled interface, and what are they?

    Model answer

    Two routes are added: a connected route to the interface’s network and a local route to the interface’s exact IP address.

    Explanation

    For example, R1 had six such routes after its three interfaces were configured and enabled.

  19. 19

    What happens to the automatically added routes if the interface is shut down?

    Model answer

    The connected and local routes for that interface do not appear in the routing table while the interface is shut down.

    Explanation

    The routes are added when the interface has an IP address and is enabled.

  20. 20

    In the example routing-table output, what do the lines saying a network is variably subnetted describe, and are those lines themselves routes?

    Model answer

    They summarize how many subnets and masks are represented for the indicated network; they are not routes themselves.

    Explanation

    For example, the line for 192.168.1.0/24192.168.1.0/24192.168.1.0/24 indicated two subnets with two masks, /24/24/24 and /32/32/32. The lesson notes that these summary lines can generally be ignored when identifying the routes.

  21. 21

    For an interface configured as 192.168.1.1/24192.168.1.1/24192.168.1.1/24, what is its connected route, and what does that route allow the router to reach?

    Model answer

    The connected route is to 192.168.1.0/24192.168.1.0/24192.168.1.0/24. It provides a route to host addresses in that network through the interface.

    Explanation

    The network portion is the first 24 bits, so setting the host portion to zero gives the network address 192.168.1.0192.168.1.0192.168.1.0.

  22. 22

    For the address 192.168.1.1/24192.168.1.1/24192.168.1.1/24, which bits identify the network and which identify the host?

    Model answer

    The first 24 bits, or first three octets, identify the network; the last 8 bits, or final octet, identify the host.

    Explanation

    The /24/24/24 prefix fixes the first three octets while allowing the final octet to vary within the subnet.

  23. 23

    What address range is matched by the route 192.168.1.0/24192.168.1.0/24192.168.1.0/24?

    Model answer

    It matches addresses from 192.168.1.0192.168.1.0192.168.1.0 through 192.168.1.255192.168.1.255192.168.1.255.

    Explanation

    The /24/24/24 prefix fixes the first three octets and leaves the final 8 bits variable.

  24. 24

    Why does the connected route 192.168.1.0/24192.168.1.0/24192.168.1.0/24 allow R1 to send packets for different hosts, such as 192.168.1.10192.168.1.10192.168.1.10 and 192.168.1.232192.168.1.232192.168.1.232, out G0/2?

    Model answer

    Both destination addresses belong to the 192.168.1.0/24192.168.1.0/24192.168.1.0/24 network, so they match the connected route through G0/2.

    Explanation

    A connected route directs matching network destinations out the interface connected to that network.

  25. 25

    What is the local route for an interface configured with 192.168.1.1/24192.168.1.1/24192.168.1.1/24, and what does it tell the router?

    Model answer

    The local route is 192.168.1.1/32192.168.1.1/32192.168.1.1/32. It tells the router that packets addressed to this exact IP address are for the router itself.

    Explanation

    The local route represents the specific interface address, not the whole subnet.

  26. 26

    Why is a /32/32/32 prefix used for a local route?

    Model answer

    A /32/32/32 prefix fixes all 32 bits, so the route matches exactly one IP address.

    Explanation

    For example, 192.168.1.1/32192.168.1.1/32192.168.1.1/32 matches 192.168.1.1192.168.1.1192.168.1.1 but not 192.168.1.2192.168.1.2192.168.1.2.

  27. 27

    What subnet mask corresponds to /24/24/24, and how does it affect which address bits can vary?

    Model answer

    The mask is 255.255.255.0255.255.255.0255.255.255.0. The first 24 bits are fixed, while the final 8 bits can vary.

    Explanation

    This mask is why a /24/24/24 route matches addresses with the same first three octets.

  28. 28

    Would a route to 192.168.1.0/24192.168.1.0/24192.168.1.0/24 match destinations 192.168.1.2192.168.1.2192.168.1.2, 192.168.1.89192.168.1.89192.168.1.89, and 192.168.2.1192.168.2.1192.168.2.1? Explain.

    Model answer

    It matches 192.168.1.2192.168.1.2192.168.1.2 and 192.168.1.89192.168.1.89192.168.1.89, but not 192.168.2.1192.168.2.1192.168.2.1, because the first two share the route’s first three octets.

    Explanation

    A route matches a destination when that destination IP address is part of the network specified by the route.

  29. 29

    If a packet to 192.168.1.60192.168.1.60192.168.1.60 is compared with routes to 192.168.1.0/24192.168.1.0/24192.168.1.0/24 and 192.168.0.0/24192.168.0.0/24192.168.0.0/24, which route matches?

    Model answer

    The route to 192.168.1.0/24192.168.1.0/24192.168.1.0/24 matches; the route to 192.168.0.0/24192.168.0.0/24192.168.0.0/24 does not.

    Explanation

    The destination belongs to the 192.168.1.0/24192.168.1.0/24192.168.1.0/24 network, not the 192.168.0.0/24192.168.0.0/24192.168.0.0/24 network.

  30. 30

    What two conditions determine which route a router uses when several routes are present?

    Model answer

    The route must match the packet’s destination, and among matching routes the router selects the one with the longest prefix length.

    Explanation

    A route that does not match the destination cannot be selected, even if its prefix is long.

  31. 31

    What does “most specific matching route” mean?

    Model answer

    It is the matching route with the longest prefix length.

    Explanation

    A longer prefix represents a narrower set of destination addresses.

  32. 32

    Why does the local route 192.168.1.1/32192.168.1.1/32192.168.1.1/32 take precedence over the connected route 192.168.1.0/24192.168.1.0/24192.168.1.0/24 for a packet destined for 192.168.1.1192.168.1.1192.168.1.1?

    Model answer

    Both routes match, but the /32/32/32 local route is more specific than the /24/24/24 connected route, so the router selects the local route.

    Explanation

    The /32/32/32 route covers one address, while the /24/24/24 route covers 256 addresses.

  33. 33

    What does R1 do with a packet destined for its own address 192.168.1.1192.168.1.1192.168.1.1 after selecting the local route?

    Model answer

    R1 receives the packet for itself rather than forwarding it out of G0/2.

    Explanation

    The local route indicates that the destination is one of the router’s own IP addresses, so R1 de-encapsulates the packet and examines its contents.

  34. 34

    R1 receives a packet destined for 192.168.13.3192.168.13.3192.168.13.3. Which route does it use, and what does it do?

    Model answer

    It uses the connected route to 192.168.13.0/24192.168.13.0/24192.168.13.0/24 and sends the packet out of G0/0 toward the directly connected destination.

    Explanation

    In the example, 192.168.13.3192.168.13.3192.168.13.3 is on the network connected to R1’s G0/0 interface.

  35. 35

    R1 receives a packet destined for 192.168.1.244192.168.1.244192.168.1.244. Which route does it use, and what does it do?

    Model answer

    It uses the connected route to 192.168.1.0/24192.168.1.0/24192.168.1.0/24 and forwards the packet out of G0/2 toward the destination.

    Explanation

    The destination is in the network connected to R1’s G0/2 interface.

  36. 36

    R1 receives a packet destined for 192.168.12.1192.168.12.1192.168.12.1, an address shown in its routing table as a local /32/32/32 route. What does R1 do?

    Model answer

    R1 selects the local route and receives the packet for itself.

    Explanation

    The exact-address local route is more specific than any broader route that also matches.

  37. 37

    In the example route-selection question, how many routes match 10.0.1.2310.0.1.2310.0.1.23, and which route is most specific?

    Model answer

    Two routes match: 10.0.1.0/2410.0.1.0/2410.0.1.0/24 and 10.0.1.23/3210.0.1.23/3210.0.1.23/32. The 10.0.1.23/3210.0.1.23/3210.0.1.23/32 route is most specific.

    Explanation

    Because the selected route is a local route, the router receives the packet for itself rather than forwarding it.

  38. 38

    What will R1 do with a packet destined for 192.168.4.10192.168.4.10192.168.4.10 if its routing table has no matching route?

    Model answer

    R1 will drop the packet.

    Explanation

    A router does not flood a packet when it lacks a matching route.

  39. 39

    How do routers and switches differ when they do not know how to reach a destination?

    Model answer

    A router drops a packet if no route matches its destination, whereas a switch floods a frame with an unknown destination.

    Explanation

    Switches can flood unknown unicast frames; routers never flood packets.

  40. 40

    What is an unknown unicast frame, and how does a switch handle it?

    Model answer

    It is a unicast frame whose destination MAC address is not found in the switch’s MAC address table. The switch floods the frame.

    Explanation

    This behavior differs from a router, which drops a packet when no route matches its destination.

  41. 41

    How does a switch’s destination-matching process differ from a router’s route selection?

    Model answer

    A switch looks for an exact match to the frame’s destination MAC address. A router selects the matching route with the longest prefix length.

    Explanation

    Switches do not use a “most specific match” rule for MAC address table entries.

1 of 41
Question 1 of 41

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent