Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-03-2009, 08:40 AM
|
#1
|
LQ Newbie
Registered: May 2009
Location: Munich
Distribution: Suse, Redhat, Monta Vista
Posts: 2
Rep:
|
TCP stack imediately sends RST after it receives SYN-ACK
Hi Guys,
I am dealing with WLAN on embedded Linux (mobile device). Sometimes the RF connection is lost, but that's ok since things like that tend to happen with wireless techniques. :-) After the connection is back, the mobile device tries to re-connect to the server via TCP. And most of the times, this works fine as well.
But in some cases it took very long until the device was connected via TCP again. On Wireshark I saw that the device sends "SYN" and after let's say 100ms receives a "SYN-ACK" from the server. That's fine so far. But now, instead of sending the required "ACK" back to the server (in order to finish TCP channel buildup), it sends a RST packet nearly immediately. Sometimes in even less than 4ms after receiving SYN-ACK.
In another linux forum I found something quite similar, but that guy had the "PUSH" bit set in SYN-ACK from the server, and somebody claimed that this must not be the case in packets which don't contain data. In my case the PUSH bit is definitely not set in neither SYN packets.
Some other people mentioned that this could be "by design" regarding some timers inside TCP. But I cannot imagine that TCP could be designed so poorly. I also looked at the TCP "variables" in /proc/sys/net/ipv4/tcp_* but didn't find anything suitable.
I must admit that I'm using quite an old Monta Vista linux stack. So maybe there is already a solution of which I don't know.
I would greatly appreciate your help, since this is a customer issue and they are already getting angry about this. ;-)
Thanks a lot!
Bernd
|
|
|
05-03-2009, 01:09 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
How do customer complaints normally get handled in a situation like this? I'd think you would want to reproduce the problem in your testing environment (which it sounds like you have). What next? Can you test with a newer Linux installation to see if the issue is resolved? And, if so, come up with a bug fix deployment plan?
The behavior you're describing doesn't sound normal to me. I wouldn't expect a tcp handshake to time out after 4 milliseconds...
|
|
|
05-03-2009, 01:56 PM
|
#3
|
LQ Newbie
Registered: May 2009
Location: Munich
Distribution: Suse, Redhat, Monta Vista
Posts: 2
Original Poster
Rep:
|
Thanks for your fast reply! Yes indeed I can see the issue in our lab as well. But it happens only very sporadically. Using a new distribution release is not possible, since the code is frozen regarding the OS but of course I could ask Monta Vista whether there have patches for the TCP stack on top of our version. But first of course, I need to be sure that it is really a TCP issue and I didn't just missunderstand the behaviour of TCP. But right now I don't have an explanation for what I see in Wireshark.
|
|
|
All times are GMT -5. The time now is 03:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|