[go: up one dir, main page]

CN111756557A - A data transmission method and device - Google Patents

A data transmission method and device Download PDF

Info

Publication number
CN111756557A
CN111756557A CN201910230996.8A CN201910230996A CN111756557A CN 111756557 A CN111756557 A CN 111756557A CN 201910230996 A CN201910230996 A CN 201910230996A CN 111756557 A CN111756557 A CN 111756557A
Authority
CN
China
Prior art keywords
network device
transmission path
transmission
target data
qos information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910230996.8A
Other languages
Chinese (zh)
Other versions
CN111756557B (en
Inventor
高红亮
胡农达
涂伯颜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910230996.8A priority Critical patent/CN111756557B/en
Publication of CN111756557A publication Critical patent/CN111756557A/en
Application granted granted Critical
Publication of CN111756557B publication Critical patent/CN111756557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例提供一种数据传输方法及装置,方法包括:第一网络设备接收目标数据包;根据目标数据包确定目标数据包所属的目标数据流;确定第一网络设备是否保存有目标数据流的第一转发表项,其中,第一转发表项指示第一网络设备经由第一传输路径向第二网络设备发送属于目标数据流的数据包;确定第一网络设备未保存有第一转发表项时,根据目标数据流的QoS信息确定第二传输路径和根据第二传输路径确定目标数据流的第二转发表项,其中第二传输路径是满足QoS信息指示的要求传输质量的传输路径,第二转发表项指示第一网络设备经由第二传输路径向第二网络设备发送属于目标数据流的数据包;根据第二转发表项向第二网络设备发送目标数据包。

Figure 201910230996

Embodiments of the present application provide a data transmission method and apparatus, the method includes: receiving a target data packet by a first network device; determining a target data stream to which the target data packet belongs according to the target data packet; determining whether the first network device saves the target data stream The first forwarding table entry, wherein the first forwarding table entry instructs the first network device to send the data packet belonging to the target data flow to the second network device via the first transmission path; it is determined that the first network device does not save the first forwarding table item, determine the second transmission path according to the QoS information of the target data flow and determine the second forwarding entry of the target data flow according to the second transmission path, wherein the second transmission path is a transmission path that satisfies the required transmission quality indicated by the QoS information, The second forwarding entry instructs the first network device to send the data packet belonging to the target data flow to the second network device via the second transmission path; and sends the target data packet to the second network device according to the second forwarding entry.

Figure 201910230996

Description

一种数据传输方法及装置A data transmission method and device

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种数据传输方法及装置。The present application relates to the field of communication technologies, and in particular, to a data transmission method and apparatus.

背景技术Background technique

随着互联网和云计算的快速发展,人类社会进入高速发展的数字化时代,网络业务呈现出爆炸式增长,网购、社交网络、游戏、高频金融交易、网络流媒体(4K/8K视频、AR/VR等)、在线办公等大量的网络应用充斥着人们的生活。当不同业务类型的数据流在网络中传输时,不同业务类型的数据流需求的服务质量(Quality of Service,QoS)不同。例如,视频业务中的数据流的网络带宽需求一般高于社交网络业务中的数据流的网络带宽需求。With the rapid development of the Internet and cloud computing, human society has entered a digital age of rapid development, and network business has shown explosive growth. Online shopping, social networking, games, high-frequency financial transactions, network streaming media (4K/8K video, AR/ A large number of network applications such as VR, etc.) and online office are flooding people's lives. When data streams of different service types are transmitted in the network, the quality of service (Quality of Service, QoS) required by the data streams of different service types is different. For example, the network bandwidth requirements of data streams in video services are generally higher than the network bandwidth requirements of data streams in social network services.

在现有技术中,一般采用区分服务(DiffServ)技术为不同业务类型的数据流提供差异化的QoS保障。其主要原理为:预先为不同QoS需求的数据流分配不同的优先级,当网络中同时存在多个不同优先级的数据流时,网络设备优先处理高优先级的数据流的数据包。但是,区分服务技术只能达到为高优先级的数据流提供相对低优先级的数据流更好的QoS的效果,并不能确保高优先级数据流的QoS需求一定能够被满足。因此,现有技术存在无法为数据流提供QoS保障的技术问题。In the prior art, a differentiated service (DiffServ) technology is generally used to provide differentiated QoS guarantees for data flows of different service types. The main principle is: assign different priorities to data streams with different QoS requirements in advance. When there are multiple data streams with different priorities in the network at the same time, the network device preferentially processes the data packets of the high-priority data streams. However, the differentiated service technology can only achieve the effect of providing better QoS for high-priority data streams than low-priority data streams, and cannot ensure that the QoS requirements of high-priority data streams can be satisfied. Therefore, the prior art has the technical problem that the QoS guarantee cannot be provided for the data flow.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种数据传输方法及装置,用以在网络设备上实现基于QoS信息进行主动流量调度,进而为数据流提供QoS保障。Embodiments of the present application provide a data transmission method and apparatus, which are used to implement active traffic scheduling based on QoS information on a network device, thereby providing QoS guarantee for data flows.

第一方面,提供一种数据传输方法,该方法应用于网络中,所述网络包括第一网络设备和第二网络设备,所述第一网络设备经由多条传输路径与所述第二网络设备通信;所述方法包括:所述第一网络设备接收目标数据包,所述目标数据包是从所述第一网络设备发往所述第二网络设备的数据包;所述第一网络设备根据所述目标数据包确定所述目标数据包所属的目标数据流;所述第一网络设备确定所述第一网络设备是否保存有所述目标数据流的第一转发表项,其中,所述第一转发表项指示所述第一网络设备经由第一传输路径向所述第二网络设备发送属于所述目标数据流的数据包,所述多条传输路径包括所述第一传输路径;所述第一网络设备确定所述第一网络设备未保存有所述第一转发表项时,所述第一网络设备根据所述目标数据流的服务质量QoS信息确定第二传输路径和所述第一网络设备根据所述第二传输路径确定所述目标数据流的第二转发表项,所述QoS信息指示属于所述目标数据流的数据包从所述第一网络设备向所述第二网络设备传输过程中的要求传输质量,所述第二传输路径是满足所述QoS信息指示的所述要求传输质量的传输路径,所述多条传输路径包括所述第二传输路径,所述第二转发表项指示所述第一网络设备经由所述第二传输路径向所述第二网络设备发送属于所述目标数据流的数据包;所述第一网络设备根据所述第二转发表项向所述第二网络设备发送所述目标数据包。In a first aspect, a data transmission method is provided, the method is applied in a network, the network includes a first network device and a second network device, the first network device communicates with the second network device via multiple transmission paths communication; the method includes: the first network device receives a target data packet, the target data packet is a data packet sent from the first network device to the second network device; the first network device according to The target data packet determines the target data stream to which the target data packet belongs; the first network device determines whether the first network device saves the first forwarding entry of the target data stream, wherein the first A forwarding table entry instructs the first network device to send a data packet belonging to the target data flow to the second network device via a first transmission path, the plurality of transmission paths including the first transmission path; the When the first network device determines that the first network device does not store the first forwarding entry, the first network device determines the second transmission path and the first forwarding entry according to the QoS information of the target data flow. The network device determines a second forwarding entry of the target data flow according to the second transmission path, and the QoS information indicates that the data packets belonging to the target data flow are sent from the first network device to the second network device The required transmission quality in the transmission process, the second transmission path is a transmission path that satisfies the required transmission quality indicated by the QoS information, the multiple transmission paths include the second transmission path, and the second transfer path The publication entry instructs the first network device to send the data packet belonging to the target data flow to the second network device via the second transmission path; the first network device sends the data packet to the target data stream according to the second forwarding entry. The second network device sends the target data packet.

在本申请实施例中,第一网络设备在接收目标数据包后,第一网络设备在确定第一网络设备未保存有第一转发表项时,第一网络设备根据目标数据流的QoS信息确定第二传输路径和第一网络设备根据第二传输路径确定目标数据流的第二转发表项,而第二传输路径是第一网络设备和第二网络设备之间通信的多条传输路径中满足目标数据流的QoS信息指示的传输质量的传输路径;然后,第一网络设备根据第二转发表项向第二网络设备发送目标数据包。这样,可以保证第一网络设备向第二网络设备发送目标数据包的传输路径可以满足目标数据包所属的目标数据流的QoS信息指示的传输质量,解决了现有技术中区分服务方案存在的无法为数据流提供动态QoS保障的技术问题,同时还可以避免现有技术中网络硬分片方案存在的网络资源分配不合理、资源利用率低、网络部署成本高等问题。In this embodiment of the present application, after the first network device receives the target data packet, when the first network device determines that the first network device does not store the first forwarding entry, the first network device determines according to the QoS information of the target data flow The second transmission path and the first network device determine the second forwarding entry of the target data stream according to the second transmission path, and the second transmission path is one of the multiple transmission paths for communication between the first network device and the second network device. The transmission path of the transmission quality indicated by the QoS information of the target data flow; then, the first network device sends the target data packet to the second network device according to the second forwarding entry. In this way, it can be ensured that the transmission path through which the first network device sends the target data packet to the second network device can meet the transmission quality indicated by the QoS information of the target data stream to which the target data packet belongs, and the inability to exist in the differentiated service solution in the prior art is solved. The technical problem of providing dynamic QoS guarantee for data flow can also avoid the problems of unreasonable network resource allocation, low resource utilization rate and high network deployment cost existing in the network hard slicing scheme in the prior art.

考虑到在网络中高优先级流量通常会被优先地调度,所以不同优先级流量通过相同传输路径时,能获得的实际传输质量往往是不同的。鉴于此,在一种可能的实施方式中,所述第一网络设备根据所述目标数据流的QoS信息确定第二传输路径,可以通过所述第一网络设备确定所述目标数据流对应的目标优先级;所述第一网络设备确定所述多条传输路径中的每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量;所述第一网络设备根据所述QoS信息和确定的每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量,从所述多条传输路径中确定出满足所述QoS信息指示的要求传输质量的所述第二传输路径。该实施方式,将各条传输路径的实际传输质量和数据流的优先级相关联,使得确定出的各个传输路径的实际传输质量更加准确,进而可使得确定出的第二传输路径能够更好的满足QoS信息指示的要求传输质量。Considering that high-priority traffic is usually scheduled preferentially in the network, the actual transmission quality that can be obtained is often different when traffic with different priorities passes through the same transmission path. In view of this, in a possible implementation manner, the first network device determines the second transmission path according to the QoS information of the target data flow, and the target corresponding to the target data flow may be determined by the first network device priority; the first network device determines the actual transmission quality of each of the multiple transmission paths when transmitting the data packets in the data stream of the target priority; the QoS information and the determined actual transmission quality of each transmission path when transmitting the data packets in the data flow of the target priority, and determine from the multiple transmission paths to meet the required transmission quality indicated by the QoS information of the second transmission path. In this implementation manner, the actual transmission quality of each transmission path is associated with the priority of the data stream, so that the determined actual transmission quality of each transmission path is more accurate, and further, the determined second transmission path can be better The required transmission quality indicated by the QoS information is met.

为了快速地确定出每条传输路径在传输目标优先级的数据流中的数据包时的实际传输质量,在一种可能的实施方式中,所述第一网络设备可以根据所述每条传输路径的传输质量表项,确定所述每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量;其中,所述每条传输路径的路径质量表项用于指示所述每条传输路径在传输至少一种优先级的数据流中的数据包时分别对应的实际传输质量,所述至少一种优先级包括所述目标优先级。如此,可以提高确定传输路径的实际传输质量的效率,进而更快地确定出满足目标数据流的QoS信息指示的要求传输质量的传输路径,提高数据包的转发效率。In order to quickly determine the actual transmission quality of each transmission path when transmitting the data packets in the data flow of the target priority, in a possible implementation manner, the first network device may The transmission quality table entry of each transmission path determines the actual transmission quality of each transmission path when transmitting the data packets in the data flow of the target priority; wherein, the path quality table entry of each transmission path is used to indicate the The actual transmission quality corresponding to each transmission path when transmitting the data packets in the data stream of at least one priority, the at least one priority including the target priority. In this way, the efficiency of determining the actual transmission quality of the transmission path can be improved, and the transmission path satisfying the required transmission quality indicated by the QoS information of the target data flow can be determined more quickly, thereby improving the forwarding efficiency of the data packets.

考虑到第一网络设备与第二网络设备通信的多条传输路径的中,满足目标数据流的QoS信息指示的要求传输质量的传输路径可能有多条的情况,在一种可能的实施方式中,第一网络设备可以使用预设的策略从满足QoS信息指示的要求传输质量的多条传输路径中确定出一条传输路径作为第二传输路径。Considering that among the multiple transmission paths for communication between the first network device and the second network device, there may be multiple transmission paths that satisfy the required transmission quality indicated by the QoS information of the target data flow, in a possible implementation manner. , the first network device may use a preset policy to determine one transmission path as the second transmission path from the multiple transmission paths that satisfy the required transmission quality indicated by the QoS information.

为了提高方案的灵活性,在本申请实施例中,该预设的策略可以有多种实现方式。比如,第一种可能的实施方式,第一网络设备使用随机选择的方式从满足QoS信息指示的要求传输质量的多条传输路径中选择一条传输路径作为第二传输路径;又比如,第二种可能的实施方式,第一网络设备使用贪心策略从满足QoS信息指示的要求传输质量的多条传输路径中确定出实际传输质量最好的传输路径作为第二传输路径;又比如,第三种可能的实施方式,第一网络设备使用最佳匹配策略从满足QoS信息指示的要求传输质量的多条传输路径中确定出实际传输质量最接近该要求传输质量的传输路径作为第二传输路径;又比如,第四种可能的实施方式,第一网络设备使用首次匹配策略将最先被第一网络设备确定为满足QoS信息指示的要求传输质量的传输路径作为第二传输路径等。如此,便可以实现从满足QoS信息指示的要求传输质量的多条传输路径中确定出一条传输路径作为第二传输路径,保证方案的可靠性。In order to improve the flexibility of the solution, in this embodiment of the present application, the preset strategy may be implemented in multiple ways. For example, in the first possible implementation manner, the first network device selects a transmission path as the second transmission path from a plurality of transmission paths that satisfy the required transmission quality indicated by the QoS information in a random selection manner; for another example, the second transmission path In a possible implementation manner, the first network device uses a greedy strategy to determine the transmission path with the best actual transmission quality from the multiple transmission paths that satisfy the required transmission quality indicated by the QoS information as the second transmission path; for another example, the third possibility The first network device uses the best matching strategy to determine the transmission path whose actual transmission quality is closest to the required transmission quality from the multiple transmission paths that satisfy the required transmission quality indicated by the QoS information as the second transmission path; , the fourth possible implementation manner, the first network device uses the first matching policy to firstly determine the transmission path that meets the required transmission quality indicated by the QoS information as the second transmission path and so on. In this way, one transmission path can be determined as the second transmission path from among the multiple transmission paths that satisfy the required transmission quality indicated by the QoS information, thereby ensuring the reliability of the solution.

在一种可能的实施方式中,所述第一网络设备根据所述第二传输路径确定所述目标数据流的第二转发表项之后,还可以保存所述第二转发表项。这样,第一网络设备在下一次接收到属于所述目标数据流的数据包时,就可以直接基于该保存的第二转发表项对收到的该数据包进行转发,进而在保证QoS的前提下,提高数据包的转发效率。In a possible implementation manner, after the first network device determines the second forwarding entry of the target data stream according to the second transmission path, the second forwarding entry may also be stored. In this way, when the first network device receives a data packet belonging to the target data flow next time, it can directly forward the received data packet based on the saved second forwarding entry, and further, on the premise of ensuring QoS , to improve the forwarding efficiency of data packets.

在一种可能的实施方式中,如果所述第一网络设备确定所述第一网络设备保存有所述第一转发表项,则所述第一网络设备可直接基于第一转发表项的指示经由第一传输路径向第二网络设备转发目标数据包。其中,所述第一网络设备在保存所述第一转发表项之时或者之前,所述第一传输路径是满足所述目标数据流的QoS信息指示的所述要求传输质量的传输路径。如此,可以在保证QoS的前提下,提高数据包的转发效率。In a possible implementation manner, if the first network device determines that the first network device saves the first forwarding entry, the first network device may directly base on the indication of the first forwarding entry The target data packet is forwarded to the second network device via the first transmission path. Wherein, when the first network device saves the first forwarding entry or before, the first transmission path is a transmission path that satisfies the required transmission quality indicated by the QoS information of the target data flow. In this way, the forwarding efficiency of data packets can be improved on the premise of ensuring QoS.

在实际情况中,大多数业务的流量是随着时间动态变化的,这可能使得目标数据包在到达第一网络设备时,第一传输路径的实际传输质量不能满足目标数据流的QoS信息所指示的要求传输质量。鉴于此,在一种可能的实施方式中,如果第一网络设备保存有第一转发表项,则第一网络设备还可以对已经保存的第一转发表项进行检查,检查其实际传输质量是否真正满足目标数据流的QoS需求,并在确定第一转发表项所指示的第一传输路径无法满足目标数据流的QoS需求时,从网络中确定出新的能够满足目标数据流的QoS需求的传输路径,并基于新的传输路径生成新的转发表项,如此,便能更好地为目标数据流提供QoS保障。In practical situations, the traffic of most services changes dynamically with time, which may cause the actual transmission quality of the first transmission path to fail to meet the QoS information of the target data flow when the target data packet reaches the first network device. the required transmission quality. In view of this, in a possible implementation manner, if the first network device stores the first forwarding entry, the first network device may also check the stored first forwarding entry to check whether the actual transmission quality is Really meet the QoS requirements of the target data flow, and when it is determined that the first transmission path indicated by the first forwarding entry cannot meet the QoS requirements of the target data flow, determine a new one from the network that can meet the QoS requirements of the target data flow. The transmission path is generated, and a new forwarding table entry is generated based on the new transmission path, so that the QoS guarantee can be better provided for the target data flow.

针对如何触发第一网络设备对第一转发表项进行检查,可以有多种实现方式。There may be various implementation manners for how to trigger the first network device to check the first forwarding entry.

比如,第一种可能的实现方式,目标数据包到达触发第一网络设备对第一转发表项进行检查。具体的,第一网络设备在接收到目标数据包后,在确定出所述第一网络设备保存有所述第一转发表项时,所述第一网络设备先确定所述第一传输路径是否满足所述QoS信息指示的所述要求传输质量;如果所述第一传输路径满足所述QoS信息指示的所述要求传输质量,则所述第一网络设备经由所述第一传输路径向所述第二网络设备发送所述目标数据包;如果所述第一传输路径不满足所述QoS信息指示的所述要求传输质量,则所述第一网络设备根据所述目标数据流的QoS信息确定第三传输路径,以及根据所述第三传输路径确定所述目标数据流的第三转发表项,以及根据所述第三转发表项向所述第二网络设备发送所述目标数据包,其中所述多条传输路径包括所述第三传输路径,所述第三传输路径是满足所述QoS信息指示的所述要求传输质量的传输路径,所述第三转发表项用于指示所述第一网络设备经由所述第三传输路径向所述第二网络设备发送属于所述目标数据流的数据包。For example, in a first possible implementation manner, the arrival of the target data packet triggers the first network device to check the first forwarding entry. Specifically, after the first network device receives the target data packet and determines that the first network device stores the first forwarding entry, the first network device first determines whether the first transmission path is Satisfying the required transmission quality indicated by the QoS information; if the first transmission path satisfies the required transmission quality indicated by the QoS information, the first network device sends the request to the The second network device sends the target data packet; if the first transmission path does not meet the required transmission quality indicated by the QoS information, the first network device determines the first network device according to the QoS information of the target data flow three transmission paths, and determining a third forwarding table entry of the target data stream according to the third transmission path, and sending the target data packet to the second network device according to the third forwarding table entry, wherein the The multiple transmission paths include the third transmission path, and the third transmission path is a transmission path that satisfies the required transmission quality indicated by the QoS information, and the third forwarding entry is used to indicate the first transmission path. The network device sends the data packets belonging to the target data flow to the second network device via the third transmission path.

如此,便能及时发现第一传输路径的实际传输质量无法满足目标数据流的QoS信息所指示的要求传输质量,并为目标数据流确定出实际传输质量能够满足目标数据流的QoS信息所指示的要求传输质量的第三传输路径来转发属于目标数据流的数据包,进而更好地为目标数据流提供QoS保障。进一步的,所述第一网络设备根据所述第三传输路径确定所述目标数据流的第三转发表项之后,还可以保存所述第三转发表项,并删除所述第一转发表项,如此便能实现对第一网络设备中保存的转发表项进行更新,更好地为数据流提供QoS保障。In this way, it can be found in time that the actual transmission quality of the first transmission path cannot meet the required transmission quality indicated by the QoS information of the target data stream, and it can be determined for the target data stream that the actual transmission quality can meet the requirements indicated by the QoS information of the target data stream. The third transmission path requiring transmission quality forwards the data packets belonging to the target data flow, thereby better providing QoS guarantee for the target data flow. Further, after the first network device determines the third forwarding entry of the target data stream according to the third transmission path, it may also save the third forwarding entry and delete the first forwarding entry. , so that the forwarding table item stored in the first network device can be updated to better provide QoS guarantee for the data flow.

再如,第二种可能的实现方式,周期性地触发第一网络设备对第一转发表项进行检查。具体的,所述第一网络设备周期性地检查所述第一传输路径是否满足所述QoS信息指示的所述要求传输质量;所述第一网络设备确定所述第一传输路径不满足所述QoS信息指示的所述要求传输质量时,所述第一网络设备根据所述目标数据流的QoS信息确定第四传输路径,所述多条传输路径包括所述第四传输路径,所述第四传输路径是满足所述QoS信息指示的所述要求传输质量的传输路径;所述第一网络设备根据所述第四传输路径确定所述目标数据流的第四转发表项,所述第四转发表项用于指示所述第一网络设备经由所述第四传输路径向所述第二网络设备发送属于所述目标数据流的数据包;所述第一网络设备保存所述第四转发表项,删除所述第一转发表项。如此便能实现对第一网络设备中保存的转发表项进行检查和更新,进而更好地为数据流提供QoS保障。For another example, in a second possible implementation manner, the first network device is periodically triggered to check the first forwarding entry. Specifically, the first network device periodically checks whether the first transmission path meets the required transmission quality indicated by the QoS information; the first network device determines that the first transmission path does not meet the required transmission quality When the required transmission quality indicated by the QoS information, the first network device determines a fourth transmission path according to the QoS information of the target data flow, the multiple transmission paths include the fourth transmission path, and the fourth transmission path is The transmission path is a transmission path that satisfies the required transmission quality indicated by the QoS information; the first network device determines a fourth forwarding entry of the target data stream according to the fourth transmission path, and the fourth forwarding The publication entry is used to instruct the first network device to send the data packet belonging to the target data flow to the second network device via the fourth transmission path; the first network device saves the fourth forwarding entry , delete the first forwarding entry. In this way, the forwarding table items stored in the first network device can be checked and updated, thereby better providing QoS guarantee for the data flow.

为了进一步提高方案的灵活性,本申请实施例中的QoS信息可以有多种形式,比如,在一种可能的实施方式中,QoS信息可以包括带宽、时延、吞吐率以及丢包率中的至少一项。In order to further improve the flexibility of the solution, the QoS information in this embodiment of the present application may have various forms. For example, in a possible implementation manner, the QoS information may include bandwidth, delay, throughput rate, and packet loss rate. at least one.

为了进一步提高方案的灵活性,本申请实施例中的第一转发表项的具体内容可以有多种实现方式,比如,在第一种可能的实施方式中,所述第一转发表项可以包括所述目标数据流的流标识以及所述第一传输路径的路径标识;比如,在第二种可能的实施方式中,所述第一转发表项可以包括所述目标数据流的流标识、所述第一传输路径的路径标识以及所述目标数据流的优先级信息。In order to further improve the flexibility of the solution, the specific content of the first forwarding entry in this embodiment of the present application may be implemented in various manners. For example, in a first possible implementation manner, the first forwarding entry may include The stream identifier of the target data stream and the path identifier of the first transmission path; for example, in a second possible implementation manner, the first forwarding entry may include the stream identifier of the target data stream, the The path identifier of the first transmission path and the priority information of the target data stream.

第二方面,本申请实施例提供一种数据传输装置,应用于第一网络设备,该装置包括:In a second aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a first network device, and the apparatus includes:

接收模块,用于接收目标数据包,所述目标数据包是从所述第一网络设备发往第二网络设备的数据包;其中,所述第一网络设备经由多条传输路径与所述第二网络设备通信;A receiving module, configured to receive a target data packet, where the target data packet is a data packet sent from the first network device to the second network device; wherein the first network device communicates with the first network device via multiple transmission paths 2. Network equipment communication;

处理模块,用于根据所述目标数据包确定所述目标数据包所属的目标数据流;以及确定所述第一网络设备是否保存有所述目标数据流的第一转发表项,其中,所述第一转发表项指示所述第一网络设备经由第一传输路径向所述第二网络设备发送属于所述目标数据流的数据包,所述多条传输路径包括所述第一传输路径;以及在确定所述网络设备未保存有所述第一转发表项时,根据所述目标数据流的服务质量QoS信息确定第二传输路径和根据所述第二传输路径确定所述目标数据流的第二转发表项,所述QoS信息指示属于所述目标数据流的数据包从所述第一网络设备向所述第二网络设备传输过程中的要求传输质量,所述第二传输路径是满足所述QoS信息指示的所述要求传输质量的传输路径,所述多条传输路径包括所述第二传输路径,所述第二转发表项指示所述第一网络设备经由所述第二传输路径向所述第二网络设备发送属于所述目标数据流的数据包;a processing module, configured to determine the target data stream to which the target data packet belongs according to the target data packet; and determine whether the first network device saves the first forwarding entry of the target data stream, wherein the a first forwarding entry instructing the first network device to send a data packet belonging to the target data flow to the second network device via a first transmission path, the plurality of transmission paths including the first transmission path; and When it is determined that the first forwarding entry is not stored in the network device, a second transmission path is determined according to the QoS information of the target data flow, and a second transmission path of the target data flow is determined according to the second transmission path. Two forwarding entries, the QoS information indicates the required transmission quality during the transmission of the data packets belonging to the target data flow from the first network device to the second network device, and the second transmission path is to satisfy the required transmission quality. The transmission path requiring transmission quality indicated by the QoS information, the plurality of transmission paths include the second transmission path, and the second forwarding entry instructs the first network device to send to the network via the second transmission path. sending, by the second network device, a data packet belonging to the target data flow;

发送模块,用于根据所述第二转发表项向所述第二网络设备发送所述目标数据包。A sending module, configured to send the target data packet to the second network device according to the second forwarding entry.

在一种可能的实施方式中,所述处理模块在根据所述目标数据流的QoS信息确定第二传输路径时,具体可以先确定所述目标数据流对应的目标优先级;然后确定所述多条传输路径中的每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量;最后再根据所述QoS信息和确定的每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量,从所述多条传输路径中确定出满足所述QoS信息指示的要求传输质量的所述第二传输路径。In a possible implementation manner, when determining the second transmission path according to the QoS information of the target data stream, the processing module may specifically first determine the target priority corresponding to the target data stream; and then determine the multiple The actual transmission quality of each transmission path in the transmission path when transmitting the data packets in the data flow of the target priority; The actual transmission quality of the data packets in the data stream is determined, and the second transmission path that satisfies the required transmission quality indicated by the QoS information is determined from the multiple transmission paths.

在一种可能的实施方式中,所述处理模块在确定所述多条传输路径中的每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量时,具体可以是根据所述每条传输路径的传输质量表项,确定所述每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量;其中,所述每条传输路径的路径质量表项用于指示所述每条传输路径在传输至少一种优先级的数据流中的数据包时分别对应的实际传输质量,所述至少一种优先级包括所述目标优先级。In a possible implementation manner, when the processing module determines the actual transmission quality of each of the multiple transmission paths when transmitting the data packets in the data stream of the target priority, the processing module may specifically is to determine the actual transmission quality of each transmission path when transmitting the data packets in the data stream of the target priority according to the transmission quality table entry of each transmission path; wherein, the The path quality table entry is used to indicate the actual transmission quality corresponding to each transmission path when transmitting the data packets in the data flow of at least one priority, and the at least one priority includes the target priority.

在一种可能的实施方式中,所述第二传输路径可以是所述处理模块确定出的、满足所述QoS信息指示的要求传输质量的多条传输路径中实际传输质量最好的传输路径。当然,所述第二传输路径也可以是所述处理模块确定出的、满足所述QoS信息指示的要求传输质量的多条传输路径中实际传输质量次好的传输路径,或者是所述处理模块根据预设的策略从所述多条传输路径中挑选出的其它传输路径。In a possible implementation manner, the second transmission path may be a transmission path with the best actual transmission quality among multiple transmission paths determined by the processing module and meeting the required transmission quality indicated by the QoS information. Of course, the second transmission path may also be the transmission path with the second best actual transmission quality among the multiple transmission paths determined by the processing module and satisfying the required transmission quality indicated by the QoS information, or the processing module Other transmission paths selected from the plurality of transmission paths according to a preset strategy.

在一种可能的实施方式中,所述处理模块在根据所述第二传输路径确定所述目标数据流的第二转发表项之后,还可以保存所述第二转发表项。In a possible implementation manner, after the processing module determines the second forwarding entry of the target data stream according to the second transmission path, the processing module may further save the second forwarding entry.

在一种可能的实施方式中,所述处理模块还用于:在确定所述网络设备保存有所述第一转发表项时,确定所述第一传输路径是否满足所述QoS信息指示的所述要求传输质量。所述发送模块可以在所述处理模块确定所述第一传输路径满足所述QoS信息指示的所述要求传输质量时,经由所述第一传输路径向所述第二网络设备发送所述目标数据包;In a possible implementation manner, the processing module is further configured to: when it is determined that the first forwarding entry is stored in the network device, determine whether the first transmission path satisfies all the conditions indicated by the QoS information. the required transmission quality. The sending module may send the target data to the second network device via the first transmission path when the processing module determines that the first transmission path satisfies the required transmission quality indicated by the QoS information Bag;

所述处理模块还用于:在确定所述第一传输路径不满足所述QoS信息指示的所述要求传输质量时,根据所述目标数据流的QoS信息确定第三传输路径,所述多条传输路径包括所述第三传输路径,所述第三传输路径是满足所述QoS信息指示的所述要求传输质量的传输路径;根据所述第三传输路径确定所述目标数据流的第三转发表项,所述第三转发表项用于指示所述网络设备经由所述第三传输路径向所述第二网络设备发送属于所述目标数据流的数据包。进而,所述发送模块可以根据所述第三转发表项向所述第二网络设备发送所述目标数据包。The processing module is further configured to: when it is determined that the first transmission path does not meet the required transmission quality indicated by the QoS information, determine a third transmission path according to the QoS information of the target data flow, and the multiple transmission paths are The transmission path includes the third transmission path, and the third transmission path is a transmission path that satisfies the required transmission quality indicated by the QoS information; the third transmission path of the target data stream is determined according to the third transmission path. an entry, where the third forwarding entry is used to instruct the network device to send the data packet belonging to the target data flow to the second network device via the third transmission path. Further, the sending module may send the target data packet to the second network device according to the third forwarding entry.

在一种可能的实施方式中,所述处理模块还可以在根据所述第三传输路径确定所述目标数据流的第三转发表项之后,保存所述第三转发表项,删除所述第一转发表项。In a possible implementation manner, the processing module may further store the third forwarding entry and delete the third forwarding entry after determining the third forwarding entry of the target data stream according to the third transmission path. A forwarding entry.

在一种可能的实施方式中,所述处理模块还用于:周期性地检查所述第一传输路径是否满足所述QoS信息指示的所述要求传输质量;确定所述第一传输路径不满足所述QoS信息指示的所述要求传输质量时,根据所述目标数据流的QoS信息确定第四传输路径,所述多条传输路径包括所述第四传输路径,所述第四传输路径是满足所述QoS信息指示的所述要求传输质量的传输路径;根据所述第四传输路径确定所述目标数据流的第四转发表项,所述第四转发表项用于指示所述网络设备经由所述第四传输路径向所述第二网络设备发送属于所述目标数据流的数据包;保存所述第四转发表项,删除所述第一转发表项。In a possible implementation manner, the processing module is further configured to: periodically check whether the first transmission path satisfies the required transmission quality indicated by the QoS information; determine that the first transmission path does not meet the required transmission quality When the required transmission quality indicated by the QoS information is used, a fourth transmission path is determined according to the QoS information of the target data stream, the plurality of transmission paths include the fourth transmission path, and the fourth transmission path meets the requirements. the transmission path requiring transmission quality indicated by the QoS information; determining a fourth forwarding entry of the target data flow according to the fourth transmission path, where the fourth forwarding entry is used to instruct the network device to use the The fourth transmission path sends the data packets belonging to the target data flow to the second network device; saves the fourth forwarding entry, and deletes the first forwarding entry.

在一种可能的实施方式中,所述QoS信息可以包括带宽、时延、吞吐率以及丢包率中的至少一项。In a possible implementation manner, the QoS information may include at least one of bandwidth, delay, throughput rate and packet loss rate.

在一种可能的实施方式中,所述第一转发表项可以包括所述目标数据流的流标识以及所述第一传输路径的路径标识。当然,所述第一转发表项还可以包括所述目标数据流的优先级信息。In a possible implementation manner, the first forwarding entry may include a flow identifier of the target data stream and a path identifier of the first transmission path. Certainly, the first forwarding entry may also include priority information of the target data stream.

第三方面,本申请实施例提供一种数据传输装置,该装置包括至少一个处理器,以及与所述至少一个处理器通信连接的存储器、通信接口;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令,利用所述通信接口执行上述第一方面或第一方面的任意一种可能的实施方式中所述的方法。In a third aspect, an embodiment of the present application provides a data transmission device, the device includes at least one processor, and a memory and a communication interface communicatively connected to the at least one processor; Instructions executed by at least one processor, where the at least one processor uses the communication interface to execute the method described in the first aspect or any possible implementation manner of the first aspect by executing the instructions stored in the memory .

第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令在被计算机执行时,使所述计算机执行上述第一方面或第一方面的任意一种可能的实施方式中所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a computer, cause the The computer executes the method described in the first aspect or any one of the possible implementation manners of the first aspect.

附图说明Description of drawings

图1为IPv4包头的格式示意图;Fig. 1 is the format schematic diagram of IPv4 packet header;

图2为IPv4包头中的8位的服务类型字段的格式示意图;Fig. 2 is the format schematic diagram of the 8-bit service type field in the IPv4 packet header;

图3为DSCP字段含义及DSCP各优先级典型应用的示意图;Figure 3 is a schematic diagram of the meaning of the DSCP field and typical applications of DSCP priorities;

图4为本申请实施例提供的一种应用场景示意图;FIG. 4 is a schematic diagram of an application scenario provided by an embodiment of the present application;

图5为本申请实施例提供的一种数据传输方法的流程图;FIG. 5 is a flowchart of a data transmission method provided by an embodiment of the present application;

图6为本申请实施例提供的一种转发表的示意图;6 is a schematic diagram of a forwarding table provided by an embodiment of the present application;

图7为本申请实施例提供的一种传输路径的实际传输质量的示意图;FIG. 7 is a schematic diagram of actual transmission quality of a transmission path provided by an embodiment of the present application;

图8为本申请实施例提供的一种传输质量表项的示意图;8 is a schematic diagram of a transmission quality table entry provided by an embodiment of the present application;

图9为本申请实施例提供的一种数据传输过程的示意图;9 is a schematic diagram of a data transmission process provided by an embodiment of the present application;

图10为本申请实施例提供的一种路径重置方法的流程图;10 is a flowchart of a path resetting method provided by an embodiment of the present application;

图11a至图11d为本申请实施例提供的一种路径重置过程的示意图;11a to 11d are schematic diagrams of a path resetting process according to an embodiment of the present application;

图12为本申请实施例提供的一种数据传输装置的结构示意图;FIG. 12 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application;

图13为本申请实施例提供的另一种数据传输装置的结构示意图。FIG. 13 is a schematic structural diagram of another data transmission apparatus provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms in the embodiments of the present application will be explained, so as to facilitate the understanding of those skilled in the art.

1)网络设备,可以是计算机网络中的路由器、交换机、服务器等具有数据包收发、转发能力的设备,也可以是移动通信网络中具有数据包收发、转发能力的设备,例如包括接入网(access network,AN)设备,无线接入网(radio access network,RAN)设备,接入网设备例如基站(例如,接入点),可以是指接入网中在空口通过一个或多个小区与无线终端设备通信的设备。基站可用于将收到的空中帧与网际协议(IP)分组进行相互转换,作为终端设备与接入网的其余部分之间的路由器,其中接入网的其余部分可包括IP网络。网络设备还可协调对空口的属性管理。例如,网络设备可以包括长期演进(long term evolution,LTE)系统或高级长期演进(long term evolution-advanced,LTE-A)中的演进型基站(NodeB或eNB或e-NodeB,evolved Node B),或者也可以包括第五代移动通信技术(the5thgeneration,5G)新空口(new radio,NR)系统中的下一代节点B(next generation node B,gNB)或者下一代演进型基站(next generation evolved nodeB,ng-eNB)、en-gNB(enhanced next generation node B,gNB):增强的下一代基站;也可以包括云接入网(cloud radio access network,Cloud RAN)系统中的集中式单元(centralized unit,CU)和分布式单元(distributed unit,DU),或者还可以包括中继设备,本申请实施例并不限定。1) A network device, which can be a router, switch, server, etc. in a computer network that has the ability to send, receive, and forward data packets, or a device that has the ability to send, receive, and forward data packets in a mobile communication network, such as an access network ( access network, AN) equipment, radio access network (radio access network, RAN) equipment, access network equipment such as a base station (for example, an access point), may refer to an access network that communicates with one or more cells over the air interface through one or more cells. A device that communicates with wireless end devices. The base station may be used to convert received air frames to and from Internet Protocol (IP) packets and act as a router between the terminal device and the rest of the access network, which may include the IP network. The network device can also coordinate the attribute management of the air interface. For example, the network device may include a long term evolution (long term evolution, LTE) system or an evolved base station (NodeB or eNB or e-NodeB, evolved Node B) in long term evolution-advanced (LTE-A), Alternatively, it may also include a next generation node B (gNB) or a next generation evolved node B (next generation evolved node B) in a new radio (new radio, NR) system of the fifth generation mobile communication technology (the 5th generation, 5G). ng-eNB), en-gNB (enhanced next generation node B, gNB): enhanced next-generation base station; may also include a centralized unit (centralized unit, cloud radio access network, Cloud RAN) system, CU) and a distributed unit (distributed unit, DU), or may also include a relay device, which is not limited in this embodiment of the present application.

另外在本申请实施例中,网络设备还可以包括核心网设备,核心网设备例如包括对用户的信令和数据进行处理和转发的网络设备。在4G系统中,一种核心网设备例如为移动管理实体(mobility management entity,MME)。MME是第三代合作伙伴计划(3rdgeneration partnership project,3GPP)协议所定义的LTE系统的接入网络的关键控制节点,它负责空闲模式的终端设备的定位和传呼过程等,包括中继。简单地说,MME是负责信令处理部分的核心网设备。或者,在5G系统中,核心网设备例如包括接入管理网元、会话管理网元或用户面网关等核心网设备。用户面网关可以是具有对用户面数据进行移动性管理、路由、转发等功能的服务器,一般位于网络侧,如服务网关(serving gateway,SGW)或分组数据网络网关(packet data network gateway,PGW)或用户面网元功能实体(user planefunction,UPF)。In addition, in this embodiment of the present application, the network device may further include a core network device, and the core network device includes, for example, a network device that processes and forwards the signaling and data of the user. In a 4G system, a core network device is, for example, a mobility management entity (mobility management entity, MME). The MME is a key control node of the access network of the LTE system defined by the 3rd Generation Partnership Project (3GPP) protocol, and is responsible for positioning and paging processes of terminal equipment in idle mode, including relays. Simply put, the MME is the core network equipment responsible for the signaling processing part. Alternatively, in the 5G system, the core network equipment includes, for example, core network equipment such as an access management network element, a session management network element, or a user plane gateway. The user plane gateway may be a server with functions such as mobility management, routing, and forwarding of user plane data, and is generally located on the network side, such as a serving gateway (SGW) or a packet data network gateway (PGW) Or a user plane function entity (user plane function, UPF).

