V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Velocity Beijing 2015
O'Reilly Velocity
Web Performance and Operations
http://velocityconf.com/
YSlow
Best Practices for Speeding Up Your Web Site
Livid
267.72D
572.4D
V2EX  ›  Velocity

跨数据中心的 TCP Socket 优化

  •  
  •   Livid ·
    PRO
    · Feb 27, 2014 · 5022 views
    This topic created in 4445 days ago, the information mentioned may be changed or developed.
    2 replies    2014-06-17 07:26:13 +08:00
    advancedxy
        1
    advancedxy  
       Feb 28, 2014
    tcp的窗口大小是自动调整的.最开始的协议是窗口大小最多是64KB.但后续的扩展添加了window scaling factor,可以越过64KB的限制.也就是说如果带宽足够和网络稳定的话,tcp的fast open终究会达到窗口最大值.其实除了这个,他们更应该修改一下cwnd(congestion window size).因为这个值默认比较小(2.6是4个seg,3.2以后默认才是10),这个也是tcp fast open的缘由(tcp传输窗口的最终大小由cwnd和rcnd中的较小值来决定).
    ptcracker
        2
    ptcracker  
       Jun 17, 2014
    kernel 2.6 默认的 initcwnd 是 2 不是 4
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1324 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 17:00 · PVG 01:00 · LAX 10:00 · JFK 13:00
    ♥ Do have faith in what you're doing.