CN106254271B - A kind of programmable queue configuration method and device for software defined network - Google Patents
A kind of programmable queue configuration method and device for software defined network Download PDFInfo
- Publication number
- CN106254271B CN106254271B CN201610642549.XA CN201610642549A CN106254271B CN 106254271 B CN106254271 B CN 106254271B CN 201610642549 A CN201610642549 A CN 201610642549A CN 106254271 B CN106254271 B CN 106254271B
- Authority
- CN
- China
- Prior art keywords
- network equipment
- queue configuration
- queue
- direct
- port
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/6215—Individual queue per QOS, rate or priority
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a kind of programmable queue configuration methods and device for software defined network, applied to controller, method includes: to receive the queue configuration parameter for each predetermined port for the network equipment that external program is transmitted by northbound interface, wherein, the queue configuration parameter of each predetermined port includes port-mark parameter and corresponding queue scheduling parameter of regularity;The queue configuration parameter of each predetermined port is parsed, the corresponding queue configuration-direct of each predetermined port is generated;By southbound interface, the corresponding queue configuration-direct of each predetermined port is sent to the network equipment, so that the network equipment carries out queue configuration according to the queue configuration-direct.Using the embodiment of the present invention, the network equipment is directly configured to queue according to the corresponding queue configuration-direct of each predetermined port, it can be achieved that fine-grained configuration queue.
Description
Technical field
The present invention relates to Internet technical field, in particular to a kind of programmable queue configuration side for software defined network
Method and device.
Background technique
Internet application type rapidly increases, and individual demand continues to bring out, it would be highly desirable to which network provides fine-grained queue and matches
Set method.Existing queue configuration is based on the thought of software defined network (Software Defined Network, SDN), will
Flow control (Traffic Control, TC) order is put together in open source controller (Open Network Operating
System, ONOS) on be programmed, by ONOS interaction to open source software define the network switch (Open vSwitch,
OVS), then OVS executes TC order and triggers kernel progress queue configuration.
In the prior art, ONOS only provides for queue scheduling for layering token bucket (Hierarchical at present
Token Bucket, HTB) a kind of this easy configuration function of queue scheduling strategy design, it can support OpenFlow, OF-
The south orientations agreement such as CONFIG, NETCONF and OVSDB, but these agreements configure aspect from queue, it is still very not perfect.Such as,
OpenFlow is only responsible for that data stream is guided and operated, it is not to the ability of network equipments configuration.When its direct traffic
Required queue is needed by its companion's agreement OF-CONFIG in advance on behalf of configuration.However only allow in OF-CONFIG agreement
The common queue parameter such as assigned rate, burst is not available a variety of queue scheduling strategies, configures coarse size.For
It is all that remote procedure call and data are carried out to underlay network device by abstract protocol language for NETCONF and OVSDB
Library operation, without explicitly configuring the capacity index of queue, allocative abilities depend on the support of the specific network equipment and controller
Ability, its own only exists as a kind of communication protocol.As it can be seen that the south orientation agreement that ONOS is supported in the prior art can not be supported
Fine-grained queue configuration.
In addition, OVS itself is not carried out the function of port queue configuration, such as packet classification, buffer to ports, buffer scheduling
Deng.After control plane proposes queue configuration needs by the south orientations agreement such as OF-CONFIG, configuration is written first by OVS
The database of itself, then another module can call the programming interface of TC to go to have configured port according to the information in database
Queue resource.But this port queue allocative abilities solves only the presence or absence of allocative abilities problem, and queue allocative abilities are
Coarseness, it is difficult to cope with large-scale network environment and the following more complicated business scenario.
Summary of the invention
The embodiment of the invention discloses a kind of programmable queue configuration methods and device for software defined network, are used for
Realize fine-grained queue configuration.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of programmable queue configurations for software defined network
Method is applied to controller characterized by comprising
The queue configuration parameter for each predetermined port for the network equipment that external program is transmitted by northbound interface is received,
Wherein, the queue configuration parameter of each predetermined port includes port-mark parameter and corresponding queue scheduling parameter of regularity;
The queue configuration parameter of each predetermined port is parsed, the corresponding queue configuration of each predetermined port is generated and refers to
It enables;
By southbound interface, the corresponding queue configuration-direct of each predetermined port is sent to the network equipment, with
The network equipment is set to carry out queue configuration according to the queue configuration-direct.
Preferably, described by southbound interface, the corresponding queue configuration-direct of each predetermined port is sent to described
The network equipment, so that the network equipment includes: according to queue configuration-direct progress queue configuration
By southbound interface, according to preset southbound interface agreement, the corresponding queue configuration of each predetermined port is referred to
Order is packaged, and the queue configuration-direct after encapsulation is sent to the network equipment by corresponding each predetermined port, with
The network equipment is set to carry out queue configuration according to the queue configuration-direct.
Preferably, the queue configuration-direct after the encapsulation includes the protocol header and business datum of nybble.
Preferably, the controller locally preserves pair of the mark and its status information and port-mark of each network equipment
It should be related to;The port-mark parameter for including in the queue configuration parameter of each predetermined port is the external program according to
What the port-mark for the network equipment that controller is sent determined, the port-mark of the network equipment is the controller root
It is sent when connecting normal with the network equipment according to the status information of the network equipment is determining;The queue scheduling rule ginseng
Number is that the external program receives user's input gain of parameter.
Preferably, described by southbound interface, the corresponding queue configuration-direct of each predetermined port is sent to described
Before the network equipment, the method also includes:
According to the mark of the network equipment, and each network equipment for locally saving mark and its status information pair
It should be related to, judge whether itself connect normally with the network equipment;
If so, by southbound interface, the corresponding queue configuration-direct of each predetermined port is sent to the network
Equipment.
In order to achieve the above objectives, also a kind of programmable queue for software defined network of the embodiment of the present invention configures dress
It sets, is applied to controller characterized by comprising
Receiving module, each predetermined port for the network equipment transmitted by northbound interface for receiving external program
Queue configuration parameter, wherein the queue configuration parameter of each predetermined port includes port-mark parameter and corresponding queue
Scheduling rule parameter;
Parsing module parses for the queue configuration parameter to each predetermined port, generates each predetermined port pair
The queue configuration-direct answered;
The corresponding queue configuration-direct of each predetermined port is sent to institute for by southbound interface by sending module
The network equipment is stated, so that the network equipment carries out queue configuration according to the queue configuration-direct.
Preferably, the sending module, is specifically used for:
By southbound interface, according to preset southbound interface agreement, the corresponding queue configuration of each predetermined port is referred to
Order is packaged, and the queue configuration-direct after encapsulation is sent to the network equipment by corresponding each predetermined port, with
The network equipment is set to carry out queue configuration according to the queue configuration-direct.
Preferably, the queue configuration-direct after the encapsulation includes the protocol header and business datum of nybble.
Preferably, the controller locally preserves pair of the mark and its status information and port-mark of each network equipment
It should be related to;The port-mark parameter for including in the queue configuration parameter of each predetermined port is the external program according to
What the port-mark for the network equipment that controller is sent determined, the port-mark of the network equipment is the controller root
It is sent when connecting normal with the network equipment according to the status information of the network equipment is determining;The queue scheduling rule ginseng
Number is that the external program receives user's input gain of parameter.
Preferably, described device further include:
Judgment module, for the mark according to the network equipment, and the mark of each network equipment that locally saves with
The corresponding relationship of its status information, judges whether itself connect normally with the network equipment;If so, triggering the transmission mould
Block.
As shown from the above technical solution, the embodiment of the invention discloses a kind of programmable queues for software defined network
Configuration method and device, are applied to controller, and method includes: to receive external program to set by what northbound interface transmitted for network
The queue configuration parameter of standby each predetermined port, wherein the queue configuration parameter of each predetermined port includes port-mark ginseng
Several and corresponding queue scheduling parameter of regularity;The queue configuration parameter of each predetermined port is parsed, is generated each pre-
The corresponding queue configuration-direct in fixed end mouthful;By southbound interface, the corresponding queue configuration-direct of each predetermined port is sent
To the network equipment, so that the network equipment carries out queue configuration according to the queue configuration-direct.
Using the embodiment of the present invention, compared with the prior art, the network equipment can be according to the corresponding queue of each predetermined port
Configuration-direct directly configures queue, and the corresponding queue configuration-direct of each predetermined port is during generation, can
Control selections queue scheduling parameter of regularity, it is thus achieved that the purpose of fine granularity configuration queue.And the north orientation by providing connects
Mouthful, it may be programmed queue configuration can, the programmability of queue configuration opened to the outside world.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously
Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is to control in a kind of programmable queue configuration method for software defined network provided by the embodiment of the present invention
The workflow schematic diagram of device processed;
Fig. 2 is a kind of stream of the programmable queue configuration method for software defined network provided by the embodiment of the present invention
Journey schematic diagram;
Fig. 3 is in the embodiment of the present invention according to the queue configuration-direct form schematic diagram after southbound interface protocol encapsulation;
Fig. 4 is a kind of knot of the programmable queue configuration device for software defined network provided by the embodiment of the present invention
Structure schematic diagram;
Fig. 5 is to be provided for the embodiments of the invention a kind of programmable queue configuration method for software defined network
Test topological diagram;
Fig. 6 is using a kind of programmable queue configuration method for software defined network provided by the embodiment of the present invention
User initiates the rate schematic diagram of common discharge after configuration queue;
Fig. 7 is using a kind of programmable queue configuration method for software defined network provided by the embodiment of the present invention
User initiates the rate schematic diagram of regular grade service quality QoS guarantee after configuration queue;
Fig. 8 is using a kind of programmable queue configuration method for software defined network provided by the embodiment of the present invention
User initiates the rate schematic diagram that top QoS is ensured after configuration queue;
Fig. 9 is using a kind of programmable queue configuration method for software defined network provided by the embodiment of the present invention
Viewing effect figure of the user under top QoS guarantee after configuration queue;
Figure 10 is using the rate schematic diagram ensured without QoS after method in the prior art configuration queue;
Figure 11 is using viewing effect of the user in the case where no QoS is ensured after application queue configuration method in the prior art
Figure.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of programmable queue configuration methods and device for software defined network, below
It is described in detail.
It should be noted that the network equipment in the embodiment of the present invention can define the network switch for open source software
Any one in the network equipments such as (Open vSwitch, OVS), router, firewall.
For the network equipment as a flow forwarding equipment, main responsibility is matching, forwarding data packet.In order to realize
Management of the controller to network equipment port can design carry module QoS Agent module, each net in advance for the network equipment
Network equipment all opens a QoS Agent module simultaneously on startup, and then QoS Agent module passes through preset southbound interface
It is interacted with controller, QoS Agent module and controller follow preset southbound interface agreement when interacting.
During QoS Agent module is interacted by preset southbound interface and controller, it then follows preset south
To interface protocol, the thread that will be responsible for carrying out protocol communication with preset southbound interface and extract queue configuration-direct is defined as
Protocol communication thread, the thread that will be responsible for the time configuration of the adaptation and queue resource of queue configuration-direct are defined as instruction configuration
Thread.Information transmitting between protocol communication thread and instruction configuration thread meets producer consumer mode, uses " lock+letter
Number amount ", i.e. the mode of Mutex+Condition carrys out interactive information.It is mutual that this interactive information mode can reach simultaneously multithreading
The effect of reprimand access and high efficiency interactive, it is entirely avoided the uncontrollable state and performance loss that consumer thread ceaselessly waits.
In terms of information exchange, the rough queue for having borrowed the primary offer of Linux C is realized, in QoS Agent module
In the queue function is improved and is encapsulated, become a queue submodule.
In terms of module operation, the safety for coordinating QoS Agent module each section is marked to terminate using shutdown, mainly
It is the work for coordinating dual-thread.Thread can check in time after executing the step of may consuming opposite more time
Shutdown label improves the response speed of module into cleaning exit step.
In addition, the customized unified log system of QoS Agent inside modules, distinguish INFO, WARNING,
ERROR three grades, each network equipment has the independent log of oneself for consulting, and for system-level problem, also has specially
The log separate records of door.
Controller using monitoring, transmission, receiving three threaded cooperation mechanism managements and the control network equipment, show by workflow
Intention can be as shown in Figure 1.
Specifically, when the online access of the network equipment, the QoS Agent module first in the network equipment will be with " listening-in line
Journey DeviceCallable " carries out protocol interaction: the shake hands ID of interconnection and the network equipment of TCP is reported.Later
DeviceCallable will find this net in the equipment subsystem Device Subsystem that controller locally saves
Then this primary abstract numbers with ID is bound together, is finally set for this network by the primary abstract Device of network equipment
It is standby to generate our the abstract network equipment object DeviceElement of Custom modulesization.Meanwhile it also maintaining
DeviceElement is consistent with the association of controller internal unit information Device.So far a work of DeviceCallable
Making the period just completes, meanwhile, the online registration work of a network equipment is completed.
Later, QoS Agent module transports active to all port-marks of the controller reporting network equipment and receipt
Row state, " the receiving thread RecvCallable " of controller will receive " having data notice to be received ".Then
Which network equipment RecvCallable will confirm have in information to send, then to the network equipment object of controller
The reception task of one with network equipment binding are submitted in DeviceElement shared thread pool.Association is completed in this way
Handshake phase is discussed, that is, completes a duty cycle of RecvCallable.In addition, RecvCallable will also handle it is actual
Some fortuitous events during protocol interaction, and do necessary fault recovery or Fault Isolation, it is ensured that the stability of system.
It is understood that by DeviceCallable and RecvCallable, during the network equipment of controller is abstract
The corresponding relationship of the mark and its status information and port-mark of each network equipment will be preserved, wherein network device state letter
Cease the connection state information between the network equipment and controller, the mark of each network equipment and its status information and port-mark
Corresponding relationship can be as shown in table 1:
Table 1
Specifically, controller is using the process for monitoring, sending, receiving three threaded cooperation mechanism managements and the control network equipment
In, " sending thread SendCallable " serves primarily in the process that queue configuration-direct issues.When discovery has queue configuration to refer to
When waiting being enabled to issue, SendCallable first obtains queue configuration-direct, then finds out from the network equipment object of controller
The corresponding network equipment obtains the corresponding protocol channel of the network equipment, by the protocol channel of acquisition, by queue configuration-direct
It is issued in the network equipment.So far a duty cycle of SendCallable just completes.
By using monitoring, transmission, three threaded cooperation mechanism managements and the control network equipment are received, can be executed parallel logical
Trust business, improve efficiency, can asynchronous collection network event, response queue's operation, and being obtained by the control of centralization each
The port-mark and motion state of the network equipment are able to carry out global optimization configuration.
The embodiment of the invention discloses a kind of programmable queue configuration methods for software defined network, are applied to control
Device, as shown in Figure 2, comprising the following steps:
Step S210 receives the queue for each predetermined port for the network equipment that external program is transmitted by northbound interface
Configuration parameter;
Specifically, external program and controller operate on same host, and external program will be directed to by northbound interface
The queue configuration parameter of each predetermined port of the network equipment passes to controller, wherein northbound interface is pre-designed.
The queue configuration parameter of predetermined port includes the port-mark parameter of corresponding network equipment predetermined port and right
The queue scheduling parameter of regularity answered.
It should be noted that controller locally preserves the mark and its status information and port-mark of each network equipment
Corresponding relationship.
The port-mark parameter of each predetermined port of the network equipment is the network equipment that external program is sent according to controller
What port-mark determined, the port-mark of the network equipment is controller according to the status information determination of the network equipment and the network equipment
It is sent when connecting normal.For example, the corresponding relationship of the mark of each network equipment and its status information and port-mark can be as
Shown in table 1, controller can determine that controller is connect normally with the network equipment 1 according to table 1, then controller is by the network equipment 1
Interface identifier be sent to external program, the port-mark for the network equipment that external program is sent according to controller determines network
The predetermined port parameter of equipment.
Queue scheduling parameter of regularity is the gain of parameter that external program is inputted by receiving user, wherein queue scheduling
Parameter of regularity may include general parameter and particular schedule policing parameter.General parameter may include the interface object of configuration, match
Type, interchanger DPID, bandwidth, minimum guaranteed rate and maximum limit rate etc. are set, particular schedule policing parameter may include
For the parameter in each scheduling strategy in two classes, ten kinds of scheduling strategies.
It is understood that queue scheduling parameter of regularity artificially determines, user can be with empirically determined corresponding
Queue scheduling parameter of regularity.
It should be noted that external program is for each by the queue configuration parameter that northbound interface passes to controller
Predetermined port, predetermined port is that the predetermined port identification parameter for the network equipment that external program is sent according to controller determines
's.
Step S220 parses the queue configuration parameter of each predetermined port, it is corresponding to generate each predetermined port
Queue configuration-direct;
Specifically, controller can parse individual queue configuration parameter using tree-shaped analytic tree, and tree-shaped analytic tree is
It is generated using the builder pattern of the mode of succession.
Builder pattern is the software design pattern for serving Object Creation.Builder pattern is that class introduces one
New object, builder.Builder can receive each initiation parameter step by step, finally disposably return to that construction
Good class object.
Builder pattern, which can also be used to generate those, contains the class object of special data, for example contains HTML generation
The object of code, SQL statement.That is, the value of data cannot be changed easily, otherwise entire object will mistake.It is this kind of
Data itself cannot be edited a step by a step and require disposably to edit and generate.And " builder " is used, it just can be neatly
Construct them.
Tree-shaped analytic tree is generated using the builder pattern of the mode of succession, the root node of tree-shaped analytic tree is that queue configuration refers to
Enable the top abstract of configuration class.Next layer is main two dvielement, Qdisc and Class in queue configuration-direct, as secondary
Higher level of abstraction.Third layer is specific configuration object, and different configuration objects corresponds to specific scheduling rule, scheduling rule
Design parameter is included in wherein.Meanwhile one or two layers it is abstract include lower layer general-purpose attribute.
Specifically, each layer is abstract in tree-shaped analytic tree and object, is all responsible for construction by the builder of its own.Wherein,
The builder of first layer is mainly responsible for the injection of general parameter, and the second layer is mainly responsible for the note of two dvielements in queue configuration-direct
Enter, the builder of third layer is mainly responsible for the parameter injection of particular schedule rule, while being responsible for queue configuration-direct and configuring object
Generation.That is, first layer parses general parameter, the second layer parses this queue configuration-direct and belongs to classful still
Classless is that still classification policy, third layer parse specific tune for the classification policy that belongs in two classes, ten kinds of scheduling strategies
Spend policing parameter.The specific policy parameter of regularity of third layer parsing includes in ten kinds of scheduling strategies for each scheduling strategy
Parameter.
It should be noted that in order to keep the flexibility of builder pattern configuration step and the consistency of configuration result, together
When avoid the user of northbound interface from repeating to configure the forced type conversion of class, first layer and second layer builder use mould
The mode of plate class designs.
For example, in practical applications, it is assumed that queue configuration-direct is " tc class add dev eth0parent 1:1
Classid 1:20htb rate 3mbit ceil 6mbit burst 15k ", then external program is passed to by northbound interface
The queue configuration parameter format of controller are as follows:
ClassHtbObj h1=HtbObj.builder ()
.add()
.setParent(h0)
.setHandleOrClassld(“1:20”)
.setDeviceID(dev0)
.setDevicelntfNumber(dev0.eth0)
.rate(3,QosObj.RATE_UNIT.MBIT)
.ceil(6,QosObj.RATE_UNIT.MBIT)
.burst(15,QosObj.SIZE_UNIT.KBYTE)
.build();
Queue configuration parameter is parsed using above-mentioned tree-shaped analytic tree, first layer parses parent, ID, device etc.
General parameter, the second layer parse this queue configuration-direct and belong to classful, the ginseng in third layer resolution scheduling strategy HTB
Number can finally parse one then as " tc class add dev eth0parent 1:1 classid 1:20htb rate
The queue configuration-direct of 3mbit ceil 6mbit burst 15k ".
The corresponding queue configuration-direct of each predetermined port is sent to the net by southbound interface by step S230
Network equipment, so that the network equipment carries out queue configuration according to the queue configuration-direct;
Controller is by the corresponding queue configuration-direct of each predetermined port of the network equipment parsed, by southbound interface,
It is sent to the network equipment, so that the network equipment carries out queue configuration according to the queue configuration-direct that controller is sent.
Using the embodiment of the present invention, compared with the prior art, the network equipment can be according to the corresponding queue of each predetermined port
Configuration-direct directly configures queue, and the corresponding queue configuration-direct of each predetermined port is during generation, can
Control selections queue scheduling parameter of regularity, it is thus achieved that the purpose of fine granularity configuration queue.And the north orientation by providing connects
Mouthful, it may be programmed queue configuration can, the programmability of queue configuration opened to the outside world.
As a kind of preferred embodiment of the embodiment of the present invention, controller is corresponding by each predetermined port by southbound interface
Queue configuration-direct is sent to the network equipment, when so that the network equipment carrying out queue configuration according to queue configuration-direct, specifically,
Controller can pass through southbound interface, according to preset southbound interface agreement, queue configuration-direct corresponding to each predetermined port
It is packaged, and the queue configuration-direct after encapsulation is sent to the network equipment by corresponding each predetermined port, so that network
Equipment carries out queue configuration according to the queue configuration-direct that controller is sent.
Specifically, southbound interface agreement is established on Transmission Control Protocol, carries out encrypted transmission using tls protocol.Southbound interface
The establishment process of protocol channel can be as the course of work of the listening thread in controller, and which is not described herein again.
Wherein, according to preset southbound interface agreement, the queue configuration-direct after being packaged includes: the agreement of nybble
The business datum of head and random length, format can be as shown in Figure 3.Wherein, the protocol header of nybble is 32 whole without symbol
The network bytes sequence of figurate number indicates, represents the length of follow-up business data.
Using the present embodiment, by the way that according to preset southbound interface agreement, the corresponding queue configuration of each predetermined port is referred to
Order is packaged, and the queue configuration-direct after encapsulating includes the protocol header of nybble and the business datum of random length, can
Ensure that business datum is completely received by agreement opposite end, the business datum of message class can be parsed correctly.
As another preferred embodiment of the embodiment of the present invention, controller is corresponding by each predetermined port by southbound interface
Queue configuration-direct be sent to before the network equipment, can also be according to the mark of the network equipment, and local save
Each network equipment mark and the corresponding relationship of its status information, judge whether itself connect normally with the network equipment;Such as
Fruit is then to continue queue configuration-direct being sent to the network equipment.
Specifically, controller is according to the mark of the network equipment, in the mark and its state of each network equipment locally saved
In the corresponding relationship of information, search the connection status of controller itself and the network equipment, i.e., itself with the network equipment whether
Connection, if itself connect with the network equipment, then it is assumed that itself connect normally with the network equipment, otherwise it is assumed that malunion
Often.
Using the present embodiment, after the connection status for judging controller and the network equipment, then determine whether each predetermined port
Corresponding queue configuration-direct is sent to the network equipment, i.e., just will be each pre- when controller connect normal with the network equipment
Mouthful corresponding queue configuration-direct in fixed end is sent to the network equipment, avoid controller by queue configuration-direct be sent to not with
Its network equipment connected improves the accuracy of queue configuration-direct transmission.
The embodiment of the invention also discloses a kind of programmable queue configuration devices for software defined network, are applied to control
Device processed, as shown in Figure 4, comprising:
Receiving module 410, each predetermined end for the network equipment transmitted for receiving external program by northbound interface
The queue configuration parameter of mouth;Wherein, the queue configuration parameter of each predetermined port includes port-mark parameter and corresponding
Queue scheduling parameter of regularity;
Parsing module 420 generates the corresponding queue configuration of each predetermined port for parsing to individual queue configuration parameter
Instruction;
The corresponding queue configuration-direct of each predetermined port is sent to for by southbound interface by sending module 430
The network equipment, so that the network equipment carries out queue configuration according to the queue configuration-direct.
Specifically, sending module 430 are specifically used for:
By southbound interface, according to preset southbound interface agreement, to the corresponding queue configuration-direct of each predetermined port into
Row encapsulation, and the queue configuration-direct after encapsulation is sent to the network equipment by corresponding each predetermined port, so that institute
It states the network equipment and queue configuration is carried out according to the queue configuration-direct.
Wherein, the queue configuration-direct after encapsulation includes the protocol header and business datum of nybble.
Specifically, the mark that controller locally preserves each network equipment is closed with its status information and the corresponding of port-mark
System;The port-mark parameter for including in the individual queue configuration parameter is the institute that the external program is sent according to the controller
The port-mark determination of the network equipment is stated, the port-mark of the network equipment is the controller according to the network equipment
Status information determine and send when connecting normal with the network equipment;The queue scheduling parameter of regularity is the external journey
Sequence receives user and inputs gain of parameter.
As a kind of preferred embodiment of the present embodiment, described device can also include:
Judgment module (is not shown) in Fig. 4, for the mark according to the network equipment, and each network locally saved
The corresponding relationship of the mark and its status information of equipment, judges whether itself connect normally with the network equipment;If so, touching
Send out sending module 430.
Using the embodiment of the present invention, the network equipment can be according to the corresponding queue configuration-direct of each predetermined port directly to team
Column are configured, and during generating queue configuration-direct, can control selection queue scheduling parameter of regularity, it is thus achieved that carefully
The purpose of granularity configuration queue.And it by the northbound interface provided, may be programmed queue configuration can, by queue configuration
Programmability opening.
Below by a specific embodiment be provided for the embodiments of the invention it is a kind of for software defined network can
Programming queue configuration method is described in detail.
By taking user 01 and user 02 as an example, experiment topological diagram is as shown in Figure 5.In Fig. 5, including user 01 and user 02,
And Web file download service device Web 05, Iperf simulate common discharge server General 06 and live streaming media service
Device Stream 07 and access switch sAccess 03 and core switch sCore 04.
It should be noted that including user 01 and user 02 and Web file in Fig. 6, Fig. 7, Fig. 8 and Figure 10
Download server Web 05, Iperf simulate common discharge server General 06 and live streaming media server S tream
07 and access switch sAccess 03 and core switch sCore 04.
User 01 is used as experimental group, carries out queue configuration using queue configuration method provided by the embodiment of the present invention,
Middle queue configuration includes common discharge, regular grade service quality (Quality of Service, QoS) ensures and top QoS is protected
The queue of barrier configures.User 02 carries out queue configuration as a control group, using method in the prior art, without any guarantee.
For experimental group user 01, original state triggers common discharge, and common discharge requirement payment total bandwidth is
18Mbps is used for all flows.When downloading file by Web, regular grade QoS guarantee can be triggered, regular grade QoS guarantee is wanted
Seek the downloading rate for ensureing at least 3Mbps, at most 10Mbps.When watching live streaming media, top QoS can be triggered and ensured.Top
Grade QoS ensures the downloading rate for requiring to ensure at least 14Mbps, do not set the upper limit, it is ensured that smooth live streaming viewing experience.
For control group user 02, it is desirable that payment total bandwidth is 18Mbps, and all flows share, without any guarantee.
It should be noted that using a kind of programmable queue for software defined network provided by the embodiment of the present invention
Configuration method carries out the process of queue configuration as the process of above-described embodiment, is not repeated herein and repeats.It should be noted that
It is, in the queue configuration parameter for each predetermined port that external program is transmitted by northbound interface, the team that is ensured for regular grade QoS
It include the ginseng in Stochastic Fair queue (Stochastic Fairness Queueing, SFQ) scheduling strategy in column configuration parameter
It counts, includes in the queue configuration parameter ensured for top QoS first in, first out (First Input First Outpu, BFIFO)
Parameter in scheduling strategy.
Experimental procedure is as follows:
The first step, 01 initiation common discharge of user.At this point, downloading rate is as shown in fig. 6, can be seen downloading speed by Fig. 6
Rate is 17.51Mbps, close to theoretical peak 18Mbps.
Second step, user 01 begin through Web downloading file, and triggering regular grade QoS is ensured.
It is configured using a kind of programmable queue configuration method for software defined network provided by the embodiment of the present invention
User initiates the rate of regular grade QoS guarantee as shown in fig. 7, as can be seen from Figure 7, Web downloading rate is maintained at after queue
9.51Mbps or so, close to theoretical peak 10Mbps;Common discharge about reduction of speed is to 14.78-9.51=5.27Mbps.
Third step, user 01 start to watch live streaming media, trigger top QoS and ensure.
It is configured using a kind of programmable queue configuration method for software defined network provided by the embodiment of the present invention
User initiates the rate of top QoS guarantee as shown in figure 8, as can be seen from Figure 8, live streaming media rate remains after queue
14.01Mbps or so, rate are consistent with live source code rate, obtain reliable guarantee;Web downloading rate is down to 3.12Mbps or so,
Meet the 3Mbps of minimum guarantee;Common discharge reduction of speed has arrived 1Mbps hereinafter, dropping to 389.12Kkps or so.
Fig. 9 is using a kind of programmable queue configuration method for software defined network provided by the embodiment of the present invention
Viewing effect figure of the user under top QoS guarantee after configuration queue, in Fig. 9, right side is the picture of direct broadcast server, left side
It is the viewing picture of user 01, the two is guaranteed without significant difference, viewing experience.
Finally, user 02 is individually allowed to simulate common discharge server to Web file download service device Web 05, Iperf
General 06 and live streaming media server S tream 07 carries out business access.
Final downloading rate is as shown in Figure 10, it can be observed that general service flow rate stabilizes to from Figure 10
7.99Mbps or so, Web downloading rate stabilize to 290.65Kbps or so, and received live streaming flow rate about stabilizes to
9.22Mbps (17.51Mbps-7.99Mbps-300Kbps=9.22Mbps), the live source code rate far below 13Mbps.
Figure 11 is viewing effect figure of the user in the case where no QoS is ensured, in Figure 11, right side is the picture of direct broadcast server,
Left side is the viewing picture of user 02, from Figure 11 it is observed that the live streaming picture in left side persistently flower screen, viewing experience by
Extreme influence.
It is postponed through this embodiment it is found that carrying out queue using queue configuration method provided by the embodiment of the present invention and matching,
The centralized control of flow scheduling can be achieved, guarantee user experience.
For device embodiment, since it is substantially similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
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.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can
It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium,
The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (8)
1. a kind of programmable queue configuration method for software defined network is applied to controller characterized by comprising
The queue configuration parameter for each predetermined port for the network equipment that external program is transmitted by northbound interface is received,
In, the queue configuration parameter of each predetermined port includes port-mark parameter and corresponding queue scheduling parameter of regularity, institute
State the corresponding relationship that controller locally preserves the mark and its status information and port-mark of each network equipment;It is described each predetermined
The port-mark parameter for including in the queue configuration parameter of port is the external program according to controller transmission
What the port-mark of the network equipment determined, the port-mark of the network equipment is the controller according to the network equipment
What status information determination was sent when connecting normal with the network equipment;The queue scheduling parameter of regularity is the external program
It receives user and inputs gain of parameter;
The queue configuration parameter of each predetermined port is parsed, the corresponding queue configuration-direct of each predetermined port is generated;
By southbound interface, the corresponding queue configuration-direct of each predetermined port is sent to the network equipment, so that institute
It states the network equipment and queue configuration is carried out according to the queue configuration-direct.
2. the method according to claim 1, wherein described by southbound interface, by each predetermined port pair
The queue configuration-direct answered is sent to the network equipment, so that the network equipment carries out team according to the queue configuration-direct
Column configure
By southbound interface, according to preset southbound interface agreement, to the corresponding queue configuration-direct of each predetermined port into
Row encapsulation, and the queue configuration-direct after encapsulation is sent to the network equipment by corresponding each predetermined port, so that institute
It states the network equipment and queue configuration is carried out according to the queue configuration-direct.
3. according to the method described in claim 2, it is characterized in that, the queue configuration-direct after the encapsulation includes nybble
Protocol header and business datum.
4. the method according to claim 1, wherein described by southbound interface, by each predetermined port pair
The queue configuration-direct answered is sent to before the network equipment, the method also includes:
According to the mark of the network equipment, and the mark pass corresponding with its status information of each network equipment for locally saving
System, judges whether itself connect normally with the network equipment;
If so, by southbound interface, the corresponding queue configuration-direct of each predetermined port is sent to the network equipment.
5. a kind of programmable queue configuration device for software defined network is applied to controller characterized by comprising
Receiving module, for receiving the queue for each predetermined port for the network equipment that external program is transmitted by northbound interface
Configuration parameter, wherein the queue configuration parameter of each predetermined port includes port-mark parameter and corresponding queue scheduling
Parameter of regularity, the mark that the controller locally preserves each network equipment are closed with its status information and the corresponding of port-mark
System;The port-mark parameter for including in the queue configuration parameter of each predetermined port is the external program according to the control
What the port-mark for the network equipment that device is sent determined, the port-mark of the network equipment is the controller according to institute
The status information of stating the network equipment, which determines, to be sent when connecting normal with the network equipment;The queue scheduling parameter of regularity is
The external program receives user and inputs gain of parameter;
Parsing module parses for the queue configuration parameter to each predetermined port, it is corresponding to generate each predetermined port
Queue configuration-direct;
The corresponding queue configuration-direct of each predetermined port is sent to the net for by southbound interface by sending module
Network equipment, so that the network equipment carries out queue configuration according to the queue configuration-direct.
6. device according to claim 5, which is characterized in that the sending module is specifically used for:
By southbound interface, according to preset southbound interface agreement, to the corresponding queue configuration-direct of each predetermined port into
Row encapsulation, and the queue configuration-direct after encapsulation is sent to the network equipment by corresponding each predetermined port, so that institute
It states the network equipment and queue configuration is carried out according to the queue configuration-direct.
7. device according to claim 6, which is characterized in that the queue configuration-direct after the encapsulation includes nybble
Protocol header and business datum.
8. device according to claim 5, which is characterized in that described device further include:
Judgment module, for the mark according to the network equipment, and the mark of each network equipment locally saved and its shape
The corresponding relationship of state information, judges whether itself connect normally with the network equipment;If so, triggering the sending module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610642549.XA CN106254271B (en) | 2016-08-08 | 2016-08-08 | A kind of programmable queue configuration method and device for software defined network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610642549.XA CN106254271B (en) | 2016-08-08 | 2016-08-08 | A kind of programmable queue configuration method and device for software defined network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106254271A CN106254271A (en) | 2016-12-21 |
CN106254271B true CN106254271B (en) | 2019-07-19 |
Family
ID=58078515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610642549.XA Active CN106254271B (en) | 2016-08-08 | 2016-08-08 | A kind of programmable queue configuration method and device for software defined network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106254271B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660372B (en) * | 2017-10-10 | 2021-12-14 | 中兴通讯股份有限公司 | SDN service configuration method and device |
CN110049280B (en) * | 2019-03-14 | 2022-01-11 | 视联动力信息技术股份有限公司 | Method and device for processing monitoring data |
CN110247863A (en) * | 2019-07-12 | 2019-09-17 | 广州西麦科技股份有限公司 | Data package processing method, device, SDN switch and storage medium |
CN112769639B (en) * | 2020-12-22 | 2022-09-30 | 杭州迪普科技股份有限公司 | Method and device for parallel issuing configuration information |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103236944A (en) * | 2013-04-08 | 2013-08-07 | 北京天地互连信息技术有限公司 | QoS (quality of service) integrated management system based on OpenFlow network |
CN103347013A (en) * | 2013-06-21 | 2013-10-09 | 北京邮电大学 | OpenFlow network system and method for enhancing programmable capability |
CN104378309A (en) * | 2013-08-16 | 2015-02-25 | 中兴通讯股份有限公司 | Method, system and related equipment for achieving QoS in Open Flow network |
CN104468396A (en) * | 2014-10-31 | 2015-03-25 | 北京邮电大学 | CCN flow management system |
CN105704058A (en) * | 2016-05-03 | 2016-06-22 | 南京大学 | Access network flow scheduling system and method based on content |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9686199B2 (en) * | 2014-10-21 | 2017-06-20 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and system for implementing ethernet OAM in a software-defined networking (SDN) system |
-
2016
- 2016-08-08 CN CN201610642549.XA patent/CN106254271B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103236944A (en) * | 2013-04-08 | 2013-08-07 | 北京天地互连信息技术有限公司 | QoS (quality of service) integrated management system based on OpenFlow network |
CN103347013A (en) * | 2013-06-21 | 2013-10-09 | 北京邮电大学 | OpenFlow network system and method for enhancing programmable capability |
CN104378309A (en) * | 2013-08-16 | 2015-02-25 | 中兴通讯股份有限公司 | Method, system and related equipment for achieving QoS in Open Flow network |
CN104468396A (en) * | 2014-10-31 | 2015-03-25 | 北京邮电大学 | CCN flow management system |
CN105704058A (en) * | 2016-05-03 | 2016-06-22 | 南京大学 | Access network flow scheduling system and method based on content |
Non-Patent Citations (1)
Title |
---|
基于OpenFlow网络的Qos集中管理系统的研究与实现;冯靖君;《中国优秀硕士学位论文》;20120815;正文3.1节、4.2.1节,图3-1 |
Also Published As
Publication number | Publication date |
---|---|
CN106254271A (en) | 2016-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106254271B (en) | A kind of programmable queue configuration method and device for software defined network | |
CN106656801B (en) | Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream | |
CN103347013B (en) | A kind of OpenFlow network system and method strengthening programmability | |
CN105634986B (en) | A kind of interchanger implementation method and system | |
CN110476453A (en) | For providing the service granting that network is sliced to client | |
CN107888499A (en) | A kind of distribution subscription system and message forwarding method based on SDN | |
CN104717098B (en) | A kind of data processing method and device | |
CN101228737A (en) | Hierarchical QoS behavioral model | |
Sonkoly et al. | OpenFlow virtualization framework with advanced capabilities | |
CN108206752A (en) | A kind of management method and device regarding networked devices | |
CN109525854A (en) | Treating method and apparatus is broadcast live | |
CN109672857A (en) | Monitor the treating method and apparatus of resource | |
Machado et al. | Policy authoring for software-defined networking management | |
CN108881796A (en) | A kind of video data handling procedure and turn server depending on networking association | |
CN109831393A (en) | More granularity QoS control methods of network-oriented virtualization | |
CN108234178A (en) | A kind of method and apparatus for being managed collectively menu file | |
CN109842685A (en) | A kind of method of data synchronization and device | |
WO2022068244A1 (en) | Network configuration sending method and apparatus, storage medium, and electronic device | |
CN112039746B (en) | Industrial control network system | |
CN107483281A (en) | A kind of statistical method based on software defined network, apparatus and system | |
CN110418097A (en) | A kind of meeting monitoring method and device | |
Shi et al. | Cross-layer QoS enabled SDN-like publish/subscribe communication infrastructure for IoT | |
Lee et al. | Scalable telemetry and network autonomics in ACTN SDN controller hierarchy | |
CN105553811B (en) | Network service implementation method based on more VTN combination in SDN framework | |
EP4113941A1 (en) | Topology-based graphical user interface for network management systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220609 Address after: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd. Address before: 100876 Beijing city Haidian District Xitucheng Road No. 10 Patentee before: Beijing University of Posts and Telecommunications |