[RFC] interface for outgoing packet

2 messages, 2 authors, 2011-09-08 · open the first message on its own page

[RFC] interface for outgoing packet

From: Viral Mehta <hidden>
Date: 2011-09-08 00:24:21

Hi All,

How reasonably I can assume that,

on whatever interface, I received the last packet
for a particular Socket Connection, the same interface will be
used to SEND the next packet for same socket connection?

I am collecting the logs on one of my test machines.
And it shows, I can assume all the time that "interface" which received packet
for some socket connection, the same will be used to send packet for
that connection

But, I am not sure if I am missing some scenarios
or setup (for e.g., bonding) where it can be wrong ?

It would be more help if some one can shed some light.
-- 
Thanks,
Viral Mehta

Re: [RFC] interface for outgoing packet

From: Eric Dumazet <hidden>
Date: 2011-09-08 06:09:10

Le mercredi 07 septembre 2011 à 20:24 -0400, Viral Mehta a écrit :
Hi All,

How reasonably I can assume that,

on whatever interface, I received the last packet
for a particular Socket Connection, the same interface will be
used to SEND the next packet for same socket connection?
No
I am collecting the logs on one of my test machines.
And it shows, I can assume all the time that "interface" which received packet
for some socket connection, the same will be used to send packet for
that connection

But, I am not sure if I am missing some scenarios
or setup (for e.g., bonding) where it can be wrong ?

It would be more help if some one can shed some light.
By default, a socket is not bound to one interface, so you cant assume
this.

Check SO_BINDTODEVICE socket option if you need it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help