On Tue, 10 Jun 2003, John S. Denker wrote:
> On 06/10/2003 07:41 AM, Pekka Savola wrote:
> >>Typical packet is around 500 bytes
> > Not sure that's really the case. I have the impression the traffic is
> > basically something like:
> > - close to 1500 bytes (data transfers)
> > - between 40-100 bytes (TCP acks, simple UDP requests, etc.)
> > - something in between
> It helps to take a more sophisticated view of things.
> In typical networks:
> Most of the packet-count is to be found in small packets.
> Most of the byte-count is to be found in large packets.
> Some things (e.g. routing) depend mainly on the packet-count.
> Other things (e.g. encryption, layer-1 hardware requirements,
> memory bandwidth usage, ISP contracts) are sensitive to the
> We shouldn't optimize one at the expense of the other.
You bring a good point.
Theres another dimension actually: mostly driven by BSD mbuff style
packet allocation; some tests show that some vendors are optimized
for certain packet sizes, Linux skbuffs dont have this problem.
We dont optimize for packet sizes given the linear nature of skbuffs.
Donalds ether drivers tend to amortize some of the costs by reallocating
skbs when the packet <= 100 bytes, but this is no longer valid with
skb recycling and the magazine layer appearing in the slab.