My internal lan is small, 100mb, all wired. aastra phones. sip show peers ....... 142/... 10.10.10.42 D A 5060 OK (136 ms) 144/... 10.10.10.44 D A 5060 OK (138 ms) 145/... 10.10.10.45 D A 5060 OK (133 ms) But pings are < 1ms: ping 10.10.10.42 ........ rtt min/avg/max/mdev = 0.479/0.483/0.497/0.021 ms Why are the sip latencies so high? And is it a problem? And if so, how do I fix it? FWIW, latencies to outside providers over nat are close to ping: jnctn/.... 5060 OK (7 ms) teliax/... N 5060 OK (7 ms) ping <teliax ip address> ........ rtt min/avg/max/mdev = 3.471/4.120/4.466/0.288 ms sean
sean darcy wrote:> Why are the sip latencies so high? And is it a problem? And if so, how > do I fix it? >I've noted that if I run DNS on the Asterisk sever, that my ms times drop by almost 50% Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
It depends on the type of sip end point, and how long it takes to respond to a SIP event. For example if I connect a Cisco 7960 IP phone to my Asterisk server over the LAN, I always see registration times of over 100ms. But if I connect X-Lite I get registration times of under 10ms. Asterisk connected as a SIP client, under 2ms. The higher latency with the Cisco's don't seem to effect performance at all. -- Brad> To: asterisk-users at lists.digium.com > From: seandarcy2 at gmail.com > Date: Sat, 23 Oct 2010 12:31:58 -0400 > Subject: [asterisk-users] Why such high latency on internal lan? > > My internal lan is small, 100mb, all wired. aastra phones. > > sip show peers > ....... > 142/... 10.10.10.42 D A 5060 OK (136 ms) > 144/... 10.10.10.44 D A 5060 OK (138 ms) > 145/... 10.10.10.45 D A 5060 OK (133 ms) > > But pings are < 1ms: > > ping 10.10.10.42 > ........ > rtt min/avg/max/mdev = 0.479/0.483/0.497/0.021 ms > > Why are the sip latencies so high? And is it a problem? And if so, how > do I fix it? > > FWIW, latencies to outside providers over nat are close to ping: > > jnctn/.... 5060 OK (7 ms) > teliax/... N 5060 OK (7 ms) > > ping <teliax ip address> > ........ > rtt min/avg/max/mdev = 3.471/4.120/4.466/0.288 ms > > > sean > > > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101024/f6b8e0a3/attachment.htm
Steve Totaro
2010-Oct-23 22:59 UTC
[asterisk-users] Why such high latency on internal lan?
On Sat, Oct 23, 2010 at 12:31 PM, sean darcy <seandarcy2 at gmail.com> wrote:> My internal lan is small, 100mb, all wired. aastra phones. > > sip show peers > ....... > 142/... 10.10.10.42 D A 5060 OK (136 ms) > 144/... 10.10.10.44 D A 5060 OK (138 ms) > 145/... 10.10.10.45 D A 5060 OK (133 ms) > > But pings are < 1ms: > > ping 10.10.10.42 > ........ > rtt min/avg/max/mdev = 0.479/0.483/0.497/0.021 ms > > Why are the sip latencies so high? And is it a problem? And if so, how > do I fix it? > > FWIW, latencies to outside providers over nat are close to ping: > > jnctn/.... 5060 OK (7 ms) > teliax/... N 5060 OK (7 ms) > > ping <teliax ip address> > ........ > rtt min/avg/max/mdev = 3.471/4.120/4.466/0.288 ms > > > sean > >As long as your qualify is set high enough that the phone doesn't become "Unavailable" then your only real worry is if RTP is also experiencing lag, which I highly doubt since your ping times are almost nothing. It is bothersome as an admin, but just realize that it is what it is. Trust the ping times for network latency and show peers for a quick connectivity/registration check. Thanks, Steve T -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101023/f5222d5c/attachment.htm