CN103401791B - The recognition methods of a kind of boundary port and equipment - Google Patents

The recognition methods of a kind of boundary port and equipment Download PDF

Info

Publication number
CN103401791B
CN103401791B CN201310319609.0A CN201310319609A CN103401791B CN 103401791 B CN103401791 B CN 103401791B CN 201310319609 A CN201310319609 A CN 201310319609A CN 103401791 B CN103401791 B CN 103401791B
Authority
CN
China
Prior art keywords
openflow
port
network
network equipment
message
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
Application number
CN201310319609.0A
Other languages
Chinese (zh)
Other versions
CN103401791A (en
Inventor
常慧锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201310319609.0A priority Critical patent/CN103401791B/en
Publication of CN103401791A publication Critical patent/CN103401791A/en
Application granted granted Critical
Publication of CN103401791B publication Critical patent/CN103401791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses recognition methods and the equipment of a kind of boundary port, the method includes: OpenFlow controller obtains the device identification of all OpenFlow network equipments and the port-mark of all physical ports of each OpenFlow network equipment;Described OpenFlow controller is that the physical port tectonic network border of the OpenFlow network equipment finds message;Described network boundary discovery message is sent to the described OpenFlow network equipment by described OpenFlow controller;Described OpenFlow controller is after receiving network boundary discovery message, and message determines internal port to utilize this network boundary to find;Described OpenFlow controller determines that other physical port outside internal port is boundary port.In the embodiment of the present invention, OpenFlow controller can recognize that the internal port between the OpenFlow network equipment and the OpenFlow network equipment, and can recognize that the boundary port between the OpenFlow network equipment and the non-OpenFlow network equipment.

Description

The recognition methods of a kind of boundary port and equipment
Technical field
The present invention relates to communication technical field, particularly relate to recognition methods and the equipment of a kind of boundary port.
Background technology
OpenFlow(new network exchange model) be GENI(GENI) a research theme, be used for Scientific research personnel is made to carry out new procotol experiment in existing commercial network, so that scientific research institution can save builds experiment The expense of network, and make experimental data from closer to real environment.Perfect along with OpenFlow technology, The application of OpenFlow has expanded to wide area network and data centre sphere.Wherein, the thought of OpenFlow is: separates and controls plane And datum plane, use therebetween standard agreement communication;Datum plane uses mode based on stream to forward, the most flexibly With general;The centralized Control plane of stratification, it is provided that open API(Application Programming Interface, Application programming interface) develop for third party;Datum plane and control plane support virtualization.
As it is shown in figure 1, be the networking schematic diagram of OpenFlow network, in OpenFlow network, including OpenFlow net Network equipment (such as OpenFlow switch), OpenFlow controller and escape way.
Escape way: between the OpenFlow network equipment and OpenFlow controller, is led to by the safety being pre-configured with Road (based on SSL(Secure Sockets Layer, SSL)) communicate.
OpenFlow controller: for OpenFlow network-based control center, it is usually the PC of running experiment program (Personal Computer, personal computer) or server.May running experiment program or the on OpenFlow controller Tripartite develops software, and operates for convection current list item, according to user's configuration or dynamic operation protocol generation stream table, and will Stream table is sent to the OpenFlow network equipment.
The OpenFlow network equipment: receive the stream table that OpenFlow controller is arranged, and instruct Message processing according to stream table. Stream table comprises a series of stream list item for matching message, needs to carry out stream table for entering the message of the OpenFlow network equipment The coupling of item;If the match is successful, carry out corresponding actions process, as being forwarded to multiple port or abandoning;If coupling does not becomes Merit is then forwarded to OpenFlow controller by escape way, OpenFlow controller process.On the other hand, The OpenFlow network equipment is actively to state and the event of OpenFlow controller report self, such as port UP (normally)/DOWN (fault).
Such as, it is as follows that OpenFlow controller creates stream table on the OpenFlow network equipment: [purpose IP5.6.7.8 turns Send to port1];Based on this flow table, the OpenFlow network equipment when receiving the data traffic that purpose IP address is 5.6.7.8, Above-mentioned stream table can be matched, and data traffic is forwarded to port1.
In prior art, in the network that there is the OpenFlow network equipment and the non-OpenFlow network equipment, it is impossible to know Do not go out the boundary port between the OpenFlow network equipment and the non-OpenFlow network equipment.
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.
Accompanying drawing explanation
Fig. 1 is the networking schematic diagram of OpenFlow network in prior art;
Fig. 2 is the application scenarios schematic diagram of the embodiment of the present invention;
Fig. 3 is the recognition methods schematic flow sheet of a kind of boundary port that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of OpenFlow controller that the embodiment of the present invention provides.
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.

Claims (10)

1. a recognition methods for boundary port, is applied to include OpenFlow controller, the OpenFlow network equipment, non- In the network of the OpenFlow network equipment, it is characterised in that the method includes:
Described OpenFlow controller obtains the device identification of all OpenFlow network equipments and each OpenFlow network The port-mark of all physical ports of equipment;
Described OpenFlow controller travels through all physical ports of all OpenFlow network equipments, for each OpenFlow The network boundary that the physical port structure of the network equipment is corresponding finds message, and described network boundary finds to carry described thing in message The device identification of the OpenFlow network equipment at reason port place and the port-mark of described physical port;
Described network boundary discovery message is sent to the described OpenFlow network equipment by described OpenFlow controller;By described The OpenFlow network equipment sends described network boundary by described physical port and finds message, and is received described network by other Border finds that described network boundary discovery message is sent to described OpenFlow controller by the OpenFlow network equipment of message;
Described OpenFlow controller determines that the all-network border self received finds the OpenFlow network carried in message Physical port corresponding to the device identification of equipment and the port-mark of physical port is the internal port in OpenFlow network, And determine that remaining physical port is the boundary port between the OpenFlow network equipment and the non-OpenFlow network equipment.
2. the method for claim 1, it is characterised in that described OpenFlow controller travels through all OpenFlow networks All physical ports of equipment, the physical port for the OpenFlow network equipment constructs corresponding network boundary discovery message, tool Body includes:
Step A, described 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, described OpenFlow controller select the device identification of not selected mistake;Perform step C;
Step C, described 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, described 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, described 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.
3. the method for claim 1, it is characterised in that the device identification of the described OpenFlow network equipment and described The port-mark of physical port is carried in the message load that described network boundary finds message;Set by described OpenFlow network For being resolved to described port-mark from described message load, and send described by the physical port that described port-mark is corresponding Network boundary finds message.
4. the method for claim 1, it is characterised in that also carry use in the heading of described network boundary discovery message The information of message is found in instructing the described OpenFlow network equipment to send described network boundary by described physical port;By institute State the OpenFlow network equipment from described heading, be resolved to described information, and the physical port indicated by described information is sent out Described network boundary is sent to find message.
5. the method for claim 1, it is characterised in that described OpenFlow controller determines internal port and border The process of port, farther includes:
Described OpenFlow controller, after receiving network boundary discovery message, extracts described network boundary and finds to carry in message The device identification of the OpenFlow network equipment and the port-mark of physical port;
The device identification of the OpenFlow network equipment described in described OpenFlow controller labelling and the port of described physical port Physical port corresponding to mark is internal port;
Described OpenFlow controller travel through all OpenFlow network equipments all physical ports, and labelling internal port it Other outer physical port is boundary port.
6. an OpenFlow controller, is applied to include described OpenFlow controller, the OpenFlow network equipment, non- In the network of the OpenFlow network equipment, it is characterised in that described OpenFlow controller specifically includes:
Obtain module, for obtaining the device identification of all OpenFlow network equipments and each OpenFlow network equipment The port-mark of all physical ports;
Constructing module, for traveling through all physical ports of all OpenFlow network equipments, for each OpenFlow network The network boundary that the physical port structure of equipment is corresponding finds message, and described network boundary finds to carry described physics end in message The device identification of the OpenFlow network equipment at mouth place and the port-mark of described physical port;
Sending module, for being sent to the described OpenFlow network equipment by described network boundary discovery message;By described The OpenFlow network equipment sends described network boundary by described physical port and finds message, and is received described network by other Border finds that described network boundary discovery message is sent to described OpenFlow controller by the OpenFlow network equipment of message;
Determine module, 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.
7. OpenFlow controller as claimed in claim 6, it is characterised in that
Described constructing module, specifically for the discovery of tectonic network border as follows message:
Whether step A, judgement currently exist the device identification of not selected mistake;If it is, perform step B;If it is not, then knot Line journey;
Step B, select the device identification of not selected mistake;Perform step C;
Step C, judge, in all physical ports of the OpenFlow network equipment corresponding to this device identification, the most whether to exist not The port-mark being selected;If it is, perform step D;If it is not, then perform step A;
Step D, select from all physical ports of the OpenFlow network equipment corresponding to this device identification one not selected The port-mark crossed;Perform step E afterwards;
Step E, utilize this device identification net corresponding with physical port that this port-mark is OpenFlow network equipment structure Network border finds message;Perform step C afterwards.
8. OpenFlow controller as claimed in claim 6, it is characterised in that the equipment mark of the described OpenFlow network equipment Know and the port-mark of described physical port is carried in the message load that described network boundary finds message;By described The OpenFlow network equipment is resolved to described port-mark from described message load, and passes through the thing that described port-mark is corresponding Reason port sends described network boundary and finds message.
9. OpenFlow controller as claimed in claim 6, it is characterised in that described network boundary finds the heading of message In also carry for instruct the OpenFlow network equipment by physical port send described network boundary find message information;By The described OpenFlow network equipment is resolved to described information, and the physical port indicated by described information from described heading Send described network boundary and find message.
10. OpenFlow controller as claimed in claim 6, it is characterised in that
Described determine module, specifically for receiving after network boundary finds message, extract described network boundary and find in message The device identification of the OpenFlow network equipment carried and the port-mark of physical port;The OpenFlow network equipment described in labelling Device identification and the physical port corresponding to port-mark of described physical port be internal port;Travel through all OpenFlow All physical ports of the network equipment, and other physical port outside labelling internal port is boundary port.
CN201310319609.0A 2013-07-25 2013-07-25 The recognition methods of a kind of boundary port and equipment Active CN103401791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310319609.0A CN103401791B (en) 2013-07-25 2013-07-25 The recognition methods of a kind of boundary port and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310319609.0A CN103401791B (en) 2013-07-25 2013-07-25 The recognition methods of a kind of boundary port and equipment

Publications (2)

Publication Number Publication Date
CN103401791A CN103401791A (en) 2013-11-20
CN103401791B true CN103401791B (en) 2016-12-28

Family

ID=49565320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310319609.0A Active CN103401791B (en) 2013-07-25 2013-07-25 The recognition methods of a kind of boundary port and equipment

Country Status (1)

Country Link
CN (1) CN103401791B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763121B (en) * 2013-12-24 2018-01-09 新华三技术有限公司 The method and device that a kind of network configuration information quickly issues
CN104754762B (en) * 2013-12-30 2019-12-03 中兴通讯股份有限公司 Automatically method, controller and the system of controller are found in the customized network of software
CN103944828B (en) * 2014-04-15 2017-08-22 新华三技术有限公司 The transmission method and equipment of a kind of protocol massages
CN111586026B (en) * 2020-04-30 2021-01-29 广州市品高软件股份有限公司 Software defined boundary implementation method and system based on SDN

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1798906A1 (en) * 2005-12-15 2007-06-20 Alcatel Lucent System and method for implementing multiple spanning tree protocol automatic 802.1Q trunking
CN102546351A (en) * 2012-03-15 2012-07-04 北京邮电大学 System and method for interconnecting openflow network and conventional Internet protocol (IP) network
CN103166876A (en) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 Transmission method for data among OpenFlow network domains and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1798906A1 (en) * 2005-12-15 2007-06-20 Alcatel Lucent System and method for implementing multiple spanning tree protocol automatic 802.1Q trunking
CN103166876A (en) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 Transmission method for data among OpenFlow network domains and device
CN102546351A (en) * 2012-03-15 2012-07-04 北京邮电大学 System and method for interconnecting openflow network and conventional Internet protocol (IP) network

Also Published As

Publication number Publication date
CN103401791A (en) 2013-11-20

Similar Documents

Publication Publication Date Title
CN103563444B (en) Intelligent P GW for SIPTO service continuities are relocated
CN103825954B (en) A kind of OpenFlow control methods and corresponding plug-in unit, platform and network
US10972357B2 (en) SDN network system, controller, and controlling method
CN105072038B (en) A kind of data message forwarding method and device
CN103401791B (en) The recognition methods of a kind of boundary port and equipment
CN106105115A (en) The service chaining originated by service node in network environment
Secinti et al. Software defined architecture for VANET: A testbed implementation with wireless access management
CN106063330A (en) Systems, methods and devices for application specific routing in dual connectivity
CN102780779A (en) Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic
CN109246688A (en) Equipment cut-in method, equipment and system
CN104539454B (en) Device management method, apparatus and system
CN104283791A (en) Three-layer topology determining method and device in SDN network
CN108768692A (en) A kind of network creation method, relevant device and system
US9935832B2 (en) Automated placement of measurement endpoint nodes in a network
CN114553752B (en) Network performance test method and device based on simulation software and computer equipment
CN109688536A (en) Realize method, apparatus, storage medium and the equipment of small opening base station
CN104247480B (en) Communication equipment, communication means, communication system, control device
CN104301449A (en) Method and device for modifying IP address
Luo et al. Achieving fast and lightweight SDN updates with segment routing
CN107645389A (en) A kind of network communication method and device
CN102833161B (en) Tunnel load share method and device
CN107294954A (en) Cloud pipe platform, the network log-in management system and method based on cloud pipe platform
JP6911144B2 (en) Data routing methods and equipment
CN108092869A (en) Virtual interface collocation method and communication equipment
CN112787949A (en) Flow acquisition and transportation management method, control device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20230616

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right