28.03.2024, 10:39 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
jgrotepass
Titel: Weird Connectivity issues with 2.6.17 Kernel versions  BeitragVerfasst am: 06.07.2006, 19:47 Uhr



Anmeldung: 21. Jun 2006
Beiträge: 4

I already posted it in the German network folder, but it might be worth to put this here too.

In Kernel version 2.6.17 is a redesign for allocating rmem and wmem parameters of the IP stack. This result in probable connection issues.
Depending on other boxes on the way like Firewalls, Routers or even the Server connection might fail or data retrieval will not succeed.

A possible workaround is to set the window-scaling option to "disable" via the /etc/sysctl.conf
Just enter
net.ipv4.tcp_window_scaling=0

Another way is to adjust the "max" Value for both the
net.ipv4.tcp_rmem and
net.ipv4.tcp_wmem

The original discussion was found here
http://kerneltrap.org/node/6723

Keep on the good work

Regards,
Jochen
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
Crust
Titel: RE: Weird Connectivity issues with 2.6.17 Kernel versions  BeitragVerfasst am: 06.07.2006, 19:54 Uhr



Anmeldung: 20. Okt 2005
Beiträge: 278

It may be because I use the 2.6.17.3-slh-up-1 version, but everything seems fine with me. www.everymac.com looks fine to me. (I could be missing something)

-Crust
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel: RE: Weird Connectivity issues with 2.6.17 Kernel versions  BeitragVerfasst am: 06.07.2006, 20:00 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
hmm, I can't access this ......... http://www.everymac.com/

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
slh
Titel: RE: Weird Connectivity issues with 2.6.17 Kernel versions  BeitragVerfasst am: 06.07.2006, 20:15 Uhr



Anmeldung: 16. Aug 2004
Beiträge: 1905

It will only fail if one of the routers higher up in the chain is broken and doesn't support scaling properly, this is something to fix - not in the linux kernel which conforms to accepted standards, but in affected systems.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
jgrotepass
Titel: Re: RE: Weird Connectivity issues with 2.6.17 Kernel version  BeitragVerfasst am: 06.07.2006, 20:19 Uhr



Anmeldung: 21. Jun 2006
Beiträge: 4

Crust hat folgendes geschrieben::
It may be because I use the 2.6.17.3-slh-up-1 version, but everything seems fine with me. www.everymac.com looks fine to me. (I could be missing something)

-Crust

I guess that they switched the server to window-scaling disabled.

We made the experience by accessing a 2.6.17er box via a vpn. It worked perfect with 2.6.14 and 2.6.16. Switching to 2.6.17 we were unable to get the ssh connection.
Analyzing the tcpdump, we found that the window-size was lowered extremely when the Init-Key-Exchange took place. We did not receive the Key-Exchange from the ssh-server.
Playing around we saw some differences in the tcp-parms.
The rest was googling until I found the mentioned article.

We have a similar network structure than the one that failed and did not had any issues.
So, it is a weird issue that gives no clear indication why something doesn't work. For this reason I thought I should post it here to give a hint if something fails.

Jochen
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
piper
Titel: Re: RE: Weird Connectivity issues with 2.6.17 Kernel version  BeitragVerfasst am: 06.07.2006, 20:35 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
slh hat folgendes geschrieben::
It will only fail if one of the routers higher up in the chain is broken and doesn't support scaling properly, this is something to fix - not in the linux kernel which conforms to accepted standards, but in affected systems.


So is my router broke ? Winken

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
slh
Titel: Re: RE: Weird Connectivity issues with 2.6.17 Kernel version  BeitragVerfasst am: 06.07.2006, 23:17 Uhr



Anmeldung: 16. Aug 2004
Beiträge: 1905

piper hat folgendes geschrieben::
So is my router broke ? ;)

Maybe your router, maybe on of your ISP's routers, maybe a router just in front of the webserver you're about to visit, maybe some router you're coincidently passing - time to investigate.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
schnorrer
Titel: RE: Re: RE: Weird Connectivity issues with 2.6.17 Kernel ver  BeitragVerfasst am: 07.07.2006, 00:21 Uhr



Anmeldung: 09. Jan 2006
Beiträge: 1720

No piper not by default. Your router NIC's has a fixed RX/TX-Buffer size between 256 and 32K for each Dir and Port.

What they discuss is the buffer in the PC corresponding to NEW Cpu-handled NIC's. This means the cpu does the convert parallel to serial and the linking to the PHY for Voltage converting. Older NIC's may not have this kind of problem. Even so older Chipsets which controlls the memory.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel: RE: Re: RE: Weird Connectivity issues with 2.6.17 Kernel ver  BeitragVerfasst am: 07.07.2006, 01:57 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
Thanks slh, schnorrer for explaining it to me Smilie

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
xweber
Titel:   BeitragVerfasst am: 07.07.2006, 07:39 Uhr



Anmeldung: 20. Okt 2004
Beiträge: 64
Wohnort: Kaiserslautern
same to me, unreachable

then with
Code:
sysctl -w net.ipv4.tcp_window_scaling=0


its working.

so i will put
Code:
net.ipv4.tcp_window_scaling=0

in the sysctl.conf

Alex
 
 Benutzer-Profile anzeigen Private Nachricht senden ICQ-Nummer 
Antworten mit Zitat Nach oben
Swynndla
Titel:   BeitragVerfasst am: 07.07.2006, 08:51 Uhr



Anmeldung: 05. Dez 2005
Beiträge: 414
Wohnort: Auckland, New Zealand
I can't get to http://www.everymac.com/ from either:
2.6.17-kanotix-1
or:
2.6.17.3-slh-up-1

Putting:
net.ipv4.tcp_window_scaling=0
in:
/etc/sysctl.conf
works after a reboot
... or this works without having to reboot (as I discovered on my other pc):
/sbin/sysctl -p /etc/sysctl.conf

_________________
Linux is evolution, not intelligent design - Linus Torvalds
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel:   BeitragVerfasst am: 07.07.2006, 17:28 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
All good here now too Winken

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
jgrotepass
Titel:   BeitragVerfasst am: 07.07.2006, 19:46 Uhr



Anmeldung: 21. Jun 2006
Beiträge: 4

Just as a quick reminder:
Setting window-scaling to 0 means that there might be some performance degradations. Especially with High-Speed Links this can delay the response.
I am currently looking for a setting of
net.ipv4.tcp_rmem
and
net.ipv4.tcp_wmem

that will work without any trouble.
There is a discussion that the old values (until Kernel 2.6.16) might result in some issues - at least they worked...

Also, the amount of Memory is related to this issue, because both vaules for rmem and wmem are calculated from there.

So setting window_scaling=0 is just a "quick-and-dirty" Workaround

It really seems that there are specific boxes involved in this issue (in the middle).

Cheers,
Jochen
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
schnorrer
Titel:   BeitragVerfasst am: 07.07.2006, 23:49 Uhr



Anmeldung: 09. Jan 2006
Beiträge: 1720

@jgrotepass, this missleading widow_scaling can have more than one reason.

R1: memory mapping between NIC's-Ram and DMA. let it lead to bufferoverfflow when Buffersize is to large for dma.
R2: Paket to large to fit in Buffer either in NIC's-Ram or w(w)mem. Let it lead to a NAK-cycle and a resend-paket.
R3: window_size and position has changed within the addresss-space where the buffers should found
R4:New Soft-NIC is used and w/rmen window is within the cache. Cachemiss while the next paket should written or read by the CPU.
R5: more exceptions can occure at the same time

Best way to get rid use window_scaling=0
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.