https://help.aliyun.com/document_detail/158771.html
UDPing项目地址: https://github.com/wangyu-/UDPping
wget -c https://networktools-public.oss-cn-hangzhou.aliyuncs.com/ga/udping/udping.py
UDP Echo服务(必须)要使用UDPing测试加速效果,终端节点服务器必须部署UDP Echo服务。本示例使用Socat模拟UDP服务端为例,介绍如何部署UDP Echo服务。
# 安装Socat
## Centos7
yum install socat -y
## ubuntu
apt install socat -y
**UDP Echo服务**# 在服务器上创建一个不间断会话(防止ssh断开推出)
screen -R udping
## -v 详细数据流量,文本
## -udp-listen: 监听UDP端口
socat -v UDP-LISTEN:5000,fork PIPE
完成以下操作,在客户端部署UDPing工具。(Windows和Linux均可,python2和python3均可)
项目地址: https://github.com/wangyu-/UDPping
# 下载UDPing工具
wget -c https://networktools-public.oss-cn-hangzhou.aliyuncs.com/ga/udping/udping.py
# 赋予UDPing工具执行权限。
chmod +x udping.py
# python udping.py 服务端ip地址 UDP端口号
python .\udping.py 171.xxx.xxx.80 5000
