CN104618156B - The method and device of network configuration - Google Patents
The method and device of network configuration Download PDFInfo
- Publication number
- CN104618156B CN104618156B CN201510038674.5A CN201510038674A CN104618156B CN 104618156 B CN104618156 B CN 104618156B CN 201510038674 A CN201510038674 A CN 201510038674A CN 104618156 B CN104618156 B CN 104618156B
- Authority
- CN
- China
- Prior art keywords
- controller
- dhcp
- message
- interchanger
- address
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Abstract
The present invention provides a kind of method and device of network configuration, this method is applied on the controller in SDN, including:At least one DHCP discovery message that interchanger to be configured is sent is received, carries request mark in DHCP discovery message;The first DHCP received has found message at least one DHCP discovery message sent for interchanger to be configured, is identified according to request and determines that the first DHCP received of processing has found message, and distributes IP address for interchanger to be configured;It provides the DHCP for carrying the controller address of IP address and controller to message and is sent to interchanger to be configured, so that interchanger to be configured provides the IP address and controller address progress network configuration that message carries according to DHCP.Therefore, allocative efficiency of the present invention is higher, and is not likely to produce configuration error, also improves working efficiency, and reduce O&M cost.
Description
Technical field
The present invention relates to field of communication technology more particularly to the method and devices of network configuration.
Background technique
With the development of communication technology, in software defined network (Software Defined Network, SDN) technology
The most popular is OpenFlow agreement.Wherein, OpenFlow is one between controller and forwarding defined in SDN framework
Communication interface standard.The OpenFlow interchanger and controller for supporting OpenFlow forwarding form OpenFlow network.Wherein,
Pass through secure transport layer protocol (Transport between OpenFlow interchanger and controller in the OpenFlow network
Layer Security, TLS) or transmission control protocol (Transmission Control Protocol, TCP) foundation peace
Full tunnel, and OpenFlow interacting message is carried out using the exit passageway.
When increasing OpenFlow interchanger in OpenFlow network newly, need to configure the OpenFlow interchanger,
For example, distribution IP address and Assign Controller address.
When configuring in the prior art to newly-increased OpenFlow interchanger, need network administrator newly-increased to this
OpenFlow interchanger carries out basic configuration, as the newly-increased unique access IP address of OpenFlow interchanger distribution, matches
Set OpenFlow example and Assign Controller address.It only completes with postponing, which could be to control
Device initiates TLS or TCP connection.
But when OpenFlow interchanger newly-increased in OpenFlow network is more, and each newly-increased OpenFlow is handed over
The access changed planes requires human configuration, to reduce working efficiency, and increases O&M cost.
Summary of the invention
The present invention provides the method and device of network configuration, to solve in the prior art when newly-increased in OpenFlow network
When OpenFlow interchanger is more, and the access of each newly-increased OpenFlow interchanger requires human configuration, to reduce
Working efficiency, and the problem of increase O&M cost.
According to a first aspect of the embodiments of the present invention, a kind of method of network configuration is provided, this method is applied in SDN
On controller, including:
Receive at least one dynamic host configuration protocol DHCP discovery message that interchanger to be configured is sent, DHCP hair
Request mark is carried in existing message;
The first DHCP discovery report received at least one DHCP discovery message sent for interchanger to be configured
Text identifies according to request and determines that the first DHCP received of processing has found message, and distributes IP address for interchanger to be configured;
It provides the DHCP for carrying the controller address of IP address and controller to message and is sent to interchanger to be configured,
So that interchanger to be configured provides the IP address and controller address progress network configuration that message carries according to DHCP.
According to a second aspect of the embodiments of the present invention, a kind of method of network configuration is provided, this method is applied in SDN
On interchanger to be configured, including:
It broadcasts DHCP and finds that message, DHCP discovery message carry request mark, so as to receive the DHCP discovery
The controller of message identifies according to the request and handle and to be described wait match to the first DHCP discovery message received
The interchanger distribution IP address set;
Receive at least one controller transmission DHCP provide message, the DHCP provide message carry send the DHCP mention
The IP address distributed for the controller of message for interchanger to be configured and send the control that the DHCP provides the controller of message
Device address;
A DHCP in message is provided according to the DHCP that at least one controller is sent, and the IP address that message carries is provided
Network configuration is carried out with controller address.
According to a third aspect of the embodiments of the present invention, a kind of device of network configuration is provided, which is applied in SDN
On controller, including:
Receiving unit finds message, DHCP discovery for receiving at least one DHCP that interchanger to be configured is sent
Request mark is carried in message;
Allocation unit, at least one DHCP for sending for interchanger to be configured have found first in message receive
DHCP find message, determine that the processing first DHCP that receives has found message according to the request mark, be to be configured
Interchanger distribute IP address;
Transmission unit, for by the DHCP for carrying the controller address of IP address and controller provide message be sent to
The interchanger of configuration, so that interchanger to be configured provides the IP address of message carrying according to DHCP and controller address carries out net
Network configuration.
According to a fourth aspect of the embodiments of the present invention, a kind of device of network configuration is provided, which is applied in SDN
On interchanger to be configured, including:
Transmission unit, for broadcasting DHCP discovery message, DHCP discovery message carries request mark, so as to receive
The controller of the DHCP discovery message is identified according to the request and is handled the first DHCP discovery message received
And IP address is distributed for the interchanger to be configured;
Receiving unit, the DHCP for receiving the transmission of at least one controller provide message, which provides message and carry
There is the controller for sending DHCP offer message to provide message with the DHCP is sent for the IP address that interchanger to be configured distributes
Controller controller address;
Configuration unit, the DHCP for being sent according at least one controller provide a DHCP in message and provide message
The IP address and controller address of carrying carry out network configuration.
Using the embodiment of the present invention, DHCP is broadcasted by interchanger to be configured and finds that message, controller are received wait match
At least one DHCP discovery message that the interchanger set is sent, the DHCP have found to carry request mark in message;For wait match
The first DHCP discovery message received, true according to request mark at least one DHCP discovery message that the interchanger set is sent
Surely the first DHCP discovery message received is handled, and distributes IP address for interchanger to be configured;To carry IP address and
The DHCP of the controller address of controller provides message and is sent to interchanger to be configured;Interchanger to be configured receives at least one
The DHCP that a controller is sent provides message;The DHCP that the DHCP sent according at least one controller is provided in message is mentioned
The IP address and controller address carried for message carries out network configuration, so that realizing controller is that exchange to be configured is motor-driven
State distributes IP address, and allocative efficiency is higher, and is not likely to produce configuration error, also improves working efficiency, and reduces fortune
Tie up cost.
Detailed description of the invention
Fig. 1 is the application scenarios schematic diagram using network configuration of the embodiment of the present invention;
Fig. 2 is one embodiment flow chart of the method for inventive network configuration;
Fig. 3 is another embodiment flow chart of the method for inventive network configuration;
Fig. 4 is the schematic diagram of DHCP discovery message in the method for inventive network configuration;
Fig. 5 is the schematic diagram of the Option Field of DHCP discovery message in the method for inventive network configuration;
Fig. 6 is a kind of hardware structure diagram of equipment where the device of inventive network configuration;
Fig. 7 is one embodiment block diagram of the device of inventive network configuration;
Fig. 8 is another embodiment block diagram of the device of inventive network configuration.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real
The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present invention
Case is described in further detail.
Referring to Fig. 1, for the application scenarios schematic diagram of application network configuration of the embodiment of the present invention:
A kind of group-network construction of OpenFlow network is shown in Fig. 1.Wherein, switch A, switch b, interchanger C and
Interchanger D all can be OpenFlow interchanger, and each OpenFlow interchanger connects one or more terminal devices, control
Device 1 and controller 2 processed all can be OpenFlow controller, all for controlling switch A, switch b, interchanger C and exchange
Multiple OpenFlow interchangers such as machine D.
Above controller 1 and switch A, switch b, interchanger C and interchanger D are in same network segment and are in same wide
Broadcast domain;And controller 2 and switch A, switch b, interchanger C and interchanger D be not at same network segment be not at it is same wide
Broadcast domain.
In embodiments of the present invention, the purpose is to realize following function:It is handed over when increasing OpenFlow in OpenFlow network newly
When changing planes, the OpenFlow interchanger assignment configuration information that controller can be automatically newly-increased to this, for example, distribution IP address.
For example, switch A, switch b, interchanger C and interchanger D and controller 1 are only included in OpenFlow network,
Wherein, switch A is newly-increased OpenFlow interchanger.Due to controller 1 and switch A, switch b, interchanger C and exchange
Machine D is in same broadcast domain, then newly the switch A of access OpenFlow network can be sent in the form of broadcast to controller 1
Configuring request, controller send configuration information to switch A according to configuring request, and switch A is according to the configuration information received
Carry out network configuration.
For another example, switch A, switch b, interchanger C and interchanger D and controller are only included in OpenFlow network
2, wherein switch A is newly-increased OpenFlow interchanger.Due to controller 2 and switch A, switch b, interchanger C and friendship
The D that changes planes is not at same broadcast domain, when the form for newly accessing the switch A of OpenFlow network to broadcast is sent to controller 2
When configuring request, controller 2 does not receive the configuring request, but switch b, interchanger C and interchanger D can receive this
Configuring request, if one in switch b, interchanger C and interchanger D has been completed controller 2 to its network configuration, and
The controller address of controller 2 is obtained, then the configured interchanger can serve as the role of relaying, by the configuration of switch A
Request is forwarded to controller 2, similarly, the configuration information of controller 2 is forwarded to switch A, so that switch A is according to connecing
The configuration information received carries out network configuration.
As seen from the above-described embodiment, tube controller and newly-increased interchanger are not in same broadcast domain again without in same
Broadcast domain, as long as newly-increased interchanger accesses OpenFlow network, controller can automatically be handed over the newly-increased OpenFlow
Assignment configuration of changing planes information, to improve work efficiency, and reduces O&M cost.
The embodiment of inventive network configuration is described in detail with reference to the accompanying drawing.
It referring to fig. 2, is one embodiment flow chart of the method for inventive network configuration, the embodiment is from the control in SDN
Device side processed is described.
Wherein, can only include a controller in SDN, controller described in the embodiment of the present invention may with it is to be configured
Interchanger be in same broadcast domain, it is also possible to and interchanger to be configured is not at same broadcast domain.
It also may include multiple controllers in SDN, when multiple controller works in high availability clusters (High
Available, HA) mode when, one of controller be master controller (master), remaining controller be preparation controller
(slave), under HA mode, only master controller can handle DHCP discovery message, therefore control described in the embodiment of the present invention
Device processed is master controller;When multiple controller work in equality (equal) mode, then described in the embodiment of the present invention control
Device processed can be any controller therein.In addition, dynamic host configuration protocol (Dynamic may be implemented in the server in SDN
Host Configuration Protocol, DHCP) server function, and interchanger to be configured may be implemented DHCP visitor
The function at family end.
This approach includes the following steps:
Step 210:At least one DHCP discovery message that interchanger to be configured is sent is received, which finds in message
Carry request mark.
Wherein, interchanger to be configured can be newly-increased OpenFlow interchanger, and request mark can be
OpenFlow mark.OpenFlow mark demonstrates the need for OpenFlow controller and finds that message is located accordingly according to DHCP
Reason, when including that non-OpenFlow controller realizes dhcp server functionality in OpenFlow network, then the non-OpenFlow control
Device processed cannot find that message performs corresponding processing according to DHCP.
In the embodiment of the present invention, whether same broadcast domain is according to interchanger and controller to be configured, can be had as follows
Different reception modes:
First way, when interchanger and controller to be configured are in same broadcast domain, controller receives to be configured
Interchanger broadcast DHCP discovery message or interchanger to be configured neighboring switch forwarding interchanger to be configured
DHCP has found message.
Specifically, interchanger to be configured sends DHCP with the forms of broadcasting and finds message, the control as same broadcast domain
Device will receive DHCP discovery message.In addition, the neighboring switch of interchanger to be configured can also receive DHCP discovery report
Text, then the DHCP received can be had found that message is forwarded to controller by the neighboring switch.
The second way, when interchanger and controller to be configured are not at same broadcast domain, controller can receive to
The DHCP of the interchanger to be configured of the neighboring switch forwarding of the interchanger of configuration has found message.
Specifically, interchanger to be configured sends DHCP with the forms of broadcasting and finds message, as the adjacent of same broadcast domain
Interchanger can receive DHCP discovery message, when the neighboring switch for receiving DHCP discovery message has passed through control
Device carried out network configuration, then the neighboring switch can serve as the role of relaying, and DHCP discovery message is forwarded to control
Device, so that controller receives the DHCP discovery message of neighboring switch forwarding.
Step 220:It is first at least one DHCP discovery message sent for interchanger to be configured to receive
DHCP has found message, is identified according to request and determines that the processing first DHCP received has found message, and is friendship to be configured
It changes planes and distributes IP address.
Specifically, when controller receives multiple DHCP discovery message for interchanger to be configured, the controller
Subsequent respective handling is carried out just for the DHCP discovery message received for the first time, then directly ignores or loses as other messages
It abandons.
Due in SDN network there may be realize dhcp server functionality non-OpenFlow controller, it is this to avoid
The non-OpenFlow controller for realizing dhcp server functionality is that interchanger to be configured distributes IP address, so finding in DHCP
Request mark is added in message.Realize that the non-OpenFlow controller of dhcp server functionality only finds report to common DHCP
Text (not carrying the DHCP discovery message of request mark) is handled, to send the interchanger point that common DHCP has found message
With address, and realize dhcp server functionality OpenFlow controller can to carry request mark DHCP find message into
Row processing finds that the interchanger of message distributes address to send the DHCP of carrying request mark.
It in addition, determining that the first DHCP received of processing has found message when controller is identified according to request, and is to be configured
Interchanger distribute IP address when, controller can obtain the IP address of predistribution from preset address pool.Wherein, it obtained
Journey can be random, can also be obtained according to the priority orders of IP address.
Step 230:To carry the controller address of the IP address and the controller DHCP provide message be sent to
The interchanger of configuration, so that interchanger to be configured provides the IP address of message carrying according to DHCP and controller address carries out net
Network configuration.
In the present embodiment, whether same broadcast domain is according to interchanger and controller to be configured, there can be following difference
Sending method:
First way, when controller and interchanger to be configured are in same broadcast domain, will carry IP address and
The DHCP of the controller address of controller provides message and is sent to interchanger to be configured, or will carry IP address and controller
The DHCP of controller address message be provided be sent to the neighboring switch of interchanger to be configured, then will by neighboring switch
DHCP provides message and is forwarded to interchanger to be configured.
The second way will carry IP address when controller and interchanger to be configured are not at same broadcast domain
The neighboring switch that message is sent to interchanger to be configured is provided with the DHCP of the controller address of controller, then by adjacent friendship
It changes planes and provides DHCP to message and be forwarded to interchanger to be configured.
Optionally, in above-described embodiment, when controller is main controller, which sends to interchanger to be configured
DHCP provide and also carry the controller address of preparation controller corresponding with master controller in message so that exchange to be configured
The control address of machine caching preparation controller.
As seen from the above-described embodiment, tube controller and interchanger to be configured are not in same broadcast domain again without being in
Same broadcast domain, as long as controller receives the DHCP discovery message that interchanger to be configured is sent, it will be able to automatically to this
Interchanger to be configured distributes corresponding IP address and also improves work so that allocative efficiency is higher, and is not likely to produce configuration error
Make efficiency, and reduces O&M cost.
Referring to Fig. 3, for one embodiment flow chart of the method for inventive network configuration, the embodiment from SDN to
The exchanger side of configuration is described.
Wherein, can only include a controller in SDN, controller described in the embodiment of the present invention may with it is to be configured
Interchanger be in same broadcast domain, it is also possible to and interchanger to be configured is not at same broadcast domain.
Also may include multiple controllers in SDN, when multiple controller work in HA mode, one of controller
For master controller (master), remaining controller is preparation controller (slave), and under HA mode, only master controller can be located
It manages DHCP and finds message, therefore controller described in the embodiment of the present invention is master controller;When the work of multiple controller exists
When equal mode, then controller described in the embodiment of the present invention can be any controller therein.In addition, the clothes in SDN
The function of Dynamic Host Configuration Protocol server may be implemented in business device, and the function of dhcp client may be implemented in interchanger to be configured.
This approach includes the following steps:
Step 310:It broadcasts DHCP and finds message, DHCP discovery message carries request mark, so as to receive DHCP
Processing is carried out to the first DHCP discovery message received and is to be configured it was found that the controller of message is identified according to the request
Interchanger distributes IP address.Wherein, interchanger to be configured can be newly-increased OpenFlow interchanger, the DHCP discovery of broadcast
The request mark that message carries can identify for OpenFlow.
In the embodiment of the present invention, OpenFlow network may include one or more controllers, these controllers may be with
Newly-increased OpenFlow interchanger is in the same broadcast domain.In addition, one or more controllers that OpenFlow network includes
It may also be not at the same broadcast domain with newly-increased OpenFlow interchanger, or the controller having and newly-increased OpenFlow
Interchanger is in the same broadcast domain, and some controllers and newly-increased OpenFlow interchanger are not at the same broadcast domain.
It whether is in same broadcast domain according to interchanger and controller to be configured, there can be following different sending method:
First way, when interchanger and controller to be configured are in same broadcast domain, interchanger to be configured can
Find that message, one or more controllers as same broadcast domain will receive DHCP discovery to send DHCP with the forms of broadcasting
Message.
The second way, when interchanger and controller to be configured are not at same broadcast domain, interchanger to be configured
DHCP can be broadcasted to neighboring switch and find message, so that DHCP discovery message is forwarded to controller by adjacent interchanger.
Specifically, interchanger to be configured sends DHCP with the forms of broadcasting and finds message, as the adjacent of same broadcast domain
Interchanger can receive DHCP discovery message, when the interchanger for receiving DHCP discovery message has been carried out by controller
Network configuration is crossed, then the neighboring switch can serve as the role of relaying, and DHCP discovery message is forwarded to controller.
In addition, the request mark carried in DHCP discovery message, for example, the request is identified as OpenFlow mark, it can be with
It is added in option (Options) field of message.Using the Option field in DHCP discovery message, setting OpenFlow is marked
Know, identifies this dhcp process for specific OpenFlow interchanger and controller.Wherein, DHCP has found message general format such as
Shown in Fig. 4, the format of option (Options) field is as shown in Figure 5.
Step 320:The DHCP for receiving the transmission of at least one controller provides message, which provides message and carry transmission
The DHCP provides the controller of message and provides the control of message with the DHCP is sent for the IP address that interchanger to be configured distributes
The controller address of device.
In the embodiment of the present invention, whether same broadcast domain is according to interchanger and controller to be configured, can be had as follows
Different reception modes:
First way, when interchanger to be configured and the controller for sending DHCP offer message are in same broadcast domain
When, the DHCP for receiving controller transmission provides message, or receive the controller transmission of the neighboring switch forwarding of itself
DHCP provides message.
The second way, when interchanger to be configured and the controller for sending DHCP offer message are not at same broadcast domain
When, the DHCP offer message that the controller of the neighboring switch forwarding of itself is sent is provided.
Step 330:A DHCP in message is provided according to the DHCP that at least one controller is sent, and message carrying is provided
IP address and controller address carry out network configuration.
It may include one or more controllers in the embodiment of the present invention, in SDN, then interchanger to be configured may receive
The DHCP that one or more controllers are sent provides message.
Specifically include following three kinds of situations:
(1) controller is only included in SDN, the DHCP that interchanger to be configured receives controller transmission provides report
Wen Shi then provides the IP address and controller address progress network configuration that message carries according to DHCP.
It (2) include two or more controllers in SDN, and two or more controllers work is in equality
(equal) mode, the then DHCP that interchanger to be configured can receive any controller transmission provide message.
If the DHCP that interchanger to be configured receives the transmission of two or more controllers provides message,
It is provided from the DHCP of the transmission of two or more controllers and chooses one in message, what general selection received for the first time
DHCP provides message, and IP address and controller address progress network configuration in message are provided according to the DHCP that this is chosen.
In addition, also providing the DHCP that two or more controllers received are sent to the controller ground in message
Location extracts, and is numbered to ease up and deposit, as shown in table 1.
Table 1
Number | Controller title | Controller address | Mask |
1 | Controller 1 | 10.11.0.1 | 16 |
2 | Controller 2 | 10.11.0.2 | 16 |
… | … | … | … |
N | Controller N | … | … |
It (3) include two or more controllers in SDN, and two or more controllers work is in HA mould
Formula, one of controller are master controller (master), remaining controller is preparation controller (slave), then to be configured
Interchanger can only receive master controller transmission DHCP provide message, and according to the DHCP provide message carry IP address and
Controller address carries out network configuration.
If the DHCP for receiving master controller transmission provides message, which provides message in addition to carrying master controller
Controller address except, when can also carry the controller address of preparation controller corresponding with the master controller, it is also necessary to
Master controller address and preparation controller address extraction are come out, and is numbered to ease up and deposit, as shown in table 2.
Table 2
Number | Controller title | Role | Controller address | Mask |
1 | Controller 1 | It is main | 10.11.0.1 | 16 |
2 | Controller 2 | It is standby | 10.11.0.2 | 16 |
… | … | It is standby | … | … |
N | Controller N | It is standby | … | … |
In above-described embodiment, when the DHCP that interchanger to be configured receives the transmission of at least one controller provides message
When, the DHCP which sends according at least one controller provides the DHCP offer message in message and takes
The process that the IP address and controller address of the predistribution of band carry out network configuration can be:
Interchanger to be configured can be for for carrying out controller corresponding to the controller address of network configuration with wide
The mode broadcast sends DHCP request (DHCP-REQUEST) message, and it is to be configured which, which carries the controller,
The IP address of interchanger distribution, controller receive DHCP request message, however, it is determined that the IP address is itself for exchange to be configured
The IP address of machine distribution, and confirm and the IP address is distributed into the interchanger to be configured, then it is returned to interchanger to be configured
DHCP confirms (DHCP-ACK) message, so that interchanger to be configured is according to the IP address and control that the controller is that itself is distributed
The controller address of device carries out network configuration;Otherwise it returns to DHCP and vetos (DHCP-NAK) message, show that the IP address cannot divide
Dispensing interchanger to be configured, so that the IP that interchanger to be configured selects other controllers to distribute for interchanger to be configured
The controller address of address and controller carries out network configuration.
Optionally, in the above-described example, when the DHCP sent according at least one controller provides one in message
After DHCP provides the IP address and controller address progress network configuration of the predistribution that message carries, this method further includes:
If including the controller of a controller or multiple work in equal mode in SDN, according at least one control
The DHCP that device is sent provides all DHCP in message and provides the controller address that message carries, and initiates at least one controller
Secure transport layer protocol (Transport Layer Security, TLS) or transmission control protocol (Transmission
Control Protocol, TCP) connection.
Optionally, in the above-described example, if the DHCP for receiving master controller transmission provides message, which provides report
Text also carries the control of preparation controller corresponding with the master controller other than the controller address for carrying master controller
When device address, this method further includes:
According to the controller address of the controller address of master controller and preparation controller, sent out to master controller and preparation controller
Play TLS or TCP connection.
As seen from the above-described embodiment, regardless of interchanger to be configured and controller are in same broadcast domain again without being in
Same broadcast domain, as long as interchanger to be configured, which sends DHCP to controller, finds message, it will be able to be automatically derived controller
The IP address of predistribution also improves working efficiency, and reduce so that allocative efficiency is higher, and is not likely to produce configuration error
O&M cost.
Corresponding with the embodiment of the method for aforementioned network configuration, the present invention also provides the implementations of the device of network configuration
Example.
The embodiment of the device of inventive network configuration can be using on network devices.Installation practice can be by soft
Part is realized, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, as a logical meaning
On device, be to be read computer program instructions corresponding in nonvolatile memory by the processor of equipment where it
Operation is formed in memory.For hardware view, as shown in fig. 6, for one of equipment where the device of inventive network configuration
Kind hardware structure diagram, other than processor shown in fig. 6, network interface, memory and nonvolatile memory, in embodiment
Equipment where device can also include usually other hardware, such as be responsible for the forwarding chip of processing message;From hardware configuration
From the equipment be also possible to be distributed equipment, may include multiple interface cards, so as to hardware view carry out message at
The extension of reason.
Referring to Fig. 7, for one embodiment block diagram of the device of inventive network configuration, which can be applied in SDN
Controller on, and can be used for executing the method for network configuration shown in Fig. 2.Inventive network configuration device include:It connects
Receive unit 71, allocation unit 72 and transmission unit 73.
Wherein, receiving unit 71 is used to receive at least one dynamic host configuration protocol that interchanger to be configured is sent
DHCP has found message, carries request mark in DHCP discovery message;
First reception at least one DHCP discovery message that allocation unit 72 is used to send for interchanger to be configured
The DHCP discovery message arrived determines that the processing first DHCP that receives has found message according to the request mark, and for
The interchanger of configuration distributes IP address.
Transmission unit 73 provides the DHCP for carrying IP address and controller address to message and is sent to exchange to be configured
Machine, so that interchanger to be configured provides the IP address and controller address progress network configuration that message carries according to DHCP.
Wherein, interchanger to be configured can be OpenFlow interchanger.
In an optional implementation, controller is master controller, which sends to interchanger to be configured
DHCP provide and also carry the controller address of preparation controller corresponding with master controller in message.
In another optional implementation, receiving unit 71 is also used to be in when controller and interchanger to be configured
When same broadcast domain, the adjacent exchange of the DHCP discovery message or interchanger to be configured of interchanger broadcast to be configured is received
The DHCP of the interchanger to be configured of machine forwarding has found message;When controller and interchanger to be configured are not at same broadcast domain
When, receive the DHCP discovery message of the interchanger to be configured of the neighboring switch forwarding of interchanger to be configured;
And transmission unit 73 is also used to carry when controller and interchanger to be configured are in same broadcast domain
There is the DHCP of the controller address of IP address and controller to provide message and be sent to interchanger to be configured, or IP will be carried
The DHCP of the controller address of location and controller provides the neighboring switch that message is sent to interchanger to be configured, then by adjacent
Interchanger provides DHCP to message and is forwarded to interchanger to be configured;When controller and interchanger to be configured be not at it is same wide
When broadcasting domain, provides the DHCP for carrying the controller address of IP address and controller to message and be sent to interchanger to be configured
Neighboring switch, then provide DHCP to message by neighboring switch and be forwarded to interchanger to be configured.
As seen from the above-described embodiment, tube controller and interchanger to be configured are not in same broadcast domain again without being in
Same broadcast domain, as long as the device of the network configuration in controller receives the DHCP discovery report that interchanger to be configured is sent
Text, it will be able to automatically distribute corresponding IP address to the interchanger to be configured, to improve work efficiency, and reduce
O&M cost.
Referring to Fig. 8, for another embodiment block diagram of the device of inventive network configuration, which can be applied in SDN
In interchanger to be configured on, and can be used for executing the method for network configuration shown in Fig. 3.The dress of inventive network configuration
Set including:Transmission unit 81, receiving unit 82 and configuration unit 83.
Wherein, transmission unit 81 carries request mark for broadcasting DHCP discovery message, DHCP discovery message, so that
Receive the controller of DHCP discovery message according to request mark to the first DHCP received find message into
Row handles and distributes IP address for the interchanger to be configured.
The DHCP that receiving unit 82 is used to receive the transmission of at least one controller provides message, and DHCP provides message and carries
The controller of DHCP offer message is provided and provides message with the DHCP is sent for the IP address that interchanger to be configured distributes
The controller address of controller.
The DHCP that configuration unit 83 is used to be sent according at least one controller provides a DHCP in message and provides report
The IP address and controller address that text carries carry out network configuration.
Wherein, interchanger to be configured can be OpenFlow interchanger, carry in the DHCP discovery message of broadcast
Request mark can identify for OpenFlow
In an optional implementation, when controller is master controller, which sends out to interchanger to be configured
When the DHCP offer message sent also carries the controller address of preparation controller corresponding with master controller, inventive network configuration
Device further include:First connection unit (does not mark) in Fig. 8.
Wherein, the first connection unit is used for according to the controller address of master controller and the controller address of preparation controller,
Secure transport layer protocol TLS is initiated with preparation controller to master controller or transmission control protocol TCP connects.
And receiving unit 82 is also used to when interchanger to be configured and sends the controller of DHCP offer message in same
When one broadcast domain, the DHCP for receiving controller transmission provides message, or receives the control of the neighboring switch forwarding of itself
The DHCP that device is sent provides message;When interchanger to be configured and the controller for sending DHCP offer message are not at same broadcast
When domain, the DHCP offer message that the controller of the neighboring switch forwarding of itself is sent is received.
In another optional implementation, the device of inventive network configuration further includes:Second connection unit (Fig. 8
In do not mark).
Wherein, the DHCP that the second connection unit is used to be sent according at least one controller provides all DHCP in message
The controller address that message carries is provided, initiates TLS or TCP connection at least one controller.
As seen from the above-described embodiment, regardless of interchanger to be configured and controller are in same broadcast domain again without being in
Same broadcast domain, as long as the device of the network configuration on interchanger to be configured, which sends DHCP to controller, finds message, energy
The IP address for being enough automatically derived controller predistribution also improves so that allocative efficiency is higher, and is not likely to produce configuration error
Working efficiency, and reduce O&M cost.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein being used as separate part description
Unit may or may not be physically separated, component shown as a unit may or may not be
Physical unit, it can be in a place, or may be distributed over multiple network units.It can be according to the actual needs
Some or all of the modules therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying wound
In the case that the property made is worked, it can understand and implement.
As seen from the above-described embodiment, as seen from the above-described embodiment, it is in same with controller regardless of interchanger to be configured
Broadcast domain again without be in same broadcast domain, as long as interchanger to be configured to controller send DHCP find message, when to
When the interchanger and controller of configuration are same type of equipment, interchanger to be configured can be automatically derived the controller
The IP address of predistribution to improve work efficiency, and reduces O&M cost.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (12)
1. a kind of method of network configuration, which is characterized in that the method is applied to the controller in software defined network SDN
On, including:
Receive at least one dynamic host configuration protocol DHCP discovery message that interchanger to be configured is sent, the DHCP discovery
Request mark is carried in message;
The first DHCP discovery report received at least one DHCP discovery message sent for the interchanger to be configured
Text determines that the processing first DHCP received has found message according to the request mark, and is the exchange to be configured
Machine distributes IP address;
By the DHCP for carrying the controller address of the IP address and the controller provide message be sent to it is described to be configured
Interchanger so that the interchanger to be configured according to the DHCP provide message carry IP address and controller address into
Row network configuration;The DHCP that the controller address of the IP address and the controller will be carried provides message and is sent to
The interchanger to be configured specifically includes:When the controller and the interchanger to be configured are in same broadcast domain,
There is provided the DHCP to message and be sent to the interchanger to be configured, or by the DHCP provide message be sent to it is described wait match
The neighboring switch for the interchanger set, then by the neighboring switch by the DHCP provide message be forwarded to it is described to be configured
Interchanger;When the controller and the interchanger to be configured are not at same broadcast domain, the DHCP is provided to message
It is sent to the neighboring switch of the interchanger to be configured, then provides the DHCP to message forwarding by the neighboring switch
To the interchanger to be configured.
2. the DHCP provides report the method according to claim 1, wherein the controller is master controller
The controller address of preparation controller corresponding with the master controller is also carried in text.
3. the method according to claim 1, wherein at least one described for receiving interchanger to be configured and sending
DHCP discovery message specifically includes:
When the controller and the interchanger to be configured are in same broadcast domain, it is wide to receive the interchanger to be configured
The interchanger to be configured of the neighboring switch forwarding of the DHCP discovery message or the interchanger to be configured broadcast
DHCP has found message;
When the controller and the interchanger to be configured are not at same broadcast domain, the interchanger to be configured is received
Neighboring switch forwarding the interchanger to be configured DHCP find message.
4. a kind of method of network configuration, which is characterized in that the method is applied on the interchanger to be configured in SDN, packet
It includes:
It broadcasts DHCP and finds that message, the DHCP discovery message carry request mark, so as to receive the DHCP discovery report
The controller of text is identified according to the request to carry out processing to the first DHCP discovery message received and is described to be configured
Interchanger distribute IP address;
The DHCP for receiving the transmission of at least one controller provides message, and the DHCP provides message and carries transmission DHCP offer
The controller of message for the interchanger distribution to be configured IP address and send the control that the DHCP provides the controller of message
Device address processed;The DHCP for receiving the transmission of at least one controller provides message and specifically includes:When the exchange to be configured
When machine and the controller for sending DHCP offer message are in same broadcast domain, the DHCP for receiving controller transmission provides message,
Or receive the DHCP offer message that the controller of the neighboring switch forwarding of itself is sent;When the interchanger to be configured and
When the controller that transmission DHCP provides message is not at same broadcast domain, the controller of the neighboring switch forwarding of itself is received
The DHCP of transmission provides message;
A DHCP in message is provided according to the DHCP that at least one described controller is sent, and the IP address that message carries is provided
Network configuration is carried out with controller address.
5. according to the method described in claim 4, the DHCP provides report it is characterized in that, the controller is master controller
Text also carries the controller address of preparation controller corresponding with the master controller;
A DHCP in the DHCP offer message sent according at least one described controller is with providing the IP that message carries
After location and controller address carry out network configuration, the method also includes:
According to the controller address of the controller address of the master controller and the preparation controller, to the master controller and standby
Controller initiates secure transport layer protocol TLS or transmission control protocol TCP connection.
6. according to the method described in claim 4, it is characterized in that, the DHCP that described at least one controller according to is sent
After the IP address and controller address progress network configuration that a DHCP in message provides message carrying are provided, the method
Further include:
All DHCP in message are provided according to the DHCP that at least one described controller is sent, and the controller that message carries is provided
TLS or TCP connection are initiated at least one described controller in address.
7. a kind of device of network configuration, which is characterized in that described device is applied on the controller in SDN, including:
Receiving unit finds message, the DHCP discovery report for receiving at least one DHCP that interchanger to be configured is sent
Request mark is carried in text;
Allocation unit, at least one DHCP for sending for the interchanger to be configured have found first in message receive
DHCP find message, determine that the processing first DHCP that receives has found message according to the request mark, and be described
Interchanger to be configured distributes IP address;
Transmission unit is sent for providing the DHCP for carrying the controller address of the IP address and the controller to message
To the interchanger to be configured so that the interchanger to be configured according to the DHCP provide IP address that message carries and
Controller address carries out network configuration;The transmission unit is also used to be in when the controller and the interchanger to be configured
When same broadcast domain, provides the DHCP to message and be sent to the interchanger to be configured, or provide the DHCP to message
It is sent to the neighboring switch of the interchanger to be configured, then provides the DHCP to message forwarding by the neighboring switch
To the interchanger to be configured;When the controller and the interchanger to be configured are not at same broadcast domain, by institute
It states DHCP and the neighboring switch that message is sent to the interchanger to be configured is provided, then will be described by the neighboring switch
DHCP provides message and is forwarded to the interchanger to be configured.
8. device according to claim 7, which is characterized in that the controller is master controller, and the DHCP provides report
The controller address of preparation controller corresponding with the master controller is also carried in text.
9. device according to claim 7, which is characterized in that the receiving unit is also used to when the controller and described
When interchanger to be configured is in same broadcast domain, DHCP discovery message or the institute of the interchanger broadcast to be configured are received
State the DHCP discovery message of the interchanger to be configured of the neighboring switch forwarding of interchanger to be configured;When the control
When device and the interchanger to be configured are not at same broadcast domain, the neighboring switch for receiving the interchanger to be configured turns
The DHCP of the interchanger to be configured of hair has found message.
10. a kind of device of network configuration, which is characterized in that described device is applied on the interchanger to be configured in SDN, packet
It includes:
Transmission unit, for broadcasting DHCP discovery message, the DHCP discovery message carries request mark, so as to receive institute
The controller for stating DHCP discovery message is handled simultaneously the first DHCP discovery message received according to request mark
IP address is distributed for the interchanger to be configured;
Receiving unit, the DHCP for receiving the transmission of at least one controller provide message, and the DHCP provides message and carries
The IP address that the controller of DHCP offer message is sent as the interchanger distribution to be configured provides report with the DHCP is sent
The controller address of the controller of text;The receiving unit is also used to when the interchanger to be configured and sends DHCP offer report
When the controller of text is in same broadcast domain, the DHCP for receiving controller transmission provides message, or receives the adjacent friendship of itself
The DHCP offer message that controller of forwarding of changing planes is sent;When the interchanger to be configured and send DHCP offer message
When controller is not at same broadcast domain, the DHCP offer report that the controller of the neighboring switch forwarding of itself is sent is received
Text;
Configuration unit, the DHCP for being sent according at least one described controller provide a DHCP in message and provide message
The IP address and controller address of carrying carry out network configuration.
11. device according to claim 10, which is characterized in that the controller is master controller, and the DHCP is provided
Message also carries the controller address of preparation controller corresponding with the master controller, and described device further includes:
First connection unit, for according to the controller address of the master controller and the controller address of the preparation controller,
Secure transport layer protocol TLS is initiated with preparation controller to the master controller or transmission control protocol TCP connects.
12. device according to claim 10, which is characterized in that described device further includes:
Second connection unit, the DHCP for being sent according at least one described controller provide all DHCP in message and provide
The controller address that message carries initiates TLS or TCP connection at least one described controller.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510038674.5A CN104618156B (en) | 2015-01-26 | 2015-01-26 | The method and device of network configuration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510038674.5A CN104618156B (en) | 2015-01-26 | 2015-01-26 | The method and device of network configuration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104618156A CN104618156A (en) | 2015-05-13 |
CN104618156B true CN104618156B (en) | 2018-11-27 |
Family
ID=53152447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510038674.5A Active CN104618156B (en) | 2015-01-26 | 2015-01-26 | The method and device of network configuration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104618156B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100296B (en) * | 2015-05-28 | 2019-05-07 | 新华三技术有限公司 | Controller address configuration method and device |
CN106559459A (en) * | 2015-09-29 | 2017-04-05 | 中国电信股份有限公司 | SDN controller distribution methods, SDN controllers multicast group and network system |
CN106506716B (en) * | 2016-10-20 | 2019-07-23 | 北京东土科技股份有限公司 | A kind of connection method of SDN controller in-band management and device |
CN106603739B (en) * | 2016-11-30 | 2019-07-02 | 瑞斯康达科技发展股份有限公司 | A kind of configuration method, apparatus and system |
CN106792820B (en) * | 2016-12-27 | 2019-12-10 | 南京邮电大学 | small base station control protocol and method using SDN controller |
CN107147575B (en) * | 2017-06-01 | 2020-10-02 | 瑞斯康达科技发展股份有限公司 | Method, device and system for realizing management channel switching |
CN107277190B (en) * | 2017-07-14 | 2019-09-20 | 中国联合网络通信集团有限公司 | A kind of method of SDN equipment automatic wire charging, SDN equipment and controller |
CN107395439A (en) * | 2017-08-24 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of network collocating method, device and controller |
TWI639325B (en) * | 2017-09-01 | 2018-10-21 | 財團法人工業技術研究院 | Automatically configured switch,method of automatically configuring a switch, and software defined network system with auto-deployment switches and auto-deploying method thereof |
CN110519407B (en) * | 2019-08-23 | 2022-02-11 | 新华三技术有限公司合肥分公司 | Port address configuration method, forwarding equipment and controller |
CN111405004B (en) * | 2020-03-06 | 2023-07-18 | 深圳市信锐网科技术有限公司 | Switch management method and device, equipment and storage medium |
CN115002077B (en) * | 2021-03-01 | 2024-03-22 | 炬芯科技股份有限公司 | Method for DHCP client to acquire IP address and related equipment |
Citations (4)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9450874B2 (en) * | 2013-01-04 | 2016-09-20 | Futurewei Technologies, Inc. | Method for internet traffic management using a central traffic controller |
-
2015
- 2015-01-26 CN CN201510038674.5A patent/CN104618156B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104618156A (en) | 2015-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104618156B (en) | The method and device of network configuration | |
CN104580029B (en) | Address distribution method and device | |
CN104283983B (en) | Virtual machine IP address distribution method and device in a kind of software defined network | |
CN101534329B (en) | IP address assignment method and system | |
CN104104744B (en) | A kind of method and apparatus of IP address distribution | |
JP2017123674A5 (en) | ||
CN105099898B (en) | A kind of PPPOE message forwarding methods and BRAS servers | |
CN106255089B (en) | A kind of method and apparatus of radio three layer roaming | |
CN106464743B (en) | More leases in software definition networking | |
CN104144096A (en) | Virtual network layer construction method, device and system | |
CN103684966A (en) | Method and device for processing dynamic host configuration protocol messages | |
CN101873320B (en) | Client information verification method based on DHCPv6 relay and device thereof | |
CN106612196B (en) | Obtain the method and device of resource | |
CN107277190A (en) | A kind of method of SDN equipment automatic wire charging, SDN equipment and controller | |
CN104468368A (en) | Method and device for allocating BGP neighbors | |
CN104954155B (en) | The network equipment with multiple business boards and multi-service plate sharing method | |
CN104394242A (en) | IP (internet protocol) address allocation method and device | |
CN104104749B (en) | The distribution method and device of a kind of tunnel IP address | |
CN103561122B (en) | IPv6 address collocation method, IPv6 client and server | |
CN107517129B (en) | Method and device for configuring uplink interface of equipment based on OpenStack | |
CN103401954B (en) | The implementation method of virtual DHCP | |
CN106302861A (en) | A kind of address distribution method and device | |
EP3706373B1 (en) | Establishing a vxlan between a wireless access point and a node | |
CN106161249B (en) | The processing method and processing device of PPPoE message | |
CN104780230A (en) | Method of automatically acquiring cloud server IP address, system and cloud system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |