CN109039943A - Flow allocating method, apparatus, network system and SDN controller - Google Patents

Flow allocating method, apparatus, network system and SDN controller Download PDF

Info

Publication number
CN109039943A
CN109039943A CN201811078398.5A CN201811078398A CN109039943A CN 109039943 A CN109039943 A CN 109039943A CN 201811078398 A CN201811078398 A CN 201811078398A CN 109039943 A CN109039943 A CN 109039943A
Authority
CN
China
Prior art keywords
target
network flow
equipment
peer
node device
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
CN201811078398.5A
Other languages
Chinese (zh)
Other versions
CN109039943B (en
Inventor
李文
林茂
罗向征
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201811078398.5A priority Critical patent/CN109039943B/en
Publication of CN109039943A publication Critical patent/CN109039943A/en
Application granted granted Critical
Publication of CN109039943B publication Critical patent/CN109039943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Abstract

The embodiment of the present application provides a kind of flow allocating method, apparatus, network system and SDN controller, belongs to field of communication technology.This method comprises: SDN controller obtains the load level information of at least two peer nodes equipment;Determine that load level is more than the first object node device of predetermined threshold value in at least two peer nodes equipment according to the load level information of at least two peer nodes equipment;The target network flow in the network flow through first object node device transmission that determination need to be deployed;It will;Target network flow, which is switched to, is transmitted to corresponding target dual homed network through the second target node device at least two peer node equipment, thus it can be realized by SDN controller and the load balancing of upper layer peer node equipment room is controlled, thus the load balancing between peer node equipment can flexibly be deployed, so that realizing load balancing between peer node equipment, and then increase network utilization.

Description

Flow allocating method, apparatus, network system and SDN controller
Technical field
This application involves field of communication technology, in particular to a kind of flow allocating method, apparatus, network system and SDN controller.
Background technique
Software defined network (Software Defined Network, abbreviation SDN) is a kind of new network framework, core The heart is by data plane and control planar separation.In SDN, more data transfer equipments are by controller centralized control, controller The whole network view is grasped, global decisions is carried out, has benefited from the whole network view, global decisions, SDN is more flexible to the configuration of network, intelligence Energy.
In the dual homed network for needing high reliability, one or more data networks are linked into multiple network nodes simultaneously and set When standby, these apparatus for network node constitute a peer-to-peer, by the way that peer node equipment is arranged, is used for link backup, bears Carry the purpose of balanced.Peer node equipment can distribute the routing letter for reaching one or more purpose networks into network simultaneously Network flow is oriented to peer node according to the routing iinformation learnt, according to itself policy selection by breath, lower layer's access device One of equipment or according to load balancing, according to a certain percentage, is oriented to multiple peer node equipment for network flow, and The process is determined by lower layer's access device completely, can not accomplish the flow load balance control of upper layer peer node equipment room.
Summary of the invention
The embodiment of the present application is designed to provide a kind of flow allocating method, apparatus, network system and SDN controller.
In a first aspect, the embodiment of the present application provides a kind of flow allocating method, it is applied to SDN controller, the SDN control Device processed is connect at least two peer node equipment, and at least two peer nodes equipment is connect with access device, institute The method of stating includes: to obtain the load level information of at least two peer nodes equipment;According at least two equity The load level information of body segment point device determines that load level is more than pre-determined threshold in at least two peer nodes equipment The first object node device of value;The target in the network flow through first object node device transmission that determination need to be deployed Network flow, wherein the target network flow is transmitted to correspondence through the first object node device by the access device Target dual homed network;The target network flow is switched to through the second mesh in at least two peer nodes equipment Mark node device is transmitted to the target dual homed network.
In the above-described embodiments, can be realized by SDN controller to the load balancing of upper layer peer node equipment room into Row control, thus the load balancing between peer node equipment can flexibly be deployed so that peer node equipment it Between realize load balancing, and then increase network utilization.
Optionally it is determined that the target network stream in the network flow through first object node device transmission that need to be deployed After amount, the target network flow is switched to and is set through the second destination node in at least two peer nodes equipment It is standby to be transmitted to before the target dual homed network, further includes: according to the load level of at least two peer nodes equipment Information determines that load level is less than the second target node device of predetermined threshold value in the peer node equipment.
In the above-described embodiments, SDN controller determines that load level is less than the second target node device of predetermined threshold value, So that target network flow is transmitted by the second target node device, to realize first object node device and the second target Load balancing between node device.
Optionally, the target network flow is previously provided with the first transmission through first object node device transmission The target network flow is switched to and sets through the second destination node in at least two peer nodes equipment by priority It is standby to be transmitted to the target dual homed network, comprising: the numerical value of first transmission priority to be modified, so that the target The numerical value for the second transmission priority that network flow is transmitted through second target node device is greater than first transmission preferences The numerical value of grade;The target network flow is switched to through the second destination node in at least two peer nodes equipment Equipment is transmitted to the target dual homed network.
In the above-described embodiments, by modifying the numerical value of the first transmission priority so that in first object node device or Second target node device breaks down when can not carry out flow transmission, the biography that target network flow can also be low from transmission priority Defeated path is transmitted, and target network flow can be made not cause in transmission because peer node equipment breaks down It is disconnected.
Optionally, the numerical value of first transmission priority is modified, so that described in target network flow warp The numerical value of second transmission priority of the second target node device transmission is greater than the numerical value of first transmission priority, comprising: The numerical value of first transmission priority is reduced by preset ratio or preset value, so that the target network flow is through institute The numerical value for stating the second transmission priority of the second target node device transmission is greater than the numerical value of first transmission priority.
Optionally it is determined that the target network stream in the network flow through first object node device transmission that need to be deployed After amount, the target network flow is switched to and is set through the second destination node in at least two peer nodes equipment It is standby to be transmitted to before the target dual homed network, further includes: respectively at least two peer nodes equipment and described Access device sends routing update instruction, so that at least two peer nodes equipment and the access device are according to institute It states routing update instruction and updates respective routing table, and network flow is transmitted according to the respective routing table.
Second aspect, the embodiment of the present application provide a kind of flow allocating device, run on SDN controller, the SDN control Device processed is connect at least two peer node equipment, and at least two peer nodes equipment is connect with access device, institute Stating device includes: load level data obtaining module, for obtaining the load level of at least two peer nodes equipment Information;First node equipment determining module, it is true for the load level information according at least two peer nodes equipment Load level is more than the first object node device of predetermined threshold value in the fixed at least two peer nodes equipment;Network flow Determining module is measured, the target network stream in the network flow through first object node device transmission that need to be deployed for determination Amount, wherein the target network flow is transmitted to corresponding target through the first object node device by the access device Dual homed network;Flow allocating module is set for being switched to the target network flow through at least two peer node The second target node device in standby is transmitted to the target dual homed network.
Optionally, described device further include: second node equipment determining module, for according at least two peer-to-peer The load level information of node device determines that load level is less than the second mesh of predetermined threshold value in the peer node equipment Mark node device.
Optionally, the target network flow is previously provided with the first transmission through first object node device transmission Priority;The flow allocating module, is specifically used for: being modified to the numerical value of first transmission priority, so that described The numerical value for the second transmission priority that target network flow is transmitted through second target node device is greater than first transmission The numerical value of priority;The target network flow is switched to through the second target in at least two peer nodes equipment Node device is transmitted to the target dual homed network.
Optionally, the flow allocating module, be also used to the numerical value of first transmission priority by preset ratio or Preset value is reduced, so that the second transmission priority that the target network flow is transmitted through second target node device Numerical value be greater than first transmission priority numerical value.
Optionally, described device further include: routing update instruction sending module, for respectively at least two equity Body segment point device and the access device send routing update instruction so that at least two peer nodes equipment and The access device updates respective routing table according to routing update instruction, and according to the respective routing table to network Flow is transmitted.
The third aspect, the embodiment of the present application provide a kind of network system, and the network system includes SDN controller, access Equipment and at least two peer node equipment, the SDN controller are connect at least two peer nodes equipment, At least two peer nodes equipment is connect with the access device;The SDN controller, for obtaining described at least two The load level information of a peer node equipment;The SDN controller is also used to according at least two peer node The load level information of equipment determines that load level in at least two peer nodes equipment is more than the of predetermined threshold value One target node device;The SDN controller is also used to the net transmitted through the first object node device that determination need to be deployed Target network flow in network flow, wherein the target network flow is by the access device through the first object node Equipment is transmitted to corresponding target dual homed network;The SDN controller is also used to for the target network flow being switched to through institute It states the second target node device at least two peer node equipment and is transmitted to the target dual homed network.
Fourth aspect, the embodiment of the present application provide a kind of SDN controller, including processor and memory, the storage Device is stored with computer-readable instruction fetch, and when the computer-readable instruction fetch is executed by the processor, operation is such as above-mentioned The step in the method that first aspect provides.
5th aspect, the embodiment of the present application provide a kind of readable storage medium storing program for executing, are stored thereon with computer program, the meter The step in the method that first aspect offer is as above provided is run when calculation machine program is executed by processor.
The beneficial effect of the embodiment of the present application is: the embodiment of the present application provides a kind of flow allocating method, apparatus, network system In this method, the load level of at least two peer nodes equipment is obtained by SDN controller for system and SDN controller Then information determines described at least two reciprocity body segments according to the load level information of at least two peer nodes equipment In point device load level be more than predetermined threshold value first object node device, then determination need to deploy through the first object Node device transmission network flow in target network flow, then by the target network flow be switched to through it is described at least The second target node device in two peer node equipment is transmitted to corresponding target dual homed network, thus can pass through SDN Controller realization controls the load balancing of upper layer peer node equipment room, thus can be between peer node equipment Load balancing flexibly deployed so that realizing load balancing between peer node equipment, and then increase network utilization.
Other feature and advantage of the application will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing the embodiment of the present application understanding.The purpose of the application and other advantages can be by written theorys Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of structural block diagram of network system provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of flow allocating method provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of network system provided by the embodiments of the present application;
Fig. 4 is that the flow of peer node equipment in a kind of original state lower network system provided by the embodiments of the present application turns Send out situation schematic diagram;
Fig. 5 is the forwarding of the peer node equipment after a kind of pair of network flow provided by the embodiments of the present application is deployed Situation schematic diagram;
Fig. 6 is the flow chart of another flow allocating method provided by the embodiments of the present application;
Fig. 7 is a kind of structural block diagram of flow allocating device provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of SDN controller provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
In the prior art, it is the problem of load balancing solved between peer node equipment in the following way: Corresponding routing iinformation is configured on access device, by particular way by under (policybased routing, static routing etc.) specified services stream One jumps, and forces water diversion part business to specified peer node equipment.Or the letter of the routing by configuring peer node equipment Breath, makes peer node equipment only distributing portion routing iinformation, makes the network flow of the same target dual homed network only can be from one A peer node equipment is distributed, thus between peer node equipment network flow equilibrium purpose.
Above two mode requires artificial intervention route distribution, and when specified peer node functions of the equipments are different Chang Shi, can not timely adjust automatically, so that peer node equipment is lost the function of disaster recovery backup instead, also, pass through biography The load of system route implementing is only capable of cannot achieve more industry of peer node equipment room for single Business Stream from business source Business flow load balance.So to solve the above-mentioned problems, the embodiment of the present application provides a kind of flow allocating method.
Fig. 1 is please referred to, Fig. 1 is a kind of structural block diagram of network system 100 provided by the embodiments of the present application, the network system System 100 includes SDN controller 110, at least two peer node equipment 120 and access device 130, the SDN controller 110 connect at least two peer nodes equipment 120, and at least two peer nodes equipment 120 connects with described Enter the connection of equipment 130.
It wherein, will if the destination address in multiple node devices in respective routing iinformation all points to the same network segment These node devices are known as peer node equipment 120, and when these peer node equipment 120 all distribute a network, This network can be described as dual homed network, and dual homed network possesses the same network segment.
Access device 130 is that received business datum is transmitted to setting for dual homed network by peer node equipment 120 It is standby, the quantity of access device 130 may be it is multiple, it is succinct for description, be illustrated for one in the present embodiment.
Referring to figure 2., Fig. 2 is a kind of flow chart of flow allocating method provided by the embodiments of the present application, and the method is answered For the SDN controller 110 in above-mentioned network system 100, described method includes following steps:
Step S110: the load level information of at least two peer nodes equipment is obtained.
In the present embodiment, all-network equipment in network system 100 (including peer node equipment 120, access device 130 and SDN controller 110) support Border Gateway Protocol (Border Gateway Protocol, abbreviation BGP) routing, and The routing update order for supporting SDN controller 110 to issue simultaneously.
SDN controller 110 can periodically acquire at least two peer node equipment 120 in network system 100 Load level information and at least two peer node equipment 120 and access device 130 routing table information.
Wherein, routing table information includes: direct-connected routing, the non-routing acquired according to Routing Protocol and routing priority; Load level information includes but is not limited to: cpu busy percentage, the business interface-tunnel interface stream of each peer node equipment 120 Measure information etc..
In addition, SDN controller 110 is in collecting network system 100 after the routing iinformation of each network equipment, Ke Yigen Dual homed network and peer node equipment 120 are identified according to routing iinformation, i.e., direct-connected routing iinformation is obtained from routing iinformation, when There is a network equipment to distribute same routing iinformation, network corresponding to the routing iinformation is then considered as dual homed by SDN controller 110 Network.When having more than the routing iinformation of a network equipment distribution agreement directly-connected network, SDN controller 110 will the distribution The apparatus for network node of identical network is considered as peer network node device.
Step S120: described at least two are determined according to the load level information of at least two peer nodes equipment Load level is more than the first object node device of predetermined threshold value in peer node equipment.
In order to realize the load balancing between at least two peer node equipment 120, at least two peer nodes Network flow allotment is carried out between equipment 120, then SDN controller 110 is obtaining the negative of at least two peer node equipment 120 After lotus horizontal information, determine that load level is more than pre-determined threshold according to the load level information of each peer node equipment 120 The first object node device of value.
It is to be appreciated that SDN controller 110 is by the load level of each peer node equipment 120 of acquisition and presets Threshold value is compared, if load level is indicated with cpu busy percentage, SDN controller 110 is by each reciprocity body segment of acquisition The cpu busy percentage of point device 120 is compared with predetermined threshold value, if finding, the CPU of some peer node equipment 120 is utilized Rate is greater than the predetermined threshold value, then regard the peer node equipment 120 as first object node device.
It should be noted that if the load level of all peer node equipment 120 is without departing from predetermined threshold value, Then SDN controller 110 can without any processing or SDN controller 110 may select from the maximum reciprocity body segment of load level Point device 120 is used as first object node device, if the peer node equipment 120 that load level is more than predetermined threshold value is more When a, SDN controller 110 can select the maximum peer node of load level from multiple peer node equipment 120 Equipment 120 is used as first object node device, thus illustrates that the load level of first object node device is maximum, needs to first The network flow of target node device distribution is deployed.
Step S130: the target network in the network flow through first object node device transmission that determination need to be deployed Flow.
Wherein, the target network flow is transmitted to pair by the access device 130 through the first object node device The target dual homed network answered.
In the first object node device for determining load excessive, due to the first object node device may distribute have it is more The corresponding network flow of a dual homed network, then in order to select one of network flow to be deployed, then SDN controller 110 can Therefrom to choose the target network flow for needing to deploy, so that the load level of first object node device is less than pre-determined threshold Value.
For example, if first object node device distributes the network flow of 3 dual homed networks simultaneously, if the net of dual homed network 1 Network flow is 10M, and the network flow of dual homed network 2 is 3M, and the network flow of dual homed network 3 is 6M, then the first object node The load level of equipment can be network flow summation, i.e. 19M, if threshold value is set as 15M in advance, to first object section After the network flow of point device is deployed, so that the load level of first object node device is lower than predetermined threshold value, thus The network flow for determining the network flow or dual homed network 1 that need that the network flow deployed is dual homed network 3, of course for making The load balancing between multiple peer node equipment 120 is obtained, so that the load level of each peer node equipment 120 is low In predetermined threshold value, it is determined that the network flow for needing to deploy is the network flow of dual homed network 3, so that it is determined that the mesh that need to be deployed The network flow that network flow is dual homed network 3 is marked, dual homed network 3 is the corresponding target dual homed network of target network flow.
Certainly, also it can judge that the network flow due to which dual homed network leads to according to preset strategy The load level of one target node device is excessively high, thus also can determine that the target network stream for the target dual homed network that need to be deployed Amount.
Step S140: the target network flow is switched to through second in at least two peer nodes equipment Target node device is transmitted to the target dual homed network.
In order to deploy to the network flow transmitted through first object node device, then SDN controller 110 also needs to determine Network flow need to be deployed to which peer node equipment 120, be more than in advance since first object node device is load level The peer node equipment 120 of gating limit value, so, SDN controller 110 will need to need to deploy on first object node device Target network flow switches in the second target node device and is transmitted, first object node device and first object node device For two different node devices, the load level of the second target node device is lower than the load water of first object node device It is flat, after handover, so that target network flow can be transmitted through the second target node device, to reach at least two equities Load balancing between body segment point device 120.
Certainly, as an implementation, SDN control can also be according at least two peer nodes equipment 120 Load level information determines that load level in at least two peer nodes equipment 120 is limited to the second mesh of predetermined threshold value Mark node device.
If peer node equipment 120 is two, target network flow is directly switched into the second destination node and is set Standby to be transmitted, if peer node equipment 120 is multiple, and load level is set lower than the peer node of predetermined threshold value Standby 120 be at least two, then may select from the minimum peer node equipment 120 of load level and set as the second destination node It is standby, thus, it can be achieved that load balancing between first object node device and the second target node device.
Since a network flow is deployed between multiple peer node equipment 120, so double for each Different priority can be arranged based on different transmission paths by returning the network flow of network, for example, in the initial state, it is above-mentioned Target network flow is transmitted by first object node device, then the target network flow is passed by first object node device The first defeated transmission priority is higher than target network flow and passes through the second transmission priority that the second target node device is transmitted, and is Target network flow allocating to the second target node device is transmitted, then can change the first transmission priority or second is passed Defeated priority, so that the first transmission priority is lower than the second transmission priority, so that in first object node device or the Two target node devices break down when can not carry out flow transmission, the transmission that target network flow can also be low from transmission priority Path is transmitted, for example, if current goal network flow has switched in the second target node device and transmitted, at certain At a moment, the second target node device, which breaks down, can not carry out the transmission of target network flow, then access device 130 can between Target network flow is switched in the low first object node device of transmission priority again to transmit, so as to avoid second When target node device breaks down, since the routing iinformation on access device 130 is not modified such that target network in time Flow will continue to be transmitted to the problem of the second target node device leads to network traffic interruption, so, which can make mesh Mark network flow will not cause Transmission because peer node equipment 120 breaks down.
And in the present embodiment, target network flow passes through through the first transmission priority that first object node device transmits Numerical priority value embodies, i.e., the described SDN controller 110 can be modified the numerical value of first transmission priority, with The numerical value for the second transmission priority for transmitting the target network flow through second target node device is greater than described the The numerical value of one transmission priority, so that the target network flow is switched to through the reciprocity body segment by the SDN controller 110 The second target node device in point device 120 carries out being transmitted to the target dual homed network.
In the present embodiment, due to being all provided with to target network flow through the transmission of each peer node equipment 120 in advance Respective transmission priority, and each transmission priority being arranged under original state is identical, for example, target network flow is through first First transmission priority of target node device transmission is 200, target network flow transmitted through the second target node device the Two transmission priorities are 200, can be excellent by the first transmission before target network flow to be switched to the transmission of the second target node device The numerical value of first grade is reduced, for example, can subtract to the numerical value of first transmission priority by preset ratio or preset value It is small.
It should be noted that can also be modified to the numerical value of the second transmission priority, such as by the second transmission preferences The numerical value of grade increases, alternatively, the numerical value to the numerical value of the first transmission priority and the second transmission priority can also carry out simultaneously Change, so that numerical value of the numerical value of the first transmission priority less than the second transmission priority.
In addition, as an implementation, 110 determination of SDN controller need to deploy through the first object node After target network flow in the network flow of equipment transmission, the SDN controller 110 switches the target network flow To carry out being transmitted to the target dual homed net through the second target node device in at least two peer nodes equipment 120 Before network, further includes:
The SDN controller 110 is respectively at least two peer nodes equipment 120 and the access device 130 send routing update instruction, so that 130 basis of at least two peer nodes equipment 120 and the access device The routing update instruction updates respective routing table, and is transmitted according to the respective routing table to network flow.
Flow allocating method provided by the present application is illustrated with a specific embodiment below.
As shown in figure 3, Fig. 3 is the structural schematic diagram of typical network system 100, CR1 and CR1 are peer node equipment 120, AR1 and AR2 is lower layer's access device 130.As shown in figure 4, Net1, Net2 and Net3 are dual homed network under original state, The network flow of Net3 is sent by AR1, is transmitted to server through CR1, the network flow of Net1 is sent by AR2, is transmitted to through CR1 The network flow of server, Net2 is sent by AR2, is transmitted to server through CR2.
It include tri- dual homed networks of target service network prefix Net1, Net2, Net3 in network system 100 in Fig. 4, As peer node equipment 120, AR1, AR2 respectively represents lower layer's access/convergence router and (accesses by router CR1, CR2 Equipment 130), and close the load-balancing function of BGP.Intermediate chain between peer node equipment 120 and access device 130 Road can be physical link or virtual link (tunnel).
In the initial state, bgp protocol, the road that CR1, CR2 are acquired by BGP default distribution from g0 mouthfuls are run in router By.After the distribution of BGP, AR1, AR2 increase to the list item of dual homed network N et1, Net2, Net3 in respective routing table, And corresponding outgoing interface.Under default situations, AR1, AR2 are forwarded to double according to respective strategy from respective g0, g1 mouthful selection Return the network flow of network.
In Fig. 4, direct-connected routing is represented with C in equipment routing table, the routing acquired by BGP, default priority are represented with B It is 200.
Under initial situation, due to the random selection of BGP, the possible flow forwarding situation of network is as shown in Figure 4.
SDN the controller 110 periodically routing table and respective load level information of acquisition CR1, CR2, SDN control Device 110 analyzes direct-connected routing according to routing table, it can be deduced that and CR1 and CR2 is peer node equipment 120, common point Send out the routing of tri- dual homed networks of et1, Net2, Net3.
For SDN controller 110 according to the load level information of CR1, CR2, detecting load level in CR1, CR2 is more than pre- gating The peer node equipment 120 of limit value, such as cpu load are excessively high, and port flow is waited more than some ratios, and load level is big First object node device is used as in the peer node equipment 120 of predetermined threshold value.
Assuming that the load level for detecting CR1 in the present embodiment is more than predetermined threshold value n, then it is suitable to select from CR1 The network flow of dual homed network is deployed, and SDN controller 110 determines that the target dual homed network for needing to deploy is Net1, Net1 The load level for resulting in CR1 is excessively high, while Net1, which is deployed to CR2 transmission, will not cause the load level of CR2 to be more than default Threshold value.
Then SDN controller 110 can successively decrease the numerical value of the first transmission priority by preset value n or by preset ratio s%, Then corresponding routing update instruction is generated:
The routing update instruction of generation is sent to CR1 by SDN controller 110, after CR1 receives routing update instruction, Form new routing table:
Locally after the completion of adjustment, CR1 is distributed Net1 with new low priority by BGP CR1 again.
AR1 receives the BGP message of CR1 distribution, updates the routing table information of itself:
Similarly, AR2 receives the BGP message of CR1 distribution, updates itself routing table information:
After the processing of above step, the network interface card flow of the preferential near Net1 of lower layer router AR1, AR2 meeting is forwarded to On CR2, network traffic conditions after adjustment realize CR1 and CR2 as shown in figure 5, to achieve the purpose that reduce CR1 load level Between load balancing.
Fig. 6 is please referred to, Fig. 6 is the flow chart of another flow allocating method provided by the embodiments of the present application, and this method is answered For the SDN controller 110 in above-mentioned network system 100, this method comprises the following steps:
Step S210: the load level information of at least two peer nodes equipment is obtained.
Step S220: described at least two are determined according to the load level information of at least two peer nodes equipment Load level is more than the first object node device of predetermined threshold value in peer node equipment.
Step S230: the target network in the network flow through first object node device transmission that determination need to be deployed Flow.
Wherein, the target network flow is transmitted to by the access device through the first object node device corresponding Target dual homed network.
Step S240: the target network flow is adjusted through the first object node device and through described at least two pairs The transmission priority that the second target node device in equal body segments point device is transmitted;
Step S250: the target network flow is switched to through second destination node according to the transmission priority Equipment carries out being transmitted to the target dual homed network.
The specific implementation process of the embodiment please refers to the specific implementation process of above-described embodiment, succinct for description, It no longer excessively repeats herein.
Fig. 7 is please referred to, Fig. 7 is a kind of structural block diagram of flow allocating device 200 provided by the embodiments of the present application, the dress The SDN controller run in above-mentioned network system 100 is set, described device includes:
Load level data obtaining module 210, for obtaining the load level of at least two peer nodes equipment Information;
First node equipment determining module 220, for the load level according at least two peer nodes equipment Information determines that load level is more than the first object node device of predetermined threshold value in at least two peer nodes equipment;
Network flow determining module 230, the network transmitted through the first object node device that need to be deployed for determination Target network flow in flow, wherein the target network flow is set by the access device through the first object node It is standby to be transmitted to corresponding target dual homed network;
Flow allocating module 240, for being switched to the target network flow through at least two peer node The second target node device in equipment is transmitted to the target dual homed network.
Optionally, described device, further includes: second node equipment determining module, for according at least two equity The load level information of body segment point device determines that load level is less than the second of predetermined threshold value in the peer node equipment Target node device.
Optionally, the target network flow is previously provided with the first transmission through first object node device transmission Priority;The flow allocating module 240, is specifically used for: being modified to the numerical value of first transmission priority, so that institute The numerical value for stating the second transmission priority that target network flow is transmitted through second target node device is greater than described first and passes The numerical value of defeated priority;The target network flow is switched to through the second mesh in at least two peer nodes equipment Mark node device is transmitted to the target dual homed network.
Optionally, the flow allocating module 240 is also used to the numerical value of first transmission priority by preset ratio Or preset value is reduced, so that the second transmission preferences that the target network flow is transmitted through second target node device The numerical value of grade is greater than the numerical value of first transmission priority.
Optionally, described device, further includes: routing update instruction sending module, for respectively to described at least two pairs Equal body segments point device and the access device send routing update instruction so that at least two peer nodes equipment with And the access device updates respective routing table according to routing update instruction, and according to the respective routing table to net Network flow is transmitted.
The embodiment of the present application also provides a kind of network system 100, and the network system 100 includes SDN controller 110, extremely Few two peer node equipment 120 and access device 130, the SDN controller 110 and described at least two reciprocity body segments Point device 120 connects, and the access device 130 is connect at least two peer nodes equipment 120.
The SDN controller 110, for obtaining the load level information of at least two peer nodes equipment 120;
The SDN controller 110 is also used to be believed according to the load level of at least two peer nodes equipment 120 Breath determines that load level is more than that the first object node of predetermined threshold value is set in at least two peer nodes equipment 120 It is standby;
The SDN controller 110 is also used to the network flow transmitted through the first object node device that determination need to be deployed Target network flow in amount, wherein the target network flow is set by the access device 130 through the first object node It is standby to be transmitted to corresponding target dual homed network;
The SDN controller 110 is also used to for the target network flow being switched to through described at least two reciprocity body segments The second target node device in point device 120 is transmitted to the target dual homed network.
Fig. 8 is please referred to, Fig. 8 is a kind of structural schematic diagram of SDN controller 110 provided by the embodiments of the present application, the SDN Controller 110 may include: at least one processor 310, such as CPU, at least one communication interface 320, at least one storage Device 330 and at least one communication bus 340.Wherein, communication bus 340 is for realizing the direct connection communication of these components.Its In, the communication interface 320 of equipment is used to carry out the communication of signaling or data with other node devices in the embodiment of the present application.Storage Device 330 can be high speed RAM memory, be also possible to non-labile memory (non-volatile memory), such as extremely A few magnetic disk storage.Memory 330 optionally can also be that at least one is located remotely from the storage device of aforementioned processor. Computer-readable instruction fetch is stored in memory 330, when the computer-readable instruction fetch is executed by the processor 310 When, SDN controller 110 executes method process shown in above-mentioned Fig. 2 or Fig. 6.
The embodiment of the present application provides a kind of read/write memory medium, when the computer program is executed by processor, executes Method process performed by SDN controller 110 in embodiment of the method as illustrated in figs. 2 or 6.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
In conclusion the embodiment of the present application provides a kind of flow allocating method, apparatus, network system and SDN controller, it should In method, the load level information of at least two peer nodes equipment is obtained by SDN controller, then according to The load level information of at least two peer node equipment determines load level in at least two peer nodes equipment More than the first object node device of predetermined threshold value, then the net transmitted through the first object node device that determination need to be deployed Then the target network flow is switched to and sets through at least two peer node by the target network flow in network flow The second target node device in standby is transmitted to corresponding target dual homed network, thus can be realized by SDN controller to upper layer The load balancing of peer node equipment room is controlled, and thus can carry out spirit to the load balancing between peer node equipment Allotment living, so that realizing load balancing between peer node equipment, and then increases network utilization.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the application, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.

Claims (12)

1. a kind of flow allocating method, which is characterized in that be applied to SDN controller, the SDN controller and at least two equities The connection of body segment point device, at least two peer nodes equipment are connect with access device, which comprises
Obtain the load level information of at least two peer nodes equipment;
Determine that at least two peer node is set according to the load level information of at least two peer nodes equipment Standby middle load level is more than the first object node device of predetermined threshold value;
The target network flow in the network flow through first object node device transmission that determination need to be deployed, wherein institute It states target network flow and is transmitted to corresponding target dual homed network through the first object node device by the access device;
The target network flow is switched to through the second target node device in at least two peer nodes equipment It is transmitted to the target dual homed network.
2. the method according to claim 1, wherein determination need to deploy through the first object node device pass After target network flow in defeated network flow, the target network flow is switched to through at least two peer-to-peer The second target node device in node device is transmitted to before the target dual homed network, further includes:
Load in the peer node equipment is determined according to the load level information of at least two peer nodes equipment Level is less than the second target node device of predetermined threshold value.
3. the method according to claim 1, wherein the target network flow is previously provided with through described first First transmission priority of target node device transmission, the target network flow is switched to through at least two peer-to-peer The second target node device in node device is transmitted to the target dual homed network, comprising:
The numerical value of first transmission priority is modified, so that the target network flow is through second destination node The numerical value of second transmission priority of equipment transmission is greater than the numerical value of first transmission priority;
The target network flow is switched to through the second target node device in at least two peer nodes equipment It is transmitted to the target dual homed network.
4. according to the method described in claim 3, it is characterized in that, be modified to the numerical value of first transmission priority, So that the numerical value for the second transmission priority that the target network flow is transmitted through second target node device is greater than described The numerical value of first transmission priority, comprising:
The numerical value of first transmission priority is reduced by preset ratio or preset value, so that the target network flow The numerical value of the second transmission priority through second target node device transmission is greater than the numerical value of first transmission priority.
5. the method according to claim 1, wherein determination need to deploy through the first object node device pass After target network flow in defeated network flow, the target network flow is switched to through at least two peer-to-peer The second target node device in node device is transmitted to before the target dual homed network, further includes:
Routing update instruction is sent at least two peer nodes equipment and the access device respectively, so that described At least two peer node equipment and the access device are instructed according to the routing update updates respective routing table, and Network flow is transmitted according to the respective routing table.
6. a kind of flow allocating device, which is characterized in that run on SDN controller, the SDN controller and at least two equities The connection of body segment point device, at least two peer nodes equipment are connect with access device, and described device includes:
Load level data obtaining module, for obtaining the load level information of at least two peer nodes equipment;
First node equipment determining module, for being determined according to the load level information of at least two peer nodes equipment Load level is more than the first object node device of predetermined threshold value in at least two peer nodes equipment;
Network flow determining module, for determination need to deploy through the first object node device transmission network flow in Target network flow, wherein the target network flow is transmitted to by the access device through the first object node device Corresponding target dual homed network;
Flow allocating module, for being switched to the target network flow through in at least two peer nodes equipment Second target node device is transmitted to the target dual homed network.
7. device according to claim 6, which is characterized in that described device further include:
Second node equipment determining module, for being determined according to the load level information of at least two peer nodes equipment Load level is less than the second target node device of predetermined threshold value in the peer node equipment.
8. device according to claim 6, which is characterized in that the target network flow is previously provided with through described first First transmission priority of target node device transmission;The flow allocating module, is specifically used for:
The numerical value of first transmission priority is modified, so that the target network flow is through second destination node The numerical value of second transmission priority of equipment transmission is greater than the numerical value of first transmission priority;
The target network flow is switched to through the second target node device in at least two peer nodes equipment It is transmitted to the target dual homed network.
9. device according to claim 8, which is characterized in that the flow allocating module is also used to pass to described first The numerical value of defeated priority is reduced by preset ratio or preset value, so that the target network flow is through the second target section The numerical value of second transmission priority of point device transmission is greater than the numerical value of first transmission priority.
10. device according to claim 6, which is characterized in that described device further include:
Routing update instruction sending module, for respectively at least two peer nodes equipment and the access device Routing update instruction is sent, so that at least two peer nodes equipment and the access device route more according to described New command updates respective routing table, and is transmitted according to the respective routing table to network flow.
11. a kind of network system, which is characterized in that the network system includes SDN controller, access device and at least two Peer node equipment, the SDN controller are connect at least two peer nodes equipment, at least two equity Body segment point device is connect with the access device;
The SDN controller, for obtaining the load level information of at least two peer nodes equipment;
The SDN controller is also used to according to the determination of the load level information of at least two peer nodes equipment Load level is more than the first object node device of predetermined threshold value at least two peer node equipment;
The SDN controller is also used in the network flow through first object node device transmission that determination need to be deployed Target network flow, wherein the target network flow is transmitted to by the access device through the first object node device Corresponding target dual homed network;
The SDN controller is also used to for the target network flow being switched to through at least two peer nodes equipment In the second target node device be transmitted to the target dual homed network.
12. a kind of SDN controller, which is characterized in that including processor and memory, the memory is stored with computer can Instruction is read, when the computer-readable instruction fetch is executed by the processor, operation side as described in claim 1-5 is any Step in method.
CN201811078398.5A 2018-09-14 2018-09-14 Flow allocation method and device, network system and SDN controller Active CN109039943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811078398.5A CN109039943B (en) 2018-09-14 2018-09-14 Flow allocation method and device, network system and SDN controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811078398.5A CN109039943B (en) 2018-09-14 2018-09-14 Flow allocation method and device, network system and SDN controller

Publications (2)

Publication Number Publication Date
CN109039943A true CN109039943A (en) 2018-12-18
CN109039943B CN109039943B (en) 2022-03-18

Family

ID=64621927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811078398.5A Active CN109039943B (en) 2018-09-14 2018-09-14 Flow allocation method and device, network system and SDN controller

Country Status (1)

Country Link
CN (1) CN109039943B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787894A (en) * 2019-03-27 2019-05-21 新华三技术有限公司 A kind of route control method and device
CN113596538A (en) * 2021-06-30 2021-11-02 深圳市酷开网络科技股份有限公司 Equipment control method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933442A (en) * 2005-09-15 2007-03-21 华为技术有限公司 Method and system for realizing virtual router redundant protocol master and standby equipment switching
CN101841464A (en) * 2010-03-08 2010-09-22 北京网康科技有限公司 Network load balancing device and implementation method thereof
CN104184813A (en) * 2014-08-20 2014-12-03 杭州华为数字技术有限公司 Load balancing method of virtual machines, related equipment and trunking system
CN104243337A (en) * 2013-06-09 2014-12-24 杭州华三通信技术有限公司 Method and device for cross-cluster load balancing
CN104426855A (en) * 2013-08-23 2015-03-18 华为技术有限公司 Traffic switching method, equipment and system
CN105656799A (en) * 2016-01-08 2016-06-08 浪潮集团有限公司 Scheduling method based on business features in SDN network
CN107579922A (en) * 2017-09-08 2018-01-12 北京信息科技大学 Network Load Balance apparatus and method
US20180167458A1 (en) * 2016-12-13 2018-06-14 Alcatel-Lucent Canada Inc. Discovery of ingress provider edge devices in egress peering networks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933442A (en) * 2005-09-15 2007-03-21 华为技术有限公司 Method and system for realizing virtual router redundant protocol master and standby equipment switching
CN101841464A (en) * 2010-03-08 2010-09-22 北京网康科技有限公司 Network load balancing device and implementation method thereof
CN104243337A (en) * 2013-06-09 2014-12-24 杭州华三通信技术有限公司 Method and device for cross-cluster load balancing
CN104426855A (en) * 2013-08-23 2015-03-18 华为技术有限公司 Traffic switching method, equipment and system
CN104184813A (en) * 2014-08-20 2014-12-03 杭州华为数字技术有限公司 Load balancing method of virtual machines, related equipment and trunking system
CN105656799A (en) * 2016-01-08 2016-06-08 浪潮集团有限公司 Scheduling method based on business features in SDN network
US20180167458A1 (en) * 2016-12-13 2018-06-14 Alcatel-Lucent Canada Inc. Discovery of ingress provider edge devices in egress peering networks
CN107579922A (en) * 2017-09-08 2018-01-12 北京信息科技大学 Network Load Balance apparatus and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787894A (en) * 2019-03-27 2019-05-21 新华三技术有限公司 A kind of route control method and device
CN113596538A (en) * 2021-06-30 2021-11-02 深圳市酷开网络科技股份有限公司 Equipment control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109039943B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
US10673741B2 (en) Control device discovery in networks having separate control and forwarding devices
JP7417825B2 (en) slice-based routing
CN104335537B (en) For the system and method for the multicast multipath of layer 2 transmission
US10511524B2 (en) Controller communications in access networks
CN106789629B (en) Business fast convergent method and device
CN104871490B (en) The multipath communication device of energy ecology and its method for distributing business for improving energy ecology can be improved
CN110417665B (en) EVPN networking system and method for multiple Fabric scenes of data center
CN102164081B (en) Routing computation method of fat-tree topology, node equipment and communication system
CN103346979B (en) Flow distribution method and equipment in SPBM network
US10237202B2 (en) Network control device, network control method, and recording medium for program
CN101958829B (en) Route distribution method, device and system
CN109039943A (en) Flow allocating method, apparatus, network system and SDN controller
CN108123878A (en) A kind of method for routing, device and data transfer equipment
CN108337179A (en) Link flow control method and device
US10313232B2 (en) Network control device, network control method, and recording medium for program
EP3474504B1 (en) Leaf-to-spine uplink bandwidth advertisement to leaf-connected servers
CN115914078A (en) Message forwarding method and device and dragonfly network
CN106209671A (en) A kind of method and device determining that routing overhead is shared
CN108075981A (en) A kind of transmission method and routing node of link state data bag
CN112187635B (en) Message forwarding method and device
CN104917677A (en) Data stream forwarding control method and system
KR20090032703A (en) Wireless sensor network system for guaranteeing the quality of service about sensed data, and method for establishing multi-path and selecting transmission path in that
CN106909322B (en) Routing method and device for supporting storage disaster recovery in virtualization system
CN106487682B (en) Diameter signaling network routing method and device
CN108259385A (en) Simultaneously advertisement available bandwidth is distributed since switching fabric is degenerated

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