WO2023240998A1 - Data packet processing method, communication chip and computer device - Google Patents

Data packet processing method, communication chip and computer device Download PDF

Info

Publication number
WO2023240998A1
WO2023240998A1 PCT/CN2022/142206 CN2022142206W WO2023240998A1 WO 2023240998 A1 WO2023240998 A1 WO 2023240998A1 CN 2022142206 W CN2022142206 W CN 2022142206W WO 2023240998 A1 WO2023240998 A1 WO 2023240998A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data packet
priority
target
queue
Prior art date
Application number
PCT/CN2022/142206
Other languages
French (fr)
Chinese (zh)
Inventor
胡培金
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023240998A1 publication Critical patent/WO2023240998A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6215Individual queue per QOS, rate or priority

Abstract

A data packet processing method, a communication chip and a computer device, which belong to the technical field of computers. The method is executed by means of a communication chip, wherein the communication chip comprises a modem and a hardware accelerator. The method comprises: by means of a modem, determining a data type corresponding to a received data packet, and storing the data packet in a first queue, which matches the priority of the data type, among a plurality of first queues, wherein the priorities of the plurality of first queues are different (201); and by means of a hardware accelerator, sequentially processing data packets in the plurality of first queues in descending order of the priorities (202). By means of the method, a data packet corresponding to a data type with a higher priority is processed earlier, such that the flexibility of processing the data packet is improved, and the processing time delay of the data packet corresponding to the high-priority data type is reduced.

Description

数据包处理方法、通信芯片及计算机设备Data packet processing method, communication chip and computer equipment
本申请要求于2022年06月15日提交的申请号为202210677669.9、发明名称为“数据包处理方法、通信芯片及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210677669.9 and the invention name "Data Packet Processing Method, Communication Chip and Computer Equipment" submitted on June 15, 2022, the entire content of which is incorporated into this application by reference. .
技术领域Technical field
本申请实施例涉及计算机技术领域,特别涉及一种数据包处理方法、通信芯片及计算机设备。The embodiments of the present application relate to the field of computer technology, and in particular to a data packet processing method, communication chip and computer equipment.
背景技术Background technique
通信芯片能够接收其他通信芯片发送的数据包,并对该数据包进行处理。相关技术中,通信芯片按照数据包的接收时间来处理数据包,接收时间越早,处理该数据包的时间越早,处理方式比较单一。而随着数据包的数量和种类越来越多,亟需提供一种更加灵活的数据包处理方法。The communication chip can receive data packets sent by other communication chips and process the data packets. In the related technology, the communication chip processes the data packet according to the reception time of the data packet. The earlier the reception time, the earlier the time for processing the data packet. The processing method is relatively simple. As the number and types of data packets increase, there is an urgent need to provide a more flexible data packet processing method.
发明内容Contents of the invention
本申请实施例提供了一种数据包处理方法、通信芯片及计算机设备,能够提高处理数据包的灵活性。技术方案如下:Embodiments of the present application provide a data packet processing method, a communication chip and a computer device, which can improve the flexibility of processing data packets. The technical solution is as follows:
根据本申请实施例的一方面,提供了一种数据包处理方法,所述方法由通信芯片执行,所述通信芯片包括调制解调器和硬件加速器;所述方法包括:According to one aspect of the embodiment of the present application, a data packet processing method is provided, the method is executed by a communication chip, the communication chip includes a modem and a hardware accelerator; the method includes:
通过所述调制解调器,确定所接收的数据包对应的数据类型,将所述数据包存储至多个第一队列中与所述数据类型的优先级匹配的第一队列,其中,所述多个第一队列的优先级不同;Through the modem, the data type corresponding to the received data packet is determined, and the data packet is stored in a first queue matching the priority of the data type among a plurality of first queues, wherein the plurality of first queues Queues have different priorities;
通过所述硬件加速器,按照优先级从高到低的顺序,依次处理所述多个第一队列中的数据包。Through the hardware accelerator, the data packets in the plurality of first queues are sequentially processed in order from high to low priority.
根据本申请实施例的另一方面,提供了一种通信芯片,所述通信芯片包括 调制解调器和硬件加速器;According to another aspect of the embodiment of the present application, a communication chip is provided, which includes a modem and a hardware accelerator;
所述调制解调器,用于确定所接收的数据包对应的数据类型,将所述数据包存储至多个第一队列中与所述数据类型的优先级匹配的第一队列,其中,所述多个第一队列的优先级不同;The modem is configured to determine the data type corresponding to the received data packet, and store the data packet into a first queue matching the priority of the data type among a plurality of first queues, wherein the plurality of first queues A queue has different priorities;
所述硬件加速器,用于按照优先级从高到低的顺序,依次处理所述多个第一队列中的数据包。The hardware accelerator is configured to sequentially process the data packets in the plurality of first queues in order from high to low priority.
根据本申请实施例的另一方面,提供了一种数据包处理方法,由计算机设备执行,所述计算机设备包括通信芯片和应用处理芯片,所述应用处理芯片包括多个目标存储器;所述方法包括:According to another aspect of the embodiment of the present application, a data packet processing method is provided, which is executed by a computer device. The computer device includes a communication chip and an application processing chip. The application processing chip includes a plurality of target memories; the method include:
通过所述通信芯片,确定所接收的数据包对应的数据类型,将所述数据包存储至多个第一队列中与所述数据类型的优先级匹配的第一队列,按照优先级从高到低的顺序,依次处理所述多个第一队列中的数据包,其中,所述多个第一队列的优先级不同;Through the communication chip, the data type corresponding to the received data packet is determined, and the data packet is stored in the first queue matching the priority of the data type among the plurality of first queues, from high to low according to the priority. In order, the data packets in the plurality of first queues are processed in sequence, wherein the priorities of the plurality of first queues are different;
通过所述通信芯片,为处理完成的数据包添加所分配的目标存储器的标签,将已添加标签的数据包存储至第二队列,其中同一数据类型对应的数据包所分配的目标存储器相同,不同数据类型对应的数据包所分配的目标存储器不同,并且,优先级越高的数据类型对应的数据包所分配的目标存储器的优先级越高;Through the communication chip, the tag of the allocated target memory is added to the processed data packet, and the tagged data packet is stored in the second queue, where the target memory allocated to the data packet corresponding to the same data type is the same and different. The target memory allocated to the data packet corresponding to the data type is different, and the target memory allocated to the data packet corresponding to the data type with a higher priority has a higher priority;
通过所述通信芯片,将所述第二队列中的数据包存储至所携带的标签对应的目标存储器;Through the communication chip, the data packets in the second queue are stored in the target memory corresponding to the tag carried;
通过所述应用处理芯片,基于所述多个目标存储器的优先级,处理所述多个目标存储器中的数据包。Through the application processing chip, the data packets in the plurality of target memories are processed based on the priorities of the plurality of target memories.
根据本申请实施例的另一方面,提供了一种计算机设备,所述计算机设备包括通信芯片和应用处理芯片,所述应用处理芯片包括多个目标存储器;According to another aspect of the embodiment of the present application, a computer device is provided. The computer device includes a communication chip and an application processing chip. The application processing chip includes a plurality of target memories;
所述通信芯片,用于确定所接收的数据包对应的数据类型,将所述数据包存储至多个第一队列中与所述数据类型的优先级匹配的第一队列,按照优先级从高到低的顺序,依次处理所述多个第一队列中的数据包,其中,所述多个第一队列的优先级不同;The communication chip is used to determine the data type corresponding to the received data packet, and store the data packet into the first queue matching the priority of the data type among the plurality of first queues, in order from high to high priority. Process the data packets in the plurality of first queues in sequence in a lower order, wherein the priorities of the plurality of first queues are different;
所述通信芯片,还用于为处理完成的数据包添加所分配的目标存储器的标 签,将已添加标签的数据包存储至第二队列,其中同一数据类型对应的数据包所分配的目标存储器相同,不同数据类型对应的数据包所分配的目标存储器不同,并且,优先级越高的数据类型对应的数据包所分配的目标存储器的优先级越高;The communication chip is also used to add a tag of the allocated target memory to the processed data packet, and store the tagged data packet into the second queue, where the data packets corresponding to the same data type are allocated the same target memory. , the target memory allocated to the data packets corresponding to different data types is different, and the higher the priority of the target memory allocated to the data packet corresponding to the data type with a higher priority, the higher the priority;
所述通信芯片,还用于将所述第二队列中的数据包存储至所携带的标签对应的目标存储器;The communication chip is also used to store the data packets in the second queue to the target memory corresponding to the tag carried;
所述应用处理芯片,用于基于所述多个目标存储器的优先级,处理所述多个目标存储器中的数据包。The application processing chip is configured to process data packets in the multiple target memories based on priorities of the multiple target memories.
在本申请实施例中,通信芯片中的调制解调器按照数据包对应的数据类型来确定用于存储该数据包的队列,对应的数据类型的优先级越高,用于存储该数据包的队列的优先级越高,而通信芯片中的硬件加速器优先处理高优先级队列中的数据包,以实现基于数据包对应的数据类型确定数据包的处理顺序,使得对应的数据类型的优先级更高的数据包更早得到处理,提高了处理数据包的灵活性,并且降低了高优先级数据类型对应的数据包的处理时延。In the embodiment of the present application, the modem in the communication chip determines the queue used to store the data packet according to the data type corresponding to the data packet. The higher the priority of the corresponding data type, the priority of the queue used to store the data packet. The higher the level, the hardware accelerator in the communication chip prioritizes processing of data packets in the high-priority queue to determine the processing order of data packets based on the data type corresponding to the data packet, so that the corresponding data type has a higher priority. Packets are processed earlier, which improves the flexibility of processing data packets and reduces the processing delay of data packets corresponding to high-priority data types.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1示出了本申请一个示例性实施例提供的一种通信芯片的结构示意图;Figure 1 shows a schematic structural diagram of a communication chip provided by an exemplary embodiment of the present application;
图2示出了本申请一个示例性实施例提供的一种数据包处理方法的流程图;Figure 2 shows a flow chart of a data packet processing method provided by an exemplary embodiment of the present application;
图3示出了本申请一个示例性实施例提供的另一种数据包处理方法的流程图;Figure 3 shows a flow chart of another data packet processing method provided by an exemplary embodiment of the present application;
图4示出了本申请一个示例性实施例提供的又一种数据包处理方法的流程图;Figure 4 shows a flow chart of yet another data packet processing method provided by an exemplary embodiment of the present application;
图5示出了本申请一个示例性实施例提供的一种数据包处理过程的示意图;Figure 5 shows a schematic diagram of a data packet processing process provided by an exemplary embodiment of the present application;
图6示出了本申请一个示例性实施例提供的一种计算机设备的结构示意图。Figure 6 shows a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
在本文中提及的“至少一个”是指一个或多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。"At least one" mentioned in this article means one or more, and "plurality" means two or more. "And/or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship.
本申请的说明书和权利要求书及上述附图说明中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。The terms "first", "second", etc. in the description and claims of this application and the above description of the drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein.
需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本申请中涉及到的数据包都是在充分授权的情况下获取的。It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application, All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the data packages involved in this application were obtained with full authorization.
图1是本申请实施例提供的一种通信芯片100的结构示意图。参考图1,该通信芯片100包括调制解调器101和硬件加速器102,其中,调制解调器101用于确定所接收的数据包对应的数据类型,将数据包存储至多个第一队列中与数据类型的优先级匹配的第一队列,硬件加速器102用于按照优先级从高到低的顺序,依次处理多个第一队列中的数据包。FIG. 1 is a schematic structural diagram of a communication chip 100 provided by an embodiment of the present application. Referring to Figure 1, the communication chip 100 includes a modem 101 and a hardware accelerator 102. The modem 101 is used to determine the data type corresponding to the received data packet, and store the data packet into multiple first queues to match the priority of the data type. The hardware accelerator 102 is configured to sequentially process data packets in multiple first queues in order from high priority to low priority.
其中,该通信芯片100能够在任意计算机设备上运行,以实现本申请提供的数据包处理方法。可选地,该计算机设备为终端或者服务器,其中终端包括手机、台式电脑、笔记本电脑、平板电脑、可穿戴设备、车载终端、家用电器、智能机器人等多种类型的终端。可选地,该通信芯片100与应用处理芯片连接,以将处理完成的数据包发送至应用处理芯片继续处理。The communication chip 100 can run on any computer device to implement the data packet processing method provided by this application. Optionally, the computer device is a terminal or a server, where the terminal includes mobile phones, desktop computers, notebook computers, tablet computers, wearable devices, vehicle-mounted terminals, household appliances, intelligent robots and other types of terminals. Optionally, the communication chip 100 is connected to the application processing chip to send the processed data packet to the application processing chip for continued processing.
本申请实施例提供的数据包处理方法,能够应用在自动驾驶的场景下。例如,自动驾驶车辆内配置通信芯片和应用处理芯片。该自动驾驶车辆除了具有自动驾驶功能外,还具有其他功能,例如音频播放功能。相应的,自动驾驶车辆在驾驶过程中会接收到多种对应于不同数据类型的数据包。例如,包含自动 驾驶数据的数据包和包含音频数据的数据包,其中,自动驾驶数据是指与车辆的自动驾驶相关的数据,例如,车辆的控制数据或者车辆周围的环境数据等。由于自动驾驶数据所属的数据类型为“时延敏感型”,音频数据所属的数据类型为“非时延敏感型”,而“时延敏感型”的优先级高于“非时延敏感型”,因此,通信芯片中的调制解调器接收到包含自动驾驶数据的数据包之后,将该数据包存储在高优先级的第一队列中,而接收到包含音频数据的数据包之后,将该数据包存储至低优先级的第一队列中,这样通信芯片中的硬件加速器在按照优先级从高到底的顺序,依次处理多个第一队列中的数据包的过程中,包含自动驾驶数据的数据包能够优先得到处理,从而能够降低该数据包的处理时延。硬件加速器向应用处理芯片发送处理完成的数据包,应用处理芯片对包含自动驾驶数据的数据包处理后,基于其中的自动驾驶数据控制自动驾驶车辆的行驶,而对包含音频数据的数据包处理之后,播放其中的音频数据。The data packet processing method provided by the embodiment of this application can be applied in autonomous driving scenarios. For example, autonomous vehicles are equipped with communication chips and application processing chips. In addition to the self-driving function, the self-driving vehicle also has other functions, such as audio playback function. Correspondingly, an autonomous vehicle will receive a variety of data packets corresponding to different data types during driving. For example, data packets containing autonomous driving data and data packets containing audio data, where the autonomous driving data refers to data related to the autonomous driving of the vehicle, such as vehicle control data or environmental data around the vehicle, etc. Since the data type of autonomous driving data is "delay-sensitive" and the data type of audio data is "non-delay-sensitive", the "delay-sensitive" has a higher priority than "non-delay-sensitive". , therefore, after the modem in the communication chip receives a data packet containing autonomous driving data, it stores the data packet in the high-priority first queue, and after receiving a data packet containing audio data, it stores the data packet to the first queue of low priority, so that when the hardware accelerator in the communication chip sequentially processes the data packets in multiple first queues in order from high to low priority, the data packets containing the autonomous driving data can Priority is given to processing, thereby reducing the processing delay of the data packet. The hardware accelerator sends the processed data packet to the application processing chip. After the application processing chip processes the data packet containing the self-driving data, it controls the driving of the self-driving vehicle based on the self-driving data. After processing the data packet containing audio data, , play the audio data therein.
本申请实施例提供的数据包处理方法,还能够应用在其他场景下,本申请实施例对此不做限制。The data packet processing method provided by the embodiment of the present application can also be applied in other scenarios, and the embodiment of the present application does not limit this.
图2示出了本申请一个示例性实施例提供的一种数据包处理方法的流程图,参见图2,该方法由通信芯片执行,通信芯片包括调制解调器和硬件加速器,该方法包括:Figure 2 shows a flow chart of a data packet processing method provided by an exemplary embodiment of the present application. Referring to Figure 2, the method is executed by a communication chip. The communication chip includes a modem and a hardware accelerator. The method includes:
201、通信芯片通过调制解调器,确定所接收的数据包对应的数据类型,将数据包存储至多个第一队列中与该数据类型的优先级匹配的第一队列,其中多个第一队列的优先级不同。201. The communication chip determines the data type corresponding to the received data packet through the modem, and stores the data packet into the first queue matching the priority of the data type among the multiple first queues, where the priority of the multiple first queues different.
其中,数据包对应的数据类型即数据包所属的数据类型。可选地,数据类型包括“时延敏感型”和“非时延敏感型”。“时延敏感型”的数据包对时延的要求严格,也即是,该数据包的处理要满足低时延条件,如果处理该数据包的时延较高,可能造成严重影响。而“非时延敏感型”的数据包对时延的要求不严格,也即是,该数据包无需满足低时延条件,即使处理该数据包的时延较高,也不会造成严重影响。其中,“时延敏感型”的优先级高于“非时延敏感型”的优先级。Among them, the data type corresponding to the data packet is the data type to which the data packet belongs. Optionally, the data type includes "delay-sensitive type" and "non-delay-sensitive type". "Delay-sensitive" data packets have strict requirements on delay, that is, the processing of the data packet must meet low-latency conditions. If the processing delay of the data packet is high, it may cause serious impact. "Non-delay-sensitive" data packets do not have strict requirements on delay. That is to say, the data packet does not need to meet the low-delay conditions. Even if the processing delay of the data packet is high, it will not cause serious impact. . Among them, the priority of "delay-sensitive type" is higher than the priority of "non-delay-sensitive type".
可选地,“时延敏感型”的数据包包括URLLC(Ultra Reliable Low Latency Communication,超可靠低延迟通信)数据对应的数据包。其中,URLLC数据 包括车联网、工业控制、远程医疗等应用场景相关的数据。可选地,“非时延敏感型”的数据包包括eMBB(Enhanced Mobile Broadband,增强移动宽带)数据对应的数据包。其中,eMBB数据包括超高清视频、虚拟现实、增强现实等应用场景相关的数据。其中URLLC数据的优先级高于eMBB数据的优先级。Optionally, "delay-sensitive" data packets include data packets corresponding to URLLC (Ultra Reliable Low Latency Communication) data. Among them, URLLC data includes data related to application scenarios such as Internet of Vehicles, industrial control, and telemedicine. Optionally, "non-delay-sensitive" data packets include data packets corresponding to eMBB (Enhanced Mobile Broadband, enhanced mobile broadband) data. Among them, eMBB data includes data related to ultra-high-definition video, virtual reality, augmented reality and other application scenarios. The priority of URLLC data is higher than that of eMBB data.
可选地,第一队列为FIFO(First Input First Output,先入先出)存储器,FIFO存储器是一个先入先出的双口缓冲器,包括一个输入口和一个输出口,第一个进入FIFO存储器内部的数据第一个被移出。可选地,第一队列设置在通信芯片的任意位置,例如,设置在调制解调器中,或者,设置在硬件加速器中,本申请实施例对此不做限制。通信芯片中的多个第一队列的优先级不同,其中,优先级越高的第一队列中,存储的数据包对应的数据类型的优先级越高。Optionally, the first queue is a FIFO (First Input First Output) memory. The FIFO memory is a first-in, first-out dual-port buffer, including an input port and an output port. The first one enters the FIFO memory 's data is moved out first. Optionally, the first queue is set at any location on the communication chip, for example, in a modem, or in a hardware accelerator, which is not limited in the embodiment of the present application. The multiple first queues in the communication chip have different priorities. In the first queue with a higher priority, the data type corresponding to the stored data packet has a higher priority.
可选地,该数据包携带有对应的数据类型,调制解调器(modem)调用MAC(Medium Access Control,介质访问控制)、RLC(Radio Link Control,无线链路层控制)和PDCP(Packet Data Convergence Protocol,分组数据汇聚协议)单元依次对所接收的数据包进行解析,得到该数据包对应的数据类型。Optionally, the data packet carries the corresponding data type, and the modem calls MAC (Medium Access Control, media access control), RLC (Radio Link Control, wireless link layer control) and PDCP (Packet Data Convergence Protocol), The packet data aggregation protocol) unit sequentially parses the received data packets to obtain the data type corresponding to the data packets.
可选地,通信芯片中存储有各数据类型对应的优先级以及各第一队列对应的优先级,相应的,调制解调器确定所接收的数据包对应的数据类型后,将数据包存储至多个第一队列中与该数据类型的优先级匹配的第一队列,包括:调制解调器确定该数据类型的优先级,然后确定多个第一队列中与该优先级一致的第一队列,将该数据包存储至该第一队列。例如,数据包对应的数据类型的优先级为第一优先级,那么从多个第一队列中确定优先级为第一优先级的第一队列,将该数据包存储到该第一队列。其中,各数据类型对应的优先级可根据需要进行设置,本申请实施例对此不做限制。Optionally, the priority corresponding to each data type and the priority corresponding to each first queue are stored in the communication chip. Correspondingly, after the modem determines the data type corresponding to the received data packet, it stores the data packet in multiple first queues. The first queue in the queue that matches the priority of the data type includes: the modem determines the priority of the data type, then determines the first queue consistent with the priority among the multiple first queues, and stores the data packet in The first queue. For example, if the priority of the data type corresponding to the data packet is the first priority, then a first queue with a priority of the first priority is determined from multiple first queues, and the data packet is stored in the first queue. Among them, the priority corresponding to each data type can be set as needed, and the embodiment of the present application does not limit this.
在一种可能的实现方式中,多个第一队列包括第三队列和第四队列,该第三队列与URLLC数据的优先级匹配,该第四队列与eMBB数据的优先级匹配。相应的,通信芯片通过调制解调器将数据包存储至多个第一队列中与数据类型的优先级匹配的第一队列,包括:通信芯片通过调制解调器,在数据包属于URLLC数据的情况下,将该数据包存储至第三队列;或者,在数据包属于eMBB数据的情况下,将该数据包存储至第四队列。In a possible implementation, the plurality of first queues include a third queue and a fourth queue, the third queue matches the priority of the URLLC data, and the fourth queue matches the priority of the eMBB data. Correspondingly, the communication chip stores the data packet through the modem to the first queue matching the priority of the data type among the plurality of first queues, including: the communication chip uses the modem to store the data packet when the data packet belongs to URLLC data. Store the data packet in the third queue; or, if the data packet belongs to eMBB data, store the data packet in the fourth queue.
例如,第三队列和第四队列分别为URLLC队列和eMBB队列,其中,URLLC队列的优先级高于eMBB队列的优先级,eMBB队列用于存储eMBB数据对应 的数据包,而URLLC队列用于存储优先级更高的URLLC数据对应的数据包。For example, the third queue and the fourth queue are the URLLC queue and the eMBB queue respectively. The URLLC queue has a higher priority than the eMBB queue. The eMBB queue is used to store data packets corresponding to eMBB data, while the URLLC queue is used to store Data packets corresponding to URLLC data with higher priority.
在本申请实施例中,由于URLLC数据相对于eMBB数据来说对时延更加敏感,因此,设置URLLC数据的优先级高于eMBB数据的优先级,使用优先级较低的第四队列存储eMBB数据对应的数据包,使用优先级更高的第三队列存储URLLC数据对应的数据包,使得后续按照队列的优先级来处理数据包时,URLLC数据对应的数据包能够更早的得到处理,从而降低URLLC数据的处理延时。In the embodiment of this application, since URLLC data is more sensitive to delay than eMBB data, the priority of URLLC data is set to be higher than the priority of eMBB data, and a fourth queue with a lower priority is used to store eMBB data. For the corresponding data packet, a third queue with a higher priority is used to store the data packet corresponding to the URLLC data, so that when the data packet is subsequently processed according to the priority of the queue, the data packet corresponding to the URLLC data can be processed earlier, thus reducing the Processing delay of URLLC data.
202、通信芯片通过硬件加速器,按照优先级从高到低的顺序,依次处理多个第一队列中的数据包。202. The communication chip uses the hardware accelerator to sequentially process multiple data packets in the first queue in order from high to low priority.
其中,硬件加速器用于对该数据包执行任意处理操作,例如,对该数据包的包头进行解析,对该数据包进行校验,对数据包进行过滤以丢掉包含目标数据的数据包等,本申请实施例对此不做限制。Among them, the hardware accelerator is used to perform arbitrary processing operations on the data packet, such as parsing the header of the data packet, verifying the data packet, filtering the data packet to discard data packets containing target data, etc. This paper The application examples do not limit this.
通信芯片中的调制解调器每接收到数据包,便将该数据包存储到对应的第一队列中,而通信芯片中的硬件加速器监测多个第一队列,只要多个第一队列中存储有待处理的数据包,硬件加速器便会按照优先级从高到低的顺序,依次处理多个第一队列中的数据包。也即是,在最高优先级的第一队列中存在数据包的情况下,硬件加速器处理该第一队列中的数据包,在该第一队列中不存在数据包的情况下,硬件加速器处理下一个优先级的第一队列中的数据包,以此类推。Each time the modem in the communication chip receives a data packet, it stores the data packet in the corresponding first queue, and the hardware accelerator in the communication chip monitors multiple first queues, as long as there are pending packets stored in the multiple first queues. Data packets, the hardware accelerator will process the data packets in multiple first queues in order from high to low priority. That is, when there is a data packet in the first queue with the highest priority, the hardware accelerator processes the data packet in the first queue. When there is no data packet in the first queue, the hardware accelerator processes the next data packet. A priority packet is queued first, and so on.
其中,对于任一第一队列,硬件加速器按照先入先出的原则处理该第一队列中的数据包,也即是,先存储至该第一队列中的数据包先得到处理。由于任一第一队列中的数据包对应的数据类型相同,且接收时间越早的数据包存储至该第一队列中的时间越早,因此,按照先入先出的原则处理第一队列中的数据包,使得对应同一数据类型的多个数据包,接收时间越早的数据包,得到处理的时间越早。Wherein, for any first queue, the hardware accelerator processes the data packets in the first queue according to the first-in-first-out principle, that is, the data packets stored in the first queue first are processed first. Since the data packets in any first queue correspond to the same data type, and the data packets with earlier reception time are stored in the first queue earlier, therefore, the packets in the first queue are processed according to the first-in, first-out principle. Data packets enable multiple data packets corresponding to the same data type. The earlier the data packet is received, the earlier it will be processed.
在本申请实施例中,通信芯片中的调制解调器要按照数据包对应的数据类型来确定用于存储该数据包的队列,对应的数据类型的优先级越高,用于存储该数据包的队列的优先级越高,而通信芯片中的硬件加速器优先处理高优先级队列中的数据包,以实现基于数据包对应的数据类型确定数据包的处理顺序,使得对应的数据类型的优先级更高的数据包更早得到处理,提高了处理数据包 的灵活性,并且降低了高优先级数据类型对应的数据包的处理时延。In this embodiment of the present application, the modem in the communication chip determines the queue used to store the data packet according to the data type corresponding to the data packet. The higher the priority of the corresponding data type, the higher the priority of the queue used to store the data packet. The higher the priority, the hardware accelerator in the communication chip prioritizes processing of data packets in the high-priority queue to determine the processing order of data packets based on the data type corresponding to the data packet, so that the corresponding data type has a higher priority. Data packets are processed earlier, which improves the flexibility of processing data packets and reduces the processing delay of data packets corresponding to high-priority data types.
在图2所示的实施例的基础上,图3示出了本申请一个示例性实施例提供的一种数据包处理方法的流程图,参见图3,该方法由通信芯片执行,通信芯片包括调制解调器、硬件加速器和DMA(Direct Memory Access,直接存储器访问)控制器,在该实施例中,通信芯片还会将处理完成后的数据包存储至应用处理芯片中的目标存储器,以便于应用处理芯片对目标存储器中的数据包继续处理。该方法包括:Based on the embodiment shown in Figure 2, Figure 3 shows a flow chart of a data packet processing method provided by an exemplary embodiment of the present application. Referring to Figure 3, the method is executed by a communication chip, and the communication chip includes Modem, hardware accelerator and DMA (Direct Memory Access) controller. In this embodiment, the communication chip will also store the processed data packets to the target memory in the application processing chip to facilitate the application processing chip. Processing continues on the packet in destination memory. The method includes:
301、通信芯片通过调制解调器,确定所接收的数据包对应的数据类型,将数据包存储至多个第一队列中与该数据类型的优先级匹配的第一队列,其中多个第一队列的优先级不同。301. The communication chip determines the data type corresponding to the received data packet through the modem, and stores the data packet into the first queue matching the priority of the data type among the multiple first queues, where the priority of the multiple first queues different.
上述步骤301的实现方式请参考上述步骤201,此处不再赘述。For the implementation of the above step 301, please refer to the above step 201, which will not be described again here.
302、通信芯片通过硬件加速器,按照优先级从高到低的顺序,依次处理多个第一队列中的数据包。302. The communication chip uses the hardware accelerator to sequentially process multiple data packets in the first queue in order from high to low priority.
在一种可能的实现方式中,硬件加速器用于对目标类型的数据包进行校验,相应的,通信芯片通过硬件加速器,按照优先级从高到低的顺序,依次处理多个第一队列中的数据包,包括:通信芯片通过硬件加速器,按照优先级从高到低的顺序,依次确定多个第一队列中的每个数据包的包类型,并在当前所确定的包类型为目标类型的情况下,对当前的数据包进行校验。可选地,硬件加速器专门用于对目标类型的数据包进行校验,因此,硬件加速器进行校验的效率非常高,那么采用硬件加速器对目标类型的数据包进行校验,后续向应用处理芯片发送该数据包,应用处理芯片则无需对该数据包进行校验,整体上提高了数据包的处理效率。In a possible implementation, the hardware accelerator is used to verify the data packets of the target type. Accordingly, the communication chip uses the hardware accelerator to sequentially process multiple first queues in order from high to low priority. The data packets include: the communication chip uses the hardware accelerator to determine the packet type of each data packet in the multiple first queues in order from high to low priority, and the currently determined packet type is the target type. In this case, the current data packet is verified. Optionally, the hardware accelerator is specially used to verify the data packets of the target type. Therefore, the verification efficiency of the hardware accelerator is very high. Then the hardware accelerator is used to verify the data packets of the target type, and then the application processing chip After sending the data packet, the application processing chip does not need to verify the data packet, which improves the overall processing efficiency of the data packet.
可选地,校验包括准确性校验、有效性校验等,其中,准确性校验是指校验该数据包在传输过程中是否出现错误,有效性校验是指校验该数据包是否有效,例如,校验数据包是否在有效期。可选地,校验还包括其他类型的校验,本申请实施例对此不做限制。Optionally, verification includes accuracy verification, validity verification, etc., where accuracy verification refers to verifying whether errors occur in the data packet during transmission, and validity verification refers to verifying the data packet. Whether it is valid, for example, verifying whether the data packet is within the validity period. Optionally, the verification also includes other types of verification, which are not limited in the embodiments of this application.
其中,目标类型可根据需要设置为任意类型,例如,IP(Internet Protocol,网际互连协议)数据包、UDP(User Datagram Protocol,用户数据报协议)数据包、TCP(Transmission Control Protocol,传输控制协议)数据包等,本申请实 施例对此不做限制。Among them, the target type can be set to any type as needed, such as IP (Internet Protocol) data packets, UDP (User Datagram Protocol) data packets, TCP (Transmission Control Protocol) ) data packets, etc., the embodiments of this application do not limit this.
303、通信芯片通过硬件加速器,为处理完成的数据包添加所分配的目标存储器的标签,将已添加标签的数据包存储至第二队列。303. The communication chip uses the hardware accelerator to add the tag of the allocated target memory to the processed data packet, and stores the tagged data packet in the second queue.
其中,同一数据类型对应的数据包所分配的目标存储器相同,不同数据类型对应的数据包所分配的目标存储器不同,并且,每个目标存储器具有对应的优先级,优先级越高的数据类型对应的数据包所分配的目标存储器的优先级越高。Among them, data packets corresponding to the same data type are allocated the same target memory, and data packets corresponding to different data types are allocated different target memories. Moreover, each target memory has a corresponding priority, and the data type with a higher priority corresponds to The higher the priority of the target memory allocated to the data packet.
例如,URLLC数据包(即包含URLLC数据的数据包)所分配的目标存储器相同,URLLC数据包与eMBB数据包(即包含eMBB数据的数据包)所分配的目标存储器不同,且由于URLLC数据的优先级高于eMBB数据的优先级,因此URLLC数据包所分配的目标存储器的优先级高于eMBB数据包所分配的目标存储器的优先级。For example, the target memory allocated for URLLC data packets (i.e., data packets containing URLLC data) is the same, and the target memory allocated for URLLC data packets and eMBB data packets (i.e., data packets containing eMBB data) is different, and due to the priority of URLLC data level is higher than the priority of eMBB data, so the priority of the target memory allocated by the URLLC data packet is higher than the priority of the target memory allocated by the eMBB data packet.
可选地,第二队列为FIFO存储器,例如,第二队列为PCIE(Peripheral Component Interconnect Express,一种高速串行计算机扩展总线标准)FIFO存储器。可选地,第二队列设置在通信芯片的任意位置,例如,设置在硬件加速器中,本申请实施例对此不做限制。Optionally, the second queue is a FIFO memory. For example, the second queue is a PCIE (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) FIFO memory. Optionally, the second queue is set at any location on the communication chip, for example, in a hardware accelerator, which is not limited in the embodiment of the present application.
在一种可能的实现方式中,通信芯片通过硬件加速器为处理完成的数据包添加所分配的目标存储器的标签,包括:通信芯片通过硬件加速器确定处理完成的数据包的包头中的目标字段;在目标字段满足任一数据类型对应的字段条件的情况下,为处理完成的数据包添加该数据类型对应的目标存储器的标签。In a possible implementation, the communication chip uses a hardware accelerator to add a tag of the allocated target memory to the processed data packet, including: the communication chip determines the target field in the header of the processed data packet through the hardware accelerator; When the target field meets the field conditions corresponding to any data type, the tag of the target memory corresponding to the data type is added to the processed data packet.
其中,目标字段根据需要可设置为任意字段。可选地,目标字段包括源地址、目的地址、源端口和目的端口。任一数据类型对应的字段条件用于筛选该数据类型对应的数据包,也即是,任一数据包的包头中的目标字段满足该数据类型对应的字段条件,则表示该数据包对应于该数据类型。Among them, the target field can be set to any field as needed. Optionally, the destination field includes source address, destination address, source port, and destination port. The field conditions corresponding to any data type are used to filter the data packets corresponding to that data type. That is, if the target field in the header of any data packet meets the field conditions corresponding to that data type, it means that the data packet corresponds to that data type. type of data.
可选地,硬件加速器中存储有各数据类型对应的字段条件以及对应的目标存储器的标签,该目标存储器即为该数据类型对应的数据包分配的目标存储器。可选地,各数据类型对应的字段条件以及对应的目标存储器的标签是调制解调器发送给硬件加速器的。例如,调制解调器在确定出数据包对应的数据类型之后,向硬件加速器发送该数据类型对应的字段条件以及该数据类型对应的目标存储器的标签。Optionally, the field conditions corresponding to each data type and the tags of the corresponding target memory are stored in the hardware accelerator, and the target memory is the target memory allocated for the data packet corresponding to the data type. Optionally, the field conditions corresponding to each data type and the corresponding label of the target memory are sent by the modem to the hardware accelerator. For example, after determining the data type corresponding to the data packet, the modem sends the field condition corresponding to the data type and the tag of the target memory corresponding to the data type to the hardware accelerator.
在本申请实施例中,处理完成的数据包的包头中的目标字段满足任一数据类型对应的字段条件,表示该数据包对应于该数据类型,在此情况下,为处理完成的数据包添加该数据类型对应的目标存储器的标签,保证了所添加的标签的准确性。In the embodiment of this application, the target field in the header of the processed data packet meets the field conditions corresponding to any data type, indicating that the data packet corresponds to this data type. In this case, add The tag of the target memory corresponding to this data type ensures the accuracy of the added tag.
可选地,硬件加速器在按照优先级从高到低的顺序,依次确定多个第一队列中的每个数据包的包类型的过程中,在当前所确定的包类型为目标类型之外的其他类型的情况下,直接为该数据包添加上所分配的目标存储器的标签。也即是,硬件加速器仅用于对目标类型的数据包进行校验,而不对其他类型的数据包进行校验,这样能够降低硬件加速器结构的复杂度,保证硬件加速器的处理效率。Optionally, during the process of the hardware accelerator sequentially determining the packet type of each data packet in the plurality of first queues in order from high to low priority, if the currently determined packet type is other than the target type In the case of other types, the tag of the allocated target memory is directly added to the data packet. That is to say, the hardware accelerator is only used to verify the target type of data packets, but not other types of data packets. This can reduce the complexity of the hardware accelerator structure and ensure the processing efficiency of the hardware accelerator.
304、通信芯片通过硬件加速器,调用DMA控制器,将第二队列中的数据包存储至所携带的标签对应的目标存储器。304. The communication chip calls the DMA controller through the hardware accelerator to store the data packets in the second queue into the target memory corresponding to the tag carried.
可选地,通信芯片将第二队列中的数据包依次存储至目标存储器。也即是,先进入第二队列中的数据包先存储至目标存储器。Optionally, the communication chip sequentially stores the data packets in the second queue into the target memory. That is, the data packets that enter the second queue first are stored in the target memory first.
在本申请实施例中,通过硬件加速器将同一数据类型对应的数据包存储至同一目标存储器,将不同数据类型对应的数据包存储至不同的目标存储器,且优先级越高的目标存储器所存储的数据包对应的数据类型的优先级越高,便于后续按照目标存储器的优先级来区别处理各目标存储器中的数据包,以实现对不同优先级的数据类型对应的数据包区别处理,提高处理数据包的灵活性。In the embodiment of this application, the hardware accelerator is used to store data packets corresponding to the same data type into the same target memory, and to store data packets corresponding to different data types into different target memories, and the target memory with a higher priority stores the data packets. The higher the priority of the data type corresponding to the data packet, the easier it is to process the data packets in each target memory differently in the future according to the priority of the target memory, so as to realize the differential processing of the data packets corresponding to the data types of different priorities and improve the processing of data. Package flexibility.
由于DMA控制器能够在不占用通信芯片中的中央处理器的处理资源的前提下进行数据传输,因此不会影响该中央处理器的工作,并且,由于DMA控制器的数据传输效率高,因此硬件加速器调用DMA控制器来将数据包从第二队列转移至目标存储器,提高了将数据包存储至目标存储器的效率。Since the DMA controller can transmit data without occupying the processing resources of the central processor in the communication chip, it will not affect the work of the central processor. Moreover, since the DMA controller has high data transmission efficiency, the hardware The accelerator calls the DMA controller to transfer the data packet from the second queue to the target memory, thereby improving the efficiency of storing the data packet into the target memory.
可选地,目标存储器为应用处理芯片中的存储器,通信芯片通过硬件加速器将数据包存储至目标存储器之后,应用处理芯片对该目标存储器中的数据包继续进行处理。Optionally, the target memory is a memory in an application processing chip. After the communication chip stores the data packet into the target memory through the hardware accelerator, the application processing chip continues to process the data packet in the target memory.
305、通信芯片通过硬件加速器,每次将一个数据包存储至对应的目标存储器时,确定当前目标定时器的计时时长,在计时时长已达到目标计时时长的情况下,向应用处理芯片发送中断信号,并重启目标定时器。305. The communication chip uses the hardware accelerator to determine the timing duration of the current target timer each time it stores a data packet into the corresponding target memory. When the timing duration has reached the target timing duration, it sends an interrupt signal to the application processing chip. , and restart the target timer.
其中,目标定时器为该数据包对应的数据类型对应的定时器,并且,优先 级越高的数据类型对应的定时器的目标计时时长越短。Among them, the target timer is a timer corresponding to the data type corresponding to the data packet, and the target timer of the timer corresponding to the data type with a higher priority is shorter.
其中,中断信号用于请求应用处理芯片处理目标存储器中的数据包,也即是,请求应用处理芯片停止当前正在执行的操作,转而处理目标存储器中的数据包。由于频繁的中断会影响应用处理芯片的处理效率,加重应用处理芯片的负载,因此,硬件加速器利用定时器来控制中断应用处理芯片的频率,只有在目标定时器的计时时长达到目标计时时长,也即是,在数据包存储至目标存储器的时刻距离上次发送中断信号时刻的间隔时长达到目标计时时长的情况下,才向应用处理芯片发送中断信号,而不是只要将数据包存储至目标存储器就向应用处理芯片发送中断信号,有效降低了中断应用处理芯片的频率。并且,优先级越高的数据类型对应的定时器的目标计时时长越短,使得对于优先级高的数据类型对应数据包,硬件加速器能够尽早地向应用处理芯片发送中断信号,使应用处理芯片尽早地处理优先级高的数据类型对应的数据包,降低高优先级数据类型对应的数据包的处理时延。Among them, the interrupt signal is used to request the application processing chip to process the data packets in the target memory, that is, to request the application processing chip to stop the operation currently being executed and instead process the data packets in the target memory. Since frequent interrupts will affect the processing efficiency of the application processing chip and increase the load on the application processing chip, the hardware accelerator uses a timer to control the frequency of interrupting the application processing chip. Only when the target timer's timing reaches the target timing, the hardware accelerator will That is, the interrupt signal is sent to the application processing chip only when the interval between the time when the data packet is stored in the target memory and the time when the interrupt signal was last sent reaches the target timing length, instead of just storing the data packet in the target memory. Sending an interrupt signal to the application processing chip effectively reduces the frequency of interrupting the application processing chip. In addition, the target timing duration of the timer corresponding to the higher priority data type is shorter, so that for the data packet corresponding to the higher priority data type, the hardware accelerator can send an interrupt signal to the application processing chip as early as possible, so that the application processing chip can Process data packets corresponding to high-priority data types in an efficient manner and reduce the processing delay of data packets corresponding to high-priority data types.
可选地,应用处理芯片包括中央处理器,中断信号用于请求应用处理芯片中的中央处理器处理目标存储器中的数据包。Optionally, the application processing chip includes a central processor, and the interrupt signal is used to request the central processor in the application processing chip to process the data packet in the target memory.
在本申请实施例中,将对应的数据类型不同的数据包分开存储,在数据通路(从通信芯片中的调制解调器到应用处理芯片中的中央处理器)上的多个处理环节,都优先处理更高优先级的数据类型对应的数据包,从而能够降低高优先级数据类型对应的数据包的处理时延。In the embodiment of the present application, corresponding data packets of different data types are stored separately, and multiple processing links on the data path (from the modem in the communication chip to the central processor in the application processing chip) prioritize processing of more recent data. Data packets corresponding to high-priority data types can reduce the processing delay of data packets corresponding to high-priority data types.
在本申请实施例中,通信芯片中的调制解调器按照数据包对应的数据类型来确定用于存储该数据包的队列,对应的数据类型的优先级越高,用于存储该数据包的队列的优先级越高,而通信芯片中的硬件加速器优先处理高优先级队列中的数据包,以实现基于数据包对应的数据类型确定数据包的处理顺序,使得对应的数据类型的优先级更高的数据包更早得到处理,提高了处理数据包的灵活性,并且降低了高优先级数据类型对应的数据包的处理时延。In the embodiment of the present application, the modem in the communication chip determines the queue used to store the data packet according to the data type corresponding to the data packet. The higher the priority of the corresponding data type, the priority of the queue used to store the data packet. The higher the level, the hardware accelerator in the communication chip prioritizes processing of data packets in the high-priority queue to determine the processing order of data packets based on the data type corresponding to the data packet, so that the corresponding data type has a higher priority. Packets are processed earlier, which improves the flexibility of processing data packets and reduces the processing delay of data packets corresponding to high-priority data types.
在本申请实施例中,由于硬件加速器进行数据包校验的效率非常高,因此采用硬件加速器对目标类型的数据包进行校验,后续向应用处理芯片发送该数据包,应用处理芯片则无需对该数据包进行校验,整体上提高了数据包的处理效率。In the embodiment of this application, since the hardware accelerator is very efficient in data packet verification, the hardware accelerator is used to verify the data packet of the target type, and then sends the data packet to the application processing chip. The application processing chip does not need to The data packet is verified, which improves the processing efficiency of the data packet as a whole.
在本申请实施例中,处理完成的数据包的包头中的目标字段满足任一数据 类型对应的字段条件,表示该数据包对应于该数据类型,在此情况下,为处理完成的数据包添加该数据类型对应的目标存储器的标签,保证了所添加的标签的准确性。In the embodiment of this application, the target field in the header of the processed data packet meets the field conditions corresponding to any data type, indicating that the data packet corresponds to this data type. In this case, add The tag of the target memory corresponding to this data type ensures the accuracy of the added tag.
在本申请实施例中,通过硬件加速器将同一数据类型对应的数据包存储至同一目标存储器,将不同数据类型对应的数据包存储至不同的目标存储器,且优先级越高的目标存储器所存储的数据包对应的数据类型的优先级越高,便于后续按照目标存储器的优先级来区别处理各目标存储器中的数据包,以实现对不同优先级的数据类型对应的数据包区别处理,提高处理数据包的灵活性。In the embodiment of this application, the hardware accelerator is used to store data packets corresponding to the same data type into the same target memory, and to store data packets corresponding to different data types into different target memories, and the target memory with a higher priority stores the data packets. The higher the priority of the data type corresponding to the data packet, the easier it is to process the data packets in each target memory differently in the future according to the priority of the target memory, so as to realize the differential processing of the data packets corresponding to the data types of different priorities and improve the processing of data. Package flexibility.
图4示出了本申请一个示例性实施例提供的一种数据包处理方法的流程图,参见图4,该方法由计算机设备执行,计算机设备包括通信芯片和应用处理芯片,应用处理芯片包括多个目标存储器,该方法包括:Figure 4 shows a flow chart of a data packet processing method provided by an exemplary embodiment of the present application. Referring to Figure 4, the method is executed by a computer device. The computer device includes a communication chip and an application processing chip. The application processing chip includes a plurality of target memory, the method includes:
401、计算机设备通过通信芯片,确定所接收的数据包对应的数据类型,将数据包存储至多个第一队列中与该数据类型的优先级匹配的第一队列,按照优先级从高到低的顺序,依次处理多个第一队列中的数据包。401. The computer device determines the data type corresponding to the received data packet through the communication chip, and stores the data packet into the first queue matching the priority of the data type among the plurality of first queues, in order from high to low priority. In order, the data packets in multiple first queues are processed in sequence.
其中,多个第一队列的优先级不同。Among them, the priorities of multiple first queues are different.
402、计算机设备通过通信芯片,为处理完成的数据包添加所分配的目标存储器的标签,将已添加标签的数据包存储至第二队列。402. The computer device adds a tag of the allocated target memory to the processed data packet through the communication chip, and stores the tagged data packet in the second queue.
其中,同一数据类型对应的数据包所分配的目标存储器相同,不同数据类型对应的数据包所分配的目标存储器不同,并且,优先级越高的数据类型对应的数据包所分配的目标存储器的优先级越高。Among them, the target memory allocated to the data packets corresponding to the same data type is the same, the target memory allocated to the data packets corresponding to different data types is different, and the target memory allocated to the data packet corresponding to the higher priority data type has priority. The higher the level.
403、计算机设备通过通信芯片,将第二队列中的数据包存储至所携带的标签对应的目标存储器。403. The computer device stores the data packets in the second queue into the target memory corresponding to the tag carried through the communication chip.
步骤401-403的实现方式请参考上述图2和图3所示的实施例,此处不再赘述。For the implementation of steps 401-403, please refer to the above-mentioned embodiment shown in Figure 2 and Figure 3, which will not be described again here.
404、计算机设备通过应用处理芯片,基于多个目标存储器的优先级,处理多个目标存储器中的数据包。404. The computer device processes the data packets in the multiple target memories based on the priorities of the multiple target memories through the application processing chip.
在一种可能的实现方式中,应用处理芯片包括中央处理器(CPU,Central Processing Unit),中央处理器包括一个处理核心。相应的,计算机设备通过应用处理芯片,基于多个目标存储器的优先级,处理多个目标存储器中的数据包, 包括:计算机设备通过该处理核心,按照优先级从高到底的顺序,依次处理多个目标存储器中的数据包。也即是,计算机设备通过该处理核心,先处理最高优先级的目标存储器中的数据包,然后处理下一个目标存储器中的数据包,以此类推。由于优先级越高的目标存储器中存储的数据包对应的数据类型的优先级越高,因此,该处理核心按照优先级从高到底的顺序,依次处理多个目标存储器中的数据包,使得优先级更高的数据类型对应的数据包更早得到处理,能够降低高优先级数据类型对应的数据包的处理时延。In a possible implementation, the application processing chip includes a central processing unit (CPU), and the central processing unit includes a processing core. Correspondingly, the computer device processes the data packets in multiple target memories based on the priorities of the multiple target memories through the application processing chip, including: the computer device processes multiple data packets in sequence from high to low through the processing core. packets in the destination memory. That is, the computer device first processes the data packet in the highest priority target memory through the processing core, and then processes the data packet in the next target memory, and so on. Since the data type corresponding to the data packet stored in the target memory with a higher priority has a higher priority, the processing core sequentially processes the data packets in multiple target memories in order from high priority to low, so that the priority Data packets corresponding to higher-level data types are processed earlier, which can reduce the processing delay of data packets corresponding to high-priority data types.
在另一种可能的实现方式中,应用处理芯片包括中央处理器,中央处理器包括多个处理性能不同的处理核心,每个处理核心关联一个目标存储器,并且处理核心的处理性能越强,所关联的目标存储器的优先级越高。相应的,计算机设备通过应用处理芯片,基于多个目标存储器的优先级,处理多个目标存储器中的数据包,包括:计算机设备通过多个处理核心,分别处理所关联的目标存储器中的数据包。In another possible implementation, the application processing chip includes a central processor. The central processor includes multiple processing cores with different processing capabilities. Each processing core is associated with a target memory, and the stronger the processing performance of the processing core, the higher the processing performance. The associated target memory has a higher priority. Correspondingly, the computer device processes the data packets in multiple target memories based on the priorities of the multiple target memories through the application processing chip, including: the computer device processes the data packets in the associated target memories through multiple processing cores. .
其中,这多个处理核心采用并行的方式处理所关联的目标存储器中的数据包。也即是,各处理核心之间相互之间没有影响,各自处理各自所关联的目标存储器中的数据包。Among them, these multiple processing cores process data packets in the associated target memory in a parallel manner. That is to say, the processing cores have no influence on each other and each process the data packets in their associated target memories.
在本申请实施例中,优先级越高的目标存储器中存储的数据包对应的数据类型的优先级越高,且处理核心的处理性能越强,所关联的目标存储器的优先级越高,使得优先级更高的数据类型对应的数据包能够被处理性能更强的处理核心处理,从而能够提升高优先级数据类型对应的数据包的处理效率,降低高优先级数据类型对应的数据包的处理时延。In this embodiment of the present application, the higher the priority of the data type corresponding to the data packet stored in the target memory, the higher the priority of the processing core, and the higher the priority of the associated target memory, so that Data packets corresponding to data types with higher priority can be processed by processing cores with stronger processing performance, thereby improving the processing efficiency of data packets corresponding to high-priority data types and reducing the processing of data packets corresponding to high-priority data types. time delay.
图5为本申请实施例提供的一种数据包处理过程的示意图,参考图5,通信芯片包括调制解调器、第一队列A、第一队列B、硬件加速器以及第二队列,其中,第一队列A的优先级高于第一队列B的优先级。应用处理芯片包括目标存储器A、目标存储器B以及处理核心A和处理核心B。其中,目标存储器A的优先级高于目标存储器B的优先级,处理核心A的处理性能强于处理核心B的处理性能,且处理核心A与目标存储器A关联,处理核心B与目标存储器B关联。相应的,数据包处理过程包括以下步骤:Figure 5 is a schematic diagram of a data packet processing process provided by an embodiment of the present application. Referring to Figure 5, the communication chip includes a modem, a first queue A, a first queue B, a hardware accelerator and a second queue, where the first queue A The priority of queue B is higher than the priority of queue B. The application processing chip includes target memory A, target memory B, and processing core A and processing core B. Among them, the priority of target memory A is higher than the priority of target memory B, the processing performance of processing core A is stronger than the processing performance of processing core B, and processing core A is associated with target memory A, and processing core B is associated with target memory B. . Correspondingly, the data packet processing process includes the following steps:
1、调制解调器按照所接收的数据包对应的数据类型,将该数据包存储至与该数据类型的优先级匹配的第一队列,即第一队列A或者第一队列B。1. According to the data type corresponding to the received data packet, the modem stores the data packet into the first queue that matches the priority of the data type, that is, the first queue A or the first queue B.
2、硬件加速器先处理第一队列A中的数据包,并且为处理完成的数据包添加所分配的目标存储器A的标签,然后将添加标签后的数据包存储至第二队列。在第一队列A中的数据包处理完之后,处理第一队列B中的数据包,并且为处理完成的数据包添加所分配的目标存储器B的标签,然后将添加标签后的数据包存储至第二队列。2. The hardware accelerator first processes the data packets in the first queue A, adds the tag of the allocated target memory A to the processed data packets, and then stores the tagged data packets in the second queue. After the data packets in the first queue A are processed, the data packets in the first queue B are processed, and the tags of the allocated target memory B are added to the processed data packets, and then the tagged data packets are stored in Second queue.
3、硬件加速器调用DMA控制器将第二队列中的数据包传输至所携带的标签对应的目标存储器,也即是将携带有目标存储器A的标签的数据包传输至目标存储器A,将携带有目标存储器B的标签的数据包传输至目标存储器B。3. The hardware accelerator calls the DMA controller to transfer the data packet in the second queue to the target memory corresponding to the tag carried, that is, the data packet carrying the tag of target memory A is transferred to target memory A, and the data packet carrying the tag is transferred to target memory A. The data packet of the tag of target memory B is transmitted to target memory B.
4、应用处理芯片中的处理核心A处理所关联的目标存储器A中的数据包,处理核心B处理所关联的目标存储器B中的数据包。4. The processing core A in the application processing chip processes the data packets in the associated target memory A, and the processing core B processes the data packets in the associated target memory B.
其中,各个步骤的具体实现方式请参考上述实施例,此处不再赘述。Please refer to the above embodiments for specific implementation methods of each step, which will not be described again here.
在本申请实施例中,通信芯片按照数据包对应的数据类型来确定用于存储该数据包的队列,对应的数据类型的优先级越高,用于存储该数据包的队列的优先级越高,且优先处理高优先级队列中的数据包,以实现基于数据包对应的数据类型确定数据包的处理顺序,使得对应的数据类型的优先级更高的数据包更早得到处理,提高了处理数据包的灵活性,并且降低了高优先级数据类型对应的数据包的处理时延。并且通信芯片将处理完成的同一数据类型对应的数据包存储至同一目标存储器,将不同数据类型对应的数据包存储至不同的目标存储器,且优先级越高的目标存储器所存储的数据包对应的数据类型的优先级越高,使得应用处理芯片按照目标存储器的优先级处理各目标存储器中的数据包,以实现对优先级不同的数据类型对应的数据包区别处理,提高数据包处理的灵活性。In the embodiment of this application, the communication chip determines the queue used to store the data packet according to the data type corresponding to the data packet. The higher the priority of the corresponding data type, the higher the priority of the queue used to store the data packet. , and prioritize the processing of data packets in the high-priority queue to determine the processing order of data packets based on the data type corresponding to the data packet, so that data packets with higher priority of the corresponding data type are processed earlier, improving processing The flexibility of data packets and reducing the processing delay of data packets corresponding to high-priority data types. And the communication chip stores the processed data packets corresponding to the same data type into the same target memory, and stores the data packets corresponding to different data types into different target memories, and the data packets stored in the target memory with higher priority correspond to The higher the priority of the data type, the application processing chip will process the data packets in each target memory according to the priority of the target memory, so as to realize differential processing of data packets corresponding to data types with different priorities and improve the flexibility of data packet processing. .
图6示出了本申请一个示例性实施例提供的一种计算机设备600的结构示意图,参见图6,计算机设备600包括通信芯片601和应用处理芯片602,应用处理芯片602包括多个目标存储器603(图6中以两个目标存储器603为例)。Figure 6 shows a schematic structural diagram of a computer device 600 provided by an exemplary embodiment of the present application. Referring to Figure 6, the computer device 600 includes a communication chip 601 and an application processing chip 602. The application processing chip 602 includes multiple target memories 603. (Two target memories 603 are taken as an example in Figure 6).
通信芯片601,用于确定所接收的数据包对应的数据类型,将数据包存储至多个第一队列中与该数据类型的优先级匹配的第一队列,按照优先级从高到低的顺序,依次处理多个第一队列中的数据包,其中,多个第一队列的优先级不同。The communication chip 601 is used to determine the data type corresponding to the received data packet, and store the data packet into the first queue matching the priority of the data type among the plurality of first queues, in order from high to low priority, Process data packets in multiple first queues in sequence, where the multiple first queues have different priorities.
通信芯片601,还用于为处理完成的数据包添加所分配的目标存储器603的标签,将已添加标签的数据包存储至第二队列,其中同一数据类型对应的数据包所分配的目标存储器603相同,不同数据类型对应的数据包所分配的目标存储器603不同,并且,优先级越高的数据类型对应的数据包所分配的目标存储器603的优先级越高。The communication chip 601 is also used to add a tag of the allocated target memory 603 to the processed data packet, and store the tagged data packet into the second queue, where the target memory 603 allocated for the data packet corresponding to the same data type Similarly, the target memory 603 allocated to the data packets corresponding to different data types is different, and the target memory 603 allocated to the data packet corresponding to the data type with a higher priority has a higher priority.
通信芯片601,还用于将第二队列中的数据包存储至所携带的标签对应的目标存储器603。The communication chip 601 is also used to store the data packets in the second queue into the target memory 603 corresponding to the tag carried.
应用处理芯片602,用于基于多个目标存储器603的优先级,处理多个目标存储器603中的数据包。The application processing chip 602 is configured to process data packets in multiple target memories 603 based on the priorities of the multiple target memories 603 .
其中,通信芯片601和应用处理芯片602实现各功能的具体方式请参考上述方法实施例,此处不再赘述。For specific ways in which the communication chip 601 and the application processing chip 602 implement each function, please refer to the above method embodiments and will not be described again here.
其中,计算机设备600还包括中央处理器,可选地,该中央处理器包括一个或者多个处理核心。The computer device 600 further includes a central processing unit. Optionally, the central processing unit includes one or more processing cores.
可选地,目标存储器包括随机存储器(Random Access Memory,RAM),可选地,目标存储器包括只读存储器(Read-Only Memory,ROM)。可选地,该目标存储器包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。Optionally, the target memory includes random access memory (Random Access Memory, RAM), optionally, the target memory includes read-only memory (Read-Only Memory, ROM). Optionally, the target storage includes non-transitory computer-readable storage medium.
可选地,计算机设备600还包括显示屏。显示屏是用于显示用户界面的显示组件。Optionally, computer device 600 also includes a display screen. The display screen is the display component used to display the user interface.
除此之外,本领域技术人员能够理解,上述附图所示出的计算机设备600的结构并不构成对计算机设备600的限定,计算机设备600包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,计算机设备600还包括麦克风、扬声器、输入单元、传感器、音频电路、电源、蓝牙模块等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the computer device 600 shown in the above figures does not constitute a limitation on the computer device 600. The computer device 600 includes more or fewer components than shown in the figures, or Combining certain parts, or different arrangements of parts. For example, the computer device 600 also includes components such as a microphone, a speaker, an input unit, a sensor, an audio circuit, a power supply, and a Bluetooth module, which will not be described again here.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above serial numbers of the embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments. The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (11)

  1. 一种数据包处理方法,由通信芯片执行,所述通信芯片包括调制解调器和硬件加速器;所述方法包括:A data packet processing method, executed by a communication chip, the communication chip including a modem and a hardware accelerator; the method includes:
    通过所述调制解调器,确定所接收的数据包对应的数据类型,将所述数据包存储至多个第一队列中与所述数据类型的优先级匹配的第一队列,其中,所述多个第一队列的优先级不同;Through the modem, the data type corresponding to the received data packet is determined, and the data packet is stored in a first queue matching the priority of the data type among a plurality of first queues, wherein the plurality of first queues Queues have different priorities;
    通过所述硬件加速器,按照优先级从高到低的顺序,依次处理所述多个第一队列中的数据包。Through the hardware accelerator, the data packets in the plurality of first queues are sequentially processed in order from high to low priority.
  2. 根据权利要求1所述的方法,其中,所述通信芯片还包括直接存储器访问DMA控制器,所述方法还包括:The method according to claim 1, wherein the communication chip further includes a direct memory access DMA controller, the method further includes:
    通过所述硬件加速器,为处理完成的数据包添加所分配的目标存储器的标签,将已添加标签的数据包存储至第二队列,其中同一数据类型对应的数据包所分配的目标存储器相同,不同数据类型对应的数据包所分配的目标存储器不同,并且,优先级越高的数据类型对应的数据包所分配的目标存储器的优先级越高;Through the hardware accelerator, tags of the allocated target memory are added to the processed data packets, and the tagged data packets are stored in the second queue, where the target memories allocated to the data packets corresponding to the same data type are the same and different. The target memory allocated to the data packet corresponding to the data type is different, and the target memory allocated to the data packet corresponding to the data type with a higher priority has a higher priority;
    通过所述硬件加速器,调用所述DMA控制器,将所述第二队列中的数据包存储至所携带的标签对应的目标存储器。Through the hardware accelerator, the DMA controller is called to store the data packets in the second queue into the target memory corresponding to the tag carried.
  3. 根据权利要求2所述的方法,其中,所述通信芯片与应用处理芯片连接,所述目标存储器位于所述应用处理芯片中,所述方法还包括:The method of claim 2, wherein the communication chip is connected to an application processing chip, and the target memory is located in the application processing chip, and the method further includes:
    通过所述硬件加速器,每次将一个数据包存储至对应的目标存储器时,确定当前目标定时器的计时时长,在所述计时时长已达到目标计时时长的情况下,向所述应用处理芯片发送中断信号,并重启所述目标定时器;Through the hardware accelerator, each time a data packet is stored in the corresponding target memory, the timing duration of the current target timer is determined. When the timing duration has reached the target timing duration, a data packet is sent to the application processing chip. Interrupt the signal and restart the target timer;
    其中,所述目标定时器为所述数据包对应的数据类型对应的定时器,并且,优先级越高的数据类型对应的定时器的目标计时时长越短,所述中断信号用于请求所述应用处理芯片处理所述目标存储器中的数据包。Wherein, the target timer is a timer corresponding to the data type corresponding to the data packet, and the higher the priority data type, the shorter the target timing duration of the timer, and the interrupt signal is used to request the The application processing chip processes the data packets in the target memory.
  4. 根据权利要求2所述的方法,其中,所述为处理完成的数据包添加所分配 的目标存储器的标签,包括:The method according to claim 2, wherein adding a label of the allocated target memory to the processed data packet includes:
    确定所述处理完成的数据包的包头中的目标字段;Determine the target field in the header of the data packet after the processing is completed;
    在所述目标字段满足任一数据类型对应的字段条件的情况下,为所述处理完成的数据包添加所述数据类型对应的目标存储器的标签。When the target field satisfies the field condition corresponding to any data type, a tag of the target memory corresponding to the data type is added to the processed data packet.
  5. 根据权利要求1所述的方法,其中,所述按照优先级从高到低的顺序,依次处理所述多个第一队列中的数据包,包括:The method according to claim 1, wherein the sequentially processing the data packets in the plurality of first queues in order from high to low priority includes:
    按照优先级从高到低的顺序,依次确定所述多个第一队列中的每个数据包的包类型,并在当前所确定的包类型为目标类型的情况下,对当前的数据包进行校验。In order of priority from high to low, the packet type of each data packet in the plurality of first queues is determined sequentially, and when the currently determined packet type is the target type, the current data packet is processed check.
  6. 根据权利要求1所述的方法,其中,超可靠低延迟通信URLLC数据的优先级高于增强移动宽带eMBB数据的优先级,所述多个第一队列包括第三队列和第四队列,所述第三队列与所述URLLC数据的优先级匹配,所述第四队列与所述eMBB数据的优先级匹配;The method according to claim 1, wherein the priority of ultra-reliable low-latency communication URLLC data is higher than the priority of enhanced mobile broadband eMBB data, and the plurality of first queues includes a third queue and a fourth queue, and the The third queue matches the priority of the URLLC data, and the fourth queue matches the priority of the eMBB data;
    所述将所述数据包存储至多个第一队列中与所述数据类型的优先级匹配的第一队列,包括:The storing of the data packet into the first queue matching the priority of the data type among the plurality of first queues includes:
    在所述数据包属于所述URLLC数据的情况下,将所述数据包存储至所述第三队列;或者,In the case where the data packet belongs to the URLLC data, the data packet is stored in the third queue; or,
    在所述数据包属于所述eMBB数据的情况下,将所述数据包存储至所述第四队列。If the data packet belongs to the eMBB data, the data packet is stored in the fourth queue.
  7. 一种通信芯片,所述通信芯片包括调制解调器和硬件加速器;A communication chip, the communication chip includes a modem and a hardware accelerator;
    所述调制解调器,用于确定所接收的数据包对应的数据类型,将所述数据包存储至多个第一队列中与所述数据类型的优先级匹配的第一队列,其中,所述多个第一队列的优先级不同;The modem is configured to determine the data type corresponding to the received data packet, and store the data packet into a first queue matching the priority of the data type among a plurality of first queues, wherein the plurality of first queues A queue has different priorities;
    所述硬件加速器,用于按照优先级从高到低的顺序,依次处理所述多个第一队列中的数据包。The hardware accelerator is configured to sequentially process the data packets in the plurality of first queues in order from high to low priority.
  8. 一种数据包处理方法,由计算机设备执行,所述计算机设备包括通信芯片 和应用处理芯片,所述应用处理芯片包括多个目标存储器;所述方法包括:A data packet processing method, executed by a computer device, the computer device including a communication chip and an application processing chip, the application processing chip including a plurality of target memories; the method includes:
    通过所述通信芯片,确定所接收的数据包对应的数据类型,将所述数据包存储至多个第一队列中与所述数据类型的优先级匹配的第一队列,按照优先级从高到低的顺序,依次处理所述多个第一队列中的数据包,其中,所述多个第一队列的优先级不同;Through the communication chip, the data type corresponding to the received data packet is determined, and the data packet is stored in the first queue matching the priority of the data type among the plurality of first queues, from high to low according to the priority. In order, the data packets in the plurality of first queues are processed in sequence, wherein the priorities of the plurality of first queues are different;
    通过所述通信芯片,为处理完成的数据包添加所分配的目标存储器的标签,将已添加标签的数据包存储至第二队列,其中同一数据类型对应的数据包所分配的目标存储器相同,不同数据类型对应的数据包所分配的目标存储器不同,并且,优先级越高的数据类型对应的数据包所分配的目标存储器的优先级越高;Through the communication chip, the tag of the allocated target memory is added to the processed data packet, and the tagged data packet is stored in the second queue, where the target memory allocated to the data packet corresponding to the same data type is the same and different. The target memory allocated to the data packet corresponding to the data type is different, and the target memory allocated to the data packet corresponding to the data type with a higher priority has a higher priority;
    通过所述通信芯片,将所述第二队列中的数据包存储至所携带的标签对应的目标存储器;Through the communication chip, the data packets in the second queue are stored in the target memory corresponding to the tag carried;
    通过所述应用处理芯片,基于所述多个目标存储器的优先级,处理所述多个目标存储器中的数据包。Through the application processing chip, the data packets in the plurality of target memories are processed based on the priorities of the plurality of target memories.
  9. 根据权利要求8所述的方法,其中,所述应用处理芯片包括中央处理器,所述中央处理器包括一个处理核心;The method of claim 8, wherein the application processing chip includes a central processing unit, and the central processing unit includes a processing core;
    所述通过所述应用处理芯片,基于所述多个目标存储器的优先级,处理所述多个目标存储器中的数据包,包括:The application processing chip processes the data packets in the multiple target memories based on the priorities of the multiple target memories, including:
    通过所述处理核心,按照优先级从高到底的顺序,依次处理所述多个目标存储器中的数据包。Through the processing core, the data packets in the multiple target memories are sequentially processed in order of priority from high to low.
  10. 根据权利要求8所述的方法,其中,所述应用处理芯片包括中央处理器,所述中央处理器包括多个处理性能不同的处理核心,每个所述处理核心关联一个所述目标存储器,并且所述处理核心的处理性能越强,所关联的目标存储器的优先级越高;The method according to claim 8, wherein the application processing chip includes a central processing unit, the central processing unit includes a plurality of processing cores with different processing performance, each of the processing cores is associated with one of the target memories, and The stronger the processing performance of the processing core, the higher the priority of the associated target memory;
    所述通过所述应用处理芯片,基于所述多个目标存储器的优先级,处理所述多个目标存储器中的数据包,包括:The application processing chip processes the data packets in the multiple target memories based on the priorities of the multiple target memories, including:
    通过多个所述处理核心,分别处理所关联的目标存储器中的数据包。The data packets in the associated target memory are respectively processed through multiple processing cores.
  11. 一种计算机设备,所述计算机设备包括通信芯片和应用处理芯片,所述 应用处理芯片包括多个目标存储器;A computer device, the computer device includes a communication chip and an application processing chip, the application processing chip includes a plurality of target memories;
    所述通信芯片,用于确定所接收的数据包对应的数据类型,将所述数据包存储至多个第一队列中与所述数据类型的优先级匹配的第一队列,按照优先级从高到低的顺序,依次处理所述多个第一队列中的数据包,其中,所述多个第一队列的优先级不同;The communication chip is used to determine the data type corresponding to the received data packet, and store the data packet into the first queue matching the priority of the data type among the plurality of first queues, in order from high to high priority. Process the data packets in the plurality of first queues in sequence in a lower order, wherein the priorities of the plurality of first queues are different;
    所述通信芯片,还用于为处理完成的数据包添加所分配的目标存储器的标签,将已添加标签的数据包存储至第二队列,其中同一数据类型对应的数据包所分配的目标存储器相同,不同数据类型对应的数据包所分配的目标存储器不同,并且,优先级越高的数据类型对应的数据包所分配的目标存储器的优先级越高;The communication chip is also used to add a tag of the allocated target memory to the processed data packet, and store the tagged data packet into the second queue, where the data packets corresponding to the same data type are allocated the same target memory. , the target memory allocated to the data packets corresponding to different data types is different, and the higher the priority of the target memory allocated to the data packet corresponding to the data type with a higher priority, the higher the priority;
    所述通信芯片,还用于将所述第二队列中的数据包存储至所携带的标签对应的目标存储器;The communication chip is also used to store the data packets in the second queue to the target memory corresponding to the tag carried;
    所述应用处理芯片,用于基于所述多个目标存储器的优先级,处理所述多个目标存储器中的数据包。The application processing chip is configured to process data packets in the multiple target memories based on priorities of the multiple target memories.