2)本申请实施例中的服务质量(quality of service,QoS),指一个网络能够利用各种基础技术,为指定的网络通信提供的服务能力。为满足用户对不同应用不同服务质量的要求,需要网络能根据用户的要求分配和调度资源,对不同的数据流提供不同的服务质量。2) The quality of service (quality of service, QoS) in this embodiment of the present application refers to the service capability that a network can provide for specified network communication by using various basic technologies. In order to meet users' requirements for different service qualities of different applications, the network needs to be able to allocate and schedule resources according to the user's requirements, and provide different service qualities for different data streams.

本申请实施例中的“数据流需求的QoS”或者“数据流的QoS需求”,是指属于该数据流的数据包在传输过程中所要求的传输质量。In the embodiments of the present application, "QoS of data flow requirements" or "QoS requirements of data flow" refers to the transmission quality required by the data packets belonging to the data flow during the transmission process.

本申请实施例中QoS信息的具体内容可以包括带宽、时延、吞吐率以及丢包率等,任何可以表征传输质量的性能指标均可以作为QoS信息。The specific content of the QoS information in the embodiment of the present application may include bandwidth, delay, throughput rate, packet loss rate, etc., and any performance index that can characterize transmission quality may be used as the QoS information.

3)本申请实施例可以适用于数据通信系统、IP通信系统、云存储系统、长期演进(long term evolution,LTE)系统,或第五代移动通信技术(5G)新无线(new radio,NR)系统等,或者也可以适用于其他类似的通信系统,例如下一代通信系统等。3) The embodiments of the present application may be applicable to data communication systems, IP communication systems, cloud storage systems, long term evolution (long term evolution, LTE) systems, or fifth generation mobile communication technology (5G) new radio (new radio, NR) system, etc., or can also be applied to other similar communication systems, such as next-generation communication systems.

4)本申请实施例中的术语“系统”和“网络”可被互换使用。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,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可以是单个,也可以是多个。4) The terms "system" and "network" in the embodiments of this application may be used interchangeably. "At least one" means one or more, and "plurality" means two or more. "And/or", which describes the relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, it can indicate that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one item (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple .

5)除非有相反的说明,本申请实施例提及“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。例如,第一优先级准则和第二优先级准则,只是为了区分不同的准则,而并不是表示这两种准则的内容、优先级或者重要程度等的不同。5) Unless stated to the contrary, the ordinal numbers such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, sequence, priority or priority of multiple objects. Importance. For example, the first priority criterion and the second priority criterion are only for distinguishing different criteria, and do not indicate the difference in content, priority, or importance of the two criteria.

传统现有技术中,一般通过如下两种方式为不同业务的数据流提供差异化的QoS:In the traditional prior art, differentiated QoS is generally provided for data flows of different services in the following two ways:

方式1:采用区分服务的方法,区分服务是一种基于类的QoS技术,其原理是通过对不同的QoS需求的业务分配不同的优先级,提供差异化的服务。通过优先处理高优先级业务的流量,实现为高优先级业务提供相比低优先级业务更好的QoS。Mode 1: The method of differentiated services is adopted. Differentiated services is a class-based QoS technology. The principle is to provide differentiated services by assigning different priorities to services with different QoS requirements. By prioritizing the traffic of high-priority services, it is possible to provide higher-priority services with better QoS than low-priority services.

在IP网络中,使用IP报文头中的DSCP(differentiated services code Point,差分服务代码点)字段表示业务的优先级。图1为IPv4包头的格式示意图,IPv4包头包括4位的版本(version,VER)字段,4位的包头长度(header length,HLEN)字段、8位的服务类型(Service Type)字段等。In an IP network, a DSCP (differentiated services code point, differentiated services code point) field in an IP packet header is used to indicate the priority of a service. 1 is a schematic diagram of the format of an IPv4 packet header. The IPv4 packet header includes a 4-bit version (version, VER) field, a 4-bit header length (header length, HLEN) field, an 8-bit service type (Service Type) field, and the like.

图2是对IPv4包头中8位的服务类型(Service Type)字段的具体说明,通过图2可知:服务类型字段具体包括6位的DSCP字段和2位的显示拥塞通告(explicit congestionnotification,ECN)字段。Figure 2 is a specific description of the 8-bit Service Type field in the IPv4 packet header. It can be seen from Figure 2 that the Service Type field specifically includes a 6-bit DSCP field and a 2-bit explicit congestion notification (ECN) field. .

图3是对DSCP字段的含义及其各优先级典型应用的说明,其中图3中涉及的英文缩写解释如下:Figure 3 is a description of the meaning of the DSCP field and its typical application of each priority, wherein the English abbreviations involved in Figure 3 are explained as follows:

DS:differentiated servcies,差分服务;DS: differentiated servcies, differentiated services;

CS:class of Service,服务类型(优先级);CS: class of Service, service type (priority);

BE:best-effort,尽力而为;BE: best-effort, try your best;

AF:assured forwarding,确保转发;AF: assured forwarding, ensure forwarding;

EF:expedited forwarding,快速转发;EF: expedited forwarding, fast forwarding;

IP precedence:IP优先级;IP precedence: IP precedence;

IPTV VOD:IP Television Video On Demand,IP电视点播;IPTV VOD: IP Television Video On Demand, IP TV on demand;

NGN:next generation network,下一代网络;NGN: next generation network, the next generation network;

RTP:real-time transport protocol,实时传输协议。RTP: real-time transport protocol, real-time transport protocol.

通过图3可知:DSCP将业务分为CS0(Class Service0)~CS7共8大类,其中CS7的优先级最高,CS0的优先级最低。当不同业务类型的数据流的数据包在网络传输时,网络设备优先处理高优先级业务的数据流的数据包。It can be seen from Figure 3 that DSCP divides services into eight categories from CS0 (Class Service0) to CS7, of which CS7 has the highest priority and CS0 has the lowest priority. When data packets of data streams of different service types are transmitted on the network, the network device preferentially processes data packets of data streams of high-priority services.

但是,这种方式只能达到为高优先级的数据流提供相对比低优先级的数据流更好的QoS的效果,并不能确保高优先级数据流的QoS需求一定能够被满足;并且,一般网络提供的QoS是有限的,相同优先级数据流的数据包在网络中传输时,时常存在会因为竞争链路带宽而导致QoS不能满足的问题。However, this method can only achieve the effect of providing relatively better QoS for high-priority data streams than low-priority data streams, and cannot ensure that the QoS requirements of high-priority data streams can be satisfied; and generally, The QoS provided by the network is limited. When data packets of the same priority data flow are transmitted in the network, there is often a problem that the QoS cannot be satisfied due to competition for link bandwidth.

方式2:采用网络硬分片的方法,网络硬分片是一种用隔离的网络资源分片为不同业务提供差异化服务的技术。其原理是:将网络分为多个分片,并根据分片上所承载的业务的QoS需求,为每个分片分配相互隔离的网络资源(比如带宽、缓存等)。如果能为运行在某分片上的业务,提供足够多的网络资源,则这类业务的QoS就能得到保障。Mode 2: The method of network hard sharding is adopted. Network hard sharding is a technology that uses isolated network resource sharding to provide differentiated services for different services. The principle is: divide the network into multiple shards, and allocate isolated network resources (such as bandwidth, cache, etc.) to each shard according to the QoS requirements of the services carried on the shards. If enough network resources can be provided for services running on a certain segment, the QoS of such services can be guaranteed.

但是,这种方式存在如下缺点:However, this method has the following disadvantages:

1)网络硬分片对分片资源的划分是相对静态,一旦配置,各个分片的资源往往较长时间内都不会修改,但业务对网络资源的需求是动态的,会随业务的规模和活跃程度实时变化,因此静态的网络资源分配往往很难匹配业务对网络资源的动态需求;1) The division of shard resources by network hard sharding is relatively static. Once configured, the resources of each shard will not be modified for a long time. However, the business demand for network resources is dynamic and will vary with the scale of the business. and activity changes in real time, so it is often difficult for static network resource allocation to match the dynamic needs of services for network resources;

2)在为每个分片配置网络资源时,为了保障该分片上所运行的业务的QoS,需要按该分片运行的业务对网络资源的峰值需求为其分配资源。但是,业务在大多数时间并非运行于峰值状态,这意味着分片资源在大多数情况下不能被充分利用,而不同分片间资源是隔离的,一个分片的闲置资源不能被另一个分片利用,这导致网络资源的浪费和网络整体的资源低利用率的问题;2) When configuring network resources for each fragment, in order to ensure the QoS of the services running on the fragment, resources need to be allocated according to the peak demand for network resources of the services running on the fragment. However, the business is not running at the peak state most of the time, which means that the shard resources cannot be fully utilized in most cases, and the resources between different shards are isolated, and the idle resources of one shard cannot be allocated by another. slice utilization, which leads to the waste of network resources and the problem of low utilization of network resources as a whole;

3)即便一个网络分片的总网络资源是足够的,但运行在该分片上的业务流量,如果在该分片上分发不均匀,也会引起局部的拥塞,从而导致QoS不能保证;3) Even if the total network resources of a network shard are sufficient, if the business traffic running on the shard is unevenly distributed on the shard, it will cause local congestion, resulting in the inability to guarantee QoS;

4)网络硬分片因为要求分片间资源严格隔离,因此对硬件设备的要求较高,要求全网设备都支持硬分片的能力,因此网络部署的成本非常高。4) Network hard sharding requires strict isolation of resources between shards, so it has higher requirements on hardware devices, and requires all network devices to support the capability of hard sharding, so the cost of network deployment is very high.

鉴于此,提供本申请实施例的技术方案,以在网络设备上实现基于QoS信息进行主动流量调度,在达到网络资源高利用率的同时,为数据流提供更好的QoS保障。In view of this, the technical solutions of the embodiments of the present application are provided to implement active traffic scheduling based on QoS information on network devices, and provide better QoS guarantee for data flows while achieving high utilization of network resources.

请参见图4,可以为本申请实施例的一种应用场景。该场景以数据通信网络为例,该网络包括有多个节点,如节点A、节点B、节点C、节点D、节点E、节点F、节点G、节点H、节点D等。其中,节点A、节点B、节点C、节点H为网络的边缘节点,节点D、节点F、节点E、节点G为网络的中间节点。网络流量从边缘节点进入网络,经过零或一个以上中间节点,到达其他边缘节点后,离开网络。应当理解,在实际中,网络中的节点可以只是图4中示出的部分节点,或者多于图4中示出的节点,本申请实施例不做具体限制,网络的拓扑结构也可以是其它形式,图4中的网络拓扑结构仅仅是一种示例。Please refer to FIG. 4 , which may be an application scenario of the embodiment of the present application. This scenario takes a data communication network as an example. The network includes multiple nodes, such as node A, node B, node C, node D, node E, node F, node G, node H, node D, and so on. Wherein, node A, node B, node C, and node H are edge nodes of the network, and node D, node F, node E, and node G are intermediate nodes of the network. Network traffic enters the network from edge nodes, passes through zero or more intermediate nodes, reaches other edge nodes, and leaves the network. It should be understood that, in practice, the nodes in the network may only be part of the nodes shown in FIG. 4 , or more than the nodes shown in FIG. 4 , the embodiments of the present application do not make specific limitations, and the topology structure of the network may also be other form, the network topology in Figure 4 is just an example.

其中,网络中的任意两个节点上的网络设备之间可以相互通信,如相互发送数据包,并且任意两个网络设备之间通信的传输路径可以有多条。当网络中的任一边缘节点上的网络设备向另一边缘节点上的网络设备发送数据包时,该任一边缘节点上的网络设备可以根据待发送的数据包所在的数据流的QoS信息确定用于发送该数据包的传输路径,进而实现整个网络基于数据流的QoS信息的主动流量调度,在达到网络资源高利用率的同时,为数据流提供较好的QoS保障。Wherein, network devices on any two nodes in the network can communicate with each other, such as sending data packets to each other, and there can be multiple transmission paths for communication between any two network devices. When a network device on any edge node in the network sends a data packet to a network device on another edge node, the network device on any edge node can determine according to the QoS information of the data stream where the data packet to be sent is located The transmission path used to send the data packet, thereby realizing the active traffic scheduling of the entire network based on the QoS information of the data flow, and providing better QoS guarantee for the data flow while achieving high utilization of network resources.

以图4中的网络设备为例,节点A和节点B之间的传输路径包括A—E—G—B、A—D—F—B、A—E—F—B、A—D—F—E—G—B等,图4中的任意一个节点即可以理解为是一个网络设备。节点A在收到需要发送至节点B的目标数据包后,从节点A和节点B之间的传输路径中选择满足目标数据包所属目标数据流的QoS信息所指示的要求传输质量的传输路径,然后节点A将目标数据包通过选择的传输路径发送给节点B,以此为目标数据包的传输提供QoS保障。Taking the network device in Figure 4 as an example, the transmission path between node A and node B includes A-E-G-B, A-D-F-B, A-E-F-B, A-D-F -E-G-B, etc. Any node in Figure 4 can be understood as a network device. After node A receives the target data packet that needs to be sent to node B, it selects a transmission path that satisfies the required transmission quality indicated by the QoS information of the target data stream to which the target data packet belongs from the transmission path between node A and node B, Then node A sends the target data packet to node B through the selected transmission path, so as to provide QoS guarantee for the transmission of the target data packet.

请参见图5,本申请实施例提供一种数据传输方法,在下文的介绍过程中,以将该方法应用于图4所示的应用场景为例。该方法的流程介绍如下。Referring to FIG. 5 , an embodiment of the present application provides a data transmission method. In the following introduction process, the method is applied to the application scenario shown in FIG. 4 as an example. The flow of this method is described as follows.

S501:第一网络设备接收目标数据包;其中,目标数据包是从第一网络设备发往第二网络设备的数据包;在本申请实施例中,第一网络设备以图4中的节点A为例,第二网络设备以图4中的节点B为例,第一网络设备经由多条传输路径与第二网络设备通信,如图4中的A—E—G—B、A—D—F—B、A—E—F—B、A—D—F—E—G—B等,分别为第一网络设备与第二网络设备之间的多条传输路径。S501: The first network device receives the target data packet; wherein, the target data packet is a data packet sent from the first network device to the second network device; in this embodiment of the present application, the first network device uses the node A in FIG. 4 For example, the second network device takes the node B in FIG. 4 as an example, the first network device communicates with the second network device via multiple transmission paths, such as A-E-G-B and A-D- in FIG. 4 . F-B, A-E-F-B, A-D-F-E-G-B, etc., are respectively multiple transmission paths between the first network device and the second network device.

S502:第一网络设备根据目标数据包确定目标数据包所属的目标数据流;作为一种可选的实施方式,在本申请实施例中,第一网络设备可根据目标数据包的包头信息确定目标数据包所属的目标数据流。其中,包头信息中可以包含目标数据流的流标识的相关信息,流标识可以基于流标签或者多元组来表示。S502: The first network device determines the target data stream to which the target data packet belongs according to the target data packet; as an optional implementation manner, in this embodiment of the present application, the first network device may determine the target data stream according to the header information of the target data packet The destination data stream to which the packet belongs. The header information may include information related to the flow identifier of the target data stream, and the flow identifier may be represented based on a flow label or a tuple.

S503:第一网络设备确定第一网络设备是否保存有目标数据流的第一转发表项,其中,第一转发表项指示第一网络设备经由第一传输路径向第二网络设备发送属于目标数据流的数据包,上述多条传输路径包括第一传输路径;S503: The first network device determines whether the first network device stores a first forwarding entry of the target data stream, where the first forwarding entry instructs the first network device to send data belonging to the target to the second network device via the first transmission path Streaming data packets, the plurality of transmission paths include a first transmission path;

作为一种可选的实施方式,在本申请实施例中,第一网络设备可以预先保存多个转发表项。其中,每个转发表项均包含一个数据流的流标识和与该数据流相对应的传输路径的路径标识。每个转发表项用于指示:在该转发表项中的流标识所指示的数据流的数据包到达第一网络设备时,第一网络设备使用该转发表项中对应该流标识的路径标识所指示的传输路径对该数据包进行转发。As an optional implementation manner, in this embodiment of the present application, the first network device may store multiple forwarding entries in advance. Wherein, each forwarding entry includes a stream identifier of a data stream and a path identifier of a transmission path corresponding to the data stream. Each forwarding entry is used to indicate that: when the data packet of the data flow indicated by the flow identifier in the forwarding entry reaches the first network device, the first network device uses the path identifier corresponding to the flow identifier in the forwarding entry The indicated transmission path forwards the packet.

作为一种可选的实施方式,在本申请实施例中,上述多个转发表项可以组合成一个或者多个转发表的形式保存在第一网络设备中,例如图6所示的表1。相应的,第一网络设备在确定第一网络设备是否保存有目标数据流的第一转发表项时,可以通过查表的方式,查找转发表中是否有目标数据流的流标识,来确定第一网络设备是否保存有目标数据流的第一转发表项,如果有目标数据流的流标识,则确定第一网络设备保存有目标数据流的第一转发表项,反之,确定第一网络设备未保存有目标数据流的第一转发表项。As an optional implementation manner, in this embodiment of the present application, the foregoing multiple forwarding table entries may be combined into one or more forwarding tables and stored in the first network device, such as Table 1 shown in FIG. 6 . Correspondingly, when the first network device determines whether the first network device saves the first forwarding table entry of the target data stream, it can check whether the forwarding table has the stream identifier of the target data stream by looking up the table to determine the first forwarding table entry. Whether a network device saves the first forwarding entry of the target data stream, and if there is a flow identifier of the target data stream, it is determined that the first network device saves the first forwarding entry of the target data stream; otherwise, it is determined that the first network device The first forwarding entry for the target data stream is not saved.

作为一种可选的实施方式,在本申请实施例中,如果步骤S503中,第一网络设备确定出自身保存有目标数据流的第一转发表项,则可以直接经由第一转发表项中的第一传输路径向第二网络设备转发该目标数据包;如果步骤S503确定出第一网络设备未保存有目标数据流的第一转发表项,则可以执行下面步骤504,为目标数据流确定第二转发表项。As an optional implementation manner, in this embodiment of the present application, if in step S503, the first network device determines that it stores the first forwarding entry of the target data stream, it can directly use the first forwarding entry in the first forwarding entry. The first transmission path forwards the target data packet to the second network device; if it is determined in step S503 that the first network device does not store the first forwarding entry of the target data stream, the following step 504 can be performed to determine the target data stream. Second forwarding entry.

S504:第一网络设备确定第一网络设备未保存有第一转发表项时,第一网络设备根据目标数据流的QoS信息确定第二传输路径,第一网络设备可以根据第二传输路径进一步确定目标数据流的第二转发表项;S504: When the first network device determines that the first network device does not store the first forwarding entry, the first network device determines the second transmission path according to the QoS information of the target data flow, and the first network device may further determine according to the second transmission path the second forwarding entry of the target data stream;

其中,QoS信息用于指示属于目标数据流的数据包从第一网络设备向第二网络设备传输过程中的要求传输质量,比如QoS信息的具体内容可以包括带宽、时延、吞吐率以及丢包率等。在具体实施时,QoS信息可以是能够表征目标数据流的数据包从第一网络设备向第二网络设备传输过程中要求的传输质量的任何信息,本申请实施例对QoS信息的具体内容不做限制。The QoS information is used to indicate the required transmission quality during the transmission of the data packets belonging to the target data flow from the first network device to the second network device. For example, the specific content of the QoS information may include bandwidth, delay, throughput, and packet loss. rate etc. During specific implementation, the QoS information may be any information that can represent the transmission quality required during the transmission of the data packets of the target data flow from the first network device to the second network device, and the specific content of the QoS information is not described in this embodiment of the present application. limit.

作为一种可选的实施方式,第二网络设备可以确定第一网络设备与第二网络设备通信的多条传输路径中每条传输路径的实际传输质量,从中选择出实际传输质量满足目标数据流的QoS信息指示的要求传输质量的传输路径作为第二传输路径。As an optional implementation manner, the second network device may determine the actual transmission quality of each transmission path among the multiple transmission paths communicated between the first network device and the second network device, and select from the actual transmission quality that satisfies the target data stream The transmission path requiring transmission quality indicated by the QoS information is used as the second transmission path.

考虑到在网络中,不同优先级的流量通常经过不同的队列,且高优先级流量通常会被更优先地调度,所以不同优先级流量通过相同传输路径时,能获得的实际传输质量,即能够得到的QoS保障往往是不同的。鉴于此,作为一种可选的实施方式,在本申请实施例中,各条传输路径的实际传输质量和数据流的优先级相关联。Considering that in the network, traffic of different priorities usually passes through different queues, and high-priority traffic is usually scheduled with higher priority, the actual transmission quality that can be obtained when traffic of different priorities passes through the same transmission path The resulting QoS guarantees are often different. In view of this, as an optional implementation manner, in this embodiment of the present application, the actual transmission quality of each transmission path is associated with the priority of the data stream.

以传输质量具体为时延和带宽为例,图7中的表2为本申请实施例中对传输路径的实际传输质量的一种示例。在表2中,在某一路径不能对某一优先级流量提供时延或可用带宽的保障时,其对应的性能指标表示为N.A.(无保障)。Taking that the transmission quality is specifically the delay and the bandwidth as an example, Table 2 in FIG. 7 is an example of the actual transmission quality of the transmission path in the embodiment of the present application. In Table 2, when a certain path cannot provide guarantee of delay or available bandwidth for a certain priority traffic, its corresponding performance index is expressed as N.A. (no guarantee).

通过表2可以看出,路径1在传输不同优先级的数据流的数据包时对应实际传输质量不同,路径2在传输不同优先级的数据流的数据包时对应实际传输质量不同。比如,路径1在传输优先级1的数据流的数据包时对应的可用带宽为200Mbps,而在传输优先级2的数据流的数据包时对应的可用带宽为500Mbps。It can be seen from Table 2 that path 1 corresponds to different actual transmission qualities when transmitting packets of data streams with different priorities, and path 2 corresponds to different actual transmission qualities when transmitting packets of data streams with different priorities. For example, the available bandwidth corresponding to path 1 is 200 Mbps when transmitting the data packets of the data flow with priority 1, and the corresponding available bandwidth is 500 Mbps when transmitting the data packets of the data flow with priority 2.

需要说明的是,图7是以时延和带宽作为传输质量为例来说明的,在具体实施时,表2中的传输质量指标还可以是吞吐率、丢包率、时延等其他指标,本申请实施例不做具体限制。It should be noted that FIG. 7 is illustrated by taking the delay and bandwidth as the transmission quality as an example. In the specific implementation, the transmission quality indicators in Table 2 may also be other indicators such as throughput rate, packet loss rate, delay, etc. The embodiments of the present application do not make specific limitations.

