backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of13 / meter / 01_DROP_01_PKTPS_02_10000.json
1 [
2     "meter: 01_DROP_01_PKTPS_02_10000",
3     {
4         "description":"20000pktps(ethernet/ipv4/tcp)-->'in_port=1,actions=meter:10000pktps(drop),output:2'",
5         "prerequisite":[
6             {
7                 "OFPMeterMod":{
8                     "flags":2,
9                     "meter_id":1,
10                     "bands":[
11                         {
12                             "OFPMeterBandDrop":{
13                                 "rate":10000
14                             }
15                         }
16                     ]
17                 }
18             },
19             {
20                 "OFPFlowMod":{
21                     "match":{
22                         "OFPMatch":{
23                             "oxm_fields":[
24                                 {
25                                     "OXMTlv":{
26                                         "field":"in_port",
27                                         "value":1
28                                     }
29                                 }
30                             ]
31                         }
32                     },
33                     "instructions":[
34                         {
35                             "OFPInstructionMeter":{
36                                 "meter_id":1
37                             }
38                         },
39                         {
40                             "OFPInstructionActions":{
41                                 "actions":[
42                                     {
43                                         "OFPActionOutput":{
44                                             "port":2
45                                         }
46                                     }
47                                 ],
48                                 "type":4
49                             }
50                         }
51                     ]
52                 }
53             }
54         ],
55         "tests":[
56             {
57                 "ingress":{
58                     "packets":{
59                         "data":[
60                             "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
61                             "ipv4(proto=6)",
62                             "tcp()",
63                             "bytes(b'\\x11' * (1500 - 54))"
64                         ],
65                         "pktps":20000,
66                         "duration_time":30
67                     }
68                 },
69                 "egress":{
70                     "throughput":[
71                         {
72                             "OFPMatch":{
73                                 "oxm_fields":[
74                                     {
75                                         "OXMTlv":{
76                                             "field":"in_port",
77                                             "value":2
78                                         }
79                                     }
80                                 ]
81                             },
82                             "pktps":10000
83                         }
84                     ]
85                 }
86             }
87         ]
88     },
89     {
90         "description":"20000pktps(ethernet/ipv6/tcp)-->'in_port=1,actions=meter:10000pktps(drop),output:2'",
91         "prerequisite":[
92             {
93                 "OFPMeterMod":{
94                     "flags":2,
95                     "meter_id":1,
96                     "bands":[
97                         {
98                             "OFPMeterBandDrop":{
99                                 "rate":10000
100                             }
101                         }
102                     ]
103                 }
104             },
105             {
106                 "OFPFlowMod":{
107                     "match":{
108                         "OFPMatch":{
109                             "oxm_fields":[
110                                 {
111                                     "OXMTlv":{
112                                         "field":"in_port",
113                                         "value":1
114                                     }
115                                 }
116                             ]
117                         }
118                     },
119                     "instructions":[
120                         {
121                             "OFPInstructionMeter":{
122                                 "meter_id":1
123                             }
124                         },
125                         {
126                             "OFPInstructionActions":{
127                                 "actions":[
128                                     {
129                                         "OFPActionOutput":{
130                                             "port":2
131                                         }
132                                     }
133                                 ],
134                                 "type":4
135                             }
136                         }
137                     ]
138                 }
139             }
140         ],
141         "tests":[
142             {
143                 "ingress":{
144                     "packets":{
145                         "data":[
146                             "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
147                             "ipv6(nxt=6)",
148                             "tcp()",
149                             "bytes(b'\\x11' * (1500 - 74))"
150                         ],
151                         "pktps":20000,
152                         "duration_time":30
153                     }
154                 },
155                 "egress":{
156                     "throughput":[
157                         {
158                             "OFPMatch":{
159                                 "oxm_fields":[
160                                     {
161                                         "OXMTlv":{
162                                             "field":"in_port",
163                                             "value":2
164                                         }
165                                     }
166                                 ]
167                             },
168                             "pktps":10000
169                         }
170                     ]
171                 }
172             }
173         ]
174     },
175     {
176         "description":"20000pktps(ethernet/arp)-->'in_port=1,actions=meter:10000pktps(drop),output:2'",
177         "prerequisite":[
178             {
179                 "OFPMeterMod":{
180                     "flags":2,
181                     "meter_id":1,
182                     "bands":[
183                         {
184                             "OFPMeterBandDrop":{
185                                 "rate":10000
186                             }
187                         }
188                     ]
189                 }
190             },
191             {
192                 "OFPFlowMod":{
193                     "match":{
194                         "OFPMatch":{
195                             "oxm_fields":[
196                                 {
197                                     "OXMTlv":{
198                                         "field":"in_port",
199                                         "value":1
200                                     }
201                                 }
202                             ]
203                         }
204                     },
205                     "instructions":[
206                         {
207                             "OFPInstructionMeter":{
208                                 "meter_id":1
209                             }
210                         },
211                         {
212                             "OFPInstructionActions":{
213                                 "actions":[
214                                     {
215                                         "OFPActionOutput":{
216                                             "port":2
217                                         }
218                                     }
219                                 ],
220                                 "type":4
221                             }
222                         }
223                     ]
224                 }
225             }
226         ],
227         "tests":[
228             {
229                 "ingress":{
230                     "packets":{
231                         "data":[
232                             "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
233                             "arp(dst_mac='22:22:22:22:22:22', src_mac='12:11:11:11:11:11')",
234                             "bytes(b'\\x11' * (1500 - 42))"
235                         ],
236                         "pktps":20000,
237                         "duration_time":30
238                     }
239                 },
240                 "egress":{
241                     "throughput":[
242                         {
243                             "OFPMatch":{
244                                 "oxm_fields":[
245                                     {
246                                         "OXMTlv":{
247                                             "field":"in_port",
248                                             "value":2
249                                         }
250                                     }
251                                 ]
252                             },
253                             "pktps":10000
254                         }
255                     ]
256                 }
257             }
258         ]
259     }
260 ]