[root@ovs-tunnel-test-1 ~]# ovs-vsctl set interface vxlan0 options:tos=0xb8
[root@ovs-tunnel-test-1 ~]# systemctl restart openvswitch
[root@ovs-tunnel-test-1 ~]# ip netns exec private ping 192.168.123.2 -c1 -W1 -Q 0xba
PING 192.168.123.2 (192.168.123.2) 56(84) bytes of data.
64 bytes from 192.168.123.2: icmp_seq=1 ttl=64 time=3.27 ms
--- 192.168.123.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.272/3.272/3.272/0.000 ms
(failed reverse-i-search)`dcp': ovs-dpctl ^Cmp-flows
[root@ovs-tunnel-test-1 ~]# ovs-dpctl dump-flows
recirc_id(0),tunnel(tun_id=0x0,src=192.168.122.174,dst=192.168.122.41,tos=0x18,flags(-df-csum+key)),in_port(2),eth(src=56:13:a0:be:1f:f4,dst=16:28:3c:ba:5b:13),eth_type(0x0806), packets:1, bytes:42, used:5.009s, actions:3
recirc_id(0),in_port(3),eth(src=16:28:3c:ba:5b:13,dst=56:13:a0:be:1f:f4),eth_type(0x0806), packets:1, bytes:42, used:5.009s, actions:set(tunnel(dst=192.168.122.174,tos=0xb8,ttl=64,tp_dst=4789,flags(df))),2
[root@ovs-tunnel-test-1 ~]#
~~~
~~~
[root@ovs-tunnel-test-2 ~]# tshark -nn -i eth0 -O ip port vxlan | egrep 'Frame|Differentiated Services|Explicit Congestion Notification'
Running as user "root" and group "root". This could be dangerous.
Capturing on 'eth0'
2 Frame 1: 148 bytes on wire (1184 bits), 148 bytes captured (1184 bits) on interface eth0, id 0
6 Differentiated Services Field: 0x1a (DSCP: Unknown, ECN: ECT(0))
0001 10.. = Differentiated Services Codepoint: Unknown (6)
.... ..10 = Explicit Congestion Notification: ECN-Capable Transport codepoint '10' (2)
Differentiated Services Field: 0xba (DSCP: EF PHB, ECN: ECT(0))
1011 10.. = Differentiated Services Codepoint: Expedited Forwarding (46)
.... ..10 = Explicit Congestion Notification: ECN-Capable Transport codepoint '10' (2)
Frame 2: 148 bytes on wire (1184 bits), 148 bytes captured (1184 bits) on interface eth0, id 0
Differentiated Services Field: 0x1a (DSCP: Unknown, ECN: ECT(0))
0001 10.. = Differentiated Services Codepoint: Unknown (6)
.... ..10 = Explicit Congestion Notification: ECN-Capable Transport codepoint '10' (2)
Differentiated Services Field: 0xba (DSCP: EF PHB, ECN: ECT(0))
1011 10.. = Differentiated Services Codepoint: Expedited Forwarding (46)
.... ..10 = Explicit Congestion Notification: ECN-Capable Transport codepoint '10' (2)
Frame 3: 92 bytes on wire (736 bits), 92 bytes captured (736 bits) on interface eth0, id 0
Differentiated Services Field: 0x18 (DSCP: Unknown, ECN: Not-ECT)
0001 10.. = Differentiated Services Codepoint: Unknown (6)
.... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
Frame 4: 92 bytes on wire (736 bits), 92 bytes captured (736 bits) on interface eth0, id 0
Differentiated Services Field: 0x18 (DSCP: Unknown, ECN: Not-ECT)
0001 10.. = Differentiated Services Codepoint: Unknown (6)
.... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
Frame 5: 92 bytes on wire (736 bits), 92 bytes captured (736 bits) on interface eth0, id 0
Differentiated Services Field: 0x18 (DSCP: Unknown, ECN: Not-ECT)
0001 10.. = Differentiated Services Codepoint: Unknown (6)
.... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
Frame 6: 92 bytes on wire (736 bits), 92 bytes captured (736 bits) on interface eth0, id 0
Differentiated Services Field: 0x18 (DSCP: Unknown, ECN: Not-ECT)
0001 10.. = Differentiated Services Codepoint: Unknown (6)
.... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
^C^R
^C^C
[root@ovs-tunnel-test-2 ~]# ovs-dpctl dump-flows
recirc_id(0),tunnel(tun_id=0x0,src=192.168.122.41,dst=192.168.122.174,tos=0x18,flags(-df-csum+key)),in_port(2),eth(src=16:28:3c:ba:5b:13,dst=56:13:a0:be:1f:f4),eth_type(0x0806), packets:1, bytes:42, used:8.951s, actions:3
recirc_id(0),in_port(3),eth(src=56:13:a0:be:1f:f4,dst=16:28:3c:ba:5b:13),eth_type(0x0806), packets:1, bytes:42, used:8.951s, actions:set(tunnel(dst=192.168.122.41,tos=0xb8,ttl=64,tp_dst=4789,flags(df))),2
[root@ovs-tunnel-test-2 ~]#