[clug] multiple Ethernet ports
mikal at stillhq.com
Wed Mar 25 03:18:08 GMT 2009
Daniel Pittman wrote:
> Hugh Fisher <hugh.fisher at anu.edu.au> writes:
>> Adrian Blake wrote:
>>> This is not specifically a Linux question.
>>> I am moving data via a switch from one place to another. The rate is 1.3
>>> Gbps on 2 physical Ethernet ports into a network switch. To that switch is
>>> connected a server to store that data. The server has 4 physical Ethernet
>>> How do I write code to read all four ports concurrently and keep the
>>> correct order of the packets?
> Carefully? Um, seriously, this is going to be relatively hard, but the
> obvious answer is to transmit a packet stream with a sequence identifier
> in it to the far end, then do reassembly.
> You *will* get out of sequence packets, so you will have to buffer, but
> that shouldn't be stupidly hard given you are already talking about a
> significantly event driven, asynchronous solution.
linux bonding is (some approximation) of your friend.
More information about the linux