Skip to the content.

network cheat sheet

route table

tt@xxx:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.79.18.1      255.255.255.255 U     1      0        0 eth0
172.16.0.0      0.0.0.0         255.255.0.0     U     256    0        0 eth0
172.16.98.137   0.0.0.0         255.255.255.255 U     256    0        0 eth0
172.16.255.255  0.0.0.0         255.255.255.255 U     256    0        0 eth0
224.0.0.0       0.0.0.0         240.0.0.0       U     256    0        0 eth0
255.255.255.255 0.0.0.0         255.255.255.255 U     256    0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     256    0        0 lo
127.0.0.1       0.0.0.0         255.255.255.255 U     256    0        0 lo
127.255.255.255 0.0.0.0         255.255.255.255 U     256    0        0 lo
224.0.0.0       0.0.0.0         240.0.0.0       U     256    0        0 lo
255.255.255.255 0.0.0.0         255.255.255.255 U     256    0        0 lo

FAQ

超时重传 VS 快速重传

TODO:

MTU VS MSS

image from https://www.imperva.com/learn/application-security/what-is-mtu-mss/

image

check MTU in linux

tt@xxx:~$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
...