CN104618156A - Network configuration method and device - Google Patents

Network configuration method and device Download PDF

Info

Publication number
CN104618156A
CN104618156A CN 201510038674 CN201510038674A CN104618156A CN 104618156 A CN104618156 A CN 104618156A CN 201510038674 CN201510038674 CN 201510038674 CN 201510038674 A CN201510038674 A CN 201510038674A CN 104618156 A CN104618156 A CN 104618156A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
controller
switch
dhcp
configured
packet
Prior art date
Application number
CN 201510038674
Other languages
Chinese (zh)
Inventor
林鹏程
梁晓莎
Original Assignee
杭州华三通信技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Abstract

The invention provides a network configuration method and device. The method is applied to the controller of an SDN (software defined network) and comprises receiving at least one DHCP (dynamic host configuration protocol) discovery message transmitted by a switch to be configured, wherein the DHCP message carries a request identity; for the firstly-receiving DHCP discovery message in the at least one DHCP discovery message transmitted by the switch to be configured, processing the firstly-received DHCP discovery message according to the request identity, and distributing an IP (Internet protocol) address for the switch to be configured; transmitting a DHCP providing message containing the IP address and the address of the controller to the switch to be configured so that the switch to be configured performs network configuration according to the IP address and the controller address, which are carried by the DHCP providing message. Therefore, the network configuration method is high in configuration efficiency and less prone to configuration errors, improves the working efficiency and reduces the operation and maintenance cost.

Description

网络配置的方法及装置 Method and apparatus for network configuration

技术领域 FIELD

[0001] 本发明涉及通信技术领域,尤其涉及网络配置的方法及装置。 [0001] The present invention relates to communication technologies, particularly to a method and apparatus for network configuration.

背景技术 Background technique

[0002] 随着通信技术的发展,在软件定义网络(Software Defined Network, SDN)技术中最为流行的是OpenFlow协议。 [0002] With the development of communication technology, in software-defined network (Software Defined Network, SDN) technology is the most popular is the OpenFlow protocol. 其中,OpenFlow是SDN架构中定义的一个控制器与转发层之间的通信接口标准。 Wherein, OpenFlow standard is a communication interface between the controller and a forwarding layer SDN defined in the schema. 支持OpenFlow转发的OpenFlow交换机和控制器组成OpenFlow 网络。 Support OpenFlow switches and OpenFlow controller forwards the composition of OpenFlow network. 其中,该OpenFlow网络中的OpenFlow交换机和控制器之间通过安全传输层协议(Transport Layer Security,TLS)或者传输控制协议(Transmission Control Protocol, TCP)建立安全通道,并利用该安全通道进行OpenFlow消息交互。 Wherein, between the OpenFlow OpenFlow switch network controller and establish a secure channel through the Transport Layer Security (Transport Layer Security, TLS) or transmission control protocol (Transmission Control Protocol, TCP), and uses the secure channel message interaction OpenFlow .

[0003] 当OpenFlow网络中新增OpenFlow交换机时,需要对该OpenFlow交换机进行配置,比如,分配IP地址和指定控制器地址。 [0003] When a new network OpenFlow OpenFlow switch, the OpenFlow switch needs to be configured, for example, assign the IP address and the specified address controller.

[0004] 现有技术中对新增OpenFl OW交换机进行配置时,需要网络管理员对该新增OpenFlow交换机进行基本的配置,即为该新增OpenFlow交换机分配唯一的接入IP地址,配置OpenFlow实例并指定控制器地址。 [0004] When the prior art to configure the new OpenFl OW switch, the network administrator needs to be added to the basic configuration OpenFlow switch, i.e. the new access OpenFlow switch assigns a unique IP address, the configuration examples OpenFlow and specify the controller address. 只有完成配置后,该新增OpenFlow交换机才能向控制器发起TLS或TCP连接。 Only after the completion of the configuration, the new OpenFlow switch to a TLS or TCP connection to the controller.

[0005] 但是,当OpenFlow网络中新增OpenFlow交换机比较多时,而每一新增OpenFlow 交换机的接入都需要人工配置,从而降低了工作效率,并增加了运维成本。 [0005] However, when a new network OpenFlow OpenFlow switch relatively long time, and each of the new access OpenFlow switch needs manual configuration, which reduces productivity and increases the cost of operation and maintenance.

发明内容 SUMMARY

[0006] 本发明提供网络配置的方法及装置,以解决现有技术中当OpenFlow网络中新增OpenFlow交换机比较多时,而每一新增OpenFlow交换机的接入都需要人工配置,从而降低了工作效率,并增加了运维成本的问题。 [0006] The present invention provides a method and apparatus for network configuration, in order to solve the prior art when a new network OpenFlow OpenFlow switch relatively long time, while the access switch for each new OpenFlow require manual configuration, thereby reducing work efficiency and increases the cost of operation and maintenance problems.

[0007] 根据本发明实施例的第一方面,提供一种网络配置的方法,该方法应用于SDN中的控制器上,包括: [0007] According to a first aspect of the present invention embodiment, there is provided a method of configuring a network, the method is applied on the SDN controller, comprising:

[0008] 接收待配置的交换机发送的至少一个动态主机配置协议DHCP发现报文,该DHCP 发现报文中携带有请求标识; [0008] Dynamic Host Configuration Protocol at least one switch arranged to be sent from the receiving DHCP discover packet, the DHCP discovery packet carries a request identifier;

[0009] 针对待配置的交换机发送的至少一个DHCP发现报文中首个接收到的DHCP发现报文,根据请求标识确定处理首个接收到的DHCP发现报文,并为待配置的交换机分配IP地址; [0009] transmitted for the switch to be arranged at least a DHCP discovery packet first received DHCP discover message, in accordance with the request identifier determination process first receives the DHCP discover packet, and the switch assigned IP to be configured address;

[0010] 将携带有IP地址和控制器的控制器地址的DHCP提供报文发送至待配置的交换机,以使待配置的交换机根据DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0010] The IP address of the DHCP carries the address of the controller and the controller provides the packets to be sent to the exchange arranged so that the switch to be configured according to the network configuration DHCP OFFER packet carries an IP address and a controller address.

[0011] 根据本发明实施例的第二方面,提供一种网络配置的方法,该方法应用于SDN中的待配置的交换机上,包括: [0011] According to a second aspect of the present embodiment of the invention, there is provided a method of configuring a network, the method is applied on the switch to be configured SDN, comprising:

[0012] 广播DHCP发现报文,该DHCP发现报文携带有请求标识,以使接收到所述DHCP发现报文的控制器根据该请求标识对首个接收到的所述DHCP发现报文进行处理并为所述待配置的交换机分配IP地址; [0012] broadcasts a DHCP discover packet, the DHCP discovery packet carries a request identifier, so that the received DHCP discover message controller according to the request identification of the received first DHCP discovery packet processing IP addresses are assigned to the switch to be configured;

[0013] 接收至少一个控制器发送的DHCP提供报文,该DHCP提供报文携带有发送该DHCP 提供报文的控制器为待配置的交换机分配的IP地址和发送该DHCP提供报文的控制器的控制器地址; [0013] receiving at least one DHCP offer message sent by the controller, the DHCP offer message carrying the DHCP offer packet transmission controller for the IP address assigned to the switch to be configured and the DHCP offer packet transmission controller the controller address;

[0014] 根据至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0014] a DHCP message in an IP address and a controller address carried in the packet network configured according to the at least one controller transmits the DHCP.

[0015] 根据本发明实施例的第三方面,提供一种网络配置的装置,该装置应用于SDN中的控制器上,包括: [0015] According to a third aspect of the present invention embodiment, there is provided an apparatus for network configuration, the device is applied on the SDN controller, comprising:

[0016] 接收单元,用于接收待配置的交换机发送的至少一个DHCP发现报文,该DHCP发现报文中携带有请求标识; [0016] a receiving unit, at least for receiving a DHCP discovery packet sent by the switch to be configured, the DHCP discovery packet carries a request identifier;

[0017] 分配单元,用于针对待配置的交换机发送的至少一个DHCP发现报文中首个接收到的DHCP发现报文,根据所述请求标识确定处理所述首个接收到的DHCP发现报文,为待配置的交换机分配IP地址; [0017] The distribution unit DHCP discover at least one switch to be configured for the transmission of the first packet in the received DHCP discover packet, determining processing according to the request identifies said received first DHCP discover message , assigns an IP address to be configured for the switch;

[0018] 发送单元,用于将携带有IP地址和控制器的控制器地址的DHCP提供报文发送至待配置的交换机,以使待配置的交换机根据DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0018] transmitting unit, the controller for carrying the address of DHCP IP address and the controller provides the packets to be sent to the exchange arranged so that the switch be arranged in accordance with a DHCP offer packet carries an IP address and a controller address network configuration.

[0019] 根据本发明实施例的第四方面,提供一种网络配置的装置,该装置应用于SDN中的待配置的交换机上,包括: [0019] According to a fourth aspect of the present invention embodiment, there is provided an apparatus for network configuration, the device is applied on the switch to be configured SDN, comprising:

[0020] 发送单元,用于广播DHCP发现报文,该DHCP发现报文携带有请求标识,以使接收到所述DHCP发现报文的控制器根据该请求标识对首个接收到的所述DHCP发现报文进行处理并为所述待配置的交换机分配IP地址; [0020] The transmitting unit broadcasts a DHCP discovery packet to the DHCP discovery packet carries a request identifier, so that the received DHCP discover message controller according to the request an identification of the first received DHCP discovery packet to be processed and the switch is assigned an IP address to be configured;

[0021] 接收单元,用于接收至少一个控制器发送的DHCP提供报文,该DHCP提供报文携带有发送该DHCP提供报文的控制器为待配置的交换机分配的IP地址和发送该DHCP提供报文的控制器的控制器地址; [0021] a receiving unit, for receiving at least a DHCP offer message sent by the controller, the DHCP offer message carrying the DHCP offer packet transmission controller for the IP address assigned to the switch to be configured and sends the DHCP offer the controller address of the packet controller;

[0022] 配置单元,用于根据至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0022] The configuration unit, for providing a DHCP message in an IP address and a controller address carried in the DHCP packets sent by the controller of at least one network configuration.

[0023] 应用本发明实施例,通过待配置的交换机广播DHCP发现报文,控制器接收到待配置的交换机发送的至少一个DHCP发现报文,该DHCP发现报文中携带有请求标识;针对待配置的交换机发送的至少一个DHCP发现报文中首个接收到的DHCP发现报文,根据请求标识确定处理首个接收到的DHCP发现报文,并为待配置的交换机分配IP地址;将携带有IP地址和控制器的控制器地址的DHCP提供报文发送至待配置的交换机;待配置的交换机接收至少一个控制器发送的DHCP提供报文;根据至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的IP地址和控制器地址进行网络配置,从而实现了控制器为待配置的交换机动态分配IP地址,并且配置效率较高,且不易产生配置错误,还提高了工作效率, 并减少了运维成本。 Embodiment [0023] Application of the present invention, be configured by the switch broadcasts the DHCP discover message, the controller receives at least a DHCP discovery packet sent by a switch to be configured, the DHCP discovery packet carries a request identifier; wait for configuration switch sends at least a DHCP discovery packet first received DHCP discover message, in accordance with the request identifier determination process first receives a DHCP discover packet and is assigned an IP address of the switch to be configured; carrying the DHCP IP address of the controller and the controller provides an address message sent to the exchange to be arranged; to be configured to receive at least a switch controller sends a DHCP offer message; the DHCP offer message transmitted at least one controller providing a DHCP message carrying the IP address and the network address of the controller configuration in order to achieve a dynamic allocation of the controller to be configured to switch IP address, and the higher the efficiency of the configuration, a configuration error and difficult to produce, but also improve work efficiency, and reduced operation and maintenance costs.

附图说明 BRIEF DESCRIPTION

[0024] 图1是应用本发明实施例网络配置的应用场景示意图; [0024] FIG. 1 is a schematic diagram of a network configuration application scenario of application of embodiments of the present invention;

[0025] 图2是本发明网络配置的方法的一个实施例流程图; [0025] FIG 2 is a network configuration according to the present invention, one embodiment of a flowchart of a method embodiment;

[0026] 图3是本发明网络配置的方法的另一个实施例流程图; Flowchart [0026] FIG. 3 is a network configuration method according to another embodiment of the invention;

[0027] 图4是本发明网络配置的方法中DHCP发现报文的示意图; [0027] FIG. 4 is a schematic diagram of the packet network configuration method of the present invention, DHCP discovery;

[0028] 图5是本发明网络配置的方法中DHCP发现报文的选项字段的示意图; [0028] FIG. 5 is a schematic diagram of the packet network configuration option field of the method of the present invention, DHCP discovery;

[0029] 图6是本发明网络配置的装置所在设备的一种硬件结构图; [0029] FIG. 6 is a hardware configuration diagram of a network configuration where the apparatus of the present invention apparatus;

[0030] 图7是本发明网络配置的装置的一个实施例框图; [0030] FIG. 7 is a block diagram of an embodiment of a network configuration of the embodiment of the apparatus of the present invention;

[0031] 图8是本发明网络配置的装置的另一个实施例框图。 A block diagram of embodiment [0031] FIG. 8 is a network device arranged another embodiment of the present invention.

具体实施方式 Detailed ways

[0032] 为了使本技术领域的人员更好地理解本发明实施例中的技术方案,并使本发明实施例的上述目的、特征和优点能够更加明显易懂,下面结合附图对本发明实施例中技术方案作进一步详细的说明。 [0032] In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the above and other objects, features and advantages more apparent embodiment of the present invention, in conjunction with the accompanying drawings of the embodiments of the present invention technical solution will be further described in detail.

[0033] 参见图1,为应用本发明实施例网络配置的应用场景示意图: [0033] Referring to FIG. 1, application of a network configuration of the application scenario of the present invention, a schematic view of embodiment:

[0034] 图1中示出了一种OpenFlow网络的组网架构。 In [0034] FIG. 1 shows a network architecture for OpenFlow network. 其中,交换机A、交换机B、交换机C 和交换机D皆可以为OpenFlow交换机,并且每个OpenFlow交换机连接一个或多个终端设备,控制器1和控制器2皆可以为OpenFlow控制器,皆用于控制交换机A、交换机B、交换机C和交换机D等多个OpenFlow交换机。 Wherein Switch A, switch B, and C, and switch D Jieke switch that OpenFlow switch, and each switch is connected to one or more OpenFlow terminal device, the controller 1 and the controller 2 that Jieke OpenFlow controller, for controlling all switch A, switch B, and the like switch C and switch D plurality OpenFlow switch.

[0035] 上述控制器1和交换机A、交换机B、交换机C和交换机D处于同一网段即处于同一广播域;而控制器2和交换机A、交换机B、交换机C和交换机D不处于同一网段即不处于同一广播域。 [0035] The controller 1 and Switch A, switch B, and C, and switch D in the same segment i.e. the switch is in the same broadcast domain; and the controller 2 switches A, switch B, and C, and switch D switch is not in the same network segment That is not in the same broadcast domain.

[0036] 在本发明实施例中,其目的是实现下述功能:当OpenFlow网络中新增OpenFlow交换机时,控制器能够自动地对该新增的OpenFlow交换机分配配置信息,比如,分配IP地址。 [0036] In an embodiment of the present invention, the aim is to achieve the following functions: when the new network OpenFlow OpenFlow switch, the controller can automatically switch to the new assignment OpenFlow configuration information such as IP address allocation.

[0037] 比如,OpenFlow网络中只包括交换机A、交换机B、交换机C和交换机D,和控制器1,其中,交换机A是新增的OpenFlow交换机。 [0037] For example, the network includes only OpenFlow Switch A, switch B, and C, and switch D switch, and a controller, wherein A is the new switch OpenFlow switch. 由于控制器1和交换机A、交换机B、交换机C和交换机D处于同一广播域,则新接入OpenFlow网络的交换机A可以以广播的形式向控制器1发送配置请求,控制器根据配置请求向交换机A发送配置信息,交换机A根据接收到的配置信息进行网络配置。 Since the controller 1 in the same broadcast domain and Switch A, switch B, and C, and switches the switch D, the new access network OpenFlow Switch A sends a configuration request to the controller 1 in the form of a broadcast, a request to the switch controller according to the configuration a transmission configuration information, switch a network configuration according to the received configuration information.

[0038] 又比如,OpenFlow网络中只包括交换机A、交换机B、交换机C和交换机D,和控制器2,其中,交换机A是新增的OpenFlow交换机。 [0038] As another example, the network includes only OpenFlow Switch A, switch B, and C, and switch D switch, and a controller 2, where A is the new switch OpenFlow switch. 由于控制器2和交换机A、交换机B、交换机C和交换机D不处于同一广播域,当新接入OpenFlow网络的交换机A以广播的形式向控制器2发送配置请求时,控制器2接收不到该配置请求,但是交换机B、交换机C和交换机D 可以接收到该配置请求,如果交换机B、交换机C和交换机D中的一个已经完成控制器2对其的网络配置,并获得控制器2的控制器地址,则该已配置的交换机可以充当中继的角色, 将交换机A的配置请求转发至控制器2,同理,将控制器2的配置信息转发至交换机A,从而使得交换机A根据接收到的配置信息进行网络配置。 Since the controller 2 and switches A, switch B, and C, and switch D switch is not in the same broadcast domain, when a new network access OpenFlow Switch A sends a configuration request to the controller 2 in the form of broadcast, the controller 2 does not receive the configuration request, the switch B, and C, and switch D switches to the configuration request may be received, if a control switch B, and C, and switch D in the switch network has completed its configuration controller 2, and the acquisition controller 2 address, the switch can be configured to act as a relay role, the switch forwards the configuration request to the controller a 2, Similarly, the forwarding configuration information to the switch controller a 2, so that the switch according to the received a configuration information for network configuration.

[0039] 由上述实施例可见,不管控制器与新增交换机处于同一广播域还是没有处于同一广播域,只要新增交换机接入OpenFlow网络,控制器就能够自动地对该新增的OpenFlow交换机分配配置信息,从而提高了工作效率,并减少了运维成本。 [0039] seen from the above embodiments, regardless of the switch controller with new or not in the same broadcast domain in the same broadcast domain, as long as the new switch OpenFlow access network, the controller can be automatically assigned to the new OpenFlow switch configuration information, thereby improving productivity and reducing operational costs.

[0040] 下面结合附图对本发明网络配置的实施例进行详细描述。 Drawings, embodiments of the present invention is a network configuration described in detail [0040] below in conjunction.

[0041] 参见图2,为本发明网络配置的方法的一个实施例流程图,该实施例从SDN中的控制器侧进行描述。 [0041] Referring to Figure 2, the network configuration method of the present invention, one case flowchart embodiment, this embodiment will be described from SDN side of the controller.

[0042] 其中,SDN中可以只包括一个控制器,本发明实施例中描述的控制器可能和待配置的交换机处于同一广播域,也可能和待配置的交换机不处于同一广播域。 [0042] wherein, SDN may include only one controller, the controller described in the embodiments of the present invention and the switch may be configured in the same broadcast domain, and also may be configured not to switch in the same broadcast domain.

[0043] SDN中也可以包括多个控制器,当该多个控制器工作在高可用性群集(High Available, HA)模式时,其中一个控制器为主控制器(master),其余的控制器为备控制器(slave),在HA模式下,只有主控制器会处理DHCP发现报文,因此本发明实施例中描述的控制器为主控制器;当该多个控制器工作在平等(equal)模式时,则本发明实施例中描述的控制器可以为其中的任一控制器。 [0043] SDN can also include a plurality of controllers, when the plurality of controllers working (High Available, HA) mode in a high-availability cluster, wherein the controller is a primary controller (Master), the rest of the controller standby controller (Slave), the HA mode, only the primary process controller DHCP discover message, the controller of the present invention thus described in the embodiment as the primary controller; when the controller operates in a plurality of equal (equal) mode, the controller of the present invention described in the embodiments may be any one of these controllers. 另外,SDN中的服务器可以实现动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)服务器的功能,而待配置的交换机可以实现DHCP客户端的功能。 Further, the server may be implemented SDN dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) server function, and can be configured to implement the switch function of the DHCP client.

[0044] 该方法包括以下步骤: [0044] The method comprises the steps of:

[0045] 步骤210 :接收待配置的交换机发送的至少一个DHCP发现报文,该DHCP发现报文中携带有请求标识。 [0045] Step 210: Configure at least one to be received DHCP discover message sent by the switch, the DHCP discovery packet carries a request identifier.

[0046] 其中,待配置的交换机可以为新增的OpenFlow交换机,该请求标识可以为OpenFlow标识。 [0046] wherein the configuration of the switch may be added OpenFlow switch, the request identifier may be identified OpenFlow. 该OpenFlow标识表明需要OpenFlow控制器根据DHCP发现报文进行相应的处理,当OpenFlow网络中包括非OpenFlow控制器实现DHCP服务器功能时,则该非OpenFlow控制器不能根据DHCP发现报文进行相应的处理。 The OpenFlow OpenFlow controller identifies the need DHCP Discover packets according to the respective processing, when OpenFlow OpenFlow network controllers comprises a non-DHCP server function, the non-OpenFlow controller can not find packets corresponding processing according to DHCP.

[0047] 本发明实施例中,根据待配置的交换机和控制器是否处于同一广播域,可有如下不同的接收方式: [0047] Example embodiments of the present invention, to be configured according to the switch and the controller is in the same broadcast domain, can received the following different ways:

[0048] 第一种方式,当待配置的交换机和控制器处于同一广播域时,控制器接收待配置的交换机广播的DHCP发现报文,或待配置的交换机的相邻交换机转发的待配置的交换机的DHCP发现报文。 [0048] The first embodiment, when the switch to be configured in the same broadcast domain and a controller, the controller switches the broadcast receiver to be configured to DHCP discovery packet, to be disposed adjacent the switch or switches arranged to be forwarded DHCP discovery packet switch.

[0049] 具体地,待配置的交换机以广播形式发送DHCP发现报文,作为同一广播域的控制器会收到该DHCP发现报文。 [0049] Specifically, the switch to be arranged in the form of broadcasts a DHCP discover packet, the same broadcast domain as the controller receives the DHCP discovery packet. 另外,待配置的交换机的相邻交换机也能接收到该DHCP发现报文,则该相邻交换机会将接收到的DHCP发现报文转发至控制器。 Further, the switch to be disposed adjacent to the switch can receive the DHCP discover packet, the switch will be received adjacent to DHCP discover packets forwarded to the controller.

[0050] 第二种方式,当待配置的交换机和控制器不处于同一广播域,控制器可以接收待配置的交换机的相邻交换机转发的待配置的交换机的DHCP发现报文。 [0050] The second embodiment, to be configured as DHCP switch arranged to be adjacent to the switch controller and the switch is not in the same broadcast domain, the controller may be configured to switch the received discovery packet forwarding.

[0051] 具体地,待配置的交换机以广播形式发送DHCP发现报文,作为同一广播域的相邻交换机可以接收到该DHCP发现报文,当接收到该DHCP发现报文的相邻交换机已经通过控制器进行过网络配置,则该相邻交换机可以充当中继的角色,将该DHCP发现报文转发至控制器,使得控制器接收到相邻交换机转发的DHCP发现报文。 [0051] Specifically, the switch to be arranged in the form of broadcasts a DHCP discover message, as the same broadcast domain adjacent the switch can receive the DHCP discover packet, when receiving the DHCP discover packet has passed through the adjacent switch controller through network configuration, neighboring switches can act as the role of a relay, the DHCP discover packets forwarded to the controller so that the controller receives an adjacent switch forwards a DHCP discovery packet.

[0052] 步骤220 :针对待配置的交换机发送的至少一个DHCP发现报文中首个接收到的DHCP发现报文,根据请求标识确定处理所述首个接收到的DHCP发现报文,并为待配置的交换机分配IP地址。 [0052] Step 220: switch to be configured for transmitting at least a DHCP discovery packet received first DHCP discover message, in accordance with the determination process request identifier received first DHCP discover packet and is to be a switch configured to assign IP addresses.

[0053] 具体地,当控制器接收到针对待配置的交换机的多个DHCP发现报文时,该控制器只针对首次接收到的DHCP发现报文进行后续的相应处理,至于其他的报文则直接忽略或丢弃。 [0053] Specifically, when the controller receives a plurality of DHCP switch to be configured for discovery packet, the controller only for the received first DHCP discover packets corresponding to the subsequent process, the other packets to the simply ignore or discard.

[0054] 由于SDN网络中可能存在实现DHCP服务器功能的非OpenFlow控制器,为避免这种实现DHCP服务器功能的非OpenFlow控制器为待配置的交换机分配IP地址,所以在DHCP 发现报文中添加了请求标识。 [0054] Since there may SDN network controller to achieve non-OpenFlow DHCP server function, such an implementation is to avoid non-OpenFlow controller DHCP server function to assign an IP address of the switch to be configured, so that the DHCP discovery packet added request ID. 实现DHCP服务器功能的非OpenFlow控制器只对普通的DHCP 发现报文(即不携带请求标识的DHCP发现报文)进行处理,为发送普通的DHCP发现报文的交换机分配地址,而实现DHCP服务器功能的OpenFlow控制器能够对携带请求标识的DHCP 发现报文进行处理,为发送携带请求标识的DHCP发现报文的交换机分配地址。 DHCP server function to achieve non-OpenFlow controller found only packets (i.e. not carry DHCP discovery packet request identifier) ​​for processing, to transmit an address assignment ordinary DHCP discover packet switch for ordinary DHCP, the DHCP server function implemented OpenFlow controller capable of carrying the request identifies a DHCP discovery packet processing, carrying the request identifier to transmit a DHCP discover packet switch assigned address.

[0055] 另外,当控制器根据请求标识确定处理首个接收到的DHCP发现报文,并为待配置的交换机分配IP地址时,控制器可以从预设的地址池中获取预分配的IP地址。 [0055] Further, the controller determines when a DHCP processing the first received packet according to the request identifier found, and the switch is assigned an IP address to be configured, the controller may be obtained from a preset pre-assigned IP address of the address pool . 其中,获取过程可以是随机的,也可以按照IP地址的优先级顺序进行获取。 Wherein the acquisition process may be random, may be performed according to the priority acquired IP address.

[0056] 步骤230 :将携带有该IP地址和该控制器的控制器地址的DHCP提供报文发送至待配置的交换机,以使待配置的交换机根据DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0056] Step 230: The IP address of the DHCP carries the address of the controller and the controller provides the packets to be sent to the exchange arranged so that the switch be arranged in accordance with a DHCP offer packet carries an IP address and a controller address network configuration.

[0057] 本实施例中,根据待配置的交换机和控制器是否处于同一广播域,可有如下不同的发送方式: [0057] In this embodiment, be configured according to the switch and the controller is in the same broadcast domain, can be transmitted following different ways:

[0058] 第一种方式,当控制器和待配置的交换机处于同一广播域时,将携带有IP地址和控制器的控制器地址的DHCP提供报文发送至待配置的交换机,或将携带有IP地址和控制器的控制器地址的DHCP提供报文发送至待配置的交换机的相邻交换机,再由相邻交换机将DHCP提供报文转发至待配置的交换机。 [0058] The first way, and when the controller switches to be configured in the same broadcast domain, which carries the IP address of DHCP address controller and the controller provides the packets to be sent to the switch configuration, or carrying DHCP IP address controller provides address and control packets sent to the switch to be disposed adjacent to the switch, and then provided by the adjacent switch DHCP packets forwarded to the switch to be configured.

[0059] 第二种方式,当控制器和待配置的交换机不处于同一广播域时,将携带有IP地址和控制器的控制器地址的DHCP提供报文发送至待配置的交换机的相邻交换机,再由相邻交换机将DHCP提供报文转发至待配置的交换机。 DHCP [0059] A second embodiment, when the controller switches and configured to be not in the same broadcast domain, which carries the IP address of the controller and the controller is provided adjacent to the address switch sends the packet to the switch to be configured in , then the adjacent switch DHCP oFFER packet forwarding to the switch to be configured.

[0060] 可选地,上述实施例中,当控制器为主控器时,该主控制器向待配置的交换机发送的DHCP提供报文中还携带有与主控制器对应的备控制器的控制器地址,以使待配置的交换机缓存备控制器的控制地址。 [0060] Alternatively, the above-described embodiment, when the controller main controller, the DHCP configuration of the main controller to be sent by the switch to provide the packet further carries backup controller and the main controller corresponding controller address, address buffer so that the control apparatus controller switches to be configured.

[0061] 由上述实施例可见,不管控制器与待配置的交换机处于同一广播域还是没有处于同一广播域,只要控制器接收到待配置的交换机发送的DHCP发现报文,就能够自动地对该待配置的交换机分配相应的IP地址,使得配置效率较高,且不易产生配置错误,还提高了工作效率,并减少了运维成本。 [0061] seen from the above embodiments, regardless of the switch controller to be configured in the same broadcast domain is not in the same broadcast domain, as long as the controller receives a switch to be configured to transmit a DHCP discovery packet, this can be automatically a respective switch assigned IP address to be configured, so that the high efficiency configuration, configuration errors and difficult to produce, but also improve work efficiency, and reduces operation and maintenance costs.

[0062] 参见图3,为本发明网络配置的方法的一个实施例流程图,该实施例从SDN中的待配置的交换机侧进行描述。 One case a flowchart embodiment [0062] Referring to Figure 3, the network configuration method of the present invention, this embodiment will be described from SDN side of the switch to be configured.

[0063] 其中,SDN中可以只包括一个控制器,本发明实施例中描述的控制器可能和待配置的交换机处于同一广播域,也可能和待配置的交换机不处于同一广播域。 [0063] wherein, SDN may include only one controller, the controller described in the embodiments of the present invention and the switch may be configured in the same broadcast domain, and also may be configured not to switch in the same broadcast domain.

[0064] SDN中也可以包括多个控制器,当该多个控制器工作在HA模式时,其中一个控制器为主控制器(master),其余的控制器为备控制器(slave),在HA模式下,只有主控制器会处理DHCP发现报文,因此本发明实施例中描述的控制器为主控制器;当该多个控制器工作在equal模式时,贝U本发明实施例中描述的控制器可以为其中的任一控制器。 [0064] SDN also may include a plurality of controllers, when the plurality of controllers operating in HA mode, one of the controllers as the primary controller (Master), the remaining standby controller controller (Slave), the HA mode, only the primary process controller DHCP discover message, the controller of the present invention thus described in the embodiment as the primary controller; described embodiment when the controller is operating in a plurality of modes equal, embodiments of the present invention shellfish U the controller may be any one in which the controller. 另外,SDN中的服务器可以实现DHCP服务器的功能,而待配置的交换机可以实现DHCP客户端的功能。 Moreover, SDN servers may implement a DHCP server function, the switch can be configured to implement the functions of the DHCP client.

[0065] 该方法包括以下步骤: [0065] The method comprises the steps of:

[0066] 步骤310 :广播DHCP发现报文,该DHCP发现报文携带有请求标识,以使接收到DHCP发现报文的控制器根据该请求标识对首个接收到的DHCP发现报文进行处理并为待配置的交换机分配IP地址。 [0066] Step 310: broadcasts the DHCP discover packet, the DHCP discovery packet carries a request identifier, so that the received DHCP discover message controller according to the request an identification of the first received DHCP discovery packet to be processed and assign an IP address to be configured for the switch. 其中,待配置的交换机可以为新增的OpenFlow交换机,广播的DHCP发现报文携带的请求标识可以为OpenFlow标识。 Wherein the switches can be configured as the new OpenFlow switch, broadcast a DHCP discovery packet may be carried in the request identifier OpenFlow identified.

[0067] 本发明实施例中,OpenFlow网络可能包括一个或多个控制器,这些控制器可能和新增的OpenFlow交换机处于同一个广播域。 Embodiment [0067] In the present invention, OpenFlow network may include one or more controllers that may be added OpenFlow switch and in the same broadcast domain. 另外,OpenFlow网络包括的一个或多个控制器也可能和新增的OpenFlow交换机不处于同一个广播域,或者有的控制器和新增的OpenFlow交换机处于同一个广播域,有的控制器和新增的OpenFlow交换机不处于同一个广播域。 Further, OpenFlow network includes one or more controllers may also be added and OpenFlow switch is not in the same broadcast domain, or some new OpenFlow switch controller and in the same broadcast domain, and some new controller by the OpenFlow switch is not in the same broadcast domain.

[0068] 根据待配置的交换机和控制器是否处于同一广播域,可有如下不同的发送方式: [0068] The switch to be configured and the controller is in the same broadcast domain, can be transmitted following different ways:

[0069] 第一种方式,当待配置的交换机和控制器处于同一广播域时,待配置的交换机可以以广播形式发送DHCP发现报文,作为同一广播域的一个或多个控制器会收到该DHCP发现报文。 [0069] The first embodiment, when the switch and the controller to be configured in the same broadcast domain, the switch can be configured in the form of broadcasts a DHCP discover packet, as one or more controllers will receive the same broadcast domain the DHCP discovery packet.

[0070] 第二种方式,当待配置的交换机和控制器不处于同一广播域时,待配置的交换机可以向相邻交换机广播DHCP发现报文,以使相邻的交换机将DHCP发现报文转发至控制器。 [0070] The second embodiment, when the switch and the controller is configured to be not in the same broadcast domain, the switch may be arranged adjacent to the switch broadcasts a DHCP discovery packet to the adjacent switch forwards the DHCP discover packet to the controller.

[0071] 具体地,待配置的交换机以广播形式发送DHCP发现报文,作为同一广播域的相邻交换机可以收到该DHCP发现报文,当接收到该DHCP发现报文的交换机已经通过控制器进行过网络配置,则该相邻交换机可以充当中继的角色,将该DHCP发现报文转发至控制器。 [0071] Specifically, the switch to be configured sends a DHCP discovery packet in broadcast mode, the same broadcast domain as the adjacent switch can receive the DHCP discovery message, when receiving the DHCP discover packet has passed through the switch controller carried out the network configuration, the adjacent switch can act as a relay role, the DHCP discovery packet is forwarded to the controller.

[0072] 另外,DHCP发现报文中携带的请求标识,比如,该请求标识为OpenFlow标识,可以添加到报文的选项(Options)字段中。 [0072] Further, the DHCP discovery request packet carries identification, for example, the request is identified as OpenFlow identifier can be added to the option (the Options) message field. 利用DHCP发现报文中的Option字段,设置OpenFlow 标识,标识此DHCP过程用于特定的OpenFlow交换机和控制器。 Option field using DHCP discover packet is provided OpenFlow identifier, identifying this procedure for a particular DHCP OpenFlow switch and a controller. 其中,DHCP发现报文一般格式如图4所示,选项(Options)字段的格式如图5所示。 Wherein, the DHCP discovery packet general format shown in Figure 4, formatting options (the Options) field is shown in FIG.

[0073] 步骤320 :接收至少一个控制器发送的DHCP提供报文,该DHCP提供报文携带有发送该DHCP提供报文的控制器为待配置的交换机分配的IP地址和发送该DHCP提供报文的控制器的控制器地址。 [0073] Step 320: receiving at least one DHCP offer message sent by the controller, the DHCP offer message carrying the DHCP offer packet transmission controller for the IP address assigned to the switch to be configured and the DHCP offer packet transmission the controller address of the controller.

[0074] 本发明实施例中,根据待配置的交换机和控制器是否处于同一广播域,可有如下不同的接收方式: [0074] Example embodiments of the present invention, to be configured according to the switch and the controller is in the same broadcast domain, can received the following different ways:

[0075] 第一种方式,当待配置的交换机和发送DHCP提供报文的控制器处于同一广播域时,接收该控制器发送的DHCP提供报文,或接收自身的相邻交换机转发的该控制器发送的DHCP提供报文。 [0075] The first embodiment, when the switch to be configured and the DHCP offer message transmitted in the same broadcast domain controller, receiving the DHCP packets sent by the controller to provide or receive the control of its own adjacent switch forwards DHCP sends the message provided.

[0076] 第二种方式,当待配置的交换机和发送DHCP提供报文的控制器不处于同一广播域时,接收自身的相邻交换机转发的该控制器发送的DHCP提供报文。 [0076] The second embodiment, when the switch to be configured and the DHCP offer packet transmission controller is not in the same broadcast domain, reception of its own adjacent switch forwards the DHCP offer message sent by the controller.

[0077] 步骤330 :根据至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0077] Step 330: a DHCP packet to an IP address and a controller address carried in the packet network configured according to the at least one controller transmits the DHCP.

[0078] 本发明实施例中,SDN中可能包括一个或多个控制器,则待配置的交换机可能收到一个或多个控制器发送的DHCP提供报文。 [0078] Example embodiments of the present invention, SDN may include one or more controllers, the switch may be configured with one or more receive DHCP offer message sent by the controller.

[0079] 具体包括以下三种情况: [0079] specifically includes the following three cases:

[0080] (I)SDN中只包括一个控制器,待配置的交换机接收到该控制器发送的DHCP提供报文时,则根据DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0080] (I) SDN only includes a controller, a switch configured to be received by the controller sends a DHCP offer packet, the network configuration is performed in accordance with a DHCP offer packet carries an IP address and a controller address.

[0081] (2) SDN中包括两个或两个以上控制器,而且该两个或两个以上控制器工作在平等(equal)模式,则待配置的交换机可以接收到任一控制器发送的DHCP提供报文。 [0081] (2) SDN comprises two or more controllers, and two or more of the controllers working in equal (equal) mode, the switch can be configured to either the controller receives the transmitted DHCP offer message.

[0082] 如果待配置的交换机接收到两个或两个以上的控制器的发送的DHCP提供报文时,从该两个或两个以上的控制器的发送的DHCP提供报文中选取一个,一般选取首次接收到的DHCP提供报文,并根据这个选取的DHCP提供报文中的IP地址和控制器地址进行网络配置。 [0082] If the switch is configured to be received DHCP transmitted to two or more controllers to provide packets transmitted from the DHCP controller that two or more packets to provide a selected, generally selected to provide the first received DHCP message, and provides the IP address and the address of the packet controller network configuration in accordance with this selected DHCP.

[0083] 另外,还要将接收到的两个或两个以上控制器发送的DHCP提供报文中的控制器地址提取出来,并进行编号和缓存,如表1所示。 Address controller [0083] Also, the received two or more DHCP sent by the controller to provide the extracted packets, and the number and cache, as shown in Table 1.

[0084] 表1 [0084] TABLE 1

[0085] [0085]

Figure CN104618156AD00111

[0086] 一(3) SDN中包括两个或两个以上控制器,而且该两个或两个以上控制器工作在HA 模式,其中一个控制器为主控制器(master),其余的控制器为备控制器(slave),则待配置的交换机只能接收到主控制器发送的DHCP提供报文,并根据该DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0086] a (3) SDN comprises two or more controllers, and two or more controllers that work as HA, wherein the controller is a primary controller (Master), the rest of the controller Preparation of the controller (Slave), the switch can be configured to the master controller sends the received DHCP offer message, and provides the IP address and the address carried by the packet controller network configuration based on the DHCP.

[0087] 如果接收到主控制器发送的DHCP提供报文,该DHCP提供报文除了携带有主控制器的控制器地址之外,还可以携带有与该主控制器对应的备控制器的控制器地址时,还需要将主控制器地址和备控制器地址提取出来,并进行编号和缓存,如表2所示。 [0087] If the master controller sends the received DHCP message is provided, in addition to the DHCP offer message carries the address of the controller with a main controller, it can also carry control apparatus has a controller and corresponding to the master controller when the device is also required to prepare a master controller address and a controller address extracted, and the number and cache, as shown in table 2.

[0088] 表2 [0088] TABLE 2

Figure CN104618156AD00112

[0089] [0089]

[0090] [0090]

[0091] 上述实施例中,当待配置的交换机接收到至少一个控制器发送的DHCP提供报文时,该待配置的交换机根据至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的预分配的IP地址和控制器地址进行网络配置的过程可以为: [0091] In the above embodiment, when the switch to be disposed at least one controller receives the DHCP offer message transmitted, the switch to be configured to provide a DHCP message in DHCP offer packet according to at least one of the transmission controller process controller address and the IP address pre-assigned to carry the network configuration may be:

[0092] 待配置的交换机可以针对用于进行网络配置的控制器地址所对应的控制器以广播的方式发送DHCP请求(DHCP-REQUEST)报文,该DHCP请求报文携带有该控制器为待配置的交换机分配的IP地址,控制器接收DHCP请求报文,若确定该IP地址是自身为待配置的交换机分配的IP地址,且确认将该IP地址分配给该待配置的交换机,则向待配置的交换机返回DHCP确认(DHCP-ACK)报文,以使待配置的交换机根据该控制器为自身分配的IP地址和控制器的控制器地址进行网络配置;否则返回DHCP否决(DHCP-NAK)报文,表明该IP地址不能分配给该待配置的交换机,以使待配置的交换机选择其他控制器为待配置的交换机分配的IP地址和控制器的控制器地址进行网络配置。 [0092] The switch can be configured to send a DHCP request (DHCP-REQUEST) message for broadcasting a controller for the controller address corresponding to the network configuration, the DHCP request message carries the controller to be configuration assigned IP address of the switch, the controller receives the DHCP request packet, if the IP address configuration of the switch itself is determined to be assigned an IP address, and assigns the IP address to confirm the switch to be configured to be the configuration of the switch returns a DHCP acknowledgment (DHCP-ACK) packet to the switch to be configured so that the network controller configured in accordance with the IP address and the address of the controller is assigned by the controller; otherwise, DHCP rejection (DHCP-NAK) message, indicating that the IP address can not be assigned to the configuration of the switch, the switch to be configured so that the selection of other controllers and the IP address controller assigned address controller switches to be configured for network configuration.

[0093] 可选地,在上述实例中,当根据至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的预分配的IP地址和控制器地址进行网络配置之后,该方法还包括: [0093] Alternatively, in the above example, when a DHCP packet to provide the packet pre-allocated and the IP address carried in the DHCP address according to the controller of at least one controller transmits the network configuration Thereafter, the method further include:

[0094] 若SDN中包括一个控制器或多个工作在equal模式的控制器,则根据至少一个控制器发送的DHCP提供报文中的所有DHCP提供报文携带的控制器地址,向至少一个控制器发起安全传输层协议(Transport Layer Security, TLS)或传输控制协议(Transmission Control Protocol,TCP)连接。 [0094] If the controller or SDN comprises a plurality of controllers working in a mode equal, then all DHCP packets sent by the controller according to at least one DHCP provides the address carried by the packet controller, to the at least one control initiates transport Layer security (transport Layer security, TLS) or transmission control protocol (transmission control protocol, TCP) connection.

[0095] 可选地,在上述实例中,如果接收到主控制器发送的DHCP提供报文,该DHCP提供报文除了携带有主控制器的控制器地址之外,还携带有与该主控制器对应的备控制器的控制器地址时,该方法还包括: [0095] Alternatively, in the above example, if the master controller sends the received DHCP offer message, in addition to the DHCP offer message carries the address of the controller is a main controller, but also carries the main control Preparation of the controller when the controller corresponds to the address, the method further comprising:

[0096] 根据主控制器的控制器地址和备控制器的控制器地址,向主控制器和备控制器发起TLS或TCP连接。 [0096] The address controller address and control apparatus controls of the main controller, a TLS or TCP connections to the main controller and the standby controller.

[0097] 由上述实施例可见,不管待配置的交换机与控制器处于同一广播域还是没有处于同一广播域,只要待配置的交换机向控制器发送DHCP发现报文,就能够自动地得到控制器预分配的IP地址,使得配置效率较高,且不易产生配置错误,还提高了工作效率,并减少了运维成本。 [0097] it is seen from the above embodiments, regardless of the switch and the controller to be configured in the same broadcast domain is not in the same broadcast domain, as long as the switch to be configured sends a DHCP discovery packet to the controller, the controller can be automatically obtained pre assigned IP address, so that high efficiency configuration, configuration errors and difficult to produce, but also improve work efficiency, and reduces operation and maintenance costs.

[0098] 与前述网络配置的方法实施例相对应,本发明还提供了网络配置的装置的实施例。 [0098] The method of the network according to the configuration corresponding to the embodiment, the present invention also provides an embodiment of the apparatus of network configuration.

[0099] 本发明网络配置的装置的实施例可以应用在网络设备上。 Example network devices [0099] Application of the present invention can be configured on a network device. 装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。 Apparatus embodiments may be implemented by software may be realized by way of hardware or a combination of hardware and software. 以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。 Implemented in software, for example, as a device on the logical sense, in the processor device corresponding to the non-volatile memory readable by computer program instructions into memory to run its formation. 从硬件层面而言,如图6所示,为本发明网络配置的装置所在设备的一种硬件结构图,除了图6所示的处理器、网络接口、内存以及非易失性存储器之外,实施例中装置所在的设备通常还可以包括其他硬件,如负责处理报文的转发芯片等等;从硬件结构上来讲该设备还可能是分布式的设备,可能包括多个接口卡,以便在硬件层面进行报文处理的扩展。 From the hardware level, as shown in Figure 6, where A hardware configuration diagram of a network configuration of an apparatus of the present invention, in addition to the processor shown in FIG. 6, network interfaces, memory and nonvolatile memory, Example embodiment devices are located generally in the apparatus may also include other hardware, such as handles packet forwarding chip and the like; the terms of the hardware configuration of the device may also be a distributed device may include a plurality of interface cards, the hardware for level for packet processing extensions.

[0100] 参见图7,为本发明网络配置的装置的一个实施例框图,该装置可以应用在SDN中的控制器上,并可以用于执行图2所示的网络配置的方法。 A block diagram of an embodiment [0100] Referring to Figure 7, the network device configuration of the present invention, the apparatus can be applied to the SDN controller and method in a network configuration shown in FIG. 2 may be used to perform. 本发明网络配置的装置包括:接收单元71、分配单元72和发送单元73。 Network configuration device of the present invention comprises: a receiving unit 71, dispensing unit 72 and transmission unit 73.

[0101] 其中,接收单元71用于接收待配置的交换机发送的至少一个动态主机配置协议DHCP发现报文,该DHCP发现报文中携带有请求标识; [0101] The receiving unit 71 for at least a dynamic host configuration protocol switch arranged to be sent from the receiving DHCP discover packet, the DHCP discovery packet carries a request identifier;

[0102] 分配单元72用于针对待配置的交换机发送的至少一个DHCP发现报文中首个接收到的DHCP发现报文,根据所述请求标识确定处理所述首个接收到的DHCP发现报文,并为待配置的交换机分配IP地址。 [0102] at least one dispensing unit 72 for DHCP discovery packet received first DHCP discover packet, determining processing according to the request identifies said received first DHCP discover message sent by the switch to be configured for and assign an IP address to be configured for the switch.

[0103] 发送单元73将携带有IP地址和控制器地址的DHCP提供报文发送至待配置的交换机,以使待配置的交换机根据DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0103] 73 transmitting unit carrying the IP address and the address controller DHCP offer message to the switch to be configured so that the switch to be configured according to the network configuration DHCP OFFER packet carries an IP address and a controller address.

[0104] 其中,待配置的交换机可以为OpenFlow交换机。 [0104] wherein, the switch may be configured OpenFlow switch.

[0105] 在一个可选的实现方式中,控制器为主控制器,该控制器向待配置的交换机发送的DHCP提供报文中还携带有与主控制器对应的备控制器的控制器地址。 [0105] In an alternative implementation, the controller-based controller, the DHCP configuration of the controller to be sent by the switch to provide the packet further carries backup controller and the main controller corresponding to the controller address .

[0106] 在另一个可选的实现方式中,接收单元71还用于当控制器和待配置的交换机处于同一广播域时,接收待配置的交换机广播的DHCP发现报文,或待配置的交换机的相邻交换机转发的待配置的交换机的DHCP发现报文;当控制器和待配置的交换机不处于同一广播域时,接收待配置的交换机的相邻交换机转发的待配置的交换机的DHCP发现报文; [0106] In another alternative implementation, the receiving unit when the controller 71 is further configured and arranged to be in the same broadcast domain of the switch, the switch configured to be received broadcast a DHCP discovery message, or a switch configuration to be DHCP to be arranged adjacent to the switch discovery packet switch forwards; and when the controller does not switch to be configured in the same broadcast domain, DHCP switch to be configured to be disposed adjacent switch receives the discovery packet forwarded by the switch Wen;

[0107] 以及,发送单元73还用于当控制器和待配置的交换机处于同一广播域时,将携带有IP地址和控制器的控制器地址的DHCP提供报文发送至待配置的交换机,或将携带有IP 地址和控制器的控制器地址的DHCP提供报文发送至待配置的交换机的相邻交换机,再由相邻交换机将DHCP提供报文转发至待配置的交换机;当控制器和待配置的交换机不处于同一广播域时,将携带有IP地址和控制器的控制器地址的DHCP提供报文发送至待配置的交换机的相邻交换机,再由相邻交换机将DHCP提供报文转发至待配置的交换机。 [0107] and, for further transmitting means 73 and when the controller switches to be configured in the same broadcast domain, which carries the controller address and IP address of the controller to provide DHCP message to the switch to be configured, or carrying the IP address and the address of the controller to provide the controller DHCP packets sent to the switch to be arranged adjacent to the switch, and then provided by the adjacent switch DHCP packets forwarded to the switch to be configured; when the controller and be when configuring the switch is not in the same broadcast domain, the DHCP carries the address of the controller and the controller has an IP address sent to the exchange offer message to be arranged adjacent to the switch, then the switch by adjacent packets forwarded to DHCP oFFER switch to be configured.

[0108] 由上述实施例可见,不管控制器与待配置的交换机处于同一广播域还是没有处于同一广播域,只要控制器中的网络配置的装置接收到待配置的交换机发送的DHCP发现报文,就能够自动地对该待配置的交换机分配相应的IP地址,从而提高了工作效率,并减少了运维成本。 [0108] seen from the above embodiments, the same broadcast domain controllers regardless of the switch to be arranged in or not in the same broadcast domain, as long as the network configuration of the device controller to the switch to be configured to receive a DHCP discovery packet transmitted, It can be automatically assigned to the respective switches to be configured the IP address, thereby improving working efficiency and reducing operational costs.

[0109] 参见图8,为本发明网络配置的装置的另一个实施例框图,该装置可以应用在SDN 中的待配置的交换机上,并可以用于执行图3所示的网络配置的方法。 Block diagram of another embodiment [0109] Referring to Figure 8, the configuration of the network device embodiments of the present invention, the switch means may be applied on the SDN to be configured, and the method is performed as shown in FIG. 3 the network configuration may be used. 本发明网络配置的装置包括:发送单元81、接收单元82和配置单元83。 Network configuration device of the present invention comprises: a transmitting unit 81, receiving unit 82, and a configuration unit 83.

[0110] 其中,发送单元81用于广播DHCP发现报文,该DHCP发现报文携带有请求标识,以使接收到所述DHCP发现报文的控制器根据该请求标识对首个接收到的所述DHCP发现报文进行处理并为所述待配置的交换机分配IP地址。 [0110] wherein, the sending unit 81 broadcasts a DHCP discovery packet to the DHCP discovery packet carries a request identifier, so that the received DHCP discover message to the first controller in accordance with the received request identifier said DHCP discovery packet to be processed and the switch is assigned an IP address to be configured.

[0111] 接收单元82用于接收至少一个控制器发送的DHCP提供报文,DHCP提供报文携带有发送该DHCP提供报文的控制器为待配置的交换机分配的IP地址和发送该DHCP提供报文的控制器的控制器地址。 [0111] The receiving unit 82 for receiving the at least one DHCP packets sent by the controller to provide Currently, DHCP provides message carries the DHCP offer packet transmission controller provides the packets to the IP address assigned to the switch to be configured and the DHCP transmission controller address text controller.

[0112] 配置单元83用于根据至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的IP地址和控制器地址进行网络配置。 [0112] configuration unit 83 for providing a DHCP packet to an IP address and a controller address carried in the DHCP packets sent by the controller of at least one network configuration.

[0113] 其中,待配置的交换机可以为OpenFlow交换机,其广播的DHCP发现报文中携带的请求标识可以为OpenFlow标识 [0113] wherein, the switch may be configured to OpenFlow switch, it broadcasts a DHCP discovery packet may be carried in the request identifier identifying OpenFlow

[0114] 在一个可选的实现方式中,当控制器为主控制器,该控制器向待配置的交换机发送的DHCP提供报文还携带有与主控制器对应的备控制器的控制器地址时,本发明网络配置的装置还包括:第一连接单元(图8中未标出)。 [0114] In an alternative implementation, the controller when the primary controller, the DHCP configuration of the controller to be sent by the switch to provide the packet further carries backup controller and the main controller corresponding to the controller address apparatus, the network configuration of the present invention further comprises: a first connecting unit (not shown in FIG. 8).

[0115] 其中,第一连接单元用于根据主控制器的控制器地址和备控制器的控制器地址, 向主控制器和备控制器发起安全传输层协议TLS或传输控制协议TCP连接。 [0115] wherein the first connection unit according to the address controller address controller and the controller of the apparatus main controller, initiate a TLS Transport Layer Security or Transmission Control Protocol controller to the main controller and the standby TCP connections.

[0116] 以及,接收单元82还用于当待配置的交换机和发送DHCP提供报文的控制器处于同一广播域时,接收该控制器发送的DHCP提供报文,或接收自身的相邻交换机转发的该控制器发送的DHCP提供报文;当待配置的交换机和发送DHCP提供报文的控制器不处于同一广播域时,接收自身的相邻交换机转发的该控制器发送的DHCP提供报文。 [0116] and the receiving unit 82 is further configured to, when the switch and configured to be a DHCP offer message transmitted in the same broadcast domain controller, receive the DHCP packets sent by the controller to provide or receive its own adjacent switch forwards the controller sends a DHCP offer message; when the switch to be configured and the DHCP offer packet transmission controller is not in the same broadcast domain, reception of its own adjacent switch forwards the DHCP offer message sent by the controller.

[0117] 在另一个可选的实现方式中,本发明网络配置的装置还包括:第二连接单元(图8 中未标出)。 [0117] In another alternative implementation, the network configuration device of the present invention further comprises: a second connecting unit (not shown in FIG. 8).

[0118] 其中,第二连接单元用于根据至少一个控制器发送的DHCP提供报文中的所有DHCP提供报文携带的控制器地址,向至少一个控制器发起TLS或TCP连接。 [0118] wherein the means for providing the second connection of all DHCP packets sent by the controller according to at least one DHCP provides the address carried by the packet controller, a TLS or TCP connections to at least one controller.

[0119] 由上述实施例可见,不管待配置的交换机与控制器处于同一广播域还是没有处于同一广播域,只要待配置的交换机上的网络配置的装置向控制器发送DHCP发现报文,就能够自动地得到控制器预分配的IP地址,使得配置效率较高,且不易产生配置错误,还提高了工作效率,并减少了运维成本。 [0119] seen from the above embodiments, regardless of the switch and the controller to be configured in the same broadcast domain is not in the same broadcast domain, a network device configured to be disposed on the switch as long as the DHCP discovery packet transmitted to the controller, can be the controller automatically obtain an IP address pre-assigned, arranged such that high efficiency and easy to produce configuration errors, further improve the efficiency and reduce operational costs.

[0120] 上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。 [0120] The means to achieve functions and effects of the process of each unit specific detailed implementation process of corresponding steps of the above method, not described herein again.

[0121] 对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。 [0121] For the apparatus of the embodiment, since a method which substantially corresponds to the embodiment, the portion of the embodiment of the method embodiments to be described where relevant. 以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以处于一个地方,或者也可以分布到多个网络单元上。 Embodiment of the apparatus described above is merely exemplary, the units as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be in one place , or may be distributed to multiple network units. 可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目的。 Part or all of the modules may be selected according to actual needs to achieve the object of the present invention. 本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。 Those of ordinary skill in the art without creative efforts, can be understood and implemented.

[0122] 由上述实施例可见,由上述实施例可见,不管待配置的交换机与控制器处于同一广播域还是没有处于同一广播域,只要待配置的交换机向控制器发送DHCP发现报文,当待配置的交换机与控制器为同一类型的设备时,待配置的交换机就能够自动地得到该控制器预分配的IP地址,从而提高了工作效率,并减少了运维成本。 [0122] seen from the above embodiment, seen from the above embodiments, regardless of the switch and the controller to be configured in the same broadcast domain is not in the same broadcast domain, as long as the switch to be configured sends a DHCP discovery packet to the controller, when to be a switch controller configured as the same type of device, the configuration of the switch can be obtained automatically pre-allocated IP address of the controller, thereby improving working efficiency and reducing operational costs.

[0123] 本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。 [0123] Those skilled in the art upon consideration of the specification and practice of the invention disclosed herein, will readily appreciate other embodiments of the present invention. 本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。 This application is intended to cover any variations, uses, or adaptations of the present invention encompasses these variations, uses, or adaptations of the invention following the general principles of the common general knowledge and comprises the art of the present invention are not disclosed in the conventional techniques or . 说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。 The specification and examples be considered as exemplary only, with a true scope and spirit of the invention indicated by the following claims claim.

[0124] 应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。 [0124] It should be appreciated that the present invention is not limited to the above has been described and illustrated in the drawings precise structure, and may be carried out without departing from the scope of the various modifications and changes. 本发明的范围仅由所附的权利要求来限制。 Scope of the invention be limited only by the appended claims.

Claims (15)

  1. 1. 一种网络配置的方法,其特征在于,所述方法应用于软件定义网络SDN中的控制器上,包括: 接收待配置的交换机发送的至少一个动态主机配置协议DHCP发现报文,所述DHCP发现报文中携带有请求标识; 针对所述待配置的交换机发送的至少一个DHCP发现报文中首个接收到的DHCP发现报文,根据所述请求标识确定处理所述首个接收到的DHCP发现报文,并为所述待配置的交换机分配IP地址; 将携带有所述IP地址和所述控制器的控制器地址的DHCP提供报文发送至所述待配置的交换机,W使所述待配置的交换机根据所述DHCP提供报文携带的IP地址和控制器地址进行网络配置。 1. A method for network configuration, wherein the method is applied on a software-defined network of SDN controller, comprising: receiving at least to be a dynamic host configuration protocol DHCP configuration switch to send discovery packet, the DHCP discovery packet carries a request identifier; DHCP discover at least one switch for transmitting the packets arranged to be received in the first DHCP discover packet, determining processing according to the request identifies said received first DHCP discovery packet, and to be configured to assign IP addresses to the switch; the controller carries the address of the DHCP IP address and the controller provides the packets to be configured to switch, W so that the said switch configured to be arranged according to the network DHCP offer packet carries an IP address and a controller address.
  2. 2. 根据权利要求1所述的方法,其特征在于,所述控制器为主控制器,所述DHCP提供报文中还携带有与所述主控制器对应的备控制器的控制器地址。 2. The method according to claim 1, wherein the controller is a master controller, the DHCP offer message further carries a standby controller and the main controller corresponding to the controller address.
  3. 3. 根据权利要求1所述的方法,其特征在于,所述接收待配置的交换机发送的至少一个DHCP发现报文具体包括: 当所述控制器和所述待配置的交换机处于同一广播域时,接收所述待配置的交换机广播的DHCP发现报文,或所述待配置的交换机的相邻交换机转发的所述待配置的交换机的DHCP发现报文; 当所述控制器和所述待配置的交换机不处于同一广播域时,接收所述待配置的交换机的相邻交换机转发的所述待配置的交换机的DHCP发现报文。 When the controller and the switch to be configured in the same broadcast domain: 3. The method according to claim 1, wherein said at least one configured to be received DHCP discover message sent by the switch comprises the DHCP, receiving said switch configured to be broadcast a DHCP discover message, or a switch to be configured to be disposed adjacent to the switch forwards the discovery packet switch; when the controller and the configuration to be when the switch is not in the same broadcast domain, DHCP receiving the said switch adjacent the switch to be configured to be configured to forward the discovery packet switch.
  4. 4. 根据权利要求1所述的方法,其特征在于,所述将携带有所述IP地址和所述控制器的控制器地址的DHCP提供报文发送至所述待配置的交换机具体包括: 当所述控制器和所述待配置的交换机处于同一广播域时,将所述DHCP提供报文发送至所述待配置的交换机,或将所述DHCP提供报文发送至所述待配置的交换机的相邻交换机,再由所述相邻交换机将所述DHCP提供报文转发至所述待配置的交换机; 当所述控制器和所述待配置的交换机不处于同一广播域时,将所述DHCP提供报文发送至所述待配置的交换机的相邻交换机,再由所述相邻交换机将所述DHCP提供报文转发至所述待配置的交换机。 4. The method according to claim 1, characterized in that, the DHCP carries the address of the IP address of the controller and the controller provides the packets to the switch to be configured comprises: when said controller and said switches to be configured in the same broadcast domain, the DHCP offer message to the switch to be configured, or the DHCP oFFER packet to the switch to be configured neighboring switch, then the switch to the adjacent forwarding the DHCP offer message to the switch to be configured; when the controller and the switch is configured to be not in the same broadcast domain, the DHCP provided adjacent switches send the message to the switch to be configured, then by the adjacent switch forwards the DHCP offer message to the switch to be configured.
  5. 5. -种网络配置的方法,其特征在于,所述方法应用于SDN中的待配置的交换机上,包括: 广播DHCP发现报文,所述DHCP发现报文携带有请求标化W使接收到所述DHCP发现报文的控制器根据该请求标识对首个接收到的所述DHCP发现报文进行处理并为所述待配置的交换机分配IP地址; 接收至少一个控制器发送的DHCP提供报文,所述DHCP提供报文携带有发送该DHCP提供报文的控制器为所述待配置的交换机分配的IP地址和发送该DHCP提供报文的控制器的控制器地址; 根据所述至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的IP地址和控制器地址进行网络配置。 5 - method of network configuration, wherein the method is applied on the switch to be configured SDN, comprising: a broadcast DHCP discover packet, the DHCP discovery packet carries a standardized request to the reception W the DHCP discovery packet controller according to the request identification of the received first DHCP discovery packet processing and assign IP addresses to the switch to be configured; receiving at least one DHCP packets sent by the controller to provide the DHCP offer message carrying the DHCP offer packet transmission controller for the IP address assigned to the switch to be configured and the DHCP offer packet transmission controller address of the controller; said at least one control DHCP sent by a DHCP packet to an IP address and a controller address carried in the packet network configuration.
  6. 6. 根据权利要求5所述的方法,其特征在于,所述控制器为主控制器,所述DHCP提供报文还携带有与所述主控制器对应的备控制器的控制器地址; 在根据所述至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的IP 地址和控制器地址进行网络配置之后,所述方法还包括: 根据所述主控制器的控制器地址和所述备控制器的控制器地址,向所述主控制器和备控制器发起安全传输层协议TLS或传输控制协议TCP连接。 6. The method according to claim 5, wherein the controller is a master controller, the DHCP offer message further carries a standby controller and the main controller corresponding to the controller address; in after providing a DHCP message in an IP address and a controller address carried in the DHCP packet to the at least one controller transmits the network configuration, the method further comprising: the address of the controller and the main controller the controller of the standby controller address, transport Layer security TLS or initiates a transmission control protocol to the master controller and the standby controller TCP connection.
  7. 7. 根据权利要求5所述的方法,其特征在于,所述接收至少一个控制器发送的DHCP提供报文具体包括: 当所述待配置的交换机和发送DHCP提供报文的控制器处于同一广播域时,接收该控制器发送的DHCP提供报文,或接收自身的相邻交换机转发的该控制器发送的DHCP提供报文; 当所述待配置的交换机和发送DHCP提供报文的控制器不处于同一广播域时,接收自身的相邻交换机转发的该控制器发送的DHCP提供报文。 7. The method as claimed in claim 5, wherein the receiving the at least one controller transmits the DHCP offer message comprises: when the switch to be configured and the DHCP offer message transmitted in the same broadcast controller time domain, the receiving controller sends a DHCP offer message, the controller sends or receives DHCP itself adjacent switches provide packet forwarding; when the switch to be configured and the DHCP offer packet transmission controller does not while in the same broadcast domain, DHCP controller receives its own adjacent switch forwards the packet transmission is provided.
  8. 8. 根据权利要求5所述的方法,其特征在于,所述根据所述至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的IP地址和控制器地址进行网络配置之后,所述方法还包括: 根据所述至少一个控制器发送的DHCP提供报文中的所有DHCP提供报文携带的控制器地址,向所述至少一个控制器发起TLS或TCP连接。 8. The method as claimed in claim 5, characterized in that, after a DHCP message provides IP address carried in the packet and the address controller providing network configuration according to the at least one DHCP sent by the controller, the method further comprising: providing all DHCP packets according to at least one controller transmits the DHCP offer controller address carried in the packet, the at least one controller to initiate a TLS or the TCP connection.
  9. 9. 一种网络配置的装置,其特征在于,所述装置应用于SDN中的控制器上,包括: 接收单元,用于接收待配置的交换机发送的至少一个DHCP发现报文,所述DHCP发现报文中携带有请求标识; 分配单元,用于针对所述待配置的交换机发送的至少一个DHCP发现报文中首个接收到的DHCP发现报文,根据所述请求标识确定处理所述首个接收到的DHCP发现报文,并为所述待配置的交换机分配IP地址; 发送单元,用于将携带有所述IP地址和所述控制器的控制器地址的DHCP提供报文发送至所述待配置的交换机,W使所述待配置的交换机根据所述DHCP提供报文携带的IP地址和控制器地址进行网络配置。 A configuration of the network device, wherein said device is applied to the SDN controller, comprising: a receiving unit, at least for receiving a DHCP discovery packet sent by a switch to be configured, the DHCP discover message carries the request identifier; allocating unit, at least one DHCP discover transmitted for the switch to be arranged in the first packet received DHCP discover packet, according to the request identifies said first determining process receiving the DHCP discover packet, and switch to be configured to assign IP addresses; transmitting means for carrying the IP address and DHCP address controller provides the controller to send the packet switches to be configured, W allow the switch to be configured according to the configuration of the network DHCP offer packet carries an IP address and a controller address.
  10. 10. 根据权利要求9所述的装置,其特征在于,所述控制器为主控制器,所述DHCP提供报文中还携带有与所述主控制器对应的备控制器的控制器地址。 10. The apparatus according to claim 9, wherein the controller is a master controller, the DHCP offer message further carries a standby controller and the main controller corresponding to the controller address.
  11. 11. 根据权利要求9所述的装置,其特征在于,所述接收单元还用于当所述控制器和所述待配置的交换机处于同一广播域时,接收所述待配置的交换机广播的DHCP发现报文,或所述待配置的交换机的相邻交换机转发的所述待配置的交换机的DHCP发现报文;当所述控制器和所述待配置的交换机不处于同一广播域时,接收所述待配置的交换机的相邻交换机转发的所述待配置的交换机的DHCP发现报文; W及,所述发送单元还用于当所述控制器和所述待配置的交换机处于同一广播域时, 将所述DHCP提供报文发送至所述待配置的交换机,或将所述DHCP提供报文发送至所述待配置的交换机的相邻交换机,再由所述相邻交换机将所述DHCP提供报文转发至所述待配置的交换机;当所述控制器和所述待配置的交换机不处于同一广播域时,将所述DHCP提供报文发送至所述待配置的交 11. The apparatus according to claim 9, wherein the receiving unit is further configured to DHCP when the controller and the switch to be configured in the same broadcast domain, to receive the broadcast configuration of the switch to be the discovery message, or a switch to be configured to be disposed adjacent to the switch forwards the DHCP discovery packet switch; when the controller and the switch is configured to be not in the same broadcast domain, to receive the the adjacent switches of said switch to be arranged to be forwarded to the switch configuration of DHCP discovery packet; and W is the sending unit is further configured to, when said controller and said switches to be configured in the same broadcast domain , the DHCP offer message to the switch to be configured, or the DHCP oFFER packet to the switch to be disposed adjacent to the switch, then the DHCP provided by the neighboring switch be forwarded to the packet switch configuration; when the controller and the switch is configured to be not in the same broadcast domain, the DHCP offer packet to be arranged in the cross 机的相邻交换机,再由所述相邻交换机将所述DHCP提供报文转发至所述待配置的交换机。 Neighboring switch machine will then forwards the DHCP offer message to the switch to be configured by the neighboring switch.
  12. 12. -种网络配置的装置,其特征在于,所述装置应用于SDN中的待配置的交换机上, 包括: 发送单元,用于广播DHCP发现报文,所述DHCP发现报文携带有请求标识,W使接收到所述DHCP发现报文的控制器根据该请求标识对首个接收到的所述DHCP发现报文进行处理并为所述待配置的交换机分配IP地址; 接收单元,用于接收至少一个控制器发送的DHCP提供报文,所述DHCP提供报文携带有发送该DHCP提供报文的控制器为所述待配置的交换机分配的IP地址和发送该DHCP提供报文的控制器的控制器地址; 配置单元,用于根据所述至少一个控制器发送的DHCP提供报文中的一个DHCP提供报文携带的IP地址和控制器地址进行网络配置。 12. - means arranged such networks, characterized in that said apparatus is applied to the switch to be arranged in the SDN, comprising: transmitting means for broadcasting DHCP discover packet, the DHCP discovery message carries request identifier , W so that the received DHCP discover message controller according to the request identification of the received first DHCP discovery packet to be processed and the switch is assigned an IP address configuration; receiving means for receiving at least one controller sends a DHCP offer message, the DHCP offer message carrying the DHCP offer packet transmission controller assigned IP address for the switch to be configured and the DHCP offer packet transmission controller address controller; configuration unit, for providing a DHCP message in an IP address and a controller address carried in the DHCP packet to the at least one controller transmits the network configuration.
  13. 13. 根据权利要求12所述的装置,其特征在于,所述控制器为主控制器,所述DHCP提供报文还携带有与所述主控制器对应的备控制器的控制器地址,所述装置还包括: 第一连接单元,用于根据所述主控制器的控制器地址和所述备控制器的控制器地址, 向所述主控制器和备控制器发起安全传输层协议TLS或传输控制协议TCP连接。 13. The apparatus as claimed in claim 12, wherein said controller is the primary controller, the DHCP offer message further carries a standby controller and the main controller corresponding to the controller address, the said apparatus further comprising: a first connection unit, a controller according to the master controller address and a controller address of the backup controller to initiate Transport Layer security TLS and to the master controller or standby controller transmission control protocol TCP connection.
  14. 14. 根据权利要求12所述的装置,其特征在于,所述接收单元还用于当所述待配置的交换机和发送DHCP提供报文的控制器处于同一广播域时,接收该控制器发送的DHCP提供报文,或接收自身的相邻交换机转发的该控制器发送的DHCP提供报文;当所述待配置的交换机和发送DHCP提供报文的控制器不处于同一广播域时,接收自身的相邻交换机转发的该控制器发送的DHCP提供报文。 14. The apparatus as claimed in claim 12, wherein the receiving unit is further configured to, when the switch to be configured and the DHCP offer message transmitted in the same broadcast domain controller, the controller receives the transmitted DHCP offer message, receiving a DHCP or the controller itself adjacent switch forwards the packets transmitted provided; when the switch to be configured and the DHCP offer packet transmission controller is not in the same broadcast domain itself received the adjacent switch forwards the DHCP offer message sent by the controller.
  15. 15. 根据权利要求12所述的装置,其特征在于,所述装置还包括: 第二连接单元,用于根据所述至少一个控制器发送的DHCP提供报文中的所有DHCP提供报文携带的控制器地址,向所述至少一个控制器发起TLS或TCP连接。 15. The apparatus according to claim 12, wherein said apparatus further comprises: a second connecting means, for providing all DHCP packets according to at least one of the DHCP offer message sent by the controller carried controller address, the at least one controller to initiate a TLS or the TCP connection.
