WO2023093539A1 - Message control method and apparatus, and storage medium and electronic apparatus - Google Patents

Message control method and apparatus, and storage medium and electronic apparatus Download PDF

Info

Publication number
WO2023093539A1
WO2023093539A1 PCT/CN2022/131197 CN2022131197W WO2023093539A1 WO 2023093539 A1 WO2023093539 A1 WO 2023093539A1 CN 2022131197 W CN2022131197 W CN 2022131197W WO 2023093539 A1 WO2023093539 A1 WO 2023093539A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
congestion control
message
packet
model
Prior art date
Application number
PCT/CN2022/131197
Other languages
French (fr)
Chinese (zh)
Inventor
崔兴龙
蒋震
方沛昱
Original Assignee
苏州盛科通信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州盛科通信股份有限公司 filed Critical 苏州盛科通信股份有限公司
Publication of WO2023093539A1 publication Critical patent/WO2023093539A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

Disclosed in the embodiments of the present invention are a message control method and apparatus, and a storage medium and an electronic apparatus. The method comprises: extracting a target message feature from an acquired target message to be forwarded, wherein the target message feature is used for representing a transmission configuration of the target message; calling, from among a plurality of congestion control models, a target congestion control model that matches the target message feature, wherein each of the plurality of congestion control models is used for realizing a congestion control algorithm; and performing congestion control on the target message by means of the target congestion control model. By using the technical solution, the problem in the related art of the flexibility of controlling a message by using a congestion control algorithm being relatively low is solved.

Description

