1. Home
  2. Explore
  3. Computer Science
  4. IPv4 Network Layer

Study methods

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

IPv4 Network Layer

  • 74Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: IP Fundamentals
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

At which OSI layer does IP operate?

Tap to flipClick to flipspace

The network layer, or Layer 3.

Or swipe the card

74 cards

  1. At which OSI layer does IP operate?

    The network layer, or Layer 3.

  2. Where does the network layer sit in the TCP/IP stack, and what does it do with data?

    It takes data from the transport layer and passes it to the data-link layer for delivery.

  3. Which version of IP is the focus here, and what is its successor?

    IPv4 is the focus; IPv6 is its successor.

  4. Which RFC defined IPv4, and when was it published?

    RFC 791, published in 1981.

  5. What is IP's basic delivery goal?

    To deliver an internet datagram from a source machine toward a destination machine.

  6. Does IP deliver data to the destination application or process?

    No. IP delivers data to the destination machine; upper-layer protocols handle delivery to the correct process.

  7. What end-to-end services does IP itself not provide?

    Reliability, flow control, sequencing, and similar end-to-end services.

  8. How does IP treat separate datagrams, and does it establish connections?

    It treats each datagram as an independent entity and does not establish connections or logical circuits.

  9. What are the two basic functions of IP identified in the material?

    Addressing and fragmentation.

  10. What does routing mean in the context of IP?

    Selecting a path to move a datagram toward its destination, one step at a time.

  11. How long is an IPv4 address, and what two portions does it contain?

    It is 32 bits long and contains a network portion and a host portion.

  12. How do IPv4 addresses identify machines on the same network?

    Machines on the same network share the network portion, while each has a distinct host portion.

  13. How does a subnet mask distinguish the network portion from the host portion?

    The mask's 1 bits identify the network portion; its 0 bits identify the host portion.

  14. What were the five IPv4 address classes, and what were they used for?

    Classes A, B, and C were used for host addressing; D was used for multicast; E was reserved.

  15. What were the default subnet masks for class A, B, and C addresses?

    Class A: 255.0.0.0; Class B: 255.255.0.0; Class C: 255.255.255.0.

  16. Why did classful addressing become inadequate as Internet use grew?

    It offered little flexibility in network sizes and address allocation, contributing to address exhaustion.

  17. What change did classless addressing introduce, and which RFC introduced it?

    It allowed network masks other than the classful defaults; it was introduced in RFC 1519.

  18. What do CIDR and VLSM refer to in classless addressing?

    CIDR means classless inter-domain routing; VLSM means variable-length subnet mask.

  19. How does classless addressing help size networks?

    It allows masks of varying lengths, such as 18, 25, or 27 bits, so a network can be sized to its host requirements.

  20. What kinds of routes does a host usually have in its routing table?

    Routes for its directly connected networks and usually a default route.

  21. What is the purpose of a host's default route?

    It tells the host where to send packets when no more specific route applies.

  22. What command can display a host's routing table on Windows or Linux?

    netstat -rn.

  23. How does a host decide whether a destination is on its local network?

    It compares the destination IP address with its own IP address using its subnet mask to determine whether the network portions match.

  24. What does a host do when the destination is on the same network?

    It sends the data directly over Layer 2, using ARP to learn the destination's MAC address if needed.

  25. What does a host do when the destination is on a different network?

    It sends the packet to its router, usually the default gateway.

  26. Does a host ask its router whether a destination is local or where the destination is?

    No. The host makes the local-versus-remote decision itself, then sends the packet locally or to its router.

  27. A host with address 10.1.1.3 wants to send to 10.1.1.2 on the same network. What does it do?

    It sends the data directly to 10.1.1.2 at Layer 2, using ARP to find that host's MAC address if necessary.

  28. What is the first Layer 2 step a router takes after receiving a packet in a frame?

    It removes the Layer 2 frame to access the IP datagram.

  29. What does a router do if the IP datagram is addressed to the router itself?

    It passes the datagram up the protocol stack for local processing.

  30. How does a router handle a datagram destined for one of its directly connected networks?

    It forwards the datagram toward the final host on that connected network.

  31. What does a router do when a datagram is neither for itself nor for a connected network?

    It checks its routing table and forwards the datagram toward the destination.

  32. What Cisco command displays a router's IPv4 routing table?

    show ip route.

  33. What does the letter C indicate beside a route in a Cisco routing table?

    The route is directly connected.

  34. How is the default route represented in a router's IPv4 routing table?

    As the all-zeros route, 0.0.0.0/0.

  35. What are an outgoing interface and a next hop used for in a route?

    They indicate where to send the datagram next: through which interface and, when specified, to which neighboring router.

  36. How does a datagram reach a destination across multiple routers?

    Each router consults its routing table and forwards the datagram one step closer, until a router connected to the destination network delivers it.

  37. What is the range of an IPv4 header's total length?

    From 20 to 60 bytes.

  38. What does the Version field in an IP header indicate?

    Which version of the IP protocol is being used.

  39. What does the IPv4 Header Length field measure, and in what units?

    It measures the header's length in 4-byte words.

  40. What does the Total Length field include?

    The entire IP datagram, including its header and data.

  41. Which IPv4 header fields support fragmentation?

    Identification, Flags, and Fragment Offset.

  42. What does the IPv4 Time to Live field do?

    It limits how long a packet can continue being forwarded; a router discards it when the value reaches zero.

  43. Why is a limit on a packet's lifetime needed?

    It prevents packets from circulating indefinitely in a routing loop.

  44. What does the IPv4 Protocol field identify?

    The upper-layer protocol that should receive the data, such as TCP, UDP, or ICMP.

  45. What is the purpose of the IPv4 header checksum?

    To check for errors in the IP header; a packet with a detected header error is discarded.

  46. What do the Source Address and Destination Address fields indicate?

    The source address identifies the sender; the destination address identifies the intended recipient.

  47. What is the IPv4 Type of Service field used for?

    It can be used for quality of service.

  48. What is the MTU, and why can it lead to IP fragmentation?

    The MTU is the maximum amount of data that can be carried in a Layer 2 frame. A datagram may need fragmentation if it is too large for a link's MTU.

  49. How can PPPoE cause fragmentation?

    Its 8-byte PPP header reduces the effective Ethernet MTU to 1492 bytes, so a 1500-byte datagram may need fragmentation.

  50. Why can a VPN cause fragmentation?

    VPN headers, which may include a new IP header and a VPN header, add overhead and can make the packet too large for a link's MTU.

  51. What is the purpose of the Identification field in fragmented IPv4 datagrams?

    It gives fragments from the same original datagram a shared identifier so they can be grouped for reassembly.

  52. What are the IPv4 fragmentation flags used for?

    They indicate whether fragmentation is allowed and whether more fragments follow; one flag is unused.

  53. What does the Don't Fragment (DF) flag do?

    When set, it tells routers not to fragment the datagram.

  54. What does the More Fragments (MF) flag indicate?

    An MF value of 1 indicates that more fragments follow; an MF value of 0 indicates that no more fragments follow.

  55. What information does the Fragment Offset field provide?

    It indicates where the fragment's data belongs when the original datagram is reassembled.

  56. Can an IPv4 datagram be fragmented more than once?

    Yes. A fragment can be fragmented again if it encounters a link with a smaller MTU.

  57. Where are IPv4 fragments reassembled?

    At the destination host, not at intermediate routers.

  58. When a datagram is fragmented, what happens to its IP header?

    Each fragment receives its own IP header and is forwarded as a separate datagram.

  59. How is the Fragment Offset calculated, and what offset represents a data position of 400 bytes?

    The offset is expressed in 8-byte units, so 400 bytes corresponds to an offset of 50.

  60. Why is the Fragment Offset expressed in 8-byte units?

    The offset field is 13 bits while the Total Length field is 16 bits; using 8-byte units lets the offset represent positions across the datagram's full possible size.

  61. What fragmentation-field pattern identifies an unfragmented datagram?

    MF is 0 and the Fragment Offset is 0.

  62. What fragmentation-field pattern identifies the first fragment?

    MF is 1 and the Fragment Offset is 0.

  63. What fragmentation-field pattern identifies a middle fragment?

    MF is 1 and the Fragment Offset is nonzero.

  64. What fragmentation-field pattern identifies the last fragment?

    MF is 0 and the Fragment Offset is nonzero.

  65. Can a fragment's position in the original datagram be determined from the fact that its offset is nonzero alone?

    No. The actual offset value is needed to determine the fragment's position and order.

  66. Why are IPv4 header options called optional?

    They may appear in a datagram, but they do not have to be present.

  67. What are the End of Option List and No Operation options used for?

    End of Option List marks the end of the options and can serve as padding; No Operation is used as padding.

  68. How must IPv4 options be positioned within the header?

    Options must begin at the start of the options area; padding such as No Operation can separate them as needed.

  69. What does the Record Route option do, and what limits its usefulness?

    It records routers a packet passes through, but the 40-byte options limit often leaves too little space to record the full path.

  70. What is source routing?

    It uses IP options to specify routers a packet should pass through.

  71. How do loose and strict source routing differ?

    Loose source routing requires the packet to pass through specified routers but permits others; strict source routing permits only the specified routers.

  72. What information can the IPv4 Timestamp option record?

    The time when a packet passes through routers.

  73. Which protocol is used to report IP-related errors?

    ICMP.

  74. Which transport-layer protocol can provide reliability, flow control, and sequencing that IP lacks?

    TCP.

Card 1 of 74
Card 1 of 74

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent