LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-19-2014, 09:38 PM   #1
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Rep: Reputation: 31
High latency on LAN, but not on WAN (configuration)


TLDR: I have a configuration issue for a wireless network and I haven't been able to figure out what the issue is

I have a computer running Ubuntu 14.04. I'm trying to see if I can get it to do some video streaming over wireless rather than over ethernet. Everything was working swimmingly over ethernet, so general config should be ok (where the TV is, there's no good way to get ethernet to it, hence checking wifi). Figured I'd test feasibility using the 2.4GHz and then go to the uncrowded 5GHz if it seems feasible (and buy a bridge or at least a usb wifi).

I've got a dd-wrt router that can do 2.4 and 5 GHz, but I don't (yet) have a receiver that can get 5GHz for that box. I /do/ have a laptop that can test both the 5GHz and 2.4GHz networks.

I have a server at 192.168.1.2 that I'm using as a NAS (also Linux).

The box I care about is named "Smoochy", the server is "Serenity" (192.168.1.2), and the test laptop is "Slimer" (I got on an 's' kick for my computers a while back).

So when Smoochy tries to ping 192.168.1.2, I get average round trip times of about 400ms, with worst often being around 1.6 seconds. However, when Smoochy tries to ping google, average rtt is about 50ms with worst of 100ms. Both Serenity and Smoochy are on the same network and are using the same router as their gateway. There are no dropped or re-sent packets. They all get there ... just slowly.

Ok, so I thought maybe I should test this on my laptop that can connect to both the 2.4 and 5GHz networks. I'm sitting in the same place. The 2.4GHz network has an average rtt of about 2.4ms and the 5GHz of about 0.8ms. So that's not the problem.

I thought then that I'd try to use the same usb wifi that Smoochy is using. Grabbed it, disabled wlan0 on my laptop, plugged in the dongle, and connected to the 2.4GHz network. Average rtt? 2.4ms. Crap.

So the main thing I'm left with is configuration (I think?). Smoochy has to be configured via /etc/network/interfaces because xbmc doesn't read network-config. When I boot into the Ubuntu GUI, I can connect via network-config and get fast ping times. 3.4ms for Serenity and 40ms for google.com. Most of the time. Some times it's 80 average, some times it goes back to 500+ average.

Not sure what'd be causing this.

My interfaces file looks like this:
Code:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.5
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
netmask 255.255.255.0
wpa-ssid FIREFLY
wpa-key-mgmt WPA-PSK
wpa-psk (long key)
I'd appreciate any help so I can test if this can possibly work wirelessly. The 5GHz network, I can restrict to just high-speed wide-band traffic and there's no one else anywhere around using any 5GHz signals, so it should be clear.
 
Old 05-20-2014, 06:00 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
So smoochy has fast pings to serenity over wired
smoochy has slow pings to serenity over 2.4G wireless
slimer has fast pings to serenity over 2.4G and 5G wireless using its internal wifi adapter
slimer has fast pings to serenity over 2.4G wireless using smoochy's wifi adapter

I assume that you're running these tests in the same spot (same wireless strength)?

What distribution and version are smoochy and slimer using? It could be a simple matter of wireless adapter drivers are older/buggier on smoochy than they are on slimer. Have you tried running a liveCD on smoochy to see if a different distro has different results (preferably the same as you're running on slimer)?

Last edited by suicidaleggroll; 05-20-2014 at 06:02 PM.
 
Old 05-20-2014, 06:06 PM   #3
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
Correct summation, though I'd add that Smoochy can also ping /Google/ (which goes through the same router, but then to an external network obviously) "fast" at an average of 50ms, just like Slimer. For some reason, simply pinging on the /same/ network is slow.

Both Smoochy and Slimer are running 14.04 Ubuntu updated on the same day and yes, I physically sat over near Smoochy to test Slimer's wifi.
 
Old 05-20-2014, 11:27 PM   #4
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
What os is serenity running for these tests?
 
Old 05-21-2014, 09:57 AM   #5
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
Same. Sorry, I should have said that. I upgraded them all to try and eliminate any variables there. Everything being tested there is Ubuntu 14.04 updated as of about Friday evening.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual WAN Plus Single LAN Interface configuration for a VPN device __vivek__ Linux - Networking 1 05-07-2014 05:05 PM
LAN/WAN Loopback Configuration Refael Alats Linux - Networking 0 05-28-2011 04:19 PM
high network latency on lan, bridge, loopback... datamove Linux - Networking 0 02-22-2011 05:02 AM
Configuration of Susefirewall2 for use of pptp from local lan to wan mythanhluong SUSE / openSUSE 0 01-04-2007 02:37 PM
Sound latency too high stepse Linux - Hardware 0 09-23-2003 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration