WO2019192318A1 - 流量平滑方法、服务器及转发设备 - Google Patents

流量平滑方法、服务器及转发设备 Download PDF

Info

Publication number
WO2019192318A1
WO2019192318A1 PCT/CN2019/078883 CN2019078883W WO2019192318A1 WO 2019192318 A1 WO2019192318 A1 WO 2019192318A1 CN 2019078883 W CN2019078883 W CN 2019078883W WO 2019192318 A1 WO2019192318 A1 WO 2019192318A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
queue
control
message
configuration template
Prior art date
Application number
PCT/CN2019/078883
Other languages
English (en)
French (fr)
Inventor
杜旭
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019192318A1 publication Critical patent/WO2019192318A1/zh

Links

Images

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/215Flow control; Congestion control using token-bucket
    • 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/22Traffic shaping
    • 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/22Traffic shaping
    • H04L47/225Determination of shaping rate, e.g. using a moving window
    • 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/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • 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/29Flow control; Congestion control using a combination of thresholds

Definitions

  • the present application relates to the field of communications, and in particular, to a traffic smoothing method, a server, and a forwarding device.
  • the switch After receiving the address resolution protocol request (ARP Request) of the virtual machine (VM) 1, the switch sends the first packet to the SDN controller (SDN Controller).
  • the controller resolves the address resolution protocol (ARP) address, forwards the ARP Request to the requested VM2, and after receiving the ARP reply (ARPReply) of the VM2, sends the ARP Reply back to VM1, and the OpenFlow flow table is sent.
  • ARP address resolution protocol
  • ARPReply ARP reply
  • the subsequent packets will be forwarded to the VM2 and will not be forwarded by the controller.
  • the network challenges the computing power of the controller and the switch, and the bottleneck is delivered on the first packet. If the number of packets sent by the switch is too large, the traffic of the link to the controller is blocked or even broken. The traffic of the traffic table is also affected. The unknown traffic cannot be forwarded according to the policy. If the controller continues to be sent to the controller, the network is blocked. Will deteriorate and cannot be recovered. At the same time, for large networks, managing increasingly complex networks and devices, and complex applications and increasing data traffic, and the topology in the network is calculated by dynamic protocols, so administrators cannot know the specifics. It is difficult for the network device node to judge whether there is more optimized space, and the monitoring device cannot be dynamically adjusted at any time.
  • the embodiments of the present application are expected to provide a traffic smoothing method, a server, and a forwarding device to improve at least the performance of a control link.
  • an embodiment of the present application provides a traffic smoothing method, including:
  • the embodiment of the present application further provides a traffic smoothing method, including:
  • the control message is sent to the SDN controller through a control link according to a traffic configuration template obtained in advance from the SDN controller.
  • the embodiment of the present application further provides a traffic smoothing server, including a memory and a processor; the memory stores a traffic smoothing computer program, where the processor executes the computer program to implement the method as described above step.
  • an embodiment of the present application further provides a forwarding device, including a memory and a processor, where the memory stores a traffic smoothing computer program, where the processor executes the computer program to implement the steps of the method as described above. .
  • the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and the computer program is executed by the processor to implement the steps of the method according to any one of the first aspects of the embodiments of the present application. Or, when the computer program is executed by the processor, the steps of the method of any one of the second aspects of the embodiments of the present application are implemented.
  • the traffic smoothing method, the server, and the forwarding device in the embodiment of the present application generate a traffic configuration template on the server side, so that the forwarding device smoothly controls the packet transmission rate of the link according to the traffic configuration template, thereby effectively improving the performance of the control link. And effectively improve the configuration efficiency of the forwarding device, reduce configuration errors, and save maintenance costs.
  • FIG. 1 is a flowchart of a method for smoothing traffic on a server side in an embodiment of the present application
  • FIG. 3 is a flowchart of a delivery flow configuration template in an embodiment of the present application.
  • FIG. 4 is a flowchart of a method for smoothing traffic on a forwarding device side in an embodiment of the present application
  • FIG. 5 is a flowchart of a method for smoothing traffic of protocol packets in the embodiment of the present application
  • FIG. 7 is a flowchart of an encapsulated message sent to an SDN controller in the embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a traffic smoothing server according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a forwarding device in an embodiment of the present application.
  • the present application provides a traffic smoothing method, a server, a forwarding device, and a computer readable storage medium.
  • the application monitors the network node forwarding buffering capability through the computing platform, and calculates the traffic configuration of the network node.
  • the traffic configuration template controls the channel bandwidth between the network node and the controller, smoothes the control channel traffic, and ensures control link availability.
  • the computing platform in the embodiment of the present application may be a cloud computing platform, and may be implemented by a server in a specific implementation; the network node in this application includes a forwarding device, such as a switch.
  • the virtual network resource is instantiated on the protocol control plane, and the network resource is programmed and pooled by the SDN controller or the upper layer computing platform, and the life cycle of the virtual network function is managed, and the virtual network resource is added to the catalog of the arranger. , providing information about network functions.
  • the instantiated network can be instantiated by the standard protocol (CloudInit) or by executing the script.
  • the northbound interface can also be used to instantiate the network to the SDN controller.
  • the northbound interface can also be synchronized to the SDN controller using a proprietary protocol;
  • the prior art not only changes the configuration of the distributed network node into a unified configuration under the centralized control plane, but also reduces the network dispersion according to the configuration of the traditional switch, and comprehensively considers the network topology;
  • the calculation and automatic delivery configuration greatly reduce the possibility of configuration errors and save maintenance costs.
  • the computing platform may further configure the software; the SDN controller may be simply referred to as a controller.
  • the control link between the SDN controller and the switch is mainly smoothed on the data forwarding plane, and only the packet feature information of the control packet is extracted and saved, and then the link is idle, and then according to the packet feature.
  • the information packet is sent to the controller, which occupies less memory on the switch.
  • the switch controls the traffic to be smoothly sent to the controller, and records the protocol packet information sent by the cache queue or the media access control (MAC) information of the unknown traffic, and reports the controller to the controller according to the set rate, thereby reducing the controller pressure and selecting Enable or disable the data flooding function to control the unknown traffic to continue flooding to the peer device or directly discard it.
  • the unknown traffic may also be referred to as an unknown data packet or an unidentified data packet.
  • An embodiment of the present application provides a traffic smoothing method. As shown in FIG. 1, the method includes:
  • S101 Generate a traffic configuration template, where the traffic configuration template is used to control a rate of the control packet sent by the forwarding device to the SDN controller.
  • the method of the embodiment of the present application is executed in a server.
  • the control packet in the embodiment of the present application is specifically a packet sent on a control link, such as an access packet, an access request packet, and a forwarding device, and sent to the SDN controller.
  • the first message is specifically a packet sent on a control link, such as an access packet, an access request packet, and a forwarding device, and sent to the SDN controller.
  • the traffic configuration template is sent to the SDN controller, so that the SDN controller sends the traffic configuration template to the forwarding device, so that the forwarding device controls the link according to the traffic configuration template.
  • the control packet is sent to the SDN controller, thereby reducing the number of packets sent to the SDN controller, effectively preventing traffic congestion and chain scission of the control link, thereby improving the performance of the control link.
  • the traffic configuration template is uniformly generated by the server, so that the control plane of the SDN controller is stripped, and all the forwarding devices on the forwarding path are managed by the unified command on the server, thereby eliminating a large number of manual configurations, thereby effectively improving Configuration efficiency, reduced configuration errors, and saved maintenance costs.
  • a switch connecting 20-30 VMs can generate more than 500 new data streams per second, that is, 500 times per second to communicate with the device, if the controller has a 500 kilobyte (K) transaction processing system.
  • K Transaction processing systems
  • a controller can manage 1000 VMs.
  • a data center scale has 15K processing capacity, a single-node controller cannot be loaded, and a controller cluster is needed to bear traffic.
  • the addition of the cluster controller node further increases the communication burden of the switch in the network.
  • the sent packets are encapsulated into PacketIn packets and sent to the controller.
  • the server generates a traffic configuration template by using a server, which can eliminate a large number of manual configurations, thereby effectively improving configuration efficiency and reducing configuration errors. Saves on maintenance costs.
  • the traffic configuration template includes queue feature information corresponding to the packet type, a queue priority, a queue cache threshold, a queue rate threshold, and an overflow action.
  • the generating a traffic configuration template includes: acquiring, by the SDN controller, a network size and a forwarding cache capability of the forwarding device; and according to the network size and the forwarding cache Ability to generate traffic configuration templates.
  • control packet includes an access protocol packet and an unidentified data packet;
  • packet type includes a protocol type and is used to indicate that the data packet is not identified. Unknown type.
  • the access protocol packet includes protocol packets such as ARP and Dynamic Host Configuration Protocol (DHCP).
  • the packet type includes ARP, DHCP, and so on.
  • control packet with a large bandwidth of the control link such as ARP, DHCP, and the like, needs to be smoothed to control the link traffic, and the server is responsible for processing the pool.
  • the resource the default traffic profile, the queue feature information of the classified packet type, the queue cache threshold, the queue priority, and the queue rate threshold.
  • the SDN controller When the switch device is online, the SDN controller discovers the topology node. After receiving the support capability from the switch, the SDN controller reports the support capability of the network node. The server generates a specific traffic configuration template based on the support capability calculation, thereby implementing the upper layer. The server implements the instantiation of the network resources, and the specific configuration is performed by injecting the generated traffic configuration template, and then the configuration is delivered to the controller through the northbound interface.
  • the embodiment of the present application provides an optional traffic smoothing method, and specifically provides a method for instantiating network resources by using a cloud computing platform.
  • the method in the embodiment of the present application is implemented in a server, as shown in FIG. 2 . As shown, the method includes:
  • Step 11 The cloud computing platform generates a default template resource according to the network size and type, where the default template resource includes (cache) queue feature information, queue (cache) threshold, (cache) queue priority, (cache) queue rate threshold, Pooled resources such as (buffer queue smoothing rate);
  • Step 12 When the switch is connected to the switch and the switch is connected to the controller, the switch reports the switch capability. As an example, the switch reports the topology, and the controller discovers the topology node and protocol switch capability of the switch.
  • Step 13 according to the switch capability, the controller notifies the cloud computing platform of the speed limit smoothing support parameter, and the cloud computing platform uniformly allocates network resources to generate a traffic configuration template.
  • the cloud computing platform completes the generation of the traffic configuration template, and then the traffic configuration template is injected to configure the service.
  • the method further includes:
  • Step 21 The cloud computing platform instantiates the network resource, generates a traffic configuration template, and sends the traffic configuration template to the controller through the northbound interface.
  • the traffic configuration template may also be referred to as a smooth rate limiting configuration template.
  • the controller may be an SDN controller;
  • Step 22 The controller determines, according to different virtual network features (VNFs), whether the network node supports the smooth rate limiting capability, and if the network node supports the smooth rate limiting capability, sends a traffic configuration template to the network node.
  • VNFs virtual network features
  • the network node can be a forwarding device.
  • Step 23 The controller sends a traffic configuration template, and the template traffic configuration includes different types of protocol packet types.
  • the traffic configuration template also includes a separate queue feature value and a queue threshold for each protocol packet. Level and information such as queue rate thresholds.
  • the embodiment of the present application further provides a traffic smoothing method. As shown in FIG. 4, the method includes:
  • S202 Send the control packet to the SDN controller by using a control link according to a traffic configuration template that is obtained in advance from the SDN controller.
  • a traffic configuration template that is obtained in advance from the SDN controller.
  • the method of the embodiment of the present application is performed in a forwarding device, for example, in a switch.
  • the embodiment of the present application obtains a traffic configuration template generated by the server, and sends a control packet to the SDN controller on the control link, thereby reducing the number of packets sent to the SDN controller, and effectively preventing traffic blocking and chain breaking of the control link. , thereby improving the performance of the control link; and can effectively improve the configuration efficiency, reduce configuration errors, and save maintenance costs.
  • the sending, by the control link, the control packet to the SDN controller according to the traffic configuration template that is obtained from the SDN controller in advance includes:
  • An optional embodiment of the present application after extracting the packet feature information of the control packet, encapsulates the packet feature information and sends the packet feature information to the SDN controller, so that the packet can be effectively and smoothly sent to the SDN controller.
  • the rate of PacketIn packets ensures that the SDN controller does not suddenly experience too much traffic impact, thus effectively avoiding the impact of the SDN controller transmitting the forwarding flow table, and effectively avoiding the broken link between the switch and the SDN controller.
  • control message includes a protocol message and an unknown data message.
  • the switch when the switch receives the traffic sent by the attached VM, the received traffic belongs to the protocol packet in the traffic configuration template, and if the receiving rate is smaller than the corresponding queue rate in the traffic configuration template. If the threshold is exceeded, the encapsulated packet is sent to the SDN controller in the OpenFlow PacketIn packet. If the receiving rate exceeds the queue rate threshold, the packet feature information is extracted, and the packet feature information is buffered into the corresponding cache queue.
  • the received traffic belongs to an unknown data packet, it is also processed according to the above procedure.
  • the flow table is sent to the unknown data packet to suppress the impact of the unknown data packet.
  • the corresponding cache queue is scanned according to the queue priority, the packet feature information is extracted, and the PacketIn packet is re-encapsulated and sent to the SDN controller.
  • the packet feature information is deleted from the cache queue until there is no cache information in the cache queue, and the next cache pair queue is continuously scanned.
  • the traffic configuration template includes a queue rate threshold corresponding to the packet type.
  • the extracting the packet feature information of the control packet according to the traffic configuration template includes:
  • the packet feature information of the control packet is extracted.
  • the packet feature information is encapsulated and sent to the SDN controller on the control link, including:
  • the packet feature information is encapsulated and sent to the SDN controller through the control link.
  • the packet feature information is encapsulated by using the Before the control link is sent to the SDN controller, it includes:
  • the traffic configuration template further includes queue feature information corresponding to the packet type, a queue cache threshold, and an overflow action.
  • the storing the message feature information in a cache queue corresponding to the control message includes:
  • the message feature information is stored in the cache queue.
  • the traffic configuration template further includes a queue priority corresponding to the packet type.
  • the encapsulating the packet feature information, before being sent to the SDN controller by using the control link includes:
  • the message feature information is read from the cache queue according to the determined queue priority.
  • the control packet includes an access protocol packet and an unidentified data packet.
  • the packet type includes a protocol type and an unknown type used to indicate that the data packet is not identified.
  • an embodiment of the present application provides an optional traffic smoothing method, and specifically provides a method for controlling a packet to be sent to a switch.
  • the method in the embodiment of the present application is executed in a server.
  • the control packet of the monitoring includes not only protocol packets such as ARP and DHCP, but also the type of the protocol that can be extended according to the specific networking.
  • the protocol of the virtual machine access protocol such as the IPV6ND and the STP, is mainly processed.
  • the packet feature information is buffered and sent to the packet to smooth the protocol packet PacketIn.
  • the method includes:
  • Step 31 The switch receives the packet sent by the VM, and searches for the queue feature information according to the traffic resource configuration template. If it is not the protocol packet to be monitored, the switch sends the packet to the controller for processing; wherein the controller may be an SDN controller;
  • Step 32 If it is a protocol packet to be monitored, determine whether the rate token bucket has a token. As an example, determining whether the rate token bucket has a token is: determining whether the receiving rate exceeds the queue rate threshold. If the receiving rate does not exceed the queue rate threshold, it indicates that the rate token bucket has no token. Perform step 33; if the receiving rate exceeds the queue rate threshold, it may indicate that the rate token bucket has a token, and step 34 is performed;
  • Step 33 The token of the rate token bucket is decremented by 1, and the packet encapsulation PacketIn is sent to the SDN controller.
  • Step 34 If the receiving rate exceeds the queue rate threshold, determine whether the cache queue is full. As an example, determining whether the cache queue is full is: determining whether the cache queue exceeds the cache queue threshold, if the cache queue is not exceeded. If the cache queue is not full, go to step 35. If the cache queue threshold is exceeded, the cache queue is full. Go to step 36.
  • step 35 the extracted message feature information is saved in the cache queue and sent in a delayed manner.
  • step 36 the device is discarded or forced to be sent to the controller according to the overflow action configuration.
  • an embodiment of the present application provides an optional traffic smoothing method, and specifically provides a method for controlling a packet to be sent to a switch.
  • the method in the embodiment of the present application is executed in a server.
  • the control message monitored in the middle includes an unknown data message. As shown in FIG. 6, the method includes:
  • step 41 the switch receives an unknown data packet.
  • step 42 it is determined whether the receiving rate exceeds the rate threshold; if the receiving rate does not exceed the rate threshold, step 43 is performed, and if the receiving rate exceeds the rate threshold, step 46 is performed.
  • Step 43 If the receiving rate does not exceed the rate threshold, extract the MAC information of the unknown data packet, decrement the token of the rate token bucket, and send the unknown data packet to the controller learning address for use; wherein the controller It can be an SDN controller.
  • step 44 the temporary MAC flow table is delivered, and the exit is an empty exit, and the traffic is continuously sent.
  • step 45 the controller learns the MAC address, generates a flow table that is actually valid, overwrites the previous temporary flow table, and correctly guides the data flow direction.
  • step 46 if the receiving rate exceeds the rate threshold, the message feature information is extracted.
  • Step 47 Determine whether the cache queue is full.
  • the method for determining whether the cache queue is full is: determining whether the cache queue exceeds the queue threshold. If the cache queue threshold is not exceeded, the cache queue is not full. Go to step 48. If the cache queue threshold is exceeded, indicating that the cache queue is full, go to step 49.
  • Step 48 buffering the packet feature MAC
  • Step 49 Send a message to the controller according to the overflow action or directly discard the message.
  • the buffering of the feature information of the packet is completed, so that the feature information cached in the scan queue can be encapsulated into the PacketIn packet and sent to the controller.
  • the method further includes:
  • step 51 the buffer queue is periodically scanned, and the single-rate two-pass algorithm is used.
  • the timing interval is 1000 times of the internal minimum clock TICK as the basic unit of timing, which can ensure the maximum utilization of the switch processing.
  • Step 52 Scan the environment queue periodically to determine whether there is a token in the rate token bucket.
  • Step 53 If there is no token in the rate token bucket, put a token of the rate number
  • Step 54 If there is a remaining token in the rate token bucket, look for a buffer queue of a high priority, for example, to find a buffer queue of the highest priority, extract the feature information of the buffer queue, re-group the packet, and package the packet into a PacketIn packet.
  • the controller deletes the feature information from the cache queue at the same time;
  • Step 55 to step 56 if the feature information of the high priority buffer queue is empty, continue to search for buffer queues of other priorities, repeat operations until all buffer queues are empty, and end scanning; wherein the other priority buffers
  • the queue may be a buffer queue of priority in step 54 that is lower than the highest priority.
  • the embodiment of the present application further provides a traffic smoothing server.
  • the server includes a memory 60 and a processor 62.
  • the memory 60 stores a traffic smoothing computer program, and the processor 62 executes the computer program.
  • the processor 62 executes the computer program to implement the following steps: generating a traffic configuration template, where the traffic configuration template is used to control a control packet sent by the forwarding device to the SDN controller on the control link. Rate; the traffic configuration template is sent to the SDN controller.
  • the traffic configuration template includes queue feature information, a queue priority, a queue cache threshold, a queue rate threshold, and an overflow action corresponding to the packet type.
  • the processor 62 executes the computer program, the following steps are performed: obtaining a network size and a forwarding buffering capability of the forwarding device from the SDN controller; The network size and the forwarding cache capability generate a traffic configuration template.
  • the embodiment of the present application further provides a forwarding device.
  • the forwarding device includes a memory 70 and a processor 72.
  • the memory 70 stores a traffic smoothing computer program, and the processor 72 executes the computer program.
  • the processor 72 executes the computer program, the following steps are performed: receiving a control message; sending the control message through a control link according to a traffic configuration template acquired from an SDN controller in advance Give the SDN controller.
  • the processor 72 executes the computer program, the following steps are performed: extracting, according to the traffic configuration template, packet feature information of the control packet, by using the The control link encapsulates the message characteristic information and sends the message to the SDN controller.
  • the traffic configuration template includes a queue rate threshold corresponding to the packet type.
  • the processor 72 executes the computer program, the following steps are performed: determining, according to the packet type of the access packet and the traffic configuration template, The queue rate threshold corresponding to the access packet is obtained. When the receiving rate of the control packet is not less than the determined queue rate threshold, the packet feature information of the control packet is extracted.
  • the processor 72 executes the computer program to implement the following steps: after the receiving rate is changed from not less than the determined queue rate threshold to less than the determined queue rate threshold And encapsulating the packet feature information, and sending the message to the SDN controller by using the control link.
  • the processor 72 executes the computer program, the following steps are implemented: storing the message feature information in a cache queue corresponding to the control message.
  • the traffic configuration template further includes queue feature information, a queue cache threshold, and an overflow action corresponding to the packet type.
  • the processor 72 executes the computer program, the following steps are performed: determining and controlling according to the packet type of the control packet and the traffic configuration template.
  • the queue characteristic information corresponding to the packet, the queue buffer threshold, and the overflow action determining the cache queue according to the determined queue feature information; determining whether the cache queue overflows according to the determined queue cache threshold; and if overflowing, according to the determined overflow
  • the action is: processing the control message; if not overflowing, storing the message feature information in the cache queue.
  • the traffic configuration template further includes a queue priority corresponding to the packet type.
  • the processor 72 executes the computer program, the following steps are performed: determining, according to the packet type and the traffic configuration template, a type corresponding to the packet type Queue priority; reading the packet feature information from the cache queue according to the determined queue priority.
  • control packet includes an access protocol packet and an unidentified data packet;
  • packet type includes a protocol type and is used to indicate that the data packet is not identified. Unknown type.
  • the processor 72 executes the computer program, the following steps are implemented: when receiving a rate of receiving the unidentified data packet is less than a determined queue rate threshold, Extracting media access control information of the unidentified data message; and sending the media access control information to the SDN controller.
  • the embodiment of the present application provides a computer readable storage medium, which stores a traffic smoothing computer program 1 for a server, and/or stores a traffic smoothing computer program 2 for a forwarding device;
  • the computer readable storage medium in the embodiment of the present application may be a random access memory (RAM), a flash memory, a read-only memory (ROM), and an erasable programmable read only memory (Erasable PROM, EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Register, Hard Disk, Mobile Hard Disk, Compact Disc Read-Only Memory (CD-ROM), or any other known in the art Form of storage medium.
  • a storage medium can be coupled to the processor to enable the processor to read information from, and write information to, the storage medium; or the storage medium can be an integral part of the processor.
  • the processor and the storage medium may be located in an application specific integrated circuit.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the above integration
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the above-described integrated unit of the present application may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a stand-alone product.
  • the technical solution of the embodiments of the present application may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

本申请实施例公开了一种流量平滑方法、服务器及转发设备。所述方法包括:生成流量配置模板,所述流量配置模板用于控制转发设备在控制链路向软件定义网络(SDN)控制器发送的控制报文的速率;将所述流量配置模板发送给所述SDN控制器。

Description

流量平滑方法、服务器及转发设备
相关申请的交叉引用
本申请基于申请号为201810298985.9、申请日为2018年4月4日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。
技术领域
本申请涉及通信领域,特别是涉及一种流量平滑方法、服务器及转发设备。
背景技术
在软件定义网络(Software Defined Network,SDN)中,交换机在接收到虚拟机(Virtual Machine,VM)1的地址解析协议请求(ARP Request)后,首包上送到SDN控制器(SDN Controller),控制器解析地址解析协议(Address Resolution Protocol,ARP)地址,转发ARP Request到被请求的VM2,收到VM2的ARP应答(ARPReply)后,将ARP Reply发送回VM1,同时形成OpenFlow的流表下发到本地交换机,后续报文经过交换机时将检查转发表项,对符合规则的报文转发到VM2,不需要经过控制器转发。
网络对控制器以及交换机的计算能力提出挑战,瓶颈在首包上送的能力。由于交换机上送的报文太多,会造成和控制器链路的流量阻塞,甚至断链;同时影响流表的下发,导致未知流量无法按照策略转发,如果继续上送控制器,网络阻塞将恶化,无法恢复。同时对于大型网络来说,管理着越来越复杂的网络和设备,并且各种复杂的应用以及越来越大的数据流量,而且网络中拓扑是动态协议计算的,因此管理员无法知道具体的网络 设备节点,难以判断是否存在更优化的空间,并且不能随时动态调整监控设备。
发明内容
为了克服上述缺陷,本申请实施例期望提供一种流量平滑方法、服务器及转发设备,用以至少提高控制链路的性能。
为解决上述技术问题,第一方面,本申请实施例提供一种流量平滑方法,包括:
生成流量配置模板,所述流量配置模板用于控制转发设备在控制链路向SDN控制器发送的控制报文的速率;
将所述流量配置模板发送给所述SDN控制器。
第二方面,本申请实施例还提供一种流量平滑方法,包括:
接收控制报文;
根据预先从SDN控制器获取的流量配置模板,通过控制链路上将所述控制报文发送给所述SDN控制器。
第三方面,本申请实施例还提供一种流量平滑服务器,包括存储器和处理器;所述存储器存储有流量平滑计算机程序,所述处理器执行所述计算机程序时,以实现如上所述方法的步骤。
第四方面,本申请实施例还提供一种转发设备,包括存储器和处理器;所述存储器存储有流量平滑计算机程序,所述处理器执行所述计算机程序时,以实现如上所述方法的步骤。
第五方面,本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现本申请实施例第一方面中任意一项所述方法的步骤;或者,该计算机程序被处理器执行时实现本申请实施例第二方面中任意一项所述方法的步骤。
本申请实施例的流量平滑方法、服务器及转发设备,通过在服务器侧 生成流量配置模本,以使转发设备根据流量配置模板平滑控制链路的报文传输速率,从而有效提高控制链路的性能,并有效提高转发设备的配置效率,减少配置错误,节约了维护成本。
附图说明
图1是本申请实施例中服务器侧的流量平滑方法的流程图;
图2是本申请实施例中生成流量配置模板的流程图;
图3是本申请实施例中下发流量配置模板的流程图;
图4是本申请实施例中转发设备侧的流量平滑方法的流程图;
图5是本申请实施例中协议报文的流量平滑方法的流程图;
图6是本申请实施例中缓存报文特征信息的流程图;
图7是本申请实施例中封装报文上送SDN控制器的流程图;
图8是本申请实施例中一种流量平滑服务器的结构示意图;
图9是本申请实施例中一种转发设备的结构示意图。
具体实施方式
为了解决现有技术的问题,本申请提供了一种流量平滑方法、服务器、转发设备及计算机可读存储介质,本申请通过计算平台监控收集网络节点转发缓存能力,计算网络节点的流量配置,下发流量配置模板,以控制网络节点与控制器之间通道带宽,平滑控制通道流量,保证控制链路可用性。
本申请实施例中计算平台可以是云计算平台,在具体实现时可以通过服务器来实现;本申请中网络节点包括转发设备,例如交换机。
本申请实施例在协议控制面上,实例化虚拟网络资源,通过SDN控制器或者上层计算平台编排、池化网络资源,并管理虚拟网络功能的生命周期,将虚拟网络资源加入到编排器的目录,提供网络功能的信息。例如实例化网络,可以通过标准协议(CloudInit)或者通过执行脚本编译完成,通 过北向接口给SDN控制器下发的实例化网络,北向接口也可以使用私有的协议同步给SDN控制器;从而相对于现有技术,不仅由分布式的网络节点单独的配置变成了集中式控制面下的统一配置,相对于传统的交换机的配置下发,减少网络的分散性,全面考虑网络拓扑;而且通过平台计算,自动下发配置,大大减少了配置错误的可能,节约了维护成本。本申请实施例中计算平台可以又管理软件构成;SDN控制器可以简称为控制器。
本申请实施例在数据转发面上,主要平滑SDN控制器与交换机之间的控制链路,通过只提取并保存控制报文的报文特征信息,再控制链路空闲后,重新根据报文特征信息组包上送控制器,占用交换机内存少。交换机控制流量平滑上送控制器,通过缓存队列记录上送的协议报文信息或者未知流量的媒体访问控制(MAC)信息,按照设置的速率平滑上报控制器,减小控制器压力,同时可以选择开启或者关闭数据面泛洪功能,控制未知流量继续泛洪到隧道对端设备或者直接丢弃。其中未知流量也可以称为未知数据报文或未被标识的数据报文。基于上述描述,以下结合附图以及实施例,对本申请实施例进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请实施例,并不限定本申请实施例。
本申请实施例提供一种流量平滑方法,如图1所示,所述方法包括:
S101,生成流量配置模板,所述流量配置模板用于控制转发设备在控制链路向SDN控制器发送的控制报文的速率;
S102,将所述流量配置模板发送给所述SDN控制器。
本申请实施例的方法在服务器中执行;本申请实施例中控制报文具体为在控制链路上发送的报文,例如接入报文、接入请求报文、转发设备向SDN控制器发送的首个报文。
本申请实施例通过生成流量配置模板,将所述流量配置模板发送给所述SDN控制器,从而使SDN控制器将流量配置模板发送给转发设备,以 使转发设备根据流量配置模板在控制链路上向SDN控制器发送控制报文,从而减少向SDN控制器送的报文数量,有效避免控制链路的流量阻塞、断链,从而提高提高控制链路的性能。
本申请实施例通过服务器统一生成流量配置模板,从而将SDN控制器的控制面剥离,由服务器上的统一指令来管理转发路径上的所有转发设备,从而可以消除大量的手动配置,进而可以有效提高配置效率,减少配置错误,节约了维护成本。
例如,一个交换机连接20-30个VM,每秒大概可以产生500以上的新的数据流,也即每秒有500次与设备通信,如果控制器有500千字节(K)的事务处理系统(Transaction processing systems,TPS)性能,则一个控制器大概可以管理1000个VM,当一个数据中心规模具有15K的处理能力时,单节点控制器无法负载,就需要控制器集群来负担流量。集群控制器节点的增加也进一步加重了网络中交换机的通信负担,上送的报文封装成PacketIn报文发送给控制器。
如果影响流表的下发,将导致未知流量无法按照策略转发,如果继续将数据传输至控制器,网络阻塞将恶化,无法恢复。并且对于大型网络来说,管理着越来越复杂的网络和设备,各种复杂的应用以及越来越大的数据流量,而且网络中拓扑是动态协议计算的,因此管理员无法知道具体的网络设备节点,难以判断是否存在更优化的空间,并且不能随时动态调整监控设备,而本申请实施例通过服务器统一生成流量配置模板,可以消除大量的手动配置,从而有效提高配置效率,减少配置错误,节约了维护成本。
在上述实施例的基础上,提出本申请实施例的其他实施例。
在本申请的一种可选实施例中,所述流量配置模板包括与报文类型对应的队列特征信息、队列优先级、队列缓存阈值、队列速率阈值和溢出动 作。
在本申请的一种可选实施例中,所述生成流量配置模板,包括:从所述SDN控制器获取网络规模和所述转发设备的转发缓存能力;根据所述网络规模和所述转发缓存能力,生成流量配置模板。
在本申请的一种可选实施例中,所述控制报文包括接入协议报文和未被标识的数据报文;所述报文类型包括协议类型和用于表明数据报文未被标识的未知类型。
例如接入协议报文包括ARP、动态主机设置协议(Dynamic Host Configuration Protocol,DHCP)等协议报文。报文类型包括ARP、DHCP等。
本申请可选实施例中,对占用控制链路带宽比较多的控制报文,如ARP、DHCP等协议报文以及未知数据报文,需要平滑限速控制链路流量,由服务器负责处理池化资源、初始化默认的流量模板、分类报文类型的队列特征信息、队列缓存阈值、队列优先级、队列速率阈值等。
当交换机设备上线,SDN控制器发现拓扑节点,在收到交换机上报支持能力后,由SDN控制器上报网络节点的支持能力;服务器根据支持能力计算,生成具体的流量配置模板,从而实现使用上层的服务器来实现网络资源的实例化,通过注入生成的流量配置模板,编排具体业务,然后通过北向接口下发到控制器,由控制器下发具体配置给交换机。
基于前述实施例的描述,本申请实施例提供一种可选的流量平滑方法,具体提供一种通过云计算平台实例化网络资源的方法,本申请实施例中方法在服务器中执行,如图2所示,所述方法包括:
步骤11,云计算平台根据网络规模以及类型生成默认模板资源,所述默认模板资源包括(缓存)队列特征信息、队列(缓存)阀值、(缓存)队列优先级、(缓存)队列速率阈值、(缓冲队列平滑速率)等池化资源;
步骤12,当交换机上线、交换机与控制器建立连接后,交换机上报交换机能力,作为一种示例,交换机上报拓扑,控制器发现交换机的拓扑节点,协议交换机能力;
步骤13,根据交换机能力,控制器将限速平滑支持参数通知云计算平台,云计算平台统一分配网络资源,生成流量配置模板。
基于以上步骤,云计算平台完成流量配置模板的生成,进而可以通过注入流量配置模板,编排业务,如图3所示,所述方法进一步包括:
步骤21,云计算平台实例化网络资源,生成流量配置模板,通过北向接口将所述流量配置模板下发到控制器;其中,所述流量配置模板也可以称为平滑限速配置模板;其中,所述控制器可以是SDN控制器;
步骤22,控制器根据不同的虚拟的网络功能(Virtual Network Feature,VNF),判断网络节点是否支持平滑限速能力,如果网络节点支持平滑限速能力则向网络节点下发流量配置模板;其中,网络节点可以为转发设备。
步骤23,控制器下发流量配置模板,在模板流量配置中包括不同分类的协议报文类型,在流量配置模板中也包括每个协议报文设置单独的队列特征值、队列阀值,队列优先级以及队列速率阈值等信息。
本申请实施例还提供了一种流量平滑方法,如图4所示,所述方法包括:
S201,接收控制报文;
S202,根据预先从SDN控制器获取的流量配置模板,通过控制链路将所述控制报文发送给所述SDN控制器;实际应用中,作为一种示例,对所述控制报文进行封装后发送给所述SDN控制器,例如封装成PacketIn报文。
本申请实施例的方法在转发设备中执行,例如在交换机中执行。
本申请实施例通过获取服务器生成的流量配置模板,在控制链路上向SDN控制器发送控制报文,从而减少向SDN控制器送的报文数量,有效避 免控制链路的流量阻塞、断链,从而提高提高控制链路的性能;并可以有效提高配置效率,减少配置错误,节约了维护成本。
在上述实施例的基础上,提出本申请实施例的其他实施例。
在本申请的一种可选实施例中,所述根据预先从SDN控制器获取的流量配置模板,通过控制链路将所述控制报文发送给所述SDN控制器,包括:
根据所述流量配置模板,提取所述控制报文的报文特征信息,通过所述控制链路将所述报文特征信息封装后发送给所述SDN控制器。
本申请的一种可选实施例,通过提取所述控制报文的报文特征信息,将所述报文特征信息封装后发送给所述SDN控制器,从而可以有效平滑发送到SDN控制器的PacketIn报文的速率,保证SDN控制器不会突发受到太大的流量冲击,从而有效避免影响SDN控制器下发转发流表的速度,有效避免交换机与SDN控制器之间断链。
在本申请的一种实施例中,控制报文包括协议报文和未知数据报文。
在本申请的一种实施例中,当交换机接收到下挂VM发送的流量,当收到的流量属于流量配置模板中的协议报文时,并且若接收速率小于流量配置模板中相应的队列速率阈值,则封装报文在OpenFlow PacketIn报文中上送给SDN控制器;若接收速率超过了队列速率阈值,则提取报文特征信息,并缓冲报文特征信息到相应的缓存队列中;
当收到的流量属于未知数据报文,也按照上述的流程处理,同时为了防止未知数据报文一直上送冲击交换机,对未知数据报文下发流表,抑制未知数据报文的冲击。
在一定的时间隔内,如果上送控制器的报文没有达到上送阈值,按照队列优先级扫描相应的缓存队列,提取报文特征信息,重新封装PacketIn报文发送给SDN控制器,同时将报文特征信息从缓存队列中删除,直到缓存队列中没有缓存信息,继续扫描下一个缓存对队列。
基于本申请的一种可选实施例,所述流量配置模板包括与报文类型对应的队列速率阈值。
在本申请的一种可选实施例中,所述根据所述流量配置模板,提取所述控制报文的报文特征信息,包括:
根据所述接入报文的报文类型和所述流量配置模板,确定与所述接入报文对应的队列速率阈值;
当接收所述控制报文的接收速率不小于确定的队列速率阈值时,提取所述控制报文的报文特征信息。
在本申请的一种可选实施例中,所述在所述控制链路上,将所述报文特征信息封装后发送给所述SDN控制器,包括:
当所述接收速率从不小于确定的队列速率阈值转变成小于确定的队列速率阈值后,将所述报文特征信息进行封装,通过所述控制链路上发送给所述SDN控制器。
在本申请的一种可选实施例中,所述当所述接收速率从不小于确定的队列速率阈值转变成小于确定的队列速率阈值后,将所述报文特征信息进行封装,通过所述控制链路发送给所述SDN控制器之前,包括:
将所述报文特征信息存储在与所述控制报文对应的缓存队列中。
其中,所述流量配置模板还包括与报文类型对应的队列特征信息、队列缓存阈值和溢出动作。
在本申请的一种可选实施例中,所述将所述报文特征信息存储在与所述控制报文对应的缓存队列中,包括:
根据所述控制报文的报文类型和所述流量配置模板,确定与所述控制报文对应的队列特征信息、队列缓存阈值和溢出动作;
根据确定的队列特征信息,确定所述缓存队列;
根据确定的队列缓存阈值,判断所述缓存队列是否溢出;
若溢出,根据确定的溢出动作,对所述控制报文进行处理;
若未溢出,将所述报文特征信息存储在与所述缓存队列中。
其中,所述流量配置模板还包括与报文类型对应的队列优先级。
在本申请的一种可选实施例中,所述将所述报文特征信息进行封装,通过所述控制链路上发送给所述SDN控制器之前,包括:
根据所述报文类型和所述流量配置模板,确定与所述报文类型对应的队列优先级;
根据确定的队列优先级,从所述缓存队列中读取所述报文特征信息。
其中,所述控制报文包括接入协议报文和未被标识的数据报文;所述报文类型包括协议类型和用于表明数据报文未被标识的未知类型。
在本申请的一种可选实施例中,当所述控制报文为未被标识的数据报文时,所述根据所述接入报文的报文类型和所述流量配置模板,确定与所述接入报文对应的队列速率阈值之后,包括:
当接收所述未被标识的数据报文的接收速率小于确定的队列速率阈值时,提取所述未被标识的数据报文的媒体访问控制信息;
将所述媒体访问控制信息发送给所述SDN控制器。
基于前述实施例的描述,本申请实施例提供一种可选的流量平滑方法,具体提供一种控制报文上送交换机处理的方法,本申请实施例中方法在服务器中执行,本申请实施例中监控的控制报文不仅包括ARP、DHCP等协议报文,而且还包括根据具体的组网可以扩展协议种类,例如主要处理虚拟机接入协议IPV6ND、STP等协议,本申请实施例中监控到控制报文攻击超过速率阈值,就缓冲报文特征信息,并延时上送,从而平滑处理协议报文PacketIn。
如图5所示,所述方法包括:
步骤31,交换机收到VM上送的报文,根据流量资源配置模板查找队 列特征信息,如果不是需要监控的协议报文,上送控制器处理;其中,所述控制器可以是SDN控制器;
步骤32,如果是需要监控的协议报文,判断速率令牌桶是否有令牌。作为一种示例,判断速率令牌桶是否有令牌的实现方式是:判断接收速率是否超出了队列速率阀值,如果接收速率没有超出队列速率阀值,可表明速率令牌桶没有令牌,执行步骤33;如果接收速率超出队列速率阀值,可表明速率令牌桶有令牌,执行步骤34;
步骤33,将速率令牌桶的令牌减1,报文封装PacketIn上送SDN控制器;
步骤34,如果接收速率超出队列速率阀值,判断缓存队列是否已满,作为一种示例,判断缓存队列是否已满的实现方式是:判断缓存队列是否超出缓存队列阀值,如果没有超出缓存队列阀值,表明缓存队列未满,执行步骤35;如果超出缓存队列阀值,表明缓存队列已满,执行步骤36。
步骤35,提取报文特征信息保存在缓存队列中,延时发送。
步骤36,根据溢出动作配置丢弃或者强制上送控制器。
基于前述实施例的描述,本申请实施例提供一种可选的流量平滑方法,具体提供一种控制报文上送交换机处理的方法,本申请实施例中方法在服务器中执行,本申请实施例中监控的控制报文包括未知数据报文。如图6所示,所述方法包括:
步骤41,交换机收到未知数据报文。
步骤42,判断接收速率是否超出了速率阀值;如果接收速率未超过速率阈值,执行步骤43,如果接收速率超过速率阈值,执行步骤46。
步骤43,如果接收速率未超出速率阈值,提取未知数据报文的MAC信息,将速率令牌桶的令牌减1,将未知数据报文发送给控制器学习地址使用;其中,所述控制器可以是SDN控制器。
步骤44,下发临时MAC流表,出口为空出口,抑制流量的继续上送。
步骤45,控制器学习MAC地址,生成实际生效的流表,覆盖在先的临时流表,正确引导数据流向。
步骤46,如果接收速率超出了速率阈值,提取报文特征信息。
步骤47,判断缓存队列是否已满,作为一种示例,判断缓存队列是否已满的实现方式是:判断缓存队列是否超过了队列阀值,如果没有超出缓存队列阀值,表明缓存队列未满,执行步骤48;如果超出缓存队列阀值,表明缓存队列已满,执行步骤49。
步骤48,缓存报文特征MAC;
步骤49,根据溢出动作上送报文到控制器或者直接丢弃报文。
基于以上步骤,完成报文特征信息的缓存,从而可以进行扫描队列中缓存的特征信息,封装到PacketIn报文中发送给控制器,如图7所示,所述方法进一步包括:
步骤51,定时扫描缓存队列,使用单速率双通算法,定时间隔为内部最小时钟TICK的1000倍作为定时的基本单位,可以保证交换机处理的最大利用率;
步骤52,定时扫描环境队列,判断速率令牌桶中是否有令牌。
步骤53,如果速率令牌桶中没有令牌,放入速率个数的令牌;
步骤54,如果速率令牌桶中还有剩余令牌,查找高优先级的缓冲队列,例如查找最高优先级的缓冲队列,提取缓冲队列的特征信息,重新组包,封装成PacketIn报文发送给控制器,同时将特征信息从缓存队列中删除;
步骤55至步骤56,如果高优先级缓冲队列的特征信息为空,继续查找其他优先级的缓冲队列,重复操作,直到所有缓冲队列都为空,结束扫描;其中,所述其他优先级的缓冲队列可以为步骤54中比最高优先级低的优先级的缓冲队列。
本申请实施例还提供一种流量平滑服务器,如图8所示,所述服务器包括存储器60和处理器62;所述存储器60存储有流量平滑计算机程序,所述处理器62执行所述计算机程序时,以实现如本申请前述实施例中任意一项所述方法的步骤。
作为一种示例,所述处理器62执行所述计算机程序时,以实现如下步骤:生成流量配置模板,所述流量配置模板用于控制转发设备在控制链路向SDN控制器发送的控制报文的速率;将所述流量配置模板发送给所述SDN控制器。
在本申请一种可选实施例中,所述流量配置模板包括与报文类型对应的队列特征信息、队列优先级、队列缓存阈值、队列速率阈值和溢出动作。
在本申请一种可选实施例中,所述处理器62执行所述计算机程序时,以实现如下步骤:从所述SDN控制器获取网络规模和所述转发设备的转发缓存能力;根据所述网络规模和所述转发缓存能力,生成流量配置模板。
当然,在具体实现时,还可以参阅本申请前述实施例的具体描述,也具有相应的技术效果。
本申请实施例还提供一种转发设备,如图9所示,所述转发设备包括存储器70和处理器72;所述存储器70存储有流量平滑计算机程序,所述处理器72执行所述计算机程序时,以实现如本申请前述实施例中任意一项所述方法的步骤。
作为一种示例,所述处理器72执行所述计算机程序时,以实现如下步骤:接收控制报文;根据预先从SDN控制器获取的流量配置模板,通过控制链路将所述控制报文发送给所述SDN控制器。
在本申请一种可选实施例中,所述处理器72执行所述计算机程序时,以实现如下步骤:根据所述流量配置模板,提取所述控制报文的报文特征信息,通过所述控制链路将所述报文特征信息封装后发送给所述SDN控制 器。
在本申请一种可选实施例中,所述流量配置模板包括与报文类型对应的队列速率阈值。
在本申请一种可选实施例中,所述处理器72执行所述计算机程序时,以实现如下步骤:根据所述接入报文的报文类型和所述流量配置模板,确定与所述接入报文对应的队列速率阈值;当接收所述控制报文的接收速率不小于确定的队列速率阈值时,提取所述控制报文的报文特征信息。
在本申请一种可选实施例中,所述处理器72执行所述计算机程序时,以实现如下步骤:当所述接收速率从不小于确定的队列速率阈值转变成小于确定的队列速率阈值后,将所述报文特征信息进行封装,通过所述控制链路发送给所述SDN控制器。
在本申请一种可选实施例中,所述处理器72执行所述计算机程序时,以实现如下步骤:将所述报文特征信息存储在与所述控制报文对应的缓存队列中。
在本申请一种可选实施例中,所述流量配置模板还包括与报文类型对应的队列特征信息、队列缓存阈值和溢出动作。
在本申请一种可选实施例中,所述处理器72执行所述计算机程序时,以实现如下步骤:根据所述控制报文的报文类型和所述流量配置模板,确定与所述控制报文对应的队列特征信息、队列缓存阈值和溢出动作;根据确定的队列特征信息,确定所述缓存队列;根据确定的队列缓存阈值,判断所述缓存队列是否溢出;若溢出,根据确定的溢出动作,对所述控制报文进行处理;若未溢出,将所述报文特征信息存储在与所述缓存队列中。
在本申请一种可选实施例中,所述流量配置模板还包括与报文类型对应的队列优先级。
在本申请一种可选实施例中,所述处理器72执行所述计算机程序时, 以实现如下步骤:根据所述报文类型和所述流量配置模板,确定与所述报文类型对应的队列优先级;根据确定的队列优先级,从所述缓存队列中读取所述报文特征信息。
在本申请一种可选实施例中,所述控制报文包括接入协议报文和未被标识的数据报文;所述报文类型包括协议类型和用于表明数据报文未被标识的未知类型。
在本申请一种可选实施例中,所述处理器72执行所述计算机程序时,以实现如下步骤:当接收所述未被标识的数据报文的接收速率小于确定的队列速率阈值时,提取所述未被标识的数据报文的媒体访问控制信息;将所述媒体访问控制信息发送给所述SDN控制器。
当然,在具体实现时,还可以参阅本申请前述实施例的具体描述,也具有相应的技术效果。
本申请实施例提供一种计算机可读存储介质,所述存储介质存储有用于服务器的流量平滑计算机程序1,和/或存储有用于转发设备的流量平滑计算机程序2;
当计算机程序1被至少一个处理器执行时,以实现如本申请前述实施例任意一项所述方法的步骤;
当计算机程序2被至少一个处理器执行时,以实现如本申请前述实施例中任意一项所述方法的步骤。
本申请实施例在具体实现时,可以参阅上述各个实施例,具有相应的技术效果。
本申请实施例中计算机可读存储介质可以是随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read-Only Memory,ROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、光 盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)或者本领域已知的任何其他形式的存储介质。可以将一种存储介质藕接至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息;或者该存储介质可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路中。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (18)

  1. 一种流量平滑方法,所述方法包括:
    生成流量配置模板,所述流量配置模板用于控制转发设备在控制链路向软件定义网络SDN控制器发送的控制报文的速率;
    将所述流量配置模板发送给所述SDN控制器。
  2. 如权利要求1所述的方法,其中,所述流量配置模板包括与报文类型对应的队列特征信息、队列优先级、队列缓存阈值、队列速率阈值和溢出动作。
  3. 如权利要求1或2所述的方法,其中,所述生成流量配置模板,包括:
    从所述SDN控制器获取网络规模和所述转发设备的转发缓存能力;
    根据所述网络规模和所述转发缓存能力,生成流量配置模板。
  4. 一种流量平滑方法,所述方法包括:
    接收控制报文;
    根据预先从SDN控制器获取的流量配置模板,通过控制链路将所述控制报文发送给所述SDN控制器。
  5. 如权利要求4所述的方法,其中,所述根据预先从SDN控制器获取的流量配置模板,通过控制链路将所述控制报文发送给所述SDN控制器,包括:
    根据所述流量配置模板,提取所述控制报文的报文特征信息,通过所述控制链路将所述报文特征信息封装后发送给所述SDN控制器。
  6. 如权利要求5所述的方法,其中,所述流量配置模板包括与报文类型对应的队列速率阈值。
  7. 如权利要求6所述的方法,其中,所述根据所述流量配置模板,提取所述控制报文的报文特征信息,包括:
    根据所述接入报文的报文类型和所述流量配置模板,确定与所述接入报文对应的队列速率阈值;
    当接收所述控制报文的接收速率不小于确定的队列速率阈值时,提取所述控制报文的报文特征信息。
  8. 如权利要求7所述的方法,其中,所述在所述控制链路上,将所述报文特征信息封装后发送给所述SDN控制器,包括:
    当所述接收速率从不小于确定的队列速率阈值转变成小于确定的队列速率阈值后,将所述报文特征信息进行封装,通过所述控制链路发送给所述SDN控制器。
  9. 如权利要求8所述的方法,其中,所述当所述接收速率从不小于确定的队列速率阈值转变成小于确定的队列速率阈值后,将所述报文特征信息进行封装,通过所述控制链路发送给所述SDN控制器之前,包括:
    将所述报文特征信息存储在与所述控制报文对应的缓存队列中。
  10. 如权利要求9所述的方法,其中,所述流量配置模板还包括与报文类型对应的队列特征信息、队列缓存阈值和溢出动作。
  11. 如权利要求10所述的方法,其中,所述将所述报文特征信息存储在与所述控制报文对应的缓存队列中,包括:
    根据所述控制报文的报文类型和所述流量配置模板,确定与所述控制报文对应的队列特征信息、队列缓存阈值和溢出动作;
    根据确定的队列特征信息,确定所述缓存队列;
    根据确定的队列缓存阈值,判断所述缓存队列是否溢出;
    若溢出,根据确定的溢出动作,对所述控制报文进行处理;
    若未溢出,将所述报文特征信息存储在与所述缓存队列中。
  12. 如权利要求11所述的方法,其中,所述流量配置模板还包括与报文类型对应的队列优先级。
  13. 如权利要求12所述的方法,其中,所述将所述报文特征信息进行封装,通过所述控制链路发送给所述SDN控制器之前,包括:
    根据所述报文类型和所述流量配置模板,确定与所述报文类型对应的队列优先级;
    根据确定的队列优先级,从所述缓存队列中读取所述报文特征信息。
  14. 如权利要求7-13中任意一项所述的方法,其中,所述控制报文包括接入协议报文和未被标识的数据报文;所述报文类型包括协议类型和用于表明数据报文未被标识的未知类型。
  15. 如权利要求14所述的方法,其中,当所述控制报文为未被标识的数据报文时,所述根据所述接入报文的报文类型和所述流量配置模板,确定与所述接入报文对应的队列速率阈值之后,包括:
    当接收所述未被标识的数据报文的接收速率小于确定的队列速率阈值时,提取所述未被标识的数据报文的媒体访问控制信息;
    将所述媒体访问控制信息发送给所述SDN控制器。
  16. 一种流量平滑服务器,所述服务器包括存储器和处理器;所述存储器存储有流量平滑计算机程序,所述处理器执行所述计算机程序时,以实现如权利要求1-3中任意一项所述方法的步骤。
  17. 一种转发设备,所述转发设备包括存储器和处理器;所述存储器存储有流量平滑计算机程序,所述处理器执行所述计算机程序时,以实现如权利要求4-15中任意一项所述方法的步骤。
  18. 一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如权利要求1-3中任意一项所述方法的步骤;或者,该计算机程序被处理器执行时实现如权利要求4-15中任意一项所述方法的步骤。
PCT/CN2019/078883 2018-04-04 2019-03-20 流量平滑方法、服务器及转发设备 WO2019192318A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810298985.9 2018-04-04
CN201810298985.9A CN110351199A (zh) 2018-04-04 2018-04-04 流量平滑方法、服务器及转发设备

Publications (1)

Publication Number Publication Date
WO2019192318A1 true WO2019192318A1 (zh) 2019-10-10

Family

ID=68099880

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/078883 WO2019192318A1 (zh) 2018-04-04 2019-03-20 流量平滑方法、服务器及转发设备

Country Status (2)

Country Link
CN (1) CN110351199A (zh)
WO (1) WO2019192318A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049886A (zh) * 2019-11-29 2020-04-21 紫光云(南京)数字技术有限公司 多区域sdn控制器数据同步方法、服务器及系统
CN111245743A (zh) * 2020-01-09 2020-06-05 浙江吉利汽车研究院有限公司 一种信息处理方法、存储介质、网关及汽车
CN116455680A (zh) * 2023-06-19 2023-07-18 卓望数码技术(深圳)有限公司 云平台的tcp全流量采集和聚合方法、系统及计算机设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140149262A1 (en) * 2012-11-27 2014-05-29 At&T Intellectual Property I, L.P. Controlling Data Access and Rate in a Network
CN106789703A (zh) * 2017-01-12 2017-05-31 上海斐讯数据通信技术有限公司 一种基于sdn架构的流量监管算法
CN106817299A (zh) * 2015-11-27 2017-06-09 新华三技术有限公司 软件定义网络的表项生成方法和装置以及报文转发方法
CN107135166A (zh) * 2017-04-07 2017-09-05 上海斐讯数据通信技术有限公司 一种流量管理系统及方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150263980A1 (en) * 2014-03-14 2015-09-17 Rohini Kumar KASTURI Method and apparatus for rapid instance deployment on a cloud using a multi-cloud controller
CN105591977A (zh) * 2015-08-28 2016-05-18 杭州华三通信技术有限公司 报文处理方法以及装置
CN105471662B (zh) * 2015-12-30 2019-02-26 中电长城网际系统应用有限公司 云服务器、虚拟网络策略集中控制系统和方法
CN106572020B (zh) * 2016-10-18 2020-05-22 上海斐讯数据通信技术有限公司 一种基于sdn的全网络整形方法、装置和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140149262A1 (en) * 2012-11-27 2014-05-29 At&T Intellectual Property I, L.P. Controlling Data Access and Rate in a Network
CN106817299A (zh) * 2015-11-27 2017-06-09 新华三技术有限公司 软件定义网络的表项生成方法和装置以及报文转发方法
CN106789703A (zh) * 2017-01-12 2017-05-31 上海斐讯数据通信技术有限公司 一种基于sdn架构的流量监管算法
CN107135166A (zh) * 2017-04-07 2017-09-05 上海斐讯数据通信技术有限公司 一种流量管理系统及方法

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049886A (zh) * 2019-11-29 2020-04-21 紫光云(南京)数字技术有限公司 多区域sdn控制器数据同步方法、服务器及系统
CN111049886B (zh) * 2019-11-29 2023-07-07 紫光云(南京)数字技术有限公司 多区域sdn控制器数据同步方法、服务器及系统
CN111245743A (zh) * 2020-01-09 2020-06-05 浙江吉利汽车研究院有限公司 一种信息处理方法、存储介质、网关及汽车
CN111245743B (zh) * 2020-01-09 2023-09-08 浙江吉利汽车研究院有限公司 一种信息处理方法、存储介质、网关及汽车
CN116455680A (zh) * 2023-06-19 2023-07-18 卓望数码技术(深圳)有限公司 云平台的tcp全流量采集和聚合方法、系统及计算机设备
CN116455680B (zh) * 2023-06-19 2023-10-13 卓望数码技术(深圳)有限公司 云平台的tcp全流量采集和聚合方法、系统及计算机设备

