Un peu de culture pour savoir pourquoi on atteint jamais le débit maximal de son port Ethernet.
Ici on parle du Gigabit Ethernet ..... le 10GE y a une perte énorme qui peut aller à 2 Gigabit/s ..... avec un port 10GE tu reçois 8 Gigabit/s.
Pour les fainéants ... Passez directement au résultat en bas en rouge
Attention ces calculs ne concernent pas la partie liée au câble ethernet ni les pertes qui viennent de l'extérieur, les calculs concernent le standard lui même et les paramètres qu'il utilise.
Gigabit Ethernet Net Data rate
The Basic parameters of the Ethernet standard allow us to calculate the theoretical maximum throughput.
All frames must have a 8byte preamble, a 12byte inter-frame gap, and a minimum length of 64 bytes which includes Destination MAC (6 Bytes), Source MAC(6 Bytes), Protocol Type (2Bytes), Payload (46 Bytes) and CRC(4 Bytes).
Frames, Preamble, Interframe Gap
Given this, the frame size including the preamble and inter-frame gap is 84bytes (8+12+64).
The number of frames per second can be calculated as:
Rate / Frame size = frames per second
1000Mbps / (84bytes x = frames/s
-OR-
1,000,000,000 bits / 672 bits = 1,488,000 frames/s.
As a result, the maximum theoretical throughput is calculated as:
frames per second x frame size
1,488,000 x 512 bits** = 761Mbps
Note: 64byte frame x 8 bits = 512bits
However, we also lose some bandwidth from the preamble and the inter-frame gap. They can be calculated as follows:
Preamble (recall that it is 8bytes):
frames per second x 8 bytes x 8 bits (to convert it to Mbps)
1,488,000 x 8 x 8 = 95Mbps
Inter-frame gap (recall that it is 12bytes):
frames per second x 12 bytes x 8 bits (to convert to Mbps)
1,488,000 x 12 x 8 = 143Mbps
So the actual maximum, given 64 byte frames, is 523Mbps (761 – 95 – 143) or 65MB/s.
Now, let’s do the calculation quickly using a 1518byte frame.
Add in the preamble and the inter-frame gap:
8+12+1518= 1538
1000Mbps / (1538bytes x = 81,274 frames/s
81,274frames/s x 12144bits*** = 986Mbps
Note: 1518bytes x 8 bits = 12,144bits
Preamble overhead: 81,274 x 8 x 8 = 5Mbps
Inter-frame gap overhead: 81,274 x 12 x 8 = 7Mbps
So the max throughput, given a 1518 byte frames, is 974Mbps or 121MB/s.
@Lyès @genio @laliche Denya hssabet
Vous voyez que même théoriquement le standard ne permet pas d'avoir 1 Gigabit
Et encore j'ai pas mis tout y a encore des calculs pour affiner tout ça, y a des pertes partout jusqu'à même la qualité de votre chipset ethernet et même tous les composants du pc peuvent influer un petit peu.