wiki:Internal/OpenFlow/VLANstitching

Version 1 (modified by akoshibe, 13 years ago) ( diff )

VLAN stitching on the (Tunneling) NetFPGA OpenFlow Switch

This page describes how VLAN stitching can be implemented on a NetFPGA running the Tunneling OpenFlow bitfile (of1).

Topology

The NetFPGA bridges two VLANs, 5 and 3733. The connections are as follows:

  • of1:nf2c1 ←—- VLAN 5 —→ sw-top:geth0/15
  • of1:nf2c2 ←- VLAN 3733 —> sw-outside:geth0/34

These VLANs were stitched together by pushing flow rules to of1 from kvm-big, running the Big Switch controller.

Configurations

of1 shows up as DPID 00:00:00:23:20:08:0f:f7 on kvm-big. On of1, this is the MAC address of interface tap0.
The following flow entries are created for of1's DPID on kvm-big:

  flow-entry port-c1
    active True
    ingress-port 2
    vlan-id 5
    actions set-vlan-id=3733,output=3
  flow-entry port-c2
    active True
    ingress-port 3
    vlan-id 3733
    actions set-vlan-id=5,output=2

This is done from the CLI, in config-switch mode.

kvm-big> en 
kvm-big# conf
kvm-big(config)# switch 00:00:00:23:20:08:0f:f7
kvm-big(config-switch)#

Setting flow entries from the config-switch context is a matter of copy/pasting each line from the first quote block above. Key points are:

  • 'active True' must be specified to enable the flow policy since the default for any newly created flow is 'active False'
  • at least one layer 2 or lower constraint e.g. ingress/egress port or src/dst MAC must be specified
  • there should be no white-spaces between the actions list.

sanity checks

For the sake of sanity checking, IP addresses were assigned to the VLAN interfaces for 5 and 3733 on sw-top and sw-outside, respectively. If successful, pings will work between the two VLAN interfaces.

Note: See TracWiki for help on using the wiki.