ShreyaPandita | 2dcc181 | 2012-09-28 12:13:28 -0400 | [diff] [blame] | 1 | *********** Conformance Test-suite **************** |
| 2 | OF-Switch-1.0.0-TestCases detailed testing methodology |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | **** Openflow protocol messages **** |
| 9 | |
| 10 | |
| 11 | |
| 12 | 1. Features Request |
| 13 | |
| 14 | Test Description: Check features request is implemented |
| 15 | |
| 16 | Test mode: Automated |
| 17 | Test Title: FeaturesRequest |
| 18 | Ports: I (Control Plane) |
| 19 | Initial State: Default (Clear switch state), Connection Setup |
| 20 | Test-Field: Mandatory |
| 21 | |
| 22 | |
| 23 | Test Notes: |
| 24 | |
| 25 | a) Send OFPT_FEATURES_REQUEST from controller. |
| 26 | b) Verify OFPT_FEATURES_REPLY is received without errors |
| 27 | |
| 28 | |
| 29 | |
| 30 | 2. Configuration request |
| 31 | |
| 32 | Test Description: Check basic get configuration request is implemented |
| 33 | |
| 34 | Test mode: Automated |
| 35 | Test Title: ConfigurationRequest |
| 36 | Ports: I (Control Plane) |
| 37 | Initial State: Default (Clear switch state), Connection Setup |
| 38 | Test-Field: Mandatory |
| 39 | |
| 40 | |
| 41 | Test Notes: |
| 42 | |
| 43 | a) Send OFPT_GET_CONFIG_REQUEST |
| 44 | b) Verify OFPT_GET_CONFIG_REPLY is received without errors. |
| 45 | |
| 46 | |
| 47 | |
| 48 | 3. Modify State (ADD) |
| 49 | |
| 50 | Test Description: Check basic Flow ADD request is implemented |
| 51 | |
| 52 | Test mode: Automated |
| 53 | Test Title: ModifyStateAdd |
| 54 | Ports: 3 (1 Control Plane 2 dataplane) |
| 55 | Initial State: Default (Clear switch state), Connection Setup |
| 56 | Test-Field: Mandatory |
| 57 | |
| 58 | |
| 59 | Test Notes: |
| 60 | |
| 61 | a) Send OFPT_FLOW_MOD, command = OFPFC_ADD |
| 62 | b) Send ofp_table_stats request |
| 63 | c) Verify that active_count=1 in the reply |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | 4. Modify State (DELETE) |
| 69 | |
| 70 | Test Description: Check basic Flow Delete request is implemented |
| 71 | |
| 72 | Test mode: Automated |
| 73 | Test Title: ModifyStateDelete |
| 74 | Ports: 3 (1 Control Plane 2 dataplane) |
| 75 | Initial State: Default (Clear switch state), Connection Setup |
| 76 | Test-Field: Mandatory |
| 77 | |
| 78 | |
| 79 | Test Notes: |
| 80 | |
| 81 | a) Send OFPT_FLOW_MOD, command = OFPFC_ADD |
| 82 | b) Send ofp_table_stats request |
| 83 | c) Verify that active_count=1 in the reply |
| 84 | d) Send OFPT_FLOW_MOD, command = OFPFC_DELETE |
| 85 | e) Send ofp_table_stats request |
| 86 | f) Verify active _count=0 in the reply |
| 87 | |
| 88 | |
| 89 | |
| 90 | 5. Modify State (MODIFY) |
| 91 | |
| 92 | Test Description: Check basic Flow Modify request is implemented |
| 93 | |
| 94 | Test mode: Automated |
| 95 | Test Title: ModifyStateModify |
| 96 | Ports: 3 (1 Control Plane and 2 Dataplane) |
| 97 | Initial State: Default (Clear switch state), Connection Setup |
| 98 | Test-Field: Mandatory |
| 99 | |
| 100 | |
| 101 | Test Notes: |
| 102 | |
| 103 | a) Send OFPT_FLOW_MOD , command = OFPFC_ADD, action A |
| 104 | b) Send ofp_table_stats request, Verify active_count=1 |
| 105 | c) Send OFPT_FLOW_MOD , command = OFPFC_MODIFY, action A |
| 106 | d) Send Test Packet matching the flow |
| 107 | e) Verify packet implements action A |
| 108 | |
| 109 | |
| 110 | |
| 111 | 6. Read State |
| 112 | |
| 113 | Test Description: Check basic Read State is implemented |
| 114 | |
| 115 | Test mode: Automated |
| 116 | Test Title: ReadState |
| 117 | Ports: 3 (1 Control Plane, 2 dataplane) |
| 118 | Initial State: Default (Clear switch state), Connection Setup |
| 119 | Test-Field: Mandatory |
| 120 | |
| 121 | |
| 122 | Test Notes: |
| 123 | |
| 124 | a) Send OFPT_FLOW_MOD, command = OFPFC_ADD |
| 125 | b) Create a OFPC_FLOW_STATS message and send it |
| 126 | c) Verify switch replies without errors |
| 127 | |
| 128 | |
| 129 | |
| 130 | 7. Send packet |
| 131 | |
| 132 | Test Description: Check basic Send-Packet is implemented. |
| 133 | Send-Packet: These are used by the controller to send packets out of a specified port on the switch. |
| 134 | |
| 135 | Test mode: Automated |
| 136 | Test Title: SendPacket |
| 137 | Ports: 5 (1 Control Plane, 4 Dataplane) |
| 138 | Initial State: Default (Clear switch state), Connection Setup |
| 139 | Test-Field: Mandatory |
| 140 | |
| 141 | |
| 142 | Test Notes: |
| 143 | |
| 144 | a) Send OFPT_PACKET_OUT out message from controller to switch for every dataplane port. |
| 145 | b) Verify the packet appears on the each dataplane port |
| 146 | c) Verify sent packet matches the received packet |
| 147 | |
| 148 | |
| 149 | |
| 150 | 8. Barrier Request |
| 151 | |
| 152 | Test Description: This test checks that a basic barrier request does not generate an error. |
| 153 | |
| 154 | Test mode: Automated |
| 155 | Test Title: BarrierRequestReply |
| 156 | Ports: I (Control Plane) |
| 157 | Initial State: Default (Clear switch state), Connection Setup |
| 158 | Test-Field: Mandatory |
| 159 | |
| 160 | |
| 161 | Test Notes: |
| 162 | |
| 163 | a) Send OFPT_BARRIER_REQUEST |
| 164 | c) Verify OFPT_BARRIER_REPLY is received on the control plane. |
| 165 | |
| 166 | |
| 167 | |
| 168 | 9. Packet In |
| 169 | |
| 170 | Test Description: Check packet_in is implemented. This test just checks that non matched dataplane packets |
| 171 | generate a packet_in |
| 172 | |
| 173 | Test mode: Automated |
| 174 | Test Title: PacketIn |
| 175 | Ports: 2 (1 Control Plane and 1 Dataplane) |
| 176 | Initial State: Default (Clear switch state), Connection Setup |
| 177 | Test-Field: Mandatory |
| 178 | |
| 179 | |
| 180 | Test Notes: |
| 181 | |
| 182 | a) Send a packet to dataplane port , without inserting a flow entry |
| 183 | b) Verify a OFPT_PACKET_IN is generated on the control plane |
| 184 | |
| 185 | |
| 186 | |
| 187 | 10. Hello |
| 188 | |
| 189 | Test Description: This test checks for basic Hello message generation with correct version field. |
| 190 | |
| 191 | Test mode: Automated |
| 192 | Test Title: Hello |
| 193 | Ports: 1 (Control Plane) |
| 194 | Initial State: Default (Clear switch state), Connection Setup |
| 195 | Test-Field: Mandatory |
| 196 | |
| 197 | |
| 198 | Test Notes: |
| 199 | |
| 200 | a) Send OFPT_HELLO from controller to switch |
| 201 | b) Verify switch also sends OFPT_HELLO message in response |
| 202 | c) Verify version field in the hello message is set to Openflow version 1.0.0 |
| 203 | |
| 204 | |
| 205 | |
| 206 | 11. Echo |
| 207 | |
| 208 | Test Description: This test checks for basic Echo Reply message generation with correct version field with |
| 209 | same transaction id. |
| 210 | |
| 211 | Test mode: Automated |
| 212 | Test Title: EchoWithoutBody |
| 213 | Ports: 1 (Control Plane) |
| 214 | Initial State: Default (Clear switch state), Connection setup |
| 215 | Test-Field: Mandatory |
| 216 | |
| 217 | |
| 218 | Test Notes: |
| 219 | |
| 220 | a) Send OFPT_ECHO_REQUEST from the controller side. |
| 221 | b) Verify switch responds back with OFPT_ECHO_REPLY with same xid. |
| 222 | c) Verify Openflow version in header is set to Openflow version 1.0.0. |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | |
| 228 | **** Detailed controller to switch messages **** |
| 229 | |
| 230 | |
| 231 | |
| 232 | 1. Overlap checking |
| 233 | |
| 234 | Test Description: Verify that if overlap check flag is set in the flow entry and an overlapping flow is |
| 235 | inserted then an error is generated and switch refuses flow entry |
| 236 | |
| 237 | Test mode: Automated |
| 238 | Test Title: OverlapChecking |
| 239 | Ports: 3 (1 Control Plane 2 dataplane) |
| 240 | Initial State: Default (Clear switch state), Connection setup |
| 241 | Test-Field: Mandatory |
| 242 | |
| 243 | |
| 244 | Test-Notes: |
| 245 | |
| 246 | a) Generate Flow F1--> Wildcard All |
| 247 | b) Send ofp_table_stats request , verify active_count=1 |
| 248 | c) Generate overlapping flow F2 --> Wildcard All Except Ingress Port ( with flag OFPFF_CHECK_OVERLAP set) |
| 249 | d) Verify that switch generates OFPT_ERROR msg. |
| 250 | Type: OFPET_FLOW_MOD_FAILED code : OFPFMFC_OVERLAP |
| 251 | |
| 252 | |
| 253 | |
| 254 | 2. No overlap checking |
| 255 | |
| 256 | Test Description: Verify that without overlap check flag set, overlapping flows can be created. |
| 257 | |
| 258 | Test mode: Automated |
| 259 | Test Title: NoOverlapchecking |
| 260 | Ports: 3 (1 Control Plane, 2 Dataplane) |
| 261 | Initial State: Default (Clear switch state), Connection setup |
| 262 | Test-Field: Mandatory |
| 263 | |
| 264 | |
| 265 | Test Notes: |
| 266 | |
| 267 | a) Generate Flow F1--> Wildcard All. |
| 268 | b) Send ofp_table_stats request , verify active_count=1 |
| 269 | e) Generate overlapping flow F2 --> Wildcard All Except Ingress Port ( without flag OFPFF_CHECK_OVERLAP set) |
| 270 | c) Send a ofp_table_stats request, verify active_count=2 |
| 271 | |
| 272 | |
| 273 | |
| 274 | 3. Identical flows |
| 275 | |
| 276 | Test Description: Verify that adding two identical flows overwrites the existing one and clears counters |
| 277 | |
| 278 | Test mode: Automated |
| 279 | Test Title: IdenticalFlows |
| 280 | Ports: 3 (1 Control Plane), (2 dataplane) |
| 281 | Initial State: Default (Clear switch state), Connection setup |
| 282 | Test-Field: Mandatory |
| 283 | |
| 284 | |
| 285 | Test Notes: |
| 286 | |
| 287 | a) Generate Flow F1. |
| 288 | b) Send ofp_table_stats request , verify active_count=1 |
| 289 | b) Increment counters (packet_count, byte_count) by sending a packet matching flow F1. |
| 290 | C) Send ofp_flow_stats request. Verify flow counters: byte_count and packet_count |
| 291 | c) Create identical flow F2 |
| 292 | d) Send a ofp_table_stats request, verify active_count=1 |
| 293 | e) Send ofp_flow_stats request. Verify flow counters: byte_count and packet_count are reset |
| 294 | |
| 295 | |
| 296 | |
| 297 | 4. No table to add (Written in oftestNeed to add to conformance Test-Suites) |
| 298 | |
| 299 | |
| 300 | |
| 301 | 5. Never valid port (TBD) |
| 302 | |
| 303 | |
| 304 | |
| 305 | |
| 306 | 6. Currently not existing port Version A and B (TBD) |
| 307 | |
| 308 | |
| 309 | |
| 310 | |
| 311 | 7. Emergency flow with timeout values |
| 312 | |
| 313 | Test Description: Timeout values are not allowed for emergency flows |
| 314 | |
| 315 | Test Title: EmerFlowTimeout |
| 316 | Test mode: Automated |
| 317 | Ports: 3 (1 control plane, 2 Dataplane) |
| 318 | Initial State: Default (Clear switch state), Connection setup |
| 319 | |
| 320 | |
| 321 | Test Notes: |
| 322 | |
| 323 | a) Generate a flow F with OFPFF_EMERG set in flag and timeout values assigned. |
| 324 | b) Verify switch generates an OFPT_ERROR msg, Type: OFPET_FLOW_MOD_FAILED, Code OFPFMFC_BAD_EMERG_TIMEOUT |
| 325 | |
| 326 | |
| 327 | |
| 328 | 8. Missing modify adds |
| 329 | |
| 330 | Test Description: If a modify does not match an existing flow, the flow gets added. |
| 331 | |
| 332 | Title: MissingModifyAdd |
| 333 | Test mode: Automated |
| 334 | Ports:3 (1 control plane,2 Data Plane) |
| 335 | Initial State: Connection setup, Clear Switch State |
| 336 | Test-Field: Mandatory |
| 337 | |
| 338 | |
| 339 | Test Notes: |
| 340 | |
| 341 | a) Generate a flow-mod , command OFPC_MODIFY (Note: There should be no flows matching this flow_mod modify command) |
| 342 | b) Send a ofp_table_stats request, verify active_count=1 |
| 343 | |
| 344 | |
| 345 | |
| 346 | |
| 347 | 9. Modify changes action, preserves counters |
| 348 | |
| 349 | Test Description: A modified flow preserves counters |
| 350 | |
| 351 | Title: ModifyAction |
| 352 | Test mode: Automated |
| 353 | Ports: 4(1 control plane, 3 Dataplane) |
| 354 | Initial State: Connection setup, Clear Switch State |
| 355 | Test-Field: Mandatory |
| 356 | |
| 357 | |
| 358 | Test Notes: |
| 359 | |
| 360 | a) Create a flow_mod F-1 with command OFPC_ADD, action A |
| 361 | b) Send a test Packet matching the flow |
| 362 | c) Send an ofp_flow_stats request, verify byte_count and packet_count |
| 363 | e) Create flow_mod with command OFPC_MODIFY ,action A and modify action of flow F-1 |
| 364 | f) Send a ofp_flow_stats request, verify flow counters are preserved |
| 365 | g) Send test packet, verify it implements action A |
| 366 | |
| 367 | |
| 368 | |
| 369 | 10. Strict Modify changes action, preserves counters |
| 370 | |
| 371 | Test Description: Strict Modify Flow also changes action preserves counters |
| 372 | |
| 373 | Title: StrictModifyAction |
| 374 | Test mode: Automated |
| 375 | Ports: 4(1 control plane, 3 Dataplane) |
| 376 | Initial State: Connection setup, Clear Switch State |
| 377 | Test-Field: Mandatory |
| 378 | |
| 379 | |
| 380 | Test Notes: |
| 381 | |
| 382 | a) Create two overlapping flows: F --> Match on all, except one wildcarded (src address). Action A. Priority=100 |
| 383 | F --> Match on ingress_port = port [0], wildcarded rest. Action A. Priority=10 |
| 384 | b) Send a ofp_table_stats request, verify active_count=2 |
| 385 | c) Send Packet (it would have matched both the flows, since they are overlapping flows but it would match Flow-F1 as it has higher priority.) |
| 386 | d) Send ofp_flow_stats request for Flow-1 and verify counters packet_count and byte_count |
| 387 | e) Create flow_mod ,command OFPC_STRICT_MODIFY,match on all except src address ,priority 100 action A |
| 388 | f) Send test packet , verify action is modified |
| 389 | g) Send ofp_flow_stats request, verify counters are preserved. |
| 390 | |
| 391 | |
| 392 | |
| 393 | |
| 394 | 11. Delete non existing flow |
| 395 | |
| 396 | Test Description: Request deletion of non-existing flow |
| 397 | |
| 398 | Title: DeleteNonexistingFlow |
| 399 | Test mode: Automated |
| 400 | Ports: 1(1 control plane) |
| 401 | Initial State: Connection setup, Clear Switch State |
| 402 | Test-Field: Mandatory |
| 403 | |
| 404 | |
| 405 | Test Notes: |
| 406 | |
| 407 | a) Issue a delete command, with no flows inserted |
| 408 | b) Make sure no error is generated on the control plane |
| 409 | |
| 410 | |
| 411 | |
| 412 | 12. Delete flows with and without removed message |
| 413 | |
| 414 | Test Description: Check deletion of flows happens and generates messages as configured. i.e. if Send Flow removed messageFlag |
| 415 | is set in the flow entry, the flow deletion of that respective flow should generate the flow removed message, |
| 416 | vice versa also exists |
| 417 | |
| 418 | Test Title: SendFlowRem |
| 419 | Test mode: Automated |
| 420 | Ports: 3 (1 control plane, 2 Dataplane) |
| 421 | Initial State: Connection setup, Default (clear switch state) |
| 422 | Test-Field: Mandatory |
| 423 | |
| 424 | |
| 425 | Test Notes: |
| 426 | |
| 427 | a) Generate a flow F without OFPFF_SEND_FLOW_REM flag set |
| 428 | b) Issue a delete command OFPFC_DELETE |
| 429 | c) Verify that OFPT_FLOW_REMOVED message is not generated. |
| 430 | c) Generate a flow F with OFPFF_SEND_FLOW_REM flag set |
| 431 | d) Issue a delete command OFPFC_DELETE |
| 432 | e) Verify that OFPT_FLOW_REMOVED message is generated |
| 433 | |
| 434 | |
| 435 | |
| 436 | 13. Delete emergency flow |
| 437 | |
| 438 | Test Description: Delete emergency flow and verify no message is generated.An emergency flow deletion will not generate |
| 439 | flow-removed messages even if Send Flow removed message flag was set during the emergency flow entry. |
| 440 | |
| 441 | |
| 442 | Title: DeleteEmerFlow |
| 443 | Test mode: Automated |
| 444 | Ports: 3 (1 control plane, 2 Dataplane) |
| 445 | Initial State: Connection setup, Clear Switch State (default) |
| 446 | |
| 447 | |
| 448 | Test-Notes: |
| 449 | |
| 450 | a) Insert a flow with OFPFF_EMERG flag set. |
| 451 | b) Delete the added flow with OFPFF_SEND_FLOW_REM flag set |
| 452 | c) Test successful if no flow removed message is generated. |
| 453 | |
| 454 | |
| 455 | |
| 456 | 14. Delete and verify strict and non-strict |
| 457 | |
| 458 | Test Description: Delete and verify strict and non-strict behaviors |
| 459 | |
| 460 | This test compares the behavior of delete strict and non-strict. |
| 461 | Title: StrictVsNonstrict |
| 462 | Test mode: Automated |
| 463 | Ports: 3 (1 control plane, 2 dataplane) |
| 464 | Initial State: Connection setup, Clear Switch State |
| 465 | |
| 466 | |
| 467 | Test-Notes: |
| 468 | |
| 469 | a) Insert Flow F with an exact match. |
| 470 | b) Issue Non-strict Delete command, verify F gets deleted. |
| 471 | c) Insert F with an exact Match |
| 472 | d) Issue Strict Delete Command, verify F gets deleted. |
| 473 | e) Insert Flow T with match on all, except one wildcarded (say src address). |
| 474 | f) Insert another flow T' with match on ingress_port, wildcarded rest. |
| 475 | g) Issue Non-strict Delete ( match on ingress_port). Verify T+T' gets deleted. |
| 476 | h) Insert T and T' again. Issue Strict Delete (match on ingress port), verify only T' gets deleted |
| 477 | i) Insert T, add Priority P (say 100) |
| 478 | j) Insert T' add priority (200). |
| 479 | k) Insert T' again add priority 300 --> T |
| 480 | l) Issue Non-Strict Delete (match on ingress port). Verify T+T+T gets deleted. |
| 481 | m) Insert T, T, T again, Issue Strict Delete (match on ingress_port) with priority = 200. Verify only T gets deleted |
| 482 | |
| 483 | |
| 484 | |
| 485 | 15. Delete flows with constraint out_port |
| 486 | |
| 487 | Test Description: Delete flows filtered by action output.DELETE and DELETE STRICT commands can be optionally filtered by output port. |
| 488 | If the out_port field contains a value other than OFPP_NONE, it introduces a constraint when matching. |
| 489 | This constraint is that the rule must contain an output action directed at that port. |
| 490 | |
| 491 | Title: Outport1 |
| 492 | Test mode: Automated |
| 493 | Ports: 3 (1 control plane, 2 Dataplanes) |
| 494 | Initial State: Connection setup, Clear Switch State |
| 495 | Test-Field: Mandatory |
| 496 | |
| 497 | |
| 498 | Test-Notes: |
| 499 | |
| 500 | a) Insert a flow F with output action = port x |
| 501 | b) Send a delete command matching flow F ,but out_port =port y |
| 502 | c) Send a table_stats request , verify no flow gets deleted i.e. active_count=1 |
| 503 | d) Send a delete command matching flow F ,outport = port x |
| 504 | e) Send a table_stats request, verify flow F gets deleted. |
| 505 | |
| 506 | |
| 507 | |
| 508 | 16. Add, modify flows with constraint output |
| 509 | |
| 510 | Test Description: Add, modify flows with outport set. This field is ignored by ADD, MODIFY, and MODIFY STRICT messages. |
| 511 | |
| 512 | Title: Outport2 |
| 513 | Test mode: Automated |
| 514 | Ports: 4 (1 control plane, 3 Data planes) |
| 515 | Initial State: Connection setup, Clear Switch State |
| 516 | Test-Field: Mandatory |
| 517 | |
| 518 | Test-Notes: |
| 519 | |
| 520 | a) Insert a flow F with action A (output --> port x) , but out_port field in the flow mod set as port y |
| 521 | b) Send Table_Stats_Request, Verify Flow gets inserted. ( Flow add ignores out_port field) |
| 522 | c) Modify the action in flow F , action A ( output -->port z ), but out_port field in the flow mod set as port y |
| 523 | d) Send test packet matching the flow F |
| 524 | e) Verify packet implements action A (flow modify ignores out_port field) |
| 525 | |
| 526 | |
| 527 | |
| 528 | 17. Verify that idle timeout is implemented |
| 529 | |
| 530 | Test Description: Verify that idle timeout is implemented |
| 531 | |
| 532 | Title: IdleTimeout |
| 533 | Test mode: Automated |
| 534 | Ports: 3 (1 control plane, 2 Dataplanes) |
| 535 | Initial State: Connection setup, Clear Switch State |
| 536 | Test-Field: Mandatory |
| 537 | |
| 538 | |
| 539 | Test-Notes: |
| 540 | |
| 541 | a) Add a flow with idle timeout set and with OFPP_SEND_FLOW_REM bit set |
| 542 | b) Verify flow removed message is received. |
| 543 | c) Verify flow removed reason was idle_timeout |
| 544 | d) Verify the duration_sec field is 1 sec |
| 545 | |
| 546 | |
| 547 | |
| 548 | 18. Verify that hard timeout is implemented |
| 549 | |
| 550 | Test Description: Verify that hard timeout is implemented |
| 551 | |
| 552 | Title: HardTimeout |
| 553 | Test mode: Automated |
| 554 | Ports: 3 (1 control plane, 2 Dataplanes) |
| 555 | Initial State: Connection setup, Clear Switch State |
| 556 | Test-Field: Mandatory |
| 557 | |
| 558 | |
| 559 | Test-Notes: |
| 560 | |
| 561 | a) Add a flow with hard timeout =1 set and with OFPP_SEND_FLOW_REM bit set |
| 562 | b) Verify flow removed message is received. |
| 563 | c) Verify flow removed reason was hard_timeout |
| 564 | d) Verify the duration_sec field is 1 sec |
| 565 | |
| 566 | |
| 567 | |
| 568 | 19. Verify that messages are generated as expected |
| 569 | |
| 570 | Test Description: Verify that Flow removed messages are generated as expected |
| 571 | /* Since flow removed messages being generated when flag is set is already tested in the above tests |
| 572 | So here, we test the vice-versa condition.*/ |
| 573 | |
| 574 | Title: FlowTimeout |
| 575 | Test mode: Automated |
| 576 | Ports: 3 (1control plane, 1dataplane) |
| 577 | Initial State: Connection setup, Clear Switch State |
| 578 | Test-Field: Mandatory |
| 579 | |
| 580 | |
| 581 | Test-Notes: |
| 582 | |
| 583 | a) Generate and install a flow with idle_timeout = 1 set no OFPFF_SEND_FLOW_REM flag set. |
| 584 | b) Verify no flow removed message is received. |
| 585 | c) Send table_stats_request message and verify active_count=0 |
| 586 | |
| 587 | |
| 588 | |
| 589 | |
| 590 | |
| 591 | *** Actions *** |
| 592 | |
| 593 | |
| 594 | |
| 595 | 1. No Action drops packet |
| 596 | |
| 597 | Test Description: If no forward actions are present, the packet is dropped. |
| 598 | |
| 599 | Required Action: Drop. |
| 600 | A flow-entry with no specified action indicates that all matching packets should be dropped. |
| 601 | Test mode: Automated |
| 602 | Test Title: NoAction |
| 603 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 604 | Initial State: Default (Clear switch state), Connection setup |
| 605 | Test-Field: Mandatory |
| 606 | |
| 607 | |
| 608 | Test Notes: |
| 609 | |
| 610 | a) Send Flow mod message without any action specified |
| 611 | b) Send N packets matching the flow |
| 612 | c) Verify packets are not received on any of the dataplane ports |
| 613 | d) Verify packets are not even sent to the controller |
| 614 | |
| 615 | |
| 616 | |
| 617 | 2. Get supported actions from switch |
| 618 | |
| 619 | Test Description: Get the supported actions from switch and make sanity checks. |
| 620 | /*When connecting to the controller, a switch indicate which of the Optional Actions it supports*/ |
| 621 | |
| 622 | Test mode: Automated |
| 623 | Test Title: Announcement |
| 624 | Ports: 1 (Control Plane) |
| 625 | Initial State: Default (Clear switch state), Connection setup |
| 626 | Test-Field: Mandatory |
| 627 | |
| 628 | |
| 629 | Test Notes: |
| 630 | |
| 631 | a) Send features_request . |
| 632 | b) Verify response is OFPT_FEATURES_REPLY |
| 633 | c) Verify reply has supported action list specified |
| 634 | |
| 635 | |
| 636 | |
| 637 | 3. Forward All |
| 638 | |
| 639 | Test Description: Packet is sent to all dataplane ports except ingress port when output action.port = OFPP_ALL |
| 640 | |
| 641 | Test mode: Automated |
| 642 | Test Title: ForwardAll |
| 643 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 644 | Initial State: Default (Clear switch state), Connection setup |
| 645 | Test-Field: Mandatory |
| 646 | |
| 647 | |
| 648 | Test Notes: |
| 649 | |
| 650 | a) Install a flow with output action.port = OFPP_ALL. |
| 651 | b) Verify packets are forwarded to all ports except ingress port. |
| 652 | |
| 653 | |
| 654 | |
| 655 | 4. Forward Controller |
| 656 | |
| 657 | Test Description: Packet is sent to controller output.port = OFPP_CONTROLLER |
| 658 | |
| 659 | Test mode: Automated |
| 660 | Test Title: ForwardController |
| 661 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 662 | Initial State: Default (Clear switch state), Connection setup |
| 663 | Test-Field: Mandatory |
| 664 | |
| 665 | |
| 666 | Test Notes: |
| 667 | |
| 668 | a) Insert a flow with action output port = OFPP_CONTROLLER |
| 669 | b) Send packets matching the flow |
| 670 | c) Verify packet received on the control plane as a packet_in message |
| 671 | |
| 672 | |
| 673 | |
| 674 | 5. Forward Local (TBD Verification of packet being received at local networking stack) |
| 675 | |
| 676 | Test Description: Packet is sent to switchs local networking stack if output.port = OFPP_LOCAL |
| 677 | |
| 678 | Test mode: Automated |
| 679 | Test Title: ForwardLocal |
| 680 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 681 | Initial State: Default (Clear switch state), Connection setup |
| 682 | Test-Field: Mandatory |
| 683 | |
| 684 | |
| 685 | Test Notes: |
| 686 | |
| 687 | a) Insert a flow with action output port = OFPP_LOCAL |
| 688 | b) Send packets matching the flow |
| 689 | c) Verify packet received in the switchs local networking stack. |
| 690 | |
| 691 | |
| 692 | |
| 693 | 6. Forward Table |
| 694 | |
| 695 | Test Description: Perform actions in flow table. Only for packet-out messages. |
| 696 | /*If the output action.port in the packetout message = OFP.TABLE, then the packet implements the action |
| 697 | specified in the matching flow of the FLOW-TABLE*/ |
| 698 | |
| 699 | Test mode: Automated |
| 700 | Test Title: ForwardTable |
| 701 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 702 | Initial State: Default (Clear switch state), Connection setup |
| 703 | Test-Field: Mandatory |
| 704 | |
| 705 | Test Notes: |
| 706 | |
| 707 | a) Insert a flow F with action output.port = egress_port |
| 708 | b) Send a OFPT_PACKET_OUT message with out port=OFPP_TABLE matching flow F |
| 709 | c) Verify packet received on egress_port (i.e packetout message implemented the action specified in the matching flow of the Table) |
| 710 | |
| 711 | |
| 712 | |
| 713 | 7. Forward In Port |
| 714 | |
| 715 | Test Description: Packet is sent to input port if output.port = OFPP_INPORT |
| 716 | |
| 717 | Test mode: Automated |
| 718 | Test Title: ForwardInport |
| 719 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 720 | Initial State: Default (Clear switch state), Connection setup |
| 721 | Test-Field: Mandatory |
| 722 | |
| 723 | Test Notes: |
| 724 | |
| 725 | a) Insert a flow with action output port = OFPP_INPORT |
| 726 | b) Send packets matching the flow |
| 727 | c) Verify packet received on all dataplane ports except for input port |
| 728 | |
| 729 | |
| 730 | |
| 731 | 8. Forward Flood |
| 732 | |
| 733 | Test Description:Flood the packet along the minimum spanning tree, not including the incoming interface. |
| 734 | Packet is sent all the dataplane ports except the input port if output.port = OFPP_FLOOD |
| 735 | |
| 736 | Test mode: Automated |
| 737 | Test Title: Forward_Flood |
| 738 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 739 | Initial State: Default (Clear switch state), Connection setup |
| 740 | Test-Field: Optional |
| 741 | |
| 742 | Test Notes: |
| 743 | |
| 744 | a) Insert a flow with action output port = OFPP_FLOOD |
| 745 | b) Send packets matching the flow |
| 746 | c) Verify packet received on all dataplane ports except for input port |
| 747 | |
| 748 | |
| 749 | |
| 750 | 9. Multiple Ports -- TBD |
| 751 | |
| 752 | |
| 753 | |
| 754 | |
| 755 | 10. Forward Enqueue --- TBD |
| 756 | |
| 757 | |
| 758 | |
| 759 | |
| 760 | 11. Set VLAN Id |
| 761 | |
| 762 | Test Description: Attach VLAN ID to untagged packet. |
| 763 | If no VLAN is present, a new header is added with the specified VLAN ID and priority of zero. |
| 764 | |
| 765 | Test mode: Automated |
| 766 | Test Title: AddVlanId |
| 767 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 768 | Initial State: Default (Clear switch state), Connection setup |
| 769 | Test-Field: Optional |
| 770 | |
| 771 | |
| 772 | Test Notes: |
| 773 | |
| 774 | a) Insert a flow with action = OFPAT_SET_VLAN_VID , vlan_vid = x |
| 775 | b) Send packet (length = 100 bytes) matching the flow |
| 776 | b) Verify packet received has vlan id added to it. (I.e length of packet with vid is 104 bytes, dl_vlan_enable = True, dl_vlan= x, dl_vlan_pcp=0) |
| 777 | |
| 778 | |
| 779 | |
| 780 | 12. Modify VLAN Id |
| 781 | |
| 782 | Test Description: Modifies Vlan Tag for a tagged packet |
| 783 | If a VLAN header already exists, the VLAN ID is replaced with the specified value |
| 784 | |
| 785 | Test mode: Automated |
| 786 | Test Title: ModifyVlanId |
| 787 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 788 | Initial State: Default (Clear switch state), Connection setup |
| 789 | Test-Field: Optional |
| 790 | |
| 791 | |
| 792 | Test Notes: |
| 793 | a) Insert a flow with action = OFPAT_SET_VLAN_VID , vlan_vid = x |
| 794 | b) Send packet (length = 100 bytes) matching the flow |
| 795 | c) Verify packet received has vlan id rewritten. (I.e length of 104 bytes, dl_vlan_enable = True, dl_vlan=x) |
| 796 | |
| 797 | |
| 798 | |
| 799 | 13. Add VLAN Priority to an untagged packet |
| 800 | |
| 801 | Test Description: Attach VLAN priority to an untagged packet. |
| 802 | Since, no VLAN ID is present; a new header is added with the specified priority and a VLAN ID of zero.\ |
| 803 | |
| 804 | Test mode: Automated |
| 805 | Test Title: VlanPrio1 |
| 806 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 807 | Initial State: Default (Clear switch state), Connection setup |
| 808 | Test-Field: Optional |
| 809 | |
| 810 | |
| 811 | Test Notes: |
| 812 | |
| 813 | a) Insert a flow with action = OFPAT_SET_VLAN_PCP , dl_vlan_pcp =x |
| 814 | b) Send untagged packet matching the flow |
| 815 | c) Verify packet received has vlan priority added to it along with a vid value of zero added by default (dl_vlan_enable , dl_vlan = 0 , dl_vlan_pcp =x ) |
| 816 | |
| 817 | |
| 818 | |
| 819 | 14. Rewrite existing VLAN priority |
| 820 | |
| 821 | Test Description: Modify VLAN priority for a tagged packet. |
| 822 | |
| 823 | Test mode: Automated |
| 824 | Test Title: VlanPrio2 |
| 825 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 826 | Initial State: Default (Clear switch state), Connection setup |
| 827 | Test-Field: Optional |
| 828 | |
| 829 | |
| 830 | Test Notes: |
| 831 | |
| 832 | a) Insert a flow with action = OFPAT_SET_VLAN_PCP , dl_vlan_pcp =new_vlan_pcp |
| 833 | b) Send tagged packet matching the flow (dl_vlan = old_vlan_id , dl_vlan_pcp = old_vlan_pcp) |
| 834 | c) Verify packet received has vlan id added to it. (dl_vlan_enable , dl_vlan = 0 , dl_vlan_pcp = new_vlan_pcp) |
| 835 | |
| 836 | |
| 837 | |
| 838 | |
| 839 | 15. Modify L2 Src Address |
| 840 | |
| 841 | Test Description: Modify Ethernet Src Address of a packet |
| 842 | |
| 843 | Test mode: Automated |
| 844 | Test Title: ModifyL2Src |
| 845 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 846 | Initial State: Default (Clear switch state), Connection setup |
| 847 | Test-Field: Optional |
| 848 | |
| 849 | |
| 850 | Test Notes: |
| 851 | |
| 852 | a) Insert a flow with action = OFPAT_SET_DL_SRC , dl_src =new_dl_src |
| 853 | b) Send packet matching the flow (dl_dst = old_dl_src ) |
| 854 | c) Verify packet received has src address rewritten. (dl_src= new_dl_src) |
| 855 | |
| 856 | |
| 857 | |
| 858 | 16. Modify L2 Destination Address |
| 859 | |
| 860 | Test Description: Modify Ethernet Destination Address of a packet |
| 861 | |
| 862 | Test mode: Automated |
| 863 | Test Title: ModifyL2Dst |
| 864 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 865 | Initial State: Default (Clear switch state), Connection setup |
| 866 | Test-Field: Optional |
| 867 | |
| 868 | |
| 869 | Test Notes: |
| 870 | |
| 871 | a) Insert a flow with action = OFPAT_SET_DL_DST , dl_dst =new_dl_dst |
| 872 | b) Send packet matching the flow (dl_dst = old_dl_src ) |
| 873 | c) Verify packet received has destination address rewritten. (dl_src= new_dl_src) |
| 874 | |
| 875 | |
| 876 | |
| 877 | 17. Strip VLAN header (In oftest, need to add in conformance test-suite ) |
| 878 | |
| 879 | |
| 880 | |
| 881 | 18. Modify L3 Src Address |
| 882 | |
| 883 | Test Description: Modify Network Src Address of a packet |
| 884 | |
| 885 | Test mode: Automated |
| 886 | Test Title: ModifyL3Src |
| 887 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 888 | Initial State: Default (Clear switch state), Connection setup |
| 889 | Test-Field: Optional |
| 890 | |
| 891 | |
| 892 | Test Notes: |
| 893 | |
| 894 | a) Insert a flow with action = OFPAT_SET_NW_SRC , nw_src =new_nw_src |
| 895 | b) Send packet matching the flow (nw_src = old_nw_src ) |
| 896 | c) Verify packet received has nw address rewritten. (nw_src= new_nw_src) |
| 897 | |
| 898 | |
| 899 | |
| 900 | 19. Modify L3 Dst Address |
| 901 | |
| 902 | Test Description: Modify Network Dst Address of a packet |
| 903 | |
| 904 | Test mode: Automated |
| 905 | Test Title: ModifyL3Dst |
| 906 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 907 | Initial State: Default (Clear switch state), Connection setup |
| 908 | Test-Field: Optional |
| 909 | |
| 910 | |
| 911 | Test Notes: |
| 912 | |
| 913 | a) Insert a flow with action = OFPAT_SET_NW_DST , nw_dst =new_nw_dst |
| 914 | b) Send packet matching the flow (nw_dst = old_nw_dst ) |
| 915 | c) Verify packet received has nw destination address rewritten. (nw_dst= new_nw_dst) |
| 916 | |
| 917 | |
| 918 | |
| 919 | 20. Modify L4 Src Address |
| 920 | |
| 921 | Test Description: Modify TCP Source Port of a packet |
| 922 | |
| 923 | Test mode: Automated |
| 924 | Test Title: ModifyL4Src |
| 925 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 926 | Initial State: Default (Clear switch state), Connection setup |
| 927 | Test-Field: Optional |
| 928 | |
| 929 | |
| 930 | Test Notes: |
| 931 | |
| 932 | a) Insert a flow with action = OFPAT_SET_TP_SRC , tcp_sport =new_tcp_sport |
| 933 | b) Send packet matching the flow (tcp_sport = old_tcp_sport ) |
| 934 | c) Verify packet received has tcp source port rewritten. (tcp_sport = new_tcp_sport) |
| 935 | |
| 936 | |
| 937 | 21. Modify L4 Dst Address |
| 938 | |
| 939 | Test Description: Modify TCP Destination Port of a packet |
| 940 | |
| 941 | Test mode: Automated |
| 942 | Test Title: ModifyL4Dst |
| 943 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 944 | Initial State: Default (Clear switch state), Connection setup |
| 945 | Test-Field: Optional |
| 946 | |
| 947 | |
| 948 | Test Notes: |
| 949 | |
| 950 | a) Insert a flow with action = OFPAT_SET_TP_DST , tcp_dport =new_tcp_dport |
| 951 | b) Send packet matching the flow (tcp_dport = old_tcp_dport ) |
| 952 | c) Verify packet received has tcp destination port rewritten. (tcp_sport = new_tcp_sport) |
| 953 | |
| 954 | |
| 955 | |
| 956 | 22. Modify TOS |
| 957 | |
| 958 | Test Description: Modify Network Type of service |
| 959 | |
| 960 | Test mode: Automated |
| 961 | Test Title: ModifyTos |
| 962 | Ports: 3 (1 Control Plane 2 Dataplane) |
| 963 | Initial State: Default (Clear switch state), Connection setup |
| 964 | Test-Field: Optional |
| 965 | |
| 966 | |
| 967 | Test Notes: |
| 968 | |
| 969 | a) Insert a flow with action = OFPAT_SET_NW_TOS, ip_tos =new_ip_tos |
| 970 | b) Send packet matching the flow (ip_tos= old_ip_tos) |
| 971 | c) Verify packet received has tcp destination port rewritten. (ip_tos= new_ip_tos) |
| 972 | |
| 973 | |
| 974 | |
| 975 | 23. Order Not possible -- TBD |
| 976 | |
| 977 | |
| 978 | |
| 979 | |
| 980 | 24. Sequential execution -- TBD |
| 981 | |
ShreyaPandita | 66de26f | 2012-10-26 14:44:24 -0400 | [diff] [blame] | 982 | |
| 983 | |
| 984 | |
| 985 | |
| 986 | **** Counters **** |
| 987 | |
| 988 | |
| 989 | |
| 990 | 1. Received Packets per Flow |
| 991 | |
| 992 | |
| 993 | Test Description: Verify that packet_count in the Flow_Stats reply increments in accordance with the packets in flow |
| 994 | |
| 995 | Test mode: Automated |
| 996 | Test Tile: FlowCounter1 |
| 997 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 998 | Initial State: Default (Clear switch state), Connection setup |
| 999 | Test-Field: Mandatory |
| 1000 | |
| 1001 | |
| 1002 | Test Notes: |
| 1003 | |
| 1004 | a) Insert a flow , match = ingress_port |
| 1005 | b) Send N packet matching the flow i.e packets should be sent on ingress_port |
| 1006 | c) Send flow_stats_request for the flow |
| 1007 | d) Verify packet_count = N in the flow_stats_reply |
| 1008 | |
| 1009 | |
| 1010 | |
| 1011 | 2. Received Bytes per Flow |
| 1012 | |
| 1013 | |
| 1014 | Test Description: Verify that byte_count in the Flow_Stats reply increments in accordance with the bytes in flow |
| 1015 | |
| 1016 | Test mode: Automated |
| 1017 | Test Tile: FlowCounter1 |
| 1018 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1019 | Initial State: Default (Clear switch state), Connection setup |
| 1020 | Test-Field: Mandatory |
| 1021 | |
| 1022 | |
| 1023 | Test Notes: |
| 1024 | |
| 1025 | a) Insert a flow , match = ingress_port |
| 1026 | b) Send N packet matching the flow i.e packets should be sent on ingress_port |
| 1027 | c) Send flow_stats_request for the flow |
| 1028 | d) Verify byte_count = N*(no. of bytes in one packet) in the flow_stats_reply |
| 1029 | |
| 1030 | |
| 1031 | |
| 1032 | 3. Duration in sec per Flow |
| 1033 | |
| 1034 | |
| 1035 | Test Description: Verify that duration_sec in the Flow_Stats reply increments in accordance with the time that flow was alive in sec |
| 1036 | |
| 1037 | Test mode: Automated |
| 1038 | Test Tile: FlowCounter2 |
| 1039 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1040 | Initial State: Default (Clear switch state), Connection setup |
| 1041 | Test-Field: Mandatory |
| 1042 | |
| 1043 | |
| 1044 | Test Notes: |
| 1045 | |
| 1046 | a) Insert a any flow |
| 1047 | b) Send flow_stats_request for that flow periodically after n sec intervals upto timeout of y |
| 1048 | c) Verify each flow_stats_reply has duration_sec field incrementing as n , 2n , 3n .. y |
| 1049 | |
| 1050 | |
| 1051 | |
| 1052 | 4. Duration in nsec per flow |
| 1053 | |
| 1054 | |
| 1055 | Test Description: Verify that duration_nsec in the flow_stats repl increments in accordance with the time flow has been alive in nanoseconds |
| 1056 | beyond duration_sec. |
| 1057 | |
| 1058 | Test mode: Automated |
| 1059 | Test Tile: FlowCounter2 |
| 1060 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1061 | Initial State: Default (Clear switch state), Connection setup |
| 1062 | Test-Field: Mandatory |
| 1063 | |
| 1064 | |
| 1065 | Test Notes: |
| 1066 | |
| 1067 | a) Insert any flow |
| 1068 | b) Send flow_stats_request periodically after n sec intervals upto timeout of y |
| 1069 | c) Verify each flow_stats_reply has duration_sec field incrementing as n , 2n , 3n .. y and read out duration_nsec field ( Verification of nsec field |
| 1070 | is out of scope) |
| 1071 | |
| 1072 | |
| 1073 | |
| 1074 | 5. Received packets per port |
| 1075 | |
| 1076 | |
| 1077 | Test Description: Verify that rx_packets in the Port_Stats reply increments in accordance with the packets recieved on that port |
| 1078 | |
| 1079 | Test mode: Automated |
| 1080 | Test Tile: PortCounter1 |
| 1081 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1082 | Initial State: Default (Clear switch state), Connection setup |
| 1083 | Test-Field: Mandatory |
| 1084 | |
| 1085 | |
| 1086 | Test Notes: |
| 1087 | |
| 1088 | a) Insert a flow with match on ingress_port |
| 1089 | b) Send N packets on the ingress_port |
| 1090 | c) Send port_stats request for port=ingress_port |
| 1091 | d) Verify port_stats_reply has rx_packet=N |
| 1092 | |
| 1093 | |
| 1094 | |
| 1095 | |
| 1096 | 6. Transmitted packets per port |
| 1097 | |
| 1098 | |
| 1099 | Test Description: Verify that tx_packets in the Port_Stats reply increments in accordance with the packets transmitted from a port |
| 1100 | |
| 1101 | Test mode: Automated |
| 1102 | Test Tile: PortCounter2 |
| 1103 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1104 | Initial State: Default (Clear switch state), Connection setup |
| 1105 | Test-Field: Mandatory |
| 1106 | |
| 1107 | |
| 1108 | Test Notes: |
| 1109 | |
| 1110 | a) Insert a flow with match on ingress_port, action output = egress_port |
| 1111 | b) Send N packets on the ingress_port |
| 1112 | c) Send port_stats request for port=ingress_port |
| 1113 | d) Verify port_stats_reply had tx_packets=N |
| 1114 | |
| 1115 | |
| 1116 | |
| 1117 | 7. Received Bytes per port |
| 1118 | |
| 1119 | |
| 1120 | Test Description: Verify that rx_bytes in the Port_Stats reply increments in accordance with the bytes recieved on a port |
| 1121 | |
| 1122 | Test mode: Automated |
| 1123 | Test Tile: PortCounter3 |
| 1124 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1125 | Initial State: Default (Clear switch state), Connection setup |
| 1126 | Test-Field: Mandatory |
| 1127 | |
| 1128 | |
| 1129 | Test Notes: |
| 1130 | |
| 1131 | a) Insert a flow with match on ingress_port, action output = egress_port |
| 1132 | b) Send N packet matching the flow |
| 1133 | c) Send port_stats request for port=ingress_port |
| 1134 | d) Verify port_stats_reply had rx_bytes=N*(no. of bytes in a packet) |
| 1135 | |
| 1136 | |
| 1137 | |
| 1138 | 8. Transmitted Bytes per port |
| 1139 | |
| 1140 | |
| 1141 | Test Description: Verify that tx_bytes in the Port_Stats reply increments in accordance with the bytes transmitted from a port |
| 1142 | |
| 1143 | Test mode: Automated |
| 1144 | Test Tile: PortCounter4 |
| 1145 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1146 | Initial State: Default (Clear switch state), Connection setup |
| 1147 | Test-Field: Mandatory |
| 1148 | |
| 1149 | |
| 1150 | Test Notes: |
| 1151 | |
| 1152 | a) Insert a flow with match on ingress_port, action output = egress_port |
| 1153 | b) Send N packet matching the flow |
| 1154 | c) Send port_stats request for port=ingress_port |
| 1155 | d) Verify port_stats_reply had tx_bytes=N*(no. of bytes in a packet) |
| 1156 | |
| 1157 | |
| 1158 | |
| 1159 | 9. Recieve Drops per port (TBD ---> Verification of counter incrementing correctly) |
| 1160 | |
| 1161 | |
| 1162 | Test Description: Verify that rx_dropped counters in the Port_Stats reply increments in accordance with the packets dropped by RX |
| 1163 | |
| 1164 | Test mode: Automated |
| 1165 | Test Tile: RxDrops |
| 1166 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1167 | Initial State: Default (Clear switch state), Connection setup |
| 1168 | Test-Field: Mandatory |
| 1169 | |
| 1170 | Test Notes : |
| 1171 | |
| 1172 | a) Send port_stats request for port=ingress_port |
| 1173 | b) Verify port_stats reply has rx_dropped count |
| 1174 | |
| 1175 | |
| 1176 | |
| 1177 | |
| 1178 | |
| 1179 | 10. Transmit Drops per port (TBD ---> Verification of counter incrementing correctly) |
| 1180 | |
| 1181 | |
| 1182 | Test Description: Verify that tx_dropped counters in the Port_Stats reply increments in accordance with the packets dropped by TX |
| 1183 | |
| 1184 | Test mode: Automated |
| 1185 | Test Tile: TxDrops |
| 1186 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1187 | Initial State: Default (Clear switch state), Connection setup |
| 1188 | Test-Field: Manadatory |
| 1189 | |
| 1190 | |
| 1191 | a) Send port_stats request for port=ingress_port |
| 1192 | b) Verify port_stats reply has tx_dropped count |
| 1193 | |
| 1194 | |
| 1195 | |
| 1196 | |
| 1197 | 11. Recieve Errors (TBD ---> Verification of counter incrementing correctly) |
| 1198 | |
| 1199 | |
| 1200 | Test Description: Verify that rx_errors counters in the Port_Stats reply increments in accordance with number of recieved error |
| 1201 | This is a super-set of more specific receive errors and should be greater than or equal to the sum of all |
| 1202 | rx_*_err values. |
| 1203 | |
| 1204 | Test mode: Automated |
| 1205 | Test Tile: RxErrors |
| 1206 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1207 | Initial State: Default (Clear switch state), Connection setup |
| 1208 | Test-Field: Mandatory |
| 1209 | |
| 1210 | |
| 1211 | Test Notes: |
| 1212 | |
| 1213 | a) Send port_stats request for port=ingress_port |
| 1214 | b) Verify port_stats reply has rx_errors count |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | 12. Transmit Errors (TBD ---> Verification of counter incrementing correctly) |
| 1219 | |
| 1220 | |
| 1221 | Test Description: Verify that tx_errors counters in the Port_Stats reply increments in accordance with number of trasmit errors |
| 1222 | |
| 1223 | Test mode: Automated |
| 1224 | Test Tile: TxErrors |
| 1225 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1226 | Initial State: Default (Clear switch state), Connection setup |
| 1227 | Test-Field: Mandatory |
| 1228 | |
| 1229 | |
| 1230 | Test Notes: |
| 1231 | |
| 1232 | a) Send port_stats request for port=ingress_port |
| 1233 | b) Verify port_stats reply has tx_errors count |
| 1234 | |
| 1235 | |
| 1236 | |
| 1237 | 13. Recieve Frame Errors (TBD ---> Verification of counter incrementing correctly) |
| 1238 | |
| 1239 | |
| 1240 | Test Description: Verify that rx_frm_err counters in the Port_Stats reply increments in accordance with the number of frame alignment errors |
| 1241 | Test mode: Automated |
| 1242 | Test Tile: RxFrameErr |
| 1243 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1244 | Initial State: Default (Clear switch state), Connection setup |
| 1245 | Test-Field: Mandatory |
| 1246 | |
| 1247 | |
| 1248 | Test Notes: |
| 1249 | |
| 1250 | a) Send port_stats request for port=ingress_port |
| 1251 | b) Verify port_stats reply has rx_frame_err count |
| 1252 | |
| 1253 | |
| 1254 | |
| 1255 | 14. Recieve Overrun Errors (TBD ---> Verification of counter incrementing correctly) |
| 1256 | |
| 1257 | |
| 1258 | Test Description: Verify that rx_over_err counters in the Port_Stats reply increments in accordance with the number of with RX overrun |
| 1259 | |
| 1260 | Test mode: Automated |
| 1261 | Test Tile: RxOErr |
| 1262 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1263 | Initial State: Default (Clear switch state), Connection setup |
| 1264 | Test-Field: Mandatory |
| 1265 | |
| 1266 | |
| 1267 | Test Notes: |
| 1268 | |
| 1269 | a) Send port_stats request for port=ingress_port |
| 1270 | b) Verify port_stats reply has rx_over_err count |
| 1271 | |
| 1272 | |
| 1273 | 15. CRC Errors (TBD ---> Verification of counter incrementing correctly) |
| 1274 | |
| 1275 | |
| 1276 | Test Description: Verify that rx_crc_err counters in the Port_Stats reply increments in accordance with the number of crc errors |
| 1277 | |
| 1278 | Test mode: Automated |
| 1279 | Test Tile: RxCrcErr |
| 1280 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1281 | Initial State: Default (Clear switch state), Connection setup |
| 1282 | Test-Field: Manadatory |
| 1283 | |
| 1284 | |
| 1285 | Test Notes: |
| 1286 | |
| 1287 | a) Send port_stats request for port=ingress_port |
| 1288 | b) Verify port_stats reply has rx_crc_err count |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | 16. Collisions (TBD ---> Verification of counter incrementing correctly) |
| 1293 | |
| 1294 | |
| 1295 | Test Description: Verify that collisons counters in the Port_Stats reply increments in accordance with the collisions encountered by the switch |
| 1296 | |
| 1297 | Test mode: Automated |
| 1298 | Test Tile: Collisions |
| 1299 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1300 | Initial State: Default (Clear switch state), Connection setup |
| 1301 | Test-Field: Mandatory |
| 1302 | |
| 1303 | |
| 1304 | Test Notes: |
| 1305 | |
| 1306 | a) Send port_stats request for port=ingress_port |
| 1307 | b) Verify port_stats reply has collisions count |
| 1308 | |
| 1309 | |
| 1310 | |
| 1311 | 17. Active Entries per Table |
| 1312 | |
| 1313 | |
| 1314 | Test Description: Verify that active_count in the table increments in accordance with the flows inserted in the table |
| 1315 | |
| 1316 | Test mode: Automated |
| 1317 | Test Tile: TableCounter1 |
| 1318 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1319 | Initial State: Default (Clear switch state), Connection setup |
| 1320 | Test-Field: Mandatory |
| 1321 | |
| 1322 | |
| 1323 | Test Notes: |
| 1324 | |
| 1325 | a) Insert a flow |
| 1326 | b) Send table_stats_request |
| 1327 | c) Verify active_count=1 |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | 18. Packet Lookup per Table |
| 1332 | |
| 1333 | |
| 1334 | Test Description: Verify that lookup_count in the Table_Stats reply increments in accordance with the number of packets looked up in table |
| 1335 | |
| 1336 | Test mode: Automated |
| 1337 | Test Tile: TableCounter2 |
| 1338 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1339 | Initial State: Default (Clear switch state), Connection setup |
| 1340 | Test-Field: Mandatory |
| 1341 | |
| 1342 | |
| 1343 | Test Notes: |
| 1344 | |
| 1345 | a) Insert a flow with match on ingress_port |
| 1346 | b) Send N packets on ingress_port (matching the flow) |
| 1347 | c) Send N' packets on x port (Not matching the flow) |
| 1348 | d) Send table_stats_request |
| 1349 | e) Verify lookup_count = N+N' |
| 1350 | |
| 1351 | |
| 1352 | |
| 1353 | 19. Packets matched per Table |
| 1354 | |
| 1355 | Test Description: Verify that matched_count in the Table_Stats reply increments in accordance with the number of packets matched with the table |
| 1356 | |
| 1357 | Test mode: Automated |
| 1358 | Test Tile: TableCounter2 |
| 1359 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1360 | Initial State: Default (Clear switch state), Connection setup |
| 1361 | Test-Field: Mandatory |
| 1362 | |
| 1363 | |
| 1364 | Test Notes: |
| 1365 | |
| 1366 | a) Insert a flow with match on ingress_port |
| 1367 | b) Send N packets on ingress_port (matching the flow) |
| 1368 | c) Send N' packets on x port (Not matching the flow) |
| 1369 | d) Send table_stats_request |
| 1370 | e) Verify matched_count = N |
| 1371 | |
| 1372 | |
| 1373 | |
| 1374 | |
| 1375 | 20. Transmit Packets per Queue |
| 1376 | |
| 1377 | Test Description: Verify that tx_packets in the queue_stats reply increments in accordance with the number of transmitted packets |
| 1378 | |
| 1379 | Test mode: Automated |
| 1380 | Test Tile: QueueCounter1 |
| 1381 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1382 | Initial State: Default (Clear switch state), Connection setup |
| 1383 | Test-Field: Optional |
| 1384 | |
| 1385 | |
| 1386 | Test Notes: |
| 1387 | |
| 1388 | a) Send queue_stats request for ports=ofp.OFPP_ALL and queue_ids=ofp.OFPQ_ALL (i.e all ports and all queues) |
| 1389 | b) Send queue_stats request for egress_port[0] and queue_id[0] and note the tx_packets count in the reply |
| 1390 | c) Insert a flow entry with enqueue action , port = egress_port[0] queue_id= queue_id[0] |
| 1391 | d) Send packet matching the flow |
| 1392 | e) Send queue_stats request again, verify tx_packet count incremented |
| 1393 | f) Repeat b , c , d , e for all the queue_ids configured for egress_port[0] |
| 1394 | h) Repeat b , c , d , e , f for all the egress_ports available |
| 1395 | |
| 1396 | |
| 1397 | |
| 1398 | |
| 1399 | 21. Transmit Bytes per Queue |
| 1400 | |
| 1401 | Test Description: Verify that tx_bytes in the queue_stats reply increments in accordance with the number of transmitted bytes |
| 1402 | |
| 1403 | Test mode: Automated |
| 1404 | Test Tile: QueueCounter2 |
| 1405 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1406 | Initial State: Default (Clear switch state), Connection setup |
| 1407 | Test-Field: Optional |
| 1408 | |
| 1409 | |
| 1410 | Test Notes: |
| 1411 | |
| 1412 | a) Send queue_stats request for ports=ofp.OFPP_ALL and queue_ids=ofp.OFPQ_ALL (i.e all ports and all queues) |
| 1413 | b) Send queue_stats request for egress_port[0] and queue_id[0] and note the tx_bytes count in the reply |
| 1414 | c) Insert a flow entry with enqueue action , port = egress_port[0] queue_id= queue_id[0] |
| 1415 | d) Send packet matching the flow |
| 1416 | e) Send queue_stats request again, verify tx_byte count incremented |
| 1417 | f) Repeat b , c , d , e for all the queue_ids configured for egress_port[0] |
| 1418 | h) Repeat b , c , d , e , f for all the egress_ports available |
| 1419 | |
| 1420 | |
| 1421 | |
| 1422 | 22. Transmit Overrun Errors per queue (TBD ----> Verification of tx_error count being incremented correctly) |
| 1423 | |
| 1424 | Test Description: Verify that tx_errors in the queue_stats reply increments in accordance with the number of packets dropped due to overrun. |
| 1425 | Test mode: Automated |
| 1426 | Test Tile: QueueCounter3 |
| 1427 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1428 | Initial State: Default (Clear switch state), Connection setup |
| 1429 | Test-Field: Optional |
| 1430 | |
| 1431 | Test Notes: |
| 1432 | |
| 1433 | |
| 1434 | a) Send queue_stats request for port=egress_port and queue_ids=ofp.OFPQ_ALL |
| 1435 | B) send queue_stats request for egress_port and queue_id[0] (i.e first queue configured for egress_port) |
| 1436 | c) Verify reply has tx_errors count . |
ShreyaPandita | da75f75 | 2012-10-26 16:26:35 -0400 | [diff] [blame] | 1437 | d) Repear b , c for the all queue_ids of egress_port |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | |
| 1442 | |
| 1443 | **** Flow matches **** |
| 1444 | |
| 1445 | |
| 1446 | |
| 1447 | 1. All Wildcard Match |
| 1448 | |
| 1449 | Test Description: Adding a Flow that matches all the possible fields |
| 1450 | |
| 1451 | Test mode: Automated |
| 1452 | Test Tile: AllWildcardMatch |
| 1453 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1454 | Initial State: Default (Clear switch state), Connection setup |
| 1455 | Test-Field: Mandatory |
| 1456 | |
| 1457 | |
| 1458 | Test Notes: |
| 1459 | |
| 1460 | a) Insert a flow with wildcard = OFPFW_ALL (wildcard all fields), action output to egress_port |
| 1461 | b) Send packets with different header fields |
| 1462 | c) Verify all packets match the flow and implement the action specified. |
| 1463 | |
| 1464 | |
| 1465 | 2. Single Header Field: Ingress Port |
| 1466 | |
| 1467 | Test Description: Match on Ingress Port and Wildcard rest |
| 1468 | |
| 1469 | Test mode: Automated |
| 1470 | Test Tile: IngressPort |
| 1471 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1472 | Initial State: Default (Clear switch state), Connection setup |
| 1473 | Test-Field: Mandatory |
| 1474 | |
| 1475 | |
| 1476 | Test Notes: |
| 1477 | |
| 1478 | a) Insert a flow with match = in_port (say port x), action output to egress_port |
| 1479 | b) Send packet on port x |
| 1480 | c) Verify packet was recieved on egress_port |
| 1481 | d) Send packet on port y |
| 1482 | e) Verify PacketIn event was triggered on control plane |
| 1483 | |
| 1484 | |
| 1485 | |
| 1486 | 3. Single Header Field: Ethernet Src Address |
| 1487 | |
| 1488 | Test Description: Match on Ethernet Source Address and Wildcard rest |
| 1489 | |
| 1490 | Test mode: Automated |
| 1491 | Test Tile: EthernetSrcAddress |
| 1492 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1493 | Initial State: Default (Clear switch state), Connection setup |
| 1494 | Test-Field: Mandatory |
| 1495 | |
| 1496 | |
| 1497 | Test Notes: |
| 1498 | |
| 1499 | a) Insert a flow with match = dl_src (say x) , action output to egress_port |
| 1500 | b) Send packet wth dl_src = x |
| 1501 | c) Verify packet was recieved on egress_port |
| 1502 | d) Send packet with dl_src = y |
| 1503 | e) Verify PacketIn event was triggered on the control plane |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | 4. Single Header Field: Ethernet Dst Address |
| 1508 | |
| 1509 | Test Description: Match on Ethernet Destination Address and Wildcard rest |
| 1510 | |
| 1511 | Test mode: Automated |
| 1512 | Test Tile: EthernetDstAddress |
| 1513 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1514 | Initial State: Default (Clear switch state), Connection setup |
| 1515 | Test-Field: Mandatory |
| 1516 | |
| 1517 | |
| 1518 | Test Notes: |
| 1519 | |
| 1520 | a) Insert a flow with match = dl_dst (say x) , action output to egress_port |
| 1521 | b) Send packet wth dl_dst = x |
| 1522 | c) Verify packet was recieved on egress_port |
| 1523 | d) Send packet with dl_dst = y |
| 1524 | e) Verify PacketIn event was triggered on the control plane |
| 1525 | |
| 1526 | |
| 1527 | |
| 1528 | 5. Single Header Field: Ethernet Type |
| 1529 | |
| 1530 | Test Description: Match on Ehternet Type and Wildcard rest |
| 1531 | |
| 1532 | Test mode: Automated |
| 1533 | Test Tile: EthernetType |
| 1534 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1535 | Initial State: Default (Clear switch state), Connection setup |
| 1536 | Test-Field: Mandatory |
| 1537 | |
| 1538 | |
| 1539 | Test Notes: |
| 1540 | |
| 1541 | a) Insert a flow with match = dl_type (say x) , action output to egress_port |
| 1542 | b) Send packet wth dl_type = x |
| 1543 | c) Verify packet was recieved on egress_port |
| 1544 | d) Send packet with dl_type = y |
| 1545 | e) Verify PacketIn event was triggered on the control plane |
| 1546 | |
| 1547 | |
| 1548 | |
| 1549 | |
| 1550 | 6. Single Header Field: Vlan Id |
| 1551 | |
| 1552 | Test Description: Match on Ingress Port and Wildcard rest |
| 1553 | |
| 1554 | Test mode: Automated |
| 1555 | Test Tile: VlanId |
| 1556 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1557 | Initial State: Default (Clear switch state), Connection setup |
| 1558 | Test-Field: Mandatory |
| 1559 | |
| 1560 | |
| 1561 | Test Notes: |
| 1562 | |
| 1563 | a) Insert a flow with match = dl_vlan (say x) , action output to egress_port |
| 1564 | b) Send a tagged packet with (dl_vlan_enable=True,dl_vlan = x) |
| 1565 | c) Verify packet was recieved on egress_port |
| 1566 | d) Send another tagged packet with (dl_vlan_enable=True,dl_vlan = y ) |
| 1567 | e) Verify PacketIn event was triggered on the control plane |
| 1568 | |
| 1569 | |
| 1570 | |
| 1571 | |
| 1572 | 7. Single Header Field: Vlan PCP |
| 1573 | |
| 1574 | Test Description: Match on Vlan ID Priority |
| 1575 | |
| 1576 | Test mode: Automated |
| 1577 | Test Tile: VlanPcp |
| 1578 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1579 | Initial State: Default (Clear switch state), Connection setup |
| 1580 | Test-Field: Mandatory |
| 1581 | |
| 1582 | |
| 1583 | Test Notes: |
| 1584 | |
| 1585 | a) Insert a flow with match = dl_vlan_pcp (say x) , action output to egress_port |
| 1586 | b) Send a tagged packet with (dl_vlan_enable=True, dl_vlan = * , dl_vlan_pcp = x) |
| 1587 | c) Verify packet was recieved on egress_port |
| 1588 | b) Send a tagged packet with (dl_vlan_enable=True, dl_vlan = * , dl_vlan_pcp = y) |
| 1589 | e) Verify PacketIn event was triggered on the control plane |
| 1590 | |
| 1591 | |
| 1592 | |
| 1593 | |
| 1594 | |
| 1595 | 8. Single Header Field: IP Src Address -------- > (TBD) |
| 1596 | |
| 1597 | Test Description: Match on IP Src Address and Wildcard rest |
| 1598 | |
| 1599 | Test mode: Automated |
| 1600 | Test Tile: IPSrcAddress |
| 1601 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1602 | Initial State: Default (Clear switch state), Connection setup |
| 1603 | Test-Field: Mandatory |
| 1604 | |
| 1605 | |
| 1606 | |
| 1607 | |
| 1608 | 9. Single Header Field: IP Dst Address -----------> (TBD) |
| 1609 | |
| 1610 | Test Description: Match on IP Dst Address and Wildcard rest |
| 1611 | |
| 1612 | Test mode: Automated |
| 1613 | Test Tile: IPDstAddress |
| 1614 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1615 | Initial State: Default (Clear switch state), Connection setup |
| 1616 | Test-Field: Mandatory |
| 1617 | |
| 1618 | |
| 1619 | |
| 1620 | |
| 1621 | |
| 1622 | 10. Single Header Field: IP protocol---------------> (TBD) |
| 1623 | |
| 1624 | Test Description: Match on IP Protocol and Wildcard rest |
| 1625 | |
| 1626 | Test mode: Automated |
| 1627 | Test Tile: IPprotocol |
| 1628 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1629 | Initial State: Default (Clear switch state), Connection setup |
| 1630 | Test-Field: Mandatory |
| 1631 | |
| 1632 | |
| 1633 | |
| 1634 | |
| 1635 | |
| 1636 | |
| 1637 | 11. Single Header Field: IP Tos bits |
| 1638 | |
| 1639 | Test Description: Match on IP Tos bits and Wildcard rest |
| 1640 | |
| 1641 | Test mode: Automated |
| 1642 | Test Tile: IpTos |
| 1643 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1644 | Initial State: Default (Clear switch state), Connection setup |
| 1645 | Test-Field: Mandatory |
| 1646 | |
| 1647 | |
| 1648 | Test Notes: |
| 1649 | |
| 1650 | a) Insert a flow with match = nw_tos (say x) , action output to egress_port |
| 1651 | b) Send a tcp packet with (nw_tos=x) |
| 1652 | c) Verify packet was recieved on egress_port |
| 1653 | b) Send a tcp packet with (nw_tos = y) |
| 1654 | e) Verify PacketIn event was triggered on the control plane |
| 1655 | |
| 1656 | |
| 1657 | |
| 1658 | 12. Single Header Field: Transport Source Port |
| 1659 | |
| 1660 | Test Description: Match on Transport Src Port and Wildcard rest |
| 1661 | |
| 1662 | Test mode: Automated |
| 1663 | Test Tile: TcpSrcPort |
| 1664 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1665 | Initial State: Default (Clear switch state), Connection setup |
| 1666 | Test-Field: Mandatory |
| 1667 | |
| 1668 | |
| 1669 | Test Notes: |
| 1670 | |
| 1671 | a) Insert a flow with match = tp_src (say x) , action output to egress_port |
| 1672 | b) Send a tcp packet with (tp_src=x) |
| 1673 | c) Verify packet was recieved on egress_port |
| 1674 | b) Send a tcp packet with tp_src= y) |
| 1675 | e) Verify PacketIn event was triggered on the control plane |
| 1676 | |
| 1677 | |
| 1678 | |
| 1679 | 13. Single Header Field: Transport Destination Port |
| 1680 | |
| 1681 | Test Description: Match on Transport Dst Port and Wildcard rest |
| 1682 | |
| 1683 | Test mode: Automated |
| 1684 | Test Tile: TcpDstPort |
| 1685 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1686 | Initial State: Default (Clear switch state), Connection setup |
| 1687 | Test-Field: Mandatory |
| 1688 | |
| 1689 | |
| 1690 | Test Notes: |
| 1691 | |
| 1692 | a) Insert a flow with match = tp_dst (say x) , action output to egress_port |
| 1693 | b) Send a tcp packet with (tp_dst=x) |
| 1694 | c) Verify packet was recieved on egress_port |
| 1695 | b) Send a tcp packet with tp_dst = y) |
| 1696 | e) Verify PacketIn event was triggered on the control plane |
| 1697 | |
| 1698 | |
| 1699 | |
| 1700 | |
| 1701 | 14. Multiple Header Fields: L2 |
| 1702 | |
| 1703 | |
| 1704 | Test Description: Match on Ethernet Type, Ethernet Source Address, Ethernet Destination Address and Wildcard rest |
| 1705 | |
| 1706 | Test mode: Automated |
| 1707 | Test Tile: MultipleHeaderFieldL2 |
| 1708 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1709 | Initial State: Default (Clear switch state), Connection setup |
| 1710 | Test-Field: Mandatory |
| 1711 | |
| 1712 | |
| 1713 | Test Notes: |
| 1714 | |
| 1715 | a) Insert a flow with match = dl_type (say x), dl_src (say y ), dl_dst (say z), action output to egress_port |
| 1716 | b) Send a eth packet with dl_type (say x), dl_src (say y ), dl_dst (say z) |
| 1717 | c) Verify packet was recieved on egress_port |
| 1718 | b) Send a eth packet with dl_type (say w), dl_src (say v ), dl_dst (say f) |
| 1719 | e) Verify PacketIn event was triggered on the control plane |
| 1720 | |
| 1721 | |
| 1722 | |
| 1723 | 15. Multiple Header Fields: L3 ------> TBD |
| 1724 | |
| 1725 | |
| 1726 | |
| 1727 | |
| 1728 | 16. Multiple Header Fields: L4 |
| 1729 | |
| 1730 | Test Description: Match on Tcp Source Port, Tcp Destination Port |
| 1731 | |
| 1732 | Test mode: Automated |
| 1733 | Test Tile: MultipleHeaderFieldL4 |
| 1734 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1735 | Initial State: Default (Clear switch state), Connection setup |
| 1736 | Test-Field: Mandatory |
| 1737 | |
| 1738 | |
| 1739 | Test Notes: |
| 1740 | |
| 1741 | a) Insert a flow with match = tp_src (say x), tp_dst (say y ) |
| 1742 | b) Send a tcp packet with tp_src (say x), tp_dst (say y ) |
| 1743 | c) Verify packet was recieved on egress_port |
| 1744 | b) Send a eth packet with tcp_src (say w), tcp_dst (say v ) |
| 1745 | e) Verify PacketIn event was triggered on the control plane |
| 1746 | |
| 1747 | |
| 1748 | |
| 1749 | 17. All Header Fields: Exact Match flows |
| 1750 | |
| 1751 | Test Description: Verify exact flow matches are possible |
| 1752 | |
| 1753 | Test mode: Automated |
| 1754 | Test Tile: ExactMatch |
| 1755 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1756 | Initial State: Default (Clear switch state), Connection setup |
| 1757 | Test-Field: Mandatory |
| 1758 | |
| 1759 | |
| 1760 | Test Notes: |
| 1761 | |
| 1762 | a) Insert a flow with exact match, action output to egress_port |
| 1763 | b) Send packet matching the flow |
| 1764 | c) Verify packet received on egress_port |
| 1765 | d) Send a non-matching packet |
| 1766 | e) Verify PacketIn event gets triggered |
| 1767 | |
| 1768 | |
| 1769 | |
| 1770 | 18. Exact Match Highest Priority |
| 1771 | |
| 1772 | Test Description: An exact match flow entry has a highest priority compared to other flow entries |
| 1773 | |
| 1774 | Test mode: Automated |
| 1775 | Test Tile: ExactMatchHigh |
| 1776 | POrts: 4 (1 Control Plane 3 Data Plane) |
| 1777 | Initial State: Default (Clear switch state), Connection setup |
| 1778 | Test-Field: Mandatory |
| 1779 | |
| 1780 | |
| 1781 | Test Notes: |
| 1782 | |
| 1783 | a) Insert two overlapping flows: |
| 1784 | Exact Match (prio = p ) action egress_port |
| 1785 | Wildacrd All (prio = p+ ) action egress_port2 |
| 1786 | b) Send packet matching the flows |
| 1787 | c) Verify packet received on egress_port |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | 19. Wildcard Match Highest Priority |
| 1793 | |
| 1794 | Test Description: If Wildcard flow entries have priority associated with them. |
| 1795 | Higher priority Wildcard flow overrides the lower priroty Wildcard flow |
| 1796 | |
| 1797 | Test mode: Automated |
| 1798 | Test Tile: WildcardMatchHigh |
| 1799 | POrts: 4 (1 Control Plane 3 Data Plane) |
| 1800 | Initial State: Default (Clear switch state), Connection setup |
| 1801 | Test-Field: Mandatory |
| 1802 | |
| 1803 | |
| 1804 | Test Notes: |
| 1805 | |
| 1806 | a) Insert two wildcarded flows : |
| 1807 | Wildcard All Except ingress (prio = p ) , action = egress_port |
| 1808 | Wildcard All (prio = p+ ) ,action = egress_port2 |
| 1809 | b) Send packet matching the flows |
| 1810 | c) Verify packet is recieved on egress_port2 |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | 20. Fragment TCP Segments ------> TBD |
| 1815 | |
| 1816 | Test Description: Create flow matching on tcp port number. Verify that fragmented packets always match that flow rule. |
| 1817 | |
| 1818 | Test mode: Automated |
| 1819 | Test Tile: FragTcpSeg |
| 1820 | POrts: 3 (1 Control Plane 2 Data Plane) |
| 1821 | Initial State: Default (Clear switch state), Connection setup |
| 1822 | Test-Field: Mandatory |