WO2021147354A1 - Service level configuration method and device - Google Patents

Service level configuration method and device Download PDF

Info

Publication number
WO2021147354A1
WO2021147354A1 PCT/CN2020/115994 CN2020115994W WO2021147354A1 WO 2021147354 A1 WO2021147354 A1 WO 2021147354A1 CN 2020115994 W CN2020115994 W CN 2020115994W WO 2021147354 A1 WO2021147354 A1 WO 2021147354A1
Authority
WO
WIPO (PCT)
Prior art keywords
service level
forwarding
delay
target
forwarding node
Prior art date
Application number
PCT/CN2020/115994
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 华为技术有限公司
Priority to EP20916041.5A priority Critical patent/EP4075732A4/en
Priority to KR1020227026464A priority patent/KR20220123090A/en
Priority to JP2022544184A priority patent/JP2023511889A/en
Publication of WO2021147354A1 publication Critical patent/WO2021147354A1/en
Priority to US17/868,859 priority patent/US20220368608A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5032Generating service level reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5019Ensuring fulfilment of SLA
    • H04L41/5022Ensuring fulfilment of SLA by giving priorities, e.g. assigning classes of service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5054Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2408Traffic characterised by specific attributes, e.g. priority or QoS for supporting different services, e.g. a differentiated services [DiffServ] type of service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2483Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/28Flow control; Congestion control in relation to timing considerations
    • H04L47/283Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/36Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Definitions

  • This application relates to the technical field of communication networks, and in particular to a service level configuration method, device, computing device, network device, and computer-readable storage medium.
  • different special services can have different business requirements.
  • Technical personnel can assign a priority to the data flow of each special business according to the business requirements of different special services, while technical personnel will not assign a priority to the data flow of ordinary business.
  • Assign priority When multiple data streams are transmitted on a forwarding node in an Internet Protocol (IP) network, the forwarding node may transmit multiple data streams based on the priority of the multiple data streams. The transmission of certain priority service streams cannot meet the delay requirements required by special services.
  • IP Internet Protocol
  • the embodiments of the present application provide a service level configuration method and device, which can ensure that the transmission of data streams can meet the delay requirements required by special services.
  • the technical scheme is as follows:
  • a service level configuration method which includes:
  • the transmission parameters of the data stream and the service level information of the first forwarding node can be obtained first; and then according to the transmission parameters of the data stream and the service level information of the first forwarding node, from at least one service of the first forwarding node In the level, determine the target service level used by the first forwarding node to forward the data flow; then, send a service level configuration request to the first forwarding node;
  • the service level information of the first forwarding node includes transmission parameters of at least one service level of the first forwarding node, and the transmission parameters of the target service level of the first forwarding node meet the requirements of the transmission parameters of the data stream.
  • the first target condition, the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream.
  • the target service level of the first forwarding node for forwarding the data stream is directly determined, and the service level configuration of the first forwarding node is performed.
  • the transmission parameters of the target service level of the first forwarding node and the transmission parameters of the data stream meet the first target condition, if the first target condition is the delay requirement required by the special service, and the first forwarding node uses the target service level to transmit data Stream, the transmission of data stream can meet the delay requirements required by special services.
  • the transmission parameters of the data stream include the transmission delay, burst volume, and transmission bandwidth of the data stream;
  • the transmission parameters of a service level include the forwarding delay, service burst volume, and service bandwidth corresponding to the service level, and the service burst volume is the maximum burst volume allowed when the service level is used to forward at least one data stream.
  • the service bandwidth is the maximum bandwidth allowed when using the service level to forward at least one data stream.
  • the first target condition includes at least one of the following:
  • the forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay
  • the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service burst amount corresponding to the target service level of the first forwarding node;
  • the sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node.
  • the first target condition further includes:
  • the sum of the forwarding delay and the target delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay, and the target delay is the inherent delay of the transmission path of the data stream.
  • the method before the determining the target service level of the first forwarding node for forwarding the data flow, the method further includes:
  • the service level information of the second forwarding node according to the transmission parameters of the data stream, the service level information of the first forwarding node, and the service level information of the second forwarding node, from at least the second forwarding node In a service level, determine the target service level of the second forwarding node for forwarding the data flow; wherein, the second forwarding node is the data flow transmission path other than the first forwarding node Node, the transmission parameters of the target service level of the first forwarding node, the transmission parameters of the target service level of the second forwarding node, and the transmission parameters of the data stream satisfy a second target condition.
  • the second target condition includes at least one of the following:
  • the sum of the forwarding delay corresponding to the target service level of the first forwarding node and the forwarding delay corresponding to the target service level of the second forwarding node is less than or equal to the transmission delay
  • the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the node is less than or equal to the node The service burst corresponding to the target service level;
  • the sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the node is less than or equal to the service bandwidth corresponding to the target service level of the node.
  • the forwarding node on the transmission path uses the target service level to transmit the data stream , It can be guaranteed that the actual transmission delay of the data stream can meet the transmission delay required by the service.
  • the forwarding on the transmission path If the node uses the target service level to transmit the data stream, it can be ensured that even if the data stream is bursty, it can still complete the data stream transmission while ensuring the business requirements.
  • the forwarding node uses the target service level to transmit the data stream, which can ensure that the actual transmission bandwidth of the data stream can meet the transmission bandwidth required by the service.
  • the second target condition further includes:
  • the sum of the forwarding delay corresponding to the target service level of the first forwarding node, the forwarding delay corresponding to the target service level of the second forwarding node, and the target delay is less than or equal to the transmission delay, and the target time
  • the delay is the inherent delay of the transmission path.
  • the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task delay.
  • the port delay is The duration for the forwarding node to send the packet in the data stream to the port of the forwarding node
  • the task delay is the duration for the forwarding node to allocate a forwarding task for the packet in the data stream.
  • the method further includes:
  • a rectification request is sent to the node to be rectified, where the rectification request is used to instruct to rectify the data stream.
  • the burst volume of the data stream is less than or equal to the service burst volume corresponding to the target service level of the first forwarding node.
  • the node to be rectified is a forwarding node before the first forwarding node on the transmission path of the data stream, a target terminal, or the first forwarding node of the transmission path, and the target terminal Used to send the data stream.
  • the data stream includes at least one service stream.
  • a service level configuration method which is applied to a forwarding node, and the method includes:
  • the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream, and the transmission parameters of the target service level of the first forwarding node and the transmission parameters of the data stream satisfy The first target condition.
  • the transmission parameters of the data stream include the transmission delay, burst volume, and transmission bandwidth of the data stream;
  • the target service level of the first forwarding node is any one of at least one service level of the first forwarding node, and the transmission parameters of one service level include the forwarding delay corresponding to the service level, the service burst, and the service Bandwidth, the service burst volume is the maximum burst volume allowed when the service level is used to forward at least one data stream, and the service bandwidth is the maximum bandwidth allowed when the service level is used to forward at least one data stream.
  • the first target condition includes at least one of the following:
  • the forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay
  • the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service burst amount corresponding to the target service level of the first forwarding node;
  • the sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node.
  • the first target condition further includes:
  • the sum of the forwarding delay and the target delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay, and the target delay is an inherent delay on the transmission path.
  • the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task delay of the forwarding node.
  • the delay is the length of time during which the forwarding node sends the packet in the data stream to the port of the forwarding node
  • the task delay is the length of time during which the forwarding node allocates a forwarding task for the packet in the data stream.
  • the method before the receiving the service level configuration request, the method further includes:
  • the obtaining transmission parameters of at least one service level includes:
  • the queuing delay of the service level may be obtained first, and the queuing delay is the amount of time packets in the data flow are waiting on the forwarding queue corresponding to the service level Maximum duration
  • the data volume determines the maximum burst volume corresponding to the service level; then, the service bandwidth corresponding to the service level is determined according to the port bandwidth of the first forwarding node and the forwarded data volume corresponding to the service level; wherein, The amount of forwarded data is the amount of data that is forwarded in a single time from the forwarding queue corresponding to the service level.
  • the determining the forwarding delay corresponding to the service level based on the queuing delay of the service level includes:
  • the sum of the queuing delay of the service level and the inherent delay of the first forwarding node is determined as the forwarding delay corresponding to the service level.
  • the method further includes:
  • a buffer space is allocated to the forwarding queue corresponding to the service level, and the buffer space is used to provide messages for the forwarding queue.
  • the transmission parameter of a service level further includes a target identifier.
  • the The target identifier is a first identifier, and the first identifier is used to indicate that no packet loss occurs when the data stream is forwarded using the service level; otherwise, the target identifier is a second identifier, and the second identifier is used to indicate that all data streams are used. Packet loss occurs when the above-mentioned service level forwards data streams.
  • the transmission parameter of a service level further includes a confidence probability corresponding to the service level, and the confidence probability is that the actual forwarding delay when the data stream is forwarded using the service level is less than or equal to the service level.
  • the probability of the forwarding delay corresponding to the level is less than or equal to the service level.
  • the data stream includes at least one service stream.
  • a service level configuration device which is used to execute the above service level configuration method.
  • the service level configuration apparatus includes a functional module for executing the service level configuration method provided by the foregoing first aspect or any optional manner of the foregoing first aspect.
  • a service level configuration device which is used to execute the above service level configuration method.
  • the service level configuration apparatus includes a functional module for executing the service level configuration method provided by the foregoing second aspect or any optional manner of the foregoing second aspect.
  • a computing device in a fifth aspect, includes a processor and a memory, and at least one instruction is stored in the memory.
  • the instruction is loaded and executed by the processor to implement the operations performed by the foregoing service level configuration method. Specifically, it is used to perform operations performed in the service level configuration method provided by the foregoing first aspect or any one of the optional manners of the foregoing first aspect.
  • a network device in a sixth aspect, includes a processor and a memory, and at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the operations performed by the foregoing service level configuration method. Specifically, it is used to perform operations performed in the service level configuration method provided by the foregoing second aspect or any optional manner of the foregoing second aspect.
  • a computer-readable storage medium is provided, and at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement operations performed by the foregoing service level configuration method.
  • a computer-readable storage medium is provided, and at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement operations performed by the foregoing service level configuration method.
  • FIG. 1 is a schematic diagram of a service level configuration system provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a computing device provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of a service level configuration method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a transmission parameter for determining a service level according to an embodiment of the present application
  • Fig. 6 is a schematic diagram of a target message format provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of determining a target service level provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a first message format provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a minimum delay field of a second message format provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a service level configuration apparatus provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a service level configuration apparatus provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a service level configuration system provided by an embodiment of the present application.
  • the system 100 may include a sending node 101, a forwarding node 102, a receiving node 103, and a control node 104.
  • the sending node 101 is used to send a data stream, and is the sending end of the data stream.
  • the sending node 101 may be a user equipment such as a mobile phone or a personal computer, or a computing device such as a server.
  • the number of sending nodes 101 in the system 100 may be one or more.
  • the embodiment of the present application does not specifically limit the hardware form and number of sending nodes 101.
  • the forwarding node 102 is configured to transmit the data stream sent by the sending node 101 to the receiving node 103.
  • the forwarding node 102 may be a network device with a forwarding function such as a switch or a router.
  • the number of forwarding nodes 102 in the system 100 may be one or multiple. The embodiment of the present application does not specifically limit the hardware form and number of forwarding nodes 102.
  • the receiving node 103 is configured to receive the data stream transmitted by the forwarding node 102, and is the receiving end of the data stream.
  • the receiving node 103 may be a user equipment such as a mobile phone or a personal computer, or a computing device such as a server, or a forwarding node with a forwarding function located at the edge of the subnet.
  • the number of receiving nodes 103 in the system 100 may be one or multiple. The embodiment of the present application does not specifically limit the hardware form and number of receiving nodes 103.
  • the sending node 101, the at least one forwarding node 102, and the receiving node 103 can form a transmission path of a data stream.
  • the data stream can be a service-based service stream, and the data stream can have transmission parameters required by the service.
  • the transmission required by the service The parameter can be recorded as the transmission parameter of the data stream.
  • the sending node 101, the forwarding node 102, or the receiving node 103 on the transmission path can send the transmission parameters of the data stream to the control node 104, and each forwarding node on the transmission path
  • the node 102 may send respective service level information to the control node 104, where the service level information of one forwarding node includes transmission parameters of at least one service level of the forwarding node.
  • the control node 104 is further configured to determine that the forwarding node 102 is used to forward the forwarding node 102 from at least one service level of the forwarding node 102 according to the transmission parameters of the data stream and the service level information of the forwarding node 102 The target service level of the data stream.
  • the control node 104 can also be used to send a service level configuration request to the forwarding node 102, and the forwarding node 102 performs service level configuration based on the received service level configuration request, so that the target service level of the forwarding node 102 can be used to perform the data flow. transmission.
  • the control node 104 may be a computing device with a computing function and a storage function, such as a computing device such as a computer and a server. Part or all of the functions of the control node 104 may also be implemented by other devices, such as the forwarding node 102.
  • the embodiment of the present application does not specifically limit the control node 104.
  • the system 100 may further include a target control node 105, which is used to obtain transmission parameters of at least one data stream, and the transmission parameters of at least one data stream may be controlled by at least one sending node 101. Or at least one receiving node 103 uploads to the target control node 105.
  • the target control node 105 can also be used to send the transmission parameters of at least one data stream to the control node 104.
  • the control node 104 is based on the transmission parameters of the data stream and the transmission path of the data stream. Forward the service level information of the node and perform service level configuration.
  • the target control node 105 may also be used to receive a configuration response corresponding to the data stream sent by the control node 104, where the configuration response corresponding to the data stream is used to indicate a configuration result of the service level configuration performed based on the data stream.
  • the target control node 105 may be a computing device with a computing function and a storage function, such as a computing device such as a computer and a server. Part or all of the functions of the target control node 105 may also be implemented by other devices, such as the forwarding node 102 and the control node 104.
  • the embodiment of the present application does not specifically limit the target control node 105.
  • control node 104 can also return the configuration response corresponding to the data stream to any device that sends the transmission parameters of the data stream through the user network port.
  • the any device can be the sending node 101, the forwarding node 102, and the receiving device.
  • the control node can be any computing device.
  • a relatively large difference may include one or more processors (central processing units, CPU) 201 and one or more memories 202, where at least one instruction is stored in the memory 202, and the at least one instruction is executed by the processor 201 is loaded and executed to implement the steps executed by the control node in each method embodiment described below.
  • the computing device 200 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output.
  • the computing device 200 may also include other components for implementing device functions, which will not be repeated here.
  • the forwarding node may be a network device.
  • the difference may include one or more processors 301 and one or more memories 302, where at least one instruction is stored in the memory 302, and the at least one instruction is loaded and executed by the processor 301 to implement each of the following Steps performed by the forwarding node in the method embodiment.
  • the network device 300 may also have components such as a wired or wireless network interface, a keyboard, an input and output interface for input and output, and the network device 300 may also include other components for implementing device functions, which will not be repeated here.
  • a computer-readable storage medium such as a memory including instructions, which can be executed by a processor in a terminal to complete the service level configuration method in the following embodiments.
  • the computer-readable storage medium may be read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), Magnetic tapes, floppy disks and optical data storage devices, etc.
  • the forwarding node can report the service level information of the forwarding node to the control node, and then the control node determines the service level information of each forwarding node on the transmission path of the data stream and the transmission parameters of the data stream to determine the
  • the target service level of the data stream is forwarded, and each forwarding node can perform service level configuration based on the target service level of each forwarding node determined by the control node, so that subsequent forwarding nodes can use the configured service level to forward the data stream.
  • the process of the method may include the following steps 401-410.
  • the target node sends transmission parameters of the data stream to the control node.
  • the target node may be any one of a target control node, a sending node of the data flow, a forwarding node of the data flow, and a receiving node of the data flow.
  • the data flow may include at least one service flow, each service flow is a data flow under a service, the transmission parameter of a service flow is used to indicate the transmission characteristics and service requirements of the service flow, and the transmission parameter of a service flow may include the At least one of the transmission delay of the service flow, the transmission bandwidth of the service flow, and the burst volume of the service flow.
  • the transmission delay of the service flow may be a delay requirement of the service flow, that is, the transmission delay of the service flow on the transmission path of the service requirement, and the transmission delay may also be regarded as a delay requirement of the service flow.
  • the transmission bandwidth of the service flow may be a transmission rate requirement of the service flow, that is, the transmission rate of the service flow on the transmission path of the service requirement, and the transmission rate is also a transmission characteristic of the service flow.
  • the burst volume of the service flow is the data volume of the burst data when the service flow is transmitted on the transmission path.
  • the burst volume of the service flow can also be regarded as the burst demand of the service flow, that is, it is a part of the service flow.
  • Transmission characteristics. Delay requirements, transmission rate requirements, and burst requirements can all be regarded as business requirements.
  • the transmission parameter of the data stream may include at least one of the transmission delay of the data stream, the transmission bandwidth of the data stream, and the burst volume of the data stream.
  • the transmission delay of the data stream is the smallest transmission delay among the transmission delays of each service stream in the data stream
  • the transmission bandwidth of the data stream is the sum of the transmission bandwidths of each service stream in the data stream.
  • the burst volume of the stream is the sum of the burst volume of each service stream in the data stream.
  • the first forwarding node obtains a transmission parameter of at least one service level.
  • the first forwarding node is any forwarding node on the transmission path of the data stream.
  • the first forwarding node has at least one forwarding queue, and each forwarding queue corresponds to one service level, and one service service level can also correspond to multiple forwarding For example, the service level of forwarding queues 1-3 is A, and the service level of forwarding queue 4 is B.
  • the packets in the data stream can be queued on the forwarding queues with the same service level.
  • the first forwarding node can use the transmission parameters of the service level to transmit the packets in the forwarding queue corresponding to the service level .
  • the transmission parameter of a service level is used to indicate the maximum transmission parameter that can be achieved when the service level is used to forward a data stream.
  • the transmission parameters of a service level may include at least one of the following: forwarding delay, service burst volume, and service bandwidth corresponding to the service level, where the service burst volume is allowed when the service level is used to forward at least one data stream.
  • the maximum burst volume, the service bandwidth is the maximum bandwidth allowed when at least one data stream is forwarded using the service level.
  • the first forwarding node may obtain the transmission parameters of the service level based on the forwarding capability of the first forwarding node to forward data streams, where the port of the first forwarding node The bandwidth may be used to indicate the forwarding capability of the first forwarding node to forward the data stream.
  • the process for the first forwarding node to obtain a transmission parameter of a service level may include the following steps 4021-4024.
  • Step 4021 for any service level of the at least one service level, the first forwarding node obtains the queuing delay of the service level, where the queuing delay is that the packets in the data flow are on the forwarding queue corresponding to the service level The maximum length of time to wait.
  • the first forwarding node can obtain the queuing delay of the service level based on the user's operation.
  • the user can add at least one queuing time of the service level to the delay configuration interface of the first forwarding node. After the addition is complete, the user can click the OK button in the delay configuration interface. If the first forwarding node detects that the user clicks the OK button, it can trigger the first forwarding node to get at least one service added by the user The queuing delay of the level, so that the first forwarding node can obtain the queuing delay of the service level from the queuing delay of at least one service level.
  • the port has 4 service levels, which are respectively denoted as service levels A, B, C, and D, and the queuing delay allocated by the user to these 4 service levels is 0.5 respectively.
  • ms, 1ms, 2ms and 4ms the user will add the queuing delay allocated for each service level to the delay configuration interface so that the first forwarding node can obtain the queuing delay of the service level AD.
  • Step 4022 the first forwarding node determines the forwarding delay corresponding to the service level based on the queuing delay of the service level.
  • the forwarding delay of the service level is also the maximum length of time that the service level is used to transmit the data stream.
  • the first forwarding node may determine the queuing delay of the service level as the forwarding delay corresponding to the service level, or the first forwarding node may also determine the queuing delay of the service level with the inherent queuing delay of the first forwarding node. The sum of the delays is determined as the forwarding delay corresponding to the service level.
  • the inherent delay of the first forwarding node may be the delay caused by the hardware structure of the first forwarding node, and the inherent delay of the first forwarding node may also be regarded as the minimum delay of the data flow at the first forwarding node That is, after the first forwarding node receives the data flow, the data flow does not need to be queued at the first forwarding node, but is directly forwarded by the first forwarding node, so that the forwarding delay of the data flow at the first forwarding node is The inherent delay of the first forwarding node. In other words, the inherent delay of the first forwarding node is that when the data flow is not queued, for any packet in the data flow, the first forwarding node is from receiving the packet to outputting the packet. duration.
  • the inherent delay of the first forwarding node may include the port delay of the first forwarding node and the task delay of the first forwarding node, where the port delay is that the first forwarding node transfers packets in the data stream.
  • the duration of the transmission to the port of the first forwarding node, where the task delay is the duration of the first forwarding node assigning a forwarding task to the packet in the data stream.
  • Step 4023 The first forwarding node determines the maximum burst volume corresponding to the service level according to the forwarding delay corresponding to the service level, the port bandwidth of the first forwarding node, and the forwarding data volume corresponding to the service level, and the forwarding data volume is The amount of data that the first forwarding node forwards in a single time from the forwarding queue corresponding to the service level.
  • the first forwarding node may first obtain the forwarding data volume corresponding to the service level.
  • the forwarding data volume corresponding to the service level is also when the first forwarding node polls the forwarding queue corresponding to the service level.
  • the data forwarding amount of the first forwarding node in each polling process is less than or equal to the total forwarding amount of the port. For example, if the total forwarding volume is 10000 bits, and the forwarding data volume corresponding to service level AD is 10000 bits, the first forwarding node can poll the forwarding queue A corresponding to service level A first, and transfer the 10000-bit data in the forwarding queue A.
  • the forwarding queue B corresponding to service level B is polled, and the 10000bit data in forwarding queue B is output, and so on, the first forwarding node continues to poll the forwarding queue corresponding to service level C.
  • a port of the first forwarding node has service levels E and F, and the corresponding forwarding volume is 5000 bits, and the total forwarding volume of the port is 10000 bits.
  • the first forwarding node serves The forwarding queue E corresponding to class E forwards 5000 bits of data
  • the forwarding queue F corresponding to service class F forwards 5000 bits of data.
  • the amount of forwarded data corresponding to at least one service level may be the same or different.
  • the amount of forwarded data corresponding to service levels A-D may be 8000bit, 4000bit, 2000bit, and 1000bit, respectively.
  • the embodiment of the present application does not specifically limit the amount of forwarded data corresponding to the service level.
  • the first forwarding node may obtain the amount of forwarded data corresponding to the service level based on the user's operation.
  • the user may add at least one service level corresponding to the data volume configuration interface of the first forwarding node.
  • the amount of forwarded data, one service level corresponds to one forwarded data volume; when the addition is complete, the user can click the OK button in the data volume configuration interface, if the first forwarding node detects the user's click on the OK button, it can trigger
  • the first forwarding node obtains the forwarded data volume corresponding to at least one service level added by the user, so that the first forwarding node can obtain the forwarded data volume corresponding to the service level from the forwarded data volume corresponding to the at least one service level.
  • the first forwarding node may use the forwarding delay corresponding to the i-th service level, the port bandwidth of the first forwarding node, and the amount of forwarded data corresponding to at least one service level as the following
  • the input parameters of formulas (1)-(3) are calculated by formulas (1)-(3) through the input parameters to obtain the maximum burst bandwidth of the i-th service level, where 1 ⁇ i, ⁇ i is used for Indicates the service curve of the i-th service level changing with time t.
  • the service curve is used to describe the minimum service capacity of the first forwarding node at any time interval.
  • the first forwarding node can apply the formula ( 1) Converted to the form of formula (2), so that R can be obtained from the converted formula (1), where R can use at least one service level of forwarding data volume, port bandwidth, L max, L, and L i It means that the first forwarding node then substitutes R, the queuing delay D and T of the i-th service level into formula (3), so that the service burst b corresponding to the i-th service
  • Step 4024 The first forwarding node determines the service bandwidth corresponding to the service level according to the port bandwidth of the first forwarding node and the forwarding data volume corresponding to the service level.
  • the first forwarding node can input the port bandwidth of the first forwarding node and the amount of forwarded data corresponding to at least one service level into formula (4), and calculate the i-th service level by formula (4) Service bandwidth r of the service level.
  • the first forwarding node can obtain the transmission parameters of any service level through the process shown in steps 4021-4024.
  • the forwarding delay, service burst volume, and service bandwidth corresponding to the service level affect each other.
  • FIG. 5 an embodiment of the present application provides a service level determination method. Schematic diagram of transmission parameters, the service curve in Figure 5 is also ⁇ i , the arrival curve is used to describe any time interval, the upper bound of the amount of data arriving at the first forwarding node, D is the maximum horizontal distance between the arrival curve and the service curve , That is, the forwarding delay corresponding to the i-th service level.
  • the first forwarding node can dynamically adjust the service curve and arrival curve to ensure that the changed D exists. Therefore, for any service level, the first forwarding node can first determine the transmission corresponding to the service level The specific values of any two items of delay, service burst and service bandwidth are determined based on the specific values of any two items and the above formulas (1)-(4) to determine the specific value of the remaining one item. Therefore, The transmission parameters of each service level of the first forwarding node may have multiple situations, which are not unique.
  • the first forwarding node may also allocate a buffer space for the forwarding queue corresponding to the service level, and the buffer space is used to provide packets for the forwarding queue.
  • the first forwarding node can buffer the packets in the data flow in the buffer space of the forwarding queue.
  • the first forwarding node can buffer the packets in the data flow in the buffer space of the forwarding queue.
  • the first forwarding node The packets in the buffer space of the forwarding queue can be transferred to the forwarding queue to be queued in the forwarding queue, so that a large amount of packet loss in the first forwarding node of the packets in the data flow can be avoided.
  • the first forwarding node sends the service level information of the first forwarding node to the control node, where the service level information of the first forwarding node includes at least one service level transmission parameter of the first forwarding node.
  • the transmission parameter of a service level may also include a target identifier.
  • the target identifier is the first identifier
  • the first identifier is used to indicate that no packet loss will occur when the data stream is forwarded using the service level; otherwise, the target identifier is a second identifier, and the second identifier is used to indicate that packet loss will occur when the data stream is forwarded using the service level.
  • the embodiment of the present application does not specifically limit the manner in which the first identifier and the second identifier are expressed.
  • the transmission parameter of a service level may also include a jitter threshold, where the jitter threshold is the upper bound of the jitter of the actual forwarding delay when the data stream is forwarded using the service level, and the jitter threshold is the forwarding delay corresponding to the service level and the first The difference in the inherent delay of the forwarding node.
  • the transmission parameters of a service level may also include the inherent delay of the forwarding node.
  • the transmission parameter of a service level may also include a confidence probability corresponding to the service level, where the confidence probability is the probability that the actual forwarding delay when the data stream is forwarded using the service level is less than or equal to the forwarding delay corresponding to the service level.
  • the confidence probability may be 100%, of course, it may also be other values. The embodiment of the present application does not specifically limit the value of the confidence probability corresponding to the service level.
  • the first forwarding node may generate the service level information based on the target message format under the service level protocol, where the target message format may be tag-length-value (tag-length-value, TLV), and
  • the identification field in the target message format is used to store the service level identification of each service level of each port of the first forwarding node.
  • the identification field can store the first forwarding node's The node identifier, the port identifier of each port, and the service level identifier of the service level of each port.
  • the forwarding delay field in the target message format is used to store the forwarding delay corresponding to each service level
  • the burst field in the target message format is used to store the service burst volume of each service level.
  • the target format The bandwidth field in is used to store the service bandwidth of each service class.
  • the target format may also include a maximum burst field, which is used to store the maximum burst of one data stream of each service level service.
  • the target format may also include a target identification field, which is used to store the target identification corresponding to each service level.
  • the target format may also include a jitter field, which is used to store the jitter threshold corresponding to each service level.
  • the target message format may also include a minimum delay field, which is used to store the inherent delay of the first forwarding node.
  • the target message format may also include a confidence probability field, which is used to store the confidence probability corresponding to each service level.
  • FIG. 6 shows a schematic diagram of a target message format provided by an embodiment of the present application.
  • the embodiment of the present application may also perform steps 402 and 403 first, and then perform step 401.
  • the embodiment of the present application does not specifically limit the execution order of steps 401-403.
  • the control node obtains the transmission parameter of the data stream and the service level information of the first forwarding node, where the service level information of the first forwarding node includes at least one service level transmission parameter of the first forwarding node.
  • the transmission path of the data stream may include only the first forwarding node, or may include a second forwarding node other than the first forwarding node.
  • the control node may obtain the transmission parameters of the data stream by receiving the transmission parameters of the data stream sent by the target node.
  • the control node may obtain the service level information of the first forwarding node by receiving the service level information sent by the first forwarding node.
  • the control node After the control node receives the service level information of a forwarding node, it stores the service level information of the forwarding node.
  • the control node determines based on the transmission path of the data stream. For the first forwarding node on the transmission path, the control node may filter out the service level information of the first forwarding node from the stored service level information of multiple forwarding nodes.
  • the control node determines the target service level of the first forwarding node for forwarding the data flow from at least one service level of the first forwarding node according to the transmission parameters of the data flow and the service level information of the first forwarding node , The transmission parameter of the target service level of the first forwarding node and the transmission parameter of the data stream satisfy the first target condition.
  • the first target condition may include at least one of the following: the forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay of the data stream (condition 1); The target service level of a forwarding node and the sum of the bursts of data streams currently served is less than or equal to the service burst corresponding to the target service level of the first forwarding node (condition 2); the transmission bandwidth is the same as that of the first forwarding node The sum of the transmission bandwidths of the data streams currently served by the target service level of is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node (condition 3).
  • condition 1 may also be: the sum of the forwarding delay corresponding to the target service level of the first forwarding node and the target delay is less than or equal to the transmission delay, and the target delay is the data flow
  • the inherent delay of the transmission path in other words, the target delay is the time during which the data stream is transmitted on the forwarding path, except for the time that the forwarding node forwards the data stream.
  • the inherent delay of the transmission path may include the transmission delay between nodes on the transmission path, and the transmission delay between nodes on the transmission path may include the transmission delay between the sending node and the first forwarding node on the transmission path, The transmission delay between the forwarding nodes and the transmission delay between the last forwarding node and the receiving node on the transmission path.
  • the transmission delay between the nodes can be optical fiber delay or other data transmission delays.
  • the inherent delay of the transmission path may also include the inherent delay of the forwarding node on the transmission path, that is, the inherent delay of the transmission path may also include the port delay and task delay of the forwarding node on the transmission path.
  • the inherent delay of the transmission path may be the sum of the transmission delay between nodes on the transmission path and the inherent delay of the forwarding node on the transmission path.
  • the first target condition is condition 1
  • the transmission parameters include the transmission delay and burst volume of the data stream
  • the first target condition includes conditions 1-2. If the transmission parameters of the data stream include the transmission delay, burst volume, and bandwidth of the data stream, the first target condition A target condition includes conditions 1-3.
  • the control node may use the first target condition as the maximum constraint, and based on the transmission parameters of the data stream and the transmission parameters of at least one service level of the first forwarding node, filter out the at least one service level of the first forwarding node.
  • the target service level of the first forwarding node may be used as the maximum constraint, and based on the transmission parameters of the data stream and the transmission parameters of at least one service level of the first forwarding node, filter out the at least one service level of the first forwarding node.
  • the transmission path includes only the first forwarding node, the first forwarding node includes service levels A and B, and the first target condition includes conditions 1-3, if the forwarding delay corresponding to service level A is less than or equal to this The transmission delay of the data stream, the sum of the burst volume of the data stream currently served by service class A and the burst volume of the data stream is less than or equal to the service burst volume corresponding to service class A, and the transmission bandwidth of the data stream is equal to The sum of the transmission bandwidth of the data streams currently served by the service level A is less than or equal to the service bandwidth corresponding to the service level A, the control node can use the service level A as the target service level, otherwise, the control node can judge the service level B If the transmission parameters of the service level B and the transmission parameters of the data stream meet the first target condition, the service level B is taken as the target service level.
  • the transmission parameters of the target service level of the multiple forwarding nodes and the transmission parameters of the data stream can also satisfy the second target condition.
  • control The node can also obtain the target service level of the second forwarding node on the transmission path through the process shown in steps 1-2 below.
  • Step 1 The control node obtains service level information of a second forwarding node, where the second forwarding node is a node other than the first forwarding node on the transmission path of the data stream.
  • the service level information of any forwarding node may include the transmission parameters of at least one service level of the forwarding node. Therefore, the service level information of the second forwarding node may include the transmission of at least one service level of the second forwarding node. parameter.
  • the process for the control node to obtain the service level information of the second forwarding node is the same as the process for the control node to obtain the service level information of the first rotating node in step 404. Here, this step 1 is not described in detail in the embodiment of the present application.
  • Step 2 According to the transmission parameters of the data stream, the service level information of the first forwarding node, and the service level information of the second forwarding node, the control node determines the second forwarding node from at least one service level of the second forwarding node.
  • the forwarding node is used to forward the target service level of the data stream, the transmission parameters of the target service level of the first forwarding node, the transmission parameters of the target service level of the second forwarding node, and the transmission parameters of the data stream satisfy the second target condition .
  • the second target condition may include at least one of the following: the sum of the forwarding delay corresponding to the target service level of the first forwarding node and the forwarding delay corresponding to the target service level of the second forwarding node is less than or equal to the transmission time Extension (condition a); for any one of the first forwarding node and the second forwarding node, the sum of the burst volume of the data stream and the burst volume of the data stream currently served by the node’s target service level is less than Or equal to the service burst corresponding to the target service level of the node (condition b); the sum of the transmission bandwidth of the data stream and the transmission bandwidth of the current service data stream of the target service level of the node is less than or equal to the target service of the node The service bandwidth corresponding to the level (condition c).
  • condition a may also be: the sum of the forwarding delay corresponding to the target service level of the first forwarding node, the forwarding delay corresponding to the target service level of the second forwarding node, and the target delay is less than Or equal to the transmission delay of the data stream, and the target delay is the inherent delay of the transmission path.
  • condition a is that the sum of the forwarding delays corresponding to the target service levels of the multiple forwarding nodes is less than or equal to the transmission delay of the data stream.
  • Condition a may also be that the sum of the forwarding delay corresponding to the target service level of the multiple forwarding nodes and the target delay is less than or equal to the transmission delay of the data stream.
  • the control node may use the second target condition as the maximum constraint condition, and perform the solution based on the transmission parameters of the data stream, the transmission parameters of at least one service level of the first forwarding node, and the transmission parameters of at least one service level of the second forwarding node , Obtain the target service level of the first forwarding node and the target service level of the second forwarding node.
  • the control node first randomly screens out at least one set of service levels, where a set of service levels includes a service level of each forwarding node on the transmission path, that is, includes a service level of the first forwarding node and the second forwarding node A level of service.
  • each service level in the group of service levels is determined as the value of each forwarding node The target service level, otherwise, the group of service levels cannot be used to serve the data stream, and the next group of service levels are judged until the transmission parameters of the service level in the group of service levels and the transmission parameters of the data stream meet the second target Conditions so far.
  • the control node can sum the forwarding delays corresponding to each service level in the group of service levels to obtain the target sum value; if the condition a is: The sum of the forwarding delays corresponding to the target service levels of multiple forwarding nodes is less than or equal to the transmission delay of the data stream, then the control node can compare the target sum value with the transmission delay of the data volume, and when the target sum value is Less than or equal to the transmission time delay of the data stream, the group of service levels meets the condition a, otherwise the group of service levels does not meet the condition a; if the condition a is: the forwarding delay corresponding to the target service level of multiple forwarding nodes corresponds to the If the sum of the target delay is less than or equal to the transmission delay of the data stream, the control node compares the sum of the target sum and the target delay with the transmission delay of the data stream. The sum of the target delays is less than or equal to the transmission delay of the data stream, then the group
  • the control node does not adopt the group of service levels, and judges the next group of service levels. If the group of service levels meets the condition a, for any service level in the group of service levels a, the control node can obtain the burst volume of the data stream currently served by the service level, and then calculate the current service level of the service level The sum of the burst volume of the data stream and the burst volume of the data stream (the sum is recorded as the target burst volume of the service level), the target burst volume of the control node for the service level and the service corresponding to the service level The burst volume is compared.
  • the target burst volume of the service level is less than or equal to the service burst volume corresponding to the service level, the service burst volume of the service level and the burst volume of the data stream meet the condition b, if The burst volume of each service level in the group of service levels and the burst volume of the data stream both satisfy the condition b, then the group of service levels meets the condition b, otherwise the group of service levels does not meet the condition b.
  • the control node does not adopt the group of service levels, and judges the next group of service levels. If the group of service levels meets condition b, the control node can obtain the transmission bandwidth of the data stream currently served by the service level, and then calculate the transmission bandwidth of the data stream currently served by the service level and the transmission bandwidth of the data stream.
  • the control node can then compare the service bandwidth corresponding to the service level with the target transmission bandwidth of the service level, if the target transmission bandwidth of the service level is less than or Equal to the service bandwidth corresponding to the service level, then the service bandwidth of the service level and the transmission bandwidth of the data stream meet the condition c, if the transmission bandwidth of each service level in the group of service levels and the transmission bandwidth of the data stream both satisfy Condition c, then the service level of the group meets the condition c, otherwise the service level of the group does not meet the condition c.
  • the control node can separate each service level in the group of service levels. As the target service level of each forwarding node on the transmission path.
  • FIG. 7 shows a schematic diagram of determining a target service level provided by an embodiment of the application.
  • the transmission delay of the data stream is 5ms
  • the burst volume is 100Kbit
  • the transmission bandwidth is 20Mbps.
  • the transmission path of the data stream a is transmission path 1 in Fig. 7, and transmission path 1 includes forwarding nodes R1, R2, and R4.
  • the service level information of the forwarding node R1 is Table 1 in Figure 7, the service level information of the forwarding nodes R2 and R4 are both Table 2 in Figure 7, the forwarding node R1 has a service level AC, and the forwarding delay corresponding to the service level AC Respectively 2ms, 4ms, and 10ms. Both forwarding nodes R2 and R4 have service level AD.
  • the forwarding delays corresponding to service level AD are 0.5ms, 1ms, 2ms, and 4ms respectively.
  • the control node can first forward the service level of node R1 to A ,
  • the service level B of the forwarding node R2 and the service level B of the forwarding node R4 are regarded as a group of service levels.
  • the forwarding node of the transmission path 1 samples a group of transmission data streams a of the service level, the actual transmission on the transmission path 1
  • the delay can be 2+1+1+0.3 ⁇ 5ms, where 0.3ms is the inherent delay of the transmission path 1.
  • this group of service levels meets the condition a, and the control node will then serve the forwarding node R1
  • the service burst volume corresponding to level A is judged at 657 bits. If the sum of the burst volume of the data flow currently served by the forwarding node R1's service level A and the burst volume of the data stream a is less than or equal to 657 bits, the service of the forwarding node R1 The burst volume of service corresponding to level A and the burst volume of data stream a meet condition b, then the control node then judges the service bandwidth of 125kbps corresponding to service level A of forwarding node R1, if the transmission bandwidth of data stream a is equal to The sum of the transmission bandwidth of the data stream currently served by the forwarding node R1 of service level A is less than or equal to 125kbps, then the service bandwidth of the forwarding node R1’s service level A and the transmission bandwidth of the data stream a meet the condition c; if the forwarding node R1
  • the control node When any service level in the group of service levels meets the second target condition, the control node will forward the service level A of the forwarding node R1 as the target service level of the forwarding node R1, and forward the service of the forwarding node R2.
  • the level B is the target service level of the forwarding node R2
  • the service level B of the forwarding node R4 is taken as the target service level of the forwarding node R4.
  • the target service level of the first forwarding node and the transmission parameters of the data stream can also only meet condition 1 and condition 3, but not condition 2, and the subsequent rectification can be used to make the data stream smooth
  • the actual burst volume and the service burst volume of the target server meet condition 2.
  • a rectification request is sent to the node to be rectified, and the rectification request is used to indicate The data stream is rectified, and the burst volume of the rectified data stream is less than or equal to the service burst volume corresponding to the target service level of the first forwarding node.
  • the node to be rectified is the forwarding node before the first forwarding node on the transmission path of the data stream, the target terminal, or the first forwarding node of the transmission path.
  • the target terminal is used to send the data stream, and the target terminal is also the data The sending node of the stream.
  • the node to be rectified may first rectify the data stream before outputting the data stream, so that the burst amount of the rectified data stream is less than or equal to the first forwarding
  • the target service level of the node the node to be rectified then outputs the rectified data stream.
  • the service bursts corresponding to the target service levels of multiple forwarding nodes on the transmission path are all less than the bursts of the data flow, then the first forwarding node is the target service level of the multiple forwarding nodes. The corresponding forwarding node with the smallest service burst.
  • condition a may also be: the forwarding delay corresponding to the target service level of the first forwarding node and the target of the second forwarding node
  • the sum of the corresponding forwarding delays of the service level is less than or equal to the first delay, where the first delay is the difference between the transmission delay and the rectification delay, and the rectification delay can be expressed as (pq)/f, where , P is the service burst volume corresponding to the target service level of the first forwarding node, q is the burst volume of the data stream, and f is the transmission bandwidth of the data stream.
  • the control node sends a service level configuration request to the first forwarding node, where the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream.
  • the control node may send a service level configuration request to any forwarding node, and for sending to any forwarding node
  • the service level configuration request may include the service level identification of the target service level of the forwarding node and the flow identification of the data flow, and the flow identification of the data flow is used to uniquely indicate the data flow.
  • the service level configuration request further includes the service burst volume corresponding to the target service level of the first forwarding node.
  • the control node may generate the service level configuration request based on the first message format under the service level protocol, and the first message format may be TLV.
  • the service level selection field in the first message format is used to store the service level identifier of the target service level of the first forwarding node and the flow identifier of the data flow, and the burst field in the target message format is used to store the first
  • the service burst amount corresponding to the target service level of the forwarding node is used to instruct the node to be rectified to rectify the data stream, so that the burst amount of the rectified data stream does not exceed the service burst amount of the target level of the first forwarding node.
  • FIG. 8 shows a schematic diagram of a first message format provided by an embodiment of the present application.
  • the first forwarding node receives the service level configuration request.
  • the first forwarding node performs service level configuration according to the service level configuration request, so as to use the target service level of the first forwarding node to transmit the data stream.
  • the first forwarding node may associate and store the service level identifier of the target service level in the service configuration request and the flow identifier of the data flow, so as to realize the service level configuration.
  • the The first forwarding node can determine the target service level corresponding to the data stream by searching for the service level identifier associated with the stream identifier of the data stream, so that the first forwarding node can transmit the data stream based on the target service level corresponding to the data stream .
  • the associated storage may be to store the service level identifier of the target service level of the first forwarding node and the flow identifier of the data flow in the service level configuration table for subsequent search.
  • the first forwarding node may also use the service level identifier of the target service level of the first forwarding node, the flow identifier of the data flow, and the first forwarding node for forwarding the data flow
  • the port identifier of the port is stored in the service level configuration table. For example, in the service level configuration table shown in Table 3, when data stream 1 is received, the first forwarding node can use port 1 service level A to forward data stream 1 at port 1 by looking up table 3. When data stream 1 is received In the case of flow 2, by looking up table 3, the first forwarding node can forward data flow 1 at port 2 using service class A of port 2.
  • the first forwarding node sends a first configuration success response to the control node, where the first configuration success response is used to indicate that the service level configuration performed on the data stream has been configured successfully.
  • the first configuration success response may carry the flow identifier of the data flow and the node identifier of the first forwarding node.
  • the node identifier of the first forwarding node is used to uniquely indicate the first forwarding node, and the node identifier may be the first forwarding node.
  • the network address of the forwarding node, or the node identifier that the first forwarding node has registered with the control node, the embodiment of the present application does not specifically limit the manner in which the node identifier is expressed.
  • the control node sends a second configuration success response to the target node, where the second configuration success response is used to indicate that the service level configuration performed by each forwarding node for the data stream has been successfully configured.
  • the control node When there is only one first forwarding node on the transmission path of the data stream, if the control node receives the first configuration success response sent by the first forwarding node, it means that the forwarding node on the transmission path has completed the service for the data stream. If the level is configured, the control node can execute this step 410. When there are multiple forwarding nodes on the transmission path of the data stream, the control node sends a service level configuration request to multiple forwarding nodes so that multiple forwarding nodes can perform services according to the target service level carried in the received service level configuration request Level configuration, when any forwarding node is successfully configured, it sends a first configuration success response to the control node.
  • control node receives the first configuration success response sent by each forwarding node on the data path, it indicates the forwarding on the transmission path If the node completes the service level configuration for the data stream, the control node can execute this step 410. It should be noted that the service level configuration request sent to any forwarding node is used to instruct to use the target service level of any forwarding node to transmit the data stream, and the target service level of each forwarding node can be the same or different , The target service level of each forwarding node is determined by the second target condition.
  • the second configuration success response may include the flow identifier of the data flow and the node identifier of the control node.
  • the node identifier of the control node is used to uniquely indicate the control node, which may be the network address of the control node.
  • the node identifier of the control node is not specifically limited.
  • the second configuration success response may also include the service burst of the first forwarding node To instruct the target node to rectify the data stream, so that the burst volume of the rectified data stream is less than or equal to the service burst volume of the first forwarding node.
  • the second configuration success response may further include the minimum transmission delay of the data stream input from the sending node to the receiving node, and the minimum transmission delay may be the target delay.
  • FIG. 9 shows a schematic diagram of the minimum delay field of the second message format provided by the embodiment of the present application.
  • the method provided by the embodiment of the application directly determines the target service level of the first forwarding node for forwarding the data flow according to the transmission parameters of the data flow and the service level information of the first forwarding node, and performs the service level on the first forwarding node Configuration, because the transmission parameters of the target service level of the first forwarding node and the transmission parameters of the data stream meet the first target condition, if the first target condition is the delay requirement required by the special service, and the first forwarding node adopts the target service Level transmission data stream, the transmission of the data stream can meet the delay requirements required by special services.
  • the forwarding node on the transmission path uses the target service level to transmit the data stream, the data stream can be guaranteed
  • the actual transmission delay can meet the transmission delay required by the business.
  • the forwarding on the transmission path If the node uses the target service level to transmit the data stream, it can be ensured that even if the data stream is bursty, it can still complete the data stream transmission while ensuring the business requirements.
  • the forwarding node uses the target service level to transmit the data stream, which can ensure that the actual transmission bandwidth of the data stream can meet the transmission bandwidth required by the service.
  • the control node determines the target service level of each forwarding node on the transmission path of the data stream, so that the purpose of dynamically configuring the service level can be achieved.
  • FIG. 10 is a schematic structural diagram of a service level device provided by an embodiment of the present application, and the device includes:
  • the obtaining module 1001 is configured to obtain transmission parameters of a data stream and service level information of a first forwarding node, where the service level information of the first forwarding node includes at least one service level transmission parameter of the first forwarding node;
  • the determining module 1002 is configured to determine that the first forwarding node is used for forwarding from at least one service level of the first forwarding node according to the transmission parameters of the data stream and the service level information of the first forwarding node
  • the target service level of the data stream, and the transmission parameters of the target service level of the first forwarding node and the transmission parameters of the data stream satisfy a first target condition
  • the sending module 1003 is configured to send a service level configuration request to the first forwarding node, where the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream.
  • the transmission parameters of the data stream include the transmission delay, burst volume, and transmission bandwidth of the data stream;
  • the transmission parameters of a service level include the forwarding delay, service burst volume, and service bandwidth corresponding to the service level, and the service burst volume is the maximum burst volume allowed when the service level is used to forward at least one data stream ,
  • the service bandwidth is the maximum bandwidth allowed when using the service level to forward at least one data stream.
  • the first target condition includes at least one of the following:
  • the forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay
  • the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service burst amount corresponding to the target service level of the first forwarding node;
  • the sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node.
  • the first target condition further includes:
  • the sum of the forwarding delay and the target delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay, and the target delay is the inherent delay of the transmission path of the data stream.
  • the obtaining module is further configured to obtain service level information of a second forwarding node, where the second forwarding node is a node other than the first forwarding node on the transmission path of the data stream;
  • the determining module is further configured to obtain information from at least one service of the second forwarding node according to the transmission parameters of the data stream, the service level information of the first forwarding node, and the service level information of the second forwarding node. In the level, determining the target service level of the second forwarding node for forwarding the data stream, the transmission parameters of the target service level of the first forwarding node, the transmission parameters of the target service level of the second forwarding node, and The transmission parameter of the data stream satisfies the second target condition.
  • the second target condition includes at least one of the following:
  • the sum of the forwarding delay corresponding to the target service level of the first forwarding node and the forwarding delay corresponding to the target service level of the second forwarding node is less than or equal to the transmission delay
  • the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the node is less than or equal to the node The service burst corresponding to the target service level;
  • the sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the node is less than or equal to the service bandwidth corresponding to the target service level of the node.
  • the second target condition further includes:
  • the sum of the forwarding delay corresponding to the target service level of the first forwarding node, the forwarding delay corresponding to the target service level of the second forwarding node, and the target delay is less than or equal to the transmission delay, and the target time
  • the delay is the inherent delay of the transmission path.
  • the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task delay
  • the port delay is the time delay of the forwarding node.
  • the length of time for the message in the data stream to be sent to the port of the forwarding node, and the task delay is the length of time for the forwarding node to allocate a forwarding task for the message in the data stream.
  • the sending module is further used for:
  • a rectification request is sent to the node to be rectified, where the rectification request is used to instruct to rectify the data stream.
  • the burst volume of the data stream is less than or equal to the service burst volume corresponding to the target service level of the first forwarding node.
  • the node to be rectified is a forwarding node before the first forwarding node on the transmission path of the data stream, a target terminal, or the first forwarding node of the transmission path, and the target terminal is used to transmit the data stream. ⁇ data flow.
  • the data stream includes at least one service stream.
  • the device directly determines the target service level of the first forwarding node for forwarding the data flow according to the transmission parameters of the data stream and the service level information of the first forwarding node, and configures the service level of the first forwarding node.
  • the transmission parameters of the target service level of the node and the transmission parameters of the data stream meet the first target condition. If the first target condition is the delay requirement required by the special service, and the first forwarding node uses the target service level to transmit the data stream, then The transmission of data streams can meet the delay requirements required by special services.
  • the forwarding node on the transmission path uses the target service level to transmit the data stream, the data stream can be guaranteed
  • the actual transmission delay can meet the transmission delay required by the business.
  • the forwarding on the transmission path If the node uses the target service level to transmit the data stream, it can be ensured that even if the data stream is bursty, it can still complete the data stream transmission while ensuring the business requirements.
  • the forwarding node uses the target service level to transmit the data stream, which can ensure that the actual transmission bandwidth of the data stream can meet the transmission bandwidth required by the service.
  • the control node determines the target service level of each forwarding node on the transmission path of the data stream, so that the purpose of dynamically configuring the service level can be achieved.
  • FIG. 11 is a schematic structural diagram of a service level configuration device provided by an embodiment of the present application.
  • the device is set at a first forwarding node, and the device includes:
  • the receiving module 1101 is configured to receive a service level configuration request, where the service level configuration request is used to instruct to use the target service level of the device to transmit the data stream, and the transmission parameters of the target service level of the device are the same as the data stream.
  • the transmission parameters meet the first target condition
  • the configuration module 1102 is configured to perform service level configuration according to the service level configuration request, so as to use the target service level of the device to transmit the data stream.
  • the transmission parameters of the data stream include the transmission delay, burst volume, and transmission bandwidth of the data stream;
  • the target service level of the device is any one of at least one service level of the device, and the transmission parameters of one service level include the forwarding delay, service burst volume, and service bandwidth corresponding to the service level.
  • the sending volume is the maximum burst volume allowed when the service level is used to forward at least one data stream
  • the service bandwidth is the maximum bandwidth allowed when the service level is used to forward at least one data stream.
  • the first target condition includes at least one of the following:
  • the forwarding delay corresponding to the target service level of the device is less than or equal to the transmission delay
  • the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the device is less than or equal to the service burst amount corresponding to the target service level of the device;
  • the sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the device is less than or equal to the service bandwidth corresponding to the target service level of the device.
  • the first target condition further includes:
  • the sum of the forwarding delay and the target delay corresponding to the target service level of the device is less than or equal to the transmission delay, and the target delay is the inherent delay on the transmission path.
  • the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task delay of the forwarding node, and the port delay is The duration for the forwarding node to send the packet in the data stream to the port of the forwarding node, and the task delay is the duration for the forwarding node to allocate a forwarding task for the packet in the data stream.
  • the device further includes:
  • An obtaining module configured to obtain the transmission parameter of the at least one service level
  • the sending module is configured to send service level information of the device to the control node, where the service level information includes transmission parameters of at least one service level of the device.
  • the acquisition module includes:
  • the obtaining unit is configured to obtain, for any service level of the at least one service level, the queuing delay of the service level, where the queuing delay is the forwarding queue corresponding to the service level of the packet in the data flow The maximum length of time to wait;
  • a determining unit configured to determine the forwarding delay corresponding to the service level based on the queuing delay of the service level
  • the determining unit is further configured to determine the maximum burst volume corresponding to the service level according to the forwarding delay corresponding to the service level, the port bandwidth of the device, and the forwarding data volume corresponding to the service level, and The amount of forwarded data is the amount of data that is forwarded in a single time from the forwarding queue corresponding to the service level;
  • the determining unit is further configured to determine the service bandwidth corresponding to the service level according to the port bandwidth of the device and the amount of forwarded data corresponding to the service level.
  • the determining unit is used to:
  • the sum of the queuing delay of the service level and the inherent delay of the first forwarding node is determined as the forwarding delay corresponding to the service level.
  • the device further includes:
  • the allocation module is configured to allocate a buffer space for the forwarding queue corresponding to the service level, and the buffer space is used to provide messages for the forwarding queue.
  • the transmission parameter of a service level further includes a target identifier, and when the maximum buffer volume of the buffer space is greater than or equal to the service burst volume corresponding to the service level corresponding to the forwarding queue, the target identifier is the first An identifier, the first identifier is used to indicate that no packet loss occurs when the data stream is forwarded using the service level, otherwise the target identifier is a second identifier, and the second identifier is used to indicate that the service level is used for forwarding Packet loss occurs during data flow.
  • the transmission parameter of a service level further includes a confidence probability corresponding to the service level, where the confidence probability is that the actual forwarding delay when the data stream is forwarded using the service level is less than or equal to the forwarding corresponding to the service level Probability of time delay.
  • the data stream includes at least one service stream.
  • the service level configuration device provided in the above embodiment performs service level configuration
  • only the division of the above-mentioned functional modules is used as an example for illustration.
  • the above-mentioned functions can be allocated to different functional modules according to needs.
  • Complete that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above.
  • the embodiments of the service level configuration method provided by the foregoing embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.

