CN107786407B - A method of the disconnecting of loop network link is solved using SDN technology - Google Patents
A method of the disconnecting of loop network link is solved using SDN technology Download PDFInfo
- Publication number
- CN107786407B CN107786407B CN201610747216.3A CN201610747216A CN107786407B CN 107786407 B CN107786407 B CN 107786407B CN 201610747216 A CN201610747216 A CN 201610747216A CN 107786407 B CN107786407 B CN 107786407B
- Authority
- CN
- China
- Prior art keywords
- interface
- sdn
- intelligent exchange
- data packet
- sdn intelligent
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
- H04L12/437—Ring fault isolation or reconfiguration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual switches
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of methods for solving the disconnecting of loop network link using SDN technology, system architecture includes Mininet simulated environment platform, OpenDaylight controller, REST api interface and micro loop network topology structure, and Mininet environmental level is updated by the flow table that the OpenDaylight controller overall situation controls SDN intelligent exchange in micro loop network topology structure;SDN intelligent exchange parses and executes the network flow table configured in simulated environment Mininet;REST api interface completes the configuration of network topology structure flow table by writing script.The present invention realizes that flow table updates by script edit, solves the problems, such as link disconnecting in loop network, and will not occur circuit phenomenon between link using the advantage of SDN control plane software programming.
Description
Technical field
The present invention relates to network technology, especially a kind of method for solving the disconnecting of loop network link using SDN technology.
Background technique
In the prior art, the correct update of Yao Shixian network configuration is usually highly difficult, during network updates
It is possible that forwarding circuit, packet loss and the problems such as the violating of access control rule of network.Network is caused to update difficulty
Principal element is that network is the distributed system with hundreds and thousands of a nodes, and the update of network can only be every time in a node
Upper execution.
Whether a series of updates that network is verified under network environment are correctly usually to be completed manually by network administrator
, this process is lengthy and jumbled and easy error.And most of networks need often to update configuration, reason is likely to be certain link
Unexpected interruption lead to not send data, or be also likely to be to need to modify certain forward-paths to avoiding network blockage,
Change the security strategy etc. of network.If the only simple update for realizing network configuration, what network flow was configured differently
Switch processes will generate many network problems.
Summary of the invention
In order to solve the problems, such as that configuration updates inconsistent caused forwarding circuit phenomenon and network configuration is cumbersome, the present invention is mentioned
For a kind of method for solving the disconnecting of loop network link using SDN technology.
Realize the technical solution of the object of the invention are as follows: a method of the disconnecting of loop network link is solved using SDN technology,
System architecture includes Mininet simulated environment platform, OpenDaylight controller, REST api interface and micro loop network
Topological structure, the micro loop network topology structure include the first SDN intelligent exchange, the 2nd SDN intelligent exchange, third
SDN intelligent exchange, the 4th SDN intelligent exchange, the 5th SDN intelligent exchange, the first host, the second host and third master
Machine, the first SDN intelligent exchange, the 2nd SDN intelligent exchange, the 3rd SDN intelligent exchange, the 4th SDN are intelligently exchanged
Machine, the 5th SDN intelligent exchange are sequentially connected with, and the 5th SDN intelligent exchange is connect with the first SDN intelligent exchange, and described
One host, the second host and third host respectively with the first SDN intelligent exchange, the 2nd SDN intelligent exchange, the 3rd SDN intelligence
It can interchanger connection;Mininet environmental level controls micro loop network topology knot by the OpenDaylight controller overall situation
The flow table of SDN intelligent exchange updates in structure;SDN intelligent exchange parses and executes the net configured in simulated environment Mininet
Network flow table;REST api interface completes the configuration of network topology structure flow table by writing script;Method includes the following steps:
Step 1, Mininet simulated environment platform is opened, SDN basic environment is initialized;
Step 2, operation/opt/opendaylight-snapshot/run.delayed.sh order is opened
OpenDaylight controller is pacified according to the requirement of shortest path and minimal network path cost to initial network topology structure
Fill initial flow table;
In initial flow table, when the first host sends data packet to third host, data packet stream is intelligently exchanged through the first SDN
Machine, the 2nd SDN intelligent exchange, the 3rd SDN intelligent exchange, using the third interface of the first SDN intelligent exchange as data
The incoming interface of packet, outgoing interface of the first interface as data packet, the first interface of the 2nd SDN intelligent exchange is as data packet
The first interface of incoming interface, outgoing interface of the second interface as data packet, the 3rd SDN intelligent exchange enters to connect as data packet
Mouthful, outgoing interface of the third interface as data packet;
When second host sends data packet to third host, data packet stream is through the 2nd SDN intelligent exchange, the 3rd SDN intelligence
Energy interchanger, using the third interface of the 2nd SDN intelligent exchange as the incoming interface of data packet, second interface is as data packet
Outgoing interface, incoming interface of the first interface of the 3rd SDN intelligent exchange as data packet, third interface go out to connect as data packet
Mouthful;
The first interface of the 4th SDN intelligent exchange is set to the incoming interface and outgoing interface of data packet, by the 5th SDN intelligence
The second interface of energy interchanger is set as the incoming interface and outgoing interface of data packet;
Step 3, the 2nd SDN intelligent exchange and the 3rd SDN intelligent exchange link interrupt, according to the first SDN intelligence
It can interchanger, the 2nd SDN intelligent exchange, the 3rd SDN intelligent exchange, the 4th SDN intelligent exchange, the 5th SDN intelligently friendship
The sequence changed planes configures in order;
Flow table is renamed, and the stream between the 2nd SDN intelligent exchange, the 3rd SDN intelligent exchange is deleted, is improved
The priority of flow table;
When first host sends data packet to third host, data packet stream is through the first SDN intelligent exchange, the 5th SDN intelligence
Energy interchanger, the 4th SDN intelligent exchange and the 3rd SDN intelligent exchange, the third interface of the first SDN intelligent exchange is made
For the incoming interface of data packet, outgoing interface of the second interface as data packet, the second interface of the 5th SDN intelligent exchange is as number
According to the incoming interface of packet, outgoing interface of the first interface as data packet, the second interface of the 4th SDN intelligent exchange is as data packet
Incoming interface, outgoing interface of the first interface as data packet, second interface the entering as data packet of the 3rd SDN intelligent exchange
Interface, outgoing interface of the third interface as data packet;
When second host sends data packet to third host, data packet stream is through the 2nd SDN intelligent exchange, the first SDN intelligence
Energy interchanger, the 5th SDN intelligent exchange, the 4th SDN intelligent exchange, the 3rd SDN intelligent exchange, by the 2nd SDN intelligence
Incoming interface of the third interface of interchanger as data packet, outgoing interface of the first interface as data packet, the first SDN are intelligently exchanged
Incoming interface of the first interface of machine as data packet, outgoing interface of the second interface as data packet;
Step 4, input order mininet > xterm h1 h2 h3 opens the terminal detection simulated program of each host,
Detect that there are circuits between the first SDN intelligent exchange and the 5th SDN intelligent exchange in network link;
Step 5, it updates flow table and renames, improve flow table priority, change the configuration sequence of interchanger;First it is arranged
Five SDN intelligent exchanges, using the second interface of the 5th SDN intelligent exchange as the incoming interface of data packet, first interface conduct
The outgoing interface of data packet, then the 2nd SDN intelligent exchange is set, using the third interface of the 2nd SDN intelligent exchange as data
The incoming interface of packet, outgoing interface of the first interface as data packet, the first SDN intelligent exchange is arranged in third step, with the first host
The incoming interface of the third interface of connection and the first interface of the 2nd SDN intelligent exchange connection as data packet, second interface are made
For the outgoing interface of data packet, the 4th step is arranged the 4th SDN intelligent exchange, incoming interface of the second interface as data packet, and first
Outgoing interface of the interface as data packet, is finally arranged the 3rd SDN intelligent exchange, its second interface enters to connect as data packet
Mouthful, outgoing interface of the third interface as data packet;
Step 6, the data packet label received is checked by the xterm screen display of third host, whether judges all data
It has all been successfully transmitted, has closed Mininet simulated environment platform if success, otherwise continued monitoring and send until being sent completely.
Compared with prior art, remarkable advantage of the invention are as follows: solved the invention discloses a kind of using SDN technology
The method of loop network link disconnecting realizes flow table more by script edit using the advantage of SDN control plane software programming
Newly, it solves administrator's manual configuration after disconnecting occurs in important link in specific loop network and is possible to the circuit phenomenon occurred.
Detailed description of the invention
Fig. 1 present invention solves the problems, such as the flow chart of the unexpected disconnecting of link.
Fig. 2 ring topology figure of the present invention.
Network topological diagram after Fig. 3 link disconnecting of the present invention.
Specific embodiment
SDN is a kind of new network of Emulex network innovation framework, is a kind of implementation of network virtualization, and core technology is to utilize
OpenFlow separates network equipment control plane with data surface, to realize the flexible control of network flow, makes network
Become more intelligent as pipeline.
For the ease of it will be understood by those skilled in the art that the principle of the present invention and the course of work, first to being used in the present invention
Vocabulary be defined as follows and explain:
SDN:Software Defined Network, the customized network of software.
Xterm: terminal emulator, for providing multiple independent SHELL input and output.
OpenDaylight: be one using modularization, it is pluggable, flexible, based on the controller of Java opening as core
Source platform.
REST:REpresentational State Transfer, declarative state transfer refer to one group of framework about
Beam condition and principle, the application program or design for meeting these constraint conditions and principle are exactly RESTful.
Mininet: being a lightweight software defined network and test platform, it using virtualization technology make one it is single
System look like a complete network, kernel, system and personal code work can be run, can also simply be interpreted as SDN net
One of network system is based on process virtual platform, it supports the various agreements such as OpenFlow, OpenvSwith.One
The same true machine of the behavior of the host of Mininet is very similar, it can be logged on to SSH and runs random procedure.
It provides the topological structure and SDN controller function of some defaults, such as makes interchanger work in hub mode or L2
Practise mode switcher etc..
The present invention proposes that a kind of method for solving the disconnecting of loop network link using SDN technology, system architecture include
Mininet simulated environment platform, OpenDaylight controller, REST api interface and micro loop network topology structure, institute
Stating micro loop network topology structure includes the first SDN intelligent exchange s1, the 2nd SDN intelligent exchange s2, the 3rd SDN intelligence
Interchanger s3, the 4th SDN intelligent exchange s4, the 5th SDN intelligent exchange s5, the first host h1, the second host h2 and third
Host h3, the first SDN intelligent exchange s1, the 2nd SDN intelligent exchange s2, the 3rd SDN intelligent exchange s3, the 4th
SDN intelligent exchange s4, the 5th SDN intelligent exchange s5 are sequentially connected with, the 5th SDN intelligent exchange s5 and the first SDN intelligence
Interchanger s1 connection, the first host h1, the second host h2 and third host h3 respectively with the first SDN intelligent exchange s1,
2nd SDN intelligent exchange s2, the 3rd SDN intelligent exchange s3 connection;Mininet environmental level is controlled by OpenDaylight
The flow table of SDN intelligent exchange updates in device overall situation control micro loop network topology structure processed;SDN intelligent exchange parses simultaneously
Execute the network flow table configured in simulated environment Mininet;REST api interface completes network topology structure by writing script
The configuration of flow table;
As shown in Figure 1, method includes the following steps:
Step 1, Mininet simulated environment platform is opened, SDN basic environment is initialized;
Step 2, operation/opt/opendaylight-snapshot/run.delayed.sh order is opened
OpenDaylight controller is pacified according to the requirement of shortest path and minimal network path cost to initial network topology structure
Fill initial flow table;
It is the weight calculation about link first in order to realize shortest path, for network, the selection in path is relied on
The weight of link, accurate weight estimation, guarantees the high efficiency that Path selection calculates;By the communication of two node any in network
Journey is approximately Markov process.By the transfer of multistep probability until probability is reachable between arbitrary node, and then acquire multistep transfer
The sum of probability, to measure the accessibility between adjacent node.The accessibility of adjacent node is higher, then the weight of its direct link is got over
Small, i.e. the weight of link is smaller, i.e., link weight and accessibility be inversely;First host h1 and the first SDN intelligence in Fig. 2
Interchanger s1, the chain of the second host h2 and the 2nd SDN intelligent exchange s2, third host h3 and the 3rd SDN intelligent exchange s3
Right of way is both configured to 1 again, the first SDN intelligent exchange s1 and the 2nd SDN intelligent exchange s2, the 5th SDN intelligent exchange s5
Connected link weight is set as 2, and the 3rd SDN intelligent exchange s3 and the 2nd SDN intelligent exchange s2, the 4th SDN are intelligently handed over
The s4 that changes planes connected link weight is set as 2, will be between the 4th SDN intelligent exchange s4 and the 5th SDN intelligent exchange s5
Link weight is set as 5;Link disconnecting in Fig. 3 between the 2nd SDN intelligent exchange s2 and the 3rd SDN intelligent exchange s3,
The weight of each link does not change;
In initial flow table, when the first host h1 sends data packet to third host h3, data packet stream is through the first SDN intelligence
Interchanger s1, the 2nd SDN intelligent exchange s2, the 3rd SDN intelligent exchange s3, by the third of the first SDN intelligent exchange s1
Incoming interface of the interface as data packet, outgoing interface of the first interface as data packet, the first of the 2nd SDN intelligent exchange s2 connect
Incoming interface of the mouth as data packet, outgoing interface of the second interface as data packet, the first interface of the 3rd SDN intelligent exchange s3
As the incoming interface of data packet, outgoing interface of the third interface as data packet;
When second host h2 sends data packet to third host h3, data packet stream is through the 2nd SDN intelligent exchange s2, third
SDN intelligent exchange s3, using the third interface of the 2nd SDN intelligent exchange s2 as the incoming interface of data packet, second interface is made
For the outgoing interface of data packet, incoming interface of the first interface of the 3rd SDN intelligent exchange s3 as data packet, third interface conduct
The outgoing interface of data packet;
The first interface of the 4th SDN intelligent exchange s4 is set to the incoming interface and outgoing interface of data packet, by the 5th SDN
The second interface of intelligent exchange s5 is set as the incoming interface and outgoing interface of data packet;
Step 3, the 2nd SDN intelligent exchange s2 and the 3rd SDN intelligent exchange s3 link interrupt, according to first
SDN intelligent exchange s1, the 2nd SDN intelligent exchange s2, the 3rd SDN intelligent exchange s3, the 4th SDN intelligent exchange s4,
The sequence of 5th SDN intelligent exchange s5 configures in order;
Flow table is renamed, and the stream between the 2nd SDN intelligent exchange s2, the 3rd SDN intelligent exchange s3 is deleted,
Improve the priority of flow table;
When first host h1 sends data packet to third host h3, data packet stream is through the first SDN intelligent exchange s1, the 5th
SDN intelligent exchange s5, the 4th SDN intelligent exchange s4 and the 3rd SDN intelligent exchange s3, by the first SDN intelligent exchange
Incoming interface of the third interface of s1 as data packet, outgoing interface of the second interface as data packet, the 5th SDN intelligent exchange s5
Incoming interface of the second interface as data packet, outgoing interface of the first interface as data packet, the 4th SDN intelligent exchange s4's
Incoming interface of the second interface as data packet, outgoing interface of the first interface as data packet, the of the 3rd SDN intelligent exchange s3
Incoming interface of two interfaces as data packet, outgoing interface of the third interface as data packet;
When second host h2 sends data packet to third host h3, data packet stream is through the 2nd SDN intelligent exchange s2, first
SDN intelligent exchange s1, the 5th SDN intelligent exchange s5, the 4th SDN intelligent exchange s4, the 3rd SDN intelligent exchange s3,
Using the third interface of the 2nd SDN intelligent exchange s2 as the incoming interface of data packet, outgoing interface of the first interface as data packet,
Incoming interface of the first interface of first SDN intelligent exchange s1 as data packet, outgoing interface of the second interface as data packet;
Step 4, input order mininet > xterm h1 h2 h3 opens the terminal detection simulated program of each host,
Detect that there are circuits between the first SDN intelligent exchange s1 and the 5th SDN intelligent exchange s5 in network link;
Step 5, it updates flow table and renames, improve flow table priority, change the configuration sequence of interchanger;First it is arranged
Five SDN intelligent exchange s5, using the second interface of the 5th SDN intelligent exchange s5 as the incoming interface of data packet, first interface
As the outgoing interface of data packet, then the 2nd SDN intelligent exchange s2 is set, by the third interface of the 2nd SDN intelligent exchange s2
As the incoming interface of data packet, outgoing interface of the first interface as data packet, the first SDN intelligent exchange s1 is arranged in third step,
Enter to connect as data packet with the first interface of the first host h1 third interface connecting and the 2nd SDN intelligent exchange s2 connection
Mouthful, the 4th SDN intelligent exchange s4 is arranged in outgoing interface of the second interface as data packet, the 4th step, and second interface is as data
The 3rd SDN intelligent exchange s3 is finally arranged in the incoming interface of packet, outgoing interface of the first interface as data packet, its second connects
Incoming interface of the mouth as data packet, outgoing interface of the third interface as data packet;
Step 6, the data packet label received is checked by the xterm screen display of third host h3, judges that all data are
It is no to be all successfully transmitted, Mininet simulated environment platform is closed if success, otherwise continues monitoring and sends until having sent
At.
The present invention is further explained in the light of specific embodiments.
Embodiment
A method of specific loop network, which is solved, using SDN technology circuit phenomenon occurs, the system architecture for including are as follows:
Mininet simulated environment platform, REST api interface, OpenDaylight controller, micro loop network topology structure.
The stream of interchanger in specific loop network is controlled using the OpenDaylight controller overall situation in Mininet environment
Table updates.
SDN intelligent exchange can parse and execute the network flow table configured in simulated environment Mininet.
REST api interface can complete the configuration of network topology structure flow table by writing script.
Micro loop network topology structure includes 5 SDN intelligent exchanges and three hosts.
As shown in Fig. 2, as follows to the progress of initial flow table to meet shortest path and the smallest network path expense needs
Configuration:
1) first will originally existing stream was all deleted in a network, in order to avoid had an impact to result;
2) stream for being sent to third host h3 from the first host h1 is configured as follows, the unified flow priority that is arranged is
10000, inflow entrance when flowing through the first SDN intelligent exchange s1 is third interface, exports as first interface, flows through the 2nd SDN
Inflow entrance when intelligent exchange s2 is first interface, is exported as second interface;
3) as follows to the stream configuration for being sent to third host h3 from the second host h2: priority setting is also 10000, is flowed through
Inflow entrance when the 2nd SDN intelligent exchange s2 is third interface, is exported as second interface;
4) the stream setting of the 3rd SDN intelligent exchange s3 to third host h3 is then relatively easy, and the 3rd SDN is intelligently handed at this time
Change planes s3 inflow entrance be first interface, export as third interface;
5) it since shortest path to be met reaches receiving node and uses the smallest network path expense, needs to be arranged the 4th
SDN intelligent exchange s4, the inflow entrance of the 5th SDN intelligent exchange s5 and outflux are identical interface;
The script 1 configured by REST api interface are as follows:
#Remove previous flows if there are any:
Curl http://localhost:8080/wm/staticflowentrypusher/clear/all/json
#First,set up the flows from h1to h3:
curl d
'{"switch":"00:00:00:00:00:00:00:01","name":"init1",
"priority":"10000","ingressport":"3","ethertype":"2048","active":"
true",
" actions ": " output=1 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
curl d
'{"switch":"00:00:00:00:00:00:00:02","name":"init2",
"priority":"10000","ingressport":"1","ethertype":"2048","active":"
true",
" actions ": " output=2 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Second,set up the flows fromh2to h3:
curl d
'{"switch":"00:00:00:00:00:00:00:02","name":"init3",
"priority":"10000","ingressport":"3","ethertype":"2048","active":"
true",
" actions ": " output=2 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Third,set up the flow from s3to h3:
curl d
'{"switch":"00:00:00:00:00:00:00:03","name":"init4",
"priority":"10000","ingressport":"1","ethertype":"2048","active":"
true",
" actions ": " output=3 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Finally,the flows for s4and s5according to the shortest path
requirement
curl d
'{"switch":"00:00:00:00:00:00:00:04","name":"init5",
"priority":"10000","ingressport":"1","ethertype":"2048","active":"
true",
" actions ": " output=1 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
curl d
'{"switch":"00:00:00:00:00:00:00:05","name":"init6",
"priority":"10000","ingressport":"2","ethertype":"2048","active":"
true",
" actions ": " output=2 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
If disconnecting occurs suddenly in the link between interchanger s2-s3, opened up as shown in figure 3, network open circuit causes network
Flutter Structural Transformation, comparison does not have a SDN technology, when network administrator's manual configuration the situation inconsistent due to taking effect rules, we
According to interchanger sequence i.e. the first SDN intelligent exchange s1, the 2nd SDN intelligent exchange s2, the 3rd SDN intelligent exchange s3,
4th SDN intelligent exchange s4, the 5th SDN intelligent exchange s5 are successively configured:
1) due to being broken between link the 2nd SDN intelligent exchange S2 and the 2nd SDN intelligent exchange S3, it would be desirable to
Stream entry between 2nd SDN intelligent exchange s2 and the 3rd SDN intelligent exchange s3 is deleted;
2) in order to distinguish initial flow table, it is entitled that we have renamed flow tableIt is influenced for the flow table before preventing,
Flow table improves priority to 20000;
3) it is third interface, the second host that the first host h1, which sends data to the inflow entrance of the first SDN intelligent exchange s1,
The inflow entrance of h2 to the first SDN intelligent exchange s1 is first interface, and second interface at this time is forwarding outlet;
4) it sets gradually and flows through the 2nd SDN intelligent exchange s2, the 3rd SDN intelligent exchange s3, the 4th SDN intelligently exchange
The inflow entrance and outflux of machine s4;
5) setting flows through the state of the 5th SDN intelligent exchange s5, and inflow entrance is second interface, and outflux connects for first
Mouthful.
The script 2 being arranged in order by REST api interface are as follows:
#We don't want to remove,we want to update;hence the higher priority.
#Remove previous flows if there are any:
#curl http://localhost:8080/wm/staticflowentrypusher/clear/all/json
#Simulate link breakdown;remove flow from s2to s3:
curlhttp://localhost:8080/wm/staticflowentrypusher/clear/3/json
#First,set up the flows for s1:
curl d
'{"switch":"00:00:00:00:00:00:00:01","name":"naive1",
"priority":"20000","ingressport":"3","ethertype":"2048","active":"
true",
" actions ": " output=2 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
curl d
'{"switch":"00:00:00:00:00:00:00:01","name":"naive2",
"priority":"20000","ingressport":"1","ethertype":"2048","active":"
true",
" actions ": " output=2 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Second,set up the flows for s2:
curl d
'{"switch":"00:00:00:00:00:00:00:02","name":"naive3",
"priority":"20000","ingressport":"3","ethertype":"2048","active":"
true",
" actions ": " output=1 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Third,set up the flows for s3:
curl d
'{"switch":"00:00:00:00:00:00:00:03","name":"naive4",
"priority":"20000","ingressport":"2","ethertype":"2048","active":"
true",
" actions ": " output=3 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Fourth,set up the flows for s4:
curl d
'{"switch":"00:00:00:00:00:00:00:04","name":"naive5",
"priority":"20000","ingressport":"2","ethertype":"2048","active":"
true",
" actions ": " output=1 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Finally,set up the flows for s5
curl d
'{"switch":"00:00:00:00:00:00:00:05","name":"naive6",
"priority":"20000","ingressport":"2","ethertype":"2048","active":"
true",
" actions ": " output=1 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
Due to installing the delay of flow table, the first SDN intelligent exchange s1 and the 5th SDN intelligent exchange s5 in a switch
Between can generate circuit and continue very short a period of time, circuit phenomenon just returns disappearance after the new flow table rule of application.
It solves because network topology structure caused by network open circuit reconfigures cumbersome method are as follows:
It 1) there is still a need for what is done is first number between the 2nd SDN intelligent exchange s2 and the 3rd SDN intelligent exchange s3
It is deleted according to stream, and the data packet being sent on this paths is re-directed;
2) it in order to evade the appearance in circuit, first has to be configured the stream for flowing through the 5th SDN intelligent exchange s5 here,
The priority modified the entitled better of flow table, and improve stream is 32768;
3) next we need to configure the stream for flowing through the 2nd SDN intelligent exchange s2, and data packet is redirected and flows through the
One SDN intelligent exchange s1, inflow entrance at this moment is third interface, and outflux is first interface;
4) next successively intelligent to the first SDN intelligent exchange s1, the 4th SDN intelligent exchange s4, the 3rd SDN is flowed through
The stream of interchanger s3 is configured, remaining configuration is not required to be altered again;
Utilize the scripted code 3 of SDN technology innovation network configuration are as follows:
#We don't want to remove,we want to update;hence the higher priority.
#Remove previous flows if there are any:
curl http://localhost:8080/wm/staticflowentrypusher/clear/all/json
#Simulate link breakdown;remove flow from s2to s3:
curl http://localhost:8080/wm/staticflowentrypusher/clear/3/json
#We'll work in the packet flow direction.
#First,set up the flows for s5:
curl d
'{"switch":"00:00:00:00:00:00:00:05","name":"better1",
"priority":"32768","ingressport":"2","ethertype":"2048","active":"
true",
" actions ": " output=1 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Second,set up the flows for s2:
curl d
'{"switch":"00:00:00:00:00:00:00:02","name":"better2",
"priority":"32768","ingressport":"3","ethertype":"2048","active":"
true",
" actions ": " output=1 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Third,set up the flows for s1:
curl d
'{"switch":"00:00:00:00:00:00:00:01","name":"better3",
"priority":"32768","ingressport":"3","ethertype":"2048","active":"
true",
" actions ": " output=2 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
curl d
'{"switch":"00:00:00:00:00:00:00:01","name":"better4",
"priority":"32768","ingressport":"1","ethertype":"2048","active":"
true",
" actions ": " output=2 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Fourth,set up the flows for s4:
curl d
'{"switch":"00:00:00:00:00:00:00:04","name":"better5",
"priority":"32768","ingressport":"2","ethertype":"2048","active":"
true",
" actions ": " output=1 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
#Finally,set up the flows for s3:
curl d
'{"switch":"00:00:00:00:00:00:00:03","name":"better6",
"priority":"32768","ingressport":"2","ethertype":"2048","active":"
true",
" actions ": " output=3 " } ' http://localhost:8080/wm/
staticflowentrypusher/json
The present invention realizes that flow table updates by script edit, solves spy using the advantage of SDN control plane software programming
Administrator's manual configuration is possible to the circuit phenomenon occurred after disconnecting occurs in important link in annular network.
Claims (1)
1. a kind of method for solving the disconnecting of loop network link using SDN technology, which is characterized in that system architecture includes
Mininet simulated environment platform, OpenDaylight controller, REST api interface and micro loop network topology structure, institute
Stating micro loop network topology structure includes the first SDN intelligent exchange (s1), the 2nd SDN intelligent exchange (s2), the 3rd SDN
Intelligent exchange (s3), the 4th SDN intelligent exchange (s4), the 5th SDN intelligent exchange (s5), the first host (h1), second
Host (h2) and third host (h3), the first SDN intelligent exchange (s1), the 2nd SDN intelligent exchange (s2), third
SDN intelligent exchange (s3), the 4th SDN intelligent exchange (s4), the 5th SDN intelligent exchange (s5) are sequentially connected with, the 5th SDN
Intelligent exchange (s5) is connect with the first SDN intelligent exchange (s1), first host (h1), the second host (h2) and third
Host (h3) respectively with the first SDN intelligent exchange (s1), the 2nd SDN intelligent exchange (s2), the 3rd SDN intelligent exchange
(s3) it connects;Mininet environmental level is controlled in micro loop network topology structure by the OpenDaylight controller overall situation
The flow table of SDN intelligent exchange updates;SDN intelligent exchange parses and executes the network flow configured in simulated environment Mininet
Table;REST api interface completes the configuration of network topology structure flow table by writing script;Method includes the following steps:
Step 1, Mininet simulated environment platform is opened, SDN basic environment is initialized;
Step 2, OpenDaylight control is opened in operation/opt/opendaylight-snapshot/run.delayed.sh order
Device processed installs initial flow table to initial network topology structure according to the requirement of shortest path and minimal network path cost;
In initial flow table, when the first host (h1) sends data packet to third host (h3), data packet stream is through the first SDN intelligence
Interchanger (s1), the 2nd SDN intelligent exchange (s2), the 3rd SDN intelligent exchange (s3), by the first SDN intelligent exchange
(s1) incoming interface of the third interface as data packet, outgoing interface of the first interface as data packet, the 2nd SDN intelligent exchange
(s2) incoming interface of the first interface as data packet, outgoing interface of the second interface as data packet, the 3rd SDN intelligent exchange
(s3) incoming interface of the first interface as data packet, outgoing interface of the third interface as data packet;
When second host (h2) sends data packet to third host (h3), data packet stream is through the 2nd SDN intelligent exchange (s2), the
Three SDN intelligent exchanges (s3), using the third interface of the 2nd SDN intelligent exchange (s2) as the incoming interface of data packet, second
Outgoing interface of the interface as data packet, incoming interface of the first interface of the 3rd SDN intelligent exchange (s3) as data packet, third
Outgoing interface of the interface as data packet;
The first interface of the 4th SDN intelligent exchange (s4) is set to the incoming interface and outgoing interface of data packet, by the 5th SDN intelligence
The second interface of energy interchanger (s5) is set as the incoming interface and outgoing interface of data packet;
Step 3, the 2nd SDN intelligent exchange (s2) and the 3rd SDN intelligent exchange (s3) link interrupt, according to first
SDN intelligent exchange (s1), the 2nd SDN intelligent exchange (s2), the 3rd SDN intelligent exchange (s3), the 4th SDN are intelligently exchanged
Machine (s4), the 5th SDN intelligent exchange (s5) sequence configure in order;
Flow table is renamed, and the stream between the 2nd SDN intelligent exchange (s2), the 3rd SDN intelligent exchange (s3) is deleted,
Improve the priority of flow table;
When first host (h1) sends data packet to third host (h3), data packet stream is through the first SDN intelligent exchange (s1), the
Five SDN intelligent exchanges (s5), the 4th SDN intelligent exchange (s4) and the 3rd SDN intelligent exchange (s3), by the first SDN intelligence
Incoming interface of the third interface of energy interchanger (s1) as data packet, outgoing interface of the second interface as data packet, the 5th SDN intelligence
Incoming interface of the second interface of energy interchanger (s5) as data packet, outgoing interface of the first interface as data packet, the 4th SDN intelligence
Incoming interface of the second interface of energy interchanger (s4) as data packet, outgoing interface of the first interface as data packet, the 3rd SDN intelligence
Incoming interface of the second interface of energy interchanger (s3) as data packet, outgoing interface of the third interface as data packet;
When second host (h2) sends data packet to third host (h3), data packet stream is through the 2nd SDN intelligent exchange (s2), the
One SDN intelligent exchange (s1), the 5th SDN intelligent exchange (s5), the 4th SDN intelligent exchange (s4), the 3rd SDN are intelligently handed over
Change planes (s3), and using the third interface of the 2nd SDN intelligent exchange (s2) as the incoming interface of data packet, first interface is as data
The outgoing interface of packet, incoming interface of the first interface of the first SDN intelligent exchange (s1) as data packet, second interface is as data
The outgoing interface of packet;
Step 4, input order mininet > xterm h1 h2 h3 opens the terminal detection simulated program of each host, detection
Into network link, there are circuits between the first SDN intelligent exchange (s1) and the 5th SDN intelligent exchange (s5);
Step 5, it updates flow table and renames, improve flow table priority, change the configuration sequence of interchanger;First it is arranged the 5th
SDN intelligent exchange (s5) connects the second interface of the 5th SDN intelligent exchange (s5) as the incoming interface of data packet, first
Outgoing interface mouthful as data packet, then the 2nd SDN intelligent exchange (s2) is set, by the of the 2nd SDN intelligent exchange (s2)
Incoming interface of three interfaces as data packet, outgoing interface of the first interface as data packet, third step are arranged the first SDN and intelligently exchange
Machine (s1), the first interface conduct of the third interface being connect with the first host (h1) and the connection of the 2nd SDN intelligent exchange (s2)
The 4th SDN intelligent exchange (s4) is arranged in the incoming interface of data packet, outgoing interface of the second interface as data packet, the 4th step, the
The 3rd SDN intelligent exchange is finally arranged in incoming interface of two interfaces as data packet, outgoing interface of the first interface as data packet
(s3), incoming interface of its second interface as data packet, outgoing interface of the third interface as data packet;
Step 6, the data packet label received is checked by the xterm screen display of third host (h3), whether judges all data
It has all been successfully transmitted, has closed Mininet simulated environment platform if success, otherwise continued monitoring and send until being sent completely.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610747216.3A CN107786407B (en) | 2016-08-27 | 2016-08-27 | A method of the disconnecting of loop network link is solved using SDN technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610747216.3A CN107786407B (en) | 2016-08-27 | 2016-08-27 | A method of the disconnecting of loop network link is solved using SDN technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107786407A CN107786407A (en) | 2018-03-09 |
CN107786407B true CN107786407B (en) | 2019-11-15 |
Family
ID=61441024
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610747216.3A Expired - Fee Related CN107786407B (en) | 2016-08-27 | 2016-08-27 | A method of the disconnecting of loop network link is solved using SDN technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107786407B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104767685A (en) * | 2015-04-17 | 2015-07-08 | 杭州华三通信技术有限公司 | Flow forwarding method and device |
CN104811384A (en) * | 2015-05-04 | 2015-07-29 | 山东超越数控电子有限公司 | Multilevel stream table priority adjustment method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105871674B (en) * | 2015-01-23 | 2019-10-22 | 华为技术有限公司 | The guard method of ring protection link failure, equipment and system |
-
2016
- 2016-08-27 CN CN201610747216.3A patent/CN107786407B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104767685A (en) * | 2015-04-17 | 2015-07-08 | 杭州华三通信技术有限公司 | Flow forwarding method and device |
CN104811384A (en) * | 2015-05-04 | 2015-07-29 | 山东超越数控电子有限公司 | Multilevel stream table priority adjustment method |
Also Published As
Publication number | Publication date |
---|---|
CN107786407A (en) | 2018-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106357537B (en) | A kind of link monitoring method based on SDN multi-path transmission | |
US11212179B2 (en) | Automatic configuration of a network switch in a multi-chassis link aggregation group | |
Keti et al. | Emulation of software defined networks using mininet in different simulation environments | |
Stancu et al. | A comparison between several software defined networking controllers | |
EP2544409B1 (en) | Generic monitoring packet handling mechanism for OpenFlow 1.1 | |
Ejaz et al. | Traffic load balancing using software defined networking (SDN) controller as virtualized network function | |
US9413645B1 (en) | Methods and apparatus for accessing route information in a distributed switch | |
CN106850616A (en) | The method that distributed fire wall network consistent updates are solved using SDN technologies | |
CN108234187B (en) | High-fidelity link simulation method for data message forwarding | |
Marschke et al. | Software Defined Networking (SDN): Anatomy of OpenFlow Volume I | |
CN106254178B (en) | network test platform NFVNTP based on NFV and test method thereof | |
CN109587010A (en) | A kind of method for detecting connectivity, stream forwarding device and network controller | |
Coker et al. | Software-defined Networking with OpenFlow: Deliver Innovative Business Solutions | |
CN107786407B (en) | A method of the disconnecting of loop network link is solved using SDN technology | |
CN105376197B (en) | The method and system of implementation level network abstraction | |
JP5750175B1 (en) | Network simulator and network simulation method | |
CN107566238A (en) | A kind of method of User space configuration physical interface automatic identification vlan frames and non-vlan frames | |
JP2015233283A (en) | Interconnection network simulator and method for simulating interconnection network | |
Ramadona et al. | The simulation of SDN network using POX controller: Case in Politeknik Caltex Riau | |
CN110086676A (en) | A kind of configuration method and relevant device of distribution router | |
Altangerel et al. | Performance analysis of sdn controllers: Pox, floodlight and opendaylight | |
CN107563075A (en) | A kind of module and its design method for realizing CosiMate networks and the DDS network interconnections | |
CN113347023A (en) | Network simulator and dynamic switching method thereof | |
Poncea et al. | Design and implementation of an Openflow SDN controller in NS-3 discrete-event network simulator | |
Benavices et al. | Networking Control Education by the use of Software Defined Networking Tools and Techniques |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191115 Termination date: 20210827 |