Changes between Version 21 and Version 22 of Documentation/fSDN/OpenFlow
- Timestamp:
- Nov 19, 2013, 7:10:17 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/fSDN/OpenFlow
v21 v22 27 27 28 28 29 Preparing the switch for !OpenFlow mode includes: assigning h/w resources for !OpenFlow flows, enabling !OpenFlow mode and enabling specific versions (e.g., 1.1, 1.2 or 1.3), setting required ports as crossflow, and finally adding the 'match' and 'action' details for each flow. As a more standard alternative to the last step of introducing flow rules through the CLI, detailed for a remote !OpenFlow controller can be configured that will then receive headers/packets that are not handled locally on the designated crossflow ports. An example of each step is shown in the following excerpt from a CLI session:29 Preparing the switch for !OpenFlow mode includes: assigning h/w resources for !OpenFlow flows, enabling !OpenFlow mode and enabling specific versions (e.g., 1.1, 1.2 or 1.3), setting ports as crossflow, and lastly adding the 'match' and 'action' rules for expected flow. As an alternative to locally introduced flow rules using the CLI, a remote !OpenFlow controller can be configured which will then receive OpenFlow notifications (PacketIns) for flows not handled locally. The following CLI session excerpt details the commands required to accomplish the above steps: 30 30 31 31 {{{ 32 32 33 -- set tcam/routing table resources 33 -- 0. Load a 'clean' configuration to nullify changes made by previous experimenters -- 34 35 -- 1. In configure mode, set tcam/routing table resources 34 36 35 37 XorPlus# set interface max-acl-rule-limit ingress 400 … … 38 40 [edit] 39 41 40 -- (globally) enable OpenFlow, and set the working mode, i.e., either L2/L3 or TCAM modes 42 -- 2. Commit configuration and restart switch for resource allocation to take hold -- 43 XorPlus# save running-to-startup 44 Save done. 45 [edit] 46 XorPlus# exit 47 XorPlus> request system reboot 48 49 -- 3. In config mode, enable OpenFlow operation and set the working mode to L2/L3 or TCAM mode -- 41 50 42 51 XorPlus# set open-flow … … 45 54 [edit] 46 55 47 -- enable specific OF version, e.g., v 1.356 -- 4. Enable specific OF version, e.g., v 1.3 48 57 49 58 XorPlus# set open-flow allowed-versions openflow-v1.3 disable false 50 59 [edit] 51 60 52 -- set required ports in crossflow mode, with or without local control61 -- 5. Set required ports in crossflow mode, with or without local control 53 62 54 63 XorPlus# set interface gigabit-ethernet ge-1/1/1 crossflow enable true … … 59 68 [edit] 60 69 61 -- add flow rules directly from CLI70 -- 6. Add flow rules directly from CLI for ports with local control enabled 62 71 63 72 XorPlus# set open-flow flow f1 match-field ethernet-destination-address 22:22:22:22:22:22 … … 71 80 XorPlus# set open-flow flow f1 action output interface ge-1/1/1 72 81 73 -- configure controller IP/port/transport for non-local control82 -- 7. Configure controller IP/port/transport for non-local control 74 83 75 84 XorPlus# set open-flow controller contr-serv address 10.19.0.11 … … 80 89 [edit] 81 90 XorPlus# commit 91 Waiting for merging configuration. 92 Commit OK. 93 Save done. 94 [edit] 95 XorPlus# exit 96 XorPlus> 82 97 83 98 }}} … … 91 106 92 107 === Switching Modes using Web Service === 93 108 Note: 109 The web service is being upgraded to conform to the latest ORBIT Management Framework software, hence the switch will remain in the L2/L3 mode at all times. This means the OVS and NFS modes are presently unavailable. 94 110 95 111 === Access to Switch CLI === 96 112 97 Access to the switch CLI while the switch is in the L2/L3 mode or the OVS mode is enabled through ssh using the following account credentials:113 You can access switch CLI through a ssh session, if the switch is in either of L2/L3 or OVS modes: 98 114 99 115 {{{ 100 ssh host /IP: sw-sb-09.orbit-lab.org/10.19.0.253116 ssh hostname/IP: sw-sb-09.orbit-lab.org/10.19.0.253 101 117 username: sb9user 102 118 passwd: sb9passwd 103 119 }}} 104 120 105 Note that the ssh works from within sb9 only, and would therefore require the experimenter to have reserved a SB9 time slot.121 Note: ssh access is restricted to from within the sb9 sandbox (incl. the sb9 console) and would therefore require the experimenter to have reserved SB9 to access the switch CLI. 106 122 107 While in L2/L3 mode, the XorPlus CLI under the above account grants complete control to configure the switch and also to load/store configuration files on the root file system. However, it is requested that experimenters who want to preserve their configs to copy out their configurations files using tftp, etc., to external locations and load them when required again. Below are the relevant CLI steps with further details in the attached configuration guide. Please exercise prudence and caution when saving or moving configuration files in/out of the root file system. 123 === Loading and Saving Switch Configurations === 124 125 While in L2/L3 mode, the XorPlus CLI under the above account grants complete control to configure the switch and also to load/store configuration files on the root file system. However, it is suggested that experimenters preserve their configs by copying out their configurations (using tftp, etc.) to external locations, and to load them back when required. Below are the relevant CLI commands with further details in the attached PicOS configuration guide from Pica8. Please exercise prudence and caution when saving or moving configuration files in/out of the root file system. 108 126 109 127 {{{ 110 128 -- retrieve config file from external location; scp can be used in place of tftp 111 129 112 XorPlus> file tftp get remote-file basic.conf local-file /pica/config/sb9user/ ychen.conf <server IP>130 XorPlus> file tftp get remote-file basic.conf local-file /pica/config/sb9user/iamxyz-mm-dd-yyyy.conf <server IP> 113 131 XorPlus> configure 114 132 115 -- load previously stored config file133 -- load locally stored config file 116 134 117 XorPlus# load ychen.conf 135 XorPlus# load iamxyz-mm-dd-yyyy.conf 136 118 137 -- make any number of changes and commit 119 138 … … 122 141 -- save current configuration changes to specific file 123 142 124 XorPlus# save ychen-latest.conf143 XorPlus# save iamxyz-latest.conf 125 144 Save done. 126 145 [edit] … … 129 148 130 149 XorPlus# exit 131 XorPlus> file tftp put local-file /pica/config/sb9user/ychen-latest.conf remote-file updated.conf <server IP> 150 XorPlus> file tftp put local-file /pica/config/sb9user/iamxyz-latest.conf remote-file updated.conf <server IP> 151 132 152 }}} 133 134 153 135 154 … … 137 156 138 157 * [http://www.openflow.org/ OpenFlow] 139 * [http://www.pica8.org /products/p3290.php Pronto 3290 (now simply P-3290)]158 * [http://www.pica8.org Pica8's Pronto 3290 (now simply P-3290)] | [http://pica8.com/support/resources.php Documentation on Installation/Configuration] 140 159 * [http://www.netfpga.org NetFPGA 1G and 10G cards] 141 160