• the age of the TCP connection TCP Slow Start


    w防止网络过载和拥塞

    HTTP The Definitive Guide

    The performance of TCP data transfer also depends on the age of the TCP connection. TCP
    connections "tune" themselves over time, initially limiting the maximum speed of the connection and
    increasing the speed over time as data is transmitted successfully. This tuning is called TCP slow start,
    and it is used to prevent sudden overloading and congestion of the Internet.
    TCP slow start throttles the number of packets a TCP endpoint can have in flight at any one time. Put
    simply, each time a packet is received successfully, the sender gets permission to send two more
    packets. If an HTTP transaction has a large amount of data to send, it cannot send all the packets at
    once. It must send one packet and wait for an acknowledgment; then it can send two packets, each of
    which must be acknowledged, which allows four packets, etc. This is called "opening the congestion
    window."
    Because of this congestion-control feature, new connections are slower than "tuned" connections that
    already have exchanged a modest amount of data. Because tuned connections are faster, HTTP
    includes facilities that let you reuse existing connections. We'll talk about these HTTP "persistent
    connections" later in this chapter.

  • 相关阅读:
    thinkphp redis实现文章点赞功能并同步入mysql
    phpstorm2020.1最新版永久破解
    mysql修改sql_mode为宽松模式
    用为知发布博客到博客园、使用Wiz编写和发布博客园(cnblogs)博客
    Vim命令大全
    Vim教程
    GDB教程详解
    TCMalloc 对MYSQL 性能 优化的分析
    TCMalloc 安装和使用
    使用Tcmalloc进行堆栈分析
  • 原文地址:https://www.cnblogs.com/rsapaper/p/6362039.html
Copyright © 2020-2023  润新知