In TSN(Time-Sensitive Networking) scenario, application, os and hardware work together to achieve very low transmission latency and high availability.
The traditional workflow may look like this:
Application use SO_PRIORITY argument in setsockopt to set socket priority which will set the priority field in sk_buff structure.
Use vconfig set_egress_map command to map skb-priority to vlan-qos, which is the pcp field in vlan 802.1Q header.
Underlay switch will use the pcp value to QoS packets.
In Kube-OVN, we need to implement the Step 2 above to achieve same function that map skb-priority to vlan-qos.
From ovs-fields.7 there is skb_priority to match however the doc said it's not supported. We need to try if it can work.
From ovs-ofctl.8 the mod_vlan_pcp action can be used to modify vlan priority.
In TSN(Time-Sensitive Networking) scenario, application, os and hardware work together to achieve very low transmission latency and high availability.
The traditional workflow may look like this:
SO_PRIORITY
argument insetsockopt
to set socket priority which will set thepriority
field insk_buff
structure.vconfig set_egress_map
command to map skb-priority to vlan-qos, which is thepcp
field in vlan 802.1Q header.pcp
value to QoS packets.In Kube-OVN, we need to implement the Step 2 above to achieve same function that map skb-priority to vlan-qos. From ovs-fields.7 there is
skb_priority
to match however the doc said it's not supported. We need to try if it can work.From ovs-ofctl.8 the
mod_vlan_pcp
action can be used to modify vlan priority.