The port-forwarder pipeline (name: portfwd
) is a basic L2 setup that
allows to exercise the raw speed of the underlying data plane
technology. The port forwarding use case passes L2 packets between the
uplink and the downlink port, optionally swapping MAC source addresses
along the way.
In the upstream direction the pipeline will receive L2 packets from the downlink port of the SUT and forward them to the uplink port. Meanwhile, it may optionally rewrite the source MAC address in the L2 frame to the MAC address of the uplink port (must be specified by the pipeline config). The downstream direction is the same, but packets are received from the uplink port and forwarded to the downlink port after an optional MAC rewrite.
The port forwarding pipeline does not define dynamic scenarios.
A sample TIPSY configuration for the PORTfwd pipeline is shown below:
{
"pipeline": {
"name": "portfwd",
"mac-swap-upstream": null,
"mac-swap-downstream": "ac:dc:aa:bb:bb:aa"
}
}
The parameters specific to the PORTfwd pipeline are as follows:
name
: name of the pipeline, must be set toportfwd
for the Port Forward pipelinemac-swap-upstream
: if set, swap the source MAC address in the packets received from the downlink port before forwarding to the uplink portmac-swap-downstream
: if set, swap the source MAC address in the packets received from the uplink port before forwarding to the downlink port