WO2023280004A1 - Network configuration method, device and system - Google Patents

Network configuration method, device and system Download PDF

Info

Publication number
WO2023280004A1
WO2023280004A1 PCT/CN2022/101726 CN2022101726W WO2023280004A1 WO 2023280004 A1 WO2023280004 A1 WO 2023280004A1 CN 2022101726 W CN2022101726 W CN 2022101726W WO 2023280004 A1 WO2023280004 A1 WO 2023280004A1
Authority
WO
WIPO (PCT)
Prior art keywords
delay
data flow
forwarding
shaper
information
Prior art date
Application number
PCT/CN2022/101726
Other languages
French (fr)
Chinese (zh)
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 WO2023280004A1 publication Critical patent/WO2023280004A1/en

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/20Negotiating bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/24Negotiating SLA [Service Level Agreement]; Negotiating QoS [Quality of Service]

Definitions

  • the present application relates to the technical field of communications, and in particular to a network configuration method, device and system.
  • a shaper (shaper) is used to adjust the transmission rate and other aspects of the data stream transmitted in the network.
  • the data flow burst can be limited by the shaper, so as to realize relatively stable data flow transmission, prevent problems such as network congestion or transmission jitter, and meet the business requirements of data flow transmission.
  • the ultra-reliable low-latency communication (URLLC) multi-service of the fifth-generation (5G) technology has strict requirements on the quality of service (QoS) .
  • QoS quality of service
  • services of different service types have different service requirements that need to be met. It is necessary for the network to reasonably allocate network resources based on business requirements to meet the corresponding business requirements of different business types.
  • the shaper parameters used to adjust the data flow in the shaper are relatively fixed, so that the data flow adjusted based on the shaper parameters cannot meet the service requirements in some business scenarios. How to determine the shaper parameters of the shaper to meet the business requirements of data stream transmission is a technical problem that needs to be solved.
  • the embodiment of the present application provides a network configuration method, device and system, which can determine the shaper parameters according to the traffic collection information of the data flow and the service level agreement (service level agreement, SLA) information corresponding to the data flow, so that the shaper parameters can be used
  • SLA service level agreement
  • a network configuration method comprising: a first device acquires traffic collection information corresponding to a data flow, and determines the shaping of the shaper based on the obtained traffic collection information and the SLA information corresponding to the data flow device parameters.
  • the shaper parameter is used to configure the shaper, so that the shaper adjusts the data flow to meet the transmission requirements indicated by the SLA information.
  • the shaper parameters determined according to the traffic collection information of the data stream and the corresponding SLA information of the data stream are more compatible with the data stream and the SLA information of the data stream, and can realize the shaping process of the data stream through the shaper more accurately, so that the processing The subsequent data flow meets the transmission requirements indicated by the SLA information.
  • the first device first determines the target bandwidth, and then determines the shaper parameters according to the target bandwidth.
  • the first device determines a target bandwidth based on the acquired traffic collection information of the data flow and SLA information corresponding to the data flow, and determines a shaper parameter according to the target bandwidth.
  • the target bandwidth is the minimum value of the available bandwidth for transmitting the data flow on the premise of meeting the transmission requirements indicated by the SLA information. Based on the target bandwidth, more accurate shaper parameters can be determined, so that the adjusted data flow can meet the transmission requirements indicated by the SLA information corresponding to the data flow.
  • the first device may first determine the range of the target bandwidth, and then select the target bandwidth from within the range of the target bandwidth.
  • the first device first determines the range of the target bandwidth according to the traffic collection information, and then determines the target bandwidth within the range of the target bandwidth according to the SLA information corresponding to the data flow.
  • the range of the target bandwidth determined based on the flow collection information may be matched with the data flow.
  • the target bandwidth matching the SLA information corresponding to the data flow is determined within the range of the target bandwidth. Therefore, the target bandwidth matching the data flow and the SLA information corresponding to the data flow can be obtained, so as to meet the transmission requirement indicated by the SLA information.
  • the first device may determine the range of the target bandwidth in the following two manners.
  • the first device determines the range of the target bandwidth according to the reference value of the target bandwidth and the correction value of the target bandwidth.
  • the reference value of the target bandwidth is determined according to the traffic collection information, and the correction value of the target bandwidth indicates the amount of fluctuation of the target bandwidth relative to the reference value.
  • the first device determines the range of the target bandwidth based on a distribution fitting algorithm and traffic collection information.
  • the flow collection information includes the length of packets of the data flow in multiple collection periods.
  • the first device may determine the burst volume of the data stream according to the acquired traffic collection information of the data stream, and then calculate the target bandwidth by using the burst volume and SLA information corresponding to the data stream.
  • the burst amount is the length of the message corresponding to each acquisition period among the plurality of acquisition periods.
  • the first device when the degree of congestion is greater than the threshold, the first device adopts one or more of the following three ways to adjust to meet the transmission requirements indicated by the SLA information and the degree of congestion is less than or equal to the threshold .
  • the degree of congestion is determined according to the remaining capacity of the forwarding device.
  • the remaining capacity refers to the remaining forwarding capability of the forwarding device when the committed forwarding delay of the forwarding device is guaranteed.
  • the committed forwarding delay is the preset delay for data streams waiting to be processed in the forwarding device.
  • the first device adjusts the SLA information, so that the shaper parameters determined according to the traffic collection information and the adjusted SLA information adjust the data flow.
  • the first device adjusts the queue into which the data flow enters.
  • the first device adjusts the transmission path of the data flow, so that the data flow is transmitted through the transmission path of the data flow.
  • the first device adopts one or more of the following three ways to adjust to meet the transmission requirement indicated by the SLA information.
  • the first device adjusts the SLA information, so that the shaper parameters determined according to the traffic collection information and the adjusted SLA information adjust the data flow.
  • the first device adjusts the queue into which the data flow enters.
  • the first device adjusts the transmission path of the data flow, so that the data flow is transmitted through the transmission path of the data flow.
  • the SLA information includes the upper bound of the target delay, and the upper bound of the target delay indicates the upper bound of the delay of the data flow from the source end to the destination end.
  • the target delay includes shaping delay
  • the shaping delay indicates the delay during processing of the data flow in the shaper.
  • the target delay further includes one or more of a fixed delay and a network forwarding delay
  • the fixed delay includes one or more of a propagation delay, a device processing delay, and a port delay.
  • the propagation delay is the delay of the data stream propagating in the transmission medium
  • the device processing delay is the delay of the device processing the data stream
  • the port transmission delay is the delay of transmitting the data stream through the port.
  • the network forwarding delay is the preset delay for the data flow waiting to be processed in the forwarding device during the process from the source end to the destination end.
  • the network forwarding delay indicates the sum of committed forwarding delays of multiple forwarding devices transmitting data streams, where the committed forwarding delay is a preset delay for data streams waiting to be processed in the forwarding devices.
  • the network forwarding delay is determined according to preset forwarding bandwidths of multiple forwarding devices transmitting data streams, and the preset forwarding bandwidth is the preset bandwidth of data streams forwarded by the forwarding devices.
  • the target delay further includes one or more of a fixed delay and an actual forwarding delay
  • the actual forwarding delay indicates a delay for a data flow from the source end to the destination end to be processed in the forwarding device.
  • the SLA information includes a cache upper bound
  • the cache upper bound is a minimum value of an available cache of a device including a shaper among devices transmitting data streams.
  • the SLA information further includes a reliability probability, where the reliability probability is a probability of meeting a transmission requirement indicated by the SLA information corresponding to the data flow.
  • the first device may acquire the traffic collection information of the data flow through the second device.
  • the second device generates traffic collection information of the data flow, and sends it to the first device.
  • the second device is a device for transmitting data streams.
  • the first device may acquire traffic collection information of the data flow collected and generated by the first device.
  • the flow collection information includes statistical values of packet lengths of the data flow in multiple collection periods.
  • the statistical value includes an average value, and the average value indicates the length of the plurality of packets in the collected data stream and the ratio of the number of collection cycles for collecting the plurality of packets.
  • the statistical value further includes one or more of second-order moments and fourth-order moments.
  • the second-order moment indicates the ratio of the sum of the squares of the lengths of multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets.
  • the fourth moment indicates the ratio of the sum of the fourth powers of the lengths of multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets.
  • the first device may send the shaper parameter to the third device.
  • the third device is a device for transporting data streams including a shaper.
  • the first device is a control device or a device for transmitting data streams.
  • control device is a central network control CNC device.
  • the shaper parameters include at least one of token bucket depth and token generation rate.
  • the shaper parameters include at least one of a credit accumulation rate and a credit consumption rate.
  • a first device in a second aspect, has a function of implementing the behavior of the first device in the above method.
  • the functions may be implemented based on hardware, or corresponding software may be implemented based on hardware.
  • Hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the first device includes: an acquisition unit and a processing unit. Wherein, the acquiring unit is configured to acquire traffic collection information of the data stream.
  • the processing unit is configured to determine the shaper parameters according to the traffic collection information and the SLA information corresponding to the data flow, and the shaper parameters are used by the shaper to adjust the data flow to meet the transmission requirements indicated by the SLA information.
  • the structure of the first device includes a processor and an interface, and the processor is configured to support the first device to perform corresponding functions in the foregoing method.
  • the interface is used to support the communication between the first device and the second device, and receives the information or instructions involved in the above method from the second device, and the interface is also used to support the communication between the first device and the third device, and sends the information to the second device.
  • the third device sends the information or instructions involved in the above methods.
  • the first device may further include a memory for coupling with the processor, which stores necessary program instructions and data of the first device.
  • the first device includes: a processor, a transmitter, a receiver, a random access memory, a read only memory, and a bus.
  • the processor is respectively coupled to the transmitter, the receiver, the random access memory and the read-only memory through the bus.
  • the basic input/output system solidified in the read-only memory or the bootloader boot system in the embedded system is started to guide the first device into a normal operation state. After the first device enters the normal running state, run the application program and the operating system in the random access memory, so that the processor executes the method in the first aspect or any possible implementation manner of the first aspect.
  • a first device in a third aspect, includes: a main control board and an interface board, and may further include a switching fabric board.
  • the first device is configured to execute the method in the first aspect or any possible implementation manner of the first aspect.
  • the first device includes a module for executing the method in the first aspect or any possible implementation manner of the first aspect.
  • a first device in a fourth aspect, includes a controller and a first forwarding sub-device.
  • the first forwarding sub-device includes: an interface board, and may further include a switching fabric board.
  • the first forwarding sub-device is configured to perform the function of the interface board in the third aspect, and further, may also perform the function of the switching fabric board in the third aspect.
  • the controller includes receiver, processor, transmitter, random access memory, read only memory and bus. Wherein, the processor is respectively coupled to the receiver, the transmitter, the random access memory and the read-only memory through the bus.
  • the basic input/output system solidified in the read-only memory or the bootloader boot system in the embedded system is started to guide the controller into a normal operation state.
  • the application program and the operating system are run in the random access memory, so that the processor executes the functions of the main control board in the third aspect.
  • a computer storage medium which is used to store the programs, codes or instructions used by the above-mentioned first device.
  • the processor or hardware device executes these programs, codes or instructions, the first aspect in the above-mentioned first aspect can be completed.
  • a function or step of a device is provided, which is used to store the programs, codes or instructions used by the above-mentioned first device.
  • a network system includes a first device and a second device.
  • the second device is a device for transmitting data streams.
  • the second device is configured to collect traffic collection information of the data stream, and send the traffic collection information of the data stream to the first device.
  • the first device is configured to receive traffic collection information of the data stream sent by the second device, and is further configured to determine shaper parameters according to the traffic collection information and SLA information corresponding to the data stream.
  • the shaper parameters are used by the shaper to adjust the data flow to meet the transmission requirements indicated by the SLA information.
  • the network system further includes a third device.
  • the first device is further configured to send the shaper parameter to the third device.
  • the third device is configured to receive the shaper parameters sent by the first device, and configure the shaper according to the shaper parameters.
  • the third device is a device for transporting data streams including a shaper.
  • the first device can obtain the shaper parameters corresponding to the data flow and the SLA information of the data flow according to the traffic collection information of the data flow and the SLA information corresponding to the data flow, and can achieve relatively accurate data shaping through the shaper.
  • the flow is shaped so that the processed data flow meets the transmission requirements indicated by the SLA information.
  • the parameters of the shaper can be more accurately and flexibly matched with the service requirements corresponding to the data flow, and the differentiated guarantee for the service requirements of the data flow of different service types can be realized.
  • FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another network architecture provided by an embodiment of the present application.
  • FIG. 3 is an interactive schematic diagram of a network configuration method provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a message format carrying SLA information of a data flow provided by an embodiment of the present application
  • FIG. 5 is a schematic flowchart of a network configuration method provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a first device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a hardware structure of a first device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a hardware structure of another first device according to an embodiment of the present application.
  • the transmitted data flow may be a dynamic data flow, which has a certain degree of burstiness, randomness and dynamics.
  • the dynamic data flow may be, for example, a data flow with relatively large traffic fluctuations within a certain period of time, or a data flow with relatively large transmission rate fluctuations, or a data flow that causes micro-bursts to occur on the network. If the data stream is directly transmitted, it is easy to cause problems such as network congestion or transmission jitter, and it is difficult to meet the service requirements corresponding to the data stream. Therefore, it is necessary to shape the data stream so that the processed data stream has a relatively definite maximum burst and a relatively stable transmission rate, reduce possible network problems during data stream transmission, and meet the corresponding business requirements of the data stream .
  • a shaper may be used to perform shaping processing on the data stream.
  • the shaper is used to adjust the traffic and burst of the data flow, so that the data flow shaped by the shaper is transmitted at a relatively uniform speed.
  • Shapers include shaper parameters that indicate shaping adjustments.
  • the parameters of the shaper are mainly determined based on the data flow transmission requirements of the source, and a certain amount of manual intervention and adjustment is performed based on experience, so the parameters of the shaper are relatively fixed.
  • the data flow shaped by the shaper cannot meet the service requirements well, and it is difficult to adapt to the actual needs of the network.
  • embodiments of the present application provide a network configuration method, device, and system, which determine shaper parameters by acquiring traffic collection information of a data flow and SLA information corresponding to the data flow.
  • the determined shaper parameters adjust the data flow more accurately to ensure that the data flow shaped by the shaper meets the transmission requirements of the corresponding SLA information indication of the data flow, and realize the provision of corresponding SLA information indication based on different data flows Differentiated guarantees for transport requirements.
  • the SLA information includes service level parameters.
  • the service level parameter may indicate the service index to be achieved by the specific network service.
  • the service level parameter may be the upper bound of the target delay, and the upper bound of the target delay is used to indicate the upper bound of the transmission delay of the data flow from the source end to the destination end.
  • the service level parameter may also be a cache upper bound, and the cache upper bound is used to indicate the minimum value of the available cache of the device transmitting the data stream.
  • the SLA information may also include the reliability probability of transmitting the data flow meeting the service level parameter. For example, if the SLA information includes the upper bound of the target delay, the SLA information may further include a reliability probability that the delay is less than or equal to the upper bound of the target delay when the data stream is transmitted. If the SLA information includes the cache upper bound, the SLA information may further include a reliability probability that the available cache of the device transmitting the data stream is greater than or equal to the cache upper bound.
  • the network configuration method proposed in the embodiment of the present application can be applied to URLLC scenarios in 5G, and these scenarios need to meet service requirements of high reliability and low latency.
  • the solutions in the embodiments of this application can be used to provide highly reliable bounded delay guarantees for smart grid differential protection services, and can also provide highly reliable, bounded delay guarantees for service flows of control services in campus networks. Latency forwarding service. It can also be used in smart factories, based on wired Ethernet or wireless networks, to provide high-reliability bounded delay guarantees for sensors to collect business traffic, industrial control traffic, and video surveillance traffic.
  • the network 100 shown in FIG. 1 includes a control device 101 and network devices 102-104.
  • the sending end device 105 is the source end device for sending the data flow
  • the receiving end device 106 is the destination end device for the data flow.
  • the network devices 102 - 104 are forwarding devices on the transmission path of the data flow, and are used to send the data flow from the sending end device 105 to the receiving end device 106 in the network 100 .
  • the network device 102 and the network device 104 are edge nodes of the network, and the network device 103 is connected to the network device 102 and the network device 104 respectively.
  • FIG. 1 is only a schematic diagram of an exemplary system architecture of the embodiment of the present application, and should not limit the network architecture of this solution.
  • the network 100 in FIG. forwarding device may further include multiple subnets, and each subnet includes one or more forwarding devices.
  • the sending end device 105 and the receiving end device 106 in FIG. 1 may be terminal devices or servers.
  • Terminal equipment also known as user equipment (UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), terminal, etc.
  • UE user equipment
  • MS mobile station
  • MT mobile terminal
  • terminal etc.
  • UE user equipment
  • device or a chip set in the device, for example, a handheld device with a wireless connection function, a vehicle-mounted device, and the like.
  • examples of some terminal devices are: mobile phones, desktop computers, tablet computers, notebook computers, handheld computers, mobile internet devices (mobile internet device, MID), wearable devices, virtual reality (virtual reality, VR) equipment, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, smart grid Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, and home gateway devices supporting 5G access (5G-residential gateway) , 5G-RG) etc.
  • mobile internet device mobile internet device, MID
  • wearable devices virtual reality (virtual reality, VR) equipment, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, smart grid Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, and home gateway devices supporting 5G access (5G-residential gateway) , 5G-RG) etc.
  • VR virtual reality
  • AR augmented reality
  • the network devices 102-104 in FIG. 1 can be in the form of hardware or a combination of software and hardware, and can be an independent device, such as a switch, a router, and other devices with forwarding functions, or it can be a server deploying a virtual router or a virtual switch, or it can be It is a functional module or a combination of multiple functional modules on a network device, which can be selected and designed according to specific scenario requirements.
  • the network devices 102 - 104 are used to forward the data flow in the network 100 .
  • the control device 101 in FIG. 1 may specifically be a central network control (Central Network Controller, CNC) device.
  • CNC Central Network Controller
  • the control device may be an independent physical device as shown in FIG. 1 , that is, it is physically independent from the network devices 102-104. Referring to FIG. 2 , the control device can also be integrated as a functional unit on any one of the network devices 102 - 104 , or on the sending end device 105 , or on the receiving end device 106 . The control device can also be split into several sub-functional units and deployed on the devices 102-106 in a distributed manner. As long as the control device has logically corresponding calculation, management and control functions, the embodiment of the present application does not limit the existence form of the control device.
  • FIG. 3 is an interactive schematic diagram of a network configuration method provided in the embodiment of the present application.
  • the network configuration method provided in the embodiment of the present application includes the following steps:
  • S301 The second device generates traffic collection information of a data stream.
  • the second device is a device for transmitting data streams.
  • the second device may be any of the network devices 102 - 104 , the sending end device 105 , and the receiving end device 106 in FIG. 1 .
  • the second device collects the transmitted data flow to obtain traffic collection information of the data flow.
  • the data flow may be a single service flow, or may be an aggregation flow obtained by converging multiple service flows.
  • the traffic collection information of the data flow changes in real time along with the data flow.
  • the flow collection information may include the length of the packet in at least one collection period of the data flow.
  • the counting unit of the acquisition period may be a time unit such as microsecond (microsecond, ⁇ s), millisecond (millisecond, ms), or second (second, s).
  • the counting unit of the message length is bit (binary digit, BIT) or byte (byte).
  • Method 1 Make statistics on the packet length of the data stream in each collection cycle.
  • the second device collects the accumulated packet length in the data stream at a collection period ⁇ T k to obtain the sequence A k .
  • ⁇ T k T k ⁇ T k-1
  • T k is the sampling time
  • k 1, . . . , N
  • N is the number of samples.
  • the collection period ⁇ T k can be a constant value ⁇ T or a variable value, which can be specifically set according to the collection requirements of the data stream.
  • the acquisition period ⁇ T may be a constant value of 100ms.
  • Method 2 Determine the packet length of the data stream in each collection cycle according to the time stamp and packet length of the obtained packet.
  • the second device obtains the time stamp and the packet length of each packet. According to the time stamp of each message, determine the collection period to which the message belongs. Then, according to the message length of each message, the cumulative message length of the data stream in each collection period is determined.
  • the second device obtains the time stamp t j and the packet length B j of each packet in the data stream.
  • j is the number of packets in the obtained data stream.
  • the lengths of the packets corresponding to the time stamps belonging to the collection period ⁇ T k are accumulated to obtain the cumulative packet length A k within the collection period ⁇ T k , expressed as ⁇ sampling time T k , cumulative packet length A k ⁇ .
  • the accumulative message length A k represents the sum of the message lengths sampled at the sampling time T k , and can also be understood as the number of messages arriving between the last sampling time T k-1 and the current sampling time, that is, ⁇ T k sum of text lengths.
  • the sampling time and the cumulative message length ⁇ T k , A k ⁇ can be stored in a double-precision format, and the storage space occupied by the sampling data of N points is 8 byte*2*N.
  • Method 2 can obtain a relatively comprehensive timestamp and packet length of each packet in the data stream, making it more flexible to obtain traffic collection information of the data stream, and also facilitates the analysis based on the timestamp and packet length of each packet The accumulated packet length in the collection cycle is determined.
  • the second device may first preprocess the lengths of packets of the collected data streams in multiple collection periods to obtain multiple collection Statistical value of the length of packets in a period.
  • the statistical value includes an average value of the lengths of the packets in multiple collection periods, and the average value indicates the ratio of the lengths of the multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets.
  • statistical values may also include statistical values such as second-order moments, covariance, and fourth-order moments.
  • the second-order moment indicates the ratio of the sum of the squares of the lengths of multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets.
  • the fourth moment indicates the ratio of the sum of the fourth powers of the lengths of multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets.
  • the type of the specific statistical value included in the statistical value may be determined according to the manner of determining the parameters of the shaper.
  • the second-order moment, covariance and fourth-order moment can be represented by formulas (2)-(4):
  • a statistical value that more accurately reflects the flow change of the data stream can be obtained.
  • the amount of data included in the flow collection information generated based on the preprocessing result is small, which facilitates the transmission of flow collection information from the second device to the first device and reduces the amount of transmitted data.
  • S302 The second device sends traffic collection information of the data flow to the first device.
  • the first device may be the control device 101 in FIG. 1 .
  • the second device may send the traffic collection information of the data flow to the first device in a type-length-value (tag length value, TLV) format.
  • the second device may send the traffic collection information of the data flow within the period to the first device at a certain period.
  • the period for the second device to send the traffic collection information may be greater than or equal to the period for collecting the traffic collection information of the data stream.
  • the period for collecting traffic collection information of the data stream may be 100ms, and the period for sending traffic collection information may be 500ms.
  • the first device determines shaper parameters according to the traffic collection information and the SLA information corresponding to the data flow.
  • the trigger condition for the first device to determine the shaper parameter is not limited. It can be triggered by a set time, for example, timing trigger to determine the parameters of the shaper; it can also be triggered by a set condition, for example, the transmitted data flow meets the condition that needs to be shaped and adjusted.
  • the SLA information corresponds to the data flow, and is used to indicate the transmission requirements to be met by the transmission of the data flow.
  • the SLA information corresponding to the data flow is relatively fixed.
  • the first device may acquire SLA information corresponding to the data stream at an initial stage of transmitting the data stream. Afterwards, the updated SLA information may be obtained again after the SLA information corresponding to the data stream changes.
  • the first device may acquire the SLA information corresponding to the data flow based on the locally stored correspondence between the data flow and the SLA information.
  • the first device may obtain the SLA information corresponding to the data flow from other devices through a user network interface (user network interface, UNI) or a user centralized configuration (centralized user configuration, CUC).
  • the first device may acquire SLA information corresponding to the data flow through the second device.
  • the second device may be the sending end device 105 shown in FIG. 1 , or may be the network devices 102-103. Wherein, the second device that sends the SLA information may be the same device as the second device that sends the traffic collection information.
  • the second device that sends the SLA information and the second device that sends the traffic collection information may be the network device 102 in FIG. 1 .
  • the second device that sends the SLA information may also be a different device from the second device that sends the traffic collection information.
  • the second device sending the SLA information is the sending end device 105 in FIG. 1
  • the second device sending the traffic collection information is the network device 102 in FIG. 1 .
  • the second device can pass the SLA information through the user network interface (User Network Interface, UNI) through multiple registration protocol (multiple registration protocol, MRP) message, local chain Link-local registration protocol (link-local registration protocol, LRP) message, network configuration protocol (Network Configuration Protocol, NETCONF) message, RESTCONF message or management information base (management information base, MIB) message, etc. are sent to the first device .
  • MRP multiple registration protocol
  • LRP local chain Link-local registration protocol
  • network configuration protocol Network Configuration Protocol
  • NETCONF Network Configuration Protocol
  • RESTCONF management information base
  • MIB management information base
  • the figure is a schematic diagram of a packet format carrying SLA information of a data flow provided by an embodiment of the present application.
  • the MaxLatency field carries the upper bound of the target latency
  • the new field Latency_ConfidenceLevel carries the reliability probability. If the value of the Latency_ConfidenceLevel field is 999900, it means that the user accepts that in 99.99% of cases, the network guaranteed transmission delay is less than or equal to the upper bound of the target delay carried by MaxLatency.
  • the device transmitting the data stream may register the data stream SLA information carried in the UserToNetworkRequirements TLV into a local MRP Data Unit (MRP Data Unit, MRPDU), and issue a declaration (declaration), and send it to the first device.
  • MRP Data Unit MRP Data Unit
  • the device transmitting the data stream may also register the data stream SLA information carried in the UserToNetworkRequirements TLV into the LRP database, and send a declaration to the first device.
  • the SLA information may include the upper bound of the target latency, or may include the upper bound of the cache, or may include a combination of the upper bound of the target latency and the upper bound of the cache. Further, the SLA information may also include the reliability probability corresponding to the upper bound of the target latency, and the reliability probability of the cache upper bound.
  • the upper bound of the target delay is the maximum delay allowed by the transmitted data flow.
  • the upper bound of the target delay may be the upper bound of the delay of transmitting the data flow from the source end to the destination end.
  • the upper bound of the target delay can be the upper bound of the transmission delay of the entire network that transmits the data stream, or the upper bound of the transmission delay within the subnetwork that transmits the data stream.
  • the upper bound of the target delay represents the upper bound of the delay of data stream transmission in the network.
  • the upper bound of the target delay indicates the upper bound of the delay of data flow transmission in the subnetwork.
  • the upper bound of the target delay may also be the upper bound of the delay of the data stream transmitted by the single-hop device transmitting the data stream.
  • the upper bound of the target delay for transmitting data streams from the source to the destination is related to the upper bound of the target delay for transmitting data streams by a single device. For example, based on the number of devices transmitting data streams from the source end to the destination end and the upper bound of the target delay time for transmitting data streams from the source end end to the destination end, the upper bound of the target delay of data stream transmission by a single device can be obtained.
  • the cache upper bound indicates the minimum size of buffer available for the stream on the device including the shaper.
  • the cache upper bound may be the smallest cache of queues supported by the device including the shaper.
  • the reliability probability indicates the probability of meeting the transmission requirement indicated by the SLA information corresponding to the data flow, for example, the reliability probability may be 99.99%.
  • the reliability probability is related to the content of the SLA information. For example, when the SLA information of the data flow includes the upper bound of the target delay, the reliability probability of the upper bound of the target delay may also be included.
  • the reliability probability of the upper bound of the target delay indicates the probability that the delay of the transmission data stream is less than or equal to the upper bound of the target delay.
  • the reliability probability is that the delay of transmitting the data stream from the source to the destination is less than or equal to the target The probability of an upper bound on the delay. If the upper bound of the target delay is the upper bound of the delay of the data stream transmitted by the single-hop device, then the reliability probability is the probability that the delay of the data stream transmitted by the single-hop device is less than or equal to the upper bound of the target delay. For another example, when the SLA information of the data flow includes the cache upper bound, the reliability probability indicates the probability that the available cache of the device including the shaper is less than or equal to the cache upper bound.
  • the reliability probability p is a parameter greater than or equal to 0 and less than or equal to 1.
  • the reliability probability of the data flow transmitted from the source end to the destination end may be obtained according to the reliability probability of each device in the network.
  • the calculation formula of the reliability probability p k from the source end to the destination end of the transmission data stream is shown in formula (5):
  • p is the reliability probability of a single-hop device
  • H is the number of devices transmitting data streams.
  • the first device determines the shaper parameter based on the acquired traffic collection information of the data flow and the SLA information corresponding to the data flow.
  • the parameters of the shaper may be determined according to the type of the shaper.
  • the parameters of the shaper may include at least one of a token bucket depth (burst) and a token generation rate (rate).
  • the bucket depth of the token bucket is also the committed burst size (committed burst size, CBS)
  • the token generation rate is also the committed information rate (committed information rate, CIR).
  • the shaper parameters may include at least one of a credit accumulation rate (idleslope) and a credit consumption rate (sendslope).
  • the first device may first obtain the target bandwidth based on the acquired traffic collection information of the data flow and the SLA information corresponding to the data flow, and then use the target bandwidth to obtain the shaper parameters.
  • the target bandwidth is the minimum value of the available bandwidth for transmitting the data flow that satisfies the transmission requirement indicated by the SLA information.
  • the obtained value of the target bandwidth may be set as the value of the token generation rate or the credit accumulation rate.
  • the target bandwidth may be multiplied by the protection coefficient, and the obtained value may be set as the value of the token generation rate or the credit accumulation rate.
  • the protection factor can be 1.2, for example.
  • the target bandwidth can be multiplied by the upper bound of the shaping delay to obtain the value of the token bucket depth.
  • the value obtained by multiplying the target bandwidth by the upper bound of the shaping delay can be multiplied by the protection coefficient to obtain the value of the token bucket depth.
  • the upper bound of the shaping delay is the upper bound of the delay during the processing of the data flow in the shaper.
  • the upper bound of the shaping delay can be determined based on the SLA information. For details, see the following.
  • the difference between the target bandwidth and the port transmission rate of the device including the shaper may be calculated, and the obtained value is set as the value of the credit consumption rate.
  • the product of the target bandwidth and the protection coefficient may be calculated first, the difference between the obtained product and the port transmission rate may be calculated, and the obtained value may be set as the value of the credit consumption rate.
  • the port transmission rate is the rate at which the output port of the device including the shaper transmits the data flow.
  • Manner 1 The first device first obtains the range of the target bandwidth according to the traffic collection information, and then determines the target bandwidth by using the SLA information.
  • the range of the target bandwidth is determined according to the traffic collection information, and is the value range of the minimum value of the available bandwidth for transmitting the data flow.
  • the embodiment of the present application provides two manners for determining the range of the target bandwidth.
  • the range of the target bandwidth may be determined by using the reference value and the correction value of the target bandwidth.
  • the baseline value of the target bandwidth is determined based on traffic collection information.
  • the correction value of the target bandwidth indicates the amount of fluctuation of the target bandwidth relative to the reference value.
  • the reference value and correction value of the target bandwidth may be determined by using a time series processing method.
  • a time series processing method For example, an n-order autoregressive method may be employed.
  • the embodiment of the present application provides an expression of the range ⁇ ( ⁇ ) of the target bandwidth, as shown in formula (6).
  • ⁇ ( ⁇ ) is a variable that has a mapping relationship with ⁇ , and the specific value of ⁇ ( ⁇ ) is determined by the value of ⁇ .
  • is the quality factor of SLA, which is used to measure the requirements of SLA in cache.
  • U 1 is an average value of message lengths in multiple collection periods determined according to the traffic collection information. If the traffic collection information includes statistical values of packet lengths in multiple collection periods, and the statistical values include average values, the calculation of formula (6) can be performed directly using the average values in the traffic collection information. If the traffic collection information includes the lengths of packets in multiple collection periods, the average value can be calculated by using formula (1).
  • T is the total time of multiple collection cycles in the traffic collection information.
  • v indicates the variance of the lengths of packets in multiple collection periods, which can be calculated by formula (7).
  • the covariance coefficient indicating the length of the packets in multiple collection periods can be calculated by formula (8).
  • U 1 is the average value of the length of the message in multiple collection periods determined according to the traffic collection information
  • U 2 is the second-order moment of the length of the message in multiple collection periods
  • U 3 is multiple collection periods The covariance of the lengths of the packets within .
  • U 1 , U 2 and U 3 can all be calculated according to the lengths of packets in multiple collection periods.
  • the traffic may be first fitted to a random distribution according to the traffic collection information and the distribution fitting algorithm, and then the range of the target bandwidth is determined according to the fitting result.
  • the distribution fitting of the traffic may be realized through a distribution fitting algorithm.
  • the distribution fitting algorithm can determine the random distribution that best matches the traffic distribution according to the traffic collection information.
  • the random distribution may be one of random distributions such as Poisson distribution, composite Poisson distribution, Pareto distribution, Markov arrival process, or batch Markov arrival process.
  • ⁇ ( ⁇ ) is a variable that has a mapping relationship with ⁇
  • the specific value of ⁇ ( ⁇ ) is determined by the value of ⁇
  • is the quality factor of SLA, which is used to measure the requirements of SLA in terms of caching.
  • T is the total time of multiple collection cycles in the traffic collection information.
  • X(T) is the distribution expectation determined based on the traffic distribution.
  • the target bandwidth is determined from the range of the target bandwidth based on the SLA information.
  • the target bandwidth can be determined by formula (10).
  • ⁇ * is the quality factor of SLA, which is used to measure the requirement of SLA in terms of delay.
  • ⁇ * is the quality factor of SLA, which is used to measure the requirement of SLA in terms of delay.
  • ⁇ * is the quality factor of SLA, which is used to measure the requirement of SLA in terms of delay.
  • ⁇ * can be obtained according to the mapping relationship between ⁇ * and ⁇ and ⁇ ( ⁇ ).
  • p can be a fixed value with a range of [0,1], or a reliability probability in the SLA information.
  • D 0 is the upper bound of the shaping delay
  • the upper bound of the shaping delay is the upper bound of the delay during the processing of the data flow in the shaper.
  • the upper bound of the shaping delay can be determined based on the SLA information. For details, see the following.
  • the specific value ⁇ 0 of ⁇ * can be calculated by using formula (10), and then ⁇ ( ⁇ 0 ) can be calculated to obtain the target bandwidth.
  • Method 2 The first device first obtains the burst volume of the data stream according to the traffic collection information, and then determines the target bandwidth by using the burst volume of the data stream and SLA information.
  • the burst volume of the data stream may be determined based on the traffic collection information first.
  • the burst amount is the length of the message corresponding to each acquisition period among the plurality of acquisition periods.
  • the burst size may be the maximum burst size of the data stream.
  • the maximum burst size of the data stream is the length of the message corresponding to the first cycle in multiple collection cycles, and the length of the message corresponding to the first cycle is the maximum length of the message corresponding to each collection cycle in multiple collection cycles value.
  • the target bandwidth R 0 is calculated by using the burst volume of the data flow and the SLA information.
  • B is the burst volume of the data flow.
  • p can be a fixed value with a range of [0,1], or a reliability probability in the SLA information.
  • D 0 is the upper bound of the shaping delay, and the upper bound of the shaping delay is the upper bound of the delay during the processing of the data flow in the shaper.
  • the upper bound of the shaping delay can be determined based on the SLA information. For details, see the following.
  • the above methods for calculating the target bandwidth are all based on the upper bound of the shaping delay.
  • the following describes different implementations of determining the shaping delay according to the SLA information.
  • Case 1 The SLA information includes the upper bound of the target delay, and the target delay indicates the delay of data stream transmission in the network.
  • the upper bound of the target delay is the maximum delay required for the data flow to be transmitted in the network. It can be understood that there may be delays in various aspects during the process of transmitting data streams in the network, for example, shaping delays, fixed delays, network forwarding delays, and actual forwarding delays.
  • the shaping delay, fixed delay, network forwarding delay and actual forwarding delay are introduced below.
  • the shaping delay indicates the delay during the processing of the data flow in the shaper.
  • the shaping delay may include delays such as queuing delay of the device and preprocessing delay of the data flow, where the device is a device including a shaper.
  • the preprocessing delay may be the delay of processing the data stream before the data stream enters the token bucket.
  • the pre-processing delay may be the delay of processing the data stream before determining the credit of the queue.
  • the fixed delay is a relatively definite delay generated by the network transmission data flow.
  • the fixed delay may specifically include one or more of propagation delay, device processing delay, and port delay.
  • the propagation delay is the delay caused by the data stream propagating a certain distance in the transmission medium.
  • Propagation delay indicates the ratio of transmission distance to transmission speed.
  • the transmission speed is determined according to the type of the transmission signal and the propagation medium. For example, if the data flow is transmitted through the optical fiber line in the form of electromagnetic signals, then according to the propagation speed of the electromagnetic signal in the optical fiber line at 200,000 kilometers per second, it can be obtained that for an optical fiber line with a transmission distance of 1,000 kilometers, the The propagation delay is 5ms.
  • the propagation delay may be obtained by the first device during the service planning stage, or may be obtained through a telemetry (telemetry) technology, or may be obtained through other devices, such as a network controller (network controller).
  • the device processing delay is the delay caused by the device processing the data flow.
  • the device processing delay may include the delay generated by the device performing, for example, analysis, data extraction, and routing search on the data stream after receiving the data stream.
  • Device processing delay is an indicator parameter of the device.
  • the device processing delay may be reported to the first device by the device transmitting the data stream, so that the first device determines the shaping delay according to the device processing delay.
  • the device processing delay may also be pre-stored in the database of the first device, so that the first device acquires the device processing delay corresponding to the device transmitting the data stream from the database.
  • Port delay is the delay required by the device to send data streams.
  • the port delay indicates the ratio of the packet length in the transmitted data flow to the port bandwidth. It can be understood that the port delay is determined according to the length of the packet transmitted by the port, and the port delay required for transmitting packets of different lengths is different. In a possible implementation manner, considering the range of the port delay, the maximum packet length in the data flow may be used to calculate the port delay.
  • the network forwarding delay is the preset delay for the data flow waiting to be processed in the forwarding device from the source end to the destination end.
  • the network forwarding delay may be a preset queuing delay of the data flow in the forwarding device.
  • Provide scheduling technology for network forwarding delay for example, periodic queuing and forwarding (cyclic queuing) defined by Institute of Electrical and Electronics Engineers (IEEE) 802.1 Time Sensitive Network (TSN) Forwarding, CQF) or time awareness shaper (time awareness shaper, TAS) scheduling method, or QoS, hierarchical quality of service (hierarchical quality of service, HQoS), priority scheduling on routers and switches with reasonable configuration of queue parameters , Polling scheduling and other scheduling technologies.
  • periodic queuing and forwarding defined by Institute of Electrical and Electronics Engineers (IEEE) 802.1 Time Sensitive Network (TSN) Forwarding, CQF) or time awareness shaper (time awareness shaper, TAS) scheduling method, or QoS, hierarchical quality of service (
  • the first device may obtain the network forwarding delay through a forwarding device that transmits the data flow. In another implementation, the first device may acquire and store the network forwarding delay in advance.
  • the network forwarding delay is related to the preset data flow waiting delay in each forwarding device.
  • the network forwarding delay may be determined according to the committed forwarding delay of each forwarding device.
  • the committed forwarding delay of the forwarding device is the preset delay of the data flow waiting for processing in the forwarding device.
  • the network forwarding delay D 1 can be calculated by formula (12).
  • T i is the committed forwarding delay T i of each forwarding device that transmits data streams
  • i represents the number of forwarding devices
  • i is a positive integer less than or equal to M
  • M is the total number of forwarding devices that transmit data streams.
  • the forwarding bandwidth of the forwarding device may be determined by using the committed forwarding delay T i of the forwarding device.
  • the committed forwarding delay T i of the forwarding device can be used as D 0 in the above formula for calculating the target bandwidth, and the calculated target bandwidth R 0 is the forwarding bandwidth of the forwarding device.
  • the forwarding capability of the forwarding device is measured by the preset forwarding bandwidth of the forwarding device.
  • the committed forwarding delay of the forwarding device can be determined according to the preset forwarding bandwidth of the forwarding device, and then the network forwarding delay can be determined based on the committed forwarding delay.
  • the embodiment of the present application does not limit the manner of determining the committed forwarding delay according to the preset forwarding bandwidth of the forwarding device.
  • the committed forwarding delay T i can be calculated according to the deterministic network calculus algorithm, and the calculation method is shown in formula (13):
  • b is the token bucket bucket depth in the shaper parameter, or the committed burst size
  • R i is the preset forwarding bandwidth of the forwarding device.
  • the actual forwarding delay is the delay of the data flow waiting to be processed in the forwarding device from the source end to the destination end.
  • the actual forwarding delay is the waiting delay generated in the forwarding device after the data stream is transmitted.
  • the actual forwarding delay may be reported to the first device by the forwarding device transmitting the data stream after forwarding the data stream.
  • the first device may obtain the actual forwarding delay from the source end to the destination end according to the forwarding delay reported by each forwarding device.
  • the delay included in the target delay is determined according to the network that transmits the data stream.
  • the shaping delay is determined based on the delay in network transmission and the target delay.
  • the target delay includes shaping delay.
  • the target delay may be determined as the shaping delay without considering the fixed delay, the network forwarding delay and the actual forwarding delay. For example, if the fixed delay from the source end to the destination end is relatively small and there is no forwarding device, the target delay may be determined as the shaping delay regardless of the fixed delay and the forwarding delay caused by the forwarding device.
  • the upper bound of the target delay included in the SLA information can be determined and shaped The upper bound of the delay.
  • the upper bound of the target delay may be the delay of a single-hop device transmitting the data stream, and the target delay may be used as the shaping delay to calculate the forwarding bandwidth of the device.
  • the target delay includes shaping delay, and also includes one or more of fixed delay and network forwarding delay.
  • one or more of fixed delay and network forwarding delay need to be considered.
  • the shaping delay is obtained by subtracting one or more of the fixed delay and the network forwarding delay from the target delay.
  • the propagation delay of the transmission data stream is 1.1ms
  • the single device processing delay of the network devices 102-104 is 25 ⁇ s
  • the target delay includes shaping delay, and also includes one or more of fixed delay and actual forwarding delay.
  • one or more of the fixed delay and the actual forwarding delay need to be considered.
  • the shaping delay is obtained by subtracting one or more of the fixed delay and the actual forwarding delay from the target delay.
  • the calculation method of the upper bound of the shaping delay is similar to that of the upper bound of the shaping delay in Scenario 2, and will not be repeated here.
  • the SLA information includes the buffer upper bound, and the buffer upper bound is the minimum value of the available buffer of the device including the shaper among the devices transmitting the data stream.
  • the cache upper bound has a mapping relationship with the target latency upper bound.
  • the buffer upper bound may be converted into the upper bound of the target delay, and then the upper bound of the shaping delay may be determined by referring to the method in the first case above.
  • S304 The first device sends the shaper parameter to the third device.
  • the first device is a control device 101, which is not a device for transmitting data streams, and the control device does not include a shaper for adjusting data streams.
  • the first device sends the shaper parameter to the third device including the shaper, wherein the third device is a device including the shaper among the devices for transmitting data streams.
  • the third device may be the network devices 102 - 104 in FIG. 1 or the sending end device 105 .
  • the first device sends the shaper parameter to the third device through a committed information rate of a scheduler instance (scheduler instance) of NETCONF/YANG or RESTCONF/YANG.
  • the second device that collects traffic collection information of the data stream may be the same device as the third device that includes the shaper.
  • the network device 102 may be a second device that collects traffic collection information of data streams, and the network device 102 may also be a third device including a shaper.
  • the first device namely the control device 101 , obtains traffic collection information from the network device 102 and sends shaper parameters to the network device 102 .
  • the second device that collects traffic collection information of the data stream may be different from the third device that includes shaping.
  • the network device 102 may be a second device that collects traffic collection information of data streams, and the network device 103 is a third device including a shaper.
  • the first device that is, the control device 101 obtains traffic collection information from the network device 102 and sends shaper parameters to the network device 103 .
  • S305 The third device configures the shaper according to the shaper parameter.
  • the third device configures the shaper by using the received shaper parameters.
  • the configured shaper is used to shape the data flow, so that the transmission of the data flow adjusted by the shaper can meet the transmission requirements indicated by the SLA information.
  • the first device can obtain the shaper parameters corresponding to the SLA information of the data flow according to the flow collection information of the data flow and the SLA information corresponding to the data flow, and can more accurately shape the data flow through the shaper Processing, so that the processed data flow meets the transmission requirements indicated by the SLA information.
  • the parameters of the shaper can be more accurately and flexibly matched with the service requirements corresponding to the data flow, and the differentiated guarantee for the service requirements of the data flow of different service types can be realized.
  • Case 1 The congestion degree of the network is greater than the threshold.
  • the forwarding device that transmits the data stream has a preset buffer capacity, which is used to ensure that the actual forwarding delay of the forwarding device forwarding the data stream is less than or equal to the promised forwarding delay.
  • the forwarding device can control network congestion by adjusting the occupied preset buffer capacity.
  • the degree of congestion of the network may be determined according to the remaining capacity of the forwarding equipment transmitting the data flow. Wherein, the remaining capacity is used to represent the remaining forwarding capability of the forwarding device when the committed forwarding delay of the forwarding device is guaranteed.
  • the remaining capacity of the forwarding device may specifically be the unused preset buffer capacity of the forwarding device, which may be obtained by subtracting the burst amount of the data flow from the preset buffer capacity of the forwarding device.
  • each forwarding device may report the remaining capacity corresponding to each forwarding device to the first device.
  • the first device determines the congestion degree of the network according to the obtained remaining capacity of each forwarding device.
  • the first device may determine the congestion degree according to the remaining capacity of each forwarding device.
  • the first device may determine the bottleneck device according to the remaining capacity of each forwarding device.
  • the bottleneck device is the forwarding device with the smallest remaining capacity.
  • the first device may determine the degree of congestion according to the remaining capacity of the bottleneck device, and may also adjust the weight used when determining the degree of congestion based on the remaining capacity of the bottleneck device.
  • the congestion degree of the network When the congestion degree of the network is greater than the threshold, it indicates that the congestion degree of the network may not meet the requirement of the congestion degree of data stream transmission.
  • the transmission mode of the data flow may be further adjusted, so that the adjusted data flow can meet the transmission requirement indicated by the SLA information and the congestion degree is less than or equal to the threshold.
  • the embodiment of the present application provides three possible methods for adjusting data stream transmission, one or more of which may be used to adjust the data stream transmission, specifically including:
  • Manner 1 The first device adjusts the SLA information, re-determines the shaper parameters based on the adjusted SLA information, and adjusts the data flow.
  • the first device may adjust the composition of the upper bound of the target delay or the upper bound of the cache included in the SLA information, so as to adjust the parameters of the shaper.
  • the target delay may include shaping delay and network forwarding delay.
  • the network forwarding delay may have a certain value range.
  • the first device can adjust the network forwarding delay, so as to realize the adjustment of the shaping delay, and then adjust the parameters of the shaper, so as to realize the adjustment of the data flow.
  • the first device may adjust the distribution ratio of the shaping delay and the network forwarding delay.
  • the proportion of the shaping delay and the network forwarding delay may be randomly determined within a certain proportion range.
  • the adjustment step size may be increased for the shaping delay, and the adjustment step size may be decreased for the network forwarding delay.
  • the adjustment step size can be determined according to the congestion degree of the network, and the adjustment step size can be a positive number or a negative number.
  • the first device then uses the adjusted shaping delay to calculate and obtain adjusted shaper parameters.
  • the second device may configure the shaper with the adjusted shaper parameters.
  • the first device may calculate the committed forwarding delay corresponding to each forwarding device, or calculate the forwarding bandwidth corresponding to each forwarding device.
  • the first device sends the re-determined committed forwarding delay or forwarding bandwidth of the forwarding device to each forwarding device, so that each forwarding device adjusts the committed forwarding delay or forwarding bandwidth.
  • the congestion degree of the network is still greater than the threshold, and the SLA information can be adjusted again to continue to generate the corresponding The shaper parameter adjusts the data flow until the times of adjusting the SLA information reaches the adjustment threshold, or the congestion degree is less than or equal to the threshold.
  • Manner 2 The first device adjusts the queue into which the data flow enters.
  • the first device may adjust the queues into which the data streams enter, and re-divide the queues into which the data streams enter, so that the adjusted data streams can meet the transmission requirements indicated by the SLA information and the congestion degree is less than or equal to the threshold.
  • the queue into which the data flow enters can be divided again, and the congestion level can be re-determined until the adjustment The number of times the data flow enters the queue reaches the adjustment threshold, or until the degree of congestion is less than or equal to the threshold.
  • Manner 3 The first device adjusts the transmission path of the data stream.
  • the first device may also adjust the transmission path of the transmission data stream. Re-determine the transmission path of the data flow by adjusting the equipment that transmits the data flow.
  • the first device obtains a transmission path of the data stream through multiprotocol label switching (multiprotocol label switching, MPLS) or traffic engineering (traffic engineering, TE) technology, and determines a device for transmitting the data stream on the transmission path.
  • the first device determines the device on the path for transmitting the data stream, it can obtain network status information and device capability information based on the network configuration protocol (network configuration protocol, NETCONF) or representational state transfer configuration protocol (representational state transfer configuration protocol, RESTCONF) , such as obtaining the port rate, the maximum available bandwidth of the link, the maximum remaining bandwidth of the link, the weight of the link, the maximum transmission unit (MTU) of the link, the scheduling method and parameters of the device, and the processing time of the device Delay, device cache capability and other information.
  • the first device acquires network status information and device capability information through NETCONF/YANG or RESTCONF/YANG. It should be understood that the first device may deploy network resources according to the foregoing network status information and device
  • the transmission path of the data flow can be adjusted again, and the congestion degree can be re-determined. Until the number of times of adjusting the transmission path of the data flow reaches the adjustment threshold, or the degree of congestion is less than or equal to the threshold.
  • the data flow When the data flow is transmitted, the data flow may also be divided into queues, diverted, and converged with other data flows, resulting in the expected transmission process of one or more data flows, or the actual transmission process.
  • the transmission requirements indicated by the SLA information corresponding to the data flow are met.
  • the network management device may be a device including a path computation element (path computation element, PCE), or may be a device connected to the PCE.
  • path computation element PCE
  • the transmission of the data flow needs to be adjusted.
  • one or more of the above three methods for adjusting data stream transmission may be used, so that the adjusted data stream meets the transmission requirements of the SLA information.
  • the congestion degree of the network or the delay of the network transmission data flow or the estimated value of the delay of the network transmission data flow, it can be judged whether the network transmission data flow can meet the transmission requirements of the data flow.
  • the transmission of the data flow is adjusted so that the transmission of the data flow meets the transmission requirements.
  • the first device is an independent control device.
  • the first device can also be a device with an integrated control function.
  • FIG. indivual With reference to the schematic diagram of the network architecture shown in FIG. indivual.
  • the first device with a control function may acquire traffic collection information of the data flow, and configure shaper parameters for a shaper included in itself.
  • the sending end device 105 or the network devices 102-104 can acquire the traffic collection information of the data flow, obtain the shaper parameters based on the traffic collection information of the data flow and the SLA information corresponding to the data flow, and The shaper included with the device is configured.
  • FIG. 5 is a schematic flowchart of a network configuration method provided in the embodiment of the present application, specifically including:
  • S501 The first device acquires traffic collection information of a data stream.
  • the first device collects traffic on the transmitted data stream to obtain traffic collection information.
  • traffic collection information of the data stream refer to the description in S301, and details are not repeated here.
  • the first device determines shaper parameters according to traffic collection information and SLA information corresponding to the data flow.
  • S503 The first device configures the shaper according to the shaper parameter.
  • the first device Based on the determined shaper parameters, the first device configures shaper parameters for the included shaper, so that the shaper after the shaper parameter configuration can adjust the data flow to meet the transmission indicated by the SLA information corresponding to the data flow Require.
  • the first device with a control function may obtain traffic collection information of the data flow through other devices, and send the obtained shaper parameters to other devices including the shaper. Wherein, the traffic collection information of the data flow and the shaper parameters may be sent to the first device through the transmission path of the transmission data flow.
  • the first device may be the receiving end device 106, and the network device 102 may obtain the flow collection information of the data flow, and send the flow collection information of the data flow to the receiving end device through the network devices 103 and 104 106.
  • the receiver device 106 After obtaining the shaper parameters, the receiver device 106 sends the shaper parameters to the network device 102 including the shaper, so that the network device 102 configures the shaper parameters for the shaper.
  • the interaction process between devices can refer to the schematic diagram of interaction of the network configuration method shown in FIG. 3 , which will not be repeated here.
  • the second device may be the same device as the first device.
  • the first device collects traffic collection information of the data flow, determines shaper parameters based on the traffic collection information, and sends the shaper parameters to a third device including the shaper, so that the third device uses the shaper parameters to configure the shaper, and the data flow Carry out shaping.
  • the first device may be the sink device 106 .
  • the first device may collect data streams, obtain traffic collection information, obtain shaper parameters, and send the shaper parameters to the third device, that is, the network device 102 .
  • the network device 102 configures the shaper with shaper parameters, so that the shaper processes the data flow.
  • the third device may be the same device as the first device.
  • the second device collects traffic collection information of the data stream, determines shaper parameters based on the traffic collection information, and uses the shaper parameters to adjust the shaper included in the first device.
  • the second device may be the sending end device 105
  • the first device may be the network device 102 .
  • the second device may collect the data flow to obtain flow collection information.
  • the second device sends the traffic collection information to the first device, that is, the network device 102 .
  • the network device 102 obtains the shaper parameters according to the traffic collection information and the SLA information corresponding to the data flow.
  • the network device 102 configures the shaper using the obtained shaper parameters.
  • the target delay includes the shaping delay, and also includes one or more of the fixed delay and the actual forwarding delay.
  • the actual forwarding delay can be the , sending the forwarding delay to the first device.
  • the first device is the receiving end device 106 .
  • the actual device forwarding delay of the network device 102 is sent to the receiving end device 106 through the network devices 103 and 104 .
  • the network devices 103 and 104 forward the data flow
  • the actual device forwarding delay of the device is sent to the receiving end device 106 through the network device through the transmission path of the subsequent data flow.
  • the receiver device 106 determines the actual forwarding delay based on the forwarding delay sent by the network devices 102-104.
  • the embodiment of the present application also provides a situation in which the first device is a device with an integrated control function, an abnormal situation that may occur in network transmission and a corresponding adjustment method.
  • the first device is a device with an integrated control function
  • an abnormal situation that may occur in network transmission and a corresponding adjustment method.
  • the following is an introduction to possible abnormalities in network transmission and corresponding adjustment methods.
  • Case 1 The congestion degree of the network is greater than the threshold.
  • the method for determining the degree of network congestion and the method for adjusting it are similar to the first case above, that is, the method for the degree of network congestion is greater than the threshold, please refer to the above description, and will not repeat them here.
  • the remaining capacity of the forwarding device may be transmitted to the first device through a transmission path for transmitting data streams.
  • the receiving end device 106 in FIG. 2 as the first device as an example, the method for the first device to obtain the remaining capacity of the forwarding device will be described below.
  • the forwarding devices are network devices 102-104. Each forwarding device can obtain the remaining capacity according to the burst amount when transmitting the data stream and the preset buffer capacity of the forwarding device.
  • the preset buffer capacity of each forwarding device is C x , where x is the number of forwarding devices.
  • the burst size when the forwarding device transmits the data flow is b x , please refer to formula (14).
  • r is the output bandwidth of the data stream output by the shaper
  • T x is the actual forwarding delay of the forwarding device.
  • b 0 is the minimum value of the available cache of the shaper.
  • Each forwarding device can obtain the remaining capacity C x ′ according to the burst amount of the transmission data flow and the preset buffer capacity.
  • C x ' please refer to formula (15).
  • the forwarding device sends one or more of the burst b x and the remaining capacity C x ′ to the receiving end device 106 through the transmission path of the transmission data flow.
  • the receiving end device 106 may determine whether the congestion degree of the network is greater than a threshold according to the obtained remaining capacity of each forwarding device.
  • the method of determining the delay or the estimated value of the delay and the adjustment method are the same as the second case above, that is, the delay of transmitting the data flow from the source to the destination, or the time of transmitting the data flow from the source to the destination.
  • the first device can obtain the shaper parameters corresponding to the data flow and the SLA information of the data flow according to the traffic collection information of the data flow and the SLA information corresponding to the data flow, and can achieve more accurate data flow through the shaper.
  • the data flow is shaped so that the processed data flow meets the transmission requirements indicated by the SLA information.
  • the parameters of the shaper can be more accurately and flexibly matched with the service requirements corresponding to the data flow, and the differentiated guarantee for the service requirements of the data flow of different service types can be realized.
  • FIG. 6 is a schematic structural diagram of a first device 1000 according to an embodiment of the present application.
  • the first device 1000 shown in FIG. 6 may execute corresponding steps performed by the first device in the method of the foregoing embodiments.
  • the first device is deployed in a communications network that also includes a second device.
  • the first device 1000 includes an acquiring unit 1001 and a processing unit 1002 .
  • An acquisition unit 1001 configured to acquire traffic collection information of the data stream
  • the processing unit 1002 is configured to determine shaper parameters according to traffic collection information and SLA information corresponding to the data flow; the shaper parameters are used by the shaper to adjust the data flow to meet the transmission requirements indicated by the SLA information.
  • processing unit 1002 is specifically configured to:
  • the target bandwidth is the minimum value of the available bandwidth used to transmit the data flow to meet the transmission requirements indicated by the SLA information;
  • the processing unit 1002 when the processing unit 1002 obtains the target bandwidth according to the traffic collection information and the SLA information corresponding to the data flow, the processing unit 1002 is specifically configured to:
  • the target bandwidth is obtained according to the range of the target bandwidth and the SLA information corresponding to the data flow.
  • the processing unit 1002 obtains the target bandwidth according to the traffic collection information
  • the processing unit 1002 is specifically configured to:
  • the range of the target bandwidth is determined according to the reference value and the correction value;
  • the reference value is the reference value of the target bandwidth determined according to the traffic collection information, and the correction value indicates the fluctuation amount of the target bandwidth relative to the reference value.
  • the range in which the processing unit 1002 obtains the target bandwidth according to the traffic collection information includes:
  • the first device determines the range of the target bandwidth according to the distribution fitting algorithm and the traffic collection information.
  • the traffic collection information includes the length of the packets of the data stream in multiple collection periods; when the processing unit 1002 obtains the target bandwidth according to the traffic collection information and the SLA information corresponding to the data stream, the processing unit 1002 is specifically used for:
  • the burst volume is the length of the message corresponding to each collection cycle in multiple collection cycles;
  • the first device also includes:
  • the first adjustment unit is configured to adjust the SLA information in response to the congestion degree being greater than the threshold, so that the data flow is adjusted according to the shaper parameters determined according to the adjusted SLA information and the traffic collection information, so as to meet the transmission requirements indicated by the SLA information and The degree of congestion is less than or equal to the threshold;
  • the degree of congestion is determined according to the remaining capacity of the forwarding equipment, and the remaining capacity refers to the remaining forwarding capability of the forwarding equipment under the guaranteed forwarding delay of the forwarding equipment. delay.
  • the first device also includes:
  • the second adjustment unit adjusts the SLA information in response to the time delay of transmitting the data flow from the source end to the destination end, or the estimated value of the time delay of transmitting the data flow from the source end to the destination end does not meet the transmission requirements of the SLA information, so that Adjust the data flow according to the adjusted SLA information and the shaper parameters determined by the traffic collection information, so as to meet the transmission requirements indicated by the SLA information;
  • the transmission path of the data flow is adjusted so that the data flow transmitted through the transmission path meets the transmission requirements indicated by the SLA information.
  • the SLA information includes the upper bound of the target delay; the upper bound of the target delay indicates the upper bound of the delay of the data flow from the source end to the destination end.
  • the target delay includes a shaping delay; the shaping delay indicates a delay during processing of the data flow in the shaper.
  • the target delay also includes one or more of fixed delay and network forwarding delay;
  • fixed delay includes one or more of propagation delay, device processing delay and port delay; Latency is the delay of data flow propagating in the transmission medium; device processing delay is the delay of equipment processing data flow; port transmission delay is the delay of transmitting data flow through the port; network forwarding delay is from source to At the destination end, the preset delay for data streams to wait for processing in the forwarding device.
  • the network forwarding delay indicates the sum of committed forwarding delays of multiple forwarding devices transmitting data streams; the committed forwarding delay is a preset delay for data streams waiting to be processed in the forwarding devices.
  • the network forwarding delay is determined according to preset forwarding bandwidths of multiple forwarding devices transmitting data streams; the preset forwarding bandwidth is the preset bandwidth of data streams forwarded by the forwarding devices.
  • the target delay also includes one or more of fixed delay and actual forwarding delay
  • the actual forwarding delay indicates the delay of the data flow waiting to be processed in the forwarding device from the source end to the destination end.
  • the SLA information includes a cache upper bound; the cache upper bound is a minimum value of an available cache of a device including a shaper among devices transmitting data streams.
  • the SLA information further includes a reliability probability, where the reliability probability is a probability of meeting a transmission requirement indicated by the SLA information corresponding to the data flow.
  • the acquiring unit 1001 is specifically used for:
  • the flow collection information of the data flow sent by the second device is received; the second device is a device for transmitting the data flow.
  • the acquiring unit 1001 is specifically used for:
  • the flow collection information of the data flow collected by the first device is acquired.
  • the traffic collection information includes the statistical value of the length of the packets of the data flow in multiple collection periods; the statistical value includes an average value, and the average value indicates the length of multiple packets in the collected data flow and is related to the length of multiple packets collected in the data flow. The ratio of the number of collection cycles experienced by the packet.
  • the statistical value also includes one or more of the second-order moment and the fourth-order moment;
  • the second-order moment indicates that the sum of the squares of the lengths of the multiple packets in the collected data stream is equal to the sum of the lengths of the multiple packets collected.
  • the fourth moment indicates the ratio of the sum of the fourth powers of the lengths of the plurality of packets in the acquisition data stream to the number of acquisition cycles experienced by the acquisition of the plurality of packets.
  • the first device also includes:
  • a sending unit configured to send the shaper parameters to a third device; the third device is a device for transmitting data streams including the shaper.
  • the first device is a control device or a device for transmitting data streams.
  • control device is a central network control CNC device.
  • the shaper parameters include at least one of token bucket depth and token generation rate.
  • the shaper parameters include at least one of a credit accumulation rate and a credit consumption rate.
  • FIG. 7 is a schematic diagram of a hardware structure of a first device 1100 according to an embodiment of the present application.
  • the first device 1100 shown in FIG. 7 may execute corresponding steps performed by the first device in the method of the foregoing embodiments.
  • the first device 1100 includes a processor 1101 , a memory 1102 , an interface 1103 and a bus 1104 .
  • the interface 1103 can be implemented in a wireless or wired manner, specifically, it can be a network card.
  • the aforementioned processor 1101 , memory 1102 and interface 1103 are connected through a bus 1104 .
  • the interface 1103 may specifically include a transmitter and a receiver for sending and receiving information between the first device and the second device in the above embodiment, and between the first device and the third device in the above embodiment.
  • the interface 1103 is configured to support receiving a traffic collection message sent by the second device.
  • the interface 1103 is used to support the first device to send the shaper parameter to the third device.
  • the interface 1103 is used to support the processes S302 and S304 in FIG. 3 .
  • the processor 1101 is configured to execute the processing performed by the first device in the foregoing embodiments.
  • the processor 1101 is configured to determine shaper parameters according to traffic collection information and SLA information corresponding to the data flow; and/or other processes used in the technologies described herein.
  • the processor 1101 is used to support the process S303 in Fig. 3 .
  • the memory 1102 includes an operating system 11021 and an application program 11022 for storing programs, codes or instructions. When the processor or hardware device executes these programs, codes or instructions, the processing process related to the first device in the method embodiment can be completed.
  • the memory 1102 may include a read-only memory (English: Read-only Memory, abbreviated: ROM) and a random access memory (English: Random Access Memory, abbreviated: RAM).
  • ROM includes basic input/output system (English: Basic Input/Output System, abbreviation: BIOS) or embedded system
  • RAM includes application program and operating system.
  • the BIOS solidified in the ROM or the bootloader in the embedded system is used to boot the system, and guide the first device 1100 into a normal running state. After the first device 1100 enters the normal running state, the application program and the operating system in the RAM are run, thereby completing the processing procedures related to the first device in the method embodiment.
  • FIG. 7 only shows a simplified design of the first device 1100 .
  • the first device may include any number of interfaces, processors or memories.
  • FIG. 8 is a schematic diagram of a hardware structure of another first device 1200 according to an embodiment of the present application.
  • the first device 1200 shown in FIG. 8 may execute corresponding steps performed by the first device in the method of the foregoing embodiments.
  • the first device 1200 includes: a main control board 1210 , an interface board 1230 , a switching fabric board 1220 , and an interface board 1240 .
  • the main control board 1210, the interface boards 1230 and 1240, and the switching fabric board 1220 are connected to the system backplane through the system bus to realize intercommunication.
  • the main control board 1210 is used to complete functions such as system management, equipment maintenance, and protocol processing.
  • the SFU 1220 is used to implement data exchange between interface boards (interface boards are also called line cards or service boards).
  • the interface boards 1230 and 1240 are used to provide various service interfaces (for example, POS interface, GE interface, ATM interface, etc.), and realize data packet forwarding.
  • the interface board 1230 may include a central processing unit 1231 , a forwarding entry storage 1234 , a physical interface card 1233 and a network processor 1232 .
  • the central processing unit 1231 is used for controlling and managing the interface board and communicating with the central processing unit on the main control board.
  • the forwarding entry storage 1234 is used for storing forwarding entries.
  • the physical interface card 1233 is used to receive and send traffic.
  • the network storage 1232 is used to control the physical interface card 1233 to send and receive traffic according to the forwarding entry.
  • the physical interface card 1233 may be used to receive traffic collection information sent by the second device.
  • the physical interface card 1233 may also be used to send shaper parameters to the third device.
  • the physical interface card 1233 receives the flow collection information, and sends the flow collection information to the central processing unit 1211 via the central processing unit 1231, and the central processing unit 1211 processes the flow collection information.
  • the central processing unit 1211 is further configured to determine shaper parameters according to traffic collection information and SLA information corresponding to the data flow.
  • the central processor 1231 is also used to control the network storage 1232 to obtain the forwarding entry in the forwarding entry storage 1234, and the central processing unit 1231 can also be used to control the network storage 1232 to send the shaper parameters to the third device via the physical interface card 1233 .
  • the operations on the interface board 1240 in this embodiment of the present invention are consistent with the operations on the interface board 1230 , and are not repeated for brevity. It should be understood that the first device 1200 in this embodiment may correspond to the functions and/or various steps implemented in the foregoing method embodiments, and details are not repeated here.
  • main control boards there may be one or more main control boards, and when there are multiple main control boards, the main main control board and the standby main control board may be included.
  • interface boards There may be one or more interface boards, and the stronger the data processing capability of the first device, the more interface boards it provides.
  • SFU There may be no SFU, or there may be one or more SFUs. When there are multiple SFUs, they can jointly implement load sharing and redundant backup. Under the centralized forwarding architecture, the first device may not need a switching network board, and the interface board is responsible for processing service data of the entire system.
  • the first device may have at least one SFU, through which data exchange between multiple interface boards is implemented, and large-capacity data exchange and processing capabilities are provided. Therefore, the data access and processing capabilities of the first device in the distributed architecture are greater than those in the centralized architecture. Which architecture to use depends on the specific networking deployment scenario, and there is no limitation here.
  • an embodiment of the present application provides a computer storage medium for storing computer software instructions used by the above-mentioned first device, which includes the program designed for executing the above-mentioned method embodiment.
  • the embodiment of the present application also includes a network system, the network system includes a first device and a second device,
  • the second device is configured to send traffic collection information of the data stream to the first device
  • the first device is configured to receive traffic collection information of the data stream sent by the second device;
  • the first device is further configured to determine shaper parameters according to traffic collection information and SLA information corresponding to the data flow; the shaper parameters are used by the shaper to adjust the data flow to meet the transmission requirements indicated by the SLA information.
  • the network system further includes a third device,
  • the first device is further configured to send the shaper parameter to the third device;
  • the third device is configured to receive the shaper parameters sent by the first device, and configure the shaper according to the shaper parameters; the third device is a device for transmitting data streams including the shaper.
  • the first device may be the first device in the aforementioned FIG. 6 or FIG. 7 or FIG. 8 , and realize any function described in the foregoing embodiments.
  • the disclosed system, device and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of units is only a logical business division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separated, and a component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each business unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software business units.
  • the integrated unit is realized in the form of a software business unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
  • the services described in the present invention may be implemented by hardware, software, firmware or any combination thereof.
  • the services may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

Embodiments of the present application disclose a network configuration method, a device and a system. According to traffic acquisition information of a data flow and SLA information corresponding to the data flow, a first device may acquire shaper parameters corresponding to the data flow and the SLA information of the data flow, and can relatively accurately shape the data flow by means of a shaper, so that the processed data flow meets transmission requirements indicated by the SLA information. On the basis of the traffic acquisition information of the data flow, the shaper parameters can be more accurately and flexibly matched with service requirements corresponding to the data flow, thereby achieving differentiated assurances for service requirements of data flows of different service types.

Description

一种网络配置方法、设备和系统A network configuration method, device and system
本申请要求于2021年07月05日提交中国国家知识产权局、申请号为202110759176.5、发明名称为“一种网络配置方法、设备和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110759176.5 and the title of the invention "a network configuration method, device and system" submitted to the State Intellectual Property Office of China on July 05, 2021, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种网络配置方法、设备和系统。The present application relates to the technical field of communications, and in particular to a network configuration method, device and system.
背景技术Background technique
整形器(shaper)用于对网络中传输的数据流进行传输速率等方面的调整。通过整形器可以限制数据流的突发,实现数据流的较为稳定的传输,防止出现网络拥塞或者传输抖动等问题,满足数据流传输的业务需求。A shaper (shaper) is used to adjust the transmission rate and other aspects of the data stream transmitted in the network. The data flow burst can be limited by the shaper, so as to realize relatively stable data flow transmission, prevent problems such as network congestion or transmission jitter, and meet the business requirements of data flow transmission.
目前,第五代(fifth-generation,5G)技术的超高可靠性超低时延通信(ultra-reliable low-latency communication,URLLC)多业务对服务质量(quality of service,QoS)有严格的要求。并且,不同业务类型的业务具有不同的需要满足的业务需求。需要网络基于业务需求对网络资源进行合理分配,满足不同业务类型的业务所对应的业务需求。At present, the ultra-reliable low-latency communication (URLLC) multi-service of the fifth-generation (5G) technology has strict requirements on the quality of service (QoS) . Moreover, services of different service types have different service requirements that need to be met. It is necessary for the network to reasonably allocate network resources based on business requirements to meet the corresponding business requirements of different business types.
但是,整形器中用于调整数据流的整形器参数较为固定,导致基于整形器参数调整后的数据流无法满足部分业务场景下的业务需求。如何确定整形器的整形器参数以满足数据流传输的业务需求,是需要解决的技术问题。However, the shaper parameters used to adjust the data flow in the shaper are relatively fixed, so that the data flow adjusted based on the shaper parameters cannot meet the service requirements in some business scenarios. How to determine the shaper parameters of the shaper to meet the business requirements of data stream transmission is a technical problem that needs to be solved.
发明内容Contents of the invention
本申请实施例提供了一种网络配置方法、设备和系统,能够根据数据流的流量采集信息和数据流对应的服务等级协议(service level agreement,SLA)信息确定整形器参数,使得利用整形器参数调整后的数据流能够满足数据流对应的SLA信息指示的传输要求,与数据流对应的业务需求相匹配。The embodiment of the present application provides a network configuration method, device and system, which can determine the shaper parameters according to the traffic collection information of the data flow and the service level agreement (service level agreement, SLA) information corresponding to the data flow, so that the shaper parameters can be used The adjusted data flow can meet the transmission requirements indicated by the SLA information corresponding to the data flow, and match the service requirements corresponding to the data flow.
本申请实施例提供的技术方案如下。The technical solutions provided by the embodiments of the present application are as follows.
第一方面,提供了一种网络配置方法,所述方法包括:第一设备获取数据流所对应的流量采集信息,并基于获取到的流量采集信息和数据流对应的SLA信息确定整形器的整形器参数。其中,整形器参数用于配置整形器,以便整形器对数据流进行调整,以满足SLA信息指示的传输要求。根据数据流的流量采集信息和数据流对应的SLA信息确定的整形器参数,与数据流以及数据流的SLA信息更为匹配,能够实现较为准确地通过整形器对数据流进行整形处理,使得处理后的数据流满足SLA信息指示的传输要求。In a first aspect, a network configuration method is provided, the method comprising: a first device acquires traffic collection information corresponding to a data flow, and determines the shaping of the shaper based on the obtained traffic collection information and the SLA information corresponding to the data flow device parameters. Wherein, the shaper parameter is used to configure the shaper, so that the shaper adjusts the data flow to meet the transmission requirements indicated by the SLA information. The shaper parameters determined according to the traffic collection information of the data stream and the corresponding SLA information of the data stream are more compatible with the data stream and the SLA information of the data stream, and can realize the shaping process of the data stream through the shaper more accurately, so that the processing The subsequent data flow meets the transmission requirements indicated by the SLA information.
在一种可能的实现方式中,第一设备先确定目标带宽,再根据目标带宽确定整形器参数。第一设备基于获取的数据流的流量采集信息和数据流对应的SLA信息确定目标带宽,并根据目标带宽确定整形器参数。其中,目标带宽为在满足SLA信息指示的传输要求的前提下,用于传输数据流的可用带宽的最小值。基于目标带宽,可以确定较为准确的整形器 参数,使得调整后的数据流能够满足数据流对应的SLA信息所指示的传输要求。In a possible implementation manner, the first device first determines the target bandwidth, and then determines the shaper parameters according to the target bandwidth. The first device determines a target bandwidth based on the acquired traffic collection information of the data flow and SLA information corresponding to the data flow, and determines a shaper parameter according to the target bandwidth. Wherein, the target bandwidth is the minimum value of the available bandwidth for transmitting the data flow on the premise of meeting the transmission requirements indicated by the SLA information. Based on the target bandwidth, more accurate shaper parameters can be determined, so that the adjusted data flow can meet the transmission requirements indicated by the SLA information corresponding to the data flow.
在一种可能的实现方式中,第一设备可以先确定目标带宽的范围,再从目标带宽的范围内选取目标带宽。第一设备先根据流量采集信息,确定目标带宽的范围,再根据数据流对应的SLA信息,在目标带宽的范围中确定目标带宽。基于流量采集信息确定的目标带宽的范围,可以与数据流相匹配。在目标带宽的范围内确定与数据流对应的SLA信息相匹配的目标带宽。从而能够得到与数据流和数据流对应的SLA信息相匹配的目标带宽,以满足SLA信息指示的传输要求。In a possible implementation manner, the first device may first determine the range of the target bandwidth, and then select the target bandwidth from within the range of the target bandwidth. The first device first determines the range of the target bandwidth according to the traffic collection information, and then determines the target bandwidth within the range of the target bandwidth according to the SLA information corresponding to the data flow. The range of the target bandwidth determined based on the flow collection information may be matched with the data flow. The target bandwidth matching the SLA information corresponding to the data flow is determined within the range of the target bandwidth. Therefore, the target bandwidth matching the data flow and the SLA information corresponding to the data flow can be obtained, so as to meet the transmission requirement indicated by the SLA information.
在一种可能的实现方式中,第一设备可以采用以下两种方式确定目标带宽的范围。In a possible implementation manner, the first device may determine the range of the target bandwidth in the following two manners.
在第一种方式中,第一设备根据目标带宽的基准值和目标带宽的修正值确定目标带宽的范围。其中,目标带宽的基准值是根据流量采集信息确定的,目标带宽的修正值指示目标带宽相对于基准值的波动量。In the first manner, the first device determines the range of the target bandwidth according to the reference value of the target bandwidth and the correction value of the target bandwidth. Wherein, the reference value of the target bandwidth is determined according to the traffic collection information, and the correction value of the target bandwidth indicates the amount of fluctuation of the target bandwidth relative to the reference value.
在第二种方式中,第一设备基于分布拟合算法和流量采集信息确定目标带宽的范围。In the second manner, the first device determines the range of the target bandwidth based on a distribution fitting algorithm and traffic collection information.
在一种可能的实现方式中,流量采集信息包括数据流在多个采集周期内的报文的长度。对应的,第一设备可以根据获取的数据流的流量采集信息确定数据流的突发量,再利用突发量和与数据流对应的SLA信息计算得到目标带宽。其中,突发量是多个采集周期中每个采集周期对应的报文的长度。In a possible implementation manner, the flow collection information includes the length of packets of the data flow in multiple collection periods. Correspondingly, the first device may determine the burst volume of the data stream according to the acquired traffic collection information of the data stream, and then calculate the target bandwidth by using the burst volume and SLA information corresponding to the data stream. Wherein, the burst amount is the length of the message corresponding to each acquisition period among the plurality of acquisition periods.
在一种可能的实现方式中,在当拥塞程度大于阈值时,第一设备采取以下三种方式中的一种或者多种进行调整,以满足SLA信息指示的传输要求且拥塞程度小于或者等于阈值。其中,拥塞程度根据转发设备的剩余容量确定。剩余容量是指在保证转发设备的承诺转发时延下的转发设备的剩余转发能力。承诺转发时延为数据流在转发设备中等待处理的预设的时延。In a possible implementation, when the degree of congestion is greater than the threshold, the first device adopts one or more of the following three ways to adjust to meet the transmission requirements indicated by the SLA information and the degree of congestion is less than or equal to the threshold . Wherein, the degree of congestion is determined according to the remaining capacity of the forwarding device. The remaining capacity refers to the remaining forwarding capability of the forwarding device when the committed forwarding delay of the forwarding device is guaranteed. The committed forwarding delay is the preset delay for data streams waiting to be processed in the forwarding device.
在第一种方式中,第一设备调整SLA信息,以使根据流量采集信息和调整后的SLA信息确定的整形器参数对数据流进行调整。In the first manner, the first device adjusts the SLA information, so that the shaper parameters determined according to the traffic collection information and the adjusted SLA information adjust the data flow.
在第二种方式中,第一设备调整数据流进入的队列。In the second manner, the first device adjusts the queue into which the data flow enters.
在第三种方式中,第一设备调整数据流的传输路径,以使通过数据流的传输路径传输数据流。In the third way, the first device adjusts the transmission path of the data flow, so that the data flow is transmitted through the transmission path of the data flow.
在一种可能的实现方式中,在当从源端到目的端传输数据流的时延,或者,从源端到目的端传输数据流的时延的估计值,不满足SLA信息的传输要求时,第一设备采取以下三种方式中的一种或者多种进行调整,以满足SLA信息指示的传输要求。In a possible implementation, when the delay in transmitting data streams from the source to the destination, or the estimated value of the delay in transmitting data streams from the source to the destination, does not meet the transmission requirements of the SLA information , the first device adopts one or more of the following three ways to adjust to meet the transmission requirement indicated by the SLA information.
在第一种方式中,第一设备调整SLA信息,以使根据流量采集信息和调整后的SLA信息确定的整形器参数对数据流进行调整。In the first manner, the first device adjusts the SLA information, so that the shaper parameters determined according to the traffic collection information and the adjusted SLA information adjust the data flow.
在第二种方式中,第一设备调整数据流进入的队列。In the second manner, the first device adjusts the queue into which the data flow enters.
在第三种方式中,第一设备调整数据流的传输路径,以使通过数据流的传输路径传输数据流。In the third way, the first device adjusts the transmission path of the data flow, so that the data flow is transmitted through the transmission path of the data flow.
可选的,SLA信息包括目标时延的上界,目标时延的上界指示数据流从源端到目的端的时延的上界。Optionally, the SLA information includes the upper bound of the target delay, and the upper bound of the target delay indicates the upper bound of the delay of the data flow from the source end to the destination end.
可选的,目标时延包括整形时延,整形时延指示数据流在整形器中被处理过程中的时 延。Optionally, the target delay includes shaping delay, and the shaping delay indicates the delay during processing of the data flow in the shaper.
可选的,目标时延还包括固定时延和网络转发时延中的一种或多种,固定时延包括传播时延、设备处理时延和端口时延中的一种或多种。其中,传播时延为数据流在传输介质中传播的时延,设备处理时延为设备处理数据流的时延,端口传输时延为通过端口传输数据流的时延。网络转发时延为从源端到目的端的过程中,数据流在转发设备中等待处理的预设的时延。Optionally, the target delay further includes one or more of a fixed delay and a network forwarding delay, and the fixed delay includes one or more of a propagation delay, a device processing delay, and a port delay. Among them, the propagation delay is the delay of the data stream propagating in the transmission medium, the device processing delay is the delay of the device processing the data stream, and the port transmission delay is the delay of transmitting the data stream through the port. The network forwarding delay is the preset delay for the data flow waiting to be processed in the forwarding device during the process from the source end to the destination end.
可选的,网络转发时延指示传输数据流的多个转发设备的承诺转发时延之和,承诺转发时延为数据流在转发设备中等待处理的预设的时延。Optionally, the network forwarding delay indicates the sum of committed forwarding delays of multiple forwarding devices transmitting data streams, where the committed forwarding delay is a preset delay for data streams waiting to be processed in the forwarding devices.
可选的,网络转发时延根据传输数据流的多个转发设备的预设转发带宽确定,预设转发带宽为转发设备转发数据流的预设的带宽。Optionally, the network forwarding delay is determined according to preset forwarding bandwidths of multiple forwarding devices transmitting data streams, and the preset forwarding bandwidth is the preset bandwidth of data streams forwarded by the forwarding devices.
可选的,目标时延还包括固定时延和实际转发时延中的一种或多种,实际转发时延指示从源端到目的端数据流在转发设备中等待处理的时延。Optionally, the target delay further includes one or more of a fixed delay and an actual forwarding delay, and the actual forwarding delay indicates a delay for a data flow from the source end to the destination end to be processed in the forwarding device.
可选的,SLA信息包括缓存上界,缓存上界为传输数据流的设备中,包括整形器的设备的可用缓存的最小值。Optionally, the SLA information includes a cache upper bound, and the cache upper bound is a minimum value of an available cache of a device including a shaper among devices transmitting data streams.
可选的,SLA信息还包括可靠性概率,可靠性概率为满足数据流对应的SLA信息指示的传输要求的概率。Optionally, the SLA information further includes a reliability probability, where the reliability probability is a probability of meeting a transmission requirement indicated by the SLA information corresponding to the data flow.
在一种可能的实现方式中,第一设备可以通过第二设备获取数据流的流量采集信息。其中,第二设备生成数据流的流量采集信息,并向第一设备发送。第二设备为传输数据流的设备。In a possible implementation manner, the first device may acquire the traffic collection information of the data flow through the second device. Wherein, the second device generates traffic collection information of the data flow, and sends it to the first device. The second device is a device for transmitting data streams.
在另一种可能的实现方式中,第一设备可以获取由第一设备采集生成的数据流的流量采集信息。In another possible implementation manner, the first device may acquire traffic collection information of the data flow collected and generated by the first device.
可选的,流量采集信息包括数据流在多个采集周期内的报文的长度的统计值。统计值包括平均值,平均值指示采集数据流中的多个报文的长度和与采集多个报文所经历的采集周期数量的比值。Optionally, the flow collection information includes statistical values of packet lengths of the data flow in multiple collection periods. The statistical value includes an average value, and the average value indicates the length of the plurality of packets in the collected data stream and the ratio of the number of collection cycles for collecting the plurality of packets.
可选的,统计值还包括二阶矩和四阶矩中的一个或者多个。二阶矩指示采集数据流中的多个报文的长度的二次方之和,与采集多个报文所经历的采集周期数量的比值。四阶矩指示采集数据流中的多个报文的长度的四次方之和,与采集多个报文所经历的采集周期数量的比值。Optionally, the statistical value further includes one or more of second-order moments and fourth-order moments. The second-order moment indicates the ratio of the sum of the squares of the lengths of multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets. The fourth moment indicates the ratio of the sum of the fourth powers of the lengths of multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets.
在一种可能的实现方式中,在第一设备确定整形器的整形器参数后,第一设备可以向第三设备发送整形器参数。第三设备为包括整形器的传输数据流的设备。In a possible implementation manner, after the first device determines the shaper parameter of the shaper, the first device may send the shaper parameter to the third device. The third device is a device for transporting data streams including a shaper.
可选的,第一设备为控制设备或传输数据流的设备。Optionally, the first device is a control device or a device for transmitting data streams.
可选的,控制设备为中心网络控制CNC设备。Optionally, the control device is a central network control CNC device.
可选的,整形器参数包括令牌桶桶深和令牌产生速率中的至少一个。Optionally, the shaper parameters include at least one of token bucket depth and token generation rate.
可选的,整形器参数包括信用积累速率和信用消耗速率中的至少一个。Optionally, the shaper parameters include at least one of a credit accumulation rate and a credit consumption rate.
第二方面,提供了一种第一设备,第一设备具有实现上述方法中第一设备行为的功能。功能可以基于硬件实现,也可以基于硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。在一种实现方式中,所述第一设备包括:获取单元和处理单 元。其中,获取单元,用于获取数据流的流量采集信息。处理单元,用于根据流量采集信息和与数据流对应的SLA信息确定整形器参数,整形器参数用于整形器对数据流进行调整,以满足SLA信息指示的传输要求。In a second aspect, a first device is provided, and the first device has a function of implementing the behavior of the first device in the above method. The functions may be implemented based on hardware, or corresponding software may be implemented based on hardware. Hardware or software includes one or more modules corresponding to the above-mentioned functions. In an implementation manner, the first device includes: an acquisition unit and a processing unit. Wherein, the acquiring unit is configured to acquire traffic collection information of the data stream. The processing unit is configured to determine the shaper parameters according to the traffic collection information and the SLA information corresponding to the data flow, and the shaper parameters are used by the shaper to adjust the data flow to meet the transmission requirements indicated by the SLA information.
在一个可能的设计中,第一设备的结构中包括处理器和接口,处理器被配置为支持第一设备执行上述方法中相应的功能。接口用于支持第一设备与第二设备之间的通信,从第二设备接收上述方法中所涉及的信息或者指令,接口还用于支持第一设备与第三设备之间的通信,向第三设备发送上述方法中所涉及的信息或指令。第一设备还可以包括存储器,存储器用于与处理器耦合,其保存第一设备必要的程序指令和数据。In a possible design, the structure of the first device includes a processor and an interface, and the processor is configured to support the first device to perform corresponding functions in the foregoing method. The interface is used to support the communication between the first device and the second device, and receives the information or instructions involved in the above method from the second device, and the interface is also used to support the communication between the first device and the third device, and sends the information to the second device. The third device sends the information or instructions involved in the above methods. The first device may further include a memory for coupling with the processor, which stores necessary program instructions and data of the first device.
在另一个可能的设计中,第一设备包括:处理器、发送器、接收器、随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接发送器、接收器、随机存取存储器以及只读存储器。其中,当需要运行第一设备时,通过固化在只读存储器中的基本输入/输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导第一设备进入正常运行状态。在第一设备进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第一方面或第一方面的任意可能的实现方式中的方法。In another possible design, the first device includes: a processor, a transmitter, a receiver, a random access memory, a read only memory, and a bus. Wherein, the processor is respectively coupled to the transmitter, the receiver, the random access memory and the read-only memory through the bus. Wherein, when the first device needs to be operated, the basic input/output system solidified in the read-only memory or the bootloader boot system in the embedded system is started to guide the first device into a normal operation state. After the first device enters the normal running state, run the application program and the operating system in the random access memory, so that the processor executes the method in the first aspect or any possible implementation manner of the first aspect.
第三方面,提供一种第一设备,第一设备包括:主控板和接口板,进一步,还可以包括交换网板。第一设备用于执行第一方面或第一方面的任意可能的实现方式中的方法。具体地,第一设备包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的模块。In a third aspect, a first device is provided, and the first device includes: a main control board and an interface board, and may further include a switching fabric board. The first device is configured to execute the method in the first aspect or any possible implementation manner of the first aspect. Specifically, the first device includes a module for executing the method in the first aspect or any possible implementation manner of the first aspect.
第四方面,提供一种第一设备,第一设备包括控制器和第一转发子设备。第一转发子设备包括:接口板,进一步,还可以包括交换网板。第一转发子设备用于执行第三方面中的接口板的功能,进一步,还可以执行第三方面中交换网板的功能。控制器包括接收器、处理器、发送器、随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接接收器、发送器、随机存取存储器以及只读存储器。其中,当需要运行控制器时,通过固化在只读存储器中的基本输入/输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导控制器进入正常运行状态。在控制器进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第三方面中主控板的功能。In a fourth aspect, a first device is provided, and the first device includes a controller and a first forwarding sub-device. The first forwarding sub-device includes: an interface board, and may further include a switching fabric board. The first forwarding sub-device is configured to perform the function of the interface board in the third aspect, and further, may also perform the function of the switching fabric board in the third aspect. The controller includes receiver, processor, transmitter, random access memory, read only memory and bus. Wherein, the processor is respectively coupled to the receiver, the transmitter, the random access memory and the read-only memory through the bus. Wherein, when the controller needs to be operated, the basic input/output system solidified in the read-only memory or the bootloader boot system in the embedded system is started to guide the controller into a normal operation state. After the controller enters the normal operation state, the application program and the operating system are run in the random access memory, so that the processor executes the functions of the main control board in the third aspect.
第五方面,提供了一种计算机存储介质,用于储存为上述第一设备所用的程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成上述第一方面中第一设备的功能或步骤。In the fifth aspect, a computer storage medium is provided, which is used to store the programs, codes or instructions used by the above-mentioned first device. When the processor or hardware device executes these programs, codes or instructions, the first aspect in the above-mentioned first aspect can be completed. A function or step of a device.
第六方面,提供一种网络系统,所述网络系统包括第一设备和第二设备。其中,第二设备为传输数据流的设备。第二设备,用于采集数据流的流量采集信息,并向第一设备发送数据流的流量采集信息。第一设备,用于接收由第二设备发送的数据流的流量采集信息,还用于根据流量采集信息和数据流对应的SLA信息确定整形器参数。整形器参数用于整形器对数据流进行调整,以满足SLA信息指示的传输要求。According to a sixth aspect, a network system is provided, and the network system includes a first device and a second device. Wherein, the second device is a device for transmitting data streams. The second device is configured to collect traffic collection information of the data stream, and send the traffic collection information of the data stream to the first device. The first device is configured to receive traffic collection information of the data stream sent by the second device, and is further configured to determine shaper parameters according to the traffic collection information and SLA information corresponding to the data stream. The shaper parameters are used by the shaper to adjust the data flow to meet the transmission requirements indicated by the SLA information.
可选的,所述网络系统还包括第三设备。其中,第一设备,还用于向第三设备发送整形器参数。第三设备,用于接收第一设备发送的整形器参数,根据整形器参数配置整形器。第三设备为包括整形器的传输数据流的设备。Optionally, the network system further includes a third device. Wherein, the first device is further configured to send the shaper parameter to the third device. The third device is configured to receive the shaper parameters sent by the first device, and configure the shaper according to the shaper parameters. The third device is a device for transporting data streams including a shaper.
通过上述方案,第一设备根据数据流的流量采集信息以及数据流对应的SLA信息,可 以得到与数据流以及数据流的SLA信息相对应的整形器参数,能够实现较为准确地通过整形器对数据流进行整形处理,使得处理后的数据流满足SLA信息指示的传输要求。基于数据流的流量采集信息,能够使得整形器参数更加准确、灵活地与数据流对应的业务需求相匹配,实现针对不同的业务类型的数据流的业务要求的差异化保证。Through the above solution, the first device can obtain the shaper parameters corresponding to the data flow and the SLA information of the data flow according to the traffic collection information of the data flow and the SLA information corresponding to the data flow, and can achieve relatively accurate data shaping through the shaper. The flow is shaped so that the processed data flow meets the transmission requirements indicated by the SLA information. Based on the flow collection information of the data flow, the parameters of the shaper can be more accurately and flexibly matched with the service requirements corresponding to the data flow, and the differentiated guarantee for the service requirements of the data flow of different service types can be realized.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本申请实施例提供的一种网络架构示意图;FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application;
图2为本申请实施例提供的另一种网络架构示意图;FIG. 2 is a schematic diagram of another network architecture provided by an embodiment of the present application;
图3为本申请实施例提供的一种网络配置方法交互示意图;FIG. 3 is an interactive schematic diagram of a network configuration method provided in an embodiment of the present application;
图4为本申请实施例提供的一种携带数据流的SLA信息的报文格式示意图;FIG. 4 is a schematic diagram of a message format carrying SLA information of a data flow provided by an embodiment of the present application;
图5为本申请实施例提供的一种网络配置方法流程示意图;FIG. 5 is a schematic flowchart of a network configuration method provided in an embodiment of the present application;
图6为本申请实施例的第一设备的结构示意图;FIG. 6 is a schematic structural diagram of a first device according to an embodiment of the present application;
图7为本申请实施例的第一设备的硬件结构示意图;FIG. 7 is a schematic diagram of a hardware structure of a first device according to an embodiment of the present application;
图8为本申请实施例的另一种第一设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of another first device according to an embodiment of the present application.
具体实施方式detailed description
下面结合附图对传统技术和本申请实施例提供的网络配置方法、设备和系统进行介绍。The traditional technology and the network configuration method, device and system provided by the embodiments of the present application are introduced below with reference to the accompanying drawings.
在利用网络传输数据流时,需要满足数据流所属的业务类型的业务要求。并且,在一些可能的情况下,传输的数据流可能是动态的数据流,具有一定的突发性、随机性和动态性。动态的数据流,例如可以是,在一定时间内流量波动较大的数据流,或者传输速率波动性较大的数据流,又或者导致网络出现微突发现象的数据流。如果直接对数据流进行传输,容易导致出现网络拥塞或者传输抖动等问题,难以满足数据流所对应的业务要求。因此,需要对数据流进行整形处理,使得处理后的数据流具有较为确定的最大突发以及较为稳定的传输速率,减少数据流传输过程中可能出现的网络问题,满足数据流所对应的业务要求。When using a network to transmit a data stream, it is necessary to meet the service requirements of the service type to which the data stream belongs. Moreover, in some possible cases, the transmitted data flow may be a dynamic data flow, which has a certain degree of burstiness, randomness and dynamics. The dynamic data flow may be, for example, a data flow with relatively large traffic fluctuations within a certain period of time, or a data flow with relatively large transmission rate fluctuations, or a data flow that causes micro-bursts to occur on the network. If the data stream is directly transmitted, it is easy to cause problems such as network congestion or transmission jitter, and it is difficult to meet the service requirements corresponding to the data stream. Therefore, it is necessary to shape the data stream so that the processed data stream has a relatively definite maximum burst and a relatively stable transmission rate, reduce possible network problems during data stream transmission, and meet the corresponding business requirements of the data stream .
在一种可能的实现方式中,可以利用整形器对数据流进行整形处理。整形器用于调整数据流的流量和突发,使得经过整形器整形后的数据流以较为均匀的速度传输。整形器中包括用于指示整形调整的整形器参数。在传统技术中,整形器参数主要基于源端的数据流发送要求确定,并且基于经验进行一定的人工干预调整,整形器参数较为固定。经过整形器整形后的数据流无法很好地满足业务要求,难以适应网络的实际需求。In a possible implementation manner, a shaper may be used to perform shaping processing on the data stream. The shaper is used to adjust the traffic and burst of the data flow, so that the data flow shaped by the shaper is transmitted at a relatively uniform speed. Shapers include shaper parameters that indicate shaping adjustments. In the traditional technology, the parameters of the shaper are mainly determined based on the data flow transmission requirements of the source, and a certain amount of manual intervention and adjustment is performed based on experience, so the parameters of the shaper are relatively fixed. The data flow shaped by the shaper cannot meet the service requirements well, and it is difficult to adapt to the actual needs of the network.
基于此,本申请实施例提供一种网络配置方法、设备和系统,通过获取数据流的流量采集信息和数据流对应的SLA信息确定整形器参数。确定的整形器参数对数据流进行更为准确的调整,确保通过整形器整形后的数据流满足该数据流对应的SLA信息指示的传输要 求,实现基于不同的数据流提供满足对应的SLA信息指示的传输要求的差异化保证。Based on this, embodiments of the present application provide a network configuration method, device, and system, which determine shaper parameters by acquiring traffic collection information of a data flow and SLA information corresponding to the data flow. The determined shaper parameters adjust the data flow more accurately to ensure that the data flow shaped by the shaper meets the transmission requirements of the corresponding SLA information indication of the data flow, and realize the provision of corresponding SLA information indication based on different data flows Differentiated guarantees for transport requirements.
其中,SLA为提供网络服务的企业与客户之间就网络服务的品质、水准、性能等方面所达成的双方共同认可的协议。SLA信息中约定的网络服务性能的具体内容由具体的业务需求确定。在一种可能的实现方式中,SLA信息包括服务等级参数。服务等级参数可以指示具体的网络服务所要达到的服务指标。例如,服务等级参数可以为目标时延的上界,目标时延的上界用于指示数据流从源端到目的端的传输的时延的上界。服务等级参数还可以为缓存上界,缓存上界用于指示传输数据流的设备的可用缓存的最小值。此外,SLA信息中还可以包括满足服务等级参数传输数据流的可靠性概率。比如,若SLA信息包括目标时延的上界,则SLA信息中还可以包括传输数据流时,时延小于或者等于目标时延的上界的可靠性概率。若SLA信息包括缓存上界,则SLA信息中还可以包括,传输数据流的设备的可用缓存大于或者等于缓存上界的可靠性概率。Among them, SLA is an agreement mutually recognized by both parties on the quality, level, and performance of network services reached between enterprises providing network services and customers. The specific content of the network service performance agreed in the SLA information is determined by the specific business requirements. In a possible implementation manner, the SLA information includes service level parameters. The service level parameter may indicate the service index to be achieved by the specific network service. For example, the service level parameter may be the upper bound of the target delay, and the upper bound of the target delay is used to indicate the upper bound of the transmission delay of the data flow from the source end to the destination end. The service level parameter may also be a cache upper bound, and the cache upper bound is used to indicate the minimum value of the available cache of the device transmitting the data stream. In addition, the SLA information may also include the reliability probability of transmitting the data flow meeting the service level parameter. For example, if the SLA information includes the upper bound of the target delay, the SLA information may further include a reliability probability that the delay is less than or equal to the upper bound of the target delay when the data stream is transmitted. If the SLA information includes the cache upper bound, the SLA information may further include a reliability probability that the available cache of the device transmitting the data stream is greater than or equal to the cache upper bound.
本申请实施例提出的网络配置方法可应用于5G中的URLLC场景,这些场景需要满足高可靠、低时延的业务需求。如工业制造自动化场景、电力自动化场景、车联网场景等,这些场景对传输的可靠性概率有严格要求。举例来说,本申请实施例的方案可用于为智能电网差动保护业务提供高可靠性的有界时延保证,也可以为园区网络中的控制类业务的业务流提供高可靠性、有界时延的转发服务。还可以在用于智能工厂,基于有线以太网或无线网络,为传感器采集业务流量、工业控制流量、视频监控流量等提供高可靠性的有界时延保证。The network configuration method proposed in the embodiment of the present application can be applied to URLLC scenarios in 5G, and these scenarios need to meet service requirements of high reliability and low latency. Such as industrial manufacturing automation scenarios, electric power automation scenarios, and Internet of Vehicles scenarios, etc., these scenarios have strict requirements on the reliability probability of transmission. For example, the solutions in the embodiments of this application can be used to provide highly reliable bounded delay guarantees for smart grid differential protection services, and can also provide highly reliable, bounded delay guarantees for service flows of control services in campus networks. Latency forwarding service. It can also be used in smart factories, based on wired Ethernet or wireless networks, to provide high-reliability bounded delay guarantees for sensors to collect business traffic, industrial control traffic, and video surveillance traffic.
下面以图1为例,对本申请实施例方案适用的网络架构进行介绍。图1所示的网络100包括控制设备101和网络设备102-104。发送端设备105为发送数据流的源端设备,接收端设备106为数据流的目的端设备。网络设备102-104为数据流传输路径上的转发设备,用于在网络100中将数据流从发送端设备105发送到接收端设备106。网络设备102和网络设备104为网络的边缘节点,网络设备103分别与网络设备102和网络设备104连接。控制设备101分别与网络设备102-104连接,以实现对网络设备102-104的管理和资源部署。图1仅为本申请实施例提供一种示例性的系统架构示意图,不应对本方案的网络架构构成限制,例如,图1中的网络100还可以包括除网络设备102-104之外的其他多个转发设备。又例如,图1中的网络100还可以包括多个子网络,各个子网络中包括一个或者多个转发设备。Taking FIG. 1 as an example, the network architecture applicable to the solution of the embodiment of the present application will be introduced below. The network 100 shown in FIG. 1 includes a control device 101 and network devices 102-104. The sending end device 105 is the source end device for sending the data flow, and the receiving end device 106 is the destination end device for the data flow. The network devices 102 - 104 are forwarding devices on the transmission path of the data flow, and are used to send the data flow from the sending end device 105 to the receiving end device 106 in the network 100 . The network device 102 and the network device 104 are edge nodes of the network, and the network device 103 is connected to the network device 102 and the network device 104 respectively. The control device 101 is respectively connected to the network devices 102-104 to implement management and resource deployment of the network devices 102-104. FIG. 1 is only a schematic diagram of an exemplary system architecture of the embodiment of the present application, and should not limit the network architecture of this solution. For example, the network 100 in FIG. forwarding device. For another example, the network 100 in FIG. 1 may further include multiple subnets, and each subnet includes one or more forwarding devices.
在本申请实施例中,图1中的发送端设备105和接收端设备106可以是终端设备或服务器。终端设备,又可以称为用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)、终端等,是一种向用户提供语音和/或数据连通性的设备,或,设置于该设备内的芯片,例如,具有无线连接功能的手持式设备、车载设备等。目前,一些终端设备的举例为:手机、台式电脑、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的 无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、支持5G接入的家庭网关设备(5G-residential gateway,5G-RG)等。In this embodiment of the application, the sending end device 105 and the receiving end device 106 in FIG. 1 may be terminal devices or servers. Terminal equipment, also known as user equipment (UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), terminal, etc., is a device that provides voice and/or data connectivity to users. device, or a chip set in the device, for example, a handheld device with a wireless connection function, a vehicle-mounted device, and the like. At present, examples of some terminal devices are: mobile phones, desktop computers, tablet computers, notebook computers, handheld computers, mobile internet devices (mobile internet device, MID), wearable devices, virtual reality (virtual reality, VR) equipment, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, smart grid Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, and home gateway devices supporting 5G access (5G-residential gateway) , 5G-RG) etc.
图1中的网络设备102-104可以为硬件或软硬结合的形式,是一个独立的设备,例如交换机、路由器等具有转发功能的设备,也可以是部署虚拟路由器或虚拟交换机的服务器,也可以是网络设备上的一个功能模块或多个功能模块的组合,可以根据具体场景需求进行选择和设计。网络设备102-104用于对网络100中的数据流进行转发。The network devices 102-104 in FIG. 1 can be in the form of hardware or a combination of software and hardware, and can be an independent device, such as a switch, a router, and other devices with forwarding functions, or it can be a server deploying a virtual router or a virtual switch, or it can be It is a functional module or a combination of multiple functional modules on a network device, which can be selected and designed according to specific scenario requirements. The network devices 102 - 104 are used to forward the data flow in the network 100 .
图1中的控制设备101具体可以为中心网络控制(Central Network Controller,CNC)设备。The control device 101 in FIG. 1 may specifically be a central network control (Central Network Controller, CNC) device.
控制设备既可以如图1中所示,为独立的物理设备,即物理上独立于网络设备102-104。控制设备还可以参见图2所示,作为一个功能单元,集成在网络设备102-104中任意一个设备上,或者集成在发送端设备105上,又或者集成在接收端设备106上。控制设备还可以拆分成若干个子功能单元分布式部署在设备102-106上。只要控制设备具备逻辑上相应的计算、管理和控制功能即可,本申请实施例对控制设备的存在形式不做限制。The control device may be an independent physical device as shown in FIG. 1 , that is, it is physically independent from the network devices 102-104. Referring to FIG. 2 , the control device can also be integrated as a functional unit on any one of the network devices 102 - 104 , or on the sending end device 105 , or on the receiving end device 106 . The control device can also be split into several sub-functional units and deployed on the devices 102-106 in a distributed manner. As long as the control device has logically corresponding calculation, management and control functions, the embodiment of the present application does not limit the existence form of the control device.
结合图1所示的网络架构示意图,图3为本申请实施例提供的一种网络配置方法交互示意图,本申请实施例提供的网络配置方法包括如下步骤:In combination with the schematic diagram of the network architecture shown in FIG. 1, FIG. 3 is an interactive schematic diagram of a network configuration method provided in the embodiment of the present application. The network configuration method provided in the embodiment of the present application includes the following steps:
S301:第二设备生成数据流的流量采集信息。S301: The second device generates traffic collection information of a data stream.
在本申请实施例中,第二设备为传输数据流的设备。结合图1所示,第二设备可以为图1中的网络设备102-104、发送端设备105、接收端设备106中的任意设备。In this embodiment of the present application, the second device is a device for transmitting data streams. As shown in FIG. 1 , the second device may be any of the network devices 102 - 104 , the sending end device 105 , and the receiving end device 106 in FIG. 1 .
第二设备对传输的数据流进行采集,得到数据流的流量采集信息。其中,数据流可以是单一的业务流,也可以为由多个业务流汇聚得到的汇聚流。The second device collects the transmitted data flow to obtain traffic collection information of the data flow. Wherein, the data flow may be a single service flow, or may be an aggregation flow obtained by converging multiple service flows.
数据流的流量采集信息是随着数据流实时变化的。其中,流量采集信息可以包括数据流在至少一个采集周期内报文的长度。采集周期的计数单位可以为微秒(microsecond,μs)、毫秒(millisecond,ms)或者秒(second,s)等时间单位。报文的长度的计数单位为比特(binary digit,BIT)或字节(byte)。The traffic collection information of the data flow changes in real time along with the data flow. Wherein, the flow collection information may include the length of the packet in at least one collection period of the data flow. The counting unit of the acquisition period may be a time unit such as microsecond (microsecond, μs), millisecond (millisecond, ms), or second (second, s). The counting unit of the message length is bit (binary digit, BIT) or byte (byte).
下面基于获取报文的长度的两种方式,对得到至少一个采集周期内报文的长度进行介绍:Based on the two methods of obtaining the length of the message, the following describes how to obtain the length of the message in at least one collection period:
方式一:对每个采集周期中数据流的报文长度进行统计。Method 1: Make statistics on the packet length of the data stream in each collection cycle.
举例来说,第二设备以采集周期ΔT k采集数据流中的累计报文长度,得到序列A k。其中,ΔT k=T k-T k-1,T k为采样时刻,k=1,……,N,N为采样次数。 For example, the second device collects the accumulated packet length in the data stream at a collection period ΔT k to obtain the sequence A k . Wherein, ΔT k =T k −T k-1 , T k is the sampling time, k=1, . . . , N, N is the number of samples.
采集周期ΔT k可以是恒定值ΔT,也可以是变化值,具体可以根据数据流的采集需要进行设置。例如,采集周期ΔT可以为恒定值100ms。 The collection period ΔT k can be a constant value ΔT or a variable value, which can be specifically set according to the collection requirements of the data stream. For example, the acquisition period ΔT may be a constant value of 100ms.
方式二:根据获取的报文的时间戳和报文长度,确定每个采集周期中数据流的报文长度。Method 2: Determine the packet length of the data stream in each collection cycle according to the time stamp and packet length of the obtained packet.
第二设备获取每个报文的时间戳和报文长度。根据每个报文的时间戳,确定报文所属的采集周期。再根据各个报文的报文长度确定每个采集周期中数据流的累计报文长度。The second device obtains the time stamp and the packet length of each packet. According to the time stamp of each message, determine the collection period to which the message belongs. Then, according to the message length of each message, the cumulative message length of the data stream in each collection period is determined.
举例来说,第二设备获取数据流中每个报文的时间戳t j和报文长度B j。其中,j为获取的数据流中报文的个数。将属于采集周期ΔT k的时间戳所对应的报文的长度进行累加,得到 采集周期ΔT k内的累计报文长度A k,表示为{采样时刻T k,累计报文长度A k}。其中,累计报文长度A k表示在采样时刻T k采样得到的报文长度之和,也可以理解为从上一个采样时刻T k-1到当前采样时刻,也就是ΔT k之间到达的报文长度之和。 For example, the second device obtains the time stamp t j and the packet length B j of each packet in the data stream. Wherein, j is the number of packets in the obtained data stream. The lengths of the packets corresponding to the time stamps belonging to the collection period ΔT k are accumulated to obtain the cumulative packet length A k within the collection period ΔT k , expressed as {sampling time T k , cumulative packet length A k }. Among them, the accumulative message length A k represents the sum of the message lengths sampled at the sampling time T k , and can also be understood as the number of messages arriving between the last sampling time T k-1 and the current sampling time, that is, ΔT k sum of text lengths.
在一种可能的实现方式中,可以采用双精度格式存储采样时刻和累计报文长度{T k,A k}的方式,N个点采样数据占据的存储空间为8byte*2*N。 In a possible implementation, the sampling time and the cumulative message length {T k , A k } can be stored in a double-precision format, and the storage space occupied by the sampling data of N points is 8 byte*2*N.
通过方式二可以得到较为全面的数据流中每个报文的时间戳和报文长度,使得获取数据流的流量采集信息更为灵活,也便于基于每个报文的时间戳和报文长度对采集周期中累计报文长度进行确定。Method 2 can obtain a relatively comprehensive timestamp and packet length of each packet in the data stream, making it more flexible to obtain traffic collection information of the data stream, and also facilitates the analysis based on the timestamp and packet length of each packet The accumulated packet length in the collection cycle is determined.
在一种可能的实现方式中,为了便于向第一设备传输流量采集信息,第二设备可以先对采集到的数据流在多个采集周期内的报文的长度进行预处理,得到多个采集周期内的报文的长度的统计值。统计值中包括多个采集周期内的报文的长度的平均值,平均值指示采集数据流中的多个报文的长度和与采集多个报文所经历的采集周期数量的比值。以上述每个采集周期ΔT k所对应的数据流中的报文的长度为A k为例,平均值U 1由公式(1)表示: In a possible implementation, in order to facilitate the transmission of traffic collection information to the first device, the second device may first preprocess the lengths of packets of the collected data streams in multiple collection periods to obtain multiple collection Statistical value of the length of packets in a period. The statistical value includes an average value of the lengths of the packets in multiple collection periods, and the average value indicates the ratio of the lengths of the multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets. Taking the length of the message in the data stream corresponding to each acquisition period ΔT k above as an example, the average value U1 is expressed by formula ( 1 ):
U 1=(A 1+…+A k)/K        (1) U 1 =(A 1 +…+A k )/K (1)
此外,统计值中还可以包括二阶矩、协方差以及四阶矩等统计值。其中,二阶矩指示采集数据流中的多个报文的长度的二次方之和,与采集多个报文所经历的采集周期数量的比值。四阶矩指示采集数据流中的多个报文的长度的四次方之和,与采集多个报文所经历的采集周期数量的比值。统计值中包括的具体统计值的类型可以根据确定整形器参数的方式确定。In addition, statistical values may also include statistical values such as second-order moments, covariance, and fourth-order moments. Wherein, the second-order moment indicates the ratio of the sum of the squares of the lengths of multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets. The fourth moment indicates the ratio of the sum of the fourth powers of the lengths of multiple packets in the collected data stream to the number of collection cycles experienced in collecting the multiple packets. The type of the specific statistical value included in the statistical value may be determined according to the manner of determining the parameters of the shaper.
二阶矩、协方差以及四阶矩分别可以由公式(2)-(4)表示:The second-order moment, covariance and fourth-order moment can be represented by formulas (2)-(4):
U 2=(A 1 2+…+A k 2)/K        (2) U 2 =(A 1 2 +…+A k 2 )/K (2)
U 3=(A 1×A 2+A 2×A 3...+A k×A k-1)/(K-1)      (3) U 3 =(A 1 ×A 2 +A 2 ×A 3 ...+A k ×A k-1 )/(K-1) (3)
U 4=(A 1 4+…+A k 4)/K        (4) U 4 =(A 1 4 +…+A k 4 )/K (4)
在本申请实施例中,通过对得到的多个采集周期内的报文长度进行预处理,可以得到更为准确地反映数据流的流量变化情况的统计值。并且,基于预处理的结果生成的流量采集信息中包含的数据量较少,便于第二设备向第一设备传输流量采集信息,减少传输的数据量。In the embodiment of the present application, by preprocessing the obtained packet lengths in multiple collection periods, a statistical value that more accurately reflects the flow change of the data stream can be obtained. In addition, the amount of data included in the flow collection information generated based on the preprocessing result is small, which facilitates the transmission of flow collection information from the second device to the first device and reduces the amount of transmitted data.
S302:第二设备向第一设备发送数据流的流量采集信息。S302: The second device sends traffic collection information of the data flow to the first device.
在本申请实施例中,第一设备可以是图1中的控制设备101。In this embodiment of the present application, the first device may be the control device 101 in FIG. 1 .
在一种可能的实现方式中,第二设备可以采用类型-长度-值(tag length value,TLV)格式向第一设备发送数据流的流量采集信息。In a possible implementation manner, the second device may send the traffic collection information of the data flow to the first device in a type-length-value (tag length value, TLV) format.
第二设备可以以一定周期向第一设备发送该周期内的数据流的流量采集信息。第二设备发送流量采集信息的周期可以大于或者等于采集数据流的流量采集信息的周期。例如,采集数据流的流量采集信息的周期可以为100ms,发送流量采集信息的周期可以为500ms。The second device may send the traffic collection information of the data flow within the period to the first device at a certain period. The period for the second device to send the traffic collection information may be greater than or equal to the period for collecting the traffic collection information of the data stream. For example, the period for collecting traffic collection information of the data stream may be 100ms, and the period for sending traffic collection information may be 500ms.
S303:第一设备根据流量采集信息和与数据流对应的SLA信息确定整形器参数。S303: The first device determines shaper parameters according to the traffic collection information and the SLA information corresponding to the data flow.
本申请实施例中不限定第一设备确定整形器参数的触发条件。可以是通过设定的时间触发,比如,定时触发确定整形器参数;也可以是通过设定的条件触发,比如,传输的数 据流满足需要整形调整的条件。In this embodiment of the present application, the trigger condition for the first device to determine the shaper parameter is not limited. It can be triggered by a set time, for example, timing trigger to determine the parameters of the shaper; it can also be triggered by a set condition, for example, the transmitted data flow meets the condition that needs to be shaped and adjusted.
SLA信息是与数据流相对应的,用于指示该数据流传输所要满足的传输要求。数据流对应的SLA信息较为固定。第一设备可以在传输数据流的初始阶段获取数据流对应的SLA信息。之后,还可以在数据流对应的SLA信息发生变化后再次获取更新后的SLA信息。The SLA information corresponds to the data flow, and is used to indicate the transmission requirements to be met by the transmission of the data flow. The SLA information corresponding to the data flow is relatively fixed. The first device may acquire SLA information corresponding to the data stream at an initial stage of transmitting the data stream. Afterwards, the updated SLA information may be obtained again after the SLA information corresponding to the data stream changes.
在一种可能的实现方式中,第一设备可以基于本地保存的数据流和SLA信息的对应关系,获取与数据流对应的SLA信息。在另一种可能的实现方式中,第一设备可以通过用户网络接口(user network interface,UNI)或用户集中配置(centralized user configuration,CUC)从其他设备获取数据流对应的SLA信息。比如,第一设备可以通过第二设备获取与数据流对应的SLA信息。第二设备可以是图1所示的发送端设备105,也可以是网络设备102-103。其中,发送SLA信息的第二设备可以与发送流量采集信息的第二设备为同一个设备。例如,发送SLA信息的第二设备和发送流量采集信息的第二设备可以为图1中网络设备102。发送SLA信息的第二设备也可以与发送流量采集信息的第二设备为不同的设备。例如,发送SLA信息的第二设备为图1中的发送端设备105,发送流量采集信息的第二设备为图1中的网络设备102。In a possible implementation manner, the first device may acquire the SLA information corresponding to the data flow based on the locally stored correspondence between the data flow and the SLA information. In another possible implementation manner, the first device may obtain the SLA information corresponding to the data flow from other devices through a user network interface (user network interface, UNI) or a user centralized configuration (centralized user configuration, CUC). For example, the first device may acquire SLA information corresponding to the data flow through the second device. The second device may be the sending end device 105 shown in FIG. 1 , or may be the network devices 102-103. Wherein, the second device that sends the SLA information may be the same device as the second device that sends the traffic collection information. For example, the second device that sends the SLA information and the second device that sends the traffic collection information may be the network device 102 in FIG. 1 . The second device that sends the SLA information may also be a different device from the second device that sends the traffic collection information. For example, the second device sending the SLA information is the sending end device 105 in FIG. 1 , and the second device sending the traffic collection information is the network device 102 in FIG. 1 .
对于上述第一设备从第二设备获得SLA信息的实现方式,第二设备可以通过用户网络接口(User Network Interface,UNI)将SLA信息通过多重注册协议(multiple registration protocol,MRP)报文、本地链路注册协议(link-local registration protocol,LRP)报文、网络配置协议(Network Configuration Protocol,NETCONF)报文、RESTCONF报文或者管理信息库(management information base,MIB)报文等发送至第一设备。For the implementation of the above-mentioned first device obtaining SLA information from the second device, the second device can pass the SLA information through the user network interface (User Network Interface, UNI) through multiple registration protocol (multiple registration protocol, MRP) message, local chain Link-local registration protocol (link-local registration protocol, LRP) message, network configuration protocol (Network Configuration Protocol, NETCONF) message, RESTCONF message or management information base (management information base, MIB) message, etc. are sent to the first device .
举例来说,如图4所示,该图为本申请实施例提供的携带数据流的SLA信息的报文格式示意图。图4所示的UserToNetworkRequirements TLV中,MaxLatency字段携带目标时延的上界,新增字段Latency_ConfidenceLevel携带可靠性概率。如果Latency_ConfidenceLevel字段取值为999900,则其含义是用户接受在99.99%的情况下,网络保障传输时延小于等于MaxLatency携带的目标时延的上界。传输数据流的设备可以把UserToNetworkRequirements TLV中携带的数据流SLA信息注册到本地的MPR数据单元(MRP Data Unit,MRPDU)中,并发出宣告(declaration),向第一设备发送。传输数据流的设备还可以把UserToNetworkRequirements TLV中携带的数据流SLA信息注册到LRP的数据库中,并发出宣告(declaration),向第一设备发送。For example, as shown in FIG. 4 , the figure is a schematic diagram of a packet format carrying SLA information of a data flow provided by an embodiment of the present application. In the UserToNetworkRequirements TLV shown in Figure 4, the MaxLatency field carries the upper bound of the target latency, and the new field Latency_ConfidenceLevel carries the reliability probability. If the value of the Latency_ConfidenceLevel field is 999900, it means that the user accepts that in 99.99% of cases, the network guaranteed transmission delay is less than or equal to the upper bound of the target delay carried by MaxLatency. The device transmitting the data stream may register the data stream SLA information carried in the UserToNetworkRequirements TLV into a local MRP Data Unit (MRP Data Unit, MRPDU), and issue a declaration (declaration), and send it to the first device. The device transmitting the data stream may also register the data stream SLA information carried in the UserToNetworkRequirements TLV into the LRP database, and send a declaration to the first device.
属于不同业务类型的数据流具有不同的业务要求,对应的SLA信息不同。SLA信息中可以包括目标时延的上界,或者可以包括缓存上界,还或者可以包括目标时延的上界和缓存上界的组合。进一步的,SLA信息中还可以包括目标时延的上界对应的可靠性概率,以及缓存上界的可靠性概率。Data flows belonging to different service types have different service requirements, and the corresponding SLA information is different. The SLA information may include the upper bound of the target latency, or may include the upper bound of the cache, or may include a combination of the upper bound of the target latency and the upper bound of the cache. Further, the SLA information may also include the reliability probability corresponding to the upper bound of the target latency, and the reliability probability of the cache upper bound.
下面分别对本申请实施例中的目标时延的上界、缓存上界以及可靠性概率分别进行介绍:The upper bound of the target delay, the upper bound of the cache, and the reliability probability in the embodiments of the present application are respectively introduced below:
目标时延的上界为表示传输数据流所允许的最大时延。The upper bound of the target delay is the maximum delay allowed by the transmitted data flow.
在一种可能的情况下,目标时延的上界可以为从源端到目的端传输数据流的时延的上界。目标时延的上界可以为传输数据流的整体网络的传输时延的上界,也可以为传输数据 流的子网范围内的传输时延的上界。例如,当源端为生成数据流的设备,目的端为接收数据流的设备时,目标时延的上界表示数据流在网络中传输的时延的上界。当源端和目的端分别为子网络的边缘设备时,目标时延的上界表示数据流在该子网络中内传输的时延的上界。In a possible situation, the upper bound of the target delay may be the upper bound of the delay of transmitting the data flow from the source end to the destination end. The upper bound of the target delay can be the upper bound of the transmission delay of the entire network that transmits the data stream, or the upper bound of the transmission delay within the subnetwork that transmits the data stream. For example, when the source end is a device that generates data streams and the destination end is a device that receives data streams, the upper bound of the target delay represents the upper bound of the delay of data stream transmission in the network. When the source end and the destination end are respectively edge devices of a subnetwork, the upper bound of the target delay indicates the upper bound of the delay of data flow transmission in the subnetwork.
在另一种可能的情况下,目标时延的上界也可以为传输数据流的单跳设备传输数据流的时延的上界。从源端到目的端传输数据流的目标时延的上界,和单个设备传输数据流的目标时延的上界具备关联关系。例如,可以根据从源端到目的端传输数据流的设备的数量,以及从源端到目的端传输数据流的目标时延的上界,得到单个设备传输数据流的目标时延的上界。In another possible situation, the upper bound of the target delay may also be the upper bound of the delay of the data stream transmitted by the single-hop device transmitting the data stream. The upper bound of the target delay for transmitting data streams from the source to the destination is related to the upper bound of the target delay for transmitting data streams by a single device. For example, based on the number of devices transmitting data streams from the source end to the destination end and the upper bound of the target delay time for transmitting data streams from the source end end to the destination end, the upper bound of the target delay of data stream transmission by a single device can be obtained.
缓存上界指示数据流在包括整形器的设备上可用缓存的最小值。缓存上界可以是包括整形器的设备支持的队列的最小缓存。The cache upper bound indicates the minimum size of buffer available for the stream on the device including the shaper. The cache upper bound may be the smallest cache of queues supported by the device including the shaper.
可靠性概率表示满足数据流对应的SLA信息指示的传输要求的概率,例如,可靠性概率可以为99.99%。可靠性概率是与SLA信息的内容相关的。比如,在数据流的SLA信息中包括目标时延的上界时,还可以包括目标时延的上界的可靠性概率。目标时延的上界的可靠性概率表示传输数据流的时延小于或者等于目标时延的上界的概率。具体的,比如,若目标时延的上界为从源端到目的端传输数据流的时延的上界,则可靠性概率为从源端到目的端传输数据流的时延小于或者等于目标时延的上界的概率。若目标时延的上界为单跳设备传输数据流的时延的上界,则可靠性概率为单跳设备传输数据流的时延小于或者等于目标时延的上界的概率。又比如,在数据流的SLA信息包括缓存上界时,可靠性概率表示包括整形器的设备的可用缓存小于或者等于缓存上界的概率。在一种可能的实现方式中,可靠性概率p是大于或者等于0,小于或者等于1的参数。在获取时延/缓存违背概率(delay violation probability/buffer overflow probability)ε时,可以通过关系式p=1-ε获得可靠性概率p,ε是违背概率的最大值。在一种可能的实现方式中,可以根据网络中各个设备的可靠性概率,得到从源端到目的端传输数据流的可靠性概率。传输数据流的从源端到目的端的可靠性概率p k的计算公式如公式(5)所示: The reliability probability indicates the probability of meeting the transmission requirement indicated by the SLA information corresponding to the data flow, for example, the reliability probability may be 99.99%. The reliability probability is related to the content of the SLA information. For example, when the SLA information of the data flow includes the upper bound of the target delay, the reliability probability of the upper bound of the target delay may also be included. The reliability probability of the upper bound of the target delay indicates the probability that the delay of the transmission data stream is less than or equal to the upper bound of the target delay. Specifically, for example, if the upper bound of the target delay is the upper bound of the delay of transmitting the data stream from the source to the destination, then the reliability probability is that the delay of transmitting the data stream from the source to the destination is less than or equal to the target The probability of an upper bound on the delay. If the upper bound of the target delay is the upper bound of the delay of the data stream transmitted by the single-hop device, then the reliability probability is the probability that the delay of the data stream transmitted by the single-hop device is less than or equal to the upper bound of the target delay. For another example, when the SLA information of the data flow includes the cache upper bound, the reliability probability indicates the probability that the available cache of the device including the shaper is less than or equal to the cache upper bound. In a possible implementation manner, the reliability probability p is a parameter greater than or equal to 0 and less than or equal to 1. When acquiring the delay violation probability/buffer overflow probability ε, the reliability probability p can be obtained through the relation p=1-ε, where ε is the maximum value of the violation probability. In a possible implementation manner, the reliability probability of the data flow transmitted from the source end to the destination end may be obtained according to the reliability probability of each device in the network. The calculation formula of the reliability probability p k from the source end to the destination end of the transmission data stream is shown in formula (5):
p k=1-(1-p) 1/H        (5) p k =1-(1-p) 1/H (5)
其中,p为单跳设备的可靠性概率,H为传输数据流的设备的数量。Among them, p is the reliability probability of a single-hop device, and H is the number of devices transmitting data streams.
第一设备基于获取的数据流的流量采集信息和数据流对应的SLA信息确定整形器参数。The first device determines the shaper parameter based on the acquired traffic collection information of the data flow and the SLA information corresponding to the data flow.
其中,整形器参数可以根据整形器的类型确定。例如,对于采用令牌桶算法的整形器,整形器参数可以包括令牌桶桶深(burst)和令牌产生速率(rate)中的至少一个。其中,令牌桶桶深也即承诺突发尺寸(committed burst size,CBS),令牌产生速率也即承诺信息速率(committed information rate,CIR)。对于基于信用的整形器(credit based shaper,CBS),整形器参数可以包括信用积累速率(idleslope)和信用消耗速率(sendslope)中的至少一个。Wherein, the parameters of the shaper may be determined according to the type of the shaper. For example, for a shaper using the token bucket algorithm, the parameters of the shaper may include at least one of a token bucket depth (burst) and a token generation rate (rate). Among them, the bucket depth of the token bucket is also the committed burst size (committed burst size, CBS), and the token generation rate is also the committed information rate (committed information rate, CIR). For a credit based shaper (credit based shaper, CBS), the shaper parameters may include at least one of a credit accumulation rate (idleslope) and a credit consumption rate (sendslope).
在一种可能的实现方式中,第一设备可以先基于获取的数据流的流量采集信息和数据流对应的SLA信息得到目标带宽,再利用目标带宽得到整形器参数。其中,目标带宽为满足SLA信息指示的传输要求传输数据流的可用带宽的最小值。本申请实施例提供目标带宽 的具体计算方式,具体请参见下文。In a possible implementation manner, the first device may first obtain the target bandwidth based on the acquired traffic collection information of the data flow and the SLA information corresponding to the data flow, and then use the target bandwidth to obtain the shaper parameters. Wherein, the target bandwidth is the minimum value of the available bandwidth for transmitting the data flow that satisfies the transmission requirement indicated by the SLA information. The embodiment of this application provides a specific calculation method of the target bandwidth, please refer to the following for details.
对于令牌产生速率和信用积累速率,在一种实现中,可以将得到的目标带宽的数值设置为令牌产生速率或者信用积累速率的数值。在另一种实现中,可以将目标带宽与保护系数相乘,将得到的数值设置为令牌产生速率或者信用积累速率的数值。保护系数例如可以为1.2。Regarding the token generation rate and the credit accumulation rate, in an implementation, the obtained value of the target bandwidth may be set as the value of the token generation rate or the credit accumulation rate. In another implementation, the target bandwidth may be multiplied by the protection coefficient, and the obtained value may be set as the value of the token generation rate or the credit accumulation rate. The protection factor can be 1.2, for example.
对于令牌桶桶深,在一种实现中,可以将目标带宽与整形时延的上界相乘,得到令牌桶桶深的数值。在另一种实现中,可以将目标带宽与整形时延的上界相乘的数值再与保护系数相乘,得到令牌桶桶深的数值。其中,整形时延的上界为数据流在整形器中被处理过程中的时延的上界。整形时延的上界可以根据SLA信息确定,具体请参见下文。For the depth of the token bucket, in one implementation, the target bandwidth can be multiplied by the upper bound of the shaping delay to obtain the value of the token bucket depth. In another implementation, the value obtained by multiplying the target bandwidth by the upper bound of the shaping delay can be multiplied by the protection coefficient to obtain the value of the token bucket depth. Wherein, the upper bound of the shaping delay is the upper bound of the delay during the processing of the data flow in the shaper. The upper bound of the shaping delay can be determined based on the SLA information. For details, see the following.
对于信用消耗速率,在一种实现中,可以计算目标带宽与包括整形器的设备的端口传输速率之差,将得到的数值设置为信用消耗速率的数值。在另一种实现中,可以先计算目标带宽与保护系数的乘积,计算得到的乘积与端口传输速率的差值,将得到的数值设置为信用消耗速率的数值。其中,端口传输速率为包括整形器的设备的输出端口传输数据流的速率。For the credit consumption rate, in one implementation, the difference between the target bandwidth and the port transmission rate of the device including the shaper may be calculated, and the obtained value is set as the value of the credit consumption rate. In another implementation, the product of the target bandwidth and the protection coefficient may be calculated first, the difference between the obtained product and the port transmission rate may be calculated, and the obtained value may be set as the value of the credit consumption rate. Wherein, the port transmission rate is the rate at which the output port of the device including the shaper transmits the data flow.
下面根据数据流的流量采集信息和数据流对应的SLA信息,说明不同的得到目标带宽的实现方式:According to the traffic collection information of the data flow and the SLA information corresponding to the data flow, different implementation methods of obtaining the target bandwidth are described below:
方式一:第一设备根据流量采集信息先得到目标带宽的范围,再利用SLA信息确定目标带宽。Manner 1: The first device first obtains the range of the target bandwidth according to the traffic collection information, and then determines the target bandwidth by using the SLA information.
目标带宽的范围是根据流量采集信息确定的,为传输数据流的可用带宽的最小值的取值范围。The range of the target bandwidth is determined according to the traffic collection information, and is the value range of the minimum value of the available bandwidth for transmitting the data flow.
本申请实施例提供两种确定目标带宽的范围的方式。The embodiment of the present application provides two manners for determining the range of the target bandwidth.
在一种可能的实现方式中,可以利用目标带宽的基准值和修正值确定目标带宽的范围。目标带宽的基准值是根据流量采集信息确定的。目标带宽的修正值指示目标带宽相对于基准值的波动量。In a possible implementation manner, the range of the target bandwidth may be determined by using the reference value and the correction value of the target bandwidth. The baseline value of the target bandwidth is determined based on traffic collection information. The correction value of the target bandwidth indicates the amount of fluctuation of the target bandwidth relative to the reference value.
具体的,目标带宽的基准值和修正值可以采用基于时间序列处理方法确定。例如,可以采用n阶自回归方法。Specifically, the reference value and correction value of the target bandwidth may be determined by using a time series processing method. For example, an n-order autoregressive method may be employed.
举例说明,以n为1为例,本申请实施例提供了目标带宽的范围α(θ)的表达式,参见公式(6)所示。For example, taking n as 1 as an example, the embodiment of the present application provides an expression of the range α(θ) of the target bandwidth, as shown in formula (6).
Figure PCTCN2022101726-appb-000001
Figure PCTCN2022101726-appb-000001
其中,α(θ)为与θ具有映射关系的变量,α(θ)的具体取值由θ的取值确定。θ为SLA的质量因子,用于衡量SLA在缓存方面的要求。Among them, α(θ) is a variable that has a mapping relationship with θ, and the specific value of α(θ) is determined by the value of θ. θ is the quality factor of SLA, which is used to measure the requirements of SLA in cache.
U 1为根据流量采集信息确定的多个采集周期内的报文的长度的平均值。若流量采集信息包括多个采集周期内的报文的长度的统计值,并且统计值包括平均值,可以直接利用流量采集信息中的平均值进行公式(6)的计算。若流量采集信息包括多个采集周期内的报文的长度,则可以先利用公式(1)计算得到平均值。 U 1 is an average value of message lengths in multiple collection periods determined according to the traffic collection information. If the traffic collection information includes statistical values of packet lengths in multiple collection periods, and the statistical values include average values, the calculation of formula (6) can be performed directly using the average values in the traffic collection information. If the traffic collection information includes the lengths of packets in multiple collection periods, the average value can be calculated by using formula (1).
T为流量采集信息中多个采集周期的总时间。v指示多个采集周期内的报文的长度的方差,可以通过公式(7)计算得到。
Figure PCTCN2022101726-appb-000002
指示多个采集周期内的报文的长度的协方差系数,可 以通过公式(8)计算得到。
T is the total time of multiple collection cycles in the traffic collection information. v indicates the variance of the lengths of packets in multiple collection periods, which can be calculated by formula (7).
Figure PCTCN2022101726-appb-000002
The covariance coefficient indicating the length of the packets in multiple collection periods can be calculated by formula (8).
v=U 2-U 1*U 1        (7) v=U 2 −U 1 *U 1 (7)
Figure PCTCN2022101726-appb-000003
Figure PCTCN2022101726-appb-000003
其中,U 1为根据流量采集信息确定的多个采集周期内的报文的长度的平均值,U 2为多个采集周期内的报文的长度的二阶矩,U 3为多个采集周期内的报文的长度的协方差。U 1、U 2和U 3均可以根据多个采集周期内的报文的长度计算得到。 Among them, U 1 is the average value of the length of the message in multiple collection periods determined according to the traffic collection information, U 2 is the second-order moment of the length of the message in multiple collection periods, and U 3 is multiple collection periods The covariance of the lengths of the packets within . U 1 , U 2 and U 3 can all be calculated according to the lengths of packets in multiple collection periods.
在另一种可能的实现方式中,可以先根据流量采集信息和分布拟合算法将流量拟合为一种随机分布,再根据拟合结果确定目标带宽的范围。In another possible implementation manner, the traffic may be first fitted to a random distribution according to the traffic collection information and the distribution fitting algorithm, and then the range of the target bandwidth is determined according to the fitting result.
具体的,可以通过分布拟合算法实现对流量的分布拟合。分布拟合算法可以根据流量采集信息,确定与流量分布最为匹配的随机分布。随机分布可以是泊松分布、复合泊松分布、帕累托分布、马尔可夫到达过程或者批量马尔可夫到达过程等随机分布中的一种。Specifically, the distribution fitting of the traffic may be realized through a distribution fitting algorithm. The distribution fitting algorithm can determine the random distribution that best matches the traffic distribution according to the traffic collection information. The random distribution may be one of random distributions such as Poisson distribution, composite Poisson distribution, Pareto distribution, Markov arrival process, or batch Markov arrival process.
基于确定的流量分布,确定目标带宽的取值范围。目标带宽的取值范围α(θ)的表达式,可以参见公式(9)所示。Based on the determined traffic distribution, determine the value range of the target bandwidth. The expression of the value range α(θ) of the target bandwidth may be shown in formula (9).
α(θ)=log(exp(θX(T)))/θT       (9)α(θ)=log(exp(θX(T)))/θT (9)
其中,α(θ)为与θ具有映射关系的变量,α(θ)的具体取值由θ的取值确定,θ为SLA的质量因子,用于衡量SLA在缓存方面的要求。T为流量采集信息中多个采集周期的总时间。X(T)为基于流量分布确定的分布期望。Among them, α(θ) is a variable that has a mapping relationship with θ, the specific value of α(θ) is determined by the value of θ, and θ is the quality factor of SLA, which is used to measure the requirements of SLA in terms of caching. T is the total time of multiple collection cycles in the traffic collection information. X(T) is the distribution expectation determined based on the traffic distribution.
在确定目标带宽的取值范围之后,再基于SLA信息从目标带宽的范围中确定目标带宽。After the value range of the target bandwidth is determined, the target bandwidth is determined from the range of the target bandwidth based on the SLA information.
以上述目标带宽的取值范围α(θ)为例,可以通过公式(10)确定目标带宽。Taking the value range α(θ) of the above target bandwidth as an example, the target bandwidth can be determined by formula (10).
θ *·α(θ *)=-log(p)/D 0        (10) θ * α(θ * ) = -log(p)/D 0 (10)
其中,θ *为SLA的质量因子,用于衡量SLA在时延方面的要求。θ *与θ之间具有映射关系。α(θ *)可以是根据θ *与θ之间的映射关系以及α(θ)得到的。p可以为取值范围为[0,1]的固定值,也可以为SLA信息中的可靠性概率。D 0为整形时延的上界,整形时延的上界为数据流在整形器中被处理过程中的时延的上界。整形时延的上界可以根据SLA信息确定,具体请参见下文。 Among them, θ * is the quality factor of SLA, which is used to measure the requirement of SLA in terms of delay. There is a mapping relationship between θ * and θ. α(θ * ) can be obtained according to the mapping relationship between θ * and θ and α(θ). p can be a fixed value with a range of [0,1], or a reliability probability in the SLA information. D 0 is the upper bound of the shaping delay, and the upper bound of the shaping delay is the upper bound of the delay during the processing of the data flow in the shaper. The upper bound of the shaping delay can be determined based on the SLA information. For details, see the following.
利用公式(10)可以计算得到θ *的具体取值θ 0,再计算α(θ 0)得到目标带宽。 The specific value θ 0 of θ * can be calculated by using formula (10), and then α(θ 0 ) can be calculated to obtain the target bandwidth.
方式二:第一设备根据流量采集信息先得到数据流的突发量,再利用数据流的突发量和SLA信息确定目标带宽。Method 2: The first device first obtains the burst volume of the data stream according to the traffic collection information, and then determines the target bandwidth by using the burst volume of the data stream and SLA information.
在本计算方式中,可以先基于流量采集信息确定数据流的突发量。突发量为多个采集周期中每个采集周期对应的报文的长度。在一种实现中,突发量可以为数据流的最大突发量。数据流的最大突发量为多个采集周期中第一周期对应的报文的长度,第一周期对应的报文的长度是多个采集周期中每个采集周期对应的报文的长度的最大值。In this calculation method, the burst volume of the data stream may be determined based on the traffic collection information first. The burst amount is the length of the message corresponding to each acquisition period among the plurality of acquisition periods. In one implementation, the burst size may be the maximum burst size of the data stream. The maximum burst size of the data stream is the length of the message corresponding to the first cycle in multiple collection cycles, and the length of the message corresponding to the first cycle is the maximum length of the message corresponding to each collection cycle in multiple collection cycles value.
利用数据流的突发量和SLA信息,计算得到目标带宽R 0,具体计算方法请参见公式(11)。 The target bandwidth R 0 is calculated by using the burst volume of the data flow and the SLA information. For the specific calculation method, please refer to the formula (11).
R 0=B*p/D 0        (11) R 0 =B*p/D 0 (11)
其中,B为数据流的突发量。p可以为取值范围为[0,1]的固定值,也可以为SLA信息中的可靠性概率。D 0为整形时延的上界,整形时延的上界为数据流在整形器中被处理过程中 的时延的上界。整形时延的上界可以根据SLA信息确定,具体请参见下文。 Wherein, B is the burst volume of the data flow. p can be a fixed value with a range of [0,1], or a reliability probability in the SLA information. D 0 is the upper bound of the shaping delay, and the upper bound of the shaping delay is the upper bound of the delay during the processing of the data flow in the shaper. The upper bound of the shaping delay can be determined based on the SLA information. For details, see the following.
上述计算目标带宽的方法均是基于整形时延的上界,下面说明根据SLA信息确定整形时延的不同实现方式。The above methods for calculating the target bandwidth are all based on the upper bound of the shaping delay. The following describes different implementations of determining the shaping delay according to the SLA information.
情况一:SLA信息中包括目标时延的上界,目标时延表示数据流在网络中传输的时延。Case 1: The SLA information includes the upper bound of the target delay, and the target delay indicates the delay of data stream transmission in the network.
目标时延的上界为要求数据流在网络中传输的最大的时延。可以理解的是,在网络中传输数据流的过程中可能存在多方面的时延,例如,整形时延、固定时延、网络转发时延以及实际转发时延。The upper bound of the target delay is the maximum delay required for the data flow to be transmitted in the network. It can be understood that there may be delays in various aspects during the process of transmitting data streams in the network, for example, shaping delays, fixed delays, network forwarding delays, and actual forwarding delays.
下面对整形时延、固定时延、网络转发时延和实际转发时延进行介绍。The shaping delay, fixed delay, network forwarding delay and actual forwarding delay are introduced below.
其中,整形时延指示数据流在整形器中被处理过程中的时延。整形时延可以包括设备的队列时延以及对数据流的预处理时延等时延,其中,该设备为包括整形器的设备。其中,对于采用令牌桶算法的整形器,预处理时延可以为数据流进入令牌桶之前的对数据流进行处理的时延。对于基于信用的整形器,预处理时延可以为确定队列的信用之前对数据流进行处理的时延。Wherein, the shaping delay indicates the delay during the processing of the data flow in the shaper. The shaping delay may include delays such as queuing delay of the device and preprocessing delay of the data flow, where the device is a device including a shaper. Wherein, for the shaper using the token bucket algorithm, the preprocessing delay may be the delay of processing the data stream before the data stream enters the token bucket. For a credit-based shaper, the pre-processing delay may be the delay of processing the data stream before determining the credit of the queue.
固定时延为网络传输数据流所产生的较为确定的时延。固定时延具体可以包括传播时延、设备处理时延和端口时延中的一种或多种。The fixed delay is a relatively definite delay generated by the network transmission data flow. The fixed delay may specifically include one or more of propagation delay, device processing delay, and port delay.
其中,传播时延为数据流在传输介质中传播一定距离所产生的时延。传播时延指示传输距离与传输速度的比值。其中,传输速度是根据传输信号的种类以及传播的介质确定的。举例说明,如果数据流是以电磁信号的方式通过光纤线路传输,则根据电磁信号在光纤线路中的传播速度200000千米每秒,可以得到对于传输距离为1000千米的光纤线路,所产生的传播时延为5ms。传播时延具体可以是第一设备在业务规划阶段中获得,也可以是通过遥测(telemetry)技术获得,也可以是通过其他设备,例如网络控制器(network controller)获得。Among them, the propagation delay is the delay caused by the data stream propagating a certain distance in the transmission medium. Propagation delay indicates the ratio of transmission distance to transmission speed. Among them, the transmission speed is determined according to the type of the transmission signal and the propagation medium. For example, if the data flow is transmitted through the optical fiber line in the form of electromagnetic signals, then according to the propagation speed of the electromagnetic signal in the optical fiber line at 200,000 kilometers per second, it can be obtained that for an optical fiber line with a transmission distance of 1,000 kilometers, the The propagation delay is 5ms. Specifically, the propagation delay may be obtained by the first device during the service planning stage, or may be obtained through a telemetry (telemetry) technology, or may be obtained through other devices, such as a network controller (network controller).
设备处理时延为设备处理数据流所产生的时延。设备处理时延可以包括设备在接收到数据流后对数据流进行,例如,分析、数据提取、查找路由等产生的时延。设备处理时延是设备的指标参数。在一种实现中,设备处理时延可以由传输数据流的设备上报至第一设备,以便第一设备根据设备处理时延确定整形时延。在另一种实现中,设备处理时延也可以预先存储在第一设备的数据库中,以便第一设备从数据库中获取传输数据流的设备所对应的设备处理时延。The device processing delay is the delay caused by the device processing the data flow. The device processing delay may include the delay generated by the device performing, for example, analysis, data extraction, and routing search on the data stream after receiving the data stream. Device processing delay is an indicator parameter of the device. In an implementation, the device processing delay may be reported to the first device by the device transmitting the data stream, so that the first device determines the shaping delay according to the device processing delay. In another implementation, the device processing delay may also be pre-stored in the database of the first device, so that the first device acquires the device processing delay corresponding to the device transmitting the data stream from the database.
端口时延为设备发送数据流所需要的时延。端口时延指示传输的数据流中报文长度与端口带宽的比值。可以理解的是,端口时延是根据端口传输的报文长度确定的,传输不同长度的报文所需要的端口时延不同。在一种可能的实现方式,考虑到端口时延的范围,可以利用数据流中最大的报文长度计算端口时延。Port delay is the delay required by the device to send data streams. The port delay indicates the ratio of the packet length in the transmitted data flow to the port bandwidth. It can be understood that the port delay is determined according to the length of the packet transmitted by the port, and the port delay required for transmitting packets of different lengths is different. In a possible implementation manner, considering the range of the port delay, the maximum packet length in the data flow may be used to calculate the port delay.
网络转发时延为从源端到目的端,数据流在转发设备中等待处理的预设时延。网络转发时延可以为数据流在转发设备中的预设的排队时延。提供网络转发时延的调度技术,例如,可以为电气与电子工程师协会(institute of electrical and electronics engineers,IEEE)802.1时间敏感型网络(time sensitive network,TSN)定义的周期性排队与转发(cyclic quening forwarding,CQF)或时间感知整形器(time awareness shaper,TAS)调度方式,或者经过合 理配置队列参数的路由器、交换机设备上的QoS、层次化服务质量(hierarchical quality of service,HQoS)、优先级调度、轮询类调度等调度技术。The network forwarding delay is the preset delay for the data flow waiting to be processed in the forwarding device from the source end to the destination end. The network forwarding delay may be a preset queuing delay of the data flow in the forwarding device. Provide scheduling technology for network forwarding delay, for example, periodic queuing and forwarding (cyclic queuing) defined by Institute of Electrical and Electronics Engineers (IEEE) 802.1 Time Sensitive Network (TSN) Forwarding, CQF) or time awareness shaper (time awareness shaper, TAS) scheduling method, or QoS, hierarchical quality of service (hierarchical quality of service, HQoS), priority scheduling on routers and switches with reasonable configuration of queue parameters , Polling scheduling and other scheduling technologies.
在一种实现中,第一设备可以通过传输数据流的转发设备获取网络转发时延。在另一种实现中,第一设备可以预先获取并储存网络转发时延。In an implementation, the first device may obtain the network forwarding delay through a forwarding device that transmits the data flow. In another implementation, the first device may acquire and store the network forwarding delay in advance.
网络转发时延与数据流在各个转发设备中的预设的数据流等待处理的时延相关。The network forwarding delay is related to the preset data flow waiting delay in each forwarding device.
在一种可能的实现方式中,可以根据各个转发设备的承诺转发时延确定网络转发时延。其中,转发设备的承诺转发时延为数据流在该转发设备中等待处理的预设时延。举例说明,网络转发时延D 1可以通过公式(12)计算得到。 In a possible implementation manner, the network forwarding delay may be determined according to the committed forwarding delay of each forwarding device. Wherein, the committed forwarding delay of the forwarding device is the preset delay of the data flow waiting for processing in the forwarding device. For example, the network forwarding delay D 1 can be calculated by formula (12).
Figure PCTCN2022101726-appb-000004
Figure PCTCN2022101726-appb-000004
其中,T i为传输数据流的各个转发设备的承诺转发时延T i,i表示转发设备的个数,i为小于等于M的正整数,M为传输数据流的转发设备的总数量。 Among them, T i is the committed forwarding delay T i of each forwarding device that transmits data streams, i represents the number of forwarding devices, i is a positive integer less than or equal to M, and M is the total number of forwarding devices that transmit data streams.
在一种场景中,可以利用转发设备的承诺转发时延T i确定转发设备的转发带宽。例如,可以将转发设备的承诺转发时延T i作为上述计算目标带宽的公式中的D 0,计算得到的目标带宽R 0为该转发设备的转发带宽。 In one scenario, the forwarding bandwidth of the forwarding device may be determined by using the committed forwarding delay T i of the forwarding device. For example, the committed forwarding delay T i of the forwarding device can be used as D 0 in the above formula for calculating the target bandwidth, and the calculated target bandwidth R 0 is the forwarding bandwidth of the forwarding device.
在另一种可能的实现方式中,衡量转发设备的转发能力的为转发设备的预设转发带宽。可以根据转发设备的预设转发带宽确定转发设备的承诺转发时延,再基于承诺转发时延确定网络转发时延。In another possible implementation manner, the forwarding capability of the forwarding device is measured by the preset forwarding bandwidth of the forwarding device. The committed forwarding delay of the forwarding device can be determined according to the preset forwarding bandwidth of the forwarding device, and then the network forwarding delay can be determined based on the committed forwarding delay.
本申请实施例不限定根据转发设备的预设转发带宽确定承诺转发时延的方式。在一种实现中,可以根据确定性网络演算算法计算承诺转发时延T i,计算方法如公式(13)所示: The embodiment of the present application does not limit the manner of determining the committed forwarding delay according to the preset forwarding bandwidth of the forwarding device. In one implementation, the committed forwarding delay T i can be calculated according to the deterministic network calculus algorithm, and the calculation method is shown in formula (13):
T i=b/R i        (13) T i =b/R i (13)
其中,b为整形器参数中的令牌桶桶深,或者承诺突发尺寸,R i为转发设备的预设转发带宽。 Wherein, b is the token bucket bucket depth in the shaper parameter, or the committed burst size, and R i is the preset forwarding bandwidth of the forwarding device.
实际转发时延为从源端到目的端,数据流在转发设备中等待处理的时延。实际转发时延为数据流传输后得到的在转发设备中产生的等待处理的时延。实际转发时延可以是由传输数据流的转发设备在转发数据流后上报至第一设备的。第一设备可以根据各个转发设备上报的转发时延得到从源端到目的端的实际转发时延。The actual forwarding delay is the delay of the data flow waiting to be processed in the forwarding device from the source end to the destination end. The actual forwarding delay is the waiting delay generated in the forwarding device after the data stream is transmitted. The actual forwarding delay may be reported to the first device by the forwarding device transmitting the data stream after forwarding the data stream. The first device may obtain the actual forwarding delay from the source end to the destination end according to the forwarding delay reported by each forwarding device.
目标时延所包括的时延是根据传输数据流的网络确定的。基于网络传输中的时延和目标时延,确定整形时延。The delay included in the target delay is determined according to the network that transmits the data stream. The shaping delay is determined based on the delay in network transmission and the target delay.
下面基于不同的场景说明基于目标时延确定整形时延的不同实现方式。The following describes different implementations of determining the shaping delay based on the target delay based on different scenarios.
场景一:目标时延包括整形时延。Scenario 1: The target delay includes shaping delay.
在一种实现中,可以不考虑固定时延、网络转发时延以及实际转发时延,将目标时延确定为整形时延。比如,从源端到目的端的固定时延较小,并且不具有转发设备,可以不考虑固定时延以及转发设备导致的转发的时延,将目标时延确定为整形时延。In one implementation, the target delay may be determined as the shaping delay without considering the fixed delay, the network forwarding delay and the actual forwarding delay. For example, if the fixed delay from the source end to the destination end is relatively small and there is no forwarding device, the target delay may be determined as the shaping delay regardless of the fixed delay and the forwarding delay caused by the forwarding device.
举例说明,以图1为例,若从发送端设备105到接收端设备106不经过其他网络设备,并且固定时延较小可以忽略,可以将SLA信息中包括的目标时延的上界确定整形时延的上界。For example, taking Figure 1 as an example, if the transmission from the sending end device 105 to the receiving end device 106 does not pass through other network devices, and the fixed delay is small and negligible, the upper bound of the target delay included in the SLA information can be determined and shaped The upper bound of the delay.
在另一种实现中,目标时延的上界可以为传输数据流的单跳的设备传输数据流的时延, 可以将目标时延作为整形时延,计算该设备的转发带宽。In another implementation, the upper bound of the target delay may be the delay of a single-hop device transmitting the data stream, and the target delay may be used as the shaping delay to calculate the forwarding bandwidth of the device.
场景二:目标时延包括整形时延,还包括固定时延和网络转发时延中的一个或者多个。Scenario 2: The target delay includes shaping delay, and also includes one or more of fixed delay and network forwarding delay.
在一种实现中,需要考虑固定时延和网络转发时延中的一个或者多个。整形时延为目标时延减去固定时延和网络转发时延中的一个或者多个得到的。In one implementation, one or more of fixed delay and network forwarding delay need to be considered. The shaping delay is obtained by subtracting one or more of the fixed delay and the network forwarding delay from the target delay.
举例说明,以图1为例,若SLA信息中包括的目标时延的上界为D=3ms,传输数据流的传播时延为1.1ms,网络设备102-104的单个设备处理时延为25μs,单个设备的接口时延=最大报文长度/端口带宽=3.2μs。则固定时延的上界为D f=1.1ms+25μs×3+3.2μs×3=1.1846ms。若仅考虑固定时延,则整形时延的上界D 0=D-D f=1.8154ms。 For example, taking FIG. 1 as an example, if the upper bound of the target delay included in the SLA information is D=3ms, the propagation delay of the transmission data stream is 1.1ms, and the single device processing delay of the network devices 102-104 is 25 μs , The interface delay of a single device = maximum packet length / port bandwidth = 3.2μs. Then the upper bound of the fixed time delay is D f =1.1 ms+25 μs×3+3.2 μs×3=1.1846 ms. If only the fixed delay is considered, then the upper bound of the shaped delay D 0 =DD f =1.8154ms.
若网络设备102-104的单个承诺转发时延为20μs,则网络转发时延D h=20μs×3=0.06ms。若仅考虑网络转发时延,则整形时延的上界D 0=D-D h=2.994ms。 If the single committed forwarding delay of the network devices 102-104 is 20 μs, then the network forwarding delay D h =20 μs×3=0.06 ms. If only the network forwarding delay is considered, then the upper bound of the shaping delay D 0 =DD h =2.994ms.
若目标时延包括固定时延和网络转发时延,则整形时延的上界D 0=D-D f-D h=1.7554ms。 If the target delay includes fixed delay and network forwarding delay, then the upper bound of shaping delay D 0 =DD f -D h =1.7554ms.
场景三:目标时延包括整形时延,还包括固定时延和实际转发时延中的一个或者多个。Scenario 3: The target delay includes shaping delay, and also includes one or more of fixed delay and actual forwarding delay.
在一种实现中,需要考虑固定时延和实际转发时延中的一个或者多个。整形时延为目标时延减去固定时延和实际转发时延中的一个或者多个得到的。In one implementation, one or more of the fixed delay and the actual forwarding delay need to be considered. The shaping delay is obtained by subtracting one or more of the fixed delay and the actual forwarding delay from the target delay.
整形时延的上界的计算方式与场景二中整形时延的上界的计算方式类似,在此不再赘述。The calculation method of the upper bound of the shaping delay is similar to that of the upper bound of the shaping delay in Scenario 2, and will not be repeated here.
情况二:SLA信息中包括缓存上界,缓存上界为传输数据流的设备中,包括整形器的设备的可用缓存的最小值。Case 2: The SLA information includes the buffer upper bound, and the buffer upper bound is the minimum value of the available buffer of the device including the shaper among the devices transmitting the data stream.
缓存上界与目标时延上界具有映射关系。在一种可能实现方式中,可以将缓存上界转换为目标时延上界,再参照上述情况一中的方法确定整形时延的上界。The cache upper bound has a mapping relationship with the target latency upper bound. In a possible implementation manner, the buffer upper bound may be converted into the upper bound of the target delay, and then the upper bound of the shaping delay may be determined by referring to the method in the first case above.
S304:第一设备向第三设备发送整形器参数。S304: The first device sends the shaper parameter to the third device.
仍以图1为例,第一设备为控制设备101,控制设备不是传输数据流的设备,控制设备中不包括用于调整数据流的整形器。第一设备将整形器参数发送至包括整形器的第三设备,其中,第三设备为传输数据流的设备中包括整形器的设备。Still taking FIG. 1 as an example, the first device is a control device 101, which is not a device for transmitting data streams, and the control device does not include a shaper for adjusting data streams. The first device sends the shaper parameter to the third device including the shaper, wherein the third device is a device including the shaper among the devices for transmitting data streams.
结合图1所示,第三设备可以为图1中的网络设备102-104或者为发送端设备105。Referring to FIG. 1 , the third device may be the network devices 102 - 104 in FIG. 1 or the sending end device 105 .
在一种示例中,第一设备通过NETCONF/YANG或RESTCONF/YANG的调度程序实例(scheduler instance)的承诺信息速率将整形器参数下发给第三设备。In an example, the first device sends the shaper parameter to the third device through a committed information rate of a scheduler instance (scheduler instance) of NETCONF/YANG or RESTCONF/YANG.
采集数据流的流量采集信息的第二设备可以与包括整形器的第三设备为同一个设备。例如,仍以图1为例,网络设备102可以是采集数据流的流量采集信息的第二设备,网络设备102也可以为包括整形器的第三设备。第一设备,也就是控制设备101,从网络设备102获取流量采集信息,并向网络设备102发送整形器参数。采集数据流的流量采集信息的第二设备可以与包括整形的第三设备为不同的设备。仍以图1为例,网络设备102可以是采集数据流的流量采集信息的第二设备,网络设备103为包括整形器的第三设备。第一设备,也就是控制设备101,从网络设备102获取流量采集信息,向网络设备103发送整形器参数。The second device that collects traffic collection information of the data stream may be the same device as the third device that includes the shaper. For example, still taking FIG. 1 as an example, the network device 102 may be a second device that collects traffic collection information of data streams, and the network device 102 may also be a third device including a shaper. The first device, namely the control device 101 , obtains traffic collection information from the network device 102 and sends shaper parameters to the network device 102 . The second device that collects traffic collection information of the data stream may be different from the third device that includes shaping. Still taking FIG. 1 as an example, the network device 102 may be a second device that collects traffic collection information of data streams, and the network device 103 is a third device including a shaper. The first device, that is, the control device 101 obtains traffic collection information from the network device 102 and sends shaper parameters to the network device 103 .
S305:第三设备根据整形器参数配置整形器。S305: The third device configures the shaper according to the shaper parameter.
第三设备利用接收到的整形器参数,配置整形器。利用配置后的整形器对数据流进行整形处理,以使经过整形器调整后的数据流的传输能够满足SLA信息指示的传输要求。The third device configures the shaper by using the received shaper parameters. The configured shaper is used to shape the data flow, so that the transmission of the data flow adjusted by the shaper can meet the transmission requirements indicated by the SLA information.
通过上述方法,第一设备根据数据流的流量采集信息以及数据流对应的SLA信息,可以得到与数据流的SLA信息相对应的整形器参数,能够实现较为准确地通过整形器对数据流进行整形处理,使得处理后的数据流满足SLA信息指示的传输要求。基于数据流的流量采集信息,能够使得整形器参数更加准确地、灵活地与数据流对应的业务需求相匹配,实现针对不同的业务类型的数据流的业务要求的差异化保证。Through the above method, the first device can obtain the shaper parameters corresponding to the SLA information of the data flow according to the flow collection information of the data flow and the SLA information corresponding to the data flow, and can more accurately shape the data flow through the shaper Processing, so that the processed data flow meets the transmission requirements indicated by the SLA information. Based on the traffic collection information of the data flow, the parameters of the shaper can be more accurately and flexibly matched with the service requirements corresponding to the data flow, and the differentiated guarantee for the service requirements of the data flow of different service types can be realized.
在利用整形器对数据流进行调整之后,还存在着数据流的传输不能满足SLA信息指示的传输要求的情况。下面对网络传输可能出现的异常情况以及对应的调整方法进行介绍。After the data flow is adjusted by the shaper, there is still a situation that the transmission of the data flow cannot meet the transmission requirements indicated by the SLA information. The following is an introduction to possible abnormalities in network transmission and corresponding adjustment methods.
情况一:网络的拥塞程度大于阈值。Case 1: The congestion degree of the network is greater than the threshold.
传输数据流的转发设备具有预设缓存容量,用于保证转发设备转发数据流的实际转发时延小于或者等于承诺转发时延。转发设备可以通过调整占用的预设缓存容量,实现对网络拥塞的控制。The forwarding device that transmits the data stream has a preset buffer capacity, which is used to ensure that the actual forwarding delay of the forwarding device forwarding the data stream is less than or equal to the promised forwarding delay. The forwarding device can control network congestion by adjusting the occupied preset buffer capacity.
网络的拥塞程度可以是根据传输数据流的转发设备的剩余容量确定的。其中,剩余容量用于表示在保证转发设备的承诺转发时延下转发设备的剩余转发能力。转发设备的剩余容量具体可以是转发设备未使用的预设缓存容量,可以用转发设备的预设缓存容量减去数据流的突发量得到。The degree of congestion of the network may be determined according to the remaining capacity of the forwarding equipment transmitting the data flow. Wherein, the remaining capacity is used to represent the remaining forwarding capability of the forwarding device when the committed forwarding delay of the forwarding device is guaranteed. The remaining capacity of the forwarding device may specifically be the unused preset buffer capacity of the forwarding device, which may be obtained by subtracting the burst amount of the data flow from the preset buffer capacity of the forwarding device.
在一种实现中,各个转发设备可以向第一设备上报各个转发设备对应的剩余容量。第一设备根据获取的各个转发设备的剩余容量,确定网络的拥塞程度。在一种可能的实现方式中,第一设备可以根据各个转发设备的剩余容量确定拥塞程度。在另一种可能的实现方式中,第一设备可以根据各个转发设备的剩余容量确定瓶颈设备。瓶颈设备为剩余容量最小的转发设备。第一设备可以根据瓶颈设备的剩余容量确定拥塞程度,也可以调整利用瓶颈设备的剩余容量确定拥塞程度时所占的权重。In an implementation, each forwarding device may report the remaining capacity corresponding to each forwarding device to the first device. The first device determines the congestion degree of the network according to the obtained remaining capacity of each forwarding device. In a possible implementation manner, the first device may determine the congestion degree according to the remaining capacity of each forwarding device. In another possible implementation manner, the first device may determine the bottleneck device according to the remaining capacity of each forwarding device. The bottleneck device is the forwarding device with the smallest remaining capacity. The first device may determine the degree of congestion according to the remaining capacity of the bottleneck device, and may also adjust the weight used when determining the degree of congestion based on the remaining capacity of the bottleneck device.
在当网络的拥塞程度大于阈值时,说明网络的拥塞程度可能不满足数据流传输的拥塞程度的要求。可以进一步调整数据流的传输方式,使得调整后的数据流,能够满足SLA信息指示的传输要求且拥塞程度小于或者等于阈值。When the congestion degree of the network is greater than the threshold, it indicates that the congestion degree of the network may not meet the requirement of the congestion degree of data stream transmission. The transmission mode of the data flow may be further adjusted, so that the adjusted data flow can meet the transmission requirement indicated by the SLA information and the congestion degree is less than or equal to the threshold.
本申请实施例提供三种可能的调整数据流传输的方法,可以采用其中的一种或者多种对数据流的传输进行调整,具体包括:The embodiment of the present application provides three possible methods for adjusting data stream transmission, one or more of which may be used to adjust the data stream transmission, specifically including:
方式一:第一设备调整SLA信息,基于调整后的SLA信息重新确定整形器参数,对数据流进行调整。Manner 1: The first device adjusts the SLA information, re-determines the shaper parameters based on the adjusted SLA information, and adjusts the data flow.
第一设备可以调整SLA信息中包括的目标时延的上界或者缓存上界的组成,以实现对整形器参数的调整。The first device may adjust the composition of the upper bound of the target delay or the upper bound of the cache included in the SLA information, so as to adjust the parameters of the shaper.
以目标时延为例,目标时延可以包括整形时延和网络转发时延。网络转发时延可以具有一定的取值范围。第一设备可以对网络转发时延进行调整,从而实现对整形时延的调整,进而调整整形器参数,实现对数据流的调整。Taking the target delay as an example, the target delay may include shaping delay and network forwarding delay. The network forwarding delay may have a certain value range. The first device can adjust the network forwarding delay, so as to realize the adjustment of the shaping delay, and then adjust the parameters of the shaper, so as to realize the adjustment of the data flow.
第一设备可以调整整形时延和网络转发时延的分配比例。在一种可能的实现方式中, 可以在一定的比例范围内随机确定整形时延和网络转发时延的比例。在另一种可能的实现方式中,可以对整形时延增加调整步长,并对网络转发时延减小调整步长。调整步长可以根据网络的拥塞程度确定,调整步长具体可以是正数,也可以是负数。The first device may adjust the distribution ratio of the shaping delay and the network forwarding delay. In a possible implementation manner, the proportion of the shaping delay and the network forwarding delay may be randomly determined within a certain proportion range. In another possible implementation manner, the adjustment step size may be increased for the shaping delay, and the adjustment step size may be decreased for the network forwarding delay. The adjustment step size can be determined according to the congestion degree of the network, and the adjustment step size can be a positive number or a negative number.
第一设备再利用调整后的整形时延计算得到调整后的整形器参数。第二设备可以利用调整后的整形器参数配置整形器。The first device then uses the adjusted shaping delay to calculate and obtain adjusted shaper parameters. The second device may configure the shaper with the adjusted shaper parameters.
另外,第一设备在确定调整后的网络转发时延之后,可以计算各个转发设备对应的承诺转发时延,或者计算各个转发设备对应的转发带宽。第一设备将重新确定的转发设备的承诺转发时延或者转发带宽发送至各个转发设备,以便各个转发设备调整承诺转发时延或者转发带宽。In addition, after determining the adjusted network forwarding delay, the first device may calculate the committed forwarding delay corresponding to each forwarding device, or calculate the forwarding bandwidth corresponding to each forwarding device. The first device sends the re-determined committed forwarding delay or forwarding bandwidth of the forwarding device to each forwarding device, so that each forwarding device adjusts the committed forwarding delay or forwarding bandwidth.
在一种实现中,如果基于调整的SLA信息确定新的整形器参数,并对数据流进行调整后,仍存在网络的拥塞程度大于阈值的情况,可以再对SLA信息进行调整,继续生成对应的整形器参数对数据流进行调整,直到调整SLA信息的次数达到调整阈值,或者拥塞程度小于或者等于阈值为止。In one implementation, if the new shaper parameters are determined based on the adjusted SLA information, and the data flow is adjusted, the congestion degree of the network is still greater than the threshold, and the SLA information can be adjusted again to continue to generate the corresponding The shaper parameter adjusts the data flow until the times of adjusting the SLA information reaches the adjustment threshold, or the congestion degree is less than or equal to the threshold.
方式二:第一设备调整数据流进入的队列。Manner 2: The first device adjusts the queue into which the data flow enters.
第一设备可以对数据流进入的队列进行调整,重新对数据流进入的队列进行划分,使得调整后的数据流,能够满足SLA信息指示的传输要求且拥塞程度小于或者等于阈值。The first device may adjust the queues into which the data streams enter, and re-divide the queues into which the data streams enter, so that the adjusted data streams can meet the transmission requirements indicated by the SLA information and the congestion degree is less than or equal to the threshold.
类似的,在一种实现中,如果调整后的数据流在传输的过程中仍存在网络的拥塞程度大于阈值的情况,可以再对数据流进入的队列进行划分,并重新确定拥塞程度,直到调整数据流进入的队列的次数达到调整阈值,或者拥塞程度小于或者等于阈值为止。Similarly, in one implementation, if the adjusted data flow still has a network congestion level greater than the threshold during transmission, the queue into which the data flow enters can be divided again, and the congestion level can be re-determined until the adjustment The number of times the data flow enters the queue reaches the adjustment threshold, or until the degree of congestion is less than or equal to the threshold.
方式三:第一设备调整数据流的传输路径。Manner 3: The first device adjusts the transmission path of the data stream.
第一设备还可以对传输数据流的传输路径进行调整。通过调整传输数据流的设备,重新确定数据流的传输路径。The first device may also adjust the transmission path of the transmission data stream. Re-determine the transmission path of the data flow by adjusting the equipment that transmits the data flow.
第一设备通过多协议标签交换(multiprotocol label switching,MPLS)或者流量工程(traffic engineering,TE)技术获得数据流的传输路径,确定传输路径上的传输数据流的设备。第一设备在确定传输数据流的路径上的设备后,可以基于网络配置协议(network configuration protocol,NETCONF)或表征状态传输配置协议(representational state transfer configuration protocol,RESTCONF)获取网络状态信息和设备能力信息,例如获取端口速率、链路的最大可用带宽、链路的最大剩余带宽、链路的权重、链路的最大传输单元(maximum transmission unit,MTU)、设备的调度方法及参数、设备的处理时延、设备的缓存能力等信息。举例来说,第一设备通过NETCONF/YANG或者RESTCONF/YANG获取网络状态信息和设备能力信息。应当理解的是,第一设备可以根据上述网络状态信息和设备能力信息部署网络资源。The first device obtains a transmission path of the data stream through multiprotocol label switching (multiprotocol label switching, MPLS) or traffic engineering (traffic engineering, TE) technology, and determines a device for transmitting the data stream on the transmission path. After the first device determines the device on the path for transmitting the data stream, it can obtain network status information and device capability information based on the network configuration protocol (network configuration protocol, NETCONF) or representational state transfer configuration protocol (representational state transfer configuration protocol, RESTCONF) , such as obtaining the port rate, the maximum available bandwidth of the link, the maximum remaining bandwidth of the link, the weight of the link, the maximum transmission unit (MTU) of the link, the scheduling method and parameters of the device, and the processing time of the device Delay, device cache capability and other information. For example, the first device acquires network status information and device capability information through NETCONF/YANG or RESTCONF/YANG. It should be understood that the first device may deploy network resources according to the foregoing network status information and device capability information.
类似的,在一种实现中,如果调整传输路径后的数据流在传输的过程中仍存在网络的拥塞程度大于阈值的情况,可以再对数据流的传输路径进行调整,并重新确定拥塞程度,直到调整数据流的传输路径的次数达到调整阈值,或者拥塞程度小于或者等于阈值为止。Similarly, in one implementation, if the data flow after the transmission path is adjusted still has a network congestion degree greater than a threshold during transmission, the transmission path of the data flow can be adjusted again, and the congestion degree can be re-determined. Until the number of times of adjusting the transmission path of the data flow reaches the adjustment threshold, or the degree of congestion is less than or equal to the threshold.
情况二:从源端到目的端传输数据流的时延,或者从源端到目的端传输数据流的时延的估计值不满足SLA信息中目标时延的上界的传输要求。Situation 2: The time delay for transmitting the data flow from the source end to the destination end, or the estimated value of the time delay for transmitting the data flow from the source end end to the destination end does not meet the transmission requirement of the upper bound of the target time delay in the SLA information.
在对数据流进行传输时,还可能会对数据流进行进入队列的划分、分流以及与其他数据流的汇聚等处理,导致一个或者多个数据流预计的传输的过程,或者实际的传输过程不能满足该数据流对应的SLA信息指示的传输要求。When the data flow is transmitted, the data flow may also be divided into queues, diverted, and converged with other data flows, resulting in the expected transmission process of one or more data flows, or the actual transmission process. The transmission requirements indicated by the SLA information corresponding to the data flow are met.
以SLA信息包括目标时延的上界为例,在一种实现中,在经过整形器调整后的数据流到达目的端后,测量得到的从源端到目的端的实际传输的时延,可能大于目标时延的上界;在另一种实现中,网管设备根据数据流的规划的传输路径,计算得到的数据流从源端到目的端的时延的估计值大于目标时延的上界。其中,网管设备可以为包括路径计算单元(path computation element,PCE)的设备,也可以为连接PCE的设备。Taking the SLA information including the upper bound of the target delay as an example, in one implementation, after the data stream adjusted by the shaper arrives at the destination, the measured actual transmission delay from the source to the destination may be greater than The upper bound of the target delay; in another implementation, the estimated value of the delay of the data flow from the source end to the destination end calculated by the network management device according to the planned transmission path of the data flow is greater than the upper bound of the target delay. Wherein, the network management device may be a device including a path computation element (path computation element, PCE), or may be a device connected to the PCE.
基于此类情况,需要对数据流的传输进行调整。类似的,可以采用上述三种调整数据流传输的方法中的一种或者多种,使得调整后的数据流满足SLA信息的传输要求。Based on such situations, the transmission of the data flow needs to be adjusted. Similarly, one or more of the above three methods for adjusting data stream transmission may be used, so that the adjusted data stream meets the transmission requirements of the SLA information.
基于上述内容可知,通过确定网络的拥塞程度,或者网络传输数据流的时延或者网络传输数据流的时延的估计值,可以对网络传输数据流是否能够满足数据流的传输要求进行判断。在传输数据流不满足或者可能不满足传输要求时,对数据流的传输进行调整,使得数据流的传输满足传输要求。Based on the above content, it can be seen that by determining the congestion degree of the network, or the delay of the network transmission data flow or the estimated value of the delay of the network transmission data flow, it can be judged whether the network transmission data flow can meet the transmission requirements of the data flow. When the transmission data flow does not meet or may not meet the transmission requirements, the transmission of the data flow is adjusted so that the transmission of the data flow meets the transmission requirements.
在上述实现方式中,第一设备为独立的控制设备。此外,第一设备还可以是集成控制功能的设备,结合图2所示的网络架构示意图,第一设备可以为,网络设备102-104、发送端设备105或者接收端设备106中的一个或者多个。In the foregoing implementation manner, the first device is an independent control device. In addition, the first device can also be a device with an integrated control function. With reference to the schematic diagram of the network architecture shown in FIG. indivual.
在一种实现中,具有控制功能的第一设备可以获取数据流的流量采集信息,并对自身包括的整形器进行整形器参数配置。例如,参见图5所示,发送端设备105或者网络设备102-104可以对数据流的流量采集信息进行获取,基于数据流的流量采集信息和数据流对应的SLA信息得到整形器参数,并对设备包括的整形器进行配置。In an implementation, the first device with a control function may acquire traffic collection information of the data flow, and configure shaper parameters for a shaper included in itself. For example, as shown in FIG. 5 , the sending end device 105 or the network devices 102-104 can acquire the traffic collection information of the data flow, obtain the shaper parameters based on the traffic collection information of the data flow and the SLA information corresponding to the data flow, and The shaper included with the device is configured.
参见图5所示,该图为本申请实施例提供的一种网络配置方法流程示意图,具体包括:Referring to Figure 5, this figure is a schematic flowchart of a network configuration method provided in the embodiment of the present application, specifically including:
S501:第一设备获取数据流的流量采集信息。S501: The first device acquires traffic collection information of a data stream.
第一设备对传输的数据流进行流量采集,得到流量采集信息。关于数据流的流量采集信息可以参见S301中的描述,在此不再赘述。The first device collects traffic on the transmitted data stream to obtain traffic collection information. For the traffic collection information of the data stream, refer to the description in S301, and details are not repeated here.
S502:第一设备根据流量采集信息和与数据流对应的SLA信息确定整形器参数。S502: The first device determines shaper parameters according to traffic collection information and SLA information corresponding to the data flow.
第一设备确定整形器参数的方法可参考S303中对于确定整形器参数的方法的描述,在此不再赘述。For the method for the first device to determine the shaper parameter, reference may be made to the description of the method for determining the shaper parameter in S303, and details are not repeated here.
S503:第一设备根据整形器参数配置整形器。S503: The first device configures the shaper according to the shaper parameter.
第一设备基于确定的整形器参数,对包括的整形器进行整形器参数的配置,使得经过整形器参数配置后的整形器可以对数据流进行调整,以满足数据流对应的SLA信息指示的传输要求。Based on the determined shaper parameters, the first device configures shaper parameters for the included shaper, so that the shaper after the shaper parameter configuration can adjust the data flow to meet the transmission indicated by the SLA information corresponding to the data flow Require.
在另一种实现中,具有控制功能的第一设备可以通过其他设备获取数据流的流量采集信息,并将得到的整形器参数发送至其他包括整形器的设备。其中,数据流的流量采集信息以及整形器参数可以是通过传输数据流的传输路径发送至第一设备的。In another implementation, the first device with a control function may obtain traffic collection information of the data flow through other devices, and send the obtained shaper parameters to other devices including the shaper. Wherein, the traffic collection information of the data flow and the shaper parameters may be sent to the first device through the transmission path of the transmission data flow.
举例说明,参见图2所示,第一设备可以为接收端设备106,网络设备102可以获取数据流的流量采集信息,并将数据流的流量采集信息通过网络设备103和104发送至接收 端设备106,接收端设备106在得到整形器参数后,将整形器参数发送至包括整形器的网络设备102中,以便网络设备102对整形器进行整形器参数的配置。For example, as shown in FIG. 2, the first device may be the receiving end device 106, and the network device 102 may obtain the flow collection information of the data flow, and send the flow collection information of the data flow to the receiving end device through the network devices 103 and 104 106. After obtaining the shaper parameters, the receiver device 106 sends the shaper parameters to the network device 102 including the shaper, so that the network device 102 configures the shaper parameters for the shaper.
对于此类实现方式,设备之间的交互过程可以参见图3所示的网络配置方法交互示意图,在此不再赘述。For this type of implementation, the interaction process between devices can refer to the schematic diagram of interaction of the network configuration method shown in FIG. 3 , which will not be repeated here.
在一种可能的实现方式中,第二设备可以与第一设备为同一个设备。第一设备采集数据流的流量采集信息,基于流量采集信息确定整形器参数,并将整形器参数发送至包括整形器的第三设备,以便第三设备利用整形器参数配置整形器,对数据流进行整形处理。例如,第一设备可以为接收端设备106。第一设备可以对数据流进行采集,得到流量采集信息,并得到整形器参数,将整形器参数发送至第三设备,也就是网络设备102。网络设备102利用整形器参数对整形器进行配置,以便整形器对数据流进行处理。In a possible implementation manner, the second device may be the same device as the first device. The first device collects traffic collection information of the data flow, determines shaper parameters based on the traffic collection information, and sends the shaper parameters to a third device including the shaper, so that the third device uses the shaper parameters to configure the shaper, and the data flow Carry out shaping. For example, the first device may be the sink device 106 . The first device may collect data streams, obtain traffic collection information, obtain shaper parameters, and send the shaper parameters to the third device, that is, the network device 102 . The network device 102 configures the shaper with shaper parameters, so that the shaper processes the data flow.
在另一种可能的实现方式中,第三设备可以与第一设备为同一个设备。第二设备采集数据流的流量采集信息,基于流量采集信息确定整形器参数,并利用整形器参数调整第一设备包括的整形器。例如,第二设备可以为发送端设备105,第一设备可以为网络设备102。第二设备可以对数据流进行采集,得到流量采集信息。第二设备将流量采集信息发送至第一设备,即网络设备102。网络设备102根据流量采集信息和数据流对应的SLA信息得到整形器参数。网络设备102利用得到的整形器参数对整形器进行配置。In another possible implementation manner, the third device may be the same device as the first device. The second device collects traffic collection information of the data stream, determines shaper parameters based on the traffic collection information, and uses the shaper parameters to adjust the shaper included in the first device. For example, the second device may be the sending end device 105 , and the first device may be the network device 102 . The second device may collect the data flow to obtain flow collection information. The second device sends the traffic collection information to the first device, that is, the network device 102 . The network device 102 obtains the shaper parameters according to the traffic collection information and the SLA information corresponding to the data flow. The network device 102 configures the shaper using the obtained shaper parameters.
对于上述场景三,即目标时延包括整形时延,还包括固定时延和实际转发时延中的一个或者多个,在此类实现方式中,实际转发时延可以是转发设备通过其他转发设备,将转发时延发送至第一设备的。例如,结合图2所示,第一设备为接收端设备106。在网络设备102转发数据流之后,将网络设备102的实际的设备转发时延通过网络设备103和104发送至接收端设备106。类似的,在网络设备103和104转发数据流之后,也通过后续的数据流的传输路径,将设备的实际的设备转发时延通过网络设备发送至接收端设备106。接收端设备106基于网络设备102-104发送的转发时延确定实际转发时延。For the third scenario above, the target delay includes the shaping delay, and also includes one or more of the fixed delay and the actual forwarding delay. In this implementation, the actual forwarding delay can be the , sending the forwarding delay to the first device. For example, as shown in FIG. 2 , the first device is the receiving end device 106 . After the network device 102 forwards the data flow, the actual device forwarding delay of the network device 102 is sent to the receiving end device 106 through the network devices 103 and 104 . Similarly, after the network devices 103 and 104 forward the data flow, the actual device forwarding delay of the device is sent to the receiving end device 106 through the network device through the transmission path of the subsequent data flow. The receiver device 106 determines the actual forwarding delay based on the forwarding delay sent by the network devices 102-104.
此外,本申请实施例还提供第一设备是集成控制功能的设备的情况下,对于网络传输可能出现的异常情况以及对应的调整方法。下面对网络传输可能出现的异常情况以及对应的调整方法进行介绍。In addition, the embodiment of the present application also provides a situation in which the first device is a device with an integrated control function, an abnormal situation that may occur in network transmission and a corresponding adjustment method. The following is an introduction to possible abnormalities in network transmission and corresponding adjustment methods.
情况一:网络的拥塞程度大于阈值。Case 1: The congestion degree of the network is greater than the threshold.
对于此类情况,确定网络的拥塞程度的方法以及调整方法与上述情况一,即网络的拥塞程度大于阈值的方法类似,请参见上述描述,在此不再赘述。For this kind of situation, the method for determining the degree of network congestion and the method for adjusting it are similar to the first case above, that is, the method for the degree of network congestion is greater than the threshold, please refer to the above description, and will not repeat them here.
在此类实现方式中,转发设备的剩余容量可以是通过传输数据流的传输路径传输至第一设备的。下面以图2中接收端设备106为第一设备为例,对第一设备获取转发设备的剩余容量的方法进行说明。In such an implementation manner, the remaining capacity of the forwarding device may be transmitted to the first device through a transmission path for transmitting data streams. Taking the receiving end device 106 in FIG. 2 as the first device as an example, the method for the first device to obtain the remaining capacity of the forwarding device will be described below.
结合图2为例,转发设备为网络设备102-104。各个转发设备可以根据传输数据流时的突发量和转发设备的预设缓存容量,得到剩余容量。例如,各个转发设备的预设缓存容量为C x,其中,x为转发设备的个数。转发设备传输数据流时的突发量为b x,请参见公式(14)。 Referring to FIG. 2 as an example, the forwarding devices are network devices 102-104. Each forwarding device can obtain the remaining capacity according to the burst amount when transmitting the data stream and the preset buffer capacity of the forwarding device. For example, the preset buffer capacity of each forwarding device is C x , where x is the number of forwarding devices. The burst size when the forwarding device transmits the data flow is b x , please refer to formula (14).
b x=b x-1+rT x        (14) b x =b x-1 +rT x (14)
其中,r为整形器输出的数据流的输出带宽,T x为转发设备的实际的转发时延。当x的 取值为1时,b 0为整形器的可用缓存的最小值。 Wherein, r is the output bandwidth of the data stream output by the shaper, and T x is the actual forwarding delay of the forwarding device. When the value of x is 1, b 0 is the minimum value of the available cache of the shaper.
各个转发设备可以根据传输数据流的突发量和预设缓存容量得到剩余容量C x’。C x’的计算方式请参见公式(15)。 Each forwarding device can obtain the remaining capacity C x ′ according to the burst amount of the transmission data flow and the preset buffer capacity. For the calculation method of C x ', please refer to formula (15).
C x’=C x-b x        (15) C x '=C x -b x (15)
转发设备将突发量b x和剩余容量C x’中的一种或者多种通过传输数据流的传输路径,发送至接收端设备106。接收端设备106可以根据获取的各个转发设备的剩余容量确定网络的拥塞程度是否大于阈值。 The forwarding device sends one or more of the burst b x and the remaining capacity C x ′ to the receiving end device 106 through the transmission path of the transmission data flow. The receiving end device 106 may determine whether the congestion degree of the network is greater than a threshold according to the obtained remaining capacity of each forwarding device.
情况二:从源端到目的端传输数据流的时延,或者从源端到目的端传输数据流的时延的估计值不满足SLA信息的传输要求。Situation 2: The time delay for transmitting the data stream from the source end to the destination end, or the estimated value of the time delay for transmitting the data stream from the source end to the destination end does not meet the transmission requirement of the SLA information.
对于此类情况,确定时延或者时延的估计值的方法以及调整方法与上述情况二,即从源端到目的端传输数据流的时延,或者从源端到目的端传输数据流的时延的估计值不满足SLA信息的传输要求的方法类似,请参见上述描述,在此不再赘述。For such cases, the method of determining the delay or the estimated value of the delay and the adjustment method are the same as the second case above, that is, the delay of transmitting the data flow from the source to the destination, or the time of transmitting the data flow from the source to the destination. The method in which the estimated value of delay does not meet the transmission requirement of the SLA information is similar, please refer to the above description, and will not repeat it here.
通过上述实现方式,第一设备根据数据流的流量采集信息以及数据流对应的SLA信息,可以得到与数据流以及数据流的SLA信息相对应的整形器参数,能够实现较为准确地通过整形器对数据流进行整形处理,使得处理后的数据流满足SLA信息指示的传输要求。基于数据流的流量采集信息,能够使得整形器参数更加准确地、灵活地与数据流对应的业务需求相匹配,实现针对不同的业务类型的数据流的业务要求的差异化保证。Through the above implementation method, the first device can obtain the shaper parameters corresponding to the data flow and the SLA information of the data flow according to the traffic collection information of the data flow and the SLA information corresponding to the data flow, and can achieve more accurate data flow through the shaper. The data flow is shaped so that the processed data flow meets the transmission requirements indicated by the SLA information. Based on the traffic collection information of the data flow, the parameters of the shaper can be more accurately and flexibly matched with the service requirements corresponding to the data flow, and the differentiated guarantee for the service requirements of the data flow of different service types can be realized.
图6为本申请实施例的第一设备1000的结构示意图。图6所示的第一设备1000可以执行上述实施例的方法中第一设备执行的相应步骤。第一设备被部署在通信网络中,通信网络还包括第二设备。如图6所示,第一设备1000包括获取单元1001和处理单元1002。FIG. 6 is a schematic structural diagram of a first device 1000 according to an embodiment of the present application. The first device 1000 shown in FIG. 6 may execute corresponding steps performed by the first device in the method of the foregoing embodiments. The first device is deployed in a communications network that also includes a second device. As shown in FIG. 6 , the first device 1000 includes an acquiring unit 1001 and a processing unit 1002 .
获取单元1001,用于获取数据流的流量采集信息;An acquisition unit 1001, configured to acquire traffic collection information of the data stream;
处理单元1002,用于根据流量采集信息和与数据流对应的SLA信息确定整形器参数;整形器参数用于整形器对数据流进行调整,以满足SLA信息指示的传输要求。The processing unit 1002 is configured to determine shaper parameters according to traffic collection information and SLA information corresponding to the data flow; the shaper parameters are used by the shaper to adjust the data flow to meet the transmission requirements indicated by the SLA information.
可选的,处理单元1002具体用于:Optionally, the processing unit 1002 is specifically configured to:
根据流量采集信息和与数据流对应的SLA信息得到目标带宽;目标带宽为满足SLA信息指示的传输要求,且用于传输数据流的可用带宽的最小值;Obtain the target bandwidth according to the traffic collection information and the SLA information corresponding to the data flow; the target bandwidth is the minimum value of the available bandwidth used to transmit the data flow to meet the transmission requirements indicated by the SLA information;
根据目标带宽确定整形器参数。Determine the shaper parameters based on the target bandwidth.
可选的,在处理单元1002根据流量采集信息和与数据流对应的SLA信息得到目标带宽中,处理单元1002具体用于:Optionally, when the processing unit 1002 obtains the target bandwidth according to the traffic collection information and the SLA information corresponding to the data flow, the processing unit 1002 is specifically configured to:
根据流量采集信息得到目标带宽的范围;Obtain the range of the target bandwidth according to the traffic collection information;
根据目标带宽的范围和与数据流对应的SLA信息得到目标带宽。The target bandwidth is obtained according to the range of the target bandwidth and the SLA information corresponding to the data flow.
可选的,在处理单元1002根据流量采集信息得到目标带宽的范围中,处理单元1002具体用于:Optionally, in the scope where the processing unit 1002 obtains the target bandwidth according to the traffic collection information, the processing unit 1002 is specifically configured to:
根据基准值和修正值确定目标带宽的范围;基准值为根据流量采集信息确定的目标带宽的基准值,修正值指示目标带宽相对于基准值的波动量。The range of the target bandwidth is determined according to the reference value and the correction value; the reference value is the reference value of the target bandwidth determined according to the traffic collection information, and the correction value indicates the fluctuation amount of the target bandwidth relative to the reference value.
可选的,在处理单元1002根据流量采集信息得到目标带宽的范围中,包括:Optionally, the range in which the processing unit 1002 obtains the target bandwidth according to the traffic collection information includes:
第一设备根据分布拟合算法和流量采集信息确定目标带宽的范围。The first device determines the range of the target bandwidth according to the distribution fitting algorithm and the traffic collection information.
可选的,流量采集信息包括数据流在多个采集周期内的报文的长度;在处理单元1002根据流量采集信息和与数据流对应的SLA信息得到目标带宽中,处理单元1002具体用于:Optionally, the traffic collection information includes the length of the packets of the data stream in multiple collection periods; when the processing unit 1002 obtains the target bandwidth according to the traffic collection information and the SLA information corresponding to the data stream, the processing unit 1002 is specifically used for:
根据流量采集信息获取数据流的突发量;突发量是多个采集周期中每个采集周期对应的报文的长度;Obtain the burst volume of the data flow according to the traffic collection information; the burst volume is the length of the message corresponding to each collection cycle in multiple collection cycles;
根据突发量和与数据流对应的SLA信息计算得到目标带宽。Calculate the target bandwidth based on the burst size and the SLA information corresponding to the data flow.
可选的,第一设备还包括:Optionally, the first device also includes:
第一调整单元,用于响应于拥塞程度大于阈值,调整SLA信息,以使根据调整后的SLA信息和流量采集信息确定的整形器参数对数据流进行调整,以满足SLA信息指示的传输要求且拥塞程度小于或者等于阈值;The first adjustment unit is configured to adjust the SLA information in response to the congestion degree being greater than the threshold, so that the data flow is adjusted according to the shaper parameters determined according to the adjusted SLA information and the traffic collection information, so as to meet the transmission requirements indicated by the SLA information and The degree of congestion is less than or equal to the threshold;
和/或,and / or,
调整数据流进入的队列,以满足SLA信息指示的传输要求且拥塞程度小于或者等于阈值;Adjust the queue that the data flow enters to meet the transmission requirements indicated by the SLA information and the congestion degree is less than or equal to the threshold;
和/或,and / or,
调整数据流的传输路径,以使通过传输路径传输数据流满足SLA信息指示的传输要求且拥塞程度小于或者等于阈值;Adjusting the transmission path of the data stream, so that the data stream transmitted through the transmission path meets the transmission requirements indicated by the SLA information and the degree of congestion is less than or equal to the threshold;
其中,拥塞程度根据转发设备的剩余容量确定,剩余容量是指在保证转发设备的承诺转发时延下转发设备的剩余转发能力,承诺转发时延为数据流在转发设备中等待处理的预设的时延。Among them, the degree of congestion is determined according to the remaining capacity of the forwarding equipment, and the remaining capacity refers to the remaining forwarding capability of the forwarding equipment under the guaranteed forwarding delay of the forwarding equipment. delay.
可选的,第一设备还包括:Optionally, the first device also includes:
第二调整单元,响应于从源端到目的端传输数据流的时延,或者从源端到目的端传输数据流的时延的估计值不满足SLA信息的传输要求,调整SLA信息,以使根据调整后的SLA信息和流量采集信息确定的整形器参数对数据流进行调整,以满足SLA信息指示的传输要求;The second adjustment unit adjusts the SLA information in response to the time delay of transmitting the data flow from the source end to the destination end, or the estimated value of the time delay of transmitting the data flow from the source end to the destination end does not meet the transmission requirements of the SLA information, so that Adjust the data flow according to the adjusted SLA information and the shaper parameters determined by the traffic collection information, so as to meet the transmission requirements indicated by the SLA information;
和/或,and / or,
调整数据流进入的队列,以满足SLA信息指示的传输要求;Adjust the queue that the data flow enters to meet the transmission requirements indicated by the SLA information;
和/或,and / or,
调整数据流的传输路径,以使通过传输路径传输数据流满足SLA信息指示的传输要求。The transmission path of the data flow is adjusted so that the data flow transmitted through the transmission path meets the transmission requirements indicated by the SLA information.
可选的,SLA信息包括目标时延的上界;目标时延的上界指示数据流从源端到目的端的时延的上界。Optionally, the SLA information includes the upper bound of the target delay; the upper bound of the target delay indicates the upper bound of the delay of the data flow from the source end to the destination end.
可选的,目标时延包括整形时延;整形时延指示数据流在整形器中被处理过程中的时延。Optionally, the target delay includes a shaping delay; the shaping delay indicates a delay during processing of the data flow in the shaper.
可选的,目标时延还包括固定时延和网络转发时延中的一种或多种;固定时延包括传播时延、设备处理时延和端口时延中的一种或多种;传播时延为数据流在传输介质中传播的时延;设备处理时延为设备处理数据流的时延;端口传输时延为通过端口传输数据流的时延;网络转发时延为从源端到目的端,数据流在转发设备中等待处理的预设的时延。Optionally, the target delay also includes one or more of fixed delay and network forwarding delay; fixed delay includes one or more of propagation delay, device processing delay and port delay; Latency is the delay of data flow propagating in the transmission medium; device processing delay is the delay of equipment processing data flow; port transmission delay is the delay of transmitting data flow through the port; network forwarding delay is from source to At the destination end, the preset delay for data streams to wait for processing in the forwarding device.
可选的,网络转发时延指示传输数据流的多个转发设备的承诺转发时延之和;承诺转发时延为数据流在转发设备中等待处理的预设的时延。Optionally, the network forwarding delay indicates the sum of committed forwarding delays of multiple forwarding devices transmitting data streams; the committed forwarding delay is a preset delay for data streams waiting to be processed in the forwarding devices.
可选的,网络转发时延根据传输数据流的多个转发设备的预设转发带宽确定;预设转发带宽为转发设备转发数据流的预设的带宽。Optionally, the network forwarding delay is determined according to preset forwarding bandwidths of multiple forwarding devices transmitting data streams; the preset forwarding bandwidth is the preset bandwidth of data streams forwarded by the forwarding devices.
可选的,目标时延还包括固定时延和实际转发时延中的一种或多种;Optionally, the target delay also includes one or more of fixed delay and actual forwarding delay;
实际转发时延指示从源端到目的端数据流在转发设备中等待处理的时延。The actual forwarding delay indicates the delay of the data flow waiting to be processed in the forwarding device from the source end to the destination end.
可选的,SLA信息包括缓存上界;缓存上界为传输数据流的设备中,包括整形器的设备的可用缓存的最小值。Optionally, the SLA information includes a cache upper bound; the cache upper bound is a minimum value of an available cache of a device including a shaper among devices transmitting data streams.
可选的,SLA信息还包括可靠性概率,可靠性概率为满足数据流对应的SLA信息指示的传输要求的概率。Optionally, the SLA information further includes a reliability probability, where the reliability probability is a probability of meeting a transmission requirement indicated by the SLA information corresponding to the data flow.
可选的,获取单元1001具体用于:Optionally, the acquiring unit 1001 is specifically used for:
接收由第二设备发送的数据流的流量采集信息;第二设备为传输数据流的设备。The flow collection information of the data flow sent by the second device is received; the second device is a device for transmitting the data flow.
可选的,获取单元1001具体用于:Optionally, the acquiring unit 1001 is specifically used for:
获取第一设备采集的数据流的流量采集信息。The flow collection information of the data flow collected by the first device is acquired.
可选的,流量采集信息包括数据流在多个采集周期内的报文的长度的统计值;统计值包括平均值,平均值指示采集数据流中的多个报文的长度和与采集多个报文所经历的采集周期数量的比值。Optionally, the traffic collection information includes the statistical value of the length of the packets of the data flow in multiple collection periods; the statistical value includes an average value, and the average value indicates the length of multiple packets in the collected data flow and is related to the length of multiple packets collected in the data flow. The ratio of the number of collection cycles experienced by the packet.
可选的,统计值还包括二阶矩和四阶矩中的一个或者多个;二阶矩指示采集数据流中的多个报文的长度的二次方之和与采集多个报文所经历的采集周期数量的比值;四阶矩指示采集数据流中的多个报文的长度的四次方之和与采集多个报文所经历的采集周期数量的比值。Optionally, the statistical value also includes one or more of the second-order moment and the fourth-order moment; the second-order moment indicates that the sum of the squares of the lengths of the multiple packets in the collected data stream is equal to the sum of the lengths of the multiple packets collected. The ratio of the number of acquisition cycles experienced; the fourth moment indicates the ratio of the sum of the fourth powers of the lengths of the plurality of packets in the acquisition data stream to the number of acquisition cycles experienced by the acquisition of the plurality of packets.
可选的,第一设备还包括:Optionally, the first device also includes:
发送单元,用于向第三设备发送整形器参数;第三设备为包括整形器的传输数据流的设备。A sending unit, configured to send the shaper parameters to a third device; the third device is a device for transmitting data streams including the shaper.
可选的,第一设备为控制设备或传输数据流的设备。Optionally, the first device is a control device or a device for transmitting data streams.
可选的,控制设备为中心网络控制CNC设备。Optionally, the control device is a central network control CNC device.
可选的,整形器参数包括令牌桶桶深和令牌产生速率中的至少一个。Optionally, the shaper parameters include at least one of token bucket depth and token generation rate.
可选的,整形器参数包括信用积累速率和信用消耗速率中的至少一个。Optionally, the shaper parameters include at least one of a credit accumulation rate and a credit consumption rate.
图7为本申请实施例的第一设备1100的硬件结构示意图。图7所示的第一设备1100可以执行上述实施例的方法中第一设备执行的相应步骤。FIG. 7 is a schematic diagram of a hardware structure of a first device 1100 according to an embodiment of the present application. The first device 1100 shown in FIG. 7 may execute corresponding steps performed by the first device in the method of the foregoing embodiments.
如图7所示,第一设备1100包括处理器1101、存储器1102、接口1103和总线1104。其中接口1103可以通过无线或有线的方式实现,具体来讲可以是网卡。上述处理器1101、存储器1102和接口1103通过总线1104连接。As shown in FIG. 7 , the first device 1100 includes a processor 1101 , a memory 1102 , an interface 1103 and a bus 1104 . The interface 1103 can be implemented in a wireless or wired manner, specifically, it can be a network card. The aforementioned processor 1101 , memory 1102 and interface 1103 are connected through a bus 1104 .
接口1103具体可以包括发送器和接收器,用于第一设备与上述实施例中的第二设备之间,以及第一设备与上述实施例中的第三设备之间收发信息。例如,接口1103用于支持接收第二设备发送的流量采集消息。又例如,接口1103用于支持第一设备向第三设备发送整形器参数。作为举例,接口1103用于支持图3中的过程S302和S304。处理器1101用于执行上述实施例中由第一设备进行的处理。例如,处理器1101用于根据流量采集信息和与数据流对应的SLA信息确定整形器参数;和/或用于本文所描述的技术的其他过程。作为举 例,处理器1101用于支持图3中的过程S303。存储器1102包括操作系统11021和应用程序11022,用于存储程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成方法实施例中涉及第一设备的处理过程。可选的,存储器1102可以包括只读存储器(英文:Read-only Memory,缩写:ROM)和随机存取存储器(英文:Random Access Memory,缩写:RAM)。其中,ROM包括基本输入/输出系统(英文:Basic Input/Output System,缩写:BIOS)或嵌入式系统;RAM包括应用程序和操作系统。当需要运行第一设备1100时,通过固化在ROM中的BIOS或者嵌入式系统中的bootloader引导系统进行启动,引导第一设备1100进入正常运行状态。在第一设备1100进入正常运行状态后,运行在RAM中的应用程序和操作系统,从而,完成方法实施例中涉及第一设备的处理过程。The interface 1103 may specifically include a transmitter and a receiver for sending and receiving information between the first device and the second device in the above embodiment, and between the first device and the third device in the above embodiment. For example, the interface 1103 is configured to support receiving a traffic collection message sent by the second device. For another example, the interface 1103 is used to support the first device to send the shaper parameter to the third device. As an example, the interface 1103 is used to support the processes S302 and S304 in FIG. 3 . The processor 1101 is configured to execute the processing performed by the first device in the foregoing embodiments. For example, the processor 1101 is configured to determine shaper parameters according to traffic collection information and SLA information corresponding to the data flow; and/or other processes used in the technologies described herein. As an example, the processor 1101 is used to support the process S303 in Fig. 3 . The memory 1102 includes an operating system 11021 and an application program 11022 for storing programs, codes or instructions. When the processor or hardware device executes these programs, codes or instructions, the processing process related to the first device in the method embodiment can be completed. Optionally, the memory 1102 may include a read-only memory (English: Read-only Memory, abbreviated: ROM) and a random access memory (English: Random Access Memory, abbreviated: RAM). Among them, ROM includes basic input/output system (English: Basic Input/Output System, abbreviation: BIOS) or embedded system; RAM includes application program and operating system. When it is necessary to run the first device 1100, the BIOS solidified in the ROM or the bootloader in the embedded system is used to boot the system, and guide the first device 1100 into a normal running state. After the first device 1100 enters the normal running state, the application program and the operating system in the RAM are run, thereby completing the processing procedures related to the first device in the method embodiment.
可以理解的是,图7仅仅示出了第一设备1100的简化设计。在实际应用中,第一设备可以包含任意数量的接口,处理器或者存储器。It can be understood that FIG. 7 only shows a simplified design of the first device 1100 . In practical applications, the first device may include any number of interfaces, processors or memories.
图8为本申请实施例的另一种第一设备1200的硬件结构示意图。图8所示的第一设备1200可以执行上述实施例的方法中第一设备执行的相应步骤。FIG. 8 is a schematic diagram of a hardware structure of another first device 1200 according to an embodiment of the present application. The first device 1200 shown in FIG. 8 may execute corresponding steps performed by the first device in the method of the foregoing embodiments.
如图8,第一设备1200包括:主控板1210、接口板1230、交换网板1220和接口板1240。主控板1210、接口板1230和1240,以及交换网板1220之间通过系统总线与系统背板相连实现互通。其中,主控板1210用于完成系统管理、设备维护、协议处理等功能。交换网板1220用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。接口板1230和1240用于提供各种业务接口(例如,POS接口、GE接口、ATM接口等),并实现数据包的转发。As shown in FIG. 8 , the first device 1200 includes: a main control board 1210 , an interface board 1230 , a switching fabric board 1220 , and an interface board 1240 . The main control board 1210, the interface boards 1230 and 1240, and the switching fabric board 1220 are connected to the system backplane through the system bus to realize intercommunication. Among them, the main control board 1210 is used to complete functions such as system management, equipment maintenance, and protocol processing. The SFU 1220 is used to implement data exchange between interface boards (interface boards are also called line cards or service boards). The interface boards 1230 and 1240 are used to provide various service interfaces (for example, POS interface, GE interface, ATM interface, etc.), and realize data packet forwarding.
接口板1230可以包括中央处理器1231、转发表项存储器1234、物理接口卡1233和网络处理器1232。其中,中央处理器1231用于对接口板进行控制管理并与主控板上的中央处理器进行通信。转发表项存储器1234用于保存转发表项。物理接口卡1233用于完成流量的接收和发送。网络存储器1232用于根据转发表项控制物理接口卡1233收发流量。The interface board 1230 may include a central processing unit 1231 , a forwarding entry storage 1234 , a physical interface card 1233 and a network processor 1232 . Wherein, the central processing unit 1231 is used for controlling and managing the interface board and communicating with the central processing unit on the main control board. The forwarding entry storage 1234 is used for storing forwarding entries. The physical interface card 1233 is used to receive and send traffic. The network storage 1232 is used to control the physical interface card 1233 to send and receive traffic according to the forwarding entry.
具体的,物理接口卡1233可以用于接收第二设备发送的流量采集信息。物理接口卡1233还可以用于向第三设备发送整形器参数。Specifically, the physical interface card 1233 may be used to receive traffic collection information sent by the second device. The physical interface card 1233 may also be used to send shaper parameters to the third device.
物理接口卡1233接收到流量采集信息,将流量采集信息经由中央处理器1231发送到中央处理器1211,中央处理器1211处理流量采集信息。The physical interface card 1233 receives the flow collection information, and sends the flow collection information to the central processing unit 1211 via the central processing unit 1231, and the central processing unit 1211 processes the flow collection information.
中央处理器1211还用于根据流量采集信息和与数据流对应的SLA信息确定整形器参数。The central processing unit 1211 is further configured to determine shaper parameters according to traffic collection information and SLA information corresponding to the data flow.
中央处理器1231还用于控制网络存储器1232获取转发表项存储器1234中的转发表项,并且,中央处理器1231还可以用于控制网络存储器1232经由物理接口卡1233向第三设备发送整形器参数。The central processor 1231 is also used to control the network storage 1232 to obtain the forwarding entry in the forwarding entry storage 1234, and the central processing unit 1231 can also be used to control the network storage 1232 to send the shaper parameters to the third device via the physical interface card 1233 .
应理解,本发明实施例中接口板1240上的操作与接口板1230的操作一致,为了简洁,不再赘述。应理解,本实施例的第一设备1200可对应于上述方法实施例所具有的功能和/或所实施的各种步骤,在此不再赘述。It should be understood that the operations on the interface board 1240 in this embodiment of the present invention are consistent with the operations on the interface board 1230 , and are not repeated for brevity. It should be understood that the first device 1200 in this embodiment may correspond to the functions and/or various steps implemented in the foregoing method embodiments, and details are not repeated here.
此外,需要说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,第一设备的数据处理能力越强,提供的接口板 越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,第一设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,第一设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的第一设备的数据接入和处理能力要大于集中式架构的设备。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。In addition, it should be noted that there may be one or more main control boards, and when there are multiple main control boards, the main main control board and the standby main control board may be included. There may be one or more interface boards, and the stronger the data processing capability of the first device, the more interface boards it provides. There may also be one or more physical interface cards on the interface board. There may be no SFU, or there may be one or more SFUs. When there are multiple SFUs, they can jointly implement load sharing and redundant backup. Under the centralized forwarding architecture, the first device may not need a switching network board, and the interface board is responsible for processing service data of the entire system. Under the distributed forwarding architecture, the first device may have at least one SFU, through which data exchange between multiple interface boards is implemented, and large-capacity data exchange and processing capabilities are provided. Therefore, the data access and processing capabilities of the first device in the distributed architecture are greater than those in the centralized architecture. Which architecture to use depends on the specific networking deployment scenario, and there is no limitation here.
另外,本申请实施例提供了一种计算机存储介质,用于储存为上述第一设备所用的计算机软件指令,其包含用于执行上述方法实施例所设计的程序。In addition, an embodiment of the present application provides a computer storage medium for storing computer software instructions used by the above-mentioned first device, which includes the program designed for executing the above-mentioned method embodiment.
本申请实施例还包括一种网络系统,网络系统包括第一设备和第二设备,The embodiment of the present application also includes a network system, the network system includes a first device and a second device,
第二设备,用于向第一设备发送数据流的流量采集信息;The second device is configured to send traffic collection information of the data stream to the first device;
第一设备,用于接收由第二设备发送的数据流的流量采集信息;The first device is configured to receive traffic collection information of the data stream sent by the second device;
第一设备,还用于根据流量采集信息和与数据流对应的SLA信息确定整形器参数;整形器参数用于整形器对数据流进行调整,以满足SLA信息指示的传输要求。The first device is further configured to determine shaper parameters according to traffic collection information and SLA information corresponding to the data flow; the shaper parameters are used by the shaper to adjust the data flow to meet the transmission requirements indicated by the SLA information.
在一种可能的实现方式中,所述网络系统还包括第三设备,In a possible implementation manner, the network system further includes a third device,
第一设备,还用于向第三设备发送整形器参数;The first device is further configured to send the shaper parameter to the third device;
第三设备,用于接收第一设备发送的整形器参数,根据整形器参数配置整形器;第三设备为包括整形器的传输数据流的设备。The third device is configured to receive the shaper parameters sent by the first device, and configure the shaper according to the shaper parameters; the third device is a device for transmitting data streams including the shaper.
其中,第一设备可以为前述图6或图7或图8中的第一设备,实现上述实施例所述的任一功能。Wherein, the first device may be the first device in the aforementioned FIG. 6 or FIG. 7 or FIG. 8 , and realize any function described in the foregoing embodiments.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑业务划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical business division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元 上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各业务单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件业务单元的形式实现。In addition, each business unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software business units.
集成的单元如果以软件业务单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software business unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的业务可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些业务存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in one or more examples above, the services described in the present invention may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the services may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本发明的具体实施方式而已。The above specific implementation manners have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation manners of the present invention.
以上,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be applied to the foregoing embodiments The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the application.

Claims (48)

  1. 一种网络配置方法,其特征在于,所述方法包括:A network configuration method, characterized in that the method comprises:
    第一设备获取数据流的流量采集信息;The first device acquires traffic collection information of the data stream;
    所述第一设备根据所述流量采集信息和与所述数据流对应的服务等级协议SLA信息确定整形器参数;所述整形器参数用于整形器对所述数据流进行调整,以满足所述SLA信息指示的传输要求。The first device determines shaper parameters according to the traffic collection information and service level agreement (SLA) information corresponding to the data flow; the shaper parameters are used by the shaper to adjust the data flow to meet the The transmission requirements indicated by the SLA information.
  2. 根据权利要求1所述的方法,其特征在于,所述第一设备根据所述流量采集信息和与所述数据流对应的SLA信息确定整形器参数,包括:The method according to claim 1, wherein the first device determines shaper parameters according to the traffic collection information and the SLA information corresponding to the data flow, including:
    所述第一设备根据所述流量采集信息和与所述数据流对应的SLA信息得到目标带宽;所述目标带宽为满足所述SLA信息指示的传输要求,且用于传输所述数据流的可用带宽的最小值;The first device obtains a target bandwidth according to the traffic collection information and the SLA information corresponding to the data flow; the target bandwidth is an available bandwidth that satisfies the transmission requirements indicated by the SLA information and is used to transmit the data flow The minimum value of the bandwidth;
    所述第一设备根据所述目标带宽确定所述整形器参数。The first device determines the shaper parameters according to the target bandwidth.
  3. 根据权利要求2所述的方法,其特征在于,所述第一设备根据所述流量采集信息和与所述数据流对应的SLA信息得到目标带宽,包括:The method according to claim 2, wherein the first device obtains the target bandwidth according to the traffic collection information and the SLA information corresponding to the data flow, including:
    所述第一设备根据所述流量采集信息得到所述目标带宽的范围;The first device obtains the range of the target bandwidth according to the traffic collection information;
    所述第一设备根据所述目标带宽的范围和与所述数据流对应的SLA信息得到所述目标带宽。The first device obtains the target bandwidth according to the range of the target bandwidth and SLA information corresponding to the data flow.
  4. 根据权利要求3所述的方法,其特征在于,所述第一设备根据所述流量采集信息得到所述目标带宽的范围,包括:The method according to claim 3, wherein the first device obtains the range of the target bandwidth according to the traffic collection information, including:
    所述第一设备根据基准值和修正值确定所述目标带宽的范围;所述基准值为根据所述流量采集信息确定的所述目标带宽的基准值,所述修正值指示所述目标带宽相对于所述基准值的波动量。The first device determines the range of the target bandwidth according to a reference value and a correction value; the reference value is a reference value of the target bandwidth determined according to the traffic collection information, and the correction value indicates that the target bandwidth is relatively The amount of fluctuation from the base value.
  5. 根据权利要求3所述的方法,其特征在于,所述第一设备根据所述流量采集信息得到所述目标带宽的范围,包括:The method according to claim 3, wherein the first device obtains the range of the target bandwidth according to the traffic collection information, including:
    所述第一设备根据分布拟合算法和所述流量采集信息确定所述目标带宽的范围。The first device determines the range of the target bandwidth according to a distribution fitting algorithm and the traffic collection information.
  6. 根据权利要求2所述的方法,其特征在于,所述流量采集信息包括所述数据流在多个采集周期内的报文的长度;所述第一设备根据所述流量采集信息和与所述数据流对应的SLA信息得到目标带宽,包括:The method according to claim 2, wherein the flow collection information includes the length of the packets of the data flow in multiple collection periods; the first device according to the flow collection information and the The SLA information corresponding to the data flow obtains the target bandwidth, including:
    所述第一设备根据所述流量采集信息获取所述数据流的突发量;所述突发量是多个采集周期中每个采集周期对应的报文的长度;The first device acquires the burst amount of the data stream according to the traffic collection information; the burst amount is the length of the message corresponding to each collection cycle among the multiple collection cycles;
    所述第一设备根据所述突发量和与所述数据流对应的SLA信息计算得到所述目标带宽。The first device calculates the target bandwidth according to the burst amount and SLA information corresponding to the data flow.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,响应于拥塞程度大于阈值,所述方法还包括:The method according to any one of claims 1-6, wherein, in response to the degree of congestion being greater than a threshold, the method further comprises:
    所述第一设备调整所述SLA信息,以使根据调整后的SLA信息和所述流量采集信息确定的整形器参数对所述数据流进行调整,以满足所述SLA信息指示的传输要求且所述拥塞程度小于或者等于所述阈值;The first device adjusts the SLA information, so that the data flow is adjusted according to the adjusted SLA information and the shaper parameters determined by the traffic collection information, so as to meet the transmission requirements indicated by the SLA information, and the The congestion level is less than or equal to the threshold;
    和/或,and / or,
    所述第一设备调整所述数据流进入的队列,以满足所述SLA信息指示的传输要求且所述拥塞程度小于或者等于所述阈值;The first device adjusts the queue into which the data flow enters, so as to meet the transmission requirement indicated by the SLA information and the congestion degree is less than or equal to the threshold;
    和/或,and / or,
    所述第一设备调整所述数据流的传输路径,以使通过所述传输路径传输所述数据流满足所述SLA信息指示的传输要求且所述拥塞程度小于或者等于所述阈值;The first device adjusts the transmission path of the data flow, so that the transmission of the data flow through the transmission path meets the transmission requirements indicated by the SLA information and the congestion degree is less than or equal to the threshold;
    其中,所述拥塞程度根据转发设备的剩余容量确定,所述剩余容量是指在保证所述转发设备的承诺转发时延下所述转发设备的剩余转发能力,所述承诺转发时延为所述数据流在所述转发设备中等待处理的预设的时延。Wherein, the congestion degree is determined according to the remaining capacity of the forwarding device, and the remaining capacity refers to the remaining forwarding capability of the forwarding device when the committed forwarding delay of the forwarding device is guaranteed, and the committed forwarding delay is the A preset time delay for data streams to wait for processing in the forwarding device.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,响应于从源端到目的端传输所述数据流的时延,或者从源端到目的端传输所述数据流的时延的估计值不满足所述SLA信息的传输要求,所述方法还包括:The method according to any one of claims 1-6, characterized in that, in response to the delay in transmitting the data flow from the source end to the destination end, or the delay in transmitting the data flow from the source end end to the destination end The estimated value of does not meet the transmission requirements of the SLA information, and the method further includes:
    所述第一设备调整所述SLA信息,以使根据调整后的SLA信息和所述流量采集信息确定的整形器参数对所述数据流进行调整,以满足所述SLA信息指示的传输要求;The first device adjusts the SLA information, so that the data flow is adjusted according to the adjusted SLA information and the shaper parameters determined by the traffic collection information, so as to meet the transmission requirements indicated by the SLA information;
    和/或,and / or,
    所述第一设备调整所述数据流进入的队列,以满足所述SLA信息指示的传输要求;The first device adjusts the queue into which the data flow enters, so as to meet the transmission requirements indicated by the SLA information;
    和/或,and / or,
    所述第一设备调整所述数据流的传输路径,以使通过所述传输路径传输所述数据流满足所述SLA信息指示的传输要求。The first device adjusts the transmission path of the data flow, so that the transmission of the data flow through the transmission path meets the transmission requirement indicated by the SLA information.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述SLA信息包括目标时延的上界;所述目标时延的上界指示所述数据流从源端到目的端的时延的上界。The method according to any one of claims 1-8, wherein the SLA information includes an upper bound of a target delay; the upper bound of the target delay indicates the time it takes for the data stream to travel from the source end to the destination end. Extended upper bound.
  10. 根据权利要求9所述的方法,其特征在于,所述目标时延包括整形时延;所述整形时延指示所述数据流在所述整形器中被处理过程中的时延。The method according to claim 9, wherein the target delay includes a shaping delay; the shaping delay indicates a delay during processing of the data flow in the shaper.
  11. 根据权利要求10所述的方法,其特征在于,所述目标时延还包括固定时延和网络转发时延中的一种或多种;所述固定时延包括传播时延、设备处理时延和端口时延中的一种或多种;所述传播时延为所述数据流在传输介质中传播的时延;所述设备处理时延为设备处理所述数据流的时延;所述端口传输时延为通过端口传输所述数据流的时延;所述网络转发时延为从所述源端到所述目的端,所述数据流在所述转发设备中等待处理的预设的时延。The method according to claim 10, wherein the target delay further includes one or more of fixed delay and network forwarding delay; the fixed delay includes propagation delay, device processing delay and port delay; the propagation delay is the delay of the data flow propagating in the transmission medium; the device processing delay is the delay of the device processing the data flow; the The port transmission delay is the delay of transmitting the data flow through the port; the network forwarding delay is the preset time for the data flow to be processed in the forwarding device from the source end to the destination end delay.
  12. 根据权利要求11所述的方法,其特征在于,所述网络转发时延指示传输所述数据流的多个所述转发设备的承诺转发时延之和;所述承诺转发时延为所述数据流在所述转发设备中等待处理的预设的时延。The method according to claim 11, wherein the network forwarding delay indicates the sum of committed forwarding delays of multiple forwarding devices transmitting the data stream; the committed forwarding delay is the data A preset delay for a stream to wait for processing in the forwarding device.
  13. 根据权利要求11所述的方法,其特征在于,所述网络转发时延根据传输所述数据流的多个所述转发设备的预设转发带宽确定;所述预设转发带宽为所述转发设备转发所述数据流的预设的带宽。The method according to claim 11, wherein the network forwarding delay is determined according to the preset forwarding bandwidth of a plurality of forwarding devices transmitting the data stream; the preset forwarding bandwidth is the forwarding device A preset bandwidth for forwarding the data flow.
  14. 根据权利要求10所述的方法,其特征在于,所述目标时延还包括固定时延和实际转发时延中的一种或多种;The method according to claim 10, wherein the target delay further includes one or more of a fixed delay and an actual forwarding delay;
    所述实际转发时延指示从所述源端到所述目的端所述数据流在所述转发设备中等待处理的时延。The actual forwarding delay indicates the delay of the data flow waiting to be processed in the forwarding device from the source end to the destination end.
  15. 根据权利要求1-8任一项所述的方法,其特征在于,所述SLA信息包括缓存上界;所述缓存上界为传输所述数据流的设备中,包括整形器的设备的可用缓存的最小值。The method according to any one of claims 1-8, wherein the SLA information includes a cache upper bound; the cache upper bound is an available cache of a device including a shaper among devices transmitting the data stream minimum value.
  16. 根据权利要求9-15任一项所述的方法,其特征在于,所述SLA信息还包括可靠性概率,所述可靠性概率为满足所述数据流对应的SLA信息指示的传输要求的概率。The method according to any one of claims 9-15, wherein the SLA information further includes a reliability probability, and the reliability probability is a probability of meeting a transmission requirement indicated by the SLA information corresponding to the data flow.
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述第一设备获取数据流的流量采集信息,包括:The method according to any one of claims 1-16, wherein the acquisition of the flow collection information of the data flow by the first device includes:
    所述第一设备接收由第二设备发送的所述数据流的所述流量采集信息;所述第二设备为传输所述数据流的设备。The first device receives the traffic collection information of the data stream sent by the second device; the second device is a device for transmitting the data stream.
  18. 根据权利要求17所述的方法,其特征在于,所述流量采集信息包括所述数据流在多个采集周期内的报文的长度的统计值;所述统计值包括平均值,所述平均值指示采集所述数据流中的多个报文的长度和与采集多个所述报文所经历的采集周期数量的比值。The method according to claim 17, wherein the traffic collection information includes the statistical value of the length of the packets of the data flow in multiple collection periods; the statistical value includes an average value, and the average value Indicates the ratio of the lengths of the multiple packets in the data stream collected to the number of collection cycles experienced in collecting the multiple packets.
  19. 根据权利要求1-18任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-18, wherein the method further comprises:
    所述第一设备向第三设备发送所述整形器参数;所述第三设备为包括整形器的传输所述数据流的设备。The first device sends the shaper parameters to a third device; the third device is a device that includes a shaper and transmits the data stream.
  20. 根据权利要求1-19任一项所述的方法,其特征在于,所述第一设备为控制设备或传输所述数据流的设备。The method according to any one of claims 1-19, wherein the first device is a control device or a device transmitting the data stream.
  21. 根据权利要求20所述的方法,其特征在于,所述控制设备为中心网络控制CNC设备。The method according to claim 20, wherein the control device is a central network control CNC device.
  22. 根据权利要求1-21任一项所述的方法,其特征在于,所述整形器参数包括令牌桶桶深和令牌产生速率中的至少一个。The method according to any one of claims 1-21, wherein the shaper parameters include at least one of token bucket depth and token generation rate.
  23. 根据权利要求1-21任一项所述的方法,其特征在于,所述整形器参数包括信用积累速率和信用消耗速率中的至少一个。The method according to any one of claims 1-21, wherein the shaper parameters include at least one of a credit accumulation rate and a credit consumption rate.
  24. 一种第一设备,其特征在于,所述第一设备包括:A first device, characterized in that the first device includes:
    获取单元,用于获取数据流的流量采集信息;an acquisition unit, configured to acquire traffic collection information of the data stream;
    处理单元,用于根据所述流量采集信息和与所述数据流对应的SLA信息确定整形器参数;所述整形器参数用于整形器对所述数据流进行调整,以满足所述SLA信息指示的传输要求。A processing unit, configured to determine shaper parameters according to the traffic collection information and SLA information corresponding to the data flow; the shaper parameters are used by the shaper to adjust the data flow to meet the SLA information indication transmission requirements.
  25. 根据权利要求24所述的第一设备,其特征在于,所述处理单元具体用于:The first device according to claim 24, wherein the processing unit is specifically configured to:
    根据所述流量采集信息和与所述数据流对应的SLA信息得到目标带宽;所述目标带宽为满足所述SLA信息指示的传输要求,且用于传输所述数据流的可用带宽的最小值;Obtaining a target bandwidth according to the traffic collection information and the SLA information corresponding to the data flow; the target bandwidth is a minimum value of an available bandwidth that meets the transmission requirements indicated by the SLA information and is used to transmit the data flow;
    根据所述目标带宽确定所述整形器参数。The shaper parameters are determined based on the target bandwidth.
  26. 根据权利要求25所述的第一设备,其特征在于,在所述处理单元根据所述流量采集信息和与所述数据流对应的SLA信息得到目标带宽中,所述处理单元具体用于:The first device according to claim 25, wherein, when the processing unit obtains the target bandwidth according to the traffic collection information and the SLA information corresponding to the data flow, the processing unit is specifically configured to:
    根据所述流量采集信息得到所述目标带宽的范围;Obtaining the range of the target bandwidth according to the traffic collection information;
    根据所述目标带宽的范围和与所述数据流对应的SLA信息得到所述目标带宽。The target bandwidth is obtained according to the range of the target bandwidth and the SLA information corresponding to the data flow.
  27. 根据权利要求26所述的第一设备,其特征在于,在所述处理单元根据所述流量采集信息得到所述目标带宽的范围中,所述处理单元具体用于:The first device according to claim 26, wherein, within the range where the processing unit obtains the target bandwidth according to the traffic collection information, the processing unit is specifically configured to:
    根据基准值和修正值确定所述目标带宽的范围;所述基准值为根据所述流量采集信息确定的所述目标带宽的基准值,所述修正值指示所述目标带宽相对于所述基准值的波动量。Determine the range of the target bandwidth according to a reference value and a correction value; the reference value is a reference value of the target bandwidth determined according to the flow collection information, and the correction value indicates that the target bandwidth is relative to the reference value of fluctuations.
  28. 根据权利要求26所述的第一设备,其特征在于,在所述处理单元根据所述流量采集信息得到所述目标带宽的范围中,包括:The first device according to claim 26, wherein the range in which the processing unit obtains the target bandwidth according to the traffic collection information includes:
    所述第一设备根据分布拟合算法和所述流量采集信息确定所述目标带宽的范围。The first device determines the range of the target bandwidth according to a distribution fitting algorithm and the traffic collection information.
  29. 根据权利要求25所述的第一设备,其特征在于,所述流量采集信息包括所述数据流在多个采集周期内的报文的长度;在所述处理单元根据所述流量采集信息和与所述数据流对应的SLA信息得到目标带宽中,所述处理单元具体用于:The first device according to claim 25, wherein the traffic collection information includes the length of the packets of the data flow in multiple collection periods; the processing unit according to the traffic collection information and the In the SLA information corresponding to the data flow obtained in the target bandwidth, the processing unit is specifically used for:
    根据所述流量采集信息获取所述数据流的突发量;所述突发量是多个采集周期中每个采集周期对应的报文的长度;Acquiring the burst amount of the data flow according to the traffic collection information; the burst amount is the length of the message corresponding to each collection cycle in the plurality of collection cycles;
    根据所述突发量和与所述数据流对应的SLA信息计算得到所述目标带宽。The target bandwidth is obtained by calculating according to the burst amount and the SLA information corresponding to the data flow.
  30. 根据权利要求24-29任一项所述的第一设备,其特征在于,所述第一设备还包括:The first device according to any one of claims 24-29, wherein the first device further comprises:
    第一调整单元,用于响应于拥塞程度大于阈值,调整所述SLA信息,以使根据调整后的SLA信息和所述流量采集信息确定的整形器参数对所述数据流进行调整,以满足所述SLA信息指示的传输要求且所述拥塞程度小于或者等于所述阈值;The first adjustment unit is configured to adjust the SLA information in response to the congestion degree being greater than a threshold, so that the data flow is adjusted according to the adjusted SLA information and the shaper parameters determined by the traffic collection information, so as to meet the requirements. The transmission requirement indicated by the SLA information and the congestion degree is less than or equal to the threshold;
    和/或,and / or,
    调整所述数据流进入的队列,以满足所述SLA信息指示的传输要求且所述拥塞程度小于或者等于所述阈值;adjusting the queue into which the data flow enters, so as to meet the transmission requirement indicated by the SLA information and the congestion degree is less than or equal to the threshold;
    和/或,and / or,
    调整所述数据流的传输路径,以使通过所述传输路径传输所述数据流满足所述SLA信息指示的传输要求且所述拥塞程度小于或者等于所述阈值;adjusting the transmission path of the data flow, so that the transmission of the data flow through the transmission path meets the transmission requirements indicated by the SLA information and the congestion degree is less than or equal to the threshold;
    其中,所述拥塞程度根据转发设备的剩余容量确定,所述剩余容量是指在保证所述转发设备的承诺转发时延下所述转发设备的剩余转发能力,所述承诺转发时延为所述数据流在所述转发设备中等待处理的预设的时延。Wherein, the congestion degree is determined according to the remaining capacity of the forwarding device, and the remaining capacity refers to the remaining forwarding capability of the forwarding device when the committed forwarding delay of the forwarding device is guaranteed, and the committed forwarding delay is the A preset time delay for data streams to wait for processing in the forwarding device.
  31. 根据权利要求24-29任一项所述的第一设备,其特征在于,所述第一设备还包括:The first device according to any one of claims 24-29, wherein the first device further comprises:
    第二调整单元,响应于从源端到目的端传输所述数据流的时延,或者从源端到目的端传输所述数据流的时延的估计值不满足所述SLA信息的传输要求,调整所述SLA信息,以使根据调整后的SLA信息和所述流量采集信息确定的整形器参数对所述数据流进行调整,以满足所述SLA信息指示的传输要求;The second adjusting unit, in response to the time delay for transmitting the data flow from the source end to the destination end, or the estimated value of the time delay for transmitting the data flow from the source end end to the destination end does not meet the transmission requirement of the SLA information, Adjusting the SLA information, so that the data flow is adjusted according to the adjusted SLA information and the shaper parameters determined by the traffic collection information, so as to meet the transmission requirements indicated by the SLA information;
    和/或,and / or,
    调整所述数据流进入的队列,以满足所述SLA信息指示的传输要求;Adjusting the queue into which the data flow enters, so as to meet the transmission requirements indicated by the SLA information;
    和/或,and / or,
    调整所述数据流的传输路径,以使通过所述传输路径传输所述数据流满足所述SLA信息指示的传输要求。Adjusting the transmission path of the data flow, so that the transmission of the data flow through the transmission path meets the transmission requirement indicated by the SLA information.
  32. 根据权利要求24-31任一项所述的第一设备,其特征在于,所述SLA信息包括目标 时延的上界;所述目标时延的上界指示所述数据流从源端到目的端的时延的上界。The first device according to any one of claims 24-31, wherein the SLA information includes an upper bound of a target delay; the upper bound of the target delay indicates that the data flow is from the source end to the destination The upper bound of the end delay.
  33. 根据权利要求32所述的第一设备,其特征在于,所述目标时延包括整形时延;所述整形时延指示所述数据流在所述整形器中被处理过程中的时延。The first device according to claim 32, wherein the target delay comprises a shaping delay; the shaping delay indicates a delay during processing of the data flow in the shaper.
  34. 根据权利要求33所述的第一设备,其特征在于,所述目标时延还包括固定时延和网络转发时延中的一种或多种;所述固定时延包括传播时延、设备处理时延和端口时延中的一种或多种;所述传播时延为所述数据流在传输介质中传播的时延;所述设备处理时延为设备处理所述数据流的时延;所述端口传输时延为通过端口传输所述数据流的时延;所述网络转发时延为从所述源端到所述目的端,所述数据流在所述转发设备中等待处理的预设的时延。The first device according to claim 33, wherein the target delay further includes one or more of fixed delay and network forwarding delay; the fixed delay includes propagation delay, device processing One or more of delay and port delay; the propagation delay is the delay of the data stream propagating in the transmission medium; the device processing delay is the delay of the device processing the data stream; The port transmission delay is the delay of transmitting the data flow through the port; the network forwarding delay is the pre-delay of the data flow waiting to be processed in the forwarding device from the source end to the destination end set delay.
  35. 根据权利要求34所述的第一设备,其特征在于,所述网络转发时延指示传输所述数据流的多个所述转发设备的承诺转发时延之和;所述承诺转发时延为所述数据流在所述转发设备中等待处理的预设的时延。The first device according to claim 34, wherein the network forwarding delay indicates the sum of committed forwarding delays of multiple forwarding devices transmitting the data flow; the committed forwarding delay is the The preset time delay for the data flow to be processed in the forwarding device.
  36. 根据权利要求34所述的第一设备,其特征在于,所述网络转发时延根据传输所述数据流的多个所述转发设备的预设转发带宽确定;所述预设转发带宽为所述转发设备转发所述数据流的预设的带宽。The first device according to claim 34, wherein the network forwarding delay is determined according to a preset forwarding bandwidth of a plurality of forwarding devices transmitting the data stream; the preset forwarding bandwidth is the The forwarding device forwards the preset bandwidth of the data flow.
  37. 根据权利要求33所述的第一设备,其特征在于,所述目标时延还包括固定时延和实际转发时延中的一种或多种;The first device according to claim 33, wherein the target delay further includes one or more of a fixed delay and an actual forwarding delay;
    所述实际转发时延指示从所述源端到所述目的端所述数据流在所述转发设备中等待处理的时延。The actual forwarding delay indicates the delay of the data flow waiting to be processed in the forwarding device from the source end to the destination end.
  38. 根据权利要求24-31任一项所述的第一设备,其特征在于,所述SLA信息包括缓存上界;所述缓存上界为传输所述数据流的设备中,包括整形器的设备的可用缓存的最小值。The first device according to any one of claims 24-31, wherein the SLA information includes a buffer upper bound; the buffer upper bound is the device that transmits the data stream, including a shaper Minimum cacheable value available.
  39. 根据权利要求32-38任一项所述的第一设备,其特征在于,所述SLA信息还包括可靠性概率,所述可靠性概率为满足所述数据流对应的SLA信息指示的传输要求的概率。The first device according to any one of claims 32-38, wherein the SLA information further includes a reliability probability, and the reliability probability is a transmission requirement indicated by the SLA information corresponding to the data flow. probability.
  40. 根据权利要求24-39任一项所述的第一设备,其特征在于,所述获取单元具体用于:The first device according to any one of claims 24-39, wherein the acquiring unit is specifically configured to:
    接收由第二设备发送的所述数据流的所述流量采集信息;所述第二设备为传输所述数据流的设备。receiving the traffic collection information of the data stream sent by a second device; the second device is a device for transmitting the data stream.
  41. 根据权利要求40所述的第一设备,其特征在于,所述流量采集信息包括所述数据流在多个采集周期内的报文的长度的统计值;所述统计值包括平均值,所述平均值指示采集所述数据流中的多个报文的长度和与采集多个所述报文所经历的采集周期数量的比值。The first device according to claim 40, wherein the flow collection information includes statistical values of packet lengths of the data flow in multiple collection periods; the statistical values include average values, and the The average value indicates the ratio of the lengths of collecting the plurality of packets in the data stream to the number of acquisition cycles for collecting the plurality of packets.
  42. 根据权利要求40或41所述的第一设备,其特征在于,所述第一设备还包括:The first device according to claim 40 or 41, wherein the first device further comprises:
    发送单元,用于向第三设备发送所述整形器参数;所述第三设备为包括整形器的传输所述数据流的设备。A sending unit, configured to send the shaper parameters to a third device; the third device is a device that includes a shaper and transmits the data stream.
  43. 根据权利要求24-42任一项所述的第一设备,其特征在于,所述第一设备为控制设备或传输所述数据流的设备。The first device according to any one of claims 24-42, wherein the first device is a control device or a device for transmitting the data stream.
  44. 根据权利要求43所述的第一设备,其特征在于,所述控制设备为中心网络控制CNC设备。The first device according to claim 43, wherein the control device is a central network control CNC device.
  45. 根据权利要求24-44任一项所述的第一设备,其特征在于,所述整形器参数包括令 牌桶桶深和令牌产生速率中的至少一个。The first device according to any one of claims 24-44, wherein the shaper parameters include at least one of token bucket depth and token generation rate.
  46. 根据权利要求24-44任一项所述的第一设备,其特征在于,所述整形器参数包括信用积累速率和信用消耗速率中的至少一个。The first device according to any one of claims 24-44, wherein the shaper parameters include at least one of a credit accumulation rate and a credit consumption rate.
  47. 一种网络系统,其特征在于,所述网络系统包括第一设备和第二设备,A network system, characterized in that the network system includes a first device and a second device,
    所述第二设备,用于采集所述数据流的流量采集信息,向所述第一设备发送所述数据流的所述流量采集信息;所述第二设备为传输所述数据流的设备;The second device is configured to collect traffic collection information of the data stream, and send the traffic collection information of the data stream to the first device; the second device is a device for transmitting the data stream;
    所述第一设备,用于接收由所述第二设备发送的所述数据流的所述流量采集信息;The first device is configured to receive the traffic collection information of the data stream sent by the second device;
    所述第一设备,还用于根据所述流量采集信息和与所述数据流对应的SLA信息确定整形器参数;所述整形器参数用于整形器对所述数据流进行调整,以满足所述SLA信息指示的传输要求。The first device is further configured to determine a shaper parameter according to the traffic collection information and the SLA information corresponding to the data flow; the shaper parameter is used by the shaper to adjust the data flow to meet the The transmission requirements indicated by the above SLA information.
  48. 根据权利要求47所述的网络系统,其特征在于,所述网络系统还包括第三设备,The network system according to claim 47, wherein the network system further comprises a third device,
    所述第一设备,还用于向所述第三设备发送所述整形器参数;The first device is further configured to send the shaper parameter to the third device;
    所述第三设备,用于接收所述第一设备发送的所述整形器参数,根据所述整形器参数配置所述整形器;所述第三设备为包括所述整形器的传输所述数据流的设备。The third device is configured to receive the shaper parameters sent by the first device, and configure the shaper according to the shaper parameters; the third device transmits the data including the shaper streaming device.
