Tuesday, June 14, 2011

Discovering Ethernet MTU using ICMP Ping

Windows:
C:\>ping 172.16.0.1 -n 1 -l 1472 -f

Pinging 172.16.0.1 with 1472 bytes of data:

Reply from 172.16.0.1: bytes=1472 time=1ms TTL=255

Ping statistics for 172.16.0.1:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 1ms, Average = 1ms

C:\>
================================================================================
Cisco IOS:
Router#ping 192.168.1.2 size 1500 df-bit

Type escape sequence to abort.
Sending 5, 1500-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
Packet sent with the DF bit set
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Router#
================================================================================
NX-OS:
n7010# ping 192.168.1.2 packet-size 1472 df-bit
PING 192.168.1.2 (192.168.1.2): 1472 data bytes
1480 bytes from 192.168.1.2: icmp_seq=0 ttl=254 time=1.086 ms
1480 bytes from 192.168.1.2: icmp_seq=1 ttl=254 time=0.833 ms
1480 bytes from 192.168.1.2: icmp_seq=2 ttl=254 time=0.827 ms
1480 bytes from 192.168.1.2: icmp_seq=3 ttl=254 time=0.86 ms
1480 bytes from 192.168.1.2: icmp_seq=4 ttl=254 time=0.822 ms

--- 192.168.1.2 ping statistics ---
5 packets transmitted, 5 packets received, 0.00% packet loss
round-trip min/avg/max = 0.822/0.885/1.086 ms
n7010#

No comments:

Post a Comment