高并发与负载均衡——网络TCP-IP基础知识

Linux下查看路由表

[[email protected] root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.227.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
0.0.0.0         192.168.227.2   0.0.0.0         UG    0      0        0 eth0
[[email protected] root]# 

ping百度与qq

[[email protected] root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.227.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
0.0.0.0         192.168.227.2   0.0.0.0         UG    0      0        0 eth0
[[email protected] root]# ping www.baidu.com
PING www.a.shifen.com (220.181.112.244) 56(84) bytes of data.
64 bytes from 220.181.112.244: icmp_seq=1 ttl=128 time=27.1 ms
64 bytes from 220.181.112.244: icmp_seq=2 ttl=128 time=25.1 ms
64 bytes from 220.181.112.244: icmp_seq=3 ttl=128 time=24.2 ms

64 bytes from 220.181.112.244: icmp_seq=4 ttl=128 time=23.4 ms
64 bytes from 220.181.112.244: icmp_seq=5 ttl=128 time=30.9 ms
^C
--- www.a.shifen.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4248ms
rtt min/avg/max/mdev = 23.425/26.203/30.971/2.698 ms
[[email protected] root]# ping www.qq.com
PING https.qq.com (123.151.137.18) 56(84) bytes of data.
64 bytes from 123.151.137.18: icmp_seq=1 ttl=128 time=24.5 ms
64 bytes from 123.151.137.18: icmp_seq=2 ttl=128 time=25.7 ms
64 bytes from 123.151.137.18: icmp_seq=3 ttl=128 time=33.9 ms
^C
--- https.qq.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2218ms
rtt min/avg/max/mdev = 24.507/28.078/33.974/4.202 ms

高并发与负载均衡——网络TCP-IP基础知识
高并发与负载均衡——网络TCP-IP基础知识