Abstract

The present application relates to the technical field of communication networks, and disclosed are a service level configuration method and device. In the present method, according to transmission parameters of a data stream and service level information of a first forwarding node, a target service level of the first forwarding node for use in forwarding the data stream is directly determined, and a service level of the first forwarding node is configured. Since the transmission parameters of the target service level of the first forwarding node and the transmission parameters of the data stream meet a first target condition, if the first target condition is a delay requirement required by a special service, and the first forwarding node uses the target service level to transmit the data stream, then the transmission of the data stream may meet the delay requirement required by the special service.

Description

服务等级配置方法以及装置Service level configuration method and device
本申请要求于2020年01月21日提交的申请号为202010071882.6、发明名称为“服务等级配置方法以及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with an application number of 202010071882.6 and an invention title of "Service Level Configuration Method and Device" filed on January 21, 2020, the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及通信网络技术领域,特别涉及一种服务等级配置方法、装置、计算设备、网络设备以及计算机可读存储介质。This application relates to the technical field of communication networks, and in particular to a service level configuration method, device, computing device, network device, and computer-readable storage medium.
背景技术Background technique
目前,对于不同的特殊业务可以有不同的业务需求,技术人员可以根据不同的特殊业务的业务需求,为每个特殊业务的数据流分配一个优先级,而技术人员不会为普通业务的数据流分配优先级。当多个数据流在网际互连协议(internet protocol,IP)网络中的转发节点进行传输时,该转发节点可以基于多个数据流的优先级传输多个数据流。某些特定优先级的业务流的传输无法满足特殊业务所要求的时延需求。At present, different special services can have different business requirements. Technical personnel can assign a priority to the data flow of each special business according to the business requirements of different special services, while technical personnel will not assign a priority to the data flow of ordinary business. Assign priority. When multiple data streams are transmitted on a forwarding node in an Internet Protocol (IP) network, the forwarding node may transmit multiple data streams based on the priority of the multiple data streams. The transmission of certain priority service streams cannot meet the delay requirements required by special services.
发明内容Summary of the invention
本申请实施例提供了一种服务等级配置方法以及装置,能够保证数据流的传输可以满足特殊业务所要求的时延需求。该技术方案如下:The embodiments of the present application provide a service level configuration method and device, which can ensure that the transmission of data streams can meet the delay requirements required by special services. The technical scheme is as follows:
第一方面,提供了一种服务等级配置方法,该方法包括:In the first aspect, a service level configuration method is provided, which includes:
可以先获取数据流的传输参数以及第一转发节点的服务等级信息;再根据所述数据流的传输参数以及所述第一转发节点的服务等级信息,从所述第一转发节点的至少一个服务等级中,确定所述第一转发节点用于转发所述数据流的目标服务等级;然后,向所述第一转发节点发送服务等级配置请求;The transmission parameters of the data stream and the service level information of the first forwarding node can be obtained first; and then according to the transmission parameters of the data stream and the service level information of the first forwarding node, from at least one service of the first forwarding node In the level, determine the target service level used by the first forwarding node to forward the data flow; then, send a service level configuration request to the first forwarding node;
其中,所述第一转发节点的服务等级信息包括所述第一转发节点的至少一个服务等级的传输参数,所述第一转发节点的目标服务等级的传输参数与所述数据流的传输参数满足第一目标条件,所述服务等级配置请求用于指示采用所述第一转发节点的目标服务等级对所述数据流进行传输。Wherein, the service level information of the first forwarding node includes transmission parameters of at least one service level of the first forwarding node, and the transmission parameters of the target service level of the first forwarding node meet the requirements of the transmission parameters of the data stream. The first target condition, the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream.
基于上述实现方式,根据数据流的传输参数和第一转发节点的服务等级信息,直接确定第一转发节点用于转发该数据流的目标服务等级,并对第一转发节点进行服务等级配置,由于第一转发节点的目标服务等级的传输参数以及该数据流的传输参数满足第一目标条件,若第一目标条件为特殊业务所要求的时延需求,且第一转发节点采用目标服务等级传输数据流,则数据流的传输可以满足特殊业务所要求的时延需求。Based on the foregoing implementation manner, according to the transmission parameters of the data stream and the service level information of the first forwarding node, the target service level of the first forwarding node for forwarding the data stream is directly determined, and the service level configuration of the first forwarding node is performed. The transmission parameters of the target service level of the first forwarding node and the transmission parameters of the data stream meet the first target condition, if the first target condition is the delay requirement required by the special service, and the first forwarding node uses the target service level to transmit data Stream, the transmission of data stream can meet the delay requirements required by special services.
在一种可能实现方式中,所述数据流的传输参数包括所述数据流的传输时延、突发量以及传输带宽;In a possible implementation manner, the transmission parameters of the data stream include the transmission delay, burst volume, and transmission bandwidth of the data stream;
一个服务等级的传输参数包括所述服务等级对应的转发时延、服务突发量以及服务带宽,所述服务突发量为采用所述服务等级转发至少一个数据流时所容许的最大突发量,所述服务 带宽为采用所述服务等级转发至少一个数据流时所容许的最大带宽。The transmission parameters of a service level include the forwarding delay, service burst volume, and service bandwidth corresponding to the service level, and the service burst volume is the maximum burst volume allowed when the service level is used to forward at least one data stream. , The service bandwidth is the maximum bandwidth allowed when using the service level to forward at least one data stream.
在一种可能实现方式中,所述第一目标条件包括下述至少一项:In a possible implementation manner, the first target condition includes at least one of the following:
所述第一转发节点的目标服务等级对应的转发时延小于或等于所述传输时延;The forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay;
所述突发量与所述第一转发节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述第一转发节点的目标服务等级对应的服务突发量;The sum of the burst amount and the burst amount of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service burst amount corresponding to the target service level of the first forwarding node;
所述传输带宽与所述第一转发节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述第一转发节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node.
在一种可能的实现方式中,所述第一目标条件还包括:In a possible implementation manner, the first target condition further includes:
所述第一转发节点的目标服务等级对应的转发时延与目标时延之和小于或等于所述传输时延,所述目标时延为所述数据流的传输路径的固有时延。The sum of the forwarding delay and the target delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay, and the target delay is the inherent delay of the transmission path of the data stream.
在一种可能实现方式中,所述确定所述第一转发节点用于转发所述数据流的目标服务等级之前,所述方法还包括:In a possible implementation manner, before the determining the target service level of the first forwarding node for forwarding the data flow, the method further includes:
获取第二转发节点的服务等级信息;根据所述数据流的传输参数、所述第一转发节点的服务等级信息以及所述第二转发节点的服务等级信息,从所述第二转发节点的至少一个服务等级中,确定所述第二转发节点用于转发所述数据流的目标服务等级;其中,所述第二转发节点为所述数据流的传输路径上除所述第一转发节点以外的节点,所述第一转发节点的目标服务等级的传输参数、所述第二转发节点的目标服务等级的传输参数以及所述数据流的传输参数满足第二目标条件。Obtain the service level information of the second forwarding node; according to the transmission parameters of the data stream, the service level information of the first forwarding node, and the service level information of the second forwarding node, from at least the second forwarding node In a service level, determine the target service level of the second forwarding node for forwarding the data flow; wherein, the second forwarding node is the data flow transmission path other than the first forwarding node Node, the transmission parameters of the target service level of the first forwarding node, the transmission parameters of the target service level of the second forwarding node, and the transmission parameters of the data stream satisfy a second target condition.
在一种可能实现方式中,所述第二目标条件包括下述至少一项:In a possible implementation manner, the second target condition includes at least one of the following:
所述第一转发节点的目标服务等级对应的转发时延与所述第二转发节点的目标服务等级对应的转发时延之和小于或等于所述传输时延;The sum of the forwarding delay corresponding to the target service level of the first forwarding node and the forwarding delay corresponding to the target service level of the second forwarding node is less than or equal to the transmission delay;
对于所述第一转发节点和所述第二转发节点中的任一节点,所述突发量与所述节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述节点的目标服务等级对应的服务突发量;For any one of the first forwarding node and the second forwarding node, the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the node is less than or equal to the node The service burst corresponding to the target service level;
所述传输带宽与所述节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the node is less than or equal to the service bandwidth corresponding to the target service level of the node.
基于上述可能的实现方式,当传输路径上的转发节点的目标服务等级对应的转发时延之和小于或等于数据流的传输时延时,若传输路径上的转发节点采用目标服务等级传输数据流,则可以保证该数据流的实际的传输时延可以满足业务要求的传输时延。当数据流的突发量与传输路径上的转发节点的目标服务等级当前服务的数据流的突发量之和均小于或等于目标服务等级对应的服务突发量时,若传输路径上的转发节点采用目标服务等级传输数据流,则可以保证该数据流即使出现突发,依然能够在保证业务需求的情况下完成该数据流的传输。当数据流的传输带宽与传输路径上的转发节点的目标服务等级当前服务的数据流的传输带宽之和均小于或等于传输路径上的转发节点的目标服务等级对应的服务带宽,传输路径上的转发节点采用目标服务等级传输数据流,则可以保证该数据流的实际的传输带宽可以满足业务要求的传输带宽。Based on the above possible implementation, when the sum of the forwarding delay corresponding to the target service level of the forwarding node on the transmission path is less than or equal to the transmission time delay of the data stream, if the forwarding node on the transmission path uses the target service level to transmit the data stream , It can be guaranteed that the actual transmission delay of the data stream can meet the transmission delay required by the service. When the sum of the burst volume of the data stream and the target service level of the forwarding node on the transmission path and the current service burst volume of the data stream are less than or equal to the service burst volume corresponding to the target service level, if the forwarding on the transmission path If the node uses the target service level to transmit the data stream, it can be ensured that even if the data stream is bursty, it can still complete the data stream transmission while ensuring the business requirements. When the sum of the transmission bandwidth of the data stream and the target service level of the forwarding node on the transmission path is less than or equal to the service bandwidth corresponding to the target service level of the forwarding node on the transmission path, The forwarding node uses the target service level to transmit the data stream, which can ensure that the actual transmission bandwidth of the data stream can meet the transmission bandwidth required by the service.
在一种可能实现方式中,所述第二目标条件还包括:In a possible implementation manner, the second target condition further includes:
所述第一转发节点的目标服务等级对应的转发时延、所述第二转发节点的目标服务等级对应的转发时延以及目标时延之和小于或等于所述传输时延,所述目标时延为所述传输路径 的固有时延。The sum of the forwarding delay corresponding to the target service level of the first forwarding node, the forwarding delay corresponding to the target service level of the second forwarding node, and the target delay is less than or equal to the transmission delay, and the target time The delay is the inherent delay of the transmission path.
在一种可能实现方式中,所述固有时延包括所述传输路径上节点之间的传输时延、所述传输路径上转发节点的端口时延以及任务时延,所述端口时延为所述转发节点将数据流中的报文发送至所述转发节点的端口的时长,所述任务时延是所述转发节点为所述数据流中的报文分配转发任务的时长。In a possible implementation, the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task delay. The port delay is The duration for the forwarding node to send the packet in the data stream to the port of the forwarding node, and the task delay is the duration for the forwarding node to allocate a forwarding task for the packet in the data stream.
在一种可能实现方式中,所述方法还包括:In a possible implementation manner, the method further includes:
当所述突发量大于所述第一转发节点的目标服务等级对应的服务突发量时,向待整流节点发送整流请求,所述整流请求用于指示对所述数据流进行整流,整流后的所述数据流的突发量小于或等于所述第一转发节点的目标服务等级对应的服务突发量。When the burst amount is greater than the service burst amount corresponding to the target service level of the first forwarding node, a rectification request is sent to the node to be rectified, where the rectification request is used to instruct to rectify the data stream. The burst volume of the data stream is less than or equal to the service burst volume corresponding to the target service level of the first forwarding node.
在一种可能实现方式中,所述待整流节点为所述数据流的传输路径上所述第一转发节点之前的转发节点、目标终端或所述传输路径的首个转发节点,所述目标终端用于发送所述数据流。In a possible implementation manner, the node to be rectified is a forwarding node before the first forwarding node on the transmission path of the data stream, a target terminal, or the first forwarding node of the transmission path, and the target terminal Used to send the data stream.
在一种可能实现方式中,所述数据流包括至少一个业务流。In a possible implementation manner, the data stream includes at least one service stream.
第二方面,提供了一种服务等级配置方法,应用于转发节点,所述方法包括:In the second aspect, a service level configuration method is provided, which is applied to a forwarding node, and the method includes:
接收服务等级配置请求,根据所述服务等级配置请求进行服务等级配置,以采用所述第一转发节点的目标服务等级对所述数据流进行传输;Receiving a service level configuration request, and performing service level configuration according to the service level configuration request, so as to use the target service level of the first forwarding node to transmit the data stream;
其中,所述服务等级配置请求用于指示采用所述第一转发节点的目标服务等级对数据流进行传输,所述第一转发节点的目标服务等级的传输参数与所述数据流的传输参数满足第一目标条件。Wherein, the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream, and the transmission parameters of the target service level of the first forwarding node and the transmission parameters of the data stream satisfy The first target condition.
在一种可能实现方式中,所述数据流的传输参数包括所述数据流的传输时延、突发量以及传输带宽;In a possible implementation manner, the transmission parameters of the data stream include the transmission delay, burst volume, and transmission bandwidth of the data stream;
所述第一转发节点的目标服务等级为所述第一转发节点的至少一个服务等级中的任一个,一个服务等级的传输参数包括所述服务等级对应的转发时延、服务突发量以及服务带宽,所述服务突发量为采用所述服务等级转发至少一个数据流时所容许的最大突发量,所述服务带宽为采用所述服务等级转发至少一个数据流时所容许的最大带宽。The target service level of the first forwarding node is any one of at least one service level of the first forwarding node, and the transmission parameters of one service level include the forwarding delay corresponding to the service level, the service burst, and the service Bandwidth, the service burst volume is the maximum burst volume allowed when the service level is used to forward at least one data stream, and the service bandwidth is the maximum bandwidth allowed when the service level is used to forward at least one data stream.
在一种可能实现方式中,第一目标条件包括下述至少一项:In a possible implementation manner, the first target condition includes at least one of the following:
所述第一转发节点的目标服务等级对应的转发时延小于或等于所述传输时延;The forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay;
所述突发量与所述第一转发节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述第一转发节点的目标服务等级对应的服务突发量;The sum of the burst amount and the burst amount of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service burst amount corresponding to the target service level of the first forwarding node;
所述传输带宽与所述第一转发节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述第一转发节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node.
在一种可能实现方式中,所述第一目标条件还包括:In a possible implementation manner, the first target condition further includes:
所述第一转发节点的目标服务等级对应的转发时延与目标时延之和小于或等于所述传输时延,所述目标时延为所述传输路径上的固有时延。The sum of the forwarding delay and the target delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay, and the target delay is an inherent delay on the transmission path.
在一种可能实现方式中,所述固有时延包括所述传输路径上节点之间的传输时延、所述传输路径上转发节点的端口时延以及所述转发节点任务时延,所述端口时延为所述转发节点将数据流中的报文发送至所述转发节点的端口的时长,所述任务时延为所述转发节点为所述数据流中的报文分配转发任务的时长。In a possible implementation manner, the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task delay of the forwarding node. The delay is the length of time during which the forwarding node sends the packet in the data stream to the port of the forwarding node, and the task delay is the length of time during which the forwarding node allocates a forwarding task for the packet in the data stream.
在一种可能实现方式中,所述接收服务等级配置请求之前,所述方法还包括:In a possible implementation manner, before the receiving the service level configuration request, the method further includes:
获取所述至少一个服务等级的传输参数;Acquiring the transmission parameter of the at least one service level;
向控制节点发送所述第一转发节点的服务等级信息,所述服务等级信息包括所述第一转发节点的至少一个服务等级的传输参数。Sending the service level information of the first forwarding node to the control node, where the service level information includes transmission parameters of at least one service level of the first forwarding node.
在一种可能实现方式中,所述获取至少一个服务等级的传输参数包括:In a possible implementation manner, the obtaining transmission parameters of at least one service level includes:
对于所述至少一个服务等级中的任一服务等级,可以先获取所述服务等级的排队时延,所述排队时延为数据流中的报文在所述服务等级对应的转发队列上等待的最大时长;For any service level of the at least one service level, the queuing delay of the service level may be obtained first, and the queuing delay is the amount of time packets in the data flow are waiting on the forwarding queue corresponding to the service level Maximum duration
基于所述服务等级的排队时延,确定所述服务等级对应的转发时延;再根据所述服务等级对应的转发时延、所述第一转发节点的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的最大突发量;然后,根据所述第一转发节点的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的服务带宽;其中,所述转发数据量为从所述服务等级对应的转发队列上单次转发数据的数据量。Based on the queuing delay of the service level, determine the forwarding delay corresponding to the service level; then according to the forwarding delay corresponding to the service level, the port bandwidth of the first forwarding node, and the forwarding corresponding to the service level The data volume determines the maximum burst volume corresponding to the service level; then, the service bandwidth corresponding to the service level is determined according to the port bandwidth of the first forwarding node and the forwarded data volume corresponding to the service level; wherein, The amount of forwarded data is the amount of data that is forwarded in a single time from the forwarding queue corresponding to the service level.
在一种可能实现方式中,所述基于所述服务等级的排队时延,确定所述服务等级对应的转发时延包括:In a possible implementation manner, the determining the forwarding delay corresponding to the service level based on the queuing delay of the service level includes:
将所述服务等级的排队时延确定为所述服务等级对应的转发时延;或,Determine the queuing delay of the service level as the forwarding delay corresponding to the service level; or,
将所述服务等级的排队时延与所述第一转发节点的固有时延之和,确定为所述服务等级对应的转发时延。The sum of the queuing delay of the service level and the inherent delay of the first forwarding node is determined as the forwarding delay corresponding to the service level.
在一种可能实现方式中,所述根据所述第一转发节点的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的服务带宽之后,所述方法还包括:In a possible implementation manner, after determining the service bandwidth corresponding to the service level according to the port bandwidth of the first forwarding node and the amount of forwarded data corresponding to the service level, the method further includes:
为所述服务等级对应的转发队列分配一个缓存空间,所述缓存空间用于为所述转发队列提供报文。A buffer space is allocated to the forwarding queue corresponding to the service level, and the buffer space is used to provide messages for the forwarding queue.
在一种可能实现方式中,一个服务等级的传输参数还包括目标标识,当所述缓存空间的最大缓存量大于或等于所述转发队列对应的服务等级所对应的服务突发量时,所述目标标识为第一标识,所述第一标识用于指示采用所述服务等级转发数据流时不会出现丢包,否则所述目标标识为第二标识,所述第二标识用于指示采用所述服务等级转发数据流时会出现丢包。In a possible implementation manner, the transmission parameter of a service level further includes a target identifier. When the maximum buffer volume of the buffer space is greater than or equal to the service burst volume corresponding to the service level corresponding to the forwarding queue, the The target identifier is a first identifier, and the first identifier is used to indicate that no packet loss occurs when the data stream is forwarded using the service level; otherwise, the target identifier is a second identifier, and the second identifier is used to indicate that all data streams are used. Packet loss occurs when the above-mentioned service level forwards data streams.
在一种可能实现方式中,一个服务等级的传输参数还包括所述服务等级对应的置信概率,所述置信概率为采用所述服务等级转发数据流时的实际转发时延小于或等于所述服务等级对应的转发时延的概率。In a possible implementation manner, the transmission parameter of a service level further includes a confidence probability corresponding to the service level, and the confidence probability is that the actual forwarding delay when the data stream is forwarded using the service level is less than or equal to the service level. The probability of the forwarding delay corresponding to the level.
在一种可能实现方式中,所述数据流包括至少一个业务流。In a possible implementation manner, the data stream includes at least one service stream.
第三方面,提供了一种服务等级配置装置,用于执行上述服务等级配置方法。具体地,该服务等级配置装置包括用于执行上述第一方面或上述第一方面的任一种可选方式提供的服务等级配置方法的功能模块。In a third aspect, a service level configuration device is provided, which is used to execute the above service level configuration method. Specifically, the service level configuration apparatus includes a functional module for executing the service level configuration method provided by the foregoing first aspect or any optional manner of the foregoing first aspect.
第四方面,提供了一种服务等级配置装置,用于执行上述服务等级配置方法。具体地,该服务等级配置装置包括用于执行上述第二方面或上述第二方面的任一种可选方式提供的服务等级配置方法的功能模块。In a fourth aspect, a service level configuration device is provided, which is used to execute the above service level configuration method. Specifically, the service level configuration apparatus includes a functional module for executing the service level configuration method provided by the foregoing second aspect or any optional manner of the foregoing second aspect.
第五方面,提供一种计算设备,该计算设备包括处理器和存储器,该存储器中存储有至少一条指令,该指令由该处理器加载并执行以实现如上述服务等级配置方法所执行的操作。具体地,用于执行上述第一方面或上述第一方面的任一种可选方式提供的服务等级配置方法的所执行的操作。In a fifth aspect, a computing device is provided. The computing device includes a processor and a memory, and at least one instruction is stored in the memory. The instruction is loaded and executed by the processor to implement the operations performed by the foregoing service level configuration method. Specifically, it is used to perform operations performed in the service level configuration method provided by the foregoing first aspect or any one of the optional manners of the foregoing first aspect.
第六方面,提供一种网络设备,该网络设备包括处理器和存储器,该存储器中存储有至 少一条指令,该指令由该处理器加载并执行以实现如上述服务等级配置方法所执行的操作。具体地,用于执行上述第二方面或上述第二方面的任一种可选方式提供的服务等级配置方法的所执行的操作。In a sixth aspect, a network device is provided, the network device includes a processor and a memory, and at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the operations performed by the foregoing service level configuration method. Specifically, it is used to perform operations performed in the service level configuration method provided by the foregoing second aspect or any optional manner of the foregoing second aspect.
第七方面,提供一种计算机可读存储介质,该存储介质中存储有至少一条指令,该指令由处理器加载并执行以实现如上述服务等级配置方法所执行的操作。第七方面,提供一种计算机可读存储介质,该存储介质中存储有至少一条指令,该指令由处理器加载并执行以实现如上述服务等级配置方法所执行的操作。In a seventh aspect, a computer-readable storage medium is provided, and at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement operations performed by the foregoing service level configuration method. In a seventh aspect, a computer-readable storage medium is provided, and at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement operations performed by the foregoing service level configuration method.
附图说明Description of the drawings
图1是本申请实施例提供的一种服务等级配置***的示意图;FIG. 1 is a schematic diagram of a service level configuration system provided by an embodiment of the present application;
图2是本申请实施例提供的一种计算设备的结构示意图;FIG. 2 is a schematic structural diagram of a computing device provided by an embodiment of the present application;
图3是本申请实施例提供的一种网络设备的结构示意图;FIG. 3 is a schematic structural diagram of a network device provided by an embodiment of the present application;
图4是本申请实施例提供的一种服务等级配置方法的流程图;FIG. 4 is a flowchart of a service level configuration method provided by an embodiment of the present application;
图5是本申请实施例提供的一种确定服务等级的传输参数的示意图;FIG. 5 is a schematic diagram of a transmission parameter for determining a service level according to an embodiment of the present application;
图6是本申请实施例提供的一种目标报文格式的示意图;Fig. 6 is a schematic diagram of a target message format provided by an embodiment of the present application;
图7是本申请实施例提供的一种确定目标服务等级的示意图;FIG. 7 is a schematic diagram of determining a target service level provided by an embodiment of the present application;
图8是本申请实施例提供的一种第一报文格式的示意图;FIG. 8 is a schematic diagram of a first message format provided by an embodiment of the present application;
图9是本申请实施例提供的一种第二报文格式的最小时延字段的示意图;FIG. 9 is a schematic diagram of a minimum delay field of a second message format provided by an embodiment of the present application;
图10是本申请实施例提供的一种服务等级配置装置的结构示意图;FIG. 10 is a schematic structural diagram of a service level configuration apparatus provided by an embodiment of the present application;
图11是本申请实施例提供的一种服务等级配置装置的结构示意图。FIG. 11 is a schematic structural diagram of a service level configuration apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions, and advantages of the present application clearer, the following further describes the embodiments of the present application in detail with reference to the accompanying drawings.
图1是本申请实施例提供的一种服务等级配置***的示意图,参见图1,该***100可以包括发送节点101、转发节点102、接收节点103以及控制节点104。其中,发送节点101用于发送数据流,为数据流的发送端。该发送节点101可以是手机、个人电脑等用户设备、还可以是服务器等计算设备。该***100中发送节点101的个数可以是一个,也可以是多个,本申请实施例对发送节点101的硬件形式以及个数不做具体限定。FIG. 1 is a schematic diagram of a service level configuration system provided by an embodiment of the present application. Referring to FIG. 1, the system 100 may include a sending node 101, a forwarding node 102, a receiving node 103, and a control node 104. Among them, the sending node 101 is used to send a data stream, and is the sending end of the data stream. The sending node 101 may be a user equipment such as a mobile phone or a personal computer, or a computing device such as a server. The number of sending nodes 101 in the system 100 may be one or more. The embodiment of the present application does not specifically limit the hardware form and number of sending nodes 101.
转发节点102,用于将发送节点101所发送的数据流传输至接收节点103,该转发节点102可以是交换机、路由器等具有转发功能的网络设备。该***100中转发节点102的个数可以是一个,也可以是多个,本申请实施例对转发节点102的硬件形式以及个数不做具体限定。The forwarding node 102 is configured to transmit the data stream sent by the sending node 101 to the receiving node 103. The forwarding node 102 may be a network device with a forwarding function such as a switch or a router. The number of forwarding nodes 102 in the system 100 may be one or multiple. The embodiment of the present application does not specifically limit the hardware form and number of forwarding nodes 102.
接收节点103,用于接收转发节点102传输的数据流,为数据流的接收端。该接收节点103可以是手机、个人电脑等用户设备、还可以是服务器等计算设备,还可以是位于子网边缘的具有转发功能的转发节点。该***100中接收节点103的个数可以是一个,也可以是多个,本申请实施例对接收节点103的硬件形式以及个数不做具体限定。The receiving node 103 is configured to receive the data stream transmitted by the forwarding node 102, and is the receiving end of the data stream. The receiving node 103 may be a user equipment such as a mobile phone or a personal computer, or a computing device such as a server, or a forwarding node with a forwarding function located at the edge of the subnet. The number of receiving nodes 103 in the system 100 may be one or multiple. The embodiment of the present application does not specifically limit the hardware form and number of receiving nodes 103.
发送节点101、至少一个转发节点102以及接收节点103可以组成数据流的传输路径,数据流可以是基于业务的业务流,该数据流可以具有业务所需求的传输参数,其中,业务所 需求的传输参数可以记为数据流的传输参数。The sending node 101, the at least one forwarding node 102, and the receiving node 103 can form a transmission path of a data stream. The data stream can be a service-based service stream, and the data stream can have transmission parameters required by the service. The transmission required by the service The parameter can be recorded as the transmission parameter of the data stream.
为了使得数据流在传输路径上的传输参数可以满足业务需求,传输路径上的发送节点101、转发节点102或接收节点103可以向控制节点104发送数据流的传输参数,传输路径上的每个转发节点102可以向控制节点104发送各自的服务等级信息,其中,一个转发节点的服务等级信息包括该转发节点的至少一个服务等级的传输参数。对于任一转发节点102,控制节点104还用于根据数据流的传输参数以及该转发节点102的服务等级信息,从该转发节点102的至少一个服务等级中,确定该转发节点102用于转发该数据流的目标服务等级。控制节点104还可以用于向该转发节点102发送服务等级配置请求,该转发节点102基于接收的服务等级配置请求进行服务等级配置,以便后续可以采用该转发节点102的目标服务等级对数据流进行传输。控制节点104可以是具有计算功能和存储功能的计算设备,例如计算机、服务器等计算设备。控制节点104的部分或全部功能还可以由其他设备来实现,例如转发节点102。本申请实施例对控制节点104不做具体限定。In order to make the transmission parameters of the data stream on the transmission path meet the business requirements, the sending node 101, the forwarding node 102, or the receiving node 103 on the transmission path can send the transmission parameters of the data stream to the control node 104, and each forwarding node on the transmission path The node 102 may send respective service level information to the control node 104, where the service level information of one forwarding node includes transmission parameters of at least one service level of the forwarding node. For any forwarding node 102, the control node 104 is further configured to determine that the forwarding node 102 is used to forward the forwarding node 102 from at least one service level of the forwarding node 102 according to the transmission parameters of the data stream and the service level information of the forwarding node 102 The target service level of the data stream. The control node 104 can also be used to send a service level configuration request to the forwarding node 102, and the forwarding node 102 performs service level configuration based on the received service level configuration request, so that the target service level of the forwarding node 102 can be used to perform the data flow. transmission. The control node 104 may be a computing device with a computing function and a storage function, such as a computing device such as a computer and a server. Part or all of the functions of the control node 104 may also be implemented by other devices, such as the forwarding node 102. The embodiment of the present application does not specifically limit the control node 104.
在一种可能的实现方式中,该***100还可以包括目标控制节点105,该目标控制节点105用于获取至少一个数据流的传输参数,至少一个数据流的传输参数可以由至少一个发送节点101或至少一个接收节点103上传至目标控制节点105。该目标控制节点105还可以用于将至少一个数据流的传输参数发送至控制节点104,对于任一数据流,由控制节点104基于该数据流的传输参数以及该数据流的传输路径上的各个转发节点的服务等级信息,进行服务等级配置。该目标控制节点105还可以用于接收控制节点104发送的该数据流对应的配置响应,该数据流对应的配置响应用于指示基于该数据流所进行的服务等级配置的配置结果。目标控制节点105可以是具有计算功能和存储功能的计算设备,例如计算机、服务器等计算设备。该目标控制节点105的部分或全部功能还可以由其他设备来实现,例如转发节点102、控制节点104。本申请实施例对该目标控制节点105不做具体限定。In a possible implementation manner, the system 100 may further include a target control node 105, which is used to obtain transmission parameters of at least one data stream, and the transmission parameters of at least one data stream may be controlled by at least one sending node 101. Or at least one receiving node 103 uploads to the target control node 105. The target control node 105 can also be used to send the transmission parameters of at least one data stream to the control node 104. For any data stream, the control node 104 is based on the transmission parameters of the data stream and the transmission path of the data stream. Forward the service level information of the node and perform service level configuration. The target control node 105 may also be used to receive a configuration response corresponding to the data stream sent by the control node 104, where the configuration response corresponding to the data stream is used to indicate a configuration result of the service level configuration performed based on the data stream. The target control node 105 may be a computing device with a computing function and a storage function, such as a computing device such as a computer and a server. Part or all of the functions of the target control node 105 may also be implemented by other devices, such as the forwarding node 102 and the control node 104. The embodiment of the present application does not specifically limit the target control node 105.
需要说明的是,控制节点104还可以通过用户网络端口,向发送数据流的传输参数的任一设备返回该数据流对应的配置响应,该任一设备可以是发送节点101、转发节点102、接收节点103或目标控制节点105。It should be noted that the control node 104 can also return the configuration response corresponding to the data stream to any device that sends the transmission parameters of the data stream through the user network port. The any device can be the sending node 101, the forwarding node 102, and the receiving device. Node 103 or target control node 105.
控制节点可以是任一计算设备,为了进一步说明控制节点的硬件结构,参见图2所示的本申请实施例提供的一种计算设备的结构示意图,计算设备200包括可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(central processing units,CPU)201和一个或一个以上的存储器202,其中,该存储器202中存储有至少一条指令,该至少一条指令由该处理器201加载并执行以实现下述各个方法实施例中控制节点所执行的步骤。当然,该计算设备200还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该计算设备200还可以包括其他用于实现设备功能的部件,在此不做赘述。The control node can be any computing device. In order to further illustrate the hardware structure of the control node, refer to the schematic diagram of a computing device provided by an embodiment of the application shown in FIG. A relatively large difference may include one or more processors (central processing units, CPU) 201 and one or more memories 202, where at least one instruction is stored in the memory 202, and the at least one instruction is executed by the processor 201 is loaded and executed to implement the steps executed by the control node in each method embodiment described below. Of course, the computing device 200 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output. The computing device 200 may also include other components for implementing device functions, which will not be repeated here.
转发节点可以是网络设备,为了进一步说明转发节点的硬件结构,参见图3所示的本申请实施例提供的一种网络设备的结构示意图,网络设备300包括可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器301和一个或一个以上的存储器302,其中,该存储器302中存储有至少一条指令,该至少一条指令由该处理器301加载并执行以实现下述各个方法实施例中转发节点所执行的步骤。当然,该网络设备300还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该网络设备300还可以包括其他用于实现设备功能的部件,在此不做赘述。The forwarding node may be a network device. In order to further illustrate the hardware structure of the forwarding node, refer to the schematic structural diagram of a network device provided by an embodiment of the present application shown in FIG. The difference may include one or more processors 301 and one or more memories 302, where at least one instruction is stored in the memory 302, and the at least one instruction is loaded and executed by the processor 301 to implement each of the following Steps performed by the forwarding node in the method embodiment. Of course, the network device 300 may also have components such as a wired or wireless network interface, a keyboard, an input and output interface for input and output, and the network device 300 may also include other components for implementing device functions, which will not be repeated here.
在示例性实施例中,还提供了一种计算机可读存储介质,例如包括指令的存储器,上述指令可由终端中的处理器执行以完成下述实施例中的服务等级配置方法。例如,该计算机可读存储介质可以是只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、只读光盘(compact disc read-only memory,CD-ROM)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions, which can be executed by a processor in a terminal to complete the service level configuration method in the following embodiments. For example, the computer-readable storage medium may be read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), Magnetic tapes, floppy disks and optical data storage devices, etc.
转发节点可以向控制节点上报该转发节点的服务等级信息,然后再由控制节点根据数据流的传输路径上的各个转发节点的服务等级信息以及数据流的传输参数,确定每个转发节点中用于转发该数据流的目标服务等级,进而每个转发节点可以基于控制节点确定的各个转发节点的目标服务等级,来进行服务等级配置,以便后续转发节点可以采用配置的服务等级转发数据流。为了进一步说明这一过程,参见图4所示的本申请实施例提供的一种服务等级配置方法的流程图,该方法的流程可以包括下述步骤401-410。The forwarding node can report the service level information of the forwarding node to the control node, and then the control node determines the service level information of each forwarding node on the transmission path of the data stream and the transmission parameters of the data stream to determine the The target service level of the data stream is forwarded, and each forwarding node can perform service level configuration based on the target service level of each forwarding node determined by the control node, so that subsequent forwarding nodes can use the configured service level to forward the data stream. In order to further explain this process, refer to the flowchart of a service level configuration method provided by an embodiment of the present application shown in FIG. 4, and the process of the method may include the following steps 401-410.
401、目标节点向控制节点发送数据流的传输参数。401. The target node sends transmission parameters of the data stream to the control node.
该目标节点可以是目标控制节点、该数据流的发送节点、该数据流的转发节点以及该数据流的接收节点中的任一个。该数据流可以包括至少一个业务流,每个业务流为一个业务下的数据流,一个业务流的传输参数用于指示该业务流的传输特征和业务需求,一个业务流的传输参数可以包括该业务流的传输时延,该业务流的传输带宽以及该业务流的突发量中的至少一项。其中,该业务流的传输时延可以是该业务流的一个时延需求,也即是业务需求的该业务流在传输路径上的传输时延,该传输时延也可以视为业务流的一个传输特征。该业务流的传输带宽可以是该业务流的一个传输速率需求,也即是业务需求的该业务流在传输路径上的传输速率,传输速率也即是该业务流的一个传输特征。业务流的突发量为该业务流在传输路径上传输时的突发数据的数据量,业务流的突发量也可以视为该业务流的突发需求,也即是该业务流的一个传输特征。时延需求、传输速率需求以及突发需求均可以视为业务需求。The target node may be any one of a target control node, a sending node of the data flow, a forwarding node of the data flow, and a receiving node of the data flow. The data flow may include at least one service flow, each service flow is a data flow under a service, the transmission parameter of a service flow is used to indicate the transmission characteristics and service requirements of the service flow, and the transmission parameter of a service flow may include the At least one of the transmission delay of the service flow, the transmission bandwidth of the service flow, and the burst volume of the service flow. Among them, the transmission delay of the service flow may be a delay requirement of the service flow, that is, the transmission delay of the service flow on the transmission path of the service requirement, and the transmission delay may also be regarded as a delay requirement of the service flow. Transmission characteristics. The transmission bandwidth of the service flow may be a transmission rate requirement of the service flow, that is, the transmission rate of the service flow on the transmission path of the service requirement, and the transmission rate is also a transmission characteristic of the service flow. The burst volume of the service flow is the data volume of the burst data when the service flow is transmitted on the transmission path. The burst volume of the service flow can also be regarded as the burst demand of the service flow, that is, it is a part of the service flow. Transmission characteristics. Delay requirements, transmission rate requirements, and burst requirements can all be regarded as business requirements.
该数据流的传输参数可以包括该数据流的传输时延,该数据流的传输带宽以及该数据流的突发量中的至少一项。其中,该数据流的传输时延为该数据流中各个业务流的传输时延中最小的传输时延,该数据流的传输带宽为该数据流中各个业务流的传输带宽之和,该数据流的突发量为该数据流中各个业务流的突发量之和。The transmission parameter of the data stream may include at least one of the transmission delay of the data stream, the transmission bandwidth of the data stream, and the burst volume of the data stream. Wherein, the transmission delay of the data stream is the smallest transmission delay among the transmission delays of each service stream in the data stream, and the transmission bandwidth of the data stream is the sum of the transmission bandwidths of each service stream in the data stream. The burst volume of the stream is the sum of the burst volume of each service stream in the data stream.
402、第一转发节点获取至少一个服务等级的传输参数。402. The first forwarding node obtains a transmission parameter of at least one service level.
该第一转发节点为该数据流的传输路径上的任一转发节点,该第一转发节点中具有至少一个转发队列,每个转发队列对应一个服务等级,一个服务服务等级也可以对应多个转发队列,例如,转发队列1-3的服务等级均为A,转发队列4的服务等级为B。数据流中的报文可以在具有相同服务等级的转发队列上进行排队,对于任一服务等级,该第一转发节点可以采用该服务等级的传输参数传输该服务等级对应的转发队列中的报文。The first forwarding node is any forwarding node on the transmission path of the data stream. The first forwarding node has at least one forwarding queue, and each forwarding queue corresponds to one service level, and one service service level can also correspond to multiple forwarding For example, the service level of forwarding queues 1-3 is A, and the service level of forwarding queue 4 is B. The packets in the data stream can be queued on the forwarding queues with the same service level. For any service level, the first forwarding node can use the transmission parameters of the service level to transmit the packets in the forwarding queue corresponding to the service level .
一个服务等级的传输参数用于指示采用该服务等级转发数据流时所能达到的最大传输参数。一个服务等级的传输参数可以包括下述至少一项:该服务等级对应的转发时延、服务突发量以及服务带宽,该服务突发量为采用该服务等级转发至少一个数据流时所容许的最大突发量,该服务带宽为采用该服务等级转发至少一个数据流时所容许的最大带宽。The transmission parameter of a service level is used to indicate the maximum transmission parameter that can be achieved when the service level is used to forward a data stream. The transmission parameters of a service level may include at least one of the following: forwarding delay, service burst volume, and service bandwidth corresponding to the service level, where the service burst volume is allowed when the service level is used to forward at least one data stream The maximum burst volume, the service bandwidth is the maximum bandwidth allowed when at least one data stream is forwarded using the service level.
对于该至少一个服务等级中的任一个服务等级,该第一转发节点可以基于该第一转发节点的转发数据流的转发能力,获取该服务等级的传输参数,其中,该第一转发节点的端口带宽可以用于指示该第一转发节点的转发数据流的转发能力。在一种可能的实现方式中,该第 一转发节点获取一个服务等级的传输参数的过程可以包括下述步骤4021-4024。For any service level of the at least one service level, the first forwarding node may obtain the transmission parameters of the service level based on the forwarding capability of the first forwarding node to forward data streams, where the port of the first forwarding node The bandwidth may be used to indicate the forwarding capability of the first forwarding node to forward the data stream. In a possible implementation manner, the process for the first forwarding node to obtain a transmission parameter of a service level may include the following steps 4021-4024.
步骤4021、对于该至少一个服务等级中的任一服务等级,该第一转发节点获取该服务等级的排队时延,该排队时延为数据流中的报文在该服务等级对应的转发队列上等待的最大时长。Step 4021, for any service level of the at least one service level, the first forwarding node obtains the queuing delay of the service level, where the queuing delay is that the packets in the data flow are on the forwarding queue corresponding to the service level The maximum length of time to wait.
该第一转发节点可以基于用户的操作来获取该服务等级的排队时延,在一种可能的实现方式中,用户可以在第一转发节点的时延配置界面上添加至少一个服务等级的排队时延,当添加完成后,该用户可以点击该时延配置界面中的确定按钮,若第一转发节点检测到该用户点击确定按钮的动作后,可以触发第一转发节点得到用户添加的至少一个服务等级的排队时延,从而第一转发节点可以从至少一个服务等级的排队时延中,获取到该服务等级的排队时延。例如,对于第一转发节点的一个1G带宽的端口,该端口具有4个服务等级,分别记为服务等级A、B、C以及D,用户为这4个服务等级分配的排队时延分别为0.5ms、1ms、2ms以及4ms,用户将为每个服务等级分配的排队时延添加在时延配置界面上,以便第一转发节点可以获取到服务等级A-D的排队时延。The first forwarding node can obtain the queuing delay of the service level based on the user's operation. In a possible implementation manner, the user can add at least one queuing time of the service level to the delay configuration interface of the first forwarding node. After the addition is complete, the user can click the OK button in the delay configuration interface. If the first forwarding node detects that the user clicks the OK button, it can trigger the first forwarding node to get at least one service added by the user The queuing delay of the level, so that the first forwarding node can obtain the queuing delay of the service level from the queuing delay of at least one service level. For example, for a 1G bandwidth port of the first forwarding node, the port has 4 service levels, which are respectively denoted as service levels A, B, C, and D, and the queuing delay allocated by the user to these 4 service levels is 0.5 respectively. ms, 1ms, 2ms and 4ms, the user will add the queuing delay allocated for each service level to the delay configuration interface so that the first forwarding node can obtain the queuing delay of the service level AD.
步骤4022、第一转发节点基于该服务等级的排队时延,确定该服务等级对应的转发时延。Step 4022, the first forwarding node determines the forwarding delay corresponding to the service level based on the queuing delay of the service level.
其中,该服务等级的转发时延也即是采用该服务等级传输数据流的最大时长。该第一转发节点可以将该服务等级的排队时延确定为该服务等级对应的转发时延,或者,该第一转发节点还可以将该服务等级的排队时延与该第一转发节点的固有时延之和,确定为该服务等级对应的转发时延。Among them, the forwarding delay of the service level is also the maximum length of time that the service level is used to transmit the data stream. The first forwarding node may determine the queuing delay of the service level as the forwarding delay corresponding to the service level, or the first forwarding node may also determine the queuing delay of the service level with the inherent queuing delay of the first forwarding node. The sum of the delays is determined as the forwarding delay corresponding to the service level.
该第一转发节点的固有时延可以为该第一转发节点的硬件结构所造成的时延,该第一转发节点的固有时延也可以视为数据流在该第一转发节点的最小时延,也即是,第一转发节点接收到数据流后,数据流无需在第一转发节点排队,直接被该第一转发节点转发,从而使得该数据流在该第一转发节点的转发时延为该第一转发节点的固有时延。或者说,该第一转发节点的固有时延为数据流在不排队的情况下,对于该数据流中的任一报文,该第一转发节点从接收到该报文到输出该报文的时长。该第一转发节点的固有时延可以包括该第一转发节点的端口时延以及该第一转发节点的任务时延,其中,该端口时延为该第一转发节点将数据流中的报文发送至该第一转发节点的端口的时长,该任务时延为该第一转发节点为该数据流中的报文分配转发任务的时长。The inherent delay of the first forwarding node may be the delay caused by the hardware structure of the first forwarding node, and the inherent delay of the first forwarding node may also be regarded as the minimum delay of the data flow at the first forwarding node That is, after the first forwarding node receives the data flow, the data flow does not need to be queued at the first forwarding node, but is directly forwarded by the first forwarding node, so that the forwarding delay of the data flow at the first forwarding node is The inherent delay of the first forwarding node. In other words, the inherent delay of the first forwarding node is that when the data flow is not queued, for any packet in the data flow, the first forwarding node is from receiving the packet to outputting the packet. duration. The inherent delay of the first forwarding node may include the port delay of the first forwarding node and the task delay of the first forwarding node, where the port delay is that the first forwarding node transfers packets in the data stream. The duration of the transmission to the port of the first forwarding node, where the task delay is the duration of the first forwarding node assigning a forwarding task to the packet in the data stream.
步骤4023、第一转发节点根据该服务等级对应的转发时延、第一转发节点的端口带宽以及该服务等级对应的转发数据量,确定该服务等级对应的最大突发量,该转发数据量为该第一转发节点从该服务等级对应的转发队列上单次转发数据的数据量。Step 4023: The first forwarding node determines the maximum burst volume corresponding to the service level according to the forwarding delay corresponding to the service level, the port bandwidth of the first forwarding node, and the forwarding data volume corresponding to the service level, and the forwarding data volume is The amount of data that the first forwarding node forwards in a single time from the forwarding queue corresponding to the service level.
在执行本步骤4023之前,该第一转发节点可以先获取该服务等级对应的转发数据量,该服务等级对应的转发数据量也即是第一转发节点轮询该服务等级对应的转发队列时,从该转发队列中转发数据的数据量,第一转发节点在每次轮询过程中的数据转发量小于等于该端口的总转发量。例如,总转发量为10000比特(bit),服务等级A-D对应的转发数据量均为10000bit,则第一转发节点可以先轮询该服务等级A对应的转发队列A,将转发队列A中10000bit的数据输出,再轮询服务等级B对应的转发队列B,将转发队列B中10000bit的数据输出,以此类推,该第一转发节点再继续轮询服务等级C对应的转发队列。再例如,该第一转发节点的一个端口具有服务等级E和F,对应的转发量均为5000bit,该端口的总转发量为10000bit,则在一次轮询过程中,该第一转发节点从服务等级E对应的转发队列E中转发5000bit的数 据,且从服务等级F对应的转发队列F中转发5000bit的数据。需要说明的是,至少一个服务等级对应的转发数据量可以相同也可以不同,例如,服务等级A-D对应的转发数据量可以分别为8000bit、4000bit、2000bit以及1000bit。本申请实施例对服务等级对应的转发数据量不做具体限定。Before performing this step 4023, the first forwarding node may first obtain the forwarding data volume corresponding to the service level. The forwarding data volume corresponding to the service level is also when the first forwarding node polls the forwarding queue corresponding to the service level. For the amount of data forwarded from the forwarding queue, the data forwarding amount of the first forwarding node in each polling process is less than or equal to the total forwarding amount of the port. For example, if the total forwarding volume is 10000 bits, and the forwarding data volume corresponding to service level AD is 10000 bits, the first forwarding node can poll the forwarding queue A corresponding to service level A first, and transfer the 10000-bit data in the forwarding queue A. For data output, the forwarding queue B corresponding to service level B is polled, and the 10000bit data in forwarding queue B is output, and so on, the first forwarding node continues to poll the forwarding queue corresponding to service level C. For another example, a port of the first forwarding node has service levels E and F, and the corresponding forwarding volume is 5000 bits, and the total forwarding volume of the port is 10000 bits. Then, in a polling process, the first forwarding node serves The forwarding queue E corresponding to class E forwards 5000 bits of data, and the forwarding queue F corresponding to service class F forwards 5000 bits of data. It should be noted that the amount of forwarded data corresponding to at least one service level may be the same or different. For example, the amount of forwarded data corresponding to service levels A-D may be 8000bit, 4000bit, 2000bit, and 1000bit, respectively. The embodiment of the present application does not specifically limit the amount of forwarded data corresponding to the service level.
该第一转发节点可以基于用户的操作来获取该服务等级对应的转发数据量,在一种可能的实现方式中,用户可以在第一转发节点的数据量配置界面上添加至少一个服务等级对应的转发数据量,一个服务等级对应一个转发数据量;当添加完成后,该用户可以点击该数据量配置界面中的确定按钮,若第一转发节点检测到该用户点击确定按钮的动作后,可以触发第一转发节点得到用户添加的至少一个服务等级对应的转发数据量,从而第一转发节点可以从至少一个服务等级对应的转发数据量中,获取到该服务等级对应的转发数据量。The first forwarding node may obtain the amount of forwarded data corresponding to the service level based on the user's operation. In a possible implementation manner, the user may add at least one service level corresponding to the data volume configuration interface of the first forwarding node. The amount of forwarded data, one service level corresponds to one forwarded data volume; when the addition is complete, the user can click the OK button in the data volume configuration interface, if the first forwarding node detects the user's click on the OK button, it can trigger The first forwarding node obtains the forwarded data volume corresponding to at least one service level added by the user, so that the first forwarding node can obtain the forwarded data volume corresponding to the service level from the forwarded data volume corresponding to the at least one service level.
对于至少一个服务等级中的第i个服务等级,第一转发节点可以将第i个服务等级对应的转发时延、第一转发节点的端口带宽以及至少一个服务等级对应的转发数据量作为下述公式(1)-(3)的输入参数,通过输入参数对公式(1)-(3)进行计算,得到第i个服务等级的最大突发量带,其中,1≤i,β i用于指示第i个服务等级随时间t变化的服务曲线,服务曲线用于描述任意时间间隔,第一转发节点的最小服务能力,Q i为第i个服务等级对应的转发数据量,L i为第i个服务等级对应的转发队列中最大报文的数据量,L max,L为第一转发节点中不采用服务等级传输的数据流中最大报文的数据量,1≤j≤n,n为该至少一个服务等级的数目,t为时间,T是β i为0时的时间,也即是β i处于零点的时间,R为服务曲线β i的斜率,该第一转发节点可以将公式(1)转化为公式(2)的形式,从而可以从转化后的公式(1)中得到R,其中,R可以用至少一个服务等级的转发数据量、端口带宽、L max,L以及L i中的至少一项来表示,第一转发节点再将R、第i个服务等级的排队时延D以及T代入公式(3),从而可以得到第i个服务等级对应的服务突发量b。 For the i-th service level in at least one service level, the first forwarding node may use the forwarding delay corresponding to the i-th service level, the port bandwidth of the first forwarding node, and the amount of forwarded data corresponding to at least one service level as the following The input parameters of formulas (1)-(3) are calculated by formulas (1)-(3) through the input parameters to obtain the maximum burst bandwidth of the i-th service level, where 1≤i, β i is used for Indicates the service curve of the i-th service level changing with time t. The service curve is used to describe the minimum service capacity of the first forwarding node at any time interval. Q i is the amount of forwarded data corresponding to the i-th service level, and Li is the The data volume of the largest message in the forwarding queue corresponding to the i service level, L max, L is the data volume of the largest message in the data flow that does not use the service level transmission in the first forwarding node, 1≤j≤n, n is The number of the at least one service level, t is the time, T is the time when β i is 0, that is, the time when β i is at zero, and R is the slope of the service curve β i , the first forwarding node can apply the formula ( 1) Converted to the form of formula (2), so that R can be obtained from the converted formula (1), where R can use at least one service level of forwarding data volume, port bandwidth, L max, L, and L i It means that the first forwarding node then substitutes R, the queuing delay D and T of the i-th service level into formula (3), so that the service burst b corresponding to the i-th service level can be obtained.
Figure PCTCN2020115994-appb-000001
Figure PCTCN2020115994-appb-000001
β i=R(t-T)  (2) β i =R(tT) (2)
Figure PCTCN2020115994-appb-000002
Figure PCTCN2020115994-appb-000002
步骤4024、第一转发节点根据该第一转发节点的端口带宽以及该服务等级对应的转发数据量,确定该服务等级对应的服务带宽。Step 4024: The first forwarding node determines the service bandwidth corresponding to the service level according to the port bandwidth of the first forwarding node and the forwarding data volume corresponding to the service level.
对于第i个服务等级,该第一转发节点可以将该第一转发节点的端口带宽以及至少一个服务等级对应的转发数据量输入至公式(4),并通过公式(4)计算出第i个服务等级的服务带宽r。For the i-th service level, the first forwarding node can input the port bandwidth of the first forwarding node and the amount of forwarded data corresponding to at least one service level into formula (4), and calculate the i-th service level by formula (4) Service bandwidth r of the service level.
Figure PCTCN2020115994-appb-000003
Figure PCTCN2020115994-appb-000003
对于该至少一个服务等级中的任一个服务等级,第一转发节点均可以通过步骤4021-4024所示的过程,得到任一个服务等级的传输参数。需要说明的是,对于任一个服务等级,该服务等级对应的转发时延、服务突发量以及服务带宽三者相互影响,例如图5所示的本申请实施例提供的一种确定服务等级的传输参数的示意图,图5中的服务曲线也即是β i,到达曲线用来描述任意时间间隔,在第一转发节点到达的数据量的上界,D为到达曲线和服务曲线的 最大水平间距,也即是该第i个服务等级对应的转发时延,可见,对于D、服务曲线以及到达曲线中的任一参量发生改变,则其他参量均随之改变。例如,D出现改变,则第一转发节点可以动态调整服务曲线和到达曲线,以确保改变后的D存在,因此,对于任一个服务等级,该第一转发节点可以先确定该服务等级对应的传输时延、服务突发量以及服务带宽中的任意2项的具体数值,再基于确定的任意2项的具体数值以及上述公式(1)-(4),确定剩余1项的具体数值,因此,该第一转发节点的每个服务等级的传输参数可以有多种情况,并不是唯一的。 For any service level in the at least one service level, the first forwarding node can obtain the transmission parameters of any service level through the process shown in steps 4021-4024. It should be noted that, for any service level, the forwarding delay, service burst volume, and service bandwidth corresponding to the service level affect each other. For example, as shown in FIG. 5, an embodiment of the present application provides a service level determination method. Schematic diagram of transmission parameters, the service curve in Figure 5 is also β i , the arrival curve is used to describe any time interval, the upper bound of the amount of data arriving at the first forwarding node, D is the maximum horizontal distance between the arrival curve and the service curve , That is, the forwarding delay corresponding to the i-th service level. It can be seen that if any parameter in D, the service curve, and the arrival curve changes, the other parameters will change accordingly. For example, if D changes, the first forwarding node can dynamically adjust the service curve and arrival curve to ensure that the changed D exists. Therefore, for any service level, the first forwarding node can first determine the transmission corresponding to the service level The specific values of any two items of delay, service burst and service bandwidth are determined based on the specific values of any two items and the above formulas (1)-(4) to determine the specific value of the remaining one item. Therefore, The transmission parameters of each service level of the first forwarding node may have multiple situations, which are not unique.
需要说明的是,该第一转发节点还可以为该服务等级对应的转发队列分配一个缓存空间,该缓存空间用于为该转发队列提供报文。对于该服务等级的数据流,该第一转发节点可以将该数据流中的报文缓存在该转发队列的缓存空间中,当转发队列中的任一报文转发出去后,该第一转发节点可以将该转发队列的缓存空间中的报文转移至该转发队列,以在该转发队列进行排队,从而可以避免该数据流中的报文在该第一转发节点出现大量丢包。It should be noted that the first forwarding node may also allocate a buffer space for the forwarding queue corresponding to the service level, and the buffer space is used to provide packets for the forwarding queue. For the data flow of the service level, the first forwarding node can buffer the packets in the data flow in the buffer space of the forwarding queue. When any packet in the forwarding queue is forwarded, the first forwarding node The packets in the buffer space of the forwarding queue can be transferred to the forwarding queue to be queued in the forwarding queue, so that a large amount of packet loss in the first forwarding node of the packets in the data flow can be avoided.
403、第一转发节点向控制节点发送该第一转发节点的服务等级信息,该第一转发节点的服务等级信息包括该第一转发节点的至少一个服务等级的传输参数。403. The first forwarding node sends the service level information of the first forwarding node to the control node, where the service level information of the first forwarding node includes at least one service level transmission parameter of the first forwarding node.
一个服务等级的传输参数还可以包括目标标识,当该服务等级对应的转发队列的缓存空间的最大缓存量大于或等于该服务等级所对应的服务突发量时,该目标标识为第一标识,该第一标识用于指示采用该服务等级转发数据流时不会出现丢包,否则该目标标识为第二标识,该第二标识用于指示采用该服务等级转发数据流时会出现丢包。本申请实施例对第一标识和第二标识的表示方式不做具体限定。The transmission parameter of a service level may also include a target identifier. When the maximum buffer amount of the buffer space of the forwarding queue corresponding to the service level is greater than or equal to the service burst volume corresponding to the service level, the target identifier is the first identifier, The first identifier is used to indicate that no packet loss will occur when the data stream is forwarded using the service level; otherwise, the target identifier is a second identifier, and the second identifier is used to indicate that packet loss will occur when the data stream is forwarded using the service level. The embodiment of the present application does not specifically limit the manner in which the first identifier and the second identifier are expressed.
一个服务等级的传输参数还可以包括抖动阈值,该抖动阈值为采用该服务等级转发数据流时的实际转发时延的抖动上界,该抖动阈值为该服务等级对应的转发时延与该第一转发节点的固有时延的差值。一个服务等级的传输参数还可以包括该转发节点的固有时延。The transmission parameter of a service level may also include a jitter threshold, where the jitter threshold is the upper bound of the jitter of the actual forwarding delay when the data stream is forwarded using the service level, and the jitter threshold is the forwarding delay corresponding to the service level and the first The difference in the inherent delay of the forwarding node. The transmission parameters of a service level may also include the inherent delay of the forwarding node.
一个服务等级的传输参数还可以包括该服务等级对应的置信概率,该置信概率为采用该服务等级转发数据流时的实际转发时延小于或等于该服务等级对应的转发时延的概率。该置信概率可以是100%,当然还可以是其他数值,本申请实施例对该服务等级对应的置信概率的取值不做具体限定。The transmission parameter of a service level may also include a confidence probability corresponding to the service level, where the confidence probability is the probability that the actual forwarding delay when the data stream is forwarded using the service level is less than or equal to the forwarding delay corresponding to the service level. The confidence probability may be 100%, of course, it may also be other values. The embodiment of the present application does not specifically limit the value of the confidence probability corresponding to the service level.
该第一转发节点可以基于服务等级(service level)协议下的目标报文格式,生成该服务等级信息,其中目标报文格式可以是标签-长度-数值(tag-length-Value,TLV),该目标报文格式中的标识字段用于存储该第一转发节点的每个端口的每个服务等级的服务等级标识,在一种可能的实现方式中,该标识字段可以存储该第一转发节点的节点标识、每个端口的端口标识以及每个端口具有的服务等级的服务等级标识。该目标报文格式中的转发时延字段用于存储每个服务等级对应的转发时延,该目标报文格式中的突发字段用于存储每个服务等级的服务突发量,该目标格式中的带宽字段用于存储每个服务等级的服务带宽。该目标格式还可以包括最大突发字段,用于存储每个服务等级服务的一个数据流的最大突发量。该目标格式还可以包括目标标识字段,用于存储每个服务等级对应的目标标识。该目标格式还可以包括抖动字段,用于存储每个服务等级对应的抖动阈值。该目标报文格式还可以包括最小时延字段,用于存储该第一转发节点的固有时延。该目标报文格式还可以包括置信概率字段,用于存储每个服务等级对应的置信概率。例如图6所示的本申请实施例提供的一种目标报文格式的示意图。The first forwarding node may generate the service level information based on the target message format under the service level protocol, where the target message format may be tag-length-value (tag-length-value, TLV), and The identification field in the target message format is used to store the service level identification of each service level of each port of the first forwarding node. In a possible implementation manner, the identification field can store the first forwarding node's The node identifier, the port identifier of each port, and the service level identifier of the service level of each port. The forwarding delay field in the target message format is used to store the forwarding delay corresponding to each service level, and the burst field in the target message format is used to store the service burst volume of each service level. The target format The bandwidth field in is used to store the service bandwidth of each service class. The target format may also include a maximum burst field, which is used to store the maximum burst of one data stream of each service level service. The target format may also include a target identification field, which is used to store the target identification corresponding to each service level. The target format may also include a jitter field, which is used to store the jitter threshold corresponding to each service level. The target message format may also include a minimum delay field, which is used to store the inherent delay of the first forwarding node. The target message format may also include a confidence probability field, which is used to store the confidence probability corresponding to each service level. For example, FIG. 6 shows a schematic diagram of a target message format provided by an embodiment of the present application.
需要说明的是,本申请实施例还可以先执行步骤402和403,再执行步骤401,本申请实 施例对步骤401-403的执行顺序不做具体限定。It should be noted that the embodiment of the present application may also perform steps 402 and 403 first, and then perform step 401. The embodiment of the present application does not specifically limit the execution order of steps 401-403.
404、控制节点获取数据流的传输参数以及第一转发节点的服务等级信息,该第一转发节点的服务等级信息包括该第一转发节点的至少一个服务等级的传输参数。404. The control node obtains the transmission parameter of the data stream and the service level information of the first forwarding node, where the service level information of the first forwarding node includes at least one service level transmission parameter of the first forwarding node.
该数据流的传输路径可以仅包括该第一转发节点,也可以包括除第一转发节点以外的第二转发节点。该控制节点可以通过接收目标节点发送的该数据流的传输参数,得到该数据流的传输参数。该控制节点可以通过接收第一转发节点发送的服务等级信息,得到该第一转发节点的服务等级信息。或者,该控制节点每接收到一个转发节点的服务等级信息后,对该转发节点的服务等级信息进行存储,当接收到该数据流的传输参数后,控制节点基于该数据流的传输路径,确定该传输路径上的第一转发节点,控制节点可以从存储的多个转发节点的服务等级信息,筛选出该第一转发节点的服务等级信息。The transmission path of the data stream may include only the first forwarding node, or may include a second forwarding node other than the first forwarding node. The control node may obtain the transmission parameters of the data stream by receiving the transmission parameters of the data stream sent by the target node. The control node may obtain the service level information of the first forwarding node by receiving the service level information sent by the first forwarding node. Alternatively, after the control node receives the service level information of a forwarding node, it stores the service level information of the forwarding node. After receiving the transmission parameters of the data stream, the control node determines based on the transmission path of the data stream. For the first forwarding node on the transmission path, the control node may filter out the service level information of the first forwarding node from the stored service level information of multiple forwarding nodes.
405、控制节点根据该数据流的传输参数以及该第一转发节点的服务等级信息,从该第一转发节点的至少一个服务等级中,确定第一转发节点用于转发该数据流的目标服务等级,该第一转发节点的目标服务等级的传输参数与该数据流的传输参数满足第一目标条件。405. The control node determines the target service level of the first forwarding node for forwarding the data flow from at least one service level of the first forwarding node according to the transmission parameters of the data flow and the service level information of the first forwarding node , The transmission parameter of the target service level of the first forwarding node and the transmission parameter of the data stream satisfy the first target condition.
该第一目标条件可以包括下述至少一项:该第一转发节点的目标服务等级对应的转发时延小于或等于数据流的传输时延(条件1);数据流的突发量与该第一转发节点的目标服务等级当前服务的数据流的突发量之和小于或等于该第一转发节点的目标服务等级对应的服务突发量(条件2);该传输带宽与该第一转发节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于该第一转发节点的目标服务等级对应的服务带宽(条件3)。在一种可能的实现方式中条件1还可以是:该第一转发节点的目标服务等级对应的转发时延与目标时延之和小于或等于该传输时延,该目标时延为数据流的传输路径的固有时延,或者说,该目标时延为数据流在该转发路径上传输过程中,除转发节点转发数据流以外的时间。传输路径的固有时延可以包括该传输路径上节点之间的传输时延,传输路径上节点之间的传输时延可以包括发送节点与该传输路径上首个转发节点之间的传输时延、转发节点之间的传输时延以及该传输路径上最后一个转发节点与接收节点之间的传输时延,其中,节点之间的传输时延可以是光纤时延,也可以是其他用于传输数据流的材质所引发的时延。该传输路径的固有时延还可以包括该传输路径上转发节点的固有时延,也即是该传输路径的固有时延还可以包括该传输路径上转发节点的端口时延和任务时延,该传输路径的固有时延可以是该传输路径上节点之间的传输时延与该传输路径上转发节点的固有时延之和。The first target condition may include at least one of the following: the forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay of the data stream (condition 1); The target service level of a forwarding node and the sum of the bursts of data streams currently served is less than or equal to the service burst corresponding to the target service level of the first forwarding node (condition 2); the transmission bandwidth is the same as that of the first forwarding node The sum of the transmission bandwidths of the data streams currently served by the target service level of is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node (condition 3). In a possible implementation manner, condition 1 may also be: the sum of the forwarding delay corresponding to the target service level of the first forwarding node and the target delay is less than or equal to the transmission delay, and the target delay is the data flow The inherent delay of the transmission path, in other words, the target delay is the time during which the data stream is transmitted on the forwarding path, except for the time that the forwarding node forwards the data stream. The inherent delay of the transmission path may include the transmission delay between nodes on the transmission path, and the transmission delay between nodes on the transmission path may include the transmission delay between the sending node and the first forwarding node on the transmission path, The transmission delay between the forwarding nodes and the transmission delay between the last forwarding node and the receiving node on the transmission path. The transmission delay between the nodes can be optical fiber delay or other data transmission delays. The delay caused by the material of the stream. The inherent delay of the transmission path may also include the inherent delay of the forwarding node on the transmission path, that is, the inherent delay of the transmission path may also include the port delay and task delay of the forwarding node on the transmission path. The inherent delay of the transmission path may be the sum of the transmission delay between nodes on the transmission path and the inherent delay of the forwarding node on the transmission path.
当该数据流的传输参数中的内容与该目标条件的内容对应,若该数据流的传输参数仅包括该数据流的传输时延,则该第一目标条件为条件1,若该数据流的传输参数包括数据流的传输时延和突发量,则该第一目标条件包括条件1-2,若该数据流的传输参数包括数据流的传输时延、突发量以及带宽,则该第一目标条件包括条件1-3。When the content of the transmission parameter of the data stream corresponds to the content of the target condition, and if the transmission parameter of the data stream only includes the transmission delay of the data stream, the first target condition is condition 1, if the data stream’s transmission parameters The transmission parameters include the transmission delay and burst volume of the data stream, and the first target condition includes conditions 1-2. If the transmission parameters of the data stream include the transmission delay, burst volume, and bandwidth of the data stream, the first target condition A target condition includes conditions 1-3.
该控制节点可以将第一目标条件作为最大约束条件,基于该数据流的传输参数以及第一转发节点的至少一个服务等级的传输参数,从第一转节点的至少一个服务等级中,筛选出该第一转发节点的目标服务等级。例如,当该传输路径上仅包括第一转发节点,第一转发节点包括服务等级A和B,且第一目标条件包括条件1-3时,若服务等级A对应的转发时延小于或等于该数据流的传输时延,服务等级A当前服务的数据流的突发量与该数据流的突发量之和小于或等于服务等级A对应的服务突发量,且该数据流的传输带宽与服务等级A当前服务的数据流的传输带宽之和小于或等于该服务等级A对应的服务带宽,则该控制节点可以将服 务等级A作为目标服务等级,否则,控制节点可以对服务等级B进行判断,若服务等级B的传输参数和该数据流的传输参数满足第一目标条件,则将服务等级B作为目标服务等级。The control node may use the first target condition as the maximum constraint, and based on the transmission parameters of the data stream and the transmission parameters of at least one service level of the first forwarding node, filter out the at least one service level of the first forwarding node. The target service level of the first forwarding node. For example, when the transmission path includes only the first forwarding node, the first forwarding node includes service levels A and B, and the first target condition includes conditions 1-3, if the forwarding delay corresponding to service level A is less than or equal to this The transmission delay of the data stream, the sum of the burst volume of the data stream currently served by service class A and the burst volume of the data stream is less than or equal to the service burst volume corresponding to service class A, and the transmission bandwidth of the data stream is equal to The sum of the transmission bandwidth of the data streams currently served by the service level A is less than or equal to the service bandwidth corresponding to the service level A, the control node can use the service level A as the target service level, otherwise, the control node can judge the service level B If the transmission parameters of the service level B and the transmission parameters of the data stream meet the first target condition, the service level B is taken as the target service level.
当数据流的传输路径上包括多个转发节点时,多个转发节点的目标服务等级的传输参数和该数据流的传输参数还可以满足第二目标条件,在一种可能的实现方式中,控制节点还可以通过下述步骤1-2所示的过程,得到该传输路径上第二转发节点的目标服务等级。When the transmission path of the data stream includes multiple forwarding nodes, the transmission parameters of the target service level of the multiple forwarding nodes and the transmission parameters of the data stream can also satisfy the second target condition. In a possible implementation manner, control The node can also obtain the target service level of the second forwarding node on the transmission path through the process shown in steps 1-2 below.
步骤1、控制节点获取第二转发节点的服务等级信息,该第二转发节点为该数据流的传输路径上除该第一转发节点以外的节点。 Step 1. The control node obtains service level information of a second forwarding node, where the second forwarding node is a node other than the first forwarding node on the transmission path of the data stream.
在本申请中,任一转发节点的服务等级信息可以包括该转发节点的至少一个服务等级的传输参数,因此,第二转发节点的服务等级信息可以包括第二转发节点的至少一个服务等级的传输参数。控制节点获取第二转发节点的服务等级信息的过程与步骤404中控制节点获取第一转动节点的服务等级信息的过程同理,在此,本申请实施例对本步骤1不做赘述。In this application, the service level information of any forwarding node may include the transmission parameters of at least one service level of the forwarding node. Therefore, the service level information of the second forwarding node may include the transmission of at least one service level of the second forwarding node. parameter. The process for the control node to obtain the service level information of the second forwarding node is the same as the process for the control node to obtain the service level information of the first rotating node in step 404. Here, this step 1 is not described in detail in the embodiment of the present application.
步骤2、控制节点根据该数据流的传输参数、该第一转发节点的服务等级信息以及该第二转发节点的服务等级信息,从该第二转发节点的至少一个服务等级中,确定该第二转发节点用于转发该数据流的目标服务等级,该第一转发节点的目标服务等级的传输参数、该第二转发节点的目标服务等级的传输参数以及该数据流的传输参数满足第二目标条件。 Step 2. According to the transmission parameters of the data stream, the service level information of the first forwarding node, and the service level information of the second forwarding node, the control node determines the second forwarding node from at least one service level of the second forwarding node. The forwarding node is used to forward the target service level of the data stream, the transmission parameters of the target service level of the first forwarding node, the transmission parameters of the target service level of the second forwarding node, and the transmission parameters of the data stream satisfy the second target condition .
该第二目标条件可以包括下述至少一项:该第一转发节点的目标服务等级对应的转发时延与该第二转发节点的目标服务等级对应的转发时延之和小于或等于该传输时延(条件a);对于该第一转发节点和该第二转发节点中的任一节点,该数据流的突发量与该节点的目标服务等级当前服务的数据流的突发量之和小于或等于该节点的目标服务等级对应的服务突发量(条件b);该数据流的传输带宽与该节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于该节点的目标服务等级对应的服务带宽(条件c)。The second target condition may include at least one of the following: the sum of the forwarding delay corresponding to the target service level of the first forwarding node and the forwarding delay corresponding to the target service level of the second forwarding node is less than or equal to the transmission time Extension (condition a); for any one of the first forwarding node and the second forwarding node, the sum of the burst volume of the data stream and the burst volume of the data stream currently served by the node’s target service level is less than Or equal to the service burst corresponding to the target service level of the node (condition b); the sum of the transmission bandwidth of the data stream and the transmission bandwidth of the current service data stream of the target service level of the node is less than or equal to the target service of the node The service bandwidth corresponding to the level (condition c).
在一种可能的实现方式中条件a还可以是:该第一转发节点的目标服务等级对应的转发时延、该第二转发节点的目标服务等级对应的转发时延以及目标时延之和小于或等于该数据流的传输时延,该目标时延为该传输路径的固有时延。In a possible implementation manner, condition a may also be: the sum of the forwarding delay corresponding to the target service level of the first forwarding node, the forwarding delay corresponding to the target service level of the second forwarding node, and the target delay is less than Or equal to the transmission delay of the data stream, and the target delay is the inherent delay of the transmission path.
当该传输路径上包括多个转发节点时,条件a也即是多个转发节点的目标服务等级对应的转发时延之和小于或等于该数据流的传输时延。条件a还可以是多个转发节点的目标服务等级对应的转发时延与该目标时延之和小于或等于该数据流的传输时延。When the transmission path includes multiple forwarding nodes, the condition a is that the sum of the forwarding delays corresponding to the target service levels of the multiple forwarding nodes is less than or equal to the transmission delay of the data stream. Condition a may also be that the sum of the forwarding delay corresponding to the target service level of the multiple forwarding nodes and the target delay is less than or equal to the transmission delay of the data stream.
该控制节点可以将第二目标条件作为最大约束条件,基于该数据流的传输参数、第一转发节点的至少一个服务等级的传输参数以及第二转发节点的至少一个服务等级的传输参数,进行求解,得到第一转发节点的目标服务等级和第二转发节点的目标服务等级。该控制节点先随机筛选出至少一组服务等级,其中,一组服务等级包括该传输路径上每个转发节点的一个服务等级,也即是包括第一转发节点的一个服务等级以及第二转发节点的一个服务等级。对于任一组服务等级,若该组服务等级中的服务等级的传输参数和该业务流的传输参数满足第二目标条件,则将该组服务等级中的每个服务等级确定为各个转发节点的目标服务等级,否则,不能采用该组服务等级服务该数据流,并对下一组服务等级进行判断,直至一组服务等级中服务等级的传输参数与该数据流的传输参数满足该第二目标条件为止。The control node may use the second target condition as the maximum constraint condition, and perform the solution based on the transmission parameters of the data stream, the transmission parameters of at least one service level of the first forwarding node, and the transmission parameters of at least one service level of the second forwarding node , Obtain the target service level of the first forwarding node and the target service level of the second forwarding node. The control node first randomly screens out at least one set of service levels, where a set of service levels includes a service level of each forwarding node on the transmission path, that is, includes a service level of the first forwarding node and the second forwarding node A level of service. For any group of service levels, if the transmission parameters of the service levels in the group of service levels and the transmission parameters of the service flow meet the second target condition, each service level in the group of service levels is determined as the value of each forwarding node The target service level, otherwise, the group of service levels cannot be used to serve the data stream, and the next group of service levels are judged until the transmission parameters of the service level in the group of service levels and the transmission parameters of the data stream meet the second target Conditions so far.
若该第二目标条件包括条件a-c,对于任一组服务等级,该控制节点可以对该组服务等级中的各个服务等级对应的转发时延进行求和,得到目标和值;若条件a为:多个转发节点的目标服务等级对应的转发时延之和小于或等于该数据流的传输时延,则该控制节点可以对目 标和值与数据量的传输时延进行对比,当该目标和值小于或等于数据流的传输时延时,则该组服务等级满足条件a,否则该组服务等级不满足条件a;若条件a为:多个转发节点的目标服务等级对应的转发时延与该目标时延之和小于或等于该数据流的传输时延,则控制节点将该目标和值与目标时延之间的和值与该数据流的传输时延进行对比,当该目标和值与目标时延之间的和值小于或等于该数据流的传输时延,则该组服务等级满足条件a,否则该组服务等级不满足条件a。If the second target condition includes the condition ac, for any group of service levels, the control node can sum the forwarding delays corresponding to each service level in the group of service levels to obtain the target sum value; if the condition a is: The sum of the forwarding delays corresponding to the target service levels of multiple forwarding nodes is less than or equal to the transmission delay of the data stream, then the control node can compare the target sum value with the transmission delay of the data volume, and when the target sum value is Less than or equal to the transmission time delay of the data stream, the group of service levels meets the condition a, otherwise the group of service levels does not meet the condition a; if the condition a is: the forwarding delay corresponding to the target service level of multiple forwarding nodes corresponds to the If the sum of the target delay is less than or equal to the transmission delay of the data stream, the control node compares the sum of the target sum and the target delay with the transmission delay of the data stream. The sum of the target delays is less than or equal to the transmission delay of the data stream, then the group of service levels meets the condition a, otherwise the group of service levels does not meet the condition a.
若该组服务等级不满足条件a,则控制节点不采用该组服务等级,并对下一组服务等级进行判断。若该组服务等级满足条件a,对于该组服务等级a中的任一个服务等级,该控制节点可以获取该服务等级当前所服务的数据流的突发量,再计算该服务等级当前所服务的数据流的突发量与该数据流的突发量之和(和值记为该服务等级的目标突发量),该控制节点对该服务等级的目标突发量与该服务等级对应的服务突发量进行对比,若该服务等级的目标突发量小于或等于该服务等级对应的服务突发量,则该服务等级的服务突发量和该数据流的突发量满足条件b,若该组服务等级中的每个服务等级的服务突发量和该数据流的突发量均满足条件b,则该组服务等级满足条件b,否则该组服务等级不满足条件b。If the group of service levels does not meet the condition a, the control node does not adopt the group of service levels, and judges the next group of service levels. If the group of service levels meets the condition a, for any service level in the group of service levels a, the control node can obtain the burst volume of the data stream currently served by the service level, and then calculate the current service level of the service level The sum of the burst volume of the data stream and the burst volume of the data stream (the sum is recorded as the target burst volume of the service level), the target burst volume of the control node for the service level and the service corresponding to the service level The burst volume is compared. If the target burst volume of the service level is less than or equal to the service burst volume corresponding to the service level, the service burst volume of the service level and the burst volume of the data stream meet the condition b, if The burst volume of each service level in the group of service levels and the burst volume of the data stream both satisfy the condition b, then the group of service levels meets the condition b, otherwise the group of service levels does not meet the condition b.
若该组服务等级不满足条件b,则控制节点不采用该组服务等级,并对下一组服务等级进行判断。若该组服务等级满足条件b,该控制节点可以获取该服务等级当前所服务的数据流的传输带宽量,再计算该服务等级当前所服务的数据流的传输带宽与该数据流的传输带宽之和(和值记为该服务等级的目标传输带宽),则该控制节点可以再对该服务等级对应的服务带宽与该服务等级的目标传输带宽进行对比,若该服务等级的目标传输带宽小于或等于该服务等级对应的服务带宽,则该服务等级的服务带宽和该数据流的传输带宽满足条件c,若该组服务等级中的每个服务等级的传输带宽和该数据流的传输带宽均满足条件c,则该组服务等级满足条件c,否则该组服务等级不满足条件c。If the group of service levels does not meet the condition b, the control node does not adopt the group of service levels, and judges the next group of service levels. If the group of service levels meets condition b, the control node can obtain the transmission bandwidth of the data stream currently served by the service level, and then calculate the transmission bandwidth of the data stream currently served by the service level and the transmission bandwidth of the data stream. And (the sum value is recorded as the target transmission bandwidth of the service level), the control node can then compare the service bandwidth corresponding to the service level with the target transmission bandwidth of the service level, if the target transmission bandwidth of the service level is less than or Equal to the service bandwidth corresponding to the service level, then the service bandwidth of the service level and the transmission bandwidth of the data stream meet the condition c, if the transmission bandwidth of each service level in the group of service levels and the transmission bandwidth of the data stream both satisfy Condition c, then the service level of the group meets the condition c, otherwise the service level of the group does not meet the condition c.
若该组服务等级满足条件a-c,则说明该组服务等级中的服务等级的传输参数与该数据流的传输参数满足第二目标条件,则控制节点可以将该组服务等级中的各个服务等级分别作为该传输路径上各个转发节点的目标服务等级。If the group of service levels satisfies the condition ac, it means that the transmission parameters of the service levels in the group of service levels and the transmission parameters of the data stream meet the second target condition, and the control node can separate each service level in the group of service levels. As the target service level of each forwarding node on the transmission path.
例如图7所示的本申请实施例提供的一种确定目标服务等级的示意图。该数据流的传输时延为5ms,突发量为100Kbit,传输带宽为20Mbps,该数据流a的传输路径为图7中的传输路径1,传输路径1包括转发节点R1、R2以及R4,其中,转发节点R1的服务等级信息为图7中的表1,转发节点R2和R4的服务等级信息均为图7中的表2,转发节点R1具有服务等级A-C,服务等级A-C对应的转发时延分别为2ms、4ms以及10ms,转发节点R2和R4均具有服务等级A-D,服务等级A-D对应的转发时延分别为0.5ms、1ms、2ms以及4ms,控制节点可以先将转发节点R1的服务等级A,转发节点R2的服务等级B以及转发节点R4的服务等级B作为一组服务等级,此时传输路径1的转发节点若采样一组服务等级的传输数据流a,则传输路径1上的实际传输时延可以是2+1+1+0.3<5ms,其中,0.3ms为传输路径1的固有时延,则此时这一组服务等级满足条件a,则该控制节点再对转发节点R1的服务等级A对应的服务突发量657bit进行判断,若转发节点R1的服务等级A当前服务的数据流的突发量与数据流a的突发量之和小于或等于657bit,则转发节点R1的服务等级A对应的服务突发量和数据流a的突发量满足条件b,则该控制节点再对转发节点R1的服务等级A对应的服务带宽125kbps进行判断,若该数据流a的传输带宽与该转发节点R1的服务等级A当前服务 的数据流的传输带宽之和小于或等于125kbps,则转发节点R1的服务等级A的服务带宽和数据流a的传输带宽满足条件c;若转发节点R1的服务等级A的传输参数和数据流a的服务等级满足均条件a-c,则转发节点R1的服务等级A满足第二目标条件,否则转发节点R1的服务等级A不满足第二目标条件;当转发节点R1的服务等级A满足第二目标条件,则该控制节点再对转发节点R2的服务等级B进行判断;当该组服务等级中任一个服务等级不满足第二目标条件,则该控制节点对下一组服务等级进行判断,当该组服务等级中任一个服务等级均满足第二目标条件,则控制节点将转发节点R1的服务等级A作为转发节点R1的目标服务等级,将转发节点R2的服务等级B为转发节点R2的目标服务等级,将转发节点R4的服务等级B作为转发节点R4的目标服务等级。For example, FIG. 7 shows a schematic diagram of determining a target service level provided by an embodiment of the application. The transmission delay of the data stream is 5ms, the burst volume is 100Kbit, and the transmission bandwidth is 20Mbps. The transmission path of the data stream a is transmission path 1 in Fig. 7, and transmission path 1 includes forwarding nodes R1, R2, and R4. , The service level information of the forwarding node R1 is Table 1 in Figure 7, the service level information of the forwarding nodes R2 and R4 are both Table 2 in Figure 7, the forwarding node R1 has a service level AC, and the forwarding delay corresponding to the service level AC Respectively 2ms, 4ms, and 10ms. Both forwarding nodes R2 and R4 have service level AD. The forwarding delays corresponding to service level AD are 0.5ms, 1ms, 2ms, and 4ms respectively. The control node can first forward the service level of node R1 to A , The service level B of the forwarding node R2 and the service level B of the forwarding node R4 are regarded as a group of service levels. At this time, if the forwarding node of the transmission path 1 samples a group of transmission data streams a of the service level, the actual transmission on the transmission path 1 The delay can be 2+1+1+0.3<5ms, where 0.3ms is the inherent delay of the transmission path 1. At this time, this group of service levels meets the condition a, and the control node will then serve the forwarding node R1 The service burst volume corresponding to level A is judged at 657 bits. If the sum of the burst volume of the data flow currently served by the forwarding node R1's service level A and the burst volume of the data stream a is less than or equal to 657 bits, the service of the forwarding node R1 The burst volume of service corresponding to level A and the burst volume of data stream a meet condition b, then the control node then judges the service bandwidth of 125kbps corresponding to service level A of forwarding node R1, if the transmission bandwidth of data stream a is equal to The sum of the transmission bandwidth of the data stream currently served by the forwarding node R1 of service level A is less than or equal to 125kbps, then the service bandwidth of the forwarding node R1’s service level A and the transmission bandwidth of the data stream a meet the condition c; if the forwarding node R1’s The transmission parameters of service level A and the service level of data stream a meet the condition ac, then the service level A of the forwarding node R1 meets the second target condition, otherwise the service level A of the forwarding node R1 does not meet the second target condition; when the forwarding node The service level A of R1 meets the second target condition, the control node then judges the service level B of the forwarding node R2; when any service level in the group of service levels does not meet the second target condition, the control node will A group of service levels are judged. When any service level in the group of service levels meets the second target condition, the control node will forward the service level A of the forwarding node R1 as the target service level of the forwarding node R1, and forward the service of the forwarding node R2. The level B is the target service level of the forwarding node R2, and the service level B of the forwarding node R4 is taken as the target service level of the forwarding node R4.
在一种可能的实现方式中,第一转发节点的目标服务等级和数据流的传输参数还可以仅满足条件1和条件3,而不满足条件2,后续可以通过整流的方式,使得数据流的实际突发量以及目标服务器的服务突发量满足条件2。In a possible implementation manner, the target service level of the first forwarding node and the transmission parameters of the data stream can also only meet condition 1 and condition 3, but not condition 2, and the subsequent rectification can be used to make the data stream smooth The actual burst volume and the service burst volume of the target server meet condition 2.
在一种可能的实现方式中,当该数据流的突发量大于该第一转发节点的目标服务等级对应的服务突发量时,向待整流节点发送整流请求,该整流请求用于指示对该数据流进行整流,整流后的该数据流的突发量小于或等于该第一转发节点的目标服务等级对应的服务突发量。该待整流节点为该数据流的传输路径上第一转发节点之前转发节点、目标终端或该传输路径的首个转发节点,该目标终端用于发送该数据流,该目标终端也即是该数据流的发送节点。In a possible implementation manner, when the burst volume of the data stream is greater than the service burst volume corresponding to the target service level of the first forwarding node, a rectification request is sent to the node to be rectified, and the rectification request is used to indicate The data stream is rectified, and the burst volume of the rectified data stream is less than or equal to the service burst volume corresponding to the target service level of the first forwarding node. The node to be rectified is the forwarding node before the first forwarding node on the transmission path of the data stream, the target terminal, or the first forwarding node of the transmission path. The target terminal is used to send the data stream, and the target terminal is also the data The sending node of the stream.
当待整流节点接收到该整流请求时,则该待整流节点在将该数据流输出之前,可以先对该数据流进行整流,使得整流后的数据流的突发量小于或等于该第一转发节点的目标服务等级,该待整流节点再输出整流后的数据流。需要说明的是,当传输路径上多个转发节点的目标服务等级对应的服务突发量均小于该数据流的突发量时,则该第一转发节点为该多个转发节点中目标服务等级对应的服务突发量最小的转发节点。When the node to be rectified receives the rectification request, the node to be rectified may first rectify the data stream before outputting the data stream, so that the burst amount of the rectified data stream is less than or equal to the first forwarding The target service level of the node, the node to be rectified then outputs the rectified data stream. It should be noted that when the service bursts corresponding to the target service levels of multiple forwarding nodes on the transmission path are all less than the bursts of the data flow, then the first forwarding node is the target service level of the multiple forwarding nodes. The corresponding forwarding node with the smallest service burst.
需要说明的是,当控制节点向该传输路径的首个转发节点发送整流请求时,该条件a还可以是:该第一转发节点的目标服务等级对应的转发时延和第二转发节点的目标服务等级的对应的转发时延之和小于或等于第一时延,其中,第一时延为该传输时延与整流时延的差值,整流时延可以表示为(p-q)/f,其中,P为第一转发节点的目标服务等级对应的服务突发量,q为该数据流的突发量,f为该数据流的传输带宽。It should be noted that when the control node sends a rectification request to the first forwarding node of the transmission path, the condition a may also be: the forwarding delay corresponding to the target service level of the first forwarding node and the target of the second forwarding node The sum of the corresponding forwarding delays of the service level is less than or equal to the first delay, where the first delay is the difference between the transmission delay and the rectification delay, and the rectification delay can be expressed as (pq)/f, where , P is the service burst volume corresponding to the target service level of the first forwarding node, q is the burst volume of the data stream, and f is the transmission bandwidth of the data stream.
406、控制节点向该第一转发节点发送服务等级配置请求,该服务等级配置请求用于指示采用第一转发节点的目标服务等级对该数据流进行传输。406. The control node sends a service level configuration request to the first forwarding node, where the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream.
当该数据流的传输路径包括多个转发节点时,对于该多个转发节点中的任一转发节点,该控制节点可以向该任一转发节点发送服务等级配置请求,对于向任一转发节点发送的服务等级配置请求,该服务配置请求可以包括该转发节点的目标服务等级的服务等级标识以及该数据流的流标识,该数据流的流标识用于唯一指示该数据流。当第一转发节点的目标服务等级对应的服务突发量小于该数据流的突发量时,该服务等级配置请求还包括第一转发节点的目标服务等级对应的服务突发量。When the transmission path of the data stream includes multiple forwarding nodes, for any forwarding node in the multiple forwarding nodes, the control node may send a service level configuration request to any forwarding node, and for sending to any forwarding node The service level configuration request may include the service level identification of the target service level of the forwarding node and the flow identification of the data flow, and the flow identification of the data flow is used to uniquely indicate the data flow. When the service burst volume corresponding to the target service level of the first forwarding node is less than the burst volume of the data flow, the service level configuration request further includes the service burst volume corresponding to the target service level of the first forwarding node.
在执行本步骤406之前,该控制节点可以基于服务等级(service level)协议下的第一报文格式,生成该服务等级配置请求,该第一报文格式可以是TLV。该第一报文格式中的服务等级选择字段用于存储第一转发节点的目标服务等级的服务等级标识以及该数据流的流标识,该目标报文格式中的突发字段用于存储第一转发节点的目标服务等级对应的服务突发量,以 指示待整流节点对该数据流进行整流,使得整流后的数据流的突发量不超过第一转发节点的目标等级的服务突发量。例如图8所示的本申请实施例提供的一种第一报文格式的示意图。Before performing this step 406, the control node may generate the service level configuration request based on the first message format under the service level protocol, and the first message format may be TLV. The service level selection field in the first message format is used to store the service level identifier of the target service level of the first forwarding node and the flow identifier of the data flow, and the burst field in the target message format is used to store the first The service burst amount corresponding to the target service level of the forwarding node is used to instruct the node to be rectified to rectify the data stream, so that the burst amount of the rectified data stream does not exceed the service burst amount of the target level of the first forwarding node. For example, FIG. 8 shows a schematic diagram of a first message format provided by an embodiment of the present application.
407、第一转发节点接收该服务等级配置请求。407. The first forwarding node receives the service level configuration request.
408、该第一转发节点根据该服务等级配置请求进行服务等级配置,以采用该第一转发节点的目标服务等级对该数据流进行传输。408. The first forwarding node performs service level configuration according to the service level configuration request, so as to use the target service level of the first forwarding node to transmit the data stream.
该第一转发节点可以将该服务配置请求中的目标服务等级的服务等级标识以及该数据流的流标识进行关联存储,从而实现服务等级配置,当第一转发节点接收到该数据流后,该第一转发节点通过查找与该数据流的流标识关联的服务等级标识,可以确定该数据流对应的目标服务等级,从而该第一转发节点可以基于该数据流对应的目标服务等级传输该数据流。The first forwarding node may associate and store the service level identifier of the target service level in the service configuration request and the flow identifier of the data flow, so as to realize the service level configuration. When the first forwarding node receives the data flow, the The first forwarding node can determine the target service level corresponding to the data stream by searching for the service level identifier associated with the stream identifier of the data stream, so that the first forwarding node can transmit the data stream based on the target service level corresponding to the data stream .
该关联存储可以是将第一转发节点的目标服务等级的服务等级标识以及该数据流的流标识进行存储在服务等级配置表中,以便后续查找。当第一转发节点有多个端口时,该第一转发节点还可以将第一转发节点的目标服务等级的服务等级标识、该数据流的流标识以及该第一转发节点用于转发该数据流的端口的端口标识,存储在服务等级配置表中。例如表3所示的服务等级配置表,当接收到数据流1时,通过查找表3,该第一转发节点可以在端口1,采用端口1的服务等级A转发数据流1,当接收到数据流2时,通过查找表3,该第一转发节点可以在端口2,采用端口2的服务等级A转发数据流1。The associated storage may be to store the service level identifier of the target service level of the first forwarding node and the flow identifier of the data flow in the service level configuration table for subsequent search. When the first forwarding node has multiple ports, the first forwarding node may also use the service level identifier of the target service level of the first forwarding node, the flow identifier of the data flow, and the first forwarding node for forwarding the data flow The port identifier of the port is stored in the service level configuration table. For example, in the service level configuration table shown in Table 3, when data stream 1 is received, the first forwarding node can use port 1 service level A to forward data stream 1 at port 1 by looking up table 3. When data stream 1 is received In the case of flow 2, by looking up table 3, the first forwarding node can forward data flow 1 at port 2 using service class A of port 2.
表3table 3
流标识Flow identification 服务等级标识Service level identification 端口标识Port identification
数据流1Data stream 1 服务等级AService level A 端口1Port 1
数据流2Data flow 2 服务等级AService level A 端口2Port 2
409、第一转发节点向控制节点发送第一配置成功响应,该第一配置成功响应用于指示对该数据流所进行的服务等级配置已经配置成功。409. The first forwarding node sends a first configuration success response to the control node, where the first configuration success response is used to indicate that the service level configuration performed on the data stream has been configured successfully.
该第一配置成功响应可以携带该数据流的流标识以及该第一转发节点的节点标识,该第一转发节点的节点标识用于唯一指示该第一转发节点,该节点标识可以是该第一转发节点的网络地址,或者是该第一转发节点在该控制节点注册过的节点标识,本申请实施例对节点标识的表示方式不做具体限定。The first configuration success response may carry the flow identifier of the data flow and the node identifier of the first forwarding node. The node identifier of the first forwarding node is used to uniquely indicate the first forwarding node, and the node identifier may be the first forwarding node. The network address of the forwarding node, or the node identifier that the first forwarding node has registered with the control node, the embodiment of the present application does not specifically limit the manner in which the node identifier is expressed.
410、该控制节点向目标节点发送第二配置成功响应,该第二配置成功响应用于指示各个转发节点对该数据流所进行的服务等级配置均已配置成功。410. The control node sends a second configuration success response to the target node, where the second configuration success response is used to indicate that the service level configuration performed by each forwarding node for the data stream has been successfully configured.
当该数据流的传输路径上仅有一个第一转发节点时,若该控制节点接收到第一转发节点发送的第一配置成功响应,则说明该传输路径上的转发节点对该数据流完成服务等级配置,则该控制节点可以执行本步骤410。当该数据流的传输路径上有多个转发节点时,控制节点向多个转发节点发送服务等级配置请求,以便多个转发节点可以根据接收的服务等级配置请求所携带的目标服务等级,进行服务等级配置,当任一转发节点配置成功后,向该控制节点发送第一配置成功响应,若控制节点接收到数据路径上各个转发节点发送的第一配置成功响应,则说明该传输路径上的转发节点对该数据流完成服务等级配置,则该控制节点可以执行本步骤410。需要说明的是,向任一转发节点发送的服务等级配置请求用于指示采用该任一转发节点的目标服务等级对该数据流进行传输,每个转发节点的目标服务等级可以相同,也可以不同,每个转发节点的目标服务等级由第二目标条件来决定。When there is only one first forwarding node on the transmission path of the data stream, if the control node receives the first configuration success response sent by the first forwarding node, it means that the forwarding node on the transmission path has completed the service for the data stream. If the level is configured, the control node can execute this step 410. When there are multiple forwarding nodes on the transmission path of the data stream, the control node sends a service level configuration request to multiple forwarding nodes so that multiple forwarding nodes can perform services according to the target service level carried in the received service level configuration request Level configuration, when any forwarding node is successfully configured, it sends a first configuration success response to the control node. If the control node receives the first configuration success response sent by each forwarding node on the data path, it indicates the forwarding on the transmission path If the node completes the service level configuration for the data stream, the control node can execute this step 410. It should be noted that the service level configuration request sent to any forwarding node is used to instruct to use the target service level of any forwarding node to transmit the data stream, and the target service level of each forwarding node can be the same or different , The target service level of each forwarding node is determined by the second target condition.
该第二配置成功响应可以包括该数据流的流标识以及该控制节点的节点标识,该控制节 点的节点标识用于唯一指示该控制节点,可以是该控制节点的网络地址,本申请实施例对该控制节点的节点标识不做具体限定。The second configuration success response may include the flow identifier of the data flow and the node identifier of the control node. The node identifier of the control node is used to uniquely indicate the control node, which may be the network address of the control node. The node identifier of the control node is not specifically limited.
当第一转发节点的服务突发量小于该数据流的突发量,且该目标节点为该数据流的发送节点时,该第二配置成功响应还可以包括该第一转发节点的服务突发量,以指示该目标节点对该数据流进行整流,使得整流后的数据流的突发量小于或等于第一转发节点的服务突发量。When the service burst of the first forwarding node is less than the burst of the data flow, and the target node is the sending node of the data flow, the second configuration success response may also include the service burst of the first forwarding node To instruct the target node to rectify the data stream, so that the burst volume of the rectified data stream is less than or equal to the service burst volume of the first forwarding node.
该第二配置成功响应还可以包括该数据流从发送节点输入至接收节点的最小传输时延,该最小传输时延可以是目标时延。例如图9所示的本申请实施例提供的一种第二报文格式的最小时延字段的示意图,当控制节点基于第二报文格式,生成该第二配置响应时,该控制节点可以将该数据流的最小传输时延添加在该第二报文格式的最小时延字段。The second configuration success response may further include the minimum transmission delay of the data stream input from the sending node to the receiving node, and the minimum transmission delay may be the target delay. For example, FIG. 9 shows a schematic diagram of the minimum delay field of the second message format provided by the embodiment of the present application. When the control node generates the second configuration response based on the second message format, the control node may The minimum transmission delay of the data stream is added to the minimum delay field of the second message format.
本申请实施例提供的方法,根据数据流的传输参数和第一转发节点的服务等级信息,直接确定第一转发节点用于转发该数据流的目标服务等级,并对第一转发节点进行服务等级配置,由于第一转发节点的目标服务等级的传输参数以及该数据流的传输参数满足第一目标条件,若第一目标条件为特殊业务所要求的时延需求,且第一转发节点采用目标服务等级传输数据流,则数据流的传输可以满足特殊业务所要求的时延需求。当传输路径上的转发节点的目标服务等级对应的转发时延之和小于或等于数据流的传输时延时,若传输路径上的转发节点采用目标服务等级传输数据流,则可以保证该数据流的实际的传输时延可以满足业务要求的传输时延。当数据流的突发量与传输路径上的转发节点的目标服务等级当前服务的数据流的突发量之和均小于或等于目标服务等级对应的服务突发量时,若传输路径上的转发节点采用目标服务等级传输数据流,则可以保证该数据流即使出现突发,依然能够在保证业务需求的情况下完成该数据流的传输。当数据流的传输带宽与传输路径上的转发节点的目标服务等级当前服务的数据流的传输带宽之和均小于或等于传输路径上的转发节点的目标服务等级对应的服务带宽,传输路径上的转发节点采用目标服务等级传输数据流,则可以保证该数据流的实际的传输带宽可以满足业务要求的传输带宽。并且,通过控制节点确定数据流的传输路径上各个转发节点的目标服务等级,从而可以达到动态配置服务等级的目的。The method provided by the embodiment of the application directly determines the target service level of the first forwarding node for forwarding the data flow according to the transmission parameters of the data flow and the service level information of the first forwarding node, and performs the service level on the first forwarding node Configuration, because the transmission parameters of the target service level of the first forwarding node and the transmission parameters of the data stream meet the first target condition, if the first target condition is the delay requirement required by the special service, and the first forwarding node adopts the target service Level transmission data stream, the transmission of the data stream can meet the delay requirements required by special services. When the sum of the forwarding delay corresponding to the target service level of the forwarding node on the transmission path is less than or equal to the transmission time delay of the data stream, if the forwarding node on the transmission path uses the target service level to transmit the data stream, the data stream can be guaranteed The actual transmission delay can meet the transmission delay required by the business. When the sum of the burst volume of the data stream and the target service level of the forwarding node on the transmission path and the current service burst volume of the data stream are less than or equal to the service burst volume corresponding to the target service level, if the forwarding on the transmission path If the node uses the target service level to transmit the data stream, it can be ensured that even if the data stream is bursty, it can still complete the data stream transmission while ensuring the business requirements. When the sum of the transmission bandwidth of the data stream and the target service level of the forwarding node on the transmission path is less than or equal to the service bandwidth corresponding to the target service level of the forwarding node on the transmission path, The forwarding node uses the target service level to transmit the data stream, which can ensure that the actual transmission bandwidth of the data stream can meet the transmission bandwidth required by the service. In addition, the control node determines the target service level of each forwarding node on the transmission path of the data stream, so that the purpose of dynamically configuring the service level can be achieved.
图10是本申请实施例提供的一种服务等级装置的结构示意图,该装置包括:FIG. 10 is a schematic structural diagram of a service level device provided by an embodiment of the present application, and the device includes:
获取模块1001,用于获取数据流的传输参数以及第一转发节点的服务等级信息,所述第一转发节点的服务等级信息包括所述第一转发节点的至少一个服务等级的传输参数;The obtaining module 1001 is configured to obtain transmission parameters of a data stream and service level information of a first forwarding node, where the service level information of the first forwarding node includes at least one service level transmission parameter of the first forwarding node;
确定模块1002,用于根据所述数据流的传输参数以及所述第一转发节点的服务等级信息,从所述第一转发节点的至少一个服务等级中,确定所述第一转发节点用于转发所述数据流的目标服务等级,所述第一转发节点的目标服务等级的传输参数与所述数据流的传输参数满足第一目标条件;The determining module 1002 is configured to determine that the first forwarding node is used for forwarding from at least one service level of the first forwarding node according to the transmission parameters of the data stream and the service level information of the first forwarding node The target service level of the data stream, and the transmission parameters of the target service level of the first forwarding node and the transmission parameters of the data stream satisfy a first target condition;
发送模块1003,用于向所述第一转发节点发送服务等级配置请求,所述服务等级配置请求用于指示采用所述第一转发节点的目标服务等级对所述数据流进行传输。The sending module 1003 is configured to send a service level configuration request to the first forwarding node, where the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream.
可选地,所述数据流的传输参数包括所述数据流的传输时延、突发量以及传输带宽;Optionally, the transmission parameters of the data stream include the transmission delay, burst volume, and transmission bandwidth of the data stream;
一个服务等级的传输参数包括所述服务等级对应的转发时延、服务突发量以及服务带宽,所述服务突发量为采用所述服务等级转发至少一个数据流时所容许的最大突发量,所述服务带宽为采用所述服务等级转发至少一个数据流时所容许的最大带宽。The transmission parameters of a service level include the forwarding delay, service burst volume, and service bandwidth corresponding to the service level, and the service burst volume is the maximum burst volume allowed when the service level is used to forward at least one data stream , The service bandwidth is the maximum bandwidth allowed when using the service level to forward at least one data stream.
可选地,所述第一目标条件包括下述至少一项:Optionally, the first target condition includes at least one of the following:
所述第一转发节点的目标服务等级对应的转发时延小于或等于所述传输时延;The forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay;
所述突发量与所述第一转发节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述第一转发节点的目标服务等级对应的服务突发量;The sum of the burst amount and the burst amount of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service burst amount corresponding to the target service level of the first forwarding node;
所述传输带宽与所述第一转发节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述第一转发节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node.
可选地,所述第一目标条件还包括:Optionally, the first target condition further includes:
所述第一转发节点的目标服务等级对应的转发时延与目标时延之和小于或等于所述传输时延,所述目标时延为所述数据流的传输路径的固有时延。The sum of the forwarding delay and the target delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay, and the target delay is the inherent delay of the transmission path of the data stream.
可选地,所述获取模块,还用于获取第二转发节点的服务等级信息,所述第二转发节点为所述数据流的传输路径上除所述第一转发节点以外的节点;Optionally, the obtaining module is further configured to obtain service level information of a second forwarding node, where the second forwarding node is a node other than the first forwarding node on the transmission path of the data stream;
所述确定模块,还用于根据所述数据流的传输参数、所述第一转发节点的服务等级信息以及所述第二转发节点的服务等级信息,从所述第二转发节点的至少一个服务等级中,确定所述第二转发节点用于转发所述数据流的目标服务等级,所述第一转发节点的目标服务等级的传输参数、所述第二转发节点的目标服务等级的传输参数以及所述数据流的传输参数满足第二目标条件。The determining module is further configured to obtain information from at least one service of the second forwarding node according to the transmission parameters of the data stream, the service level information of the first forwarding node, and the service level information of the second forwarding node. In the level, determining the target service level of the second forwarding node for forwarding the data stream, the transmission parameters of the target service level of the first forwarding node, the transmission parameters of the target service level of the second forwarding node, and The transmission parameter of the data stream satisfies the second target condition.
可选地,所述第二目标条件包括下述至少一项:Optionally, the second target condition includes at least one of the following:
所述第一转发节点的目标服务等级对应的转发时延与所述第二转发节点的目标服务等级对应的转发时延之和小于或等于所述传输时延;The sum of the forwarding delay corresponding to the target service level of the first forwarding node and the forwarding delay corresponding to the target service level of the second forwarding node is less than or equal to the transmission delay;
对于所述第一转发节点和所述第二转发节点中的任一节点,所述突发量与所述节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述节点的目标服务等级对应的服务突发量;For any one of the first forwarding node and the second forwarding node, the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the node is less than or equal to the node The service burst corresponding to the target service level;
所述传输带宽与所述节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the node is less than or equal to the service bandwidth corresponding to the target service level of the node.
可选地,所述第二目标条件还包括:Optionally, the second target condition further includes:
所述第一转发节点的目标服务等级对应的转发时延、所述第二转发节点的目标服务等级对应的转发时延以及目标时延之和小于或等于所述传输时延,所述目标时延为所述传输路径的固有时延。The sum of the forwarding delay corresponding to the target service level of the first forwarding node, the forwarding delay corresponding to the target service level of the second forwarding node, and the target delay is less than or equal to the transmission delay, and the target time The delay is the inherent delay of the transmission path.
可选地,所述固有时延包括所述传输路径上节点之间的传输时延、所述传输路径上转发节点的端口时延以及任务时延,所述端口时延为所述转发节点将数据流中的报文发送至所述转发节点的端口的时长,所述任务时延是所述转发节点为所述数据流中的报文分配转发任务的时长。Optionally, the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task delay, and the port delay is the time delay of the forwarding node. The length of time for the message in the data stream to be sent to the port of the forwarding node, and the task delay is the length of time for the forwarding node to allocate a forwarding task for the message in the data stream.
可选地,所述发送模块还用于:Optionally, the sending module is further used for:
当所述突发量大于所述第一转发节点的目标服务等级对应的服务突发量时,向待整流节点发送整流请求,所述整流请求用于指示对所述数据流进行整流,整流后的所述数据流的突发量小于或等于所述第一转发节点的目标服务等级对应的服务突发量。When the burst amount is greater than the service burst amount corresponding to the target service level of the first forwarding node, a rectification request is sent to the node to be rectified, where the rectification request is used to instruct to rectify the data stream. The burst volume of the data stream is less than or equal to the service burst volume corresponding to the target service level of the first forwarding node.
可选地,所述待整流节点为所述数据流的传输路径上所述第一转发节点之前的转发节点、目标终端或所述传输路径的首个转发节点,所述目标终端用于发送所述数据流。Optionally, the node to be rectified is a forwarding node before the first forwarding node on the transmission path of the data stream, a target terminal, or the first forwarding node of the transmission path, and the target terminal is used to transmit the data stream.述 data flow.
可选地,所述数据流包括至少一个业务流。Optionally, the data stream includes at least one service stream.
该装置根据数据流的传输参数和第一转发节点的服务等级信息,直接确定第一转发节点用于转发该数据流的目标服务等级,并对第一转发节点进行服务等级配置,由于第一转发节 点的目标服务等级的传输参数以及该数据流的传输参数满足第一目标条件,若第一目标条件为特殊业务所要求的时延需求,且第一转发节点采用目标服务等级传输数据流,则数据流的传输可以满足特殊业务所要求的时延需求。当传输路径上的转发节点的目标服务等级对应的转发时延之和小于或等于数据流的传输时延时,若传输路径上的转发节点采用目标服务等级传输数据流,则可以保证该数据流的实际的传输时延可以满足业务要求的传输时延。当数据流的突发量与传输路径上的转发节点的目标服务等级当前服务的数据流的突发量之和均小于或等于目标服务等级对应的服务突发量时,若传输路径上的转发节点采用目标服务等级传输数据流,则可以保证该数据流即使出现突发,依然能够在保证业务需求的情况下完成该数据流的传输。当数据流的传输带宽与传输路径上的转发节点的目标服务等级当前服务的数据流的传输带宽之和均小于或等于传输路径上的转发节点的目标服务等级对应的服务带宽,传输路径上的转发节点采用目标服务等级传输数据流,则可以保证该数据流的实际的传输带宽可以满足业务要求的传输带宽。并且,通过控制节点确定数据流的传输路径上各个转发节点的目标服务等级,从而可以达到动态配置服务等级的目的。The device directly determines the target service level of the first forwarding node for forwarding the data flow according to the transmission parameters of the data stream and the service level information of the first forwarding node, and configures the service level of the first forwarding node. The transmission parameters of the target service level of the node and the transmission parameters of the data stream meet the first target condition. If the first target condition is the delay requirement required by the special service, and the first forwarding node uses the target service level to transmit the data stream, then The transmission of data streams can meet the delay requirements required by special services. When the sum of the forwarding delay corresponding to the target service level of the forwarding node on the transmission path is less than or equal to the transmission time delay of the data stream, if the forwarding node on the transmission path uses the target service level to transmit the data stream, the data stream can be guaranteed The actual transmission delay can meet the transmission delay required by the business. When the sum of the burst volume of the data stream and the target service level of the forwarding node on the transmission path and the current service burst volume of the data stream are less than or equal to the service burst volume corresponding to the target service level, if the forwarding on the transmission path If the node uses the target service level to transmit the data stream, it can be ensured that even if the data stream is bursty, it can still complete the data stream transmission while ensuring the business requirements. When the sum of the transmission bandwidth of the data stream and the target service level of the forwarding node on the transmission path is less than or equal to the service bandwidth corresponding to the target service level of the forwarding node on the transmission path, The forwarding node uses the target service level to transmit the data stream, which can ensure that the actual transmission bandwidth of the data stream can meet the transmission bandwidth required by the service. In addition, the control node determines the target service level of each forwarding node on the transmission path of the data stream, so that the purpose of dynamically configuring the service level can be achieved.
图11是本申请实施例提供的一种服务等级配置装置的结构示意图,所述装置设于第一转发节点,该装置包括:FIG. 11 is a schematic structural diagram of a service level configuration device provided by an embodiment of the present application. The device is set at a first forwarding node, and the device includes:
接收模块1101,用于接收服务等级配置请求,所述服务等级配置请求用于指示采用所述装置的目标服务等级对数据流进行传输,所述装置的目标服务等级的传输参数与所述数据流的传输参数满足第一目标条件;The receiving module 1101 is configured to receive a service level configuration request, where the service level configuration request is used to instruct to use the target service level of the device to transmit the data stream, and the transmission parameters of the target service level of the device are the same as the data stream. The transmission parameters meet the first target condition;
配置模块1102,用于根据所述服务等级配置请求进行服务等级配置,以采用所述装置的目标服务等级对所述数据流进行传输。The configuration module 1102 is configured to perform service level configuration according to the service level configuration request, so as to use the target service level of the device to transmit the data stream.
可选地,所述数据流的传输参数包括所述数据流的传输时延、突发量以及传输带宽;Optionally, the transmission parameters of the data stream include the transmission delay, burst volume, and transmission bandwidth of the data stream;
所述装置的目标服务等级为所述装置的至少一个服务等级中的任一个,一个服务等级的传输参数包括所述服务等级对应的转发时延、服务突发量以及服务带宽,所述服务突发量为采用所述服务等级转发至少一个数据流时所容许的最大突发量,所述服务带宽为采用所述服务等级转发至少一个数据流时所容许的最大带宽。The target service level of the device is any one of at least one service level of the device, and the transmission parameters of one service level include the forwarding delay, service burst volume, and service bandwidth corresponding to the service level. The sending volume is the maximum burst volume allowed when the service level is used to forward at least one data stream, and the service bandwidth is the maximum bandwidth allowed when the service level is used to forward at least one data stream.
可选地,第一目标条件包括下述至少一项:Optionally, the first target condition includes at least one of the following:
所述装置的目标服务等级对应的转发时延小于或等于所述传输时延;The forwarding delay corresponding to the target service level of the device is less than or equal to the transmission delay;
所述突发量与所述装置的目标服务等级当前服务的数据流的突发量之和小于或等于所述装置的目标服务等级对应的服务突发量;The sum of the burst amount and the burst amount of the data stream currently served by the target service level of the device is less than or equal to the service burst amount corresponding to the target service level of the device;
所述传输带宽与所述装置的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述装置的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the device is less than or equal to the service bandwidth corresponding to the target service level of the device.
可选地,所述第一目标条件还包括:Optionally, the first target condition further includes:
所述装置的目标服务等级对应的转发时延与目标时延之和小于或等于所述传输时延,所述目标时延为所述传输路径上的固有时延。The sum of the forwarding delay and the target delay corresponding to the target service level of the device is less than or equal to the transmission delay, and the target delay is the inherent delay on the transmission path.
可选地,所述固有时延包括所述传输路径上节点之间的传输时延、所述传输路径上转发节点的端口时延以及所述转发节点任务时延,所述端口时延为所述转发节点将数据流中的报文发送至所述转发节点的端口的时长,所述任务时延为所述转发节点为所述数据流中的报文分配转发任务的时长。Optionally, the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task delay of the forwarding node, and the port delay is The duration for the forwarding node to send the packet in the data stream to the port of the forwarding node, and the task delay is the duration for the forwarding node to allocate a forwarding task for the packet in the data stream.
可选地,所述装置还包括:Optionally, the device further includes:
获取模块,用于获取所述至少一个服务等级的传输参数;An obtaining module, configured to obtain the transmission parameter of the at least one service level;
发送模块,用于向控制节点发送所述装置的服务等级信息,所述服务等级信息包括所述装置的至少一个服务等级的传输参数。The sending module is configured to send service level information of the device to the control node, where the service level information includes transmission parameters of at least one service level of the device.
可选地,所述获取模块包括:Optionally, the acquisition module includes:
获取单元,用于对于所述至少一个服务等级中的任一服务等级,获取所述服务等级的排队时延,所述排队时延为数据流中的报文在所述服务等级对应的转发队列上等待的最大时长;The obtaining unit is configured to obtain, for any service level of the at least one service level, the queuing delay of the service level, where the queuing delay is the forwarding queue corresponding to the service level of the packet in the data flow The maximum length of time to wait;
确定单元,用于基于所述服务等级的排队时延,确定所述服务等级对应的转发时延;A determining unit, configured to determine the forwarding delay corresponding to the service level based on the queuing delay of the service level;
所述确定单元,还用于根据所述服务等级对应的转发时延、所述装置的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的最大突发量,所述转发数据量为从所述服务等级对应的转发队列上单次转发数据的数据量;The determining unit is further configured to determine the maximum burst volume corresponding to the service level according to the forwarding delay corresponding to the service level, the port bandwidth of the device, and the forwarding data volume corresponding to the service level, and The amount of forwarded data is the amount of data that is forwarded in a single time from the forwarding queue corresponding to the service level;
所述确定单元,还用于根据所述装置的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的服务带宽。The determining unit is further configured to determine the service bandwidth corresponding to the service level according to the port bandwidth of the device and the amount of forwarded data corresponding to the service level.
可选地,所述确定单元用于:Optionally, the determining unit is used to:
将所述服务等级的排队时延确定为所述服务等级对应的转发时延;或,Determine the queuing delay of the service level as the forwarding delay corresponding to the service level; or,
将所述服务等级的排队时延与所述第一转发节点的固有时延之和,确定为所述服务等级对应的转发时延。The sum of the queuing delay of the service level and the inherent delay of the first forwarding node is determined as the forwarding delay corresponding to the service level.
可选地,所述装置还包括:Optionally, the device further includes:
分配模块,用于为所述服务等级对应的转发队列分配一个缓存空间,所述缓存空间用于为所述转发队列提供报文。The allocation module is configured to allocate a buffer space for the forwarding queue corresponding to the service level, and the buffer space is used to provide messages for the forwarding queue.
可选地,一个服务等级的传输参数还包括目标标识,当所述缓存空间的最大缓存量大于或等于所述转发队列对应的服务等级所对应的服务突发量时,所述目标标识为第一标识,所述第一标识用于指示采用所述服务等级转发数据流时不会出现丢包,否则所述目标标识为第二标识,所述第二标识用于指示采用所述服务等级转发数据流时会出现丢包。Optionally, the transmission parameter of a service level further includes a target identifier, and when the maximum buffer volume of the buffer space is greater than or equal to the service burst volume corresponding to the service level corresponding to the forwarding queue, the target identifier is the first An identifier, the first identifier is used to indicate that no packet loss occurs when the data stream is forwarded using the service level, otherwise the target identifier is a second identifier, and the second identifier is used to indicate that the service level is used for forwarding Packet loss occurs during data flow.
可选地,一个服务等级的传输参数还包括所述服务等级对应的置信概率,所述置信概率为采用所述服务等级转发数据流时的实际转发时延小于或等于所述服务等级对应的转发时延的概率。Optionally, the transmission parameter of a service level further includes a confidence probability corresponding to the service level, where the confidence probability is that the actual forwarding delay when the data stream is forwarded using the service level is less than or equal to the forwarding corresponding to the service level Probability of time delay.
可选地,所述数据流包括至少一个业务流。Optionally, the data stream includes at least one service stream.
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form an optional embodiment of the present disclosure, which will not be repeated here.
需要说明的是:上述实施例提供的服务等级配置装置在进行服务等级配置时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的服务等级配置方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the service level configuration device provided in the above embodiment performs service level configuration, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be allocated to different functional modules according to needs. Complete, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the service level configuration method provided by the foregoing embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art can understand that all or part of the steps in the above embodiments can be implemented by hardware, or by a program to instruct relevant hardware. The program can be stored in a computer-readable storage medium. The storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection of this application. Within range.

Claims (42)

  1. 一种服务等级配置方法,其特征在于,应用于控制节点,所述方法包括:A service level configuration method, characterized in that it is applied to a control node, and the method includes:
    获取数据流的传输参数以及第一转发节点的服务等级信息,所述第一转发节点的服务等级信息包括所述第一转发节点的至少一个服务等级的传输参数;Acquiring transmission parameters of the data stream and service level information of the first forwarding node, where the service level information of the first forwarding node includes transmission parameters of at least one service level of the first forwarding node;
    根据所述数据流的传输参数以及所述第一转发节点的服务等级信息,从所述第一转发节点的至少一个服务等级中,确定所述第一转发节点用于转发所述数据流的目标服务等级,所述第一转发节点的目标服务等级的传输参数与所述数据流的传输参数满足第一目标条件;According to the transmission parameters of the data flow and the service level information of the first forwarding node, from at least one service level of the first forwarding node, determine the target for the first forwarding node to forward the data flow Service level, the transmission parameter of the target service level of the first forwarding node and the transmission parameter of the data stream satisfy the first target condition;
    向所述第一转发节点发送服务等级配置请求,所述服务等级配置请求用于指示采用所述第一转发节点的目标服务等级对所述数据流进行传输。Send a service level configuration request to the first forwarding node, where the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream.
  2. 根据权利要求1所述的方法,其特征在于,所述数据流的传输参数包括所述数据流的传输时延、突发量以及传输带宽;The method according to claim 1, wherein the transmission parameters of the data stream include transmission delay, burst volume, and transmission bandwidth of the data stream;
    一个服务等级的传输参数包括所述服务等级对应的转发时延、服务突发量以及服务带宽,所述服务突发量为采用所述服务等级转发至少一个数据流时所容许的最大突发量,所述服务带宽为采用所述服务等级转发至少一个数据流时所容许的最大带宽。The transmission parameters of a service level include the forwarding delay, service burst volume, and service bandwidth corresponding to the service level, and the service burst volume is the maximum burst volume allowed when the service level is used to forward at least one data stream , The service bandwidth is the maximum bandwidth allowed when using the service level to forward at least one data stream.
  3. 根据权利要求2所述的方法,其特征在于,所述第一目标条件包括下述至少一项:The method according to claim 2, wherein the first target condition includes at least one of the following:
    所述第一转发节点的目标服务等级对应的转发时延小于或等于所述传输时延;The forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay;
    所述突发量与所述第一转发节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述第一转发节点的目标服务等级对应的服务突发量;The sum of the burst amount and the burst amount of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service burst amount corresponding to the target service level of the first forwarding node;
    所述传输带宽与所述第一转发节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述第一转发节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node.
  4. 根据权利要求3所述的方法,其特征在于,所述第一目标条件还包括:The method according to claim 3, wherein the first target condition further comprises:
    所述第一转发节点的目标服务等级对应的转发时延与目标时延之和小于或等于所述传输时延,所述目标时延为所述数据流的传输路径的固有时延。The sum of the forwarding delay and the target delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay, and the target delay is the inherent delay of the transmission path of the data stream.
  5. 根据权利要求2所述的方法,其特征在于,所述确定所述第一转发节点用于转发所述数据流的目标服务等级之前,所述方法还包括:The method according to claim 2, wherein before the determining the target service level of the first forwarding node for forwarding the data flow, the method further comprises:
    获取第二转发节点的服务等级信息,所述第二转发节点为所述数据流的传输路径上除所述第一转发节点以外的节点;Acquiring service level information of a second forwarding node, where the second forwarding node is a node other than the first forwarding node on a transmission path of the data stream;
    根据所述数据流的传输参数、所述第一转发节点的服务等级信息以及所述第二转发节点的服务等级信息,从所述第二转发节点的至少一个服务等级中,确定所述第二转发节点用于转发所述数据流的目标服务等级,所述第一转发节点的目标服务等级的传输参数、所述第二转发节点的目标服务等级的传输参数以及所述数据流的传输参数满足第二目标条件。According to the transmission parameters of the data stream, the service level information of the first forwarding node, and the service level information of the second forwarding node, from at least one service level of the second forwarding node, determine the second The forwarding node is used to forward the target service level of the data stream, the transmission parameters of the target service level of the first forwarding node, the transmission parameters of the target service level of the second forwarding node, and the transmission parameters of the data stream satisfy The second target condition.
  6. 根据权利要求5所述的方法,其特征在于,所述第二目标条件包括下述至少一项:The method according to claim 5, wherein the second target condition includes at least one of the following:
    所述第一转发节点的目标服务等级对应的转发时延与所述第二转发节点的目标服务等级 对应的转发时延之和小于或等于所述传输时延;The sum of the forwarding delay corresponding to the target service level of the first forwarding node and the forwarding delay corresponding to the target service level of the second forwarding node is less than or equal to the transmission delay;
    对于所述第一转发节点和所述第二转发节点中的任一节点,所述突发量与所述节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述节点的目标服务等级对应的服务突发量;For any one of the first forwarding node and the second forwarding node, the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the node is less than or equal to the node The service burst corresponding to the target service level;
    所述传输带宽与所述节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the node is less than or equal to the service bandwidth corresponding to the target service level of the node.
  7. 根据权利要求6所述的方法,其特征在于,所述第二目标条件还包括:The method according to claim 6, wherein the second target condition further comprises:
    所述第一转发节点的目标服务等级对应的转发时延、所述第二转发节点的目标服务等级对应的转发时延以及目标时延之和小于或等于所述传输时延,所述目标时延为所述传输路径的固有时延。The sum of the forwarding delay corresponding to the target service level of the first forwarding node, the forwarding delay corresponding to the target service level of the second forwarding node, and the target delay is less than or equal to the transmission delay, and the target time The delay is the inherent delay of the transmission path.
  8. 根据权利要求4或7所述的方法,其特征在于,所述固有时延包括所述传输路径上节点之间的传输时延、所述传输路径上转发节点的端口时延以及任务时延,所述端口时延为所述转发节点将数据流中的报文发送至所述转发节点的端口的时长,所述任务时延是所述转发节点为所述数据流中的报文分配转发任务的时长。The method according to claim 4 or 7, wherein the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task delay, The port delay is the length of time that the forwarding node sends the packet in the data stream to the port of the forwarding node, and the task delay is the forwarding node assigning a forwarding task to the packet in the data stream The length of time.
  9. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    当所述突发量大于所述第一转发节点的目标服务等级对应的服务突发量时,向待整流节点发送整流请求,所述整流请求用于指示对所述数据流进行整流,整流后的所述数据流的突发量小于或等于所述第一转发节点的目标服务等级对应的服务突发量。When the burst amount is greater than the service burst amount corresponding to the target service level of the first forwarding node, a rectification request is sent to the node to be rectified, where the rectification request is used to instruct to rectify the data stream. The burst volume of the data stream is less than or equal to the service burst volume corresponding to the target service level of the first forwarding node.
  10. 根据权利要求9所述的方法,其特征在于,所述待整流节点为所述数据流的传输路径上所述第一转发节点之前的转发节点、目标终端或所述传输路径的首个转发节点,所述目标终端用于发送所述数据流。The method according to claim 9, wherein the node to be rectified is a forwarding node before the first forwarding node on the transmission path of the data stream, a target terminal, or the first forwarding node of the transmission path , The target terminal is used to send the data stream.
  11. 一种服务等级配置方法,其特征在于,应用于第一转发节点,所述方法包括:A service level configuration method, characterized in that it is applied to a first forwarding node, and the method includes:
    接收服务等级配置请求,所述服务等级配置请求用于指示采用所述第一转发节点的目标服务等级对数据流进行传输,所述第一转发节点的目标服务等级的传输参数与所述数据流的传输参数满足第一目标条件;A service level configuration request is received, where the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream, and the transmission parameters of the target service level of the first forwarding node and the data stream The transmission parameters meet the first target condition;
    根据所述服务等级配置请求进行服务等级配置,以采用所述第一转发节点的目标服务等级对所述数据流进行传输。Perform service level configuration according to the service level configuration request, so as to use the target service level of the first forwarding node to transmit the data stream.
  12. 根据权利要求11所述的方法,其特征在于,所述数据流的传输参数包括所述数据流的传输时延、突发量以及传输带宽;The method according to claim 11, wherein the transmission parameters of the data stream include the transmission delay, burst volume, and transmission bandwidth of the data stream;
    所述第一转发节点的目标服务等级为所述第一转发节点的至少一个服务等级中的任一个,一个服务等级的传输参数包括所述服务等级对应的转发时延、服务突发量以及服务带宽,所述服务突发量为采用所述服务等级转发至少一个数据流时所容许的最大突发量,所述服务带宽为采用所述服务等级转发至少一个数据流时所容许的最大带宽。The target service level of the first forwarding node is any one of at least one service level of the first forwarding node, and the transmission parameters of one service level include the forwarding delay corresponding to the service level, the service burst, and the service Bandwidth, the service burst volume is the maximum burst volume allowed when the service level is used to forward at least one data stream, and the service bandwidth is the maximum bandwidth allowed when the service level is used to forward at least one data stream.
  13. 根据权利要求12所述的方法,其特征在于,第一目标条件包括下述至少一项:The method according to claim 12, wherein the first target condition includes at least one of the following:
    所述第一转发节点的目标服务等级对应的转发时延小于或等于所述传输时延;The forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay;
    所述突发量与所述第一转发节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述第一转发节点的目标服务等级对应的服务突发量;The sum of the burst amount and the burst amount of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service burst amount corresponding to the target service level of the first forwarding node;
    所述传输带宽与所述第一转发节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述第一转发节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node.
  14. 根据权利要求13所述的方法,其特征在于,所述第一目标条件还包括:The method according to claim 13, wherein the first target condition further comprises:
    所述第一转发节点的目标服务等级对应的转发时延与目标时延之和小于或等于所述传输时延,所述目标时延为所述传输路径上的固有时延。The sum of the forwarding delay and the target delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay, and the target delay is an inherent delay on the transmission path.
  15. 根据权利要求14所述的方法,其特征在于,所述固有时延包括所述传输路径上节点之间的传输时延、所述传输路径上转发节点的端口时延以及所述转发节点任务时延,所述端口时延为所述转发节点将数据流中的报文发送至所述转发节点的端口的时长,所述任务时延为所述转发节点为所述数据流中的报文分配转发任务的时长。The method according to claim 14, wherein the inherent delay includes the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task time of the forwarding node. The port delay is the length of time the forwarding node sends the packets in the data stream to the port of the forwarding node, and the task delay is the time the forwarding node allocates the packets in the data stream The duration of the forwarding task.
  16. 根据权利要求11所述的方法,其特征在于,所述接收服务等级配置请求之前,所述方法还包括:The method according to claim 11, characterized in that, before the receiving the service level configuration request, the method further comprises:
    获取所述至少一个服务等级的传输参数;Acquiring the transmission parameter of the at least one service level;
    向控制节点发送所述第一转发节点的服务等级信息,所述服务等级信息包括所述第一转发节点的至少一个服务等级的传输参数。Sending the service level information of the first forwarding node to the control node, where the service level information includes transmission parameters of at least one service level of the first forwarding node.
  17. 根据权利要求16所述的方法,其特征在于,所述获取至少一个服务等级的传输参数包括:The method according to claim 16, wherein said obtaining transmission parameters of at least one service level comprises:
    对于所述至少一个服务等级中的任一服务等级,获取所述服务等级的排队时延,所述排队时延为数据流中的报文在所述服务等级对应的转发队列上等待的最大时长;For any service level of the at least one service level, obtain the queuing delay of the service level, where the queuing delay is the maximum time that packets in the data flow wait on the forwarding queue corresponding to the service level ;
    基于所述服务等级的排队时延,确定所述服务等级对应的转发时延;Determine the forwarding delay corresponding to the service level based on the queuing delay of the service level;
    根据所述服务等级对应的转发时延、所述第一转发节点的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的最大突发量,所述转发数据量为从所述服务等级对应的转发队列上单次转发数据的数据量;According to the forwarding delay corresponding to the service level, the port bandwidth of the first forwarding node, and the forwarding data volume corresponding to the service level, the maximum burst volume corresponding to the service level is determined, and the forwarding data volume is from The data volume of the single forwarded data on the forwarding queue corresponding to the service level;
    根据所述第一转发节点的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的服务带宽。Determine the service bandwidth corresponding to the service level according to the port bandwidth of the first forwarding node and the amount of forwarded data corresponding to the service level.
  18. 根据权利要求17所述的方法,其特征在于,所述基于所述服务等级的排队时延,确定所述服务等级对应的转发时延包括:The method according to claim 17, wherein the determining the forwarding delay corresponding to the service level based on the queuing delay of the service level comprises:
    将所述服务等级的排队时延确定为所述服务等级对应的转发时延;或,Determine the queuing delay of the service level as the forwarding delay corresponding to the service level; or,
    将所述服务等级的排队时延与所述第一转发节点的固有时延之和,确定为所述服务等级对应的转发时延。The sum of the queuing delay of the service level and the inherent delay of the first forwarding node is determined as the forwarding delay corresponding to the service level.
  19. 根据权利要求17或18所述的方法,其特征在于,所述根据所述第一转发节点的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的服务带宽之后,所述方法还包括:The method according to claim 17 or 18, wherein after the service bandwidth corresponding to the service level is determined according to the port bandwidth of the first forwarding node and the amount of forwarded data corresponding to the service level, the The method also includes:
    为所述服务等级对应的转发队列分配一个缓存空间,所述缓存空间用于为所述转发队列提供报文。A buffer space is allocated to the forwarding queue corresponding to the service level, and the buffer space is used to provide messages for the forwarding queue.
  20. 根据权利要求19所述的方法,其特征在于,一个服务等级的传输参数还包括目标标识,当所述缓存空间的最大缓存量大于或等于所述转发队列对应的服务等级所对应的服务突发量时,所述目标标识为第一标识,所述第一标识用于指示采用所述服务等级转发数据流时不会出现丢包,否则所述目标标识为第二标识,所述第二标识用于指示采用所述服务等级转发数据流时会出现丢包。The method according to claim 19, wherein the transmission parameter of a service level further includes a target identifier, when the maximum buffer amount of the buffer space is greater than or equal to the service burst corresponding to the service level corresponding to the forwarding queue The target identifier is the first identifier, and the first identifier is used to indicate that no packet loss occurs when the data stream is forwarded using the service level; otherwise, the target identifier is the second identifier, and the second identifier It is used to indicate that packet loss will occur when the data stream is forwarded using the service level.
  21. 根据权利要求12或20所述的方法,其特征在于,一个服务等级的传输参数还包括所述服务等级对应的置信概率,所述置信概率为采用所述服务等级转发数据流时的实际转发时延小于或等于所述服务等级对应的转发时延的概率。The method according to claim 12 or 20, wherein the transmission parameter of a service level further includes a confidence probability corresponding to the service level, and the confidence probability is the actual forwarding time when the service level is used to forward the data stream. The probability that the delay is less than or equal to the forwarding delay corresponding to the service level.
  22. 一种服务等级配置装置,其特征在于,所述装置包括:A service level configuration device, characterized in that the device includes:
    获取模块,用于获取数据流的传输参数以及第一转发节点的服务等级信息,所述第一转发节点的服务等级信息包括所述第一转发节点的至少一个服务等级的传输参数;An obtaining module, configured to obtain transmission parameters of a data stream and service level information of a first forwarding node, where the service level information of the first forwarding node includes at least one service level transmission parameter of the first forwarding node;
    确定模块,用于根据所述数据流的传输参数以及所述第一转发节点的服务等级信息,从所述第一转发节点的至少一个服务等级中,确定所述第一转发节点用于转发所述数据流的目标服务等级,所述第一转发节点的目标服务等级的传输参数与所述数据流的传输参数满足第一目标条件;The determining module is configured to determine that the first forwarding node is used for forwarding from at least one service level of the first forwarding node according to the transmission parameters of the data stream and the service level information of the first forwarding node The target service level of the data stream, and the transmission parameter of the target service level of the first forwarding node and the transmission parameter of the data stream satisfy the first target condition;
    发送模块,用于向所述第一转发节点发送服务等级配置请求,所述服务等级配置请求用于指示采用所述第一转发节点的目标服务等级对所述数据流进行传输。The sending module is configured to send a service level configuration request to the first forwarding node, where the service level configuration request is used to instruct to use the target service level of the first forwarding node to transmit the data stream.
  23. 根据权利要求22所述的装置,其特征在于,所述数据流的传输参数包括所述数据流的传输时延、突发量以及传输带宽;The apparatus according to claim 22, wherein the transmission parameters of the data stream include transmission delay, burst size, and transmission bandwidth of the data stream;
    一个服务等级的传输参数包括所述服务等级对应的转发时延、服务突发量以及服务带宽,所述服务突发量为采用所述服务等级转发至少一个数据流时所容许的最大突发量,所述服务带宽为采用所述服务等级转发至少一个数据流时所容许的最大带宽。The transmission parameters of a service level include the forwarding delay, service burst volume, and service bandwidth corresponding to the service level, and the service burst volume is the maximum burst volume allowed when the service level is used to forward at least one data stream , The service bandwidth is the maximum bandwidth allowed when using the service level to forward at least one data stream.
  24. 根据权利要求23所述的装置,其特征在于,所述第一目标条件包括下述至少一项:The device according to claim 23, wherein the first target condition comprises at least one of the following:
    所述第一转发节点的目标服务等级对应的转发时延小于或等于所述传输时延;The forwarding delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay;
    所述突发量与所述第一转发节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述第一转发节点的目标服务等级对应的服务突发量;The sum of the burst amount and the burst amount of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service burst amount corresponding to the target service level of the first forwarding node;
    所述传输带宽与所述第一转发节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述第一转发节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the first forwarding node is less than or equal to the service bandwidth corresponding to the target service level of the first forwarding node.
  25. 根据权利要求24所述的装置,其特征在于,所述第一目标条件还包括:The device according to claim 24, wherein the first target condition further comprises:
    所述第一转发节点的目标服务等级对应的转发时延与目标时延之和小于或等于所述传输时延,所述目标时延为所述数据流的传输路径的固有时延。The sum of the forwarding delay and the target delay corresponding to the target service level of the first forwarding node is less than or equal to the transmission delay, and the target delay is the inherent delay of the transmission path of the data stream.
  26. 根据权利要求23所述的装置,其特征在于,The device of claim 23, wherein:
    所述获取模块,还用于获取第二转发节点的服务等级信息,所述第二转发节点为所述数据流的传输路径上除所述第一转发节点以外的节点;The acquiring module is further configured to acquire service level information of a second forwarding node, where the second forwarding node is a node other than the first forwarding node on the transmission path of the data stream;
    所述确定模块,还用于根据所述数据流的传输参数、所述第一转发节点的服务等级信息以及所述第二转发节点的服务等级信息,从所述第二转发节点的至少一个服务等级中,确定所述第二转发节点用于转发所述数据流的目标服务等级,所述第一转发节点的目标服务等级的传输参数、所述第二转发节点的目标服务等级的传输参数以及所述数据流的传输参数满足第二目标条件。The determining module is further configured to obtain information from at least one service of the second forwarding node according to the transmission parameters of the data stream, the service level information of the first forwarding node, and the service level information of the second forwarding node. In the level, determining the target service level of the second forwarding node for forwarding the data stream, the transmission parameters of the target service level of the first forwarding node, the transmission parameters of the target service level of the second forwarding node, and The transmission parameter of the data stream satisfies the second target condition.
  27. 根据权利要求26所述的装置,其特征在于,所述第二目标条件包括下述至少一项:The device according to claim 26, wherein the second target condition comprises at least one of the following:
    所述第一转发节点的目标服务等级对应的转发时延与所述第二转发节点的目标服务等级对应的转发时延之和小于或等于所述传输时延;The sum of the forwarding delay corresponding to the target service level of the first forwarding node and the forwarding delay corresponding to the target service level of the second forwarding node is less than or equal to the transmission delay;
    对于所述第一转发节点和所述第二转发节点中的任一节点,所述突发量与所述节点的目标服务等级当前服务的数据流的突发量之和小于或等于所述节点的目标服务等级对应的服务突发量;For any one of the first forwarding node and the second forwarding node, the sum of the burst amount and the burst amount of the data stream currently served by the target service level of the node is less than or equal to the node The service burst corresponding to the target service level;
    所述传输带宽与所述节点的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述节点的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the node is less than or equal to the service bandwidth corresponding to the target service level of the node.
  28. 根据权利要求27所述的装置,其特征在于,所述第二目标条件还包括:The device according to claim 27, wherein the second target condition further comprises:
    所述第一转发节点的目标服务等级对应的转发时延、所述第二转发节点的目标服务等级对应的转发时延以及目标时延之和小于或等于所述传输时延,所述目标时延为所述传输路径的固有时延。The sum of the forwarding delay corresponding to the target service level of the first forwarding node, the forwarding delay corresponding to the target service level of the second forwarding node, and the target delay is less than or equal to the transmission delay, and the target time The delay is the inherent delay of the transmission path.
  29. 根据权利要求25或28所述的装置,其特征在于,所述固有时延包括所述传输路径上节点之间的传输时延、所述传输路径上转发节点的端口时延以及任务时延,所述端口时延为所述转发节点将数据流中的报文发送至所述转发节点的端口的时长,所述任务时延是所述转发节点为所述数据流中的报文分配转发任务的时长。The device according to claim 25 or 28, wherein the inherent delay includes transmission delay between nodes on the transmission path, port delay of forwarding nodes on the transmission path, and task delay, The port delay is the length of time that the forwarding node sends the packet in the data stream to the port of the forwarding node, and the task delay is the forwarding node assigning a forwarding task to the packet in the data stream The length of time.
  30. 根据权利要求23所述的装置,其特征在于,所述发送模块还用于:The device according to claim 23, wherein the sending module is further configured to:
    当所述突发量大于所述第一转发节点的目标服务等级对应的服务突发量时,向待整流节点发送整流请求,所述整流请求用于指示对所述数据流进行整流,整流后的所述数据流的突发量小于或等于所述第一转发节点的目标服务等级对应的服务突发量。When the burst amount is greater than the service burst amount corresponding to the target service level of the first forwarding node, a rectification request is sent to the node to be rectified, where the rectification request is used to instruct to rectify the data stream. The burst volume of the data stream is less than or equal to the service burst volume corresponding to the target service level of the first forwarding node.
  31. 根据权利要求30所述的装置,其特征在于,所述待整流节点为所述数据流的传输路 径上所述第一转发节点之前的转发节点、目标终端或所述传输路径的首个转发节点,所述目标终端用于发送所述数据流。The device according to claim 30, wherein the node to be rectified is a forwarding node before the first forwarding node on the transmission path of the data stream, a target terminal, or the first forwarding node of the transmission path , The target terminal is used to send the data stream.
  32. 一种服务等级配置装置,其特征在于,所述装置设于第一转发节点,所述装置包括:A service level configuration device, characterized in that the device is set in a first forwarding node, and the device includes:
    接收模块,用于接收服务等级配置请求,所述服务等级配置请求用于指示采用所述装置的目标服务等级对数据流进行传输,所述装置的目标服务等级的传输参数与所述数据流的传输参数满足第一目标条件;The receiving module is configured to receive a service level configuration request, where the service level configuration request is used to instruct to use the target service level of the device to transmit the data stream, and the transmission parameters of the target service level of the device and the data stream The transmission parameter satisfies the first target condition;
    配置模块,用于根据所述服务等级配置请求进行服务等级配置,以采用所述装置的目标服务等级对所述数据流进行传输。The configuration module is configured to perform service level configuration according to the service level configuration request, so as to use the target service level of the device to transmit the data stream.
  33. 根据权利要求32所述的装置,其特征在于,所述数据流的传输参数包括所述数据流的传输时延、突发量以及传输带宽;The apparatus according to claim 32, wherein the transmission parameters of the data stream include transmission delay, burst size, and transmission bandwidth of the data stream;
    所述装置的目标服务等级为所述装置的至少一个服务等级中的任一个,一个服务等级的传输参数包括所述服务等级对应的转发时延、服务突发量以及服务带宽,所述服务突发量为采用所述服务等级转发至少一个数据流时所容许的最大突发量,所述服务带宽为采用所述服务等级转发至少一个数据流时所容许的最大带宽。The target service level of the device is any one of at least one service level of the device, and the transmission parameters of one service level include the forwarding delay, service burst volume, and service bandwidth corresponding to the service level. The sending volume is the maximum burst volume allowed when the service level is used to forward at least one data stream, and the service bandwidth is the maximum bandwidth allowed when the service level is used to forward at least one data stream.
  34. 根据权利要求33所述的装置,其特征在于,第一目标条件包括下述至少一项:The device according to claim 33, wherein the first target condition comprises at least one of the following:
    所述装置的目标服务等级对应的转发时延小于或等于所述传输时延;The forwarding delay corresponding to the target service level of the device is less than or equal to the transmission delay;
    所述突发量与所述装置的目标服务等级当前服务的数据流的突发量之和小于或等于所述装置的目标服务等级对应的服务突发量;The sum of the burst amount and the burst amount of the data stream currently served by the target service level of the device is less than or equal to the service burst amount corresponding to the target service level of the device;
    所述传输带宽与所述装置的目标服务等级当前服务的数据流的传输带宽之和小于或等于所述装置的目标服务等级对应的服务带宽。The sum of the transmission bandwidth and the transmission bandwidth of the data stream currently served by the target service level of the device is less than or equal to the service bandwidth corresponding to the target service level of the device.
  35. 根据权利要求34所述的装置,其特征在于,所述第一目标条件还包括:The device according to claim 34, wherein the first target condition further comprises:
    所述装置的目标服务等级对应的转发时延与目标时延之和小于或等于所述传输时延,所述目标时延为所述传输路径上的固有时延。The sum of the forwarding delay and the target delay corresponding to the target service level of the device is less than or equal to the transmission delay, and the target delay is the inherent delay on the transmission path.
  36. 根据权利要求35所述的装置,其特征在于,所述固有时延包括所述传输路径上节点之间的传输时延、所述传输路径上转发节点的端口时延以及所述转发节点任务时延,所述端口时延为所述转发节点将数据流中的报文发送至所述转发节点的端口的时长,所述任务时延为所述转发节点为所述数据流中的报文分配转发任务的时长。The device according to claim 35, wherein the inherent delay comprises the transmission delay between nodes on the transmission path, the port delay of the forwarding node on the transmission path, and the task time of the forwarding node. The port delay is the length of time the forwarding node sends the packets in the data stream to the port of the forwarding node, and the task delay is the time the forwarding node allocates the packets in the data stream The duration of the forwarding task.
  37. 根据权利要求32所述的装置,其特征在于,所述装置还包括:The device according to claim 32, wherein the device further comprises:
    获取模块,用于获取所述至少一个服务等级的传输参数;An obtaining module, configured to obtain the transmission parameter of the at least one service level;
    发送模块,用于向控制节点发送所述装置的服务等级信息,所述服务等级信息包括所述装置的至少一个服务等级的传输参数。The sending module is configured to send service level information of the device to the control node, where the service level information includes transmission parameters of at least one service level of the device.
  38. 根据权利要求37所述的装置,其特征在于,所述获取模块包括:The device according to claim 37, wherein the acquisition module comprises:
    获取单元,用于对于所述至少一个服务等级中的任一服务等级,获取所述服务等级的排队时延,所述排队时延为数据流中的报文在所述服务等级对应的转发队列上等待的最大时长;The obtaining unit is configured to obtain, for any service level of the at least one service level, the queuing delay of the service level, where the queuing delay is the forwarding queue corresponding to the service level of the packet in the data flow The maximum length of time to wait;
    确定单元,用于基于所述服务等级的排队时延,确定所述服务等级对应的转发时延;A determining unit, configured to determine the forwarding delay corresponding to the service level based on the queuing delay of the service level;
    所述确定单元,还用于根据所述服务等级对应的转发时延、所述装置的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的最大突发量,所述转发数据量为从所述服务等级对应的转发队列上单次转发数据的数据量;The determining unit is further configured to determine the maximum burst volume corresponding to the service level according to the forwarding delay corresponding to the service level, the port bandwidth of the device, and the forwarding data volume corresponding to the service level, and The amount of forwarded data is the amount of data that is forwarded in a single time from the forwarding queue corresponding to the service level;
    所述确定单元,还用于根据所述装置的端口带宽以及所述服务等级对应的转发数据量,确定所述服务等级对应的服务带宽。The determining unit is further configured to determine the service bandwidth corresponding to the service level according to the port bandwidth of the device and the amount of forwarded data corresponding to the service level.
  39. 根据权利要求38所述的装置,其特征在于,所述确定单元用于:The device according to claim 38, wherein the determining unit is configured to:
    将所述服务等级的排队时延确定为所述服务等级对应的转发时延;或,Determine the queuing delay of the service level as the forwarding delay corresponding to the service level; or,
    将所述服务等级的排队时延与所述第一转发节点的固有时延之和,确定为所述服务等级对应的转发时延。The sum of the queuing delay of the service level and the inherent delay of the first forwarding node is determined as the forwarding delay corresponding to the service level.
  40. 根据权利要求38或39所述的装置,其特征在于,所述装置还包括:The device according to claim 38 or 39, wherein the device further comprises:
    分配模块,用于为所述服务等级对应的转发队列分配一个缓存空间,所述缓存空间用于为所述转发队列提供报文。The allocation module is configured to allocate a buffer space for the forwarding queue corresponding to the service level, and the buffer space is used to provide messages for the forwarding queue.
  41. 根据权利要求40所述的装置,其特征在于,一个服务等级的传输参数还包括目标标识,当所述缓存空间的最大缓存量大于或等于所述转发队列对应的服务等级所对应的服务突发量时,所述目标标识为第一标识,所述第一标识用于指示采用所述服务等级转发数据流时不会出现丢包,否则所述目标标识为第二标识,所述第二标识用于指示采用所述服务等级转发数据流时会出现丢包。The apparatus according to claim 40, wherein the transmission parameter of a service level further includes a target identifier, when the maximum buffer amount of the buffer space is greater than or equal to the service burst corresponding to the service level corresponding to the forwarding queue The target identifier is the first identifier, and the first identifier is used to indicate that no packet loss occurs when the data stream is forwarded using the service level; otherwise, the target identifier is the second identifier, and the second identifier It is used to indicate that packet loss will occur when the data stream is forwarded using the service level.
  42. 根据权利要求33或41所述的装置,其特征在于,一个服务等级的传输参数还包括所述服务等级对应的置信概率,所述置信概率为采用所述服务等级转发数据流时的实际转发时延小于或等于所述服务等级对应的转发时延的概率。The apparatus according to claim 33 or 41, wherein the transmission parameter of a service level further comprises a confidence probability corresponding to the service level, and the confidence probability is the actual forwarding time when the data stream is forwarded using the service level The probability that the delay is less than or equal to the forwarding delay corresponding to the service level.
