Date: Mon, 24 Apr 2000 11:21:13 -0600 (CST) From: Ryan Thompson <ryan@sasknow.com> To: "Jason J. Horton" <jason@intercom.com> Cc: Rahul Siddharthan <rsidd@physics.iisc.ernet.in>, questions@FreeBSD.ORG Subject: Re: question about ping(8) Message-ID: <Pine.BSF.4.21.0004241118290.20525-100000@ren.sasknow.com> In-Reply-To: <390477B8.4D340157@intercom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Jason J. Horton wrote to Rahul Siddharthan and questions@FreeBSD.ORG: > Rahul Siddharthan wrote: > > > > > left a ping running all weekend, came back Monday to get this. > > > > > > 64 bytes from 10.10.10.2: icmp_seq=60393 ttl=255 time=0.544 ms > > > ^C > > > --- 10.10.10.2 ping statistics --- > > > 322538 packets transmitted, 322538 packets received, 0% packet loss > > > round-trip min/avg/max/stddev = 0.470/0.565/30.742/0.234 ms > > > > > > Any reason the ping stopped logging at 322538 packets? > > > > Maybe because you hit ^C? :-) > > > > 322538 packets at the default 1 packet per second works out to > > 89.5 hours, or 3 days 17.5 hours. Seems consistent with your > > "all weekend" if it was a long weekend. > > Maybe I am crazy, but does the icmp_seq "roll over" at some point? > Why dont the two match. YES. icmp_seq has a limit of 2^16 - 1, where the number of packets is a an unsigned long. So, max(# of packets) >> max(icmp_seq), therefore, /usr/src/sbin/ping.c rolls the value over. PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.136 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.094 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.078 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0.107 ms . . . 64 bytes from 127.0.0.1: icmp_seq=65531 ttl=255 time=0.076 ms 64 bytes from 127.0.0.1: icmp_seq=65532 ttl=255 time=0.093 ms 64 bytes from 127.0.0.1: icmp_seq=65533 ttl=255 time=0.078 ms 64 bytes from 127.0.0.1: icmp_seq=65534 ttl=255 time=0.099 ms 64 bytes from 127.0.0.1: icmp_seq=65535 ttl=255 time=0.079 ms 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.079 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.092 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.079 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0.076 ms . . . -- Ryan Thompson <ryan@sasknow.com> Systems Administrator, Accounts Phone: +1 (306) 664-1161 SaskNow Technologies http://www.sasknow.com #106-380 3120 8th St E Saskatoon, SK S7H 0W2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0004241118290.20525-100000>