跟踪路由中第一个重复数据包的含义是什么?
当我执行跟踪路由时,我发送的第一个数据包的 ttl=1 并且来自路由器的回复始终为“null”“timeout”。这是我不明白的第一件事:为什么我的路由器不向我发送超时 icmp 消息?
使用wireshark,我观察到第一个数据包至少有2 个重复项(ttl=1 的那个),并且只有一个来自路由器的空回复。
我以为这是我的代码的问题,但是 youtube 上有很多视频,wireshark 显示了相同的内容:电脑在收到超出时间的 icmp 消息并将 ttl 增加到 2 之前发送 2 或 3 个 ttl=1 的数据包。
你可以吗请解释一下?
编辑:我犯了一个错误:“空”或“超时”数据包不是由路由器发送的;这是一条来自电脑的消息,尚未收到任何数据包。所以ttl没有增加。 现在我可以提出正确的问题:为什么第一个数据包无法到达目的地?这不是 ttl 的问题(我可以将其设置为 2-3-4,并且我总是在拳头发送)。
也许这是一个碎片问题?但为什么?一些wireshark的日志强调,第一次传输后mss(或mtu..无法记住)发生了变化。
When I perform a traceroute, the first packet I send has ttl=1 and the reply is always "null" "timeout" from my router. That's the fist thing I don't understand: why my router doesn't send me a time exceeded icmp message?
Using wireshark I observed that there are at least 2 duplicate of first paket (the one with ttl=1), and only one null reply from router.
I thought it was my code's problem, but there are a lot of videos on youtube where wireshark shows the same thing: the pc sends 2 or 3 packets with ttl=1 before receiving a time exceeded icmp message and increment ttl to 2.
Can you explain this please?
edit: I've made a mistake: the "null" or "timeout" packet isn't sent by the router; it's a message from pc that hasn't received yet any packet. So ttl isn't increased.
Now I can formulate the correct question: Why the first packet cant' reach the destination? It's not a matter of ttl (i can set it to 2-3-4 and I always have the same duplicate on fist sending).
Maybe it's a fragmentation problem? but why? Some wireshark's logs hilight that after first transmission mss (or mtu..can't rememebr) is changed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“我认为这是我的代码的问题”
这是代码还是traceroute命令的问题?第一个数据包的 TTL 为 1,第一个路由器递减 TTL,发现它为 0,并且应该响应错误,我记得是“TTL 时间超出”。
"I thought it was my code's problem"
Is this a problem with code or the traceroute command? The first packets TTL is 1, and the first router decrements the TTL, sees it is 0, and should respond with an error, TTL Time Exceeded as I recall.