From owner-freebsd-questions Mon Apr 24 10:21:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id ACEAD37B51B for ; Mon, 24 Apr 2000 10:21:37 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id LAA20600; Mon, 24 Apr 2000 11:21:13 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Mon, 24 Apr 2000 11:21:13 -0600 (CST) From: Ryan Thompson To: "Jason J. Horton" Cc: Rahul Siddharthan , questions@FreeBSD.ORG Subject: Re: question about ping(8) In-Reply-To: <390477B8.4D340157@intercom.com> Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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