相应的,第一网络设备根据目标数据流的服务质量QoS信息确定第二传输路径时,可以先确定目标数据流对应的目标优先级;第一网络设备分别确定多条传输路径中的每条传输路径在传输目标优先级的数据流中的数据包时的实际传输质量;第一网络设备根据目标数据流的QoS信息,和确定的每条传输路径在传输目标优先级的数据流中的数据包时的实际传输质量,从多条传输路径中确定出满足目标数据流的QoS信息指示的要求传输质量的第二传输路径。Correspondingly, when the first network device determines the second transmission path according to the QoS information of the target data stream, it may first determine the target priority corresponding to the target data stream; the first network device determines each transmission path in the multiple transmission paths respectively. The actual transmission quality of the path when transmitting the data packets in the data flow of the target priority; the first network device determines the data packets in the data flow of the target priority for each transmission path according to the QoS information of the target data flow and the transmission path The actual transmission quality at the time is determined, and a second transmission path that satisfies the required transmission quality indicated by the QoS information of the target data stream is determined from the multiple transmission paths.

因为将各条传输路径的实际传输质量和数据流的优先级相关联,使得确定出的各个传输路径的实际传输质量更加准确,保证确定出的第二传输路径能够更好的满足QoS信息指示的要求传输质量。Because the actual transmission quality of each transmission path is associated with the priority of the data stream, the determined actual transmission quality of each transmission path is more accurate, and it is ensured that the determined second transmission path can better meet the requirements indicated by the QoS information. Transmission quality is required.

作为一种可选的实施方式,在本申请实施例中,数据流的优先级的划分可以参照图3所示的现有优先级的划分方式,对现有的优先级划分方式进行复用,或者使用其他预设规则对数据流的优先级进行划分,本申请实施例不做具体限制。As an optional implementation manner, in this embodiment of the present application, the prioritization of data streams may refer to the existing priority division method shown in FIG. 3, and the existing priority division method is multiplexed, Alternatively, other preset rules may be used to classify the priorities of the data streams, which is not specifically limited in this embodiment of the present application.

这里列举一种可能的优先级的划分方式:根据数据流的QoS信息所指示的要求传输质量对数据流的优先级进行划分,具体为数据流对应的要求传输质量越高,数据流对应的优先级越高。Here is a possible way of dividing the priority: divide the priority of the data flow according to the required transmission quality indicated by the QoS information of the data flow. Specifically, the higher the required transmission quality corresponding to the data flow, the priority corresponding to the data flow. The higher the level.

以数据流要求的传输带宽为例:带宽需求在0~1Mbps数值区间的数据流的优先级为0,带宽需求在1~100Mbps数值区间的数据流的优先级为1,带宽需求在100~500Mbps数值区间的数据流的优先级为2,带宽需求在高于500Mbps数值区间的数据流的优先级为3,其中优先级0为最低优先级,优先级3为最高优先级。Take the transmission bandwidth required by the data stream as an example: the priority of the data stream with the bandwidth requirement in the range of 0 to 1Mbps is 0, the priority of the data stream with the bandwidth requirement in the range of 1 to 100Mbps is 1, and the priority of the data stream with the bandwidth requirement in the range of 100 to 500Mbps The priority of the data stream in the numerical range is 2, and the priority of the data stream with the bandwidth requirement higher than 500Mbps is 3, where priority 0 is the lowest priority, and priority 3 is the highest priority.

进一步的,在具体实施时,可能会发生第一网络设备与第二网络设备通信的多条传输路径的中,满足目标数据流的QoS信息指示的要求传输质量的传输路径有多条的情况。鉴于此,作为一种可选的实施方式,在本申请实施例中,第一网络设备可以使用预设的策略从满足QoS信息指示的要求传输质量的多条传输路径中确定出一条传输路径作为第二传输路径。比如,使用随机选择的方式选择一条传输路径作为第二传输路径,或者使用贪心策略从满足QoS信息指示的要求传输质量的多条传输路径中确定出实际传输质量最好的传输路径作为第二传输路径,或者使用最佳匹配策略从满足QoS信息指示的要求传输质量的多条传输路径中确定出实际传输质量最接近该要求传输质量的传输路径作为第二传输路径,或者使用首次匹配策略将最先被第一网络设备确定为满足QoS信息指示的要求传输质量的传输路径作为第二传输路径等。在具体实施时,从满足QoS信息指示的要求传输质量的多条传输路径确定第二传输路径的策略可以根据实际情况进行调整,本申请实施例不做具体限制。Further, in a specific implementation, among the multiple transmission paths for communication between the first network device and the second network device, there may be multiple transmission paths that satisfy the required transmission quality indicated by the QoS information of the target data stream. In view of this, as an optional implementation manner, in this embodiment of the present application, the first network device may use a preset policy to determine a transmission path from multiple transmission paths that satisfy the required transmission quality indicated by the QoS information as a transmission path. second transmission path. For example, use a random selection method to select a transmission path as the second transmission path, or use a greedy strategy to determine the transmission path with the best actual transmission quality as the second transmission from multiple transmission paths that satisfy the required transmission quality indicated by the QoS information. Path, or use the best matching strategy to determine the transmission path whose actual transmission quality is closest to the required transmission quality from the multiple transmission paths that meet the required transmission quality indicated by the QoS information as the second transmission path, or use the first matching strategy to determine the transmission path with the highest transmission quality. The transmission path first determined by the first network device to satisfy the required transmission quality indicated by the QoS information is used as the second transmission path and so on. During specific implementation, the strategy for determining the second transmission path from multiple transmission paths that satisfy the required transmission quality indicated by the QoS information may be adjusted according to the actual situation, which is not specifically limited in this embodiment of the present application.

例如,请继续参照图7,假设目标数据包所属的目标数据流的目标优先级为1,目标数据包所属的目标数据流的QoS信息指示的要求传输质量具体为100Mbps带宽,第一网络设备和第二网络设备的传输路径包括表7中的路径1和2,则根据表7可知,路径1对应优先级为1的数据流的可用带宽是200Mbps,路径2对应优先级为1的数据流的可用带宽是100Mbps,路径1和路径2均满足目标数据流的QoS信息指示的要求传输质量,因此第一网络设备可基于贪心策略,选择可用带宽最大的路径1来向第二网络设备发送目标数据包,以此最大程度地保障目标数据流的QoS。For example, please continue to refer to FIG. 7, assuming that the target priority of the target data stream to which the target data packet belongs is 1, the required transmission quality indicated by the QoS information of the target data stream to which the target data packet belongs is specifically 100Mbps bandwidth, the first network device and The transmission path of the second network device includes paths 1 and 2 in Table 7. According to Table 7, the available bandwidth of path 1 corresponding to the data stream with priority 1 is 200 Mbps, and path 2 corresponding to the data stream with priority 1 has an available bandwidth of 200 Mbps. The available bandwidth is 100 Mbps, and both path 1 and path 2 meet the required transmission quality indicated by the QoS information of the target data flow. Therefore, the first network device can select path 1 with the largest available bandwidth to send the target data to the second network device based on the greedy policy. packets, so as to maximize the QoS of the target data flow.

作为一种可选的实施方式,在本申请实施例中,确定多条传输路径中的每条传输路径在传输目标优先级的数据流中的数据包时的实际传输质量,具体可以根据每条传输路径的传输质量表项来确定。其中,每条传输路径的路径质量表项用于指示每条传输路径在传输至少一种优先级的数据流中的数据包时分别对应的实际传输质量,其中至少一种优先级包括该目标优先级。As an optional implementation manner, in this embodiment of the present application, the actual transmission quality of each transmission path in the multiple transmission paths when transmitting the data packets in the data stream of the target priority may be determined according to each transmission path. The transmission quality table entry of the transmission path is determined. Wherein, the path quality entry of each transmission path is used to indicate the actual transmission quality corresponding to each transmission path when transmitting the data packets in the data flow of at least one priority, wherein the at least one priority includes the target priority class.

在具体实施时,多条传输路径的传输质量表项可以组合成传输质量表的形式保存在第一网络设备或者可以与第一网络设备通信的其它第三方网络设备中,第一网络设备通过读取该传输质量表获得各条传输路径的传输质量表项,比如图8中的表3所示。需要说明的是,图8中是以时延作为传输质量为例,在具体实施时,传输质量表中的传输质量指标还可以带宽、吞吐率、丢包率、时延抖动等其他指标,本申请实施例不做具体限制。During specific implementation, the transmission quality table entries of multiple transmission paths may be combined into a transmission quality table and stored in the first network device or other third-party network device that can communicate with the first network device. Obtain the transmission quality table entries of each transmission path by taking the transmission quality table, as shown in Table 3 in FIG. 8 . It should be noted that in Figure 8, the delay is used as the transmission quality as an example. In the specific implementation, the transmission quality indicators in the transmission quality table can also be other indicators such as bandwidth, throughput rate, packet loss rate, delay jitter, etc. The application examples do not make specific limitations.

进一步的,在确定出第二传输路径之后,第一网络设备根据第二传输路径确定目标数据流的第二转发表项,第二转发表项用于指示第一网络设备经由第二传输路径向第二网络设备发送属于目标数据流的数据包。其中,第二转发表项至少包括目标数据流的流标识和第二传输路径的路径标识。Further, after the second transmission path is determined, the first network device determines a second forwarding table entry of the target data stream according to the second transmission path, and the second forwarding table entry is used to instruct the first network device to send the data stream via the second transmission path. The second network device sends data packets belonging to the target data flow. Wherein, the second forwarding entry includes at least the flow identifier of the target data stream and the path identifier of the second transmission path.

作为一种可选的实施方式,在本申请实施例中,可以对所有转发表项的信息类型、包含的信息的格式等进行统一。则此处第二转发表项所包含的信息类型、包含的信息的格式等,和预先保存的各个转发表项所包含的信息类型、包含的信息的格式等一致。As an optional implementation manner, in this embodiment of the present application, the information types and the included information formats of all forwarding entries may be unified. Then, the type of information included in the second forwarding entry here, the format of the included information, etc., are consistent with the type of information included in each forwarding entry saved in advance, the format of the included information, and the like.

S505:第一网络设备根据第二转发表项向第二网络设备发送目标数据包。S505: The first network device sends the target data packet to the second network device according to the second forwarding entry.

作为一种可选的实施方式,在本申请实施例中,在第一网络设备根据第二传输路径确定目标数据流的第二转发表项之后,还可以保存第二转发表项。这样,第一网络设备在下一次接收到属于所述目标数据流的数据包时,就可以直接基于该保存的第二转发表项对收到的该数据包进行转发。As an optional implementation manner, in this embodiment of the present application, after the first network device determines the second forwarding entry of the target data stream according to the second transmission path, the second forwarding entry may also be saved. In this way, when the first network device receives a data packet belonging to the target data flow next time, it can directly forward the received data packet based on the saved second forwarding entry.

此外,第一网络设备预先也可以不保存任何转发表项,那么,在有新数据流的数据包到达时,第一网络设备就会确定自身未保存有该新数据流对应的转发表项,进而直接执行如上述步骤S503至步骤S505的过程,为新数据流确定对应的转发表项,以及将确定出的转发表项保存在第一网络设备上。这样,随着时间的推移,第一网络设备接收越来越多的数据流的数据包,第一网络设备学习并保存的数据流的转发表项越来越多。其中,本申请实施例中提及的新数据流是指第一网络设备未保存有对应转发表项的数据流。In addition, the first network device may not store any forwarding entries in advance. Then, when a data packet of a new data flow arrives, the first network device will determine that it does not store a forwarding entry corresponding to the new data flow. Further, the above steps S503 to S505 are directly executed to determine the corresponding forwarding entry for the new data stream, and save the determined forwarding entry on the first network device. In this way, as time goes by, the first network device receives more and more data packets of the data flow, and the first network device learns and saves more and more forwarding entries of the data flow. Wherein, the new data flow mentioned in the embodiment of the present application refers to the data flow for which the first network device does not store the corresponding forwarding entry.

为了更好地理解本申请实施例,下面通过一个具体实施例对上述步骤S501至步骤505的方法过程进行示例性的说明。请参见图9,在某一时刻,网络中有新数据流(数据流5,简称“流5”)的数据包到达第一网络设备,假设其优先级为0,其QoS信息所指示的时延要求是小于75ms。In order to better understand the embodiments of the present application, the method process of the above steps S501 to 505 is exemplarily described below by using a specific embodiment. Referring to Fig. 9, at a certain moment, a data packet with a new data flow (data flow 5, "flow 5" for short) in the network arrives at the first network device, assuming its priority is 0, the time indicated by its QoS information The latency requirement is less than 75ms.

由于该流5是一个新流,通过查找第一网络设备上的转发表没有找到该流5的转发表项,因此需要为该流选择一条满足其QoS信息所指示的时延要求的传输路径。Since the flow 5 is a new flow, the forwarding table entry for the flow 5 is not found by searching the forwarding table on the first network device, so a transmission path that satisfies the delay requirement indicated by its QoS information needs to be selected for the flow.

如图9所示,根据查找传输质量表可知,存在3条候选路径(路径1,路径2和路径3)均可以到达第二网络设备。其中,数据流优先级为0对应的路径2和路径3均满足都流5的QoS要求,即优先级为0的数据流的数据包通过这两条路径的时延都是70ms。第一网络设备为流5在路径2和路径3中选择一条传输路径,比如选择路径3对流5的数据包进行转发。As shown in FIG. 9 , according to searching the transmission quality table, it can be known that there are 3 candidate paths (path 1, path 2 and path 3), all of which can reach the second network device. Wherein, both path 2 and path 3 corresponding to the data flow priority 0 meet the QoS requirements of both flow 5, that is, the data packets of the data flow with priority 0 pass through the two paths with a delay of 70ms. The first network device selects a transmission path between path 2 and path 3 for flow 5, for example, selects path 3 to forward the data packets of flow 5.

进一步的,第一网络设备还可以基于路径3生成流5的转发表项,保存在第一网络设备中,后续在流5的其它数据包达到第一网络设备时,第一网络设备可以直接基于流5的转发表项确定经由路径3向第二网络设备发送流5的后续数据包。Further, the first network device can also generate a forwarding entry for flow 5 based on path 3, and save it in the first network device. When other data packets of flow 5 reach the first network device, the first network device can directly The forwarding entry for flow 5 determines that subsequent packets of flow 5 are sent via path 3 to the second network device.

在本申请实施例中,第一网络设备在接收目标数据包后,第一网络设备在确定第一网络设备未保存有第一转发表项时,第一网络设备根据目标数据流的QoS信息确定第二传输路径和第一网络设备根据第二传输路径确定目标数据流的第二转发表项,而第二传输路径是第一网络设备和第二网络设备之间通信的多条传输路径中满足目标数据流的QoS信息指示的传输质量的传输路径;然后,第一网络设备根据第二转发表项向第二网络设备发送目标数据包。这样,可以保证第一网络设备向第二网络设备发送目标数据包的传输路径可以满足目标数据包所属的目标数据流的QoS信息指示的传输质量,解决了现有技术中区分服务方案存在无法为数据流提供动态QoS保障的技术问题,还可以避免现有技术中网络硬分片方案存在的网络资源分配不合理、资源利用率低、网络部署成本高等问题。In this embodiment of the present application, after the first network device receives the target data packet, when the first network device determines that the first network device does not store the first forwarding entry, the first network device determines according to the QoS information of the target data flow The second transmission path and the first network device determine the second forwarding entry of the target data stream according to the second transmission path, and the second transmission path is one of the multiple transmission paths for communication between the first network device and the second network device. The transmission path of the transmission quality indicated by the QoS information of the target data flow; then, the first network device sends the target data packet to the second network device according to the second forwarding entry. In this way, it can be ensured that the transmission path through which the first network device sends the target data packet to the second network device can satisfy the transmission quality indicated by the QoS information of the target data stream to which the target data packet belongs, and solves the problem that the differentiated service solution in the prior art cannot provide The technical problem of providing dynamic QoS guarantee for data flow can also avoid the problems of unreasonable network resource allocation, low resource utilization rate, and high network deployment cost existing in the network hard slicing scheme in the prior art.

