CN107786407A - It is a kind of to solve the method for loop network link disconnecting using SDN technologies - Google Patents

It is a kind of to solve the method for loop network link disconnecting using SDN technologies Download PDF

Info

Publication number
CN107786407A
CN107786407A CN201610747216.3A CN201610747216A CN107786407A CN 107786407 A CN107786407 A CN 107786407A CN 201610747216 A CN201610747216 A CN 201610747216A CN 107786407 A CN107786407 A CN 107786407A
Authority
CN
China
Prior art keywords
interface
sdn
packet
intelligent exchanges
exchanges
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.)
Granted
Application number
CN201610747216.3A
Other languages
Chinese (zh)
Other versions
CN107786407B (en
Inventor
王雷
王亮
游培寒
胡瑜
张成震
王津言
虞伟民
傅蕾
陈立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Science and Technology
Original Assignee
Nanjing University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University of Science and Technology filed Critical Nanjing University of Science and Technology
Priority to CN201610747216.3A priority Critical patent/CN107786407B/en
Publication of CN107786407A publication Critical patent/CN107786407A/en
Application granted granted Critical
Publication of CN107786407B publication Critical patent/CN107786407B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

Landscapes

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

Abstract

Solves the method for loop network link disconnecting using SDN technologies the invention discloses a kind of, system architecture includes Mininet simulated environments platform, OpenDaylight controllers, REST api interfaces and micro loop network topology structure, and Mininet environmental levels are updated by the flow table of SDN intelligent exchanges in the global control micro loop network topology structure of OpenDaylight controllers;SDN intelligent exchanges parse and performed the network flow table configured in simulated environment Mininet;REST api interfaces complete the configuration of network topology structure flow table by writing script.The present invention utilizes the advantage of SDN control plane software programmings, realizes that flow table updates by script edit, solves the problems, such as loop network link disconnecting, and will not occur loop phenomenon between link.

Description

It is a kind of to solve the method for loop network link disconnecting using SDN technologies
Technical field
It is particularly a kind of to solve the method for loop network link disconnecting using SDN technologies the present invention relates to network technology.
Background technology
In the prior art, the correct renewal that realize network configuration is typically highly difficult, during network updates It is possible that forwarding loop, packet loss and the problems such as the running counter to of access control rule of network.Cause network renewal difficulty Principal element is that network is the distributed system for having hundreds and thousands of individual nodes, and the renewal of network can only be every time in a node Upper execution.
Verify whether a series of renewals of network are correctly completed manually typically by network manager under network environment , this process is lengthy and jumbled and easily malfunctions.And most of networks need often renewal configuration, reason is likely to be certain link Unexpected interruption lead to not send data, or be also likely to be to need to change some forward-paths so as to avoid network blockage, Change security strategy of network etc..If simply simply realizing the renewal of network configuration, what network traffics were configured differently Switch processes, many network problems will be produced.
The content of the invention
In order to solve the problems, such as to forward caused by config update is inconsistent, loop phenomenon and network configuration are cumbersome, and the present invention carries Solves the method for loop network link disconnecting using SDN technologies for a kind of.
The technical scheme for realizing the object of the invention is:It is a kind of to solve the method for loop network link disconnecting using SDN technologies, System architecture includes Mininet simulated environments platform, OpenDaylight controllers, REST api interfaces and micro loop network Topological structure, the micro loop network topology structure include the first SDN intelligent exchanges, the 2nd SDN intelligent exchanges, the 3rd SDN intelligent exchanges, the 4th SDN intelligent exchanges, the 5th SDN intelligent exchanges, the first main frame, the second main frame and the 3rd master Machine, the first SDN intelligent exchanges, the 2nd SDN intelligent exchanges, the 3rd SDN intelligent exchanges, the 4th SDN are intelligently exchanged Machine, the 5th SDN intelligent exchanges are sequentially connected with, and the 5th SDN intelligent exchanges are connected with the first SDN intelligent exchanges, and described One main frame, the second main frame and the 3rd main frame respectively with the first SDN intelligent exchanges, the 2nd SDN intelligent exchanges, the 3rd SDN intelligence Can interchanger connection;Mininet environmental levels pass through the global control micro loop network topology knot of OpenDaylight controllers The flow table renewal of SDN intelligent exchanges in structure;SDN intelligent exchanges parse and performed the net configured in simulated environment Mininet Network flow table;REST api interfaces complete the configuration of network topology structure flow table by writing script;This method comprises the following steps:
Step 1, Mininet simulated environment platforms are opened, initialize SDN basic environments;
Step 2, operation/opt/opendaylight-snapshot/run.delayed.sh orders are opened OpenDaylight controllers, according to the requirement of shortest path and minimal network path cost, pacify to initial network topology structure Fill initial flow table;
In initial flow table, when the first main frame sends packet to three main frame, data packet stream intelligently exchanges through the first SDN Machine, the 2nd SDN intelligent exchanges, the 3rd SDN intelligent exchanges, using the 3rd interface of the first SDN intelligent exchanges as data The incoming interface of bag, outgoing interface of the first interface as packet, the first interface of the 2nd SDN intelligent exchanges is as packet Incoming interface, outgoing interface of the second interface as packet, the first interface of the 3rd SDN intelligent exchanges enter to connect as packet Mouthful, outgoing interface of the 3rd interface as packet;
When second main frame sends packet to three main frame, data packet stream is through the 2nd SDN intelligent exchanges, the 3rd SDN intelligence Energy interchanger, the incoming interface using the 3rd interface of the 2nd SDN intelligent exchanges as packet, second interface is as packet Outgoing interface, the incoming interface of the first interfaces of the 3rd SDN intelligent exchanges as packet, the 3rd interface go out to connect as packet Mouthful;
The first interface of 4th SDN intelligent exchanges is arranged to the incoming interface and outgoing interface of packet, by the 5th SDN intelligence The second interface of energy interchanger is arranged to the incoming interface and outgoing interface of packet;
Step 3, the 2nd SDN intelligent exchanges and the 3rd SDN intelligent exchange links interrupt, according to the first SDN intelligence Can interchanger, the 2nd SDN intelligent exchanges, the 3rd SDN intelligent exchanges, the 4th SDN intelligent exchanges, the 5th SDN intelligently friendship The order changed planes configures successively;
Flow table is renamed, and the stream between the 2nd SDN intelligent exchanges, the 3rd SDN intelligent exchanges is deleted, is improved The priority of flow table;
When first main frame sends packet to three main frame, data packet stream is through the first SDN intelligent exchanges, the 5th SDN intelligence Energy interchanger, the 4th SDN intelligent exchanges and the 3rd SDN intelligent exchanges, the 3rd interface of the first SDN intelligent exchanges is made For the incoming interface of packet, outgoing interface of the second interface as packet, the second interface of the 5th SDN intelligent exchanges is as number According to the incoming interface of bag, outgoing interface of the first interface as packet, the second interface of the 4th SDN intelligent exchanges is as packet Incoming interface, outgoing interface of the first interface as packet, second interface the entering as packet of the 3rd SDN intelligent exchanges Interface, outgoing interface of the 3rd interface as packet;
When second main frame sends packet to three main frame, data packet stream is through the 2nd SDN intelligent exchanges, the first SDN intelligence Energy interchanger, the 5th SDN intelligent exchanges, the 4th SDN intelligent exchanges, the 3rd SDN intelligent exchanges, by the 2nd SDN intelligence Incoming interface of 3rd interface of interchanger as packet, outgoing interface of the first interface as packet, the first SDN are intelligently exchanged Incoming interface of the first interface of machine as packet, outgoing interface of the second interface as packet;
Step 4, input order mininet>Xterm h1 h2 h3, the terminal detection simulation program of each main frame is opened, Detect in network link loop be present between the first SDN intelligent exchanges and the 5th SDN intelligent exchanges;
Step 5, update flow table and rename, improve flow table priority, change the configuration sequence of interchanger;First set Five SDN intelligent exchanges, the incoming interface using the second interface of the 5th SDN intelligent exchanges as packet, first interface conduct The outgoing interface of packet, then the 2nd SDN intelligent exchanges are set, using the 3rd interface of the 2nd SDN intelligent exchanges as data The incoming interface of bag, outgoing interface of the first interface as packet, the 3rd step sets the first SDN intelligent exchanges, with the first main frame The incoming interface of 3rd interface of connection and the first interface of the 2nd SDN intelligent exchanges connection as packet, second interface are made For the outgoing interface of packet, the 4th step sets the 4th SDN intelligent exchanges, incoming interface of the second interface as packet, and first Outgoing interface of the interface as packet, finally sets the 3rd SDN intelligent exchanges, and its second interface enters to connect as packet Mouthful, outgoing interface of the 3rd interface as packet;
Step 6, the packet label received is checked by the xterm screen displays of the 3rd main frame, whether judges all data All it has been successfully transmitted, Mininet simulated environment platforms is closed if success, otherwise has continued monitoring and send until being sent completely.
Compared with prior art, remarkable advantage of the invention is:Solved the invention discloses a kind of using SDN technologies The method of loop network link disconnecting, using the advantage of SDN control plane software programmings, realize flow table more by script edit Newly, solve important link in specific loop network and the loop phenomenon that keeper's manual configuration after disconnecting is possible to occur occur.
Brief description of the drawings
Fig. 1 present invention solves the problems, such as the flow chart of the unexpected disconnecting of link.
Fig. 2 ring topology figures of the present invention.
Network topological diagram after Fig. 3 link disconnectings of the present invention.
Embodiment
SDN is a kind of new network of Emulex network innovation framework, is a kind of implementation of network virtualization, and its core technology is to utilize OpenFlow separates network equipment chain of command with data surface, it is achieved thereby that the flexible control of network traffics, makes network Become more intelligent as pipeline.
For the ease of it will be understood by those skilled in the art that the present invention principle 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 self-defined networking of software.
Xterm:Terminal emulator, for providing multiple independent SHELL input and output.
OpenDaylight:Be one using modularization, it is pluggable, flexible, based on Java controller 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 constraintss and principle are exactly RESTful.
Mininet: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, also can simply be interpreted as SDN nets One kind in network system is based on process virtual platform, and it supports the various agreements such as OpenFlow, OpenvSwith.One The same real machine of behavior of Mininet main frame is very similar, and it can be signed in SSH and runs random procedure. It provides the topological structure and SDN controller functions of some acquiescences, interchanger is operated in hub pattern or L2 Practise mode switcher etc..
The present invention proposes a kind of method using the solution loop network link disconnecting of SDN technologies, and system architecture includes Mininet simulated environments platform, OpenDaylight controllers, REST api interfaces and micro loop network topology structure, institute Stating micro loop network topology structure includes the first SDN intelligent exchanges s1, the 2nd SDN intelligent exchanges s2, the 3rd SDN intelligence Interchanger s3, the 4th SDN intelligent exchanges s4, the 5th SDN intelligent exchanges s5, the first main frame h1, the second main frame h2 and the 3rd Main frame h3, the first SDN intelligent exchanges s1, the 2nd SDN intelligent exchanges s2, the 3rd SDN intelligent exchanges s3, the 4th SDN intelligent exchanges s4, the 5th SDN intelligent exchanges s5 are sequentially connected with, the 5th SDN intelligent exchanges s5 and the first SDN intelligence Interchanger s1 connections, the first main frame h1, the second main frame h2 and the 3rd main frame h3 respectively with the first SDN intelligent exchanges s1, 2nd SDN intelligent exchanges s2, the 3rd SDN intelligent exchanges s3 connections;Mininet environmental levels are controlled by OpenDaylight The flow table renewal of SDN intelligent exchanges in the global control micro loop network topology structure of device processed;SDN intelligent exchanges parse simultaneously Perform the network flow table configured in simulated environment Mininet;REST api interfaces complete network topology structure by writing script The configuration of flow table;
As shown in figure 1, this method comprises the following steps:
Step 1, Mininet simulated environment platforms are opened, initialize SDN basic environments;
Step 2, operation/opt/opendaylight-snapshot/run.delayed.sh orders are opened OpenDaylight controllers, according to the requirement of shortest path and minimal network path cost, pacify to initial network topology structure Fill initial flow table;
It is the weight calculation on link first in order to realize shortest path, for network, the selection in path relies on The weight of link, accurate weight estimation, ensures the high efficiency that Path selection calculates;By the communication of any two node in network Journey is approximately Markov process.By the transfer of multistep probability until probability is reachable between arbitrary node, and then try to achieve multistep transfer Probability sum, to weigh 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 main frame h1 and the first SDN intelligence in Fig. 2 Interchanger s1, the second main frame h2 and the 2nd SDN intelligent exchange s2, the 3rd main frame h3 and the 3rd SDN intelligent exchanges s3 chain Right of way is both configured to 1 again, the first SDN intelligent exchanges s1 and the 2nd SDN intelligent exchanges s2, the 5th SDN intelligent exchanges s5 Connected link weight is arranged to 2, and the 3rd SDN intelligent exchanges s3 and the 2nd SDN intelligent exchanges s2, the 4th SDN are intelligently handed over The link weight connected s4 that changes planes is arranged to 2, by between the 4th SDN intelligent exchanges s4 and the 5th SDN intelligent exchanges s5 Link weight is arranged to 5;Link disconnecting in Fig. 3 between the 2nd SDN intelligent exchanges s2 and the 3rd SDN intelligent exchanges s3, The weight of each link does not change;
In initial flow table, when the first main frame h1 sends packet to the 3rd main frame h3, data packet stream is through the first SDN intelligence Interchanger s1, the 2nd SDN intelligent exchanges s2, the 3rd SDN intelligent exchange s3, by the 3rd of the first SDN intelligent exchanges s1 the Incoming interface of the interface as packet, outgoing interface of the first interface as packet, the first of the 2nd SDN intelligent exchanges s2 connects Incoming interface of the mouth as packet, outgoing interface of the second interface as packet, the 3rd SDN intelligent exchanges s3 first interface As the incoming interface of packet, outgoing interface of the 3rd interface as packet;
When second main frame h2 sends packet to the 3rd main frame h3, data packet stream is through the 2nd SDN intelligent exchanges s2, the 3rd SDN intelligent exchange s3, the incoming interface using the 2nd SDN intelligent exchanges s2 the 3rd interface as packet, second interface are made For the outgoing interface of packet, the incoming interface of the 3rd SDN intelligent exchanges s3 first interface as packet, the 3rd interface conduct The outgoing interface of packet;
4th SDN intelligent exchanges s4 first interface is arranged to the incoming interface and outgoing interface of packet, by the 5th SDN Intelligent exchange s5 second interface is arranged to the incoming interface and outgoing interface of packet;
Step 3, the 2nd SDN intelligent exchanges s2 and the 3rd SDN intelligent exchange s3 links interrupt, according to first SDN intelligent exchanges s1, the 2nd SDN intelligent exchanges s2, the 3rd SDN intelligent exchanges s3, the 4th SDN intelligent exchanges s4, 5th SDN intelligent exchanges s5 order configures successively;
Flow table is renamed, and the stream between the 2nd SDN intelligent exchanges s2, the 3rd SDN intelligent exchanges s3 is deleted, Improve the priority of flow table;
When first main frame h1 sends packet to the 3rd main frame h3, data packet stream is through the first SDN intelligent exchanges s1, the 5th SDN intelligent exchanges s5, the 4th SDN intelligent exchanges s4 and the 3rd SDN intelligent exchange s3, by the first SDN intelligent exchanges Incoming interface of s1 the 3rd interface as packet, outgoing interface of the second interface as packet, the 5th SDN intelligent exchanges s5 Incoming interface of the second interface as packet, outgoing interface of the first interface as packet, the 4th SDN intelligent exchanges s4's Incoming interface of the second interface as packet, outgoing interface of the first interface as packet, the of the 3rd SDN intelligent exchanges s3 Incoming interface of two interfaces as packet, outgoing interface of the 3rd interface as packet;
When second main frame h2 sends packet to the 3rd main frame h3, data packet stream is through the 2nd SDN intelligent exchanges s2, first SDN intelligent exchanges s1, the 5th SDN intelligent exchanges s5, the 4th SDN intelligent exchanges s4, the 3rd SDN intelligent exchange s3, Incoming interface using the 2nd SDN intelligent exchanges s2 the 3rd interface as packet, outgoing interface of the first interface as packet, Incoming interface of the first SDN intelligent exchanges s1 first interface as packet, outgoing interface of the second interface as packet;
Step 4, input order mininet>Xterm h1 h2 h3, the terminal detection simulation program of each main frame is opened, Detect in network link loop be present between the first SDN intelligent exchanges s1 and the 5th SDN intelligent exchanges s5;
Step 5, update flow table and rename, improve flow table priority, change the configuration sequence of interchanger;First set Five SDN intelligent exchange s5, using the 5th SDN intelligent exchanges s5 second interface as the incoming interface of packet, first interface As the outgoing interface of packet, then the 2nd SDN intelligent exchange s2 are set, by the 2nd SDN intelligent exchanges s2 the 3rd interface As the incoming interface of packet, outgoing interface of the first interface as packet, the 3rd step sets the first SDN intelligent exchange s1, Enter to connect as packet with the first interface of the first main frame h1 the 3rd interfaces being connected and the 2nd SDN intelligent exchanges s2 connections Mouthful, outgoing interface of the second interface as packet, the 4th step sets the 4th SDN intelligent exchange s4, and second interface is as data The incoming interface of bag, outgoing interface of the first interface as packet finally set the 3rd SDN intelligent exchange s3, and its second connects Incoming interface of the mouth as packet, outgoing interface of the 3rd interface as packet;
Step 6, the packet label received is checked by the 3rd main frame h3 xterm screen displays, judges that all data are It is no to be all successfully transmitted, Mininet simulated environment platforms are closed if success, otherwise continue monitoring and send until having sent Into.
With reference to specific embodiment, the invention will be further described.
Embodiment
A kind of solve specific loop network using SDN technologies and the method for loop phenomenon occur, comprising system architecture be: Mininet simulated environment platforms, REST api interfaces, OpenDaylight controllers, micro loop network topology structure.
The global stream for controlling interchanger in specific loop network of OpenDaylight controllers is used in Mininet environment Table updates.
SDN intelligent exchanges can parse and perform the network flow table configured in simulated environment Mininet.
REST api interfaces 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 main frames.
As shown in Fig. 2 to meet that the network path expense needs of shortest path and minimum are as follows to the progress of initial flow table Configuration:
1) first will originally existing stream was all deleted in a network, in order to avoid had an impact to result;
2) stream that the 3rd main frame h3 is sent to from the first main frame h1 is configured as follows, unified setting flow priority is 10000, inflow entrance when flowing through the first SDN intelligent exchange s1 is the 3rd interface, exports as first interface, flows through the 2nd SDN Inflow entrance during intelligent exchange s2 is first interface, is exported as second interface;
3) it is as follows to being sent to the 3rd main frame h3 stream configuration from the second main frame h2:It is also 10000 that priority, which is set, is flowed through Inflow entrance during the 2nd SDN intelligent exchange s2 is the 3rd interface, is exported as second interface;
4) the 3rd SDN intelligent exchanges s3 to the 3rd main frame h3 stream is set then relatively easy, and now the 3rd SDN is intelligently handed over The s3 inflow entrance of changing planes is first interface, is exported as the 3rd interface;
5) because shortest path to be met reaches receiving node and using minimum network path expense, it is necessary to set the 4th SDN intelligent exchanges s4, the 5th SDN intelligent exchanges s5 inflow entrance and flow export are identical interface;
The script 1 configured by REST api interfaces is:
#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, contrast does not have a SDN technologies, due to the inconsistent situation of taking effect rules during network manager's manual configuration, we According to interchanger order be the first SDN intelligent exchanges s1, the 2nd SDN intelligent exchanges s2, the 3rd SDN intelligent exchanges s3, 4th SDN intelligent exchanges s4, the 5th SDN intelligent exchanges s5 are configured successively:
1) due to being broken between the SDN intelligent exchanges S2 of link the 2nd and the 2nd SDN intelligent exchanges S3, it would be desirable to Stream entry between 2nd SDN intelligent exchanges s2 and the 3rd SDN intelligent exchanges s3 is deleted;
2) in order to distinguish initial flow table, it is entitled that we have renamed flow tableInfluenceed for the flow table before preventing, Flow table improves priority to 20000;
3) inflow entrance that the first main frame h1 sends data to the first SDN intelligent exchanges s1 is the 3rd interface, the second main frame H2 to the first SDN intelligent exchanges s1 inflow entrance are first interface, and second interface now exports for forwarding;
4) set gradually and flow through the 2nd SDN intelligent exchanges s2, the 3rd SDN intelligent exchanges s3, the 4th SDN intelligently exchange Machine s4 inflow entrance and flow export;
5) state for flowing through the 5th SDN intelligent exchanges s5 is set, and inflow entrance is second interface, and flow export connects for first Mouthful.
The script 2 being arranged in order by REST api interfaces is:
#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 exchanges s1 and the 5th SDN intelligent exchanges s5 in a switch Between can produce loop and continue very short a period of time, loop phenomenon just returns disappearance after the new flow table rule of application.
Solve because network topology structure caused by network open circuit reconfigures cumbersome method and is:
1) first there is still a need for what is done is the number between the 2nd SDN intelligent exchanges s2 and the 3rd SDN intelligent exchanges s3 Deleted according to stream, and the packet being sent on this paths is re-directed;
2) in order to evade the appearance in loop, first have to be configured the stream for flowing through the 5th SDN intelligent exchanges s5 here, The entitled better of flow table is changed, and the priority for improving stream is 32768;
3) next we need configuration to flow through the 2nd SDN intelligent exchanges s2 stream, and packet is redirected and flows through the One SDN intelligent exchange s1, inflow entrance at this moment is the 3rd interface, and flow export is first interface;
4) next successively to flowing through the first SDN intelligent exchanges s1, the 4th SDN intelligent exchanges s4, the 3rd SDN intelligence Interchanger s3 stream is configured, and remaining configuration is not required to be altered again;
Scripted code 3 using SDN technology innovation network configurations is:
#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 utilizes the advantage of SDN control plane software programmings, realizes that flow table updates by script edit, solves spy There is the loop phenomenon that keeper's manual configuration after disconnecting is possible to occur in important link in annular network.

Claims (1)

1. a kind of solve the method for loop network link disconnecting using SDN technologies, it is characterised in that system architecture includes Mininet simulated environments platform, OpenDaylight controllers, REST api interfaces and micro loop network topology structure, institute Stating micro loop network topology structure includes the first SDN intelligent exchanges (s1), the 2nd SDN intelligent exchanges (s2), the 3rd SDN Intelligent exchange (s3), the 4th SDN intelligent exchanges (s4), the 5th SDN intelligent exchanges (s5), the first main frame (h1), second Main frame (h2) and the 3rd main frame (h3), the first SDN intelligent exchanges (s1), the 2nd SDN intelligent exchanges (s2), the 3rd SDN intelligent exchanges (s3), the 4th SDN intelligent exchanges (s4), the 5th SDN intelligent exchanges (s5) are sequentially connected with, the 5th SDN Intelligent exchange (s5) is connected with the first SDN intelligent exchanges (s1), first main frame (h1), the second main frame (h2) and the 3rd Main frame (h3) respectively with the first SDN intelligent exchanges (s1), the 2nd SDN intelligent exchanges (s2), the 3rd SDN intelligent exchanges (s3) connect;Mininet environmental levels pass through in the global control micro loop network topology structure of OpenDaylight controllers The flow table renewal of SDN intelligent exchanges;SDN intelligent exchanges parse and performed the network flow configured in simulated environment Mininet Table;REST api interfaces complete the configuration of network topology structure flow table by writing script;This method comprises the following steps:
Step 1, Mininet simulated environment platforms are opened, initialize SDN basic environments;
Step 2, OpenDaylight controls are opened in operation/opt/opendaylight-snapshot/run.delayed.sh orders Device processed, according to the requirement of shortest path and minimal network path cost, initial flow table is installed to initial network topology structure;
In initial flow table, when the first main frame (h1) sends packet to the 3rd main frame (h3), data packet stream is through the first SDN intelligence Interchanger (s1), the 2nd SDN intelligent exchanges (s2), the 3rd SDN intelligent exchanges (s3), by the first SDN intelligent exchanges (s1) incoming interface of the 3rd interface as packet, outgoing interface of the first interface as packet, the 2nd SDN intelligent exchanges (s2) incoming interface of the first interface as packet, outgoing interface of the second interface as packet, the 3rd SDN intelligent exchanges (s3) incoming interface of the first interface as packet, outgoing interface of the 3rd interface as packet;
When second main frame (h2) sends packet to the 3rd main frame (h3), data packet stream is through the 2nd SDN intelligent exchanges (s2), the Three SDN intelligent exchanges (s3), the incoming interface using the 3rd interface of the 2nd SDN intelligent exchanges (s2) as packet, second Outgoing interface of the interface as packet, the incoming interface of the first interfaces of the 3rd SDN intelligent exchanges (s3) as packet, the 3rd Outgoing interface of the interface as packet;
The first interface of 4th SDN intelligent exchanges (s4) is arranged to the incoming interface and outgoing interface of packet, by the 5th SDN intelligence The second interface of energy interchanger (s5) is arranged to the incoming interface and outgoing interface of packet;
Step 3, the 2nd SDN intelligent exchanges (s2) and the 3rd SDN intelligent exchanges (s3) link interrupt, according to first SDN intelligent exchanges (s1), the 2nd SDN intelligent exchanges (s2), the 3rd SDN intelligent exchanges (s3), the 4th SDN are intelligently exchanged Machine (s4), the order of the 5th SDN intelligent exchanges (s5) configure successively;
Flow table is renamed, and the stream between the 2nd SDN intelligent exchanges (s2), the 3rd SDN intelligent exchanges (s3) is deleted, Improve the priority of flow table;
When first main frame (h1) sends packet to the 3rd main frame (h3), data packet stream is through the first SDN intelligent exchanges (s1), the Five SDN intelligent exchanges (s5), the 4th SDN intelligent exchanges (s4) and the 3rd SDN intelligent exchanges (s3), by the first SDN intelligence Incoming interface of 3rd interface of energy interchanger (s1) as packet, outgoing interface of the second interface as packet, the 5th SDN intelligence Incoming interface of the second interface of energy interchanger (s5) as packet, outgoing interface of the first interface as packet, the 4th SDN intelligence Incoming interface of the second interface of energy interchanger (s4) as packet, outgoing interface of the first interface as packet, the 3rd SDN intelligence Incoming interface of the second interface of energy interchanger (s3) as packet, outgoing interface of the 3rd interface as packet;
When second main frame (h2) sends packet to the 3rd main frame (h3), data packet stream is through the 2nd SDN intelligent exchanges (s2), the One SDN intelligent exchanges (s1), the 5th SDN intelligent exchanges (s5), the 4th SDN intelligent exchanges (s4), the 3rd SDN are intelligently handed over Change planes (s3), and using the 3rd interface of the 2nd SDN intelligent exchanges (s2) as the incoming interface of packet, first interface is as data The outgoing interface of bag, the incoming interface of the first interfaces of the first SDN intelligent exchanges (s1) as packet, second interface is as data The outgoing interface of bag;
Step 4, input order mininet>Xterm h1 h2 h3, the terminal detection simulation program of each main frame is opened, detected Loop be present between the first SDN intelligent exchanges (s1) and the 5th SDN intelligent exchanges (s5) into network link;
Step 5, update flow table and rename, improve flow table priority, change the configuration sequence of interchanger;First set the 5th SDN intelligent exchanges (s5), the incoming interface using the second interface of the 5th SDN intelligent exchanges (s5) as packet, first connects Outgoing interface mouthful as packet, then the 2nd SDN intelligent exchanges (s2) are set, by the of the 2nd SDN intelligent exchanges (s2) Incoming interface of three interfaces as packet, outgoing interface of the first interface as packet, the 3rd step set the first SDN intelligently to exchange The first interface conduct of machine (s1), the 3rd interface being connected with the first main frame (h1) and the connection of the 2nd SDN intelligent exchanges (s2) The incoming interface of packet, outgoing interface of the second interface as packet, the 4th step set the 4th SDN intelligent exchanges (s4), the Incoming interface of two interfaces as packet, outgoing interface of the first interface as packet, the 3rd SDN intelligent exchanges are finally set (s3), incoming interface of its second interface as packet, outgoing interface of the 3rd interface as packet;
Step 6, the packet label received is checked by the xterm screen displays of the 3rd main frame (h3), whether judges all data All it has been successfully transmitted, Mininet simulated environment platforms is closed if success, otherwise has continued monitoring and send until being sent completely.
CN201610747216.3A 2016-08-27 2016-08-27 A method of the disconnecting of loop network link is solved using SDN technology Expired - Fee Related CN107786407B (en)

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 true CN107786407A (en) 2018-03-09
CN107786407B 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 (3)

* Cited by examiner, † Cited by third party
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
WO2016116050A1 (en) * 2015-01-23 2016-07-28 华为技术有限公司 Failure protection method, device and system for ring protection link

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016116050A1 (en) * 2015-01-23 2016-07-28 华为技术有限公司 Failure protection method, device and system for ring protection link
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
CN107786407B (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN106357537B (en) A kind of link monitoring method based on SDN multi-path transmission
Keti et al. Emulation of software defined networks using mininet in different simulation environments
CN106850616B (en) The method for solving distributed fire wall network consistent updates using SDN technology
CN106656801B (en) Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream
Stancu et al. A comparison between several software defined networking controllers
Ejaz et al. Traffic load balancing using software defined networking (SDN) controller as virtualized network function
US11212179B2 (en) Automatic configuration of a network switch in a multi-chassis link aggregation group
CN109802852A (en) The construction method and system of network simulation topology applied to network target range
CN104253749A (en) Client distributed path computation method based on software defined network architecture
CN103763367A (en) Method and system for designing distributed virtual network in cloud calculating data center
Marschke et al. Software Defined Networking (SDN): Anatomy of OpenFlow Volume I
CN109587010A (en) A kind of method for detecting connectivity, stream forwarding device and network controller
CN106254178B (en) network test platform NFVNTP based on NFV and test method thereof
CN107204866A (en) The implementation method of multi-tenant service chaining transmission is solved based on VXLAN technologies
CN107786407B (en) A method of the disconnecting of loop network link is solved using SDN technology
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
CN110086676A (en) A kind of configuration method and relevant device of distribution router
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
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
WO2020220977A1 (en) Data flow guiding apparatus and data flow guiding method in virtual network
CN113347023A (en) Network simulator and dynamic switching method thereof
US20180324001A1 (en) Real-time distributed engine framework of ethernet virtual connections

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