CN106992896B - SDN connection judgment method, apparatus and system - Google Patents

SDN connection judgment method, apparatus and system Download PDF

Info

Publication number
CN106992896B
CN106992896B CN201710393178.0A CN201710393178A CN106992896B CN 106992896 B CN106992896 B CN 106992896B CN 201710393178 A CN201710393178 A CN 201710393178A CN 106992896 B CN106992896 B CN 106992896B
Authority
CN
China
Prior art keywords
upstream
port
interchanger
downstream
switches
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
CN201710393178.0A
Other languages
Chinese (zh)
Other versions
CN106992896A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201710393178.0A priority Critical patent/CN106992896B/en
Publication of CN106992896A publication Critical patent/CN106992896A/en
Application granted granted Critical
Publication of CN106992896B publication Critical patent/CN106992896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application discloses a kind of SDN connection judgment method, apparatus and system, are related to communication system, for realizing the automatic discovery of SDN controller and OpenFlow inter-exchange channel connection relationship.This method comprises: OpenFlow interchanger obtains the first back message by upstream port, it wherein include the identification information of upstream switches, and obtain upstream neighbor interchanger record sheet corresponding with the upstream port, finally according to the port of the first back message of upstream neighbor interchanger record sheet or reception, judge that OpenFlow interchanger is direct-connected or indirectly connected by upstream port and SDN controller.The embodiment of the present application is applied to SDN network.

Description

SDN connection judgment method, apparatus and system
Technical field
This application involves the communications field more particularly to a kind of software defined network (Software Defined Network, SDN) connection judgment method, apparatus and system
Background technique
SDN technology is separated plane is controlled from the network equipment, and the control of the whole network, management function are focused on SDN In controller, the network equipment is absorbed in business datum forwarding, forms open flows (OpenFlow) interchanger after gradually standardizing. SDN controller is communicated with OpenFlow interchanger by OpenFlow agreement, in the specific implementation, SDN controller with Between OpenFlow interchanger, both can by independent band outer network carry out OpenFlow protocol communication, also can be used with Business datum forwards identical communication channel (band network) to carry out OpenFlow protocol communication.
In practical networking application, selects band network or carry out OpenFlow protocol communication depending on network reality with outer network Border situation when SDN controller and OpenFlow interchanger physical distance are far, and is not easy to provide individually control communication network When generally select in-band communications mode, to reduce network construction cost, simplify network operation management complexity.By with interior logical Letter mode, SDN controller and OpenFlow inter-exchange are completed after control communication channel establishes, according to OpenFlow interchanger with The difference of connection relationship between SDN controller, can be divided into direct-connected interchanger and indirectly connected interchanger.In the prior art, SDN is controlled Connection relationship between device and OpenFlow interchanger needs manual configuration, is not easy to safeguard when network structure changes.
Summary of the invention
Embodiments herein provides a kind of SDN connection judgment method, apparatus and system, for realizing SDN controller with The automatic discovery of OpenFlow inter-exchange channel connection relationship.
In order to achieve the above objectives, embodiments herein adopts the following technical scheme that
In a first aspect, a kind of SDN connection judgment method is provided, this method comprises:
Open flows OpenFlow interchanger and software defined network SDN controller establish control communication channel, to obtain this The upstream port of machine;
OpenFlow interchanger sends the first notification packet by upstream port, and the first notification packet includes that OpenFlow is handed over The identification information changed planes;
OpenFlow interchanger receives the first back message that upstream switches is sent, and includes upstream in the first back message The identification information of interchanger;
OpenFlow interchanger obtains corresponding with upstream port according to the identification information of upstream port and upstream switches Upstream neighbor interchanger record sheet;
When there are data in upstream neighbor interchanger record sheet corresponding with upstream port, and receive the first back message Port when belonging to upstream port, the judgement of OpenFlow interchanger is indirectly connected by upstream port and SDN controller;
When no data in upstream neighbor interchanger record sheet corresponding with upstream port, or receive the first back message Port when being not belonging to upstream port, the judgement of OpenFlow interchanger is direct-connected by upstream port and SDN controller.
Second aspect provides a kind of open flows OpenFlow interchanger, comprising:
Acquiring unit, for establishing control communication channel with software defined network SDN controller, to obtain the upstream of the machine Port;
Transmission unit, for sending the first notification packet by upstream port, the first notification packet includes that OpenFlow is handed over The identification information changed planes;
Receiving unit includes upstream in the first back message for receiving the first back message of upstream switches transmission The identification information of interchanger;
Acquiring unit is also used to the identification information according to upstream port and upstream switches, obtains corresponding with upstream port Upstream neighbor interchanger record sheet;
Judging unit for when having data in upstream neighbor interchanger record sheet corresponding with upstream port, and connects When receiving the port of the first back message and belonging to upstream port, judgement is indirectly connected by upstream port and SDN controller;When with upstream In the corresponding upstream neighbor interchanger record sheet in port when no data, or the port of the first back message of reception is not belonging to upstream When port, judgement is direct-connected by upstream port and SDN controller.
The third aspect provides a kind of communication system, open flows OpenFlow interchanger including such as second aspect and soft Part defines network SDN controller.
The SDN connection judgment method, apparatus and system that embodiments herein provides, OpenFlow interchanger pass through upstream Port obtains the first back message, wherein including the identification information of upstream switches, and obtains upstream corresponding with upstream port Neighbor switch record sheet, finally according to the port of the first back message of upstream neighbor interchanger record sheet or reception, judgement OpenFlow interchanger is direct-connected or indirectly connected by upstream port and SDN controller.It realizes SDN controller and OpenFlow is handed over The automatic discovery for a channel connection relationship of changing planes.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the structural schematic diagram for the communication system that embodiments herein provides;
Fig. 2 is a kind of flow diagram for SDN connection judgment method that embodiments herein provides;
Fig. 3 is the flow diagram for another SDN connection judgment method that embodiments herein provides;
Fig. 4 is the flow diagram for another SDN connection judgment method that embodiments herein provides;
Fig. 5 is the flow diagram for another SDN connection judgment method that embodiments herein provides;
Fig. 6 is a kind of structural schematic diagram for example communications system that embodiments herein provides;
Fig. 7 is the structural schematic diagram for the OpenFlow interchanger that embodiments herein provides.
Specific embodiment
With reference to the accompanying drawing, embodiments herein is described.
It referring to fig. 1, is the schematic diagram of communication system provided by the embodiments of the present application, including 11 He of SDN controller At least one OpenFlow interchanger 12.It is controlled between SDN controller 11 and OpenFlow interchanger 12 by in-band method When communication, physical connection is established by direct-connected mode between an at least OpenFlow interchanger and SDN controller.
SDN connection judgment method, apparatus and system provided by the embodiments of the present application, when SDN controller and OpenFlow are logical When crossing in-band communications mode and establishing control communication channel, do not influencing SDN controller and OpenFlow inter-exchange and controlling to communicate Under the premise of protocol compatibility, OpenFlow interchanger is automatically performed: (1) whether using direct-connected mode physics between SDN controller The automatic detection of connection;(2) port information (port numbers) of this interchanger connection SDN controller is reported automatically.SDN controller connects When receiving the notification message including port information that OpenFlow interchanger reports, band control communication channel topological data is completed It updates, is Topology Management service.
Embodiment 1,
The embodiment of the present application provides a kind of SDN connection judgment method, is applied to above system, referring to fig. 2, should Method includes:
S101, OpenFlow interchanger and SDN controller establish control communication channel, to obtain the upstream port of the machine.
OpenFlow interchanger is connected into " the upstream that port label used in SDN controller is the interchanger in the application Port " received the port of the message of SDN controller transmission on the upstream port i.e. OpenFlow interchanger.OpenFlow is handed over Changing planes and connecting the port of SDN controller may be direct-connected port, it is also possible to indirectly connected port.Each OpenFlow interchanger exists It completes after control communication channel foundation between SDN controller, respective switch can automatically identify " the upstream end of the machine Mouthful ".Meanwhile the port being connected on this OpenFlow interchanger with the upstream port of other OpenFlow interchangers, referred to as originally " downstream port " of OpenFlow interchanger.
It should also be noted that, middle and upper reaches interchanger of the embodiment of the present invention refers to the upstream port with OpenFlow interchanger The OpenFlow interchanger being directly connected to;Downstream switch, which refers to, to be directly connected to the downstream port of OpenFlow interchanger OpenFlow interchanger.
S102, OpenFlow interchanger send the first notification packet by upstream port, and the first notification packet includes The identification information of OpenFlow interchanger.
The identification information of OpenFlow interchanger is mainly used for the unique identification OpenFlow in entire SDN network and exchanges Machine, with can include but is not limited to the media access control (Media Access Control, MAC) of OpenFlow interchanger Location etc..
S103, OpenFlow interchanger receive the first back message that upstream switches is sent, and wrap in the first back message Include the identification information of upstream switches.
The identification information of upstream switches is mainly used for the unique identification OpenFlow interchanger in entire SDN network, It can include but is not limited to the MAC Address etc. of upstream switches.
S104, OpenFlow interchanger obtain and upstream port according to the identification information of upstream port and upstream switches Corresponding upstream neighbor interchanger record sheet.
Upstream neighbor interchanger record sheet includes but is not limited to upstream port, the MAC Address of upstream switches and host name.
S105, OpenFlow interchanger according to upstream neighbor interchanger record sheet or receive the first back message end Mouthful, judge that OpenFlow interchanger is direct-connected or indirectly connected by upstream port and SDN controller.
SDN connection judgment method provided by the embodiments of the present application, OpenFlow interchanger obtain first by upstream port Back message wherein including the identification information of upstream switches, and obtains upstream neighbor interchanger note corresponding with upstream port Table is recorded, finally according to the port of the first back message of upstream neighbor interchanger record sheet or reception, judges that OpenFlow is exchanged Machine is direct-connected or indirectly connected by upstream port and SDN controller.It realizes SDN controller and OpenFlow inter-exchange channel connects Connect the automatic discovery of relationship.
Optionally, referring to fig. 3, step S105 includes:
S1051, when having data in upstream neighbor interchanger record sheet corresponding with upstream port, and receive first time When the port of message being answered to belong to upstream port, the judgement of OpenFlow interchanger is indirectly connected by upstream port and SDN controller.
S1052, when no data in upstream neighbor interchanger record sheet corresponding with upstream port, or receive first time When the port of message being answered to be not belonging to upstream port, the judgement of OpenFlow interchanger is direct-connected by upstream port and SDN controller.
Optionally, referring to fig. 4, the above method further include:
S106, OpenFlow interchanger receive the second notification packet, the second notice from downstream switch by downstream port It include the identification information of downstream switch in message.
S107, OpenFlow interchanger obtain and downstream port according to the identification information of downstream port and downstream switch Corresponding downstream neighbor switches record sheet.
S108, OpenFlow interchanger according to downstream neighbor switches record sheet, by downstream port, downstream send out by interchanger The second back message is sent, includes the identification information of OpenFlow interchanger in the second back message.
S109, OpenFlow interchanger periodic scan upstream neighbor interchanger record sheet, if do not had whithin a period of time Have from upstream port and receive the first back message from upstream switches, is then exchanged from upstream neighbor corresponding with upstream port List item corresponding with upstream switches is deleted in machine record sheet.
It should be noted that successively suitable without specific logic between step S101-S105, with step S106-S109 Sequence.
Embodiment 2,
The embodiment of the present application provides another SDN connection judgment method, is applied to above system, referring to fig. 6, This method comprises:
S201, OpenFlow interchanger and SDN controller establish control communication channel, to obtain the upstream port of the machine.
The step is corresponding with S101.
It referring to fig. 6, is a kind of specific example of communication system of the embodiment of the present application.Interchanger 1 is to interchanger 5 It completes to establish between SDN controller after control communication channel, respective switch can automatically identify " the upstream end of the machine Mouthful ", it is as follows:
{ interchanger 1:switch1, upstream port: p1-1 }
{ interchanger 2:switch2, upstream port: p2-1 }
{ interchanger 3:switch3, upstream port: p3-1 }
{ interchanger 4:switch4, upstream port: p4-1 }
{ interchanger 5:switch5, upstream port: p5-1 }
S202, OpenFlow interchanger send switch status notification packet, the message packet periodically through upstream port Include the MAC Address and host name of this OpenFlow interchanger.
The step is corresponding with step S102.First notification packet, that is, switch status notification packet.
As shown in table 1, a kind of example of " switch status notice " message is provided, wherein the message is broadcast transmission, So recipient address is full 0 xFF, Optional Field is used as transmitting side marking and recipient's mark, if using the field, It can be device id or host name, or the identifiable mark of system is not construed as limiting.Those skilled in the art can be very It knows clearly, does not influence the transmitting-receiving of switch status notification packet without using recipient's identification field and transmitting side marking field And identification;Because MAC Address is used as the unique identification OpenFlow interchanger in entire SDN network.
Table 1
Illustratively, by taking the interchanger 2 (switch2) in Fig. 6 as an example, interchanger 2 is periodically through upstream port p2-1 Sending " switch status notice " message format can be as shown in table 2:
Table 2
Interchanger 2 is sent the above-mentioned message broadcasting built by upstream port P2-1.In the same way, it exchanges Machine 1, interchanger 3, interchanger 4, interchanger 5 also send " switch status notice " message on respective upstream port respectively.
S203, OpenFlow interchanger are from upstream switches desampler state back message.
The step is corresponding with step S103.First back message, that is, switch status back message.
OpenFlow Switch control plane independently issues following forward rule to data plane: rule 2, message protocol class Type is the Ethernet message of " 0x10b ", submits this Switch control plane.According to the rule, switch status back message is submitted This Switch control plane, control plane carry out subsequent processing.
As shown in table 3, a kind of example of " switch status response " message is provided.Likewise, due to switch status Back message with switch status notification packet be it is corresponding, transmitting side marking and recipient's mark equally can be used as optional Field, if the use of the field can be device id or host name, or the identifiable mark of system is not construed as limiting. Those skilled in the art without using recipient's identification field and transmitting side marking field it will be clearly understood that do not influence to exchange The transmitting-receiving and identification of machine state back message;Because MAC Address is used as the unique identification OpenFlow in entire SDN network to exchange Machine.
Table 3
Illustratively, using the interchanger 1 in Fig. 6 as the upstream switches of interchanger 2, will receive interchanger 2 pass through it is upper " switch status notice " message that port P2-1 is sent is swum, so interchanger 1 can be by port P1-2 downstream to interchanger 2 Upstream port P2-1 send corresponding switch status back message;Interchanger 2 is received from upstream port P2-1 from exchange The switch status that machine 1 issues is responded " message, which can be as shown in table 4:
Table 4
Interchanger 1 inquires downstream neighbor switches record sheet, obtains the corresponding downstream port P1-2 of interchanger 2, will construct The switch status back message of completion is sent to interchanger 2.Interchanger 2, interchanger 3 are according to the downstream neighbor switches of the machine Record sheet executes above-mentioned response process process according to same process.
S204, OpenFlow interchanger obtain the identification information of the upstream switches in switch status back message, root According to the identification information of upstream port and upstream switches, upstream neighbor interchanger record sheet corresponding with upstream port is obtained.
The step is corresponding with step S104.In the present embodiment, by step S201 it is found that OpenFlow interchanger is periodically logical Cross upstream port send OpenFlow interchanger all in switch status notification packet namely system be all periodically through Upstream port sends switch status notification packet, so the upstream port when OpenFlow interchanger is connected with upstream switches When, which repeatedly receives switch status response message from upstream switches, receives interchanger shape After state response message, the upstream port of desampler condition responsive message and the mark of the upstream switches in message are obtained Know information;It is first searched according to the identification information of upstream switches in downstream neighbor switches record sheet, if there is no corresponding List item then creates corresponding list item in downstream neighbor switches record sheet.In the present embodiment, it can also be handed in downstream neighbor Change planes record sheet list item in add ageing timer, often receive a upstream switches switch status response message update The ageing timer of corresponding table item once.
What those skilled in the art can will be apparent that knows, in embodiments of the present invention, when OpenFlow interchanger and SDN control Device is that switch status back message cannot be then received from upstream port when being directly connected to, so can not create corresponding Upstream neighbor interchanger record sheet.
Upstream neighbor interchanger record sheet example is as follows:
{ upstream port P1, upstream switches MAC Address Addr1, upstream switches host name Name1 }
{ upstream port P2, upstream switches MAC Address Addr2, upstream switches host name Name2 }
……
{ upstream port Pn, upstream switches MAC Address Addrn, upstream switches host name Namen }
Illustratively, by taking the interchanger 2 in Fig. 6 as an example, interchanger 2 obtains the interchanger 1 of connection upstream neighbor interchanger Port are as follows: P2-1;Analytic message content, acquisition upstream neighbor exchanger information upstream switches MAC Address: 00:01:7a: 00:00:01, upstream switches host name: switch1 };Construct upstream neighbor interchanger record sheet: upstream port: P2-1, on Swim switch mac address: 00:01:7a:00:00:01, upstream switches host name: switch1 }
According to processing method as above, the upstream neighbor interchanger record sheet that is formed on each OpenFlow interchanger in network It is as follows:
Interchanger 1: without upstream neighbor.
Interchanger 2:{ upstream port: P2-1, upstream switches MAC Address: 00:01:7a:00:00:01, upstream switches Host name: switch1 }.
Interchanger 3:{ upstream port: P3-1, upstream switches MAC Address: 00:01:7a:00:00:01, upstream switches Host name: switch1 }.
Interchanger 4:{ upstream port: P4-1, upstream switches MAC Address: 00:01:7a:00:00:02, upstream switches Host name: switch2 }.
Interchanger 5:{ upstream port: P5-1, upstream switches MAC Address: 00:01:7a:00:00:03, upstream switches Host name: switch3 }.
S205, OpenFlow interchanger are according to upstream neighbor interchanger record sheet or receive upstream switches state advertisement The port of message judges that OpenFlow interchanger is direct-connected or indirectly connected by upstream port and SDN controller.
The step is corresponding with step S105.
S206, if it is determined that direct-connected, OpenFlow interchanger constructs OpenFlow PKT_IN message, and is sent to SDN control Device processed notifies the connection type of SDN controller and this interchanger.
Illustratively, by taking the interchanger 1 in Fig. 6 as an example, the PKT_IN message format signal of building (has as shown in table 5 Body format content can refer to OpenFlow consensus standard):
Table 5
It after SDN controller receives above-mentioned PKT_IN message, is handled, itself can be completed and is handed over according to normal process The automatic discovery and topology processing of 1 connection relationship of changing planes.
S207, downstream switch periodically carry out aging process to upstream neighbor interchanger record sheet.
The step is corresponding with step S109.
Downstream switch periodic scan upstream neighbor interchanger record sheet, if whithin a period of time not from upstream end Mouthful receive " upstream switches state advertisement " message (the first back message) from upstream switches, then from the upstream port List item corresponding with upstream switches is deleted in corresponding upstream neighbor interchanger record sheet.
S208, OpenFlow interchanger pass through downstream port from downstream switch desampler state advertisement message.
The step is corresponding with S106.Second notification packet is also switch status notification packet.
Under original state, OpenFlow Switch control plane independently issues following forward rule to data plane: rule 1, message protocol type is the Ethernet message of " 0x10a ", submits this Switch control plane.According to the rule, message submits this Switch control plane, control plane carry out subsequent processing.
S209, OpenFlow interchanger obtain the downstream port for receiving " switch status notice " message;It obtains in message Downstream switch identification information;According to the identification information of downstream port and downstream switch, obtain corresponding with downstream port Downstream neighbor switches record sheet.
The step is corresponding with step S107.
In the present embodiment, by step S201 it is found that OpenFlow interchanger sends interchanger periodically through upstream port All OpenFlow interchangers are all to send interchanger shape periodically through upstream port in state advertisement message namely system State notification packet, so repeatedly receiving " exchange from downstream switch as the OpenFlow interchanger of upstream switches simultaneously Machine state advertisement " message after receiving " switch status notice " message, will obtain reception " switch status notice " message The identification information of downstream switch in downstream port and message;First according to the identification information of downstream switch in downstream neighbor Interchanger record sheet is searched, and if there is no corresponding list item, then corresponding table is created in downstream neighbor switches record sheet ?.
Downstream neighbor switches record sheet is as follows:
{ downstream port P1, downstream switch MAC Address Addr1, downstream switch host name Name1 }
{ downstream port P2, downstream switch MAC Address Addr2, downstream switch host name Name2 }
……
{ downstream port Pn, downstream switch MAC Address AddrN, downstream switch host name NameN }
Illustratively, by taking the interchanger 1 in Fig. 6 as an example, interchanger 1 obtains the interchanger 2 of connection downstream neighbor switches Downstream port are as follows: P1-2;Analytic message content, acquisition downstream neighbor switches identification information downstream switch MAC Address: 00:01:7a:00:00:02, downstream switch host name: switch2 };Construct downstream neighbor switches record sheet list item: under Swim port: P1-2, downstream switch MAC Address: 00:01:7a:00:00:02, downstream switch host name: switch2 }
According to processing method as above, the downstream neighbor switches record sheet that each OpenFlow interchanger is formed in network is such as Under:
Interchanger 1:{ downstream port: P1-2, downstream switch MAC Address: 00:01:7a:00:00:02, downstream switch Host name: switch2 };{ downstream port: P1-3, downstream switch MAC Address: 00:01:7a:00:00:03, downstream switch Host name: switch3 }.
Interchanger 2:{ downstream port: P2-2, downstream switch MAC Address: 00:01:7a:00:00:04, downstream switch Host name: switch4 }.
Interchanger 3:{ downstream port: P3-2, downstream switch MAC Address: 00:01:7a:00:00:05, downstream switch Host name: switch5 }.
Due to not having downstream neighbor, there is no corresponding downstream neighbor switches to record for interchanger 4 and interchanger 5 Table.
In the present embodiment, ageing timer can also be added in the table entry, often receive the " exchange an of downstream switch Machine state advertisement " message updates the ageing timer of corresponding table item.
S210, upstream switches obtain corresponding downstream port according to downstream neighbor switches record sheet, and periodically By downstream port, downstream interchanger sends upstream switches state back message, includes the mark of upstream switches in the message Know information.
The step is corresponding with step S108.
S211, OpenFlow change planes upstream and periodically carry out aging process to downstream neighbor switches record sheet.
Upstream switches periodic scan downstream neighbor switches record sheet, if whithin a period of time not from downstream Mouthful receive " downstream switch state advertisement " message (the first notification packet) from downstream switch, then from the downstream port List item corresponding with downstream switch is deleted in corresponding downstream neighbor switches record sheet.
It should be noted that without specific logic between step S201-S206, S207 and step S208-S211 Sequencing.
SDN connection judgment method provided by the embodiments of the present application, in addition to realizing SDN controller and OpenFlow interchanger Between channel connection relationship automatic discovery, above-mentioned connection relationship is also sent to SDN controller by OpenFlow interchanger.
Embodiment 3,
The embodiment of the present application provides a kind of OpenFlow interchanger, is applied to the above method, referring to fig. 7, the friendship It changes planes and 12 includes:
Acquiring unit 1201, for establishing control communication channel with software defined network SDN controller, to obtain the machine Upstream port.
Transmission unit 1202, for sending the first notification packet by upstream port, the first notification packet includes The identification information of OpenFlow interchanger.
Receiving unit 1203 includes for receiving the first back message of upstream switches transmission, in the first back message The identification information of upstream switches.
Acquiring unit 1201 is also used to the identification information according to upstream port and upstream switches, acquisition and upstream port Corresponding upstream neighbor interchanger record sheet.
Judging unit 1204, for according to upstream neighbor interchanger record sheet or receive the first back message port, Judge that OpenFlow interchanger is direct-connected or indirectly connected by upstream port and SDN controller.
In a kind of possible design, judging unit 1204 is specifically used for: when upstream neighbor corresponding with upstream port is handed over It changes planes in record sheet when having data, and when the port for receiving the first back message belongs to upstream port, judgement passes through upstream end Mouth is indirectly connected with SDN controller;When no data in upstream neighbor interchanger record sheet corresponding with upstream port, or receive When the port of first back message is not belonging to upstream port, judgement is direct-connected by upstream port and SDN controller.
In a kind of possible design, receiving unit 1203 is also used to receive downstream switch transmission by downstream port The second notification packet, include the identification information of downstream switch in the second notification packet;Acquiring unit is also used to according to downstream The identification information of port and downstream switch obtains downstream neighbor switches record sheet corresponding with downstream port;Transmission unit, Be also used to according to downstream neighbor switches record sheet by downstream port downstream interchanger send the second back message, second time Answer the identification information in message including OpenFlow interchanger.
In a kind of possible design, interchanger further includes aged cell 1205, is handed over for periodic scan upstream neighbor It changes planes record sheet, if not receiving the first back message from upstream switches from upstream port whithin a period of time, From and the corresponding upstream neighbor interchanger record sheet of upstream port in delete list item corresponding with upstream switches.
Since the OpenFlow interchanger in the embodiment of the present application can be applied to the above method, it can obtain Technical effect see also above method embodiment, details are not described herein for the embodiment of the present application.
It, can also be with it should be noted that acquiring unit, judging unit, aged cell can be the processor individually set up It is integrated in some processor of controller and realizes, in addition it is also possible to be stored in depositing for controller in the form of program code In reservoir, is called by some processor of controller and execute the function of the above each unit.Processor described here can be with It is central processing unit (Central Processing Unit, CPU) or specific integrated circuit (Application Specific Integrated Circuit, ASIC), or be arranged to implement the one or more of the embodiment of the present application Integrated circuit.
It should be understood that magnitude of the sequence numbers of the above procedures are not meant to execute suitable in the various embodiments of the application Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present application Process constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it can be with It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of equipment or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When being realized using software program, can entirely or partly realize in the form of a computer program product.The computer Program product includes one or more computer instructions.On computers load and execute computer program instructions when, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center Word user line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another A web-site, computer, server or data center are transmitted.The computer readable storage medium can be computer Any usable medium that can be accessed either includes the numbers such as one or more server, data centers that medium can be used to integrate According to storage equipment.The usable medium can be magnetic medium (for example, floppy disk, hard disk, tape), optical medium (for example, DVD), Or semiconductor medium (such as solid state hard disk (Solid State Disk, SSD)) etc..
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (8)

