Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有办法自动识别要多发的包,现在这样麻木多发包不是太好吧 #1

Closed
Halry opened this issue Jan 22, 2015 · 8 comments

Comments

@Halry
Copy link

Halry commented Jan 22, 2015

RT,ping一次反4次回来,windows上就更可怕了。。我怕大家用会拖累国际互联网

@snooda
Copy link
Owner

snooda commented Jan 23, 2015

返4次并不是真的有4个应答包。
发一次ping,net-speeder会double成两个。
不丢包的情况下对端返回两个。
net-speeder内部再double一下,所以看起来是4个包,实际在网络上的只有两个。
至于为啥返回包也要内部double,是为了更快触发快速重传。

@Halry
Copy link
Author

Halry commented Jan 23, 2015

有人说在windows 下ttl值更大,会有更多包,是这样吗?(在学校没电脑测试😂)

@snooda
Copy link
Owner

snooda commented Jan 23, 2015

理论上不会,这个跟ttl的大小无关的

@Halry
Copy link
Author

Halry commented Jan 23, 2015

哦。

@Bestoa
Copy link

Bestoa commented Jan 29, 2015

@Halry TTL是我说的,但并不是说windows会多发包,而是88这个值不妥。
Windows 默认TTL是128,一般收到的时候是108左右,一般确实不会掉到88,但是。。。建议改成68

另外可以根据网卡类型去决定lenth,去掉COOKED宏。

@snooda
Copy link
Owner

snooda commented Jan 29, 2015

@Bestoa 收到,我后续会考虑修改这个值。

其实88只是个magic number而已。改大改小总会有人恰好到这个值。
net-speeder主要依赖的是向外发出包的ttl。收到包的ttl不太重要

@Halry
Copy link
Author

Halry commented Jan 29, 2015

@snooda我真的不明白bpf和cooked的意思。。。
还有,我用这个的话手机上流量会翻倍吗?

@jack2007
Copy link

@frjalex 手机端的流量肯定是两倍;
手机端的TCP协议栈收到重复报文后会丢弃掉,但是从运营商的计费系统来看,IP报文已经到了你的手机,流量肯定是要算你的;

@snooda snooda closed this as completed Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants