netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: UDP Out 0f Sequence
@ 2006-09-21  2:50 Majumder, Rajib
  2006-09-21  3:51 ` David Miller
  2006-09-21  3:59 ` Ian McDonald
  0 siblings, 2 replies; 9+ messages in thread
From: Majumder, Rajib @ 2006-09-21  2:50 UTC (permalink / raw)
  To: 'Rick Jones'; +Cc: 'netdev@vger.kernel.org'

Does this mean if we have 2 hosts connected back to back (there's no network device in between), sequence is guaranteed even in UDP? 

-----Original Message-----
From: Rick Jones [mailto:rick.jones2@hp.com]
Sent: 21 September 2006 00:47
To: Majumder, Rajib
Cc: 'netdev@vger.kernel.org'
Subject: Re: UDP Out 0f Sequence


Majumder, Rajib wrote:
> Hi,
> 
> If I write UDP datagrams 1,2 and 3 to network and if the receiver
> receives in order 2,1, and 3, where can the sequence get changed? Is it
> at the source stack, network transit or destination stack?

Yes. :)

Although network transit is by far the most likely case.  Destination 
stack is a distant second and source stack an even more distant third. 
Generally stack writers try to avoid having places in their stacks where 
things can reorder, but it isn't completely unknown.

rick jones


==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================


^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: UDP Out 0f Sequence
@ 2006-09-21  3:55 Majumder, Rajib
  2006-09-21 16:42 ` Rick Jones
  0 siblings, 1 reply; 9+ messages in thread
From: Majumder, Rajib @ 2006-09-21  3:55 UTC (permalink / raw)
  To: 'David Miller'; +Cc: rick.jones2, netdev

Let's say we have 2 uniprocessor hosts connected back to back. Is there any possibility of an out-of-order scenario on recv? Is this same for all kernel (linux/solaris)?  

-----Original Message-----
From: David Miller [mailto:davem@davemloft.net]
Sent: 21 September 2006 11:51
To: rajib.majumder@credit-suisse.com
Cc: rick.jones2@hp.com; netdev@vger.kernel.org
Subject: Re: UDP Out 0f Sequence


From: "Majumder, Rajib" <rajib.majumder@credit-suisse.com>
Date: Thu, 21 Sep 2006 10:50:17 +0800

> Does this mean if we have 2 hosts connected back to back (there's no
> network device in between), sequence is guaranteed even in UDP?

Not true.  Even for back to back systems SMP can cause packets
to be delivered out of order even locally within the system
on receive.

==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================


^ permalink raw reply	[flat|nested] 9+ messages in thread
* UDP Out 0f Sequence
@ 2006-09-20  7:13 Majumder, Rajib
  2006-09-20 13:43 ` kc
  2006-09-20 16:47 ` Rick Jones
  0 siblings, 2 replies; 9+ messages in thread
From: Majumder, Rajib @ 2006-09-20  7:13 UTC (permalink / raw)
  To: 'netdev@vger.kernel.org'

Hi,

If I write UDP datagrams 1,2 and 3 to network and if the receiver receives in order 2,1, and 3, where can the sequence get changed? Is it at the source stack, network transit or destination stack? 

Any reply is highly appreciated. 

Thanks

Rajib 

==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================


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

end of thread, other threads:[~2007-09-28 17:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-21  2:50 UDP Out 0f Sequence Majumder, Rajib
2006-09-21  3:51 ` David Miller
2006-09-21  3:59 ` Ian McDonald
  -- strict thread matches above, loose matches on Subject: below --
2006-09-21  3:55 Majumder, Rajib
2006-09-21 16:42 ` Rick Jones
2007-09-28 17:22   ` Randy Macleod
2006-09-20  7:13 Majumder, Rajib
2006-09-20 13:43 ` kc
2006-09-20 16:47 ` Rick Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).