Skip to contentSkip to conversation

client disconnecting

LARTC Alin Ilie 3 participants 8 messages Feb 18, 2007 – Mar 15, 2007

lore
Share & tools
lore

Alin Ilie

author
#0 lore raw

Hi,

I have two connections to the Internet.

I implemented the load balancing as described in chapter 4.2 "Routing for multiple uplinks/providers"
The problem that occurred is that the client applications like Yahoo Messenger or even PuTTY (SSH client) are loosing the connection very often. Does anyone experienced this problem? Does anyone knows an workaround for this problem?

Cheers,
Alin
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 6 lines

I have two connections to the Internet.

I implemented the load balancing as described in chapter 4.2 "Routing for multiple uplinks/providers"
The problem that occurred is that the client applications like Yahoo Messenger or even PuTTY (SSH client) are loosing the connection very often.

I had a similar problem with an internet game disconnecting exactly every 10 minutes.

My theory is that the routing code may choose to switch the data to the other provider, and that that breaks the connection.

I solved it by using connection marking, and then directing all marked to the provider where they were originally marked. I don't know the exact commands to use because I used Shorewall, which can setup this hack by simply specifying "track" (see
http://www.shorewall.net/MultiISP.html).

Even after doing that, some connections would still break after some hours, but it was a lot better than before.

If you find out other things about this problem, I would very much like to hear about it.

Rune
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

author
#2 lore raw
In reply to Alin Ilie

I think that connection marking is limiting the idea behind the balancing that we want to do with this "routing for multiple providers".

Quoted 23 lines · Rune Kock
Quoted 7 lines

I have two connections to the Internet.

I implemented the load balancing as described in chapter 4.2 "Routing for multiple uplinks/providers"
The problem that occurred is that the client applications like Yahoo Messenger or even PuTTY (SSH client) are loosing the connection very often.

I had a similar problem with an internet game disconnecting exactly every 10 minutes.

My theory is that the routing code may choose to switch the data to the other provider, and that that breaks the connection.

I solved it by using connection marking, and then directing all marked to the provider where they were originally marked. I don't know the exact commands to use because I used Shorewall, which can setup this hack by simply specifying "track" (see
http://www.shorewall.net/MultiISP.html).

Even after doing that, some connections would still break after some hours, but it was a lot better than before.

Quoted 7 lines

If you find out other things about this problem, I would very much like to hear about it.

Rune

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#3 lore raw
In reply to Alin Ilie
Quoted 11 lines · Alin Ilie

Hi,

I have two connections to the Internet.

I implemented the load balancing as described in chapter 4.2 "Routing for multiple uplinks/providers"
The problem that occurred is that the client applications like Yahoo Messenger or even PuTTY (SSH client) are loosing the connection very often. Does anyone experienced this problem? Does anyone knows an workaround for this problem?

Quoted 2 lines

Cheers,
Alin

Your problem may have something to do with cleanup of connection tracking tables or cache routing. Are you sure you have the correct rp_filter settings for what you are trying to do?
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

author
#4 lore raw
In reply to Alin Ilie
Quoted 13 lines · Radu Oprisan
Quoted 11 lines · Alin Ilie

Hi,

I have two connections to the Internet.

I implemented the load balancing as described in chapter 4.2 "Routing for multiple uplinks/providers"
The problem that occurred is that the client applications like Yahoo Messenger or even PuTTY (SSH client) are loosing the connection very often. Does anyone experienced this problem? Does anyone knows an workaround for this problem?

Quoted 10 lines
Quoted 3 lines

Cheers,
Alin

Your problem may have something to do with cleanup of connection tracking tables or cache routing. Are you sure you have the correct rp_filter settings for what you are trying to do?

I had the rp_filter set to 1.
I changed to 0 for all the interfaces, and I will see if this works. Thank you,
Alin Ilie :)
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

author
#5 lore raw
In reply to Alin Ilie

Hi Kevin,

I have kernel 2.6.18-1.
I tried to set rp_filter=0. Still problem unsolved.

Alin

Quoted 7 lines · Kevin

Alin,
I get this problem all the time. Mainly with Yahoo and ssh connections. I had put it down to using an unpatched 2.4 kernel. I can get round the problem temporarily by supplying static routes for the connections affected. What kernel are you using?
Kevin.

Quoted 20 lines
Quoted 18 lines · on 18/02/2007 14:29 Alin Ilie wrote:

Hi,

I have two connections to the Internet.

I implemented the load balancing as described in chapter 4.2 "Routing for multiple uplinks/providers"
The problem that occurred is that the client applications like Yahoo Messenger or even PuTTY (SSH client) are loosing the connection very often.
Does anyone experienced this problem? Does anyone knows an workaround for this problem?

Cheers,
Alin
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

author
#6 lore raw
In reply to Alin Ilie
Quoted 26 lines · Alin Ilie
Quoted 14 lines · Radu Oprisan
Quoted 12 lines · Alin Ilie

Hi,

I have two connections to the Internet.

I implemented the load balancing as described in chapter 4.2 "Routing for multiple uplinks/providers"
The problem that occurred is that the client applications like Yahoo Messenger or even PuTTY (SSH client) are loosing the connection very often.
Does anyone experienced this problem? Does anyone knows an workaround for this problem?

Quoted 10 lines
Quoted 3 lines

Cheers,
Alin

Your problem may have something to do with cleanup of connection tracking tables or cache routing. Are you sure you have the correct rp_filter settings for what you are trying to do?

Quoted 5 lines

I had the rp_filter set to 1.
I changed to 0 for all the interfaces, and I will see if this works. Thank you,
Alin Ilie :)

Still doesn't work. :(
Alin
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

author
#7 lore raw
In reply to Alin Ilie
Quoted 27 lines · Alin Ilie
Quoted 26 lines · Alin Ilie
Quoted 24 lines · Radu Oprisan
Quoted 12 lines · Alin Ilie

Hi,

I have two connections to the Internet.

I implemented the load balancing as described in chapter 4.2 "Routing for multiple uplinks/providers"
The problem that occurred is that the client applications like Yahoo Messenger or even PuTTY (SSH client) are loosing the connection very often.
Does anyone experienced this problem? Does anyone knows an workaround for this problem?

Quoted 3 lines

Cheers,
Alin

Your problem may have something to do with cleanup of connection tracking tables or cache routing. Are you sure you have the correct rp_filter settings for what you are trying to do?

Quoted 9 lines
Quoted 5 lines

I had the rp_filter set to 1.
I changed to 0 for all the interfaces, and I will see if this works. Thank you,
Alin Ilie :)

Still doesn't work. :(
Alin

Does anyone have an idea how can I solve this?
I think that the problem resides in the routes cache refresh time and method.

Thank you,
Alin
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc