ICMP 是传输层协议吗? [英] Is ICMP a transport layer protocol?

查看:81
本文介绍了ICMP 是传输层协议吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在观看有关网络的视频讲座,讲师在那里提到 ICMP 作为传输层协议.然而,谷歌搜索它显示了各种论坛将其描述为网络层协议.这让我很困惑.有人能解释一下吗?

I was going through a video lecture on networking and there the lecturer mentions ICMP as a transport layer protocol. However, Googling it shows various forums describing it as network layer protocol. This has confused me a lot. Can someone clarify?

推荐答案

传输层协议关注从端到端发送数据并确保(或明确不确保)可靠性.TCP 用于从一台计算机向另一台计算机发送数据,包括确保数据正确传输所需的逻辑,而 UDP 用于从一台计算机向另一台计算机发送数据,同时希望获得可靠性.

Transport layer protocols are concerned with send data from end-to-end and ensuring (or explicitly not ensuring) reliability. TCP is used to send data from one computer to another and includes logic necessary to ensure that the data is transported correctly, while UDP is used to send data from one computer to another while hopefully getting reliability.

ICMP 真的不这样做.它的工作是帮助路由器确定互联网的形状以及使用不同协议发送数据包的方向.因此,它被认为是一种网络层协议,因为它的工作是确保将数据路由到正确的位置,但实际上并不路由数据.

ICMP really doesn't do this. Its job is to help the routers figure out the shape of the internet and what direction to send packets with different protocols. Consequently, it's considered a network-layer protocol, since its job is to ensure that data is routed to the right place but doesn't actually route the data.

希望这会有所帮助!

这篇关于ICMP 是传输层协议吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