+

CN113055293B - Routing method and device in software-defined wide area network, and communication system - Google Patents

Routing method and device in software-defined wide area network, and communication system Download PDF

Info

Publication number
CN113055293B
CN113055293B CN201911380368.4A CN201911380368A CN113055293B CN 113055293 B CN113055293 B CN 113055293B CN 201911380368 A CN201911380368 A CN 201911380368A CN 113055293 B CN113055293 B CN 113055293B
Authority
CN
China
Prior art keywords
tunnel
service
path
path constraint
constraint 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.)
Active
Application number
CN201911380368.4A
Other languages
Chinese (zh)
Other versions
CN113055293A (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 CN201911380368.4A priority Critical patent/CN113055293B/en
Publication of CN113055293A publication Critical patent/CN113055293A/en
Application granted granted Critical
Publication of CN113055293B publication Critical patent/CN113055293B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/121Shortest path evaluation by minimising delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/124Shortest path evaluation using a combination of metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/125Shortest path evaluation based on throughput or bandwidth

Landscapes

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

Abstract

公开了一种软件定义广域网中的选路方法及装置、通信系统、计算机存储介质,属于通信技术领域。第一设备通过第一隧道接收第二设备发送的第一数据报文,第一设备是第一隧道的出口设备,第二设备是第一隧道的入口设备。第一设备根据第一数据报文,确定第一业务对应的第一路径约束信息,该第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。第一设备确定自身不满足第一路径约束条件,第一设备向第二设备发送第一反馈报文,第一反馈报文中携带第一指示信息,第一指示信息用于向第二设备指示第一设备不能作为第一路径上用于传输第一业务的节点。本申请提高了网络设备获取报文传输路径的实时性。

Figure 201911380368

Disclosed are a routing method and device in a software-defined wide area network, a communication system, and a computer storage medium, belonging to the technical field of communication. The first device receives the first data packet sent by the second device through the first tunnel, the first device is an egress device of the first tunnel, and the second device is an ingress device of the first tunnel. The first device determines first path constraint information corresponding to the first service according to the first data packet, where the first path constraint information is used to determine a first path constraint condition satisfied by the first path transmitting the first service. The first device determines that it does not satisfy the first path constraint condition, the first device sends a first feedback message to the second device, the first feedback message carries first indication information, and the first indication information is used to indicate to the second device The first device cannot be used as a node for transmitting the first service on the first path. The present application improves the real-time performance of obtaining the message transmission path by the network equipment.

Figure 201911380368

Description

软件定义广域网中的选路方法及装置、通信系统Routing method and device in software-defined wide area network, and communication system

技术领域technical field

本申请涉及通信技术领域,特别涉及一种软件定义广域网中的选路方法及装置、通信系统。The present application relates to the field of communication technologies, and in particular to a method and device for routing in a software-defined wide area network, and a communication system.

背景技术Background technique

目前通信网络通常由网络控制设备管理,网络控制设备可以确定通信网络中的报文传输路径。网络控制设备与通信网络中的各个网络设备分别连接。各个网络设备分别获取其出端口所在隧道的状态信息,并将隧道的状态信息发送给网络控制设备。网络控制设备根据网络拓扑信息以及接收到的隧道的状态信息确定通信网络中的报文传输路径。之后网络控制设备将确定的报文传输路径发送给各个网络设备,使得各个网络设备采用网络控制设备确定的报文传输路径传输报文。其中,隧道的状态信息包括隧道带宽和隧道的传输时延等信息。At present, the communication network is usually managed by a network control device, and the network control device can determine the message transmission path in the communication network. The network control device is connected to each network device in the communication network respectively. Each network device obtains status information of the tunnel where its egress port is located, and sends the status information of the tunnel to the network control device. The network control device determines the message transmission path in the communication network according to the network topology information and the received tunnel state information. Afterwards, the network control device sends the determined packet transmission path to each network device, so that each network device transmits the packet using the packet transmission path determined by the network control device. The status information of the tunnel includes information such as tunnel bandwidth and tunnel transmission delay.

但是,通过网络控制设备确定通信网络中的报文传输路径,网络设备需要向网络控制设备发送隧道的状态信息,网络控制设备需要向各个网络设备发送确定的报文传输路径,网络控制设备与各个网络设备之间的交互过程比较复杂,使得网络设备从获取隧道的状态信息到获取报文传输路径整个过程耗时较长,导致网络设备获取报文传输路径的实时性较差。However, if the network control device determines the message transmission path in the communication network, the network device needs to send tunnel status information to the network control device, and the network control device needs to send the determined message transmission path to each network device. The network control device communicates with each The interaction process between network devices is relatively complicated, which makes it time-consuming for the network device to obtain the tunnel status information and obtain the packet transmission path, resulting in poor real-time performance of the network device to obtain the packet transmission path.

发明内容Contents of the invention

本申请提供了一种软件定义广域网中的选路方法及装置、通信系统、计算机存储介质,可以解决网络设备获取报文传输路径的实时性较差的问题。The present application provides a routing method and device, a communication system, and a computer storage medium in a software-defined wide area network, which can solve the problem of poor real-time performance of network equipment acquiring message transmission paths.

第一方面,提供了一种SD-WAN中的选路方法,该方法包括:第一设备通过第一隧道接收第二设备发送的第一数据报文,第一设备是第一隧道的出口设备,第二设备是第一隧道的入口设备。第一设备根据第一数据报文,确定第一业务对应的第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。第一设备确定自身不满足第一路径约束条件,第一设备向第二设备发送第一反馈报文,第一反馈报文中携带第一指示信息,第一指示信息用于向第二设备指示第一设备不能作为第一路径上用于传输第一业务的节点。In the first aspect, a method for route selection in SD-WAN is provided, the method includes: the first device receives the first data message sent by the second device through the first tunnel, and the first device is the egress device of the first tunnel , the second device is the ingress device of the first tunnel. The first device determines first path constraint information corresponding to the first service according to the first data packet, where the first path constraint information is used to determine a first path constraint condition satisfied by the first path transmitting the first service. The first device determines that it does not satisfy the first path constraint condition, the first device sends a first feedback message to the second device, the first feedback message carries first indication information, and the first indication information is used to indicate to the second device The first device cannot be used as a node for transmitting the first service on the first path.

本申请中,第一设备根据接收到的第一数据报文确定第一业务对应的第一路径约束信息,之后第一设备在根据第一路径约束信息确定自身不满足第一路径条件时,能够向第二设备发送第一反馈报文,以向第二设备指示第一设备不能作为第一路径上用于传输第一业务的节点。第一设备和第二设备之间通过交互即能实现对第一路径的选择,第一设备和第二设备均无需与控制设备进行交互,在数据面实现了动态选路从而提高了选路效率。同时也减少了第一设备和第二设备与控制设备之间的数据传输量,降低了网络开销。In this application, the first device determines the first path constraint information corresponding to the first service according to the received first data message, and then when the first device determines that it does not meet the first path condition according to the first path constraint information, it can Sending the first feedback message to the second device to indicate to the second device that the first device cannot be used as a node for transmitting the first service on the first path. The selection of the first path can be realized through interaction between the first device and the second device, and neither the first device nor the second device needs to interact with the control device, and dynamic route selection is realized on the data plane to improve route selection efficiency . At the same time, the amount of data transmission between the first device and the second device and the control device is also reduced, reducing network overhead.

其中,第一设备确定自身不满足第一路径约束信息对应的第一路径约束条件,也即是,第一设备确定自身不能够作为第一路径上用于传输第一业务的节点。Wherein, the first device determines that it does not satisfy the first path constraint condition corresponding to the first path constraint information, that is, the first device determines that it cannot be used as a node for transmitting the first service on the first path.

可选地,第一路径约束信息包括以下信息中的一个或多个:时延,抖动,带宽,丢包率,误码率和带宽占用率。Optionally, the first path constraint information includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, and bandwidth occupancy rate.

第一种情况,第一设备是SD-WAN中用于传输第一业务的业务报文的中间设备:In the first case, the first device is an intermediate device used in SD-WAN to transmit service packets of the first service:

当该第一路径约束信息包括带宽,时延,抖动,丢包率,误码率和带宽占用率时,该第一路径约束条件包括:以第一设备为入口设备的隧道中存在满足第一路径约束信息包括的带宽的目标隧道,且该目标隧道路由可达SD-WAN中用于传输第一业务的业务报文的出口设备;第一数据报文在第一隧道上的实际传输时延,实际抖动,实际丢包率,实际误码率和实际带宽占用率分别满足第一路径约束信息包括的时延,抖动,丢包率,误码率和带宽占用率。当以第一设备为入口设备的隧道中不存在满足第一路径约束信息包括的带宽的目标隧道,第一数据报文在第一隧道上的实际传输时延大于第一路径约束信息包括的时延,在第一隧道上的实际抖动超出第一路径约束信息包括的抖动范围,在第一隧道上的实际丢包率高于第一路径约束信息包括的丢包率,在第一隧道上的实际误码率大于第一路径约束信息包括的误码率,和/或,其它业务在第一隧道上的实际带宽占用率大于第一路径约束信息包括的带宽占用率时,第一设备确定自身不满足第一路径约束信息对应的路径约束条件。When the first path constraint information includes bandwidth, delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate, the first path constraint condition includes: there is a tunnel with the first device as the ingress device that satisfies the first The bandwidth target tunnel included in the path constraint information, and the target tunnel route can reach the egress device used to transmit the service message of the first service in SD-WAN; the actual transmission delay of the first data message on the first tunnel , the actual jitter, the actual packet loss rate, the actual bit error rate, and the actual bandwidth occupancy rate respectively satisfy the delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate included in the first path constraint information. When there is no target tunnel that satisfies the bandwidth included in the first path constraint information in the tunnel with the first device as the ingress device, and the actual transmission delay of the first data packet on the first tunnel is greater than that included in the first path constraint information delay, the actual jitter on the first tunnel exceeds the jitter range included in the first path constraint information, the actual packet loss rate on the first tunnel is higher than the packet loss rate included in the first path constraint information, and the packet loss rate on the first tunnel When the actual bit error rate is greater than the bit error rate included in the first path constraint information, and/or, the actual bandwidth occupancy rate of other services on the first tunnel is greater than the bandwidth occupancy rate included in the first path constraint information, the first device determines that its own The path constraint condition corresponding to the first path constraint information is not satisfied.

第二种情况,第一设备是SD-WAN中用于传输第一业务的业务报文的出口设备:In the second case, the first device is the egress device used to transmit the service packets of the first service in SD-WAN:

当第一路径约束信息包括时延,抖动,丢包率,误码率和带宽占用率时,该第一路径约束信息对应的第一路径约束条件包括:第一数据报文在第一隧道上的实际传输时延,实际抖动,实际丢包率,实际误码率和实际带宽占用率分别满足第一路径约束信息包括的时延,抖动,丢包率,误码率和带宽占用率。当第一数据报文在第一隧道上的实际传输时延大于第一路径约束信息包括的时延,在第一隧道上的实际抖动超出第一路径约束信息包括的抖动范围,在第一隧道上的实际丢包率高于第一路径约束信息包括的丢包率,在第一隧道上的实际误码率大于第一路径约束信息包括的误码率,和/或,其它业务在第一隧道上的实际带宽占用率大于第一路径约束信息包括的带宽占用率时,第一设备确定自身不满足第一路径约束信息对应的第一路径约束条件。When the first path constraint information includes delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate, the first path constraint condition corresponding to the first path constraint information includes: the first data packet is on the first tunnel The actual transmission delay, actual jitter, actual packet loss rate, actual bit error rate, and actual bandwidth occupancy rate satisfy the delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate included in the first path constraint information. When the actual transmission delay of the first data message on the first tunnel is greater than the delay included in the first path constraint information, the actual jitter on the first tunnel exceeds the jitter range included in the first path constraint information, and the first tunnel The actual packet loss rate on the tunnel is higher than the packet loss rate included in the first path constraint information, the actual bit error rate on the first tunnel is greater than the bit error rate included in the first path constraint information, and/or, other services are in the first When the actual bandwidth occupancy rate on the tunnel is greater than the bandwidth occupancy rate included in the first path constraint information, the first device determines that it does not satisfy the first path constraint condition corresponding to the first path constraint information.

当该第一路径约束信息仅包括带宽时,第一设备可以默认自身满足第一路径约束条件。则当第一设备接收到第一数据报文时,确定完成对第一业务的选路,得到SD-WAN中传输第一业务的第一路径。When the first path constraint information only includes bandwidth, the first device may default that it satisfies the first path constraint condition. Then, when the first device receives the first data packet, it determines that the route selection for the first service is completed, and obtains the first path for transmitting the first service in the SD-WAN.

可选地,该方法还可以包括:第一设备通过第二隧道接收第三设备发送的第二数据报文,第一设备是第二隧道的出口设备,第三设备是第二隧道的入口设备。第一设备根据第二数据报文,确定第二业务对应的第二路径约束信息,第二路径约束信息用于确定传输第二业务的第二路径所满足的第二路径约束条件。第一设备确定自身满足第二路径约束条件,第一设备通过第三隧道向第四设备转发更新的第二数据报文,第一设备是第三隧道的入口设备,第四设备是第三隧道的出口设备。Optionally, the method may further include: the first device receives the second data packet sent by the third device through the second tunnel, the first device is an egress device of the second tunnel, and the third device is an ingress device of the second tunnel . The first device determines second path constraint information corresponding to the second service according to the second data packet, where the second path constraint information is used to determine a second path constraint condition satisfied by the second path transmitting the second service. The first device determines that it satisfies the second path constraint condition, the first device forwards the updated second data packet to the fourth device through the third tunnel, the first device is the entrance device of the third tunnel, and the fourth device is the third tunnel export equipment.

其中,第一设备确定自身满足第二路径约束信息对应的第二路径约束条件,也即是,第一设备确定自身能够作为第二路径上用于传输第二业务的节点。Wherein, the first device determines that it satisfies the second path constraint condition corresponding to the second path constraint information, that is, the first device determines that it can be used as a node for transmitting the second service on the second path.

本申请中,第一设备根据接收到的第二数据报文确定第二业务对应的第二路径约束信息,之后第一设备在根据第二路径约束信息确定自身满足第二路径条件时,能够向第四设备发送更新的第二数据报文,第一设备无需与控制设备进行交互即能实现对第二路径的选择,从而提高了选路效率。同时也减少了第一设备与控制设备之间的数据传输量,降低了网络开销。In this application, the first device determines the second path constraint information corresponding to the second service according to the received second data message, and then when the first device determines that it satisfies the second path condition according to the second path constraint information, it can send The fourth device sends the updated second data message, and the first device can select the second path without interacting with the control device, thereby improving the efficiency of route selection. At the same time, the amount of data transmission between the first device and the control device is reduced, reducing network overhead.

第一种情况,第一设备是SD-WAN中用于传输第二业务的业务报文的中间设备:In the first case, the first device is an intermediate device used to transmit service packets of the second service in SD-WAN:

当该第二路径约束信息包括带宽,时延,抖动,丢包率,误码率和带宽占用率时,该第二路径约束条件包括:以第一设备为入口设备的隧道中存在满足第二路径约束信息包括的带宽的目标隧道,且该目标隧道路由可达SD-WAN中用于传输第二业务的业务报文的出口设备;第二数据报文在第二隧道上的实际传输时延,实际抖动,实际丢包率,实际误码率和实际带宽占用率分别满足第二路径约束信息包括的时延,抖动,丢包率,误码率和带宽占用率。当以第一设备为入口设备的隧道中存在满足第二路径约束信息包括的带宽的目标隧道,第二数据报文在第二隧道上的实际传输时延小于第二路径约束信息包括的时延,在第二隧道上的实际抖动处于第二路径约束信息包括的抖动范围内,在第二隧道上的实际丢包率不高于第二路径约束信息包括的丢包率,在第二隧道上的实际误码率小于或等于第二路径约束信息包括的误码率,且其它业务在第二隧道上的实际带宽占用率小于或等于第二路径约束信息包括的带宽占用率时,第一设备确定自身满足第二路径约束条件。When the second path constraint information includes bandwidth, delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate, the second path constraint condition includes: there is a tunnel with the first device as the ingress device that satisfies the second The target tunnel of the bandwidth included in the path constraint information, and the target tunnel route can reach the egress device used to transmit the service message of the second service in SD-WAN; the actual transmission delay of the second data message on the second tunnel , the actual jitter, the actual packet loss rate, the actual bit error rate, and the actual bandwidth occupancy rate respectively satisfy the delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate included in the second path constraint information. When there is a target tunnel that satisfies the bandwidth included in the second path constraint information in the tunnel with the first device as the ingress device, the actual transmission delay of the second data packet on the second tunnel is less than the delay included in the second path constraint information , the actual jitter on the second tunnel is within the jitter range included in the second path constraint information, the actual packet loss rate on the second tunnel is not higher than the packet loss rate included in the second path constraint information, and on the second tunnel When the actual bit error rate is less than or equal to the bit error rate included in the second path constraint information, and the actual bandwidth occupancy rate of other services on the second tunnel is less than or equal to the bandwidth occupancy rate included in the second path constraint information, the first device Determine that the self satisfies the second path constraint condition.

第二种情况,第一设备是SD-WAN中用于传输第二业务的业务报文的出口设备:In the second case, the first device is the egress device used to transmit the service packets of the second service in SD-WAN:

当该第二路径约束信息包括时延,抖动,丢包率,误码率和带宽占用率时,该第二路径约束条件包括:第二数据报文在第二隧道上的实际传输时延,实际抖动,实际丢包率,实际误码率和实际带宽占用率分别满足第二路径约束信息包括的时延,抖动,丢包率,误码率和带宽占用率。当第二数据报文在第二隧道上的实际传输时延小于或等于第二路径约束信息包括的时延,在第二隧道上的实际抖动处于第二路径约束信息包括的抖动范围内,在第二隧道上的实际丢包率不高于第二路径约束信息包括的丢包率,在第二隧道上的实际误码率小于或等于第二路径约束信息包括的误码率,且其它业务在第二隧道上的实际带宽占用率小于或等于第二路径约束信息包括的带宽占用率时,第一设备确定自身满足第二路径约束条件。When the second path constraint information includes delay, jitter, packet loss rate, bit error rate and bandwidth occupancy rate, the second path constraint condition includes: the actual transmission delay of the second data message on the second tunnel, The actual jitter, the actual packet loss rate, the actual bit error rate, and the actual bandwidth occupancy rate respectively satisfy the delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate included in the second path constraint information. When the actual transmission delay of the second data packet on the second tunnel is less than or equal to the delay included in the second path constraint information, the actual jitter on the second tunnel is within the jitter range included in the second path constraint information, The actual packet loss rate on the second tunnel is not higher than the packet loss rate included in the second path constraint information, the actual bit error rate on the second tunnel is less than or equal to the bit error rate included in the second path constraint information, and other services When the actual bandwidth occupancy rate on the second tunnel is less than or equal to the bandwidth occupancy rate included in the second path constraint information, the first device determines that it satisfies the second path constraint condition.

当该第二路径约束信息仅包括带宽时,第一设备可以默认该自身满足第二路径约束条件,则当第一设备接收到第二数据报文时,确定完成对第二业务的选路,得到SD-WAN中传输第二业务的第二路径。When the second path constraint information only includes bandwidth, the first device may default that it satisfies the second path constraint condition, then when the first device receives the second data packet, it determines that the path selection for the second service is completed, A second path for transmitting the second service in the SD-WAN is obtained.

可选地,该方法还包括:第一设备接收第四设备发送的第二反馈报文,第二反馈报文中携带第二指示信息,第二指示信息用于向第一设备指示第四设备不能作为第二路径上用于传输第二业务的节点。第一设备根据第二指示信息,确定第四设备不满足第二路径约束条件。Optionally, the method further includes: the first device receives a second feedback message sent by the fourth device, the second feedback message carries second indication information, and the second indication information is used to indicate to the first device that the fourth device It cannot be used as a node for transmitting the second service on the second path. The first device determines, according to the second indication information, that the fourth device does not satisfy the second path constraint condition.

示例地,当第三隧道为双向隧道时,第四设备通过第三隧道向第一设备发送第二反馈报文。或者,第四设备可以采用点对点传输方式向第一设备发送第二反馈报文。For example, when the third tunnel is a bidirectional tunnel, the fourth device sends the second feedback message to the first device through the third tunnel. Alternatively, the fourth device may send the second feedback message to the first device in a point-to-point transmission manner.

在一种实现方式中,在第一设备根据第二指示信息,确定第四设备不满足第二路径约束条件之后,该方法还包括:第一设备重新选择第二路径上的下游设备。可选地,第一设备重新选择第二路径上的下游设备,包括:第一设备通过第四隧道向第五设备发送更新的第二数据报文,第一设备是第四隧道的入口设备,第五设备是第四隧道的出口设备。In an implementation manner, after the first device determines according to the second indication information that the fourth device does not satisfy the second path constraint condition, the method further includes: the first device reselects a downstream device on the second path. Optionally, the first device reselects a downstream device on the second path, including: the first device sends an updated second data packet to the fifth device through the fourth tunnel, the first device is an entry device of the fourth tunnel, The fifth device is an egress device of the fourth tunnel.

本申请中,第一设备能够根据接收到的第二指示信息重新选择第二路径上的下游设备,第一设备通过和第四设备的交互即能实现对第二路径的重新选择,实现了动态选路。同时也减少了第一设备与控制设备之间的数据传输量,降低了网络开销。In this application, the first device can reselect the downstream device on the second path according to the received second instruction information, and the first device can realize the reselection of the second path by interacting with the fourth device, realizing dynamic route. At the same time, the amount of data transmission between the first device and the control device is reduced, reducing network overhead.

在另一种实现方式中,在第一设备根据第二指示信息,确定第四设备不满足第二路径约束条件之后,该方法还包括:第一设备向第三设备发送第三反馈报文,第三反馈报文中携带第三指示信息,第三指示信息用于向第三设备指示第一设备不能作为第二路径上用于传输第二业务的节点。In another implementation manner, after the first device determines that the fourth device does not satisfy the second path constraint condition according to the second indication information, the method further includes: the first device sends a third feedback message to the third device, The third feedback message carries third indication information, and the third indication information is used to indicate to the third device that the first device cannot be used as a node for transmitting the second service on the second path.

本申请中,第一设备在未选择到能够作为第二路径上的第二路径上用于传输第二业务的下游节点时,向第三设备发送第三反馈报文,以向第三设备指示第一设备不能作为第二路径上用于传输第二业务的节点,使得第一设备通过和第三设备进行交互即能实现对第二路径的选择,第一设备和第三设备均无需与控制设备交互,从而提高了选路效率。同时也减少了第一设备与控制设备之间的数据传输量,降低了网络开销。In this application, the first device sends a third feedback message to the third device to indicate The first device cannot be used as a node for transmitting the second service on the second path, so that the first device can realize the selection of the second path by interacting with the third device, and neither the first device nor the third device needs to communicate with the control Device interaction improves route selection efficiency. At the same time, the amount of data transmission between the first device and the control device is reduced, reducing network overhead.

可选地,第一数据报文为探测报文,该探测报文中携带第一路径约束信息。Optionally, the first data packet is a detection packet, and the detection packet carries the first path constraint information.

可选地,第一设备通过第一隧道接收第二设备发送的第一数据报文,包括:第一设备按照预定的时间间隔,通过第一隧道接收第二设备发送的探测报文。Optionally, the first device receiving the first data packet sent by the second device through the first tunnel includes: the first device receives the detection packet sent by the second device through the first tunnel at a predetermined time interval.

本申请中,在业务传输过程中,第一设备可以根据接收到的探测报文,间隔性地检测自身是否满足业务需求,保证了业务传输的可靠性。In this application, during the service transmission process, the first device can periodically detect whether it meets the service requirements according to the received detection message, thereby ensuring the reliability of service transmission.

可选地,第一数据报文为业务报文,业务报文中携带第一路径约束信息。Optionally, the first data message is a service message, and the service message carries the first path constraint information.

可选地,第一设备根据第一数据报文,确定第一业务对应的第一路径约束信息,包括:第一设备根据第一数据报文的业务类型,确定与业务类型对应的本地保存的第一路径约束信息。Optionally, the first device determines the first path constraint information corresponding to the first service according to the first data message, including: the first device determines the locally saved path constraint information corresponding to the service type according to the service type of the first data message. First path constraint information.

由于第一路径约束信息保存在本地,因此第一设备无需在接收到的业务报文中添加第一路径约束信息,也即是第一设备无需更改业务报文,从而提高了报文传输效率,进而提高了选路效率。Since the first path constraint information is stored locally, the first device does not need to add the first path constraint information to the received service message, that is, the first device does not need to change the service message, thereby improving message transmission efficiency, Thus, the route selection efficiency is improved.

可选地,第一数据报文的报文头中包括第一字段和第二字段,第一字段用于承载第一路径约束信息,第二字段用于指示第一字段承载的第一路径约束信息是否有效。Optionally, the header of the first data packet includes a first field and a second field, the first field is used to carry the first path constraint information, and the second field is used to indicate the first path constraint information carried by the first field information is valid.

第二方面,提供了一种SD-WAN中的选路方法。该方法包括:第二设备通过第一隧道向第一设备发送第一数据报文,第二设备是第一隧道的入口设备,第一设备是第一隧道的出口设备。第二设备接收第一设备发送的第一反馈报文,第一反馈报文中携带第一指示信息。第二设备根据第一指示信息,确定第一设备不能作为第一路径上用于传输第一业务的节点。第二设备通过第二隧道向第三设备发送第二数据报文,第二设备是第二隧道的入口设备,第三设备是第二隧道的出口设备。In the second aspect, a method for route selection in SD-WAN is provided. The method includes: the second device sends the first data message to the first device through the first tunnel, the second device is an entry device of the first tunnel, and the first device is an exit device of the first tunnel. The second device receives the first feedback message sent by the first device, where the first feedback message carries the first indication information. The second device determines, according to the first indication information, that the first device cannot be used as a node for transmitting the first service on the first path. The second device sends the second data packet to the third device through the second tunnel, the second device is an ingress device of the second tunnel, and the third device is an egress device of the second tunnel.

本申请中,第二设备向第一设备发送第一数据报文之后,第二设备在接收到第一设备发送的第一反馈报文时,根据第一反馈报文中携带的第一指示信息确定第一设备不能作为第一路径上用于传输第一业务的节点,第一设备和第二设备之间通过交互即能实现对第一路径的选择,第一设备和第二设备均无需与控制设备进行交互,实现了数据面动态选路,从而提高了选路效率。同时也减少了第一设备和第二设备与控制设备之间的数据传输量,降低了网络开销。In this application, after the second device sends the first data message to the first device, when the second device receives the first feedback message sent by the first device, according to the first indication information carried in the first feedback message, the second device It is determined that the first device cannot be used as a node for transmitting the first service on the first path, and the selection of the first path can be realized through interaction between the first device and the second device, and neither the first device nor the second device needs to communicate with The control device interacts to realize dynamic route selection on the data plane, thereby improving route selection efficiency. At the same time, the amount of data transmission between the first device and the second device and the control device is also reduced, reducing network overhead.

可选地,在第二设备通过第二隧道向第三设备发送第二数据报文之后,该方法还包括:第二设备接收第三设备发送的第二反馈报文,第二反馈报文中携带第二指示信息。第二设备根据第二指示信息,确定第三设备不能作为第一路径上用于传输第一业务的节点。Optionally, after the second device sends the second data packet to the third device through the second tunnel, the method further includes: the second device receives a second feedback packet sent by the third device, and in the second feedback packet Carry the second indication information. The second device determines, according to the second indication information, that the third device cannot be used as a node for transmitting the first service on the first path.

本申请中,第二设备能够根据接收到的第二指示信息重新选择第一路径上的下游设备,第二设备通过和第三设备的交互即能实现对第二路径的重新选择,实现了动态选路。同时也减少了第二设备与控制设备之间的数据传输量,降低了网络开销。In this application, the second device can reselect the downstream device on the first path according to the received second instruction information, and the second device can realize the reselection of the second path by interacting with the third device, realizing dynamic route. At the same time, the amount of data transmission between the second device and the control device is reduced, reducing network overhead.

可选地,第二设备向控制设备发送通知报文,通知报文携带第三指示信息,第三指示信息用于向控制设备指示SD-WAN中不存在第一路径。Optionally, the second device sends a notification message to the control device, where the notification message carries third indication information, and the third indication information is used to indicate to the control device that the first path does not exist in the SD-WAN.

可选地,该通知报文为BGP消息。示例地,当通知报文为BGP打开(open)消息时,第三指示信息可以承载于BGP打开消息的可选参数(optional parameters)字段。该第三指示信息中携带有第一业务的业务类型,该第一业务的业务类型可以采用TLV(type-length-value)编码后承载于BGP打开消息的可选参数字段。Optionally, the notification message is a BGP message. For example, when the notification message is a BGP open (open) message, the third indication information may be carried in an optional parameter (optional parameters) field of the BGP open message. The third indication information carries the service type of the first service, and the service type of the first service may be encoded in TLV (type-length-value) and carried in the optional parameter field of the BGP open message.

可选地,第一数据报文和第二数据报文为探测报文,探测报文中携带第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。Optionally, the first data packet and the second data packet are detection packets, and the detection packet carries first path constraint information, and the first path constraint information is used to determine the conditions satisfied by the first path for transmitting the first service. The first path constraint.

示例地,第二设备在确定自身满足第一路径约束信息对应的第一路径约束条件后,生成包括第一路径约束信息的探测报文。该探测报文用于探测第一业务在SD-WAN中的第一路径,该探测报文通常不携带具体的业务信息。For example, after determining that the second device satisfies the first path constraint condition corresponding to the first path constraint information, the second device generates a probe packet including the first path constraint information. The detection message is used to detect the first path of the first service in the SD-WAN, and the detection message usually does not carry specific service information.

可选地,在第二设备通过第二隧道向第三设备发送第二数据报文之后,该方法还包括:第二设备按照预定的时间间隔,通过第二隧道向第三设备发送探测报文。Optionally, after the second device sends the second data packet to the third device through the second tunnel, the method further includes: the second device sends a detection packet to the third device through the second tunnel at a predetermined time interval .

本申请中,第二设备可以在业务传输过程中,按照预定的时间间隔向第三设备发送探测报文,第三设备可以根据接收到的探测报文,间隔性地检测自身是否满足业务需求,保证了业务传输的可靠性。In this application, the second device can send detection messages to the third device at predetermined time intervals during the service transmission process, and the third device can periodically detect whether it meets the service requirements according to the received detection messages. The reliability of service transmission is guaranteed.

可选地,第一数据报文和第二数据报文为业务报文,业务报文中携带第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。Optionally, the first data message and the second data message are service messages, and the service message carries first path constraint information, and the first path constraint information is used to determine the conditions satisfied by the first path for transmitting the first service. The first path constraint.

示例地,在第一业务的报文传输过程中,第二设备在接收到发送端设备发送的业务报文后,可以在业务报文中插入第一路径约束信息得到数据报文。For example, during the packet transmission process of the first service, after receiving the service packet sent by the sender device, the second device may insert the first path constraint information into the service packet to obtain a data packet.

可选地,该方法还包括:第二设备接收控制设备发送的针对第一业务的选路指令。第二设备根据选路指令,获取第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。Optionally, the method further includes: the second device receiving a routing instruction for the first service sent by the control device. The second device acquires first path constraint information according to the routing instruction, where the first path constraint information is used to determine a first path constraint condition satisfied by the first path transmitting the first service.

示例地,当控制设备确定第一业务的当前传输路径中的一个或多个隧道不满足第一业务的业务需求时,可以向第二设备发送选路指令。For example, when the control device determines that one or more tunnels in the current transmission path of the first service do not meet the service requirements of the first service, it may send a routing instruction to the second device.

可选地,该选路指令中包括第一业务的业务类型,第二设备根据选路指令,获取第一路径约束信息,包括:第二设备根据第一业务的业务类型,确定与业务类型对应的本地保存的第一路径约束信息。Optionally, the routing instruction includes the service type of the first service, and the second device obtains the first path constraint information according to the routing instruction, including: the second device determines the corresponding service type according to the service type of the first service The first path constraint information saved locally.

由于第一路径约束信息保存在本地,因此控制设备无需在选路指令中添加第一路径约束信息,而只需携带第一业务的业务类型,可以节约传输资源。Since the first path constraint information is stored locally, the control device does not need to add the first path constraint information to the routing instruction, but only needs to carry the service type of the first service, which can save transmission resources.

可选地,该选路指令中包括第一路径约束信息。Optionally, the routing instruction includes first path constraint information.

可选地,该方法还包括:第二设备接收发送端设备发送的第一业务的业务报文。第二设备根据第一业务的业务报文的业务类型,确定与业务类型对应的本地保存的第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。Optionally, the method further includes: the second device receiving the service packet of the first service sent by the sender device. The second device determines locally stored first path constraint information corresponding to the service type according to the service type of the service packet of the first service, and the first path constraint information is used to determine the first path that the first path for transmitting the first service satisfies. A path constraint condition.

可选地,第一路径约束信息包括以下信息中的一个或多个:时延,抖动,带宽,丢包率,误码率或带宽占用率。Optionally, the first path constraint information includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, or bandwidth occupancy rate.

可选地,第一数据报文的报文头中包括第一字段和第二字段,第一字段用于承载第一路径约束信息,第二字段用于指示第一字段承载的第一路径约束信息是否有效。Optionally, the header of the first data packet includes a first field and a second field, the first field is used to carry the first path constraint information, and the second field is used to indicate the first path constraint information carried by the first field information is valid.

第三方面,提供了一种SD-WAN中的第一设备。包括多个功能模块,所述多个功能模块相互作用,实现如第一方面或第一方面任一可能的实现方式所述的SD-WAN中的选路方法。所述多个功能模块包括收发模块和处理模块。In a third aspect, a first device in SD-WAN is provided. It includes multiple functional modules, and the multiple functional modules interact to implement the routing method in the SD-WAN described in the first aspect or any possible implementation manner of the first aspect. The multiple functional modules include a transceiver module and a processing module.

收发模块,用于通过第一隧道接收第二设备发送的第一数据报文,第一设备是第一隧道的出口设备,第二设备是第一隧道的入口设备。The transceiver module is configured to receive the first data packet sent by the second device through the first tunnel, the first device is the egress device of the first tunnel, and the second device is the ingress device of the first tunnel.

处理模块,用于根据第一数据报文,确定第一业务对应的第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。A processing module, configured to determine first path constraint information corresponding to the first service according to the first data packet, where the first path constraint information is used to determine a first path constraint condition satisfied by the first path for transmitting the first service.

收发模块,还用于确定自身不满足第一路径约束条件,向第二设备发送第一反馈报文,第一反馈报文中携带第一指示信息,第一指示信息用于向第二设备指示第一设备不能作为第一路径上用于传输第一业务的节点。The transceiver module is further configured to determine that it does not satisfy the first path constraint condition, and send a first feedback message to the second device, where the first feedback message carries first indication information, and the first indication information is used to indicate to the second device The first device cannot be used as a node for transmitting the first service on the first path.

可选地,收发模块,还用于通过第二隧道接收第三设备发送的第二数据报文,第一设备是第二隧道的出口设备,第三设备是第二隧道的入口设备。Optionally, the transceiver module is further configured to receive the second data packet sent by the third device through the second tunnel, the first device is an egress device of the second tunnel, and the third device is an ingress device of the second tunnel.

处理模块,还用于根据第二数据报文,确定第二业务对应的第二路径约束信息,第二路径约束信息用于确定传输第二业务的第二路径所满足的第二路径约束条件。The processing module is further configured to determine second path constraint information corresponding to the second service according to the second data packet, and the second path constraint information is used to determine a second path constraint condition satisfied by the second path for transmitting the second service.

收发模块,还用于确定自身满足第二路径约束条件,通过第三隧道向第四设备转发更新的第二数据报文,第一设备是第三隧道的入口设备,第四设备是第三隧道的出口设备。The transceiver module is also used to determine that it satisfies the second path constraint condition, and forwards the updated second data message to the fourth device through the third tunnel, the first device is the entrance device of the third tunnel, and the fourth device is the third tunnel export equipment.

可选地,收发模块,还用于接收第四设备发送的第二反馈报文,第二反馈报文中携带第二指示信息,第二指示信息用于向第一设备指示第四设备不能作为第二路径上用于传输第二业务的节点。Optionally, the transceiver module is further configured to receive a second feedback message sent by the fourth device, where the second feedback message carries second indication information, and the second indication information is used to indicate to the first device that the fourth device cannot act as A node used to transmit the second service on the second path.

处理模块,还用于根据第二指示信息,确定第四设备不满足第二路径约束条件。The processing module is further configured to determine, according to the second indication information, that the fourth device does not satisfy the second path constraint condition.

可选地,处理模块,还用于重新选择第二路径上的下游设备。Optionally, the processing module is further configured to reselect a downstream device on the second path.

可选地,处理模块,还用于:通过第四隧道向第五设备发送更新的第二数据报文,第一设备是第四隧道的入口设备,第五设备是第四隧道的出口设备。Optionally, the processing module is further configured to: send an updated second data packet to the fifth device through the fourth tunnel, the first device is an ingress device of the fourth tunnel, and the fifth device is an egress device of the fourth tunnel.

可选地,收发模块,还用于向第三设备发送第三反馈报文,第三反馈报文中携带第三指示信息,第三指示信息用于向第三设备指示第一设备不能作为第二路径上用于传输第二业务的节点。Optionally, the transceiver module is further configured to send a third feedback message to the third device, where the third feedback message carries third indication information, and the third indication information is used to indicate to the third device that the first device cannot serve as the first device. A node used to transmit the second service on the second path.

可选地,第一数据报文为探测报文,探测报文中携带第一路径约束信息。Optionally, the first data packet is a detection packet, and the detection packet carries the first path constraint information.

可选地,收发模块,还用于:按照预定的时间间隔,通过第一隧道接收第二设备发送的探测报文。Optionally, the transceiver module is further configured to: receive a probe message sent by the second device through the first tunnel at a predetermined time interval.

可选地,第一数据报文为业务报文,业务报文中携带第一路径约束信息。Optionally, the first data message is a service message, and the service message carries the first path constraint information.

可选地,处理模块,用于:根据第一数据报文的业务类型,确定与业务类型对应的本地保存的第一路径约束信息。Optionally, the processing module is configured to: according to the service type of the first data packet, determine locally stored first path constraint information corresponding to the service type.

可选地,第一路径约束信息包括以下信息中的一个或多个:时延,抖动,带宽,丢包率,误码率和带宽占用率。Optionally, the first path constraint information includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, and bandwidth occupancy rate.

可选地,第一数据报文的报文头中包括第一字段和第二字段,第一字段用于承载第一路径约束信息,第二字段用于指示第一字段承载的第一路径约束信息是否有效。Optionally, the header of the first data packet includes a first field and a second field, the first field is used to carry the first path constraint information, and the second field is used to indicate the first path constraint information carried by the first field information is valid.

第四方面,提供了一种SD-WAN中的第二设备。包括多个功能模块,所述多个功能模块相互作用,实现如第二方面或第二方面任一可能的实现方式中所述的SD-WAN中的选路方法。所述多个功能模块包括收发模块和处理模块。收发模块,用于通过第一隧道向第一设备发送第一数据报文,第二设备是第一隧道的入口设备,第一设备是第一隧道的出口设备。In a fourth aspect, a second device in SD-WAN is provided. It includes multiple functional modules, and the multiple functional modules interact to implement the routing method in SD-WAN as described in the second aspect or any possible implementation manner of the second aspect. The multiple functional modules include a transceiver module and a processing module. The transceiver module is configured to send the first data packet to the first device through the first tunnel, the second device is the entry device of the first tunnel, and the first device is the exit device of the first tunnel.

收发模块,还用于接收第一设备发送的第一反馈报文,第一反馈报文中携带第一指示信息。The transceiver module is further configured to receive a first feedback message sent by the first device, where the first feedback message carries first indication information.

处理模块,用于根据第一指示信息,确定第一设备不能作为第一路径上用于传输第一业务的节点。A processing module, configured to determine, according to the first indication information, that the first device cannot be used as a node for transmitting the first service on the first path.

收发模块,还用于通过第二隧道向第三设备发送第二数据报文,第二设备是第二隧道的入口设备,第三设备是第二隧道的出口设备。The transceiver module is further configured to send the second data packet to the third device through the second tunnel, the second device is the entry device of the second tunnel, and the third device is the exit device of the second tunnel.

可选地,收发模块,还用于接收第三设备发送的第二反馈报文,第二反馈报文中携带第二指示信息。Optionally, the transceiver module is further configured to receive a second feedback message sent by the third device, where the second feedback message carries second indication information.

处理模块,还用于根据第二指示信息,确定第三设备不能作为第一路径上用于传输第一业务的节点。The processing module is further configured to determine, according to the second indication information, that the third device cannot be used as a node for transmitting the first service on the first path.

可选地,收发模块,还用于向控制设备发送通知报文,通知报文携带第三指示信息,第三指示信息用于向控制设备指示SD-WAN中不存在第一路径。Optionally, the transceiver module is further configured to send a notification message to the control device, where the notification message carries third indication information, and the third indication information is used to indicate to the control device that there is no first path in the SD-WAN.

可选地,第一数据报文和第二数据报文为探测报文,探测报文中携带第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。Optionally, the first data packet and the second data packet are detection packets, and the detection packet carries first path constraint information, and the first path constraint information is used to determine the conditions satisfied by the first path for transmitting the first service. The first path constraint.

可选地,收发模块,还用于第二设备按照预定的时间间隔,通过第二隧道向第三设备发送探测报文。Optionally, the transceiver module is further used for the second device to send a detection message to the third device through the second tunnel at a predetermined time interval.

可选地,第一数据报文和第二数据报文为业务报文,业务报文中携带第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。Optionally, the first data message and the second data message are service messages, and the service message carries first path constraint information, and the first path constraint information is used to determine the conditions satisfied by the first path for transmitting the first service. The first path constraint.

可选地,收发模块,还用于接收控制设备发送的针对第一业务的选路指令。Optionally, the transceiver module is further configured to receive a routing instruction for the first service sent by the control device.

处理模块,还用于根据选路指令,获取第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。The processing module is further configured to acquire first path constraint information according to the routing instruction, and the first path constraint information is used to determine a first path constraint condition satisfied by the first path for transmitting the first service.

可选地,选路指令中包括第一业务的业务类型,处理模块,还用于:根据第一业务的业务类型,确定与业务类型对应的本地保存的第一路径约束信息。Optionally, the routing instruction includes the service type of the first service, and the processing module is further configured to: determine locally stored first path constraint information corresponding to the service type according to the service type of the first service.

可选地,选路指令中包括第一路径约束信息。Optionally, the routing instruction includes first path constraint information.

可选地,收发模块,还用于接收发送端设备发送的第一业务的业务报文。处理模块,还用于根据第一业务的业务报文的业务类型,确定与业务类型对应的本地保存的第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。Optionally, the transceiver module is further configured to receive a service packet of the first service sent by the sending end device. The processing module is further configured to determine locally stored first path constraint information corresponding to the service type according to the service type of the service message of the first service, and the first path constraint information is used to determine the first path for transmitting the first service. Satisfied first path constraints.

可选地,第一路径约束信息包括以下信息中的一个或多个:时延,抖动,带宽,丢包率,误码率或带宽占用率。Optionally, the first path constraint information includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, or bandwidth occupancy rate.

可选地,第一数据报文的报文头中包括第一字段和第二字段,第一字段用于承载第一路径约束信息,第二字段用于指示第一字段承载的第一路径约束信息是否有效。Optionally, the header of the first data packet includes a first field and a second field, the first field is used to carry the first path constraint information, and the second field is used to indicate the first path constraint information carried by the first field information is valid.

第五方面,提供了一种SD-WAN中的第一设备,包括:处理器和存储器;In the fifth aspect, a first device in SD-WAN is provided, including: a processor and a memory;

所述存储器,用于存储计算机程序,所述计算机程序包括程序指令;The memory is used to store a computer program, and the computer program includes program instructions;

所述处理器,用于调用所述计算机程序,实现如第一方面或第一方面任一可能的实现方式中所述的SD-WAN中的选路方法。The processor is configured to call the computer program to implement the SD-WAN routing method described in the first aspect or any possible implementation manner of the first aspect.

第六方面,提供了一种SD-WAN中的第二设备,包括:处理器和存储器;In a sixth aspect, a second device in SD-WAN is provided, including: a processor and a memory;

所述存储器,用于存储计算机程序,所述计算机程序包括程序指令;The memory is used to store a computer program, and the computer program includes program instructions;

所述处理器,用于调用所述计算机程序,实现如第二方面或第二方面任一可能的实现方式中所述的SD-WAN中的选路方法。The processor is configured to invoke the computer program to implement the routing method in SD-WAN as described in the second aspect or any possible implementation manner of the second aspect.

第七方面,提供了一种SD-WAN中的第一设备,包括:通信接口以及与所述通信接口连接的处理器。根据所述通信接口和所述处理器,实现第一方面或第一方面任一种可能的实现方式中的方法。According to a seventh aspect, a first device in SD-WAN is provided, including: a communication interface and a processor connected to the communication interface. According to the communication interface and the processor, implement the first aspect or the method in any possible implementation manner of the first aspect.

第八方面,提供了一种SD-WAN中的第二设备,包括:通信接口以及与所述通信接口连接的处理器。根据所述通信接口和所述处理器,实现第二方面或第二方面任一中可能的实现方式中的方法。In an eighth aspect, a second device in SD-WAN is provided, including: a communication interface and a processor connected to the communication interface. According to the communication interface and the processor, implement the second aspect or the method in any possible implementation manner of the second aspect.

第九方面、提供了一种SD-WAN中的通信系统,包括如第三方面、第五方面或第七方面任一所述的第一设备,以及如第四方面、第六方面或第八方面任一所述的第二设备。可选地,所述第一设备可以是路径上的中间设备或出口设备,所述第二设备可以是入口设备或中间设备。The ninth aspect provides a communication system in SD-WAN, including the first device as described in any one of the third aspect, the fifth aspect, or the seventh aspect, and the fourth aspect, the sixth aspect, or the eighth aspect The second device of any one of the aspects. Optionally, the first device may be an intermediate device or an egress device on the path, and the second device may be an ingress device or an intermediate device.

第十方面、提供了一种计算机存储介质,计算机存储介质上存储有指令,当所述指令被处理器执行时,实现如第一方面或第一方面任一可能的实现方式中所述的方法;或者实现如第二方面或第二方面任一可能的实现方式中所述的方法。In a tenth aspect, a computer storage medium is provided, and instructions are stored on the computer storage medium, and when the instructions are executed by a processor, the method as described in the first aspect or any possible implementation manner of the first aspect is implemented ; Or implement the method described in the second aspect or any possible implementation manner of the second aspect.

本申请提供的技术方案带来的有益效果至少包括:The beneficial effects brought by the technical solution provided by the application at least include:

本申请提供的SD-WAN中的选路方法,由于无需网络控制设备选择报文传输路径,SD-WAN中的各个网络设备可以在报文的传输过程中动态选择传输路径,因此能够适用于网络设备数量较多的SD-WAN以及跨域传输的业务的报文传输。另外,在报文传输过程中,网络设备无需与SD-WAN的控制设备进行交互,从而保证了报文传输的实时性。同时也减少了SD-WAN中传输路径上的入口设备与控制设备之间的数据传输量,降低了网络开销。The route selection method in SD-WAN provided by this application can be applied to network SD-WAN with a large number of devices and message transmission of services transmitted across domains. In addition, during the message transmission process, the network device does not need to interact with the SD-WAN control device, thus ensuring the real-time nature of message transmission. At the same time, it also reduces the amount of data transmission between the ingress device and the control device on the transmission path in SD-WAN, reducing network overhead.

附图说明Description of drawings

图1是本申请实施例提供的一种SD-WAN中的通信系统的结构示意图;FIG. 1 is a schematic structural diagram of a communication system in SD-WAN provided by an embodiment of the present application;

图2是本申请实施例提供的另一种SD-WAN中的通信系统的结构示意图;FIG. 2 is a schematic structural diagram of another SD-WAN communication system provided by an embodiment of the present application;

图3是本申请实施例提供的一种SD-WAN中的选路方法的流程示意图;FIG. 3 is a schematic flowchart of a routing method in SD-WAN provided by an embodiment of the present application;

图4是本申请实施例提供的一种获取路径约束信息的方法流程图;FIG. 4 is a flow chart of a method for obtaining path constraint information provided by an embodiment of the present application;

图5是本申请实施例提供的另一种获取路径约束信息的方法流程图;FIG. 5 is a flow chart of another method for obtaining path constraint information provided by an embodiment of the present application;

图6是本申请实施例提供的另一种SD-WAN中的选路方法的流程示意图;FIG. 6 is a schematic flowchart of another SD-WAN routing method provided by an embodiment of the present application;

图7是本申请实施例提供的又一种SD-WAN中的选路方法的流程示意图;FIG. 7 is a schematic flowchart of another SD-WAN routing method provided by an embodiment of the present application;

图8是本申请实施例提供的一种采用IOAM机制的业务报文的结构示意图;FIG. 8 is a schematic structural diagram of a service message using an IOAM mechanism provided by an embodiment of the present application;

图9是本申请实施例提供的一种采用IOAM机制的VXLAN报文的结构示意图;FIG. 9 is a schematic structural diagram of a VXLAN message using an IOAM mechanism provided in an embodiment of the present application;

图10是本申请实施例提供的一种探测报文的结构示意图;FIG. 10 is a schematic structural diagram of a detection message provided by an embodiment of the present application;

图11是本申请实施例提供的另一种探测报文的结构示意图;FIG. 11 is a schematic structural diagram of another detection message provided by the embodiment of the present application;

图12是本申请实施例提供的一种反馈报文的结构示意图;FIG. 12 is a schematic structural diagram of a feedback message provided by an embodiment of the present application;

图13是本申请实施例提供的另一种反馈报文的结构示意图;FIG. 13 is a schematic structural diagram of another feedback message provided by the embodiment of the present application;

图14是本申请实施例提供的再一种SD-WAN中的选路方法的流程示意图;FIG. 14 is a schematic flowchart of another SD-WAN routing method provided by the embodiment of the present application;

图15是本申请实施例提供的还一种SD-WAN中的选路方法的流程示意图;Fig. 15 is a schematic flow chart of another SD-WAN routing method provided by the embodiment of the present application;

图16是本申请实施例提供的一种SD-WAN中的选路装置的结构示意图;FIG. 16 is a schematic structural diagram of a routing device in an SD-WAN provided by an embodiment of the present application;

图17是本申请实施例提供的另一种SD-WAN中的选路装置的结构示意图;FIG. 17 is a schematic structural diagram of another SD-WAN routing device provided by an embodiment of the present application;

图18是本申请实施例提供的一种SD-WAN中的选路装置的框图;FIG. 18 is a block diagram of a routing device in SD-WAN provided by an embodiment of the present application;

图19是本申请实施例提供的另一种SD-WAN中的选路装置的框图。Fig. 19 is a block diagram of another SD-WAN routing device provided by an embodiment of the present application.

具体实施方式Detailed ways

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

软件定义广域网(software defined wide area network,SD-WAN)中包括一条或多条隧道。本申请实施例中的隧道指的是通过网络隧道协议建立的逻辑连接。该SD-WAN可以是多网络服务提供点(point of presence,POP)覆盖(overlay)网络,相应的,SD-WAN中的隧道是overlay隧道。一种具体的实施方式,overlay隧道可以采用通用路由封装(generic routing encapsulation,GRE)协议、虚拟扩展局域网(virtual extensiblelocal area network,VXLAN)协议或者互联网协议安全(internet protocol security,IPsec)协议等网络隧道协议建立。A software defined wide area network (SD-WAN) includes one or more tunnels. The tunnel in this embodiment of the present application refers to a logical connection established through a network tunneling protocol. The SD-WAN may be a multi-network service provider point of presence (point of presence, POP) overlay (overlay) network, and correspondingly, the tunnel in the SD-WAN is an overlay tunnel. A specific implementation manner, the overlay tunnel can adopt a network tunnel such as a generic routing encapsulation (generic routing encapsulation, GRE) protocol, a virtual extended local area network (virtual extensible local area network, VXLAN) protocol or an Internet protocol security (internet protocol security, IPsec) protocol. Agreement established.

SD-WAN支持对不同类型业务的报文选择不同的传输路径。例如,SD-WAN支持通过基于多协议标签交换(multi protocol label switching,MPLS)技术的传输路径传输重要报文,并通过基于宽带网或无线长期演进(long term evolution,LTE)技术的传输路径传输非重要报文,这样能够提高传输资源利用率以及运营费用(operating expense,OPEX)。其中,传输路径指的是SD-WAN中用于传输业务报文的入口设备至出口设备之间的逻辑路径,该传输路径包括一个或多个隧道。SD-WAN supports the selection of different transmission paths for packets of different types of services. For example, SD-WAN supports transmission of important packets through a transmission path based on multi-protocol label switching (MPLS) technology, and transmits important packets through a transmission path based on broadband network or wireless long term evolution (LTE) technology. Non-important packets, which can improve transmission resource utilization and operating expenses (operating expense, OPEX). Wherein, the transmission path refers to a logical path between an ingress device and an egress device for transmitting service packets in SD-WAN, and the transmission path includes one or more tunnels.

图1是本申请实施例提供的一种SD-WAN中的通信系统的结构示意图。如图1所示,该SD-WAN中的通信系统中包括SD-WAN中的多个网络设备101A至101F(统称为网络设备101)。图1中网络设备的数量仅用作示例性说明,不作为对本申请实施例涉及的SD-WAN的限制。FIG. 1 is a schematic structural diagram of a communication system in an SD-WAN provided by an embodiment of the present application. As shown in FIG. 1 , the communication system in the SD-WAN includes a plurality of network devices 101A to 101F (collectively referred to as network devices 101 ) in the SD-WAN. The number of network devices in FIG. 1 is used for illustrative purposes only, and is not intended to limit the SD-WAN involved in this embodiment of the present application.

参见图1,两个网络设备101之间的实线表示该两个网络设备101之间建立的隧道。例如,网络设备101A与网络设备101B、网络设备101C和网络设备101D之间分别建立有一条隧道;网络设备101C与网络设备101A、网络设备101B、网络设备101D,网络设备101E和网络设备101F之间分别建立有一条隧道;等等。Referring to FIG. 1 , a solid line between two network devices 101 represents a tunnel established between the two network devices 101 . For example, a tunnel is respectively established between network device 101A and network device 101B, network device 101C and network device 101D; A tunnel is respectively established; and so on.

一种具体的实施方式,网络设备之间通过隧道传输报文。本申请实施例中,将建立有隧道的两个网络设备中,先接收到报文的网络设备称为隧道的入口设备,后接收到报文的网络设备称为隧道的出口设备。将SD-WAN中与发送端设备连接的网络设备称为SD-WAN中用于传输业务报文的入口设备,将SD-WAN中与接收端设备连接的网络设备称为SD-WAN中用于传输业务报文的出口设备,将SD-WAN中位于用于传输业务报文的入口设备和用于传输业务报文的出口设备之间的网络设备称为SD-WAN中用于传输业务报文的中间设备。一种具体的实施方式,网络设备101可以是实体设备或虚拟设备。SD-WAN中的传输路径的入口设备和出口设备可以是用户驻地设备(customer premises equipment,CPE)、路由器或交换机等,SD-WAN中的传输路径的中间设备可以是路由器或交换机等。In a specific implementation manner, packets are transmitted between network devices through a tunnel. In the embodiment of the present application, among the two network devices with established tunnels, the network device that receives the message first is called the ingress device of the tunnel, and the network device that receives the message later is called the egress device of the tunnel. The network device connected to the sending end device in SD-WAN is called the ingress device used to transmit service packets in SD-WAN, and the network device connected to the receiving end device in SD-WAN is called the SD-WAN used for The egress device for transmitting service messages refers to the network device in SD-WAN between the ingress device for transmitting service messages and the egress device for transmitting service messages as SD-WAN for transmitting service messages intermediate equipment. In a specific implementation manner, the network device 101 may be a physical device or a virtual device. The ingress device and the egress device of the transmission path in SD-WAN may be customer premises equipment (customer premises equipment, CPE), router or switch, etc., and the intermediate devices of the transmission path in SD-WAN may be routers or switches.

SD-WAN中的传输路径上包括两个或两个以上网络设备,相应地,SD-WAN中的传输路径包括一个或多个隧道。当SD-WAN中的传输路径上仅包括两个网络设备,即仅包括用于传输业务报文的入口设备和用于传输业务报文的出口设备时,该传输路径包括一个隧道。当SD-WAN中的传输路径上包括两个以上网络设备,即包括用于传输业务报文的入口设备、用于传输业务报文的中间设备和用于传输业务报文的出口设备时,该传输路径包括多个隧道。The transmission path in SD-WAN includes two or more network devices, and accordingly, the transmission path in SD-WAN includes one or more tunnels. When the transmission path in SD-WAN includes only two network devices, that is, only an ingress device for transmitting service packets and an egress device for transmitting service packets, the transmission path includes a tunnel. When the transmission path in SD-WAN includes more than two network devices, that is, the ingress device used to transmit service packets, the intermediate device used to transmit service packets, and the egress device used to transmit service packets, the The transmission path includes multiple tunnels.

示例地,在如图1所示的SD-WAN中,网络设备101A为该SD-WAN中用于传输业务报文的入口设备,网络设备101F为该SD-WAN中用于传输业务报文的出口设备,网络设备101B-101E均为该SD-WAN中用于传输业务报文的中间设备。网络设备101A与网络设备101F之间具有多条传输路径,例如包括以下4条传输路径,传输路径1:网络设备101A-网络设备101C-网络设备101F;传输路径2:网络设备101A-网络设备101D-网络设备101F;传输路径3:网络设备101A-网络设备101C-网络设备101E-网络设备101F;传输路径4:网络设备101A-网络设备101D-网络设备101E-网络设备101F。参见图1,网络设备101A与网络设备101C之间建立有隧道L1,网络设备101A与网络设备101D之间建立有隧道L2,网络设备101C与网络设备101E之间建立有隧道L3,网络设备101C与网络设备101F之间建立有隧道L4,网络设备101D与网络设备101E之间建立有隧道L5,网络设备101D与网络设备101F之间建立有隧道L6,网络设备101E与网络设备101F之间建立有隧道L7。也即是,传输路径1包括隧道L1和隧道L4,传输路径2包括隧道L2和隧道L6,传输路径3包括隧道L1、隧道L3和隧道L7,传输路径4包括隧道L2、隧道L5和隧道L7。For example, in the SD-WAN shown in Figure 1, the network device 101A is the ingress device for transmitting service packets in the SD-WAN, and the network device 101F is the ingress device for transmitting service packets in the SD-WAN. The egress device and the network devices 101B-101E are intermediate devices used to transmit service packets in the SD-WAN. There are multiple transmission paths between the network device 101A and the network device 101F, for example, including the following four transmission paths, transmission path 1: network device 101A-network device 101C-network device 101F; transmission path 2: network device 101A-network device 101D - network device 101F; transmission path 3: network device 101A-network device 101C-network device 101E-network device 101F; transmission path 4: network device 101A-network device 101D-network device 101E-network device 101F. Referring to FIG. 1 , a tunnel L1 is established between network equipment 101A and network equipment 101C, a tunnel L2 is established between network equipment 101A and network equipment 101D, a tunnel L3 is established between network equipment 101C and network equipment 101E, and network equipment 101C and A tunnel L4 is established between the network device 101F, a tunnel L5 is established between the network device 101D and the network device 101E, a tunnel L6 is established between the network device 101D and the network device 101F, and a tunnel is established between the network device 101E and the network device 101F L7. That is, transmission path 1 includes tunnel L1 and tunnel L4, transmission path 2 includes tunnel L2 and tunnel L6, transmission path 3 includes tunnel L1, tunnel L3, and tunnel L7, and transmission path 4 includes tunnel L2, tunnel L5, and tunnel L7.

本申请实施例提供的SD-WAN中的网络设备可以由一个或多个控制设备管理。当SD-WAN中的所有网络设备均由一个控制设备管理时,表示该SD-WAN中的所有网络设备均处于同一个域中。当SD-WAN中的所有网络设备由多个控制设备管理时,表示该SD-WAN中包括处于不同的域的网络设备,处于不同的域的网络设备之间跨域互联。控制设备管理SD-WAN中的网络设备,包括:控制设备为SD-WAN中的网络设备分配传输带宽等。控制设备可以是网络控制器,网络分析器,网络管理设备,网关或其它具有控制和分析能力的设备。控制设备可以是一台或多台设备。The network devices in the SD-WAN provided by the embodiments of the present application may be managed by one or more control devices. When all network devices in SD-WAN are managed by one control device, it means that all network devices in SD-WAN are in the same domain. When all network devices in the SD-WAN are managed by multiple control devices, it means that the SD-WAN includes network devices in different domains, and network devices in different domains are interconnected across domains. The control device manages the network devices in the SD-WAN, including: the control device allocates transmission bandwidth for the network devices in the SD-WAN, etc. The control device can be a network controller, a network analyzer, a network management device, a gateway or other devices with control and analysis capabilities. The controlling device can be one or more devices.

图1以SD-WAN中的网络设备由一个控制设备管理为例进行说明。如图1所示,该SD-WAN中的通信系统中还包括一个控制设备102。控制设备102与SD-WAN中的各个网络设备101分别连接。Figure 1 illustrates that network devices in SD-WAN are managed by a control device as an example. As shown in FIG. 1 , the communication system in the SD-WAN also includes a control device 102 . The control device 102 is respectively connected to each network device 101 in the SD-WAN.

图2是本申请实施例提供的另一种SD-WAN中的通信系统的结构示意图。图2以SD-WAN中的网络设备由多个网络设备管理为例进行说明。如图2所示,该SD-WAN中的通信系统中还包括多个控制设备102A和102B。其中,控制设备102A管理网络设备101A至101C,控制设备102B管理网络设备101D至101F。图2中控制设备的数量仅用作示例性说明,不作为对本申请实施例涉及的SD-WAN中的通信系统的限制。FIG. 2 is a schematic structural diagram of another SD-WAN communication system provided by an embodiment of the present application. Figure 2 uses an example in which a network device in SD-WAN is managed by multiple network devices for illustration. As shown in FIG. 2 , the communication system in the SD-WAN also includes multiple control devices 102A and 102B. Among them, the control device 102A manages the network devices 101A to 101C, and the control device 102B manages the network devices 101D to 101F. The number of control devices in FIG. 2 is only used as an example, and is not intended as a limitation on the communication system in the SD-WAN involved in the embodiment of the present application.

本申请实施例提供的SD-WAN中的选路方法为在SD-WAN中基于数据面的选路方法。网络设备根据数据报文确定路径约束信息,并根据路径约束信息确定路径约束条件。网络设备判断自身是否满足该路径约束条件;若自身满足该路径约束条件,则该网络设备向下一跳设备发送更新的数据报文;若自身不满足该路径约束条件,则该网络设备向目标设备发送反馈报文。当网络设备为SD-WAN中用于传输数据报文的入口设备时,目标设备可以是该SD-WAN的控制设备;当网络设备为SD-WAN中用于传输数据报文的中间设备或出口设备时,目标设备为该网络设备的上一跳设备。The SD-WAN routing method provided in the embodiment of the present application is a data plane-based routing method in the SD-WAN. The network device determines path constraint information according to the data packet, and determines path constraint conditions according to the path constraint information. The network device judges whether it satisfies the path constraint; if it satisfies the path constraint, the network device sends an updated data message to the next-hop device; if it does not satisfy the path constraint, the network device sends the target The device sends a feedback message. When the network device is an ingress device used to transmit data packets in SD-WAN, the target device can be the control device of the SD-WAN; when the network device is an intermediate device or exit device used to transmit data packets in SD-WAN When using a device, the target device is the last hop device of the network device.

本申请以下实施例以为业务1、业务2和业务3在SD-WAN中选路为例,对该SD-WAN中的选路方法进行说明。图3示出了为业务1在SD-WAN中选择路径1的过程。图6示出了为业务2在SD-WAN中选择路径2的过程。图7示出了为业务3在SD-WAN中选择路径3的过程。The following embodiments of the present application take the route selection of service 1, service 2 and service 3 in the SD-WAN as an example, and describe the route selection method in the SD-WAN. Fig. 3 shows the process of selecting path 1 in SD-WAN for service 1. Fig. 6 shows the process of selecting path 2 in SD-WAN for service 2. Fig. 7 shows the process of selecting path 3 in SD-WAN for service 3.

图3是本申请实施例提供的一种SD-WAN中的选路方法的流程示意图。该方法可以应用于如图1或图2所示的SD-WAN中的通信系统中。如图3所示,该方法包括:Fig. 3 is a schematic flowchart of a method for route selection in SD-WAN provided by an embodiment of the present application. The method can be applied to a communication system in SD-WAN as shown in FIG. 1 or FIG. 2 . As shown in Figure 3, the method includes:

步骤301、设备1获取业务1对应的路径约束信息1,该路径约束信息1用于确定传输业务1的路径1所满足的路径约束条件。In step 301, device 1 obtains path constraint information 1 corresponding to service 1, and the path constraint information 1 is used to determine the path constraint condition satisfied by path 1 for transmitting service 1.

该设备1为SD-WAN中用于传输业务1的业务报文的入口设备,即路径1上的首个设备。The device 1 is the ingress device used to transmit the service packet of the service 1 in SD-WAN, that is, the first device on the path 1.

一种具体的实施方式,该路径约束信息1包括业务1对应的服务等级协议(servicelevel agreement,SLA)信息和/或服务质量(quality of service,QoS)信息。该路径约束信息1具体包括以下信息中的一个或多个:时延、抖动、带宽、丢包率、误码率和带宽占用率。In a specific implementation manner, the path constraint information 1 includes service level agreement (service level agreement, SLA) information and/or service quality (quality of service, QoS) information corresponding to the service 1. The path constraint information 1 specifically includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, and bandwidth occupancy rate.

路径约束信息1中的时延可以为业务1在路径1上的最大允许传输时延。示例地,该时延可以为150毫秒(millisecond,ms)。路径约束信息1中的抖动可以为路径1上的各个隧道上的传输时延的最大允许波动范围。示例地,该抖动可以为-0.5ms至+0.5ms。路径约束信息1中的带宽可以为路径1上的各个隧道的最小带宽,该带宽可以是业务1的需求带宽。示例地,该带宽可以为500兆比特每秒(million bits per second,mbps)。路径约束信息1中的丢包率可以为业务1在路径1上的最大允许丢包率。示例地,该丢包率可以为0.5%。路径约束信息1中的误码率可以为业务1在路径1上传输的最大允许误码率。示例地,该误码率可以为0.1%。路径约束信息1中的带宽占用率可以为路径1上的各个隧道除业务1以外的其它业务的最大允许带宽占用率。示例地,该带宽占用率可以为30%。The delay in the path constraint information 1 may be the maximum allowable transmission delay of the service 1 on the path 1. Exemplarily, the delay may be 150 milliseconds (millisecond, ms). The jitter in the path constraint information 1 may be the maximum allowable fluctuation range of the transmission delay on each tunnel on the path 1 . Exemplarily, the jitter may be -0.5ms to +0.5ms. The bandwidth in the path constraint information 1 may be the minimum bandwidth of each tunnel on the path 1, and the bandwidth may be the required bandwidth of the service 1. Exemplarily, the bandwidth may be 500 megabits per second (million bits per second, mbps). The packet loss rate in the path constraint information 1 may be the maximum allowable packet loss rate of the service 1 on the path 1. Exemplarily, the packet loss rate may be 0.5%. The bit error rate in the path constraint information 1 may be the maximum allowable bit error rate of the service 1 transmitted on the path 1. Exemplarily, the bit error rate may be 0.1%. The bandwidth occupancy rate in the path constraint information 1 may be the maximum allowable bandwidth occupancy rate of services other than service 1 in each tunnel on the path 1 . Exemplarily, the bandwidth occupancy rate may be 30%.

设备1获取业务1对应的路径约束信息1的实现方式有多种,本申请实施例以以下两种实现方式为例进行说明。There are many implementation manners for the device 1 to acquire the path constraint information 1 corresponding to the service 1, and the embodiment of the present application uses the following two implementation manners as examples for illustration.

在第一种实现方式中,设备1在SD-WAN的控制设备的指示下获取路径约束信息1。示例地,图4是本申请实施例提供的一种设备1获取路径约束信息1的方法流程图。如图4所示,该方法可以包括:In the first implementation manner, device 1 obtains path constraint information 1 under the instruction of the SD-WAN control device. By way of example, FIG. 4 is a flow chart of a method for a device 1 to obtain path constraint information 1 provided in an embodiment of the present application. As shown in Figure 4, the method may include:

步骤3011A、设备1接收SD-WAN的控制设备发送的针对业务1的选路指令。Step 3011A, device 1 receives the routing instruction for service 1 sent by the SD-WAN control device.

该选路指令中包括路径约束信息1或业务1的业务类型。业务1的业务类型可以采用业务1对应的五元组标识。五元组包括源互联网协议(internet protocol,IP)地址、源端口、目的IP地址、目的端口以及传输层协议。传输层协议包括传输控制协议(transmissioncontrol protocol,TCP)或用户数据报协议(user datagram protocol,UDP)。业务1的业务类型还可以采用其它可唯一标识业务1的信息表示。The routing instruction includes path constraint information 1 or service type of service 1 . The service type of service 1 may be identified by the quintuple corresponding to service 1. The five-tuple includes a source internet protocol (internet protocol, IP) address, a source port, a destination IP address, a destination port, and a transport layer protocol. The transport layer protocol includes a transmission control protocol (transmission control protocol, TCP) or a user datagram protocol (user datagram protocol, UDP). The service type of service 1 may also be represented by other information that can uniquely identify service 1.

在本申请的一个可选实施例中,当控制设备确定业务1的当前传输路径中的一个或多个隧道不满足业务1的业务需求时,可以向设备1发送选路指令。In an optional embodiment of the present application, when the control device determines that one or more tunnels in the current transmission path of the service 1 do not meet the service requirements of the service 1, it may send a routing instruction to the device 1 .

一种具体的实施方式,SD-WAN中的各个网络设备可以周期性地向控制设备上报隧道状态信息。或者,SD-WAN中的各个网络设备可以在隧道状态信息发生变化后向控制设备上报变化后的隧道状态信息。控制设备可以基于接收到的隧道状态信息,确定当前传输路径中的隧道是否满足业务1的业务需求。In a specific implementation manner, each network device in the SD-WAN may periodically report tunnel status information to the control device. Alternatively, each network device in the SD-WAN may report the changed tunnel state information to the control device after the tunnel state information changes. The control device may determine whether the tunnel in the current transmission path meets the service requirement of service 1 based on the received tunnel state information.

在本申请的另一个可选实施例中,当控制设备接收到针对业务1的选路要求时,控制设备可以向设备1发送选路指令。In another optional embodiment of the present application, when the control device receives a routing request for service 1, the control device may send a routing instruction to device 1.

一种具体的实施方式,在SD-WAN开始传输业务1的业务报文之前,控制设备可以向设备1发送针对业务1的选路指令,以在SD-WAN中预先探测出业务1的传输路径。A specific implementation manner, before the SD-WAN starts to transmit the service packets of the service 1, the control device can send a routing instruction for the service 1 to the device 1, so as to pre-detect the transmission path of the service 1 in the SD-WAN .

步骤3012A、设备1根据选路指令,获取路径约束信息1。In step 3012A, device 1 acquires path constraint information 1 according to the routing instruction.

当该选路指令中包括路径约束信息1时,设备1从选路指令中获取路径约束信息1。当选路指令中包括业务1的业务类型时,设备1根据业务1的业务类型,确定与业务1的业务类型对应的本地保存的路径约束信息1。When the routing instruction includes path constraint information 1, device 1 acquires path constraint information 1 from the routing instruction. When the routing instruction includes the service type of service 1, device 1 determines locally stored path constraint information 1 corresponding to the service type of service 1 according to the service type of service 1.

一种具体的实施方式,设备1本地保存有多个业务类型与路径约束信息的对应关系。示例地,假设采用业务对应的五元组作为业务类型的标识,路径约束信息包括带宽和时延。则设备1中存储的业务类型与路径约束信息的对应关系可以如表1所示。In a specific implementation manner, the device 1 locally stores correspondences between multiple service types and path constraint information. For example, assuming that the five-tuple corresponding to the service is used as the identifier of the service type, the path constraint information includes bandwidth and delay. Then, the corresponding relationship between the service type and the path constraint information stored in the device 1 may be as shown in Table 1.

表1Table 1

Figure BDA0002342048350000121
Figure BDA0002342048350000121

示例地,假设选路指令中包括的业务1的业务类型表征为:(IP2,端口1,IP6,端口2,UDP),则设备1基于如表1所示的业务类型与路径约束信息的对应关系可以获取到业务1对应的路径约束信息1为:带宽为150mbps,时延为100ms。For example, assuming that the service type of service 1 included in the routing instruction is represented as: (IP2, port 1, IP6, port 2, UDP), then device 1 is based on the correspondence between the service type and the path constraint information shown in Table 1 The relationship can obtain the path constraint information 1 corresponding to the service 1: the bandwidth is 150 mbps, and the delay is 100 ms.

在第二种实现方式中,设备1可以在接收到业务1的业务报文时获取路径约束信息1。示例地,图5是本申请实施例提供的另一种设备1获取路径约束信息1的方法流程图。如图5所示,该方法可以包括:In the second implementation manner, device 1 may obtain path constraint information 1 when receiving a service packet of service 1 . By way of example, FIG. 5 is a flow chart of another method for obtaining path constraint information 1 by a device 1 provided in an embodiment of the present application. As shown in Figure 5, the method may include:

步骤3011B、设备1接收发送端设备发送的业务1的业务报文。In step 3011B, device 1 receives the service packet of service 1 sent by the sender device.

一种具体的实施方式,发送端设备可以是服务器或用户终端等。用户终端包括手机、可穿戴设备、计算机或者笔记本电脑等。In a specific implementation manner, the sending end device may be a server or a user terminal or the like. A user terminal includes a mobile phone, a wearable device, a computer or a laptop, and the like.

步骤3012B、设备1根据业务1的业务报文的业务类型,确定与该业务类型对应的本地保存的路径约束信息1。In step 3012B, device 1 determines locally stored path constraint information 1 corresponding to the service type according to the service type of the service packet of service 1.

此步骤的实现过程可参考上述步骤3012A的相关解释,本申请实施例在此不再赘述。For the implementation process of this step, refer to the relevant explanation of the above step 3012A, which will not be repeated in this embodiment of the present application.

一种具体的实施方式,在业务1的报文传输过程中,设备1可以周期性地获取路径约束信息1。或者,当设备1确定业务1的当前传输路径不满足业务1的业务需求时,例如,当前传输路径上的一个或多个网络设备发生拥塞时,设备1获取路径约束信息1。本申请实施例对在业务1的报文传输过程中,设备1获取路径约束信息1的触发条件不做限定。In a specific implementation manner, during the packet transmission process of the service 1, the device 1 may obtain the path constraint information 1 periodically. Or, when device 1 determines that the current transmission path of service 1 does not meet the service requirements of service 1, for example, when one or more network devices on the current transmission path are congested, device 1 acquires path constraint information 1 . The embodiment of the present application does not limit the triggering condition for the device 1 to obtain the path constraint information 1 during the packet transmission process of the service 1 .

步骤302、设备1确定自身满足路径约束信息1对应的路径约束条件。In step 302, the device 1 determines that it satisfies the path constraint condition corresponding to the path constraint information 1 .

一种具体的实施方式,当路径约束信息1中包括带宽时,路径约束信息1对应的路径约束条件包括:以设备1为入口设备的隧道中存在带宽大于或等于路径约束信息1中包括的带宽的目标隧道,且该目标隧道路由可达SD-WAN中用于传输业务1的业务报文的出口设备。其中,目标隧道路由可达SD-WAN中用于传输业务1的业务报文的出口设备,指业务1的业务报文通过该目标隧道能够传输至SD-WAN中用于传输业务1的业务报文的出口设备。In a specific implementation manner, when the path constraint information 1 includes bandwidth, the path constraint condition corresponding to the path constraint information 1 includes: there is a bandwidth greater than or equal to the bandwidth included in the path constraint information 1 in the tunnel with device 1 as the ingress device The target tunnel, and the target tunnel route can reach the egress device used to transmit the service packet of service 1 in SD-WAN. Among them, the target tunnel route can reach the egress device used to transmit the service packet of service 1 in SD-WAN, which means that the service packet of service 1 can be transmitted to the SD-WAN used to transmit the service packet of service 1 through the target tunnel. Text export equipment.

设备1在获取路径约束信息1后,可以获取以该设备1为入口设备的所有隧道的可用带宽。当以该设备1为入口设备的隧道中,存在一个或多个隧道的可用带宽大于或等于路径约束信息1包括的带宽时,设备1确定自身满足路径约束信息1对应的路径约束条件。After the device 1 obtains the path constraint information 1, it can obtain the available bandwidth of all tunnels with the device 1 as the ingress device. When the available bandwidth of one or more tunnels in the tunnel with the device 1 as the ingress device is greater than or equal to the bandwidth included in the path constraint information 1, the device 1 determines that it satisfies the path constraint condition corresponding to the path constraint information 1.

一种具体的实施方式,当路径约束信息1中不包括带宽时,设备1默认自身满足路径约束信息1对应的路径约束条件。此时设备1也可以不执行步骤302,直接执行步骤303。In a specific implementation manner, when the bandwidth is not included in the path constraint information 1, the device 1 defaults to satisfy the path constraint condition corresponding to the path constraint information 1. At this time, the device 1 may not perform step 302, but directly perform step 303.

步骤303、设备1通过隧道1向设备2发送数据报文1。Step 303 , device 1 sends data packet 1 to device 2 through tunnel 1 .

设备1为隧道1的入口设备,设备2为隧道1的出口设备。设备2可以是SD-WAN中用于传输业务1的业务报文的中间设备或出口设备。当路径约束信息1中包括带宽时,该隧道1为:以设备1为入口设备的隧道中,可用带宽大于或等于路径约束信息1包括的带宽且路由可达SD-WAN中用于传输业务1的业务报文的出口设备的隧道。当该路径约束信息1不包括带宽时,该隧道1可以是以设备1为入口设备的隧道中路由可达SD-WAN中用于传输业务1的业务报文的出口设备的任一隧道。Device 1 is the ingress device of tunnel 1, and device 2 is the egress device of tunnel 1. Device 2 may be an intermediate device or an egress device for transmitting service packets of service 1 in SD-WAN. When the path constraint information 1 includes bandwidth, the tunnel 1 is: In the tunnel with device 1 as the ingress device, the available bandwidth is greater than or equal to the bandwidth included in the path constraint information 1 and the route can be used to transmit business 1 in SD-WAN The tunnel of the egress device for service packets. When the path constraint information 1 does not include bandwidth, the tunnel 1 may be any tunnel in which the device 1 is the ingress device and can reach the egress device in the SD-WAN for transmitting the service message of the service 1.

一种具体的实施方式,当路径约束信息1包括时延,设备1在获取路径约束信息1之后,可以获取以设备1为入口设备的隧道中所有满足路径约束信息1中包括的带宽的隧道集合。设备1从隧道集合中获取隧道1。在设备1通过隧道1向设备2发送数据报文之后,设备1将隧道集合中的隧道1删除,避免通过同一隧道多次发送数据报文。In a specific implementation manner, when the path constraint information 1 includes delay, after obtaining the path constraint information 1, the device 1 can obtain all the tunnel sets that meet the bandwidth included in the path constraint information 1 among the tunnels with the device 1 as the ingress device . Device 1 obtains tunnel 1 from the tunnel set. After device 1 sends a data packet to device 2 through tunnel 1, device 1 deletes tunnel 1 in the tunnel set to avoid sending data packets through the same tunnel multiple times.

本申请实施例中,通过预先获取包含所有可用隧道的隧道集合,可以提高后续的隧道获取效率,从而提高选路效率。In the embodiment of the present application, by pre-acquiring a tunnel set including all available tunnels, the subsequent tunnel acquisition efficiency can be improved, thereby improving the route selection efficiency.

一种具体的实施方式,数据报文1为业务报文或探测报文。数据报文1中可以携带有路径约束信息1。当路径约束信息1包括时延时,数据报文1中还包括设备1发送数据报文1的发送时间戳。In a specific implementation manner, the data message 1 is a service message or a detection message. The data packet 1 may carry path constraint information 1 . When the path constraint information 1 includes a delay, the data packet 1 also includes a sending timestamp when the device 1 sends the data packet 1 .

第一种情况,数据报文1为业务报文。在业务1的报文传输过程中,设备1在接收到发送端设备发送的业务报文后,可以在业务报文中插入路径约束信息1得到数据报文1。In the first case, the data packet 1 is a service packet. During the message transmission process of service 1, after receiving the service message sent by the sender device, device 1 may insert path constraint information 1 into the service message to obtain data message 1.

第二种情况,数据报文1为探测报文。设备1在确定自身满足路径约束信息1对应的路径约束条件后,生成包括路径约束信息1的探测报文。该探测报文用于探测业务1在SD-WAN中的路径1,该探测报文通常不携带具体的业务信息。In the second case, the data packet 1 is a detection packet. After determining that the device 1 satisfies the path constraint condition corresponding to the path constraint information 1, the device 1 generates a detection message including the path constraint information 1. The detection message is used to detect the path 1 of the service 1 in the SD-WAN, and the detection message usually does not carry specific service information.

一种具体的实施方式,设备1还可以存储业务1与隧道1之间的对应关系。在设备1存储业务1与隧道1之间的对应关系之后,当设备1再接收到业务1的业务报文时,可以基于业务1与隧道1之间的对应关系,获取业务1对应的隧道1,并通过隧道1发送该业务1的业务报文。该设备1存储业务1与隧道1的之间的对应关系的过程与设备1通过隧道1向设备2发送数据报文1的过程可以同时执行;或者,设备1可以先通过隧道1向设备2发送数据报文1,再存储业务1与隧道1的之间的对应关系;又或者,设备1可以先存储业务1与隧道1之间的对应关系,再通过隧道1向设备2发送数据报文1,本申请实施例对此不做限定。In a specific implementation manner, the device 1 may also store the correspondence between the service 1 and the tunnel 1 . After device 1 stores the correspondence between service 1 and tunnel 1, when device 1 receives the service packet of service 1 again, it can obtain the tunnel 1 corresponding to service 1 based on the correspondence between service 1 and tunnel 1 , and send the service packet of service 1 through tunnel 1. The process of device 1 storing the corresponding relationship between service 1 and tunnel 1 and the process of device 1 sending data packet 1 to device 2 through tunnel 1 can be executed at the same time; or, device 1 can first send data packet to device 2 through tunnel 1 Data message 1, and then store the corresponding relationship between service 1 and tunnel 1; or, device 1 can first store the corresponding relationship between service 1 and tunnel 1, and then send data message 1 to device 2 through tunnel 1 , which is not limited in this embodiment of the present application.

步骤304、设备2根据数据报文1,确定业务1对应的路径约束信息1。Step 304 , the device 2 determines the path constraint information 1 corresponding to the service 1 according to the data packet 1 .

在第一种实现方式中,数据报文1中包括路径约束信息1,则设备2直接从数据报文1中获取该路径约束信息1。In the first implementation manner, the data packet 1 includes the path constraint information 1, and the device 2 obtains the path constraint information 1 directly from the data packet 1.

在第二种实现方式中,数据报文1中不包括路径约束信息1。当数据报文1为业务报文时,设备2根据该业务报文的业务类型,确定与该业务类型对应的本地保存的路径约束信息1。当数据报文1为探测报文时,该探测报文中包括业务1的业务类型标识,设备2先根据该业务类型标识确定业务1的业务类型,再确定与该业务类型对应的本地保存的路径约束信息1。In the second implementation manner, the data packet 1 does not include the path constraint information 1 . When the data message 1 is a service message, the device 2 determines the locally stored path constraint information 1 corresponding to the service type according to the service type of the service message. When the data packet 1 is a detection packet, the detection packet includes the service type identifier of service 1, and device 2 first determines the service type of service 1 according to the service type identifier, and then determines the locally saved service type corresponding to the service type. Path constraint information1.

步骤305、设备2确定自身不满足路径约束信息1对应的路径约束条件。Step 305 , the device 2 determines that it does not satisfy the path constraint condition corresponding to the path constraint information 1 .

设备2确定自身不满足路径约束信息1对应的路径约束条件,也即是,设备2确定自身不能够作为路径1上用于传输业务1的节点。The device 2 determines that it does not satisfy the path constraint condition corresponding to the path constraint information 1, that is, the device 2 determines that it cannot be used as a node for transmitting the service 1 on the path 1.

第一种情况,设备2是SD-WAN中用于传输业务1的业务报文的中间设备:In the first case, device 2 is an intermediate device used to transmit service packets of service 1 in SD-WAN:

当该路径约束信息1包括带宽,时延,抖动,丢包率,误码率和带宽占用率时,该路径约束信息1对应的路径约束条件包括:以设备2为入口设备的隧道中存在满足路径约束信息1包括的带宽的目标隧道,且该目标隧道路由可达SD-WAN中用于传输业务1的业务报文的出口设备;数据报文1在隧道1上的实际传输时延,实际抖动,实际丢包率,实际误码率和实际带宽占用率分别满足路径约束信息1包括的时延,抖动,丢包率,误码率和带宽占用率。当以设备2为入口设备的隧道中不存在满足路径约束信息1包括的带宽的目标隧道,数据报文1在隧道1上的实际传输时延大于路径约束信息1包括的时延,在隧道1上的实际抖动超出路径约束信息1包括的抖动范围,在隧道1上的实际丢包率高于路径约束信息1包括的丢包率,在隧道1上的实际误码率大于路径约束信息1包括的误码率,和/或,其它业务在隧道1上的实际带宽占用率大于路径约束信息1包括的带宽占用率时,设备2确定自身不满足路径约束信息1对应的路径约束条件。When the path constraint information 1 includes bandwidth, delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate, the path constraint conditions corresponding to the path constraint information 1 include: there is a tunnel with device 2 as the ingress device that satisfies The bandwidth target tunnel included in path constraint information 1, and the target tunnel route can reach the egress device used to transmit the service message of service 1 in SD-WAN; the actual transmission delay of data message 1 on tunnel 1, the actual The jitter, actual packet loss rate, actual bit error rate, and actual bandwidth occupancy rate satisfy the delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate included in path constraint information 1, respectively. When there is no target tunnel that satisfies the bandwidth included in path constraint information 1 in the tunnel with device 2 as the ingress device, the actual transmission delay of data packet 1 on tunnel 1 is greater than the delay included in path constraint information 1. The actual jitter on Tunnel 1 exceeds the jitter range included in Path Constraint Information 1, the actual packet loss rate on Tunnel 1 is higher than the packet loss rate included in Path Constraint Information 1, and the actual bit error rate on Tunnel 1 is greater than that included in Path Constraint Information 1 and/or, when the actual bandwidth occupancy rate of other services on tunnel 1 is greater than the bandwidth occupancy rate included in path constraint information 1, device 2 determines that it does not meet the path constraint condition corresponding to path constraint information 1.

第二种情况,设备2是SD-WAN中用于传输业务1的业务报文的出口设备:In the second case, device 2 is the egress device used to transmit service packets of service 1 in SD-WAN:

当路径约束信息1包括时延,抖动,丢包率,误码率和带宽占用率时,该路径约束信息1对应的路径约束条件包括:数据报文1在隧道1上的实际传输时延,实际抖动,实际丢包率,实际误码率和实际带宽占用率分别满足路径约束信息1包括的时延,抖动,丢包率,误码率和带宽占用率。当数据报文1在隧道1上的实际传输时延大于路径约束信息1包括的时延,在隧道1上的实际抖动超出路径约束信息1包括的抖动范围,在隧道1上的实际丢包率高于路径约束信息1包括的丢包率,在隧道1上的实际误码率大于路径约束信息1包括的误码率,和/或,其它业务在隧道1上的实际带宽占用率大于路径约束信息1包括的带宽占用率时,设备2确定自身不满足路径约束信息1对应的路径约束条件。When the path constraint information 1 includes delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate, the path constraint conditions corresponding to the path constraint information 1 include: the actual transmission delay of the data message 1 on the tunnel 1, The actual jitter, actual packet loss rate, actual bit error rate, and actual bandwidth occupancy rate respectively satisfy the delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate included in the path constraint information 1. When the actual transmission delay of data packet 1 on tunnel 1 is greater than the delay included in path constraint information 1, the actual jitter on tunnel 1 exceeds the jitter range included in path constraint information 1, and the actual packet loss rate on tunnel 1 Higher than the packet loss rate included in path constraint information 1, the actual bit error rate on tunnel 1 is greater than the bit error rate included in path constraint information 1, and/or, the actual bandwidth occupancy rate of other services on tunnel 1 is greater than the path constraint When the bandwidth occupancy rate included in the information 1, the device 2 determines that it does not satisfy the path constraint condition corresponding to the path constraint information 1.

当该路径约束信息1仅包括带宽时,设备2可以默认自身满足路径约束信息1对应的路径约束条件。则当设备2接收到数据报文1时,确定完成对业务1的选路,得到SD-WAN中传输业务1的路径1。When the path constraint information 1 includes only bandwidth, the device 2 may default that it satisfies the path constraint condition corresponding to the path constraint information 1 . Then, when the device 2 receives the data packet 1, it is determined that the route selection for the service 1 is completed, and the path 1 for transmitting the service 1 in the SD-WAN is obtained.

示例地,本申请实施例以路径约束信息1包括时延为例,对设备2判断自身是否满足路径约束信息1对应的路径约束条件的过程进行说明,包括以下两种实现方式:By way of example, the embodiment of the present application takes the path constraint information 1 including delay as an example to describe the process of the device 2 judging whether it satisfies the path constraint condition corresponding to the path constraint information 1, including the following two implementation methods:

在第一种实现方式中,路径约束信息1中的时延为数据报文1在SD-WAN中的最大允许传输时延。该数据报文1中还包括SD-WAN中用于传输业务1的业务报文的入口设备(本申请实施例中的设备1)发送数据报文1的发送时间戳。则设备2判断自身是否满足路径约束信息1对应的路径约束条件的过程包括以下步骤S11A至步骤S13A:In the first implementation manner, the delay in the path constraint information 1 is the maximum allowable transmission delay of the data packet 1 in the SD-WAN. The data message 1 also includes the sending time stamp of the data message 1 sent by the ingress device (device 1 in the embodiment of this application) used to transmit the service message of the service 1 in SD-WAN. Then the process of determining whether the device 2 satisfies the path constraint condition corresponding to the path constraint information 1 includes the following steps S11A to S13A:

在步骤S11A中,设备2获取设备2接收到数据报文1的接收时间戳。In step S11A, the device 2 obtains the receiving time stamp of the data packet 1 received by the device 2 .

示例地,该接收时间戳为2019-11-27-09:49:50:160,表示设备2接收到数据报文1的时刻为2019年11月27日09时49分50秒160ms。For example, the receiving timestamp is 2019-11-27-09:49:50:160, indicating that the time when device 2 receives data packet 1 is 09:49:50:160ms on November 27, 2019.

在步骤S12A中,设备2将SD-WAN中用于传输业务1的业务报文的入口设备发送数据报文1的发送时间戳与设备2接收到数据报文1的接收时间戳的时间差值确定为:数据报文1从SD-WAN中用于传输业务1的业务报文的入口设备到设备2的实际传输时延。In step S12A, device 2 calculates the time difference between the sending time stamp of data message 1 sent by the ingress device used to transmit the service message of service 1 in SD-WAN and the receiving time stamp of data message 1 received by device 2 It is determined as: the actual transmission delay of data message 1 from the ingress device used to transmit the service message of service 1 in SD-WAN to device 2.

示例地,SD-WAN中用于传输业务1的业务报文的入口设备发送数据报文1的发送时间戳为2019-11-27-09:49:50:120,结合步骤S11A中的例子可知,数据报文1从SD-WAN中用于传输业务1的业务报文的入口设备到设备2的实际传输时延为40ms。For example, the time stamp of data message 1 sent by the ingress device used to transmit the service message of service 1 in SD-WAN is 2019-11-27-09:49:50:120, combined with the example in step S11A, it can be known , the actual transmission delay of data message 1 from the ingress device used to transmit the service message of service 1 in SD-WAN to device 2 is 40ms.

在步骤S13A中,当数据报文1从SD-WAN中用于传输业务1的业务报文的入口设备到设备2的实际时延大于路径约束信息1包括的时延时,设备2确定自身不满足路径约束信息1对应的路径约束条件。In step S13A, when the actual delay of the data message 1 from the ingress device used to transmit the service message of the service 1 in the SD-WAN to the device 2 is greater than the delay included in the path constraint information 1, the device 2 determines that it does not Satisfy the path constraint condition corresponding to the path constraint information 1.

本申请实施例中,由于数据报文1中携带的是SD-WAN中用于传输业务1的业务报文的入口设备发送数据报文1的发送时间戳,该发送时间戳是固定不变的。当设备2需要向下一跳设备发送数据报文时,设备2无需更改接收到的数据报文1中携带的发送时间戳,而可以直接转发该数据报文1,可以节约设备的计算资源。In the embodiment of this application, since the data message 1 carries the sending time stamp of the data message 1 sent by the ingress device used to transmit the service message of the service 1 in SD-WAN, the sending time stamp is fixed . When device 2 needs to send a data packet to the next hop device, device 2 does not need to change the sending timestamp carried in the received data packet 1, but can directly forward the data packet 1, which can save computing resources of the device.

在第二种实现方式中,路径约束信息1中的时延为数据报文1在SD-WAN中设备2的上一跳设备(本申请实施例中的设备1)到SD-WAN中用于传输业务1的业务报文的出口设备的最大允许传输时延。该数据报文1中还包括该上一跳设备发送数据报文1的发送时间戳。则设备2判断自身是否满足路径约束信息1对应的路径约束条件的过程包括以下步骤S11B至步骤S13B:In the second implementation, the delay in the path constraint information 1 is the last hop device (device 1 in the embodiment of this application) of the data packet 1 in the SD-WAN device 2 to the SD-WAN for The maximum allowable transmission delay of the egress device that transmits the service packets of service 1. The data packet 1 also includes a sending timestamp of the data packet 1 sent by the previous hop device. Then the process of the device 2 judging whether it satisfies the path constraint condition corresponding to the path constraint information 1 includes the following steps S11B to S13B:

在步骤S11B中,设备2获取设备1接收到数据报文1的接收时间戳。In step S11B, device 2 obtains the receiving time stamp of data packet 1 received by device 1 .

示例地,该接收时间戳为2019-11-27-09:49:50:160。Exemplarily, the receiving timestamp is 2019-11-27-09:49:50:160.

在步骤S12B中,设备2将上一跳设备发送数据报文1的发送时间戳与设备2接收到数据报文1的接收时间戳的差值,确定为数据报文1在隧道1上的实际传输时延。In step S12B, device 2 determines the difference between the sending timestamp of data packet 1 sent by the previous hop device and the receiving timestamp of data packet 1 received by device 2 as the actual value of data packet 1 on tunnel 1. transmission delay.

示例地,上一跳设备发送数据报文1的发送时间戳为2019-11-27-09:49:50:120,结合步骤S11A中的例子可知,数据报文1在隧道1上的实际传输时延为20ms。For example, the sending time stamp of the data message 1 sent by the previous hop device is 2019-11-27-09:49:50:120, combined with the example in step S11A, it can be seen that the actual transmission of the data message 1 on the tunnel 1 The delay is 20ms.

在步骤S13B中,当数据报文1在隧道1上的实际传输时延大于路径约束信息1中包括的时延时,设备2确定自身不满足路径约束信息1对应的路径约束条件。In step S13B, when the actual transmission delay of the data packet 1 on the tunnel 1 is greater than the delay included in the path constraint information 1, the device 2 determines that it does not satisfy the path constraint condition corresponding to the path constraint information 1.

步骤306、设备2向设备1发送反馈报文1,该反馈报文1中携带有指示信息1。In step 306, the device 2 sends a feedback message 1 to the device 1, and the feedback message 1 carries the indication information 1.

该指示信息1用于向设备1指示该设备2不能作为路径1上用于传输业务1的节点。The indication information 1 is used to indicate to the device 1 that the device 2 cannot be used as a node on the path 1 for transmitting the service 1 .

一种具体的实施方式,当隧道1为双向隧道时,设备2通过隧道1向设备1发送反馈报文1。或者,设备2可以采用点对点传输方式向设备1发送反馈报文1。本申请实施例对设备2向设备1发送反馈报文1的方式不做限定。In a specific implementation manner, when the tunnel 1 is a bidirectional tunnel, the device 2 sends the feedback message 1 to the device 1 through the tunnel 1. Alternatively, device 2 may send the feedback message 1 to device 1 in a point-to-point transmission manner. The embodiment of the present application does not limit the manner in which the device 2 sends the feedback message 1 to the device 1 .

步骤307、设备1根据指示信息1,确定设备2不能作为路径1上用于传输业务1的节点。In step 307, device 1 determines, according to indication information 1, that device 2 cannot be used as a node for transmitting service 1 on path 1.

一种具体的实施方式,设备1存储有业务1与隧道1之间的对应关系。设备1在确定设备2不能作为路径1上用于传输业务1的节点后,设备1删除业务1与隧道1之间的对应关系,即设备1后续再接收到业务1的业务报文时,不会再通过隧道1发送该业务1的业务报文。In a specific implementation manner, the device 1 stores the correspondence between the service 1 and the tunnel 1 . After device 1 determines that device 2 cannot be used as a node for transmitting service 1 on path 1, device 1 deletes the correspondence between service 1 and tunnel 1, that is, when device 1 subsequently receives a service packet of service 1, it does not The service packet of the service 1 will be sent through the tunnel 1 again.

设备1确定设备2不能作为路径1上用于传输业务1的节点之后,设备1重新选择路径1上的下游设备。一种具体的实施方式,当以设备1为入口设备的隧道中包括不同于隧道1的隧道2时,可以执行下述步骤308。当路径约束信息1中包括带宽时,该隧道2为:以设备1为入口设备的隧道中,不同于隧道1、可用带宽大于或等于路径约束信息1包括的带宽且路由可达SD-WAN中用于传输业务1的业务报文的出口设备的隧道。当该路径约束信息1不包括带宽时,该隧道1可以是以设备1为入口设备的隧道中不同于隧道1且路由可达SD-WAN中用于传输业务1的业务报文的出口设备的任一隧道。After device 1 determines that device 2 cannot be used as a node for transmitting service 1 on path 1, device 1 reselects a downstream device on path 1. In a specific implementation manner, when the tunnel with device 1 as the ingress device includes tunnel 2 different from tunnel 1, the following step 308 may be performed. When path constraint information 1 includes bandwidth, the tunnel 2 is: the tunnel with device 1 as the ingress device, different from tunnel 1, the available bandwidth is greater than or equal to the bandwidth included in path constraint information 1, and the route is reachable in SD-WAN The tunnel of the egress device used to transmit the service packets of service 1. When the path constraint information 1 does not include bandwidth, the tunnel 1 may be a tunnel in which device 1 is the ingress device, which is different from tunnel 1 and can be routed to the egress device used to transmit the service packet of service 1 in SD-WAN Either tunnel.

步骤308、设备1通过隧道2向设备3发送数据报文2。In step 308, device 1 sends data packet 2 to device 3 through tunnel 2.

设备1为隧道2的入口设备,设备3为隧道2的出口设备。该设备3可以是SD-WAN中用于传输业务1的业务报文的中间设备或出口设备。此步骤的解释参考上述步骤303的相关解释,本申请实施例在此不再赘述。Device 1 is the ingress device of tunnel 2, and device 3 is the egress device of tunnel 2. The device 3 may be an intermediate device or an egress device for transmitting service packets of the service 1 in SD-WAN. For the explanation of this step, refer to the relevant explanation of the above-mentioned step 303, and the embodiment of the present application will not repeat it here.

步骤309、设备3根据数据报文2,确定业务1对应的路径约束信息1。Step 309 , the device 3 determines the path constraint information 1 corresponding to the service 1 according to the data packet 2 .

此步骤的解释参考上述步骤304的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 304, which will not be repeated here in this embodiment of the present application.

步骤310、设备3确定自身不满足路径约束信息1对应的路径约束条件。In step 310, the device 3 determines that it does not satisfy the path constraint condition corresponding to the path constraint information 1.

此步骤的解释参考上述步骤305的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 305, and the embodiment of the present application will not repeat it here.

步骤311、设备3向设备1发送反馈报文2,该反馈报文2中携带有指示信息2。In step 311, the device 3 sends a feedback message 2 to the device 1, and the feedback message 2 carries the indication information 2.

该指示信息2用于向设备1指示该设备3不能作为路径1上用于传输业务1的节点。此步骤的解释参考上述步骤306的相关解释,本申请实施例在此不再赘述。The indication information 2 is used to indicate to the device 1 that the device 3 cannot be used as a node on the path 1 for transmitting the service 1 . For the explanation of this step, refer to the relevant explanation of the above-mentioned step 306, which will not be repeated here in this embodiment of the present application.

步骤312、设备1根据指示信息2,确定设备3不能作为路径1上用于传输业务1的节点。Step 312 , the device 1 determines according to the indication information 2 that the device 3 cannot be used as a node for transmitting the service 1 on the path 1 .

此步骤的解释参考上述步骤307的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 307, which will not be repeated here in the embodiment of the present application.

一种具体的实施方式,当以设备1为入口设备的隧道中路由可达SD-WAN中用于传输业务1的业务报文的出口设备仅包括隧道1和隧道2;或者,路径约束信息1中包括带宽,以设备1为入口设备的隧道中可用带宽大于或等于路径约束信息1包括的带宽且路由可达SD-WAN中用于传输业务1的业务报文的出口设备仅包括隧道1和隧道2时,可以执行下述步骤313。A specific implementation manner, when the route in the tunnel with device 1 as the ingress device is reachable, the egress device used to transmit the service message of service 1 in SD-WAN only includes tunnel 1 and tunnel 2; or, the path constraint information 1 The available bandwidth in the tunnel with device 1 as the ingress device is greater than or equal to the bandwidth included in path constraint information 1 and the route is reachable. The egress device used to transmit the service message of service 1 in SD-WAN only includes tunnel 1 and In tunnel 2, the following step 313 may be performed.

步骤313、设备1向SD-WAN的控制设备发送通知报文,该通知报文携带指示信息3。Step 313 , device 1 sends a notification message to the SD-WAN control device, and the notification message carries indication information 3 .

该指示信息3用于向该控制设备指示SD-WAN中不存在能够传输业务1的路径1。一种具体的实施方式,该通知报文可以为边界网关协议(border gateway protocol,BGP)消息。示例地,当通知报文为BGP打开(open)消息时,指示信息3可以承载于BGP打开消息的可选参数(optional parameters)字段。该指示信息3中携带有业务1的业务类型,该业务1的业务类型可以采用TLV(type-length-value)编码后承载于BGP打开消息的可选参数字段。The indication information 3 is used to indicate to the control device that there is no path 1 capable of transmitting the service 1 in the SD-WAN. In a specific implementation manner, the notification message may be a border gateway protocol (border gateway protocol, BGP) message. For example, when the notification message is a BGP open (open) message, the indication information 3 may be carried in an optional parameter (optional parameters) field of the BGP open message. The indication information 3 carries the service type of the service 1, and the service type of the service 1 may be encoded by TLV (type-length-value) and carried in the optional parameter field of the BGP open message.

一种具体的实施方式,控制设备在接收到设备1发送的通知报文后,根据该SD-WAN中各个网络设备上报的隧道状态信息确定业务1的传输路径,使该SD-WAN中的网络设备采用控制设备确定的传输路径传输业务1的业务报文;或者,控制设备停止向该SD-WAN分配业务1。In a specific implementation manner, after receiving the notification message sent by device 1, the control device determines the transmission path of service 1 according to the tunnel status information reported by each network device in the SD-WAN, so that the network in the SD-WAN The device uses the transmission path determined by the control device to transmit the service packet of service 1; or, the control device stops allocating service 1 to the SD-WAN.

图6是本申请实施例提供的另一种SD-WAN中的选路方法的流程示意图。该方法可以应用于如图1或图2所示的SD-WAN中的通信系统中。如图6所示,该方法包括:Fig. 6 is a schematic flowchart of another SD-WAN routing method provided by an embodiment of the present application. The method can be applied to a communication system in SD-WAN as shown in FIG. 1 or FIG. 2 . As shown in Figure 6, the method includes:

步骤601、设备1获取业务2对应的路径约束信息2,该路径约束信息2用于确定传输业务2的路径2所满足的路径约束条件。In step 601, the device 1 obtains the path constraint information 2 corresponding to the service 2, and the path constraint information 2 is used to determine the path constraint condition that the path 2 for transmitting the service 2 satisfies.

一种具体的实施方式,该路径约束信息2包括业务2对应的SLA信息和/或QoS信息。该路径约束信息2具体包括以下信息中的一个或多个:时延、抖动、带宽、丢包率、误码率和带宽占用率。此步骤的解释可参考上述步骤301的相关解释,本申请实施例在此不再赘述。A specific implementation manner, the path constraint information 2 includes SLA information and/or QoS information corresponding to the service 2 . The path constraint information 2 specifically includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, and bandwidth occupancy rate. For the explanation of this step, refer to the relevant explanation of the above step 301, which will not be repeated here in the embodiment of the present application.

步骤602、设备1确定自身满足路径约束信息2对应的路径约束条件。In step 602, the device 1 determines that it satisfies the path constraint condition corresponding to the path constraint information 2.

一种具体的实施方式,当路径约束信息2中不包括带宽时,设备1默认自身满足路径约束信息2对应的路径约束条件。此时设备2也可以不执行步骤602,直接执行步骤603。此步骤的解释参考上述步骤302的相关解释,本申请实施例在此不再赘述。In a specific implementation manner, when the path constraint information 2 does not include the bandwidth, the device 1 defaults to satisfy the path constraint condition corresponding to the path constraint information 2 . At this time, the device 2 may not perform step 602, but directly perform step 603. For the explanation of this step, refer to the relevant explanation of the above-mentioned step 302, and the embodiment of the present application will not repeat it here.

步骤603、设备1通过隧道3向设备4发送数据报文3。Step 603 , device 1 sends data message 3 to device 4 through tunnel 3 .

设备1为隧道3的入口设备,设备4为隧道3的出口设备。此步骤的解释参考上述步骤303的相关解释,本申请实施例在此不再赘述。Device 1 is the ingress device of tunnel 3, and device 4 is the egress device of tunnel 3. For the explanation of this step, refer to the relevant explanation of the above-mentioned step 303, and the embodiment of the present application will not repeat it here.

步骤604、设备4根据数据报文3,确定业务2对应的路径约束信息2。Step 604 , the device 4 determines the path constraint information 2 corresponding to the service 2 according to the data packet 3 .

此步骤的解释参考上述步骤304的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 304, which will not be repeated here in this embodiment of the present application.

步骤605、设备4确定自身满足路径约束信息2对应的路径约束条件。Step 605 , the device 4 determines that it satisfies the path constraint condition corresponding to the path constraint information 2 .

设备4确定自身满足路径约束信息2对应的路径约束条件,也即是,设备4确定自身能够作为路径2上用于传输业务2的节点。The device 4 determines that it satisfies the path constraint condition corresponding to the path constraint information 2 , that is, the device 4 determines that it can be used as a node on the path 2 for transmitting the service 2 .

第一种情况,设备4是SD-WAN中用于传输业务2的业务报文的中间设备:In the first case, device 4 is an intermediate device used to transmit service packets of service 2 in SD-WAN:

当该路径约束信息2包括带宽,时延,抖动,丢包率,误码率和带宽占用率时,该路径约束信息2对应的路径约束条件包括:以设备4为入口设备的隧道中存在满足路径约束信息2包括的带宽的目标隧道,且该目标隧道路由可达SD-WAN中用于传输业务2的业务报文的出口设备;数据报文3在隧道3上的实际传输时延,实际抖动,实际丢包率,实际误码率和实际带宽占用率分别满足路径约束信息2包括的时延,抖动,丢包率,误码率和带宽占用率。当以设备4为入口设备的隧道中存在满足路径约束信息2包括的带宽的目标隧道,数据报文3在隧道3上的实际传输时延小于路径约束信息2包括的时延,在隧道3上的实际抖动处于路径约束信息2包括的抖动范围内,在隧道3上的实际丢包率不高于路径约束信息2包括的丢包率,在隧道3上的实际误码率小于或等于路径约束信息2包括的误码率,且其它业务在隧道3上的实际带宽占用率小于或等于路径约束信息2包括的带宽占用率时,设备4确定自身满足路径约束信息2对应的路径约束条件。When the path constraint information 2 includes bandwidth, delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate, the path constraint conditions corresponding to the path constraint information 2 include: there is a tunnel with device 4 as the ingress device that satisfies The bandwidth target tunnel included in the path constraint information 2, and the target tunnel route can reach the egress device used to transmit the service packet of the service 2 in the SD-WAN; the actual transmission delay of the data packet 3 on the tunnel 3, the actual The jitter, actual packet loss rate, actual bit error rate, and actual bandwidth occupancy rate satisfy the delay, jitter, packet loss rate, bit error rate, and bandwidth occupancy rate included in the path constraint information 2, respectively. When there is a target tunnel that satisfies the bandwidth included in path constraint information 2 in the tunnel with device 4 as the ingress device, the actual transmission delay of data packet 3 on tunnel 3 is less than the delay included in path constraint information 2, and on tunnel 3 The actual jitter is within the jitter range included in path constraint information 2, the actual packet loss rate on tunnel 3 is not higher than the packet loss rate included in path constraint information 2, and the actual bit error rate on tunnel 3 is less than or equal to the path constraint When the bit error rate included in information 2 and the actual bandwidth occupancy rate of other services on tunnel 3 is less than or equal to the bandwidth occupancy rate included in path constraint information 2, device 4 determines that it meets the path constraint condition corresponding to path constraint information 2.

第二种情况,设备4是SD-WAN中用于传输业务2的业务报文的出口设备:In the second case, device 4 is the egress device used to transmit service packets of service 2 in SD-WAN:

当该路径约束信息2包括时延,抖动,丢包率,误码率和带宽占用率时,该路径约束信息2对应的路径约束条件包括:数据报文3在隧道3上的实际传输时延,实际抖动,实际丢包率,实际误码率和实际带宽占用率分别满足路径约束信息2包括的时延,抖动,丢包率,误码率和带宽占用率。当数据报文3在隧道3上的实际传输时延小于或等于路径约束信息2包括的时延,在隧道3上的实际抖动处于路径约束信息2包括的抖动范围内,在隧道3上的实际丢包率不高于路径约束信息2包括的丢包率,在隧道3上的实际误码率小于或等于路径约束信息2包括的误码率,且其它业务在隧道3上的实际带宽占用率小于或等于路径约束信息2包括的带宽占用率时,设备4确定自身满足路径约束信息2对应的路径约束条件。When the path constraint information 2 includes delay, jitter, packet loss rate, bit error rate and bandwidth occupancy rate, the path constraint condition corresponding to the path constraint information 2 includes: the actual transmission delay of the data message 3 on the tunnel 3 , the actual jitter, the actual packet loss rate, the actual bit error rate and the actual bandwidth occupancy rate respectively satisfy the delay, jitter, packet loss rate, bit error rate and bandwidth occupancy rate included in the path constraint information 2. When the actual transmission delay of data packet 3 on tunnel 3 is less than or equal to the delay included in path constraint information 2, the actual jitter on tunnel 3 is within the jitter range included in path constraint information 2, and the actual transmission delay on tunnel 3 The packet loss rate is not higher than the packet loss rate included in path constraint information 2, the actual bit error rate on tunnel 3 is less than or equal to the bit error rate included in path constraint information 2, and the actual bandwidth occupancy rate of other services on tunnel 3 When it is less than or equal to the bandwidth occupancy rate included in the path constraint information 2, the device 4 determines that it satisfies the path constraint condition corresponding to the path constraint information 2.

当该路径约束信息2仅包括带宽时,设备4可以默认该自身满足路径约束信息2对应的路径约束条件,则当设备4接收到数据报文3时,确定完成对业务2的选路,得到SD-WAN中传输业务2的路径2,该路径2包括:设备1至设备4。When the path constraint information 2 only includes bandwidth, the device 4 can default that it satisfies the path constraint condition corresponding to the path constraint information 2, then when the device 4 receives the data packet 3, it determines to complete the route selection for the service 2, and obtains Path 2 of transmission service 2 in SD-WAN, the path 2 includes: device 1 to device 4.

其中,设备4判断自身是否满足路径约束信息2对应的路径约束条件的实现过程,可参考上述步骤305中描述的关于设备2的相关实现过程,本申请实施例在此不再赘述。The implementation process of the device 4 judging whether it satisfies the path constraint condition corresponding to the path constraint information 2 can refer to the related implementation process of the device 2 described in the above step 305, and the embodiment of the present application will not repeat it here.

本申请实施例以设备4为SD-WAN中用于传输业务2的业务报文的中间设备为例进行说明。In this embodiment of the present application, the device 4 is an intermediate device for transmitting service packets of the service 2 in the SD-WAN as an example for illustration.

步骤606、设备4通过隧道4向设备5发送数据报文4。Step 606 , the device 4 sends the data packet 4 to the device 5 through the tunnel 4 .

设备4为隧道4的入口设备,设备5为隧道4的出口设备。一种具体的实施方式,设备5可以是SD-WAN中用于传输业务2的业务报文的中间设备或出口设备。此步骤的解释参考上述步骤303的相关解释,本申请实施例在此不再赘述。Device 4 is the entrance device of tunnel 4, and device 5 is the exit device of tunnel 4. In a specific implementation manner, the device 5 may be an intermediate device or an egress device for transmitting service packets of the service 2 in SD-WAN. For the explanation of this step, refer to the relevant explanation of the above-mentioned step 303, and the embodiment of the present application will not repeat it here.

步骤607、设备5根据数据报文4,确定业务2对应的路径约束信息2。Step 607 , the device 5 determines the path constraint information 2 corresponding to the service 2 according to the data packet 4 .

此步骤的解释参考上述步骤304的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 304, which will not be repeated here in this embodiment of the present application.

步骤608、设备5确定自身不满足路径约束信息2对应的路径约束条件。Step 608 , the device 5 determines that it does not satisfy the path constraint condition corresponding to the path constraint information 2 .

此步骤的解释参考上述步骤305的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 305, and the embodiment of the present application will not repeat it here.

步骤609、设备5向设备4发送反馈报文3,该反馈报文3中携带有指示信息4。Step 609, the device 5 sends a feedback message 3 to the device 4, and the feedback message 3 carries the indication information 4.

该指示信息4用于向设备4指示该设备5不能作为路径2上用于传输业务2的节点。The indication information 4 is used to indicate to the device 4 that the device 5 cannot be used as a node for transmitting the service 2 on the path 2 .

一种具体的实施方式,当隧道4为双向隧道时,设备5通过隧道4向设备4发送反馈报文3。或者,设备5可以采用点对点传输方式向设备4发送反馈报文3。本申请实施例对设备5向设备4发送反馈报文3的方式不做限定。In a specific implementation manner, when the tunnel 4 is a bidirectional tunnel, the device 5 sends the feedback message 3 to the device 4 through the tunnel 4 . Alternatively, device 5 may send the feedback message 3 to device 4 in a point-to-point transmission manner. The embodiment of the present application does not limit the manner in which the device 5 sends the feedback message 3 to the device 4 .

步骤610、设备4根据指示信息4,确定设备5不能作为路径2上用于传输业务2的节点。In step 610, the device 4 determines, according to the indication information 4, that the device 5 cannot be used as a node for transmitting the service 2 on the path 2.

此步骤的解释参考上述步骤307的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 307, which will not be repeated here in the embodiment of the present application.

设备4确定设备5不能作为路径2上用于传输业务2的节点之后,设备4重新选择路径2上的下游设备。一种具体的实施方式,当以设备4为入口设备的隧道中包括不同于隧道4的隧道5时,可以执行下述步骤611。当路径约束信息2中包括带宽时,该隧道5为:以设备4为入口设备的隧道中,不同于隧道4、可用带宽大于或等于路径约束信息2包括的带宽且路由可达SD-WAN中用于传输业务2的业务报文的出口设备的隧道。当该路径约束信息2不包括带宽时,该隧道5可以是以设备4为入口设备的隧道中不同于隧道4且路由可达SD-WAN中用于传输业务2的业务报文的出口设备的任一隧道。After device 4 determines that device 5 cannot be used as a node for transmitting service 2 on path 2 , device 4 reselects a downstream device on path 2 . In a specific implementation manner, when the tunnel with the device 4 as the ingress device includes a tunnel 5 different from the tunnel 4, the following step 611 may be performed. When the path constraint information 2 includes bandwidth, the tunnel 5 is: in the tunnel with device 4 as the ingress device, different from tunnel 4, the available bandwidth is greater than or equal to the bandwidth included in the path constraint information 2, and the route is reachable in SD-WAN The tunnel of the egress device used to transmit the service packets of service 2. When the path constraint information 2 does not include bandwidth, the tunnel 5 may be an egress device in which the device 4 is the ingress device, which is different from the tunnel 4 and can be routed to the egress device used to transmit the service message of the service 2 in the SD-WAN. Either tunnel.

步骤611、设备4通过隧道5向设备6发送数据报文5。Step 611 , the device 4 sends the data packet 5 to the device 6 through the tunnel 5 .

设备4为隧道5的入口设备,设备6为隧道5的出口设备。该设备6可以是SD-WAN中用于传输业务2的业务报文的中间设备或出口设备。数据报文5可以是基于数据报文4更新得到的报文。此步骤的解释参考上述步骤303的相关解释,本申请实施例在此不再赘述。Device 4 is the entrance device of tunnel 5 , and device 6 is the exit device of tunnel 5 . The device 6 may be an intermediate device or an egress device for transmitting service packets of the service 2 in SD-WAN. The data packet 5 may be a packet updated based on the data packet 4 . For the explanation of this step, refer to the relevant explanation of the above-mentioned step 303, and the embodiment of the present application will not repeat it here.

步骤612、设备6根据数据报文5,确定业务2对应的路径约束信息2。Step 612 , the device 6 determines the path constraint information 2 corresponding to the service 2 according to the data packet 5 .

此步骤的解释参考上述步骤304的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 304, which will not be repeated here in this embodiment of the present application.

步骤613、设备6确定自身不满足路径约束信息2对应的路径约束条件。Step 613 , the device 6 determines that it does not satisfy the path constraint condition corresponding to the path constraint information 2 .

此步骤的解释参考上述步骤305的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 305, and the embodiment of the present application will not repeat it here.

步骤614、设备6向设备4发送反馈报文4,该反馈报文4中携带指示信息5。Step 614, the device 6 sends a feedback message 4 to the device 4, and the feedback message 4 carries the indication information 5.

该指示信息5用于向设备4指示该设备6不能作为路径2上用于传输业务2的节点。此步骤的解释参考上述步骤306的相关解释,本申请实施例在此不再赘述。The indication information 5 is used to indicate to the device 4 that the device 6 cannot be used as a node on the path 2 for transmitting the service 2 . For the explanation of this step, refer to the relevant explanation of the above-mentioned step 306, which will not be repeated here in this embodiment of the present application.

步骤615、设备4根据指示信息5,确定设备6不能作为路径2上用于传输业务2的节点。Step 615 , the device 4 determines that the device 6 cannot be used as a node for transmitting the service 2 on the path 2 according to the indication information 5 .

此步骤的解释参考上述步骤307的相关解释,本申请实施例在此不再赘述。For the explanation of this step, refer to the relevant explanation of the above-mentioned step 307, which will not be repeated here in the embodiment of the present application.

一种具体的实施方式,当以设备4为入口设备的隧道中路由可达SD-WAN中用于传输业务2的业务报文的出口设备仅包括隧道4和隧道5;或者,路径约束信息2中包括带宽,以设备4为入口设备的隧道中可用带宽大于或等于路径约束信息2包括的带宽且路由可达SD-WAN中用于传输业务2的业务报文的出口设备仅包括隧道4和隧道5时,可以执行下述步骤616。A specific implementation manner, when the route in the tunnel with device 4 as the ingress device is reachable, the egress device used to transmit the service message of service 2 in SD-WAN only includes tunnel 4 and tunnel 5; or, the path constraint information 2 Including bandwidth, the available bandwidth in the tunnel with device 4 as the ingress device is greater than or equal to the bandwidth included in path constraint information 2 and the route is reachable. The egress device used to transmit the service message of service 2 in SD-WAN only includes tunnel 4 and In tunnel 5, the following step 616 may be performed.

步骤616、设备4向设备1发送反馈报文5,该反馈报文5携带指示信息6。In step 616, the device 4 sends a feedback message 5 to the device 1, and the feedback message 5 carries indication information 6.

该指示信息6用于向设备1指示该设备4不能作为路径2上用于传输业务2的节点。The indication information 6 is used to indicate to the device 1 that the device 4 cannot be used as a node on the path 2 for transmitting the service 2 .

一种具体的实施方式,设备1接收到反馈报文5之后,执行的步骤可参考上述步骤307至步骤313,本申请实施例在此不再赘述。For a specific implementation manner, after the device 1 receives the feedback message 5, the steps to be executed may refer to the above step 307 to step 313, which will not be repeated in this embodiment of the present application.

图7是本申请实施例提供的又一种SD-WAN中的选路方法的流程示意图。该方法可以应用于如图1或图2所示的SD-WAN中的通信系统中。如图7所示,该方法包括:Fig. 7 is a schematic flow chart of another SD-WAN routing method provided by an embodiment of the present application. The method can be applied to a communication system in SD-WAN as shown in FIG. 1 or FIG. 2 . As shown in Figure 7, the method includes:

步骤701、设备1获取业务3对应的路径约束信息3,该路径约束信息3用于确定传输业务3的路径3所满足的路径约束条件。In step 701, the device 1 obtains path constraint information 3 corresponding to the service 3, and the path constraint information 3 is used to determine a path constraint condition that the path 3 for transmitting the service 3 satisfies.

一种具体的实施方式,该路径约束信息3包括业务3对应的SLA信息和/或QoS信息。该路径约束信息3具体包括以下信息中的一个或多个:时延、抖动、带宽、丢包率、误码率和带宽占用率。此步骤的解释可参考上述步骤301的相关解释,本申请实施例在此不再赘述。A specific implementation manner, the path constraint information 3 includes SLA information and/or QoS information corresponding to the service 3 . The path constraint information 3 specifically includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, and bandwidth occupancy rate. For the explanation of this step, refer to the relevant explanation of the above step 301, which will not be repeated here in the embodiment of the present application.

本申请实施例中,以路径约束信息3中至少包括带宽为例进行说明。In this embodiment of the present application, the path constraint information 3 includes at least bandwidth as an example for illustration.

步骤702、设备1确定自身不满足路径约束信息3对应的路径约束条件。In step 702, the device 1 determines that it does not satisfy the path constraint condition corresponding to the path constraint information 3 .

路径约束信息3对应的路径约束条件包括:以设备1为入口设备的隧道中存在带宽大于或等于路径约束信息3包括的带宽的目标隧道,且该目标隧道路由可达SD-WAN中用于传输业务3的业务报文的出口设备。设备1在获取路径约束信息3后,可以获取以该设备1为入口设备的所有隧道的可用带宽。当以设备1为入口设备的隧道中,不存在路由可达SD-WAN中用于传输业务3的业务报文的出口设备且可用带宽大于或等于路径约束信息1包括的带宽的隧道时,设备1确定自身不满足路径约束信息3对应的路径约束条件。The path constraint conditions corresponding to the path constraint information 3 include: there is a target tunnel with a bandwidth greater than or equal to the bandwidth included in the path constraint information 3 in the tunnel with device 1 as the ingress device, and the target tunnel can be routed to SD-WAN for transmission The egress device of service packets of service 3. After the device 1 obtains the path constraint information 3, it can obtain the available bandwidth of all tunnels with the device 1 as the ingress device. When the tunnel with device 1 as the ingress device does not have a route reachable to the egress device in SD-WAN for transmitting service packets of service 3 and the available bandwidth is greater than or equal to the bandwidth included in path constraint information 1, the device 1. Determine that it does not satisfy the path constraint condition corresponding to the path constraint information 3.

步骤703、设备1向SD-WAN的控制设备发送通知报文,该通知报文携带指示信息7。Step 703, device 1 sends a notification message to the SD-WAN control device, and the notification message carries indication information 7 .

该指示信息7用于向该控制设备指示SD-WAN中不存在能够传输业务3的路径3。此步骤的解释参考上述步骤313的相关解释,本申请实施例在此不再赘述。The indication information 7 is used to indicate to the control device that there is no path 3 capable of transmitting the service 3 in the SD-WAN. For the explanation of this step, refer to the relevant explanation of the above-mentioned step 313, and the embodiment of the present application will not repeat it here.

本申请实施例提供的SD-WAN的选路方法不仅可以用于在业务报文传输之前为业务进行选路,还可以用于在业务报文的传输过程中,使网络设备检测自身是否满足传输的业务对应的路径约束条件。The SD-WAN route selection method provided by the embodiment of this application can not only be used to select routes for services before service message transmission, but also can be used to enable network devices to detect whether they meet the transmission requirements during service message transmission. The path constraints corresponding to the business.

在第一种实现方式中,设备在接收到包括路径约束信息的业务报文时,检测自身是否满足该路径约束信息对应的路径约束条件。此时SD-WAN中用于传输业务的入口设备需要在接收到的业务报文中插入路径约束信息。一种具体的实施方式,该入口设备可以在接收到的每个业务报文中均插入路径约束信息,或者,该入口设备可以按照预定的时间间隔在接收到的业务报文中插入路径约束信息。当入口设备在接收到的每个业务报文中均插入路径约束信息时,入口设备还可以在接收到的每个报文中插入指示信息,该指示信息用于指示业务报文中的路径约束信息是否有效。In a first implementation manner, when a device receives a service packet including path constraint information, it detects whether it satisfies a path constraint condition corresponding to the path constraint information. At this time, the ingress device used to transmit services in SD-WAN needs to insert path constraint information into received service packets. A specific implementation manner, the ingress device may insert path constraint information into each received service message, or the ingress device may insert path constraint information into the received service message at a predetermined time interval . When the ingress device inserts path constraint information into each received service message, the ingress device can also insert indication information into each received message, which is used to indicate the path constraint in the service message information is valid.

在第二种实现方式中,设备在接收到包括路径约束信息的探测报文时,检测自身是否满足该路径约束信息对应的路径约束条件。此时SD-WAN中用于传输业务的入口设备无需更改接收到的业务报文。一种具体的实施方式,该入口设备可以按照预定的时间间隔生成包括路径约束信息的探测报文,并按照该预定的时间间隔向下游设备发送该探测报文。In the second implementation manner, when a device receives a detection packet including path constraint information, it detects whether it satisfies the path constraint condition corresponding to the path constraint information. At this time, the ingress device used to transmit services in SD-WAN does not need to change the received service packets. In a specific implementation manner, the ingress device may generate a detection message including path constraint information according to a predetermined time interval, and send the detection message to a downstream device according to the predetermined time interval.

在第三种实现方式中,位于业务在SD-WAN中的传输路径上的设备中存储有路径约束信息。设备在接收到包括触发信息的业务报文时,检测自身是否满足该路径约束信息对应的路径约束条件。此时SD-WAN中用于传输业务的入口设备需要在接收到的业务报文中插入触发信息。一种具体的实施方式,该入口设备可以按照预定的时间间隔在接收到的业务报文中插入该触发信息。该触发信息用于触发设备执行选路流程。In a third implementation manner, path constraint information is stored in a device located on a service transmission path in the SD-WAN. When the device receives the service packet including the trigger information, it detects whether it satisfies the path constraint condition corresponding to the path constraint information. At this time, the ingress device used to transmit services in SD-WAN needs to insert trigger information into the received service packets. In a specific implementation manner, the ingress device may insert the trigger information into the received service message at a predetermined time interval. The trigger information is used to trigger the device to execute the route selection process.

在第四种实现方式中,位于业务在SD-WAN中的传输路径上的设备中存储有路径约束信息。设备在接收到包括触发信息的探测报文时,检测自身是否满足该路径约束信息对应的路径约束条件。此时SD-WAN中用于传输业务的入口设备无需更改接收到的业务报文。一种具体的实施方式,该入口设备可以按照预定的时间间隔生成包括触发信息的探测报文。该触发信息用于触发设备执行选路流程。In a fourth implementation manner, path constraint information is stored in a device located on a service transmission path in the SD-WAN. When the device receives the detection packet including the trigger information, it detects whether it satisfies the path constraint condition corresponding to the path constraint information. At this time, the ingress device used to transmit services in SD-WAN does not need to change the received service packets. In a specific implementation manner, the ingress device may generate a detection message including trigger information at a predetermined time interval. The trigger information is used to trigger the device to execute the route selection process.

在第五种实现方式中,位于业务在SD-WAN中的传输路径上的设备中存储有路径约束信息,设备可以按照预定的时间间隔周期性检测自身是否满足存储的路径约束信息对应的路径约束条件。此时SD-WAN中用于传输业务的入口设备无需更改接收到的业务报文。In the fifth implementation, the path constraint information is stored in the device located on the transmission path of the service in SD-WAN, and the device can periodically check whether it satisfies the path constraint corresponding to the stored path constraint information according to a predetermined time interval. condition. At this time, the ingress device used to transmit services in SD-WAN does not need to change the received service packets.

本申请实施例以业务a在SD-WAN中的传输路径上包括设备a和设备b为例,对上述第一种实现方式和第二种实现方式进行示例性说明。其中,业务a对应的路径约束信息称为路径约束信息a。设备a为SD-WAN中用于传输业务a的入口设备,设备b为SD-WAN中用于传输业务a的中间设备或出口设备。In this embodiment of the present application, the transmission path of service a in the SD-WAN includes device a and device b as an example, and exemplifies the first implementation manner and the second implementation manner above. Wherein, the path constraint information corresponding to service a is called path constraint information a. Device a is an ingress device for transmitting service a in SD-WAN, and device b is an intermediate device or egress device for transmitting service a in SD-WAN.

在上述第一种实现方式中,设备a在接收到的业务a的每个业务报文中插入业务a对应的路径约束信息a以及指示信息,该指示信息用于指示路径约束信息a是否有效。之后将业务a的业务报文发送至设备b。设备b在接收到业务a的业务报文后,若业务报文中的指示信息指示路径约束信息a有效,设备b检测自身是否满足路径约束信息a对应的路径约束条件;若业务报文中的指示信息指示路径约束信息a无效,设备b按照预先存储的业务a与隧道的对应关系,采用对应的隧道转发该业务报文。或者,设备a按照预定的时间间隔在接收到的业务a的业务报文中插入路径约束信息a,然后将业务a的业务报文发送至设备b。若设备b接收到的业务报文中包括路径约束信息a,设备b检测自身是否满足路径约束信息a对应的路径约束条件;若设备b确定接收到的业务报文中不包括路径约束信息a,设备b按照预先存储的业务a与隧道的对应关系,采用对应的隧道转发该业务报文。In the above first implementation manner, device a inserts path constraint information a corresponding to service a and indication information into each received service packet of service a, and the indication information is used to indicate whether the path constraint information a is valid. Afterwards, the service packet of service a is sent to device b. After device b receives the service packet of service a, if the indication information in the service packet indicates that path constraint information a is valid, device b checks whether it satisfies the path constraint condition corresponding to path constraint information a; The indication information indicates that the path constraint information a is invalid, and the device b uses the corresponding tunnel to forward the service packet according to the pre-stored correspondence between the service a and the tunnel. Alternatively, device a inserts path constraint information a into the received service packet of service a according to a predetermined time interval, and then sends the service packet of service a to device b. If the service message received by device b includes path constraint information a, device b checks whether it satisfies the path constraint condition corresponding to path constraint information a; if device b determines that the received service message does not include path constraint information a, Device b uses the corresponding tunnel to forward the service packet according to the pre-stored correspondence between service a and the tunnel.

在上述第二种实现方式中,设备a按照预定的时间间隔生成包括路径约束信息a的探测报文,并向设备b发送该探测报文。当设备b接收到包括路径约束信息a的探测报文时,检测自身是否满足路径约束信息a对应的路径约束条件。In the above second implementation manner, device a generates a detection message including path constraint information a at a predetermined time interval, and sends the detection message to device b. When the device b receives the detection message including the path constraint information a, it detects whether it satisfies the path constraint condition corresponding to the path constraint information a.

一种具体的实施方式,本申请实施例中用于为业务在SD-WAN中选路的报文可以是该业务的业务报文或探测报文。当用于为业务在SD-WAN中选路的报文为业务报文时,不论接收到报文的设备满足或者不满足对应的路径约束条件,该设备均会继续转发该报文。当用于为业务在SD-WAN中选路的报文为探测报文时,若接收到报文的设备不满足业务对应的路径约束条件,则该设备可以丢弃该报文,若接收到报文的设备满足业务对应的路径约束条件,则该设备可以继续转发该报文。In a specific implementation manner, in the embodiment of the present application, the message used to select a route for a service in the SD-WAN may be a service message or a detection message of the service. When the message used to select a route for a service in SD-WAN is a service message, the device will continue to forward the message regardless of whether the device receiving the message meets or does not meet the corresponding path constraint conditions. When the message used to select a route for a service in SD-WAN is a detection message, if the device receiving the message does not meet the path constraints corresponding to the service, the device can discard the message. If the device meets the path constraint conditions corresponding to the service, the device can continue to forward the message.

本申请实施例中,数据报文的报文头中可以包括第一字段和第二字段。第一字段用于承载路径约束信息,第二字段用于指示第一字段承载的路径约束信息是否有效。In this embodiment of the present application, the packet header of the data packet may include the first field and the second field. The first field is used to carry path constraint information, and the second field is used to indicate whether the path constraint information carried in the first field is valid.

一种具体的实施方式,数据报文为业务报文。该业务报文可以是采用在线操作管理维护(in-situ operations administration and maintenance,IOAM)机制的报文。示例地,图8是本申请实施例提供的一种采用IOAM机制的业务报文的结构示意图。如图8所示,该业务报文包括:以太网头部(Ethernet header)、IP头部(IP header)、隧道头部(tunnelheader)、IOAM扩展部分以及有效载荷(payload)字段。其中,以太网头部、IP头部、隧道头部和IOAM扩展部分均位于报文头中。IOAM扩展部分包括名字空间标识(namespace-ID)字段、IOAM信息类型(IOAM-E2E-Type)字段以及由IOAM信息类型字段定义的选项数据字段(option data field determined by IOAM-E2E-Type)字段。其中,名字空间标识字段用于指示业务类型,IOAM-E2E-Type字段用于指示option data field determined by IOAM-E2E-Type字段中携带的信息的类型。In a specific implementation manner, the data message is a service message. The service message may be a message using an in-situ operations administration and maintenance (IOAM) mechanism. Exemplarily, FIG. 8 is a schematic structural diagram of a service packet using the IOAM mechanism provided by the embodiment of the present application. As shown in FIG. 8 , the service message includes: an Ethernet header (Ethernet header), an IP header (IP header), a tunnel header (tunnel header), an IOAM extension, and a payload (payload) field. Wherein, the Ethernet header, the IP header, the tunnel header and the IOAM extension are all located in the message header. The IOAM extension includes a namespace identifier (namespace-ID) field, an IOAM information type (IOAM-E2E-Type) field, and an option data field (option data field determined by IOAM-E2E-Type) field defined by the IOAM information type field. Wherein, the namespace identifier field is used to indicate the service type, and the IOAM-E2E-Type field is used to indicate the type of information carried in the option data field determined by IOAM-E2E-Type field.

IOAM-E2E-Type字段的值可取0至15。目前已定义IOAM-E2E-Type字段的取值为0至3时,option data field determined by IOAM-E2E-Type字段中携带的信息的类型。当IOAM-E2E-Type字段取值为0时,表示option data field determined by IOAM-E2E-Type字段携带64位序列号;当IOAM-E2E-Type字段取值为1时,表示option data fielddetermined by IOAM-E2E-Type字段携带32位序列号;当IOAM-E2E-Type字段取值为2时,表示option data field determined by IOAM-E2E-Type字段携带4个字节的秒级时间戳(timestmap);当IOAM-E2E-Type字段取值为3时,表示option data field determined byIOAM-E2E-Type字段携带4个字节的压秒级timestmap。本申请实施例中,可以定义当IOAM-E2E-Type字段的取值为4至15中的任一值时,option data field determined by IOAM-E2E-Type字段携带业务在SD-WAN中的入口设备在业务报文中插入的信息,例如路径约束信息、用于指示路径约束信息是否有效的指示信息或用于触发设备执行选路流程的触发信息等。示例地,IOAM-E2E-Type字段的取值为4,表示Option data field determined byIOAM-E2E-Type字段中携带业务在SD-WAN中的入口设备在业务报文中插入的信息。The value of the IOAM-E2E-Type field can range from 0 to 15. It is currently defined that when the value of the IOAM-E2E-Type field is 0 to 3, the type of information carried in the option data field determined by IOAM-E2E-Type field. When the value of the IOAM-E2E-Type field is 0, it means that the option data field determined by IOAM-E2E-Type field carries a 64-bit serial number; when the value of the IOAM-E2E-Type field is 1, it means that the option data field determined by IOAM - The E2E-Type field carries a 32-bit serial number; when the value of the IOAM-E2E-Type field is 2, it means that the option data field determined by IOAM-E2E-Type field carries a 4-byte second-level timestamp (timestmap); When the value of the IOAM-E2E-Type field is 3, it means that the option data field determined byIOAM-E2E-Type field carries a 4-byte second-level timestamp. In the embodiment of this application, it can be defined that when the value of the IOAM-E2E-Type field is any value from 4 to 15, the option data field determined by IOAM-E2E-Type field carries the entry device of the service in SD-WAN The information inserted in the service message, such as path constraint information, indication information for indicating whether the path constraint information is valid, or trigger information for triggering the device to execute the routing process, etc. For example, the value of the IOAM-E2E-Type field is 4, indicating that the Option data field determined byIOAM-E2E-Type field carries information inserted into the service message by the ingress device of the service in the SD-WAN.

一种具体的实施方式,参见图8,option data field determined by IOAM-E2E-Type字段中可以包括第一字段,该第一字段用于承载路径约束信息。option data fielddetermined by IOAM-E2E-Type字段中还可以包括第二字段,该第二字段用于指示第一字段承载的路径约束信息是否有效。第二字段可以位于第一字段之前。图8中以路径约束信息包括带宽(bandwidth)、时延(delay)和抖动(jitter)为例进行示例性说明。In a specific implementation manner, referring to FIG. 8, the option data field determined by IOAM-E2E-Type field may include a first field, and the first field is used to carry path constraint information. The option data field determined by IOAM-E2E-Type field may further include a second field, where the second field is used to indicate whether the path restriction information carried in the first field is valid. The second field may precede the first field. In FIG. 8 , the path constraint information includes bandwidth (bandwidth), delay (delay) and jitter (jitter) as an example for illustration.

如图8所示的业务报文具体可以是VXLAN报文、IPsec报文或GRE报文等。示例地,图9是本申请实施例提供的一种采用IOAM机制的VXLAN报文的结构示意图。如图9所示,该VXLAN报文的报文头中包括以太网头部、IP头部、UDP头部(UDP header)、VXLAN头部和IOAM扩展部分。如图9所示,IOAM扩展部分还包括位于名字空间标识字段之前的IOAM端到端选择(IOAM E2E option)头部。该IOAM E2E option头部可以参考国际互联网工程任务组(theinternet engineering task force,IETF)中的相关定义和解释,本申请实施例在此不再赘述。The service packets shown in FIG. 8 may specifically be VXLAN packets, IPsec packets, or GRE packets. Exemplarily, FIG. 9 is a schematic structural diagram of a VXLAN message using the IOAM mechanism provided by the embodiment of the present application. As shown in FIG. 9 , the message header of the VXLAN message includes an Ethernet header, an IP header, a UDP header (UDP header), a VXLAN header and an IOAM extension. As shown in FIG. 9 , the IOAM extension part further includes an IOAM end-to-end option (IOAM E2E option) header located before the namespace identification field. For the IOAM E2E option header, reference may be made to relevant definitions and explanations in the Internet Engineering Task Force (IETF), which will not be repeated in this embodiment of the present application.

一种具体的实施方式,本申请实施例中的数据报文为探测报文。该探测报文可以是重新构造的新报文或基于现有报文(例如双向转发检测(bidirectional forwardingdetection,BFD)报文扩展得到的报文。In a specific implementation manner, the data packet in the embodiment of the present application is a detection packet. The detection message may be a reconstructed new message or a message obtained by extending an existing message (for example, a bidirectional forwarding detection (bidirectional forwarding detection, BFD) message).

示例地,图10是本申请实施例提供的一种探测报文的结构示意图。该探测报文为重新构造的新报文。如图10所示,该探测报文包括:以太网头部、IP头部、UDP头部以及扩展部分。其中,扩展部分可以包括版本(version)字段、类型(type)字段、长度(length)字段以及数据字段。版本字段用于指示版本号,类型字段用于指示报文的类型,长度字段用于指示数据字段的长度。数据字段包括第一字段,该第一字段用于承载路径约束信息。该数据字段还可以包括第二字段,该第二字段用于指示第一字段承载的路径约束信息是否有效。By way of example, FIG. 10 is a schematic structural diagram of a detection message provided by an embodiment of the present application. The detection message is a reconstructed new message. As shown in FIG. 10 , the probe message includes: an Ethernet header, an IP header, a UDP header and an extension part. Wherein, the extension part may include a version (version) field, a type (type) field, a length (length) field and a data field. The version field is used to indicate the version number, the type field is used to indicate the type of the message, and the length field is used to indicate the length of the data field. The data field includes a first field, and the first field is used to carry path constraint information. The data field may further include a second field, where the second field is used to indicate whether the path constraint information carried in the first field is valid.

又示例地,图11是本申请实施例提供的另一种探测报文的结构示意图。该探测报文基于BFD报文扩展得到。如图11所示,该探测报文包括:强制部分和可选部分。其中,BFD报文的可选部分中的字段可进行自定义。As another example, FIG. 11 is a schematic structural diagram of another detection message provided by the embodiment of the present application. The detection message is obtained based on the extension of the BFD message. As shown in FIG. 11 , the probe message includes: a mandatory part and an optional part. Among them, the fields in the optional part of the BFD message can be customized.

本申请实施例中,将BFD报文的可选部分的数据字段划分成第一字段和第二字段。第一字段用于承载路径约束信息。第二字段用于指示第一字段承载的路径约束信息是否有效。In this embodiment of the present application, the data field of the optional part of the BFD packet is divided into a first field and a second field. The first field is used to carry path constraint information. The second field is used to indicate whether the path constraint information carried by the first field is valid.

该可选部分还可以包括:认证类型(authentication type)字段、认证长度(authentication ten)字段以及认证数据(authentication data)字段。该强制部分中的各个字段、认证类型字段、认证长度字段以及认证数据字段的功能和内容均可以参考远程函数调用(Remote Function Call,RFC)5008通信标准中的相关定义,本申请实施例在此不再赘述。The optional part may further include: an authentication type (authentication type) field, an authentication length (authentication ten) field, and an authentication data (authentication data) field. The functions and contents of each field in the mandatory part, the authentication type field, the authentication length field, and the authentication data field can refer to the relevant definitions in the remote function call (Remote Function Call, RFC) 5008 communication standard, and the embodiment of the present application is here No longer.

本申请实施例中,反馈报文例如可以是UDP报文或者TCP报文,还可以是其它格式用于实现相同功能的报文。In the embodiment of the present application, the feedback message may be, for example, a UDP message or a TCP message, or a message in other formats for realizing the same function.

示例地,图12是本申请实施例提供的一种反馈报文的结构示意图,该反馈报文是UDP报文。如图12所示,该反馈报文包括:以太网头部、IP头部、UDP头部以及扩展部分。其中,扩展部分可以包括版本字段、类型字段、长度字段以及数据字段。数据字段包括:信息字段、隧道标识字段以及预留字段。版本字段用于指示版本号。类型字段用于承载指示信息,该指示信息用于向上游设备指示该设备不能作为传输业务的路径上的节点。该指示信息可以采用数值表示,例如,当类型字段的值为1时,指示该设备不能作为传输业务的路径上的节点。长度字段用于指示数据字段的长度。隧道标识字段用于承载隧道的标识。信息字段用于承载路径约束信息。示例地,在上述反馈报文1中,类型字段的值为1,信息字段中承载有路径约束信息1,隧道标识字段中包括隧道1的标识。By way of example, FIG. 12 is a schematic structural diagram of a feedback message provided by an embodiment of the present application, and the feedback message is a UDP message. As shown in FIG. 12 , the feedback message includes: an Ethernet header, an IP header, a UDP header and an extension part. Wherein, the extension part may include a version field, a type field, a length field and a data field. The data fields include: an information field, a tunnel identification field, and a reserved field. The version field is used to indicate the version number. The type field is used to carry indication information, and the indication information is used to indicate to the upstream device that the device cannot be used as a node on the path for transmitting services. The indication information may be represented by a numerical value, for example, when the value of the type field is 1, it indicates that the device cannot be used as a node on the path for service transmission. The length field is used to indicate the length of the data field. The tunnel identifier field is used to carry the identifier of the tunnel. The information field is used to carry path constraint information. For example, in the above feedback message 1, the value of the type field is 1, the information field carries path constraint information 1, and the tunnel identification field includes the identifier of tunnel 1.

又示例地,图13是本申请实施例提供的另一种反馈报文的结构示意图,该反馈报文是TCP报文。如图13所示,该反馈报文包括:以太网头部、IP头部、TCP头部以及扩展部分。其中,扩展部分可以包括版本字段、类型字段、长度字段以及数据字段。数据字段包括:信息字段、隧道标识字段以及预留字段。版本字段用于指示版本号。类型字段用于承载指示信息,该指示信息用于向上游设备指示该设备不能作为传输业务的路径上的节点。该指示信息可以采用数值表示,例如,当类型字段的值为1时,指示该设备不能作为传输业务的路径上的节点。长度字段用于指示数据字段的长度。隧道标识字段用于承载隧道的标识。信息字段用于承载路径约束信息。示例地,在上述反馈报文1中,类型字段的值为1,信息字段中承载有路径约束信息1,隧道标识字段中包括隧道1的标识。As another example, FIG. 13 is a schematic structural diagram of another feedback message provided by the embodiment of the present application, and the feedback message is a TCP message. As shown in FIG. 13 , the feedback message includes: an Ethernet header, an IP header, a TCP header and an extension part. Wherein, the extension part may include a version field, a type field, a length field and a data field. The data fields include: an information field, a tunnel identification field, and a reserved field. The version field is used to indicate the version number. The type field is used to carry indication information, and the indication information is used to indicate to the upstream device that the device cannot be used as a node on the path for transmitting services. The indication information may be represented by a numerical value, for example, when the value of the type field is 1, it indicates that the device cannot be used as a node on the path for service transmission. The length field is used to indicate the length of the data field. The tunnel identifier field is used to carry the identifier of the tunnel. The information field is used to carry path constraint information. For example, in the above feedback message 1, the value of the type field is 1, the information field carries path constraint information 1, and the tunnel identification field includes the identifier of tunnel 1.

示例地,本申请实施例以数据报文为如图9所示的VXLAN报文,反馈报文为如图12所示的UDP报文为例,对为业务在如图1或图2所示的SD-WAN中的通信系统中进行选路的实现过程进行说明。Exemplarily, in the embodiment of this application, the data message is the VXLAN message shown in Figure 9, and the feedback message is the UDP message shown in Figure 12 as an example, and the service is as shown in Figure 1 or Figure 2 The implementation process of routing selection in the communication system in the SD-WAN will be described.

传输路径1中的网络设备101A为SD-WAN中用于传输业务的入口设备,网络设备101C为SD-WAN中用于传输业务的中间设备,网络设备101F为SD-WAN中用于传输业务的出口设备。网络设备101A接收发送端设备发送的VXLAN报文,该VXLAN报文包括以太网头部、IP头部、UDP头部、VXLAN头部以及有效载荷字段。网络设备101A可以先获取路径约束信息,并根据路径约束信息确定自身是否满足该路径约束信息对应的路径约束条件。当网络设备101A确定自身满足该路径约束信息对应的路径约束条件时,网络设备101A在VXLAN报文的报文头中的VXLAN头部后插入IOAM扩展部分,将IOAM扩展部分的IOAM-E2E-Type字段的值设为4,并在option data field determined by IOAM-E2E-Type字段中添加路径约束信息。之后网络设备101A通过隧道L1向网络设备101C发送包括IOAM扩展部分的VXLAN报文。网络设备101C根据路径约束信息确定自身是否满足该路径约束信息对应的路径约束条件。The network device 101A in the transmission path 1 is the ingress device used for transmitting services in SD-WAN, the network device 101C is the intermediate device used for transmitting services in SD-WAN, and the network device 101F is used for transmitting services in SD-WAN. Export equipment. The network device 101A receives the VXLAN packet sent by the sender device, and the VXLAN packet includes an Ethernet header, an IP header, a UDP header, a VXLAN header, and a payload field. The network device 101A may first obtain the path constraint information, and determine whether it satisfies the path constraint condition corresponding to the path constraint information according to the path constraint information. When the network device 101A determines that it satisfies the path constraint condition corresponding to the path constraint information, the network device 101A inserts the IOAM extension part after the VXLAN header in the packet header of the VXLAN packet, and the IOAM-E2E-Type of the IOAM extension part Set the value of the field to 4, and add path constraint information in the option data field determined by IOAM-E2E-Type field. Then the network device 101A sends the VXLAN packet including the IOAM extension to the network device 101C through the tunnel L1. The network device 101C determines whether it satisfies the path constraint condition corresponding to the path constraint information according to the path constraint information.

当网络设备101C确定自身满足路径约束信息对应的路径约束条件时,网络设备101C通过隧道L4向网络设备101F发送包括IOAM扩展部分的VXLAN报文。网络设备101F根据路径约束信息确定自身是否满足路径约束信息对应的路径约束条件。当网络设备101F确定自身不满足路径约束信息对应的路径约束条件时,网络设备101F生成类型字段值为1、隧道标识字段中包括隧道L4的标识、信息字段中包括路径约束条件的UDP报文,并向网络设备101C发送该UDP报文。网络设备101C确定网络设备101F不能作为路径上传输业务的节点。当以网络设备101C为入口设备的隧道中存在满足路径约束信息包括的带宽的目标隧道(例如隧道L3)时,网络设备101C通过隧道L3向网络设备101E发送包括IOAM扩展部分的VXLAN报文。当以网络设备101C为入口设备的隧道中不存在满足路径约束信息包括的带宽的隧道时,网络设备101C生成类型字段值为1、隧道标识字段中包括隧道L1的标识、信息字段中包括路径约束条件的UDP报文,并向网络设备101A发送该UDP报文。网络设备101A确定网络设备101C不能作为路径上传输业务的节点。当以网络设备101A为入口设备的隧道中存在满足路径约束信息包括的带宽的目标隧道(例如隧道L2)时,网络设备101A通过隧道L2向网络设备101D发送包括IOAM扩展部分的VXLAN报文。当以网络设备101A为入口设备的隧道中不存在满足路径约束信息包括的带宽的隧道时,网络设备101A向SD-WAN的控制设备102发送携带有指示信息的通知报文,以向控制设备指示SD-WAN中不存在用于传输业务的路径。When the network device 101C determines that it satisfies the path constraint condition corresponding to the path constraint information, the network device 101C sends the VXLAN packet including the IOAM extension to the network device 101F through the tunnel L4. The network device 101F determines whether it satisfies the path constraint condition corresponding to the path constraint information according to the path constraint information. When the network device 101F determines that it does not satisfy the path constraint condition corresponding to the path constraint information, the network device 101F generates a UDP packet with a value of 1 in the type field, an identifier of the tunnel L4 in the tunnel identifier field, and a path constraint condition in the information field, And send the UDP packet to the network device 101C. The network device 101C determines that the network device 101F cannot be used as a node for transmitting services on the path. When there is a target tunnel (such as tunnel L3) that satisfies the bandwidth included in the path constraint information in the tunnel with the network device 101C as the ingress device, the network device 101C sends the VXLAN message including the IOAM extension to the network device 101E through the tunnel L3. When there is no tunnel that satisfies the bandwidth included in the path constraint information among the tunnels with network device 101C as the ingress device, the network device 101C generates a type field with a value of 1, the tunnel identification field includes the identifier of tunnel L1, and the information field includes the path constraint conditional UDP packet, and send the UDP packet to the network device 101A. The network device 101A determines that the network device 101C cannot be used as a node for transmitting services on the path. When there is a target tunnel (for example, tunnel L2) that satisfies the bandwidth included in the path constraint information in the tunnel with the network device 101A as the ingress device, the network device 101A sends the VXLAN message including the IOAM extension to the network device 101D through the tunnel L2. When there is no tunnel that satisfies the bandwidth included in the path constraint information among the tunnels with the network device 101A as the ingress device, the network device 101A sends a notification message carrying indication information to the SD-WAN control device 102 to indicate to the control device There is no path for transporting traffic in SD-WAN.

当网络设备101C确定自身不满足路径约束信息对应的路径约束条件时,网络设备101C生成类型字段值为1、隧道标识字段中包括隧道L1的标识、信息字段中包括路径约束条件的UDP报文,并向网络设备101A发送该UDP报文。When the network device 101C determines that it does not satisfy the path constraint condition corresponding to the path constraint information, the network device 101C generates a UDP packet with a value of 1 in the type field, an identifier of the tunnel L1 in the tunnel identification field, and a path constraint condition in the information field, And send the UDP packet to the network device 101A.

图14是本申请实施例提供的再一种SD-WAN中的选路方法的流程示意图,应用该方法的网络架构至少包括第一设备和第二设备,该网络架构还可以包括第三设备、第四设备和/或第五设备。举例来说,第一设备例如可以是图1或图2中所示的网络设备101C,第二设备例如可以是图1或图2所示的网络设备101A。该网络架构例如可以是图1或图2所示的网络架构。该方法具体可以用于实现图3至图7所对应任一实施例所示的方法。例如,图14所示方法中第一设备可以是图3所示方法中的设备2,第二设备可以是图3所示方法中的设备1。该方法包括:Fig. 14 is a schematic flowchart of another SD-WAN routing method provided by an embodiment of the present application. The network architecture to which this method is applied includes at least a first device and a second device, and the network architecture may also include a third device, A fourth device and/or a fifth device. For example, the first device may be, for example, the network device 101C shown in FIG. 1 or FIG. 2 , and the second device may be, for example, the network device 101A shown in FIG. 1 or FIG. 2 . The network architecture may be, for example, the network architecture shown in FIG. 1 or FIG. 2 . The method can be specifically used to implement the method shown in any embodiment corresponding to FIG. 3 to FIG. 7 . For example, the first device in the method shown in FIG. 14 may be device 2 in the method shown in FIG. 3 , and the second device may be device 1 in the method shown in FIG. 3 . The method includes:

步骤1401、第一设备通过第一隧道接收第二设备发送的第一数据报文,第一设备是第一隧道的出口设备,第二设备是第一隧道的入口设备。Step 1401, the first device receives the first data packet sent by the second device through the first tunnel, the first device is an egress device of the first tunnel, and the second device is an ingress device of the first tunnel.

步骤1402、第一设备根据第一数据报文,确定第一业务对应的第一路径约束信息。该第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。Step 1402, the first device determines first path constraint information corresponding to the first service according to the first data packet. The first path constraint information is used to determine a first path constraint condition satisfied by the first path for transmitting the first service.

步骤1403、第一设备确定自身不满足第一路径约束条件,第一设备向第二设备发送第一反馈报文。第一反馈报文中携带第一指示信息,第一指示信息用于向第二设备指示第一设备不能作为第一路径上用于传输第一业务的节点。Step 1403, the first device determines that it does not satisfy the first path constraint condition, and the first device sends a first feedback message to the second device. The first feedback message carries first indication information, and the first indication information is used to indicate to the second device that the first device cannot be used as a node for transmitting the first service on the first path.

当该方法具体用于实现上述图3所示的方法实施例时,第一设备例如可以是设备2,第二设备例如可以是设备1,第一隧道例如可以是隧道1,第一数据报文例如可以是数据报文1,第一反馈报文例如可以反馈报文1。步骤1401至步骤1403的具体实现过程,可参考图3所示的实施例中的相关说明,此处不再赘述。When the method is specifically used to implement the method embodiment shown in FIG. 3 above, the first device may be, for example, device 2, the second device may be, for example, device 1, the first tunnel may be, for example, tunnel 1, and the first data packet For example, it may be data packet 1, and the first feedback packet may be feedback packet 1, for example. For the specific implementation process of step 1401 to step 1403, reference may be made to the relevant description in the embodiment shown in FIG. 3 , and details are not repeated here.

一种具体的实施方式,该方法还包括:第一设备通过第二隧道接收第三设备发送的第二数据报文。第一设备是第二隧道的出口设备,第三设备是第二隧道的入口设备。第一设备根据第二数据报文,确定第二业务对应的第二路径约束信息,第二路径约束信息用于确定传输第二业务的第二路径所满足的第二路径约束条件。第一设备确定自身满足第二路径约束条件,第一设备通过第三隧道向第四设备转发更新的第二数据报文。第一设备是第三隧道的入口设备,第四设备是第三隧道的出口设备。当该方法具体用于实现上述图6所示的实施例时,第一设备例如可以是设备4,第二隧道例如可以是隧道3,第三设备例如可以是设备1,第三隧道例如可以是隧道4,第四设备例如可以是设备5,第二数据报文例如可以是数据报文3,更新后的第二数据报文例如可以是数据报文4。A specific implementation manner, the method further includes: the first device receives the second data packet sent by the third device through the second tunnel. The first device is an egress device of the second tunnel, and the third device is an ingress device of the second tunnel. The first device determines second path constraint information corresponding to the second service according to the second data packet, where the second path constraint information is used to determine a second path constraint condition satisfied by the second path transmitting the second service. The first device determines that it satisfies the second path constraint condition, and the first device forwards the updated second data packet to the fourth device through the third tunnel. The first device is an ingress device of the third tunnel, and the fourth device is an egress device of the third tunnel. When the method is specifically used to implement the embodiment shown in FIG. 6 above, the first device may be, for example, device 4, the second tunnel may be, for example, tunnel 3, the third device may be, for example, device 1, and the third tunnel may be, for example, In the tunnel 4, the fourth device may be, for example, the device 5, the second data packet may be, for example, the data packet 3, and the updated second data packet may be, for example, the data packet 4.

一种具体的实施方式,该方法还包括:第一设备接收第四设备发送的第二反馈报文,第二反馈报文中携带第二指示信息,第二指示信息用于向第一设备指示第四设备不能作为第二路径上用于传输第二业务的节点。第一设备根据第二指示信息,确定第四设备不满足第二路径约束条件。当方法具体用于实现上述图6所示的实施例时,第一设备例如可以是设备4,第四设备例如可以是设备5,第二反馈报文例如可以是反馈报文3。A specific implementation manner, the method further includes: the first device receives a second feedback message sent by the fourth device, the second feedback message carries second indication information, and the second indication information is used to indicate to the first device The fourth device cannot be used as a node for transmitting the second service on the second path. The first device determines, according to the second indication information, that the fourth device does not satisfy the second path constraint condition. When the method is specifically used to implement the above-mentioned embodiment shown in FIG. 6 , the first device may be, for example, device 4 , the fourth device may be, for example, device 5 , and the second feedback message may be, for example, feedback message 3 .

在本申请的一个可选实施例中,在第一设备根据第二指示信息,确定第四设备不满足第二路径约束条件之后,该方法还包括:第一设备重新选择第二路径上的下游设备。In an optional embodiment of the present application, after the first device determines that the fourth device does not meet the constraint condition of the second path according to the second indication information, the method further includes: the first device reselects the downstream on the second path equipment.

一种具体的实施方式,第一设备重新选择第二路径上的下游设备,包括:第一设备通过第四隧道向第五设备发送更新的第二数据报文,第一设备是第四隧道的入口设备,第五设备是第四隧道的出口设备。当方法具体用于实现上述图6所示的实施例时,第一设备例如可以是设备4,第四隧道例如可以是隧道5,第五设备例如可以是设备6,更新的第二数据报文例如可以是数据报文5。In a specific implementation manner, the first device reselects a downstream device on the second path, including: the first device sends an updated second data packet to the fifth device through the fourth tunnel, and the first device is a member of the fourth tunnel. The entry device, the fifth device is the exit device of the fourth tunnel. When the method is specifically used to implement the embodiment shown in FIG. 6 above, the first device may be, for example, device 4, the fourth tunnel may be, for example, tunnel 5, the fifth device may be, for example, device 6, and the updated second data packet This can be, for example, a data telegram 5 .

在本申请的另一个可选实施例中,在第一设备根据第二指示信息,确定第四设备不满足第二路径约束条件之后,该方法还包括:第一设备向第三设备发送第三反馈报文,第三反馈报文中携带第三指示信息,第三指示信息用于向第三设备指示第一设备不能作为第二路径上用于传输第二业务的节点。当方法具体用于实现上述图6所示的实施例时,第一设备例如可以是设备4,第三设备例如可以是设备1,第三反馈报文例如可以是反馈报文5。In another optional embodiment of the present application, after the first device determines that the fourth device does not meet the second path constraint condition according to the second indication information, the method further includes: the first device sends the third device to the third device. A feedback message. The third feedback message carries third indication information, and the third indication information is used to indicate to the third device that the first device cannot be used as a node for transmitting the second service on the second path. When the method is specifically used to implement the above-mentioned embodiment shown in FIG. 6 , the first device may be, for example, device 4 , the third device may be, for example, device 1 , and the third feedback message may be, for example, feedback message 5 .

在一种实现方式中,第一数据报文为探测报文,探测报文中携带第一路径约束信息。In an implementation manner, the first data packet is a detection packet, and the detection packet carries the first path constraint information.

该实现方式下,第一设备通过第一隧道接收第二设备发送的第一数据报文,包括:In this implementation, the first device receives the first data packet sent by the second device through the first tunnel, including:

第一设备按照预定的时间间隔,通过第一隧道接收第二设备发送的探测报文。The first device receives the detection message sent by the second device through the first tunnel according to a predetermined time interval.

在另一种实现方式中,第一数据报文为业务报文,业务报文中携带第一路径约束信息。In another implementation manner, the first data packet is a service packet, and the service packet carries the first path constraint information.

一种具体的实施方式,第一设备根据第一数据报文,确定第一业务对应的第一路径约束信息,包括:第一设备根据第一数据报文的业务类型,确定与业务类型对应的本地保存的第一路径约束信息。In a specific implementation manner, the first device determines the first path constraint information corresponding to the first service according to the first data packet, including: the first device determines the path constraint information corresponding to the service type according to the service type of the first data packet The locally saved first path constraint information.

一种具体的实施方式,第一路径约束信息分别包括以下信息中的一个或多个:时延,抖动,带宽,丢包率,误码率和带宽占用率。In a specific implementation manner, the first path constraint information respectively includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, and bandwidth occupancy rate.

一种具体的实施方式,第一数据报文的报文头中包括第一字段和第二字段,第一字段用于承载第一路径约束信息,第二字段用于指示第一字段承载的第一路径约束信息是否有效。In a specific implementation manner, the header of the first data message includes a first field and a second field, the first field is used to carry the first path constraint information, and the second field is used to indicate the first field carried by the first field. - Whether the path constraint information is valid.

图15是本申请实施例提供的还一种SD-WAN中的选路方法的流程示意图,应用该方法的网络架构至少包括第一设备和第二设备,该网络架构还可以包括第三设备。举例来说,第一设备例如可以是图1或图2中所示的101C,第二设备例如可以是图1或图2所示的网络设备101A。该网络架构例如可以是图1或图2所示的网络架构。该方法具体可以用于实现图3至图7所对应任一实施例所示的方法。例如,图15所示方法中第一设备可以是图3所示方法中的设备2,第二设备可以是图3所示方法中的设备1。Fig. 15 is a schematic flowchart of another SD-WAN routing method provided by an embodiment of the present application. The network architecture to which this method is applied includes at least a first device and a second device, and the network architecture may also include a third device. For example, the first device may be, for example, 101C shown in FIG. 1 or FIG. 2 , and the second device may be, for example, the network device 101A shown in FIG. 1 or FIG. 2 . The network architecture may be, for example, the network architecture shown in FIG. 1 or FIG. 2 . The method can be specifically used to implement the method shown in any embodiment corresponding to FIG. 3 to FIG. 7 . For example, the first device in the method shown in FIG. 15 may be device 2 in the method shown in FIG. 3 , and the second device may be device 1 in the method shown in FIG. 3 .

步骤1501、第二设备通过第一隧道向第一设备发送第一数据报文,第二设备是第一隧道的入口设备,第一设备是第一隧道的出口设备。Step 1501, the second device sends a first data packet to the first device through the first tunnel, the second device is an ingress device of the first tunnel, and the first device is an egress device of the first tunnel.

步骤1502、第二设备接收第一设备发送的第一反馈报文,第一反馈报文中携带第一指示信息。Step 1502, the second device receives a first feedback message sent by the first device, where the first feedback message carries first indication information.

步骤1503、第二设备根据第一指示信息,确定第一设备不能作为第一路径上用于传输第一业务的节点。Step 1503, the second device determines, according to the first indication information, that the first device cannot be used as a node for transmitting the first service on the first path.

步骤1504、第二设备通过第二隧道向第三设备发送第二数据报文,第二设备是第二隧道的入口设备,第三设备是第二隧道的出口设备。Step 1504, the second device sends the second data packet to the third device through the second tunnel, the second device is an ingress device of the second tunnel, and the third device is an egress device of the second tunnel.

当该方法具体用于实现上述图3所示的方法实施例时,第二设备例如可以是设备1,第一隧道例如可以是隧道1,第一设备例如可以是设备2,第二隧道例如可以是隧道2,第三设备例如可以是设备3。步骤1501至步骤1504的具体实现过程,可参考图3所示的实施例中的相关说明,此处不再赘述。When the method is specifically used to implement the method embodiment shown in FIG. 3 above, the second device may be, for example, device 1, the first tunnel may be, for example, tunnel 1, the first device may be, for example, device 2, and the second tunnel may be, for example, is tunnel 2, and the third device may be device 3, for example. For the specific implementation process of step 1501 to step 1504, reference may be made to the relevant description in the embodiment shown in FIG. 3 , and details are not repeated here.

一种具体的实施方式,在第二设备通过第二隧道向第三设备发送第二数据报文之后,该方法还包括:第二设备接收第三设备发送的第二反馈报文,第二反馈报文中携带第二指示信息。第二设备根据第二指示信息,确定第三设备不能作为第一路径上用于传输第一业务的节点。第二设备向控制设备发送通知报文,通知报文携带第三指示信息,第三指示信息用于向控制设备指示SD-WAN中不存在第一路径。当该方法具体用于实现上述图3所示的方法实施例时,第二设备例如可以是设备1,第二隧道例如可以是隧道2,第三设备例如可以是设备3,第二数据报文例如可以是数据报文2,第二反馈报文例如可以是反馈报文2。A specific implementation manner, after the second device sends the second data packet to the third device through the second tunnel, the method further includes: the second device receives the second feedback packet sent by the third device, and the second feedback The second indication information is carried in the message. The second device determines, according to the second indication information, that the third device cannot be used as a node for transmitting the first service on the first path. The second device sends a notification message to the control device, where the notification message carries third indication information, and the third indication information is used to indicate to the control device that the first path does not exist in the SD-WAN. When the method is specifically used to implement the method embodiment shown in FIG. 3 above, the second device may be, for example, device 1, the second tunnel may be, for example, tunnel 2, the third device may be, for example, device 3, and the second data packet For example, it may be a data message 2, and the second feedback message may be a feedback message 2, for example.

在一种实现方式中,第一数据报文和第二数据报文为探测报文,探测报文中携带第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。In an implementation manner, the first data message and the second data message are detection messages, and the detection message carries first path constraint information, and the first path constraint information is used to determine the first path for transmitting the first service The first path constraints that are met.

该实现方式下,在第二设备通过第二隧道向第三设备发送第二数据报文之后,该方法还包括:第二设备按照预定的时间间隔,通过第二隧道向第三设备发送探测报文。In this implementation, after the second device sends the second data packet to the third device through the second tunnel, the method further includes: the second device sends a detection packet to the third device through the second tunnel at a predetermined time interval arts.

在另一种实现方式中,第一数据报文和第二数据报文为业务报文,业务报文中携带第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。In another implementation, the first data message and the second data message are service messages, and the service message carries the first path constraint information, and the first path constraint information is used to determine the first path for transmitting the first service. The first path constraint that the path satisfies.

一种具体的实施方式,该方法还包括:第二设备接收控制设备发送的针对第一业务的选路指令。第二设备根据选路指令,获取第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。当该方法具体用于实现上述图3、图6或图7所示的方法实施例时,第二设备例如可以是设备1。In a specific implementation manner, the method further includes: the second device receiving the routing instruction for the first service sent by the control device. The second device acquires first path constraint information according to the routing instruction, where the first path constraint information is used to determine a first path constraint condition satisfied by the first path transmitting the first service. When the method is specifically used to implement the method embodiment shown in FIG. 3 , FIG. 6 or FIG. 7 , the second device may be, for example, device 1 .

一种具体的实施方式,选路指令中包括第一业务的业务类型,第二设备根据选路指令,获取第一路径约束信息,包括:第二设备根据第一业务的业务类型,确定与业务类型对应的本地保存的第一路径约束信息。In a specific implementation manner, the route selection instruction includes the service type of the first service, and the second device acquires the first route constraint information according to the route selection instruction, including: the second device determines the service type of the first service according to the service type of the first service The locally stored first path constraint information corresponding to the type.

一种具体的实施方式,选路指令中包括第一路径约束信息。In a specific implementation manner, the routing instruction includes first path constraint information.

一种具体的实施方式,该方法还包括:第二设备接收发送端设备发送的第一业务的业务报文。第二设备根据第一业务的业务报文的业务类型,确定与业务类型对应的本地保存的第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。In a specific implementation manner, the method further includes: the second device receiving the service packet of the first service sent by the sender device. The second device determines locally stored first path constraint information corresponding to the service type according to the service type of the service packet of the first service, and the first path constraint information is used to determine the first path that the first path for transmitting the first service satisfies. A path constraint condition.

一种具体的实施方式于,第一路径约束信息包括以下信息中的一个或多个:时延,抖动,带宽,丢包率,误码率或带宽占用率。A specific implementation manner is that the first path constraint information includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, or bandwidth occupancy rate.

一种具体的实施方式,第一数据报文的报文头中包括第一字段和第二字段,第一字段用于承载第一路径约束信息,第二字段用于指示第一字段承载的第一路径约束信息是否有效。In a specific implementation manner, the header of the first data message includes a first field and a second field, the first field is used to carry the first path constraint information, and the second field is used to indicate the first field carried by the first field. - Whether the path constraint information is valid.

目前,通过网络控制设备确定SD-WAN中的报文传输路径,一方面,网络设备获取报文传输路径的实时性较差,对于视频类业务等时延要求较高的业务,无法保证业务需求的满足。另一方面,对于跨域传输的业务,由于每个域具有一个网络控制设备,而网络控制设备仅能确定其所管理的域的报文传输路径,导致网络控制设备不能根据跨域场景确定报文传输路径,从而导致网络控制设备确定的报文传输路径不能满足跨域传输的业务的传输需求。At present, the packet transmission path in SD-WAN is determined by the network control device. On the one hand, the real-time performance of network equipment to obtain the packet transmission path is poor. For services with high latency requirements such as video services, the service requirements cannot be guaranteed. satisfaction. On the other hand, for services transmitted across domains, since each domain has a network control device, and the network control device can only determine the packet transmission path of the domain it manages, the network control device cannot determine the packet transmission path according to the cross-domain scenario. As a result, the packet transmission path determined by the network control device cannot meet the transmission requirements of cross-domain transmission services.

本申请实施例提供的SD-WAN中的选路方法,由于无需控制设备选择报文传输路径,SD-WAN中的各个网络设备可以在报文的传输过程中动态选择传输路径,因此能够适用于网络设备数量较多的SD-WAN以及跨域传输的业务的报文传输。另外,在报文传输过程中,网络设备无需与SD-WAN的控制设备进行交互,从而保证了报文传输的实时性。同时也减少了第二设备与控制设备之间的数据传输量,降低了网络开销。The routing method in the SD-WAN provided by the embodiment of the present application does not need to control the device to select the message transmission path, and each network device in the SD-WAN can dynamically select the transmission path during the message transmission process, so it can be applied to SD-WAN with a large number of network devices and message transmission of services transmitted across domains. In addition, during the message transmission process, the network device does not need to interact with the SD-WAN control device, thus ensuring the real-time nature of message transmission. At the same time, the amount of data transmission between the second device and the control device is reduced, reducing network overhead.

图16是本申请实施例提供的一种SD-WAN中的选路装置的结构示意图。可以应用于SD-WAN中的第二设备,例如可以是图1或图2中所示的网络设备101A。如图16所示,该选路装置160包括:Fig. 16 is a schematic structural diagram of a routing device in an SD-WAN provided by an embodiment of the present application. The second device that can be applied in SD-WAN can be, for example, the network device 101A shown in FIG. 1 or FIG. 2 . As shown in Figure 16, the routing device 160 includes:

收发模块1601,用于通过第一隧道向第一设备发送第一数据报文,第二设备是第一隧道的入口设备,第一设备是第一隧道的出口设备。The transceiver module 1601 is configured to send the first data packet to the first device through the first tunnel, the second device is an ingress device of the first tunnel, and the first device is an egress device of the first tunnel.

收发模块1601,还用于接收第一设备发送的第一反馈报文,第一反馈报文中携带第一指示信息。The transceiver module 1601 is further configured to receive a first feedback message sent by the first device, where the first feedback message carries first indication information.

处理模块1602,用于根据第一指示信息,确定第一设备不能作为第一路径上用于传输第一业务的节点。The processing module 1602 is configured to determine, according to the first indication information, that the first device cannot be used as a node for transmitting the first service on the first path.

收发模块1601,还用于通过第二隧道向第三设备发送第二数据报文,第二设备是第二隧道的入口设备,第三设备是第二隧道的出口设备。The transceiver module 1601 is further configured to send a second data packet to a third device through the second tunnel, the second device is an ingress device of the second tunnel, and the third device is an egress device of the second tunnel.

一种具体的实施方式,收发模块1601,还用于接收第三设备发送的第二反馈报文,第二反馈报文中携带第二指示信息。处理模块1602,还用于根据第二指示信息,确定第三设备不能作为第一路径上用于传输第一业务的节点。In a specific implementation manner, the transceiver module 1601 is further configured to receive a second feedback message sent by the third device, where the second feedback message carries the second indication information. The processing module 1602 is further configured to determine, according to the second indication information, that the third device cannot be used as a node for transmitting the first service on the first path.

一种具体的实施方式,收发模块1601,还用于向控制设备发送通知报文,通知报文携带第三指示信息,第三指示信息用于向控制设备指示SD-WAN中不存在第一路径。In a specific implementation manner, the transceiver module 1601 is further configured to send a notification message to the control device, where the notification message carries third indication information, and the third indication information is used to indicate to the control device that there is no first path in the SD-WAN .

一种具体的实施方式,第一数据报文和第二数据报文为探测报文,探测报文中携带第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。A specific implementation manner, the first data message and the second data message are detection messages, the detection message carries first path constraint information, and the first path constraint information is used to determine the first path for transmitting the first service The first path constraints that are met.

一种具体的实施方式,收发模块1601,还用于按照预定的时间间隔,通过第二隧道向第三设备发送探测报文。In a specific implementation manner, the transceiver module 1601 is further configured to send a detection message to the third device through the second tunnel at a predetermined time interval.

一种具体的实施方式,第一数据报文和第二数据报文为业务报文,业务报文中携带第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。A specific implementation manner, the first data message and the second data message are service messages, and the service message carries first path constraint information, and the first path constraint information is used to determine the first path for transmitting the first service The first path constraints that are met.

一种具体的实施方式,收发模块1601,还用于接收控制设备发送的针对第一业务的选路指令。处理模块1602,还用于根据选路指令,获取第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。In a specific implementation manner, the transceiver module 1601 is also configured to receive a routing instruction for the first service sent by the control device. The processing module 1602 is further configured to acquire first path constraint information according to the routing instruction, where the first path constraint information is used to determine a first path constraint condition that the first path for transmitting the first service satisfies.

一种具体的实施方式,选路指令中包括第一业务的业务类型,处理模块1602,还用于:根据第一业务的业务类型,确定与业务类型对应的本地保存的第一路径约束信息。In a specific implementation manner, the routing instruction includes the service type of the first service, and the processing module 1602 is further configured to: determine locally stored first path constraint information corresponding to the service type according to the service type of the first service.

一种具体的实施方式,选路指令中包括第一路径约束信息。In a specific implementation manner, the routing instruction includes first path constraint information.

一种具体的实施方式,收发模块1601,还用于接收发送端设备发送的第一业务的业务报文。处理模块1602,还用于根据第一业务的业务报文的业务类型,确定与业务类型对应的本地保存的第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。In a specific implementation manner, the transceiver module 1601 is further configured to receive a service packet of the first service sent by the sending end device. The processing module 1602 is further configured to determine locally stored first path constraint information corresponding to the service type according to the service type of the service packet of the first service, and the first path constraint information is used to determine the first path for transmitting the first service The first path constraints that are met.

一种具体的实施方式,第一路径约束信息包括以下信息中的一个或多个:时延,抖动,带宽,丢包率,误码率或带宽占用率。In a specific implementation manner, the first path constraint information includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, or bandwidth occupancy rate.

一种具体的实施方式,第一数据报文的报文头中包括第一字段和第二字段,第一字段用于承载第一路径约束信息,第二字段用于指示第一字段承载的第一路径约束信息是否有效。In a specific implementation manner, the header of the first data message includes a first field and a second field, the first field is used to carry the first path constraint information, and the second field is used to indicate the first field carried by the first field. - Whether the path constraint information is valid.

此处未尽之细节可参考图3、图6或图7所示的SD-WAN中的选路方法中的详细描述。For details not described here, please refer to the detailed description of the route selection method in SD-WAN shown in FIG. 3 , FIG. 6 or FIG. 7 .

综上所述,本申请实施例提供的选路装置,由于无需控制设备选择报文传输路径,SD-WAN中的各个网络设备可以在报文的传输过程中动态选择传输路径,因此能够适用于网络设备数量较多的SD-WAN以及跨域传输的业务的报文传输。另外,在报文传输过程中,网络设备无需与SD-WAN的控制设备进行交互,从而保证了报文传输的实时性。同时也减少了第二设备与控制设备之间的数据传输量,降低了网络开销。To sum up, the routing device provided by the embodiment of the present application does not need to control the device to select the packet transmission path, and each network device in the SD-WAN can dynamically select the transmission path during the packet transmission process, so it can be applied to SD-WAN with a large number of network devices and message transmission of services transmitted across domains. In addition, during the message transmission process, the network device does not need to interact with the SD-WAN control device, thus ensuring the real-time nature of message transmission. At the same time, the amount of data transmission between the second device and the control device is reduced, reducing network overhead.

图17是本申请实施例提供的另一种SD-WAN中的选路装置的结构示意图。可以应用于SD-WAN中的第一设备,例如图1或图2中所示的网络设备101F或网络设备101C,第一设备为在SD-WAN中用于传输业务的出口设备或中间设备,SD-WAN中包括多条隧道。如图17所示,该选路装置170包括:FIG. 17 is a schematic structural diagram of another SD-WAN routing device provided by an embodiment of the present application. It can be applied to the first device in SD-WAN, such as network device 101F or network device 101C shown in FIG. 1 or FIG. 2 , the first device is an egress device or an intermediate device used to transmit services in SD-WAN, SD-WAN includes multiple tunnels. As shown in Figure 17, the routing device 170 includes:

收发模块1701,用于通过第一隧道接收第二设备发送的第一数据报文,第一设备是第一隧道的出口设备,第二设备是第一隧道的入口设备。The transceiver module 1701 is configured to receive the first data packet sent by the second device through the first tunnel, the first device is the egress device of the first tunnel, and the second device is the ingress device of the first tunnel.

处理模块1702,用于根据第一数据报文,确定第一业务对应的第一路径约束信息,第一路径约束信息用于确定传输第一业务的第一路径所满足的第一路径约束条件。The processing module 1702 is configured to determine first path constraint information corresponding to the first service according to the first data packet, where the first path constraint information is used to determine a first path constraint condition satisfied by the first path for transmitting the first service.

收发模块1701,还用于确定自身不满足第一路径约束条件,向第二设备发送第一反馈报文,第一反馈报文中携带第一指示信息,第一指示信息用于向第二设备指示第一设备不能作为第一路径上用于传输第一业务的节点。The transceiver module 1701 is further configured to determine that it does not satisfy the first path constraint condition, and send a first feedback message to the second device, where the first feedback message carries first indication information, and the first indication information is used to send the second indication information to the second device Indicates that the first device cannot be used as a node for transmitting the first service on the first path.

一种具体的实施方式,收发模块1701,还用于通过第二隧道接收第三设备发送的第二数据报文,第一设备是第二隧道的出口设备,第三设备是第二隧道的入口设备。In a specific implementation manner, the transceiver module 1701 is further configured to receive the second data packet sent by the third device through the second tunnel, the first device is the exit device of the second tunnel, and the third device is the entrance of the second tunnel equipment.

处理模块1702,还用于根据第二数据报文,确定第二业务对应的第二路径约束信息,第二路径约束信息用于确定传输第二业务的第二路径所满足的第二路径约束条件。The processing module 1702 is further configured to determine second path constraint information corresponding to the second service according to the second data packet, and the second path constraint information is used to determine a second path constraint condition satisfied by the second path for transmitting the second service .

收发模块1701,还用于确定自身满足第二路径约束条件,通过第三隧道向第四设备转发更新的第二数据报文,第一设备是第三隧道的入口设备,第四设备是第三隧道的出口设备。The transceiver module 1701 is also configured to determine that it satisfies the second path constraint condition, and forward the updated second data packet to the fourth device through the third tunnel, the first device is the entrance device of the third tunnel, and the fourth device is the third The egress device of the tunnel.

一种具体的实施方式,收发模块1701,还用于接收第四设备发送的第二反馈报文,第二反馈报文中携带第二指示信息,第二指示信息用于向第一设备指示第四设备不能作为第二路径上用于传输第二业务的节点。In a specific implementation manner, the transceiver module 1701 is further configured to receive a second feedback message sent by the fourth device, the second feedback message carries second indication information, and the second indication information is used to indicate the first device to the first device. The fourth device cannot be used as a node for transmitting the second service on the second path.

处理模块1702,还用于根据第二指示信息,确定第四设备不满足第二路径约束条件。The processing module 1702 is further configured to determine, according to the second indication information, that the fourth device does not meet the second path constraint condition.

一种具体的实施方式,处理模块1702,还用于重新选择第二路径上的下游设备。In a specific implementation manner, the processing module 1702 is further configured to reselect a downstream device on the second path.

一种具体的实施方式,处理模块1702,还用于:通过第四隧道向第五设备发送更新的第二数据报文,第一设备是第四隧道的入口设备,第五设备是第四隧道的出口设备。A specific implementation manner, the processing module 1702 is further configured to: send an updated second data packet to the fifth device through the fourth tunnel, the first device is the entrance device of the fourth tunnel, and the fifth device is the fourth tunnel export equipment.

一种具体的实施方式,收发模块1701,还用于向第三设备发送第三反馈报文,第三反馈报文中携带第三指示信息,第三指示信息用于向第三设备指示第一设备不能作为第二路径上用于传输第二业务的节点。In a specific implementation manner, the transceiver module 1701 is further configured to send a third feedback message to a third device, where the third feedback message carries third indication information, and the third indication information is used to indicate the first The device cannot be used as a node for transmitting the second service on the second path.

一种具体的实施方式,第一数据报文为探测报文,探测报文中携带第一路径约束信息。In a specific implementation manner, the first data message is a detection message, and the detection message carries the first path constraint information.

一种具体的实施方式,收发模块1701,还用于:按照预定的时间间隔,通过第一隧道接收第二设备发送的探测报文。In a specific implementation manner, the transceiver module 1701 is further configured to: receive the detection message sent by the second device through the first tunnel at a predetermined time interval.

一种具体的实施方式,第一数据报文为业务报文,业务报文中携带第一路径约束信息。In a specific implementation manner, the first data message is a service message, and the service message carries the first path constraint information.

一种具体的实施方式,处理模块1702,用于:根据第一数据报文的业务类型,确定与业务类型对应的本地保存的第一路径约束信息。In a specific implementation manner, the processing module 1702 is configured to: according to the service type of the first data packet, determine locally stored first path constraint information corresponding to the service type.

一种具体的实施方式,第一路径约束信息包括以下信息中的一个或多个:时延,抖动,带宽,丢包率,误码率和带宽占用率。In a specific implementation manner, the first path constraint information includes one or more of the following information: delay, jitter, bandwidth, packet loss rate, bit error rate, and bandwidth occupancy rate.

一种具体的实施方式,第一数据报文的报文头中包括第一字段和第二字段,第一字段用于承载第一路径约束信息,第二字段用于指示第一字段承载的第一路径约束信息是否有效。In a specific implementation manner, the header of the first data message includes a first field and a second field, the first field is used to carry the first path constraint information, and the second field is used to indicate the first field carried by the first field. - Whether the path constraint information is valid.

此处未尽之细节可参考图3或图6所示的SD-WAN中的选路方法中的详细描述。For details not described here, please refer to the detailed description of the route selection method in SD-WAN shown in FIG. 3 or FIG. 6 .

综上所述,本申请实施例提供的选路装置,由于无需控制设备选择报文传输路径,SD-WAN中的各个网络设备可以在报文的传输过程中动态选择传输路径,因此能够适用于网络设备数量较多的SD-WAN以及跨域传输的业务的报文传输。另外,在报文传输过程中,网络设备无需与SD-WAN的控制设备进行交互,从而保证了报文传输的实时性。同时也减少了第二设备与控制设备之间的数据传输量,降低了网络开销。To sum up, the routing device provided by the embodiment of the present application does not need to control the device to select the packet transmission path, and each network device in the SD-WAN can dynamically select the transmission path during the packet transmission process, so it can be applied to SD-WAN with a large number of network devices and message transmission of services transmitted across domains. In addition, during the message transmission process, the network device does not need to interact with the SD-WAN control device, thus ensuring the real-time nature of message transmission. At the same time, the amount of data transmission between the second device and the control device is reduced, reducing network overhead.

图18是本申请实施例提供的一种SD-WAN中的选路装置1800的框图。该选路装置1800可以是SD-WAN中传输路径上的入口设备、中间设备或出口设备,具体可以是路由器或交换机等。如图18所示,该装置1800包括:处理器1801和存储器1802。Fig. 18 is a block diagram of a routing device 1800 in SD-WAN provided by an embodiment of the present application. The routing device 1800 may be an ingress device, an intermediate device, or an egress device on a transmission path in SD-WAN, specifically, it may be a router or a switch. As shown in FIG. 18 , the apparatus 1800 includes: a processor 1801 and a memory 1802 .

存储器1802,用于存储计算机可读指令;memory 1802 for storing computer readable instructions;

处理器1801,用于调用所述计算机可读指令,按照所述计算机可读指令的指示,可以执行如图3所示方法中由设备2或设备3、图6所示方法中由设备4或设备5或设备6、或者图14所示方法中第一设备可以执行的全部操作;或者还可以执行如图3所示方法中由设备1、图6所示方法中由设备1、或者图15所示方法中第二设备可以执行的全部操作。例如,设备2在图3对应的实施例执行的操作,或者第一设备在图14对应的实施例中执行的操作。The processor 1801 is configured to invoke the computer-readable instructions, and according to the instructions of the computer-readable instructions, may execute the method shown in FIG. 3 by device 2 or device 3, and the method shown in FIG. 6 by device 4 or Device 5 or device 6, or all operations that can be performed by the first device in the method shown in FIG. All operations that the second device can perform in the shown method. For example, the operations performed by device 2 in the embodiment corresponding to FIG. 3 , or the operations performed by the first device in the embodiment corresponding to FIG. 14 .

一种具体的实施方式,装置1800还可以包括通信接口1803。其中,存储器1802,处理器1801和通信接口1803相互通信连接。In a specific implementation manner, the device 1800 may further include a communication interface 1803 . Wherein, the memory 1802, the processor 1801 and the communication interface 1803 are communicatively connected to each other.

图19是本申请实施例提供的另一种SD-WAN中的选路装置1900的框图。该选路装置可以是SD-WAN中传输路径上的入口设备、中间设备或出口设备,具体可以是路由器或交换机等。如图19所示,该装置1900包括:通信接口1901;以及与所述通信接口1901连接的处理器1902。根据所述通信接口1901和所述处理器1902,选路装置1900可以执行如图3所示方法中由设备2或设备3、图6所示方法中由设备4或设备5或设备6、或者图14所示方法中第一设备可以执行的全部操作;或者还可以执行如图3所示方法中由设备1、图6所示方法中由设备1、或者图15所示方法中第二设备可以执行的全部操作。其中,通信接口1901用于实现收发操作,处理器1902用于实现收发以外的操作。举例来说,当装置1900用于实现图14所示方法时,通信接口1901用于通过第一隧道接收第二设备发送的第一数据报文,处理器1902用于根据所述第一数据报文,确定第一业务对应的第一路径约束信息。FIG. 19 is a block diagram of another SD-WAN routing device 1900 provided by an embodiment of the present application. The routing device may be an ingress device, an intermediate device or an egress device on the transmission path in the SD-WAN, specifically a router or a switch. As shown in FIG. 19 , the apparatus 1900 includes: a communication interface 1901 ; and a processor 1902 connected to the communication interface 1901 . According to the communication interface 1901 and the processor 1902, the routing device 1900 can execute the method shown in FIG. 3 by device 2 or device 3, the method shown in FIG. 6 by device 4 or device 5 or device 6, or All the operations that can be performed by the first device in the method shown in Figure 14; or can also be performed by the device 1 in the method shown in Figure 3, by the device 1 in the method shown in Figure 6, or by the second device in the method shown in Figure 15 All operations that can be performed. Among them, the communication interface 1901 is used to realize the operation of sending and receiving, and the processor 1902 is used to realize the operation other than sending and receiving. For example, when the apparatus 1900 is used to implement the method shown in FIG. 14 , the communication interface 1901 is used to receive the first data packet sent by the second device through the first tunnel, and the processor 1902 is used to receive the first data packet according to the first data packet. The document determines the first path constraint information corresponding to the first service.

其中,在本申请实施例中,处理器可以是中央处理器(central processing unit,CPU)。处理器可以包括一个或者一个以上处理核心,处理器通过运行计算机程序执行各种功能应用以及数据处理。处理器和存储器通过所述通信总线相连。Wherein, in the embodiment of the present application, the processor may be a central processing unit (central processing unit, CPU). The processor may include one or more processing cores, and the processor executes various functional applications and data processing by running computer programs. The processor and memory are connected through the communication bus.

处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application specific integrated circuits,ASIC),可编程逻辑器件(programmablelogic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complexprogrammable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gatearray,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。一种具体的实施方式,该硬件芯片可用于实现加密/解密操作。The processor may further include hardware chips. The aforementioned hardware chip may be an application specific integrated circuit (application specific integrated circuits, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof. The aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof. In a specific implementation manner, the hardware chip can be used to implement encryption/decryption operations.

存储器可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(random access memory,RAM);存储器也可以包括非易失性存储器(英文:non-volatilememory),例如快闪存储器(英文:flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。The memory may include a volatile memory (English: volatile memory), such as a random access memory (random access memory, RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: : flash memory), a hard disk (hard disk drive, HDD) or a solid-state drive (solid-state drive, SSD); the storage may also include a combination of the above types of storage.

通信接口可以为多个,通信接口用于与其它设备进行通信。通信接口可以包括有线通信接口,无线通信接口或其组合。其中,有线通信接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线通信接口可以为无线局域网(wireless localarea network,WLAN)接口,蜂窝网络通信接口或其组合等。There may be multiple communication interfaces, and the communication interfaces are used to communicate with other devices. The communication interface may include a wired communication interface, a wireless communication interface, or a combination thereof. Wherein, the wired communication interface may be an Ethernet interface, for example. The Ethernet interface can be an optical interface, an electrical interface or a combination thereof. The wireless communication interface may be a wireless local area network (wireless local area network, WLAN) interface, a cellular network communication interface, or a combination thereof.

在上述实施例中,可以全部或部分地通过硬件、固件或者其任意组合来实现。当具体实现过程中涉及软件时,可以全部或部分地体现为计算机程序产品的形式。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, all or part of the implementation may be implemented by hardware, firmware or any combination thereof. When software is involved in the specific implementation process, it may be fully or partially embodied in the form of computer program products. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center 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.). 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 or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).

在本申请实施例中,术语“第一”、“第二”和“第三”等仅用于描述目的,而不能理解为指示或暗示相对重要性。术语“至少一个”是指一个或多个,术语“多个”指两个或两个以上,除非另有明确的限定。In the embodiments of the present application, terms such as "first", "second" and "third" are used for description purposes only, and should not be understood as indicating or implying relative importance. The term "at least one" means one or more, and the term "plurality" means two or more, unless otherwise clearly defined.

本申请中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this application is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and A and B exist alone. There are three cases of B. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的构思和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the concept and principles of the application shall be included in the protection of the application. within range.

Claims (52)

1. A method of routing in a software defined wide area network, SD-WAN, the method comprising:
the method comprises the steps that a first device receives a first data message sent by a second device through a first tunnel, wherein the first device is an outlet device of the first tunnel, the second device is an inlet device of the first tunnel, and the first tunnel is an overlay tunnel of the SD-WAN;
The first device determines first path constraint information corresponding to a first service according to the first data message, wherein the first path constraint information is used for determining a first path constraint condition met by a path for transmitting the first service;
the first device determines that the first path constraint condition is not met, the first device sends a first feedback message to the second device, the first feedback message carries first indication information, and the first indication information is used for indicating to the second device that the first device cannot serve as a node for transmitting the first service, so that the second device determines that the first tunnel cannot serve as a tunnel on a path for transmitting the first service and reselects the tunnel for transmitting the first service.
2. The method according to claim 1, wherein the method further comprises:
the first device receives a second data message sent by a third device through a second tunnel, wherein the first device is an outlet device of the second tunnel, the third device is an inlet device of the second tunnel, and the second tunnel is an overlay tunnel of the SD-WAN;
The first device determines second path constraint information corresponding to a second service according to the second data message, wherein the second path constraint information is used for determining a second path constraint condition met by a path for transmitting the second service;
the first device determines that the first device meets the second path constraint condition, and forwards the updated second data message to a fourth device through a third tunnel, wherein the first device is an entrance device of the third tunnel, the fourth device is an exit device of the third tunnel, and the third tunnel is an overlay tunnel of the SD-WAN.
3. The method according to claim 2, wherein the method further comprises:
the first device receives a second feedback message sent by the fourth device, wherein the second feedback message carries second indication information, and the second indication information is used for indicating to the first device that the fourth device cannot be used as a node for transmitting the second service;
and the first device determines that the fourth device does not meet the second path constraint condition according to the second indication information.
4. A method according to claim 3, wherein after the first device determines from the second indication information that the fourth device does not meet the second path constraint, the method further comprises:
The first device reselects a tunnel that transports the second traffic.
5. The method of claim 4, wherein the first device reselects a tunnel that transmits the second traffic, comprising:
the first device sends the updated second data message to a fifth device through a fourth tunnel, wherein the first device is an ingress device of the fourth tunnel, the fifth device is an egress device of the fourth tunnel, and the fourth tunnel is an overlay tunnel of the SD-WAN.
6. A method according to claim 3, wherein after the first device determines from the second indication information that the fourth device does not meet the second path constraint, the method further comprises:
the first device sends a third feedback message to the third device, wherein the third feedback message carries third indication information, and the third indication information is used for indicating to the third device that the first device cannot serve as a node for transmitting the second service.
7. The method of claim 1, wherein the first data message is a probe message, and the probe message carries the first path constraint information.
8. The method of claim 7, wherein the first device receiving, through the first tunnel, the first data message sent by the second device, comprises:
and the first equipment receives the detection message sent by the second equipment through the first tunnel according to a preset time interval.
9. The method of claim 1, wherein the first data message is a service message, and the service message carries the first path constraint information.
10. The method of claim 1, wherein the determining, by the first device, first path constraint information corresponding to a first service according to the first data packet includes:
and the first equipment determines the locally stored first path constraint information corresponding to the service type according to the service type of the first data message.
11. The method of any of claims 1 to 10, wherein the first path constraint information comprises one or more of the following: delay, jitter, bandwidth, packet loss rate, bit error rate, and bandwidth occupancy.
12. The method according to any one of claims 1 to 10, wherein a header of the first data packet includes a first field and a second field, the first field is used for carrying the first path constraint information, and the second field is used for indicating whether the first path constraint information carried by the first field is valid.
13. A method of routing in a software defined wide area network, SD-WAN, the method comprising:
a second device sends a first data message to a first device through a first tunnel, wherein the second device is an entrance device of the first tunnel, the first device is an exit device of the first tunnel, and the first tunnel is an overlay tunnel of the SD-WAN;
the second device receives a first feedback message sent by the first device, wherein the first feedback message carries first indication information;
the second device determines that the first device cannot be used as a node for transmitting the first service according to the first indication information, and the first tunnel cannot be used as a tunnel on a path for transmitting the first service;
and the second device sends a second data message to a third device through a second tunnel, wherein the second device is an entrance device of the second tunnel, the third device is an exit device of the second tunnel, and the second tunnel is an overlay tunnel of the SD-WAN.
14. The method of claim 13, wherein after the second device sends the second data message to the third device through the second tunnel, the method further comprises:
The second device receives a second feedback message sent by the third device, wherein the second feedback message carries second indication information;
and the second device determines that the third device cannot be used as a node for transmitting the first service according to the second indication information, and the second tunnel cannot be used as a tunnel on a path for transmitting the first service.
15. The method according to claim 13 or 14, characterized in that the method further comprises:
the second device sends a notification message to the control device, wherein the notification message carries third indication information, and the third indication information is used for indicating to the control device that a path for transmitting the first service does not exist in the SD-WAN.
16. The method according to claim 13 or 14, wherein the first data packet and the second data packet are probe packets, the probe packets carrying first path constraint information, the first path constraint information being used to determine a first path constraint condition satisfied by a path for transmitting the first service.
17. The method of claim 16, wherein after the second device sends the second data message to the third device through the second tunnel, the method further comprises:
And the second equipment sends a detection message to the third equipment through the second tunnel according to a preset time interval.
18. The method of claim 13, wherein the first data message and the second data message are service messages, and the service messages carry first path constraint information, and the first path constraint information is used to determine a first path constraint condition satisfied by a path for transmitting the first service.
19. The method of claim 13, wherein the method further comprises:
the second device receives a routing instruction for the first service, which is sent by the control device;
and the second equipment acquires first path constraint information according to the routing instruction, wherein the first path constraint information is used for determining a first path constraint condition met by a path for transmitting the first service.
20. The method of claim 19, wherein the routing instruction includes a service type of the first service, and wherein the second device obtains the first path constraint information according to the routing instruction, including:
and the second equipment determines the locally stored first path constraint information corresponding to the service type according to the service type of the first service.
21. The method of claim 19, wherein the first path constraint information is included in the routing instruction.
22. The method according to claim 13 or 14, characterized in that the method further comprises:
the second equipment receives a service message of the first service sent by the sending end equipment;
the second device determines locally stored first path constraint information corresponding to the service type according to the service type of the service message of the first service, wherein the first path constraint information is used for determining a first path constraint condition met by a path for transmitting the first service.
23. The method of claim 18 or 19, wherein the first path constraint information comprises one or more of the following: delay, jitter, bandwidth, packet loss rate, bit error rate, or bandwidth occupancy.
24. The method according to claim 18 or 19, wherein a header of the first data message includes a first field and a second field, the first field is used for carrying the first path constraint information, and the second field is used for indicating whether the first path constraint information carried by the first field is valid.
25. A first device in a software defined wide area network, SD-WAN, comprising:
a communication interface; and
a processor connected to the communication interface;
a method according to any one of claims 1 to 12, implemented in accordance with the communication interface and the processor.
26. A second device in a software defined wide area network, SD-WAN, comprising:
a communication interface; and
a processor connected to the communication interface;
a method according to any one of claims 13 to 24, implemented in accordance with the communication interface and the processor.
27. A communication system in a software defined wide area network SD-WAN, characterized in that the communication system comprises a first device according to claim 25 and a second device according to claim 26.
28. A computer storage medium having instructions stored thereon which, when executed by a processor, implement the method of any of claims 1 to 24.
29. A first device in a software defined wide area network, SD-WAN, the first device comprising:
the receiving and transmitting module is used for receiving a first data message sent by a second device through a first tunnel, wherein the first device is an outlet device of the first tunnel, the second device is an inlet device of the first tunnel, and the first tunnel is an overlay tunnel of the SD-WAN;
The processing module is used for determining first path constraint information corresponding to a first service according to the first data message, wherein the first path constraint information is used for determining first path constraint conditions met by a path for transmitting the first service;
the transceiver module is further configured to determine that the first path constraint condition is not satisfied by the transceiver module, where the first device sends a first feedback packet to the second device, where the first feedback packet carries first indication information, where the first indication information is used to indicate to the second device that the first device cannot be used as a node for transmitting the first service, so that the second device determines that the first tunnel cannot be used as a tunnel on a path for transmitting the first service and reselects a tunnel for transmitting the first service.
30. The first device of claim 29, wherein the first device comprises a plurality of sensors,
the transceiver module is further configured to receive, through a second tunnel, a second data packet sent by a third device, where the first device is an egress device of the second tunnel, the third device is an ingress device of the second tunnel, and the second tunnel is an overlay tunnel of the SD-WAN;
The processing module is further configured to determine second path constraint information corresponding to a second service according to the second data packet, where the second path constraint information is used to determine a second path constraint condition satisfied by a path for transmitting the second service;
the transceiver module is further configured to determine that the second path constraint condition is met, and the first device forwards the updated second data packet to a fourth device through a third tunnel, where the first device is an ingress device of the third tunnel, the fourth device is an egress device of the third tunnel, and the third tunnel is an overlay tunnel of the SD-WAN.
31. The first device of claim 30, wherein the first device comprises a plurality of sensors,
the transceiver module is further configured to receive a second feedback packet sent by the fourth device, where the second feedback packet carries second indication information, where the second indication information is used to indicate to the first device that the fourth device cannot be used as a node for transmitting the second service;
and the processing module is further configured to determine, according to the second instruction information, that the fourth device does not meet the second path constraint condition.
32. The first device of claim 31, wherein the first device,
and the processing module is further configured to reselect a tunnel for transmitting the second service after the first device determines that the fourth device does not meet the second path constraint condition according to the second indication information.
33. The first device of claim 32, wherein the first device,
the transceiver module is further configured to send the updated second data packet to a fifth device through a fourth tunnel, where the first device is an ingress device of the fourth tunnel, the fifth device is an egress device of the fourth tunnel, and the fourth tunnel is an overlay tunnel of the SD-WAN.
34. The first device of claim 31, wherein the first device,
the transceiver module is further configured to send a third feedback packet to the third device after the first device determines, according to the second indication information, that the fourth device does not meet the second path constraint condition, where the third feedback packet carries third indication information, where the third indication information is used to indicate to the third device that the first device cannot be used as a node for transmitting the second service.
35. The first device of claim 29, wherein the first data message is a probe message, and the probe message carries the first path constraint information.
36. The first device of claim 35, wherein the first device comprises a plurality of sensors,
the receiving and transmitting module is used for receiving the detection message sent by the second device through the first tunnel according to a preset time interval.
37. The first device of claim 29, wherein the first data message is a service message, and the service message carries the first path constraint information.
38. The first device of claim 29, wherein the first device comprises a plurality of sensors,
the processing module is configured to determine, according to a service type of the first data packet, locally stored first path constraint information corresponding to the service type.
39. The first device of any of claims 29 to 38, wherein the first path constraint information comprises one or more of the following: delay, jitter, bandwidth, packet loss rate, bit error rate, and bandwidth occupancy.
40. The first device of any of claims 29 to 38, wherein a header of the first data packet includes a first field and a second field, the first field being configured to carry the first path constraint information, and the second field being configured to indicate whether the first path constraint information carried by the first field is valid.
41. A second device in a software defined wide area network, SD-WAN, the second device comprising:
the receiving and transmitting module is used for sending a first data message to a first device through a first tunnel, wherein the second device is an entrance device of the first tunnel, the first device is an exit device of the first tunnel, and the first tunnel is an overlay tunnel of the SD-WAN;
the transceiver module is further configured to receive a first feedback packet sent by the first device, where the first feedback packet carries first indication information;
the processing module is used for determining that the first equipment cannot be used as a node for transmitting the first service according to the first indication information, and the first tunnel cannot be used as a tunnel on a path for transmitting the first service;
the transceiver module is further configured to send a second data packet to a third device through a second tunnel, where the second device is an ingress device of the second tunnel, the third device is an egress device of the second tunnel, and the second tunnel is an overlay tunnel of the SD-WAN.
42. The second device of claim 41, wherein,
the transceiver module is further configured to receive a second feedback message sent by the third device after the second device sends a second data message to the third device through the second tunnel, where the second feedback message carries second indication information;
The processing module is further configured to determine that the third device cannot be used as a node for transmitting the first service, and that the second tunnel cannot be used as a tunnel on a path for transmitting the first service.
43. The second device of claim 41 or 42, wherein,
the transceiver module is further configured to send a notification packet to a control device, where the notification packet carries third indication information, and the third indication information is used to indicate to the control device that a path for transmitting the first service does not exist in the SD-WAN.
44. The second device of claim 41 or 42, wherein the first data message and the second data message are probe messages, and the probe messages carry first path constraint information, and the first path constraint information is used to determine a first path constraint condition satisfied by a path for transmitting the first service.
45. The second device of claim 44, wherein,
the transceiver module is configured to send a detection message to a third device through a second tunnel according to a predetermined time interval after the second device sends a second data message to the third device through the second tunnel.
46. The second device of claim 41, wherein the first data message and the second data message are service messages, the service messages carrying first path constraint information, the first path constraint information being used to determine a first path constraint condition satisfied by a path for transmitting the first service.
47. The second device of claim 41, wherein,
the receiving and transmitting module is further used for receiving a routing instruction for the first service, which is sent by the control equipment;
the processing module is further configured to obtain first path constraint information according to the routing instruction, where the first path constraint information is used to determine a first path constraint condition that is satisfied by a path for transmitting the first service.
48. The second device of claim 47, wherein the routing instructions include a service type of the first service, and wherein the processing module is configured to:
and determining the locally stored first path constraint information corresponding to the service type according to the service type of the first service.
49. The second device of claim 47, wherein the routing instructions include the first path constraint information therein.
50. The second device of claim 41 or 42, wherein,
the receiving and transmitting module is further configured to receive a service packet of the first service sent by the sending end device;
the processing module is further configured to determine, according to a service type of the service packet of the first service, locally stored first path constraint information corresponding to the service type, where the first path constraint information is used to determine a first path constraint condition satisfied by a path for transmitting the first service.
51. The second device of claim 46 or 47, wherein the first path constraint information comprises one or more of the following: delay, jitter, bandwidth, packet loss rate, bit error rate, or bandwidth occupancy.
52. The second device of claim 46 or 47, wherein a header of the first data packet includes a first field for carrying the first path constraint information and a second field for indicating whether the first path constraint information carried by the first field is valid.
CN201911380368.4A 2019-12-27 2019-12-27 Routing method and device in software-defined wide area network, and communication system Active CN113055293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911380368.4A CN113055293B (en) 2019-12-27 2019-12-27 Routing method and device in software-defined wide area network, and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911380368.4A CN113055293B (en) 2019-12-27 2019-12-27 Routing method and device in software-defined wide area network, and communication system

Publications (2)

Publication Number Publication Date
CN113055293A CN113055293A (en) 2021-06-29
CN113055293B true CN113055293B (en) 2023-06-23

Family

ID=76506671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911380368.4A Active CN113055293B (en) 2019-12-27 2019-12-27 Routing method and device in software-defined wide area network, and communication system

Country Status (1)

Country Link
CN (1) CN113055293B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113260067B (en) * 2021-07-07 2021-09-28 深圳市光联世纪信息科技有限公司 Service bearing method, system and equipment of service level agreement SLA based on SD-WAN
CN115604171B (en) * 2022-11-29 2023-06-30 北京天维信通科技有限公司 Network line selection method, system, terminal and storage medium
CN116016035B (en) * 2023-02-16 2023-06-13 北京天维信通科技有限公司 Method for applying multipath service in same tunnel by utilizing quintuple
CN117811991A (en) * 2023-12-20 2024-04-02 山东未来网络研究院(紫金山实验室工业互联网创新应用基地) Closed-loop-based congestion feedback and detection path calculation method for realizing multi-domain cloud network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7319700B1 (en) * 2000-12-29 2008-01-15 Juniper Networks, Inc. Communicating constraint information for determining a path subject to such constraints
CN101227248A (en) * 2008-01-29 2008-07-23 中兴通讯股份有限公司 Method for establishing business path
CN110324242A (en) * 2018-03-29 2019-10-11 华为技术有限公司 A kind of method, network node and system that message is sent

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595895A (en) * 2003-09-10 2005-03-16 华为技术有限公司 A routing method based on resource restriction
CN100387023C (en) * 2004-04-26 2008-05-07 华为技术有限公司 The method of stream state establishment
US10637782B2 (en) * 2011-03-23 2020-04-28 Hughes Network Systems, Llc System and method for policy-based multipath WAN transports for improved quality of service over broadband networks
CN102833173A (en) * 2012-09-14 2012-12-19 中国联合网络通信集团有限公司 Network device and tunnel adaptation method
CN106330756B (en) * 2015-07-03 2020-01-03 华为技术有限公司 Data transmission method and equipment
WO2017219244A1 (en) * 2016-06-21 2017-12-28 华为技术有限公司 Communication method and device
WO2018161262A1 (en) * 2017-03-07 2018-09-13 华为技术有限公司 Data transmission method and device
US10972379B2 (en) * 2018-04-15 2021-04-06 Versa Networks, Inc. Application performance based path-selection
CN109617810B (en) * 2018-11-30 2021-04-16 中国联合网络通信集团有限公司 Data transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7319700B1 (en) * 2000-12-29 2008-01-15 Juniper Networks, Inc. Communicating constraint information for determining a path subject to such constraints
CN101227248A (en) * 2008-01-29 2008-07-23 中兴通讯股份有限公司 Method for establishing business path
CN110324242A (en) * 2018-03-29 2019-10-11 华为技术有限公司 A kind of method, network node and system that message is sent

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ManelSORIA ; OriolLORDAN ; José MaríaSALLAN.Heuristics of node selection criteria to assess robustness of world airport network.2017,第30卷(第4期),全文. *
林川 ; 赵海 ; 毕远国 ; 蔡巍 ; .基于SDN的QoS测量与路由规划系统设计与实现.东北大学学报(自然科学版).2017,(第08期),全文. *

Also Published As

Publication number Publication date
CN113055293A (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN113676361B (en) On-demand probing for quality of experience metrics
WO2021185208A1 (en) Packet processing method and apparatus, device, and storage medium
CN113055293B (en) Routing method and device in software-defined wide area network, and communication system
US11159423B2 (en) Techniques for efficient multipath transmission
KR101900536B1 (en) Implementing a 3g packet core in a cloud computer with openflow data and control planes
US9357410B2 (en) Wireless network flow monitoring
CN114128228B (en) Transmission of MTNC-ID via SRv6 header for 5G transmission
CN104067575B (en) Rerouting technique
US11546255B2 (en) Packet processing method, controller, and forwarding device
US20180091603A1 (en) Session-identifer based twamp data session provisioning in computer networks
US20130322258A1 (en) Managing trace requests over tunneled links
CN114710975B (en) Method, base station, network element and device for multi-domain transmission and multi-transmission network context identification
CN114128227B (en) Transmitting MTNC-ID on SRv 6-enabled data plane to enable 5G transmission
US8711838B1 (en) Using network labels without standard-defined syntax and semantics
WO2023116457A1 (en) Packet processing method and apparatus, and communication system
CN114629843A (en) Message processing method and device
WO2020114083A1 (en) Method and apparatus for processing ioam information
CN108092866A (en) A kind of method, apparatus and system of tunnel switching
EP3131344A1 (en) Method and system for discovery of access aggregation points for bonding approaches in a telecommunication network
CN117176627A (en) Transmission detection method, device and system

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载