Many people can tell the following story:
- Hello, provider's technical support? My site aaaaaa.com does not open well.
- From our side, the bullets flew, the problem is in the target at the site - write there.
- Hello. Is this aaaaaa.com site? Your site does not open well for me.
- We are fine, write to the provider.
In this series of articles, we will try to figure out why this is happening and collect an algorithm - how to find the culprit, and what to do.
Disclaimer: The author knows that
Traceroute will not always show problems that the routes are more about BGP and AS-PATH.
The author is aware of peering, asymmetry, MPLS, BGP Communities and that a kilobyte is 1024 bytes.
Route "there" and "back" - two different routes and traceroute will not show the difference.
Inveterate networkers can find a lot of inaccuracies. These inaccuracies were made on purpose to facilitate understanding of the material by non-networkers. : D
At whose expense is the banquet?
The Internet in Russia is much cheaper than the Internet, for example in America or Germany. Several times cheaper. Vodafone Kabel in Germany costs 45 euros per month for 500 megabits. This is 4000 rubles at the time of writing. In Russia, for example, at RosTelecom I pay 1,050 rubles a month for optics, through which 600 megabits come.
, - ? . .
, , :
1050 600 . - 1 6 30 . , 600 3600 . 1050? . β . 247. , - 600 . :
10 . 500 . , 1 . β 500 . 10. , . oversell.
, , . 17:00 , . YouTube/ . , 10 .
:
( ).
.
, β 4 20 , 50 600 , , , β , , , . , , .
, ssh - . GFN.RU 4 20 input- β , Rainbow Six Siege.
, . . , β ?
(PBQ/QoS). , , , ( ).
, . β - , - , .
, β TCP/IP ( ) β . - , . , .
UDP ( /) β , , . , TCP. UDP- β , .
, :
600 .
.
20 600 . , https://www.nginx.com/blog/dynamic-bandwidth-limits-nginx-plus-key-value-store/. DDoS .
, β , .
β , , - β .
, , .
, , . , , .
BGP
, BGP. . ( AS-PATH). , , . , , , , :
AS123 <--1000km--> AS456 <--50--> AS888
AS123 <--5000--> AS888
, ASPATH ( ) . , , , .
. , 3 :
, .
β . , 8 . . , 4 . β : 2 .
, β , β .
- , . , , .
. :
. -. , -. , , , . - .
.
. , 3 .
: 3 - «» 5 . , .
(burst): ( ) . . 10 1 . . , - .
95 (95th percentile, MRTG95). (50th percentile). : , 100 . 100 1 . . 5 . - 95 .
. 95 . , 32 10 , 1 , 0.5 , β¦ 10 . , .
:
-, .
- β , .
-, - «» , : - 10 - , 10 . - 10 .
.
, β . , , , β TCP UDP . TCP - , UDP β .
-, , β -, .
And yet, the trunk equipment may not "understand" that the channel's budget has been exhausted. If the routes say that these 12 gigabits should be poured into a channel with only 10 gigabits of bandwidth, then Nexus will try to fill it there.
All of the above suggests that: when everyone starts watching YouTube in the evening, the speed may drop and packet loss may appear. And traffic can go in very strange ways.
In subsequent articles, we will go through the diagnostic options - inside the apartment, the last mile, the highway, as well as figure out where to complain.