当前位置:网站首页>Understand the next hop address in the network topology in seconds
Understand the next hop address in the network topology in seconds
2022-08-03 01:58:00 【HUAWEI CLOUD】
Hello, this is the Network Technology Alliance site.
Today I want to talk to you about an interesting, but also very basic technique: Next hop.
The "down" here is not "scare".
Before we talk about the next hop, it is necessary to talk about the common and basic network equipment in the network: router.
What is a router?
Friends who are reading this article, 99% of people know what a router is, so I will express it in one sentence here: A router is at Layer 3 or the OSI modelNetwork devices running at the >Network layer.
The role of the router
Responsible for receiving, analyzing, and forwarding packets between connected computer networks. When a packet arrives, the router checks the destination address, looking up its routetable to determine the best route, and then transmit the packet along that route.
The type of router
Common routers are of the following types:
- Wireless Router
- Wired Router (Broadband Router)
- Edge Router
- Core router
- Virtual Router
Wireless routers are the most commonly used at home. This is no stranger to everyone. Enterprise-level routers are generally used in the above five types, depending on the size of the network.
Network Topology
After talking about routers, let's take a look at the network topology:
As shown in the figure above, the above figure is a simple network topology. A network topology is a network structure formed by connecting various network devices through certain media.
The next hop address we often say is displayed in the network topology.
So what is the next hop address?
Next hop address
Next hop is a routing term that refers to the next closest router through which a packet can pass.
More specifically, a next hop is an IP address entry in a router's routing table that specifies the next closest/best router in its routing path.
Let's explain next-hop addresses through a simple topology.
There are four devices in the picture above, two PCs, two routers, and two communication lines:
- PC1 actively initiates communication with PC2
- PC2 actively initiates communication with PC1
We know that the next hop refers to the next closest router. The next one here is relative, that is, a reference point. For example, when PC1 actively initiates communication with PC2,The next hop address of Router1 is Router2; when PC2 initiates communication with PC1, the next hop address of Router2 is Router1.
Seeing here, can we summarize again: the next hop address is the optimal distance in the network link from the current device to the target device.>The address of the next device.
This is easy to understand the above picture: when PC1 actively initiates communication with PC2, the data packet arrives at Router1, and Router1 in this communication link target device is PC2, then the data packet is inInternally, Router1 starts to calculate routing, and obtains the current optimal distance to the next device is Router2, so for the current device Router1, the next hop address is the address of the direct interface between Router2 and Router1.
Note: The hop count is incremented by one each time a packet passes through the router.For example, if the destination is 10 hops from the source, the packet must go through 10 different routers to reach it.
My friends, do you understand?
边栏推荐
猜你喜欢
语音合成模型小抄(1)
别再到处乱放配置文件了!我司使用 7 年的这套解决方案,稳的一秕
Teach you to locate online MySQL slow query problem hand by hand, package teaching package meeting
基于飞腾平台的嵌入式解决方案案例集 1.0 正式发布!
嵌入式分享合集26
用了 TCP 协议,数据一定不会丢吗?
CKAN教程之在 AWS 上部署 CKAN 应用程序
I have been in the software testing industry for nearly 20 years, let me talk to you about today's software testing
CAS:1445723-73-8,DSPE-PEG-NHS,磷脂-聚乙二醇-活性酯两亲性脂质PEG共轭物
# DWD层及DIM层构建## ,220801 ,
随机推荐
CIO修炼手册:成功晋升CIO的七个秘诀
最近公共祖先(LCA)学习笔记 | P3379 【模板】最近公共祖先(LCA)题解
【问题征集】向 iPod 之父、iPhone 联合设计者、Google Nest 创始人 Tony Fadell 提问啦
秒懂网络拓扑中的下一跳地址
我为什么又能面试一次就拿到offer
用了这么多年的LinkedList,作者说自己从来不用它?为什么?
Merge two excel spreadsheet tools
简单聊聊MySQL中的六种日志
CKAN教程之将 Snowflake 连接到 CKAN 以发布到开放数据门户
js基础知识整理之 —— 获取元素和命名规范
MySQL最大建议行数2000w, 靠谱吗?
如何快速对接淘宝开放平台API接口(淘宝店铺订单明文接口,淘宝店铺商品上传接口,淘宝店铺订单交易接口)
一文读懂 Web 3.0 应用架构
脂溶性胆固醇-聚乙二醇-叠氮,Cholesterol-PEG-Azide,CLS-PEG-N3
Jmeter二次开发实现rsa加密
停止使用 Storyboards 和 Interface Builder
Find My技术|智能防丢还得看苹果Find My技术
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
服务间歇性停顿问题优化|得物技术
如何突破测试/开发程序员思维?一种不一样的感觉......