简体   繁体   中英

About HTTP 1.1 persistent connection and TCP

When I was introduced to HTTP 1.0 and 1.1, it was emphasized that the main difference was that 1.1 allows a single TCP connection for all of the objects as opposed to 1.0 where a new connection was made for each object download.

My question is, since a connection isn't really continuous but discrete (ie in packets), then how come each different packet of each object that is being downloaded, doesn't need to go through the ACK, SYN TCP protocol?

How do they all know about the first ACK, SYN that was made? (perhaps made even to a different server than the objects?)

Not much of your question makes sense. HTTP keepalive only operates on connections to the same target, not 'for all of the objects'. The part about packets doesn't have anything to do with HTTP: you're really asking how TCP works; and the answer to that is that every TCP segment contains the source and destination IP addresses and ports, which are unique to a connection, and a sequence number, for data ordering purposes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM