sw test tool: Add default test files (meter)

These test files aim to examine 'meter instruction' of FlowMod message.

Signed-off-by: WATANABE Fumitaka <watanabe.fumitaka1@gmail.com>
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Yuichi Ito 2014-03-28 13:27:17 +09:00 committed by FUJITA Tomonori
parent 7e84cfac08
commit c8a588dc5b
12 changed files with 3564 additions and 0 deletions

View File

@ -0,0 +1,257 @@
[
"meter: 01_DROP_00_KBPS_00_1M",
{
"description":"2Mbps(ethernet/ipv4/tcp)-->'in_port=1,actions=meter:1Mbps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":1000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":175,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":1000
}
]
}
}
]
},
{
"description":"2Mbps(ethernet/ipv6/tcp)-->'in_port=1,actions=meter:1Mbps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":1000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":175,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":1000
}
]
}
}
]
},
{
"description":"2Mbps(ethernet/arp)-->'in_port=1,actions=meter:1Mbps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":1000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":175,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":1000
}
]
}
}
]
}
]

View File

@ -0,0 +1,257 @@
[
"meter: 01_DROP_00_KBPS_01_10M",
{
"description":"20Mbps(ethernet/ipv4/tcp)-->'in_port=1,actions=meter:10Mbps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":10000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":1750,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":10000
}
]
}
}
]
},
{
"description":"20Mbps(ethernet/ipv6/tcp)-->'in_port=1,actions=meter:10Mbps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":10000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":1750,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":10000
}
]
}
}
]
},
{
"description":"20Mbps(ethernet/arp)-->'in_port=1,actions=meter:10Mbps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":10000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":1750,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":10000
}
]
}
}
]
}
]

View File

@ -0,0 +1,257 @@
[
"meter: 01_DROP_00_KBPS_02_100M",
{
"description":"200Mbps(ethernet/ipv4/tcp)-->'in_port=1,actions=meter:100Mbps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":100000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":17500,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":100000
}
]
}
}
]
},
{
"description":"200Mbps(ethernet/ipv6/tcp)-->'in_port=1,actions=meter:100Mbps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":100000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":17500,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":100000
}
]
}
}
]
},
{
"description":"200Mbps(ethernet/arp)-->'in_port=1,actions=meter:100Mbps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":100000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":17500,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":100000
}
]
}
}
]
}
]

View File

@ -0,0 +1,260 @@
[
"meter: 01_DROP_01_PKTPS_00_100",
{
"description":"200pktps(ethernet/ipv4/tcp)-->'in_port=1,actions=meter:100pktps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":100
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":200,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":100
}
]
}
}
]
},
{
"description":"200pktps(ethernet/ipv6/tcp)-->'in_port=1,actions=meter:100pktps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":100
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":200,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":100
}
]
}
}
]
},
{
"description":"200pktps(ethernet/arp)-->'in_port=1,actions=meter:100pktps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":100
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":200,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":100
}
]
}
}
]
}
]

View File

@ -0,0 +1,260 @@
[
"meter: 01_DROP_01_PKTPS_01_1000",
{
"description":"2000pktps(ethernet/ipv4/tcp)-->'in_port=1,actions=meter:1000pktps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":1000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":2000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":1000
}
]
}
}
]
},
{
"description":"2000pktps(ethernet/ipv6/tcp)-->'in_port=1,actions=meter:1000pktps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":1000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":2000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":1000
}
]
}
}
]
},
{
"description":"2000pktps(ethernet/arp)-->'in_port=1,actions=meter:1000pktps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":1000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":2000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":1000
}
]
}
}
]
}
]

View File

@ -0,0 +1,260 @@
[
"meter: 01_DROP_01_PKTPS_02_10000",
{
"description":"20000pktps(ethernet/ipv4/tcp)-->'in_port=1,actions=meter:10000pktps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":10000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":20000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":10000
}
]
}
}
]
},
{
"description":"20000pktps(ethernet/ipv6/tcp)-->'in_port=1,actions=meter:10000pktps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":10000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":20000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":10000
}
]
}
}
]
},
{
"description":"20000pktps(ethernet/arp)-->'in_port=1,actions=meter:10000pktps(drop),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDrop":{
"rate":10000
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":20000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":10000
}
]
}
}
]
}
]

View File

@ -0,0 +1,334 @@
[
"meter: 02_DSCP_REMARK_00_KBPS_00_1M",
{
"description":"2Mbps(ethernet/ipv4(dscp=24)/tcp)-->'in_port=1,actions=meter:1Mbps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":1000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6, tos=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":175,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"kbps":1000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"kbps":1000
}
]
}
}
]
},
{
"description":"2Mbps(ethernet/ipv6(dscp=24)/tcp)-->'in_port=1,actions=meter:1Mbps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":1000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6, traffic_class=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":175,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"kbps":1000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"kbps":1000
}
]
}
}
]
},
{
"description":"2Mbps(ethernet/arp)-->'in_port=1,actions=meter:2Mbps(dscp_remark:prec_level=1),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":1000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":175,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":2000
}
]
}
}
]
}
]

View File

@ -0,0 +1,334 @@
[
"meter: 02_DSCP_REMARK_00_KBPS_01_10M",
{
"description":"20Mbps(ethernet/ipv4(dscp=24)/tcp)-->'in_port=1,actions=meter:10Mbps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":10000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6, tos=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":1750,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"kbps":10000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"kbps":10000
}
]
}
}
]
},
{
"description":"20Mbps(ethernet/ipv6(dscp=24)/tcp)-->'in_port=1,actions=meter:10Mbps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":10000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6, traffic_class=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":1750,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"kbps":10000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"kbps":10000
}
]
}
}
]
},
{
"description":"20Mbps(ethernet/arp)-->'in_port=1,actions=meter:20Mbps(dscp_remark:prec_level=1),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":10000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":1750,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":20000
}
]
}
}
]
}
]

View File

@ -0,0 +1,334 @@
[
"meter: 02_DSCP_REMARK_00_KBPS_02_100M",
{
"description":"200Mbps(ethernet/ipv4(dscp=24)/tcp)-->'in_port=1,actions=meter:100Mbps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":100000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6, tos=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":17500,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"kbps":100000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"kbps":100000
}
]
}
}
]
},
{
"description":"200Mbps(ethernet/ipv6(dscp=24)/tcp)-->'in_port=1,actions=meter:100Mbps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":100000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6, traffic_class=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":17500,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"kbps":100000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"kbps":100000
}
]
}
}
]
},
{
"description":"200Mbps(ethernet/arp)-->'in_port=1,actions=meter:200Mbps(dscp_remark:prec_level=1),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":100000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":17500,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":200000
}
]
}
}
]
}
]

View File

@ -0,0 +1,337 @@
[
"meter: 02_DSCP_REMARK_01_PKTPS_00_100",
{
"description":"200pktps(ethernet/ipv4(dscp=24)/tcp)-->'in_port=1,actions=meter:100pktps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":100,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6, tos=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":200,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"pktps":100
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"pktps":100
}
]
}
}
]
},
{
"description":"200pktps(ethernet/ipv6(dscp=24)/tcp)-->'in_port=1,actions=meter:100pktps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":100,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6, traffic_class=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":200,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"pktps":100
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"pktps":100
}
]
}
}
]
},
{
"description":"200pktps(ethernet/arp)-->'in_port=1,actions=meter:200pktps(dscp_remark:prec_level=1),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":100,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":200,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":200
}
]
}
}
]
}
]

View File

@ -0,0 +1,337 @@
[
"meter: 02_DSCP_REMARK_01_PKTPS_01_1000",
{
"description":"2000pktps(ethernet/ipv4(dscp=24)/tcp)-->'in_port=1,actions=meter:1000pktps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":1000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6, tos=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":2000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"pktps":1000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"pktps":1000
}
]
}
}
]
},
{
"description":"2000pktps(ethernet/ipv6(dscp=24)/tcp)-->'in_port=1,actions=meter:1000pktps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":1000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6, traffic_class=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":2000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"pktps":1000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"pktps":1000
}
]
}
}
]
},
{
"description":"2000pktps(ethernet/arp)-->'in_port=1,actions=meter:2000pktps(dscp_remark:prec_level=1),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":1000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":2000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":2000
}
]
}
}
]
}
]

View File

@ -0,0 +1,337 @@
[
"meter: 02_DSCP_REMARK_01_PKTPS_02_10000",
{
"description":"20000pktps(ethernet/ipv4(dscp=24)/tcp)-->'in_port=1,actions=meter:10000pktps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":10000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2048)",
"ipv4(proto=6, tos=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 54))"
],
"pktps":20000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"pktps":10000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":2048
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"pktps":10000
}
]
}
}
]
},
{
"description":"20000pktps(ethernet/ipv6(dscp=24)/tcp)-->'in_port=1,actions=meter:10000pktps(dscp_remark:ip_dscp=16),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":10000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=34525)",
"ipv6(nxt=6, traffic_class=96)",
"tcp()",
"str(\"\\x11\" * (1500 - 74))"
],
"pktps":20000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":24
}
}
]
},
"pktps":10000
},
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
},
{
"OXMTlv":{
"field":"eth_type",
"value":34525
}
},
{
"OXMTlv":{
"field":"ip_dscp",
"value":16
}
}
]
},
"pktps":10000
}
]
}
}
]
},
{
"description":"20000pktps(ethernet/arp)-->'in_port=1,actions=meter:20000pktps(dscp_remark:prec_level=1),output:2'",
"prerequisite":[
{
"OFPMeterMod":{
"flags":2,
"meter_id":1,
"bands":[
{
"OFPMeterBandDscpRemark":{
"rate":10000,
"prec_level":1
}
}
]
}
},
{
"OFPFlowMod":{
"match":{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":1
}
}
]
}
},
"instructions":[
{
"OFPInstructionMeter":{
"meter_id":1
}
},
{
"OFPInstructionActions":{
"actions":[
{
"OFPActionOutput":{
"port":2
}
}
],
"type":4
}
}
]
}
}
],
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(ethertype=2054)",
"arp()",
"str(\"\\x11\" * (1500 - 42))"
],
"pktps":20000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"pktps":20000
}
]
}
}
]
}
]