Retransmission rate real-time statistical method, live broadcast data processing method and equipment

By obtaining the requested domain name in the data transmission request, counting the retransmission characteristics in real time and calculating the retransmission rate, the problem that the retransmission rate statistics in the prior art cannot meet the real-time nature, real-time statistics and efficient application of the retransmission rate are achieved.

CN120378324APending Publication Date: 2025-07-25HANGZHOU ALICLOUD FEITIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410099032.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-23
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, the statistical method of retransmission rate is mainly carried out offline, and cannot meet application scenarios with high real-time requirements.

Method used

By obtaining the requested domain name in the data transmission request, retransmission characteristics (such as the total number of retransmission bytes and the actual size of the transferred file) are counted in real time, and the domain name statistical structure matching the requested domain name is determined, and the retransmission rate is calculated based on these characteristics and structures.

Benefits of technology

Real-time statistics of retransmission rates are realized, real-time requirements of different application scenarios, and the scope of application and application scenarios of the method are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120378324A_ABST
    Figure CN120378324A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a retransmission rate real-time statistical method, a live broadcast data processing method and equipment, and the method comprises the steps: obtaining a data transmission request which corresponds to a request domain name; based on the request domain name, carrying out real-time statistics on retransmission characteristics in the data transmission process, the retransmission characteristics including the total retransmission byte number and the actual size of a transmission file; determining a domain name statistical structure matched with the request domain name; and determining a retransmission rate corresponding to the data transmission request based on the retransmission feature and the domain name statistical structure. In the embodiment of the invention, the retransmission characteristic is counted in real time through the request domain name, the domain name statistical structure matched with the request domain name is determined, and then the retransmission rate corresponding to the data transmission request is determined based on the retransmission characteristic and the domain name statistical structure, so that the real-time statistical operation on the retransmission rate of the domain name dimension can be effectively realized; therefore, the real-time requirements of different application scenes can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network technologies, and in particular, to a method for real-time statistics of retransmission rate, a method for processing live broadcast data, and a device therefor. Background Art

[0002] Currently, the retransmission rate is often obtained through offline statistics. Specifically, the statistical operation may include the following steps: obtaining offline the record log corresponding to a single Transmission Control Protocol (TCP), and analyzing and processing the record log to obtain the retransmission rate.

[0003] However, the retransmission rate obtained through the offline method cannot meet the application scenarios with high real-time requirements. Summary of the Invention

[0004] Embodiments of this application provide a method for real-time statistics of retransmission rate, a method for processing live broadcast data, and a device therefor, which can realize real-time statistics of the retransmission rate and meet the real-time requirements of different application scenarios.

[0005] In a first aspect, embodiments of this application provide a method for real-time statistics of retransmission rate, including:

[0006] Obtaining a data transmission request, where the data transmission request corresponds to a requested domain name;

[0007] Based on the requested domain name, real-time statistics of retransmission characteristics during the data transmission process are performed, where the retransmission characteristics include: total retransmission bytes, actual size of the transmitted file;

[0008] Determining a domain name statistical structure matching the requested domain name;

[0009] Based on the retransmission characteristics and the domain name statistical structure, determining the retransmission rate corresponding to the data transmission request.

[0010] In a second aspect, embodiments of this application provide a device for real-time statistics of retransmission rate, including:

[0011] A first obtaining module, configured to obtain a data transmission request, where the data transmission request corresponds to a requested domain name;

[0012] A first statistical module, configured to perform real-time statistics of retransmission characteristics during the data transmission process based on the requested domain name, where the retransmission characteristics include: total retransmission bytes, actual size of the transmitted file;

[0013] A first determining module, configured to determine a domain name statistical structure matching the requested domain name;

[0014] The first processing module is configured to determine a retransmission rate corresponding to the data transmission request based on the retransmission feature and the domain name statistical structure.

[0015] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor; wherein, the memory is used to store one or more computer instructions, and when the one or more computer instructions are executed by the processor, the real-time statistical method of the retransmission rate shown in the first aspect above is implemented.

[0016] In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, and when the computer program is executed by a computer, the real-time statistical method of the retransmission rate shown in the first aspect above is implemented.

[0017] In a fifth aspect, an embodiment of the present invention provides a computer program product, including: a computer program, when the computer program is executed by a processor of an electronic device, the processor is caused to execute the steps in the real-time statistical method of the retransmission rate shown in the first aspect above.

[0018] In a sixth aspect, an embodiment of the present application provides a method for processing live broadcast data, including:

[0019] Obtaining a transmission request for live broadcast data, where the transmission request corresponds to a requested domain name;

[0020] Based on the requested domain name, real-time statistics of retransmission features during data transmission are performed, and the retransmission features include: total retransmission bytes and the actual size of the transmitted file;

[0021] Determining a domain name statistical structure that matches the requested domain name;

[0022] Based on the retransmission feature and the domain name statistical structure, determining a retransmission rate corresponding to the data transmission request;

[0023] Controlling the transmission operation of the live broadcast data based on the retransmission rate.

[0024] In a seventh aspect, an embodiment of the present application provides a device for processing live broadcast data, including:

[0025] A second acquisition module for acquiring a transmission request for live broadcast data, where the transmission request corresponds to a requested domain name;

[0026] A second statistics module for real-time statistics of retransmission features during data transmission based on the requested domain name, and the retransmission features include: total retransmission bytes and the actual size of the transmitted file;

[0027] A second determination module for determining a domain name statistical structure that matches the requested domain name;

[0028] The second determination module is further configured to determine a retransmission rate corresponding to the data transmission request based on the retransmission feature and the domain name statistical structure;

[0029] The second processing module is configured to control the transmission operation of the live broadcast data based on the retransmission rate.

[0030] In an eighth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor; wherein, the memory is used to store one or more computer instructions, and when the one or more computer instructions are executed by the processor, the processing method of the live broadcast data shown in the sixth aspect above is implemented.

[0031] In a ninth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, and when the computer program is executed by a computer, the processing method of the live broadcast data shown in the sixth aspect above is implemented.

[0032] In a tenth aspect, an embodiment of the present invention provides a computer program product, including: a computer program, when the computer program is executed by a processor of an electronic device, the processor is caused to execute the steps in the processing method of the live broadcast data shown in the sixth aspect above.

[0033] The real-time statistical method for the retransmission rate, the processing method and device for live broadcast data provided by the embodiments of the present application obtain a data transmission request, and based on the requested domain name, the retransmission feature corresponding to the data transmission request is statistically analyzed in real time, and then a domain name statistical structure matching the requested domain name is determined, and based on the retransmission feature and the domain name statistical structure, the retransmission rate corresponding to the data transmission request is determined. In this way, the real-time statistical operation of the retransmission rate in the domain name dimension can be effectively realized, so as to meet the real-time requirements of different application scenarios, further improve the applicable range and application scenarios of the method, and is conducive to the market promotion and application. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0035] Figure 1 It is a schematic diagram of the principle of a real-time statistical method for the retransmission rate provided by an embodiment of the present application;

[0036] Figure 2 It is a schematic flowchart of a real-time statistical method for the retransmission rate provided by an embodiment of the present application;

[0037] Figure 3 A schematic flow chart for providing, according to an embodiment of the present application, the retransmission characteristics corresponding to the data transmission request in real time based on the requested domain name;

[0038] Figure 4 A schematic flow chart for providing a method for real-time statistical calculation of a retransmission rate according to an embodiment of the present application;

[0039] Figure 5 A schematic diagram of a retransmission rate curve provided according to an embodiment of the present application;

[0040] Figure 6 A schematic flow chart for providing another method for real-time statistical calculation of a retransmission rate according to an embodiment of the present application;

[0041] Figure 7 A schematic diagram for providing control over data transmission operations based on the network transmission link according to an embodiment of the present application;

[0042] Figure 8 A schematic flow chart for providing yet another method for real-time statistical calculation of a retransmission rate according to an embodiment of the present application;

[0043] Figure 9 A schematic flow chart for providing still another method for real-time statistical calculation of a retransmission rate according to an embodiment of the present application;

[0044] Figure 10 A schematic flow chart for providing a method for real-time retransmission rate statistics based on a domain name according to an application embodiment of the present application;

[0045] Figure 11 A schematic diagram of the principle of a method for processing live broadcast data provided according to an embodiment of the present application;

[0046] Figure 12 A schematic flow chart for providing a method for processing live broadcast data according to an embodiment of the present application;

[0047] Figure 13 A schematic diagram of the structure of a device for real-time statistical calculation of a retransmission rate provided according to an embodiment of the present application;

[0048] Figure 14 For Figure 13 A schematic diagram of the structure of an electronic device corresponding to the device for real-time statistical calculation of a retransmission rate provided in the illustrated embodiment;

[0049] Figure 15 A schematic diagram of the structure of a device for processing live broadcast data provided according to an embodiment of the present application;

[0050] Figure 16 For Figure 15Schematic diagram of the structure of an electronic device corresponding to the live data processing device provided by the illustrated embodiment. Detailed implementation manners

[0051] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0052] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The singular forms "a", "the", and "said" used in the embodiments of the present application and the appended claims are also intended to include the plural forms unless the context clearly dictates otherwise. "Plural" generally includes at least two, but does not exclude the case of including at least one.

[0053] It should be understood that the term "and / or" used herein is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.

[0054] Depending on the context, the words "if" and "when" as used herein may be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detecting (stated condition or event)" may be interpreted as "when determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)".

[0055] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a commodity or system including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such commodity or system. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the commodity or system including the element.

[0056] In addition, the step timing in the following method embodiments is only an example and not strictly limited.

[0057] In order to understand the specific implementation process and principle of the technical solution in this embodiment, the related technologies will be briefly described as follows:

[0058] In the field of data transmission, the retransmission rate is a key metric in a Content Delivery Network (CDN). This metric can not only reflect the quality of data transmission and the product experience of customers, but may also identify or imply problems or serious defects in node links or software functions. Therefore, the statistical operation of the retransmission rate attracts the continuous attention of platform maintainers or R & D personnel.

[0059] Currently, the retransmission rate is often obtained through offline statistical methods. The offline retransmission rate statistical operation mainly includes processes such as obtaining a single TCP connection record log, output at the end of the connection, remote collection, secondary processing, data aggregation, and data analysis, so as to obtain the retransmission rate. However, the above method of statistically calculating the retransmission rate not only has a too long statistical link and consumes too much time, but also needs to consider cost factors and may collect data during off-peak hours. Therefore, the retransmission rate obtained through offline methods cannot meet the requirements of application scenarios with high real-time requirements.

[0060] To solve the above technical problems, this embodiment provides a real-time statistical method for the retransmission rate, a processing method and device for live broadcast data. As shown in the attached Figure 1 figures, the execution subject of the real-time statistical method for the retransmission rate is the real-time statistical device 200 for the retransmission rate. The real-time statistical device 200 for the retransmission rate can be communicatively connected to the client 100 to implement the real-time statistical operation of the retransmission rate.

[0061] Specifically, the real-time statistics device 200 for the retransmission rate can be any programmable computing device with the real-time statistics ability of a certain retransmission rate. In addition, the basic structure of the real-time statistics device 200 for the retransmission rate may include: at least one processor. The number of processors depends on the configuration and type of the real-time statistics device 200 for the retransmission rate. The real-time statistics device 200 for the retransmission rate may also include a memory, which can be volatile, such as RAM, or non-volatile, such as read-only memory (ROM), flash memory, etc., or may also include both types at the same time. The memory usually stores an operating system (OS), one or more application programs, and may also store program data, etc. In addition to the processing unit and the memory, the real-time statistics device 200 for the retransmission rate also includes some basic configurations, such as: network card chips, IO buses, display components, and some peripheral devices, etc. Optionally, some peripheral devices may include, for example: keyboards, mice, input pens, printers, etc. Other peripheral devices are well known in the art and will not be elaborated here.

