测试开发之网络篇-常用服务协议
陈琦
|
TCP/IP DNS macbook:~ aaron$ ping baidu.com PING baidu.com (39.156.69.79): 56 data bytes 64 bytes from 39.156.69.79: icmp_seq=0 ttl=49 time=33.982 ms 64 bytes from 39.156.69.79: icmp_seq=1 ttl=49 time=34.098 ms 64 bytes from 39.156.69.79: icmp_seq=2 ttl=49 time=34.129 ms --- baidu.com ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 33.982/34.070/34.129/0.063 ms 本地域名解析 macbook:~ aaron$ ping baidu.com PING baidu.com (39.156.69.79): 56 data bytes 64 bytes from 39.156.69.79: icmp_seq=0 ttl=49 time=33.982 ms 64 bytes from 39.156.69.79: icmp_seq=1 ttl=49 time=34.098 ms 64 bytes from 39.156.69.79: icmp_seq=2 ttl=49 time=34.129 ms --- baidu.com ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 33.982/34.070/34.129/0.063 ms DHCP macbook:~ aaron$ ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 nd6 options=201<PERFORMNUD,DAD> en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether a4:83:e7:8c:45:a1 inet6 fe80::1867:7b0e:305b:87f2%en0 prefixlen 64 secured scopeid 0x8 inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active 此处显示了两个IP地址:
HTTP/HTTPS WebSocket RPC |