Skip to content

Commit 55024e8

Browse files
committed
Add detailed map
Signed-off-by: bingwang <[email protected]>
1 parent 5b6e794 commit 55024e8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/qos/tunnel_dscp_remapping.md

+20
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Before remapping to queue 4 and 6, both queues are required to be cleared. Hence
117117
```
118118

119119
TC_TO_DSCP_MAP for rewriting DSCP
120+
120121
```json
121122
"TC_TO_DSCP_MAP": {
122123
"AZURE_TUNNEL": {
@@ -201,6 +202,25 @@ TC remapping requires below SAI attributes change.
201202
*/
202203
SAI_TUNNEL_ATTR_DECAP_QOS_TC_TO_PRIORITY_GROUP_MAP,
203204
```
205+
For instance, when we get a traffic flow with DSCP = 3 on T1, the traffic and bounced back traffic is delivered and remapped as below:
206+
207+
1. Traffic from `T1` to `Standby ToR`
208+
- Traffic mapped to `TC3`, `PG3` and `Queue 3` by port level QoS mapping
209+
2. Bounced back traffic from `Standby ToR` to `T1`
210+
- Traffic arrived at `Standby ToR` in `TC3`, `PG3` and `Queue 3` as per port level QoS mapping
211+
- Packet will be encapped and delivered back to `T1` by `MuxTunnel`
212+
- The outer `DSCP` is rewritten to `2` as specified in `TC_TO_DSCP_MAP|AZURE_TUNNEL` by SAI attribute `SAI_TUNNEL_ATTR_ENCAP_QOS_TC_AND_COLOR_TO_DSCP_MAP`.
213+
- Traffic is delivered in `Queue 2` as specified in `TC_TO_QUEUE_MAP|AZURE_TUNNEL` by SAI attribute `SAI_TUNNEL_ATTR_ENCAP_QOS_TC_TO_QUEUE_MAP`
214+
3. Bounced back traffic from `T1` to `Active ToR`
215+
- Bounced back traffic arrive at `T1` in `Queue 2` and `PG2` by port level QoS mapping
216+
- Bounced back traffic will be routed to `Active ToR`
217+
4. Traffic from `Active ToR` to `Server`
218+
- Traffic arrived at `Active ToR` and will be decapped and delivered to server
219+
- The outer `DSCP` is ignored as the `dscp_mode` for `MuxTunnel` is `PIPE`. The inner `DSCP3` is copied to outer layer
220+
- Traffic is remapped to `TC 3` as specified in `DSCP_TO_TC_MAP|AZURE_TUNNEL` by SAI attribute `SAI_TUNNEL_ATTR_DECAP_QOS_DSCP_TO_TC_MAP`
221+
- Traffic is remapped to `PG 2` as specified in `TC_TO_PRIORITY_GROUP_MAP|AZURE_TUNNEL` by SAI attribute `SAI_TUNNEL_ATTR_DECAP_QOS_TC_TO_PRIORITY_GROUP_MAP`
222+
- Traffic is in `Queue 3` as per port level QoS mapping
223+
- Decapped traffic is delivered to target server
204224
### 5.3 orchagent
205225

206226
Code change in orchagent

0 commit comments

Comments
 (0)