Îmi cade conexiunea când downloadez prin torrent
Bun – am o problemă ciudată şi întrebări pentru linuxişti de pe-aici. Se dă o conexiune RDS care e preluată de un router TP-LINK cu DD-WRT pe el. La reţea e legat NAS-ul care are torrent downloader. Routerul şi NAS-ul cu Linux pe ele, laptoul de pe care scriu tot Linux pe el. Bun. Cum dau drumul la torrent, pică conexiunea. Iniţial credeam că RDS-ul îmi taie banda dar văd că routerul se opreşte şi el.
Întâi să vedem dacă totul e OK:
cypress@dellmini:~/Downloads$ arp -a
DD-WRT (192.168.1.1) at 10:fe:ed:76:11:d2 [ether] on wlan0
podz (192.168.1.26) at 00:11:32:5f:c9:cd [ether] on wlan0
hp-PC (192.168.1.47) at 00:21:5a:6d:50:60 [ether] on wlan0
Toate-s în picioare. Fac ssh pe router care rulează DD-WRT v24-sp2, vedem de cât timp e în picioare:
root@DD-WRT:~# uptime
18:42:46 up 20 min, load average: 2.16, 1.68, 1.22
N-am pe DD-WRT acces la ip link show sau netstat -i sau lshw dar dacă dăm un grep după Link ne dă asta din ifconfig:
root@DD-WRT:~# ifconfig | grep Link
ath0 Link encap:Ethernet HWaddr 10:FE:ED:76:11:D2
br0 Link encap:Ethernet HWaddr 10:FE:ED:76:11:D2
br0:0 Link encap:Ethernet HWaddr 10:FE:ED:76:11:D2
eth0 Link encap:Ethernet HWaddr 10:FE:ED:76:11:D1
eth1 Link encap:Ethernet HWaddr 10:FE:ED:76:11:D2
lo Link encap:Local Loopback
ppp0 Link encap:Point-to-Point Protocol
Bun.
Chestia e următoarea: înainte să iau NAS-ul care e un Synology DS115J păţeam aceeaşi chestie când dădeam drumul la torrent de pe laptopul Dell Inspiron Mini 10. Deci nu NAS-ul e de vină. Pe laptop numărul de conexiuni torrent e limitat din Transmission la 60. Pe NAS e la 100 dar am redus la 50 şi tot pică conexiunea când dau drumul de pe NAS la torrent-uri. Repet: nu la NAS e problema, problema (cred eu); e 1. ori face RDS-ul throttling (puţin probabil) ori 2. routerul meu nu rezistă la atâtea conexiuni şi face shutdown ori 3. ambele.
Detalii despre router care e un TP-LINK model TP-WR841ND:
root@DD-WRT:~# cat /proc/cpuinfo
system type : Atheros AR9341 rev 1.1 (0x0121)
processor : 0
cpu model : MIPS 74Kc V4.12
BogoMIPS : 266.64
CPUClock : 535
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
root@DD-WRT:~# free
total used free shared buffers
Mem: 29400 18356 11044 0 2040
-/+ buffers: 16316 13084
Swap: 0 0 0
Pe DD-WRT-ul de pe router n-am acces la dropwatch, socat, ethtool, iperf sau netstat -i (doar netstat şi atât, fără argumentul -i) sau alte tool-uri. Pot da cel mult un
cat /sys/class/net/eth0/statistics/collisions/
la fişierele de acolo plus încă câteva chestii, cât îmi permite DD-WRT-ul.
Aveţi idei cum să văd de ce tot pică conexiunea şi cum pot diagnostica problema? Pe router am acces limitat la comenzi, că atât încape în DD-WRT-ul ăla.
Update: Hmm, e ceva şi cu WiFi-ul laptopului meu. Prin SSH pe router:
root@DD-WRT:~# ping psihoradea.com
PING psihoradea.com (176.223.207.127): 56 data bytes
64 bytes from 176.223.207.127: seq=0 ttl=57 time=11.979 ms
64 bytes from 176.223.207.127: seq=1 ttl=57 time=11.663 ms
64 bytes from 176.223.207.127: seq=2 ttl=57 time=11.842 ms
64 bytes from 176.223.207.127: seq=3 ttl=57 time=11.202 ms
^C
--- psihoradea.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 11.202/11.671/11.979 ms
root@DD-WRT:~# uptime
19:48:46 up 1:26, load average: 0.09, 0.05, 0.12
Deci avem conexiune, netul n-a căzut. În acelaşi timp pe laptop netul merge greu de tot:
cypress@dellmini:~$ ping psihoradea.com
PING psihoradea.com (176.223.207.127) 56(84) bytes of data.
64 bytes from 176.223.207.127: icmp_req=1 ttl=56 time=15.7 ms
64 bytes from 176.223.207.127: icmp_req=2 ttl=56 time=12.7 ms
^C64 bytes from 176.223.207.127: icmp_req=3 ttl=56 time=12.9 ms
— psihoradea.com ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 30049ms
rtt min/avg/max/mdev = 12.772/13.813/15.709/1.342 ms
Deci e bubă şi pe-acolo probabil. Bun. Opresc placa de reţea WiFi, bag adaptor USB WiFi, trecem pe el.
cypress@dellmini:~$ sudo service network-manager restart
Şi acum:
cypress@dellmini:~$ ping google.com
PING google.com (172.217.1.110) 56(84) bytes of data.
^C64 bytes from 172.217.1.110: icmp_req=1 ttl=52 time=120 ms
— google.com ping statistics —
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 120.935/120.935/120.935/0.000 ms
cypress@dellmini:~$ ping 172.217.1.110
PING 172.217.1.110 (172.217.1.110) 56(84) bytes of data.
64 bytes from 172.217.1.110: icmp_req=1 ttl=52 time=120 ms
64 bytes from 172.217.1.110: icmp_req=2 ttl=52 time=120 ms
64 bytes from 172.217.1.110: icmp_req=3 ttl=52 time=120 ms
64 bytes from 172.217.1.110: icmp_req=4 ttl=52 time=121 ms
64 bytes from 172.217.1.110: icmp_req=5 ttl=52 time=120 ms
^C
— 172.217.1.110 ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 120.287/120.608/121.306/0.422 ms
Aparent dacă dau ping după domeniu nu merge, dacă dau după IP merge. Boon, trec pe PC-ul legat direct prin cablu la router. Ping la razvancoloja.com sau google.com nu merge. Deci nu e nici de la laptop. Intru în interfaţa web DD-WRT, dau stop la la conexiunea RDS, o pornesc iar, preia alt IP dinamic, acum totul merge, se încarcă site-urile iar. WTF.
/Update: schimbat în router DNS-urile RDS cu cele ale Google (8.8.8.8 respectiv 8.8.4.4). Pornit torrent pe NAS, conexiunea cade iar. Ori de câte ori cade trebuie să cer un IP nou de la RDS. Any ideas? Pus nameserverele Google primele şi-n laptop dar NetworkManager le suprascrie. Rezolv eu. Văd că şi-n DD-WRT-ul din router /etc/resolv.conf arată aşa:
root@DD-WRT:~# cat /etc/resolv.conf
nameserver 192.168.1.1
Până la urmă tot de la torrent e ceva şi-s sigur că e vorba de numărul de conexiuni pe care le face clientul de torrent. Routerul nu cred că rezistă cu ele. Mai am un Linksys WRT54-GL care e routerul meu vechi, tot DD-WRT pe el. Nu e gigabit dar îl pun să văd dacă am aceeaşi problemă cu el.


