Added quality of service(QOS) via Differentiated services (#330)

* Added quality of service(QOS) via Differentiated services

* Altered to classify network traffic in Ingress

* Updated readme for QoS
This commit is contained in:
nikkytub
2020-03-13 10:35:35 +05:30
committed by GitHub
parent 05174e8a95
commit 971ceb7d90
12 changed files with 896 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
{
"target": "bmv2",
"p4info": "build/qos.p4.p4info.txt",
"bmv2_json": "build/qos.json",
"table_entries": [
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.3.3", 32]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
"dstAddr": "08:00:00:00:03:03",
"port": 1
}
},
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.1.0", 24]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
"dstAddr": "08:00:00:00:01:00",
"port": 2
}
},
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.2.0", 24]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
"dstAddr": "08:00:00:00:02:00",
"port": 3
}
}
]
}