当网络具有不同带宽时,路由器延迟

发布于 2024-09-07 23:47:49 字数 191 浏览 0 评论 0原文

我有一个问题: 我在路由器的一侧(称为 A 侧)有一个 4Mbit 连接,在另一侧(B 侧)有一个 1Gbit 连接。如果现在有一个 1500 字节的数据包从 A 侧传入。路由器是否会等到 A 侧接收到数据包的所有内容(所有 1500 字节),然后将其转发到 B 侧,还是将其分块发送?

抱歉,如果这个问题太基础了,但我确实没有找到这个问题的好的答案。

I have a question:
I have a 4Mbit Connection on the one side (call it Side A) and a 1Gbit connection on the other side (side B) of a router. If now a packet of 1500 bytes is coming in on Side A. Does the router wait until it received everything of the packet (all the 1500 bytes) on Side A until it forwards it to Side B, or is it sending it in chunks?

Sorry if the question is too fundamental, but I really did not find a good answer to this question.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野生奥特曼 2024-09-14 23:47:50

如果它是 IP 路由器(所谓的“第 3 层路由”),它将获取整个数据包(可以小于或大于 1536 字节),验证校验和,然后转发到下一跳。

“第 3 层交换机”(理论上这是一个矛盾修辞,实际上并不罕见)声称“以交换速度进行路由”,这可能暗示在接收整个数据包之前开始重传;但据我所知,即使是第 2 层交换机(也称为“交换机”)在重新传输之前也会获取整个以太网帧(至少能够丢弃坏帧)。所以我猜这意味着它会在收到标头后立即执行所有表查找,因此一旦完成就准备好重新传输。当进行第 3 层时,交换机表除了 MAC 地址之外还包括 IP 地址。

if it's an IP router (so called 'layer 3 routing') it gets the whole packet (which can be less or more than 1536 bytes), verifies the checksum, and then forwards to the next hop.

'layer 3 switches' (in theory it would be an oxymoron, in practice it's not all uncommon) claim to do 'routing at the speed of switching', which might hint at starting to retransmit before receiving the whole packet; but AFAIK, even layer 2 switches (also known as 'switches') do get the whole ethernet frame before retransmitting it (at least to be able to discard bad frames). So I guess it means that it does all the table lookups as soon as the header is received, so it's ready to retransmit as soon as it's finished. when doing layer 3, the switch tables include IP address in addition to MAC addresses.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文