Skip to contentSkip to conversation

Round Robin

LARTC M. A. Imam 3 participants 4 messages Mar 12, 2005 – Mar 19, 2005

lore
Share & tools
lore

M. A. Imam

author
#0 lore raw

Hi,

I dont really know if this is the right place to post this question..If its not pl let me know...

Here is what i am looking for. I have two machines with two ethernet cards.One of these machine has an ftp server(vsftpd). When i request a file from the first machine i want that machine be able to start an ftp, and when each of the packet of the file go to one of the ethernet cards, i want it to go in a RoundRobin fashion. i.e the first packet for example from eth0 and the second packet from eth1, and third packet from eth0 again and forth from eth1 and so on...

what should i do to achieve this kind of scheduling in linux. Any help will be highly appreciated.

Thanks

Muhammad A. Imam

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

#1 lore raw

Witaj M.,

W Twoim liœcie datowanym 12 marca 2005 (17:14:00) mo¿na przeczytaæ:

The scenario you're describing looks similar to bonding devices (via bonding module) which is used for HA or load balancing situations. Usually to connect to the managed switch for better (more bandwidth) performance.

The other end must do the same.

From working setup:
modprobe bonding modeºlance-rr
ip link set dev eth0 down
ip link set dev eth1 down
ip link set dev bond0 up
ifenslave bond0 eth0 eth1

and you have to make bond0 an outgoing interface instead of eth0 eth1

And you will have approx. twice the bandwidth of a single device.

Quoted 24 lines

Hi,

I dont really know if this is the right place to post this question..If its not pl let me know...

Here is what i am looking for. I have two machines with two ethernet cards.One of these machine has an ftp server(vsftpd). When i request a file from the first machine i want that machine be able to start an ftp, and when each of the packet of the file go to one of the ethernet cards, i want it to go in a RoundRobin fashion. i.e the first packet for example from eth0 and the second packet from eth1, and third packet from eth0 again and forth from eth1 and so on...

what should i do to achieve this kind of scheduling in linux. Any help will be highly appreciated.

Thanks

Muhammad A. Imam

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

Signature · 7 lines
Pozdrowienia,
 Robert Kurjata

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
author
#2 lore raw
In reply to M. A. Imam

Hi Rob,

Thanks alot man for this solution... But,

Here is the other part... Can i leave the ip link set dev eth0 up(eth0 and eth1 still up) with bond0 also up. Thats because i have some other traffic already using eth0 and eth1 separately and i want them to keep using them as they are... so in other words i need the round robin double speed only for this ftp application.

Appreciate your help alot.

Muhammad

Quoted 11 lines

=== Original Message From Robert Kurjata <[email protected]> ==>Witaj M.,

W Twoim liœcie datowanym 12 marca 2005 (17:14:00) mo¿na przeczytaæ:

The scenario you're describing looks similar to bonding devices (via bonding module) which is used for HA or load balancing situations. Usually to connect to the managed switch for better (more bandwidth) performance.

The other end must do the same.

From working setup:

Quoted 6 lines

modprobe bonding modeºlance-rr
ip link set dev eth0 down
ip link set dev eth1 down
ip link set dev bond0 up
ifenslave bond0 eth0 eth1

Quoted 10 lines

and you have to make bond0 an outgoing interface instead of eth0 eth1

And you will have approx. twice the bandwidth of a single device.

Quoted 6 lines

Hi,

I dont really know if this is the right place to post this question..If its not pl let me know...

Here is what i am looking for. I have two machines with two ethernet

cards.One

Quoted 3 lines
Quoted 3 lines

of these machine has an ftp server(vsftpd). When i request a file from the first machine i want that machine be able to start an ftp, and when each of the packet of the file go to one of the ethernet cards, i want it to go in

a

Quoted 1 line
Quoted 1 line

RoundRobin fashion. i.e the first packet for example from eth0 and the

second

Quoted 1 line
Quoted 1 line

packet from eth1, and third packet from eth0 again and forth from eth1 and

so

Quoted 3 lines
Quoted 3 lines

on...

what should i do to achieve this kind of scheduling in linux. Any help will

be

Quoted 13 lines
Quoted 10 lines

highly appreciated.

Thanks

Muhammad A. Imam

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

Quoted 3 lines

--
Pozdrowienia,
Robert Kurjata

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

#3 lore raw
In reply to M. A. Imam
Quoted 9 lines · M. A. Imam

Hi Rob,

Thanks alot man for this solution... But,

Here is the other part... Can i leave the ip link set dev eth0 up(eth0 and eth1 still up) with bond0 also up. Thats because i have some other traffic already using eth0 and eth1 separately and i want them to keep using them as they are... so in other words i need the round robin double speed only for this ftp application.

You may be able to do it with the help of netfilter's patch-o-matic Nth and ROUTE.

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