Summary of the invention
The embodiment of the present invention provides recognition methods and the equipment of a kind of boundary port, to identify the OpenFlow network equipment
And the boundary port between the non-OpenFlow network equipment.
In order to achieve the above object, the embodiment of the present invention provides the recognition methods of a kind of boundary port, is applied to include
OpenFlow controller, the OpenFlow network equipment, the non-OpenFlow network equipment network in, the method includes: described
OpenFlow controller obtains device identification and the institute of each OpenFlow network equipment of all OpenFlow network equipments
There is the port-mark of physical port;Described OpenFlow controller travels through all physics ends of all OpenFlow network equipments
Mouthful, the physical port for the OpenFlow network equipment constructs corresponding network boundary discovery message, and described network boundary finds report
Literary composition carries device identification and the port-mark of described physical port of the described OpenFlow network equipment;Described OpenFlow
Described network boundary discovery message is sent to the described OpenFlow network equipment by controller;By the described OpenFlow network equipment
Send described network boundary by described physical port and find message, and received described network boundary discovery message by other
Border, described networking discovery message is sent to described OpenFlow controller by the OpenFlow network equipment;Described OpenFlow is controlled
Device processed determines device identification and the thing of the OpenFlow network equipment carried in the all-network border self received discovery message
The physical port corresponding to port-mark of reason port is the internal port in OpenFlow network, determines remaining physical port
For the boundary port between the OpenFlow network equipment and the non-OpenFlow network equipment.
Described OpenFlow controller travels through all physical ports of all OpenFlow network equipments, for OpenFlow net
The network boundary that the physical port structure of network equipment is corresponding finds message, specifically includes:
Step A, described OpenFlow controller judge currently whether to exist the device identification of not selected mistake;If it is,
Then perform step B;If it is not, then end flow process;Step B, described OpenFlow controller select the equipment mark of not selected mistake
Know;Perform step C;Step C, described OpenFlow controller judge the institute of the OpenFlow network equipment corresponding to this device identification
Have in physical port, the most whether there is the port-mark of not selected mistake;If it is, perform step D;If it is not, then hold
Row step A;Step D, described OpenFlow controller are from all physics of the OpenFlow network equipment corresponding to this device identification
Port selects the port-mark of a not selected mistake;Perform step E afterwards;Step E, described OpenFlow controller utilize
The network boundary discovery message that this device identification is corresponding with the physical port structure that this port-mark is the OpenFlow network equipment;
Perform step C afterwards.
The device identification of the described OpenFlow network equipment and the port-mark of described physical port are carried on described net
Network border finds in the message load of message;From described message load, it is resolved to described end by the described OpenFlow network equipment
Mouth mark, and send described network boundary discovery message by the physical port that described port-mark is corresponding.Described network boundary
Find the heading of message also to carry for instructing the described OpenFlow network equipment described by the transmission of described physical port
Network boundary finds the information of message;From described heading, described information it is resolved to by the described OpenFlow network equipment, and
The physical port indicated by described information is sent described network boundary and finds message.
Described OpenFlow controller determines the process of internal port and boundary port, farther includes: described
OpenFlow controller finds after message receiving network boundary, extracts what described network boundary found to carry in message
The device identification of the OpenFlow network equipment and the port-mark of physical port;OpenFlow described in OpenFlow controller labelling
The device identification of the network equipment and the physical port corresponding to port-mark of described physical port are internal port;Described
OpenFlow controller travels through all physical ports of all OpenFlow network equipments, and other outside labelling internal port
Physical port is boundary port.
The embodiment of the present invention provides a kind of OpenFlow controller, be applied to include described OpenFlow controller,
The OpenFlow network equipment, the non-OpenFlow network equipment network in, described OpenFlow controller specifically includes: obtain mould
Block, for obtaining the device identification of all OpenFlow network equipments and all physics ends of each OpenFlow network equipment
The port-mark of mouth;Constructing module, for traveling through all physical ports of all OpenFlow network equipments, for OpenFlow net
The network boundary that the physical port structure of network equipment is corresponding finds message, carries described in described network boundary discovery message
The device identification of the OpenFlow network equipment and the port-mark of described physical port;Sending module, for by described network
Border finds that message is sent to the described OpenFlow network equipment;By the described OpenFlow network equipment by described physical port
Send described network boundary and find message, and the OpenFlow network equipment being received described network boundary discovery message by other will
Border, described networking finds that message is sent to described OpenFlow controller;Determine module, be used for determining that this OpenFlow controls
The device identification of the OpenFlow network equipment carried in the all-network border discovery message that device receives and the end of physical port
Physical port corresponding to mouth mark is the internal port in OpenFlow network, and determines that remaining physical port is
Boundary port between the OpenFlow network equipment and the non-OpenFlow network equipment.
Described constructing module, finds message specifically for tectonic network border as follows: step A, judgement are currently
Whether there is the device identification of not selected mistake;If it is, perform step B;If it does not, end flow process;Step B, select not by
The device identification selected;Perform step C;Step C, judge the property of the OpenFlow network equipment corresponding to this device identification
In reason port, the most whether there is the port-mark of not selected mistake;If it is, perform step D;If it does not, perform step A;
Step D, from all physical ports of the OpenFlow network equipment corresponding to this device identification, select a not selected mistake
Port-mark;Perform step E afterwards;Step E, utilize the thing that this device identification and this port-mark are the OpenFlow network equipment
The network boundary that reason port configuration is corresponding finds message;Perform step C.
The device identification of the described OpenFlow network equipment and the port-mark of described physical port are carried on described net
Network border finds in the message load of message;From described message load, it is resolved to described end by the described OpenFlow network equipment
Mouth mark, and send described network boundary discovery message by the physical port that described port-mark is corresponding.Described network boundary
Find the heading of message also carries for instructing the OpenFlow network equipment to send described network boundary by physical port
Find the information of message;From described heading, described information it is resolved to by the described OpenFlow network equipment, and by described
The physical port of information instruction sends described network boundary and finds message.
Described determine module, specifically for receiving after network boundary finds message, extract described network boundary and find report
The device identification of the OpenFlow network equipment carried in literary composition and the port-mark of physical port;OpenFlow network described in labelling
The device identification of equipment and the physical port corresponding to port-mark of described physical port are internal port;Traversal is all
All physical ports of the OpenFlow network equipment, and other physical port outside labelling internal port is boundary port.
Compared with prior art, the embodiment of the present invention at least has the advantage that in the embodiment of the present invention, is including
OpenFlow controller, the OpenFlow network equipment, the non-OpenFlow network equipment network in, OpenFlow controller be
All physics port configuration network boundaries of all OpenFlow network equipments find message so that OpenFlow controller can
Identify the internal port between the OpenFlow network equipment and the OpenFlow network equipment, then make OpenFlow controller
Can recognize that the boundary port between the OpenFlow network equipment and the non-OpenFlow network equipment.
Detailed description of the invention
The embodiment of the present invention provides the recognition methods of a kind of boundary port, be applied to include OpenFlow controller,
The OpenFlow network equipment (such as OpenFlow switch), the non-OpenFlow network equipment (such as the general switch of existing network)
Network in.Application scenarios schematic diagram with Fig. 2 as the embodiment of the present invention, this network can include OpenFlow controller,
The OpenFlow network equipment 1, the OpenFlow network equipment 2, the OpenFlow network equipment 3, the non-OpenFlow network equipment 1, non-
The OpenFlow network equipment 2 and the non-OpenFlow network equipment 3.As a example by Fig. 2, the OpenFlow network equipment 1 includes port
1, port 2 and port 3;Port 4, port 5 and port 6 is included on the OpenFlow network equipment 2;On the OpenFlow network equipment 3
Including port 7 and port 8.
It should be noted that and led to by the safety being pre-configured with between OpenFlow controller and the OpenFlow network equipment
Road communicates, and does not have physical port on the OpenFlow network equipment and be directly connected to OpenFlow controller.In one
In concrete implementation mode, the OpenFlow network equipment can be connected with OpenFlow controller by the webmaster mouth specified, should
Webmaster mouth is not the physical port on the OpenFlow network equipment;In another kind of concrete implementation mode, OpenFlow controls
Device can not be directly connected to the OpenFlow network equipment, but by miscellaneous equipment and OpenFlow network device communications, and
Realize the management to the OpenFlow network equipment and control.
Under above-mentioned application scenarios, as it is shown on figure 3, the method comprises the following steps:
Step 301, OpenFlow controller obtains the device identification of all OpenFlow network equipments and each
The port-mark of all physical ports that the OpenFlow network equipment is carried.
Wherein, OpenFlow controller can be directly obtained all OpenFlow being connected with this OpenFlow controller
The device identification (being properly termed as DPID, it is unique mark of the OpenFlow network equipment) of the network equipment, and each
(be properly termed as PortNum, i.e. physical port passes through the port-mark of all physical ports that the OpenFlow network equipment is carried
PortNum identifies).
Under the application scenarios shown in Fig. 2, OpenFlow controller obtains the equipment mark of all OpenFlow network equipments
Know and be respectively the OpenFlow network equipment 1, the OpenFlow the network equipment 2 and OpenFlow network equipment 3;OpenFlow controller
The port-mark obtaining all physical ports that the OpenFlow network equipment 1 is carried is respectively port 1, port 2 and port 3,
The port-mark of all physical ports that the OpenFlow network equipment 2 is carried is respectively port 4, port 5 and port 6,
The port-mark of all physical ports that the OpenFlow network equipment 3 is carried is respectively port 7 and port 8.
Step 302, OpenFlow controller travels through all physical ports of all OpenFlow network equipments, and is
The network boundary that the physical port structure of the OpenFlow network equipment is corresponding finds message.
Wherein, this network boundary carries device identification and this physics end of this OpenFlow network equipment in finding message
The port-mark of mouth.
In the embodiment of the present invention, OpenFlow controller travels through all physical ports of all OpenFlow network equipments,
And be that the network boundary that the physical port structure of the OpenFlow network equipment is corresponding finds message, it is specifically including but not limited to as follows
Mode:
Step A, OpenFlow controller judge currently whether to exist the device identification of not selected mistake;If it is, hold
Row step B;If it is not, then end flow process;
Step B, OpenFlow controller select the device identification of not selected mistake;Perform step C;
Step C, OpenFlow controller judge all physics ends of the OpenFlow network equipment corresponding to this device identification
In Kou, the most whether there is the port-mark of not selected mistake;If it is, perform step D;If it is not, then perform step A;
Step D, OpenFlow controller are from all physical ports of the OpenFlow network equipment corresponding to this device identification
The port-mark of middle one not selected mistake of selection;Perform step E afterwards;
Step E, OpenFlow controller utilize the thing that this device identification and this port-mark are the OpenFlow network equipment
The network boundary that reason port configuration is corresponding finds message;Perform step C afterwards.
As a example by Fig. 2, OpenFlow controller is that the port 1 tectonic network border of the OpenFlow network equipment 1 finds report
Literary composition, network boundary finds that the device identification carried in message is the OpenFlow network equipment 1, and network boundary finds to carry in message
Port-mark be port 1.OpenFlow controller is that the port 2 tectonic network border of the OpenFlow network equipment 1 finds report
Literary composition, network boundary finds that the device identification carried in message is the OpenFlow network equipment 1, and network boundary finds to carry in message
Port-mark be port 2.OpenFlow controller is that the port 3 tectonic network border of the OpenFlow network equipment 1 finds report
Literary composition, network boundary finds that the device identification carried in message is the OpenFlow network equipment 1, and network boundary finds to carry in message
Port-mark be port 3.OpenFlow controller is that the port 4 tectonic network border of the OpenFlow network equipment 2 finds report
Literary composition, network boundary finds that the device identification carried in message is the OpenFlow network equipment 2, and network boundary finds to carry in message
Port-mark be port 4.OpenFlow controller is that the port 5 tectonic network border of the OpenFlow network equipment 2 finds report
Literary composition, network boundary finds that the device identification carried in message is the OpenFlow network equipment 2, and network boundary finds to carry in message
Port-mark be port 5.OpenFlow controller is that the port 6 tectonic network border of the OpenFlow network equipment 2 finds report
Literary composition, network boundary finds that the device identification carried in message is the OpenFlow network equipment 2, and network boundary finds to carry in message
Port-mark be port 6.OpenFlow controller is that the port 7 tectonic network border of the OpenFlow network equipment 3 finds report
Literary composition, network boundary finds that the device identification carried in message is the OpenFlow network equipment 3, and network boundary finds to carry in message
Port-mark be port 7.OpenFlow controller is that the port 8 tectonic network border of the OpenFlow network equipment 3 finds report
Literary composition, network boundary finds that the device identification carried in message is the OpenFlow network equipment 3, and network boundary finds to carry in message
Port-mark be port 8.
Step 303, network boundary is found that message is sent to the OpenFlow network equipment by OpenFlow controller.Specifically
, OpenFlow controller passes through the escape way between this OpenFlow controller and the OpenFlow network equipment by network edge
Boundary finds that message is sent to the OpenFlow network equipment.
As a example by Fig. 2, OpenFlow controller is by the safety between OpenFlow controller and the OpenFlow network equipment 1
Network boundary that port 1 for the OpenFlow network equipment 1 is constructed by passage finds message, for the OpenFlow network equipment 1
The network boundary that the network boundary discovery message of port 2 structure, the port 3 for the OpenFlow network equipment 1 construct finds message
It is sent to the OpenFlow network equipment 1.OpenFlow controller is by between OpenFlow controller and the OpenFlow network equipment 2
Escape way network boundary that the port 4 for the OpenFlow network equipment 2 is constructed find message, set for OpenFlow network
The network boundary that the network boundary discovery message of port 5 structure of standby 2, the port 6 for the OpenFlow network equipment 2 construct finds
Message is sent to the OpenFlow network equipment 2.OpenFlow controller is set with OpenFlow network by OpenFlow controller
The network boundary that port 7 for the OpenFlow network equipment 3 is constructed by the escape way between standby 3 finds message, for OpenFlow
The network boundary of port 8 structure of the network equipment 3 finds that message is sent to the OpenFlow network equipment 3.
Step 304, the OpenFlow network equipment receive from OpenFlow controller network boundary find message time,
Send this network boundary by corresponding physical port and find message.
In the embodiment of the present invention, network boundary finds to carry device identification and port-mark, and OpenFlow in message
The device identification of the network equipment and the port-mark of physical port are carried in the message load that this network boundary finds message;
The OpenFlow network equipment, when receiving the network boundary discovery message from OpenFlow controller, can directly carry from message
Lotus is resolved to port-mark, then finds that the physical port corresponding to port-mark carried in message is sent out by network boundary
SCN Space Cable Network border finds message.
In a kind of preferred implementation of the embodiment of the present invention, the heading of network boundary discovery message can also be taken
Band finds the information of message for instructing the OpenFlow network equipment to send network boundary by physical port;Based on this information,
The OpenFlow network equipment, can be directly from heading when receiving the network boundary discovery message from OpenFlow controller
In be resolved to this information, the physical port then indicated by this information send this network boundary find message.Such as, network edge
Boundary finds to carry in message for instructing the OpenFlow network equipment 1 to send the information of network boundary discovery message by port 1
Time, the OpenFlow network equipment 1, after receiving corresponding network boundary discovery message, determines and needs to send network by port 1
Border finds message, and sends network boundary discovery message by this port 1.
Under the application scenarios shown in Fig. 2, the OpenFlow network equipment 1 receiving from OpenFlow controller is
When the network boundary of port 1 structure of the OpenFlow network equipment 1 finds message, send this network boundary by port 1 and find
Message.The OpenFlow network equipment 1 is receiving the port 2 for the OpenFlow network equipment 1 from OpenFlow controller
When the network boundary of structure finds message, send this network boundary by port 2 and find message.The OpenFlow network equipment 1 exists
When receiving the network boundary discovery message of port 3 structure for the OpenFlow network equipment 1 from OpenFlow controller,
Send this network boundary by port 3 and find message.The OpenFlow network equipment 2 is receiving from OpenFlow controller
During for the network boundary discovery message of port 4 structure of the OpenFlow network equipment 2, send this network boundary by port 4 and send out
Existing message.The OpenFlow network equipment 2 is receiving the port for the OpenFlow network equipment 2 from OpenFlow controller
When the network boundary of 5 structures finds message, send this network boundary by port 5 and find message.The OpenFlow network equipment 2 exists
When receiving the network boundary discovery message of port 6 structure for the OpenFlow network equipment 2 from OpenFlow controller,
Send this network boundary by port 6 and find message.The OpenFlow network equipment 3 is receiving from OpenFlow controller
During for the network boundary discovery message of port 7 structure of the OpenFlow network equipment 3, send this network boundary by port 7 and send out
Existing message.The OpenFlow network equipment 3 is receiving the port for the OpenFlow network equipment 3 from OpenFlow controller
When the network boundary of 8 structures finds message, send this network boundary by port 8 and find message.
Step 305, the OpenFlow network equipment is receiving the network boundary discovery from other OpenFlow network equipment
After message, this network boundary discovery message is sent to OpenFlow controller.Concrete, this OpenFlow network equipment can
This network boundary discovery message is sent out by the escape way between OpenFlow controller and this OpenFlow network equipment
Give OpenFlow controller.
Under the application scenarios shown in Fig. 2, the OpenFlow network equipment 1 passes through receiving the OpenFlow network equipment 2
When the network boundary that port 4 sends finds message, by the peace between OpenFlow controller and this OpenFlow network equipment 1
This network boundary discovery message is sent to OpenFlow controller by full tunnel.The OpenFlow network equipment 1 is receiving
When the OpenFlow network equipment 3 finds message by the network boundary that port 7 sends, by OpenFlow controller and basis
This network boundary discovery message is sent to OpenFlow controller by the escape way between the OpenFlow network equipment 1.
The OpenFlow network equipment 2 when receiving the OpenFlow network equipment 1 and finding message by the network boundary that port 2 sends,
By the escape way between OpenFlow controller and this OpenFlow network equipment 2, this network boundary is found that message sends
To OpenFlow controller.The OpenFlow network equipment 2 is receiving the net that the OpenFlow network equipment 3 is sent by port 8
When network border finds message, by the escape way between OpenFlow controller and this OpenFlow network equipment 2 by this net
Network border finds that message is sent to OpenFlow controller.The OpenFlow network equipment 3 is receiving the OpenFlow network equipment 1
When the network boundary sent by port 1 finds message, by between OpenFlow controller and this OpenFlow network equipment 3
Escape way by this network boundary discovery message be sent to OpenFlow controller.The OpenFlow network equipment 3 is receiving
When the OpenFlow network equipment 2 finds message by the network boundary that port 5 sends, by OpenFlow controller and basis
This network boundary discovery message is sent to OpenFlow controller by the escape way between the OpenFlow network equipment 3.
Step 306, OpenFlow controller, after receiving network boundary discovery message, determines that network boundary finds in message
The device identification of the OpenFlow network equipment the carried physical port corresponding with the port-mark of physical port is OpenFlow
Internal port between the network equipment and the OpenFlow network equipment.
Step 307, OpenFlow controller determines in all physical ports that all OpenFlow network equipments are carried,
Other physical port (the most remaining physical port) in addition to internal port is that the OpenFlow network equipment is with non-
Boundary port between the OpenFlow network equipment.
In the preferred implementation of the embodiment of the present invention, OpenFlow controller determines internal port and boundary port
Process specifically includes: OpenFlow controller, after receiving network boundary discovery message, extracts network boundary and finds to take in message
The device identification of the OpenFlow network equipment of band and the port-mark of physical port;OpenFlow controller labelling OpenFlow
Physical port corresponding to the device identification of the network equipment and the port-mark of physical port is internal port;OpenFlow controls
Device travels through all physical ports of all OpenFlow network equipments, and other physical port outside labelling internal port is limit
Boundary's port.
In order to ensure that OpenFlow controller can accurately traverse all of internal port, this OpenFlow controller can
With after finding that message is all sent completely for the network boundary of all physics port configurations, waiting Preset Time, (this is pre-
If the time can select according to practical experience value, to ensure that OpenFlow controller can receive all OpenFlow network equipments
The network boundary returned finds message) after, travel through all physical ports of all OpenFlow network equipments, and inside labelling
Other physical port outside port is boundary port.Further, this OpenFlow controller can also repeatedly send each
Network boundary corresponding to physical port finds message, to be further ensured that OpenFlow controller can receive network boundary and send out
Existing message, can accurately traverse all of internal port then.
Under the application scenarios shown in Fig. 2, the OpenFlow network equipment 1 passes through receiving the OpenFlow network equipment 2
When the network boundary that port 4 sends finds message, this network boundary discovery message is sent to OpenFlow controller, due to this
Network boundary finds that the device identification carried in message is the OpenFlow network equipment 2, and this network boundary finds to carry in message
Port-mark be port 4, therefore the port 4 of the OpenFlow controller labelling OpenFlow network equipment 2 is internal port.
The OpenFlow network equipment 1 when receiving the OpenFlow network equipment 3 and finding message by the network boundary that port 7 sends,
This network boundary discovery message is sent to OpenFlow controller, due to the equipment mark carried in this network boundary discovery message
Knowing is the OpenFlow network equipment 3, and this network boundary finds that the port-mark carried in message is port 7, therefore OpenFlow
The port 7 of the controller labelling OpenFlow network equipment 3 is internal port.The OpenFlow network equipment 2 is receiving
When the OpenFlow network equipment 1 finds message by the network boundary that port 2 sends, this network boundary discovery message is sent to
OpenFlow controller, owing to this network boundary finds that the device identification carried in message is the OpenFlow network equipment 1, this net
Network border finds that the port-mark carried in message is port 2, the therefore OpenFlow controller labelling OpenFlow network equipment 1
Port 2 be internal port.The OpenFlow network equipment 2 is receiving the net that the OpenFlow network equipment 3 is sent by port 8
When network border finds message, this network boundary discovery message is sent to OpenFlow controller, owing to this network boundary finds
The device identification carried in message is the OpenFlow network equipment 3, and this network boundary finds that the port-mark carried in message is
Port 8, therefore the port 8 of the OpenFlow controller labelling OpenFlow network equipment 3 is internal port.OpenFlow network sets
This network boundary, when receiving the OpenFlow network equipment 1 and finding message by the network boundary that port 1 sends, is sent out by standby 3
Existing message is sent to OpenFlow controller, owing to this network boundary finds that the device identification carried in message is OpenFlow net
Network equipment 1, this network boundary finds that the port-mark carried in message is port 1, therefore OpenFlow controller labelling
The port 1 of the OpenFlow network equipment 1 is internal port.The OpenFlow network equipment 3 is receiving the OpenFlow network equipment 2
When the network boundary sent by port 5 finds message, this network boundary discovery message is sent to OpenFlow controller, by
The device identification carried in this network boundary finds message is the OpenFlow network equipment 2, and this network boundary finds in message
The port-mark carried is port 5, and therefore the port 5 of the OpenFlow controller labelling OpenFlow network equipment 2 is inside end
Mouthful.
In the embodiment of the present invention, based on above-mentioned process, the port of the OpenFlow controller labelling OpenFlow network equipment 1
1 is internal port, and the port 2 of the labelling OpenFlow network equipment 1 is internal port, and the labelling OpenFlow network equipment 2
Port 4 be internal port, and the port 5 of the labelling OpenFlow network equipment 2 is internal port, and labelling OpenFlow network
The port 7 of equipment 3 is internal port, and the port 8 of the labelling OpenFlow network equipment 3 is internal port.
Further, the port that all physical ports are the OpenFlow network equipment 1 of all OpenFlow network equipments
1, port 2 and port 3, the port 4 of the OpenFlow network equipment 2, port 5 and port 6, the port 7 of the OpenFlow network equipment 3
With port 8.Therefore, the port 3 and OpenFlow network equipment 2 of the OpenFlow controller labelling OpenFlow network equipment 1
Port 6 is boundary port.
In sum, in the embodiment of the present invention, including OpenFlow controller, the OpenFlow network equipment, non-
In the network of the OpenFlow network equipment, by all physical ports that OpenFlow controller is all OpenFlow network equipments
Tectonic network border finds message, and finds the reception condition of message based on network boundary so that OpenFlow controller can
Identify the internal port between the OpenFlow network equipment and the OpenFlow network equipment, then make OpenFlow controller
Can recognize that the boundary port between the OpenFlow network equipment and the non-OpenFlow network equipment.
Based on the inventive concept as said method, the embodiment of the present invention provides a kind of OpenFlow controller,
It is applied to include in the network of described OpenFlow controller, the OpenFlow network equipment, the non-OpenFlow network equipment, such as figure
Shown in 4, described OpenFlow controller specifically includes:
Obtain module 11, for obtaining the device identification of all OpenFlow network equipments and each OpenFlow network
The port-mark of all physical ports of equipment;
Constructing module 12, for traveling through all physical ports of all OpenFlow network equipments, for OpenFlow network
The network boundary that the physical port structure of equipment is corresponding finds message, carries described in described network boundary discovery message
The device identification of the OpenFlow network equipment and the port-mark of described physical port;
Sending module 13, for being sent to the described OpenFlow network equipment by described network boundary discovery message;By institute
State the OpenFlow network equipment and send described network boundary discovery message by described physical port, and received described net by other
Network border finds that border, described networking discovery message is sent to described OpenFlow and controls by the OpenFlow network equipment of message
Device;
Determine module 14, for determining what the all-network border that this OpenFlow controller receives found to carry in message
Physical port corresponding to the device identification of the OpenFlow network equipment and the port-mark of physical port is OpenFlow network
In internal port, and determine that remaining physical port is between the OpenFlow network equipment and the non-OpenFlow network equipment
Boundary port.
Described constructing module 12, finds message specifically for tectonic network border as follows: step A, judgement are worked as
Before whether there is the device identification of not selected mistake;If it is, perform step B;If it does not, end flow process;Step B, selection are not
The device identification being selected;Perform step C;Step C, judge all of the OpenFlow network equipment corresponding to this device identification
In physical port, the most whether there is the port-mark of not selected mistake;If it is, perform step D;If it does not, execution step
A;Step D, from all physical ports of the OpenFlow network equipment corresponding to this device identification, select a not selected mistake
Port-mark;Perform step E;Step E, utilize the physics that this device identification and this port-mark are the OpenFlow network equipment
The network boundary that port configuration is corresponding finds message;Perform step C.
In the embodiment of the present invention, the device identification of the described OpenFlow network equipment and the port mark of described physical port
Know and be carried in the message load that described network boundary finds message;By the described OpenFlow network equipment from described message load
In be resolved to described port-mark, and send described network boundary by the physical port that described port-mark is corresponding and find report
Literary composition.
In the embodiment of the present invention, the heading of described network boundary discovery message also carries for instructing OpenFlow net
Network equipment sends described network boundary by physical port and finds the information of message;By the described OpenFlow network equipment from described
Heading is resolved to described information, and the physical port indicated by described information is sent described network boundary and finds message.
Described determine module 14, specifically for receiving after network boundary finds message, extract described network boundary and find
The device identification of the OpenFlow network equipment carried in message and the port-mark of physical port;OpenFlow net described in labelling
The device identification of network equipment and the physical port corresponding to port-mark of described physical port are internal port;Traversal is all
All physical ports of the OpenFlow network equipment, and other physical port outside labelling internal port is boundary port.
Wherein, the modules of apparatus of the present invention can be integrated in one, it is also possible to separates and disposes.Above-mentioned module can be closed
And be a module, it is also possible to it is further split into multiple submodule.
Through the above description of the embodiments, those skilled in the art is it can be understood that can be by the present invention
Software adds the mode of required general hardware platform and realizes, naturally it is also possible to by hardware, but a lot of in the case of the former is more
Good embodiment.Based on such understanding, prior art is contributed by technical scheme the most in other words
Part can embody with the form of software product, and this computer software product is stored in a storage medium, if including
Dry instruction is with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs this
Method described in each embodiment bright.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or stream
Journey is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in the device in embodiment can describe according to embodiment to carry out point
It is distributed in the device of embodiment, it is also possible to carry out respective change and be disposed other than in one or more devices of the present embodiment.On
The module stating embodiment can merge into a module, it is also possible to is further split into multiple submodule.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
The several specific embodiments being only the present invention disclosed above, but, the present invention is not limited to this, any ability
What the technical staff in territory can think change all should fall into protection scope of the present invention.