Also Published As

Publication number Publication date
CN110351199A (zh) 2019-10-18

Similar Documents

Publication Publication Date Title
US11582163B2 (en) System for early system resource constraint detection and recovery
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
KR101623197B1 (ko) 클라이언트 디바이스 상에서의 패킷 송신을 스케줄링하기 위한 시스템 및 방법
US7430211B2 (en) System and method for receive queue provisioning
WO2019192318A1 (zh) 流量平滑方法、服务器及转发设备
WO2019134383A1 (zh) 控制网络拥塞的方法、接入设备和计算机可读存储介质
US20120096175A1 (en) Dynamic adjustment of connection setup request parameters
US11870698B2 (en) Congestion control method and apparatus, communications network, and computer storage medium
WO2019169556A1 (zh) 一种报文发送的方法、装置和存储设备
US20160373361A1 (en) System for bandwidth optimization with high priority traffic awareness and control
US20220021701A1 (en) Method and System for Providing Edge Service, and Computing Device
US20210344601A1 (en) Congestion Control Method, Apparatus, and System, and Computer Storage Medium
WO2017161967A1 (zh) 包每秒流量监管方法、装置和计算机存储介质
US9800479B2 (en) Packet processing method, forwarder, packet processing device, and packet processing system
US9819591B2 (en) System and method of providing compression technique for jitter sensitive application through multiple network links
US20200252337A1 (en) Data transmission method, device, and computer storage medium
WO2021098425A1 (zh) 配置业务的服务质量策略方法、装置和计算设备
WO2023125380A1 (zh) 一种数据管理的方法及相应装置
US8650323B2 (en) Managing multi-step retry reinitialization protocol flows
CN110708255B (zh) 一种报文控制方法及节点设备
CN115378872B (zh) 一种流量控制方法、系统、计算机设备及可读存储介质
CN109729018B (zh) 基于流量整形的突发尺寸确定方法及相关设备
WO2020143509A1 (zh) 传输数据的方法和网络设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19782403

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04/02/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19782403

Country of ref document: EP

Kind code of ref document: A1