LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-02-2008, 08:23 PM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
linux bonding: ping statistic = 50% loss


Hi,

I have a problem here implementing an effective bonding interface.
I follow the instruction from http://www.cyberciti.biz/tips/linux-...interface.html

The difference is that, each interface eth0 and eth1 were connected to different adsl modem, meaning they are not going to the same destination, instead each heading for individual destination modem. The target we tried to achieve here is so that with the setup, we can aggregate the bandwidth of the two adsl links.
eg eth0 -----> 192.168.1.10
eth1 --------> 192.168.1.100


At the end, i successfully get the 3 interfaces up when doing less/proc/net/bonding/bond0 i can see
Output:

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:c6:be:59

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:c6:be:63


But, the problem is when i tried to ping either 192.168.1.10 or 192.168.1.100 , the ping statistics always result in 50% loss.
Say if i ping 192.168.1.10, the iptraf display that each interface eth0 and eth1 took turn to ping, but then the outcome of the ping is always 50%...

I am using red hat enterprise 4 and 3comm network card. I have tried to use different mode such as mode 0 and mode 6 but the outcome still the same...
Any idea what else can I fine tune so the ping result will have no loss?

thanks a lot for taking time helping!

regards
y
 
Old 03-03-2008, 01:12 PM   #2
mtimbro
Member
 
Registered: Feb 2008
Location: Montreal, Canada
Distribution: RedHat 3/4, Ubuntu 7.10
Posts: 86

Rep: Reputation: 15
This seems more like an attempt at BGP...

You can't 'balance' between 2 providers; How can you expect the routing of packets to work !?
 
Old 03-04-2008, 08:39 AM   #3
pdavis68
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Rep: Reputation: 0
My guess is that your ping issue is this: The two real interfaces probably don't route between each other (I don't think you'd want that anyway). So when you try to ping one interface or the other, since the pings are being routed back and forth between the two interfaces, you're going to fail half the time, which is what you're seeing.

But I think the point mtimbro is making is this: You can't start a connection via one route and have the packets for that connection just go back and forth out of two providers. What you'd want to do is somehow (and I don't know enough about linux networking to know how you'd do this with iptables, or if it can be done), is to basically have each connection have its own interface.

One a connection is established, all the future packets for that connection are marked as being "related" to the established connection. What you'd want to do is somehow make sure all related packets go out the same interface as the packet that established the connection.

If that can't be done, another possibility is simply to figure out some way to split the routing 'space' into two. That is, say, route all traffic to [0-127].x.x.x through one adapter and all traffic to [128-255].x.x.x through the other adapter. Although I probably wouldn't quite split it that way since it won't give you even splitting.

Actually, what probably would give you pretty fair splitting is if you did it based on the 3rd or 4th (probably the 3rd) number. That is:

x.x.[0-127].x and x.x.[128-255].x

Last edited by pdavis68; 03-04-2008 at 08:46 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bonding works but cannot ping first switch. colincraig127 Linux - Networking 7 01-12-2010 07:25 AM
madwifi ping packet loss preacher.ca Linux - Wireless Networking 3 02-03-2006 01:21 PM
Channel Bonding: DUP packets received from ping ricky_ds Linux - Networking 2 04-29-2005 11:39 AM
ping loss w/ iptables ridertech Linux - Networking 2 02-18-2004 08:32 PM
ping 100% packets loss. linux 2.5.69 odomae Linux - Networking 11 08-11-2003 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration