background image

10 

Configuring controllers for an OpenFlow switch 

Configuring controllers and main connections 

An OpenFlow switch supports up to 64 controllers. However, the OpenFlow channel between the 

OpenFlow switch and each controller can have only one main connection. The main connection 
processes control messages to complete tasks such as deploying entries, obtaining data, and sending 

information. The main connection must be a reliable connection using TCP or SSL. 
To specify a controller for an OpenFlow switch and configure the main connection to the controller: 

 

Step Command 

Remarks 

1.

 

Enter system view. 

system-view 

N/A 

2.

 

Enter OpenFlow instance 
view. 

openflow instance

 

instance-id

 N/A 

3.

 

Specify a controller and 
configure the main connection 

to the controller. 

controller 

id

 address

 { 

ip 

ip-address

 | 

ipv6 

ipv6-address

 } 

port 

port-number

 ] [ 

ssl 

ssl-policy-name

 ] 

By default, an OpenFlow instance 
is not configured with any main 
connection. 

 

Setting the connection interruption mode 

An OpenFlow switch is set to either of the following modes when it is disconnected from all controllers: 

 

Secure

—In this mode, the OpenFlow switch forwards traffic based on flow tables and does not 

delete unexpired flow entries. 

 

Standalone

—The OpenFlow switch uses the normal forwarding process. 

The OpenFlow switch forwards traffic based on flow tables when it reconnects to a controller successfully. 
To set the connection interruption mode for an OpenFlow switch: 

 

Step Command 

Remarks 

1.

 

Enter system view. 

system-view 

N/A 

2.

 

Enter OpenFlow instance 

view. 

openflow instance

 

instance-id

 N/A 

3.

 

Set the connection 
interruption mode. 

fail-open mode

 { 

secure

 | 

standalone

 } 

By default, the 

secure

 mode is 

used. 

 

Setting OpenFlow timers 

An OpenFlow switch supports the following timers: 

 

Connection detection interval

—Interval at which the OpenFlow switch sends an Echo Request 

message to a controller. When the OpenFlow switch receives no Echo Reply message within three 

connection detection intervals, the OpenFlow switch is disconnected from the controller. 

Содержание S6300 Series

Страница 1: ...H3C S6300 Switch Series OpenFlow Configuration Guide Hangzhou H3C Technologies Co Ltd http www h3c com Software version Release 23xx Document version 6W101 20150407...

Страница 2: ...gine SecPath SecCenter SecBlade Comware ITCMM and HUASAN are trademarks of Hangzhou H3C Technologies Co Ltd All other trademarks that may be mentioned in this manual are the property of their respecti...

Страница 3: ...lanners Field technical support and servicing engineers Network administrators working with the S6300 series Conventions This section describes the conventions used in this documentation set Command c...

Страница 4: ...in personal injury CAUTION An alert that calls attention to important information that if not understood or followed can result in data loss data corruption or damage to hardware or software IMPORTANT...

Страница 5: ...s Fan assemblies installation manual Describes the appearance specifications and installation and removal of hot swappable fan assemblies Power modules user manual Describes the appearance specificati...

Страница 6: ...hardware installation software upgrading and software feature configuration and maintenance documentation Products Solutions Provides information about products and technologies as well as solutions T...

Страница 7: ...uring inband management VLANs 8 Disabling MAC address learning in the VLANs associated with an OpenFlow instance 9 Configuring the datapath ID for an OpenFlow instance 9 Activating or reactivating an...

Страница 8: ...r physical and virtual devices Overview OpenFlow separates the data forwarding and routing decision functions It keeps the flow based forwarding function and employs a separate controller to make rout...

Страница 9: ...w table contains flow entries and packets are matched based on the matching precedence of flow entries OpenFlow flow tables include the following types MAC IP Combines the MAC address table and FIB ta...

Страница 10: ...ot it has matched packets Cookie Flow entry identifier specified by the controller Table miss flow entry Every flow table must support a table miss flow entry to process table misses The table miss fl...

Страница 11: ...rs enable OpenFlow to implement various simple QoS operations such as rate limiting A group table contains meter entries Figure 5 Components of a meter entry A meter entry contains the following field...

Страница 12: ...rts the following information to the controller Support capabilities for OpenFlow Ports that belongs to the OpenFlow instance An activated OpenFlow instance need be reactivated when any of the OpenFlo...

Страница 13: ...ional Setting OpenFlow timers Optional Configuring an OpenFlow instance to support dynamic MAC addresses Configuring OpenFlow instances To use LLDP together with OpenFlow you must enable LLDP globally...

Страница 14: ...w instance contains one extensibility flow table with an ID of 0 An OpenFlow instance supports only one MAC IP flow table and one extensibility flow table If you execute the command multiple times the...

Страница 15: ...bility flow table supports a maximum of 65535 flow entries Configuring inband management VLANs Inband management VLANs of an OpenFlow instance are part of the VLANs associated with the OpenFlow instan...

Страница 16: ...instance Step Command Remarks 1 Enter system view system view N A 2 Enter OpenFlow instance view openflow instance instance id N A 3 Configure the datapath ID for the OpenFlow instance datapath id dat...

Страница 17: ...any main connection Setting the connection interruption mode An OpenFlow switch is set to either of the following modes when it is disconnected from all controllers Secure In this mode the OpenFlow s...

Страница 18: ...nfiguring an OpenFlow instance to support dynamic MAC addresses You can configure an OpenFlow instance to support querying and deleting of dynamic MAC addresses in MAC IP flow tables To configure an O...

Страница 19: ...penFlow communication with the controller in specific VLANs Create OpenFlow instance 1 associate VLANs 4092 and 4094 with the OpenFlow instance and activate the OpenFlow instance Configure the control...

Страница 20: ...ption Active status active Inactive configuration none Active configuration Classification VLAN total VLANs 2 4092 4094 In band management VLAN total VLANs 0 empty VLAN Connect mode multiple Mac addre...

Страница 21: ...ow configuration 1 12 OpenFlow instance configuration 6 OpenFlow timer setting 10 datapath ID configuration OpenFlow 9 disabling MAC address learning in associated VLANs OpenFlow 9 displaying OpenFlow...

Страница 22: ...e 9 configuring flow table ID OpenFlow 7 configuring inband management VLAN OpenFlow 8 configuring OpenFlow instance 6 creating OpenFlow instance 6 disabling MAC address learning in associated VLANs O...

Отзывы: