On 29 Nov 2006 11:38:29 -0800,
(E-Mail Removed) wrote:
>Hello,
>
>I understand that shaping occurs on egress. However, what does it mean
>exactly to leave an interface? Is it when a packet actually exits an
>interface to be transmitted? Or does it also mean when a packet exits
>one interface to be transmitted over another?
>
>If we have a linux router with two interfaces, eth0 and eth1. And
>packet arrives on eth1 that needs to be routed to eth0. From eth0 it is
>transmitted. The packet is NOT considered to have left the eth1
>interface, but only the eth0 interface, correct? Therefore, if there
>are shaping rules on both eth0 and eth1, only the ones for eth0 will be
>applied, correct?
>
>Thank you.
No, that is not correct.
A packet deques when the shaper decides to do that, and the shaper
has no clue - and does not care about - where that packet is going.
So if a packet gets sent from eth1 to eth0, the egress shaping on eth1
decides when it goes to eth0 and the egress shaping on eth0 decides
when it gets sent to the internet.
When the buffer for eth1 fills up, the packets destined for eth0 will
be dropped.
--
buck