CN 201510038674 2015-01-26 2015-01-26 Network configuration method and device CN104618156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510038674 CN104618156A (en) 2015-01-26 2015-01-26 Network configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510038674 CN104618156A (en) 2015-01-26 2015-01-26 Network configuration method and device

Publications (1)

Publication Number Publication Date
CN104618156A true true CN104618156A (en) 2015-05-13

Family

ID=53152447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510038674 CN104618156A (en) 2015-01-26 2015-01-26 Network configuration method and device

Country Status (1)

Country Link
CN (1) CN104618156A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100296A (en) * 2015-05-28 2015-11-25 杭州华三通信技术有限公司 Controller address configuration method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269278A (en) * 2013-04-19 2013-08-28 中国(南京)未来网络产业创新中心 Terminal equipment real-time connecting and disconnecting sensing method based on SDN
US20140192645A1 (en) * 2013-01-04 2014-07-10 Futurewei Technologies, Inc. Method for Internet Traffic Management Using a Central Traffic Controller
CN103973828A (en) * 2013-02-01 2014-08-06 华为技术有限公司 Method and device for acquiring IP (internet protocol) addresses for DHCP (dynamic host configuration protocol) clients
CN104104744A (en) * 2014-07-09 2014-10-15 杭州华三通信技术有限公司 IP address assignment method and device
CN104158916A (en) * 2013-05-13 2014-11-19 中兴通讯股份有限公司 Method and device for device accessing to network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140192645A1 (en) * 2013-01-04 2014-07-10 Futurewei Technologies, Inc. Method for Internet Traffic Management Using a Central Traffic Controller
CN103973828A (en) * 2013-02-01 2014-08-06 华为技术有限公司 Method and device for acquiring IP (internet protocol) addresses for DHCP (dynamic host configuration protocol) clients
CN103269278A (en) * 2013-04-19 2013-08-28 中国(南京)未来网络产业创新中心 Terminal equipment real-time connecting and disconnecting sensing method based on SDN
CN104158916A (en) * 2013-05-13 2014-11-19 中兴通讯股份有限公司 Method and device for device accessing to network
CN104104744A (en) * 2014-07-09 2014-10-15 杭州华三通信技术有限公司 IP address assignment method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100296A (en) * 2015-05-28 2015-11-25 杭州华三通信技术有限公司 Controller address configuration method and device

Similar Documents

Publication Publication Date Title
US7046666B1 (en) Method and apparatus for communicating between divergent networks using media access control communications
US20110295991A1 (en) Network system, controller, and network control method
US20100191813A1 (en) Automatically releasing resources reserved for subscriber devices within a broadband access network
US20080028071A1 (en) Communication load reducing method and computer system
US7512133B2 (en) Method and apparatus for obtaining multiple port addresses by a fibre channel from a network fabric
US20100191839A1 (en) Synchronizing resource bindings within computer network
US20050105529A1 (en) Network element modifying the DHCP lease timer
US20050114492A1 (en) DHCP proxy in a subscriber environment
CN1933493A (en) IP set-top box dynamic configuring IP method based on DHCP protocol
US20120023207A1 (en) Automatic assignment of hardware addresses within computer networks
US20070083672A1 (en) Information processing apparatus and communication control method
CN101217448A (en) A method and system to realize gateway dynamic load sharing
CN101951417A (en) Method, system and trunk equipment for assigning multiple server addresses
US20090296718A1 (en) Device Virtualization
CN103647853A (en) Method for sending ARP message in VxLAN, VTEP and VxLAN controller
CN102098354A (en) Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN1855916A (en) Method and system for realizing virtual IP protocol
CN102025630A (en) Load balancing method and load balancing system
US20160094650A1 (en) Non-overlay resource access in datacenters using overlay networks
CN103618621A (en) Method, device and system for automatic configuration of SDN
CN104506360A (en) Network access configuration method and system of intelligent equipment and related equipment
US20130232278A1 (en) IPv4 Data Center Support for IPv4 and IPv6 Visitors
CN101188519A (en) Automatic management method, system, resource management center and base station of base station resource
CN101883158A (en) Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
CN101141372A (en) Method and device for management of routing information and data forwarding in access equipment

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
CB02