PCT/CN2022/101726 2021-07-05 2022-06-28 Network configuration method, device and system WO2023280004A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110759176.5 2021-07-05
CN202110759176.5A CN115589602A (en) 2021-07-05 2021-07-05 Network configuration method, equipment and system

Publications (1)

Publication Number Publication Date
WO2023280004A1 true WO2023280004A1 (en) 2023-01-12

Family

ID=84772466

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/101726 WO2023280004A1 (en) 2021-07-05 2022-06-28 Network configuration method, device and system

Country Status (2)

Country Link
CN (1) CN115589602A (en)
WO (1) WO2023280004A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080112318A1 (en) * 2006-11-13 2008-05-15 Rejean Groleau Traffic shaping and scheduling in a network
CN101599905A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 A kind of method, Apparatus and system of realizing that traffic shaping token adds
US20160218943A1 (en) * 2015-01-26 2016-07-28 Ciena Corporation Representative bandwidth calculation systems and methods in a network
CN112543153A (en) * 2019-09-20 2021-03-23 华为技术有限公司 Message forwarding method, device, system, equipment and storage medium
CN112583735A (en) * 2019-09-27 2021-03-30 华为技术有限公司 Method, device and system for determining required bandwidth for transmitting data stream
CN112671656A (en) * 2019-10-16 2021-04-16 华为技术有限公司 Method and equipment for configuring network
CN112787952A (en) * 2019-11-08 2021-05-11 华为技术有限公司 Service flow adjusting method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080112318A1 (en) * 2006-11-13 2008-05-15 Rejean Groleau Traffic shaping and scheduling in a network
CN101599905A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 A kind of method, Apparatus and system of realizing that traffic shaping token adds
US20160218943A1 (en) * 2015-01-26 2016-07-28 Ciena Corporation Representative bandwidth calculation systems and methods in a network
CN112543153A (en) * 2019-09-20 2021-03-23 华为技术有限公司 Message forwarding method, device, system, equipment and storage medium
CN112583735A (en) * 2019-09-27 2021-03-30 华为技术有限公司 Method, device and system for determining required bandwidth for transmitting data stream
CN112671656A (en) * 2019-10-16 2021-04-16 华为技术有限公司 Method and equipment for configuring network
CN112787952A (en) * 2019-11-08 2021-05-11 华为技术有限公司 Service flow adjusting method and device

Also Published As

Publication number Publication date
CN115589602A (en) 2023-01-10

Similar Documents

Publication Publication Date Title
US11381452B2 (en) Network slicing method and system
US11316795B2 (en) Network flow control method and network device
EP4024778A1 (en) Method for determining required bandwidth for data stream transmission, and devices and system
US10187318B2 (en) Dynamic bandwidth control systems and methods in software defined networking
US11272396B2 (en) Frame aggregation method, network setting frame sending method, and device
US10237192B2 (en) Apparatus and system for optimizing communication networks
EP2702731A1 (en) Hierarchical profiled scheduling and shaping
KR101618985B1 (en) Method and apparatus for dynamic control of traffic in software defined network enviroment
EP2869506B1 (en) Congestion avoidance and fairness in data networks with multiple traffic sources
CN108881031B (en) Self-adaptive reliable data transmission method based on SDN network
WO2020063299A1 (en) Method and system for collecting statistics about the number of active flows, and network device
WO2021244247A1 (en) Data message forwarding method, network node, system, and storage medium
US20220224653A1 (en) Packet Forwarding Method, Device, and System
CN104995883A (en) Signalling congestion
Mliki et al. A comprehensive survey on carrier ethernet congestion management mechanism
US20230336486A1 (en) Service flow scheduling method and apparatus, and system
CN113438182A (en) Flow control system and flow control method based on credit
KR20220029142A (en) Sdn controller server and method for analysing sdn based network traffic usage thereof
WO2023280004A1 (en) Network configuration method, device and system
CN116346634A (en) State sensing information processing method and device of network management and control system and electronic equipment
Baldi et al. Time-driven priority router implementation: Analysis and experiments
WO2022052800A1 (en) Communication system, data processing method and related device
CN117014967A (en) Mobile communication system, method and user plane node
WO2021238694A1 (en) Method for determining bandwidth for transmitting service flow, device and system
CN114567602B (en) Delay guarantee transmission system and method

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: 22836758

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE