| TCP MSS (snd_mss) | MTU do Servidor | Qualidade | % | Cenario tipico |
|---|---|---|---|---|
| 1460 | 1500 | 🟢 Excelente | 100% | MTU 1500, timestamps OFF |
| 1448 ◄ você | 1500 | 🟢 Excelente | 97% | MTU 1500, timestamps ON ← mais comum |
| 1452 | 1492 | 🟢 Muito Bom | 94% | MTU 1492, timestamps OFF |
| 1440 | 1492 | 🟢 Muito Bom | 91% | MTU 1492, timestamps ON ou MTU 1480, timestamps OFF |
| 1428 | 1480 | 🟡 Bom | 88% | MTU 1480, timestamps ON |
| 1400 | 1440 | 🟡 Bom | 85% | MTU 1440, timestamps OFF |
| 1388 | 1440 | 🟡 Razoavel | 82% | MTU 1440, timestamps ON |
| 1300 | 1300 | 🔴 Muito Ruim | 79% | MSS menor ou igual a 1300 bytes |
MTU 1500, timestamps ON — mais comum.
TCP MSS (tcpi_snd_mss): 1448 bytes ← MSS real usado nos segmentos
tcpi_rcv_mss: 536 bytes ← MSS para receber do cliente
tcpi_advmss: 8948 bytes ← MSS anunciado pelo servidor
MTU estimado do caminho: 8988 bytes
Reducao vs. Ethernet puro: 0 bytes
MTU 1500, timestamps ON — mais comum.
TCP MSS (tcpi_snd_mss): 1448 bytes ← actual MSS used in segments
tcpi_rcv_mss: 536 bytes ← MSS for receiving from client
tcpi_advmss: 8948 bytes ← MSS announced by server
Estimated path MTU: 8988 bytes
Reduction vs. pure Ethernet: 0 bytes
# Confirmar se o ss mostra o mesmo TCP MSS: ss -tin dst 177.11.98.12 | grep mss # 'mss:XXXX' deve corresponder ao valor exibido acima
# Confirm ss shows same TCP MSS: ss -tin dst 177.11.98.12 | grep mss # 'mss:XXXX' must match the value shown above
# Windows: netsh interface tcp show global Get-NetTCPConnection -RemoteAddress 177.11.98.12 | Select-Object LocalAddress, RemoteAddress, State, AppliedSetting
# Windows: netsh interface tcp show global Get-NetTCPConnection -RemoteAddress 177.11.98.12 | Select-Object LocalAddress, RemoteAddress, State, AppliedSetting
# macOS: sysctl net.inet.tcp.mssdflt sysctl net.inet.tcp.v6mssdflt
# macOS: sysctl net.inet.tcp.mssdflt sysctl net.inet.tcp.v6mssdflt
RWIN maximo: 8388480 bytes (8191 KB).
Limite de throughput:
- A 10ms: 6711 Mbps
- A 50ms: 1342 Mbps
- A 100ms: 671 Mbps
- A 200ms: 336 Mbps
Maximum RWIN: 8388480 bytes (8191 KB).
Throughput limit:
- At 10ms: 6711 Mbps
- At 50ms: 1342 Mbps
- At 100ms: 671 Mbps
- At 200ms: 336 Mbps
# Linux: sysctl net.ipv4.tcp_rmem ss -tin dst 177.11.98.12 | grep -E 'wscale|rcvq'
# Linux: sysctl net.ipv4.tcp_rmem ss -tin dst 177.11.98.12 | grep -E 'wscale|rcvq'
# Windows: netsh interface tcp show global
# Windows: netsh interface tcp show global
# macOS: sysctl net.inet.tcp.recvspace sysctl net.inet.tcp.maxsockbuf
# macOS: sysctl net.inet.tcp.recvspace sysctl net.inet.tcp.maxsockbuf
Retransmissao seletiva ativa. Apenas segmentos perdidos sao reenviados.
Selective retransmission active. Only lost segments are resent.
sysctl net.ipv4.tcp_sack
sysctl net.ipv4.tcp_sack
netsh interface tcp show global
netsh interface tcp show global
sysctl net.inet.tcp.sack
sysctl net.inet.tcp.sack
Timestamps ativos explicam a diferenca entre os campos:
tcpi_snd_mss = 1448 bytes (MSS efetivo — com desconto de 12 bytes)
tcpi_advmss = 8948 bytes (MSS base — sem desconto de timestamps)
Beneficios: medicao precisa de RTT (RTTM) e protecao PAWS.
Custo: 12 bytes por segmento (0.8% do payload).
Recomendacao: manter ativo — o custo e negligenciavel.
Active timestamps explain the difference between fields:
tcpi_snd_mss = 1448 bytes (effective MSS — 12 bytes deducted)
tcpi_advmss = 8948 bytes (base MSS — no timestamp deduction)
Benefits: precise RTT measurement (RTTM) and PAWS protection.
Cost: 12 bytes per segment (0.8% of payload).
Recomendation: keep active — the cost is negligible.
# Linux: sysctl net.ipv4.tcp_timestamps # 0=desligado, 1=ligado, 2=ligado sem echo # Confirmar diferenca entre snd_mss e advmss: ss -tin dst 177.11.98.12
# Linux: sysctl net.ipv4.tcp_timestamps # 0=off, 1=on, 2=on without echo # Confirm snd_mss vs advmss difference: ss -tin dst 177.11.98.12
# Windows: netsh interface tcp show global
# Windows: netsh interface tcp show global
sysctl net.inet.tcp.timestamps
sysctl net.inet.tcp.timestamps
Opcional. Util em redes com QoS/AQM modernos.
Optional. Useful in networks with modern QoS/AQM.
sysctl -w net.ipv4.tcp_ecn=1
sysctl -w net.ipv4.tcp_ecn=1
sysctl net.ipv4.tcp_ecn
sysctl net.ipv4.tcp_ecn
netsh interface tcp set global ecncapability=enabled
netsh interface tcp set global ecncapability=enabled
netsh interface tcp show global
netsh interface tcp show global
sudo sysctl -w net.inet.tcp.ecn_initiate_out=1
sudo sysctl -w net.inet.tcp.ecn_initiate_out=1
sysctl net.inet.tcp.ecn_initiate_out
sysctl net.inet.tcp.ecn_initiate_out