IP packet processing method and device, electronic equipment, chip and storage medium
By combining the number and timing of interrupt notifications, the system power consumption increased caused by frequent interrupt notifications is solved, and the stable operation and low power consumption of the equipment are achieved.
Patent Information
- Application Number
- CN202410437961.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2025-07-25
AI Technical Summary
In the prior art, frequent interrupt notifications are sent, resulting in frequent wake-up of the device, increasing system power consumption.
By determining the target number of interrupt notifications and the target timing, the interrupt requests are merged to reduce the number of interrupt notifications sent and the number of device wake-up times.
It reduces the impact of system interruption and power consumption, and improves the operational service stability of equipment.
Smart Images

Figure CN120378997A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communications, and in particular, to an IP packet processing method, apparatus, electronic device, chip, and storage medium. Background Art
[0002] In the related art, interruption notifications can be used to notify a device to process information. When there are many interruption notifications, it is necessary to frequently send interruption notifications to wake up the device, resulting in frequent interruption of services and increased system power consumption. Summary of the Invention
[0003] The present disclosure provides an IP packet processing method, apparatus, electronic device, chip, and storage medium to solve the problems in the related art.
[0004] According to a first aspect embodiment of the present disclosure, an IP packet processing method is proposed, and the method includes: determining a target transmission number and a target transmission timing of an interruption notification; and sending the interruption notification to a wireless access point according to the target transmission number and the target transmission timing, where the interruption notification is used to notify the wireless access point to process IP packet parsing information.
[0005] In some embodiments of the present disclosure, the method further includes: obtaining an IP packet queue from the wireless access point, where the IP packet queue includes at least one IP packet; and parsing the IP packet queue to obtain an IP packet parsing information queue, where the IP packet parsing information queue includes at least one IP packet parsing information.
[0006] In some embodiments of the present disclosure, determining the target transmission number and the target transmission timing of the interruption notification includes: determining respective transmission timings corresponding to interruption requests of each IP packet parsing information queue; determining the transmission timing as the target transmission timing when the transmission timing meets a first condition; determining an identifier of each IP packet parsing information queue; and determining the target transmission number according to the identifier and / or the target transmission timing.
[0007] In some embodiments of the present disclosure, determining the respective transmission timings corresponding to the interruption requests of each IP packet parsing information queue includes: determining a first quantity of at least one IP packet and a second quantity of at least one IP packet parsing information; generating an interruption request when a relationship between the first quantity and the second quantity meets a second condition; and determining the transmission timing of the interruption request according to a generation timing of the generated interruption request and a first time delay.
[0008] In some embodiments of the present disclosure, the second condition is: the first quantity is equal to the second quantity; or, the first quantity is not equal to the second quantity, and a first duration is greater than a first time threshold, where the first duration is a duration from an arrival time of a last IP packet parsing information in the IP packet parsing information queue to a current time.
[0009] In some embodiments of the present disclosure, determining the target number of transmissions according to the identifier and / or the target transmission timing includes: when the identifiers of at least two IP packet parsing information queues are the same, determining the target number of transmissions as a first value.
[0010] In some embodiments of the present disclosure, determining the target number of transmissions according to the identifier and / or the target transmission timing includes: when the identifiers of at least two IP packet parsing information queues are different, determining whether the generation timings corresponding to the interrupt requests of the at least two IP packet parsing information queues respectively satisfy a third condition; when the generation timings corresponding to the interrupt requests respectively satisfy the third condition, determining the number of transmissions of the interrupt notification as a second value, where the second value is the number of IP packet parsing information queues whose generation timings satisfy the third condition and whose identifiers are different.
[0011] In some embodiments of the present disclosure, the third condition is that the generation timing corresponding to the interrupt request is earlier than or equal to the target transmission timing.
[0012] A second aspect embodiment of the present disclosure provides an IP packet processing device, including: a first transceiver unit, configured to send an IP packet parsing information queue to a wireless access point; a processing unit, configured to determine the target number of transmissions and the target transmission timing of an interrupt notification; a second transceiver unit, configured to send the interrupt notification to the wireless access point according to the target number of transmissions and the target transmission timing, where the interrupt notification is used to notify the wireless access point to process the IP packet parsing information.
[0013] A third aspect embodiment of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect embodiment of the present disclosure.
[0014] A fourth aspect embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause a computer to execute the method described in the first aspect embodiment of the present disclosure.
[0015] A fifth aspect embodiment of the present disclosure provides a chip, characterized by including at least one processor and a communication interface; the communication interface is configured to receive a signal input to the chip or a signal output from the chip, and the processor communicates with the communication interface and implements the method described in the first aspect embodiment of the present disclosure through logic circuits or by executing code instructions.
[0016] In summary, the IP packet processing method proposed in this disclosure can reduce the number of interrupt notifications sent and the number of times the device is awakened by determining the target number of times to send an interrupt notification and the target sending timing, and can reduce the interruption impact on the running services and the system power consumption.
[0017] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit this disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with this disclosure, and are used together with the specification to explain the principles of this disclosure and do not constitute an improper limitation to this disclosure.
[0019] Figure 1 It is a schematic flowchart of an IP packet processing method provided by an embodiment of this disclosure;
[0020] Figure 2 It is a schematic flowchart of an IP packet processing method provided by an embodiment of this disclosure;
[0021] Figure 3 It is a schematic flowchart of an IP packet processing method provided by an embodiment of this disclosure;
[0022] Figure 4 It is a schematic diagram of an application scenario provided by an embodiment of this disclosure;
[0023] Figure 5 It is a schematic flowchart of a method for aggregating 5G Modem uplink IP packet transmission interrupts provided by an embodiment of this disclosure;
[0024] Figure 6 It is a schematic flowchart of a method for aggregating 5G Modem uplink IP packet transmission interrupts provided by an embodiment of this disclosure;
[0025] Figure 7 It is a schematic flowchart of a method for aggregating 5G Modem uplink IP packet transmission interrupts provided by an embodiment of this disclosure;
[0026] Figure 8 It is a schematic flowchart of a method for aggregating 5G Modem uplink IP packet transmission interrupts provided by an embodiment of this disclosure;
[0027] Figure 9 It is a schematic diagram of the structure of an IP packet processing device provided by an embodiment of this disclosure;
[0028] Figure 10 It is a schematic diagram of the structure of an electronic device provided by an embodiment of this disclosure;
[0029] Figure 11Schematic diagram of the chip structure provided by the embodiments of the present disclosure. Detailed implementation manners
[0030] The embodiments of the present disclosure will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present disclosure, and should not be construed as a limitation of the present disclosure.
[0031] Exemplarily, in the field of mobile phones, a wireless access point (AP) can be docked to a modem. Currently, IP packet transfer carries information and result interaction through a queue. The specific process includes: an IP packet transfer requester provides the IP packet information to be transferred through the queue; an executor records the IP packet transfer result through the queue; the execution result is returned; an interrupt notifies the transfer requester to process the result. In order not to wake up the transfer requester's CPU frequently, interrupt aggregation is required to reduce the number of interrupts.
[0032] The related art simply aggregates the execution results of multiple pieces of information without considering time factors, and can only aggregate the interrupt notifications of the same queue, and the number of interrupts is still relatively large.
[0033] Therefore, in order to solve the above problems, the present disclosure proposes an IP packet processing method. By setting a timer, the number of interrupt notifications sent can be further reduced. Specifically: in the scenario of high-speed IP packet transmission, the number of interrupt transmissions can be further aggregated to avoid interrupts on the AP side caused by the Modem side; in the scenario of low-speed IP packet transmission, the number of interrupts from the Modem side to the AP side can be reduced, and the number of times the AP is woken up and the AP wake-up time can be reduced.
[0034] The specific content of this method is as follows.
[0035] Figure 1 Schematic flowchart of an IP packet processing method provided by the embodiments of the present disclosure. As Figure 1 shown, this method can be executed by an electronic device. Optionally, this method can be executed by a modem or a product including a modem. This method may include the following steps.
[0036] Step 101, send the IP packet parsing information queue to the wireless access point.
[0037] In some embodiments, taking the execution by a modem as an example, the modem can obtain an IP packet queue from the wireless access point. The IP packet queue includes at least one IP packet. In other words, the IP packets can be transmitted in the form of a queue.
[0038] In some embodiments, taking the modem execution as an example, the modem may parse the IP packet queue to obtain an IP packet parsing information queue, and the IP packet parsing information queue includes at least one IP packet parsing information.
[0039] In some embodiments, taking the modem execution as an example, the modem may carry the IP packet parsing information to obtain an IP packet parsing information queue.
[0040] In some embodiments, taking the modem execution as an example, the modem may send the IP packet parsing information queue to the wireless access point.
[0041] Step 102, determine the target transmission times and the target transmission timing of the interrupt notification.
[0042] In some embodiments, the transmission timing corresponding to each interrupt request of the IP packet parsing information queue may be determined.
[0043] In some embodiments, determining the transmission timing corresponding to each interrupt request of the IP packet parsing information queue includes: determining the first quantity of at least one IP packet and the second quantity of at least one IP packet parsing information; when the relationship between the first quantity and the second quantity satisfies the second condition, generating an interrupt request; and determining the transmission timing of the interrupt request according to the generation timing of the generated interrupt request and the first time delay.
[0044] In some embodiments, the second condition may be: the first quantity is equal to the second quantity; or, the first quantity is not equal to the second quantity, and the first duration is greater than the first time threshold, where the first duration is the duration from the arrival time of the last IP packet parsing information in the IP packet parsing information queue to the current time.
[0045] In the above embodiments, the first quantity may be the total quantity of IP packets in the IP packet queue, and the second quantity may be the quantity of IP packet parsing information in the IP packet parsing information queue.
[0046] In other words, when the first quantity is equal to the second quantity, it means that the wireless access point has received all the IP packet parsing information, and at this time, an interrupt request may be generated to request the sending of an interrupt notification.
[0047] In some embodiments, when the first quantity is not equal to the second quantity and the first duration is greater than the first time threshold, it means that the transmission of the IP packet parsing information times out, and at this time, an interrupt request may be generated to request the generation of an interrupt notification.
[0048] Among them, the first time threshold may be set according to the actual situation, and the present disclosure does not limit it.
[0049] In some embodiments, after an interruption request is generated, the interruption notification may not be sent to the wireless access point immediately. Instead, after a first time delay, the interruption notification may be sent to notify the wireless access point to process the IP packet parsing information. That is, the generation time of the interruption request plus the first time delay can obtain the sending time of the interruption request.
[0050] In some embodiments, the first time delay can be set according to actual applications, and the present disclosure places no restrictions thereon.
[0051] In some embodiments, when the sending time meets a first condition, the sending time can be determined as the target sending time, where the first condition can be that the sending time of this interruption request is earlier than or equal to the sending times of other interruption requests. That is, the sending time with the earliest sending time can be determined as the target sending time.
[0052] In some embodiments, the identifier of each IP packet parsing information queue can be determined. For example, an IP packet parsing information queue can be bound to an interruption vector number. The identifier of the IP packet parsing information queue can be used to identify the interruption vector number bound to the IP packet parsing information queue. This interruption vector number can be assigned by the wireless access point to the modem. When the wireless access point receives the IP parsing queue, it can determine the program for processing the IP packet parsing information queue according to the interruption vector number bound to the IP packet parsing information queue, and use this program to process the IP packet parsing information.
[0053] For example, multiple IP packet parsing information queues can be bound to the same interruption vector number. That is, one program can process multiple IP packet parsing information queues. For example, the identifiers of the IP packet parsing information queues bound to the same interruption vector number are the same.
[0054] In some embodiments, the target sending times can be determined according to the identifier and / or the target sending time.
[0055] Step 103: Send an interruption notification to the wireless access point according to the target sending times and the target sending time.
[0056] In some embodiments, the interruption notification can be used to notify the wireless access point to process the IP packet parsing information.
[0057] In some embodiments, taking the execution of the modem as an example, the modem can send an interruption notification to the wireless access point at the target sending time according to the target sending times.
[0058] In summary, in the above embodiments of the present disclosure, by considering time factors and setting a timer to determine the target sending times and the target sending time of the interruption notification, the interruption notifications can be further aggregated, the number of interruption notifications sent can be reduced, the interruption impact on running services can be reduced, and the system power consumption can be reduced.
[0059] Figure 2 This is a schematic flowchart of an IP packet processing method provided by an embodiment of the present disclosure. As Figure 2 shown, based on Figure 1 the embodiment shown, this method further explains the above step 102, and this method includes the following steps.
[0060] Step 201, when the identifiers of at least two IP packet parsing information queues are the same, determine that the target transmission count is a first value.
[0061] In some embodiments, by way of example, the first value may be 1.
[0062] In some embodiments, when the identifiers of two IP packet parsing information queues are the same, it means that the two IP packet parsing information queues are bound to the same interrupt vector and can be processed by the same program. At this time, only one interrupt notification needs to be sent to process both IP packet parsing information queues.
[0063] By way of example, when the identifiers of two IP packet parsing information queues are the same, it can be determined whether the generation times corresponding to the interrupt requests of at least two IP packet parsing information queues respectively satisfy a third condition, where the third condition may be that the generation time corresponding to the interrupt request is earlier than or equal to the target transmission time.
[0064] In other words, the first generated interrupt request will not directly send an interrupt notification, but wait for a first time delay. The interrupt requests generated within the first time delay can be sent simultaneously with the first interrupt request at the target transmission time. When the identifiers of two IP packet parsing information queues are the same, the interrupt requests of these two IP packet parsing information queues can be combined into one interrupt notification, and this interrupt notification can be sent at the target transmission time. At this time, the target transmission count of the interrupt notification is 1.
[0065] By way of example, when the generation times corresponding to the interrupt requests of at least two IP packet parsing information queues with the same identifier respectively satisfy the third condition, the interrupt requests of the IP packet parsing information queues that satisfy the third condition and have the same identifier can be aggregated to form one interrupt notification, and this interrupt notification can be sent at the target transmission time.
[0066] By way of example, when the generation times corresponding to the interrupt requests of at least two IP packet parsing information queues with the same identifier do not satisfy the third condition, it means that the previous target transmission time has ended, and the interrupt requests of this IP packet parsing information queue can wait to be sent at the next target transmission time.
[0067] In summary, in the above embodiments of the present application, when multiple IP packet parsing information queues are bound to the same interrupt vector, interrupt requests that meet the conditions can be fused, the number of interrupt notifications sent can be reduced, the interruption impact on the running services can be reduced, and the system power consumption can be lowered.
[0068] Figure 3 It is a schematic flowchart of an IP packet processing method provided by an embodiment of the present disclosure. As Figure 3 shown, based on Figure 1 the embodiment shown, this method further explains the above step 102, and this method includes the following steps.
[0069] Step 301, when the identifiers of at least two IP packet parsing information queues are different, determine whether the generation times corresponding to the interrupt requests of the at least two IP packet parsing information queues respectively meet the third condition.
[0070] In some embodiments, when the identifiers of two IP packet parsing information queues are different, it means that the bound interrupt vectors are different, and different programs need to be used to process the two IP packet parsing information queues respectively.
[0071] In some embodiments, when the identifiers of at least two IP packet parsing information queues are different, it can be determined whether the generation times corresponding to the interrupt requests of the at least two IP packet parsing information queues respectively meet the third condition, where the third condition may be that the generation time corresponding to the interrupt request is earlier than or equal to the target sending time.
[0072] Exemplarily, when the generation times corresponding to the interrupt requests of the IP packet parsing information queues with different identifiers respectively meet the third condition, the interrupt requests can be uniformly sent at the target sending time. Since the programs for processing the IP packet parsing information are different, interrupt notifications need to be sent to their corresponding programs. At this time, the interrupt notifications can be sent at the target sending time, and the number of interrupt notifications sent is the second value.
[0073] Exemplarily, when the generation times corresponding to the interrupt requests of the IP packet parsing information queues with different identifiers do not meet the third condition, it means that the interrupt application indicates that the previous target sending time has ended, and the interrupt request of this IP packet parsing information queue can wait to be sent at the next target sending time.
[0074] In other words, when multiple IP parsing information queues are bound to different interrupt vectors, interrupt requests with similar sending times can be uniformly sent, which can wake up the wireless access point at the same time and reduce the number of times the wireless access point is woken up.
[0075] Step 302: When the generation times corresponding to the interruption requests respectively meet the third condition, determine that the number of times of sending the interruption notification is the second value.
[0076] In some embodiments, the second value is the number of IP packet parsing information queues whose generation times meet the third condition and whose identifiers are different.
[0077] In other words, the interruption requests for the IP packet parsing information queues with the same identifier can be combined into one interruption notification. For the IP packet parsing information queues with different identifiers, interruption notifications need to be generated separately, and multiple interruption notifications with close sending times can be sent uniformly, which can reduce the number of interruptions to the running services and the number of times of waking up the wireless access point.
[0078] The technical solution of the present disclosure will be further described in detail below in combination with specific application embodiments.
[0079] The following is a method for aggregating 5G Modem uplink IP packet transmission interruptions provided by an embodiment of the present disclosure. The application scenario of this method is as Figure 4 shown. The AP is docked with the Modem. Currently, the data interaction between the AP and the Modem for transporting IP packets is carried out through queues; for the IP packet transportation process, generally through the following steps:
[0080] Step 1: The AP side provides IP packet information.
[0081] Step 2: The Modem side parses the IP packet information and transports the IP packet.
[0082] Step 3: The Modem side generates the IP packet transportation result.
[0083] Step 4: The Modem side updates the IP packet transportation result to the AP side and generates an interruption notification according to the interruption aggregation strategy for the AP side to process.
[0084] In this scenario, the interruption aggregation strategy provided in this example can reduce the number of interruptions from the Modem side to the AP side and the number of interruption wake-up times.
[0085] The solution of this example is used to solve the interruption update of the Modem aggregating the IP packet transportation result queue when the AP is docked with the Modem for IP packet transmission, and mainly completes the following interruption aggregation:
[0086] 1. Interruption aggregation with one queue bound to one CPU Core.
[0087] 2. Interruption aggregation of multiple queues bound to the same CPU Core queue.
[0088] The complete solution of this example is as follows.
[0089] I. In the case of binding an interrupt vector to one queue.
[0090] 1. As Figure 5 shown, when the IP packet parsing information received on the AP side changes from empty to non-empty, an interrupt is sent.
[0091] 2. As Figure 6 shown, when the RQ accumulation times out, an interrupt is sent.
[0092] 3. As Figure 7 shown, time aggregation is performed on the transmission times of different interrupt vectors. Specifically, when a queue interrupt occurs, the interrupt time aggregation unit starts a timer. When the timer times out, the different interrupts of different interrupt vectors received during this period are sent separately.
[0093] II. As Figure 8 shown, in the case of binding multiple queues to one interrupt vector.
[0094] 1. Each queue still generates an interrupt request according to the change from empty to non-empty and accumulation timeout.
[0095] 2. When multiple queues generate interrupt requests simultaneously, only one interrupt is sent.
[0096] 3. For different queue RINGs bound to one interrupt vector, the interrupt requests generated within a very short interval are aggregated into one: for interrupt time aggregation, a timer is started. During the timeout period of the timer, the different interrupt requests of the same interrupt vector received are aggregated into one interrupt and sent.
[0097] 4. Time aggregation for different interrupt vectors
[0098] When interrupts of different interrupt vectors occur, the interrupt time aggregation unit starts a timer. When the timer times out, the interrupts of different interrupt vectors received during this period are sent separately.
[0099] In summary, in the above examples of the present disclosure, in the scenario of AP docking with Modem for IP packet transmission, the number of Modem interrupt transmissions and configuration time can be reduced; by reducing the number of Modem interrupts to the AP, the interruption impact on the AP running services can be reduced; by reducing the number of AP interrupt wake-ups, the overall system power consumption can be reduced; by reducing the number and time of configuring interrupt transmissions on the Modem side, the power consumption on the Modem side can be reduced.
[0100] Figure 9 It is a schematic structural diagram of an IP packet processing device 900 provided by an embodiment of the present disclosure. As Figure 9As shown in the figure, the device includes: a first transceiver unit 910, configured to send an IP packet parsing information queue to a wireless access point; a processing unit 920, configured to determine a target transmission count and a target transmission timing of an interruption notification; and a second transceiver unit 930, configured to send the interruption notification to the wireless access point according to the target transmission count and the target transmission timing, where the interruption notification is used to notify the wireless access point to process the IP packet parsing information.
[0101] In some embodiments, the first transceiver unit 910 may also be configured to obtain an IP packet queue from the wireless access point, where the IP packet queue includes at least one IP packet.
[0102] In some embodiments, the processing unit 920 may also be configured to parse the IP packet queue to obtain an IP packet parsing information queue, where the IP packet parsing information queue includes at least one IP packet parsing information.
[0103] In some embodiments, the processing unit 920 may also be configured to determine a respective transmission timing corresponding to each interruption request of each IP packet parsing information queue; in a case where the transmission timing satisfies a first condition, determine the transmission timing as the target transmission timing; determine an identifier of each IP packet parsing information queue; and determine the target transmission count according to the identifier and / or the target transmission timing.
[0104] In some embodiments, the processing unit 920 may also be configured to determine a first quantity of at least one IP packet and a second quantity of at least one IP packet parsing information; when a relationship between the first quantity and the second quantity satisfies a second condition, generate an interruption request; and determine a transmission timing of the interruption request according to a generation timing of the generated interruption request and a first time delay.
[0105] In some embodiments, the second condition is: the first quantity is equal to the second quantity; or, the first quantity is not equal to the second quantity, and a first duration is greater than a first time threshold, where the first duration is a duration from an arrival time of a last IP packet parsing information in the IP packet parsing information queue to a current time.
[0106] In some embodiments, the processing unit 920 may also be configured to, in a case where identifiers of at least two IP packet parsing information queues are the same, determine the target transmission count as a first value.
[0107] In some embodiments, the processing unit 920 may also be configured to, in a case where identifiers of at least two IP packet parsing information queues are different, determine whether respective generation timings of interruption requests of the at least two IP packet parsing information queues satisfy a third condition; and in a case where the respective generation timings of the interruption requests satisfy the third condition, determine a transmission count of the interruption notification as a second value, where the second value is a quantity of IP packet parsing information queues whose generation timings satisfy the third condition and whose identifiers are different.
[0108] In some embodiments, the third condition is that the generation timing corresponding to the interrupt request is earlier than or equal to the target transmission timing.
[0109] In summary, the IP packet processing device 900 can determine the target transmission times and the target transmission timing of the interrupt notification by considering time factors, so as to further aggregate the interrupt notifications, reduce the number of interrupt notifications sent, reduce the interruption impact on the AP operation service, and reduce the overall power consumption of the system.
[0110] In the above embodiments provided by the present application, the methods and devices provided by the embodiments of the present application are introduced. To implement the various functions in the methods provided by the above embodiments of the present application, the electronic device may include a hardware structure and software modules, and implement the above various functions in the form of a hardware structure, software modules, or a combination of a hardware structure and software modules. A certain function among the above various functions may be executed in the form of a hardware structure, software module, or a combination of a hardware structure and software module.
[0111] Figure 10 FIG. 1000 is a block diagram of an electronic device 1000 for implementing the above method according to an exemplary embodiment. For example, the electronic device 1000 may be a mobile phone, a computer, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0112] Referring to Figure 10 , the electronic device 1000 may include one or more of the following components: a processing component 1002, a memory 1004, a power supply component 1006, a multimedia component 1008, an audio component 1010, an input / output (I / O) interface 1012, a sensor component 1014, and a communication component 1016.
[0113] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0114] The memory 1004 is configured to store various types of data to support the operation of the electronic device 1000. Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, and the like. The memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0115] The power supply component 1006 provides power to various components of the electronic device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1000.
[0116] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the electronic device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0117] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 1000 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, the audio component 1010 further includes a speaker for outputting audio signals.
[0118] The I / O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0119] The sensor assembly 1014 includes one or more sensors for providing status assessment of various aspects for the electronic device 1000. For example, the sensor assembly 1014 can detect the on / off state of the electronic device 1000, the relative positioning of components, such as the display and keypad of the electronic device 1000. The sensor assembly 1014 can also detect a change in the position of the electronic device 1000 or a component of the electronic device 1000, the presence or absence of user contact with the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and the temperature change of the electronic device 1000. The sensor assembly 1014 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1014 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0120] The communication component 1016 is configured to facilitate communication between the electronic device 1000 and other devices in a wired or wireless manner. The electronic device 1000 can access a wireless network based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 5G NR (New Radio), or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0121] In an exemplary embodiment, the electronic device 1000 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0122] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 1004 including instructions, and the above instructions can be executed by the processor 1020 of the electronic device 1000 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0123] Embodiments of the present disclosure also propose a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause a computer to execute the methods described in the above embodiments of the present disclosure.
[0124] Embodiments of the present disclosure also propose a communication system, which includes a terminal and a network device. The terminal is used to implement the methods described in the embodiments of the first aspect of the present disclosure, and the network device can be used to implement the methods described in the embodiments of the second aspect of the present disclosure.
[0125] In some embodiments, the above communication system further includes a console, and the console can send modification instructions to the terminal to control the filtering information adopted by the terminal, etc.
[0126] Figure 11 is a schematic structural diagram of a chip 1100 for implementing the above method shown according to an exemplary embodiment. Refer to Figure 11 , the chip 1100 includes a communication interface 1101 and at least one processor 1102. The communication interface 1101 is used to receive signals input to the chip 1100 or signals output from the above chip 1100, and the processor 1102 communicates with the communication interface 1101 and implements the methods described in the above embodiments of the present disclosure through logic circuits or by executing code instructions.
[0127] It should be noted that the terms "first", "second", etc. in the description, claims and drawings of the present disclosure are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0128] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "schematic embodiments", "examples", "specific examples" or "some examples" means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any at least one embodiment or example.
[0129] Any process or method description represented in a flowchart or otherwise described herein can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a specific logical function or process. The scope of the preferred embodiments of the present invention includes additional implementations where functions may be executed not in the order shown or discussed, including in a substantially simultaneous manner according to the functions involved or in a reverse order, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.
[0130] The logic and / or steps represented in a flowchart or otherwise described herein, for example, can be considered a sequenced list of executable instructions for implementing a logical function and can be embodied specifically in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, a system including a processing module, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device. As used in this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection having at least one wire (control method), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable medium on which a program can be printed, as the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or otherwise appropriate processing if necessary, and then stored in a computer memory.
[0131] It should be understood that various parts of the embodiments of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
[0132] Those of ordinary skill in the art can understand that all or part of the steps carried out in the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0133] In addition, in each of the embodiments of the present invention, each functional unit can be integrated in a processing module, or each unit can exist physically alone, or two or more units can be integrated in one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disc, etc.
[0134] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. An IP packet processing method, characterized in that, The method includes: Sending an IP packet parsing information queue to a wireless access point; Determining a target transmission count and a target transmission timing of an interruption notification; Sending the interruption notification to the wireless access point according to the target transmission count and the target transmission timing, where the interruption notification is used to notify the wireless access point to process the IP packet parsing information.
2. The method according to claim 1, characterized in that The method further includes: Obtaining an IP packet queue from the wireless access point, where the IP packet queue includes at least one IP packet; Parsing the IP packet queue to obtain an IP packet parsing information queue, where the IP packet parsing information queue includes at least one IP packet parsing information.
3. The method according to claim 1, wherein The determining the target transmission count and the target transmission timing of the interruption notification includes: Determining the respective transmission timings corresponding to the interruption requests of each IP packet parsing information queue; When the transmission timing satisfies a first condition, determining the transmission timing as the target transmission timing; Determining the identifier of each IP packet parsing information queue; Determining the target transmission count according to the identifier and / or the target transmission timing.
4. The method according to claim 3, wherein The determining the respective transmission timings corresponding to the interruption requests of each IP packet parsing information queue includes: Determining a first quantity of the at least one IP packet and a second quantity of the at least one IP packet parsing information; Generating the interruption request when the relationship between the first quantity and the second quantity satisfies a second condition; Determining the transmission timing of the interruption request according to the generation timing of the generated interruption request and a first time delay.
5. The method according to claim 3, characterized in that, The second condition is: The first quantity is equal to the second quantity; or, The first quantity is not equal to the second quantity, and a first duration is greater than a first time threshold, where the first duration is the duration from the arrival time of the last IP packet parsing information in the IP packet parsing information queue to the current time.
6. The method according to claim 3, wherein The determining the target transmission count according to the identifier and / or the target transmission timing includes: When the identifiers of at least two IP packet parsing information queues are the same, determining the target transmission count as a first value.
7. The method according to claim 3, wherein The determining the target transmission count according to the identifier and / or the target transmission timing includes: When the identifiers of at least two IP packet parsing information queues are different, determining whether the respective generation timings of the interruption requests of the at least two IP packet parsing information queues satisfy a third condition; When the respective generation timings of the interruption requests satisfy the third condition, determining the transmission count of the interruption notification as a second value, where the second value is the number of IP packet parsing information queues whose generation timings satisfy the third condition and whose identifiers are different.
8. The method according to claim 7, wherein The third condition is: The generation timing corresponding to the interruption request is earlier than or equal to the target transmission timing.
9. An IP packet processing device, the device includes: A first transceiver unit, configured to send an IP packet parsing information queue to a wireless access point; A processing unit, configured to determine a target transmission count and a target transmission timing of an interruption notification; A second transceiver unit, configured to send an interruption notification to the wireless access point according to the target number of transmissions and the target transmission opportunity, where the interruption notification is used to notify the wireless access point to process the IP packet parsing information.
10. An electronic device, characterized in that, Comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1-8.
11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
12. A chip, characterized in that, Comprising at least one processor and a communication interface; the communication interface is configured to receive signals input to the chip or signals output from the chip, and the processor communicates with the communication interface and implements the method according to any one of claims 1 to 8 through logic circuits or by executing code instructions.