Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 2.04 KB

README.portfwd.org

File metadata and controls

54 lines (41 loc) · 2.04 KB

L2 Port Forwarding (PORTfwd)

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.

Static pipeline

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.

Dynamic scenarios

The port forwarding pipeline does not define dynamic scenarios.

Pipeline configuration

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 to portfwd for the Port Forward pipeline
  • mac-swap-upstream: if set, swap the source MAC address in the packets received from the downlink port before forwarding to the uplink port
  • mac-swap-downstream: if set, swap the source MAC address in the packets received from the uplink port before forwarding to the downlink port

OVS Implementation: Caveats and considerations

BESS Implementation: Caveats and considerations