Patent ID: 8081572

Claim:
A device, comprising: an ingress interface; an egress interface; a scheduler to schedule packets, based on priority of the packets, between the ingress interface and the egress interface, the scheduler further including: a first node having an associated first node transformation function that is received from a downstream device and that is associated with a characteristic of the downstream device; a second node, having an associated second node transformation function that is received from a downstream device and that is associated with a characteristic of the downstream device, to operate, using the first node transformation function and the second node transformation function, on packet information that represents a packet and that is received from the first node to generate, based on the characteristic of the downstream device, adjusted packet information that represents an adjusted packet, where, when the second node is to generate the adjusted packet information, the second node is to: identify a packet size and a configured minimum packet size; select a larger of the packet size or the configured minimum packet size; add a fixed value, based on the characteristic, to the larger of the packet size or the configured minimum packet size, when a first condition is present, to generate a first result; and subtract the fixed value from the larger of the packet size or the configured minimum packet size, when a second condition is present, to generate a second result, and where the scheduler is to send the adjusted packet information to the downstream device.