In some situations it is useful to aggregate traffic into flows, and pass each flow through a separate pipe. This is achieved with a feature called “dynamic pipes”: “mask” parameters can be specified in the configuration of a pipe, which indicate the bits in the 5-tuple of a packet (protocol, addresses and ports) that should be used to group packets into flows. For each pattern resulting after masking, a new pipe will be created, and matching traffic will be directed to it. As an example, the rule:Code: [Select]ipfw pipe 4 config mask src-ip 0x000000ff bw 1Mbit/swill group packets with the same value of the least significant 8 bits in the source address, and direct each flow to a new instance of pipe 4. The bandwidth of each instance is 1 Mbit/s.
ipfw pipe 4 config mask src-ip 0x000000ff bw 1Mbit/s