另外,在本申请实施例中,如果第一网络设备确定第一网络设备保存有第一转发表项时,则第一网络设备可直接经由第一转发表项指示的第一传输路径向第二网络设备发送目标数据包,可以在为数据流提供的QoS保障的前提下,提高数据包的转发效率。In addition, in this embodiment of the present application, if the first network device determines that the first network device stores the first forwarding entry, the first network device may directly send the second forwarding entry to the second network through the first transmission path indicated by the first forwarding entry. When the network device sends the target data packet, the forwarding efficiency of the data packet can be improved on the premise of the QoS guarantee provided for the data flow.

在实际情况中,大多数业务的流量是随着时间动态变化的,针对任一数据流,比如以目标数据流为例,假设第一网络设备已保存有目标数据流对应的第一转发表项,但是在第一转发表项所指示的第一传输路径上,有可能因为一些比目标数据流优先级更高的数据流的占用,或者目标数据流自身流量的变大,或者与目标数据流等优先级的其他数据流的流量变大,使得该第一传输路径的实际传输质量(比如,带宽、时延、吞吐率以及丢包率等)不再能满足目标数据流的QoS信息所指示的要求传输质量,导致第一传输路径不能保障目标数据流的QoS需求。In practice, the traffic of most services changes dynamically over time. For any data stream, for example, taking the target data stream as an example, it is assumed that the first network device has saved the first forwarding entry corresponding to the target data stream. , but on the first transmission path indicated by the first forwarding entry, it may be due to the occupation of some data streams with a higher priority than the target data stream, or the increase of the target data stream's own traffic, or the difference between the target data stream and the target data stream. The traffic of other data streams of equal priority increases, so that the actual transmission quality of the first transmission path (for example, bandwidth, delay, throughput rate, packet loss rate, etc.) can no longer meet the QoS information of the target data stream. Therefore, the first transmission path cannot guarantee the QoS requirements of the target data flow.

鉴于此,作为一种可选的实施方式,在本申请实施例中,第一网络设备还可以对已经保存的转发表项进行检查,检查已经保存的每个转发表项对应的传输路径的实际传输质量是否真正满足该转发表项所对应的数据流的QoS需求,第一网络设备在发现任一转发表项所指示的传输路径无法满足该转发表项所对应的数据流的QoS需求时,可以对该转发表项所对应的数据流执行路径重置的过程,以此保证该数据流的数据包在传输过程中的QoS。In view of this, as an optional implementation manner, in this embodiment of the present application, the first network device may also check the saved forwarding entries, and check the actual transmission path corresponding to each stored forwarding entry. Whether the transmission quality really meets the QoS requirements of the data flow corresponding to the forwarding entry, when the first network device finds that the transmission path indicated by any forwarding entry cannot meet the QoS requirements of the data flow corresponding to the forwarding entry, A process of resetting the path can be performed on the data flow corresponding to the forwarding entry, so as to ensure the QoS of the data packets of the data flow during the transmission process.

请参见图10,第一网络设备在检测到任一转发表项对应传输路径的实际传输质量不能满足该任一转发表项所对应的数据的QoS需求时,可以对该任一转发表项所对应的数据流执行路径重置过程。路径重置过程的具体实施方式可包括以下步骤:Referring to FIG. 10 , when detecting that the actual transmission quality of the transmission path corresponding to any forwarding entry cannot meet the QoS requirements of the data corresponding to the any forwarding entry, the first network device may The corresponding data flow performs the path reset process. Specific implementations of the path reset process may include the following steps:

S1001:第一网络设备确定数据流的优先级信息;S1001: The first network device determines priority information of the data stream;

作为一种可选的实施方式,在本申请实施例中,为了便于执行数据流的路径重置的过程,第一网络设备在保存转发表项时,可以在转发表项中添加数据流的优先级信息,即转发表项的具体内容应包含数据流的流标识、数据流的优先级信息以及传输路径的路径标识。那么,此处第一网络设备就可以通过该数据流对应的转发表项确定该数据流的优先级信息。As an optional implementation manner, in this embodiment of the present application, in order to facilitate the process of resetting the path of the data flow, when saving the forwarding entry, the first network device may add the priority of the data flow to the forwarding entry. Level information, that is, the specific content of the forwarding entry should include the stream identifier of the data stream, the priority information of the data stream, and the path identifier of the transmission path. Then, here, the first network device can determine the priority information of the data flow through the forwarding entry corresponding to the data flow.

当然,转发表项中也可以不保存数据流的优先级信息,在这种情况下第一网络设备可以使用其他方式确定数据流的优先级信息,比如从数据流的数据包头中获得优先级信息。Of course, the priority information of the data flow may not be stored in the forwarding entry. In this case, the first network device may use other methods to determine the priority information of the data flow, such as obtaining the priority information from the packet header of the data flow. .

S1002:第一网络设备重新从网络中确定出实际传输质量满足数据流的QoS信息所指示的要求传输质量的传输路径;S1002: The first network device re-determines from the network a transmission path whose actual transmission quality meets the required transmission quality indicated by the QoS information of the data stream;

S1003:第一网络设备基于重新确定出传输路径确定出新的转发表项,该新的转发表项用于指示第一网络设备经由重新确定出传输路径发送属于该数据流的数据包;S1003: The first network device determines a new forwarding entry based on the re-determined transmission path, where the new forwarding entry is used to instruct the first network device to send the data packet belonging to the data flow via the re-determined transmission path;

S1004:第一网络设备使用确定出的新的转发表项对原来的转发表项进行替换。S1004: The first network device uses the determined new forwarding entry to replace the original forwarding entry.

从上述步骤可知,数据流的路径重置过程中所执行的步骤S1001~步骤S1003和本申请实施例中上述步骤S504的具体过程是类似的,因此上述步骤S1001~步骤S1003的具体实现方式可以参照图5所示的步骤S504的具体实现方式,本申请实施例不再赘述。It can be seen from the above steps that the steps S1001 to S1003 executed in the process of resetting the path of the data flow are similar to the specific process of the above step S504 in this embodiment of the present application. Therefore, for the specific implementation of the above steps S1001 to S1003, please refer to The specific implementation manner of step S504 shown in FIG. 5 is not repeated in this embodiment of the present application.

具体实施时,在对数据流进行路径重置时,会将在一条路径上的数据流的数据包切换到另外一条路径上传输。但因为新路径时延可能小于原路径的时延,可能引起数据流短暂的数据包乱序。针对这种情况,本申请实施例可以采用主动创建数据流的流分片(Flowlet)的方法(该方法具体为:将流切为Flowlet,并使得向量Flowlet的间隔大于路径时延差),或通过改进队列调度机制,使得流切换后的数据包总晚于流切换前的数据包出队,或者通过在目的节点执行数据包重排序的方法来重新使得数据包保序等,以此解决数据包乱序的问题。During specific implementation, when the data flow is re-routed, the data packets of the data flow on one route are switched to another route for transmission. However, because the delay of the new path may be smaller than the delay of the original path, it may cause short-term packet out-of-order in the data flow. In response to this situation, the embodiment of the present application may adopt a method of actively creating a flow shard (Flowlet) of a data flow (specifically, the method is: cutting the flow into Flowlets, and making the interval of the vector Flowlets larger than the path delay difference), or By improving the queue scheduling mechanism, the data packets after flow switching are always dequeued later than the data packets before flow switching, or the data packets are reordered by performing data packet reordering at the destination node, etc., so as to solve the problem of data Packet out-of-order problem.

作为一种可选的实施方式,在本申请实施例中,触发第一网络设备检查已经保存的转发表项的具体实现方式,可以是数据包到达时触发第一网络设备对已经保存的转发表项执行检查过程,也可以是按照预设的时间间隔周期性地触发第一网络设备对已经保存的转发表项执行检查过程,本申请实施例不做具体限制。As an optional implementation manner, in this embodiment of the present application, the specific implementation manner of triggering the first network device to check the saved forwarding table entry may be triggering the first network device to check the saved forwarding table when a data packet arrives The check process for the entry may also be triggered periodically according to a preset time interval by the first network device to perform the check process on the forwarding entry that has been saved, which is not specifically limited in this embodiment of the present application.

下面,以目标数据包为例,对数据包到达触发第一网络设备对已经保存的转发表项执行检查过程进行介绍。Hereinafter, taking the target data packet as an example, the process of triggering the first network device to perform checking on the saved forwarding entry when the data packet arrives will be described.

步骤1、第一网络设备确定第一网络设备保存有第一转发表项时,第一网络设备确定第一传输路径是否满足QoS信息指示的要求传输质量;Step 1. When the first network device determines that the first network device stores the first forwarding entry, the first network device determines whether the first transmission path meets the required transmission quality indicated by the QoS information;

步骤2、第一网络设备确定第一传输路径满足QoS信息指示的要求传输质量时,第一网络设备经由第一传输路径向第二网络设备发送目标数据包;Step 2. When the first network device determines that the first transmission path meets the required transmission quality indicated by the QoS information, the first network device sends the target data packet to the second network device via the first transmission path;

步骤3、第一网络设备确定第一传输路径不满足QoS信息指示的要求传输质量时,第一网络设备根据目标数据流的QoS信息确定第三传输路径,其中第一网络设备和第二网络设备之间的多条传输路径包括该第三传输路径,且第三传输路径满足QoS信息指示的要求传输质量;根据第三传输路径确定目标数据流的第三转发表项,第三转发表项用于指示第一网络设备经由第三传输路径向第二网络设备发送属于目标数据流的数据包;根据第三转发表项向第二网络设备发送目标数据包;Step 3. When the first network device determines that the first transmission path does not meet the required transmission quality indicated by the QoS information, the first network device determines the third transmission path according to the QoS information of the target data stream, wherein the first network device and the second network device The multiple transmission paths between include the third transmission path, and the third transmission path satisfies the required transmission quality indicated by the QoS information; the third forwarding entry of the target data stream is determined according to the third transmission path, and the third forwarding entry uses instructing the first network device to send the data packet belonging to the target data flow to the second network device via the third transmission path; sending the target data packet to the second network device according to the third forwarding entry;

步骤4、第一网络设备保存第三转发表项,删除第一转发表项。Step 4: The first network device saves the third forwarding entry, and deletes the first forwarding entry.

上述实施方式,基于数据包到达第一网络设备触发第一网络设备对该到达的数据包所属的数据流的转发表项执行检查过程,可以更好地保障该数据包在传输过程中的QoS。In the above embodiment, based on the arrival of the data packet at the first network device, the first network device is triggered to perform a check process on the forwarding entry of the data flow to which the arriving data packet belongs, which can better ensure the QoS of the data packet during transmission.

下面,对周期性触发第一网络设备对已经保存的转发表项执行检查过程进行介绍。Below, the process of periodically triggering the first network device to perform checking on the forwarding entry that has been saved will be introduced.

步骤1、第一网络设备按照预设的时间间隔(比如5sec、1min、10min、1h等)周期性地检查已保存的每个转发表项中的路径标识所指示的传输路径的实际传输质量是否满足该转发表项中的流标识所指示的数据流的QoS信息所指示的要求传输质量;Step 1. The first network device periodically checks whether the actual transmission quality of the transmission path indicated by the path identifier in each stored forwarding entry is checked periodically according to a preset time interval (such as 5sec, 1min, 10min, 1h, etc.). meet the required transmission quality indicated by the QoS information of the data flow indicated by the flow identifier in the forwarding entry;

作为一种可选的实施方式,在本申请实施例中,在每一个周期内,可以按照数据流优先级从高到低的顺序依次对已保存的转发表项进行检查,以此保证高优先级数据流的QoS能够更及时地被满足。As an optional implementation manner, in this embodiment of the present application, in each cycle, the stored forwarding entries may be checked in sequence according to the priority of the data stream from high to low, so as to ensure high priority. The QoS of high-level data flow can be satisfied more timely.

步骤2、第一网络设备在确定任一转发表项中的路径标识所指示的传输路径的实际传输质量无法满足该转发表项中的流标识所指示的数据流的QoS信息所指示的要求传输质量时,可参照图10所示的方法步骤对该数据流执行路径重置过程。Step 2. The first network device determines that the actual transmission quality of the transmission path indicated by the path identifier in any forwarding entry cannot meet the transmission requirement indicated by the QoS information of the data flow indicated by the flow identifier in the forwarding entry. When the quality is not high, a path resetting process may be performed on the data stream with reference to the method steps shown in FIG. 10 .

以目标数据流为例,第一网络设备根据目标数据流的QoS信息确定出第四传输路径,其中第四传输路径是第一网络设备和第二网络设备之间的多条传输路径中的一条,且第四传输路径满足QoS信息指示的要求传输质量;第一网络设备根据第四传输路径确定目标数据流的第四转发表项,该第四转发表项用于指示第一网络设备经由第四传输路径向第二网络设备发送属于目标数据流的数据包;第一网络设备保存该第四转发表项,并删除第一转发表项。Taking the target data flow as an example, the first network device determines a fourth transmission path according to the QoS information of the target data flow, where the fourth transmission path is one of multiple transmission paths between the first network device and the second network device , and the fourth transmission path satisfies the required transmission quality indicated by the QoS information; the first network device determines the fourth forwarding entry of the target data stream according to the fourth transmission path, and the fourth forwarding entry is used to instruct the first network device to use the The fourth transmission path sends the data packets belonging to the target data flow to the second network device; the first network device saves the fourth forwarding entry and deletes the first forwarding entry.

上述实施方式,通过周期性触发第一网络设备对已经保存的转发表项执行检查过程,可以更好地保障数据包在传输过程中的QoS。In the above embodiment, by periodically triggering the first network device to perform a check process on the stored forwarding entry, the QoS of the data packet during the transmission process can be better guaranteed.

作为一种可选的实施方式,在本申请实施例中,对数据流执行路径重置过程,第一网络设备可以在发现数据流的QoS需求不能被满足时立即执行,也可以在发现数据流的QoS需求不能被满足时进行记录,然后按照预先配置的策略在预设的时间执行,比如周期性执行,本申请实施例不做具体限制。As an optional implementation manner, in this embodiment of the present application, the path resetting process is performed on the data flow, and the first network device may immediately perform the process when discovering that the QoS requirements of the data flow cannot be satisfied, or may When the QoS requirement cannot be satisfied, the QoS requirement is recorded, and then executed at a preset time according to a preconfigured policy, such as periodic execution, which is not specifically limited in this embodiment of the present application.

为了更好地理解本申请实施例,下面通过一个具体实施例对上述数据流的路径重置的过程进行示例性的说明。请参见图11a至图11d,路径1上有数据流1(简称为“流1”)、数据流2(简称为“流2”),路径2上有数据流3(简称为“流3”)、数据流4(简称为“流4”),路径3上有数据流5(简称为“流5”)。In order to better understand the embodiments of the present application, the following uses a specific embodiment to exemplarily describe the process of resetting the path of the above data flow. Referring to Figures 11a to 11d, there are data flow 1 (referred to as "flow 1" for short) and data flow 2 (referred to as "flow 2" for short) on path 1, and data flow 3 (referred to as "flow 3" for short) on path 2 ), data flow 4 (referred to as "flow 4" for short), and data flow 5 (referred to as "flow 5" for short) on path 3.

某一时刻,由于路径1上优先级为2的数据流1的流量变大,抢占了路径1上优先级1的数据流的带宽,导致路径1上通过优先级1的数据流的数据包的时延变大为30ms,如图11b所示,不再能满足的数据流2的QoS需求。第一网络设备通过周期性地对已经保存的转发表项执行检查过程发现了这一情况,触发对流2的路径重置过程。At a certain moment, because the traffic of data flow 1 with priority 2 on path 1 increases, it preempts the bandwidth of the data flow with priority 1 on path 1, resulting in that the data packets of the data flow with priority 1 on path 1 will be lost. The delay becomes as large as 30ms, as shown in Fig. 11b, the QoS requirements of data flow 2 can no longer be met. The first network device discovers this situation by periodically performing the checking process on the forwarding entries that have been saved, and triggers the path resetting process for flow 2 .

接着,第一网络设备通过对执行流2的路径重置过程,发现路径2满足流2对QoS要求,为属于流2的数据包重新选择路径2进行转发,如图11c所示。Next, the first network device finds that the path 2 meets the QoS requirements of the flow 2 by performing the path resetting process of the flow 2, and reselects the path 2 for the data packets belonging to the flow 2 for forwarding, as shown in FIG. 11c.

但是,由于流2放置到路径2上,可能又抢占了路径2上优先级0的数据流的带宽,导致路径2上通过优先级0的数据流的时延变大为80ms,如图11c所示,不再能满足优先级为0的数据流4(简称“流4”)对QoS的要求。第一网络设备检测到这一情况后,又触发对流4的路径重置过程。However, since stream 2 is placed on path 2, it may preempt the bandwidth of the data stream with priority 0 on path 2, resulting in the delay of the data stream with priority 0 on path 2 becoming 80ms, as shown in Figure 11c It is shown that the QoS requirements of the data flow 4 with priority 0 (referred to as "flow 4") can no longer be met. After detecting this situation, the first network device triggers the process of resetting the path of the flow 4 again.

接着,第一网络设备通过对流4执行路径重置过程,发现路径3满足流4对QoS的要求,为流4重新选择路径3进行转发,如图11d所示。Next, the first network device performs a path resetting process on flow 4, finds that path 3 meets the QoS requirements of flow 4, and reselects path 3 for flow 4 for forwarding, as shown in FIG. 11d.

在本申请实施例中,通过数据包到达触发或者周期性触发第一网络设备检查已经保存的转发表项所示指示的传输路径的实际传输质量是否真正满足该转发表项所对应的数据流的QoS需求,能够及时发现传输路径的实际传输质量不能满足数据流的QoS需求的转发表项,并在检查到该转发表项后,对该转发表项所对应的数据流执行路径重置的过程,进而更好地保障该转发表项所对应的数据流的QoS。In this embodiment of the present application, the first network device is triggered by the arrival of the data packet or periodically triggered to check whether the actual transmission quality of the transmission path indicated by the stored forwarding entry really satisfies the quality of the data stream corresponding to the forwarding entry. QoS requirements, which can timely discover forwarding entries whose actual transmission quality of the transmission path cannot meet the QoS requirements of the data flow, and after checking the forwarding entry, perform the process of resetting the path for the data flow corresponding to the forwarding entry. , so as to better guarantee the QoS of the data flow corresponding to the forwarding entry.

作为一种可选的实施方式,在本申请实施例中,针对任一数据流,如果第一网络设备已确定网络中不存任何一条传输路径的实际传输质量能够满足该数据流的QoS信息所指示的要求传输质量时,第一网络设备则可以执行预设策略对这种情况进行处理。比如,向管理平台发送预警信息、拒绝该数据流的接入等等,以此更好地保证网络中数据传输的QoS。As an optional implementation manner, in this embodiment of the present application, for any data flow, if the first network device has determined that there is no actual transmission quality of any transmission path in the network that can meet the requirements specified by the QoS information of the data flow When the indicated transmission quality is required, the first network device may execute a preset policy to handle this situation. For example, sending early warning information to the management platform, rejecting the access of the data flow, etc., so as to better ensure the QoS of data transmission in the network.

基于同一技术构思,本申请实施例还提供一种数据传输装置1200。请参见图12,该装置1200可以应用于第一网络设备,该装置1200可以包括:Based on the same technical concept, an embodiment of the present application further provides a data transmission apparatus 1200 . Referring to FIG. 12, the apparatus 1200 may be applied to the first network device, and the apparatus 1200 may include:

接收模块1201,用于接收目标数据包,所述目标数据包是从所述第一网络设备发往第二网络设备的数据包;其中,所述第一网络设备经由多条传输路径与所述第二网络设备通信;The receiving module 1201 is configured to receive a target data packet, where the target data packet is a data packet sent from the first network device to the second network device; wherein the first network device communicates with the communication with the second network device;

处理模块1202,用于根据所述目标数据包确定所述目标数据包所属的目标数据流;以及确定所述第一网络设备是否保存有所述目标数据流的第一转发表项;a processing module 1202, configured to determine the target data stream to which the target data packet belongs according to the target data packet; and determine whether the first network device has a first forwarding entry of the target data stream;

其中,所述第一转发表项指示所述第一网络设备经由第一传输路径向所述第二网络设备发送属于所述目标数据流的数据包,所述多条传输路径包括所述第一传输路径;以及在确定所述网络设备未保存有所述第一转发表项时,根据所述目标数据流的服务质量QoS信息确定第二传输路径和根据所述第二传输路径确定所述目标数据流的第二转发表项,所述QoS信息指示属于所述目标数据流的数据包从所述第一网络设备向所述第二网络设备传输过程中的要求传输质量,所述第二传输路径是满足所述QoS信息指示的所述要求传输质量的传输路径,所述多条传输路径包括所述第二传输路径,所述第二转发表项指示所述第一网络设备经由所述第二传输路径向所述第二网络设备发送属于所述目标数据流的数据包。The first forwarding entry instructs the first network device to send the data packets belonging to the target data flow to the second network device via a first transmission path, and the multiple transmission paths include the first transmission path. a transmission path; and when it is determined that the network device does not store the first forwarding entry, determining a second transmission path according to the QoS information of the target data flow and determining the target according to the second transmission path The second forwarding entry of the data flow, the QoS information indicates the required transmission quality during the transmission of the data packets belonging to the target data flow from the first network device to the second network device, and the second transmission A path is a transmission path that satisfies the required transmission quality indicated by the QoS information, the plurality of transmission paths include the second transmission path, and the second forwarding table entry indicates that the first network device passes through the first network device. The second transmission path sends the data packets belonging to the target data flow to the second network device.

发送模块1203,用于根据所述第二转发表项向所述第二网络设备发送所述目标数据包。The sending module 1203 is configured to send the target data packet to the second network device according to the second forwarding entry.

示例性地,在本申请实施例中,所述处理模块1202根据所述目标数据流的QoS信息确定第二传输路径时,具体可以通过确定所述目标数据流对应的目标优先级;确定所述多条传输路径中的每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量;根据所述QoS信息和确定的每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量,从所述多条传输路径中确定出满足所述QoS信息指示的要求传输质量的所述第二传输路径。Exemplarily, in this embodiment of the present application, when the processing module 1202 determines the second transmission path according to the QoS information of the target data flow, it can specifically determine the target priority corresponding to the target data flow; The actual transmission quality of each transmission path in the multiple transmission paths when transmitting the data packets in the data flow of the target priority; The actual transmission quality of the data packets in the data stream, and the second transmission path that satisfies the required transmission quality indicated by the QoS information is determined from the multiple transmission paths.

一种可替换的方式中,在本申请实施例中,所述处理模块1202确定所述多条传输路径中的每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量时,具体可以根据所述每条传输路径的传输质量表项,确定所述每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量;其中,所述每条传输路径的路径质量表项用于指示所述每条传输路径在传输至少一种优先级的数据流中的数据包时分别对应的实际传输质量,所述至少一种优先级包括所述目标优先级。In an alternative manner, in this embodiment of the present application, the processing module 1202 determines the actual value of each transmission path in the multiple transmission paths when transmitting the data packets in the data stream of the target priority. During transmission quality, the actual transmission quality of each transmission path when transmitting the data packets in the data stream of the target priority may be determined according to the transmission quality table entry of each transmission path; wherein, the The path quality entry of each transmission path is used to indicate the actual transmission quality corresponding to each transmission path when transmitting data packets in data streams of at least one priority, where the at least one priority includes the target priority.

基于上述,所述第二传输路径可以是所述处理模块1202根据所述每条传输路径在传输所述目标优先级的数据流中的数据包时的实际传输质量,确定出的、满足所述QoS信息指示的要求传输质量的多条传输路径中实际传输质量最好的传输路径。当然,处理模块1202也可以在多条传输路径中确定实际传输质量次好的传输路径作为第二传输路径。根据多条传输路径分别对应的实际传输质量,来如何选择第二传输路径的选择方式这里不做具体限定,这里只是给出两种示例性的描述,还可以根据其他方式来进行选择。Based on the above, the second transmission path may be determined by the processing module 1202 according to the actual transmission quality of each transmission path when transmitting the data packets in the data stream of the target priority, which satisfies the The transmission path with the best actual transmission quality among the multiple transmission paths requiring transmission quality indicated by the QoS information. Of course, the processing module 1202 may also determine, among the multiple transmission paths, the transmission path with the second best actual transmission quality as the second transmission path. There is no specific limitation on how to select the second transmission path according to the actual transmission qualities corresponding to the multiple transmission paths, but two exemplary descriptions are given here, and other methods may also be used for selection.

进一步的,所述处理模块1202在根据所述第二传输路径确定所述目标数据流的第二转发表项之后,还可以选择保存所述第二转发表项。Further, after determining the second forwarding table entry of the target data stream according to the second transmission path, the processing module 1202 may also choose to save the second forwarding table entry.

另外,如果所述处理模块1202确定所述网络设备保存有所述第一转发表项,则所述处理模块1202还可以用于确定所述第一传输路径是否满足所述QoS信息指示的所述要求传输质量;In addition, if the processing module 1202 determines that the network device has the first forwarding entry, the processing module 1202 may be further configured to determine whether the first transmission path satisfies the requirements indicated by the QoS information request transmission quality;

如果所述第一传输路径满足所述QoS信息指示的所述要求传输质量,则所述发送模块1203可以经由所述第一传输路径向所述第二网络设备发送所述目标数据包;If the first transmission path satisfies the required transmission quality indicated by the QoS information, the sending module 1203 may send the target data packet to the second network device via the first transmission path;

如果所述第一传输路径不满足所述QoS信息指示的所述要求传输质量,则所述处理模块1202还用于:根据所述目标数据流的QoS信息确定第三传输路径,所述多条传输路径包括所述第三传输路径,所述第三传输路径是满足所述QoS信息指示的所述要求传输质量的传输路径;根据所述第三传输路径确定所述目标数据流的第三转发表项,所述第三转发表项用于指示所述网络设备经由所述第三传输路径向所述第二网络设备发送属于所述目标数据流的数据包。进而,所述发送模块1203可以根据所述第三转发表项向所述第二网络设备发送所述目标数据包。If the first transmission path does not meet the required transmission quality indicated by the QoS information, the processing module 1202 is further configured to: determine a third transmission path according to the QoS information of the target data flow, the multiple transmission paths The transmission path includes the third transmission path, and the third transmission path is a transmission path that satisfies the required transmission quality indicated by the QoS information; the third transmission path of the target data stream is determined according to the third transmission path. an entry, where the third forwarding entry is used to instruct the network device to send the data packet belonging to the target data flow to the second network device via the third transmission path. Further, the sending module 1203 may send the target data packet to the second network device according to the third forwarding entry.

进一步的,所述处理模块1202还可以在根据所述第三传输路径确定所述目标数据流的第三转发表项之后,保存所述第三转发表项,删除所述第一转发表项。Further, the processing module 1202 may further store the third forwarding entry and delete the first forwarding entry after determining the third forwarding entry of the target data stream according to the third transmission path.

另外,所述处理模块1202还可以用于:周期性地检查所述第一传输路径是否满足所述QoS信息指示的所述要求传输质量;在确定所述第一传输路径不满足所述QoS信息指示的所述要求传输质量时,根据所述目标数据流的QoS信息确定第四传输路径,其中,所述多条传输路径包括所述第四传输路径,所述第四传输路径是满足所述QoS信息指示的所述要求传输质量的传输路径;根据所述第四传输路径确定所述目标数据流的第四转发表项,其中,所述第四转发表项用于指示所述网络设备经由所述第四传输路径向所述第二网络设备发送属于所述目标数据流的数据包;保存所述第四转发表项,并删除所述第一转发表项。In addition, the processing module 1202 may be further configured to: periodically check whether the first transmission path satisfies the required transmission quality indicated by the QoS information; when determining that the first transmission path does not satisfy the QoS information When the required transmission quality is indicated, a fourth transmission path is determined according to the QoS information of the target data stream, wherein the multiple transmission paths include the fourth transmission path, and the fourth transmission path is a the transmission path requiring transmission quality indicated by the QoS information; determining a fourth forwarding entry of the target data flow according to the fourth transmission path, wherein the fourth forwarding entry is used to instruct the network device to use the The fourth transmission path sends the data packets belonging to the target data flow to the second network device; saves the fourth forwarding entry, and deletes the first forwarding entry.

示例性地,在本申请实施例中,所述QoS信息可以包括带宽、时延、吞吐率以及丢包率中的至少一项。Exemplarily, in this embodiment of the present application, the QoS information may include at least one of bandwidth, delay, throughput rate, and packet loss rate.

示例性地,在本申请实施例中,所述第一转发表可以项包括所述目标数据流的流标识以及所述第一传输路径的路径标识。当然,所述第一转发表项还可以包括所述目标数据流的优先级信息。Exemplarily, in this embodiment of the present application, the first forwarding table may include a flow identifier of the target data stream and a path identifier of the first transmission path. Certainly, the first forwarding entry may also include priority information of the target data stream.

本申请所述方法和装置基于同一技术构思,由于方法及装置解决问题的原理相似,以上各模块所执行操作的具体实现方式可以参照本申请实施例上述数据传输方法中对应的步骤,因此装置与方法的实施可以相互参见,重复之处不再赘述。The method and device described in the present application are based on the same technical concept. Since the principles of the method and device for solving problems are similar, the specific implementation of the operations performed by the above modules can refer to the corresponding steps in the above-mentioned data transmission method in the embodiment of the present application. For the implementation of the method, reference may be made to each other, and repeated descriptions will not be repeated.

基于同一技术构思,本申请实施例还提供一种数据传输装置1300。请参见图13,该装置1300包括至少一个处理器1301,以及与所述至少一个处理器1301通信连接的存储器1302、通信接口1303;其中,所述存储器1302存储有可被所述至少一个处理器1301执行的指令,所述至少一个处理器1301通过执行所述存储器1302存储的指令,利用所述通信接口1303执行本申请实施例所述的数据传输方法。Based on the same technical concept, an embodiment of the present application further provides a data transmission apparatus 1300 . Referring to FIG. 13 , the apparatus 1300 includes at least one processor 1301, a memory 1302 and a communication interface 1303 communicatively connected to the at least one processor 1301; wherein, the memory 1302 stores data that can be used by the at least one processor 1301 executes the instruction, the at least one processor 1301 executes the data transmission method described in the embodiment of the present application by using the communication interface 1303 by executing the instruction stored in the memory 1302 .

作为一种可选的实施方式,在本申请实施例中,处理器1301具体可以包括中央处理器(central processing unit,CPU)、特定应用集成电路(application specificintegrated circuit,ASIC),可以是一个或多个用于控制程序执行的集成电路,可以是使用现场可编程门阵列(field programmable gate array,FPGA)开发的硬件电路,可以是基带处理器。As an optional implementation manner, in this embodiment of the present application, the processor 1301 may specifically include a central processing unit (central processing unit, CPU), an application specific integrated circuit (application specific integrated circuit, ASIC), and may be one or more An integrated circuit for controlling program execution may be a hardware circuit developed using a field programmable gate array (FPGA), or a baseband processor.

作为一种可选的实施方式,在本申请实施例中,处理器1301可以包括至少一个处理核心。As an optional implementation manner, in this embodiment of the present application, the processor 1301 may include at least one processing core.

作为一种可选的实施方式,在本申请实施例中,存储器1302可以包括只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)和磁盘存储器。存储器1302用于存储处理器1301运行时所需的数据。As an optional implementation manner, in this embodiment of the present application, the memory 1302 may include a read only memory (read only memory, ROM), a random access memory (random access memory, RAM), and a disk memory. The memory 1302 is used to store data required for the processor 1301 to operate.

本申请所述方法和装置基于同一技术构思,由于方法及装置解决问题的原理相似,以上至少一个处理器1301所执行操作的具体实现方式可以参照本申请实施例上述数据传输方法中对应的步骤,因此装置与方法的实施可以相互参见,重复之处不再赘述。The method and apparatus described in this application are based on the same technical concept. Since the principles of the method and apparatus for solving problems are similar, the specific implementation of the operations performed by the at least one processor 1301 above may refer to the corresponding steps in the above-mentioned data transmission method in the embodiment of this application. Therefore, the implementation of the apparatus and the method can be referred to each other, and repeated descriptions will not be repeated.