[0062] In addition, the client 100 can be implemented as at least one of the following: VR client, video client, vehicle terminal, smart wearable device, handheld terminal, tablet computer, personal computer, etc. A network connection can be established between the client 100 and the real-time statistics device 200 for the retransmission rate, and this network connection can be a wireless or wired network connection. If the client 100 and the real-time statistics device 200 for the retransmission rate are communicatively connected, the network mode of this mobile network can be any one of 4G (LTE), 4G+ (LTE+), 5G, 5.5G, 6G, etc.

[0063] In the embodiment of the present application, the client 100 is used for users to perform applications to implement the real-time statistics operation of the retransmission rate. Specifically, the client 100 can display an interactive interface, and a data transmission request can be generated and obtained through the interactive interface. The data transmission request corresponds to a request domain name. After obtaining the data transmission request, in order to implement the real-time statistics operation of the retransmission rate, the data transmission request can be sent to the real-time statistics device 200 for the retransmission rate.

[0064] The real-time statistics device 200 for retransmission rate is used to obtain the data transmission request sent by the client 100. The data transmission request is used to implement the data transmission operation, and the data transmission request can correspond to a requested domain name. In order to be able to perform real-time statistics on the retransmission rate during the data transmission process, the retransmission characteristics corresponding to the data transmission request can be statistically obtained in real time based on the requested domain name corresponding to the data transmission request. The retransmission characteristics at least include: the total retransmission bytes and the actual size of the transmitted file. In order to obtain the retransmission rate information in terms of connection dimension and domain name dimension, a domain name statistical structure matching the requested domain name can be determined. The domain name statistical structure is a globally stored domain name structure pre-stored, and then the retransmission rate corresponding to the data transmission request can be determined based on the retransmission characteristics and the domain name statistical structure. In this way, it effectively realizes the real-time statistics operation of the retransmission rate in terms of connection dimension or domain name dimension, so as to meet the application scenarios with high real-time requirements, which is beneficial to the market promotion and application.

[0065] The following will describe in detail some embodiments of the present invention with reference to the accompanying drawings. Without conflict between the embodiments, the following embodiments and the features in the embodiments can be combined with each other. In addition, the step sequence in the following method embodiments is only an example, not strictly limited.

[0066] Figure 2 It is a schematic flowchart of a real-time statistics method for retransmission rate provided by an embodiment of the present application; refer to the attached Figure 2 As shown, this embodiment provides a real-time statistics method for retransmission rate. The execution subject of this method is the real-time statistics device for retransmission rate. It can be understood that the real-time statistics device for retransmission rate can be implemented as software, or a combination of software and hardware. Specifically, when the real-time statistics device for retransmission rate is implemented as hardware, it can be various electronic devices with the ability to perform real-time statistics on the retransmission rate. When the real-time statistics device for retransmission rate is implemented as software, it can be installed in the above-mentioned electronic device; based on the above-mentioned real-time statistics device for retransmission rate, the real-time statistics operation of the retransmission rate can be realized. Specifically, the real-time statistics method for retransmission rate can include the following steps:

[0067] Step S201: Obtain a data transmission request, and the data transmission request corresponds to a requested domain name.

[0068] Step S202: Based on the requested domain name, statistically obtain the retransmission characteristics in the data transmission process in real time. The retransmission characteristics include: the total retransmission bytes and the actual size of the transmitted file.

[0069] Step S203: Determine a domain name statistical structure that matches the requested domain name.

[0070] Step S204: Based on the retransmission characteristics and the domain name statistical structure, determine the retransmission rate corresponding to the data transmission request.

[0071] The specific implementation processes and implementation effects of the above steps will be described in detail as follows:

[0072] Step S201: Obtain a data transmission request, and the data transmission request corresponds to a requested domain name.

[0073] Since retransmission is an action of the protocol stack, which is used to retransmit lost packets through retransmission actions to achieve secondary or multiple transmissions of the packets, that is, the retransmission action occurs during the data transmission process. Therefore, when the user has a real-time statistical requirement for the retransmission rate, the real-time statistical device for the retransmission rate (hereinafter referred to as the "real-time statistical device") can obtain the data transmission request. In some instances, the data transmission request can be obtained through a human-computer interaction operation. At this time, obtaining the data transmission request can include: displaying a human-computer interaction interface through the real-time statistical device, obtaining the execution operation input by the user in the human-computer interaction interface, and obtaining the data transmission request based on the execution operation.

[0074] In other instances, the data transmission request can not only be obtained through a human-computer interaction operation, but also be obtained through a client or a third device. At this time, obtaining the data transmission request can include: determining the client or the third device that is communicatively connected to the real-time statistical device, where the data transmission request is stored in the client or the third device; actively or passively obtaining the data transmission request through the client or the third device, thereby effectively ensuring the stability and reliability of obtaining the data transmission request.

[0075] In addition, for the data transmission request, in order to be able to perform statistical operations on the retransmission rate in terms of the domain name dimension, the data transmission request can correspond to a requested domain name. Specifically, the requested domain name can be included in the data transmission request; or there is a preset mapping relationship between the data transmission request and the requested domain name. It should be noted that different data transmission requests can correspond to the same or different requested domain names, and different data processing requirements can correspond to different data transmission requests. For example: data access requests, data write requests, data search requests, etc.

[0076] Step S202: Based on the requested domain name, real-time statistically analyze the retransmission characteristics during the data transmission process. The retransmission characteristics include: the total retransmission byte count and the actual size of the transmitted file.

[0077] Since the retransmission rate needs to be determined based on the total retransmission byte count and the actual size of the transmitted file, in order to be able to perform real-time statistical operations on the retransmission rate, after obtaining the data transmission request, the retransmission characteristics during the data transmission process can be real-time statistically analyzed based on the requested domain name corresponding to the data transmission request. The retransmission characteristics can include the total retransmission byte count and the actual size of the transmitted file.

[0078] In addition, the specific implementation method of real-time statistical retransmission features in this embodiment is not limited, and those skilled in the art can flexibly configure according to specific application scenarios or application requirements. In some instances, the retransmission features can be obtained through real-time statistics by a preset detection module. At this time, based on the requested domain name, the real-time statistical retransmission features during data transmission may include: determining a preset detection module based on the requested domain name, where the preset detection module is set in the real-time statistical device; based on the preset detection module, real-time statistical operations can be performed on the retransmission features during data transmission, effectively ensuring the real-time reliability of statistical retransmission features during data transmission.

[0079] Step S203: Determine the domain name statistical structure that matches the requested domain name.

[0080] Among them, multiple domain name statistical structures can be maintained globally in the real-time statistical device. For example, the following domain name statistical structures can be maintained in the real-time statistical device: xxxxx.com 、 abcdef.com 、 122222.com and so on. The above multiple domain name statistical structures can be stored in the real-time statistical device in the form of hash buckets, linked lists, red-black trees, or arrays, and the requested domain names matched by different domain name statistical structures are different.

[0081] In order to accurately and real-time perform statistical operations on the retransmission rate, after obtaining the requested domain name corresponding to the data transmission request, the domain name statistical structure that matches the requested domain name can be determined. In some instances, determining the domain name statistical structure that matches the requested domain name may include: obtaining the established domain name statistical structure; when the established domain name statistical structure includes the target domain name statistical structure that matches the requested domain name, determining the target domain name statistical structure as the domain name statistical structure that matches the requested domain name; when the established domain name statistical structure does not include the target domain name statistical connection that matches the requested domain name, establishing a domain name statistical structure corresponding to the requested domain name, effectively realizing that different methods can be used to stably determine the domain name statistical structure corresponding to the requested domain name based on whether the real-time statistical device stores and maintains the domain name statistical structure that matches the requested domain name, thus effectively ensuring the stable reliability of determining the domain name statistical structure.

[0082] Specifically, in order to accurately determine the domain name statistical structure that matches the requested domain name, the established domain name statistical structures in the real-time statistical device can be obtained first. For example, the established domain name statistical structures stored in the real-time statistical device can include: the first domain name statistical structure, the second domain name statistical structure, the third domain name statistical structure, and the fourth domain name statistical structure. The requested domain names corresponding to any two of the above domain name statistical structures are different from each other. After obtaining the established domain name statistical structures and the requested domain name, it can be queried whether there is a target domain name statistical structure that matches the requested domain name in the established domain name statistical structures. The specific query operation can be implemented as any one of the following: traversal query operation, hash search, linked list search, and so on.

[0083] When the query result is that there is a target domain name statistical structure that matches the requested domain name in the established domain name statistical structures, the target domain name statistical structure can be determined as the domain name statistical structure that matches the requested domain name. For example, when the requested domain name matches the above third domain name statistical structure, the third domain name statistical structure can be determined as the domain name statistical structure that matches the requested domain name, which effectively ensures the accuracy and reliability of determining the domain name statistical structure.

[0084] When the query result is that there is no target domain name statistical structure that matches the requested domain name in the established domain name statistical structures, it means that there is no or the domain name statistical structure corresponding to the requested domain name is not maintained in the real-time statistical device. At this time, in order to implement the real-time statistical operation of the retransmission rate, a domain name statistical structure corresponding to the requested domain name can be established. In some instances, establishing a domain name statistical structure corresponding to the requested domain name can include: obtaining the domain name structure corresponding to the requested domain name and determining the domain name structure as the domain name statistical structure corresponding to the requested domain name. Or, establishing a domain name statistical structure corresponding to the requested domain name can include: obtaining the domain name composition characteristics of the requested domain name. The domain name composition characteristics can include at least one of the following: sub-domain name, main domain name, top-level domain name, etc.; establishing a domain name statistical structure corresponding to the requested domain name based on the domain name composition characteristics, which effectively ensures the accuracy and reliability of determining the domain name statistical structure.

[0085] In some other examples, after obtaining a data transmission request, in order to be able to perform the retransmission rate statistical operation in real time, a domain name statistical structure matching the requested domain name can be determined. At this time, the embodiment does not limit the timing for determining the domain name statistical structure. For example, the domain name statistical structure can be determined at any moment after obtaining the data transmission request. Specifically, in order to ensure the stable reliability of the real-time retransmission rate statistics, the domain name statistical structure can be determined at a preset trigger operation timing. At this time, determining the domain name statistical structure matching the requested domain name in this embodiment can include: obtaining a preset operation for triggering the determination of the domain name statistical structure, and the preset operation includes at least one of the following: the Transmission Control Protocol (TCP) connection closing operation corresponding to the data transmission request, receiving a secondary transmission request based on the long connection corresponding to the data transmission request; in response to the above preset operation, determining the domain name statistical structure matching the requested domain name.

[0086] In Application Scenario 1, the timing of the retransmission rate statistical operation can be determined based on the state of the TCP connection. At this time, in order to ensure the stable reliability of the real-time retransmission rate statistics, before obtaining the TCP connection closing request and performing the TCP connection closing operation based on the TCP connection closing request, the domain name statistical structure is determined based on the requested domain name. At this time, when the preset operation is the TCP connection closing operation corresponding to the data transmission request, that is, when the data transmission task is completed, the domain name statistical structure corresponding to the requested domain name can be determined at the moment of obtaining the TCP connection closing request.

