Hi Martin,

QoS marking takes the buffer’s pre-classified QoS source:value and translate it 
through the egress map into the value at the layer the marking is specified. If 
we take your map id=0 as an example you are mapping a classification of IP:0 to 
a value 30 and since the marking is an IP features, this means IP DSCP of 30.
However, you don’t have a pre-classification, so the marking node doesn’t know 
what to map from (hence the use:no in the trace). To classify you need either 
the QoS record or store node. Since your map indicates you want to map from IP, 
then my guess is you want the record node as an IP input feature on the 
interface[s] from which packets are received before being transmitted into the 
GTPU tunnel.

/neale

From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> on behalf of Martin Dzuris via 
lists.fd.io <dzuris=gmail....@lists.fd.io>
Date: Wednesday, 8 June 2022 at 20:42
To: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io>
Subject: [vpp-dev] Support of "qos egress map" with GTP tunnels
Hi

We need to update DSCP value on gtp output traffic (inside and outside of the 
tunnel too ).

I'm creating GTP tunnel :

...
vppctl set in state GigabitEthernet0/9/0  up
vppctl create sub-interfaces GigabitEthernet0/9/0 5 dot1q 100 exact-match
vppctl set interface state GigabitEthernet0/9/0.5 up
vppctl set int ip address GigabitEthernet0/9/0.5  
22.22.2.2/24<http://22.22.2.2/24>
vppctl create gtpu tunnel src 22.22.2.2 dst 22.22.2.4 teid 13 tteid 14 
encap-vrf-id 0 decap-next ip4
vppctl set interface ip table gtpu_tunnel0 22
vppctl set in state gtpu_tunnel0 up
vppctl set int ip address gtpu_tunnel0 50.50.50.1/24<http://50.50.50.1/24>


and I tried to mark packet on gtp interface :

                vppctl qos egress map id 0 [ip][0]=30
                vppctl qos egress map id 1 [ip][1]=31
                vppctl qos mark ext gtpu_tunnel0 id 0
                vppctl qos mark ext GigabitEthernet0/9/0.5 id 1


Example from Trace :

04:16:56:227608: ip4-qos-mark
  source:ext qos:30 used:no
04:16:56:227611: gtpu4-encap
  GTPU encap to gtpu_tunnel0 tteid 14


Result is that packets are not updated . Is QOS mark feature supported on GTP 
interface and on sub-interfaces ? Can you advise me how to do it?

Martin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21519): https://lists.fd.io/g/vpp-dev/message/21519
Mute This Topic: https://lists.fd.io/mt/91620408/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to