Seltsame Latenzen mit EW-7811Un Wifi-Stick

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
MukMuk
Beiträge: 20
Registriert: 02.02.2007 14:04:58

Seltsame Latenzen mit EW-7811Un Wifi-Stick

Beitrag von MukMuk » 30.06.2015 17:40:41

Hallo,

ich habe hier einen PC mit Debian Oldstable stehen, den ich mittlerweile gerne über Wlan anschließen möchte. Den Wlan-Stick hatte ich vorher an einem RaspberryPi dran (Raspbian auf Wheezy Basis) und dort funktionierte er auch einwandfrei.

Ich habe firmware-realtek installiert, und danach den Stick durch die /etc/network/interfaces sich verbinden lassen (hatte den Tip hier im Forum gefunden):

Code: Alles auswählen

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid $ssid
wpa-psk $passwort
Die Verbindung klappt einwandfrei; er bekommt eine IP über DHCP und alles funktioniert. Das Problem an der Sache ist nun, dass nach kurzen Abständen eine hohe Latenz auftritt, die ein Arbeiten an dem PC verhindert. Selbst über SSH merke ich diese Aussetzer. Diese Probleme treten bereits bei dem Ping-Test zum Router auf. Aus Verzweiflung habe ich die firmware-realtek Version aus den Wheezy-Backports installiert. Es hat sich aber nichts verändert - das Verhalten ist komplett identisch.

Der Stick hat am Pi hervorragend funktioniert; von daher würde ich einen Hardware Defekt ausschließen. Bin auch durch die verschiedenen USB-Slots gegangen, um einen Defekt am Mainboard auszuschließen.

Auf dem PC läuft ansonsten eine normale xfce4 Installation mit gdm3 als LoginManager. Das einzige was nicht aus den Debian Repos kommt, ist der Nvidia-Treiber. Im Syslog sind zu dem Zeitpunkt keine Nachrichten zu finden. Also tatsächlich gar nichts - weder Wifi bezogen, noch sonstiges.

Ein Eintrag auf Google wies darauf hin, dass man das Power-Management des Sticks deaktivieren solle. Dies habe ich auch erfolglos getestet.

Habt ihr einen Tipp für mich?

iwconfig:

Code: Alles auswählen

wlan0     IEEE 802.11bgn  ESSID:"ssid"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 9C:C7:A6:5C:28:91
          Bit Rate=150 Mb/s   Tx-Power=20 dBm
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=51/70  Signal level=-59 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:833   Missed beacon:0
lsusb (Ausschnitt):

Code: Alles auswählen

Bus 001 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Ping zum Router (FritzBox):

Code: Alles auswählen

PING fritz.box (192.168.178.1) 56(84) bytes of data.
64 bytes from fritz.box (192.168.178.1): icmp_req=1 ttl=64 time=6.31 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=2 ttl=64 time=3.67 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=3 ttl=64 time=5.19 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=4 ttl=64 time=4.70 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=5 ttl=64 time=608 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=6 ttl=64 time=1003 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=7 ttl=64 time=6.19 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=8 ttl=64 time=1.62 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=9 ttl=64 time=2.42 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=10 ttl=64 time=998 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=11 ttl=64 time=23.4 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=12 ttl=64 time=38.5 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=13 ttl=64 time=6.20 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=14 ttl=64 time=1.51 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=15 ttl=64 time=2.83 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=16 ttl=64 time=1.70 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=17 ttl=64 time=4.10 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=18 ttl=64 time=5.78 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=19 ttl=64 time=2.38 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=20 ttl=64 time=3.94 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=21 ttl=64 time=6.96 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=22 ttl=64 time=8.12 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=23 ttl=64 time=327 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=24 ttl=64 time=7.70 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=26 ttl=64 time=406 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=27 ttl=64 time=949 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=28 ttl=64 time=2.65 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=29 ttl=64 time=2.69 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=30 ttl=64 time=7.08 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=31 ttl=64 time=9.58 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=32 ttl=64 time=11.6 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=33 ttl=64 time=3.68 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=34 ttl=64 time=3.24 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=35 ttl=64 time=5.46 ms
^C
--- fritz.box ping statistics ---
35 packets transmitted, 34 received, 2% packet loss, time 43101ms
rtt min/avg/max/mdev = 1.512/131.869/1003.399/295.101 ms, pipe 2
/etc/modprobe.d/8192cu.conf:

Code: Alles auswählen

options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

dufty2
Beiträge: 1711
Registriert: 22.12.2013 16:41:16

Re: Seltsame Latenzen mit EW-7811Un Wifi-Stick

Beitrag von dufty2 » 30.06.2015 18:14:17

Der Raspi steht im gleichen Raum/Stockwerk und wie schaut dessen "iwconfig"-Ausgabe aus?
Benutzt er z. B. die gleiche Frequenz?

MukMuk
Beiträge: 20
Registriert: 02.02.2007 14:04:58

Re: Seltsame Latenzen mit EW-7811Un Wifi-Stick

Beitrag von MukMuk » 01.07.2015 10:37:41

Der Pi steht direkt neben der Fritzbox; der PC um den es sich handelt steht im Raum nebenan.
Die Wand dazwischen ist aber nicht dick, scheint Span-/Rigipszeug zu sein.

Nun die Ausgaben vom Pi:

iwconfig:

Code: Alles auswählen

wlan0     IEEE 802.11bgn  ESSID:"ssid"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 9C:C7:A6:5C:28:91
          Bit Rate:150 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=100/100  Signal level=100/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
uname -a:
Pi

Code: Alles auswählen

Linux raspberrypi 3.18.16+ #795 PREEMPT Wed Jun 17 13:15:10 BST 2015 armv6l GNU/Linux
Desktop:

Code: Alles auswählen

Linux versand 3.2.0-4-686-pae #1 SMP Debian 3.2.68-1+deb7u2 i686 GNU/Linux
Die Ausgabe von iwconfig ist vom Pi zum PC verschieden. Das kann ich mir aber nicht begründen, da alle Versionen der Programme (wicd, firmware-realtek, wpa*) identisch sind. Ich habe nochmal komplett abgegelichen, dass die Configs der Programme identisch sind.

Kann der unterschiedliche Kernel was damit zu tun haben?

Zum Schluss noch mal ein Ping-Test vom Pi zur FritzBox:

Code: Alles auswählen

root@raspberrypi:~# ping fritz.box
PING fritz.box (192.168.178.1) 56(84) bytes of data.
64 bytes from fritz.box (192.168.178.1): icmp_req=1 ttl=64 time=2.28 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=2 ttl=64 time=6.02 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=3 ttl=64 time=4.64 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=4 ttl=64 time=5.99 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=5 ttl=64 time=6.12 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=6 ttl=64 time=6.18 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=7 ttl=64 time=5.97 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=8 ttl=64 time=6.03 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=9 ttl=64 time=6.01 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=10 ttl=64 time=6.11 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=11 ttl=64 time=6.02 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=12 ttl=64 time=2.83 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=13 ttl=64 time=6.09 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=14 ttl=64 time=6.18 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=15 ttl=64 time=6.53 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=16 ttl=64 time=6.15 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=17 ttl=64 time=6.23 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=18 ttl=64 time=6.07 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=19 ttl=64 time=6.03 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=20 ttl=64 time=6.01 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=21 ttl=64 time=2.77 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=22 ttl=64 time=6.02 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=23 ttl=64 time=6.01 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=24 ttl=64 time=6.08 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=25 ttl=64 time=6.07 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=26 ttl=64 time=6.99 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=27 ttl=64 time=6.00 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=28 ttl=64 time=6.02 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=29 ttl=64 time=6.05 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=30 ttl=64 time=6.25 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=31 ttl=64 time=5.98 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=32 ttl=64 time=6.02 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=33 ttl=64 time=6.07 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=34 ttl=64 time=6.02 ms
64 bytes from fritz.box (192.168.178.1): icmp_req=35 ttl=64 time=2.29 ms
^C
--- fritz.box ping statistics ---
35 packets transmitted, 35 received, 0% packet loss, time 34055ms
rtt min/avg/max/mdev = 2.280/5.665/6.998/1.165 ms

debianoli
Beiträge: 4073
Registriert: 07.11.2007 13:58:49
Lizenz eigener Beiträge: MIT Lizenz

Re: Seltsame Latenzen mit EW-7811Un Wifi-Stick

Beitrag von debianoli » 01.07.2015 13:59:50

MukMuk hat geschrieben:Der Pi steht direkt neben der Fritzbox; der PC um den es sich handelt steht im Raum nebenan.
Die Wand dazwischen ist aber nicht dick, scheint Span-/Rigipszeug zu sein.
das sagt gar nix. Es kann gut sein, dass andere Geräte und Wlans die Verbindung zwischen Fritzbox und PC stören. Wieviele Wlans funken denn bei dir rum?

Code: Alles auswählen

iwlist wlan0 scan|grep ESSID
Der einfachste Test wäre es, wenn du die Fritzbox mal neben dem PC aufbaust und dann die Latenzen testest.

Ebenso macht es Sinn, wenn man die Fritzbox auf einen "Standard"-Wlan-Kanal wie 11 einstellt.

MukMuk
Beiträge: 20
Registriert: 02.02.2007 14:04:58

Re: Seltsame Latenzen mit EW-7811Un Wifi-Stick

Beitrag von MukMuk » 02.07.2015 10:39:57

Anscheinend bin ich hier augenscheinlich der einzige. Die FritzBox und meine Geräte zeigen zumindest keine öffentliche Netze. Der Kanal 1 war von der FB eingestellt; habe es manuell nun auf Kanal 11 geändert. Ansonsten, neben dem PC, habe ich hier nur 2 iPhones und 1x Brother Multifunktionsgerät im Wlan drin.

Die Umstellung des WLAN-Kanals hat keine Änderung gezeigt.

Ich werde es am Wochenende mal testen, die Fritzbox neben dem PC aufzubauen.

Vielen Dank für die Antworten!

tomi89
Beiträge: 269
Registriert: 21.08.2014 00:21:52

Re: Seltsame Latenzen mit EW-7811Un Wifi-Stick

Beitrag von tomi89 » 03.07.2015 13:04:48

Probier mal:

Code: Alles auswählen

/sbin/sysctl -w net.ipv4.tcp_congestion_control=veno
Falls es Besserung bringt durch die /etc/sysctl.conf permanent machen.

debianoli
Beiträge: 4073
Registriert: 07.11.2007 13:58:49
Lizenz eigener Beiträge: MIT Lizenz

Re: Seltsame Latenzen mit EW-7811Un Wifi-Stick

Beitrag von debianoli » 03.07.2015 13:19:49

MukMuk hat geschrieben:Anscheinend bin ich hier augenscheinlich der einzige.
Wo wohnst du denn? Auf einem Einsiedler-Bauernhof im Wald? :mrgreen:

Inzwischen funken selbst auf Dörfern mit 1.000 Einwohnern immer 2 bis 3 Wlan-Netze in der näheren Reichweite rum.

Bei unserer Altbauwohnung zB habe ich je nach Standort im Zimmer zwischen 10 und 20 Netze, die mir in die Suppe spucken. Und mit etwas Pech den Empfang versauen. In dem Fall hilft einem ein "Standard"-Funkkanal wie 11

Antworten