测试服务器的udping值

  • 参考

  • 步骤一:在服务器上启动`UDP Echo`服务(必须)

  • 启动`UDP Echo服务`

  • 步骤二:在客户端下载UDPing工具

  • 步骤三:在客户端测试UDPing值


参考

 https://help.aliyun.com/document_detail/158771.html

UDPing项目地址:  https://github.com/wangyu-/UDPping



步骤一:在服务器上启动UDP Echo服务(必须)

要使用UDPing测试加速效果,终端节点服务器必须部署UDP Echo服务。本示例使用Socat模拟UDP服务端为例,介绍如何部署UDP Echo服务。

# 安装Socat
## Centos7
yum install socat -y

## ubuntu
apt install socat -y

## Windows下msys2安装
pacman -S socat1.2.3.4.5.6.7.8.9.



启动UDP Echo服务

# 在服务器上创建一个不间断会话(防止ssh断开推出)
screen -R udping

## -v 详细数据流量,文本
## -udp-listen:<port> 监听UDP端口
socat -v UDP-LISTEN:5000,fork PIPE1.2.3.4.5.6.

Widnows系统直接运行socat.exe的绝对路径,也可以成功运行socat。

测试服务器的udping值



步骤二:在客户端下载UDPing工具

完成以下操作,在客户端部署UDPing工具。(Windows和Linux均可,python2和python3均可)
项目地址:  https://github.com/wangyu-/UDPping

  1. 执行以下命令,下载UDPing工具。

# 下载UDPing工具
wget -c https://networktools-public.oss-cn-hangzhou.aliyuncs.com/ga/udping/udping.py

# 赋予UDPing工具执行权限。
chmod +x udping.py1.2.3.4.5.



步骤三:在客户端测试UDPing值

# python udping.py 服务端ip地址 UDP端口号
python .\udping.py 171.xxx.xxx.80 50001.2.

测试服务器的udping值