本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令在被计算机执行时,使所述计算机执行本申请实施例所述的数据传输方法。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program includes program instructions, and the program instructions, when executed by a computer, cause the computer to execute the present invention. The data transmission methods described in the application embodiments are provided.

本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, from a website site, computer, server or data center via Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital versatile discs (DVDs)), or semiconductor media (eg, solid state disks (SSDs) ))Wait.

显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (22)

1. A data transmission method applied to a network including a first network device and a second network device, the first network device communicating with the second network device via a plurality of transmission paths, the method comprising:
the first network device receiving a target data packet, the target data packet being a data packet sent from the first network device to the second network device;
the first network equipment determines a target data stream to which the target data packet belongs according to the target data packet;
the first network device determines whether a first forwarding table entry of the target data flow is stored in the first network device, where the first forwarding table entry indicates that the first network device sends a packet belonging to the target data flow to the second network device via a first transmission path, and the plurality of transmission paths include the first transmission path;
when the first network device determines that the first network device does not store the first forwarding table entry, the first network device determines a second transmission path according to the QoS information of the target data flow and determines a second forwarding table entry of the target data flow according to the second transmission path, the QoS information indicates a required transmission quality in a transmission process of a data packet belonging to the target data flow from the first network device to the second network device, the second transmission path is a transmission path that satisfies the required transmission quality indicated by the QoS information, the plurality of transmission paths include the second transmission path, and the second forwarding table entry instructs the first network device to send a data packet belonging to the target data flow to the second network device via the second transmission path;
and the first network equipment sends the target data packet to the second network equipment according to the second forwarding table entry.
2. The method of claim 1, wherein the first network device determining a second transmission path based on the QoS information for the target data flow comprises:
the first network equipment determines a target priority corresponding to the target data stream;
the first network device determines the actual transmission quality of each transmission path in the plurality of transmission paths when transmitting the data packets in the data stream of the target priority;
and the first network equipment determines the second transmission path which meets the required transmission quality indicated by the QoS information from the plurality of transmission paths according to the QoS information and the determined actual transmission quality of each transmission path when the data packet in the data stream of the target priority is transmitted.
3. The method of claim 2, wherein the first network device determining an actual transmission quality of each of the plurality of transmission paths in transmitting the data packets in the data flow of the target priority comprises:
the first network equipment determines the actual transmission quality of each transmission path when transmitting the data packet in the data stream of the target priority according to the transmission quality table entry of each transmission path; the path quality table entry of each transmission path is used to indicate the actual transmission quality respectively corresponding to each transmission path when each transmission path transmits the data packet in the data stream of at least one priority, where the at least one priority includes the target priority.
4. The method according to claim 2, wherein the second transmission path is a transmission path having the best actual transmission quality among the plurality of transmission paths determined by the first network device and satisfying the required transmission quality indicated by the QoS information.
5. The method of any of claims 1-4, wherein after the first network device determines a second forwarding entry for the target data flow according to the second transmission path, the method further comprises:
and the first network equipment saves the second forwarding table entry.
6. The method of any one of claims 1-4, further comprising:
when the first network device determines that the first network device stores the first forwarding table entry, the first network device determines whether the first transmission path meets the required transmission quality indicated by the QoS information;
when the first network device determines that the first transmission path meets the required transmission quality indicated by the QoS information, the first network device sends the target data packet to the second network device via the first transmission path;
when the first network device determines that the first transmission path does not meet the required transmission quality indicated by the QoS information, the first network device determines a third transmission path according to QoS information of the target data stream, where the plurality of transmission paths include the third transmission path, and the third transmission path is a transmission path that meets the required transmission quality indicated by the QoS information;
determining a third forwarding table entry of the target data flow according to the third transmission path, where the third forwarding table entry is used to instruct the first network device to send a data packet belonging to the target data flow to the second network device via the third transmission path;
and sending the target data packet to the second network equipment according to the third forwarding table entry.
7. The method of claim 6, wherein after the first network device determines a third forwarding entry for the target data flow according to the third transmission path, the method further comprises:
and the first network equipment saves the third forwarding table entry and deletes the first forwarding table entry.
8. The method of claim 6, wherein the method further comprises:
the first network device periodically checking whether the first transmission path satisfies the required transmission quality indicated by the QoS information;
when the first network device determines that the first transmission path does not meet the required transmission quality indicated by the QoS information, the first network device determines a fourth transmission path according to QoS information of the target data stream, where the plurality of transmission paths include the fourth transmission path, and the fourth transmission path is a transmission path that meets the required transmission quality indicated by the QoS information;
the first network device determines a fourth forwarding table entry of the target data flow according to the fourth transmission path, where the fourth forwarding table entry is used to instruct the first network device to send a data packet belonging to the target data flow to the second network device via the fourth transmission path;
and the first network equipment saves the fourth forwarding table entry and deletes the first forwarding table entry.
9. The method of any of claims 1-8, wherein the QoS information comprises at least one of bandwidth, latency, throughput, and packet loss rate.
10. The method of any of claims 1-8, wherein the first forwarding entry includes a flow identification for the target data flow and a path identification for the first transmission path.
11. The method of claim 10, wherein the first forwarding entry further comprises priority information for the target data flow.
12. A data transmission apparatus, applied to a first network device, comprising:
a receiving module, configured to receive a target data packet, where the target data packet is a data packet sent from the first network device to a second network device; wherein the first network device communicates with the second network device via a plurality of transmission paths;
the processing module is used for determining a target data stream to which the target data packet belongs according to the target data packet; determining whether a first forwarding table entry of the target data flow is stored in the first network device, wherein the first forwarding table entry indicates that the first network device sends a data packet belonging to the target data flow to the second network device via a first transmission path, and the plurality of transmission paths include the first transmission path; when it is determined that the network device does not store the first forwarding table, determining a second transmission path according to quality of service (QoS) information of the target data flow and determining a second forwarding table of the target data flow according to the second transmission path, where the QoS information indicates a required transmission quality in a process of transmitting a data packet belonging to the target data flow from the first network device to the second network device, the second transmission path is a transmission path that satisfies the required transmission quality indicated by the QoS information, the plurality of transmission paths include the second transmission path, and the second forwarding table indicates that the first network device sends the data packet belonging to the target data flow to the second network device via the second transmission path;
and a sending module, configured to send the target data packet to the second network device according to the second forwarding table entry.
13. The apparatus of claim 12, wherein the processing module, when determining the second transmission path according to the QoS information of the target data flow, is specifically configured to:
determining a target priority corresponding to the target data stream;
determining an actual transmission quality of each transmission path in the plurality of transmission paths when transmitting the data packets in the data stream of the target priority;
and according to the QoS information and the determined actual transmission quality of each transmission path in the transmission of the data packet in the data stream of the target priority, determining the second transmission path which meets the required transmission quality indicated by the QoS information from the plurality of transmission paths.
14. The apparatus of claim 13, wherein the processing module, when determining the actual transmission quality of each of the plurality of transmission paths in transmitting the data packets in the data stream of the target priority, is specifically configured to:
determining the actual transmission quality of each transmission path when transmitting the data packet in the data stream of the target priority according to the transmission quality table entry of each transmission path; the path quality table entry of each transmission path is used to indicate the actual transmission quality respectively corresponding to each transmission path when each transmission path transmits the data packet in the data stream of at least one priority, where the at least one priority includes the target priority.
15. The apparatus of claim 13, wherein the second transmission path is a transmission path with the best actual transmission quality among the plurality of transmission paths determined by the processing module to satisfy the required transmission quality indicated by the QoS information.
16. The apparatus of any of claims 12-15, wherein the processing module is further to:
and after a second forwarding table entry of the target data stream is determined according to the second transmission path, saving the second forwarding table entry.
17. The apparatus of any of claims 12-15, wherein the processing module is further to:
when determining that the first forwarding table entry is saved in the network device, determining whether the first transmission path meets the required transmission quality indicated by the QoS information;
the sending module is further configured to: when the processing module determines that the first transmission path meets the required transmission quality indicated by the QoS information, sending the target data packet to the second network device via the first transmission path;
the processing module is further configured to: determining a third transmission path according to the QoS information of the target data stream when it is determined that the first transmission path does not satisfy the required transmission quality indicated by the QoS information, the plurality of transmission paths including the third transmission path, the third transmission path being a transmission path that satisfies the required transmission quality indicated by the QoS information; determining a third forwarding table entry of the target data flow according to the third transmission path, where the third forwarding table entry is used to instruct the network device to send a data packet belonging to the target data flow to the second network device via the third transmission path;
the sending module is further configured to: and sending the target data packet to the second network equipment according to the third forwarding table entry.
18. The apparatus of claim 17, wherein the processing module is further to:
after determining a third forwarding table entry of the target data stream according to the third transmission path, saving the third forwarding table entry, and deleting the first forwarding table entry.
19. The apparatus of claim 17, wherein the processing module is further to:
periodically checking whether the first transmission path satisfies the required transmission quality indicated by the QoS information;
determining a fourth transmission path according to the QoS information of the target data stream when the first transmission path is determined not to meet the required transmission quality indicated by the QoS information, wherein the plurality of transmission paths include the fourth transmission path, and the fourth transmission path is a transmission path meeting the required transmission quality indicated by the QoS information;
determining a fourth forwarding table entry of the target data flow according to the fourth transmission path, where the fourth forwarding table entry is used to instruct the network device to send a data packet belonging to the target data flow to the second network device via the fourth transmission path;
and saving the fourth forwarding table entry and deleting the first forwarding table entry.
20. The apparatus of any of claims 12-19, wherein the QoS information comprises at least one of bandwidth, latency, throughput, and packet loss rate.
21. The apparatus of any of claims 12-19, wherein the first forwarding table entry comprises a flow identification for the target data flow and a path identification for the first transmission path.
22. The apparatus of claim 21, wherein the first forwarding entry further comprises priority information for the target data flow.
CN201910230996.8A 2019-03-26 2019-03-26 Data transmission method and device Active CN111756557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910230996.8A CN111756557B (en) 2019-03-26 2019-03-26 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910230996.8A CN111756557B (en) 2019-03-26 2019-03-26 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN111756557A true CN111756557A (en) 2020-10-09
CN111756557B CN111756557B (en) 2023-05-23

Family

ID=72671071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910230996.8A Active CN111756557B (en) 2019-03-26 2019-03-26 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN111756557B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553763A (en) * 2020-11-10 2022-05-27 华为技术有限公司 Method, device and system for acquiring path associated information
CN114666265A (en) * 2022-03-28 2022-06-24 阿里巴巴(中国)有限公司 Data transmission method, device, computing equipment and medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798364A (en) * 2004-12-27 2006-07-05 华为技术有限公司 Method for forwarding traffic flow in IP load-carrying network
US20080025218A1 (en) * 2004-08-05 2008-01-31 Enhui Liu Method, Apparatus, Edge Router and System for Providing Qos Guarantee
CN102571613A (en) * 2012-03-09 2012-07-11 华为技术有限公司 Method and network device for message forwarding
WO2012106925A1 (en) * 2011-07-25 2012-08-16 华为技术有限公司 Method, apparatus and system for locating faults in ip network
CN103746915A (en) * 2014-01-14 2014-04-23 重庆金美通信有限责任公司 Routing selection method based on differentiated service
CN104322023A (en) * 2013-05-24 2015-01-28 华为技术有限公司 Stream forwarding method, device and system
WO2015074586A1 (en) * 2013-11-25 2015-05-28 华为技术有限公司 Service quality control method, apparatus and system
CN106452958A (en) * 2016-09-30 2017-02-22 中国联合网络通信集团有限公司 Flow control method and system, and centralized controller
CN106656847A (en) * 2017-03-10 2017-05-10 重庆邮电大学 Software defined network (SDN) load balancing method with highest network utility
CN107786448A (en) * 2016-08-30 2018-03-09 华为技术有限公司 The method and apparatus for establishing the forward-path of Business Stream
CN108111420A (en) * 2017-12-14 2018-06-01 迈普通信技术股份有限公司 A kind of flow table item management method, device, electronic equipment and storage medium
CN109120525A (en) * 2017-06-26 2019-01-01 中国电信股份有限公司 For the determining method of path of SDN, device, SDN controller and network

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080025218A1 (en) * 2004-08-05 2008-01-31 Enhui Liu Method, Apparatus, Edge Router and System for Providing Qos Guarantee
CN1798364A (en) * 2004-12-27 2006-07-05 华为技术有限公司 Method for forwarding traffic flow in IP load-carrying network
WO2012106925A1 (en) * 2011-07-25 2012-08-16 华为技术有限公司 Method, apparatus and system for locating faults in ip network
CN102571613A (en) * 2012-03-09 2012-07-11 华为技术有限公司 Method and network device for message forwarding
CN104322023A (en) * 2013-05-24 2015-01-28 华为技术有限公司 Stream forwarding method, device and system
WO2015074586A1 (en) * 2013-11-25 2015-05-28 华为技术有限公司 Service quality control method, apparatus and system
CN103746915A (en) * 2014-01-14 2014-04-23 重庆金美通信有限责任公司 Routing selection method based on differentiated service
CN107786448A (en) * 2016-08-30 2018-03-09 华为技术有限公司 The method and apparatus for establishing the forward-path of Business Stream
CN106452958A (en) * 2016-09-30 2017-02-22 中国联合网络通信集团有限公司 Flow control method and system, and centralized controller
CN106656847A (en) * 2017-03-10 2017-05-10 重庆邮电大学 Software defined network (SDN) load balancing method with highest network utility
CN109120525A (en) * 2017-06-26 2019-01-01 中国电信股份有限公司 For the determining method of path of SDN, device, SDN controller and network
CN108111420A (en) * 2017-12-14 2018-06-01 迈普通信技术股份有限公司 A kind of flow table item management method, device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553763A (en) * 2020-11-10 2022-05-27 华为技术有限公司 Method, device and system for acquiring path associated information
CN114666265A (en) * 2022-03-28 2022-06-24 阿里巴巴(中国)有限公司 Data transmission method, device, computing equipment and medium
CN114666265B (en) * 2022-03-28 2024-04-02 阿里巴巴(中国)有限公司 Data transmission method, device, computing equipment and medium

Also Published As

Publication number Publication date
CN111756557B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US12063592B2 (en) User plane system selection based on latency
CN106716955B (en) System and method for the transfer management in software defined network
WO2022048505A1 (en) Multi-stream associated transmission method, apparatus, and system
TWI359588B (en) Non-signalled terminal blocking
Liu et al. Delay-optimized video traffic routing in software-defined interdatacenter networks
CN109155762B (en) Method and device for data transmission
CN103988543B (en) Control device, network system in WLAN and method for processing business
US9906985B2 (en) Method and device for selecting uplink data
US9787595B2 (en) Evolved node-B and mobility management entity and user equipment and methods for supporting attended and unattended services
EP4152703A1 (en) Network control method and device
US10362632B2 (en) Architecture for radio access network and evolved packet core
US20220086680A1 (en) Data packet prioritization for downlink transmission at network level
CN103329493B (en) For the method and apparatus avoiding bandwidth of memory to utilize during packet transaction
US20220086681A1 (en) Data packet prioritization for downlink transmission at sender level
WO2021147354A1 (en) Service level configuration method and device
CN110138685A (en) A kind of communication means and device
US11218910B2 (en) First node and a second node and methods of operating the same
US11647419B2 (en) Adjusting window size based on quality of experience
CN111756557B (en) Data transmission method and device
JP7621016B2 (en) Terminal and communication method
WO2023226716A1 (en) Packet transmission method, forwarding node, transmission end and storage medium
CN106131914B (en) Service request processing method and processing device
JP2016046669A (en) Packet processing apparatus, program and method
Schoenen et al. QoS and flow management for future multi-hop mobile radio networks
US20240049043A1 (en) Prioritizing data packets in wireless communication network

Legal Events

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