wangyu- / udpping Goto Github PK
View Code? Open in Web Editor NEWping with UDP packets 🛠
License: MIT License
ping with UDP packets 🛠
License: MIT License
Line 101 in 220fbe6
suppose
any.domain 1.1.1.1
python udpping.py any.domain 4000
# since('any.domain' != '1.1.1.1',)
Request timed out
better do a conversion
我的理解是VPS运行socat -v UDP-LISTEN:端口,fork PIPE进行监听
客户端运行udpping.py文件替换ICMP为UDP进行丢包测试
但是我在梅林上运行提示
env: can't execute 'python': No such file or directory
PS:其中监听的端口 我的理解是VPN的端口 如果用了udpspeeder加速 那么应该填VPN的数据传输端口还是udpspeeder的服务端口呢
udpping writes its response output to stdout with default stdio buffering, which is ok for interactive terminal use, but doesn't work well if udpping is being called from a script, or otherwise has it's output redirected.
Please find attached a patch which adds explicit output flushing.
Tim
不支持 域名 测试,只支持ip。
@wangyu- 你好,有个问题想向你请教
问题: 如何在下面这种方案中用 iperf3 测加速后的 udp
$** + UDPspeeder + udp2raw
tcp 用 tinymapper 转发,走BBR,udp 走 UDPspeeder + udp2raw
server端,$**server端口7788
nohup ./speederv2_amd64 -s -l0.0.0.0:4010 -r127.0.0.1:7788 -k "passwd" -f20:10 --mode 0 -i 10 --report 20 > ./speeder.log 2>&1 &
nohup ./udp2raw_amd64 -s -l0.0.0.0:4020 -r127.0.0.1:4010 -a -k "passwd" --raw-mode faketcp --cipher-mode xor > ./udp2raw_udp.log 2>&1 &
client端,$**redir 本地监听端口1080 -> server 127.0.0.1:6010
nohup ./tinymapper_amd64 -l0.0.0.0:6010 -r$server:7788 -t > ./tinymapper.log 2>&1 &
nohup ./speederv2_amd64 -c -l0.0.0.0:6010 -r127.0.0.1:4021 -k "passwd" -f20:10 --mode 0 -i 10 --report 20 > ./speeder.log 2>&1 &
nohup ./udp2raw_amd64 -c -l0.0.0.0:4021 -r$server:4020 -a -k "passwd" --raw-mode faketcp --cipher-mode xor > ./udp2raw_udp.log 2>&1 &
UDPping测加速后的udp延迟,没有问题,引入少量延迟,丢包率降到0
server端
socat -v UDP-LISTEN:7788,fork PIPE
client端
~/udpping.py 127.0.0.1 1080
目前想要测试加速后的udp速度,用iperf3,版本3.5
3.5版本iperf3不支持在server端设定 -u 选项,改成自适应client端参数,这样导致无法监听 7788/udp 端口,我试过用tinymapper将 7788 映射到 5003 ,然后iperf3 监听 5003
server端
nohup ./tinymapper_amd64 -l0.0.0.0:5003 -r127.0.0.1:7788 -u > ./tinymapper.log 2>&1 &
iperf3 -s -p 5003
client端
iperf3 -c 127.0.0.1 -p 1080 -u -i 1 -b 5M -t 60
提示 iperf3: error - control socket has closed unexpectedly
虽然跟UDPping没关系,但是希望你能够帮忙解答,这两种方式为什么UDPping可以,iperf3不行。
或者有没有其他更好的测试加速后udp性能的方法。
如果我想ping 4次,没参数自动控制啊,只能手动Ctrl+C ......
./udpping.py 44.55.66.77 4000
把44.55.66.77换成域名就不行了, 显示timeout
udpping supports global IPV6, but it doesn't handle scopes so IPV6 link-local doesn't work. Please find attached a patch to support link-local and other forms of IPv6.
Tim
很多时候与外网的vps不是直连的,而是中间套了一层代理
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.