[0087] Specifically, the TCP connection closing operation can be obtained first. The above TCP connection closing operation can be obtained through a human-computer interaction operation or device automatic triggering. After obtaining the TCP connection closing operation, the determination operation of the domain name statistical structure corresponding to the requested domain name can be performed based on the obtaining timing of the TCP connection closing operation, that is, in response to the obtained TCP connection closing operation, the domain name statistical structure corresponding to the requested domain name is determined, which effectively ensures the accuracy and reliability of determining the domain name statistical structure.

[0088] In Application Scenario 2, the timing of the retransmission rate statistical operation can be determined when a secondary transmission request based on a TCP long connection is received. When the preset operation is to receive a secondary transmission request for the long connection corresponding to the data transmission request, the domain name statistical structure corresponding to the requested domain name can be determined based on the time of the received secondary transmission request for the long connection. Specifically, the secondary transmission request for the long connection corresponding to the data transmission request can be obtained first. The secondary transmission request can be obtained actively or passively by the client or a third device. After the secondary transmission request for the long connection is obtained, the domain name statistical structure of the requested domain name can be determined based on the reception timing of the secondary transmission request, that is, in response to the obtained secondary transmission request, the domain name statistical structure corresponding to the requested domain name is determined, which effectively ensures the accuracy and reliability of determining the domain name statistical structure.

[0089] It should be noted that for the secondary transmission request received for the long connection corresponding to the data transmission request, it can include the following two situations: (1) The requested domain name in the secondary transmission request is the same as the requested domain name in the original data transmission request, that is, the requested domain name corresponding to the transmission request obtained based on the long connection has not changed; (2) The requested domain name in the secondary transmission request is different from the requested domain name in the data transmission request, that is, the requested domain name corresponding to the transmission request based on the long connection has changed. For the above situation (1), the real-time statistical operation of the retransmission rate can continue to be performed based on the implementation method in the above embodiment. For the above situation (2), in order to stably perform the real-time statistical operation of the retransmission rate in the domain name dimension, the setsockopt interface for identifying domain name information can be called again to obtain the real requested domain name.

[0090] In addition, the execution order of step S203 and step S202 in this embodiment is not limited to the order defined in the above embodiment. For example: Step S203 can be executed before step S202, or step S203 and step S202 can be executed synchronously. Those skilled in the art can flexibly adjust the execution order of step S202 and step S203 according to the specific application scenario or application requirements, which will not be elaborated here.

[0091] Step S204: Determine the retransmission rate corresponding to the data transmission request based on the retransmission feature and the domain name statistical structure.

[0092] After obtaining the retransmission feature and the domain name statistical structure, the retransmission feature and the domain name statistical structure can be analyzed and processed, so as to determine the retransmission rate corresponding to the data transmission request, that is, the retransmission rate corresponds to the retransmission operation that occurs during the data transmission process corresponding to the data transmission request. In some examples, the retransmission rate can be obtained through a pre-trained machine learning model or neural network model. At this time, based on the retransmission feature and the domain name statistical structure, determining the retransmission rate corresponding to the data transmission request may include: obtaining a pre-trained machine learning model or neural network model; inputting the retransmission feature and the domain name statistical structure into the machine learning model or neural network model, and obtaining the retransmission rate corresponding to the data transmission request output by the machine learning model or neural network model, which effectively ensures the accuracy and reliability of determining the retransmission rate.

[0093] In other examples, not only can the retransmission rate corresponding to the data transmission request be obtained through a machine learning model or neural network model, but the retransmission feature and the domain name statistical structure can also be directly analyzed and processed using a preset algorithm logic to obtain the retransmission rate. At this time, based on the retransmission feature and the domain name statistical structure, determining the retransmission rate corresponding to the data transmission request may include: summarizing the retransmission feature into the domain name statistical structure to obtain a global retransmission feature, where the global retransmission feature includes: the total global retransmission bytes and the actual size of the transmitted file globally; determining the retransmission rate corresponding to the data transmission request based on the global retransmission feature.

[0094] Among them, after obtaining the retransmission feature and the domain name statistical structure, in order to accurately obtain the retransmission rate in the domain name dimension and TCP connection dimension, the retransmission feature can be summarized into the domain name statistical structure. The above-mentioned summarizing the retransmission feature into the domain name statistical structure may include: obtaining the statistical retransmission feature corresponding to the domain name statistical structure, performing an accumulation operation on the retransmission feature and the statistical retransmission feature to obtain a global retransmission feature. At this time, the global retransmission feature may include the total global retransmission bytes and the actual size of the transmitted file globally.

[0095] For example, the statistical retransmission feature corresponding to the domain name statistical structure may include: the statistically retransmitted bytes and the actual size of the transmitted file statistically; after obtaining the retransmission feature, an accumulation operation can be performed on the total retransmission bytes included in the retransmission feature and the statistically retransmitted bytes to obtain the total global retransmission bytes; similarly, an accumulation operation can be performed on the actual size of the transmitted file included in the retransmission feature and the actual size of the transmitted file statistically to obtain the actual size of the transmitted file globally, which effectively ensures the stability and reliability of summarizing the retransmission feature into the domain name statistical structure.

[0096] Further, in the process of summarizing the retransmission features into the domain name statistical structure, in order to ensure the stability and reliability of the summarization operation, the summarization operation can be performed based on a specific time. At this time, summarizing the retransmission features into the domain name statistical structure can include: obtaining the time information for summarizing the retransmission features; based on the time information, summarizing the retransmission features into the domain name statistical structure.

[0097] Specifically, after obtaining the retransmission features and the domain name statistical structure, in order to accurately summarize the retransmission features into the domain name statistical structure, the time information for summarizing the retransmission features can be obtained. This time information can be any time point after obtaining the retransmission features. In order to ensure the accuracy and reliability of the summarization operation for the retransmission features, the time information for summarizing the retransmission features can include at least one of the following: the moment when a resource release request corresponding to the TCP connection close operation is received; the moment when a secondary transmission request for the long connection corresponding to the data transmission request is received.

[0098] Specifically, when the TCP connection close operation is obtained, the resources corresponding to the TCP connection can be released. At this time, the resource release request corresponding to the TCP connection close operation can be obtained. When the resource release request corresponding to the TCP connection close operation is obtained, the retransmission features can be summarized into the domain name statistical structure based on the time information corresponding to the above resource release request, thereby effectively ensuring the stability and reliability of the summarization operation for the retransmission features and obtaining the global retransmission features.

[0099] Similarly, when a secondary transmission request for the long connection corresponding to the data transmission request is received, in order to ensure the real-time and accurate statistics of the retransmission rate, the retransmission features can be summarized into the domain name statistical structure based on the time information corresponding to the secondary transmission request when the secondary transmission request for the long connection corresponding to the data transmission request is received. This effectively ensures the stability and reliability of the summarization operation for the retransmission features and obtaining the global retransmission features.

[0100] After obtaining the global retransmission feature, the global retransmission feature can be analyzed and processed, so that the retransmission rate corresponding to the data transmission request can be determined. In some instances, the retransmission rate can be obtained by analyzing and processing the global retransmission feature through a pre-trained machine learning model or neural network model. Alternatively, the retransmission rate can be directly obtained by analyzing and processing the global retransmission feature. At this time, based on the global retransmission feature, determining the retransmission rate corresponding to the data transmission request may include: obtaining the total global retransmission bytes and the actual size of the global transmitted file included in the global retransmission feature; determining the ratio between the total global retransmission bytes and the actual size of the global transmitted file as the retransmission rate; or obtaining the sum value of the total global retransmission bytes and the actual size of the global transmitted file, and determining the ratio between the total global retransmission bytes and the sum value as the retransmission rate, thereby effectively ensuring the accuracy and reliability of determining the retransmission rate.

[0101] It should be noted that for the global retransmission feature, it may not only include domain name information, the total global retransmission bytes, and the actual size of the global transmitted file, but also other information. For example, the global retransmission feature may also include the most recent update time. When the most recent update time corresponding to the current domain name statistical structure is included in the global retransmission feature, the current domain name statistical structure can be identified as a domain name statistical structure to be cleared that has not been updated for a long time based on the most recent update time; when the duration between the most recent update time and the current time is greater than or equal to a preset threshold, it is determined that the current domain name statistical structure is a domain name statistical structure to be cleared; when the duration between the most recent update time and the current time is less than the preset threshold, it is determined that the current domain name statistical structure is not a domain name statistical structure to be cleared.

[0102] When it is determined that the current domain name statistical structure is a domain name statistical structure to be cleared that has not been updated for a long time, in order to avoid long-term ineffective occupation of resources and space and improve the utilization rate of resources and space, the current domain name statistical structure can be deleted; when it is determined that the current domain name statistical structure is not a domain name statistical structure to be cleared, the current domain name statistical structure can be retained unchanged. This effectively improves the flexibility and reliability of the method and also improves the utilization rate of resources and space.

[0103] In some other examples, in order to enable users to quickly and intuitively know the retransmission rate corresponding to a data transmission request, after determining the retransmission rate corresponding to the data transmission request, the retransmission rate can be output and displayed. Specifically, the retransmission rate can be output and displayed according to a preset output period. For example, the retransmission rate can be output once every 1 minute, so that multiple retransmission rates can be output and obtained within a preset time period. Specifically, the multiple retransmission rates can be output and displayed through a display, or notification information corresponding to the multiple retransmission rates can be generated through a message mechanism, as long as users can stably obtain the multiple retransmission rates for operation, which will not be elaborated here.

[0104] The real-time statistical method for the retransmission rate provided in this embodiment obtains a data transmission request, and based on the request domain name, it real-time statistically analyzes the retransmission characteristics corresponding to the data transmission request. Then, it determines a domain name statistical structure that matches the request domain name, and based on the retransmission characteristics and the domain name statistical structure, it determines the retransmission rate corresponding to the data transmission request. In this way, it effectively realizes the real-time statistical operation of the retransmission rate in the domain name dimension, which can meet the real-time requirements of different application scenarios, further improves the applicable scope and application scenarios of this method, and is conducive to the market promotion and application.

[0105] Figure 3 It is a schematic flowchart for real-time statistically analyzing the retransmission characteristics in the data transmission process based on the request domain name provided in the embodiment of this application; on the basis of the above embodiment, refer to the appendix Figure 3 As shown, for the retransmission characteristics, not only can the retransmission characteristics be obtained through a preset detection module in real time, but also the retransmission characteristics can be obtained based on the statistical ability of the retransmission rate of the kernel network protocol stack. At this time, real-time statistically analyzing the retransmission characteristics in the data transmission process based on the request domain name can include:

[0106] Step S301: Obtain the port multiplexing technology setsockopt interface of the kernel network protocol stack, and the setsockopt interface is configured to associate the request domain name corresponding to the data transmission request with the TCP connection.

[0107] Since retransmission is an operation at the transport layer, for the TCP transport protocol, the retransmission operation occurs in the kernel state, so the statistical implementation of the retransmission rate is in the kernel network protocol. Based on the above statement, in order to meet the high real-time requirements for the statistical operation of the retransmission rate, the retransmission rate can be directly statistically analyzed based on the domain name information in the kernel network protocol stack, and the statistical result can be output.

