Got it

Route hop count

Created: Nov 13, 2019 13:41:47Latest reply: Jun 13, 2021 16:23:47 569 6 2 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi friends,

I noticed a very interesting phenomenon. Two routers are directly connected. When I ping from the loopback0 of AR1 to loopback0 of AR2. The TTL equals 255, which means the route only passes one hop. Why? 

topy

I thought it would be 2 hops.


<Huawei>ping -a 1.1.1.1 2.2.2.2

  PING 2.2.2.2: 56  data bytes, press CTRL_C to break

    Reply from 2.2.2.2: bytes=56 Sequence=1 ttl=255 time=40 ms

    Reply from 2.2.2.2: bytes=56 Sequence=2 ttl=255 time=20 ms

    Reply from 2.2.2.2: bytes=56 Sequence=3 ttl=255 time=30 ms

    Reply from 2.2.2.2: bytes=56 Sequence=4 ttl=255 time=30 ms

    Reply from 2.2.2.2: bytes=56 Sequence=5 ttl=255 time=30 ms

 

  --- 2.2.2.2 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

round-trip min/avg/max = 20/30/40 ms

Thanks!


Featured Answers

Best answer

Recommended answer

Popeye_Wang
Admin Created Nov 13, 2019 13:46:47

Hi Sprout,

The forwarding processing on the routers is as follows:

When the AR1 sends packets: If a valid address of any local interface is used as the source address, the router searches the routing table and forward the packet based on the outbound interface. The routing table is used to forward packets, therefore, the processing here can be considered as a hop.

When AR2 receives packets: After the packet reaches the AR2, the router does not search for the routing table. (The packet is not sent to the loopback interface and then sent to the CPU.) Instead, the router finds that the destination address of the packet is the local address, even if the destination address is not the address of the inbound interface, the packet is directly sent to the CPU for processing.

Therefore, even if the loopback address of the peer router is pinged, there is only one hop for the forwarding.

Hope to help you!


View more
  • x
  • convention:

nochhie
nochhie Created Jul 20, 2021 12:29:15 (0) (0)
 
All Answers

Hi Sprout,

The forwarding processing on the routers is as follows:

When the AR1 sends packets: If a valid address of any local interface is used as the source address, the router searches the routing table and forward the packet based on the outbound interface. The routing table is used to forward packets, therefore, the processing here can be considered as a hop.

When AR2 receives packets: After the packet reaches the AR2, the router does not search for the routing table. (The packet is not sent to the loopback interface and then sent to the CPU.) Instead, the router finds that the destination address of the packet is the local address, even if the destination address is not the address of the inbound interface, the packet is directly sent to the CPU for processing.

Therefore, even if the loopback address of the peer router is pinged, there is only one hop for the forwarding.

Hope to help you!


View more
  • x
  • convention:

nochhie
nochhie Created Jul 20, 2021 12:29:15 (0) (0)
 
Awesome answer
View more
  • x
  • convention:

Laiheang
Laiheang Created Jul 20, 2021 12:47:30 (0) (0)
 
andersoncf1
andersoncf1 MVE Author Created Jun 13, 2021 16:23:47

Good answer for this.
View more
  • x
  • convention:

Laiheang
Laiheang Created Jul 20, 2021 12:47:36 (0) (0)
 

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.