PCT/CN2020/115994 2020-01-21 2020-09-17 Service level configuration method and device WO2021147354A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP20916041.5A EP4075732A4 (en) 2020-01-21 2020-09-17 Service level configuration method and device
KR1020227026464A KR20220123090A (en) 2020-01-21 2020-09-17 Service Level Configuration Methods and Devices
JP2022544184A JP2023511889A (en) 2020-01-21 2020-09-17 Service level configuration method and apparatus
US17/868,859 US20220368608A1 (en) 2020-01-21 2022-07-20 Service level configuration method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010071882.6A CN113225196B (en) 2020-01-21 2020-01-21 Service level configuration method and device
CN202010071882.6 2020-01-21

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/868,859 Continuation US20220368608A1 (en) 2020-01-21 2022-07-20 Service level configuration method and apparatus

Publications (1)

Publication Number Publication Date
WO2021147354A1 true WO2021147354A1 (en) 2021-07-29

Family

ID=76991892

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/115994 WO2021147354A1 (en) 2020-01-21 2020-09-17 Service level configuration method and device

Country Status (6)

Country Link
US (1) US20220368608A1 (en)
EP (1) EP4075732A4 (en)
JP (1) JP2023511889A (en)
KR (1) KR20220123090A (en)
CN (2) CN117395167A (en)
WO (1) WO2021147354A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070776B (en) * 2021-11-02 2023-05-02 中国联合网络通信集团有限公司 Improved time-sensitive network data transmission method, device and equipment
CN114567679B (en) * 2022-03-25 2024-04-02 阿里巴巴(中国)有限公司 Data transmission method and device
CN117527718A (en) * 2022-07-28 2024-02-06 中兴通讯股份有限公司 Time delay resource allocation method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005367A (en) * 2006-01-19 2007-07-25 华为技术有限公司 Medium stream transmission system and control method for medium stream transmission quality
CN102185834A (en) * 2011-04-07 2011-09-14 北京交通大学 Intelligent resource control system of information network
US20110317584A1 (en) * 2010-06-24 2011-12-29 Entropic Communications, Inc. Node-based quality-of-service management
CN106059960A (en) * 2016-05-24 2016-10-26 北京交通大学 Software defined network-based space network QoS guarantee method and management center
CN108737128A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 It is a kind of to realize the method and device with interior operation management maintainance IOAM

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5432790A (en) * 1993-09-17 1995-07-11 Motorola, Inc. Method for allocating internodal link bandwidth in a packet oriented communication network to guarantee delay quality-of-service
US6167445A (en) * 1998-10-26 2000-12-26 Cisco Technology, Inc. Method and apparatus for defining and implementing high-level quality of service policies in computer networks
US7568045B1 (en) * 2001-03-30 2009-07-28 Cisco Technology, Inc. Method and apparatus for estimating periodic worst-case delay under actual and hypothetical conditions using a measurement based traffic profile
US7492779B2 (en) * 2004-11-05 2009-02-17 Atrica Israel Ltd. Apparatus for and method of support for committed over excess traffic in a distributed queuing system
US7940756B1 (en) * 2005-11-23 2011-05-10 Symantec Corporation Dynamic tagging of network data based on service level objectives
US9264369B2 (en) * 2010-12-06 2016-02-16 Qualcomm Incorporated Technique for managing traffic at a router
US9819715B2 (en) * 2012-06-21 2017-11-14 Adobe Systems Incorporated Client side control of adaptive streaming
US10039046B2 (en) * 2014-07-21 2018-07-31 Cisco Technology, Inc. Traffic class capacity allocation in computer networks
US9979637B2 (en) * 2016-06-07 2018-05-22 Dell Products L.P. Network flow management system
US10944680B2 (en) * 2017-05-22 2021-03-09 Ribbon Communications Operating Company, Inc. Communications methods and apparatus
CN109787801B (en) * 2017-11-15 2022-01-21 华为技术有限公司 Network service management method, device and system
CN109617810B (en) * 2018-11-30 2021-04-16 中国联合网络通信集团有限公司 Data transmission method and device
US10805211B2 (en) * 2019-02-13 2020-10-13 Cisco Technology, Inc. Forecasting SDN fabric saturation and machine learning-based flow admission control
US10892994B2 (en) * 2019-05-14 2021-01-12 Vmware, Inc. Quality of service in virtual service networks
US10938717B1 (en) * 2019-09-04 2021-03-02 Cisco Technology, Inc. Policy plane integration across multiple domains
US11677658B2 (en) * 2019-09-19 2023-06-13 Nokia Solutions And Networks Oy Packet routing based on common node protection
CN112583735A (en) * 2019-09-27 2021-03-30 华为技术有限公司 Method, device and system for determining required bandwidth for transmitting data stream

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005367A (en) * 2006-01-19 2007-07-25 华为技术有限公司 Medium stream transmission system and control method for medium stream transmission quality
US20110317584A1 (en) * 2010-06-24 2011-12-29 Entropic Communications, Inc. Node-based quality-of-service management
CN102185834A (en) * 2011-04-07 2011-09-14 北京交通大学 Intelligent resource control system of information network
CN106059960A (en) * 2016-05-24 2016-10-26 北京交通大学 Software defined network-based space network QoS guarantee method and management center
CN108737128A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 It is a kind of to realize the method and device with interior operation management maintainance IOAM