[0108] However, considering that the kernel network protocol stack has no ability to perceive domain name information, that is, it is impossible to understand domain name information (such as HTTP / HTTPS) at the kernel level. In order to enable the kernel network protocol stack to have the ability to perceive or resolve domain name information, the communication ability between the application layer and the kernel network protocol stack can be established. The specific implementation method is to extend the kernel setsockopt (used to set option values for any type and any state socket) interface. Through the above interface, the ability to configure domain name information into the kernel network protocol stack can be opened. For example, for an HTTP / HTTPS data transmission request, after parsing the HTTP / HTTPS protocol, the requested domain name can be extracted, and then the requested domain name can be configured to the corresponding TCP connection through the extended setsockopt interface.

[0109] Specifically, in order to be able to perform real-time statistical operations on the retransmission feature through the kernel extended setsockopt interface, the port multiplexing technology setsockopt interface of the kernel network protocol stack can be obtained. The setsockopt interface can be a preset standard interface corresponding to the kernel network protocol stack. The setsockopt interface can be called through a preset interface call instruction. Moreover, the setsockopt interface is configured to associate the requested domain name corresponding to the data transmission request with the TCP connection.

[0110] Furthermore, in order to enable the setsockopt interface to be configured to associate the requested domain name corresponding to the data transmission request with the TCP connection, before obtaining the port multiplexing technology setsockopt interface corresponding to the kernel network protocol stack, a configuration operation can be performed on the setsockopt interface. At this time, the method in this embodiment can further include: obtaining configuration information for configuring the setsockopt interface. The configuration information at least includes: domain name transmission path information for transmitting the request domain name configuration from the user state to the kernel state, and a preset space in the kernel state for storing the request domain name; configuring the setsockopt interface based on the configuration information so that the requested domain name can be associated with the TCP connection through the setsockopt interface.

[0111] For the setsockopt interface, in order to configure the setsockopt interface, the configuration information for configuring the setsockopt interface can be obtained first. Among them, the configuration information can be obtained based on human-computer interaction operations or a third device. For the configuration information, in order to configure the setsockopt interface to associate the requested domain name with the TCP connection, the configuration information can at least include: domain name transmission path information for transmitting the configured requested domain name from the user space to the kernel space, and a preset space in the kernel space for storing the requested domain name. The above preset space can be any space in the kernel that has an association with the TCP connection. Specifically, the preset space can be obtained by modifying and adjusting the kernel, or the preset space can be obtained by modifying and adjusting the congestion control algorithm.

[0112] When the preset space is implemented by modifying and adjusting the kernel, the preset space can be implemented as any of the following: a development space embedded in the kernel, a structure associated with the TCP connection. This structure can be implemented as any of the following: struct tcp_sock structure, struct sock structure, struct inet_connection_sock structure, etc. After obtaining the configuration information of the setsockopt interface, the setsockopt interface can be configured based on the configuration information, thus completing the accurate configuration operation of the setsockopt interface.

[0113] Step S302: Based on the setsockopt interface and the TCP connection, statistically analyze the retransmission characteristics during the data transmission process in real time.

[0114] Since the setsockopt interface can associate the requested domain name with the TCP connection, enabling the kernel to have the ability to identify the requested domain name, and the kernel network protocol stack has the ability to statistically analyze the complete retransmission characteristics, after obtaining the setsockopt interface and the TCP connection, the retransmission characteristics during the data transmission process can be statistically analyzed in real time based on the setsockopt interface and the TCP connection. This effectively ensures the real-time statistical operation of the retransmission characteristics in the TCP connection dimension and the domain name dimension, and then the real-time statistical operation of the retransmission rate can be performed based on the statistically analyzed retransmission characteristics in real time.

[0115] In this embodiment, by obtaining the port multiplexing technology setsockopt interface of the kernel network protocol stack, and then based on the setsockopt interface and the TCP connection, the retransmission characteristics during the data transmission process are statistically analyzed in real time, effectively realizing the real-time statistical operation of the retransmission characteristics based on the setsockopt interface, ensuring the flexible reliability of the statistical analysis of the retransmission characteristics, and further improving the stable reliability of the statistical analysis of the retransmission rate.

[0116] Figure 4 It is a schematic flowchart of a method for real-time statistical analysis of the retransmission rate provided by an embodiment of the present application; on the basis of the above embodiment, refer to the attached Figure 4 As shown, this embodiment can not only obtain the retransmission rate at a single time point, but also obtain the retransmission rate in the time dimension. At this time, after determining the retransmission rate corresponding to the data transmission request, the method in this embodiment may further include:

[0117] Step S401: Obtain the time information corresponding to each retransmission rate within a preset time period, where each retransmission rate corresponds to the data transmission request.

[0118] Specifically, in order to enable the user to understand the change situation of the retransmission rate within the preset time period, the preset time period can be obtained first. The preset time period can be a time period such as 1 hour, 5 hours, or 12 hours. For multiple moments within the preset time period, the retransmission rates corresponding to multiple moments can be obtained in the manner of the above embodiment. Each of the obtained retransmission rates corresponds to the data transmission request, that is, when there is a data retransmission operation in the data transmission process corresponding to the data transmission request, the retransmission rates corresponding to the data transmission request can be obtained. In order to enable the user to promptly understand the change situation of the retransmission rate within the preset time period, the time information corresponding to each retransmission rate of the data transmission request can be obtained within the preset time period. For example, the time information corresponding to retransmission rate 1 is T1, the time information corresponding to retransmission rate 2 is T2, the time information corresponding to retransmission rate 3 is T3, and so on.

[0119] Step S402: Determine the retransmission rate curve corresponding to the data transmission request based on each retransmission rate and the time information corresponding to each retransmission rate.

[0120] After obtaining each retransmission rate and the time information corresponding to each retransmission rate, curve drawing operations can be performed based on the retransmission rate and the time information corresponding to each retransmission rate, so as to obtain the retransmission rate curve corresponding to the data transmission request, as Figure 5 shown.

[0121] Since the retransmission rate curve can represent the changing trend of the retransmission rate within a preset time period, in order to improve the practicability of this method, after determining the retransmission rate curve corresponding to the data transmission request, the method in this embodiment may further include: predicting the network operating state at a future moment based on the retransmission rate curve to obtain state prediction information; and controlling the network based on the state prediction information, thereby ensuring the stable and reliable transmission of network data at the future moment.

[0122] In some other examples, the retransmission rate curve can not only predict the network operating state at a future moment, but also serve as a reference factor for network control at the current moment. Therefore, the method in this embodiment may further include: determining a retransmission characterization factor for network control based on the retransmission rate curve; determining the network operating state at the current moment based on the retransmission characterization factor; and controlling the network based on the network operating state, thereby ensuring the stable and reliable transmission of network data.

[0123] Regarding the retransmission rate curve, it can not only be used as a reference factor for network control, but also perform a fault warning operation based on the retransmission rate curve. Specifically, the fault warning operation based on the retransmission rate curve may include: determining whether the data transmission operation is normal based on the retransmission rate curve; performing a fault warning operation when it is determined that the data transmission operation is abnormal; and not performing any operation when it is determined that the data transmission operation is normal.

[0124] It should be noted that this embodiment can not only obtain the retransmission rate in the time dimension, but also obtain the retransmission rate in any other dimension, such as: the retransmission rate in the device dimension, the retransmission rate in the node dimension, the retransmission rate in the operator dimension, and the retransmission rate in the country dimension. Among them, a country can operate and manage one or more operators, an operator can operate and manage one or more nodes, and a node can operate and manage one or more devices. Specifically, when it is necessary to obtain the retransmission rate in the device dimension, the method in this embodiment may further include: after determining the retransmission rate corresponding to the data transmission request, obtaining the current device to which the data transmission request belongs, where the current device is used to manage one or more data transmission requests; and statistically calculating the retransmission rates corresponding to all data transmission requests in the current device to obtain the retransmission rate in the device dimension.

[0125] Similarly, when it is necessary to obtain the retransmission rate in the node dimension, the method in this embodiment may further include: after determining the retransmission rate corresponding to the data transmission request, obtaining the current node to which the current device belongs, where the current node is used to manage one or more devices; and statistically calculating the retransmission rates corresponding to all devices in the current node to obtain the retransmission rate in the node dimension.

[0126] When it is necessary to obtain the retransmission rate at the operator dimension, the method in this embodiment may further include: after determining the retransmission rate corresponding to the data transmission request, obtaining the current operator to which the current node belongs, where the current operator is used to manage one or more nodes; counting the retransmission rates corresponding to all nodes in the current operator to obtain the retransmission rate at the operator dimension.

[0127] When it is necessary to obtain the retransmission rate at the country dimension, the method in this embodiment may further include: after determining the retransmission rate corresponding to the data transmission request, obtaining the current country to which the current node belongs, where the current country is used to manage one or more operators; counting the retransmission rates corresponding to all operators in the current country to obtain the retransmission rate at the country dimension. In the above manner, it can be realized that the user can obtain the retransmission rates of different dimensions according to the requirements, which not only ensures the flexible reliability of obtaining the retransmission rate, but also can meet the usage requirements of different users.

[0128] In addition, for the retransmission rate, it can not only be expressed in the form of a curve, but also in the form of a portrait. Similar to the above method of obtaining the retransmission rate curve, after determining the retransmission rate corresponding to the data transmission request, the method in this embodiment may further include: obtaining at least one dimension information for counting the retransmission rate; counting the retransmission rate based on the at least one dimension information to obtain a retransmission rate portrait.

[0129] Specifically, when the user has a need to obtain the retransmission rate portrait, at least one dimension information for counting the retransmission rate can be obtained. The above at least one dimension information may include at least one of the following: the retransmission rate in the time dimension, the retransmission rate in the machine dimension, the retransmission rate in the node dimension, the retransmission rate in the operator dimension, the retransmission rate in the country dimension, and so on. The above at least one dimension information can be obtained through human-computer interaction operations or preset devices. After obtaining the at least one dimension information, a statistical operation can be performed on the retransmission rate based on the at least one dimension information, so as to obtain a retransmission rate portrait including the retransmission rate of at least one dimension information. Since the retransmission rate portrait includes retransmission rate characteristics of multiple dimensions, the richness of expressing the retransmission rate is effectively improved.

[0130] In this embodiment, by obtaining the time information corresponding to each retransmission rate of a data transmission request within a preset time period, and then determining a retransmission rate curve corresponding to the data transmission request based on each retransmission rate and the time information corresponding to each retransmission rate; alternatively, a retransmission rate portrait can also be obtained based on at least one dimension information, effectively expanding the implementation manners of expressing the retransmission rate, that is, the retransmission rate can be expressed in the form of a curve or a portrait, thereby effectively improving the flexibility and reliability of obtaining the retransmission rate and meeting the application requirements of different users.

[0131] Figure 6 It is a schematic flowchart of another real-time statistical method for the retransmission rate provided by an embodiment of this application; Figure 7 It is a schematic diagram for controlling a data transmission operation based on the network transmission link provided by an embodiment of this application; on the basis of any of the above embodiments, refer to the attached Figure 6 - Figure 7 As shown, after determining the retransmission rate corresponding to a data transmission request, in order to improve the practicability of this method, this embodiment can control the quality of the data link based on the retransmission rate. At this time, the method in this embodiment can further include:

[0132] Step S601: Obtain a network transmission link corresponding to the data transmission request.

[0133] Step S602: Determine the data transmission quality of the network transmission link based on the retransmission rate.

[0134] Step S603: Control the data transmission operation based on the network transmission link based on the data transmission quality.

[0135] Specifically, after determining the retransmission rate corresponding to a data transmission request, in order to control the quality of the data link based on the retransmission rate, a network transmission link corresponding to the data transmission request can be obtained, and then the data transmission quality of the network transmission link can be determined based on the retransmission rate corresponding to the data transmission request. In some instances, the data transmission quality can be obtained by analyzing and processing the retransmission rate through a pre-trained machine learning model or neural network model. At this time, determining the data transmission quality of the network transmission link based on the retransmission rate can include: obtaining a machine learning model or neural network model for determining the data transmission quality, inputting the retransmission rate into the machine learning model or neural network model, and obtaining the data transmission quality of the network transmission link output by the machine learning model or neural network model.

[0136] In some other instances, the data transmission quality of a network transmission link can be obtained not only through a pre-trained machine learning model or neural network model, but also by analyzing and processing the retransmission rate using a preset threshold. At this time, determining the data transmission quality of the network transmission link based on the retransmission rate may include: obtaining a preset threshold for analyzing and processing the retransmission rate; analyzing and comparing the retransmission rate with the preset threshold; when the retransmission rate is greater than or equal to the preset threshold, it indicates that the retransmission rate of data transmission is relatively high, and thus it can be determined that the data transmission quality of the network transmission link is relatively low; when the retransmission rate is less than the preset threshold, it indicates that the retransmission rate of data transmission is relatively low, and thus it can be determined that the data transmission quality of the network transmission link is relatively high.

[0137] After obtaining the data transmission quality, the data transmission operations based on the network transmission link can be controlled based on the data transmission quality. For example, in order to stably ensure the quality and effect of data transmission, bandwidth expansion operations can be performed on the network transmission link, the load balancing algorithm corresponding to the network transmission link can be adjusted, and so on. In some instances, controlling the data transmission operations based on the network transmission link based on the data transmission quality may include: determining a control strategy corresponding to the network transmission link based on the data transmission quality; specifically, different data transmission qualities may correspond to different control strategies. For example, when the data transmission quality is relatively high, the control strategy corresponding to the data transmission quality can be determined as control strategy a; when the data transmission quality is relatively low, the control strategy corresponding to the data transmission quality can be determined as control strategy b, and then the data transmission operations of the network transmission link are controlled based on the control strategy to ensure the quality and effect of data transmission.

[0138] It should be noted that after determining the retransmission rate corresponding to a data transmission request, not only can the link quality of the network transmission link be evaluated and detected based on the retransmission rate, but the Internet Data Center (IDC) nodes can also be adjusted based on the retransmission rate. At this time, the method in this embodiment may further include: determining the operation quality of the IDC nodes based on the retransmission rate. The operation quality can be obtained by analyzing and processing the resource information, operation status, and data processing efficiency called by the IDC nodes. After determining the operation quality of the IDC nodes, the IDC quality can be controlled based on the operation quality of the IDC nodes. That is, when the operation quality of the IDC nodes is relatively high, the operation status of the IDC nodes can be kept unchanged; when the operation quality of the IDC nodes is relatively low, the IDC nodes can be deleted, thereby effectively improving the operation quality and effect of the IDC nodes.

[0139] In this embodiment, by obtaining a network transmission link corresponding to a data transmission request, determining the data transmission quality of the network transmission link based on the retransmission rate, and controlling the data transmission operation based on the network transmission link according to the data transmission quality, it is effectively realized that the data transmission link can be controlled based on the data transmission quality, thus effectively ensuring the quality and effect of data transmission based on the data transmission quality.

[0140] Figure 8 FIG. 4 is a schematic flowchart of another real-time statistical method for the retransmission rate provided by an embodiment of the present application; on the basis of any of the above embodiments, refer to the appended Figure 8 As shown, after determining the retransmission rate corresponding to the data transmission request, in order to improve the practicability of the method, in this embodiment, not only can the quality of the data link be controlled based on the retransmission rate, but also the data processing service can be controlled based on the retransmission rate. At this time, the method in this embodiment may further include:

[0141] Step S801: Obtain a sub-retransmission rate in terms of domain name based on the retransmission rate corresponding to each data transmission request, and the sub-retransmission rate corresponds to domain name information.

[0142] Step S802: Determine the data processing service corresponding to the domain name information.

[0143] Step S803: Determine the service quality of the data processing service based on the sub-retransmission rate.

[0144] Step S804: Control the data processing service based on the service quality.

[0145] Specifically, after determining the retransmission rate corresponding to the data transmission request, in order to control the quality of the data processing service based on the retransmission rate, a sub-retransmission rate in terms of domain name can be obtained based on the retransmission rate corresponding to each data transmission request. For example, when the number of data transmission requests is multiple, the multiple data transmission requests may include: Request A, Request B, Request C, and Request D. The above Request A may correspond to domain name information a, Request B may correspond to domain name information 2, Request C may correspond to domain name information b, Request D may correspond to domain name information c. Request A may correspond to a first retransmission rate, Request B and Request C may correspond to a second retransmission rate, and Request D may correspond to a third retransmission rate; the sub-retransmission rate in terms of domain name can be obtained through the above retransmission rates corresponding to each data transmission request, and different sub-retransmission rates may correspond to different domain name information.

[0146] In order to be able to perform an evaluation operation on the quality of service of data processing services, the data processing services corresponding to domain name information can be determined. Specifically, the data processing services can be determined through a preset mapping relationship. At this time, determining the data processing services corresponding to domain name information may include: obtaining the preset mapping relationship corresponding to the domain name information; determining the data processing services corresponding to the domain name information based on the preset mapping relationship and the domain name information, which effectively ensures the accuracy and reliability of determining the data processing services.

[0147] After determining the data processing services corresponding to the domain name information and the sub-retransmission rate, the quality of service of the data processing services can be determined based on the sub-retransmission rate. Among them, the determination method and principle of the quality of service of the data processing services are similar to those of the data transmission quality of the network transmission link in the above embodiments. For specific reference, please refer to the above description and will not be elaborated here.

[0148] After determining the quality of service of the data processing services, control operations can be performed on the data processing services based on the quality of service. In some instances, performing control operations on the data processing services based on the quality of service may include: determining the control policy corresponding to the data processing services based on the quality of service; specifically, different quality of services may correspond to different control policies. For example, when the quality of service of the data processing services is relatively high, the control policy corresponding to the data processing services can be determined as control policy 1; when the quality of service of the data processing services is relatively low, the control policy corresponding to the data processing services can be determined as control policy 2, and then control operations are performed on the data processing services based on the control policy to ensure the quality and effect of the data processing services.

[0149] In this embodiment, by obtaining the sub-retransmission rate at the domain name dimension based on the retransmission rate corresponding to each data transmission request, determining the data processing services corresponding to the domain name information, and determining the quality of service of the data processing services based on the sub-retransmission rate, it effectively realizes that flexible control operations can be performed on the data processing services based on the retransmission rate, and further ensures the quality mixing effect of the data processing services.

[0150] Figure 9 It is a flowchart showing the real-time statistical method of the retransmission rate provided by the embodiment of the present application; on the basis of any of the above embodiments, refer to the appendix Figure 9 As shown, after determining the retransmission rate corresponding to the data transmission request, in order to improve the practicability of this method, not only can control operations be performed on the quality of the data link based on the retransmission rate, but also control operations can be performed on the congestion control algorithm based on the retransmission rate. At this time, the method in this embodiment may further include:

[0151] Step S901: Obtain the congestion control algorithm corresponding to the data transmission request.

[0152] Since the retransmission rate is a key metric for optimizing congestion control algorithms in the kernel network protocol stack, and the congestion control algorithms aim for high cost performance, which generally means achieving the maximum transmission efficiency with the lowest retransmission rate. Therefore, the real-time statistical retransmission rate can be used to perceive and measure the advancement of congestion control algorithms. To accurately control congestion control algorithms, after determining the retransmission rate corresponding to a data transmission request, the congestion control algorithm corresponding to the data transmission request can be obtained. For the data transmission operation corresponding to the data transmission request, the obtained congestion control algorithm can control the data transmission operation to ensure the stable reliability of the data transmission operation.

[0153] In some instances, the congestion control algorithm can be obtained through a preset algorithm identifier. At this time, obtaining the congestion control algorithm corresponding to a data transmission request can include: determining the congestion control algorithm identifier corresponding to the data transmission request; obtaining the congestion control algorithm corresponding to the data transmission request based on the congestion control algorithm identifier.

[0154] Step S902: Determine the algorithm performance of the congestion control algorithm based on the retransmission rate.

[0155] After obtaining the retransmission rate, the retransmission rate can be analyzed and processed to determine the algorithm performance of the congestion control algorithm. In some instances, the algorithm performance can be determined through a preset mapping relationship. At this time, determining the algorithm performance of the congestion control algorithm based on the retransmission rate can include: obtaining the preset mapping relationship corresponding to the congestion control algorithm; determining the algorithm performance of the congestion control algorithm based on the retransmission rate and the preset mapping relationship. Specifically, the mapping relationship corresponding to the congestion control algorithm can include the corresponding relationship between different degrees of retransmission rates and algorithm performance. After obtaining the retransmission rate, the target retransmission rate corresponding to the retransmission rate can be determined in the preset mapping relationship, and the algorithm performance corresponding to the target retransmission rate in the preset mapping relationship is determined as the algorithm performance of the congestion control algorithm, which effectively ensures the accuracy and reliability of determining the algorithm performance of the congestion control algorithm.

[0156] Alternatively, in some other instances, the algorithm performance can be obtained by analyzing and processing the retransmission rate through a pre-trained machine learning model or neural network model. At this time, determining the algorithm performance of the congestion control algorithm based on the retransmission rate can include: obtaining the machine learning model or neural network model for determining the algorithm performance of the congestion control algorithm, inputting the retransmission rate into the machine learning model or neural network model, and obtaining the algorithm performance of the congestion control algorithm output by the machine learning model or neural network model.

[0157] In addition, for congestion control algorithms, different application scenarios can correspond to different congestion control algorithms. When a congestion control algorithm is applied in different application scenarios, in order to ensure the accurate and reliable determination of the algorithm performance, the domain name dimension can be combined to determine the algorithm performance of the congestion control algorithm. At this time, the determination of the algorithm performance of the congestion control algorithm based on the retransmission rate in this embodiment can include: obtaining the current data processing service corresponding to the congestion control algorithm; obtaining the sub-retransmission rate of the domain name dimension corresponding to the current data processing service based on the retransmission rate corresponding to each data transmission request; and determining the algorithm performance of the congestion control algorithm corresponding to the current data processing service based on the sub-retransmission rate.

[0158] Specifically, since the congestion control algorithms applied in different application scenarios can determine the algorithm performance based on the retransmission rate of the domain name dimension, in order to accurately determine the algorithm performance of the congestion control algorithm, the current data processing service corresponding to the congestion control algorithm can be obtained. The current data processing service can be determined based on a preset mapping relationship and the congestion control algorithm. In order to accurately determine the algorithm performance of the congestion control algorithm of the current data processing service, the sub-retransmission rate of the domain name dimension corresponding to the current data processing service can be obtained based on the retransmission rate corresponding to each data transmission request. Then, the sub-retransmission rate can be analyzed and processed to determine the algorithm performance of the congestion control algorithm corresponding to the current data processing service. Among them, the determination method of the algorithm performance of the congestion control algorithm corresponding to the current data processing service is similar to the determination method of the algorithm performance of the above congestion control algorithm. For specific reference, please refer to the above description and will not be elaborated here.

[0159] Step S903: Control the congestion control algorithm based on the algorithm performance.

[0160] After obtaining the algorithm performance, the congestion control algorithm can be controlled based on the algorithm performance. For example, in order to stably ensure the quality and effect of the congestion control operation, the congestion control algorithm can be updated and adjusted, or the congestion control algorithm can be kept unchanged, etc. Specifically, controlling the congestion control algorithm based on the algorithm performance can include: when the algorithm performance meets the preset threshold, it indicates that the application quality, cost performance, and application effect of the current congestion control algorithm are relatively good, and then the current congestion control algorithm can be kept unchanged; when the algorithm performance does not meet the preset threshold, it indicates that the application quality, cost performance, and effect of the current congestion control algorithm are relatively poor. At this time, in order to ensure the stable and reliable data processing, the congestion control algorithm can be updated or replaced.

[0161] In this embodiment, by obtaining a congestion control algorithm corresponding to a data transmission request, determining the algorithm performance of the congestion control algorithm based on the retransmission rate, and controlling the congestion control algorithm based on the algorithm performance, the quality and effect of data transmission based on the congestion control algorithm are effectively guaranteed, and the flexible reliability of the method is further improved.

[0162] In specific applications, refer to the appendix Figure 10 As shown, this application embodiment provides a method for real-time retransmission rate statistics based on domain names. This method can not only perform real-time statistical operations on the retransmission rate of a single point, but also perform real-time statistical operations on the retransmission rate curve in the time dimension or the retransmission rate portrait in other dimensions. Moreover, the retransmission rate, retransmission rate curve, or retransmission rate portrait obtained by the above method can be used to assist in the refined operation and fault warning operations of each application scenario. For example, the real-time statistical retransmission rate, retransmission rate curve, or retransmission portrait can be applied to important live broadcasts, major event guarantees, e-commerce promotions, and other application scenarios, which can not only perform fault warning operations in the above application scenarios, but also ensure the stable reliability of data operation in each application scenario. Specifically, the method may include the following steps:

[0163] Step 10: Establish a TCP connection, and obtain a data transmission request based on the TCP connection. The data transmission request corresponds to a requested domain name.

[0164] Among them, the data transmission request may be an HTTP service request / HTTPS service request.

[0165] Step 20: Configure the domain name resolution ability to the kernel network protocol stack.

[0166] Since retransmission is a behavior of the transport layer, for the TCP protocol, retransmission occurs in the kernel state. Therefore, the statistics of the retransmission rate are implemented in the kernel network protocol, and the kernel network protocol stack does not support the ability to set domain names by default. In order to configure the domain name resolution ability to the kernel network protocol stack, it can be achieved by modifying the kernel to extend the setsockopt interface of the kernel (extending the standard application programming interface API). This can not only retain the traditional calling habits of users, but also support the ability of seven-layer service programs to configure domain names in the kernel.

[0167] Since there is no storage space defined for domain names in the kernel network protocol stack, in order to configure the domain name resolution ability into the kernel network protocol stack, a domain name storage variable char domain[MAX_HTTP_LEN] can be defined in the struct tcp_sock structure, struct sock structure, and struct inet_connection_sock structure in the kernel network protocol stack. Here, MAX_HTTP_LEN can be customized according to user needs, but it is recommended not to exceed 128 bytes. After the storage space is configured, whenever the application layer calls the interface for configuration, the requested domain name can be continuously stored in the above-defined storage space.

[0168] In addition, in order to establish the communication ability between the application layer and the kernel network protocol stack, it can be achieved through interface extension operations in the kernel network protocol stack. Specifically, by extending the setsockopt interface, the ability to access and configure domain names into the kernel network protocol stack can be opened. For example, for an HTTP / HTTPS request, after the application parses the HTTP / HTTPS protocol and extracts the access domain name corresponding to the access request, the domain name can be configured to the corresponding TCP connection through the extended setsockopt interface.

[0169] The specific configuration operations can include the following steps: Obtain the configuration information for configuring the setsockopt interface. The configuration information includes at least: the domain name transmission path information for transmitting the requested domain name configuration from the user space to the kernel space, and the preset space in the kernel space for storing the requested domain name; Configure the setsockopt interface based on the configuration information so that the requested domain name can be associated with the TCP connection through the setsockopt interface. It should be noted that when the char domain[MAX_HTTP_LEN] definition is in structures such as struct sock or struct tcp_sock, the modification position of the setsockopt interface will be different. The configuration operation of the setsockopt interface is implemented through the preset program code, so that the setsockopt interface can associate the requested domain name with the TCP connection.

[0170] After the domain name is associated with the TCP connection, the retransmission rate statistics operation can be implemented based on the TCP connection (in fact, the kernel network protocol stack already provides complete statistical atomic capabilities). Before the TCP connection is closed, the corresponding global domain name statistical structure can be found based on the domain name information of the TCP connection (if it is a new domain name, a global domain name statistical structure is newly created). Then, the actual file size and the total retransmission bytes of the TCP connection can be accumulated, so as to realize the real-time retransmission rate statistical ability at the machine level and domain name dimension.

[0171] Step 30: During the transmission based on the data transmission request, the retransmission characteristics during the data transmission can be statistically calculated in real time based on the requested domain name. Among them, the retransmission characteristics may include the total retransmission bytes and the actual size of the transmitted file.

[0172] Specifically, the kernel network protocol stack has the following original capabilities:

[0173] (1) The kernel network protocol stack can perform retransmission statistics based on the TCP connection. In the transmission control object tcp_sock in the transport layer, a key variable is defined, namely the retransmission byte count variable (bytes_retrans). This variable can statistically calculate the retransmission bytes based on the TCP connection dimension, and all retransmitted packets will be counted. When a packet is retransmitted multiple times, it will be counted repeatedly.

[0174] (2) The kernel network protocol stack can perform statistics on the transmitted content based on the TCP connection. In the kernel tcp_sock transmission object block, a key variable is defined, namely the sent content size (bytes_sent). This variable can statistically calculate the size of the transmitted file content based on the TCP connection dimension, and retransmitted packets will not be recorded in this variable of the sent content size.

[0175] As can be seen from the above, the kernel network protocol stack provides the retransmission rate statistical ability at the TCP connection dimension through the following formula: retransmission rate = total retransmission bytes / actual file size, or retransmission rate = total retransmission bytes / (actual file size + total retransmission bytes), thus effectively implementing the retransmission rate statistics operation of the TCP connection. In addition, after associating the requested domain name with the TCP connection, the retransmission rate statistics operation can be implemented based on the TCP connection, so as to realize the real-time retransmission rate statistics operation at the machine level and domain name dimension.

[0176] Step 40: Determine the domain name statistical structure corresponding to the requested domain name, and accumulate the real-time statistically calculated retransmission characteristics to the corresponding summary characteristics of the domain name statistical structure to obtain the global retransmission characteristics. Among them, the global retransmission characteristics may include the global total retransmission bytes and the actual size of the globally transmitted file.

[0177] Among them, the domain name statistical structure corresponding to the requested domain name can be a global domain name statistical structure, and this global domain name statistical structure can include the following important information: domain name information, real file size, total retransmission bytes, and the most recent update time. The above-mentioned most recent update time is used to represent the last update time of this domain name statistical structure. Furthermore, based on the most recent update time, the domain name statistical structure that has not been updated for a long time can be cleared to release the memory occupied unnecessarily, thus effectively improving the utilization rate of data resources.

[0178] In addition, when the TCP connection is closed or a secondary request based on a long connection is received, the domain name statistical structure corresponding to the requested domain name can be determined. Specifically, determining the domain name statistical structure corresponding to the requested domain name can include: obtaining the established domain name statistical structure; when the established domain name statistical structure includes a target domain name statistical structure that matches the requested domain name, then determining the target domain name statistical structure as the domain name statistical structure that matches the requested domain name; when the established domain name statistical structure does not include a target domain name statistical connection that matches the requested domain name, then establishing a domain name statistical structure corresponding to the requested domain name.

[0179] Specifically, before the TCP connection is closed, the corresponding target domain name statistical structure can be found based on the requested domain name. If the requested domain name is a new domain name, then the target domain name statistical structure corresponding to the requested domain name cannot be queried. Then, a target domain name statistical structure can be newly established based on the requested domain name, and then the real file size and the total retransmission bytes of the TCP connection can be accumulated.

[0180] In addition, in order to ensure the accurate and reliable acquisition of the global retransmission feature, when accumulating the real-time statistical retransmission feature to the summary feature corresponding to the domain name statistical structure, the accumulation and summary operation can be performed based on a preset operation. Specifically, when the TCP connection transmission ends, that is, when the TCP connection is about to be closed (or the release system call of congestion control is obtained), or in the long connection scenario, that is, when the current request transmission ends (a new transmission request is obtained), then the real-time statistical retransmission feature can be accumulated to the summary feature corresponding to the domain name statistical structure, so that the global retransmission feature can be stably obtained.

[0181] Step 50: Regularly output the global retransmission feature to the central node cache, perform a secondary processing operation on the global retransmission feature, and obtain the retransmission rate corresponding to the data transmission request.

[0182] Among them, the central node can operate and manage one or more nodes. After the node obtains the global retransmission feature, the global retransmission feature can be transmitted to the central node. In the central node, the global retransmission features of all nodes and domain names are aggregated, so that the retransmission rate at the domain name dimension of the large board can be realized.

[0183] Specifically, after obtaining the global retransmission feature, in order to quickly and efficiently output the kernel log to the user space, the data transfer mechanism from the kernel to the user space (e.g., relayfs mechanism) can be utilized to cache and output the global retransmission feature to the central node. In order to output the statistical information of domain names to the central node regularly, a timer mechanism can be preset. For example, it times out every 1 minute and outputs the global domain name statistics once. In addition, the above timer mechanism can also clear the global statistical structure that has not been updated for a long time to reduce the occupation of invalid memory. To ensure data consistency, a concurrency protection mechanism can also be used to protect the global retransmission feature.

[0184] In some instances, the retransmission rate corresponding to the data transfer request is determined based on the global retransmission feature. Specifically, the retransmission rate is determined by the total global retransmission bytes / the actual size of the globally transmitted file, or the retransmission rate can be calculated as the total global retransmission bytes / (the actual size of the globally transmitted file + the total global retransmission bytes).

[0185] In addition, not only can the single retransmission rate be obtained through real-time statistics, but also the retransmission rate in the time dimension can be acquired, that is, the retransmission rate curve can be obtained. Specifically, within a preset time period, the time information corresponding to multiple retransmission rates is obtained, and statistics are performed based on the time information and the multiple retransmission rates to obtain the retransmission rate curve corresponding to the preset time period.

[0186] Since one machine is used to maintain one or more requested domain names, one node is used to maintain one or more machines, one operator (corresponding to the center in the above embodiments) is used to maintain one or more nodes, and one country is used to maintain one or more operators, based on the above statements, it can be seen that not only can the retransmission rate curve in the time dimension be obtained through real-time statistics, but also the retransmission rates in the machine dimension, node dimension, operator dimension, and country dimension can be counted, and a retransmission rate portrait can be established based on the retransmission rate of at least one of the above dimensions.

[0187] Step 60: Front-end display of the retransmission rate.

[0188] Among them, the retransmission rate shown in the front-end display can be not only the single-point retransmission rate obtained from real-time statistics, but also the retransmission rate curve or retransmission rate portrait obtained from real-time statistics. For the retransmission rate portrait, it can be obtained by statistically analyzing the retransmission rates in various dimensions of real-time statistics. It can help the network quickly establish the detection of IDC node quality, the quality of application services, and the detection of product experience. It can also help discover defects or vulnerabilities (BUGs) in the software. For the retransmission rate curve, it can be used for fault warning. In addition, the obtained retransmission rate is combined with scheduling technology to perform corresponding data scheduling operations, so as to achieve the rapid escape of data processing services, supplement the disaster tolerance ability of the platform, and improve the service ability of the platform. In short, the retransmission rate is a key indicator for measuring application services, network links, IDC nodes, and congestion control algorithms. Therefore, it is necessary to statistically analyze the real-time retransmission rate of domain names, which has great value for application services, networks, IDC nodes, and congestion control algorithms, and further expands the scope of application and application scenarios of this solution.

[0189] A high-real-time retransmission rate statistical solution for the domain name dimension provided by this application embodiment, by statistically analyzing the retransmission rate of the domain name dimension in real time, not only ensures the real-time nature of retransmission rate statistics, but also can establish a retransmission rate curve and a retransmission rate portrait based on the retransmission rate. The obtained retransmission rate, retransmission rate curve, and retransmission rate portrait can be used to assist in detecting the quality of IDC nodes, evaluating the quality of data services, evaluating the transmission quality of data transmission links, etc. And it can also perform fault warning operations based on the retransmission rate, retransmission rate curve, and retransmission rate portrait. This greatly improves the practicality of this solution, expands the scope of application and application scenarios of this solution, and is conducive to market promotion and application.

[0190] Figure 11 It is a schematic diagram of the principle of a method for processing live broadcast data provided by an embodiment of this application; Figure 12 It is a schematic flowchart of a method for processing live broadcast data provided by an embodiment of this application; Refer to the appendix Figure 11 - 12 As shown, this embodiment provides a method for processing live broadcast data. The execution subject of this method is a live broadcast data processing device 400. It can be understood that the live broadcast data processing device 400 can be implemented as software, or a combination of software and hardware. Specifically, when the live broadcast data processing device 400 is implemented as hardware, it can be various electronic devices with the ability to process live broadcast data. When the live broadcast data processing device 400 is implemented as software, it can be installed in the above-mentioned electronic devices; Based on the above-mentioned live broadcast data processing device 400, the processing operation of live broadcast data can be realized. Specifically, the method for processing live broadcast data can include the following steps:

[0191] Step S1201: Obtain a transmission request for live data. The transmission request corresponds to a requested domain name.

[0192] Among them, the processing device 400 for live data can be communicatively connected to the live end 300. When there is a need to process live data, the processing device 400 for live data can actively or passively obtain the transmission request for live data through the live end 300.

[0193] Step S1202: Based on the requested domain name, statistically analyze the retransmission characteristics during data transmission in real time. The retransmission characteristics include: the total number of retransmitted bytes and the actual size of the transmitted file.

[0194] Step S1203: Determine a domain name statistical structure that matches the requested domain name.

[0195] Step S1204: Based on the retransmission characteristics and the domain name statistical structure, determine the retransmission rate corresponding to the data transmission request.

[0196] Among them, in this embodiment, the specific implementation principle, implementation process, and implementation effect of the above steps S1001 - S1004 are similar to those of the steps S201 - S204 in the above embodiment. For specific reference, please refer to the above description and will not be elaborated here.

[0197] Step S1205: Control the transmission operation of live data based on the retransmission rate.

[0198] After obtaining the retransmission rate, in order to ensure the quality and effect of the live broadcast, the transmission operation of live data can be controlled based on the retransmission rate. Specifically, after obtaining the retransmission rate, control information corresponding to the live end 300 can be obtained based on the retransmission rate. The processing device 400 for live data can send the obtained control information to the live end 300 to control the transmission operation of live data in the live end 300 based on the control information. For example, when the retransmission rate is greater than or equal to the preset threshold, it indicates that the quality of the current data transmission operation is poor. At this time, bandwidth can be increased, capacity can be expanded, or the server can be transferred in the live broadcast room to ensure the stability and reliability of the data transmission operation. When the retransmission rate is less than the preset threshold, it indicates that the quality of the current data transmission operation is high. At this time, the current state of the live broadcast room can be maintained unchanged.

[0199] It should be noted that the method for processing live data in this embodiment can not only execute the above method steps, but also execute Figure 2 - Figure 9 the method of the embodiment shown, for the parts not described in detail in this embodiment, reference can be made to Figure 2 - Figure 9 the relevant description of the embodiment shown. For the execution process and technical effect of this technical solution, please refer to Figure 2 - Figure 9The descriptions in the illustrated embodiments are not repeated herein.

[0200] Figure 13 FIG. is a schematic structural diagram of a real-time statistics device for retransmission rate provided by an embodiment of the present application; referring to the attached Figure 13 As shown, an embodiment of the present application provides a real-time statistics device for retransmission rate. The real-time statistics device for retransmission rate is used to execute the above-mentioned Figure 2 shown real-time statistics method for retransmission rate. Specifically, the real-time statistics device for retransmission rate may include:

[0201] A first acquisition module 11, configured to acquire a data transmission request, and the data transmission request corresponds to a requested domain name;

[0202] A first statistics module 12, configured to, based on the requested domain name, statistically analyze the retransmission characteristics in the data transmission process in real time. The retransmission characteristics include: the total retransmission byte count and the actual size of the transmitted file;

[0203] A first determination module 13, configured to determine a domain name statistical structure matching the requested domain name;

[0204] A first processing module 14, configured to determine a retransmission rate corresponding to the data transmission request based on the retransmission characteristics and the domain name statistical structure.

[0205] In some instances, when the first determination module 13 determines a domain name statistical structure matching the requested domain name, the first determination module 13 is configured to execute: acquiring a preset operation for triggering the determination of the domain name statistical structure, and the preset operation includes at least one of the following: a Transmission Control Protocol (TCP) connection closing operation corresponding to the data transmission request, receiving a secondary transmission request based on the long connection corresponding to the data transmission request; in response to the preset operation, determining a domain name statistical structure matching the requested domain name.

[0206] In some instances, when the first determination module 13 statistically analyzes the retransmission characteristics in the data transmission process based on the requested domain name, the first determination module 13 is configured to execute: acquiring the setsockopt interface of the port multiplexing technology of the kernel network protocol stack, and the setsockopt interface is configured to associate the requested domain name corresponding to the data transmission request with the TCP connection; based on the setsockopt interface and the TCP connection, statistically analyze the retransmission characteristics in the data transmission process in real time.

[0207] In some instances, before acquiring the setsockopt interface of the port multiplexing technology corresponding to the kernel network protocol stack, the first acquisition module 11 and the first processing module 14 in this embodiment are configured to execute the following steps:

[0208] The first acquisition module 11 is configured to acquire configuration information for configuring the setsockopt interface, where the configuration information at least includes: domain name transmission path information for transmitting the requested domain name configuration from the user space to the kernel space, and a preset space in the kernel space for storing the requested domain name.

[0209] The first processing module 14 is configured to configure the setsockopt interface based on the configuration information, so that the requested domain name can be associated with the TCP connection through the setsockopt interface.

[0210] In some instances, when the first processing module 14 determines the retransmission rate corresponding to the data transmission request based on the retransmission feature and the domain name statistical structure, the first processing module 14 is configured to perform: summarizing the retransmission feature into the domain name statistical structure to obtain a global retransmission feature, where the global retransmission feature includes: the total global retransmission bytes and the actual size of the transmitted file globally; determining the retransmission rate corresponding to the data transmission request based on the global retransmission feature.

[0211] In some instances, when the first processing module 14 summarizes the retransmission feature into the domain name statistical structure, the first processing module 14 is configured to perform: acquiring time information for summarizing the retransmission feature; summarizing the retransmission feature into the domain name statistical structure based on the time information.

[0212] In some instances, the time information includes at least one of the following:

[0213] The moment when a resource release request corresponding to the TCP connection closing operation is received;

[0214] The moment when a secondary transmission request for the long connection corresponding to the data transmission request is received.

[0215] In some instances, when the first determination module 13 determines the domain name statistical structure matching the requested domain name, the first determination module 13 is configured to: acquire the established domain name statistical structure; when the established domain name statistical structure includes a target domain name statistical structure matching the requested domain name, determine the target domain name statistical structure as the domain name statistical structure matching the requested domain name; when the established domain name statistical structure does not include a target domain name statistical connection matching the requested domain name, establish a domain name statistical structure corresponding to the requested domain name.

[0216] In some instances, after determining the retransmission rate corresponding to the data transmission request, the first acquisition module 11 and the first processing module 14 in this embodiment are configured to perform the following steps:

[0217] The first acquisition module 11 is configured to acquire, within a preset time period, the time information corresponding to each retransmission rate, where each retransmission rate corresponds to the data transmission request;

[0218] The first processing module 14 is configured to determine a retransmission rate curve corresponding to a data transmission request based on each retransmission rate and the time information corresponding to each retransmission rate.

[0219] In some instances, after determining the retransmission rate corresponding to the data transmission request, the first acquisition module 11 and the first processing module 14 in this embodiment are configured to perform the following steps:

[0220] The first acquisition module 11 is configured to acquire at least one dimension information for statistically analyzing the retransmission rate;

[0221] The first processing module 14 is configured to statistically analyze the retransmission rate based on the at least one dimension information to obtain a retransmission rate profile.

[0222] In some instances, after determining the retransmission rate corresponding to the data transmission request, the first acquisition module 11 and the first processing module 14 in this embodiment are configured to perform the following steps:

[0223] The first acquisition module 11 is configured to acquire a network transmission link corresponding to the data transmission request;

[0224] The first processing module 14 is configured to determine the data transmission quality of the network transmission link based on the retransmission rate;

[0225] The first processing module 14 is further configured to control the data transmission operation based on the network transmission link according to the data transmission quality.

[0226] In some instances, after determining the retransmission rate corresponding to the data transmission request, the first processing module 14 in this embodiment is configured to perform the following steps: obtaining a sub-retransmission rate in the domain name dimension based on the retransmission rate corresponding to each data transmission request, where the sub-retransmission rate corresponds to domain name information; determining a data processing service corresponding to the domain name information; determining the service quality of the data processing service based on the sub-retransmission rate; and controlling the data processing service according to the service quality.

[0227] In some instances, after determining the retransmission rate corresponding to the data transmission request, the first processing module 14 in this embodiment is configured to perform the following steps: obtaining a congestion control algorithm corresponding to the data transmission request; determining the algorithm performance of the congestion control algorithm based on the retransmission rate; and controlling the congestion control algorithm according to the algorithm performance.

[0228] In some examples, when the first processing module 14 determines the algorithm performance of the congestion control algorithm based on the retransmission rate, the first processing module 14 is configured to perform: obtaining the current data processing service corresponding to the congestion control algorithm; obtaining the sub-retransmission rate in the domain name dimension corresponding to the current data processing service based on the retransmission rates corresponding to the respective data transmission requests; and determining the algorithm performance of the congestion control algorithm corresponding to the current data processing service based on the sub-retransmission rate.

[0229] Figure 13 The real-time statistics device for the retransmission rate shown can execute Figure 1 - Figure 9 the method of the embodiment shown. For parts not described in detail in this embodiment, reference can be made to the relevant descriptions of Figure 1 - Figure 9 the embodiment shown. For the execution process and technical effects of this technical solution, refer to Figure 1 - Figure 9 the description in the embodiment shown, which will not be elaborated here.

[0230] In a possible design, Figure 13 the structure of the real-time statistics device for the retransmission rate shown can be implemented as an electronic device. Referring to the Figure 14 accompanying figure, the real-time statistics device for the retransmission rate in this embodiment can be implemented as an electronic device. Specifically, the electronic device may include: a first processor 21 and a first memory 22. Among them, the first memory 22 is used to store a program for the corresponding electronic device to execute the real-time statistics method for the retransmission rate provided in the Figure 2 embodiment shown, and the first processor 21 is configured to execute the program stored in the first memory 22.

[0231] The program includes one or more computer instructions. When one or more computer instructions are executed by the first processor 21, the following steps can be implemented: obtaining a data transmission request, where the data transmission request corresponds to a requested domain name; based on the requested domain name, real-time statistically analyzing the retransmission characteristics during the data transmission process, and the retransmission characteristics include: the total retransmission byte count and the actual size of the transmitted file; determining a domain name statistical structure that matches the requested domain name; and determining the retransmission rate corresponding to the data transmission request based on the retransmission characteristics and the domain name statistical structure.

[0232] Further, the first processor 21 is further configured to execute all or part of the steps in the Figure 2 embodiment shown. Among them, the structure of the electronic device may further include a first communication interface 23 for the electronic device to communicate with other devices or communication networks.

[0233] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by an electronic device, which includes a program involved in executing the real-time statistics method for the retransmission rate in the Figure 2 method embodiment shown.

[0234] In addition, an embodiment of the present invention provides a computer program product, including: a computer program, when the computer program is executed by a processor of an electronic device, causing the processor to execute Figure 2 the real-time statistical method of the retransmission rate in the method embodiment shown.

[0235] Figure 15 It is a schematic structural diagram of a processing device for live broadcast data provided by an embodiment of the present application; referring to the attached Figure 15 As shown, this embodiment provides a processing device for live broadcast data, and this processing device for live broadcast data is used to execute the above Figure 12 shown processing method of live broadcast data. Specifically, this processing device for live broadcast data may include:

[0236] A second acquisition module 31, configured to acquire a transmission request for live broadcast data, and the transmission request corresponds to a requested domain name;

[0237] A second statistics module 32, configured to, based on the requested domain name, statistically analyze the retransmission characteristics in real time during the data transmission process, and the retransmission characteristics include: the total retransmission byte count and the actual size of the transmitted file;

[0238] A second determination module 33, configured to determine a domain name statistical structure that matches the requested domain name;

[0239] The second determination module 33 is further configured to, based on the retransmission characteristics and the domain name statistical structure, determine a retransmission rate corresponding to the data transmission request;

[0240] A second processing module 34, configured to control the transmission operation of the live broadcast data based on the retransmission rate.

[0241] Figure 15 The processing device for live broadcast data shown can execute Figure 12 the method of the embodiment shown. For parts not described in detail in this embodiment, reference may be made to the relevant descriptions of the Figure 12 shown embodiment. The execution process and technical effects of this technical solution are described in the Figure 12 shown embodiment and will not be elaborated here.

[0242] In a possible design, Figure 15 the structure of the processing device for live broadcast data shown can be implemented as an electronic device. Referring to the attached Figure 16 As shown, the processing device for live broadcast data in this embodiment can be implemented as an electronic device. Specifically, this electronic device may include: a second processor 41 and a second memory 42. Among them, the second memory 42 is used to store a program for the corresponding electronic device to execute the processing method of the live broadcast data provided in the Figure 12 shown embodiment, and the second processor 41 is configured to execute the program stored in the second memory 42.

[0243] The program includes one or more computer instructions. When the one or more computer instructions are executed by the second processor 41, the following steps can be implemented: obtaining a transmission request for live data, where the transmission request corresponds to a requested domain name; based on the requested domain name, statistically analyzing the retransmission characteristics in the data transmission process in real time, and the retransmission characteristics include: the total number of retransmitted bytes and the actual size of the transmitted file; determining a domain name statistical structure that matches the requested domain name; based on the retransmission characteristics and the domain name statistical structure, determining a retransmission rate corresponding to the data transmission request; and controlling the transmission operation of the live data based on the retransmission rate.

[0244] Furthermore, the second processor 41 is also used to execute all or part of the steps in the foregoing Figure 10 illustrated embodiments. Among them, the structure of the electronic device may further include a second communication interface 43 for the electronic device to communicate with other devices or communication networks.

[0245] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by an electronic device, which includes a program related to the method for processing live data in the foregoing Figure 12 illustrated method embodiments.

[0246] In addition, an embodiment of the present invention provides a computer program product, including: a computer program, when the computer program is executed by a processor of an electronic device, causing the processor to execute Figure 12 the method for processing live data in the illustrated method embodiments.

[0247] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data that have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to select authorization or rejection.

[0248] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative labor.

[0249] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. Based on such an understanding, the above technical solutions can be embodied in the form of a computer product in essence or the part that contributes to the prior art. The present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) that contain computer-usable program codes.

[0250] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general computer, a special computer, an embedded processor, or other programmable devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0251] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable devices to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks. These computer program instructions can also be loaded onto a computer or other programmable devices, so that a series of operation steps are executed on the computer or other programmable devices to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable devices provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0252] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and a memory. The memory may include non-permanent memory in the computer-readable medium, random access memory (RAM), and / or non-volatile memory in the form of, for example, read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0253] A computer-readable medium includes both permanent and non-permanent, removable and non-removable media and can implement data storage by any method or technology. The data can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store data that can be accessed by a computing device. As defined herein, a computer-readable medium does not include transitory computer-readable media such as modulated data signals and carrier waves.

[0254] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A real-time statistical method for retransmission rate, characterized in that, Including: Obtain a data transmission request, where the data transmission request corresponds to a requested domain name; Based on the requested domain name, statistically analyze the retransmission characteristics during the data transmission process in real time. The retransmission characteristics include: the total number of retransmitted bytes, the actual size of the transmitted file; Determine a domain name statistical structure that matches the requested domain name; Based on the retransmission characteristics and the domain name statistical structure, determine the retransmission rate corresponding to the data transmission request.

2. The method according to claim 1, wherein Determine a domain name statistical structure that matches the requested domain name, including: Obtain a preset operation for triggering the determination of the domain name statistical structure. The preset operation includes at least one of the following: a Transmission Control Protocol (TCP) connection closing operation corresponding to the data transmission request, receiving a secondary transmission request based on the long connection corresponding to the data transmission request; In response to the preset operation, determine a domain name statistical structure that matches the requested domain name.

3. The method according to claim 2, characterized in that, Based on the requested domain name, statistically analyze the retransmission characteristics during the data transmission process in real time, including: Obtain the setsockopt interface of the kernel network protocol stack for port multiplexing technology. The setsockopt interface is configured to associate the requested domain name corresponding to the data transmission request with the TCP connection; Based on the setsockopt interface and the TCP connection, statistically analyze the retransmission characteristics during the data transmission process in real time.

4. The method according to claim 3, characterized in that, Before obtaining the setsockopt interface of the kernel network protocol stack corresponding to the port multiplexing technology, the method further includes: Obtain configuration information for configuring the setsockopt interface. The configuration information at least includes: domain name transmission path information for transmitting the requested domain name configuration from the user space to the kernel space, a preset space in the kernel space for storing the requested domain name; Configure the setsockopt interface based on the configuration information so that the requested domain name can be associated with the TCP connection through the setsockopt interface.

5. The method according to claim 1, wherein Based on the retransmission characteristics and the domain name statistical structure, determine the retransmission rate corresponding to the data transmission request, including: Summarize the retransmission characteristics into the domain name statistical structure to obtain global retransmission characteristics. The global retransmission characteristics include: the total number of globally retransmitted bytes, the actual size of the globally transmitted file; Based on the global retransmission characteristics, determine the retransmission rate corresponding to the data transmission request.

6. The method according to claim 5, characterized in that, Summarize the retransmission characteristics into the domain name statistical structure, including: Obtain time information for summarizing the retransmission characteristics; Based on the time information, summarize the retransmission characteristics into the domain name statistical structure.

7. The method according to claim 6, wherein The time information includes at least one of the following: The moment when a resource release request corresponding to the TCP connection closing operation is received; The moment when a secondary transmission request based on the long connection corresponding to the data transmission request is received.

8. The method according to claim 1, wherein Determine a domain name statistical structure that matches the requested domain name, including: Obtain the established domain name statistical structure; When the established domain name statistics structure includes a target domain name statistics structure that matches the requested domain name, the target domain name statistics structure is determined as the domain name statistics structure that matches the requested domain name; When the established domain name statistics structure does not include a target domain name statistics connection that matches the requested domain name, a domain name statistics structure corresponding to the requested domain name is established.

9. The method according to claim 1, wherein After determining the retransmission rate corresponding to the data transmission request, the method further includes: Within a preset time period, obtaining time information corresponding to each retransmission rate, where each retransmission rate corresponds to the data transmission request; Based on each retransmission rate and the time information corresponding to each retransmission rate, determining a retransmission rate curve corresponding to the data transmission request.

10. The method according to claim 1, wherein After determining the retransmission rate corresponding to the data transmission request, the method further includes: Obtaining at least one dimension information for statistically analyzing the retransmission rate; Based on the at least one dimension information, statistically analyzing the retransmission rate to obtain a retransmission rate portrait.

11. The method according to any one of claims 1-10, characterized in that, After determining the retransmission rate corresponding to the data transmission request, the method further includes: Obtaining a network transmission link corresponding to the data transmission request; Based on the retransmission rate, determining the data transmission quality of the network transmission link; Based on the data transmission quality, controlling the data transmission operation based on the network transmission link.

12. The method according to any one of claims 1-10, characterized in that After determining the retransmission rate corresponding to the data transmission request, the method further includes: Based on the retransmission rates corresponding to each data transmission request, obtaining a sub-retransmission rate in the domain name dimension, where the sub-retransmission rate corresponds to domain name information; Determining a data processing service corresponding to the domain name information; Based on the sub-retransmission rate, determining the service quality of the data processing service; Based on the service quality, controlling the data processing service.

13. The method according to any one of claims 1-10, characterized in that, After determining the retransmission rate corresponding to the data transmission request, the method further includes: Obtaining a congestion control algorithm corresponding to the data transmission request; Based on the retransmission rate, determining the algorithm performance of the congestion control algorithm; Based on the algorithm performance, controlling the congestion control algorithm.

14. The method according to claim 13, wherein Determining the algorithm performance of the congestion control algorithm based on the retransmission rate includes: Obtaining the current data processing service corresponding to the congestion control algorithm; Based on the retransmission rates corresponding to each data transmission request, obtaining a sub-retransmission rate in the domain name dimension corresponding to the current data processing service; Based on the sub-retransmission rate, determining the algorithm performance of the congestion control algorithm corresponding to the current data processing service.

15. A method for processing live broadcast data, characterized in that, Includes: Obtaining a transmission request for live broadcast data, where the transmission request corresponds to a requested domain name; Based on the requested domain name, statistically analyzing the retransmission characteristics during the data transmission process in real time, where the retransmission characteristics include: total retransmission bytes, actual size of the transmitted file; Determining a domain name statistics structure that matches the requested domain name; Based on the retransmission characteristics and the domain name statistics structure, determining the retransmission rate corresponding to the data transmission request; Based on the retransmission rate, controlling the transmission operation of the live broadcast data.

16. An electronic device, characterized in that, Includes: A memory and a processor; wherein, the memory is used for storing one or more computer instructions, and when the one or more computer instructions are executed by the processor, the method described in any one of claims 1-15 is implemented.

17. A computer program product, characterized in that, Comprising: A computer program, which when executed by a processor of an electronic device, causes the processor to execute the steps in the method described in any one of claims 1-15 above.