大网数据广告活动
服务器运维问答

How to clone egress UDP packets & send them to the same destination in order

· 52CE 我爱测

This is what I want,LAN---- (UDP packets flow)----->Router [Mirror UDP packets & send these packets to the same destination port/IP in order]--------> Internet. Any idea? Side note: I want to try if this work to reduce UDP packet…

问题原文

原帖链接 · Dark Knight · CC BY-SA 4.0

This is what I want,LAN---- (UDP packets flow)----->Router [Mirror UDP packets & send these packets to the same destination port/IP in order]--------> Internet. Any idea?

Side note: I want to try if this work to reduce UDP packets loss by sending multiple packets to the destination server via it's IP or port.

Either method by port mirroring or Tee with syntax.

已采纳解答

原帖链接 · John Mahowald · CC BY-SA 4.0

Don't.

UDP is unreliable. The transport does not correct for lost or out of order.

Mirroring and sending to the same destination will make congestion worse. The application also would need to deal with duplicate data, which it may not. Even if it did work, in the best case mirroring halves goodput.

Instead, switch to a reliable in order protocol, either a transport or have the application do it. Many choices of transport protocol exist, QUIC is a popular UDP based one. TCP is also popular...

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-12-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。