PCT/CN2022/142206 2022-06-15 2022-12-27 Data packet processing method, communication chip and computer device WO2023240998A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210677669.9A CN115086248A (en) 2022-06-15 2022-06-15 Data packet processing method, communication chip and computer equipment
CN202210677669.9 2022-06-15

Publications (1)

Publication Number Publication Date
WO2023240998A1 true WO2023240998A1 (en) 2023-12-21

Family

ID=83254241

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/142206 WO2023240998A1 (en) 2022-06-15 2022-12-27 Data packet processing method, communication chip and computer device

Country Status (2)

Country Link
CN (1) CN115086248A (en)
WO (1) WO2023240998A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086248A (en) * 2022-06-15 2022-09-20 Oppo广东移动通信有限公司 Data packet processing method, communication chip and computer equipment
CN116244233A (en) * 2022-12-21 2023-06-09 深圳曦华科技有限公司 Batch data transmission method, related device, storage medium and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269320A (en) * 2013-04-25 2013-08-28 中国人民解放军国防科学技术大学 Data forwarding method and access router
WO2020006867A1 (en) * 2018-07-03 2020-01-09 平安科技(深圳)有限公司 Text message cache queue selection method and device, computer equipment and storage medium
CN111459690A (en) * 2020-04-10 2020-07-28 Oppo广东移动通信有限公司 Data transmitting and receiving control method and device, mobile terminal and storage medium
CN113986570A (en) * 2021-10-21 2022-01-28 傲普(上海)新能源有限公司 Multi-queue-based data classification dynamic sorting transmission control method
CN115086248A (en) * 2022-06-15 2022-09-20 Oppo广东移动通信有限公司 Data packet processing method, communication chip and computer equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040042461A (en) * 2002-11-14 2004-05-20 엘지전자 주식회사 Digital Subscriber Line Service System and Method
GB2485348A (en) * 2010-11-08 2012-05-16 Wireless Tech Solutions Llc Controlling communication from and/or to a mobile communications device in accordance with a relative priority indicated by the type of data packets
CN102035748B (en) * 2010-12-31 2014-07-30 深圳市深信服电子科技有限公司 Application-based traffic control method and controller
US20130304990A1 (en) * 2012-05-08 2013-11-14 International Business Machines Corporation Dynamic Control of Cache Injection Based on Write Data Type
CN105337896A (en) * 2014-07-25 2016-02-17 华为技术有限公司 Message processing method and device
US10284501B2 (en) * 2016-12-08 2019-05-07 Intel IP Corporation Technologies for multi-core wireless network data transmission
CN110943808B (en) * 2018-09-21 2023-02-17 北京小米松果电子有限公司 Data transmission method and device, electronic equipment and storage medium
CN109474578B (en) * 2018-10-17 2023-03-24 平安健康保险股份有限公司 Message checking method, device, computer equipment and storage medium
CN110602796B (en) * 2019-01-29 2023-06-06 北京中科晶上科技股份有限公司 Resource scheduling method on mobile broadband shared channel and electronic equipment
CN114302089A (en) * 2021-12-06 2022-04-08 中国船舶重工集团公司第七0九研究所 Multi-channel video signal cache control method and system based on FPGA

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269320A (en) * 2013-04-25 2013-08-28 中国人民解放军国防科学技术大学 Data forwarding method and access router
WO2020006867A1 (en) * 2018-07-03 2020-01-09 平安科技(深圳)有限公司 Text message cache queue selection method and device, computer equipment and storage medium
CN111459690A (en) * 2020-04-10 2020-07-28 Oppo广东移动通信有限公司 Data transmitting and receiving control method and device, mobile terminal and storage medium
CN113986570A (en) * 2021-10-21 2022-01-28 傲普(上海)新能源有限公司 Multi-queue-based data classification dynamic sorting transmission control method
CN115086248A (en) * 2022-06-15 2022-09-20 Oppo广东移动通信有限公司 Data packet processing method, communication chip and computer equipment

Also Published As

Publication number Publication date
CN115086248A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
WO2023240998A1 (en) Data packet processing method, communication chip and computer device
US20220231962A1 (en) System and method for facilitating data request management in a network interface controller (nic)
US8855128B2 (en) Enhancement of end-to-end network QoS
US8397007B2 (en) Interrupt moderation
US7263103B2 (en) Receive queue descriptor pool
US8375145B2 (en) Doorbell handling with priority processing function
US7337253B2 (en) Method and system of routing network-based data using frame address notification
US7072294B2 (en) Method and apparatus for controlling network data congestion
US20020013821A1 (en) Method and network device for creating buffer structures in shared memory
US20140369194A1 (en) Flow control with reduced buffer usage for network devices
US20060268936A1 (en) Communication apparatus and method thereof
CN108494817A (en) Data transmission method, relevant apparatus and system
WO2020143237A1 (en) Dma controller and heterogeneous acceleration system
US9438537B2 (en) Method for cut through forwarding data packets between electronic communication devices
US7554908B2 (en) Techniques to manage flow control
WO2022251998A1 (en) Communication method and system supporting multiple protocol stacks
TWI465075B (en) Apparatus for processing packets and system for using the same
CN108984324B (en) FPGA hardware abstraction layer
CN115955441A (en) Management scheduling method and device based on TSN queue
CN108259381B (en) Data frame processing method and device and vehicle-mounted unit
CN110874334A (en) USB transmission system, USB device and host supporting USB transmission
WO2024060247A1 (en) Data exchange method and apparatus based on bluetooth communication, and device and storage medium
US8842696B1 (en) Guaranteed rate port scheduler
US20220360651A1 (en) Method and system for sequencing user data packets
JP6785009B2 (en) Communication device and control method of communication device

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: 22946662

Country of ref document: EP

Kind code of ref document: A1