Networking Forums

Networking Forums > Computer Networking > Linux Networking > High latency with MASQ, not without

Reply
Thread Tools Display Modes

High latency with MASQ, not without

 
 
Ted Behling
Guest
Posts: n/a

 
      09-03-2003, 04:28 AM
Hi All,

I have a problem with RedHat 7.0 with kernels 2.2.19 or 2.4.22 on a
multihomed box acting as a router, with IP Masq. I've searched Google
high and low and cannot find anything related.

I experience very high latency (0.5 to 1.4 sec) and occassional packet
loss when I enable IP Masq, but the latency disappears (to 70ms) when
I disable the IP Masq rule. This occurs both on 2.2.19, using
ipchains, and 2.4.22, using iptables. Basically, latency starts out
normal, jumps when I add the rule, then comes back down when I delete
the rule. This router has been in service for ~2 years with no
problems; the problem started about two weeks ago. Does this look
like a bug/misconfiguration, or could I have gotten rooted? Here's
what happens, starting with empty iptables:

# ping yahoo.com
PING yahoo.com (66.218.71.198) from 68.168.204.54 : 56(84) bytes of
data.
64 bytes from w1.rc.vip.scd.yahoo.com (66.218.71.198): icmp_seq=0
ttl=242 time=76.788 msec
64 bytes from w1.rc.vip.scd.yahoo.com (66.218.71.198): icmp_seq=1
ttl=242 time=77.749 msec

#iptables -A POSTROUTING -t nat -s 10.10.0.0/16 -d ! 10.10.0.0/16 -j
MASQUERADE

# ping yahoo.com
PING yahoo.com (66.218.71.198) from 68.168.204.54 : 56(84) bytes of
data.
64 bytes from w1.rc.vip.scd.yahoo.com (66.218.71.198): icmp_seq=0
ttl=242 time=658.446 msec
64 bytes from w1.rc.vip.scd.yahoo.com (66.218.71.198): icmp_seq=1
ttl=242 time=548.362 msec

#iptables -F -t nat

# ping yahoo.com
PING yahoo.com (66.218.71.198) from 68.168.204.54 : 56(84) bytes of
data.
64 bytes from w1.rc.vip.scd.yahoo.com (66.218.71.198): icmp_seq=0
ttl=242 time=77.325 msec

Thanks to anyone who can provide assistance.

Ted Behling
ted-(E-Mail Removed)
 
Reply With Quote
 
 
 
 
Horst Knobloch
Guest
Posts: n/a

 
      09-04-2003, 01:03 PM
On Wednesday 03 September 2003 06:28, Ted Behling wrote:

> I experience very high latency (0.5 to 1.4 sec) and occassional packet
> loss when I enable IP Masq, but the latency disappears (to 70ms) when
> I disable the IP Masq rule.

[...]
> Basically, latency starts out
> normal, jumps when I add the rule, then comes back down when I delete
> the rule.


Did you make sure that the latency is not a cause of bulk
traffic passing from your internal net to the Internet?
This would explain the latency and why it disappears when
you disable masquerading.

Use ethereal or tcpdump to watch the traffic leaving your
box.


HTH

Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using AD in High-Latency satellite networks? FB Windows Networking 3 05-13-2009 11:02 PM
What is your favorite method to troubleshoot high-bandwidth/high latency networks? Spin Windows Networking 15 05-07-2009 08:04 PM
high ping latency correlation with high server activity Tal Bar-Or Windows Networking 0 04-29-2008 08:08 AM
Intermittant high latency Doball Wireless Networks 9 03-17-2006 02:29 AM
wireless problem: high bandwidth but high latency Dan Christensen Linux Networking 1 01-19-2005 02:40 PM



1 2 3 4 5 6 7 8 9 10 11