All of lore.kernel.org
 help / color / mirror / Atom feed
* Sending and receiving packets from multiple lines
@ 2013-03-23  2:52 Randi Botse
  2013-03-23 16:42 ` Celelibi
  0 siblings, 1 reply; 3+ messages in thread
From: Randi Botse @ 2013-03-23  2:52 UTC (permalink / raw)
  To: linux-c-programming

Hi All,

My network implements interface bonding, aggregate several lines into
one logical line to achieve higher connection throughput and
redundancy.
I'm writing a network application in Linux that basically send packets
to another host outside. I got problem with packet ordering on
destination host, for example. packet1 from line1 should arrived
earlier than packet3 from line3, etc. I want them to be delivered in
correct order. Is this possible? if yes, what is the better way for
doing this?.

Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Sending and receiving packets from multiple lines
  2013-03-23  2:52 Sending and receiving packets from multiple lines Randi Botse
@ 2013-03-23 16:42 ` Celelibi
  2013-03-24 10:58   ` Nicholas Mc Guire
  0 siblings, 1 reply; 3+ messages in thread
From: Celelibi @ 2013-03-23 16:42 UTC (permalink / raw)
  To: Randi Botse; +Cc: linux-c-programming

Hello,

TCP should reorder packet fragments.
If you're using UDP or a custom protocol over IP, you have absolutemy
no guarantee about the delivery of packets.

2013/3/23, Randi Botse <nightdecoder@gmail.com>:
> Hi All,
>
> My network implements interface bonding, aggregate several lines into
> one logical line to achieve higher connection throughput and
> redundancy.
> I'm writing a network application in Linux that basically send packets
> to another host outside. I got problem with packet ordering on
> destination host, for example. packet1 from line1 should arrived
> earlier than packet3 from line3, etc. I want them to be delivered in
> correct order. Is this possible? if yes, what is the better way for
> doing this?.
>
> Thanks
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Sending and receiving packets from multiple lines
  2013-03-23 16:42 ` Celelibi
@ 2013-03-24 10:58   ` Nicholas Mc Guire
  0 siblings, 0 replies; 3+ messages in thread
From: Nicholas Mc Guire @ 2013-03-24 10:58 UTC (permalink / raw)
  To: Celelibi; +Cc: Randi Botse, linux-c-programming

On Sat, 23 Mar 2013, Celelibi wrote:

> Hello,
> 
> TCP should reorder packet fragments.
> If you're using UDP or a custom protocol over IP, you have absolutemy
> no guarantee about the delivery of packets.
> 
> 2013/3/23, Randi Botse <nightdecoder@gmail.com>:
> > Hi All,
> >
> > My network implements interface bonding, aggregate several lines into
> > one logical line to achieve higher connection throughput and
> > redundancy.
> > I'm writing a network application in Linux that basically send packets
> > to another host outside. I got problem with packet ordering on
> > destination host, for example. packet1 from line1 should arrived
> > earlier than packet3 from line3, etc. I want them to be delivered in
> > correct order. Is this possible? if yes, what is the better way for
> > doing this?.
> >
you can implement that your self of course but it probably would be better
to use channel bonding to do that and then send all the data over the bond
device and let the kernel take care of ordering issues - handling all the
corener cases of losing single lines, notably temporarily is a pain in the but.

Also with the use of bondign devices you get all the benifits of clean 
firewall and traffic control handling at kernel level - I doubt it is resonable
to handle this over multiple distinct lines in a meaningful way (with finite
effort that is...)

thx
hofrat

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-24 10:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-23  2:52 Sending and receiving packets from multiple lines Randi Botse
2013-03-23 16:42 ` Celelibi
2013-03-24 10:58   ` Nicholas Mc Guire

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.