Openflow

Roadmap

Classifiers

1
dl_type = 0x0806 # ARP, Optional: switch must indicate support in FeatureRes)
2
dl_type = 0x0800 # IPv4
3
dl_type = 0x88cc # Link Layer Discovery Protocol (LLDP)
4
nw_proto = 1 # ICMPv4
5
nw_proto = 6 # TCP
6
nw_proto: 17 # UDP
7
tp_src: 68 # Bootpc, UDP 0.0.0.0:68 -> 255.255.255.255:67
8
tp_dst: 67 # Bootps, 192.168.1.1:67 -> 255.255.255.255:68
9
10
vlan_tci= # TCI (tag control information), 2-byte
Copied!

Tracing

ovs-ofctl dump-flows br0

1
name : "vnet0"
2
ofport : 1
3
admin_state : up
4
statistics : {collisions=0, rx_bytes=36595, rx_crc_err=0, rx_dropped=0, rx_errors=0, rx_frame_err=0, rx_over_err=0, rx_packets=145, tx_bytes=1216, tx_dropped=0, tx_errors=0, tx_packets=16}
5
mac_in_use : "fe:54:00:2c:f2:9f"
6
7
name : "br0"
8
ofport : 65534
9
admin_state : down
10
statistics : {collisions=0, rx_bytes=0, rx_crc_err=0, rx_dropped=0, rx_errors=0, rx_frame_err=0, rx_over_err=0, rx_packets=0, tx_bytes=0, tx_dropped=0, tx_errors=0, tx_packets=0}
11
mac_in_use : "2a:18:94:e4:38:49"
12
13
http://openvswitch.org/support/dist-docs/ovs-ofctl.8.txt
14
15
resubmit:port
16
resubmit([port],[table])
17
resubmit([port],[table],connection tracking state)
18
19
strip_vlan
20
Strips the VLAN tag from a packet if it is present.
21
22
NXST_FLOW reply (xid=0x4):
23
Table 0: Port-based ACLs
24
..., table=0, n_packets=0, n_bytes=0, idle_age=5659, priority=9099,in_port=2 actions=resubmit(,1)
25
..., table=0, n_packets=0, n_bytes=0, idle_age=5659, priority=9099,in_port=3 actions=resubmit(,1)
26
..., table=0, n_packets=132, n_bytes=33998, idle_age=0, priority=9099,in_port=1 actions=resubmit(,1)
27
..., table=0, n_packets=0, n_bytes=0, idle_age=5659, priority=0 actions=drop
28
29
Table 1: Ingress VLAN processing
30
..., table=1, n_packets=0, n_bytes=0, idle_age=5659, priority=9099,dl_dst=01:80:c2:00:00:00 actions=drop
31
..., table=1, n_packets=0, n_bytes=0, idle_age=5659, priority=9099,dl_dst=01:00:0c:cc:cc:cd actions=drop
32
..., table=1, n_packets=0, n_bytes=0, idle_age=5659, priority=9099,dl_type=0x88cc actions=drop
33
..., table=1, n_packets=0, n_bytes=0, idle_age=5659, priority=9000,in_port=2,vlan_tci=0x0000/0x1fff actions=mod_vlan_vid:200,resubmit(,3)
34
..., table=1, n_packets=0, n_bytes=0, idle_age=5659, priority=9000,in_port=3,vlan_tci=0x0000/0x1fff actions=mod_vlan_vid:200,resubmit(,3)
35
..., table=1, n_packets=132, n_bytes=33998, idle_age=0, priority=9000,in_port=1,vlan_tci=0x0000/0x1fff actions=mod_vlan_vid:100,resubmit(,3)
36
..., table=1, n_packets=0, n_bytes=0, idle_age=5659, priority=0 actions=drop
37
38
Table 2: VLAN-based ACLs
39
..., table=2, n_packets=0, n_bytes=0, idle_age=5659, priority=0 actions=drop
40
41
Table 3: Ingress L2 processing, MAC learning
42
..., table=3, n_packets=0, n_bytes=0, idle_age=5659, priority=9099,dl_src=ff:ff:ff:ff:ff:ff actions=drop
43
..., table=3, n_packets=0, n_bytes=0, idle_age=5659, priority=9001,dl_src=0e:00:00:00:00:01 actions=drop
44
..., table=3, n_packets=3, n_bytes=1005, hard_timeout=305, idle_age=0, priority=9098,in_port=1,dl_vlan=100,dl_src=52:54:00:2c:f2:9f actions=resubmit(,7)
45
..., table=3, n_packets=0, n_bytes=0, idle_age=5659, priority=0 actions=drop
46
..., table=3, n_packets=19, n_bytes=5546, idle_age=193, priority=9000 actions=CONTROLLER:96,resubmit(,7)
47
48
Table 4: L3 forwarding for IPv4
49
..., table=4, n_packets=0, n_bytes=0, idle_age=5659, priority=0 actions=drop
50
51
Table 5: L3 forwarding for IPv6
52
..., table=5, n_packets=0, n_bytes=0, idle_age=5659, priority=0 actions=drop
53
54
Table 6: Virtual IP processing, e.g. for router IP addresses implemented by Faucet
55
..., table=6, n_packets=0, n_bytes=0, idle_age=5659, priority=0 actions=drop
56
57
Table 7: Egress L2 processing
58
..., table=7, n_packets=0, n_bytes=0, idle_timeout=305, idle_age=193, priority=9099,dl_vlan=100,dl_dst=52:54:00:2c:f2:9f actions=strip_vlan,output:1
59
..., table=7, n_packets=0, n_bytes=0, idle_age=5659, priority=0 actions=drop
60
..., table=7, n_packets=132, n_bytes=33998, idle_age=0, priority=9000 actions=resubmit(,8)
61
62
Table 8: Flooding
63
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9008,in_port=2,dl_vlan=200,dl_dst=ff:ff:ff:ff:ff:ff actions=strip_vlan,output:3
64
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9008,in_port=3,dl_vlan=200,dl_dst=ff:ff:ff:ff:ff:ff actions=strip_vlan,output:2
65
..., table=8, n_packets=106, n_bytes=31994, idle_age=0, priority=9008,in_port=1,dl_vlan=100,dl_dst=ff:ff:ff:ff:ff:ff actions=strip_vlan
66
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9006,in_port=2,dl_vlan=200,dl_dst=33:33:00:00:00:00/ff:ff:00:00:00:00 actions=strip_vlan,output:3
67
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9006,in_port=3,dl_vlan=200,dl_dst=33:33:00:00:00:00/ff:ff:00:00:00:00 actions=strip_vlan,output:2
68
..., table=8, n_packets=21, n_bytes=1686, idle_age=514, priority=9006,in_port=1,dl_vlan=100,dl_dst=33:33:00:00:00:00/ff:ff:00:00:00:00 actions=strip_vlan
69
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9002,in_port=2,dl_vlan=200,dl_dst=01:80:c2:00:00:00/ff:ff:ff:00:00:00 actions=strip_vlan,output:3
70
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9002,in_port=3,dl_vlan=200,dl_dst=01:80:c2:00:00:00/ff:ff:ff:00:00:00 actions=strip_vlan,output:2
71
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9004,in_port=2,dl_vlan=200,dl_dst=01:00:5e:00:00:00/ff:ff:ff:00:00:00 actions=strip_vlan,output:3
72
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9004,in_port=3,dl_vlan=200,dl_dst=01:00:5e:00:00:00/ff:ff:ff:00:00:00 actions=strip_vlan,output:2
73
..., table=8, n_packets=0, n_bytes=0, idle_age=5647, priority=9002,in_port=1,dl_vlan=100,dl_dst=01:80:c2:00:00:00/ff:ff:ff:00:00:00 actions=strip_vlan
74
..., table=8, n_packets=5, n_bytes=318, idle_age=1175, priority=9004,in_port=1,dl_vlan=100,dl_dst=01:00:5e:00:00:00/ff:ff:ff:00:00:00 actions=strip_vlan
75
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9000,in_port=2,dl_vlan=200 actions=strip_vlan,output:3
76
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=9000,in_port=3,dl_vlan=200 actions=strip_vlan,output:2
77
..., table=8, n_packets=0, n_bytes=0, idle_age=5647, priority=9000,in_port=1,dl_vlan=100 actions=strip_vlan
78
..., table=8, n_packets=0, n_bytes=0, idle_age=5659, priority=0 actions=drop
Copied!
Last modified 1yr ago