简体   繁体   English

跨网络的协议头?

[英]Protocol Headers across a network?

Question from my review I think I have correct. 我的评论中的问题我认为我是正确的。

When a packet is routed across a network, the protocol headers are modified as the packet is passed between intermediate nodes (eg routers). 当数据包通过网络路由时,协议报头在数据包在中间节点(例如路由器)之间传递时被修改。 Why? 为什么?

From what I can tell, the NAT (network address translation tool) modifies the source and destination header fields to reflect the new source (that router) and the new destination (if there is one). 据我所知,NAT(网络地址转换工具)修改了源头和目标头字段,以反映新的源(该路由器)和新的目标(如果有)。 Is this correct? 这个对吗?

是的,没错,数据包封装在链路层数据包中,其中包含当前路由器的MAC地址作为“源”,而下一个路由器的MAC地址作为该路由上的目的地,但应用层数据包不变,它仍然包含主源地址和最终目的地地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM