An information processing method, apparatus, storage medium, and program product

By dynamically adjusting the ACK transmission strategy of the receiving device, the problem of the ACK information transmission scheme being unable to adapt and adjust is solved, achieving wider applicability and higher transmission efficiency.

CN123123337APending Publication Date: 2026-11-17CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611506999.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing ACK information transmission schemes cannot dynamically and adaptively adjust, resulting in limited applicability.

Method used

The receiving device determines the comparison result between the target received quantity and the quantity threshold, and sends an acknowledgment message using the target sending strategy, including carrying the acknowledgment message in the information to be transmitted or switching to the target response mode, and dynamically adjusting the ACK sending strategy.

Benefits of technology

It enables dynamic adaptive transmission of ACK information, expands the applicable scope, reduces the number of network packets, and improves transmission efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123123337A_ABST
    Figure CN123123337A_ABST
Patent Text Reader

Abstract

This application provides an information processing method, comprising: receiving a pending request sent by a second device; determining a target reception quantity of a currently received target request; and sending a first confirmation message for the pending request to the second device based on a comparison result between the target reception quantity and a target quantity threshold, and a target transmission strategy corresponding to the comparison result. This solves the problem that the confirmation message transmission scheme cannot be dynamically and adaptively adjusted. This application also provides an information processing device, a storage medium, and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to information processing technology in the field of computer technology, and more particularly to an information processing method, device, storage medium and program product. Background Technology

[0002] In the implementation of the Transmission Control Protocol (TCP), there are two main strategies for sending acknowledgment (ACK) packets: one is the explicit setting mode, where the application layer sets options such as TCP_QUICKACK or TCP_NODELAY through the socket settings system function call to forcibly change the ACK sending behavior; the other is a fixed delay strategy, where the TCP protocol stack uses a delayed ACK mechanism by default. However, the ACK information sending schemes in these technologies rely on the application to actively set or use a fixed delay strategy according to its own business logic, which results in a lack of dynamic adaptive adjustment and limited applicability. Summary of the Invention

[0003] This application provides an information processing method, device, storage medium, and program product, which solves the problem that the ACK sending scheme in related technologies cannot be dynamically and adaptively adjusted, and greatly expands the scope of applicability.

[0004] The technical solution of this application embodiment is implemented as follows: An information processing method, the method being applied to a first device, comprising: Receive pending requests sent by the second device; Determine the target number of received target requests; Based on the comparison result between the target received quantity and the target quantity threshold, and the target sending strategy corresponding to the comparison result, a first confirmation message for the pending request is sent to the second device.

[0005] In the above scheme, sending a first confirmation message for the pending request to the second device based on the comparison result of the target received quantity and the target quantity threshold, and the target sending strategy corresponding to the comparison result, includes: If the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold, and there is currently a first transmission information to be sent to the second device, the first confirmation message is carried in the first transmission information; The first information to be transmitted, carrying the first confirmation message, is sent to the second device through the application layer.

[0006] The method in the above scheme further includes: If the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold, and there is currently no first transmission information to be sent to the second device, the first confirmation message is sent to the second device through the application layer.

[0007] The method in the above scheme further includes: If the comparison result indicates that the target number of received messages is greater than the target number threshold, switch to target response mode and delete the value of the target field for the confirmation message; wherein, the target field is used to characterize the original sending strategy corresponding to the first confirmation message; The first confirmation message is carried in the second information to be transmitted, and the second information to be transmitted, carrying the first confirmation message, is sent to the second device through the application layer.

[0008] In the above scheme, determining the number of target requests currently received includes: Determine the first reception time of the received request and the second reception time of the most recent received request from the current time. Calculate the difference between the first reception time and the second reception time; If the difference satisfies the target time threshold, the historical number of the target requests received before the current time is obtained; wherein, the target requests include requests that are received consecutively in time and whose time interval between them and the requests received at the previous time satisfies the target time threshold. The target number of received data is obtained by summing the historical received data.

[0009] The method in the above scheme further includes: If no request is received from the second device within the target duration, exit the target response mode; Send a second confirmation message to the second device.

[0010] The method in the above scheme further includes: If the request to be processed is a data receiving request, and the current receiving rate of the data receiving request is greater than the target rate, the first confirmation message is sent to the second device based on the original sending strategy represented by the value of the target field of the confirmation message.

[0011] An information processing apparatus, the apparatus comprising: A receiving unit is used to receive pending requests sent by a second device; The determining unit is used to determine the target reception count of the currently received target requests; The processing unit is configured to send a first confirmation message for the pending request to the second device based on the comparison result between the target received quantity and the target quantity threshold, and the target sending strategy corresponding to the comparison result.

[0012] An information processing device, the information processing device comprising: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the information processing program in the memory to implement the steps of the information processing method described above.

[0013] A computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the information processing method described above.

[0014] A computer program product comprising a computer program that, when executed by a processor, implements the aforementioned information processing method.

[0015] The information processing method, device, storage medium, and program product provided in this application embodiment can receive a pending request sent by a second device, determine the target number of currently received target requests, and send a first confirmation message for the pending request to the second device based on the comparison result between the target number of received requests and the target number threshold, and the target sending strategy corresponding to the comparison result. In this way, after receiving the pending request, a corresponding confirmation message can be sent according to the comparison result between the target number of currently received target requests and the target number threshold, and the target sending strategy corresponding to the comparison result, instead of using a fixed delay strategy or requiring pre-setting as in related technologies. This achieves adaptive sending of ACK information based on the number of currently received requests and the corresponding target sending strategy, thereby solving the problem that the ACK information sending scheme in related technologies cannot be dynamically and adaptively adjusted, and greatly expanding the scope of applicability. Attached Figure Description

[0016] Figure 1 This is a flowchart illustrating an information processing method provided in an embodiment of this application; Figure 2 This is a schematic diagram of the structure of an information processing device provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a first device provided in an embodiment of this application. Detailed Implementation

[0017] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0018] It should be understood that the phrases "embodiments of this application" or "foreign embodiments" throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "embodiments of this application" or "in the foreign embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0019] Unless otherwise specified, any step in the embodiments of this application performed by the electronic device may be executed by the processor of the electronic device. It is also worth noting that the embodiments of this application do not limit the order in which the electronic device performs the following steps. Furthermore, the methods used to process data in different embodiments may be the same or different methods. It should also be noted that any step in the embodiments of this application can be executed independently by the electronic device; that is, when the electronic device performs any step in the following embodiments, it may not depend on the execution of other steps.

[0020] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application.

[0021] This application provides an information processing method, which can be applied to a first device, as described above. Figure 1 As shown, the information processing method may include the following steps: Step 101: Receive the pending request sent by the second device.

[0022] In this context, the first device can refer to a receiving device, and the second device can refer to a sending device; the request to be processed can be a processing request sent by the sending device to the receiving device; it should be noted that the request to be processed can include any processing request. In one feasible embodiment, the request to be processed can be a request for data processing such as data sending or data reading.

[0023] In other embodiments of this application, if the first device may include a server, the second device may include a client; it should be noted that the first device may also include a client, and the second device may include a server.

[0024] Step 102: Determine the target reception count of the target requests that have been received so far.

[0025] Here, the target request can refer to a request received by the first device that meets certain conditions. Specifically, the target request can refer to a request that meets specific time conditions in terms of reception time.

[0026] In this embodiment, the target received quantity can refer to the number of target requests that the first device has currently received. The target received quantity can be determined based on the reception time of the pending requests to be processed, to determine whether to include the currently received pending requests. It should be noted that if the reception time of the currently received pending requests meets the corresponding time requirements, then the pending requests are determined to be target requests, and the number of target requests that have been received is thus determined to obtain the target received quantity.

[0027] Step 103: Based on the comparison result of the target received quantity and the target quantity threshold, and the target sending strategy corresponding to the comparison result, send a first confirmation message for the pending request to the second device.

[0028] Specifically, the first device can compare the determined target number of receptions with the target number threshold to obtain a comparison result; then, according to the comparison result and the target transmission strategy corresponding to the comparison result, it sends a first confirmation message for the pending request to the second device.

[0029] It should be noted that the first confirmation message can refer to the first ACK, which is used to inform the second device that the first device has successfully received the request to be processed; the target quantity threshold can be the counting threshold required to determine the target sending strategy corresponding to the ACK, and the target quantity threshold can be set in advance according to actual needs and specific application scenarios.

[0030] In one feasible embodiment, the target number threshold can be represented by TCP_PINGPONG_THRESH, and the value of the target number threshold can be 3; the target received number can be represented by pingpong_cnt, which is an unsigned 8-bit integer counter with an initial value of 0.

[0031] In other embodiments of this application, when the request to be processed includes a request for data transmission, it can be sent through the write, send, or sendmsg functions, which will eventually call the underlying data segment transmission function. In one feasible embodiment, the request can be sent by calling the tcp_output_segment function in the kernel or a similarly named function in the user-space protocol stack. Furthermore, the solution of this application can insert the detection logic of the solution of this application to determine the comparison result between the target reception quantity and the target quantity threshold at the entry point of the sending function, so as to send a first confirmation message to the second device according to the comparison result and the target transmission strategy corresponding to the comparison result.

[0032] Based on the foregoing embodiments, in other embodiments of this application, step 103 can be implemented in the following ways: A1. If the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold, and there is currently a first information to be transmitted to the second device, the first confirmation message is carried in the first information to be transmitted.

[0033] The first device can compare the target number of received data with the target number threshold to obtain a comparison result. If the comparison result is that the target number of received data is less than or equal to the target number threshold, it means that the target response mode cannot be switched at this time. The first device can send a separate first confirmation message or send the first confirmation message along with the first information to be transmitted to the second device.

[0034] It should be noted that if the target number of received messages is less than or equal to the target number threshold, and if a first message to be transmitted that needs to be sent to the second device is detected in the first device, then the first confirmation message is encapsulated in the first message to be transmitted.

[0035] A2. Send the first information to be transmitted, carrying the first confirmation message, to the second device through the application layer.

[0036] Specifically, the application layer of the first device can send the first information to be transmitted, carrying the first confirmation message, to the second device. In this way, the first device can send the first confirmation message to the second device at the same time as sending the first information to be transmitted. Thus, the second device receives the ACK message for the pending request without having to send additional data packets, thereby reducing the number of network packets.

[0037] In other embodiments of this application, step 103 described above can also be implemented in the following ways: A3. If the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold, and there is currently no first transmission information to be sent to the second device, a first confirmation message is sent to the second device through the application layer.

[0038] It should be noted that if the target number of received messages is less than or equal to the target number threshold, and if it is detected that there is no first message to be transmitted to the second device in the first device, then a separate ACK message needs to be sent to the second device. At this time, the application layer of the first device will send a separate first confirmation message to the second device to avoid the second device being unable to know whether the first device has successfully received the pending request.

[0039] In other embodiments of this application, step 103 described above can also be implemented in the following ways: A4. If the comparison result indicates that the target received quantity is greater than the target quantity threshold, switch to target response mode and delete the value of the target field for the confirmation message.

[0040] The target field is used to characterize the original sending strategy corresponding to the first confirmation message.

[0041] In this embodiment, if the comparison result shows that the target received quantity is greater than the target quantity threshold, it indicates that it is necessary to switch to the target response mode so that the first confirmation message can be sent in this target response mode. The target response mode can refer to the request-response mode.

[0042] Specifically, when the first device determines that the target number of received data is greater than the target number threshold, it can switch to the target response mode and clear all the values ​​of the target fields corresponding to the acknowledgment message to ensure that the original sending strategy is invalidated. In this way, it will not actively arrange the sending of any independent ACK packets because of the received data. After receiving the request message, the protocol stack is completely silent, neither sending an immediate ACK nor starting a delayed ACK timer, but waiting for the application layer to generate response data.

[0043] In one feasible implementation, all bits related to immediate acknowledgment (TF_ACK_NOW) and delayed acknowledgment (TF_ACK_DELAY) in the ack_flags field of the connection control block can be cleared to zero; in addition, if a delayed ACK timer has been started, it can be canceled.

[0044] It should be noted that the switch to target response mode can be controlled by setting the value of the pingpong_mode field. pingpong_mode is a boolean value; to switch to target response mode, set the value of pingpong_mode to 1, and to not switch to target response mode, set the value of pingpong_mode to 0.

[0045] A5. Carry the first confirmation message in the second information to be transmitted, and send the second information to be transmitted carrying the first confirmation message to the second device through the application layer.

[0046] Specifically, after the original ACK sending strategy fails, the first device can wait for the second information to be transmitted to the second device, and when the second information arrives, encapsulate the first confirmation message in the second information and send the second information carrying the first confirmation message to the second device through the application layer.

[0047] It should be noted that in a real request-response scenario, when the application layer calls the send function to send the second piece of information to be transmitted, the TCP sending path will automatically check whether there are any unacknowledged packets, and set the ACK flag and fill in the correct acknowledgment number in the TCP header of the second piece of information to be transmitted, thereby realizing piggyback acknowledgment of the request to be processed, reducing the number of network packets and ensuring reliability. The request-response scenario can include Hypertext Transfer Protocol (HTTP) scenarios, Remote Procedure Call (RPC) scenarios, database query scenarios, etc.

[0048] In other embodiments of this application, step 102 described above can be implemented in the following ways: Determine the first reception time of the pending request and the second reception time of the most recent received request from the current time.

[0049] Calculate the difference between the first reception time and the second reception time.

[0050] Specifically, the first device can obtain the current high-precision timestamp (microsecond level), read the second reception time lrcvtime from the connection control block, and calculate the difference delta between the first reception time and the second reception time.

[0051] If the difference meets the target time threshold, obtain the historical number of target requests received before the current time.

[0052] The target request includes requests that, in terms of time sequence, satisfy the target time threshold between the time interval received and the request received at the previous time, and are received consecutively in time.

[0053] The target number of received data is obtained by summing up the historical received data.

[0054] It should be noted that when the current connection is not in a high-speed reception state, the relationship between the difference and the target time threshold can be judged. If the difference is less than the target time threshold, it means that the sending of the request to be processed occurred in a very short time after the data was received (typically less than 100 microseconds), which meets the timing characteristics of the "send immediately after receiving" request-response mode. At this time, the accumulation logic can be executed, that is, the historical received quantity is incremented by 1.

[0055] In one feasible embodiment, the current connection is not in a high-speed reception state by setting the value of the field is_in_high_speed_rx to 0; the target time threshold can be represented by PINGPONG_ATO_US; is_in_high_speed_rx is a boolean value, and PINGPONG_ATO_US is a configurable global constant.

[0056] It should be noted that through this "gradual" accumulation mechanism, only when multiple consecutive request-response transactions are completed in a very short time can the counter reach the target number threshold and activate the target response mode; while occasional single events (such as ACKs triggered by retransmission timers, window update messages, etc.) will at most increment the counter by 1, without causing mode switching, thus avoiding misjudgment.

[0057] In other embodiments of this application, the method may further include: If no request is received from the second device within the target duration, exit the target response mode; Send a second confirmation message to the second device.

[0058] Specifically, if no other requests are received from the second device within the target duration starting from the current moment, the operation of exiting the target response mode is performed, and an independent ACK message is sent to the second device.

[0059] In this embodiment, the fast timer `tcp_fasttmr` of the protocol stack can be reused. This timer typically executes every 250 milliseconds. The fast timer's processing function iterates through all established connections. For each connection, it first checks if the value of `pingpong_mode` is 1. If it is 1, it determines whether a request has been received within the target duration from the current moment. If the received request has exceeded the target duration or has not been received, it is assumed that the second device has stopped sending requests, and an exit from the target response mode is performed. Specifically, the value of `pingpong_cnt` can be set to zero, `pingpong_mode` can be set to false, the `TF_ACK_DELAY` flag in `ack_flags` can be reset, and the `tcp_send_ack` function can be immediately called to send an independent ACK packet (i.e., a second acknowledgment message) to acknowledge all previously received but unacknowledged data. Afterward, the connection resumes standard TCP behavior, and delayed or immediate ACKs can be sent normally. Thus, this zeroing-out exit mechanism ensures closed-loop safety during mode switching and avoids the ACK hanging problem.

[0060] In other embodiments of this application, the method may further include: If the request to be processed is a data reception request, and the current reception rate of the data reception request is greater than the target rate, a first confirmation message is sent to the second device based on the original sending strategy represented by the value of the target field of the confirmation message.

[0061] Specifically, when the receiving rate of a received request exceeds the target rate, indicating that the current connection is in a high-speed receiving state, and the request to be processed is a data receiving request, a second acknowledgment message can be sent to the second device according to the original ACK sending strategy represented by the value of the target field. This effectively prevents entry into the request-response mode, protecting transmission efficiency.

[0062] It should be noted that this can be achieved by adding a loop through all established connections in the processing function of the slow timer tcp_slowtmr; for each connection, read the current cumulative total number of received bytes rx_bytes_total, and subtract the previously saved last_rx_bytes from the current cumulative total number of received bytes to obtain the increment of received bytes in the current period. Divide this increment by the timer period (500 milliseconds) to convert it into a receive rate per second; if the receive rate per second exceeds the preset threshold RX_SPEED_THRESHOLD, then set is_in_high_speed_rx to true (i.e., set its value to 1), at which point it can be determined that the system is in a high-speed receive state.

[0063] In other embodiments, a typical client-server request-response interaction process is used as an example. In this case, the first device is the server, and the second device is the client. After the connection between the client and server is established, the initial state is: pingpong_cnt=0, pingpong_mode=false, is_in_high_speed_rx=false, and lrcvtime is the handshake completion time. The client sends the first request packet. After receiving it, the server updates lrcvtime, the application layer processes the request and generates a response, and calls the send function. During the sending path, if delta is detected to be less than the target time threshold, pingpong_cnt is incremented from 0 to 1. An independent ACK is sent or the ACK is sent in the first pending information. At this point, there are 2 network packets. After receiving the response, the client immediately sends the second request, which is also processed by the server, and pingpong_cnt is incremented to 2. After the third request-response transaction is completed, pingpong_cnt is incremented to 3, reaching the threshold, and pingpong_mode is set to true. Starting with the fourth request, the server detects that pingpong_mode is true in the receive path, so it clears all ACK send flags. After the application layer generates a response, it sends the second transmission information carrying the ACK through the send path. If the client stops sending requests at some point, the fast timer detects a timeout after 250 milliseconds, clears pingpong_mode to zero, and sends an independent ACK, restoring the connection to standard behavior.

[0064] It should be noted that this application can be applied to typical RPC or database request-response scenarios.

[0065] The information processing method provided in the embodiments of this application, after receiving a request to be processed, can send a corresponding confirmation message based on the comparison result between the target number of currently received target requests and the target number threshold and the target sending strategy corresponding to the comparison result, instead of only being able to use a fixed delay strategy or needing to be set in advance as in related technologies. This achieves adaptive sending of ACK information based on the number of currently received requests and the corresponding target sending strategy, thereby solving the problem that the ACK information sending scheme in related technologies cannot be dynamically and adaptively adjusted, and greatly expanding the scope of applicability.

[0066] Based on the foregoing embodiments, embodiments of this application provide an information processing apparatus that can be applied to... Figure 1 In the information processing method provided in the corresponding embodiment, refer to Figure 2 As shown, the information processing device 2 may include: a receiving unit 21, a determining unit 22, and a processing unit 23, wherein: The receiving unit 21 is used to receive the pending request sent by the second device; Determining unit 22 is used to determine the target reception quantity of the target request that has been received so far; The processing unit 23 is used to send a first confirmation message for the request to be processed to the second device based on the comparison result of the target received quantity and the target quantity threshold and the target sending strategy corresponding to the comparison result.

[0067] In other embodiments of this application, the processing unit 23 is further configured to perform the following steps: If the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold, and there is currently a first information to be transmitted to the second device, the first confirmation message is carried in the first information to be transmitted. The application layer sends the first information to be transmitted, carrying the first confirmation message, to the second device.

[0068] In other embodiments of this application, the processing unit 23 is further configured to send a first confirmation message to the second device through the application layer if the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold and there is currently no first information to be transmitted to the second device.

[0069] In other embodiments of this application, the processing unit 23 is further configured to perform the following steps: If the comparison result indicates that the target number of received messages is greater than the target number threshold, switch to target response mode and delete the value of the target field for the confirmation message; whereby the target field is used to characterize the original sending strategy corresponding to the first confirmation message; The first confirmation message is carried in the second information to be transmitted, and the second information to be transmitted carrying the first confirmation message is sent to the second device through the application layer.

[0070] In other embodiments of this application, the determining unit 22 is further configured to perform the following steps: Determine the first reception time of the pending request and the second reception time of the most recent received request from the current time. Calculate the difference between the first reception time and the second reception time; If the difference meets the target time threshold, obtain the historical number of target requests received before the current time; wherein, the target request includes requests that meet the target time threshold in terms of time sequence and are received consecutively in time. The target number of received data is obtained by summing up the historical received data.

[0071] In other embodiments of this application, the processing unit 23 is further configured to perform the following steps: If no request is received from the second device within the target duration, exit the target response mode; Send a second confirmation message to the second device.

[0072] In other embodiments of this application, the processing unit 23 is further configured to send a first confirmation message to the second device if the request to be processed is a data receiving request and the current receiving rate of the data receiving request is greater than the target rate, based on the original sending strategy represented by the value of the target field of the confirmation message.

[0073] It should be noted that the specific implementation process of the steps performed by each unit in the embodiments of this application can be referred to Figure 1 The implementation process of the information processing method provided in the corresponding embodiments will not be described in detail here.

[0074] The information processing apparatus provided in the embodiments of this application, upon receiving a request to be processed, can send a corresponding confirmation message based on the comparison result between the target number of currently received target requests and the target number threshold, and the target sending strategy corresponding to the comparison result. Instead of using a fixed delay strategy or requiring pre-setting as in related technologies, it achieves adaptive sending of ACK information based on the number of currently received requests and the corresponding target sending strategy. This solves the problem that the ACK information sending scheme in related technologies cannot be dynamically and adaptively adjusted, and greatly expands the scope of applicability.

[0075] Based on the foregoing embodiments, embodiments of this application provide a first device that can be applied to... Figure 1 In the information processing method provided in the corresponding embodiment, refer to Figure 3 As shown, the first device 3 may include: a processor 31, a memory 32, and a communication bus 33, wherein: Communication bus 33 is used to realize the communication connection between processor 31 and memory 32; The memory 32 is used to store computer programs that can run on the processor 31; Processor 31 is used to run computer programs to perform the following steps: Receive pending requests sent by the second device; Determine the target number of received target requests; Based on the comparison result between the target number of received requests and the target number threshold, and the target sending strategy corresponding to the comparison result, a first confirmation message for the pending request is sent to the second device.

[0076] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: If the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold, and there is currently a first information to be transmitted to the second device, the first confirmation message is carried in the first information to be transmitted. The application layer sends the first information to be transmitted, carrying the first confirmation message, to the second device.

[0077] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: If the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold, and there is currently no first transmission information to be sent to the second device, a first confirmation message is sent to the second device through the application layer.

[0078] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: If the comparison result indicates that the target number of received messages is greater than the target number threshold, switch to target response mode and delete the value of the target field for the confirmation message; whereby the target field is used to characterize the original sending strategy corresponding to the first confirmation message; The first confirmation message is carried in the second information to be transmitted, and the second information to be transmitted carrying the first confirmation message is sent to the second device through the application layer.

[0079] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: Determine the first reception time of the pending request and the second reception time of the most recent received request from the current time. Calculate the difference between the first reception time and the second reception time; If the difference meets the target time threshold, obtain the historical number of target requests received before the current time; wherein, the target request includes requests that meet the target time threshold in terms of time sequence and are received consecutively in time. The target number of received data is obtained by summing up the historical received data.

[0080] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: If no request is received from the second device within the target duration, exit the target response mode; Send a second confirmation message to the second device.

[0081] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: If the request to be processed is a data reception request, and the current reception rate of the data reception request is greater than the target rate, a first confirmation message is sent to the second device based on the original sending strategy represented by the value of the target field of the confirmation message.

[0082] It should be noted that a detailed description of the steps performed by the processor can be found in [reference needed]. Figure 1 The information processing methods provided in the corresponding embodiments will not be described in detail here.

[0083] The first device provided in the embodiments of this application, after receiving a request to be processed, can send a corresponding confirmation message based on the comparison result between the target number of currently received target requests and the target number threshold and the target sending strategy corresponding to the comparison result, instead of only being able to use a fixed delay strategy or needing to be set in advance as in related technologies. This realizes the adaptive sending of ACK information based on the number of currently received requests and the corresponding target sending strategy, thereby solving the problem that the ACK information sending scheme in related technologies cannot be dynamically and adaptively adjusted, and greatly expanding the scope of applicability.

[0084] Based on the foregoing embodiments, embodiments of this application provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors 31 to implement... Figure 1 The corresponding embodiments provide the steps of the information processing method.

[0085] Based on the foregoing embodiments, embodiments of this application provide a computer program product, including a computer program that can be executed by a processor 31 to perform... Figure 1 The corresponding embodiments provide the steps of the information processing method.

[0086] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0087] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0088] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0089] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0090] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. An information processing method, characterized in that, The method is applied to a first device and includes: Receive pending requests sent by the second device; Determine the target number of received target requests; Based on the comparison result between the target received quantity and the target quantity threshold, and the target sending strategy corresponding to the comparison result, a first confirmation message for the pending request is sent to the second device.

2. The method according to claim 1, characterized in that, The step of sending a first confirmation message for the pending request to the second device based on the comparison result between the target received quantity and the target quantity threshold, and the target sending strategy corresponding to the comparison result, includes: If the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold, and there is currently a first transmission information to be sent to the second device, the first confirmation message is carried in the first transmission information; The first information to be transmitted, carrying the first confirmation message, is sent to the second device through the application layer.

3. The method according to claim 2, characterized in that, The method further includes: If the comparison result indicates that the target received quantity is less than or equal to the target quantity threshold, and there is currently no first transmission information to be sent to the second device, the first confirmation message is sent to the second device through the application layer.

4. The method according to claim 3, characterized in that, The method further includes: If the comparison result indicates that the target number of received messages is greater than the target number threshold, switch to target response mode and delete the value of the target field for the confirmation message; wherein, the target field is used to characterize the original sending strategy corresponding to the first confirmation message; The first confirmation message is carried in the second information to be transmitted, and the second information to be transmitted, carrying the first confirmation message, is sent to the second device through the application layer.

5. The method according to claim 1, characterized in that, Determining the number of target requests currently received includes: Determine the first reception time of the received request and the second reception time of the most recent received request from the current time. Calculate the difference between the first reception time and the second reception time; If the difference satisfies the target time threshold, the historical number of the target requests received before the current time is obtained; wherein, the target requests include requests that are received consecutively in time and whose time interval between them and the requests received at the previous time satisfies the target time threshold. The target number of received data is obtained by summing the historical received data.

6. The method according to claim 4, characterized in that, The method further includes: If no request is received from the second device within the target duration, exit the target response mode; Send a second confirmation message to the second device.

7. The method according to claim 1, characterized in that, The method further includes: If the request to be processed is a data receiving request, and the current receiving rate of the data receiving request is greater than the target rate, the first confirmation message is sent to the second device based on the original sending strategy represented by the value of the target field of the confirmation message.

8. An information processing device, characterized in that, The device includes: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute an information processing program in the memory to implement the steps of the information processing method as described in any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the information processing method as described in any one of claims 1-7.

10. A computer program product, the computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the information processing method according to any one of claims 1-7.