报文的控制方法和装置、存储介质及电子装置Message control method and device, storage medium and electronic device
本申请要求于2021年11月26日提交中国专利局、申请号为202111425013.X、发明名称“报文的控制方法和装置、存储介质及电子装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111425013.X and the title of the invention "Message control method and device, storage medium and electronic device" submitted to the China Patent Office on November 26, 2021, the entire content of which Incorporated in this application by reference.
技术领域technical field
本发明实施例涉及通信领域,特别而言,涉及一种报文的控制方法和装置、存储介质及电子装置。Embodiments of the present invention relate to the communication field, and in particular, relate to a message control method and device, a storage medium, and an electronic device.
背景技术Background technique
随着网络的复杂和接入网络的设备越来越多,网络设备中各个设备的TCP(Transmission Control Protocol,传输控制协议)报文采用的拥塞控制算法各不相同,而这些TCP报文最终会统一通过网络设备进行转发,因此如何对使用各种拥塞控制算法的TCP报文队列进行有效管理是务须解决的问题。With the complexity of the network and the increasing number of devices connected to the network, the congestion control algorithms adopted by the TCP (Transmission Control Protocol) messages of each device in the network devices are different, and these TCP messages will eventually It is forwarded uniformly through network devices, so how to effectively manage the TCP message queues using various congestion control algorithms is a problem that must be solved.
现有技术中,在管理网络设备上的TCP报文队列时,往往预先配置一种拥塞控制算法,即网络设备上的报文队列只支持一种处理策略,对接收到的TCP报文只能根据配置好的特定控制策略进行管理;而在复杂的TCP流量环境中,TCP报文可能使用多种各不相同的拥塞控制算法,现有技术存在着不能满足多种拥塞控制算法的需求的缺点。In the prior art, when managing the TCP message queue on the network device, a congestion control algorithm is often pre-configured, that is, the message queue on the network device only supports one processing strategy, and only Manage according to the configured specific control strategy; in a complex TCP traffic environment, TCP packets may use a variety of different congestion control algorithms, and the existing technology has the disadvantage that it cannot meet the needs of multiple congestion control algorithms .
针对相关技术中,使用拥塞控制算法控制报文的灵活度较低等问题,尚未提出有效的解决方案。In the related art, no effective solution has been proposed for problems such as the low flexibility of using the congestion control algorithm to control packets.
发明内容Contents of the invention
本发明实施例提供了一种报文的控制方法和装置、存储介质及电子装置,以至少解决相关技术中,使用拥塞控制算法控制报文的灵活度较低等 问题。Embodiments of the present invention provide a message control method and device, a storage medium, and an electronic device, so as to at least solve the problem in the related art that the flexibility of using a congestion control algorithm to control a message is low.
根据本发明实施例的一个实施例,提供了一种报文的控制方法,包括:从获取到的待转发的目标报文中提取目标报文特征,其中,所述目标报文特征用于表征所述目标报文的传输配置;According to an embodiment of the present invention, a message control method is provided, including: extracting target message features from acquired target messages to be forwarded, wherein the target message features are used to characterize The transmission configuration of the target message;
从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,其中,所述多个拥塞控制模型中的每个拥塞控制模型用于实现一种拥塞控制算法;Invoking a target congestion control model matching the characteristics of the target packet from a plurality of congestion control models, wherein each congestion control model in the plurality of congestion control models is used to implement a congestion control algorithm;
通过所述目标拥塞控制模型对所述目标报文进行拥塞控制。Congestion control is performed on the target packet through the target congestion control model.
可选的,所述从获取到的待转发的目标报文中提取目标报文特征,包括:Optionally, the extracting the characteristics of the target message from the acquired target message to be forwarded includes:
从终端设备发送的所述目标报文中提取目标头部信息;extracting target header information from the target message sent by the terminal device;
根据所述目标头部信息所携带的报文参数确定所述目标报文特征。Determine the characteristics of the target packet according to the packet parameters carried in the target header information.
可选的,所述根据所述目标头部信息所携带的报文参数确定所述目标报文特征,包括:Optionally, the determining the characteristics of the target message according to the message parameters carried in the target header information includes:
从所述目标头部信息中查找位于目标位置上的目标报文参数,其中,所述目标位置用于记录根据所述目标报文的传输配置确定的拥塞控制算法;Searching for target packet parameters at a target location from the target header information, where the target location is used to record a congestion control algorithm determined according to the transmission configuration of the target packet;
将所述目标报文参数确定为所述目标报文特征。Determining the target packet parameter as the target packet feature.
可选的,所述根据所述目标头部信息所携带的报文参数确定所述目标报文特征,包括:Optionally, the determining the characteristics of the target message according to the message parameters carried in the target header information includes:
从所述目标头部信息中提取多个报文参数,其中,所述多个报文参数用于描述所述目标报文的传输配置;extracting multiple message parameters from the target header information, wherein the multiple message parameters are used to describe the transmission configuration of the target message;
将所述多个报文参数构造为所述目标报文特征。Constructing the plurality of packet parameters as the target packet characteristics.
可选的,所述从多个拥塞控制模型中调用与所述目标报文特征匹配的 目标拥塞控制模型,包括:Optionally, the calling the target congestion control model matching the target packet feature from multiple congestion control models includes:
从具有对应关系的报文特征和模型标识中,获取所述目标报文特征对应的目标模型标识;Obtaining the target model identifier corresponding to the target message feature from the corresponding message features and model identifiers;
调用所述目标模型标识所标识的所述目标拥塞控制模型。Invoking the target congestion control model identified by the target model identifier.
可选的,所述从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,包括:Optionally, calling the target congestion control model matching the target packet characteristics from multiple congestion control models includes:
将所述目标报文特征与多个拥塞控制模型中每个拥塞控制模型的模型特征进行匹配;Matching the target packet characteristics with the model characteristics of each congestion control model in a plurality of congestion control models;
调用对应的模型特征与所述目标报文特征匹配一致的所述目标拥塞控制模型。Invoking the target congestion control model whose corresponding model features match the target packet features.
可选的,所述通过所述目标拥塞控制模型对所述目标报文进行拥塞控制,包括:Optionally, performing congestion control on the target packet through the target congestion control model includes:
从所述目标拥塞控制模型中获取目标模型参数,其中,所述模型参数用于指示对具有对应报文特征的报文进行拥塞控制的参数;Acquire target model parameters from the target congestion control model, where the model parameters are used to indicate parameters for performing congestion control on packets with corresponding packet characteristics;
从当前的报文队列上确定所述报文队列的队列状态和所述目标模型参数对应的参数信息;Determining the queue state of the message queue and parameter information corresponding to the target model parameters from the current message queue;
将所述队列状态和所述参数信息输入所述目标拥塞控制模型,得到所述目标拥塞控制模型输出的目标报文状态,其中,所述目标报文状态用于指示所述目标报文的拥塞控制结果。inputting the queue state and the parameter information into the target congestion control model to obtain a target packet state output by the target congestion control model, wherein the target packet state is used to indicate the congestion of the target packet control the outcome.
根据本发明实施例的另一个实施例,还提供了一种报文的控制装置,包括:According to another embodiment of the embodiment of the present invention, a message control device is also provided, including:
提取模块,被设置为从获取到的待转发的目标报文中提取目标报文特征,其中,所述目标报文特征用于表征所述目标报文的传输配置;An extraction module configured to extract target message features from the acquired target messages to be forwarded, wherein the target message features are used to characterize the transmission configuration of the target message;
调用模块,被设置为从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,其中,所述多个拥塞控制模型中的每个拥塞控 制模型用于实现一种拥塞控制算法;A calling module, configured to call a target congestion control model matching the characteristics of the target packet from a plurality of congestion control models, wherein each congestion control model in the plurality of congestion control models is used to implement a congestion control model control algorithm;
控制模块,被设置为通过所述目标拥塞控制模型对所述目标报文进行拥塞控制。A control module configured to perform congestion control on the target packet through the target congestion control model.
根据本发明实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述报文的控制方法。According to yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above message when running Control Method.
根据本发明实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述的报文的控制方法。According to yet another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the above-mentioned processor executes the above-mentioned Message control method.
在本发明实施例中,从获取到的待转发的目标报文中提取目标报文特征,其中,目标报文特征用于表征所述目标报文的传输配置;从多个拥塞控制模型中调用与目标报文特征匹配的目标拥塞控制模型,其中,多个拥塞控制模型中的每个拥塞控制模型用于实现一种拥塞控制算法;通过目标拥塞控制模型对目标报文进行拥塞控制,即如果获取到待转发的目标报文,就从目标报文中获取表征目标报文传输配置的目标报文特征,然后调用和目标报文特征匹配的目标拥塞控制模型,通过目标拥塞控制模型所实现的拥塞控制算法对目标报文进行拥塞控制,使得对于报文队列中的报文可以不只使用一种拥塞控制模型对报文进行拥塞控制,实现了通过报文传输配置的拥塞控制模型灵活地对来对报文队列中的报文进行控制。采用上述技术方案,解决了相关技术中,使用拥塞控制算法控制报文的灵活度较低等问题,实现了提高使用拥塞控制算法控制报文的灵活度的技术效果。In the embodiment of the present invention, the target message features are extracted from the acquired target messages to be forwarded, wherein the target message features are used to characterize the transmission configuration of the target message; call from multiple congestion control models A target congestion control model matching the characteristics of the target packet, wherein each congestion control model in multiple congestion control models is used to implement a congestion control algorithm; the target packet is controlled by the target congestion control model, that is, if When the target packet to be forwarded is obtained, the target packet characteristics that characterize the target packet transmission configuration are obtained from the target packet, and then the target congestion control model that matches the target packet characteristics is invoked. Through the target congestion control model, the The congestion control algorithm performs congestion control on the target packets, so that more than one congestion control model can be used to control the packets in the packet queue, and the congestion control model configured through packet transmission can flexibly control incoming packets. Control the messages in the message queue. The above technical solution solves the problem of low flexibility in using the congestion control algorithm to control packets in related technologies, and achieves the technical effect of improving the flexibility of using the congestion control algorithm to control packets.
附图说明Description of drawings
此处所说明的附图用来提供对本发明实施例的进行理解,构成本发明实施例的一部分,本发明的示意性实施例及其说明用于解释本发明实施例,并不构成对本发明实施例的不当限定。在附图中:The drawings described here are used to provide an understanding of the embodiments of the present invention, and constitute a part of the embodiments of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the embodiments of the present invention, and do not constitute a reference to the embodiments of the present invention. undue limitation. In the attached picture:
图1是本发明实施例的一种报文的控制方法的计算机终端的硬件结构 框图;Fig. 1 is the block diagram of the hardware structure of the computer terminal of the control method of a kind of message of the embodiment of the present invention;
图2是根据本发明实施例的报文的控制方法的流程图;FIG. 2 is a flowchart of a message control method according to an embodiment of the present invention;
图3是根据本发明实施例的目标报文参数的示意图;Fig. 3 is a schematic diagram of target message parameters according to an embodiment of the present invention;
图4是根据本发明实施例的模型参数的示意图;Fig. 4 is a schematic diagram of model parameters according to an embodiment of the present invention;
图5是根据本发明实施例的报文的控制方法的示意图;FIG. 5 is a schematic diagram of a message control method according to an embodiment of the present invention;
图6是根据本发明实施例的一种报文的控制装置的结构框图。Fig. 6 is a structural block diagram of an apparatus for controlling messages according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明实施例方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明实施例保护的范围。In order to enable those skilled in the art to better understand the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described implementation Examples are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the embodiments of the present invention.
需要说明的是,本发明实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the embodiments of the present invention and the above drawings are used to distinguish similar objects, but not necessarily to describe a specific order or sequence order. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
本发明实施例所提供的方法实施例可以在计算机终端、计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图1是本发明实施例的一种报文的控制方法的计算机终端的硬件结构框图。如图1所示, 计算机终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU(Micro Controller Unit)或可编程逻辑器件FPGA(Field Programmable Gate Array)等的处理装置)和用于存储数据的存储器104,在一个示例性实施例中,上述计算机终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述计算机终端的结构造成限定。例如,计算机终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。The method embodiments provided by the embodiments of the present invention can be executed in a computer terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, FIG. 1 is a block diagram of a hardware structure of a computer terminal according to a message control method according to an embodiment of the present invention. As shown in Figure 1, the computer terminal can include one or more (only one is shown in Figure 1) processor 102 (processor 102 can include but not limited to microprocessor MCU (Micro Controller Unit) or programmable logic device FPGA (Field Programmable Gate Array) etc.) and a memory 104 for storing data, in an exemplary embodiment, the above-mentioned computer terminal may also include a transmission device 106 and an input and output device 108 for communication functions. Those skilled in the art can understand that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above computer terminal. For example, the computer terminal may also include more or less components than those shown in FIG. 1 , or have a different configuration with functions equivalent to those shown in FIG. 1 or more functions than those shown in FIG. 1 .
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的报文的控制方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the message control method in the embodiment of the present invention, and the processor 102 runs the computer program stored in the memory 104, thereby Executing various functional applications and data processing is to realize the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 includes memory located remotely from the processor 102, and these remote memories may be connected to a computer terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络可选实例可包括计算机终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or transmit data via a network. The optional example of the network mentioned above may include a wireless network provided by the communication provider of the computer terminal. In one example, the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
在本实施例中提供了一种报文的控制方法,应用于上述计算机终端,图2是根据本发明实施例的报文的控制方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a message control method is provided, which is applied to the above-mentioned computer terminal. FIG. 2 is a flowchart of a message control method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps :
步骤S202,从获取到的待转发的目标报文中提取目标报文特征,其中,所述目标报文特征用于表征所述目标报文的传输配置;Step S202, extracting target message features from the acquired target messages to be forwarded, wherein the target message features are used to characterize the transmission configuration of the target message;
步骤S204,从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,其中,所述多个拥塞控制模型中的每个拥塞控制模型用于实现一种拥塞控制算法;Step S204, calling a target congestion control model matching the characteristics of the target packet from a plurality of congestion control models, wherein each congestion control model in the plurality of congestion control models is used to implement a congestion control algorithm;
步骤S206,通过所述目标拥塞控制模型对所述目标报文进行拥塞控制。Step S206, performing congestion control on the target packet through the target congestion control model.
通过上述步骤,如果获取到待转发的目标报文,就从目标报文中获取表征目标报文传输配置的目标报文特征,然后调用和目标报文特征匹配的目标拥塞控制模型,通过目标拥塞控制模型所实现的拥塞控制算法对目标报文进行拥塞控制,使得对于报文队列中的报文可以不只使用一种拥塞控制模型对报文进行拥塞控制,实现了通过报文传输配置的拥塞控制模型灵活地对来对报文队列中的报文进行控制。采用上述技术方案,解决了相关技术中,使用拥塞控制算法控制报文的灵活度较低等问题,实现了提高使用拥塞控制算法控制报文的灵活度的技术效果。Through the above steps, if the target packet to be forwarded is obtained, the target packet characteristics that represent the target packet transmission configuration are obtained from the target packet, and then the target congestion control model that matches the target packet characteristics is called to pass the target congestion The congestion control algorithm implemented by the control model performs congestion control on the target packets, so that not only one congestion control model can be used to control the congestion of the packets in the packet queue, and the congestion control configured through packet transmission is realized The model flexibly controls the messages in the message queue. The above technical solution solves the problem of low flexibility in using the congestion control algorithm to control packets in related technologies, and achieves the technical effect of improving the flexibility of using the congestion control algorithm to control packets.
在上述步骤S202提供的技术方案中,如果获取到待转发的目标报文,就从目标报文中提取用于表征目标报文的传输配置的目标报文特征,目标报文的传输配置可以但不限于包括目标报文的传输协议配置、传输规则配置等等配置。In the technical solution provided in the above step S202, if the target message to be forwarded is obtained, the target message feature used to characterize the transmission configuration of the target message is extracted from the target message, and the transmission configuration of the target message can be It is not limited to include the transmission protocol configuration, transmission rule configuration and other configurations of the target packet.
可选地,在本实施例中,目标报文的传输协议配置可以但不限于包括TCP配置,IP(Internet Protocol,网络通讯协议)配置,Http(Hyper text Transmission Protocol,超文本传输协议)配置等等传输协议配置。Optionally, in this embodiment, the transmission protocol configuration of the target message can include but is not limited to TCP configuration, IP (Internet Protocol, network communication protocol) configuration, Http (Hyper text Transmission Protocol, hypertext transfer protocol) configuration, etc. and other transport protocol configurations.
在一个示例性实施例中,可以但不限于通过以下方式从获取到的待转发的目标报文中提取目标报文特征:从终端设备发送的所述目标报文中提取目标头部信息;根据所述目标头部信息所携带的报文参数确定所述目标报文特征。In an exemplary embodiment, the features of the target message may be extracted from the obtained target message to be forwarded in the following manner, but not limited to: extracting target header information from the target message sent by the terminal device; The packet parameters carried in the target header information determine the characteristics of the target packet.
可选地,在本实施例中,如果获取到待转发的目标报文,可以但不限于将从目标报文中提取到的目标头部信息中携带的报文参数作为目标报文特征,目标头部信息中携带的报文参数可以但不限于包括用于表征目标报文的传输配置的参数。Optionally, in this embodiment, if the target message to be forwarded is obtained, the message parameter carried in the target header information extracted from the target message may be used as the feature of the target message, and the target The packet parameters carried in the header information may include, but are not limited to, parameters used to characterize the transmission configuration of the target packet.
可选地,在本实施例中,从目标报文中提取的目标头部信息可以但不限于包括TCP报文的头部信息,或者IP报文的头部信息,Http报文的头部信息等等。Optionally, in this embodiment, the target header information extracted from the target message may, but not limited to, include header information of a TCP message, or header information of an IP message, or header information of an Http message. etc.
在一个示例性实施例中,可以但不限于通过以下方式根据目标头部信息所携带的报文参数确定目标报文特征:从所述目标头部信息中查找位于目标位置上的目标报文参数,其中,所述目标位置用于记录根据所述目标报文的传输配置确定的拥塞控制算法;将所述目标报文参数确定为所述目标报文特征。In an exemplary embodiment, the characteristics of the target message may be determined according to the message parameters carried in the target header information in the following manner: find the target message parameters at the target position from the target header information , wherein the target location is used to record the congestion control algorithm determined according to the transmission configuration of the target message; and the target message parameter is determined as the feature of the target message.
可选地,在本实施例中,可以但不限于将位于目标头部信息中的目标位置的目标报文参数确定为目标报文特征,目标报文的目标头部信息中的目标位置上记录了根据目标报文的传输配置确定的拥塞控制算法的目标报文参数,目标位置可以但不限于包括报文头部信息中的Reserved(预留字段),或者目标报文头部信息中的任意字段如DSCP(Different Services Code Point,差分服务代码点),ECN(Explicit Congestion Notification,显式拥塞通告)等等字段。Optionally, in this embodiment, but not limited to, the parameter of the target message located at the target position in the target header information may be determined as the feature of the target message, and the target position in the target header information of the target message is recorded According to the target packet parameters of the congestion control algorithm determined according to the transmission configuration of the target packet, the target position can include but not limited to Reserved (reserved field) in the packet header information, or any Fields such as DSCP (Different Services Code Point, Differentiated Services Code Point), ECN (Explicit Congestion Notification, Explicit Congestion Notification) and other fields.
可选地,在本实施例中,目标报文参数可以但不限于包括记录在目标头部信息中目标位置上的拥塞控制算法的名称、编号、标识等等参数。图3是根据本发明实施例的目标报文参数的示意图,如图3所示,目标报文的目标报文头部信息中的Reserved(预留字段)记录的目标报文参数可以但不限于包括拥塞控制算法的名称、编号等等,图3中编号001代表着Tail-drop(尾部丢弃算法),编号010代表着WRED(Weighted Random Early Detection,加权随机早期检测算法),编号011代表着Latency-Drop(时延丢弃算法),编号100代表着Latency-Random Drop(随机时延丢弃算 法)。Optionally, in this embodiment, the parameters of the target packet may include, but are not limited to, parameters such as the name, number, and identifier of the congestion control algorithm recorded at the target position in the target header information. Fig. 3 is the schematic diagram of the target message parameter according to the embodiment of the present invention, as shown in Fig. 3, the target message parameter of the Reserved (reserved field) record in the target message header information of the target message can be but not limited to Including the name and number of the congestion control algorithm, etc., the number 001 in Figure 3 represents Tail-drop (tail discarding algorithm), the number 010 represents WRED (Weighted Random Early Detection, weighted random early detection algorithm), and the number 011 represents Latency -Drop (delay drop algorithm), number 100 represents Latency-Random Drop (random delay drop algorithm).
在一个示例性实施例中,可以但不限于通过以下方式根据所述目标头部信息所携带的报文参数确定所述目标报文特征:从所述目标头部信息中提取多个报文参数,其中,所述多个报文参数用于描述所述目标报文的传输配置;将所述多个报文参数构造为所述目标报文特征。In an exemplary embodiment, the characteristics of the target message may be determined according to the message parameters carried in the target header information in the following manner: extracting multiple message parameters from the target header information , wherein the multiple message parameters are used to describe the transmission configuration of the target message; and the multiple message parameters are constructed as characteristics of the target message.
可选地,在本实施例中,可以但不限于将从目标报文的目标头部信息中提取到的用于描述目标报文的传输配置的报文参数构造为特征向量或者特征值等等,然后将构造出的特征向量或者特征值等等作为目标报文特征。Optionally, in this embodiment, the message parameters extracted from the target header information of the target message and used to describe the transmission configuration of the target message can be constructed as feature vectors or feature values, etc. , and then use the constructed eigenvector or eigenvalue as the target message feature.
在上述步骤S204提供的技术方案中,可以但不限于通过调用与目标报文特征匹配的目标拥塞模型,来调用目标拥塞模型所实现的一种拥塞控制算法,与目标报文特征匹配的目标拥塞模型可以但不限于包括与目标报文特征匹配系数匹配或者相似度匹配的拥塞控制模型。In the technical solution provided by the above step S204, a congestion control algorithm implemented by the target congestion model can be invoked by invoking the target congestion model matching the characteristics of the target packet, but not limited to, the target congestion model matching the characteristics of the target packet The model may include, but is not limited to, a congestion control model that matches the target packet feature matching coefficient or similarity matching.
可选地,在本实施例中,与目标报文特征匹配系数匹配的拥塞控制模型可以但不限于包括与目标报文特征的特征向量或者特征值之间的匹配系数匹配的拥塞控制模型。Optionally, in this embodiment, the congestion control model matching the matching coefficient of the target packet feature may include, but not limited to, the congestion control model matching the matching coefficient between the feature vector or feature value of the target packet feature.
可选地,在本实施例中,与目标报文特征相似度匹配的拥塞控制模型可以但不限于包括与目标报文特征的特征向量或者特征值的相似度匹配的拥塞控制模型。Optionally, in this embodiment, the congestion control model matching the similarity of the target packet feature may include, but not limited to, the congestion control model matching the similarity of the feature vector or feature value of the target packet feature.
在一个示例性实施例中,可以但不限于通过以下方式从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型:从具有对应关系的报文特征和模型标识中,获取所述目标报文特征对应的目标模型标识;调用所述目标模型标识所标识的所述目标拥塞控制模型。In an exemplary embodiment, the target congestion control model that matches the target packet feature can be invoked from multiple congestion control models in the following manner: from the message features and model identifiers that have a corresponding relationship, Acquiring a target model identifier corresponding to the target packet feature; invoking the target congestion control model identified by the target model identifier.
可选地,在本实施例中,可以但不限于从具有对应关系的报文特征和模型标识中,获取目标报文特征对应的目标模型标识,模型标识可以但不限于包括所标识的拥塞控制模型的名称、编号、代码、存储路径等等。Optionally, in this embodiment, the target model identifier corresponding to the target packet feature can be obtained, but not limited to, from the corresponding message features and model identifiers, and the model identifier can include but not limited to the identified congestion control The name, number, code, storage path, etc. of the model.
可选地,在本实施例中,可以但不限于通过目标模型标识所标识的目标拥塞控制模型的名称、编号或者代码调用目标拥塞控制模型,或者通过目标拥塞控制模型的存储路径调用目标拥塞控制模型。Optionally, in this embodiment, the target congestion control model can be called by using but not limited to the name, number or code of the target congestion control model identified by the target model identifier, or the target congestion control model can be called by the storage path of the target congestion control model Model.
在一个示例性实施例中,可以但不限于通过以下方式调用与目标报文特征匹配的目标拥塞控制模型:将所述目标报文特征与多个拥塞控制模型中每个拥塞控制模型的模型特征进行匹配;调用对应的模型特征与所述目标报文特征匹配一致的所述目标拥塞控制模型。In an exemplary embodiment, the target congestion control model matched with the target packet feature can be invoked in the following manner, but not limited to: combining the target packet feature with the model feature of each congestion control model in the plurality of congestion control models performing matching; invoking the target congestion control model whose corresponding model feature matches the target packet feature.
可选地,在本实施例中,可以但不限于将目标报文特征的特征向量和每个拥塞控制模型的模型特征的特征向量进行匹配,或者将目标报文特征的特征值和每个拥塞控制模型的模型特征的特征值进行匹配,或者将目标报文特征和每个拥塞控制模型的模型特征进行匹配。Optionally, in this embodiment, it is possible, but not limited to, to match the eigenvector of the target packet feature with the eigenvector of the model feature of each congestion control model, or to match the eigenvalue of the target packet feature with each congestion control model Match the eigenvalues of the model features of the control model, or match the target packet features with the model features of each congestion control model.
可选的,在本实施例中,与目标报文特征匹配一致的目标拥塞控制模型可以但不限于包括与目标报文特征匹配系数匹配一致的目标拥塞控制模型,或者与目标报文特征相似度匹配一致的目标拥塞模型。Optionally, in this embodiment, the target congestion control model that is consistent with the target packet feature may include, but is not limited to, a target congestion control model that matches the target packet feature matching coefficient, or is consistent with the target packet feature similarity Match a consistent target congestion model.
可选的,在本实施例中,与目标报文特征匹配系数匹配一致的目标拥塞控制模型可以但不限于包括与目标报文特征的匹配系数最大,或者与目标报文特征的匹配系数大于或者等于阈值的拥塞控制模型。Optionally, in this embodiment, the target congestion control model that matches the matching coefficient of the target packet feature may, but is not limited to, include that the matching coefficient with the target packet feature is the largest, or that the matching coefficient with the target packet feature is greater than or Congestion control model equal to threshold.
可选的,在本实施例中,与目标报文特征相似度匹配一致的目标拥塞模型可以但不限于包括与目标报文特征的相似度大于或者等于阈值的拥塞控制模型,或者与目标报文特征的相似度最大的目标拥塞控制模型。Optionally, in this embodiment, the target congestion model that is consistent with the similarity of the target packet feature may include, but is not limited to, a congestion control model whose similarity with the target packet feature is greater than or equal to a threshold, or a The objective congestion control model with the maximum similarity of features.
在上述步骤S206提供的技术方案中,通过与目标报文特征匹配的目标拥塞控制模型对目标报文进行拥塞控制,实现了可以根据报文队列上报文的传输配置的多种拥塞控制模型对不同的报文执行多种拥塞控制。In the technical solution provided in the above step S206, the target packet is controlled by the target congestion control model that matches the characteristics of the target packet, and multiple congestion control models that can be configured according to the transmission configuration of the message on the message queue are implemented. Different packets perform various kinds of congestion control.
可选地,在本实施例中,报文队列上的不同报文可以但不限于具有不同的报文特征,与不同的报文特征匹配的拥塞控制模型不同,实现了可以对报文队列上的报文通过不同的拥塞控制模型进行不同的拥塞控制处理, 提高了使用拥塞控制模型控制报文的灵活度。Optionally, in this embodiment, different packets on the packet queue may have, but are not limited to, different packet characteristics, which are different from the congestion control model matched with different packet characteristics, so that the Different congestion control processes are performed on the packets through different congestion control models, which improves the flexibility of using the congestion control model to control packets.
在一个示例性实施例中,可以但不限于通过目标拥塞控制模型对所述目标报文进行拥塞控制:从所述目标拥塞控制模型中获取目标模型参数,其中,所述模型参数用于指示对具有对应报文特征的报文进行拥塞控制的参数;从当前的报文队列上确定所述报文队列的队列状态和所述目标模型参数对应的参数信息;将所述队列状态和所述参数信息输入所述目标拥塞控制模型,得到所述目标拥塞控制模型输出的目标报文状态,其中,所述目标报文状态用于指示所述目标报文的拥塞控制结果。In an exemplary embodiment, but not limited to, congestion control may be performed on the target packet through a target congestion control model: target model parameters are obtained from the target congestion control model, wherein the model parameters are used to indicate the Have the parameter that the message of corresponding message characteristic carries out congestion control; Determine the queue state of described message queue and the parameter information corresponding to described target model parameter from the current message queue; Described queue state and described parameter The information is input into the target congestion control model, and the target packet status output by the target congestion control model is obtained, wherein the target packet status is used to indicate the congestion control result of the target packet.
可选地,在本实施例中,模型参数用于指示对具有对应报文特征的报文进行拥塞控制的参数,图4是根据本发明实施例的模型参数的示意图,如图4所示,Latency-Random Drop的模型参数可以但不限于包括丢弃报文的时延阈值、随机丢弃报文的时延阈值以及随机丢弃报文改成标记报文ECN的使能,Latency-Drop的模型参数可以但不限于包括报文丢弃时延阈值和报文ECN报价时延阈值,WRED的模型参数可以但不限于包括丢弃报文的时延阈值、随机丢弃报文的缓存阈值以及随机丢弃报文改成标记报文ECN的使能,Tail-drop的模型参数可以但不限于包括丢弃报文的缓存阈值和标记报文ECN的缓存阈值。Optionally, in this embodiment, the model parameters are used to indicate parameters for performing congestion control on packets with corresponding packet characteristics. FIG. 4 is a schematic diagram of model parameters according to an embodiment of the present invention, as shown in FIG. 4 , The model parameters of Latency-Random Drop can include, but are not limited to, the delay threshold for discarding packets, the delay threshold for randomly discarding packets, and the enablement of changing random discarded packets to marked packets with ECN. The model parameters of Latency-Drop can be But not limited to packet discarding delay threshold and packet ECN quotation delay threshold, WRED model parameters can include but not limited to include discarding packet delay threshold, randomly discarding packet cache threshold, and randomly discarding packets into When ECN is enabled for marked packets, the model parameters of Tail-drop may include, but are not limited to, cache thresholds for dropped packets and ECN cache thresholds for marked packets.
可选地,在本实施例中,报文队列的队列状态可以但不限于包括当前报文队列上的报文的数量、处理当前报文队列上的报文所需的时间以及当前报文队列上的各个报文的状态等等。Optionally, in this embodiment, the queue status of the message queue may include, but is not limited to, the number of messages on the current message queue, the time required to process the messages on the current message queue, and the number of messages in the current message queue. The status of each message on the network and so on.
可选地,在本实施例中,参数信息可以但不限于包括能与目标拥塞控制模型的模型参数进行比较的参数信息,比如当前报文传输配置的拥塞控制算法是Tail-drop,那么参数信息就是能与Tail-drop的模型参数进行比较的丢弃报文的缓存值、标记报文ECN的缓存值等等参数。Optionally, in this embodiment, the parameter information may include, but is not limited to, parameter information that can be compared with the model parameters of the target congestion control model. For example, if the congestion control algorithm of the current packet transmission configuration is Tail-drop, then the parameter information These are parameters such as the cache value of discarded packets, the cache value of marked packet ECN, etc. that can be compared with the model parameters of Tail-drop.
可选地,在本实施例中,如果获取到待转发的目标报文的目标报文特征表征目标报文使用WRED,那么通过获取目标报文的丢弃报文的时延参数、随机丢弃报文的缓存参数、随机丢弃报文改成标记报文ECN的使能 参数,如果丢弃报文的时延参数大于或者等于丢弃报文的时延参数阈值,那么就丢弃目标报文,如果随机丢弃报文的缓存参数大于或者等于随机丢弃报文的缓存参数阈值,就随机丢弃目标报文,如果随机丢弃报文改成标记报文ECN的使能参数大于或者等于随机丢弃报文改成标记报文ECN的使能,那么就将对目标报文进行标记。Optionally, in this embodiment, if the target packet feature of the target packet to be forwarded is obtained to indicate that the target packet uses WRED, then by obtaining the delay parameter of the discarded packet of the target packet, randomly discarding the packet Change the cache parameter of the cache parameter and the ECN enable parameter of the random discarded packet to the marked packet. If the delay parameter of the discarded packet is greater than or equal to the threshold of the delay parameter of the discarded packet, then the target If the cache parameter of the text is greater than or equal to the cache parameter threshold of randomly discarded packets, the target packet will be randomly discarded. If the random discarded packet is changed to a marked packet, the ECN enable parameter is greater than or equal to the random discarded packet changed to a marked packet. If ECN is enabled, the target packet will be marked.
可选地,在本实施例中,目标报文状态可以但不限于包括正常转发目标报文,或者丢弃目标报文,或者将目标报文标记特征值后再发送出去等等。Optionally, in this embodiment, the status of the target message may include, but is not limited to, forwarding the target message normally, or discarding the target message, or marking the target message with a characteristic value before sending it out, and so on.
为了更好的理解上述报文的控制方法的过程,以下再结合可选实施例对上述报文的控制的实现方法流程进行说明,但不用于限定本发明实施例的技术方案。In order to better understand the process of the above message control method, the flow of the above message control implementation method will be described below in combination with optional embodiments, but this is not intended to limit the technical solutions of the embodiments of the present invention.
在本实施例中提供了一种报文的控制方法,图5是根据本发明实施例的报文的控制方法的示意图,如图5所示,可以但不限于包括如下步骤:In this embodiment, a method for controlling a message is provided. FIG. 5 is a schematic diagram of a method for controlling a message according to an embodiment of the present invention. As shown in FIG. 5 , it may include, but is not limited to, the following steps:
步骤S501:主机在发送TCP报文时,根据实现TCP的传输配置,修改TCP报文头部中的拥塞控制算法特征值字段(这里用TCP头部中的预留字段进行举例,实际上可以是报文头部中的任意字段,比如DSCP,ECN等字段);Step S501: When the host sends a TCP message, according to the transmission configuration of TCP, modify the congestion control algorithm characteristic value field in the TCP message header (here, the reserved field in the TCP header is used as an example, which can actually be Any field in the message header, such as DSCP, ECN and other fields);
步骤S502:网络设备接收到该报文后,会对报文进行解析,然后根据解析出的拥塞控制算法特征值字段,映射出报文队列上的拥塞控制算法参数;详细的映射方式,可以是根据预先配置的寄存器来完成,或者通过查询ACL(Access Control Lists,访问控制列表)来完成;Step S502: After the network device receives the message, it will analyze the message, and then map out the congestion control algorithm parameters on the message queue according to the parsed congestion control algorithm characteristic value field; the detailed mapping method can be Complete according to pre-configured registers, or by querying ACL (Access Control Lists, access control list);
步骤S503:拥塞控制模块,根据当前队列的状态,和映射出的拥塞控制参数,对报文执行拥塞控制处理;根据报文特征值字段来选择网络设备上的合适的拥塞控制算法,提高了TCP流量的性能;Step S503: the congestion control module, according to the current state of the queue and the mapped congestion control parameters, performs congestion control processing on the message; selects an appropriate congestion control algorithm on the network device according to the message characteristic value field, and improves TCP flow performance;
步骤S504:执行完拥塞控制处理后,可能会正常转发报文,或者丢弃报文,或者将报文标记特征值后再发送出去。Step S504: After the congestion control processing is performed, the packet may be forwarded normally, or the packet may be discarded, or the packet may be marked with a characteristic value before being sent out.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solutions of the embodiments of the present invention can be embodied in the form of software products, which are stored in a storage medium (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which may be a mobile phone, computer, server, or network device, etc.) execute the method of each embodiment of the present invention.
图6是根据本发明实施例的一种报文的控制装置的结构框图;如图6所示,包括:Fig. 6 is a structural block diagram of a message control device according to an embodiment of the present invention; as shown in Fig. 6 , it includes:
提取模块62,被设置为从获取到的待转发的目标报文中提取目标报文特征,其中,所述目标报文特征用于表征所述目标报文的传输配置;The extraction module 62 is configured to extract target message features from the acquired target messages to be forwarded, wherein the target message features are used to characterize the transmission configuration of the target message;
调用模块64,被设置为从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,其中,所述多个拥塞控制模型中的每个拥塞控制模型用于实现一种拥塞控制算法;The calling module 64 is configured to call a target congestion control model that matches the characteristics of the target packet from multiple congestion control models, wherein each congestion control model in the multiple congestion control models is used to implement a Congestion control algorithm;
控制模块66,被设置为通过所述目标拥塞控制模型对所述目标报文进行拥塞控制。The control module 66 is configured to perform congestion control on the target packet through the target congestion control model.
通过上述装置,如果获取到待转发的目标报文,就从目标报文中获取表征目标报文传输配置的目标报文特征,然后调用和目标报文特征匹配的目标拥塞控制模型,通过目标拥塞控制模型所实现的拥塞控制算法对目标报文进行拥塞控制,使得对于报文队列中的报文可以不只使用一种拥塞控制模型对报文进行拥塞控制,实现了通过报文传输配置的拥塞控制模型灵活地对来对报文队列中的报文进行控制。采用上述技术方案,解决了相关技术中,使用拥塞控制算法控制报文的灵活度较低等问题,实现了提高使用拥塞控制算法控制报文的灵活度的技术效果。Through the above device, if the target message to be forwarded is obtained, the target message feature representing the target message transmission configuration is obtained from the target message, and then the target congestion control model matching the target message feature is invoked to pass the target congestion The congestion control algorithm implemented by the control model performs congestion control on the target packets, so that not only one congestion control model can be used to control the congestion of the packets in the packet queue, and the congestion control configured through packet transmission is realized The model flexibly controls the messages in the message queue. The above technical solution solves the problem of low flexibility in using the congestion control algorithm to control packets in related technologies, and achieves the technical effect of improving the flexibility of using the congestion control algorithm to control packets.
在一个示例性实施例中,所述提取模块,包括:In an exemplary embodiment, the extraction module includes:
提取单元,被设置为从终端设备发送的所述目标报文中提取目标头部信息;An extracting unit configured to extract target header information from the target message sent by the terminal device;
第一确定单元,被设置为根据所述目标头部信息所携带的报文参数确定所述目标报文特征。The first determining unit is configured to determine the characteristics of the target packet according to the packet parameters carried in the target header information.
在一个示例性实施例中,所述第一确定单元,被设置为:In an exemplary embodiment, the first determining unit is configured to:
从所述目标头部信息中查找位于目标位置上的目标报文参数,其中,所述目标位置用于记录根据所述目标报文的传输配置确定的拥塞控制算法;Searching for target packet parameters at a target location from the target header information, where the target location is used to record a congestion control algorithm determined according to the transmission configuration of the target packet;
将所述目标报文参数确定为所述目标报文特征。Determining the target packet parameter as the target packet feature.
在一个示例性实施例中,所述第一确定单元,被设置为:In an exemplary embodiment, the first determining unit is configured to:
从所述目标头部信息中提取多个报文参数,其中,所述多个报文参数用于描述所述目标报文的传输配置;extracting multiple message parameters from the target header information, wherein the multiple message parameters are used to describe the transmission configuration of the target message;
将所述多个报文参数构造为所述目标报文特征。Constructing the plurality of packet parameters as the target packet characteristics.
在一个示例性实施例中,所述调用模块,包括:In an exemplary embodiment, the calling module includes:
第一获取单元,被设置为从具有对应关系的报文特征和模型标识中,获取所述目标报文特征对应的目标模型标识;The first acquiring unit is configured to acquire the target model identifier corresponding to the target message feature from the corresponding message features and model identifiers;
第一调用单元,被设置为调用所述目标模型标识所标识的所述目标拥塞控制模型。The first calling unit is configured to call the target congestion control model identified by the target model identifier.
在一个示例性实施例中,所述调用模块,包括:In an exemplary embodiment, the calling module includes:
匹配单元,被设置为将所述目标报文特征与多个拥塞控制模型中每个拥塞控制模型的模型特征进行匹配;a matching unit configured to match the target packet characteristics with the model characteristics of each congestion control model in the plurality of congestion control models;
第二调用单元,被设置为调用对应的模型特征与所述目标报文特征匹配一致的所述目标拥塞控制模型。The second calling unit is configured to call the target congestion control model whose corresponding model features match the target packet features.
在一个示例性实施例中,所述控制模块,包括:In an exemplary embodiment, the control module includes:
第二获取单元,被设置为从所述目标拥塞控制模型中获取目标模型参数,其中,所述模型参数用于指示对具有对应报文特征的报文进行拥塞控制的参数;The second acquiring unit is configured to acquire target model parameters from the target congestion control model, where the model parameters are used to indicate parameters for performing congestion control on packets with corresponding packet characteristics;
第二确定单元,被设置为从当前的报文队列上确定所述报文队列的队列状态和所述目标模型参数对应的参数信息;The second determination unit is configured to determine the queue state of the message queue and parameter information corresponding to the target model parameters from the current message queue;
处理单元,被设置为将所述队列状态和所述参数信息输入所述目标拥塞控制模型,得到所述目标拥塞控制模型输出的目标报文状态,其中,所述目标报文状态用于指示所述目标报文的拥塞控制结果。A processing unit configured to input the queue state and the parameter information into the target congestion control model to obtain a target packet state output by the target congestion control model, wherein the target packet state is used to indicate the Describe the congestion control result of the target packet.
本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项的方法。An embodiment of the present invention also provides a storage medium, the storage medium includes a stored program, wherein the above-mentioned program executes any one of the above-mentioned methods when running.
可选地,在本实施例中,上述存储介质可以被设置为存储被设置为执行以下步骤的程序代码:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program code configured to perform the following steps:
S1,从获取到的待转发的目标报文中提取目标报文特征,其中,所述目标报文特征用于表征所述目标报文的传输配置;S1. Extract target message features from the acquired target message to be forwarded, where the target message features are used to characterize the transmission configuration of the target message;
S2,从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,其中,所述多个拥塞控制模型中的每个拥塞控制模型用于实现一种拥塞控制算法;S2. Invoking a target congestion control model matching the characteristics of the target packet from multiple congestion control models, where each congestion control model in the multiple congestion control models is used to implement a congestion control algorithm;
S3,通过所述目标拥塞控制模型对所述目标报文进行拥塞控制。S3. Perform congestion control on the target packet by using the target congestion control model.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S1,从获取到的待转发的目标报文中提取目标报文特征,其中,所述目标报文特征用于表征所述目标报文的传输配置;S1. Extract target message features from the acquired target message to be forwarded, where the target message features are used to characterize the transmission configuration of the target message;
S2,从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,其中,所述多个拥塞控制模型中的每个拥塞控制模型用于实现一种拥塞控制算法;S2. Invoking a target congestion control model matching the characteristics of the target packet from multiple congestion control models, where each congestion control model in the multiple congestion control models is used to implement a congestion control algorithm;
S3,通过所述目标拥塞控制模型对所述目标报文进行拥塞控制。S3. Perform congestion control on the target packet by using the target congestion control model.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, abbreviated as ROM), random access memory (Random Access Memory, abbreviated as RAM), Various media that can store program codes such as removable hard disks, magnetic disks, or optical disks.
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details will not be repeated in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明实施例不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned embodiments of the present invention can be implemented by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed among multiple computing devices. alternatively, they may be implemented in program code executable by a computing device, thereby being stored in a storage device to be executed by a computing device, and in some cases, may be implemented in a different The steps shown or described are executed in sequence, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
以上所述仅为本发明的可选实施例而已,并不用于限制本发明实施例,对于本领域的技术人员来说,本发明实施例可以有各种更改和变化。凡在本发明实施例的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。The foregoing descriptions are only optional embodiments of the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, various modifications and changes may be made to the embodiments of the present invention. Any modification, equivalent replacement, improvement, etc. made within the principles of the embodiments of the present invention shall be included in the protection scope of the embodiments of the present invention.

Claims (10)

  1. 一种报文的控制方法,包括:A message control method, comprising:
    从获取到的待转发的目标报文中提取目标报文特征,其中,所述目标报文特征用于表征所述目标报文的传输配置;extracting target message features from the acquired target messages to be forwarded, wherein the target message features are used to characterize the transmission configuration of the target message;
    从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,其中,所述多个拥塞控制模型中的每个拥塞控制模型用于实现一种拥塞控制算法;Invoking a target congestion control model matching the characteristics of the target packet from a plurality of congestion control models, wherein each congestion control model in the plurality of congestion control models is used to implement a congestion control algorithm;
    通过所述目标拥塞控制模型对所述目标报文进行拥塞控制。Congestion control is performed on the target packet through the target congestion control model.
  2. 根据权利要求1所述的方法,其中,所述从获取到的待转发的目标报文中提取目标报文特征,包括:The method according to claim 1, wherein said extracting the characteristics of the target message from the acquired target message to be forwarded comprises:
    从终端设备发送的所述目标报文中提取目标头部信息;extracting target header information from the target message sent by the terminal device;
    根据所述目标头部信息所携带的报文参数确定所述目标报文特征。Determine the characteristics of the target packet according to the packet parameters carried in the target header information.
  3. 根据权利要求2所述的方法,其中,所述根据所述目标头部信息所携带的报文参数确定所述目标报文特征,包括:The method according to claim 2, wherein the determining the characteristics of the target message according to the message parameters carried in the target header information includes:
    从所述目标头部信息中查找位于目标位置上的目标报文参数,其中,所述目标位置用于记录根据所述目标报文的传输配置确定的拥塞控制算法;Searching for target packet parameters at a target location from the target header information, where the target location is used to record a congestion control algorithm determined according to the transmission configuration of the target packet;
    将所述目标报文参数确定为所述目标报文特征。Determining the target packet parameter as the target packet feature.
  4. 根据权利要求2所述的方法,其中,所述根据所述目标头部信息所携带的报文参数确定所述目标报文特征,包括:The method according to claim 2, wherein the determining the characteristics of the target message according to the message parameters carried in the target header information includes:
    从所述目标头部信息中提取多个报文参数,其中,所述多个报文参数用于描述所述目标报文的传输配置;extracting multiple message parameters from the target header information, wherein the multiple message parameters are used to describe the transmission configuration of the target message;
    将所述多个报文参数构造为所述目标报文特征。Constructing the plurality of packet parameters as the target packet characteristics.
  5. 根据权利要求1所述的方法,其中,所述从多个拥塞控制模型中调用与 所述目标报文特征匹配的目标拥塞控制模型,包括:The method according to claim 1, wherein said calling the target congestion control model matched with the target packet feature from a plurality of congestion control models comprises:
    从具有对应关系的报文特征和模型标识中,获取所述目标报文特征对应的目标模型标识;Obtaining the target model identifier corresponding to the target message feature from the corresponding message features and model identifiers;
    调用所述目标模型标识所标识的所述目标拥塞控制模型。Invoking the target congestion control model identified by the target model identifier.
  6. 根据权利要求1所述的方法,其中,所述从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,包括:The method according to claim 1, wherein said invoking a target congestion control model that matches the target packet feature from a plurality of congestion control models comprises:
    将所述目标报文特征与多个拥塞控制模型中每个拥塞控制模型的模型特征进行匹配;Matching the target packet characteristics with the model characteristics of each congestion control model in a plurality of congestion control models;
    调用对应的模型特征与所述目标报文特征匹配一致的所述目标拥塞控制模型。Invoking the target congestion control model whose corresponding model features match the target packet features.
  7. 根据权利要求1所述的方法,其中,所述通过所述目标拥塞控制模型对所述目标报文进行拥塞控制,包括:The method according to claim 1, wherein the performing congestion control on the target packet through the target congestion control model comprises:
    从所述目标拥塞控制模型中获取目标模型参数,其中,所述模型参数用于指示对具有对应报文特征的报文进行拥塞控制的参数;Acquire target model parameters from the target congestion control model, where the model parameters are used to indicate parameters for performing congestion control on packets with corresponding packet characteristics;
    从当前的报文队列上确定所述报文队列的队列状态和所述目标模型参数对应的参数信息;Determining the queue state of the message queue and parameter information corresponding to the target model parameters from the current message queue;
    将所述队列状态和所述参数信息输入所述目标拥塞控制模型,得到所述目标拥塞控制模型输出的目标报文状态,其中,所述目标报文状态用于指示所述目标报文的拥塞控制结果。inputting the queue state and the parameter information into the target congestion control model to obtain a target packet state output by the target congestion control model, wherein the target packet state is used to indicate the congestion of the target packet Control the outcome.
  8. 一种报文的控制装置,包括:A message control device, comprising:
    提取模块,被设置为从获取到的待转发的目标报文中提取目标报文特征,其中,所述目标报文特征用于表征所述目标报文的传输配置;An extraction module configured to extract target message features from the acquired target messages to be forwarded, wherein the target message features are used to characterize the transmission configuration of the target message;
    调用模块,被设置为从多个拥塞控制模型中调用与所述目标报文特征匹配的目标拥塞控制模型,其中,所述多个拥塞控制模型中的每个拥塞控制模型用于实现一种拥塞控制算法;A calling module, configured to call a target congestion control model matching the characteristics of the target packet from a plurality of congestion control models, wherein each congestion control model in the plurality of congestion control models is used to implement a congestion control model control algorithm;
    控制模块,被设置为通过所述目标拥塞控制模型对所述目标报文进行拥塞控制。A control module configured to perform congestion control on the target packet through the target congestion control model.
  9. 一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行上述权利要求1至7任一项中所述的方法。A computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when running.
  10. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至7任一项中所述的方法。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program.
PCT/CN2022/131197 2021-11-26 2022-11-10 Message control method and apparatus, and storage medium and electronic apparatus WO2023093539A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111425013.XA CN116192754A (en) 2021-11-26 2021-11-26 Message control method and device, storage medium and electronic device
CN202111425013.X 2021-11-26

Publications (1)

Publication Number Publication Date
WO2023093539A1 true WO2023093539A1 (en) 2023-06-01

Family

ID=86444798

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/131197 WO2023093539A1 (en) 2021-11-26 2022-11-10 Message control method and apparatus, and storage medium and electronic apparatus

Country Status (2)

Country Link
CN (1) CN116192754A (en)
WO (1) WO2023093539A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302230A (en) * 2015-06-11 2017-01-04 华为技术有限公司 A kind of data transmission method and device
CN108449279A (en) * 2016-12-13 2018-08-24 中国移动通信有限公司研究院 Jamming control method and device
CN112787951A (en) * 2020-08-07 2021-05-11 中兴通讯股份有限公司 Congestion control method, device, equipment and computer readable storage medium
US20210266265A1 (en) * 2020-02-24 2021-08-26 Cloudflare, Inc. Modifying the congestion control algorithm applied to a connection based on request characteristics

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302230A (en) * 2015-06-11 2017-01-04 华为技术有限公司 A kind of data transmission method and device
CN108449279A (en) * 2016-12-13 2018-08-24 中国移动通信有限公司研究院 Jamming control method and device
US20210266265A1 (en) * 2020-02-24 2021-08-26 Cloudflare, Inc. Modifying the congestion control algorithm applied to a connection based on request characteristics
CN112787951A (en) * 2020-08-07 2021-05-11 中兴通讯股份有限公司 Congestion control method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN116192754A (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US10951495B2 (en) Application signature generation and distribution
US11700322B2 (en) Service process control method and network device
US8792353B1 (en) Preserving sequencing during selective packet acceleration in a network environment
US9166921B2 (en) Selective packet sequence acceleration in a network environment
US8737221B1 (en) Accelerated processing of aggregate data flows in a network environment
US9722933B2 (en) Selective packet sequence acceleration in a network environment
US9590922B2 (en) Programmable and high performance switch for data center networks
US10645030B2 (en) Augmentation of pattern matching with divergence histograms
WO2020083272A1 (en) Processing strategy generation method and system, and storage medium
WO2017075781A1 (en) Method, apparatus, and system for processing data packets
CN115766591B (en) Method for limiting flow rate of fragmented messages and method and device for forwarding DPU fragmented messages
US20170134413A1 (en) System and method for connection fingerprint generation and stepping-stone traceback based on netflow
CN103281257A (en) Method and device for processing protocol message
CN107070851B (en) System and method for connecting fingerprint generation and stepping stone tracing based on network flow
EP2916503B1 (en) Queue scheduling method, apparatus and system
JP6783501B2 (en) Information transmission system, information communication device, information transmission device, and program
US6675221B1 (en) Method and apparatus for customizing and fowarding parameters in a network processor
WO2023093539A1 (en) Message control method and apparatus, and storage medium and electronic apparatus
CN112399209B (en) Video service identification processing method and device
CN109818882B (en) Method and device for executing QoS strategy
Andon et al. Modeling conflict processes on the internet
Tseng et al. IPv6 DoS attacks detection using machine learning enhanced IDS in SDN/NFV environment
EP3461084A1 (en) Method and apparatus for implementing efficient quality of service (qos) through feedback flow loop in a software accelerator
Anbarsu et al. Software-Defined Networking for the Internet of Things: Securing home networks using SDN
CN115988574B (en) Data processing method, system, equipment and storage medium based on flow table

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22897622

Country of ref document: EP

Kind code of ref document: A1