Networking Forums

Networking Forums > Computer Networking > Linux Networking > Why it takes a long time to connect(TCP) in this condition ?

Reply
Thread Tools Display Modes

Why it takes a long time to connect(TCP) in this condition ?

 
 
joseluismarchetti@yahoo.com.br
Guest
Posts: n/a

 
      03-11-2009, 11:48 PM
Two Linux machines: embedded ( client ) and Ubuntu ( server ).
Everything works fine If the server is UP and listening when the
client tries to connect.
But if the server is not UP yet, then the client calls connect, it
fails ( which is OK ), but then I sleep(1) and try to connect again.
Then I start the server and I would expect the next connect call to
work fine, but it does not, it keeps failing for a while and then
after
a looooong time ( 30s or so ) it works.
I have capture the packets, I am not sure if I should post it here
and in what format, I can see that after the server is UP, SYN ACKs
are sent back from the server to the client, but the client just keep
seending more SYNs.

Thanks is advance for any comments.
 
Reply With Quote
 
 
 
 
goarilla@work
Guest
Posts: n/a

 
      03-12-2009, 08:39 AM
(E-Mail Removed) wrote:
> Two Linux machines: embedded ( client ) and Ubuntu ( server ).
> Everything works fine If the server is UP and listening when the
> client tries to connect.
> But if the server is not UP yet, then the client calls connect, it
> fails ( which is OK ), but then I sleep(1) and try to connect again.
> Then I start the server and I would expect the next connect call to
> work fine, but it does not, it keeps failing for a while and then
> after
> a looooong time ( 30s or so ) it works.
> I have capture the packets, I am not sure if I should post it here
> and in what format, I can see that after the server is UP, SYN ACKs
> are sent back from the server to the client, but the client just keep
> seending more SYNs.
>


are the tcp isn numbers correct ?
seems like a complete tcp connection isn't established
correctly

> Thanks is advance for any comments.

 
Reply With Quote
 
A_A_K
Guest
Posts: n/a

 
      03-12-2009, 10:16 AM
Can u post those packets what ever u have captured. I can help u if u
provide those packets. And whenever ur server/client is down then
obviously connection to that machine fails.

- A_A_K
 
Reply With Quote
 
joseluismarchetti@yahoo.com.br
Guest
Posts: n/a

 
      03-12-2009, 02:30 PM
On Mar 12, 4:16*am, A_A_K <401a...@gmail.com> wrote:
> Can u post those packets what ever u have captured. I can help u if u
> provide those packets. And whenever ur server/client is down then
> obviously connection to that machine fails.
>
> - A_A_K


Thanks for the help. I would like to hold on on this issue until I can
clarify something,
it looks like my physical layer is not working well ( Ethernet over
USB ), I repeated the same
test on real Ethernet and it worked fine, and I am already suspicious
of this physical layer.
So sorry for posting this issue without checking the physical layer,
but I may return here
if the physical layer is working fine.
Thanks!
 
Reply With Quote
 
joseluismarchetti@yahoo.com.br
Guest
Posts: n/a

 
      03-12-2009, 02:30 PM
On Mar 12, 2:39*am, "goarilla@work" <kevindotpau...@mtmdotkuleuven.be>
wrote:
> joseluismarche...@yahoo.com.br wrote:
> > Two Linux machines: embedded ( client ) and Ubuntu ( server ).
> > Everything works fine If the server is UP and listening when the
> > client tries to connect.
> > But if the server is not UP yet, then the client calls connect, it
> > fails ( which is OK ), but then I sleep(1) and try to connect again.
> > Then I start the server and I would expect the next connect call to
> > work fine, but it does not, it keeps failing for a while and then
> > after
> > a looooong time ( 30s or so ) it works.
> > I have capture the packets, I am not sure if I should post it here
> > and in what format, I can see that after the server is UP, SYN ACKs
> > are sent back from the server to the client, but the client just keep
> > seending more SYNs.

>
> are the tcp isn numbers correct ?
> seems like a complete tcp connection isn't established
> correctly
>
> > Thanks is advance for any comments.


Thanks for the help. I would like to hold on on this issue until I can
clarify something,
it looks like my physical layer is not working well ( Ethernet over
USB ), I repeated the same
test on real Ethernet and it worked fine, and I am already suspicious
of this physical layer.
So sorry for posting this issue without checking the physical layer,
but I may return here
if the physical layer is working fine.
Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wirless network takes a long time to connect at startup Ryan Wireless Networks 2 08-03-2007 12:18 AM
Name resolution takes too long - lots of time outs hemanir@netzero.com Linux Networking 4 06-13-2005 01:05 AM
Belkin Pre-N Save file takes long time. Chips Wireless Internet 1 02-01-2005 03:20 AM
route takes long time to give the table H. S. Linux Networking 2 11-17-2004 03:03 PM
Ping with name takes long time Peter Gunreben Linux Networking 0 11-15-2003 06:19 AM



1 2 3 4 5 6 7 8 9 10 11