Prečo niektoré pripojenia na prevzatie dominujú ostatným?

Obsah:

Prečo niektoré pripojenia na prevzatie dominujú ostatným?
Prečo niektoré pripojenia na prevzatie dominujú ostatným?

Video: Prečo niektoré pripojenia na prevzatie dominujú ostatným?

Video: Prečo niektoré pripojenia na prevzatie dominujú ostatným?
Video: My Vr GAME Is ALMOST HERE.... - YouTube 2024, Apríl
Anonim
Ak často preberáte viac položiek súčasne, pravdepodobne ste si všimli, že jedno pripojenie na stiahnutie má tendenciu dominovať nad ostatnými, až kým sa nedokončí. Prečo to je? Dnešný príspevok SuperUser Q & A má odpoveď na otázku zvedavého čitateľa.
Ak často preberáte viac položiek súčasne, pravdepodobne ste si všimli, že jedno pripojenie na stiahnutie má tendenciu dominovať nad ostatnými, až kým sa nedokončí. Prečo to je? Dnešný príspevok SuperUser Q & A má odpoveď na otázku zvedavého čitateľa.

Dnešná relácia otázok a odpovedí sa k nám pridelí zdvorilosťou SuperUser - podskupiny Stack Exchange, skupín webových stránok týkajúcich sa otázok a odpovedí.

Foto s láskavým dovolením Armando Sotoca (Flickr).

Otázka

Čítačka SuperUser Keltari chce vedieť, prečo niektoré sťahovacie (sieťové) pripojenia dominujú ostatným:

I have my suspicions as to why, but I want someone with a stronger background in networking to explain.

Why is it that when downloading from multiple (different) locations, certain connections saturate the bandwidth, leaving other connections almost idle until the dominant connection is finished?

Prečo niektoré sťahovacie (sieťové) pripojenia dominujú ostatným?

Odpoveď

Cybernard prispievateľ SuperUser má pre nás odpoveď:

Generally, the fastest connection wins. However, before Windows 7, networking was a mess and performance was awful all around. Trying to get more than 20mb/s from Windows XP, for example? Good luck with that.

The standard TCP congestion avoidance algorithm employs an additive increase and multiplicative decrease (AIMD) scheme. When there is no packet loss detected (by means of three duplicate-ACKs or retransmission timeout), the congestion window (cwnd) is increased by one Maximum Segment Size (MSS) every RTT. Otherwise, if a packet loss is detected, the TCP sender decreases cwnd by half. In a high-speed and long delay network, it requires a very large window, e.g. thousands of packets, to fully utilize the link capacity. Therefore, it will take the standard TCP many RTTs to recover the sending rate upon a single loss event. Moreover, it is well-known now that the average TCP congestion window is inversely proportional to the square root of the packet loss rate.

Source: A Compound TCP Approach for High-speed and Long Distance Networks [Microsoft]

A faster connection has more successful packets, therefore its cwnd/MSS is increased and it gets even more of the total connection.

Máte niečo doplniť vysvetlenie? Znížte komentáre. Chcete si prečítať viac odpovedí od iných používateľov technológie Stack Exchange? Pozrite sa na celý diskusný príspevok tu.

Odporúča: