INFRASTRUCTURE LEARNINGINFRASTRUCTURE LEARNING
インフラ大全インフラ大全IT INFRASTRUCTURE / LEARNING
Infrastructure learning guide
Find a lesson or lab/

Esc to close · Search terms stay on your device

LEARNING日本語

Topic lessonTopic: networking foundations

IPv4 next hops: direct delivery and Ethernet frames across a router

A next hop is the neighbor to which a packet is delivered next. For an on-link destination, that neighbor can be the destination itself. For a destination on another link, the selected route may first send the packet to a router. Compare these cases using a specified IPv4 and Ethernet configuration.

What you will learn

Use a route note and topology to explain the next recipient and frame destination for direct and routed delivery.

Prerequisite

An IP address specifies a network-layer destination; a MAC address is used on an Ethernet link. A frame is a unit delivered on that link. Review the lesson on names, IP addresses, MAC addresses and ports. These are fixed fictional values, with no configuration, commands or connections.

Deliver directly to B on the same link

To send from A to B at 192.0.2.20, the supplied route selects direct delivery on Link 1. The next-hop IP is also B’s 192.0.2.20. With B’s address mapping known, the frame destination is 00:00:5e:00:53:20.

Read destination fields separately on the two links to C

When A sends to C at 198.51.100.20, its first neighbor is 192.0.2.1, selected by the route. The frame on Link 1 goes to the router’s Link 1 MAC. The IP destination is C.

When the router forwards to C, it uses its Link 2 interface. That frame has the router’s Link 2 MAC as its source and C’s MAC as its destination. The destination in the first Ethernet frame is not one address used throughout the whole route.

Two frames on the way to C: distinguish MAC fields from the IP destination
Two frames on the way to C: distinguish MAC fields from the IP destination1: Link 1: A to router — Forwarding uses a different frame on the outgoing link — Link 2: router to C1Link 1: A to routerLink 2: router to CTwo frames on the way to C: distinguish MAC fields from the IP destination1: Link 1: A to router — Forwarding uses a different frame on the outgoing link — Link 2: router to C1Link 1: A torouterLink 2: routerto C
  1. Link 1: A to router → Link 2: router to CForwarding uses a different frame on the outgoing link
Link 1: A to router
MAC …:53:10 → …:53:01 / IP dst 198.51.100.20
Link 2: router to C
MAC …:53:02 → …:53:30 / IP dst 198.51.100.20
Destination fields for direct and routed delivery
Delivery segmentSource MACDestination MACIP destination
A → B: direct on Link 1…:53:10…:53:20192.0.2.20
A → router: Link 1…:53:10…:53:01198.51.100.20
Router → C: Link 2…:53:02…:53:30198.51.100.20

Tables and diagrams omit the shared 00:00:5e:00 MAC prefix. Match each suffix to the full interface table. The shortened notation does not denote a different address.

Separate next-hop selection from address resolution

In this IPv4/Ethernet example, routing determines the next neighbor, and delivery uses that neighbor’s Ethernet address. ARP resolves this mapping. A cached mapping can be reused; a new ARP request is not necessary for every packet.

IPv6 uses Neighbor Discovery for neighbor link-layer address resolution. ND also covers router discovery and neighbor reachability; it is more than IPv4 ARP with another name.

A forward-path diagram does not establish a reply or web response

The diagrams explain the next recipient for a specified destination. Replies from C to A need their own routing and traffic-control conditions. A neighbor address mapping also does not establish a successful HTTP response or user authentication.

List the source and destination → selected route → next neighbor’s interface → frame destination on that link. Use separate evidence for the reply and application state.

Read the next recipient in three situations

Choose an option to see the result and explanation.

In this example, which MAC is the frame destination when A delivers directly to B?
Read the answer and reason

Answer: B’s MAC, …:53:20 · The next-hop IP is B’s 192.0.2.20, and the frame is addressed to B on that link.

With no address translation in this example, which destination fields apply on the two links to C?
Read the answer and reason

Answer: Keep C as the IP destination; address frames to the router on Link 1 and C on Link 2 · Link recipients and the final IP destination have distinct roles. Frame destinations are router …:53:01 on Link 1 and C …:53:30 on Link 2.

Two IPv6 addresses appear to share an initial prefix. Does that alone establish direct on-link delivery?
Read the answer and reason

Answer: No; check explicit on-link information and routes · Assigning an IPv6 address does not automatically establish a corresponding on-link prefix.

Check, then explain in your own words

  1. Explain the supplied route and next hop for A → B and A → C.
  2. Match router interfaces L1 and L2 to the interface table.
  3. Read source and destination MAC fields separately from the IP destination in the two frames to C.
Check your understanding: How do you read the IP destination separately from frame destinations on the way to one target?

Separate the final IP destination from the next recipient on each link.

B is its own next hop for direct delivery in this example. On the way to C, Link 1 delivers to router interface L1, and Link 2 carries a frame from interface L2 to C. Retain the conditions; a forward-path explanation does not establish a reply or application success.

Sources and conditions checked

Primary references are collected here with their scope, conditions and corresponding sections. Independent expert review and live-environment validation have not been performed.