Also Published As

Publication number Publication date
EP4075732A4 (en) 2023-05-24
US20220368608A1 (en) 2022-11-17
JP2023511889A (en) 2023-03-23
CN113225196A (en) 2021-08-06
CN113225196B (en) 2023-11-03
EP4075732A1 (en) 2022-10-19
CN117395167A (en) 2024-01-12
KR20220123090A (en) 2022-09-05

Similar Documents

Publication Publication Date Title
WO2021147354A1 (en) Service level configuration method and device
US8665892B2 (en) Method and system for adaptive queue and buffer control based on monitoring in a packet network switch
US7701849B1 (en) Flow-based queuing of network traffic
US7818449B2 (en) Mechanism for providing quality of service in a network utilizing priority and reserved bandwidth protocols
Prabhavat et al. Effective delay-controlled load distribution over multipath networks
US8184540B1 (en) Packet lifetime-based memory allocation
Liu et al. Delay-optimized video traffic routing in software-defined interdatacenter networks
WO2019119837A1 (en) Service identification method and device, and network device
KR20070024427A (en) Method for requesting resource and scheduling for uplink traffic in mobile communication and apparatus thereof
JP2006500830A (en) System and method for managing wireless network channels
WO2019072072A1 (en) Congestion flow identification method and network device
Wu et al. SPMLD: Sub-packet based multipath load distribution for real-time multimedia traffic
JP2020072336A (en) Packet transfer device, method, and program
US8660001B2 (en) Method and apparatus for providing per-subscriber-aware-flow QoS
WO2005002154A1 (en) Hierarchy tree-based quality of service classification for packet processing
Nikolova et al. Bonded deficit round robin scheduling for multi-channel networks
Xuan et al. Distributed admission control for anycast flows with QoS requirements
WO2023274165A1 (en) Parameter configuration method and apparatus, controller, communication device, and communication system
KR100523996B1 (en) Packet scheduling system and a packet scheduling method in a mobile communication system
CN111756557B (en) Data transmission method and device
JP2004241835A (en) Reception discrimination method to transfer quality assurance type data stream, closed ip network, and program thereof
WO2020108020A1 (en) Congestion control processing method, message forwarding apparatus, and message receiving apparatus
WO2009124492A1 (en) Method, device and system for implementing assurance for the quality of transmission service
Şimşek et al. A new packet scheduling algorithm for real-time multimedia streaming
WO2020143509A1 (en) Method for transmitting data and network device

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

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022544184

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20227026464

Country of ref document: KR

Kind code of ref document: A

Ref document number: 2020916041

Country of ref document: EP

Effective date: 20220713

NENP Non-entry into the national phase

Ref country code: DE