






技术领域technical field
本申请涉及通信领域,尤其涉及一种数据传输方法、装置、设备及系统。The present application relates to the communication field, and in particular to a data transmission method, device, equipment and system.
背景技术Background technique
为了应对未来爆炸性的移动数据流量增长、海量移动通信的设备连接、不断涌现的各类新业务和应用场景,第五代(the fifth generation,5G)移动通信系统应运而生。对于工业制造或生产流程中的无线控制、无人驾驶汽车和无人驾驶飞机的运动控制以及远程修理、远程手术等触觉交互类应用,国际电信联盟(international telecommunicationunion,ITU)定义了高可靠低时延通信(ultra reliable and low latencycommunications,URLLC)。URLLC业务的主要特点是要求超高可靠性、低延时,传输数据量较少以及具有突发性。In order to cope with the explosive growth of mobile data traffic in the future, massive mobile communication device connections, and various new services and application scenarios emerging, the fifth generation (5G) mobile communication system has emerged as the times require. For tactile interaction applications such as wireless control in industrial manufacturing or production processes, motion control of unmanned vehicles and unmanned aircraft, remote repairs, and remote surgery, the International Telecommunication Union (ITU) defines high-reliability and low-time Extended communication (ultra reliable and low latency communications, URLLC). The main features of URLLC services are ultra-high reliability, low latency, small amount of transmitted data, and burstiness.
在网络设备之间传输数据的过程中,由于网络设备故障等突发因素,则数据无法及时传输至目的设备,导致传输数据的时延增加,无法满足业务的时延要求,降低了用户体验。例如,在自动驾驶场景下,由于自动驾驶车辆无法及时接收到控制指令,可能导致车祸概率增加。因此,如何提高转发业务数据的时延满足时延要求的概率是亟待解决的问题。In the process of data transmission between network devices, due to unexpected factors such as network device failures, the data cannot be transmitted to the destination device in time, resulting in an increase in the delay of the transmitted data, which cannot meet the delay requirements of the business and reduces the user experience. For example, in an autonomous driving scenario, since the autonomous vehicle cannot receive control commands in time, the probability of a car accident may increase. Therefore, how to improve the probability that the time delay of forwarding service data meets the time delay requirement is an urgent problem to be solved.
发明内容Contents of the invention
本申请提供了一种数据传输方法、装置、设备及系统,用于提高转发业务数据的时延满足时延要求的概率。The present application provides a data transmission method, device, device and system, which are used to improve the probability that the time delay of forwarding service data meets the time delay requirement.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:
第一方面,提供了一种数据传输方法,控制设备连接至少两个网络设备,至少两个网络设备包括第一网络设备和第二网络设备,第一网络设备连接第二网络设备,该方法由第一网络设备执行。该方法包括:第一网络设备接收控制设备发送的第一策略后,根据第一策略指示的第一优先级转发第一业务的业务数据。如果第一网络设备接收到第二网络设备发送的第一业务报文,根据第一业务报文中包含的第二网络设备转发业务数据的第一时间信息,确定第二网络设备转发业务数据的时延不满足转发规则,第一网络设备获取第二策略,根据第二策略指示的第二优先级转发第二业务报文。其中,第二优先级高于第一优先级。转发规则用于指示转发业务数据的时延要求。第一业务报文包括业务数据和第二网络设备转发业务数据的第一时间消息。第二业务报文包括业务数据和第一网络设备转发业务数据的第二时间消息。In the first aspect, a data transmission method is provided. The control device is connected to at least two network devices. The at least two network devices include a first network device and a second network device. The first network device is connected to the second network device. The method consists of The first network device executes. The method includes: after receiving the first strategy sent by the control device, the first network device forwards the service data of the first service according to the first priority indicated by the first strategy. If the first network device receives the first service packet sent by the second network device, according to the first time information of the second network device forwarding the service data contained in the first service packet, determine the time when the second network device forwards the service data If the delay does not satisfy the forwarding rule, the first network device obtains the second policy, and forwards the second service packet according to the second priority indicated by the second policy. Wherein, the second priority is higher than the first priority. The forwarding rule is used to indicate the delay requirement for forwarding service data. The first service packet includes service data and a first time message for forwarding the service data by the second network device. The second service packet includes service data and a second time message for forwarding the service data by the first network device.
如此,第一网络设备根据第二网络设备发送的第一业务报文包含的第一时间信息,判断第二网络设备转发业务数据的时延是否满足转发规则的时延要求。若不满足时延要求,说明第二网络设备转发业务数据的时延超出了预期,为了弥补第二网络设备转发业务数据超出预期的时延,可以通过调整业务数据的优先级,使第一网络设备可以更快地转发业务数据。实现了根据网络设备转发业务数据的实时时延,智能化地调整业务数据优先级,提高了转发业务数据的时延满足时延要求的概率。In this way, the first network device judges whether the delay in forwarding service data by the second network device meets the delay requirement of the forwarding rule according to the first time information included in the first service packet sent by the second network device. If the delay requirement is not met, it means that the delay of forwarding service data by the second network equipment exceeds the expectation. In order to compensate for the delay of forwarding service data by the second network equipment beyond Devices can forward business data faster. It realizes the real-time delay of forwarding service data according to the network equipment, intelligently adjusts the priority of service data, and improves the probability that the delay of forwarding service data meets the delay requirement.
一种可能的设计中,在第一网络设备接收第二网络设备发送的第一业务报文之后,该方法还包括:如果第一网络设备根据第一时间信息确定第二网络设备转发业务数据满足转发规则,代表第二网络设备转发业务数据的时延未超出预期,则第一网络设备根据第一优先级转发第三业务报文。第三业务报文包括业务数据和第一网络设备转发业务数据的第三时间信息。In a possible design, after the first network device receives the first service packet sent by the second network device, the method further includes: if the first network device determines according to the first time information that the forwarding of the service data by the second network device satisfies The forwarding rule means that the delay in forwarding service data by the second network device does not exceed the expectation, and the first network device forwards the third service message according to the first priority. The third service packet includes service data and third time information for forwarding the service data by the first network device.
一种可能的设计中,第一策略包括转发业务数据的第一预设时延,第一时间信息包括第一时间标识、第二时间标识和偏差时延。根据第一时间信息确定第二网络设备转发业务数据不满足转发规则包括:根据第一时间标识和第二时间标识确定第一时延,若第一时延和偏差时延之和大于第一预设时延,确定第二网络设备转发业务数据不满足转发规则。其中,第一时间标识是第二网络设备接收业务数据的时刻,第二时间标识是第二网络设备发送业务数据的时刻,偏差时延是根据至少一个网络设备转发业务数据的时长和第一预设时延确定的,偏差时延大于或等于0。In a possible design, the first strategy includes a first preset time delay for forwarding service data, and the first time information includes a first time identifier, a second time identifier, and a deviation delay. Determining that the forwarding service data of the second network device does not satisfy the forwarding rule according to the first time information includes: determining the first delay according to the first time identifier and the second time identifier, if the sum of the first delay and the offset delay is greater than the first preset A time delay is set to determine that the forwarding of service data by the second network device does not satisfy the forwarding rule. Wherein, the first time mark is the moment when the second network device receives the service data, the second time mark is the time when the second network device sends the service data, and the offset delay is based on the time length for forwarding the service data by at least one network device and the first preset Assuming that the delay is determined, the offset delay is greater than or equal to 0.
一种可能的设计中,第一策略还包括转发路径信息和预设总时延,转发路径信息用于指示转发业务数据的至少两个网络设备,预设总时延用于指示至少两个网络设备转发业务数据的时长。从而,以便于第一网络设备依据第一策略转发业务数据。In a possible design, the first strategy further includes forwarding path information and a preset total delay, the forwarding path information is used to indicate at least two network devices forwarding service data, and the preset total delay is used to indicate at least two network devices The duration for the device to forward service data. Therefore, it is convenient for the first network device to forward the service data according to the first policy.
第一网络设备获取第二策略可以采用不同方式获取。The first network device may acquire the second policy in different ways.
一种可能的设计中,获取第二策略包括:根据预设总时延、第一时间信息和至少两个网络设备中未转发业务数据的网络设备的数量确定第二预设时延,第二策略包括第二预设时延,第二预设时延小于第一策略包括转发业务数据的第一预设时延。In a possible design, obtaining the second policy includes: determining the second preset delay according to the preset total delay, the first time information, and the number of network devices that have not forwarded service data among the at least two network devices, and the second The strategy includes a second preset time delay, and the second preset time delay is smaller than the first preset time delay of forwarding service data included in the first policy.
一种可能的设计中,获取第二策略包括:接收控制设备发送的第二策略。In a possible design, obtaining the second policy includes: receiving the second policy sent by the control device.
第二方面,提供了一种数据传输方法,控制设备连接至少两个网络设备,至少两个网络设备包括第一网络设备和第二网络设备,第一网络设备连接第二网络设备,该方法由控制设备执行。该方法包括:控制设备向至少两个网络设备发送第一策略,指示至少两个网络设备依据第一优先级转发第一业务的业务数据。进而,控制设备接收第二网络设备发送的转发信息,根据转发信息包括的第二网络设备转发业务数据的第一时间信息确定第二网络设备转发业务数据不满足转发规则,确定第二策略,向至少两个网络设备中除了第二网络设备之外的至少一个网络设备发送第二策略,第二策略用于指示依据第二优先级转发业务数据,第二优先级高于第一优先级,转发规则用于指示转发业务数据的时延要求。In the second aspect, a data transmission method is provided. The control device is connected to at least two network devices. The at least two network devices include a first network device and a second network device. The first network device is connected to the second network device. The method consists of Control device execution. The method includes: the control device sends a first policy to at least two network devices, instructing the at least two network devices to forward the service data of the first service according to the first priority. Furthermore, the control device receives the forwarding information sent by the second network device, determines according to the first time information of the second network device forwarding the service data included in the forwarding information that the service data forwarded by the second network device does not satisfy the forwarding rule, determines the second policy, and sends At least one network device except the second network device among the at least two network devices sends a second policy, the second policy is used to indicate forwarding service data according to a second priority, the second priority is higher than the first priority, and the forwarding Rules are used to indicate the delay requirements for forwarding service data.
如此,控制设备根据第二网络设备发送的转发信息,确定第二网络设备按照第一优先级转发业务数据的时延,是否满足转发规则指示的时延要求。若不满足时延要求,说明第二网络设备转发业务数据的时延超出了预期。通过提升业务数据的优先级,可以使网络设备更快的传输业务数据,以此弥补第二网络设备转发业务数据超出预期的时延,进而提高了业务数据的时延满足时延要求的概率。实现了智能化的调整业务数据的优先级,提升了业务数据的传输速率。In this way, the control device determines whether the time delay for the second network device to forward service data according to the first priority meets the time delay requirement indicated by the forwarding rule according to the forwarding information sent by the second network device. If the time delay requirement is not met, it means that the time delay for the second network device to forward the service data exceeds expectation. By increasing the priority of the service data, the network device can transmit the service data faster, so as to compensate for the delay of the second network device forwarding the service data beyond the expectation, thereby increasing the probability that the service data delay meets the delay requirement. It realizes the intelligent adjustment of the priority of business data and improves the transmission rate of business data.
一种可能的设计中,第一策略还包括转发路径信息和预设总时延,转发路径信息用于指示转发业务数据的至少两个网络设备,预设总时延用于指示至少两个网络设备转发业务数据的时长。In a possible design, the first strategy further includes forwarding path information and a preset total delay, the forwarding path information is used to indicate at least two network devices forwarding service data, and the preset total delay is used to indicate at least two network devices The duration for the device to forward service data.
一种可能的设计中,确定第二策略包括:根据预设总时延、第一时间信息和至少两个网络设备中未转发业务数据的网络设备的数量确定第二预设时延,得到第二策略。第二策略包括第二预设时延,第一策略包括转发业务数据的第一预设时延,第二预设时延小于第一策略包括的转发业务数据的第一预设时延。In a possible design, determining the second strategy includes: determining the second preset delay according to the preset total delay, the first time information, and the number of network devices that have not forwarded service data among at least two network devices, and obtaining the second preset delay. Two strategies. The second policy includes a second preset time delay, the first policy includes a first preset time delay for forwarding service data, and the second preset time delay is smaller than the first preset time delay for forwarding service data included in the first policy.
一种可能的设计中,在向至少两个网络设备发送第一策略之前,该方法还包括:接收业务请求,业务请求包括源设备的地址、目的设备的地址、业务标识和预设总时延;根据源设备的地址、目的设备的地址和预设总时延确定转发路径信息;根据至少两个网络设备的数量和预设总时延确定第一策略。In a possible design, before sending the first policy to at least two network devices, the method further includes: receiving a service request, where the service request includes an address of a source device, an address of a destination device, a service identifier and a preset total delay ; Determine the forwarding path information according to the address of the source device, the address of the destination device and the preset total delay; determine the first strategy according to the number of at least two network devices and the preset total delay.
第三方面,提供了一种通信装置,该装置包括:接收单元、处理单元和发送单元。接收单元,用于接收控制设备发送的第一策略,第一策略用于指示依据第一优先级转发第一业务的业务数据;接收单元,还用于接收第二网络设备发送的第一业务报文,第一业务报文包括业务数据和第二网络设备转发业务数据的第一时间信息;处理单元,用于根据第一时间信息确定第二网络设备转发业务数据不满足转发规则,获取第二策略,第二策略用于指示依据第二优先级转发业务数据,第二优先级高于第一优先级,转发规则用于指示转发业务数据的时延要求;发送单元,用于根据第二优先级转发第二业务报文,第二业务报文包括业务数据和转发业务数据的第二时间信息。In a third aspect, a communication device is provided, and the device includes: a receiving unit, a processing unit, and a sending unit. The receiving unit is configured to receive the first strategy sent by the control device, the first strategy is used to indicate forwarding the service data of the first service according to the first priority; the receiving unit is also used to receive the first service report sent by the second network device The first service message includes service data and the first time information for forwarding the service data by the second network device; the processing unit is configured to determine that the forwarding of the service data by the second network device does not satisfy the forwarding rule according to the first time information, and obtain the second strategy, the second strategy is used to indicate forwarding service data according to the second priority, the second priority is higher than the first priority, and the forwarding rule is used to indicate the delay requirement for forwarding service data; the sending unit is used to forward the service data according to the second priority The stage forwards the second service message, and the second service message includes service data and second time information for forwarding the service data.
一种可能的设计中,处理单元,还用于根据第一时间信息确定第二网络设备转发业务数据满足转发规则;发送单元,还用于根据第一优先级转发第三业务报文,第三业务报文包括业务数据和转发业务数据的第三时间信息。In a possible design, the processing unit is further configured to determine according to the first time information that the forwarding service data of the second network device satisfies the forwarding rule; the sending unit is further configured to forward the third service message according to the first priority, and the third The service message includes service data and third time information for forwarding the service data.
一种可能的设计中,第一策略包括转发业务数据的第一预设时延,第一时间信息包括第一时间标识、第二时间标识和偏差时延,处理单元,具体用于:根据第一时间标识和第二时间标识确定第一时延,第一时间标识是第二网络设备接收业务数据的时刻,第二时间标识是第二网络设备发送业务数据的时刻,偏差时延是根据至少一个网络设备转发业务数据的时长和第一预设时延确定的,偏差时延大于或等于0;若第一时延和偏差时延之和大于第一预设时延,确定第二网络设备转发业务数据不满足转发规则。In a possible design, the first strategy includes a first preset time delay for forwarding service data, the first time information includes a first time identifier, a second time identifier, and a deviation delay, and the processing unit is specifically configured to: according to The first time identifier and the second time identifier determine the first delay, the first time identifier is the moment when the second network device receives the service data, the second time identifier is the moment when the second network device sends the service data, and the deviation delay is based on at least If the duration of a network device forwarding service data and the first preset delay are determined, the deviation delay is greater than or equal to 0; if the sum of the first delay and the deviation delay is greater than the first preset delay, it is determined that the second network device Forwarding service data does not meet the forwarding rules.
一种可能的设计中,第一策略还包括转发路径信息和预设总时延,转发路径信息用于指示转发业务数据的至少两个网络设备,预设总时延用于指示至少两个网络设备转发业务数据的时长。In a possible design, the first strategy further includes forwarding path information and a preset total delay, the forwarding path information is used to indicate at least two network devices forwarding service data, and the preset total delay is used to indicate at least two network devices The duration for the device to forward service data.
一种可能的设计中,处理单元,具体用于根据预设总时延、第一时间信息和至少两个网络设备中未转发业务数据的网络设备的数量确定第二预设时延,得到第二策略,第二策略包括第二预设时延,第二预设时延小于第一策略包括的转发业务数据的第一预设时延。In a possible design, the processing unit is specifically configured to determine the second preset delay according to the preset total delay, the first time information, and the number of network devices that have not forwarded service data among the at least two network devices, and obtain the second preset delay. Two strategies, the second strategy includes a second preset time delay, and the second preset time delay is smaller than the first preset time delay of forwarding service data included in the first strategy.
一种可能的设计中,接收单元,还用于接收控制设备发送的第二策略。In a possible design, the receiving unit is further configured to receive the second policy sent by the control device.
第四方面,提供了一种通信装置,包括:接收单元、处理单元和发送单元。发送单元,用于向至少两个网络设备发送第一策略,第一策略用于指示依据第一优先级转发第一业务的业务数据;接收单元,用于接收第二网络设备发送的转发信息,转发信息包括第二网络设备转发业务数据的第一时间信息;处理单元,用于若根据第一时间信息确定第二网络设备转发业务数据不满足转发规则,确定第二策略,第二策略用于指示依据第二优先级转发业务数据,第二优先级高于第一优先级,转发规则用于指示转发业务数据的时延要求;发送单元,用于向至少两个网络设备中除了第二网络设备之外的至少一个网络设备发送第二策略。In a fourth aspect, a communication device is provided, including: a receiving unit, a processing unit, and a sending unit. a sending unit, configured to send a first strategy to at least two network devices, the first strategy being used to instruct forwarding the service data of the first service according to the first priority; a receiving unit, configured to receive the forwarding information sent by the second network device, The forwarding information includes the first time information for the second network device to forward the service data; the processing unit is configured to determine a second strategy if it is determined according to the first time information that the second network device forwards the service data does not meet the forwarding rule, and the second strategy is used for Indicates that service data is forwarded according to the second priority, the second priority is higher than the first priority, and the forwarding rule is used to indicate the delay requirement for forwarding the service data; the sending unit is used to send to at least two network devices except the second network At least one network device other than the device sends the second policy.
一种可能的设计中,第一策略还包括转发路径信息和预设总时延,转发路径信息用于指示转发业务数据的至少两个网络设备,预设总时延用于指示至少两个网络设备转发业务数据的时长。In a possible design, the first strategy further includes forwarding path information and a preset total delay, the forwarding path information is used to indicate at least two network devices forwarding service data, and the preset total delay is used to indicate at least two network devices The duration for the device to forward service data.
一种可能的设计中,处理单元,具体用于根据预设总时延、第一时间信息和至少两个网络设备中未转发业务数据的网络设备的数量确定第二预设时延,得到第二策略,第二策略包括第二预设时延,第一策略包括转发业务数据的第一预设时延,第二预设时延小于第一策略包括的转发业务数据的第一预设时延。In a possible design, the processing unit is specifically configured to determine the second preset delay according to the preset total delay, the first time information, and the number of network devices that have not forwarded service data among the at least two network devices, and obtain the second preset delay. Two strategies, the second strategy includes a second preset time delay, the first strategy includes a first preset time delay for forwarding business data, and the second preset time delay is less than the first preset time delay for forwarding business data included in the first policy delay.
一种可能的设计中,接收单元,还用于接收业务请求,业务请求包括源设备的地址、目的设备的地址、业务标识和预设总时延;处理单元,还用于根据源设备的地址、目的设备的地址和预设总时延确定转发路径信息;处理单元,还用于根据至少两个网络设备的数量和预设总时延确定第一策略。In a possible design, the receiving unit is also used to receive a service request, and the service request includes the address of the source device, the address of the destination device, the service identifier and the preset total delay; the processing unit is also used to receive the service request according to the address of the source device , the address of the destination device and the preset total delay to determine the forwarding path information; the processing unit is further configured to determine the first strategy according to the quantity of at least two network devices and the preset total delay.
第五方面,提供了一种通信设备,包括:处理器和存储器;存储器存储有处理器可执行的指令;处理器被配置为执行所述指令时,使得通信设备实现如上述第一方面所提供的方法,或者,如上述第二方面所提供的方法。In a fifth aspect, a communication device is provided, including: a processor and a memory; the memory stores instructions executable by the processor; when the processor is configured to execute the instructions, the communication device realizes the above-mentioned first aspect. method, or, as the method provided in the second aspect above.
第六方面,提供了一种计算机可读存储介质,计算机可读存储介质存储计算机指令,当该计算机指令在计算机上运行时,使得计算机执行第一方面或第二方面所提供的任意一种方法。According to the sixth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions, and when the computer instructions are run on the computer, the computer executes any one of the methods provided in the first aspect or the second aspect. .
第七方面,提供了一种包含计算机指令的计算机程序产品,当该计算机指令在计算机上运行时,使得计算机执行第一方面或第二方面所提供的任意一种方法。In a seventh aspect, a computer program product including computer instructions is provided, and when the computer instructions are run on a computer, the computer is made to execute any one of the methods provided in the first aspect or the second aspect.
第八方面,提供了一种通信系统,包括第一网络设备、第二网络设备和控制设备;第一网络设备,用于接收控制设备发送的第一策略,第一策略用于指示依据第一优先级转发第一业务的业务数据;第一网络设备,还用于接收第二网络设备发送的第一业务报文,第一业务报文包括业务数据和第二网络设备转发业务数据的第一时间信息;第一网络设备,还用于根据第一时间信息确定第二网络设备转发业务数据不满足转发规则,根据预设总时延、第一时间信息和至少两个网络设备中未转发业务数据的网络设备的数量确定第二预设时延,得到第二策略,第二策略包括第二预设时延,第二预设时延小于第一策略包括转发业务数据的第一预设时延,第二策略用于指示依据第二优先级转发业务数据,第二优先级高于第一优先级,转发规则用于指示转发业务数据的时延要求;第一网络设备,还用于根据第二优先级转发第二业务报文,第二业务报文包括业务数据和第一网络设备转发业务数据的第二时间信息。In an eighth aspect, a communication system is provided, including a first network device, a second network device, and a control device; the first network device is configured to receive a first strategy sent by the control device, and the first strategy is used to indicate that according to the first Forwarding the service data of the first service with priority; the first network device is also used to receive the first service message sent by the second network device, the first service message includes the service data and the first service data forwarded by the second network device Time information; the first network device is also used to determine according to the first time information that the forwarding service data of the second network device does not satisfy the forwarding rule, and according to the preset total delay, the first time information and the untransmitted business in at least two network devices The number of data network devices determines the second preset time delay, and obtains the second policy, the second policy includes the second preset time delay, and the second preset time delay is less than the first time when the first policy includes forwarding service data Delay, the second policy is used to indicate forwarding service data according to the second priority, the second priority is higher than the first priority, the forwarding rule is used to indicate the delay requirement for forwarding service data; the first network device is also used to The second priority is to forward the second service packet, and the second service packet includes service data and second time information for forwarding the service data by the first network device.
第九方面,提供了一种通信系统,包括第一网络设备、第二网络设备和控制设备;第一网络设备,用于接收控制设备发送的第一策略,第一策略用于指示依据第一优先级转发第一业务的业务数据;第一网络设备,还用于接收第二网络设备发送的第一业务报文,第一业务报文包括业务数据和第二网络设备转发业务数据的第一时间信息;控制设备,用于接收第二网络设备发送的转发信息;控制设备,还用于根据转发信息确定第二网络设备转发业务数据不满足转发规则,确定第二策略,第二策略用于指示依据第二优先级转发业务数据,第二优先级高于第一优先级,转发规则用于指示转发业务数据的时延要求;控制设备,还用于向第一网络设备发送第二策略;第一网络设备,还用于根据第一时间信息确定第二网络设备转发业务数据不满足转发规则,接收控制设备发送的第二策略;第一网络设备,还用于根据第二优先级转发第二业务报文,第二业务报文包括业务数据和第一网络设备转发业务数据的第二时间信息。In a ninth aspect, a communication system is provided, including a first network device, a second network device, and a control device; the first network device is configured to receive a first strategy sent by the control device, and the first strategy is used to indicate that according to the first Forwarding the service data of the first service with priority; the first network device is also used to receive the first service message sent by the second network device, the first service message includes the service data and the first service data forwarded by the second network device time information; the control device is used to receive the forwarding information sent by the second network device; the control device is also used to determine according to the forwarding information that the forwarding service data of the second network device does not satisfy the forwarding rule, and determine a second strategy, which is used for Instructing to forward the service data according to the second priority, the second priority is higher than the first priority, and the forwarding rule is used to indicate the delay requirement for forwarding the service data; the control device is also used to send the second policy to the first network device; The first network device is further configured to determine according to the first time information that the forwarding of the service data by the second network device does not satisfy the forwarding rule, and to receive the second policy sent by the control device; the first network device is also configured to forward the second policy according to the second priority Two service packets, the second service packet includes service data and second time information for forwarding the service data by the first network device.
上述第三方面至第九方面中任一种可能的设计所代带来的技术效果可参加第一方面或第二方面中对应设计所带来的技术效果,在此不再赘述。The technical effect brought by any possible design in the third aspect to the ninth aspect mentioned above can participate in the technical effect brought by the corresponding design in the first aspect or the second aspect, and will not be repeated here.
附图说明Description of drawings
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention, and constitute a part of the description, and are used together with the embodiments of the application to explain the technical solution of the present invention, and do not constitute a limitation to the technical solution of the present invention.
图1为本申请实施例提供的一种通信系统结构示意图;FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application;
图2为本申请实施例提供的一种数据传输方法的流程示意图;FIG. 2 is a schematic flow diagram of a data transmission method provided in an embodiment of the present application;
图3为本申请实施例提供的另一种数据传输方法的流程示意图;FIG. 3 is a schematic flow diagram of another data transmission method provided by the embodiment of the present application;
图4为本申请实施例提供的一种数据传输过程示意图;FIG. 4 is a schematic diagram of a data transmission process provided by an embodiment of the present application;
图5为本申请实施例提供的另一种数据传输过程示意图;FIG. 5 is a schematic diagram of another data transmission process provided by the embodiment of the present application;
图6为本申请实施例提供的一种通信装置的组成示意图;FIG. 6 is a schematic diagram of the composition of a communication device provided in an embodiment of the present application;
图7为本申请实施例提供的一种通信设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of a communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
在本申请实施例中,为了便于清楚描述本申请实施例的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。该“第一”、第二”描述的技术特征间无先后顺序或者大小顺序。In the embodiment of the present application, in order to clearly describe the technical solution of the embodiment of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference. The technical features described in "first" and "second" have no sequence or order of magnitude.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. To be precise, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner for easy understanding.
在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the description of this application, unless otherwise specified, "/" means that the objects associated with each other are an "or" relationship, for example, A/B can mean A or B; "and/or" in this application is only It is an association relationship that describes associated objects, which means that there can be three kinds of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, among which A, B Can be singular or plural. And, in the description of the present application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
在本申请实施例中,至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本申请不做限制。In the embodiment of this application, at least one can also be described as one or more, and multiple can be two, three, four or more, which is not limited in this application.
本申请实施例提出的数据传输方法,以端到端整条链路为整体进行考量,可以根据网络设备传输业务数据的实际时延,智能化地调整业务数据的优先级,以此来提高传输业务数据的时延能够满足时延要求的概率。The data transmission method proposed in the embodiment of this application considers the entire end-to-end link as a whole, and can intelligently adjust the priority of service data according to the actual delay of network equipment transmitting service data, so as to improve transmission The probability that the delay of service data can meet the delay requirement.
下面结合附图对本申请实施例提供的数据传输方法进行详细说明。The data transmission method provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
图1为本申请实施例提供的一种通信系统的结构示意图。如图1所示,通信系统10包括控制设备100、业务设备(如图1所示的业务设备101和业务设备106)、至少一个网络设备(如图1所示的网络设备102、网络设备103、网络设备104和网络设备105)。FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application. As shown in FIG. 1, the communication system 10 includes a control device 100, a service device (a service device 101 and a service device 106 as shown in FIG. 1), at least one network device (a network device 102, a network device 103 as shown in FIG. , network device 104 and network device 105).
控制设备100与业务设备101、网络设备和业务设备106分别连接。业务设备101与网络设备102连接,网络设备102与网络设备103连接,网络设备103与网络设备104连接,网络设备104与网络设备105连接,网络设备105与业务设备106连接。The control device 100 is connected to the service device 101, the network device and the service device 106 respectively. The service device 101 is connected to the network device 102 , the network device 102 is connected to the network device 103 , the network device 103 is connected to the network device 104 , the network device 104 is connected to the network device 105 , and the network device 105 is connected to the service device 106 .
控制设备100可以是独立的物理设备,例如服务器或者计算机等。还可以是一个物理设备上的虚拟机(virtual machine,VM),例如控制设备的功能和网络设备的功能集成在同一个物理设备上。也可以是网络设备中的一部分,本申请对此不予限定。The control device 100 may be an independent physical device, such as a server or a computer. It may also be a virtual machine (virtual machine, VM) on a physical device, for example, the function of the control device and the function of the network device are integrated on the same physical device. It may also be a part of network equipment, which is not limited in this application.
控制设备100用于指示网络设备转发业务数据的策略,即控制网络设备转发业务数据的优先级。例如,控制设备100根据业务请求中包含的业务设备的地址和时延要求确定业务数据的转发路径,向转发路径中包括的网络设备发送转发策略。控制设备100还可以根据网络设备发送的转发信息确定网络设备转发业务数据的时延超出预期,进而确定新的转发策略,向网络设备下发新的转发策略。The control device 100 is used to instruct the network device to forward the policy of service data, that is, to control the priority of the network device to forward the service data. For example, the control device 100 determines the forwarding path of the service data according to the address and delay requirement of the service device contained in the service request, and sends the forwarding policy to the network device included in the forwarding path. The control device 100 may also determine, according to the forwarding information sent by the network device, that the delay in forwarding service data by the network device exceeds expectations, and then determine a new forwarding strategy, and deliver the new forwarding strategy to the network device.
业务设备可以是一种具有无线收发功能的设备。业务设备可以有不同的名称,例如用户设备(user equipment,UE)、接入终端、终端单元、终端站、移动站、移动台、远方站、远程终端、移动设备、无线通信设备、终端代理或终端装置等。在本申请实施例中,业务设备可以是自动驾驶汽车、自动驾驶飞机等。业务设备101可以是源设备或目的设备,业务设备106也可以是源设备或目的设备。示例地,业务设备101可以作为源设备,向作为目的设备的业务设备106发送业务数据,也可以向控制设备100发送业务请求。The service device may be a device with a wireless transceiver function. Service equipment may have different names, such as user equipment (user equipment, UE), access terminal, terminal unit, terminal station, mobile station, mobile station, remote station, remote terminal, mobile device, wireless communication device, terminal agent or terminal devices, etc. In the embodiment of the present application, the business equipment may be a self-driving car, a self-driving plane, and the like. The service device 101 may be a source device or a destination device, and the service device 106 may also be a source device or a destination device. For example, the service device 101 may serve as a source device and send service data to the service device 106 serving as a destination device, and may also send a service request to the control device 100 .
网络设备可以是交换机或路由器等。交换机支持VLAN和三层交换技术的交换机。在本申请实施例中,网络设备可以接收控制设备100发送的转发策略,根据转发策略转发业务报文。网络设备可以根据业务报文中包含的时间信息,确定之前的网络设备转发业务报文的时长不满足预期,从而确定新的转发策略。Network devices can be switches or routers, etc. The switch supports VLAN and Layer 3 switching technology switches. In this embodiment of the present application, the network device may receive the forwarding policy sent by the control device 100, and forward the service packet according to the forwarding policy. According to the time information included in the service message, the network device can determine that the duration of forwarding the service message by the previous network device does not meet expectations, so as to determine a new forwarding strategy.
应理解,图1是示例性的架构图,图1示的通信系统包括的设备的数量不受限制。并且,除图1所示的设备外,图1示的通信系统还可以包括其他设备,对此不予限定。It should be understood that FIG. 1 is an exemplary architecture diagram, and the number of devices included in the communication system shown in FIG. 1 is not limited. Moreover, in addition to the devices shown in FIG. 1 , the communication system shown in FIG. 1 may further include other devices, which is not limited thereto.
接下来,如图2所示,本申请实施例提供了一种数据传输方法,该方法包括以下步骤。Next, as shown in FIG. 2 , an embodiment of the present application provides a data transmission method, and the method includes the following steps.
S201、控制设备接收业务设备发送的业务请求。S201. The control device receives a service request sent by the service device.
对于转发业务数据的时延有要求的业务,业务设备作为源设备发送业务数据之前,可以向控制设备发送业务请求。对于时延有确定性要求的业务,可以称作确定性时延业务。业务请求包括源设备的地址,目的设备的地址、第一业务的业务标识和预设总时延。For services that require a delay in forwarding service data, the service device can send a service request to the control device before sending service data as the source device. Services that require deterministic delay can be called deterministic delay services. The service request includes the address of the source device, the address of the destination device, the service identifier of the first service and the preset total delay.
源设备的地址可以是IP地址,目的设备的地址可以是IP地址。例如,源设备可以是图1中所示的业务设备101,目的设备可以是图1中所示的业务设备106。The address of the source device may be an IP address, and the address of the destination device may be an IP address. For example, the source device may be the service device 101 shown in FIG. 1 , and the destination device may be the service device 106 shown in FIG. 1 .
业务标识可以是业务的唯一标识,例如可以是业务的名称等。可以理解地,不同的业务标识指示不同的业务。业务设备可以发送多个业务的业务请求,控制设备可以根据业务标识对多个业务进行区分。第一业务可以是多个业务中的任意一个业务。The service identifier may be a unique identifier of the service, for example, it may be the name of the service. Understandably, different service identifiers indicate different services. The service device can send service requests for multiple services, and the control device can distinguish multiple services according to service identifiers. The first service may be any one of multiple services.
预设总时延可以是确定性时延业务的传输要求指示的时延。例如,预设总时延是指源设备和目标设备之间至少两个网络设备转发业务数据的时长。预设总时延可以是管理人员预先设置。不同的业务的预设总时延可以是不同。The preset total delay may be the delay indicated by the transmission requirement of the deterministic delay service. For example, the preset total delay refers to the duration of forwarding service data by at least two network devices between the source device and the target device. The preset total delay can be preset by the administrator. The preset total delays of different services may be different.
S202、控制设备确定第一策略。S202. The control device determines a first policy.
第一策略包括转发第一业务的业务数据的第一预设时延、转发路径信息和预设总时延。The first strategy includes a first preset time delay for forwarding service data of the first service, forwarding path information, and a preset total time delay.
控制设备可以根据源设备的地址、目的设备的地址和预设总时延,确定转发路径信息。The control device can determine forwarding path information according to the address of the source device, the address of the destination device and the preset total delay.
通常,源设备与目的设备传输数据存在多条转发路径,控制设备可以从多条转发路径中选择一条转发路径。例如,控制设备选择的转发路径可以是多条转发路径中网络设备的数量最少的一条路径,也可以是多条转发路径中路径最短的一条路径。Usually, there are multiple forwarding paths for data transmission between the source device and the destination device, and the control device may select a forwarding path from the multiple forwarding paths. For example, the forwarding path selected by the control device may be the path with the least number of network devices among the multiple forwarding paths, or the shortest path among the multiple forwarding paths.
转发路径信息包括至少两个网络设备,如图1所示的通信系统,转发路径可以是由网络设备102、网络设备103、网络设备104和网络设备105组成的转发路径。至少两个网络设备可以包括网络设备102、网络设备103、网络设备104和网络设备105。The forwarding path information includes at least two network devices. For the communication system shown in FIG. The at least two network devices may include network device 102 , network device 103 , network device 104 and network device 105 .
控制设备根据预设总时延和转发路径信息包括的至少两个网络设备数量确定第一预设时延。可以理解地,第一策略包括第一预设时延,也即网络设备转发第一业务的业务数据的时延要求。The control device determines the first preset time delay according to the preset total time delay and the number of at least two network devices included in the forwarding path information. Understandably, the first policy includes a first preset delay, that is, a delay requirement for the network device to forward service data of the first service.
示例性地,若预设总时延为16毫秒(millisecond,ms),转发路径包括4个网络设备,则第一预设时延为4ms,代表第一网络设备需要在4ms内转发业务数据。对比表1所示的服务分级表,可以确定第一优先级为P2。Exemplarily, if the preset total delay is 16 milliseconds (millisecond, ms), and the forwarding path includes 4 network devices, the first preset delay is 4 ms, which means that the first network device needs to forward service data within 4 ms. Comparing the service classification table shown in Table 1, it can be determined that the first priority is P2.
表1Table 1
其中,P0优先级代表网络设备需要在1ms内完成业务数据的转发,P1优先级代表网络设备需要在3ms内完成业务数据的转发,P2优先级代表网络设备需要在5ms内完成业务数据的转发,P3优先级代表网络设备需要在10ms内完成业务数据的转发。Among them, the priority of P0 means that the network equipment needs to complete the forwarding of business data within 1ms, the priority of P1 means that the network equipment needs to complete the forwarding of business data within 3ms, and the priority of P2 means that the network equipment needs to complete the forwarding of business data within 5ms. P3 priority means that network devices need to complete service data forwarding within 10ms.
需要说明的是,由于不同的业务的预设总时延,以及转发业务数据的源设备和目的设备不同,控制设备确定的网络设备转发业务数据的预设时延不同,以及转发路径信息也不同,则控制设备针对不同的业务可以设置不同的策略。It should be noted that due to the preset total delay of different services, and the difference between the source device and the destination device for forwarding service data, the preset delay of forwarding service data determined by the control device is different, and the forwarding path information is also different , the control device can set different policies for different services.
S203、控制设备向至少两个网络设备发送第一策略。S203. The control device sends the first policy to at least two network devices.
控制设备向转发路径中每个网络设备发送第一策略,使得每个网络设备可以依据第一策略指示的第一优先级转发第一业务的业务数据。可理解的,控制设备指示网络设备的第一策略可以是指网络设备转发业务数据的转发规则。示例地,如图1所示的通信系统,假设转发路径中至少两个网络设备包括网络设备102、网络设备103、网络设备104和网络设备105。控制设备100分别向网络设备102、网络设备103、网络设备104和网络设备105发送第一策略。The control device sends the first policy to each network device in the forwarding path, so that each network device can forward the service data of the first service according to the first priority indicated by the first policy. It can be understood that the first policy that the control device instructs the network device may refer to a forwarding rule for the network device to forward service data. For example, in the communication system shown in FIG. 1 , it is assumed that at least two network devices in the forwarding path include a network device 102 , a network device 103 , a network device 104 and a network device 105 . The control device 100 sends the first policy to the network device 102 , the network device 103 , the network device 104 and the network device 105 respectively.
在下文中,假设至少两个网络设备包括第一网络设备和第二网络设备,第一网络设备连接第二网络设备,以第一网络设备转发业务数据为例进行说明。示例性地,第一网络设备可以是图1所示的通信系统中网络设备103,第二网络设备可以是图1所示的通信系统中网络设备102。In the following, it is assumed that at least two network devices include a first network device and a second network device, and that the first network device is connected to the second network device, and that the first network device forwards service data as an example for illustration. Exemplarily, the first network device may be the network device 103 in the communication system shown in FIG. 1 , and the second network device may be the network device 102 in the communication system shown in FIG. 1 .
S204、第一网络设备接收第一策略。S204. The first network device receives the first policy.
S205、第一网络设备接收第二网络设备发送的第一业务报文。S205. The first network device receives the first service packet sent by the second network device.
第一业务报文包括业务数据和第二网络设备转发业务数据的第一时间信息。第一时间信息包括第一时间标识、第二时间标识和偏差时延。The first service packet includes service data and first time information for forwarding the service data by the second network device. The first time information includes a first time identifier, a second time identifier and an offset time delay.
第一时间标识是第二网络设备接收业务数据的时刻。第二时间标识是第二网络设备发送业务数据的时刻。The first time identifier is the moment when the second network device receives the service data. The second time identifier is the moment when the second network device sends service data.
偏差时延是根据至少一个网络设备转发业务数据的时长和第一预设时延来确定的。The deviation delay is determined according to the duration of forwarding service data by at least one network device and the first preset delay.
若偏差时延等于0ms,表示第一网络设备之前已转发业务数据的网络设备转发业务数据的时延满足转发规则。If the deviation delay is equal to 0 ms, it means that the delay of forwarding service data by network devices that have forwarded service data before the first network device satisfies the forwarding rule.
结合图1所示的通信系统,例如,第二网络设备是网络设备102,第一网络设备是网络设备103,若偏差时延等于0ms,表示网络设备102转发业务数据的时延满足转发规则。With reference to the communication system shown in FIG. 1 , for example, the second network device is network device 102, and the first network device is network device 103. If the offset delay is equal to 0 ms, it means that the delay for forwarding service data by network device 102 satisfies the forwarding rule.
又如,第二网络设备是网络设备103,第一网络设备是网络设备104,若偏差时延等于0ms,表示网络设备102和网络设备103转发业务数据的时延满足转发规则。For another example, the second network device is network device 103, and the first network device is network device 104. If the offset delay is equal to 0 ms, it means that the delay for forwarding service data between network device 102 and network device 103 satisfies the forwarding rule.
若偏差时延大于或等于1ms,表示第一网络设备之前至少一个已转发业务数据的网络设备转发业务数据的时延不满足转发规则。If the deviation delay is greater than or equal to 1 ms, it means that the delay of forwarding the service data by at least one network device before the first network device that has forwarded the service data does not satisfy the forwarding rule.
例如,第二网络设备是网络设备102,第一网络设备是网络设备103,若偏差时延大于或等于1ms,表示网络设备102转发业务数据的时延不满足转发规则。For example, the second network device is network device 102, and the first network device is network device 103. If the deviation delay is greater than or equal to 1 ms, it means that the delay of forwarding service data by network device 102 does not satisfy the forwarding rule.
又如,第二网络设备是网络设备103,第一网络设备施网络设备104,若偏差时延大于或等于1ms,表示网络设备102和/或网络设备103转发业务数据的时延不满足转发规则。As another example, the second network device is network device 103, and the first network device is network device 104. If the deviation delay is greater than or equal to 1 ms, it means that the delay of forwarding service data by network device 102 and/or network device 103 does not meet the forwarding rule. .
若转发路径中每个网络设备的转发业务数据的第一时延大于第一预设时延,偏差时延为每个网络设备转发业务数据的第一时延与第一预设时延之差的和。If the first delay of forwarding service data of each network device in the forwarding path is greater than the first preset delay, the offset delay is the difference between the first delay of each network device forwarding service data and the first preset delay of and.
若转发路径中的任一个网络设备转发业务数据的第一时延大于第一预设时延,此网络设备之后的网络设备转发业务数据的第一时延,弥补了此网络设备超出第一预设时延的时延,偏差时延可以为0ms。If the first delay in forwarding service data by any network device in the forwarding path is greater than the first preset delay, the first delay in forwarding service data by network devices after this network device makes up for the network device exceeding the first preset delay. Assuming the time delay of the time delay, the deviation time delay may be 0ms.
示例性地,若转发路径上包含三个转发设备,分别为转发设备A、转发设备B和转发设备C,预设总时延为12ms,也即每个转发设备需要在预设时延4ms内完成业务数据的转发。For example, if there are three forwarding devices on the forwarding path, namely forwarding device A, forwarding device B, and forwarding device C, the preset total delay is 12ms, that is, each forwarding device needs to be within 4ms of the preset delay Complete the forwarding of business data.
若转发设备A转发业务数据耗时4ms,转发设备B转发业务数据耗时4ms,转发设备C转发业务数据耗时4ms,偏差时延为0ms。If forwarding device A takes 4ms to forward service data, forwarding device B takes 4ms to forward service data, and forwarding device C takes 4ms to forward service data, the deviation delay is 0ms.
若转发设备A转发业务数据耗时5ms,则此时偏差时延为转发设备A的时延与预设时延之差1ms。If forwarding device A takes 5 ms to forward service data, the offset delay at this time is 1 ms difference between the delay of forwarding device A and the preset delay.
转发设备B接收转发设备A发送的业务报文,若转发设备B转发业务数据耗时6ms,此时偏差时延为转发设备B的时延与预设时延之差,与转发设备A的时延与预设时延之差的和3ms。若转发设备B转发业务数据耗时3ms,弥补了转发设备A转发业务数据超出第一预设时延的时延1ms,偏差时延为0ms。Forwarding device B receives the service packet sent by forwarding device A. If forwarding device B takes 6ms to forward the service data, the deviation delay is the difference between the delay of forwarding device B and the preset delay, and the time delay of forwarding device A. The sum of the difference between the delay and the preset delay is 3ms. If the forwarding device B takes 3ms to forward the service data, it makes up for the 1ms delay of forwarding the service data of the forwarding device A exceeding the first preset delay, and the deviation delay is 0ms.
S206、第一网络设备根据第一时间信息判断第二网络设备转发业务数据是否满足转发规则。S206. The first network device determines whether the forwarding of the service data by the second network device satisfies the forwarding rule according to the first time information.
第一网络设备可以根据第一时间标识和第二时间标识,可以确定出第二网络设备转发业务数据的实际转发时长,也即第一时延。According to the first time identifier and the second time identifier, the first network device can determine the actual forwarding time for the second network device to forward the service data, that is, the first delay.
第一网络设备可以根据第一时延、偏差时延和第一预设时延判断第二网络设备转发业务数据是否满足转发规则。若第一时延和偏差时延之和大于第一预设时延,可以确定第二网络设备转发业务数据不满足转发规则。若第一时延和偏差时延之和小于或等于第一预设时延,可以确定第二网络设备转发业务数据满足转发规则。The first network device may determine whether the forwarding of the service data by the second network device satisfies the forwarding rule according to the first delay, the offset delay, and the first preset delay. If the sum of the first time delay and the offset time delay is greater than the first preset time delay, it may be determined that the forwarding of the service data by the second network device does not meet the forwarding rule. If the sum of the first delay and the deviation delay is less than or equal to the first preset delay, it may be determined that the forwarding of the service data by the second network device satisfies the forwarding rule.
在一种情形下,若第二网络设备为传输路径上的第一个网络设备(如:网络设备102)时,此时第一网络设备为传输路径上的第二个网络设备(如:网络设备103)。由于第二网络设备为传输路径上的第一个网络设备,此时第一业务报文包含的偏差时延为0ms。如此,若第一时延大于第一预设时延,可以确定第二网络设备转发业务数据的实际传输时长超出预期,也即不满足转发规则,则执行S207。In one situation, if the second network device is the first network device (such as: network device 102) on the transmission path, then the first network device is the second network device (such as: network device 102) on the transmission path. device 103). Since the second network device is the first network device on the transmission path, the deviation delay included in the first service packet is 0 ms at this time. In this way, if the first time delay is greater than the first preset time delay, it can be determined that the actual transmission time for the second network device to forward the service data is longer than expected, that is, the forwarding rule is not satisfied, and S207 is executed.
若第一时延小于或等于第一预设时延,可以确定第二网络设备转发业务数据的实际传输时长满足预期,也即满足转发规则,则执行S209。If the first delay is less than or equal to the first preset delay, it can be determined that the actual transmission duration of the second network device forwarding the service data meets expectations, that is, satisfies the forwarding rule, and then execute S209.
在另一种情形下,若第二网络设备为传输路径上第一个网络设备之后的网络设备(如:网络设备103)时,此时第一网络设备可以是网络设备104,则第一业务报文包含的偏差时延为网络设备102转发业务数据的实际时延与预设时延之差,包括以下几种情形。In another situation, if the second network device is a network device (such as: network device 103) after the first network device on the transmission path, the first network device may be network device 104 at this time, then the first service The deviation delay contained in the message is the difference between the actual delay of forwarding service data by the network device 102 and the preset delay, including the following situations.
情形1,当网络设备102的实际时延满足第一预设时延时,若网络设备103的实际时延满足第一预设时延,此时偏差时延为0ms,则执行S209。In case 1, when the actual delay of the network device 102 satisfies the first preset delay, if the actual delay of the network device 103 meets the first preset delay, and the offset delay is 0 ms, then execute S209.
情形2,当网络设备102的实际时延不满足第一预设时延、网络设备103的实际时延满足第一预设时延时,此时偏差时延大于0ms,则执行S207。In case 2, when the actual delay of the network device 102 does not meet the first preset delay, the actual delay of the network device 103 meets the first preset delay, and the deviation delay is greater than 0 ms, then execute S207.
情形3,当网络设备102的实际时延满足第一预设时延、网络设备103的实际时延不满足第一预设时延时,此时偏差时延大于0ms,则执行S207。In case 3, when the actual delay of the network device 102 satisfies the first preset delay and the actual delay of the network device 103 does not meet the first preset delay, and the deviation delay is greater than 0 ms, execute S207.
情形4,当网络设备102的实际时延不满足第一预设时延、网络设备103的实际时延不满足第一预设时延时,此时偏差时延大于0ms,则执行S207。Case 4, when the actual delay of the network device 102 does not meet the first preset delay, the actual delay of the network device 103 does not meet the first preset delay, and the deviation delay is greater than 0 ms, then execute S207.
也即第一时延和偏差时延之和大于第一预设时延,可以确定第二网络设备转发业务数据不满足转发规则,则执行S207。若第一时延和偏差时延之和小于或等于第一预设时延,可以确定第二网络设备转发业务数据满足转发规则,则执行S209。That is, the sum of the first delay and the deviation delay is greater than the first preset delay, and it can be determined that the forwarding of the service data by the second network device does not satisfy the forwarding rule, and then S207 is executed. If the sum of the first delay and the deviation delay is less than or equal to the first preset delay, it can be determined that the forwarding of the service data by the second network device satisfies the forwarding rule, and then execute S209.
S207、第一网络设备确定第二策略。S207. The first network device determines the second policy.
第二策略用于指示根据第二优先级转发业务数据,第二优先级高于第一优先级。The second policy is used to indicate to forward the service data according to the second priority, and the second priority is higher than the first priority.
可选地,第一网络设备可以根据预设总时延与第一时延之差,以及至少两个网络设备中未转发业务数据的网络设备的数量,确定第二预设时延,得到第二策略。可理解地,第二策略包括第二预设时延,第二预设时延小于第一策略包括的转发业务数据的第一预设时延。Optionally, the first network device may determine the second preset delay according to the difference between the preset total delay and the first delay, and the number of network devices that have not forwarded service data among the at least two network devices, and obtain the second preset delay. Two strategies. Understandably, the second policy includes a second preset delay, and the second preset delay is smaller than the first preset delay of forwarding service data included in the first policy.
示例地,预设总时延为16ms,第一时延为7ms,至少两个网络设备中未转发业务数据的网络设备的数量为3。根据预设总时延与第一时延之差9ms,和未转发业务数据的网络设备的数量3,可以确定第二预设时延为3ms,代表第一网络设备需要在第二预设时延3ms完成业务数据的转发。对比表1所示的服务分级表,可以确定业务数据的优先级为P1。For example, the preset total delay is 16ms, the first delay is 7ms, and the number of network devices that have not forwarded service data among at least two network devices is three. According to the difference between the preset total delay and the first delay of 9ms, and the number of network devices that have not forwarded service data: 3, it can be determined that the second preset delay is 3ms, which means that the first network device needs to Delay 3ms to complete the forwarding of business data. Comparing the service classification table shown in Table 1, it can be determined that the priority of service data is P1.
可以理解地,若第二网络设备根据第一优先级转发业务数据的第一时延,大于第一预设时延,代表第二网络设备转发业务数据的传输时长超出预期。此时为了保证业务数据在整条传输路径上的时延满足预设总时延,需要提高业务数据的优先级,以保证未转发业务数据的网络设备可以更快的转发业务数据。Understandably, if the first time delay for the second network device to forward the service data according to the first priority is greater than the first preset time delay, it means that the transmission time for the second network device to forward the service data exceeds expectations. At this time, in order to ensure that the delay of service data on the entire transmission path meets the preset total delay, the priority of service data needs to be increased to ensure that network devices that have not forwarded service data can forward service data faster.
S208、第一网络设备根据第二优先级转发第二业务报文。S208. The first network device forwards the second service packet according to the second priority.
S209、第一网络设备根据第一优先级转发第三业务报文。S209. The first network device forwards the third service packet according to the first priority.
由于网络设备可能是根据不同的优先级对业务数据进行转发,网络设备转发业务数据的转发时长可能是不同的。例如,由于第二时间信息是第一网络设备根据第一优先级转发业务数据产生的,而第三时间信息是第一网络设备根据第二优先级转发业务数据产生的,第二业务报文包括的第二时间信息和第三业务报文包括的第三时间信息是不同的。第二业务报文包括的业务数据和第三业务报文包括的业务数据是相同的。Since network devices may forward service data according to different priorities, the forwarding time for network devices to forward service data may be different. For example, since the second time information is generated by the first network device forwarding service data according to the first priority, and the third time information is generated by the first network device forwarding service data according to the second priority, the second service packet includes The second time information included in the third service packet is different from the third time information included in the third service packet. The service data included in the second service message is the same as the service data included in the third service message.
第二时间信息包括第三时间标识、第四时间标识和偏差时延。第三时间标识是第一网络设备接收业务数据的时刻,第四时间标识是第一网络设备发送业务数据的时刻。由于根据第一时间信息确定第二网络设备转发业务数据不满足转发规则,此时偏差时延是第一时延与第一预设时延之差。The second time information includes a third time identifier, a fourth time identifier and an offset time delay. The third time identifier is the moment when the first network device receives the service data, and the fourth time identifier is the moment when the first network device sends the service data. Since it is determined according to the first time information that the forwarding of the service data by the second network device does not satisfy the forwarding rule, the offset delay at this time is the difference between the first delay and the first preset delay.
第三时间信息包括第五时间标识、第六时间标识和偏差时延,第五时间标识是第一网络设备接收业务数据的时刻,第六时间标识是第一网络设备发送业务数据的时刻。由于根据第一时间信息确定第二网络设备转发业务数据满足转发规则,此时偏差时延为0ms。The third time information includes a fifth time identifier, a sixth time identifier and an offset delay, the fifth time identifier is a time when the first network device receives service data, and the sixth time identifier is a time when the first network device sends service data. Since it is determined according to the first time information that the forwarding of the service data by the second network device satisfies the forwarding rule, the deviation delay is 0 ms at this time.
需要说明的是,第二网络设备可以是转发路径中的任意一个网络设备。如果第二网络设备确定已转发业务数据的在先网络设备转发业务数据满足转发规则,第二网络设备依据第一优先级发送第一业务报文,第一网络设备可以接收第二网络设备依据第一优先级发送的第一业务报文。如果第二网络设备确定已转发业务数据的在先网络设备转发业务数据不满足转发规则,第二网络设备依据第二优先级发送第一业务报文,第一网络设备可以接收第二网络设备依据第二优先级发送的第一业务报文。It should be noted that the second network device may be any network device in the forwarding path. If the second network device determines that the service data forwarded by the previous network device that has forwarded the service data satisfies the forwarding rule, the second network device sends the first service packet according to the first priority, and the first network device can receive the second network device according to the first priority. The first service packet sent with a priority. If the second network device determines that the service data forwarded by the previous network device that has forwarded the service data does not meet the forwarding rules, the second network device sends the first service packet according to the second priority, and the first network device can receive the second network device according to the The first service packet sent with the second priority.
如此,第一网络设备可以根据已转发业务数据的网络设备的实际转发业务数据的时延动态地调整转发业务数据的优先级,以此来弥补已转发业务数据的网络设备转发业务数据超出预设时延的偏差时延,尽可能确保业务数据在转发路径上的时延满足预设总时延要求,提高了确定性时延业务的时延满足确定性时延要求的概率,进而提升了用户体验。In this way, the first network device can dynamically adjust the priority of forwarding service data according to the actual delay of forwarding service data of the network device that has forwarded service data, so as to make up for the network device that has forwarded service data. Delay deviation delay, as far as possible to ensure that the delay of business data on the forwarding path meets the preset total delay requirements, which improves the probability that the delay of deterministic delay services meets the deterministic delay requirements, thereby improving user experience.
上述实施例提供的一种数据传输方法是由第一网络设备确定第二策略。在另一种可能的实现方式中,还可以由控制设备确定第二策略,第一网络设备接收控制设备发送的第二策略。如图3所示,本申请实施例提供了一种数据传输方法,该方法包括以下步骤。In the data transmission method provided by the foregoing embodiments, the second policy is determined by the first network device. In another possible implementation manner, the control device may further determine the second policy, and the first network device receives the second policy sent by the control device. As shown in FIG. 3 , an embodiment of the present application provides a data transmission method, and the method includes the following steps.
S301、控制设备接收业务设备发送的业务请求。S301. The control device receives a service request sent by the service device.
S302、控制设备确定第一策略。S302. The control device determines a first policy.
S303、控制设备向至少两个网络设备发送第一策略。S303. The control device sends the first policy to at least two network devices.
S301-S303的具体实现方式可参考上述对于S201-S203的描述,在此不再一一赘述。For the specific implementation manners of S301-S303, reference may be made to the above description of S201-S203, which will not be repeated here.
S304、第二网络设备向第一网络设备发送第一业务报文。S304. The second network device sends the first service packet to the first network device.
S305、第二网络设备向控制设备发送转发信息。S305. The second network device sends forwarding information to the control device.
转发信息包括第二网络设备转发业务数据的第一时间信息。第一时间信息包括第一时间标识、第二时间标识和偏差时延。关于第一时间信息的解释可以参考上述S205的阐述。The forwarding information includes first time information when the second network device forwards the service data. The first time information includes a first time identifier, a second time identifier and an offset time delay. For an explanation of the first time information, reference may be made to the description of S205 above.
S306、控制设备接收第二网络设备发送的转发信息。S306. The control device receives the forwarding information sent by the second network device.
S307、控制设备根据第一时间信息确定第二网络设备转发业务数据不满足转发规则,确定第二策略。S307. The control device determines according to the first time information that the service data forwarded by the second network device does not meet the forwarding rule, and determines a second policy.
控制设备可以根据第一时间信息包含的第一时间标识和第二时间标识,确定出第二网络设备转发业务数据的实际转发时长,也即第一时延。控制设备可以根据第一时间、偏差时延和第一预设时延判断第二网络设备转发业务数据是否满足转发规则。若第一时延和偏差时延之和大于第一预设时延,可以确定第二网络设备转发业务数据不满足转发规则。The control device may determine the actual forwarding duration of the service data forwarded by the second network device, that is, the first delay, according to the first time identifier and the second time identifier included in the first time information. The control device may determine whether the forwarding of the service data by the second network device satisfies the forwarding rule according to the first time, the offset delay, and the first preset delay. If the sum of the first time delay and the offset time delay is greater than the first preset time delay, it may be determined that the forwarding of the service data by the second network device does not meet the forwarding rule.
控制设备可以根据预设总时延与第一时延之差,以及至少两个网络设备中未转发业务数据的网络设备的数量,确定第二预设时延,得到第二策略。可以理解地,第二策略包括第二预设时延,第二预设时延小于第一策略包括的转发业务数据的第一预设时延。The control device may determine the second preset time delay according to the difference between the preset total time delay and the first time delay, and the number of network devices that have not forwarded service data among the at least two network devices, and obtain the second policy. It can be understood that the second policy includes a second preset time delay, and the second preset time delay is smaller than the first preset time delay of forwarding service data included in the first policy.
可以理解地,若控制设备根据第一时间信息确定第二网络设备转发业务数据满足转发规则,控制设备无需确定第二策略。Understandably, if the control device determines according to the first time information that the service data forwarded by the second network device satisfies the forwarding rule, the control device does not need to determine the second policy.
S307中关于控制设备确定第二策略的具体实现方式,可以参考上述S206-S207中关于第一网络设备确定第二策略的描述,在此不再一一赘述。For the specific implementation manner of determining the second policy by the control device in S307, reference may be made to the descriptions of determining the second policy by the first network device in S206-S207 above, which will not be repeated here.
S308、控制设备向至少两个网络设备中除了第二网络设备之外的至少一个网络设备发送第二策略。S308. The control device sends the second policy to at least one network device except the second network device among the at least two network devices.
其中,至少两个网络设备为转发路径中包含的至少两个网络设备。Wherein, the at least two network devices are at least two network devices included in the forwarding path.
可以理解地,第二网络设备为已传输业务数据的网络设备,至少两个网络设备中除了第二网络设备之外的网络设备为未转发业务数据的网络设备。控制设备向未转发业务数据的网络设备中至少一个网络设备发送第二策略。It can be understood that the second network device is a network device that has transmitted service data, and network devices other than the second network device among the at least two network devices are network devices that have not forwarded service data. The control device sends the second policy to at least one network device among the network devices that have not forwarded the service data.
在一种可能的实现方式中,若可以通过调整业务数据在一个未转发业务数据的网络设备的优先级,即可弥补第二网络设备转发业务数据超出的时延,控制设备则可以向一个未转发业务数据的网络设备发送第二策略。In a possible implementation, if the priority of service data in a network device that has not forwarded service data can be adjusted, the excess time delay in forwarding service data by the second network device can be compensated, and the control device can send a message to a network device that has not forwarded service data. The network device that forwards the service data sends the second policy.
若通过调整业务数据在一个未转发业务数据的网络设备的优先级,不能完全弥补第二网络设备转发业务数据超出的时延,控制设备需要向多个未转发业务数据的网络设备发送第二策略。多个未转发业务数据的网络设备根据第二策略指示的第二优先级转发业务数据,以此来弥补第二网络设备转发业务数据超出的时延,进而提高了至少两个网络设备转发业务数据的实际总时延满足预设总时延要求的概率。If adjusting the priority of service data on a network device that has not forwarded service data cannot fully compensate for the excess delay in forwarding service data by the second network device, the control device needs to send the second policy to multiple network devices that have not forwarded service data . A plurality of network devices that have not forwarded service data forwards service data according to the second priority indicated by the second policy, so as to compensate for the excess delay in forwarding service data by the second network device, thereby improving the efficiency of at least two network devices forwarding service data. The probability that the actual total delay meets the preset total delay requirement.
下面结合图1所示的通信系统对本申请实施例提供的一种数据传输方法进行举例说明。A data transmission method provided by the embodiment of the present application will be illustrated below with reference to the communication system shown in FIG. 1 .
示例性地,假设有一个从源设备101发往目的设备106的确定性时延业务,确定性时延要求是16ms,也即预设总时延为16ms。控制设备100根据业务设备101的地址、业务设备106的地址和预设总时延确定出转发路径。转发路径包括网络设备102、网络设备103、网络设备104和网络设备105。控制设备100根据转发路径上网络设备的数量和确定性时延要求,确定第一预设时延为4ms。即网络设备102、网络设备103、网络设备104和网络设备105需要在4ms完成业务数据的转发。对比表1所示的服务分级表,确定业务数据的第一优先级为P2。也即网络设备102、网络设备103、网络设备104和网络设备105需要根据P2优先级转发业务数据。第一策略包括转发路径信息和第一预设时延,控制设备100向网络设备102、网络设备103、网络设备104和网络设备105发送第一策略。Exemplarily, it is assumed that there is a deterministic delay service sent from the source device 101 to the destination device 106, and the deterministic delay requirement is 16ms, that is, the preset total delay is 16ms. The control device 100 determines the forwarding path according to the address of the service device 101, the address of the service device 106 and the preset total delay. The forwarding path includes network device 102 , network device 103 , network device 104 and network device 105 . The control device 100 determines that the first preset delay is 4 ms according to the number of network devices on the forwarding path and the deterministic delay requirement. That is, the network device 102, the network device 103, the network device 104, and the network device 105 need to complete the service data forwarding within 4ms. Compared with the service classification table shown in Table 1, it is determined that the first priority of service data is P2. That is, the network device 102, the network device 103, the network device 104, and the network device 105 need to forward service data according to the P2 priority. The first strategy includes forwarding path information and a first preset delay, and the control device 100 sends the first strategy to the network device 102 , the network device 103 , the network device 104 and the network device 105 .
当业务数据开始传输时,假设因为突发原因导致网络设备102转发业务数据的时延为6ms,则网络设备103根据实际转发时延和确定性时延指标计算出偏差时延为6ms-4ms=2ms;由于当前业务的优先级为P2,可以调整为P1或P0,而偏差时延为2ms,可以调整业务数据的优先级为P1来弥补偏差时延。When the service data starts to be transmitted, assuming that the delay in forwarding the service data by the network device 102 is 6ms due to a burst, the network device 103 calculates the deviation delay as 6ms-4ms= according to the actual forwarding delay and the deterministic delay index 2ms; since the priority of the current business is P2, it can be adjusted to P1 or P0, and the deviation delay is 2ms, and the priority of business data can be adjusted to P1 to make up for the deviation delay.
在一种可能的实现方式中,如图4所示,可以由网络设备103调整业务数据的优先级,也即由网络设备103确定第二策略。网络设备103确定第二策略之后,可以向网络设备104和/或网络设备105发送第二策略。In a possible implementation manner, as shown in FIG. 4 , the priority of service data may be adjusted by the network device 103 , that is, the network device 103 determines the second policy. After the network device 103 determines the second policy, it may send the second policy to the network device 104 and/or the network device 105 .
在另一种可能的实现方式中,如图5所示,可以由控制设备100调整业务数据的优先级,也即由控制设备100确定第二策略。控制设备100确定第二策略之后,可以向网络设备103、网络设备104和网络设备105中至少一个网络设备发送第二策略。In another possible implementation manner, as shown in FIG. 5 , the priority of service data may be adjusted by the control device 100 , that is, the control device 100 determines the second policy. After the control device 100 determines the second policy, it may send the second policy to at least one network device among the network device 103 , the network device 104 , and the network device 105 .
将业务的优先级调整为P1后,有以下几种情形。After the business priority is adjusted to P1, there are several situations as follows.
情形1、网络设备103以2ms完成了业务数据的传输,即网络设备103保证自身的时延满足第一预设时延后,弥补了网络设备102造成的偏差时延,则网络设备102和网络设备103的实际时延满足预期。此时偏差时延为0ms,网络设备104以P2优先级对业务数据进行转发。Scenario 1: The network device 103 completes the transmission of service data within 2 ms, that is, after the network device 103 ensures that its own delay meets the first preset delay and makes up for the deviation delay caused by the network device 102, the network device 102 and the network The actual delay of device 103 meets expectations. At this time, the offset delay is 0 ms, and the network device 104 forwards the service data with the P2 priority.
情形2,网络设备103以3ms完成了业务数据的传输,即网络设备103保证自身的时延满足第一预设时延后,弥补了网络设备102造成的部分偏差时延,则网络设备102和网络设备103的实际时延未满足预期。此时偏差时延为1ms,网络设备104可以将业务的优先级提升至P1,以P1优先级对业务数据进行转发。In case 2, the network device 103 completes the transmission of service data within 3 ms, that is, after the network device 103 ensures that its own delay meets the first preset delay, and makes up for part of the deviation delay caused by the network device 102, then the network device 102 and The actual delay of the network device 103 does not meet expectations. At this time, the offset delay is 1 ms, and the network device 104 can raise the priority of the service to P1, and forward the service data with the priority of P1.
情形3,网络设备103以4ms完成了业务数据的传输,即网络设备103保证了自身的时延满足第一预设时延后,未弥补网络设备102造成的偏差时延,则网络设备102和网络设备103的实际时延未满足预期。此时偏差时延为2ms,网络设备104需要在2ms完成业务数据的传输,网络设备104可以将业务的优先级提升至P1,以P1优先级对业务数据进行转发。In case 3, the network device 103 completes the transmission of service data within 4 ms, that is, after the network device 103 ensures that its own delay meets the first preset delay, and does not make up for the offset delay caused by the network device 102, then the network device 102 and The actual delay of the network device 103 does not meet expectations. At this time, the offset delay is 2ms, and the network device 104 needs to complete the transmission of the service data within 2ms. The network device 104 can raise the priority of the service to P1, and forward the service data with the priority of P1.
情形4,网络设备以5ms完成了业务数据的传输,即网络设备103未保证自身的时延满足第一预设时延,也未弥补网络设备102造成的偏差时延,则网络设备102和网络设备103的实际时延未满足预期。此时偏差时延为3ms,网络设备104需要在1ms完成业务数据的传输,网络设备104可以将业务的优先级提升至P0,以P0优先级对业务数据进行转发。In case 4, the network device completes the transmission of service data within 5 ms, that is, the network device 103 does not guarantee that its own delay meets the first preset delay, nor does it make up for the deviation delay caused by the network device 102, then the network device 102 and the network The actual delay of device 103 does not meet expectations. At this time, the offset delay is 3 ms, and the network device 104 needs to complete the transmission of the service data within 1 ms. The network device 104 can raise the priority of the service to P0, and forward the service data with the priority of P0.
当传输路径上的某个网络设备的时延超标时,通过改变业务的优先级,使其后面的网络设备可以更快的完成业务数据的转发,时延互补。可以提高确定性时延业务的时延满足确定性时延要求的概率。When the delay of a certain network device on the transmission path exceeds the standard, by changing the priority of the service, the network device behind it can complete the forwarding of service data faster, and the delay is complementary. The probability that the delay of the deterministic delay service meets the requirement of the deterministic delay can be improved.
上述主要从各个节点之间交互的角度对本申请提供的方案进行了介绍。可以理解的是,各个节点,例如第一网络设备以及控制设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing mainly introduces the solution provided by the present application from the perspective of interaction between various nodes. It can be understood that, in order to realize the above functions, each node, such as the first network device and the control device, includes a corresponding hardware structure and/or software module for performing each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of the examples described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
本申请可以根据上述方法示例对第一网络设备以及控制设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The present application may divide the functional modules of the first network device and the control device according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in this application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
图6示出本申请实施例提供的一种通信装置的组成示意图。如图6所示,该通信装置60包括处理单元601、接收单元602和发送单元603。可选的,该通信装置60还可以包括存储单元604。FIG. 6 shows a schematic composition diagram of a communication device provided by an embodiment of the present application. As shown in FIG. 6 , the communication device 60 includes a
该通信装置60可以为网络设备或者网络设备中的芯片。通信装置60用于实现上述实施例中第一网络设备的功能时,各个单元具体用于实现以下功能。The communication device 60 may be a network device or a chip in the network device. When the communication device 60 is used to implement the functions of the first network device in the foregoing embodiments, each unit is specifically configured to implement the following functions.
接收单元602,用于接收控制设备发送的第一策略,第一策略用于指示依据第一优先级转发第一业务的业务数据。The receiving
存储单元604,用于存储控制设备发送的第一策略。The
接收单元602,还用于接收第二网络设备发送的第一业务报文,第一业务报文包括业务数据和第二网络设备转发业务数据的第一时间信息,第一网络设备连接第二网络设备。The receiving
存储单元604,还用于存储第二网络设备发送的第一业务报文。The
处理单元601,用于根据第一时间信息确定第二网络设备转发业务数据不满足转发规则,获取第二策略,第二策略用于指示依据第二优先级转发业务数据,第二优先级高于第一优先级,转发规则用于指示转发业务数据的时延要求。The
发送单元603,用于根据第二优先级转发第二业务报文,第二业务报文包括第一网络设备转发业务数据的第二时间信息。The sending
可选的,处理单元601,还用于根据第一时间信息确定第二网络设备转发业务数据满足转发规则。Optionally, the
发送单元603,还用于根据第一优先级转发第三业务报文,第三业务报文包括业务数据和转发业务数据的第三时间信息。The sending
可选的,处理单元601,具体用于:根据第一时间标识和第二时间标识确定第一时延,第一时间标识是第二网络设备接收业务数据的时刻,第二时间标识是第二网络设备发送业务数据的时刻,偏差时延是根据至少一个网络设备转发业务数据的时长和第一预设时延确定的,偏差时延大于或等于0。若第一时延和偏差时延之和大于第一预设时延,确定第二网络设备转发业务数据不满足转发规则。Optionally, the
可选的,处理单元601,具体用于根据预设总时延、第一时间信息和至少两个网络设备中未转发业务数据的网络设备的数量确定第二预设时延,得到第二策略,第二策略包括第二预设时延,第二预设时延小于第一策略包括的转发业务数据的第一预设时延。Optionally, the
可选的,接收单元602,还用于接收控制设备发送的第二策略。Optionally, the receiving
存储单元604,还用于存储控制设备发送的第二策略。The
该通信装置60可以为控制设备或者控制设备中的芯片。通信装置60用于实现上述实施例中控制设备的功能时,各个单元具体用于实现以下功能。The communication device 60 may be a control device or a chip in the control device. When the communication device 60 is used to implement the functions of the control device in the above embodiments, each unit is specifically configured to implement the following functions.
发送单元603,用于向至少两个网络设备发送第一策略,第一策略用于指示依据第一优先级转发第一业务的业务数据。A sending
接收单元602,用于接收第二网络设备发送的转发信息,转发信息包括第二网络设备转发业务数据的第一时间信息。The receiving
存储单元604,用于存储第二网络设备发送的转发信息。The
处理单元601,用于根据第一时间信息确定第二网络设备转发业务数据不满足转发规则,确定第二策略,第二策略用于指示依据第二优先级转发业务数据,第二优先级高于第一优先级,转发规则用于指示转发业务数据的时延要求。The
发送单元603,用于向至少两个网络设备中除了第二网络设备之外的至少一个网络设备发送第二策略。A sending
可选的,处理单元601,具体用于根据预设总时延、第一时间信息和至少两个网络设备中未转发业务数据的网络设备的数量确定第二预设时延,得到第二策略,第二策略包括第二预设时延,第一策略包括转发业务数据的第一预设时延,第二预设时延小于第一策略包括的转发业务数据的第一预设时延。Optionally, the
可选的,接收单元602,还用于接收业务请求,业务请求包括源设备的地址、目的设备的地址、业务标识和预设总时延。Optionally, the receiving
存储单元604,还用于存储业务请求。The
处理单元601,还用于根据源设备的地址、目的设备的地址和预设总时延确定转发路径信息。The
处理单元601,还用于根据至少两个网络设备的数量和预设总时延确定第一策略。The
图6中的单元也可以称为模块,例如,处理单元可以称为处理模块。另外,在图6所示的实施例中,各个单元的名称也可以不是图中所示的名称,例如,发送单元也可以称为通信单元。Units in FIG. 6 may also be referred to as modules, for example, a processing unit may be referred to as a processing module. In addition, in the embodiment shown in FIG. 6 , the names of each unit may not be the names shown in the figure, for example, the sending unit may also be called a communication unit.
图6中的各个单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。存储计算机软件产品的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If each unit in FIG. 6 is implemented in the form of software function modules and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage The medium includes several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application. Storage media for storing computer software products include: U disk, mobile hard disk, read-only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, etc., which can store program codes. medium.
本申请实施例还提供一种通信设备的硬件结构示意图,如图7所示,该通信设备70包括处理器11,可选的,还包括与处理器11连接的存储器12和通信接口13。处理器11、存储器12和通信接口13通过总线14连接。The embodiment of the present application also provides a schematic diagram of a hardware structure of a communication device. As shown in FIG.
处理器11可以是中央处理器(central processing unit,CPU),通用处理器网络处理器(network processor,NP),数字信号处理器(digital signal processing,DSP)、微处理器、微控制器、可编程逻辑器件(programmable logic device,PLD)或它们的任意组合。处理器还可以是其它任意具有处理功能的装置,例如电路、器件或软件模块。处理器11也可以包括多个CPU,并且处理器11可以是一个单核(single-CPU)处理器,也可以是多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路或用于处理数据(例如计算机程序指令)的处理核。The
在本申请实施例中,处理器11可以用于实现通信装置60中处理单元601的功能。示例性地,处理器11可以用于根据第一时间信息确定第二网络设备转发业务数据不满足转发规则,根据预设总时延、第一时间信息和至少两个网络设备中未转发业务数据的网络设备的数量确定第二预设时延,得到第二策略,第二策略包括第二预设时延,第一策略包括转发业务数据的第一预设时延,第二预设时延小于第一策略包括的转发业务数据的第一预设时延,转发规则用于指示转发业务数据的时延要求。In this embodiment of the present application, the
可选的,图7所示的结构示意图可以用于示意上述实施例中所涉及的第一网络设备的结构。处理器11用于对第一网络设备的动作进行控制管理。处理器11可以通过通信接口13与其他设备通信,例如与控制设备通信。存储器12用于存储第一网络设备的程序代码和数据,例如可以存储控制设备向第一网络设备发送的第一策略。Optionally, the schematic structural diagram shown in FIG. 7 may be used to illustrate the structure of the first network device involved in the foregoing embodiments. The
可选的,图7所示的结构示意图可以用于示意上述实施例中所涉及的控制设备的结构。处理器11用于对控制设备的动作进行控制管理。处理器11可以通过通信接口13与其他设备通信,例如与第一网络设备通信。存储器12用于存储控制设备的程序代码和数据,例如可以存储业务设备发送的业务请求。Optionally, the schematic structural diagram shown in FIG. 7 may be used to illustrate the structure of the control device involved in the foregoing embodiments. The
存储器12可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备、随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electricallyerasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,本申请实施例对此不作任何限制。存储器12可以是独立存在,也可以和处理器11集成在一起。其中,存储器12中可以包含计算机程序代码。处理器11用于执行存储器12中存储的计算机程序代码,从而实现本申请实施例提供的方法。通信接口13可以用于与其他设备或通信网络通信(如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local areanetworks,WLAN)等)。通信接口13可以是模块、电路、收发器或者任何能够实现通信的装置。The
总线14可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线14可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
本申请实施例还提供了一种计算机可读存储介质,包括计算机执行指令,当其在计算机上运行时,使得计算机执行上述任一方法。The embodiment of the present application also provides a computer-readable storage medium, including computer-executable instructions, which, when run on a computer, cause the computer to execute any one of the above-mentioned methods.
本申请实施例还提供了一种包含计算机执行指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一方法。The embodiment of the present application also provides a computer program product including computer-executable instructions, which, when running on a computer, causes the computer to execute any one of the above-mentioned methods.
本申请实施例还提供了一种芯片,包括:处理器和接口,处理器通过接口与存储器耦合,当处理器执行存储器中的计算机程序或计算机执行指令时,使得上述实施例提供的任意一种方法被执行。The embodiment of the present application also provides a chip, including: a processor and an interface. The processor is coupled to the memory through the interface. When the processor executes the computer program in the memory or the computer executes instructions, any one of the above-mentioned embodiments can method is executed.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机执行指令。在计算机上加载和执行计算机执行指令时,全部或部分地产生按照本申请实施例所述的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机执行指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机执行指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer-executable instructions. When computer-executed instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer-executable instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, computer-executable instructions may be (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or may contain one or more data storage devices such as servers and data centers that can be integrated with the medium. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (solid state disk, SSD)) and the like.
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present application has been described in conjunction with various embodiments herein, those skilled in the art can understand and realize the disclosure by viewing the drawings, the disclosure, and the appended claims during the implementation of the claimed application. Other Variations of Embodiments. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Although the application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely illustrative of the application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application. Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111057585.7ACN113938955B (en) | 2021-09-09 | 2021-09-09 | Data transmission method, device, equipment and system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111057585.7ACN113938955B (en) | 2021-09-09 | 2021-09-09 | Data transmission method, device, equipment and system |
| Publication Number | Publication Date |
|---|---|
| CN113938955A CN113938955A (en) | 2022-01-14 |
| CN113938955Btrue CN113938955B (en) | 2023-06-06 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111057585.7AActiveCN113938955B (en) | 2021-09-09 | 2021-09-09 | Data transmission method, device, equipment and system |
| Country | Link |
|---|---|
| CN (1) | CN113938955B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117336253A (en)* | 2022-06-30 | 2024-01-02 | 华为技术有限公司 | Message transmission method, device and system |
| CN115801764B (en)* | 2022-11-15 | 2025-09-12 | 中国工商银行股份有限公司 | File transmission method, device, equipment and storage medium |
| CN116233017B (en)* | 2022-12-23 | 2024-06-04 | 中国联合网络通信集团有限公司 | Time delay guaranteeing method, time delay guaranteeing device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101645830A (en)* | 2008-08-07 | 2010-02-10 | 中国移动通信集团公司 | Method for packet scheduling of multi-hop network and node device |
| CN101964754A (en)* | 2010-11-01 | 2011-02-02 | 南京邮电大学 | Point to point (P2P) service identification-based quality of service (QoS) routing method |
| CN103685054A (en)* | 2013-12-18 | 2014-03-26 | 武汉烽火网络有限责任公司 | Multipath load balancing method based on service awareness |
| CN104066125A (en)* | 2013-03-19 | 2014-09-24 | 华为技术有限公司 | Method and controller for reducing service delay |
| CN104135359A (en)* | 2014-07-22 | 2014-11-05 | 南京磐能电力科技股份有限公司 | Hard real-time cascading multi-node synchronous sampling and data transmission method |
| CN104322023A (en)* | 2013-05-24 | 2015-01-28 | 华为技术有限公司 | Stream forwarding method, device and system |
| CN105245448A (en)* | 2015-10-08 | 2016-01-13 | 中南民族大学 | Multi-service and multi-path routing optimization method in named data network |
| CN105743804A (en)* | 2016-02-04 | 2016-07-06 | 北京邮电大学 | Data flow control method and system |
| CN106341346A (en)* | 2016-09-08 | 2017-01-18 | 重庆邮电大学 | Routing algorithm of guaranteeing QoS in data center network based on SDN |
| CN108260169A (en)* | 2018-01-26 | 2018-07-06 | 重庆邮电大学 | A kind of service function chain dynamic deployment method ensured based on QoS |
| CN109842564A (en)* | 2017-11-28 | 2019-06-04 | 华为技术有限公司 | A kind of method, the network equipment and system that service message is sent |
| CN111431803A (en)* | 2020-03-27 | 2020-07-17 | 中国联合网络通信集团有限公司 | A routing method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070081543A1 (en)* | 2005-10-11 | 2007-04-12 | Manrique Brenes | Network utilization control apparatus and method of using |
| US8490148B2 (en)* | 2007-03-12 | 2013-07-16 | Citrix Systems, Inc | Systems and methods for managing application security profiles |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101645830A (en)* | 2008-08-07 | 2010-02-10 | 中国移动通信集团公司 | Method for packet scheduling of multi-hop network and node device |
| CN101964754A (en)* | 2010-11-01 | 2011-02-02 | 南京邮电大学 | Point to point (P2P) service identification-based quality of service (QoS) routing method |
| CN104066125A (en)* | 2013-03-19 | 2014-09-24 | 华为技术有限公司 | Method and controller for reducing service delay |
| CN104322023A (en)* | 2013-05-24 | 2015-01-28 | 华为技术有限公司 | Stream forwarding method, device and system |
| CN103685054A (en)* | 2013-12-18 | 2014-03-26 | 武汉烽火网络有限责任公司 | Multipath load balancing method based on service awareness |
| CN104135359A (en)* | 2014-07-22 | 2014-11-05 | 南京磐能电力科技股份有限公司 | Hard real-time cascading multi-node synchronous sampling and data transmission method |
| CN105245448A (en)* | 2015-10-08 | 2016-01-13 | 中南民族大学 | Multi-service and multi-path routing optimization method in named data network |
| CN105743804A (en)* | 2016-02-04 | 2016-07-06 | 北京邮电大学 | Data flow control method and system |
| CN106341346A (en)* | 2016-09-08 | 2017-01-18 | 重庆邮电大学 | Routing algorithm of guaranteeing QoS in data center network based on SDN |
| CN109842564A (en)* | 2017-11-28 | 2019-06-04 | 华为技术有限公司 | A kind of method, the network equipment and system that service message is sent |
| CN108260169A (en)* | 2018-01-26 | 2018-07-06 | 重庆邮电大学 | A kind of service function chain dynamic deployment method ensured based on QoS |
| CN111431803A (en)* | 2020-03-27 | 2020-07-17 | 中国联合网络通信集团有限公司 | A routing method and device |
| Title |
|---|
| 曹畅,张帅,刘莹,唐雄燕."基于通信云和承载网协同的算力网络编排技术".《电信科学》.2020,全文.* |
| Publication number | Publication date |
|---|---|
| CN113938955A (en) | 2022-01-14 |
| Publication | Publication Date | Title |
|---|---|---|
| CN113938955B (en) | Data transmission method, device, equipment and system | |
| US20190394068A1 (en) | Flow entry generating method and apparatus | |
| CN106998302B (en) | Method and device for allocating service flow | |
| CN103476062B (en) | Data flow scheduling method, equipment and system | |
| CN114189474A (en) | Data transmission method and device | |
| CN113472646B (en) | Data transmission method, node, network manager and system | |
| US8811254B2 (en) | Dynamic connection admission control to enforce service level agreements in multicast networks | |
| US20190238949A1 (en) | Multicast service providing method and software defined networking controller | |
| EP4333380A1 (en) | Packet forwarding method and apparatus, and dragonfly network | |
| CN108964961A (en) | A kind of method, apparatus and system of management transmission network slice | |
| US12010023B2 (en) | Network congestion handling method and related apparatus | |
| CN112714071A (en) | Data sending method and device | |
| CN113595915B (en) | Method for forwarding message and related equipment | |
| CN106656807A (en) | Message forwarding method and SDN switch | |
| CN103107946B (en) | Multicast recovery method and apparatus and include the trunking of this multicast recovery device | |
| CN113079109B (en) | A data message processing method, system, intelligent terminal and storage medium | |
| CN112104510B (en) | Fault processing method, device, system, electronic equipment and computer readable medium | |
| CN115242699A (en) | Message transmission method, slice generation method, device and system | |
| Wang et al. | Spray and Wait routing algorithm based on Transfer Utility of Node in DTN | |
| Nithin et al. | Efficient load balancing for multicast traffic in data center networks using SDN | |
| CN116318554A (en) | Network transmission method and device | |
| Alubady et al. | Adaptive interest lifetime in named data networking to support disaster area | |
| CN114070776B (en) | Improved time-sensitive network data transmission method, device and equipment | |
| Kwok et al. | Cut-through bridging for CSMA/CD local area networks | |
| CN114285803A (en) | Congestion control method and device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |