Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我的 udp 包大于 mtu 会怎样?假设我的包是512字节,封装后是572字节。在传输过程中,一些中间节点将它的 mtu 大小固定为 512 字节,那么会发生什么?我的包裹会被丢弃吗?
一般来说,适合大多数网络情况的 udp 包的最佳大小是多少?
该包仍将被发送,但是网络接口层(即以太网)将使用多个网络传输来发送它。但是,您的大小仍然受到 UDP/IP 强制执行的 UDP 数据报 (65535) 的最大大小的限制。有关详细信息,请参阅Wikipedia 上的MTU和UDP 数据包。