Change ping interval to sub-second

Most people doesn’t know that you can send more than one ICMP Request per second for testing purposes. Also the command line doesn’t suggest it:

admin@router> ping 10.0.2.1 logical-system R2 count 100 interval ?
Possible completions:
 <interval> Delay between ping requests (seconds)
admin@router>

But in fact, you can also specify a dotted value like .1 for 0.1 seconds = 100ms = 10pps.  This could be useful, if you need some more packets per second on your interface, maybe to test a policer…

admin@router> ping 10.0.2.1 logical-system R2 count 100 interval .1
PING 10.0.2.1 (10.0.2.1): 56 data bytes
64 bytes from 10.0.2.1: icmp_seq=0 ttl=64 time=1.226 ms
64 bytes from 10.0.2.1: icmp_seq=1 ttl=64 time=0.977 ms
64 bytes from 10.0.2.1: icmp_seq=2 ttl=64 time=0.974 ms
64 bytes from 10.0.2.1: icmp_seq=3 ttl=64 time=0.991 ms
64 bytes from 10.0.2.1: icmp_seq=4 ttl=64 time=1.011 ms
64 bytes from 10.0.2.1: icmp_seq=5 ttl=64 time=0.968 ms
64 bytes from 10.0.2.1: icmp_seq=6 ttl=64 time=0.974 ms
64 bytes from 10.0.2.1: icmp_seq=7 ttl=64 time=1.068 ms
64 bytes from 10.0.2.1: icmp_seq=8 ttl=64 time=10.583 ms
64 bytes from 10.0.2.1: icmp_seq=9 ttl=64 time=0.944 ms

But don’t trust this, it really depends on your Routing-Engine utilization and it is not guranteed that the packets really left the router exactly every 100ms.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.