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