CN116915694A - Data transmission method, gateway, communication device, and computer-readable storage medium - Google Patents
Data transmission method, gateway, communication device, and computer-readable storage medium Download PDFInfo
- Publication number
- CN116915694A CN116915694A CN202310323081.8A CN202310323081A CN116915694A CN 116915694 A CN116915694 A CN 116915694A CN 202310323081 A CN202310323081 A CN 202310323081A CN 116915694 A CN116915694 A CN 116915694A
- Authority
- CN
- China
- Prior art keywords
- link
- gateway
- data
- data frame
- status 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供一种数据传输方法、网关、通信设备及计算机可读存储介质,终端侧的第一网关侧的方法包括:接收待传输的数据流;按照所述数据流的分流策略,确定所述数据流的每个数据帧分别对应的目标链路;在所述数据流的每个数据帧中添加所述数据帧对应的目标链路的链路标识,所述数据帧中携带有时间戳信息;通过所述目标链路,将添加了链路标识的所述数据帧发送至服务端侧的第二网关。本发明的方案实现了数据流的多链路分流传输,提升了链路使用效率。
The present invention provides a data transmission method, a gateway, a communication device and a computer-readable storage medium. The method on the first gateway side of the terminal side includes: receiving a data flow to be transmitted; and determining the said data flow according to the diversion strategy of the data flow. Each data frame of the data flow corresponds to a target link; add a link identifier of the target link corresponding to the data frame to each data frame of the data flow, and the data frame carries timestamp information. ; Send the data frame with the link identifier added to the second gateway on the server side through the target link. The solution of the present invention realizes multi-link split transmission of data streams and improves link usage efficiency.
Description
技术领域Technical field
本发明涉及通信技术领域,特别是指一种数据传输方法、网关、通信设备及计算机可读存储介质。The present invention relates to the field of communication technology, and in particular, to a data transmission method, gateway, communication equipment and computer-readable storage medium.
背景技术Background technique
传统的数据通信网络可通过PBR(Policy Based Routing,策略路由)、MultiPathTCP(多通路传输控制协议)、TAN(Time Aware Network,时间明晰网络)技术等实现数据传输分流;Traditional data communication networks can realize data transmission offloading through PBR (Policy Based Routing, Policy Routing), MultiPathTCP (Multipath Transmission Control Protocol), TAN (Time Aware Network, Time Aware Network) technology, etc.;
但是这些方案中还存在以下问题:However, these solutions still have the following problems:
传统的链路状态测量方案需要发送大量的探测报文,无法在较低占用网络开销的情况下保证链路状态的实时准确测量;The traditional link status measurement solution requires sending a large number of detection packets and cannot ensure real-time and accurate measurement of the link status with low network overhead;
PBR存在配置复杂度高的问题,需根据现场网路实际情况进行点对点配置,无法实现单一连接的多链路数据分流,无法为单一数据流提供更完善的带宽或传输保障;PBR has the problem of high configuration complexity. It needs to be configured point-to-point according to the actual situation of the on-site network. It cannot realize multi-link data offloading of a single connection and cannot provide more complete bandwidth or transmission guarantee for a single data stream;
MultiPath TCP需要对通信设备改造对接,即需要在双端应用层实现MultiPathTCP功能,无法实现多链路数据分流,也无法为数据流提供更完善的带宽或传输保障。MultiPath TCP requires the transformation and interconnection of communication equipment, that is, the MultiPathTCP function needs to be implemented at the dual-end application layer. It cannot realize multi-link data offloading and cannot provide more complete bandwidth or transmission guarantee for data flow.
发明内容Contents of the invention
本发明提供一种数据传输方法、网关、通信设备及计算机可读存储介质。可以提升链路使用效率,为数据流提供传输保障。The invention provides a data transmission method, a gateway, a communication device and a computer-readable storage medium. It can improve link usage efficiency and provide transmission guarantee for data flow.
为解决上述技术问题,本发明的技术方案如下:In order to solve the above technical problems, the technical solutions of the present invention are as follows:
一种数据传输方法,应用于终端侧的第一网关,所述方法包括:A data transmission method, applied to the first gateway on the terminal side, the method includes:
接收待传输的数据流;Receive the data stream to be transmitted;
按照所述数据流的分流策略,确定所述数据流的每个数据帧分别对应的目标链路;According to the offloading strategy of the data flow, determine the target link corresponding to each data frame of the data flow;
在所述数据流的每个数据帧中添加所述数据帧对应的目标链路的链路标识,所述数据帧中携带有时间戳信息;Add the link identifier of the target link corresponding to the data frame in each data frame of the data flow, and the data frame carries timestamp information;
通过所述目标链路,将添加了链路标识的所述数据帧发送至服务端侧的第二网关。The data frame with the link identifier added is sent to the second gateway on the server side through the target link.
可选的,所述方法包括:Optionally, the method includes:
获取所述第一网关连接的多个链路的链路状态;Obtain link status of multiple links connected to the first gateway;
根据所述多个链路的链路状态,确定所述数据流的分流策略。Determine a distribution strategy for the data flow according to the link status of the multiple links.
可选的,获取所述第一网关连接的多个链路的链路状态,包括:Optionally, obtaining link status of multiple links connected to the first gateway includes:
按照预设周期,接收所述第二网关发送的第二链路状态信息测量结果;所述第二链路状态信息测量结果中包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值,所述多个链路是所述第一网关与第二网关之间的通信链路;According to a preset period, receive the second link status information measurement result sent by the second gateway; the second link status information measurement result includes link identifiers of multiple links and the link identifier corresponding to each link identifier. At least one link indicator measurement value of the link within a preset time period, the plurality of links being communication links between the first gateway and the second gateway;
根据所述第二链路状态信息测量结果更新本地的第一链路状态信息集,所述第一链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在所述预设时间段内的至少一个链路指标值;Update the local first link status information set according to the second link status information measurement result. The first link status information set includes link identifiers of multiple links and the link corresponding to each link identifier. At least one link indicator value within the preset time period;
根据所述第一链路状态信息集中的至少一个链路指标值,获取所述第一网关连接的多个链路的链路状态;Obtain the link status of multiple links connected to the first gateway according to at least one link indicator value in the first link status information set;
按照预设周期,向所述第二网关发送第一链路状态信息测量结果,以使所述第二网关根据所述第一链路状态信息测量结果更新本地的第二链路状态信息集,所述第一链路状态信息测量结果包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值;所述第二链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在所述预设时间段内的至少一个链路指标值。sending the first link status information measurement result to the second gateway according to a preset period, so that the second gateway updates the local second link status information set according to the first link status information measurement result, The first link status information measurement result includes link identifiers of multiple links and at least one link indicator measurement value of the link corresponding to each link identifier within a preset time period; the second link The status information set includes link identifiers of multiple links and at least one link index value of the link corresponding to each link identifier within the preset time period.
可选的,根据所述多个链路的链路状态,确定所述数据流的分流策略,包括:Optionally, determine the offloading strategy of the data flow according to the link status of the multiple links, including:
根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延、抖动、丢包率、传输带宽中的至少一项链路指标值,确定所述数据流的分流策略。Determine the data flow according to at least one link index value among the delay, jitter, packet loss rate, and transmission bandwidth of the link corresponding to the link identifiers of the multiple links in the first link status information set. diversion strategy.
可选的,在数据流为两个以上数据流的情况下,根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延、抖动、丢包率、传输带宽中的至少一项链路指标值,确定所述数据流的分流策略,包括:Optionally, when the data flow is two or more data flows, the delay, jitter, and packet loss rate of the link respectively corresponding to the link identifiers of the multiple links in the first link status information set are , at least one link indicator value in the transmission bandwidth, determines the offloading strategy of the data flow, including:
通过预设映射规则对多个数据流进行数据特征筛选,得到至少一组数据流筛选组;Filter the data characteristics of multiple data streams through preset mapping rules to obtain at least one data stream filtering group;
根据至少一组所述数据流筛选组以及所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延、抖动、丢包率、传输带宽中的至少一项链路指标值,确定数据流的分流策略。At least one of the delay, jitter, packet loss rate, and transmission bandwidth of the link corresponding to at least one of the data flow filtering groups and the link identifiers of multiple links in the first link status information set. The necklace link indicator value determines the diversion strategy of the data flow.
可选的,在所述数据流的每个数据帧中添加所述数据帧对应的目标链路的链路标识,包括:Optionally, add the link identifier of the target link corresponding to the data frame in each data frame of the data flow, including:
在确定所述第一网关对链路标记的链路标识与第二网关对链路标记的链路标识一致的情况下,在所述数据流的数据帧中添加所述数据帧对应的目标链路的链路标识。When it is determined that the link identifier of the link mark of the first gateway is consistent with the link identifier of the link mark of the second gateway, add the target link corresponding to the data frame in the data frame of the data flow. The link identifier of the road.
可选的,在所述数据流的数据帧中添加所述数据帧对应的目标链路的链路标识,包括:Optionally, add the link identifier of the target link corresponding to the data frame in the data frame of the data flow, including:
在所述数据流的数据帧中的预留字段添加所述目标链路的链路标识。Add the link identifier of the target link to a reserved field in the data frame of the data flow.
本发明的实施例还提供一种数据传输方法,应用于服务端侧的第二网关,所述方法包括:Embodiments of the present invention also provide a data transmission method applied to the second gateway on the server side. The method includes:
接收终端侧的第一网关通过至少一个目标链路发送的数据流的至少一个数据帧;所述数据帧携带有传输所述数据帧的目标链路的链路标识和时间戳信息;Receive at least one data frame of the data flow sent by the first gateway on the terminal side through at least one target link; the data frame carries the link identification and timestamp information of the target link that transmits the data frame;
根据所述至少一个数据帧中的链路标识和时间戳信息,将所述至少一个数据帧恢复为所述数据流。The at least one data frame is restored to the data stream according to the link identification and timestamp information in the at least one data frame.
可选的,接收终端侧的第一网关通过至少一个目标链路发送的数据流的至少一个数据帧后,还包括:Optionally, after receiving at least one data frame of the data stream sent by the first gateway on the terminal side through at least one target link, the method further includes:
根据预设时间段内接收的所述数据帧在所述目标链路中进行传输的至少一个链路指标测量值,得到第二链路状态信息测量结果;所述第二链路状态信息测量结果中包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值;Obtain a second link status information measurement result according to at least one link indicator measurement value of the data frame transmitted in the target link received within a preset time period; the second link status information measurement result including link identifiers of multiple links and at least one link indicator measurement value of the link corresponding to each link identifier within a preset time period;
按照预设周期,将所述第二链路状态信息测量结果发送至第一网关,以使所述第一网关根据所述第二链路状态信息测量结果更新本地的第一链路状态信息集;所述第一链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标值;According to a preset period, the second link status information measurement result is sent to the first gateway, so that the first gateway updates the local first link status information set according to the second link status information measurement result. ;The first link status information set includes link identifiers of multiple links and at least one link index value of the link corresponding to each link identifier within a preset time period;
按照预设周期,接收所述第一网关发送的第一链路状态信息测量结果,所述第一链路状态信息测量结果包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值;According to a preset period, receive the first link status information measurement result sent by the first gateway. The first link status information measurement result includes link identifiers of multiple links and the link corresponding to each link identifier. At least one link indicator measurement value of the road within a preset time period;
根据所述第一链路状态信息测量结果更新本地的第二链路状态信息集,所述第二链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在所述预设时间段内的至少一个链路指标值。A local second link state information set is updated according to the first link state information measurement result. The second link state information set includes link identifiers of multiple links and links corresponding to each link identifier. At least one link index value within the preset time period.
本发明的实施例还提供一种第一网关,包括:An embodiment of the present invention also provides a first gateway, including:
第一收发模块,用于接收待传输的数据流;The first transceiver module is used to receive the data stream to be transmitted;
第一处理模块,用于按照所述数据流的分流策略,确定所述数据流的每个数据帧分别对应的目标链路;在所述数据流的每个数据帧中添加所述数据帧对应的目标链路的链路标识,所述数据帧中携带有时间戳信息;The first processing module is configured to determine the target link corresponding to each data frame of the data flow according to the offloading strategy of the data flow; and add the corresponding target link of the data frame to each data frame of the data flow. The link identifier of the target link, and the data frame carries timestamp information;
所述第一收发模块,还用于通过所述目标链路,将添加了链路标识的所述数据帧发送至服务端侧的第二网关。The first transceiver module is also configured to send the data frame with the link identifier added to the second gateway on the server side through the target link.
本发明的实施例还提供一种第二网关,包括:An embodiment of the present invention also provides a second gateway, including:
第二收发模块,用于接收终端侧的第一网关通过至少一个目标链路发送的数据流的至少一个数据帧;所述数据帧携带有传输所述数据帧的目标链路的链路标识和时间戳信息;The second transceiver module is configured to receive at least one data frame of the data stream sent by the first gateway on the terminal side through at least one target link; the data frame carries the link identifier of the target link that transmits the data frame and timestamp information;
第二处理模块,用于根据所述至少一个数据帧中的链路标识和时间戳信息,将所述至少一个数据帧恢复为所述数据流。The second processing module is configured to restore the at least one data frame into the data stream according to the link identification and timestamp information in the at least one data frame.
本发明的实施例还提供一种通信设备,包括:处理器、存储有计算机程序的存储器,所述计算机程序被处理器运行时,执行如上所述的方法。An embodiment of the present invention also provides a communication device, including: a processor and a memory storing a computer program. When the computer program is run by the processor, the method as described above is executed.
本发明的实施例还提供一种计算机可读存储介质,存储指令,当所述指令在计算机上运行时,使得计算机执行如上所述的方法。Embodiments of the present invention also provide a computer-readable storage medium that stores instructions that, when executed on a computer, cause the computer to perform the method described above.
本发明的上述方案至少包括以下有益效果:The above solution of the present invention at least includes the following beneficial effects:
本发明的方案,通过接收待传输的数据流;按照所述数据流的分流策略,确定所述数据流的每个数据帧分别对应的目标链路;在所述数据流的每个数据帧中添加所述数据帧对应的目标链路的链路标识,所述数据帧中携带有时间戳信息;通过所述目标链路,将添加了链路标识的所述数据帧发送至服务端侧的第二网关;实现了数据流的数据帧的多链路分流传输,提升了链路使用效率,为数据流传输提供了保障。The solution of the present invention receives the data stream to be transmitted; determines the target link corresponding to each data frame of the data stream according to the diversion strategy of the data stream; in each data frame of the data stream Add the link identifier of the target link corresponding to the data frame, and the data frame carries timestamp information; send the data frame with the link identifier added to the server side through the target link. The second gateway: realizes multi-link split transmission of data frames of data streams, improves link usage efficiency, and provides guarantee for data stream transmission.
附图说明Description of the drawings
图1是本发明实施例提供的应用于终端侧的第一网关的数据传输方法的流程图;Figure 1 is a flow chart of a data transmission method applied to the first gateway on the terminal side provided by an embodiment of the present invention;
图2是本发明的具体实施例提供的终端侧的第一网关和服务器侧的第二网关之间进行数据流的数据帧的分流传输的示意图;Figure 2 is a schematic diagram of offload transmission of data frames of a data stream between a first gateway on the terminal side and a second gateway on the server side provided by a specific embodiment of the present invention;
图3是本发明实施例提供的数据传输时多链路分流的实现框架示意图;Figure 3 is a schematic diagram of the implementation framework of multi-link offloading during data transmission provided by an embodiment of the present invention;
图4是本发明实施例中第一网关和第二网关更新实时状态信息集的流程示意图;Figure 4 is a schematic flowchart of the first gateway and the second gateway updating the real-time status information set in the embodiment of the present invention;
图5是本发明实施例中筛选器对数据流筛选的流程示意图;Figure 5 is a schematic flowchart of filtering data streams in an embodiment of the present invention;
图6是本发明实施例中满足传输质量时的链路分流的实现框架图;Figure 6 is an implementation framework diagram of link offloading when transmission quality is satisfied in the embodiment of the present invention;
图7是本发明实施例中满足传输带宽时的链路分流的实现框架图;Figure 7 is an implementation framework diagram of link offloading when the transmission bandwidth is satisfied in the embodiment of the present invention;
图8是本发明实施例中满足传输质量和传输带宽时多链路分流的实现框架图;Figure 8 is an implementation framework diagram of multi-link offloading when transmission quality and transmission bandwidth are satisfied in the embodiment of the present invention;
图9是本发明实施例提供的通过手动配置模式添加链路标识的流程示意图;Figure 9 is a schematic flowchart of adding a link identifier through manual configuration mode according to an embodiment of the present invention;
图10是本发明实施例提供的通过服务器分发模式添加链路标识的流程示意图;Figure 10 is a schematic flowchart of adding a link identifier through server distribution mode according to an embodiment of the present invention;
图11是本发明实施例中数据帧中的链路标识和时间戳信息所在位置的示意图;Figure 11 is a schematic diagram of the location of the link identifier and timestamp information in the data frame in the embodiment of the present invention;
图12是本发明实施例提供的应用于服务器侧的第二网关的数据传输方法的流程图;Figure 12 is a flow chart of a data transmission method applied to the second gateway on the server side provided by an embodiment of the present invention;
图13是本发明实施例提供的第一网关的模块结构示意图;Figure 13 is a schematic diagram of the module structure of the first gateway provided by an embodiment of the present invention;
图14是本发明实施例提供的第二网关的模块结构示意图。Figure 14 is a schematic module structure diagram of the second gateway provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a thorough understanding of the invention, and to fully convey the scope of the invention to those skilled in the art.
如图1所示,本发明的实施例提供一种数据传输方法,应用于终端侧的第一网关,所述方法包括:As shown in Figure 1, an embodiment of the present invention provides a data transmission method, which is applied to the first gateway on the terminal side. The method includes:
步骤11,接收待传输的数据流;Step 11, receive the data stream to be transmitted;
步骤12,按照所述数据流的分流策略,确定所述数据流的每个数据帧分别对应的目标链路;Step 12: Determine the target link corresponding to each data frame of the data flow according to the offloading strategy of the data flow;
步骤13,在所述数据流的每个数据帧中添加所述数据帧对应的目标链路的链路标识,所述数据帧中携带有时间戳信息;Step 13: Add the link identifier of the target link corresponding to the data frame in each data frame of the data flow, and the data frame carries timestamp information;
步骤14,通过所述目标链路,将添加了链路标识的所述数据帧发送至服务端侧的第二网关。Step 14: Send the data frame with the link identifier added to the second gateway on the server side through the target link.
该实施例中,终端侧的第一网关接收到待传输的数据流后,为数据流确定分流策略,该分流策略用于为数据流传输提供链路选择的优选传输方案,通过分流策略的确定可以实现实时链路选择的优化调度,以提升数据流传输时的各项基础通信指标;In this embodiment, after receiving the data stream to be transmitted, the first gateway on the terminal side determines a shunt strategy for the data stream. The shunt strategy is used to provide a preferred transmission scheme for link selection for data stream transmission. Through the determination of the shunt strategy Optimized scheduling of real-time link selection can be achieved to improve various basic communication indicators during data stream transmission;
确定了分流策略之后,数据流中的每个数据帧可以按照分流策略通过对应的目标链路进行传输,在传输数据流之前,为每个数据帧添加链路标识,该链路标识为第二网关指示该数据帧的传输链路,同时,每个数据帧还携带有时间戳信息,时间戳信息使第一网关和第二网关进行时钟同步,并进一步用于为接收端(即上述第二网关)指示该数据帧的发送时间;第一网关将携带时间戳信息和链路标识的数据帧通过对应的目标链路发送至服务端侧的第二网关;After determining the offloading strategy, each data frame in the data stream can be transmitted through the corresponding target link according to the offloading strategy. Before transmitting the data stream, add a link identifier to each data frame. The link identifier is the second link. The gateway indicates the transmission link of the data frame. At the same time, each data frame also carries timestamp information. The timestamp information enables the first gateway and the second gateway to synchronize their clocks, and is further used to provide the receiving end (i.e. the above-mentioned second gateway) with clock synchronization. Gateway) indicates the sending time of the data frame; the first gateway sends the data frame carrying timestamp information and link identification to the second gateway on the server side through the corresponding target link;
对于服务器侧的第二网关,当接收到数据帧后,可依据数据帧所携带的链路标识和时间戳信息,定位传输该数据帧的目标链路和确定该目标链路传输该数据帧时的链路指标测量值(例如传输时延、丢包率、抖动、带宽等指标;依据链路标识,将传输时延、丢包率、抖动、传输带宽等指标记录至第二链路状态信息测量结果中,该第二链路状态信息测量结果由第二网关维护,其中记录了最新的终端侧的第一网关和服务器侧的第二网关之间的每一条链路的链路状态信息;两端依据该链路状态信息可实现对链路状态的实时监测与管理,按照链路状态选择数据帧的传输链路,实现了多链路数据分流传输,提升了链路使用效率,依托多链路传输能力为数据流提供了最大限度的传输保障。For the second gateway on the server side, after receiving the data frame, it can locate the target link that transmits the data frame and determine the time when the target link transmits the data frame based on the link identification and timestamp information carried by the data frame. Link indicator measurement values (such as transmission delay, packet loss rate, jitter, bandwidth and other indicators; according to the link identification, record the transmission delay, packet loss rate, jitter, transmission bandwidth and other indicators to the second link status information Among the measurement results, the second link status information measurement result is maintained by the second gateway, which records the latest link status information of each link between the first gateway on the terminal side and the second gateway on the server side; Based on the link status information, both ends can realize real-time monitoring and management of the link status, select the transmission link of the data frame according to the link status, realize multi-link data split transmission, improve the link usage efficiency, and rely on multiple The link transmission capability provides maximum transmission guarantee for data flow.
其中,链路状态信息测量结果可以是数据表,还可以是其他可用于表示多个链路状态信息测量结果集合的数据形式,本申请不以此为限制;The link state information measurement results can be a data table, or other data forms that can be used to represent multiple link state information measurement result sets. This application is not limited to this;
值得说明的是,本申请中的一个数据流由多个数据帧构成,数据帧优选为TAN数据帧,但不限于此,也可以是TCP(Transmission Control Protocol,传输控制协议)数据帧。It is worth noting that a data stream in this application consists of multiple data frames, and the data frame is preferably a TAN data frame, but is not limited to this, and may also be a TCP (Transmission Control Protocol, Transmission Control Protocol) data frame.
如图2所示,一个具体的实施例中,移动端网关(即上述第一网关)和服务器端网关(即上述第二网关)进行数据交互,采用发送端数据帧标记和接收端链路状态信息统计的方式实现对数据传输链路的优化,移动端网关和服务器端网关之间的链路包括5G路径1、5G路径2、WiFi路径以及光纤路径,共4条,当然也不限于4条;As shown in Figure 2, in a specific embodiment, the mobile terminal gateway (i.e., the above-mentioned first gateway) and the server-side gateway (i.e., the above-mentioned second gateway) perform data interaction, using the sending end data frame mark and the receiving end link status. Information statistics are used to optimize data transmission links. The links between the mobile gateway and the server gateway include 5G path 1, 5G path 2, WiFi path and optical fiber path, a total of 4, but of course not limited to 4. ;
当移动端网关向服务器端网关传输数据流X时,数据流X包括数据帧8、数据帧7、数据帧6、数据帧5、数据帧4、数据帧3、数据帧2、数据帧1;移动端网关根据数据流X确定分流策略,为每个数据帧确定目标链路为:When the mobile gateway transmits data stream X to the server gateway, data stream X includes data frame 8, data frame 7, data frame 6, data frame 5, data frame 4, data frame 3, data frame 2, and data frame 1; The mobile gateway determines the offloading strategy based on data flow X, and determines the target link for each data frame as:
数据帧2、数据帧1通过5G路径1(链路标识001)传输;Data frame 2 and data frame 1 are transmitted through 5G path 1 (link identification 001);
数据帧8、数据帧7通过5G路径2(链路标识002)传输;Data frame 8 and data frame 7 are transmitted through 5G path 2 (link identification 002);
数据帧4、数据帧3通过WiFi路径(链路标识003)传输;Data frame 4 and data frame 3 are transmitted through the WiFi path (link identification 003);
数据帧6、数据帧5通过光纤路径(链路标识004)传输;Data frame 6 and data frame 5 are transmitted through the optical fiber path (link identification 004);
移动端网关为每个数据帧添加其所对应的目标链路的链路标识,将携带有时间戳信息和链路标识的数据帧通过对应的目标链路传输至服务器端网关;The mobile gateway adds the link identification of the corresponding target link to each data frame, and transmits the data frame carrying the timestamp information and link identification to the server gateway through the corresponding target link;
进一步地,服务器网关可依据数据帧中携带的链路标识定位该数据帧的目标链路,并按照时间戳信息确定该目标链路的传输时延,依据链路标识,将传输时延记录至服务器端网关维护的链路状态信息测量表中,将该表中的链路状态信息反馈至移动端网关,以使得移动端网关可更新最新的链路状态信息,为下一次的数据流传输提供了最大限度的传输保障;Further, the server gateway can locate the target link of the data frame based on the link identification carried in the data frame, determine the transmission delay of the target link based on the timestamp information, and record the transmission delay to In the link status information measurement table maintained by the server-side gateway, the link status information in the table is fed back to the mobile-side gateway so that the mobile-side gateway can update the latest link status information to provide information for the next data stream transmission. To ensure maximum transmission guarantee;
类似地,当服务器端网关向移动端网关传输数据流Y时,数据流Y包括数据帧a8、数据帧a7、数据帧a6、数据帧a5、数据帧a4、数据帧a3、数据帧a2、数据帧a1;移动端网关根据数据流Y确定分流策略,为每个数据帧确定目标链路为:Similarly, when the server-side gateway transmits data flow Y to the mobile-side gateway, data flow Y includes data frame a8, data frame a7, data frame a6, data frame a5, data frame a4, data frame a3, data frame a2, data Frame a1; the mobile gateway determines the offloading strategy based on data flow Y, and determines the target link for each data frame as:
数据帧a6、数据帧a5通过5G路径1(链路标识001)传输;Data frame a6 and data frame a5 are transmitted through 5G path 1 (link identification 001);
数据帧a4、数据帧a3通过5G路径2(链路标识002)传输;Data frame a4 and data frame a3 are transmitted through 5G path 2 (link identification 002);
数据帧a8、数据帧a7通过WiFi路径(链路标识003)传输;Data frame a8 and data frame a7 are transmitted through the WiFi path (link identification 003);
数据帧a2、数据帧a1通过光纤路径(链路标识004)传输;Data frame a2 and data frame a1 are transmitted through the optical fiber path (link identification 004);
服务器端网关为每个数据帧添加其所对应的链路的链路标识,将携带有时间戳信息和链路标识的数据帧通过对应的目标链路传输至移动端网关;The server-side gateway adds the link identification of the corresponding link to each data frame, and transmits the data frame carrying the timestamp information and link identification to the mobile-side gateway through the corresponding target link;
移动网关可依据数据帧中携带的链路标识定位该数据帧的目标链路,并按照时间戳信息确定该目标链路的传输时延、丢包率、抖动、带宽等指标,依据链路标识,将传输时延、丢包率、抖动、带宽等指标记录至移动端网关维护的链路状态信息测量表中,将该表中的链路状态信息反馈至服务器端网关,可以为服务器端网关更新最新的链路状态信息;The mobile gateway can locate the target link of the data frame based on the link identification carried in the data frame, and determine the transmission delay, packet loss rate, jitter, bandwidth and other indicators of the target link based on the timestamp information. Based on the link identification , record the transmission delay, packet loss rate, jitter, bandwidth and other indicators into the link status information measurement table maintained by the mobile terminal gateway, and feed back the link status information in the table to the server-side gateway, which can be the server-side gateway Update the latest link status information;
上述移动端网关和服务器端网关之间的数据传输过程提升了多链路的使用效率、传输带宽以及可靠性,同时无需对发送侧和接受侧进行任何的适配升级,能够更快地探测到链路状态信息的变化并进行调整分流策略。The above-mentioned data transmission process between the mobile gateway and the server gateway improves the usage efficiency, transmission bandwidth and reliability of multi-links. At the same time, there is no need to carry out any adaptation upgrades on the sending side and the receiving side, and it can be detected faster. Changes in link status information and adjust the offloading strategy.
本发明一可选的实施例中,步骤11之后还包括:In an optional embodiment of the present invention, after step 11, it also includes:
步骤111,获取所述第一网关连接的多个链路的链路状态;Step 111: Obtain the link status of multiple links connected to the first gateway;
步骤112,根据所述多个链路的链路状态,确定所述数据流的分流策略。Step 112: Determine a distribution strategy for the data flow according to the link status of the multiple links.
本实施例中,分流策略由第一网关所连接的多个链路的最新的链路状态信息确定,该分流策略的确定可以由设置于网关侧的虚拟的调度器决定;每个调度器均包括分流模块和链路指标计算模块,链路指标计算模块可计算并更新链路的传输时延以及其他链路状态信息,而调度器中的分流模块负责用户面数据的实时多链路的分流处理,即可以依据链路指标计算模块得到的最新的链路状态信息,链路状态由多种链路指标决定,依据不同的链路指标,确定分流策略。In this embodiment, the offloading strategy is determined by the latest link status information of multiple links connected to the first gateway. The determination of the offloading strategy can be determined by a virtual scheduler set on the gateway side; each scheduler It includes a distribution module and a link indicator calculation module. The link indicator calculation module can calculate and update the transmission delay of the link and other link status information. The distribution module in the scheduler is responsible for the real-time multi-link distribution of user plane data. Processing, that is, the latest link status information obtained by the link indicator calculation module can be used. The link status is determined by multiple link indicators, and the traffic distribution strategy can be determined based on different link indicators.
下面,对调度器中的分流模块和链路指标计算模块在数据流传输时的执行过程进行说明:Next, the execution process of the offload module and the link index calculation module in the scheduler during data stream transmission is explained:
如图2和3所示,终端侧的第一网关(即图2中的移动端网关)和服务器侧的第二网关(即图2中的服务器端网关)之间的数据传输交互,均由在网关处部署的调度器进行执行,第一网关的虚拟调度器为第一调度器,第二网关的虚拟调度器为第二调度器,每个调度器均由分流模块和链路指标计算模块两部分组成;这里,将第一网关向第二网关传输数据的链路设定为上行链路,而第二网关向第一网关传输数据的链路设定为下行链路;第一网关和第二网关之间设有n条链路(链路标识分为为1、2、3、..、n);As shown in Figures 2 and 3, the data transmission interaction between the first gateway on the terminal side (i.e., the mobile terminal gateway in Figure 2) and the second gateway on the server side (i.e., the server-side gateway in Figure 2) is performed by The scheduler deployed at the gateway is executed. The virtual scheduler of the first gateway is the first scheduler, and the virtual scheduler of the second gateway is the second scheduler. Each scheduler is composed of a shunt module and a link index calculation module. It consists of two parts; here, the link through which the first gateway transmits data to the second gateway is set as an uplink, and the link through which the second gateway transmits data to the first gateway is set as a downlink; the first gateway and There are n links between the second gateways (the link identifiers are divided into 1, 2, 3, .., n);
当第一网关向第二网关上行传输数据流X时,第一调度器中的第一分流模块通过第一分流器从上行链路的实时链路指标表获取最优链路指标的链路,该实时链路指标表中包括最新的上行链路各项指标,第一分流器为每个数据帧选择分流至链路指标最优的上行链路;When the first gateway transmits the data flow The real-time link indicator table includes the latest uplink indicators, and the first splitter selects the uplink with the best link indicator for each data frame;
例如,第一链路指标的优劣标准为,指标值越高,则链路最优,若链路标识为1的链路的链路指标值为x1,而x1大于其他所有上行链路的链路指标值,则可以选择将数据帧分流至链路标识为1的链路;For example, the criterion for the quality of the first link index is: the higher the index value, the optimal link. If the link index value of the link with link ID 1 is x1, and x1 is greater than that of all other uplinks. If the link index value is specified, you can choose to shunt the data frame to the link with link ID 1;
而上述的上行链路的实时链路指标表由第一链路指标计算模块更新,第一链路指标计算模块依据上行链路的实时状态信息表更新链路状态信息,通过指标计算函数(如,函数f(Input链路状态))计算最新的链路状态信息对应的各项链路指标,并将各项链路指标更新至实时链路指标表中,以供第一分流模块使用;The above-mentioned real-time link indicator table of the uplink is updated by the first link indicator calculation module. The first link indicator calculation module updates the link status information based on the real-time status information table of the uplink, through the indicator calculation function (such as , function f (Input link status)) calculates the link indicators of each link corresponding to the latest link status information, and updates the link indicators of each link to the real-time link indicator table for use by the first offload module;
同理,服务器侧的第二网关向第一网关传输数据流Y时的第二虚拟调度器的执行过程便不再赘述,通过第一调度器和第二调度器实现了智能化的数据帧的分流,以及链路指标(如,业务流量需求、链路实时负载情况以及信道质量等链路指标)。In the same way, the execution process of the second virtual scheduler when the second gateway on the server side transmits the data flow Y to the first gateway will not be described in detail. Intelligent data frame processing is realized through the first scheduler and the second scheduler. Traffic offloading, and link indicators (such as business traffic requirements, real-time link load conditions, channel quality and other link indicators).
本发明一可选的实施例中,步骤111包括:In an optional embodiment of the present invention, step 111 includes:
步骤1111,按照预设周期,接收所述第二网关发送的第二链路状态信息测量结果;第二链路状态信息测量结果中包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值,所述多个链路是所述第一网关与第二网关之间的通信链路;Step 1111: Receive the second link status information measurement result sent by the second gateway according to a preset period; the second link status information measurement result includes link identifiers of multiple links and the corresponding link identifiers of each link. At least one link indicator measurement value of a link within a preset time period, the plurality of links being communication links between the first gateway and the second gateway;
步骤1112,根据所述第二链路状态信息测量结果更新本地的第一链路状态信息集,所述第一链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在所述预设时间段内的至少一个链路指标值;Step 1112: Update the local first link status information set according to the second link status information measurement result. The first link status information set includes link identifiers of multiple links and the corresponding link identifiers of each link. At least one link index value of the link within the preset time period;
步骤1113,根据所述第一链路状态信息集中的至少一个链路指标值,获取所述第一网关连接的多个链路的链路状态。Step 1113: Obtain the link status of multiple links connected to the first gateway based on at least one link indicator value in the first link status information set.
本发明的实施例中,第一网关按照预设周期接收第二网关发送的第二链路状态信息测量结果,该第二链路状态信息测量结果包括多个链路的链路标识以及该链路标识对应的链路的多个链路指标值,根据链路指标值,更新本地的第一链路状态信息集,以使得第一网关和第二网关的链路状态信息保持一致,同时保证第一网关下一次传输数据帧时所依据的链路状态信息为最新的;进而依据更新后的本地的第一链路状态信息集确定进行链路状态。其中,与链路状态信息测量结果同理,链路状态信息集也可以是数据表,还可以是其他可用于表示多个链路状态信息测量结果集合的数据形式,本申请不以此为限制;In the embodiment of the present invention, the first gateway receives the second link status information measurement result sent by the second gateway according to a preset period. The second link status information measurement result includes link identifiers of multiple links and the link status information. multiple link indicator values of the link corresponding to the road identifier, and update the local first link status information set according to the link indicator value, so that the link status information of the first gateway and the second gateway remains consistent, while ensuring The link status information based on which the first gateway transmits the data frame next time is the latest; and the link status is determined based on the updated local first link status information set. In the same way as the link state information measurement results, the link state information set can also be a data table, or other data forms that can be used to represent multiple link state information measurement result sets. This application is not limited to this. ;
需要说明的是,为了保证第一网关和第二网关之间更新的链路状态信息同步,需保证第一网关和第二网关之间保持高精度地时钟同步。It should be noted that in order to ensure synchronization of updated link status information between the first gateway and the second gateway, it is necessary to ensure that high-precision clock synchronization is maintained between the first gateway and the second gateway.
本发明一可选的实施例中,步骤1113之后还可以包括:In an optional embodiment of the present invention, after step 1113, it may also include:
步骤1114,按照预设周期,向所述第二网关发送第一链路状态信息测量结果,以使所述第二网关根据所述第一链路状态信息测量结果更新本地的第二链路状态信息集,所述第一链路状态信息测量结果包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值;所述第二链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在所述预设时间段内的至少一个链路指标值。Step 1114: Send the first link status information measurement result to the second gateway according to a preset period, so that the second gateway updates the local second link status according to the first link status information measurement result. Information set, the first link status information measurement result includes link identifiers of multiple links and at least one link indicator measurement value of the link corresponding to each link identifier within a preset time period; the third link status information measurement result includes: The second link status information set includes link identifiers of multiple links and at least one link index value of the link corresponding to each link identifier within the preset time period.
本实施例中,由于步骤121中的链路指标值是根据对侧的链路状态信息测量结果更新本地的链路状态信息集确定,因而,为了保证数据流传输过程中链路的链路状态信息实时更新与监控,第一网关会按照预设周期向第二网关发送第一链路状态信息测量结果,以使第二网关根据第一链路状态信息测量结果更新本地的第二链路状态信息集;该第二链路状态信息集可以用于第二网关向第一网关发送数据流时目标链路的确定依据。In this embodiment, since the link index value in step 121 is determined by updating the local link status information set based on the link status information measurement results of the opposite side, in order to ensure the link status of the link during the data stream transmission process Information is updated and monitored in real time. The first gateway will send the first link status information measurement result to the second gateway according to the preset period, so that the second gateway updates the local second link status based on the first link status information measurement result. Information set; the second link state information set can be used as a basis for determining the target link when the second gateway sends a data flow to the first gateway.
值得说明的是,网关处本地的第二链路状态信息集是按照预设周期(如图3中的T1)更新的,而网关处调度器内的实时链路指标集是按照预设指标周期(如图3中的T2)更新的,该预设指标周期优选小于预设周期,以保证调度器所用的链路指标均为最新。It is worth noting that the local second link status information set at the gateway is updated according to the preset period (T1 in Figure 3), and the real-time link indicator set in the scheduler at the gateway is updated according to the preset indicator period. (T2 in Figure 3) updated, the preset indicator period is preferably smaller than the preset period to ensure that the link indicators used by the scheduler are the latest.
如图4所示,一个具体的实施例中,第一网关和第二网关动态多链路维护连接建立成功,且两端时钟保持高精度同步;As shown in Figure 4, in a specific embodiment, the dynamic multi-link maintenance connection between the first gateway and the second gateway is successfully established, and the clocks at both ends maintain high-precision synchronization;
当第一网关和第二网关之间进行链路数据交互时,若第一网关向第二网关发送数据,发送的第一数据帧中携带“链路标识ID=1+时间戳=tsx+帧序号+载荷”,发送端第二数据帧中携带“链路标识ID=2+时间戳=tsx+帧序号+载荷”;When link data is exchanged between the first gateway and the second gateway, if the first gateway sends data to the second gateway, the first data frame sent carries "link identification ID = 1 + timestamp = tsx + frame sequence number + payload", the second data frame of the sender carries "link identification ID = 2 + timestamp = tsx + frame sequence number + payload";
第二网关接收到第一数据帧和第二数据帧后,计算该数据帧的传输时延,并记录至上行链路状态信息表中,第二网关对维护的上行链路状态信息测量表进行更新,该表中包括各链路的链路标识、传输时延等;After receiving the first data frame and the second data frame, the second gateway calculates the transmission delay of the data frame and records it in the uplink status information table. The second gateway performs the maintenance on the uplink status information measurement table. Update, the table includes the link identification, transmission delay, etc. of each link;
更新后的上行链路状态信息测量表如下:The updated uplink status information measurement table is as follows:
表1Table 1
按照预设周期,第二网关将更新后的上行链路状态信息测量表发送至第一网关,以使得第一网关可根据该上行链路接收质量参数更新上行链路实时状态信息表;According to the preset period, the second gateway sends the updated uplink status information measurement table to the first gateway, so that the first gateway can update the uplink real-time status information table according to the uplink reception quality parameter;
更新后的第一网关处的上行链路实时状态信息表如下:The updated uplink real-time status information table at the first gateway is as follows:
表2Table 2
同理,若第二网关向第一网关发送数据,发送的第三数据帧中携带“链路标识ID=1+时间戳=tsx+帧序号+载荷”,发送端第四数据帧中携带“链路标识ID=3+时间戳=tsx+帧序号+载荷”;In the same way, if the second gateway sends data to the first gateway, the third data frame sent carries "link identification ID = 1 + timestamp = tsx + frame sequence number + payload", and the fourth data frame of the sending end carries "link Road identification ID = 3 + timestamp = tsx + frame sequence number + payload";
第一网关接收到第三数据帧和第四数据帧后,计算该数据帧的传输时延,并记录至链路状态信息表中,第一网关对维护的下行链路状态信息测量表进行更新,该表中包括各链路的链路标识、传输时延等;After receiving the third data frame and the fourth data frame, the first gateway calculates the transmission delay of the data frame and records it in the link status information table. The first gateway updates the maintained downlink status information measurement table. , this table includes the link identification, transmission delay, etc. of each link;
更新后的下行链路状态信息测量表如下:The updated downlink status information measurement table is as follows:
表3table 3
按照预设周期,第一网关基于上述最新的下行链路状态信息测量表向第二网关发送下行链路接收质量参数,以使得第二网关可根据该下行链路接收质量参数更新下行链路实时状态信息表;According to the preset period, the first gateway sends the downlink reception quality parameter to the second gateway based on the latest downlink status information measurement table, so that the second gateway can update the downlink real-time based on the downlink reception quality parameter. status information table;
更新后的第二网关处的下行链路实时状态信息表如下:The updated downlink real-time status information table at the second gateway is as follows:
表4Table 4
根据上述表2和表4可见,在更新后,第一网关和第二网关处的上行链路实时状态信息表和下行链路实时状态信息表保持一致。According to the above Table 2 and Table 4, it can be seen that after the update, the uplink real-time status information table and the downlink real-time status information table at the first gateway and the second gateway remain consistent.
本发明又一可选的实施例中,步骤112包括:In yet another optional embodiment of the present invention, step 112 includes:
步骤1121,根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延、抖动、丢包率、传输带宽中的至少一项链路指标值,确定所述数据流的分流策略。Step 1121: Determine the link index value based on at least one of the link indicator values of delay, jitter, packet loss rate, and transmission bandwidth of the link corresponding to the link identifiers of the multiple links in the first link status information set. Describe the data flow diversion strategy.
本发明的实施例中,分流策略对应的链路指标可依据第一网关的数据流的业务需求而定,链路指标包括时延、抖动、丢包率、传输带宽中的至少一项。In embodiments of the present invention, the link indicators corresponding to the offloading strategy may be determined according to the business requirements of the data flow of the first gateway. The link indicators include at least one of delay, jitter, packet loss rate, and transmission bandwidth.
在数据流为两个以上数据流的情况下,步骤1121包括:In the case where the data flow is more than two data flows, step 1121 includes:
步骤11211,通过预设映射规则对多个数据流进行数据特征筛选,得到至少一组数据流筛选组;Step 11211: Filter the data characteristics of multiple data streams through preset mapping rules to obtain at least one data stream filtering group;
步骤11212,根据至少一组所述数据流筛选组以及所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延、抖动、丢包率、传输带宽中的至少一项链路指标值,确定数据流的分流策略。Step 11212: Determine the delay, jitter, packet loss rate, and transmission bandwidth of the link based on at least one of the data flow filtering groups and the link identifiers of multiple links in the first link status information set. At least one link indicator value determines the data flow offloading strategy.
本发明的实施例中,为满足不同数据流对传输的多样化业务需求(业务需求如:第一业务连接对丢包率有极高的要求,但对传输抖动的要求并不严苛,而第二业务连接对传输抖动要求非常高,但对时延有一定的容忍度),发送侧网关(第一网关)可将数据流输入筛选器进行预设映射规则的数据特征筛选,筛选器根据匹配的结果将数据流传送至发送侧网关(第二网关),第一网关可按照虚拟调度器规定的预设映射规则对相应数据流进行调度转发,预设映射规则包括二层数据包类型、IP六元组的全部或部分以及其它数据特征中的至少一种;其中,这些数据特征的预设映射规则可由用户根据自身需求进行配置,本申请不以此为限制;In the embodiment of the present invention, in order to meet the diversified business requirements for transmission of different data streams (business requirements such as: the first service connection has extremely high requirements for packet loss rate, but the requirements for transmission jitter are not strict, and The second service connection has very high requirements for transmission jitter, but has a certain tolerance for delay). The sending side gateway (the first gateway) can input the data stream into the filter to filter the data characteristics of the preset mapping rules. The filter is based on The matching result transmits the data flow to the sending side gateway (second gateway). The first gateway can schedule and forward the corresponding data flow according to the preset mapping rules specified by the virtual scheduler. The preset mapping rules include Layer 2 data packet type, All or part of the IP six-tuple and at least one of other data characteristics; wherein, the preset mapping rules of these data characteristics can be configured by users according to their own needs, and this application is not limited to this;
数据特征筛选的结果为至少一组数据流筛选组,每个数据流筛选组包括同一数据特征的多条数据流;The result of data feature filtering is at least one data flow filtering group, and each data flow filtering group includes multiple data flows with the same data feature;
数据流筛选组中的数据流的分流策略的确定过程同上述步骤111至步骤112,这里便不再赘述。The process of determining the offloading strategy of the data flows in the data flow filtering group is the same as the above steps 111 to 112, and will not be described again here.
如图5所示,一个具体的实施例中,第一数据流的二层数据帧类型为Profinet;第二数据流的二层数据帧类型为GOOSE;第n数据流的二层数据帧类型为Ethernet;As shown in Figure 5, in a specific embodiment, the Layer 2 data frame type of the first data stream is Profinet; the Layer 2 data frame type of the second data stream is GOOSE; and the Layer 2 data frame type of the nth data stream is Ethernet;
在筛选器进行预设映射规则的设置,二层数据帧类型为Profinet的数据流将被映射至第n调度器,二层数据帧类型为GOOSE的数据流将被映射至第二调度器,二层数据帧类型为Ethernet的数据流将被应映射至第一调度器。Set the preset mapping rules in the filter. The data flow of the second-layer data frame type Profinet will be mapped to the nth scheduler. The data flow of the second-layer data frame type GOOSE will be mapped to the second scheduler. Data flows whose layer data frame type is Ethernet will be mapped to the first scheduler.
其中,各调度器的调度策略如下:Among them, the scheduling strategies of each scheduler are as follows:
第一调度器:采用提升传输总带宽的分流策略, The first scheduler: adopts the offloading strategy to increase the total transmission bandwidth,
第二调度器:采用优化传输质量的分流策略, Second scheduler: adopts a traffic offloading strategy to optimize transmission quality,
第n调度器:采用优化传输质量的分流策略, nth scheduler: adopts an offloading strategy to optimize transmission quality,
其中,第二调度器中采用的Delay0(30ms)大于第n调度器中的Delay0(20ms),且第二调度器中采用的Jitter0(2ms)小于第n调度器中的Jitter0(5ms),可见,第二调度器是侧重于传输抖动的优化,而第n调度器侧重的是传输抖动的优化;数据帧按照匹配的规则进行调度转发。Among them, Delay0 (30ms) used in the second scheduler is greater than Delay0 (20ms) in the nth scheduler, and Jitter0 (2ms) used in the second scheduler is less than Jitter0 (5ms) in the nth scheduler. It can be seen that , the second scheduler focuses on the optimization of transmission jitter, while the nth scheduler focuses on the optimization of transmission jitter; data frames are scheduled and forwarded according to matching rules.
本发明的上述实施例中,根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延、抖动、丢包率、传输带宽中的至少一项链路指标值,确定所述数据流的分流策略,包括:In the above embodiments of the present invention, according to the link identifiers of multiple links in the first link status information set, at least one of the link's delay, jitter, packet loss rate, and transmission bandwidth corresponds to Indicator values determine the offloading strategy of the data flow, including:
第一种分流策略:根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延指标值,为需要满足时延要求数据流的数据帧,配置时延指标值小于第一值的至少一个第一目标链路;The first offloading strategy: According to the delay index value of the link corresponding to the link identifier of multiple links in the first link status information set, it is the data frame of the data flow that needs to meet the delay requirement. When configuring at least one first target link whose delay index value is less than the first value;
第二种分流策略:根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的抖动指标值,为需要满足抖动要求数据流的数据帧,配置抖动指标值小于第二值的至少一个第二目标链路;The second offloading strategy: According to the jitter index value of the link corresponding to the link identifier of the multiple links in the first link status information set, configure the jitter index value for the data frame that needs to meet the jitter requirement data flow. at least one second target link less than the second value;
第三种分流策略:根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的丢包率指标值,为需要满足丢包率要求数据流的数据帧,配置丢包率指标值小于第三值的至少一个第三目标链路;The third traffic offloading strategy: According to the packet loss rate index value of the link corresponding to the link identifier of the multiple links in the first link status information set, it is the data frame of the data flow that needs to meet the packet loss rate requirement, Configure at least one third target link whose packet loss rate index value is less than the third value;
第四种分流策略:根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的传输带宽指标值,为需要满足传输带宽要求数据流的数据帧,配置传输带宽指标值大于第四值的至少一个第四目标链路。The fourth traffic offloading strategy: According to the transmission bandwidth index value of the link corresponding to the link identifier of the multiple links in the first link status information set, configure the transmission for the data frame of the data flow that needs to meet the transmission bandwidth requirement. At least one fourth target link has a bandwidth index value greater than the fourth value.
本实施例中,数据流的业务需求为满足抖动要求、满足抖动要求、满足丢包率要求以及满足传输带宽要求中的至少一项,依据业务需求和链路状态可确定分流策略,由分流策略可选定目标链路;目标链路的选择是通过部署于网关处的虚拟的调度器中的分流模块计算得到,实现了实时路径选择的优化调度,以提升链路带宽的利用率以及数据流传输的基础通信指标。In this embodiment, the business requirements of the data flow are at least one of meeting jitter requirements, meeting jitter requirements, meeting packet loss rate requirements, and meeting transmission bandwidth requirements. The offloading strategy can be determined based on the business requirements and link status, and the offloading strategy is The target link can be selected; the selection of the target link is calculated through the offload module in the virtual scheduler deployed at the gateway, realizing optimized scheduling of real-time path selection to improve link bandwidth utilization and data flow. Basic communication indicators for transmission.
下面,对不同的分流策略选择目标链路的过程进行说明:Next, the process of selecting target links for different traffic offload strategies is explained:
1)对于需求为满足时延要求、满足丢包率要求或者满足抖动要求的分流策略,通过预设置链路质量参数(即设定第一归一化参数Delay0、第二归一化参数Drop0以及第三归一化参数Jitter0);1) For offload strategies that require meeting delay requirements, packet loss rate requirements, or jitter requirements, preset link quality parameters (that is, set the first normalized parameter Delay 0 and the second normalized parameter Drop 0 and the third normalization parameter Jitter0);
由第一网关根据上行链路实时状态信息集中的链路参数质量信息实时更新计算链路质量Index,同时,第二网关根据下行链路实时状态信息集中的链路参数质量信息实时更新计算链路质量Index;网关将数据流按照当前时刻链路传输质量参数计算结果转发,数据流中的每个数据帧会被转发至当前时刻链路质量参数最优(即链路传输质量值越小)的目标链路进行传输。The first gateway updates and calculates the link quality Index in real time based on the link parameter quality information in the uplink real-time status information set. At the same time, the second gateway updates and calculates the link in real time based on the link parameter quality information in the downlink real-time status information set. Quality Index; the gateway forwards the data stream according to the calculation result of the link transmission quality parameter at the current moment. Each data frame in the data stream will be forwarded to the link with the optimal link quality parameter at the current moment (that is, the smaller the link transmission quality value) target link for transmission.
值得说明的是,时延、抖动以及丢包率共同影响链路的传输质量,可将传输质量作为链路指标的参考值,数据流在经过第一网关的第一调度器进行目标链路选择时,总会将数据帧转发至当前时刻传输质量(即时延、抖动以及丢包率中至少一项)最优或者链路指标满足预设值(上述第一值、第二值以及第三值)的目标链路;其中,链路传输质量的定量判断方法包括:It is worth mentioning that delay, jitter and packet loss rate jointly affect the transmission quality of the link. The transmission quality can be used as a reference value for the link indicator. The data flow selects the target link after passing through the first scheduler of the first gateway. When, the data frame will always be forwarded to the location where the transmission quality (i.e., at least one of delay, jitter, and packet loss rate) at the current moment is optimal or the link index satisfies the preset value (the above-mentioned first value, second value, and third value). ) target link; among them, the quantitative judgment method of link transmission quality includes:
通过公式对链路传输质量进行计量;其中,QIndex为链路传输质量,该链路传输质量值越小,表示该链路的传输质量越佳,Delay为链路的实时传输时延,Drop为链路的实时丢包率,Jitter为链路的实时传输时延抖动,Delay0为第一归一化参数,Drop0为第二归一化参数,Jitter0为第三归一化参数,α1为传输时延权重参数,α2为丢包率权重参数,α3为传输时延抖动权重参数,每个权重参数可根据实际情况设定,权重参数越小,其对应的指标所占传输质量的比重越大;在一个优选的实现实例中,上述链路传输质量计量公式中的归一化参数和权重参数可以设定为Delay0=30ms;Drop0=0.001;Jitter0=5ms;α1=1;α2=2、α3=3。by formula The link transmission quality is measured; among them, Q Index is the link transmission quality. The smaller the link transmission quality value, the better the link transmission quality. Delay is the real-time transmission delay of the link, and Drop is the link transmission quality. The real-time packet loss rate of the link, Jitter is the real-time transmission delay jitter of the link, Delay 0 is the first normalized parameter, Drop 0 is the second normalized parameter, Jitter 0 is the third normalized parameter, α 1 is the transmission delay weight parameter, α 2 is the packet loss rate weight parameter, α 3 is the transmission delay jitter weight parameter, each weight parameter can be set according to the actual situation, the smaller the weight parameter, the corresponding indicator accounts for the transmission quality The greater the proportion of 1; α 2 =2, α 3 =3.
若分流策略为需要满足时延要求的数据帧,配置时延指标小于第一值的至少一个第一目标链路时,可以选择将实时丢包率以及实时传输时延抖动所对应的权重设为0;If the offloading policy is a data frame that needs to meet the delay requirements, and when configuring at least one first target link with a delay index smaller than the first value, you can choose to set the weight corresponding to the real-time packet loss rate and real-time transmission delay jitter to 0;
若分流策略为需要满足抖动要求的数据帧,配置抖动指标小于第二值的至少一个第二目标链路时,可以选择将实时传输时延以及实时传输时延抖动所对应的权重设为0;If the offloading policy is for data frames that need to meet jitter requirements, and when configuring at least one second target link with a jitter index smaller than the second value, you can choose to set the real-time transmission delay and the weight corresponding to the real-time transmission delay jitter to 0;
若分流策略为需要满足丢包率要求的数据帧,配置丢包率指标小于第三值的至少一个第三目标链路时,可以选择将实时丢包率以及实时传输时延所对应的权重设为0;If the offloading policy is for data frames that need to meet packet loss rate requirements, and when configuring at least one third target link with a packet loss rate index smaller than the third value, you can choose to set the weights corresponding to the real-time packet loss rate and real-time transmission delay. is 0;
因此,依据上述公式,可根据分流策略为数据帧选定目标链路,还可以根据实际需求,同时实现满足时延、丢包率以及抖动中至少一种要求的目标链路。Therefore, based on the above formula, the target link for the data frame can be selected according to the offloading strategy, and the target link that meets at least one of the requirements of delay, packet loss rate, and jitter can be simultaneously achieved according to actual needs.
如图6所示,一个具体的实施例中,终端侧的第一网关将数据流X上行传输至第二网关,该数据流的数据帧对应的分流策略为选择当前时刻链路传输质量最佳的链路进行传输,经计算,第一链路的上行链路传输质量为0.5,第二链路的上行链路传输质量为3,第三链路的上行链路传输质量为30,由于链路传输质量值越小,表示该链路的传输质量越佳,则第一调度器选择第一链路传输数据流X中的数据帧;As shown in Figure 6, in a specific embodiment, the first gateway on the terminal side transmits the data stream The link is used for transmission. After calculation, the uplink transmission quality of the first link is 0.5, the uplink transmission quality of the second link is 3, and the uplink transmission quality of the third link is 30. Since the link The smaller the transmission quality value of the link, the better the transmission quality of the link, then the first scheduler selects the first link to transmit the data frame in the data stream X;
服务器侧的第二网关将数据流Y下行传输至第一网关,该数据流的数据帧对应的分流策略为选择当前时刻链路传输质量最佳的链路进行传输,经计算,第一链路的下行链路传输质量为0.9,第二链路的下行链路传输质量为1.6,第三链路的下行链路传输质量为7,由于链路传输质量值越小,表示该链路的传输质量越佳,则第二调度器选择第一链路传输数据Y中的数据帧。The second gateway on the server side transmits data flow Y downlink to the first gateway. The offloading strategy corresponding to the data frame of this data flow is to select the link with the best link transmission quality at the current moment for transmission. After calculation, the first link The downlink transmission quality of the second link is 0.9, the downlink transmission quality of the second link is 1.6, and the downlink transmission quality of the third link is 7. Since the smaller the link transmission quality value, the lower the transmission quality of the link. The better the quality, the second scheduler selects the first link to transmit the data frame in data Y.
2)对于需求为满足传输带宽要求的分流策略,提升传输总带宽的分流策略可以实现将同一业务连接的流量均匀分流至各个链路上,即采用该分流策略,可实现让多条链路共同承载这类业务的数据流的传输需求,每条链路的分流比例由其缓冲区拥塞度决定,具体为:2) For the offloading strategy that needs to meet the transmission bandwidth requirements, the offloading strategy that increases the total transmission bandwidth can evenly offload the traffic of the same business connection to each link. That is, using this offloading strategy, multiple links can be used together. For the transmission requirements of data streams carrying such services, the offload ratio of each link is determined by its buffer congestion degree, specifically as follows:
通过公式计算缓冲区拥塞度;其中,M0表示编号为0的链路的缓冲区拥塞度,该缓冲区拥塞度值越大,其对应的链路的传输带宽越拥挤,每个数据帧在经过发送端口的调度器转发时,总会选择拥挤度最小(即缓冲区拥塞度值越小)的链路作为目标链路进行转发;by formula Calculate the buffer congestion degree; where M 0 represents the buffer congestion degree of the link numbered 0. The greater the buffer congestion value, the more congested the transmission bandwidth of the corresponding link. Each data frame is sent after When the port's scheduler forwards, it will always select the link with the smallest congestion degree (that is, the smaller the buffer congestion degree value) as the target link for forwarding;
当第一网关向第二网关按照满足传输带宽要求的分流策略传输数据时,第一网关根据链路状态信息中的上行缓冲区使用情况计算上行缓冲区拥塞度,第一网关根据上行缓冲区拥塞度的值转发数据流,每个数据帧会被转发至当时上行缓冲区拥塞度最小或者链路指标大于第四值的通道进行传输;When the first gateway transmits data to the second gateway according to the offloading strategy that meets the transmission bandwidth requirements, the first gateway calculates the uplink buffer congestion degree based on the uplink buffer usage in the link status information. Forwarding the data stream according to the degree value, each data frame will be forwarded to the channel with the smallest congestion degree in the uplink buffer at that time or the link index is greater than the fourth value for transmission;
同理,当第二网关向第一网关按照满足传输带宽要求的分流策略传输数据时,第二网关根据下行缓冲区使用情况计算下行缓冲区拥塞度,第二网关根据下行缓冲区拥塞度参数值转发数据流,每个数据帧会被转发至当时下行缓冲区拥塞度最小或者链路指标大于第四值的通道进行传输;其中,缓冲区拥塞度越小,通道越优。In the same way, when the second gateway transmits data to the first gateway according to the offloading strategy that meets the transmission bandwidth requirements, the second gateway calculates the downlink buffer congestion degree based on the usage of the downlink buffer, and the second gateway calculates the downlink buffer congestion degree parameter value based on the downlink buffer usage. Forwarding the data stream, each data frame will be forwarded to the channel with the smallest downstream buffer congestion at that time or the link index is greater than the fourth value for transmission; among them, the smaller the buffer congestion, the better the channel.
如图7所示,一个具体的实施例中,AI(Artificial Intelligence,人工智能)视频检测数据的传输需要极大的传输带宽,单路5G(5th Generation Mobile CommunicationTechnology,第五代移动通信技术)传输带宽的容量有时无法独立满足AI视频检测的传输需求;As shown in Figure 7, in a specific embodiment, the transmission of AI (Artificial Intelligence, artificial intelligence) video detection data requires a huge transmission bandwidth, and single-channel 5G (5th Generation Mobile Communication Technology, fifth generation mobile communication technology) transmission Bandwidth capacity sometimes cannot independently meet the transmission needs of AI video detection;
当通过终端侧的第一网关传输数据流X时,第一网关和服务器侧的第二网关之间存在4条链路可共同承载该数据流X的传输需求,这些链路可以实现如“5G+5G”、“5G+WiFi”等上行链路的协同传输;When the data stream X is transmitted through the first gateway on the terminal side, there are four links between the first gateway and the second gateway on the server side that can jointly carry the transmission requirements of the data stream +5G", "5G+WiFi" and other uplink coordinated transmission;
数据流X传输的数据帧为数据帧1,数据帧2,数据帧3,数据帧4;经对每条链路的上行缓冲区拥塞度计算,得到第一链路、第二链路以及第三链路的上行缓冲区拥塞度均为0.4,第四链路的上行缓冲区拥塞度为1.8,因此,可以同时选择第一链路、第二链路以及第三链路对数据流进行均匀分流,而由于第四链路的链路无法满足传输带宽要求,即链路堵塞,第一调度器选择不在该链路上分配上行数据流X的流量;The data frames transmitted by data flow The uplink buffer congestion degree of the three links is 0.4, and the uplink buffer congestion degree of the fourth link is 1.8. Therefore, the first link, the second link, and the third link can be selected at the same time to evenly distribute the data flow. Diversion, and because the link of the fourth link cannot meet the transmission bandwidth requirement, that is, the link is blocked, the first scheduler chooses not to allocate the traffic of upstream data flow X on this link;
同样地,当通过服务器侧的第二网关传输数据流Y时,第二网关和终端侧的第一网关之间存在4条链路可共同承载该数据流X的传输需求,这些链路可以实现下行链路的协同传输;Similarly, when the data flow Y is transmitted through the second gateway on the server side, there are four links between the second gateway and the first gateway on the terminal side that can jointly carry the transmission requirements of the data flow X. These links can realize Coordinated transmission of downlink;
数据流Y传输的数据帧为数据流a1,数据流a2,数据流a3,数据流a4;经对每条链路的上行缓冲区拥塞度计算,得到第一链路、第二链路以及第三链路的上行缓冲区拥塞度均为0.3,第四链路的上行缓冲区拥塞度为1.5,因此,可以同时选择第一链路、第二链路以及第三链路对数据流进行均匀分流,而由于第四链路的链路无法满足传输带宽要求,即链路堵塞,第二调度器不在该链路上分配下行数据流Y的流量。The data frames transmitted by data flow Y are data flow a1, data flow a2, data flow a3, and data flow a4. After calculating the uplink buffer congestion degree of each link, the first link, the second link and the third link are obtained. The uplink buffer congestion degree of the three links is 0.3, and the uplink buffer congestion degree of the fourth link is 1.5. Therefore, the first link, the second link, and the third link can be selected at the same time to evenly distribute the data flow. Diversion, and because the link of the fourth link cannot meet the transmission bandwidth requirement, that is, the link is blocked, the second scheduler does not allocate the traffic of the downlink data flow Y on this link.
3)对于需求为满足传输带宽要求和满足时延要求、满足丢包率要求或者满足抖动要求的分流策略,通过预设置链路质量参数以及链路传输质量条件;这里的链路传输质量条件优选通过设定一链路传输质量上限值(根据上述的第一值、第二值或第三值中的一项计算得到)得到QIndex_max,即链路传输质量条件为QIndex<QIndex_max;3) For the offloading strategy that needs to meet the transmission bandwidth requirements, meet the delay requirements, meet the packet loss rate requirements, or meet the jitter requirements, the link quality parameters and link transmission quality conditions are preset; the link transmission quality conditions here are preferred. Q Index_max is obtained by setting an upper limit of link transmission quality (calculated based on one of the above-mentioned first value, second value or third value), that is, the link transmission quality condition is Q Index <Q Index_max ;
同时,第一网关根据上行缓冲区使用情况计算上行缓冲区拥塞度,且第一网关根据上行链路实时状态信息表中的链路参数质量信息实时更新计算链路质量参数;第二网关根据下行缓冲区使用情况计算下行缓冲区拥塞度,且第二网关根据下行链路实时状态信息表中的链路参数质量信息实时更新计算链路质量参数;At the same time, the first gateway calculates the uplink buffer congestion degree based on the usage of the uplink buffer, and the first gateway calculates the link quality parameters in real time based on the link parameter quality information in the uplink real-time status information table; the second gateway calculates the link quality parameters based on the downlink real-time status information table. The buffer usage is used to calculate the downlink buffer congestion degree, and the second gateway updates and calculates the link quality parameters in real time based on the link parameter quality information in the downlink real-time status information table;
31)当第一网关将数据流根据上行缓冲区拥塞度参数计算结果进行转发时,每个数据帧被转发至当前时刻上行缓冲区拥塞度最小且同时满足QIndex<QIndex_max的链路进行传输;31) When the first gateway forwards the data stream according to the calculation result of the upstream buffer congestion parameter, each data frame is forwarded to the link with the smallest upstream buffer congestion at the current moment and satisfies Q Index < Q Index_max for transmission. ;
32)当第二网关将数据流根据下行缓冲区拥塞度参数计算结果进行转发时,每个数据帧被转发至当前时刻下行缓冲区拥塞度最小且同时满足QIndex<QIndex_max的链路进行传输。32) When the second gateway forwards the data flow according to the calculation result of the downlink buffer congestion parameter, each data frame is forwarded to the link with the smallest downlink buffer congestion at the current moment and satisfies Q Index < Q Index_max for transmission. .
上述根据数据帧对传输总带宽和传输质量(抖动、时延、的丢包率等)确定的分流策略,在满足预设定量条件(第一值、第二值、第三值)的传输质量这一指标的情况下,对数据流的流量进行分流;用户可以预设定量的链路传输质量条件,调度器将会选择在满足链路传输质量条件的情况下,将数据流的传输流量分流通过非拥塞(根据第四值确定)的链路传输,这样实现了对链路带宽复用的同时保障一定的传输质量。The above-mentioned offloading strategy determined based on the total transmission bandwidth and transmission quality (jitter, delay, packet loss rate, etc.) of the data frame, when the transmission quality satisfies the preset quantitative conditions (first value, second value, third value) In the case of this indicator, the traffic of the data flow will be diverted; the user can preset quantitative link transmission quality conditions, and the scheduler will choose to divert the transmission traffic of the data flow when the link transmission quality conditions are met. Transmitting through a non-congested (determined according to the fourth value) link realizes multiplexing of link bandwidth while ensuring a certain transmission quality.
如图8所示,又一具体的实施例中,当通过终端侧的第一网关传输数据流X时,第一网关和服务器侧的第二网关之间存在4条链路可共同承载该数据流X的传输需求,这些链路可进行协同传输;数据流X传输的数据帧依次为1,2,3,4;设定链路传输质量上限值为5,经对每条链路的上行缓冲区拥塞度计算,得到即满足链路传输质量条件,又非拥塞的链路进传输,因此,可以确定第一链路和第二链路满足链路传输质量条件,而第一链路、第二链路以及第三链路满足数据流均匀分流的条件,但由于第三链路无法满足链路传输质量条件(即QIndex<5),因此,只能选择第一链路和第二链路分流传输数据流X;As shown in Figure 8, in another specific embodiment, when the data flow X is transmitted through the first gateway on the terminal side, there are 4 links between the first gateway and the second gateway on the server side that can jointly carry the data. According to the transmission requirements of stream X, these links can perform collaborative transmission; the data frames transmitted by data stream By calculating the congestion degree of the uplink buffer, we can obtain the link that meets the link transmission quality conditions and is not congested for transmission. Therefore, it can be determined that the first link and the second link meet the link transmission quality conditions, and the first link , the second link and the third link meet the conditions for uniform distribution of data flows, but because the third link cannot meet the link transmission quality condition (i.e. Q Index <5), therefore, only the first link and the third link can be selected. The second link splits the transmission data stream X;
同样地,当通过服务器侧的第二网关传输数据流Y时,第二网关和终端侧的第一网关之间存在4条链路可共同承载该数据流Y的传输需求,这些链路可进行协同传输;数据流Y传输的数据帧依次为a1,a2,a3,a4;设定链路传输质量上限值为7,经对每条链路的上行缓冲区拥塞度计算,得到即满足链路传输质量条件,又非拥塞的链路进传输,因此,可以确定第一链路和第二链路满足链路传输质量条件,而第一链路、第二链路以及第三链路满足数据流均匀分流的条件,但由于第三链路无法满足链路传输质量条件(即QIndex<7),因此,只能选择第一链路和第二链路分流传输数据流Y。Similarly, when the data flow Y is transmitted through the second gateway on the server side, there are four links between the second gateway and the first gateway on the terminal side that can jointly bear the transmission requirements of the data flow Y. These links can carry out Coordinated transmission; the data frames transmitted by data stream Y are a1, a2, a3, a4 in sequence; the upper limit of link transmission quality is set to 7. After calculating the uplink buffer congestion degree of each link, it is obtained that the link meets the The link transmission quality conditions are met, and non-congested links carry out transmission. Therefore, it can be determined that the first link and the second link meet the link transmission quality conditions, while the first link, the second link and the third link meet the link transmission quality conditions. The conditions for the data stream to be evenly distributed, but because the third link cannot meet the link transmission quality condition (ie, Q Index <7), therefore, the first link and the second link can only be selected to distribute and transmit the data stream Y.
本发明一可选的实施例中,步骤13,包括:In an optional embodiment of the present invention, step 13 includes:
步骤131,在确定所述第一网关对链路标记的标识与第二网关对链路标记的标识一致的情况下,在所述数据流的数据帧中添加所述数据帧对应的目标链路的链路标识。Step 131: When it is determined that the identification of the link mark by the first gateway is consistent with the identification of the link mark by the second gateway, add the target link corresponding to the data frame in the data frame of the data flow. link identifier.
本发明的实施例中,第一网关和第二网关之间存在多条链路,链路可以是5G链路,也可以是WiFi(无线通信技术)链路,也可以是有限光纤以太网,本申请不以此为限制;In the embodiment of the present invention, there are multiple links between the first gateway and the second gateway. The link may be a 5G link, a WiFi (wireless communication technology) link, or a limited optical fiber Ethernet. This application is not limited by this;
第一网关上行至第二网关或第二网关下行至第一网关的多条链路均通过链路标识来区分,即链路标识可用于标记数据帧所经过的传输链路;链路标识需由第一网关和第二网关双端经过双向注册后得到,双向注册过程用于协调双端开启多条链路标识的功能,并用于确认多条链路的序号(链路标识)的分配;在确定第一网关对链路标记的标识与第二网关对链路标记的标识一致的情况下,可以在数据流的数据帧中添加链路标识,以使得接收一侧的网关可以依据数据帧的链路标识定位至目标链路,不会产生分歧。The multiple links upstream from the first gateway to the second gateway or downlink from the second gateway to the first gateway are distinguished by link identifiers, that is, the link identifiers can be used to mark the transmission links through which data frames pass; the link identifiers need to Obtained by the first gateway and the second gateway after bidirectional registration. The bidirectional registration process is used to coordinate the function of enabling multiple link identifiers at both ends, and is used to confirm the allocation of sequence numbers (link identifiers) of multiple links; When it is determined that the identification of the link mark by the first gateway is consistent with the identification of the link mark by the second gateway, the link identification can be added to the data frame of the data flow, so that the gateway on the receiving side can The link identifier is positioned to the target link without divergence.
本发明又一可选的实施例中,步骤131中确定所述第一网关对链路标记的标识与第二网关对链路标记的标识一致的过程包括:In yet another optional embodiment of the present invention, the process of determining in step 131 that the identification of the link mark by the first gateway is consistent with the identification of the link mark by the second gateway includes:
步骤1311,判断所述第一网关对链路标记的标识与所述第二网关对链路标记的标识是否一致,得到判断结果;若所述判断结果为一致,则向所述第二网关发送确认帧,反之,则发送报错信号;Step 1311: Determine whether the identification of the link mark by the first gateway and the identification of the link mark by the second gateway are consistent, and obtain a judgment result; if the judgment result is consistent, send a message to the second gateway. Confirm the frame, otherwise, send an error signal;
步骤1312,当所述第一网关确定对链路标记的标识与第二网关对链路标记的标识一致时,接收所述第二网关发送的探测报文;Step 1312: When the first gateway determines that the identification of the link mark is consistent with the identification of the link mark by the second gateway, receive the detection message sent by the second gateway;
步骤1313,根据所述探测报文向所述第二网关反馈应答信号。Step 1313: Feed back a response signal to the second gateway according to the detection message.
本发明的实施例中,链路标识优选按照“接入模式+两个网关的IP(InternetProtocol Address,互联网协议地址)地址”的链路信息进行分配,例如:将WiFi-IP1-IP2对应链路的链路标识分配为1,将5G-IP3-IP4对应链路的链路标识分配为2;In the embodiment of the present invention, the link identifier is preferably allocated according to the link information of "access mode + IP (Internet Protocol Address) addresses of the two gateways", for example: WiFi-IP1-IP2 corresponds to the link The link identifier is assigned as 1, and the link identifier of the 5G-IP3-IP4 corresponding link is assigned as 2;
链路标识的配置模式包括手动配置模式和服务器分发模式;The configuration modes of link identification include manual configuration mode and server distribution mode;
如图9所示,手动配置的过程包括:As shown in Figure 9, the manual configuration process includes:
步骤91,管理员在第一网关与第二端网关分别对同一条链路进行相同的标记,如,第一网关将“WiFi-IP1-IP2”的链路标识为1,并将“5G-IP3-IP4”的链路标识为2;第二网关将“WiFi-IP1-IP2”的链路标识为1,并将“5G-IP3-IP4”的链路标识为2;Step 91: The administrator marks the same link on the first gateway and the second gateway respectively. For example, the first gateway marks the link "WiFi-IP1-IP2" as 1 and "5G- The link identifier of "IP3-IP4" is 2; the second gateway identifies the link of "WiFi-IP1-IP2" as 1, and the link of "5G-IP3-IP4" as 2;
步骤92,多路径标记完成后,由服务器侧的第二网关将多链路标识规则发送至第一网关,以使得第一网关可对多链路进行序号标记结果的一致性确认;Step 92: After the multi-path marking is completed, the second gateway on the server side sends the multi-link identification rule to the first gateway, so that the first gateway can confirm the consistency of the sequence number marking results for the multi-link;
步骤93a,若双端标识序号标记一致(即判断结果为一致),则第一网关返回多链路标识一致性检查确认帧;Step 93a, if the two-end identifier serial number marks are consistent (that is, the judgment result is consistent), the first gateway returns a multi-link identifier consistency check confirmation frame;
步骤93b,若双端序号标记不一致,则返回错误(error)信号,以提醒管理员进行重配置,链路标识分配失败,同时,返回步骤71进行重新注册;Step 93b, if the serial number marks at both ends are inconsistent, an error signal is returned to remind the administrator to perform reconfiguration, and the link identifier allocation fails. At the same time, return to step 71 for re-registration;
步骤94,第二网关分别在多条链路上发出Hello探测报文(报文的数据帧携带协商好的链路标识以及随机生成的序列号);Step 94: The second gateway sends Hello detection messages on multiple links respectively (the data frame of the message carries the negotiated link identifier and a randomly generated sequence number);
步骤95,第一网关分别对在多条链路上接收到的Hello探测报文进行应答报文(ACK)回复,至此,手动模式的多链路设备双向注册流程完成;Step 95: The first gateway responds with a response message (ACK) to the Hello detection messages received on multiple links. At this point, the manual mode multi-link device bidirectional registration process is completed;
进一步地,步骤96,周期性进行步骤94以及步骤95,以检测各链路连接状况,若任何一链路未按时完成hello-ack(探测报文-应答报文)检测流程,第一网关和第二网关均会将该条链路的连接分配状态调整为无效(Inactive),并暂停使用该链路。Further, in step 96, step 94 and step 95 are performed periodically to detect the connection status of each link. If any link fails to complete the hello-ack (detection message-response message) detection process on time, the first gateway and The second gateway will adjust the connection allocation status of the link to Inactive and suspend the use of the link.
如图10所示,服务器分发模式的过程包括:As shown in Figure 10, the process of server distribution mode includes:
步骤101,管理员在第二网关分对多条链路进行标记,如,第二网关将“WiFi-IP1-IP2”的链路标识为1,并将“5G-IP3-IP4”的链路标识为2;Step 101: The administrator marks multiple links on the second gateway. For example, the second gateway marks the link of "WiFi-IP1-IP2" as 1 and the link of "5G-IP3-IP4". Identified as 2;
步骤102,多条链路标记完成后由第二网关向第一网关分发多条链路的序号标记结果;Step 102: After the multiple link marking is completed, the second gateway distributes the sequence number marking results of the multiple links to the first gateway;
步骤103a,若双端标识序号标记一致(即判断结果为一致),则第一网关返回多链路标识一致性检查确认帧;Step 103a, if the two-end identifier serial number marks are consistent (that is, the judgment result is consistent), the first gateway returns a multi-link identifier consistency check confirmation frame;
步骤103b,若双端序号标记不一致,则返回错误(error)信号,以提醒管理员进行重配置,链路标识分配失败,同时,可返回步骤111进行重新注册;Step 103b, if the serial number marks at both ends are inconsistent, an error signal is returned to remind the administrator to perform reconfiguration, and the link identifier allocation fails. At the same time, you can return to step 111 to re-register;
步骤104,第二网关分别在多条链路上发出Hello探测报文(报文的数据帧携带协商好的链路标识以及随机生成的序列号);Step 104: The second gateway sends Hello detection messages on multiple links respectively (the data frame of the message carries the negotiated link identifier and a randomly generated sequence number);
步骤105,第一网关分别对在多条链路上接收到的Hello探测报文进行应答报文(ACK)回复,至此,手动模式的多链路设备双向注册流程完成;Step 105: The first gateway responds with a response message (ACK) to the Hello detection messages received on multiple links. At this point, the manual mode multi-link device bidirectional registration process is completed;
进一步地,步骤106,周期性进行步骤104以及步骤105,以检测各链路连接状况,若任何一链路未按时完成hello-ack(探测报文-应答报文)检测流程,第一网关和第二网关均会将该条链路的连接分配状态调整为无效(Inactive),并暂停使用该链路。Further, in step 106, step 104 and step 105 are performed periodically to detect the connection status of each link. If any link fails to complete the hello-ack (detection message-response message) detection process on time, the first gateway and The second gateway will adjust the connection allocation status of the link to Inactive and suspend the use of the link.
本发明一可选的实施例中,步骤132中在所述数据流的数据帧中添加链路标识,包括:In an optional embodiment of the present invention, adding a link identifier to the data frame of the data flow in step 132 includes:
步骤1321,在所述数据流的数据帧中的预留字段添加所述目标链路的链路标识。Step 1321: Add the link identifier of the target link to the reserved field in the data frame of the data flow.
本实施例中,数据帧在发送之前,除了需要添加链路标识,还需要添加时间戳和数据帧标识,该时间戳用于接收侧(即第二网关)计算该数据帧从目标链路上发送至接收的传输时延,而数据帧标识用于区分各个数据帧,以免混淆同一目标链路上的数据帧;在数据帧的预留字段中添加目标链路的链路标识;In this embodiment, before the data frame is sent, in addition to adding the link identifier, it is also necessary to add a timestamp and a data frame identifier. The timestamp is used by the receiving side (i.e., the second gateway) to calculate whether the data frame is on the target link. The transmission delay from sending to receiving, and the data frame identifier is used to distinguish each data frame to avoid confusing data frames on the same target link; add the link identifier of the target link in the reserved field of the data frame;
这里,通过一个具体的实现实例说明链路标识以及时间戳信息在数据帧中的添加位置:Here, a specific implementation example is used to illustrate the location of adding the link identifier and timestamp information in the data frame:
如图11所示,一个具体的实施例中,当数据流中的数据帧为TAN数据帧时,TAN数据帧可将第27至29位的预留比特位用于链路标识的承载;由于链路标识是由两端共同确认后得到的各个链路的唯一标识,因此不同的链路标识不仅可以为传输数据帧的目标链路标序,以便区分,还可以为链路标识功能进行区分;这里的链路表示功能状态指的是第一网关是否可以为数据帧添加链路标识;As shown in Figure 11, in a specific embodiment, when the data frame in the data stream is a TAN data frame, the TAN data frame can use the 27th to 29th reserved bits to carry the link identification; because The link identifier is the unique identifier of each link obtained after mutual confirmation by both ends. Therefore, different link identifiers can not only sequence the target link for transmitting data frames for differentiation, but also distinguish the link identification function. ;The link representation function status here refers to whether the first gateway can add a link identifier to the data frame;
当TAN数据帧中的链路标识为000时,则表示该链路标识功能未开启,则第一网关不对数据帧添加链路标识,直到链路标识功能后,第一网关才可将“001”至“111”的序号标识分别对应1至7条链路,再为数据帧添加链路标识;When the link identification in the TAN data frame is 000, it means that the link identification function is not enabled, and the first gateway does not add a link identification to the data frame. The first gateway cannot add "001" to the data frame until the link identification function is enabled. The serial number identifiers from " to "111" correspond to 1 to 7 links respectively, and then add link identifiers to the data frame;
另外,由于TAN数据帧的特点,可将时间戳携带在该TAN数据帧的TAN头部的预留字段中。In addition, due to the characteristics of the TAN data frame, the timestamp can be carried in the reserved field of the TAN header of the TAN data frame.
再如图2所示,一个具体的实施例中,当第一网关和第二网关之间需进行数据传输时,通过双向注册流程实现双端网关之间4条链路的链路标识的统一以及对端设备发现,每个通过这4条链路传输的数据帧都会被添加上用于链路状态测量的必要信息(时间戳、链路标识、数据帧标识);As shown in Figure 2, in a specific embodiment, when data transmission is required between the first gateway and the second gateway, the link identification of the four links between the dual-end gateways is unified through a two-way registration process. And peer device discovery, each data frame transmitted through these four links will be added with the necessary information for link status measurement (time stamp, link identification, data frame identification);
注册完成后,调度器进入预启动状态,将所有传输数据包分散到各链路上,数据的接收端可依托数据帧中携带的时间戳、链路标识、数据帧标识进行链路状态的实时测量;After the registration is completed, the scheduler enters the pre-start state and disperses all transmission data packets to each link. The receiving end of the data can rely on the timestamp, link identification, and data frame identification carried in the data frame to perform real-time link status Measurement;
调度器进入分流状态,根据分流策略对应的目标链路对数据帧进行分流转发,同时,在数据的接收侧对链路状态信息实时测量与更新。The scheduler enters the offload state and offloads and forwards the data frame according to the target link corresponding to the offload policy. At the same time, the link status information is measured and updated in real time on the receiving side of the data.
本发明通过接收待传输的数据流;按照所述数据流的分流策略,确定所述数据流的每个数据帧分别对应的目标链路;在所述数据流的每个数据帧中添加所述数据帧对应的目标链路的链路标识,所述数据帧中携带有时间戳信息;通过所述目标链路,将添加了链路标识的所述数据帧发送至服务端侧的第二网关;实现了多链路数据分流传输,提升了链路使用效率,为数据流提供了传输保障。The present invention receives the data stream to be transmitted; determines the target link corresponding to each data frame of the data stream according to the diversion strategy of the data stream; and adds the said data stream to each data frame of the data stream. The link identifier of the target link corresponding to the data frame, the data frame carrying timestamp information; sending the data frame with the link identifier added to the second gateway on the server side through the target link ; Realizes multi-link data split transmission, improves link usage efficiency, and provides transmission guarantee for data flow.
如图12所示,本发明的实施例提供一种数据传输方法,应用于服务端侧的第二网关,包括:As shown in Figure 12, an embodiment of the present invention provides a data transmission method, which is applied to the second gateway on the server side, including:
步骤1201,接收终端侧的第一网关通过至少一个目标链路发送的数据流的至少一个数据帧;所述数据帧携带有传输所述数据帧的目标链路的链路标识和时间戳信息;Step 1201: Receive at least one data frame of the data stream sent by the first gateway on the terminal side through at least one target link; the data frame carries the link identifier and timestamp information of the target link that transmits the data frame;
步骤1202,根据所述至少一个数据帧中的链路标识和时间戳信息,将所述至少一个数据帧恢复为所述数据流。Step 1202: Restore the at least one data frame into the data stream according to the link identification and timestamp information in the at least one data frame.
本发明的实施例中,由于第一网关向第二网关发送的数据帧携带时间戳、链路标识以及数据帧标识,第二网关可根据该数据帧以及接收到该数据帧的时间(由本地时钟确认)的差值,计算出该数据帧的传输时延,按照数据帧中携带的链路标识以及时间戳信息,可以将接收到的数据帧恢复为数据流。In the embodiment of the present invention, since the data frame sent by the first gateway to the second gateway carries a timestamp, a link identifier and a data frame identifier, the second gateway can use the data frame and the time when the data frame is received (by the local clock acknowledgment), the transmission delay of the data frame is calculated, and the received data frame can be restored to a data stream according to the link identification and timestamp information carried in the data frame.
可选的,步骤1201后,还可以包括:Optional, after step 1201, you can also include:
步骤1203,根据预设时间段内接收的所述数据帧在所述目标链路中进行传输的至少一个链路指标测量值,得到第二链路状态信息测量结果;所述第二链路状态信息测量结果中包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值;Step 1203: Obtain a second link status information measurement result based on at least one link indicator measurement value of the data frame transmitted in the target link received within a preset time period; the second link status The information measurement results include link identifiers of multiple links and at least one link indicator measurement value of the link corresponding to each link identifier within a preset time period;
步骤1204,按照预设周期,将所述第二链路状态信息测量结果发送至第一网关,以使所述第一网关根据所述第二链路状态信息测量结果更新本地的第一链路状态信息集;所述第一链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标值。Step 1204: Send the second link status information measurement result to the first gateway according to a preset period, so that the first gateway updates the local first link according to the second link status information measurement result. Status information set; the first link status information set includes link identifiers of multiple links and at least one link index value of the link corresponding to each link identifier within a preset time period.
可选的,步骤1204之后还包括:Optionally, after step 1204, the following steps are also included:
步骤1205,按照预设周期,接收所述第一网关发送的第一链路状态信息测量结果,所述第一链路状态信息测量结果包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值;Step 1205: Receive the first link status information measurement result sent by the first gateway according to a preset period. The first link status information measurement result includes link identifiers of multiple links and each link identifier. At least one link indicator measurement value of the corresponding link within a preset time period;
步骤1206,根据所述第一链路状态信息测量结果更新本地的第二链路状态信息集,所述第二链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在所述预设时间段内的至少一个链路指标值。需要说明的是,该应用于服务器侧的第二网关的方法是与上述应用于终端侧的第一网关的方法相对应的方法,上述应用于终端侧的第一网关的方法实施例中的所有实现方式均适用于该实施例中,也能达到相同的技术效果。Step 1206: Update a local second link state information set according to the first link state information measurement result. The second link state information set includes link identifiers of multiple links and the corresponding link identifiers of each link. At least one link index value of the link within the preset time period. It should be noted that the method applied to the second gateway on the server side is a method corresponding to the method applied to the first gateway on the terminal side. All the methods in the embodiments of the method applied on the first gateway on the terminal side are All implementation methods are applicable to this embodiment, and the same technical effect can be achieved.
如图13所示,本发明的实施例还提供一种第一网关130,包括:As shown in Figure 13, the embodiment of the present invention also provides a first gateway 130, which includes:
第一收发模块1301,用于接收待传输的数据流;The first transceiver module 1301 is used to receive the data stream to be transmitted;
第一处理模块1302,用于按照所述数据流的分流策略,确定所述数据流的每个数据帧分别对应的目标链路;在所述数据流的每个数据帧中添加所述数据帧对应的目标链路的链路标识,所述数据帧中携带有时间戳信息;The first processing module 1302 is configured to determine the target link corresponding to each data frame of the data flow according to the offloading strategy of the data flow; and add the data frame to each data frame of the data flow. The link identifier of the corresponding target link, and the data frame carries timestamp information;
所述第一收发模块1301,还用于通过所述目标链路,将添加了链路标识的所述数据帧发送至服务端侧的第二网关。The first transceiver module 1301 is also configured to send the data frame with the link identifier added to the second gateway on the server side through the target link.
可选的,第一处理模块1302,还用于:Optionally, the first processing module 1302 is also used to:
获取所述第一网关连接的多个链路的链路状态;Obtain link status of multiple links connected to the first gateway;
根据所述多个链路的链路状态,确定所述数据流的分流策略。Determine a distribution strategy for the data flow according to the link status of the multiple links.
可选的,获取所述第一网关连接的多个链路的链路状态,包括:Optionally, obtaining link status of multiple links connected to the first gateway includes:
按照预设周期,接收所述第二网关发送的第二链路状态信息测量结果;所述第二链路状态信息测量结果中包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值,所述多个链路是所述第一网关与第二网关之间的通信链路;According to a preset period, receive the second link status information measurement result sent by the second gateway; the second link status information measurement result includes link identifiers of multiple links and the link identifier corresponding to each link identifier. At least one link indicator measurement value of the link within a preset time period, the plurality of links being communication links between the first gateway and the second gateway;
根据所述第二链路状态信息测量结果更新本地的第一链路状态信息集,所述第一链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在所述预设时间段内的至少一个链路指标值;Update the local first link status information set according to the second link status information measurement result. The first link status information set includes link identifiers of multiple links and the link corresponding to each link identifier. At least one link indicator value within the preset time period;
根据所述第一链路状态信息集中的至少一个链路指标值,获取所述第一网关连接的多个链路的链路状态;Obtain the link status of multiple links connected to the first gateway according to at least one link indicator value in the first link status information set;
按照预设周期,向所述第二网关发送第一链路状态信息测量结果,以使所述第二网关根据所述第一链路状态信息测量结果更新本地的第二链路状态信息集,所述第一链路状态信息测量结果包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值;所述第二链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在所述预设时间段内的至少一个链路指标值。sending the first link status information measurement result to the second gateway according to a preset period, so that the second gateway updates the local second link status information set according to the first link status information measurement result, The first link status information measurement result includes link identifiers of multiple links and at least one link indicator measurement value of the link corresponding to each link identifier within a preset time period; the second link The status information set includes link identifiers of multiple links and at least one link index value of the link corresponding to each link identifier within the preset time period.
可选的,根据所述多个链路的链路状态,确定所述数据流的分流策略,包括:Optionally, determine the offloading strategy of the data flow according to the link status of the multiple links, including:
根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延、抖动、丢包率、传输带宽中的至少一项链路指标值,确定所述数据流的分流策略。Determine the data flow according to at least one link index value among the delay, jitter, packet loss rate, and transmission bandwidth of the link corresponding to the link identifiers of the multiple links in the first link status information set. diversion strategy.
可选的,在数据流为两个以上数据流的情况下,根据所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延、抖动、丢包率、传输带宽中的至少一项链路指标值,确定所述数据流的分流策略,包括:Optionally, when the data flow is two or more data flows, the delay, jitter, and packet loss rate of the link respectively corresponding to the link identifiers of the multiple links in the first link status information set are , at least one link indicator value in the transmission bandwidth, determines the offloading strategy of the data flow, including:
通过预设映射规则对多个数据流进行数据特征筛选,得到至少一组数据流筛选组;Filter the data characteristics of multiple data streams through preset mapping rules to obtain at least one data stream filtering group;
根据至少一组所述数据流筛选组以及所述第一链路状态信息集中多个链路的链路标识分别对应的该链路的时延、抖动、丢包率、传输带宽中的至少一项链路指标值,确定数据流的分流策略。At least one of the delay, jitter, packet loss rate, and transmission bandwidth of the link corresponding to at least one of the data flow filtering groups and the link identifiers of multiple links in the first link status information set. The necklace link indicator value determines the diversion strategy of the data flow.
可选的,在所述数据流的每个数据帧中添加所述数据帧对应的目标链路的链路标识,包括:Optionally, add the link identifier of the target link corresponding to the data frame in each data frame of the data flow, including:
在确定所述第一网关对链路标记的链路标识与第二网关对链路标记的链路标识一致的情况下,在所述数据流的数据帧中添加所述数据帧对应的目标链路的链路标识。When it is determined that the link identifier of the link mark of the first gateway is consistent with the link identifier of the link mark of the second gateway, add the target link corresponding to the data frame in the data frame of the data flow. The link identifier of the road.
可选的,在所述数据流的数据帧中添加所述数据帧对应的目标链路的链路标识,包括:Optionally, add the link identifier of the target link corresponding to the data frame in the data frame of the data flow, including:
在所述数据流的数据帧中的预留字段添加所述目标链路的链路标识。Add the link identifier of the target link to a reserved field in the data frame of the data flow.
需要说明的是,该第一网关是与上述应用于终端侧的第一网关的方法相对应的网关,上述应用于终端侧的第一网关的方法实施例中的所有实现方式均适用于该实施例中,也能达到相同的技术效果。It should be noted that the first gateway is a gateway corresponding to the above-mentioned method applied to the first gateway on the terminal side. All implementations in the above-mentioned method embodiment applied to the first gateway on the terminal side are applicable to this implementation. In this example, the same technical effect can be achieved.
如图14所示,本发明的实施例还提供一种第二网关140,包括:As shown in Figure 14, the embodiment of the present invention also provides a second gateway 140, including:
第二收发模块141,用于接收终端侧的第一网关通过至少一个目标链路发送的数据流的至少一个数据帧;所述数据帧携带有传输所述数据帧的目标链路的链路标识和时间戳信息;The second transceiver module 141 is configured to receive at least one data frame of the data stream sent by the first gateway on the terminal side through at least one target link; the data frame carries the link identifier of the target link that transmits the data frame. and timestamp information;
第二处理模块142,用于根据所述至少一个数据帧中的链路标识和时间戳信息,将所述至少一个数据帧恢复为所述数据流。The second processing module 142 is configured to restore the at least one data frame into the data stream according to the link identification and timestamp information in the at least one data frame.
可选的,所述第二处理模块142还用于:Optionally, the second processing module 142 is also used to:
根据预设时间段内接收的所述数据帧在所述目标链路中进行传输的至少一个链路指标测量值,得到第二链路状态信息测量结果;所述第二链路状态信息测量结果中包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值;Obtain a second link status information measurement result according to at least one link indicator measurement value of the data frame transmitted in the target link received within a preset time period; the second link status information measurement result including link identifiers of multiple links and at least one link indicator measurement value of the link corresponding to each link identifier within a preset time period;
按照预设周期,将所述第二链路状态信息测量结果发送至第一网关,以使所述第一网关根据所述第二链路状态信息测量结果更新本地的第一链路状态信息集;所述第一链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标值;按照预设周期,接收所述第一网关发送的第一链路状态信息测量结果,所述第一链路状态信息测量结果包括多个链路的链路标识以及每一个链路标识对应的链路在预设时间段内的至少一个链路指标测量值;According to a preset period, the second link status information measurement result is sent to the first gateway, so that the first gateway updates the local first link status information set according to the second link status information measurement result. ; The first link status information set includes link identifiers of multiple links and at least one link index value of the link corresponding to each link identifier within a preset time period; according to the preset period, receive all The first link status information measurement result sent by the first gateway, the first link status information measurement result includes link identifiers of multiple links and the link corresponding to each link identifier within a preset time period. At least one link indicator measurement value;
根据所述第一链路状态信息测量结果更新本地的第二链路状态信息集,所述第二链路状态信息集包括多个链路的链路标识以及每一个链路标识对应的链路在所述预设时间段内的至少一个链路指标值。A local second link state information set is updated according to the first link state information measurement result. The second link state information set includes link identifiers of multiple links and links corresponding to each link identifier. At least one link index value within the preset time period.
需要说明的是,该第二网关是与上述应用于服务器侧的第二网关的方法相对应的网关,上述应用于服务器侧的第二网关的方法实施例中的所有实现方式均适用于该实施例中,也能达到相同的技术效果。It should be noted that the second gateway is a gateway corresponding to the above-mentioned method applied to the second gateway on the server side. All implementations in the above-mentioned method embodiment applied to the second gateway on the server side are applicable to this implementation. In this example, the same technical effect can be achieved.
本发明的实施例还提供一种通信设备,包括:处理器、存储有计算机程序的存储器,所述计算机程序被处理器运行时,执行如上所述的方法。上述方法实施例中的所有实现方式均适用于该实施例中,也能达到相同的技术效果。An embodiment of the present invention also provides a communication device, including: a processor and a memory storing a computer program. When the computer program is run by the processor, the method as described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
本发明的实施例还提供一种计算机可读存储介质,存储指令,当所述指令在计算机上运行时,使得计算机执行如上所述的方法。上述方法实施例中的所有实现方式均适用于该实施例中,也能达到相同的技术效果。Embodiments of the present invention also provide a computer-readable storage medium that stores instructions that, when executed on a computer, cause the computer to perform the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本发明所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
此外,需要指出的是,在本发明的装置和方法中,显然,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本发明的等效方案。并且,执行上述系列处理的步骤可以自然地按照说明的顺序按时间顺序执行,但是并不需要一定按照时间顺序执行,某些步骤可以并行或彼此独立地执行。对本领域的普通技术人员而言,能够理解本发明的方法和装置的全部或者任何步骤或者部件,可以在任何计算装置(包括处理器、存储介质等)或者计算装置的网络中,以硬件、固件、软件或者它们的组合加以实现,这是本领域普通技术人员在阅读了本发明的说明的情况下运用他们的基本编程技能就能实现的。In addition, it should be pointed out that in the device and method of the present invention, obviously, each component or each step can be decomposed and/or recombined. These decompositions and/or recombinations should be regarded as equivalent solutions of the present invention. Furthermore, the steps for executing the above series of processes can naturally be executed in chronological order in the order described, but they do not necessarily need to be executed in chronological order, and some steps may be executed in parallel or independently of each other. For those of ordinary skill in the art, it can be understood that all or any steps or components of the method and device of the present invention can be implemented in any computing device (including processor, storage medium, etc.) or a network of computing devices in the form of hardware or firmware. , software or their combination, this can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.
因此,本发明的目的还可以通过在任何计算装置上运行一个程序或者一组程序来实现。所述计算装置可以是公知的通用装置。因此,本发明的目的也可以仅仅通过提供包含实现所述方法或者装置的程序代码的程序产品来实现。也就是说,这样的程序产品也构成本发明,并且存储有这样的程序产品的存储介质也构成本发明。显然,所述存储介质可以是任何公知的存储介质或者将来所开发出来的任何存储介质。还需要指出的是,在本发明的装置和方法中,显然,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本发明的等效方案。并且,执行上述系列处理的步骤可以自然地按照说明的顺序按时间顺序执行,但是并不需要一定按照时间顺序执行。某些步骤可以并行或彼此独立地执行。Therefore, the objects of the invention can also be achieved by running a program or a set of programs on any computing device. The computing device may be a well-known general-purpose device. Therefore, the object of the present invention can also be achieved only by providing a program product containing a program code for implementing the method or apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium may be any known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, obviously, each component or each step can be decomposed and/or recombined. These decompositions and/or recombinations should be regarded as equivalent solutions of the present invention. Furthermore, the steps for executing the above series of processes can naturally be executed in chronological order in the order described, but do not necessarily need to be executed in chronological order. Certain steps can be performed in parallel or independently of each other.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is the preferred embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications can also be made. should be regarded as the protection scope of the present invention.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310323081.8A CN116915694A (en) | 2023-03-29 | 2023-03-29 | Data transmission method, gateway, communication device, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310323081.8A CN116915694A (en) | 2023-03-29 | 2023-03-29 | Data transmission method, gateway, communication device, and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116915694A true CN116915694A (en) | 2023-10-20 |
Family
ID=88361592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310323081.8A Pending CN116915694A (en) | 2023-03-29 | 2023-03-29 | Data transmission method, gateway, communication device, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116915694A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118282926A (en) * | 2024-04-07 | 2024-07-02 | 中科诺信集团有限公司 | Automatic and default mixed advanced transmission diameter selection method |
CN118764546A (en) * | 2024-09-06 | 2024-10-11 | 杭州东贝智算科技有限公司 | A multi-link communication method based on communication protocol analysis |
-
2023
- 2023-03-29 CN CN202310323081.8A patent/CN116915694A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118282926A (en) * | 2024-04-07 | 2024-07-02 | 中科诺信集团有限公司 | Automatic and default mixed advanced transmission diameter selection method |
CN118764546A (en) * | 2024-09-06 | 2024-10-11 | 杭州东贝智算科技有限公司 | A multi-link communication method based on communication protocol analysis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1851921B1 (en) | Admission control and routing in a telecommunications network based on the consideration of all physical and logical links | |
CN110191065B (en) | High-performance load balancing system and method based on software defined network | |
CN110177054B (en) | Port queue scheduling method, device, network controller and storage medium | |
CN112583735B (en) | Method, device and system for determining required bandwidth of transmission data stream | |
CN111526089B (en) | A device for data fusion transmission and scheduling based on variable length granularity | |
CN106452958A (en) | Flow control method and system, and centralized controller | |
CN109842868B (en) | Frame aggregation and network setting frame sending method and equipment | |
JP2012075173A (en) | Systems and methods for dynamic mode-driven link management | |
CN116915694A (en) | Data transmission method, gateway, communication device, and computer-readable storage medium | |
CN103098429A (en) | System, method and computer program for intelligent package distribution | |
CN102098301A (en) | Multilink self-adaptation data transmission method and system | |
EP4184937A1 (en) | Method, apparatus, and system for communication in data centre | |
JP2009542113A (en) | Method and system for fault tolerant QoS | |
CN110662256A (en) | Data packet scheduling method and system for multi-path cross-protocol transmission | |
US11863322B2 (en) | Communication method and apparatus | |
WO2021244247A1 (en) | Data message forwarding method, network node, system, and storage medium | |
Gao et al. | QoS-driven path selection for MPTCP: A scalable SDN-assisted approach | |
CN116319549B (en) | Distributed flow scheduling method and device | |
EP3547690B1 (en) | Real-time video transmission method of multipath network | |
WO2013059377A1 (en) | Controlling transmission of data | |
CN115714749A (en) | End-to-end data determination method, device and system and electronic equipment | |
CN113438182A (en) | Flow control system and flow control method based on credit | |
KR101589553B1 (en) | Method and apparatus for controlling bandwidth for quality of service in software defined network | |
WO2022052800A1 (en) | Communication system, data processing method and related device | |
CN117014384A (en) | Message transmission method and message forwarding equipment |
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 |