Efficient Inter-VLAN Routing in
OpenFlow Networks**More fun with flow tables
Atri Indiresan
Manas Pati
Christophe Rene
Sherry Feng
Cisco Systems
FAUCETCon 2019
October 23, 2019
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco PublicFaucet Inter-VLAN routing

https://buildmedia.readthedocs.org/media/pdf/faucet/latest/faucet.pdf Section 1.2.4
vlans:
100:
faucet_vips: ["10.0.0.254/24"]
faucet_mac: "00:00:00:00:00:11"
200:
faucet_vips: ["10.0.1.254/24"]
faucet_mac: "00:00:00:00:00:2”
routers:router-1:
vlans: [100, 200]
1. table=1, in_port=1,vlan_tci= 0x0000/0x1fff
actions=push_vlan:0x8100,set_field:100->vlan_vid,goto_table:3
2. table=1, in_port=2,vlan_tci=0x0000/0x1fff
actions=push_vlan:0x8100,set_field:200->vlan_vid,goto_table:3
3. table=3, ip,dl_vlan=200,dl_dst=0e:00:00:00:00:22 actions=goto_table:4
4. table=3, ip,dl_vlan=100,dl_dst=0e:00:00:00:00:11 actions=goto_table:4© 2019 Cisco and/or its affiliates. All rights reserved. Cisco PublicFaucet Inter-VLAN routing
5. table=4, ip,dl_vlan=200,nw_dst=10.0.0.1 actions=set_field:100->vlan_vid,
set_field:0e:00:00:00:00:11->eth_src, set_field:1e:a9:60:0b:b1:02->eth_dst,
dec_ttl,goto_table:7
6. table=4, ip,dl_vlan=100,nw_dst=10.0.0.1 actions=set_field:100->vlan_vid,
set_field:0e:00:00:00:00:11->eth_src, set_field:1e:a9:60:0b:b1:02->eth_dst,
dec_ttl,goto_table:7
7. table=4, ip,dl_vlan=200,nw_dst=10.0.1.2 actions=set_field:200->vlan_vid,
set_field:0e:00:00:00:00:22->eth_src,set_field:a2:0b:3d:25:21:12->eth_dst,
dec_ttl,goto_table:7
8. table=4, ip,dl_vlan=100,nw_dst=10.0.1.2 actions=set_field:200->vlan_vid,
set_field:0e:00:00:00:00:22->eth_src,set_field:a2:0b:3d:25:21:12->eth_dst,
dec_ttl,goto_table:7
9. table=7, dl_vlan=200,dl_dst=a2:0b:3d:25:21:12 actions=pop_vlan,output:2
10. table=7, dl_vlan=100,dl_dst=1e:a9:60:0b:b1:02 actions=pop_vlan,output:1© 2019 Cisco and/or its affiliates. All rights reserved. Cisco PublicEfficient Faucet Inter-VLAN routing
routers:router-1:
vlans: [100, 200]
vrf: 1000

1. table=3, ip,dl_vlan=200,dl_dst=0e:00:00:00:00:22 actions=set_field:1000->vlan_vid,
goto_table:4

2. table=3, ip,dl_vlan=100,dl_dst=0e:00:00:00:00:11 actions=set_field:1000->vlan_vid,
goto_table:4
5. table=4, ip,dl_vlan=1000,nw_dst=10.0.0.1 actions=set_field:100->vlan_vid,
set_field:0e:00:00:00:00:11->eth_src, set_field:1e:a9:60:0b:b1:02->eth_dst,dec_ttl,goto_table:7
6. table=4, ip,dl_vlan=1000,nw_dst=10.0.1.2 actions=set_field:200->vlan_vid,
set_field:0e:00:00:00:00:22->eth_src,set_field:a2:0b:3d:25:21:12->eth_dst,
dec_ttl,goto_table:7
7. table=7, dl_vlan=200,dl_dst=a2:0b:3d:25:21:12 actions=pop_vlan,output:2
8. table=7, dl_vlan=100,dl_dst=1e:a9:60:0b:b1:02 actions=pop_vlan,output:1© 2019 Cisco and/or its affiliates. All rights reserved. Cisco PublicFaucetUntaggedIPv4GlobalInterVLANRouteTest
1.

table=4, ip,dl_vlan=100,dl_dst=0e:00:00:00:00:01 actions=set_field:0e:00:00:00:00:64->eth_dst,
set_field:4396->vlan_vid,goto_table:5

2.

table=4, ip,dl_vlan=200,dl_dst=0e:00:00:00:00:02 actions=set_field:0e:00:00:00:00:c8->eth_dst,
set_field:4396->vlan_vid,goto_table:5

3.

table=5, ip,dl_vlan=300,nw_dst=10.100.0.1 actions=set_field:4196->vlan_vid,
set_field:0e:00:00:00:00:01->eth_src,set_field:7e:ec:7b:92:78:b4->eth_dst,dec_ttl,goto_table:94.

table=5, ip,dl_vlan=300,nw_dst=10.200.0.1 actions=set_field:4296->vlan_vid,
set_field:0e:00:00:00:00:02->eth_src,set_field:ce:76:79:82:bb:7e->eth_dst,dec_ttl,goto_table:95.

table=5, ip,dl_vlan=300,nw_dst=10.99.99.0/24 actions=set_field:4296->vlan_vid,
set_field:0e:00:00:00:00:02->eth_src,set_field:ce:76:79:82:bb:7e->eth_dst,dec_ttl,goto_table:96.

table=9, dl_vlan=200,dl_dst=1a:7a:a8:a1:4f:01 actions=pop_vlan,output:6

7.

table=9, dl_vlan=200,dl_dst=52:ad:26:96:f0:93 actions=pop_vlan,output:88.

table=9, dl_vlan=100,dl_dst=7e:ec:7b:92:78:b4 actions=pop_vlan,output:7

9.

table=9, dl_vlan=200,dl_dst=ce:76:79:82:bb:7e actions=pop_vlan,output:5© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public

Q&A© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public