1. a kind of software defined network SDN connection judgment method characterized by comprising
Open flows OpenFlow interchanger and software defined network SDN controller establish control communication channel, to obtain the machine Upstream port;
The OpenFlow interchanger sends the first notification packet by the upstream port, and first notification packet includes institute State the identification information of OpenFlow interchanger;
The OpenFlow interchanger receives the first back message that upstream switches is sent, and includes in first back message The identification information of the upstream switches;
The OpenFlow interchanger according to the identification information of the upstream port and the upstream switches, obtain with it is described on Swim the corresponding upstream neighbor interchanger record sheet in port;
When there are data in upstream neighbor interchanger record sheet corresponding with the upstream port, and receives described first and respond When the port of message belongs to the upstream port, the OpenFlow interchanger judgement passes through the upstream port and the SDN Controller is indirectly connected;
When no data in upstream neighbor interchanger record sheet corresponding with the upstream port, or receives described first and respond When the port of message is not belonging to the upstream port, OpenFlow interchanger judgement by the upstream port with it is described SDN controller is direct-connected.
2. the method according to claim 1, wherein the method also includes:
The OpenFlow interchanger receives the second notification packet that downstream switch is sent by downstream port, and described second is logical Accuse the identification information in message including the downstream switch;
The OpenFlow interchanger according to the identification information of the downstream port and the downstream switch, obtain with it is described under Swim the corresponding downstream neighbor switches record sheet in port;
According to downstream neighbor switches record sheet, by downstream port, downstream interchanger sends the to the OpenFlow interchanger Two back messages include the identification information of the OpenFlow interchanger in second back message.
3. the method according to claim 1, wherein the method also includes:
Upstream neighbor interchanger record sheet described in the OpenFlow interchanger periodic scan, if do not had whithin a period of time The first back message from the upstream switches is received from the upstream port, then from corresponding with the upstream port It swims and deletes list item corresponding with the upstream switches in neighbor switch record sheet.
4. method according to claim 1-3, which is characterized in that the identification information of the upstream switches includes The MAC address of the upstream switches, the upstream neighbor interchanger record sheet include the upstream port, The MAC Address of the upstream switches.
5. a kind of open flows OpenFlow interchanger characterized by comprising
Acquiring unit, for establishing control communication channel with software defined network SDN controller, to obtain the upstream end of the machine Mouthful;
Transmission unit, for sending the first notification packet by the upstream port, first notification packet includes described The identification information of OpenFlow interchanger
Receiving unit includes described in first back message for receiving the first back message of upstream switches transmission The identification information of upstream switches;
The acquiring unit, is also used to the identification information according to the upstream port and the upstream switches, obtain with it is described The corresponding upstream neighbor interchanger record sheet of upstream port;
Judging unit for when having data in upstream neighbor interchanger record sheet corresponding with the upstream port, and connects When receiving the port of first back message and belonging to the upstream port, judgement is controlled by the upstream port and the SDN Device is indirectly connected;When no data in upstream neighbor interchanger record sheet corresponding with the upstream port, or receive described the When the port of one back message is not belonging to the upstream port, judgement is direct-connected by the upstream port and the SDN controller.
6. OpenFlow interchanger according to claim 5, which is characterized in that
The receiving unit, be also used to by downstream port receive downstream switch send the second notification packet, described second It include the identification information of the downstream switch in notification packet;
The acquiring unit, is also used to the identification information according to the downstream port and the downstream switch, obtain with it is described The corresponding downstream neighbor switches record sheet of downstream port;
The transmission unit, is also used to that downstream interchanger sends the by downstream port according to downstream neighbor switches record sheet Two back messages include the identification information of the OpenFlow interchanger in second back message.
7. OpenFlow interchanger according to claim 5, which is characterized in that the interchanger further includes aged cell, For upstream neighbor interchanger record sheet described in periodic scan, if do not received whithin a period of time from the upstream port The first back message from the upstream switches, then from upstream neighbor interchanger record sheet corresponding with the upstream port It is middle to delete list item corresponding with the upstream switches.
8. a kind of communication system, which is characterized in that including the described in any item open flows OpenFlow exchanges of such as claim 5-7 Machine and software defined network SDN controller.
CN201710393178.0A 2017-05-27 2017-05-27 SDN connection judgment method, apparatus and system Active CN106992896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710393178.0A CN106992896B (en) 2017-05-27 2017-05-27 SDN connection judgment method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710393178.0A CN106992896B (en) 2017-05-27 2017-05-27 SDN connection judgment method, apparatus and system

Publications (2)

Publication Number Publication Date
CN106992896A CN106992896A (en) 2017-07-28
CN106992896B true CN106992896B (en) 2019-07-23

Family

ID=59421178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710393178.0A Active CN106992896B (en) 2017-05-27 2017-05-27 SDN connection judgment method, apparatus and system

Country Status (1)

Country Link
CN (1) CN106992896B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911297B (en) * 2017-11-21 2020-03-24 迈普通信技术股份有限公司 SDN network in-band control channel establishment method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944828A (en) * 2014-04-15 2014-07-23 杭州华三通信技术有限公司 Method and equipment for transmitting protocol messages
CN104243317A (en) * 2014-09-26 2014-12-24 杭州华三通信技术有限公司 Method and device for forwarding IP (internet protocol) routes
CN104601380A (en) * 2015-01-30 2015-05-06 杭州华三通信技术有限公司 Software-defined network controller and host computer information recovery method thereof
KR101544106B1 (en) * 2014-02-28 2015-08-12 주식회사 이노와이어리스 method for access to SDN using single Ethernet port
CN105721318A (en) * 2016-02-29 2016-06-29 华为技术有限公司 Method and device for discovering network topology in software defined network SDN (Software Defined Network)
CN105847031A (en) * 2016-03-15 2016-08-10 中国石油天然气股份有限公司华北油田分公司 Network topology construction system and method for testing OpenFlow SDN (Software Defined Networking) controller
CN106506716A (en) * 2016-10-20 2017-03-15 北京东土科技股份有限公司 A kind of method of attachment of SDN controllers in-band management and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099995B (en) * 2014-04-29 2018-09-28 华为技术有限公司 SDN network system, controller and control method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101544106B1 (en) * 2014-02-28 2015-08-12 주식회사 이노와이어리스 method for access to SDN using single Ethernet port
CN103944828A (en) * 2014-04-15 2014-07-23 杭州华三通信技术有限公司 Method and equipment for transmitting protocol messages
CN104243317A (en) * 2014-09-26 2014-12-24 杭州华三通信技术有限公司 Method and device for forwarding IP (internet protocol) routes
CN104601380A (en) * 2015-01-30 2015-05-06 杭州华三通信技术有限公司 Software-defined network controller and host computer information recovery method thereof
CN105721318A (en) * 2016-02-29 2016-06-29 华为技术有限公司 Method and device for discovering network topology in software defined network SDN (Software Defined Network)
CN105847031A (en) * 2016-03-15 2016-08-10 中国石油天然气股份有限公司华北油田分公司 Network topology construction system and method for testing OpenFlow SDN (Software Defined Networking) controller
CN106506716A (en) * 2016-10-20 2017-03-15 北京东土科技股份有限公司 A kind of method of attachment of SDN controllers in-band management and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"支持多协议的SDN控制器与交换机接口的设计和实现";李鸿赟;《万方数据》;20130531;全文

Also Published As

Publication number Publication date
CN106992896A (en) 2017-07-28

Similar Documents

Publication Publication Date Title
US9665530B2 (en) Method and system for implementing elastic network interface and interconnection
CN103404084B (en) MAC Address forces retransmission unit and method
US8107482B2 (en) Multipath discovery in switched ethernet networks
CN105591974B (en) Message processing method, apparatus and system
US20090109998A1 (en) Facilitating self configuring link aggregation using link aggregation control protocol
CN106992874A (en) Method and the network equipment for communication
CN102938794A (en) Address resolution protocol (ARP) message forwarding method, exchanger and controller
CN100435528C (en) Method for reducing learning of media accessing control address in network
CN107104824A (en) A kind of network topology determines method and apparatus
CN108055156B (en) AP management method and device
CN101453413A (en) Method and apparatus for automatic topology discovery and resource management in PBB network
EP2218214B1 (en) Network location service
CN107820262A (en) Method for parameter configuration, apparatus and system
EP2728797B1 (en) Message processing method, device and system
CN104205729B (en) Method, device, and system for configuring device in network
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system
CN104539539A (en) Multi-service-board data forwarding method for AC device
CN100463426C (en) Sevice quality control/device and method based on virtual network marker
CN105376197B (en) The method and system of implementation level network abstraction
CN106992896B (en) SDN connection judgment method, apparatus and system
CN105227334B (en) A kind of Fabric method for discovering network topology and device
CN106506409B (en) A kind of management method and network management exchange of network management exchange
CN108092896A (en) Pile system and aggregation group establish device
KR100889753B1 (en) Method of protection switching for link aggregation group and Apparatus thereof
CN107786441B (en) Communication method, OpenFlow switch and communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 16 Hing Hing Road, Chengdu high tech Development Zone, Sichuan, China 16

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder