301 | | '''Using:''' |
302 | | * From a login to the dataplane switch, view the !OpenFlow configuration. |
303 | | * On flowvisor, use fvctl to view the set of devices reporting to the !FlowVisor |
| 300 | Login to Data plane switch to show !OpenFlow configuration and flows: |
| 301 | |
| 302 | {{{ |
| 303 | $ ssh boss.instageni.gpolab.com |
| 304 | [lnevers@boss ~]$ sudo more /usr/testbed/etc/switch.pswd |
| 305 | [lnevers@boss ~]$ ssh manager@procurve2 |
| 306 | |
| 307 | manager@procurve2's password: |
| 308 | |
| 309 | HP-E5406zl# show openflow |
| 310 | HP-E5406zl# show openflow |
| 311 | |
| 312 | Openflow Configuration |
| 313 | |
| 314 | Openflow aggregate VLANs [Disabled] : |
| 315 | Openflow aggregate management VlanId [0] : 0 |
| 316 | Openflow second aggregate management VlanId [0] : 0 |
| 317 | Openflow aggregate configuration VlanId [0] : 0 |
| 318 | |
| 319 | VID State HW Active controller Pseudo-URL Conn |
| 320 | ---- ----- --- -------------------------------------------------- ---- |
| 321 | 1750 On On tcp:10.3.1.7:6633 Yes |
| 322 | 1755 On On tcp:10.3.1.7:6633 Yes |
| 323 | 1756 On On tcp:10.3.1.7:6633 Yes |
| 324 | 1757 On On tcp:10.3.1.7:6633 Yes |
| 325 | 1758 On On tcp:10.3.1.7:6633 Yes |
| 326 | 1759 On On tcp:10.3.1.7:6633 Yes |
| 327 | |
| 328 | HP-E5406zl# show openflow 1750 flows |
| 329 | |
| 330 | Openflow flows - VLAN 1750 |
| 331 | |
| 332 | Flow 1 |
| 333 | Incoming Port : 120 HW acceleration : Yes |
| 334 | Destination MAC : 02fd27-710df7 Source MAC : 0026b9-7e6cc8 |
| 335 | VLAN ID : 65535 VLAN Priority : 0 |
| 336 | Source IP : 10.50.1.100 Destination IP : 10.50.2.5 |
| 337 | IP Protocol : ICMP IP ToS bits : 0 |
| 338 | ICMP Type : 8 ICMP Code : 0 |
| 339 | Duration : 2s secs Priority : 65535 |
| 340 | Idle Timeout : 5 secs Hard Timeout : 0 secs |
| 341 | Packet Count : 2 Bytes Count : 98 |
| 342 | Actions : output:97 |
| 343 | |
| 344 | Flow 2 |
| 345 | Incoming Port : 97 HW acceleration : Yes |
| 346 | Destination MAC : 0026b9-7e6cc8 Source MAC : 02fd27-710df7 |
| 347 | VLAN ID : 65535 VLAN Priority : 0 |
| 348 | Source IP : 10.50.2.5 Destination IP : 10.50.1.100 |
| 349 | IP Protocol : ICMP IP ToS bits : 0 |
| 350 | ICMP Type : 8 ICMP Code : 0 |
| 351 | Duration : 1275960s secs Priority : 65535 |
| 352 | Idle Timeout : 5 secs Hard Timeout : 0 secs |
| 353 | Packet Count : 1268221 Bytes Count : 98 |
| 354 | Actions : output:120 |
| 355 | |
| 356 | Flow 3 |
| 357 | Incoming Port : 97 HW acceleration : Yes |
| 358 | Destination MAC : 0026b9-7e6cc8 Source MAC : 02fd27-710df7 |
| 359 | VLAN ID : 65535 VLAN Priority : 0 |
| 360 | Source IP : 10.50.2.5 Destination IP : 10.50.1.100 |
| 361 | IP Protocol : ICMP IP ToS bits : 0 |
| 362 | ICMP Type : 0 ICMP Code : 0 |
| 363 | Duration : 2s secs Priority : 65535 |
| 364 | Idle Timeout : 5 secs Hard Timeout : 0 secs |
| 365 | Packet Count : 2 Bytes Count : 98 |
| 366 | Actions : output:120 |
| 367 | |
| 368 | Flow 4 |
| 369 | Incoming Port : 120 HW acceleration : Yes |
| 370 | Destination MAC : 02fd27-710df7 Source MAC : 0026b9-7e6cc8 |
| 371 | VLAN ID : 65535 VLAN Priority : 0 |
| 372 | Source IP : 10.50.1.100 Destination IP : 10.50.2.5 |
| 373 | IP Protocol : ICMP IP ToS bits : 0 |
| 374 | ICMP Type : 0 ICMP Code : 0 |
| 375 | Duration : 1275960s secs Priority : 65535 |
| 376 | Idle Timeout : 5 secs Hard Timeout : 0 secs |
| 377 | Packet Count : 1268221 Bytes Count : 98 |
| 378 | Actions : output:97 |
| 379 | |
| 380 | HP-E5406zl# show openflow version |
| 381 | |
| 382 | Openflow Version |
| 383 | |
| 384 | HP Networking OpenFlow Agent Version 2.02w. |
| 385 | Based on Open vSwitch Reference Source code Version 1.0.0. |
| 386 | Switch software Version K.15.06.5008. |
| 387 | |
| 388 | HP-E5406zl# |
| 389 | |
| 390 | }}} |
| 391 | |
| 392 | Login to !FlowVisor host and show active flows and !FlowVisor configuration: |
| 393 | |
| 394 | {{{ |
| 395 | LNM:~$ ssh flowvisor.instageni.gpolab.bbn.com |
| 396 | lnevers@flowvisor:~$ fvctl --passwd-file=/etc/flowvisor.passwd listFlowSpace |
| 397 | Got reply: |
| 398 | rule 0: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x800,nw_dst=10.42.15.0/24,nw_src=10.42.15.0/24]],actionsList=[Slice:8a0abd6f-0f5a-469f-91d2-c7f990b8494e=4],id=[13],priority=[2000],] |
| 399 | rule 1: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x806,nw_dst=10.42.15.0/24,nw_src=10.42.15.0/24]],actionsList=[Slice:8a0abd6f-0f5a-469f-91d2-c7f990b8494e=4],id=[14],priority=[2000],] |
| 400 | rule 2: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x800,nw_dst=10.42.16.0/24,nw_src=10.42.16.0/24]],actionsList=[Slice:a92990b6-1ede-4dd7-b6f6-7b4a4bd36fd7=4],id=[15],priority=[2000],] |
| 401 | rule 3: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x806,nw_dst=10.42.16.0/24,nw_src=10.42.16.0/24]],actionsList=[Slice:a92990b6-1ede-4dd7-b6f6-7b4a4bd36fd7=4],id=[16],priority=[2000],] |
| 402 | rule 4: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x800,nw_dst=10.50.0.0/16,nw_src=10.50.0.0/16]],actionsList=[Slice:b7850c93-110f-4e63-a121-26f3449dac44=4],id=[21],priority=[2000],] |
| 403 | rule 5: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x806,nw_dst=10.50.0.0/16,nw_src=10.50.0.0/16]],actionsList=[Slice:b7850c93-110f-4e63-a121-26f3449dac44=4],id=[22],priority=[2000],] |
| 404 | rule 6: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x800,nw_dst=10.42.11.0/24,nw_src=10.42.11.0/24]],actionsList=[Slice:03f03910-1176-428b-b00f-d4d4ddaab9ab=4],id=[79],priority=[2000],] |
| 405 | rule 7: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x806,nw_dst=10.42.11.0/24,nw_src=10.42.11.0/24]],actionsList=[Slice:03f03910-1176-428b-b00f-d4d4ddaab9ab=4],id=[80],priority=[2000],] |
| 406 | rule 8: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x800,nw_dst=10.42.13.0/24,nw_src=10.42.13.0/24]],actionsList=[Slice:33a83d5f-4da1-4d98-8095-8b62623c26b1=4],id=[87],priority=[2000],] |
| 407 | rule 9: FlowEntry[dpid=[06:d6:84:34:97:c6:c9:00],ruleMatch=[OFMatch[dl_type=0x806,nw_dst=10.42.13.0/24,nw_src=10.42.13.0/24]],actionsList=[Slice:33a83d5f-4da1-4d98-8095-8b62623c26b1=4],id=[88],priority=[2000],] |
| 408 | |
| 409 | lnevers@flowvisor:~$ fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig /tmp/flowvisor-config |
| 410 | lnevers@flowvisor:~$ more /tmp/flowvisor-config |
| 411 | { |
| 412 | "flowvisor": [ |
| 413 | { |
| 414 | "api_webserver_port": 8080, |
| 415 | "api_jetty_webserver_port": -1, |
| 416 | "checkpointing": false, |
| 417 | "listen_port": 6633, |
| 418 | "track_flows": false, |
| 419 | "stats_desc_hack": false, |
| 420 | "run_topology_server": false, |
| 421 | "logging": "NOTE", |
| 422 | "log_ident": "flowvisor", |
| 423 | "log_facility": "LOG_LOCAL7", |
| 424 | "version": "flowvisor-0.9", |
| 425 | "host": "localhost", |
| 426 | "default_flood_perm": "fvadmin", |
| 427 | "config_name": "default" |
| 428 | } |
| 429 | ], |
| 430 | "Slice": [ |
| 431 | { |
| 432 | "config_name": "default", |
| 433 | "flowmap_type": "federated", |
| 434 | "name": "fvadmin", |
| 435 | "creator": "fvadmin", |
| 436 | "passwd_crypt": "xxxxxx", |
| 437 | "passwd_salt": "xxxxxx", |
| 438 | "controller_hostname": "none", |
| 439 | "controller_port": 0, |
| 440 | "contact_email": "fvadmin@localhost", |
| 441 | "drop_policy": "exact", |
| 442 | "lldp_spam": true |
| 443 | }, |
| 444 | { |
| 445 | "config_name": "default", |
| 446 | "flowmap_type": "federated", |
| 447 | "name": "8a0abd6f-0f5a-469f-91d2-c7f990b8494e", |
| 448 | "creator": "fvadmin", |
| 449 | "passwd_crypt": "xxxx", |
| 450 | "passwd_salt": "xxx", |
| 451 | "controller_hostname": "naxos.gpolab.bbn.com", |
| 452 | "controller_port": 33015, |
| 453 | "contact_email": "jbs@pgeni.gpolab.bbn.com", |
| 454 | "drop_policy": "exact", |
| 455 | "lldp_spam": true |
| 456 | }, |
| 457 | { |
| 458 | "config_name": "default", |
| 459 | "flowmap_type": "federated", |
| 460 | "name": "a92990b6-1ede-4dd7-b6f6-7b4a4bd36fd7", |
| 461 | "creator": "fvadmin", |
| 462 | "passwd_crypt": "xxxx", |
| 463 | "passwd_salt": "xxxx", |
| 464 | "controller_hostname": "naxos.gpolab.bbn.com", |
| 465 | "controller_port": 33016, |
| 466 | "contact_email": "jbs@pgeni.gpolab.bbn.com", |
| 467 | "drop_policy": "exact", |
| 468 | "lldp_spam": true |
| 469 | }, |
| 470 | { |
| 471 | "config_name": "default", |
| 472 | "flowmap_type": "federated", |
| 473 | "name": "b7850c93-110f-4e63-a121-26f3449dac44", |
| 474 | "creator": "fvadmin", |
| 475 | "passwd_crypt": "xxxx", |
| 476 | "passwd_salt": "-xxx", |
| 477 | "controller_hostname": "naxos.gpolab.bbn.com", |
| 478 | "controller_port": 31750, |
| 479 | "contact_email": "tupty@pgeni.gpolab.bbn.com", |
| 480 | "drop_policy": "exact", |
| 481 | "lldp_spam": true |
| 482 | }, |
| 483 | { |
| 484 | "config_name": "default", |
| 485 | "flowmap_type": "federated", |
| 486 | "name": "03f03910-1176-428b-b00f-d4d4ddaab9ab", |
| 487 | "creator": "fvadmin", |
| 488 | "passwd_crypt": "xxx", |
| 489 | "passwd_salt": "xxx", |
| 490 | "controller_hostname": "mallorea.gpolab.bbn.com", |
| 491 | "controller_port": 33020, |
| 492 | "contact_email": "lnevers@pgeni.gpolab.bbn.com", |
| 493 | "drop_policy": "exact", |
| 494 | "lldp_spam": true |
| 495 | }, |
| 496 | { |
| 497 | "config_name": "default", |
| 498 | "flowmap_type": "federated", |
| 499 | "name": "33a83d5f-4da1-4d98-8095-8b62623c26b1", |
| 500 | "creator": "fvadmin", |
| 501 | "passwd_crypt": "xxxx", |
| 502 | "passwd_salt": "-xxx", |
| 503 | "controller_hostname": "mallorea.gpolab.bbn.com", |
| 504 | "controller_port": 33017, |
| 505 | "contact_email": "lnevers@bbn.com", |
| 506 | "drop_policy": "exact", |
| 507 | "lldp_spam": true |
| 508 | } |
| 509 | ], |
| 510 | "FlowSpaceRule": [ |
| 511 | { |
| 512 | "dpid": "6d6843497c6c900", |
| 513 | "priority": 2000, |
| 514 | "in_port": 0, |
| 515 | "dl_type": 2048, |
| 516 | "nw_src": 170528512, |
| 517 | "nw_dst": 170528512, |
| 518 | "wildcards": 3279087, |
| 519 | "slice_action": [ |
| 520 | { |
| 521 | "8a0abd6f-0f5a-469f-91d2-c7f990b8494e": 4 |
| 522 | } |
| 523 | ] |
| 524 | }, |
| 525 | { |
| 526 | "dpid": "6d6843497c6c900", |
| 527 | "priority": 2000, |
| 528 | "in_port": 0, |
| 529 | "dl_type": 2054, |
| 530 | "nw_src": 170528512, |
| 531 | "nw_dst": 170528512, |
| 532 | "wildcards": 3279087, |
| 533 | "slice_action": [ |
| 534 | { |
| 535 | "8a0abd6f-0f5a-469f-91d2-c7f990b8494e": 4 |
| 536 | } |
| 537 | ] |
| 538 | }, |
| 539 | { |
| 540 | "dpid": "6d6843497c6c900", |
| 541 | "priority": 2000, |
| 542 | "in_port": 0, |
| 543 | "dl_type": 2048, |
| 544 | "nw_src": 170528768, |
| 545 | "nw_dst": 170528768, |
| 546 | "wildcards": 3279087, |
| 547 | "slice_action": [ |
| 548 | { |
| 549 | "a92990b6-1ede-4dd7-b6f6-7b4a4bd36fd7": 4 |
| 550 | } |
| 551 | ] |
| 552 | }, |
| 553 | { |
| 554 | "dpid": "6d6843497c6c900", |
| 555 | "priority": 2000, |
| 556 | "in_port": 0, |
| 557 | "dl_type": 2054, |
| 558 | "nw_src": 170528768, |
| 559 | "nw_dst": 170528768, |
| 560 | "wildcards": 3279087, |
| 561 | "slice_action": [ |
| 562 | { |
| 563 | "a92990b6-1ede-4dd7-b6f6-7b4a4bd36fd7": 4 |
| 564 | } |
| 565 | ] |
| 566 | }, |
| 567 | { |
| 568 | "dpid": "6d6843497c6c900", |
| 569 | "priority": 2000, |
| 570 | "in_port": 0, |
| 571 | "dl_type": 2048, |
| 572 | "nw_src": 171048960, |
| 573 | "nw_dst": 171048960, |
| 574 | "wildcards": 3412207, |
| 575 | "slice_action": [ |
| 576 | { |
| 577 | "b7850c93-110f-4e63-a121-26f3449dac44": 4 |
| 578 | } |
| 579 | ] |
| 580 | }, |
| 581 | { |
| 582 | "dpid": "6d6843497c6c900", |
| 583 | "priority": 2000, |
| 584 | "in_port": 0, |
| 585 | "dl_type": 2054, |
| 586 | "nw_src": 171048960, |
| 587 | "nw_dst": 171048960, |
| 588 | "wildcards": 3412207, |
| 589 | "slice_action": [ |
| 590 | { |
| 591 | "b7850c93-110f-4e63-a121-26f3449dac44": 4 |
| 592 | } |
| 593 | ] |
| 594 | }, |
| 595 | { |
| 596 | "dpid": "6d6843497c6c900", |
| 597 | "priority": 2000, |
| 598 | "in_port": 0, |
| 599 | "dl_type": 2048, |
| 600 | "nw_src": 170527488, |
| 601 | "nw_dst": 170527488, |
| 602 | "wildcards": 3279087, |
| 603 | "slice_action": [ |
| 604 | { |
| 605 | "03f03910-1176-428b-b00f-d4d4ddaab9ab": 4 |
| 606 | } |
| 607 | ] |
| 608 | }, |
| 609 | { |
| 610 | "dpid": "6d6843497c6c900", |
| 611 | "priority": 2000, |
| 612 | "in_port": 0, |
| 613 | "dl_type": 2054, |
| 614 | "nw_src": 170527488, |
| 615 | "nw_dst": 170527488, |
| 616 | "wildcards": 3279087, |
| 617 | "slice_action": [ |
| 618 | { |
| 619 | "03f03910-1176-428b-b00f-d4d4ddaab9ab": 4 |
| 620 | } |
| 621 | ] |
| 622 | }, |
| 623 | { |
| 624 | "dpid": "6d6843497c6c900", |
| 625 | "priority": 2000, |
| 626 | "in_port": 0, |
| 627 | "dl_type": 2048, |
| 628 | "nw_src": 170528000, |
| 629 | "nw_dst": 170528000, |
| 630 | "wildcards": 3279087, |
| 631 | "slice_action": [ |
| 632 | { |
| 633 | "33a83d5f-4da1-4d98-8095-8b62623c26b1": 4 |
| 634 | } |
| 635 | ] |
| 636 | }, |
| 637 | { |
| 638 | "dpid": "6d6843497c6c900", |
| 639 | "priority": 2000, |
| 640 | "in_port": 0, |
| 641 | "dl_type": 2054, |
| 642 | "nw_src": 170528000, |
| 643 | "nw_dst": 170528000, |
| 644 | "wildcards": 3279087, |
| 645 | "slice_action": [ |
| 646 | { |
| 647 | "33a83d5f-4da1-4d98-8095-8b62623c26b1": 4 |
| 648 | } |
| 649 | ] |
| 650 | } |
| 651 | ] |
| 652 | } |
| 653 | lnevers@flowvisor:~$ |
| 654 | }}} |
| 655 | |
| 656 | Login to FOAM host to show FOAM configuration and active flows: |
| 657 | |
| 658 | |
| 659 | |