CN105634962B - The generation method and device of SDN network topology - Google Patents
The generation method and device of SDN network topology Download PDFInfo
- Publication number
- CN105634962B CN105634962B CN201610045701.6A CN201610045701A CN105634962B CN 105634962 B CN105634962 B CN 105634962B CN 201610045701 A CN201610045701 A CN 201610045701A CN 105634962 B CN105634962 B CN 105634962B
- Authority
- CN
- China
- Prior art keywords
- interchanger
- address information
- virtual machine
- switch
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides the generation method and device of a kind of SDN network topology, this method includes:Whether monitoring increases virtual machine or the first interchanger in current network;If monitoring to increase virtual machine or the first interchanger in current network, corresponding event is triggered, to capture the address information and access interface information of the second switch being connect with virtual machine or the first interchanger;Obtain the address information of virtual machine or address information, the access interface information of the first interchanger;According to the address information of the address information of virtual machine and second switch, access interface information, generate the first addition topological data table, alternatively, generating the second addition topological data table according to the address information of the first interchanger, the address information of access interface information and second switch, access interface information;According to the first addition topological data table or the second addition topological data table, updated SDN network topology is generated.
Description
Technical field
The present embodiments relate to the generation method of mobile communication technology field more particularly to a kind of SDN network topology and
Device.
Background technology
Software defined network (Software Defined Network, abbreviation SDN) is a kind of new network of Emulex network innovation framework,
Its core concept is to detach the control plane of the network equipment with forwarding plane, is core to realize the flexible control to flow
The innovation of network and application provides good platform.In SDN network, including the network equipment (such as interchanger, virtual machine) and
SDN controllers.SDN controllers are used to generate flow table (Flow Table) according to the configuration of user or the agreement of dynamic operation,
And flow table is sent to the network equipment.The network equipment for receiving the flow table from SDN controllers, and according to flow table come match with
Handle message.SDN controllers need to obtain the network topology between each network equipment, i.e., which end passed through between each network equipment
Mouth connection.
Network topology (Network Topology) structure refers to that the physical layout of various equipment is interconnected with transmission medium, is referred to
I.e. true or logic the i.e. virtual arrangement mode of specific physics between the member of composition network.Common network is opened up
It is to detect that port detects using ping using simple such as The Dude network topologies Core Generator to flutter generating mode all,
To carry out topology mapping.
But SDN network is the network defined between physical switches, virtual switch and virtual machine, Physical Network
The combination of network and virtual network makes the complexity of whole network increase, Dude network topology Core Generators, handle that can not be perfect
SDN network topology is drawn and is updated.
Invention content
The embodiment of the present invention provides a kind of generation method of SDN network topology so that topological structure occurs in SDN network
When variation, can SDN network topological structure be drawn and be updated in real time.
The embodiment of the present invention provides a kind of generation method of SDN network topology, including:
Whether monitoring increases virtual machine or the first interchanger in current network;
If monitoring to increase virtual machine or the first interchanger in current network, trigger corresponding event, with capture with
The address information and access interface information of virtual machine or the second switch of the first interchanger connection;
Obtain the address information of the virtual machine or the address information of the first interchanger, access interface information;
According to the address information of the address information of the virtual machine and second switch, access interface information, first is generated
Topological data table is added, alternatively, according to the address information, access interface information and the second switch of first interchanger
Address information, access interface information generate second addition topological data table;
According to the first addition topological data table or the second addition topological data table, updated SDN network topology is generated.
The embodiment of the present invention provides a kind of generating means of SDN network topology, including:
Monitoring modular, for monitoring whether increase virtual machine or the first interchanger in current network;
If trigger module triggers corresponding for monitoring to increase virtual machine or the first interchanger in current network
Event, to capture the address information and access interface information of the second switch being connect with virtual machine or the first interchanger;
Acquisition module, address information, the access interface of address information or the first interchanger for obtaining the virtual machine
Information;
Generation module, for according to the address information of the virtual machine and address information, the access interface of second switch
Information, generate first addition topological data table, alternatively, according to the address information of first interchanger, access interface information and
Address information, the access interface information of the second switch generate the second addition topological data table;
The generation module is additionally operable to, according to the first addition topological data table or the second addition topological data table, generate more
SDN network topology after new.
The embodiment of the present invention provides a kind of generation method and device of SDN network topology, and this method is by monitoring current
Whether virtual machine or first interchanger are increased in network;If monitoring to increase virtual machine or the first exchange in current network
Machine then triggers corresponding event, to capture the address information for the second switch being connect with virtual machine or the first interchanger and connect
Ingress port information;Obtain the address information of virtual machine or address information, the access interface information of the first interchanger;According to virtual machine
Address information and second switch address information, access interface information, generate first addition topological data table, alternatively, root
The is generated according to the address information of the first interchanger, the address information of access interface information and second switch, access interface information
Two addition topological data tables;According to the first addition topological data table or the second addition topological data table, updated SDN nets are generated
Network topology.So that when the variation of topological structure occurs for SDN network, SDN network topological structure can be drawn in real time
And update.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow chart of the generation method embodiment one of SDN network of the present invention topology;
Fig. 2 is the flow chart of the generation method embodiment two of SDN network of the present invention topology;
Fig. 3 is the flow chart of the generation method embodiment three of SDN network of the present invention topology;
Fig. 4 is the structural schematic diagram of the generating means embodiment one of SDN network of the present invention topology.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of the generation method embodiment one of SDN network of the present invention topology, as shown in Figure 1, the present invention's holds
Row main body is the generating means of SDN network topology, can specifically be realized by computer or server.It is then provided in this embodiment
The generation method of SDN network topology includes:
Step 101, whether monitoring increases virtual machine or the first interchanger in current network.
In the present embodiment, SDN controllers can be monitored by monitoring the port status of each interchanger in current network
Whether increase virtual machine in current network, SDN controllers can by monitor whether new interchanger to its submission state come
It monitors whether to increase interchanger.
Wherein, the first interchanger is not have in current network, the interchanger newly increased.It can be physical switches or
Virtual switch does not limit in the present embodiment.
Step 102, if monitoring to increase virtual machine or the first interchanger in current network, corresponding event is triggered,
To capture the address information and access interface information of the second switch being connect with virtual machine or the first interchanger.
In the present embodiment, if monitoring to increase virtual machine or the first interchanger in current network, triggers RYU and increase income work
Has the corresponding event realized.Corresponding event triggering after, capture envelop message, with obtain carried in envelop message with void
The address information and access interface information of quasi- machine or the second switch of the first interchanger connection.
In the present embodiment, second switch is already existing interchanger in current network, can be physical switches
Or virtual switch, it does not limit in the present embodiment.
In the present embodiment, the address information of second switch is IP address information, the access interface information of second switch
Can be second switch and virtual machine or the first interchanger for the port information being connected with virtual machine or the first interchanger
Connected port numbers.
Step 103, the address information of virtual machine or the address information of the first interchanger, access interface information are obtained.
In the present embodiment, can be obtained from the envelop message received by corresponding event virtual machine address information or
Address information, the access interface information of first interchanger.Wherein, the address information of virtual machine includes the IP address information of virtual machine
And mac address information.The address information of first interchanger is the IP address information of the first interchanger, the incoming end of the first interchanger
Message breath is the port information being connected with second switch, can be the port that the first interchanger is connected with second switch
Number.
Step 104, it according to the address information of the address information of virtual machine and second switch, access interface information, generates
First addition topological data table, alternatively, according to the ground of the address information of the first interchanger, access interface information and second switch
Location information, access interface information generate the second addition topological data table.
In the present embodiment, if access current network is virtual machine, exchanged according to the address information of virtual machine and second
Address information, the access interface information of machine generate the first addition topological data table, if access current network is the first exchange
Machine, then according to the address information of the first interchanger, the address information of access interface information and second switch, access interface information
Generate the second addition topological data table.
Wherein, the first addition topological data table is the addition topological data table increased after virtual machine, the second addition topological Numbers
It is the increase topological data table after increasing interchanger according to table.It can in first addition topological data table and the second addition topological data table
Store multiple increased network topological informations.First addition topological data table and the second increase topological data table can be expressed as
Shown in Tables 1 and 2.Wherein, the network for illustrating only an increased virtual machine or the first interchanger in Tables 1 and 2 respectively is opened up
Flutter information.
Table 1:First addition topological data table
The network topological information indicated in table 1 is that an IP address is 10.0.12.2, MAC Address a4:ba:db:fc:
f6:The virtual machine of af is connected with No. 2 ports of the second switch that IP address is 192.168.7.24.The table effectively stores
Virtual machine accesses the increased network topology structure of current network when institute.
Table 2:Second addition topological data table
Network topological information in table 2 indicates that the second switch that an IP address is 192.168.7.24 is held by No. 10
Mouth is connected with the first interchanger that IP address is 192.168.7.23.The first interchanger that IP address is 192.168.7.23 is logical
It crosses No. 2 ports and is connected with the second switch that IP address is 192.168.7.24.The table effectively stores interchanger access net
Institute's increased network topology structure when network.
Step 105, according to the first addition topological data table or the second addition topological data table, updated SDN nets are generated
Network topology.
In the present embodiment, opened up since the first addition topological data table stores the increased network after network is added in virtual machine
The information flutterred, the second addition topological data table store the increased network topological information after network is added in interchanger, so,
After thering is virtual machine to increase to current network, according to the increased network topological information in the first addition topological data table, draw
Increase the updated SDN network topology after virtual machine, after thering is interchanger to increase to current network, according to the second addition topology
Increased network topological information in tables of data draws the updated SDN network topology after increasing interchanger, to generate more
SDN network topology after new.
Whether the generation method of SDN network topology provided in this embodiment increases void by monitoring in current network
Quasi- machine or the first interchanger;If monitoring to increase virtual machine or the first interchanger in current network, corresponding event is triggered,
To capture the address information and access interface information of the second switch being connect with virtual machine or the first interchanger;Obtain virtual machine
Address information or the first interchanger address information, access interface information;It is exchanged according to the address information of virtual machine and second
Address information, the access interface information of machine generate the first addition topological data table, alternatively, believing according to the address of the first interchanger
Breath, the address information of access interface information and second switch, access interface information generate the second addition topological data table;According to
First addition topological data table or the second addition topological data table, generate updated SDN network topology.So that in SDN network
When the variation of topological structure occurs, can SDN network topological structure be drawn and be updated in real time.
Fig. 2 is the flow chart of the generation method embodiment two of SDN network of the present invention topology, as shown in Fig. 2, the present invention's holds
Row main body is the generating means of SDN network topology, can specifically be realized by computer or server.For current in the present embodiment
The method for generating updated SDN network topology when increasing virtual machine in network.Then SDN network provided in this embodiment topology
Generation method includes:
Step 201, whether monitoring increases virtual machine in current network.
It is specifically wrapped further, in this embodiment being monitored in step 201 and whether increasing virtual machine in current network
It includes:
Whether each interchanger monitored in current network has port status variation, if monitoring the end of second switch
There is state change in mouth, it is determined that virtual machine is increased to by the access interface of second switch in current network, if monitoring
Each interchanger portless state change, it is determined that non-access of virtual machine in current network.
Specifically, in the present embodiment, when virtual machine is added current network and is connect with a certain interchanger, the end of the interchanger
Mouth state will appear variation, i.e. port UP or the variation of DOWN occurs in the switch port.So by monitoring in current network
In each interchanger whether have port status variation, to monitor in current network whether increase virtual machine.When monitoring to work as
It when state change occurs in the port of second switch in preceding network, determines that virtual machine is connected with second switch, passes through
The access interface of two interchangers increases in current network, if monitoring the equal portless state change of each interchanger, it is determined that
Non- access of virtual machine in current network.
Step 202, if monitoring to increase virtual machine in current network, EventOFPPortStatus events are triggered,
To receive the first envelop message of second switch, address information, the incoming end of second switch are carried in the first envelop message
Message ceases.
In the present embodiment, the address information of virtual machine is also carried in the first envelop message of second switch.
Specifically, in the present embodiment, if monitoring to increase virtual switch in current network, i.e. the end of second switch
There is state change in mouth, then triggers the EventOFPPortStatus events of RYU Open-Source Tools realization, triggering
After EventOFPPortStatus events, EventOFPPortStatus events send that second switch corresponds to access interface
One envelop message carries the address information of second switch, access interface information and virtual machine in the first envelop message
Address information.
Wherein, the address information of second switch is the IP address of second switch, and access interface information is and virtual machine
Connected incoming end slogan, the address information of virtual machine are the IP address information and mac address information of virtual machine.
Step 203, the address information of virtual machine is obtained.
Further, in this embodiment obtaining the address information of virtual machine by the first envelop message received.
Step 204, it according to the address information of the address information of virtual machine and second switch, access interface information, generates
First addition topological data table, and generate updated SDN network topology.
In the present embodiment, given birth in step 104- steps 105 when increasing virtual machine in step 204 and the embodiment of the present invention one
Method at updated SDN network topology is identical, then this is no longer repeated one by one.
The generation method of SDN network topology provided in this embodiment, by monitoring each interchanger in current network
Whether there is port status variation to monitor in current network whether increase virtual machine, if monitoring to increase void in current network
Quasi- machine, then trigger EventOFPPortStatus events, to receive the first envelop message of second switch, the first envelop message
Middle address information, the address information of access interface information and virtual machine for carrying second switch passes through the first letter received
After sealing the address information that message obtains virtual machine, according to the address information of the address information of virtual machine and second switch, access
Port information generates the first addition topological data table, and generates updated SDN network topology.It realizes due to virtual machine
When increasing the variation for making SDN network that topological structure occur, can SDN network topological structure be drawn and be updated in real time.
Further, after step 204, if virtual machine withdraws from current network, triggering RYU Open-Source Tools are realized
PORTDOWN events, with the corresponding network topological information of the virtual machine deleted with withdrawn from, to be deleted in SDN network topology
The virtual machine node.
Fig. 3 is the flow chart of the generation method embodiment three of SDN network of the present invention topology, as shown in figure 3, the present invention's holds
Row main body is the generating means of SDN network topology, can specifically be realized by computer or server.For current in the present embodiment
The method that updated SDN network topology is generated when increasing by the first interchanger in network.Then SDN network provided in this embodiment is opened up
The generation method flutterred includes:
Step 301, whether monitoring increases the first interchanger in current network.
In the present embodiment, the first interchanger is not have in current network, the interchanger newly increased.It can be that physics is handed over
It changes planes or virtual switch, is not limited in the present embodiment.
In the present embodiment, if increase by the first interchanger in current network, the first exchange opportunity newly increased can be by shape
State is submitted, then can be by monitoring whether that new interchanger submits state to monitor whether to increase interchanger.
Step 302, if monitoring to increase the first interchanger in current network, it indicates that the first interchanger carries out topological hair
The broadcast of existing message.
In the present embodiment, after the broadcast that SDN controllers indicate that the first interchanger carries out Topology Discovery message, first exchanges
Machine is gone out Topology Discovery message broadcasting by each port.Whether SDN monitoring control devices have interchanger to receive topology hair
Existing message.
Step 303, if monitoring, second switch receives Topology Discovery message, triggers EventOFPPacketIn things
Part, to receive the second envelop message of second switch, the address information of second switch is carried in the second envelop message and connect
Ingress port information.
In the present embodiment, is monitoring that second switch receives the Topology Discovery message, then it is real to trigger RYU Open-Source Tools
Which end existing EventOFPPacketIn events, the interchanger which can capture reception pass through
The message that mouth receives, i.e., the Topology Discovery message being connected to by which port of second switch, and send second switch
The second envelop message, the address information and access interface information of second switch are carried in second envelop message.It is obtaining
After to the address information and access interface information of second switch, the unidirectional topology from second switch to the first interchanger is obtained
Information.The first row network topological information such as in table 2 is unilateral network topology information of the second switch to the first interchanger.
Step 304, instruction second switch sends topology to the access interface of the first interchanger and replies message.
In the present embodiment, indicate that second switch sends topology to the access interface of the first interchanger and answers in SDN controllers
After multiple message, whether the first interchanger of SDN monitoring control devices receives the topology and replies message.
In the present embodiment, it is the first exchange that second switch sends topology to reply the access interface of message to the first interchanger
The interface of machine and second switch being connected.
Step 305, if monitoring, the first interchanger receives topology and replies message, triggers EventOFPPacketIn things
Part, to receive the third envelop message of the first interchanger, the address information of the first interchanger is carried in third envelop message and connect
Ingress port information.
In the present embodiment, monitors that the first interchanger receives the topology and replies message, then trigger the realization of RYU Open-Source Tools
EventOFPPacketIn events, which port the interchanger which can capture reception pass through
The topology that the message received, i.e. the first interchanger are connected to second switch transmission by which port replies message, and sends
The third envelop message of first interchanger carries the address information and incoming end message of the first interchanger in the third envelop message
Breath.After the address information and access interface information for getting the first interchanger, obtain from the first interchanger to second switch
Reversed network topological information.The second row network topological information such as in table 2 is the first interchanger to the anti-of second switch
To network topological information.
Step 306, according to the address information of the first interchanger, the address information of access interface information and second switch,
Access interface information generates the second addition topological data table, and generates updated SDN network topology.
In the present embodiment, increasing by the first interchanger in step 104- steps 105 in step 306 and the embodiment of the present invention one
The method of the updated SDN network topologys of Shi Shengcheng is identical, then this is no longer repeated one by one.
Whether the generation method of SDN network topology provided in this embodiment increases in current network the by monitoring
One interchanger, if monitoring to increase the first interchanger in current network, it indicates that the first interchanger carries out Topology Discovery message
Broadcast, if monitoring, second switch receives Topology Discovery message, triggers EventOFPPacketIn events, with receive
Second envelop message of second switch carries the address information and incoming end message of second switch in the second envelop message
Breath obtains the unilateral network topology information from second switch to the first interchanger, indicates second switch to the first interchanger
Access interface send topology reply message, if monitor the first interchanger receive topology reply message, trigger
EventOFPPacketIn events carry first to receive the third envelop message of the first interchanger, in third envelop message and hand over
The address information and access interface information changed planes, to obtain the reversed network topology letter from the first interchanger to second switch
Breath, according to from second switch to the first interchanger unilateral network topology information and from the first interchanger to second switch
Reversed network topological information generates updated SDN network topology, realizes since the increase of interchanger makes SDN network
When the variation of topological structure, can SDN network topological structure be drawn and be updated in real time.
Fig. 4 is the structural schematic diagram of the generating means embodiment one of SDN network of the present invention topology, as shown in figure 4, this implementation
The generating means of SDN network topology that example provides include:Monitoring modular 401, trigger module 402, acquisition module 403 generate mould
Block 404.
Wherein, monitoring modular 401, for monitoring whether increase virtual machine or the first interchanger in current network.It touches
If hair module 402 triggers corresponding event for monitoring to increase virtual machine or the first interchanger in current network, with
Capture the address information and access interface information of the second switch being connect with virtual machine or the first interchanger.Acquisition module 403,
Address information, the access interface information of address information or the first interchanger for obtaining virtual machine.Generation module 404, is used for
According to the address information of the address information of virtual machine and second switch, access interface information, the first addition topological data is generated
Table, alternatively, according to the address information of the first interchanger, the address information of access interface information and second switch, access interface
Information generates the second addition topological data table.Generation module 404 is additionally operable to according to the first addition topological data table or the second addition
Topological data table generates updated SDN network topology.
The generating means of SDN network topology provided in this embodiment can execute the technical side of embodiment of the method shown in Fig. 1
Case, implementing principle and technical effect are similar, and details are not described herein again.
Further, monitoring modular 401 is specifically used for:Whether each interchanger monitored in current network has port shape
State changes;If monitoring, there is state change in the port of second switch, it is determined that the access that virtual machine passes through second switch
Port increases in current network;If monitoring each interchanger portless state change, it is determined that do not accessed in current network
Virtual machine.
Trigger module 402, is specifically used for:If monitoring to increase virtual machine in current network, trigger
EventOFPPortStatus events carry second to receive the first envelop message of second switch in the first envelop message
The address information of interchanger, the address information of access interface information and virtual machine.Acquisition module 403, is specifically used for:From the first letter
It seals in message and obtains the address information of virtual machine.
Alternatively, trigger module 402, is specifically used for:If monitoring to increase the first interchanger in current network, it indicates that the
One interchanger carries out the broadcast of Topology Discovery message;If monitoring, second switch receives Topology Discovery message, triggers
EventOFPPacketIn events carry second to receive the second envelop message of second switch, in the second envelop message and hand over
The address information and access interface information changed planes.Acquisition module 403, is specifically used for:Indicate second switch to the first interchanger
Access interface send topology reply message;If monitoring, the first interchanger receives topology and replies message, triggers
EventOFPPacketIn events carry first to receive the third envelop message of the first interchanger, in third envelop message and hand over
The address information and access interface information changed planes.
Further, in the generating means of SDN network topology provided in this embodiment, the address information of virtual machine includes IP
Address information and mac address information, the address information of the first interchanger are the IP address information of the first interchanger, second switch
Address information be second switch IP address information.
The generating means of the SDN network topology of the present embodiment can execute the technical side of embodiment of the method shown in Fig. 2 and Fig. 3
Case, implementing principle and technical effect are similar, and details are not described herein again.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of generation method of SDN network topology, which is characterized in that including:
Whether monitoring increases virtual machine or the first interchanger in current network;
If monitoring to increase virtual machine or the first interchanger in current network, corresponding event is triggered, with capture and virtually
The address information and access interface information of machine or the second switch of the first interchanger connection;
Obtain the address information of the virtual machine or the address information of the first interchanger, access interface information;
According to the address information of the address information of the virtual machine and second switch, access interface information, the first addition is generated
Topological data table, alternatively, according to the ground of the address information of first interchanger, access interface information and the second switch
Location information, access interface information generate the second addition topological data table;
According to the first addition topological data table or the second addition topological data table, updated SDN network topology is generated.
2. according to the method described in claim 1, it is characterized in that, monitoring in current network whether to increase virtual machine specific
Including:
Whether each interchanger monitored in current network has port status variation;
If monitoring, there is state change in the port of the second switch, it is determined that the virtual machine is exchanged by described second
The access interface of machine increases in current network;
If monitoring each interchanger portless state change, it is determined that non-access of virtual machine in current network.
3. method according to claim 1 or 2, which is characterized in that if monitoring to increase virtual machine in current network,
Corresponding event is triggered, it is specific to wrap to capture the address information and access interface information of the second switch being connect with virtual machine
It includes:
If monitoring to increase virtual machine in current network, EventOFPPortStatus events are triggered, are handed over receiving second
The first envelop message changed planes carries address information, the incoming end message of the second switch in first envelop message
The address information of breath and the virtual machine;
The address information for obtaining virtual machine specifically includes:
The address information of the virtual machine is obtained from first envelop message.
If 4. according to the method described in claim 1, it is characterized in that, monitor to increase the first interchanger in current network,
Corresponding event is then triggered, to capture the address information and access interface information of the second switch being connect with the first interchanger,
It specifically includes:
If monitoring to increase the first interchanger in current network, it indicates that the first interchanger carries out the wide of Topology Discovery message
It broadcasts;
If monitoring, second switch receives the Topology Discovery message, EventOFPPacketIn events is triggered, to connect
The second envelop message of second switch is received, the address information and incoming end of second switch are carried in second envelop message
Message ceases;
Obtain the address information of the first interchanger, access interface information specifically includes:
Indicate that second switch sends topology to the access interface of first interchanger and replies message;
If monitoring, the first interchanger receives topology and replies message, EventOFPPacketIn events is triggered, to receive
The third envelop message of the first interchanger is stated, the address information and incoming end of the first interchanger are carried in the third envelop message
Message ceases.
5. according to the method described in claim 1, it is characterized in that, the address information of virtual machine includes IP address information and MAC
Address information, the address information of the first interchanger are the IP address information of the first interchanger, the address letter of the second switch
Breath is the IP address information of second switch.
6. a kind of generating means of SDN network topology, which is characterized in that including:
Monitoring modular, for monitoring whether increase virtual machine or the first interchanger in current network;
If trigger module triggers corresponding event for monitoring to increase virtual machine or the first interchanger in current network,
To capture the address information and access interface information of the second switch being connect with virtual machine or the first interchanger;
Acquisition module, address information, the access interface information of address information or the first interchanger for obtaining the virtual machine;
Generation module is used for according to the address information of the virtual machine and address information, the access interface information of second switch,
The first addition topological data table is generated, alternatively, according to the address information of first interchanger, access interface information and described the
Address information, the access interface information of two interchangers generate the second addition topological data table;
The generation module is additionally operable to according to the first addition topological data table or the second addition topological data table, after generating update
SDN network topology.
7. device according to claim 6, which is characterized in that the monitoring modular is specifically used for:
Whether each interchanger monitored in current network has port status variation;If monitoring the end of the second switch
There is state change in mouth, it is determined that the virtual machine is increased to by the access interface of the second switch in current network;
If monitoring each interchanger portless state change, it is determined that non-access of virtual machine in current network.
8. the device described according to claim 6 or 7, which is characterized in that trigger module is specifically used for:
If monitoring to increase virtual machine in current network, EventOFPPortStatus events are triggered, are handed over receiving second
The first envelop message changed planes carries address information, the incoming end message of the second switch in first envelop message
The address information of breath and the virtual machine;
The acquisition module, is specifically used for:The address information of the virtual machine is obtained from first envelop message.
9. device according to claim 6, which is characterized in that trigger module is specifically used for:
If monitoring to increase the first interchanger in current network, it indicates that the first interchanger carries out the wide of Topology Discovery message
It broadcasts;If monitoring, second switch receives the Topology Discovery message, triggers EventOFPPacketIn events, to receive
Second envelop message of second switch carries the address information and access interface of second switch in second envelop message
Information;
Acquisition module is specifically used for:Indicate that second switch sends topology to the access interface of first interchanger and replies report
Text;If monitoring, the first interchanger receives topology and replies message, EventOFPPacketIn events is triggered, described in reception
The third envelop message of first interchanger carries the address information and access interface of the first interchanger in the third envelop message
Information.
10. device according to claim 6, which is characterized in that the address information of the virtual machine includes IP address information
And mac address information, the address information of first interchanger are the IP address information of the first interchanger, the second switch
Address information be second switch IP address information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610045701.6A CN105634962B (en) | 2016-01-22 | 2016-01-22 | The generation method and device of SDN network topology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610045701.6A CN105634962B (en) | 2016-01-22 | 2016-01-22 | The generation method and device of SDN network topology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105634962A CN105634962A (en) | 2016-06-01 |
CN105634962B true CN105634962B (en) | 2018-07-24 |
Family
ID=56049480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610045701.6A Active CN105634962B (en) | 2016-01-22 | 2016-01-22 | The generation method and device of SDN network topology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105634962B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110661629B (en) * | 2018-06-28 | 2022-02-25 | 中兴通讯股份有限公司 | Network topology discovery method and device |
CN110661730B (en) * | 2019-10-24 | 2022-11-08 | 北京锐安科技有限公司 | Network switching equipment management method, device, server and storage medium |
CN114338413B (en) * | 2021-12-30 | 2024-01-26 | 中国工商银行股份有限公司 | Method, device and storage medium for determining topological relation of equipment in network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103346969A (en) * | 2013-07-05 | 2013-10-09 | 中国科学院计算机网络信息中心 | Method for achieving dynamic multicast spanning tree path adjustment based on OpenFlow |
CN104579977A (en) * | 2014-12-23 | 2015-04-29 | 广东顺德中山大学卡内基梅隆大学国际联合研究院 | Bandwidth constraint multipath routing method and system for SDN controller |
CN104618246A (en) * | 2015-02-12 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Network topology discovery method for XEN virtualization environment |
EP2882162A1 (en) * | 2013-12-09 | 2015-06-10 | Huawei Technologies Co., Ltd. | Data stream security processing method and apparatus |
CN104753695A (en) * | 2013-12-25 | 2015-07-01 | 上海宽带技术及应用工程研究中心 | Discovery and real-time display system and method for SDN (Software Defined Network) network topology |
-
2016
- 2016-01-22 CN CN201610045701.6A patent/CN105634962B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103346969A (en) * | 2013-07-05 | 2013-10-09 | 中国科学院计算机网络信息中心 | Method for achieving dynamic multicast spanning tree path adjustment based on OpenFlow |
EP2882162A1 (en) * | 2013-12-09 | 2015-06-10 | Huawei Technologies Co., Ltd. | Data stream security processing method and apparatus |
CN104753695A (en) * | 2013-12-25 | 2015-07-01 | 上海宽带技术及应用工程研究中心 | Discovery and real-time display system and method for SDN (Software Defined Network) network topology |
CN104579977A (en) * | 2014-12-23 | 2015-04-29 | 广东顺德中山大学卡内基梅隆大学国际联合研究院 | Bandwidth constraint multipath routing method and system for SDN controller |
CN104618246A (en) * | 2015-02-12 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Network topology discovery method for XEN virtualization environment |
Also Published As
Publication number | Publication date |
---|---|
CN105634962A (en) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106656801B (en) | Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream | |
CN104717098B (en) | A kind of data processing method and device | |
CN105162704B (en) | The method and device of multicast replication in Overlay network | |
CN103404084B (en) | MAC Address forces retransmission unit and method | |
CN107404436A (en) | Communication means and device for virtual expansible LAN | |
CN106992874A (en) | Method and the network equipment for communication | |
CN105556916B (en) | The information statistical method and device of network flow | |
CN105634962B (en) | The generation method and device of SDN network topology | |
KR20150009550A (en) | System and method for routing traffic between distinct infiniband subnets based on source routing | |
CN109391505A (en) | Network example management method and relevant device | |
CN109981471A (en) | A kind of method, apparatus and system for alleviating congestion | |
CN103475583B (en) | The method and apparatus for removing medium education forwarding-table item | |
CN107317707B (en) | SDN network topology management method based on point coverage set | |
CN106357542B (en) | The method and software defined network controller of multicast service are provided | |
CN105763457B (en) | Multicast message processing method and the network equipment | |
CN106411750B (en) | Data distributing method and system | |
CN107819602A (en) | Customer flow distribution method and system | |
Cui et al. | Scalable and load-balanced data center multicast | |
CN109617816A (en) | A kind of transmission method and device of data message | |
CN112436601B (en) | Information flow processing method of intelligent substation, computer equipment and storage medium | |
CN106850304A (en) | A kind of gateway group method and system based on SDN frameworks | |
Perepelkin et al. | Development of architecture of visual program system for distributed data processing in software defined networks | |
CN107465621A (en) | A kind of router finds method, SDN controllers, router and network system | |
CN106850268A (en) | A kind of linear protection switching realizes device and method | |
JP2015537454A (en) | Queue scheduling method, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |