Giter VIP home page Giter VIP logo

Comments (8)

jack2007 avatar jack2007 commented on July 17, 2024 1

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

from net-speeder.

snooda avatar snooda commented on July 17, 2024

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

from net-speeder.

Halry avatar Halry commented on July 17, 2024

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

from net-speeder.

snooda avatar snooda commented on July 17, 2024

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

from net-speeder.

Halry avatar Halry commented on July 17, 2024

哦。

from net-speeder.

Bestoa avatar Bestoa commented on July 17, 2024

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

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

from net-speeder.

snooda avatar snooda commented on July 17, 2024

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

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

from net-speeder.

Halry avatar Halry commented on July 17, 2024

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

from net-speeder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.