当前位置:网站首页>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?
边栏推荐
猜你喜欢
IDEA多线程调试
高数---二重积分
简单聊聊MySQL中的六种日志
基于飞腾平台的嵌入式解决方案案例集 1.0 正式发布!
Moco of Mock tools use tutorial
脂溶性胆固醇-聚乙二醇-叠氮,Cholesterol-PEG-Azide,CLS-PEG-N3
解决错误:Optional int parameter ‘pageSize‘ is present but cannot be translated into a null value due to
语音合成模型小抄(1)
js基础知识整理之 —— 五种输出方式
Servlet——请求(request)与响应(response)
随机推荐
【Autosar RTM】
Swift中的类型相关内容
为了面试阿里,熬夜肝完这份软件测试笔记后,Offer终于到手了
解决错误:Optional int parameter ‘pageSize‘ is present but cannot be translated into a null value due to
浅谈I2C知识
十二、form表单的提交
程序员英语自我介绍
精心整理16条MySQL使用规范,减少80%问题,推荐分享给团队
2022暑假牛客多校1 (A/G/D/I)
fifa将采用半自动越位技术计算进球
airflow db init 报错
Cholesterol-PEG-Acid,胆固醇-聚乙二醇-羧基保持在干燥、低温环境下
Let's talk about the charm of code language
基于STM32设计的老人防摔倒报警设备(OneNet)
服务间歇性停顿问题优化|得物技术
高数---二重积分
LVM与磁盘配额原理及配置
js基础知识整理之 —— 获取元素和命名规范
九零后程序员心声:互联网的同行们,别卷了,再卷人都卷没了
MySQL最大建议行数2000w, 靠谱吗?