A method and system automatically map a service level to a data stream
within an interconnect device. A plurality of data streams is selected,
each of the plurality of data streams being associated with a respective
output port of the interconnect device. The plurality of data streams is
selected based on (1) an input port of the interconnect device on which a
packet is received and (2) a service level associated with the packet. In
parallel with the selecting of the plurality of data streams, an output
port of the interconnect device is selected to receive the packet from the
input port of the interconnect device on which the packet is received. A
data stream, from among the selected plurality of data streams, is
selected utilizing the selected output port, the selected data stream
being selected as a data stream into which the packet is included for
transmission from the selected output port of the interconnect device.