CDN transmission performance analysis method, device, equipment, medium and product

By acquiring and counting the first transmission time information in CDN transmission performance analysis, the problem of low accuracy of CDN transmission performance analysis results is solved, and accurate analysis of CDN transmission performance and time-consuming fitting of client network transmission is achieved.

CN119276734BActive Publication Date: 2025-03-04BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411794070.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-04
Estimated Expiration
2044-12-06

AI Technical Summary

Technical Problem

The accuracy of CDN transmission performance analysis results is relatively low, mainly due to the lack of detailed quality data from the client side and the problem of requests returning immediately after TCP sends cache.

Method used

By obtaining the first transmission time information of each request in the target link, using the end time after the request ends and the target link status information at the beginning of the request, and combining the partial transmission time information of adjacent requests, statistical analysis is performed to obtain the target transmission time information.

Benefits of technology

Accurate analysis of CDN transmission performance is realized, and the time information of the client received data is truly portrayed through slices, and the transmission time is fitted to the client network, thereby improving the accuracy of the analysis results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276734B_ABST
    Figure CN119276734B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of computer technology, and discloses a CDN transmission performance analysis method, device, equipment, medium and product. The method includes obtaining the first transmission time information obtained by each request in the target link, and the first transmission time information is determined based on the end time after the request ends and the first link state information of the target link obtained at the beginning of the request. For adjacent first and second requests and the first request is before the second request, the first transmission time information obtained by the second request includes partial transmission time information of the first request and partial transmission time information of the second request; the first transmission time information obtained by all requests is statistically analyzed to obtain the target transmission time information corresponding to each request in the target link. The method uses a slicing method to truly depict the time information of the client receiving data, which can truly fit the transmission time consumption of the client network and obtain accurate CDN transmission performance analysis results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to CDN transmission performance analysis methods, devices, equipment, media and products. Background Art

[0002] Content Delivery Network (CDN) vendors need to analyze CDN transmission performance in order to provide better services to customers. Since there is no detailed quality data on the client side, and generally requests are returned after writing user data to the TCP (Transmission Control Protocol) send buffer, and are not actually sent to the client, the time consumption of related log statistics is not accurate, and the accuracy of the CDN transmission performance analysis results obtained on this basis is low. Summary of the invention

[0003] In view of this, the present disclosure provides a CDN transmission performance analysis method, device, equipment, medium and product to solve the problem of low accuracy of CDN transmission performance analysis results.

[0004] In a first aspect, the present disclosure provides a CDN transmission performance analysis method, the method comprising:

[0005] Obtaining first transmission time information obtained by each request in the target link, where the first transmission time information is determined based on an end time after the request ends and first link state information of the target link obtained when the request starts, and for adjacent first and second requests and the first request is before the second request, the first transmission time information obtained by the second request includes partial transmission time information of the first request and partial transmission time information of the second request;

[0006] Statistical analysis is performed on the first transmission time information obtained by all the requests to obtain target transmission time information corresponding to each of the requests in the target link.

[0007] In a second aspect, the present disclosure provides a CDN transmission performance analysis device, the device comprising:

[0008] an acquisition module, configured to acquire first transmission time information obtained by each request in a target link, wherein the first transmission time information is determined based on an end time after the end of the request and first link state information of the target link obtained when the request starts, and for adjacent first and second requests and the first request is before the second request, the first transmission time information obtained by the second request includes partial transmission time information of the first request and partial transmission time information of the second request;

[0009] The analysis module is used to perform statistical analysis on the first transmission time information obtained by all the requests to obtain the target transmission time information corresponding to each of the requests in the target link.

[0010] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the CDN transmission performance analysis method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0011] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the CDN transmission performance analysis method of the first aspect or any corresponding embodiment thereof.

[0012] In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, where the computer instructions are used to enable a computer to execute the CDN transmission performance analysis method of the first aspect or any corresponding embodiment thereof.

[0013] The CDN transmission performance analysis method provided by the embodiment of the present disclosure may carry at least one request on the target link. For each request, the corresponding first transmission time information can be obtained. The first transmission time information is determined based on the end time after the request processing is completed and the first link state information of the target link obtained at the beginning of the request. For the adjacent first request and the second request and the first request before the second request, the first transmission time information obtained by the first request includes part of the transmission time information of the first request and part of the transmission time information of the second request. After each request obtains the corresponding first transmission time information, all the first transmission time information is statistically analyzed to obtain the target transmission time information corresponding to each request. Specifically, since the request returns immediately after sending data to the TCP buffer, it is difficult to accurately count the transmission time information. Based on this, slices are provided through variables that only increase but not decrease during the link process, that is, the time of each request is divided into two parts in principle, one part is obtained by itself, and the other part is obtained by the next request. The slice method is used to truly characterize the time information of the client receiving data, that is, to characterize the transmission performance of the CDN, so that the transmission time consumption of the client network can be truly and reasonably fitted, and then accurate CDN transmission performance analysis results can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 is a schematic diagram of a TCP service scenario according to an embodiment of the present disclosure;

[0016] Figure 2 is a schematic diagram of an optional application scenario according to an embodiment of the present disclosure;

[0017] Figure 3 is a flow chart of a CDN transmission performance analysis method according to an embodiment of the present disclosure;

[0018] Figure 4 is a flowchart of another CDN transmission performance analysis method according to an embodiment of the present disclosure;

[0019] Figure 5 is a schematic diagram of the principle of a CDN transmission performance analysis method according to an embodiment of the present disclosure;

[0020] Figure 6is a structural block diagram of a CDN transmission performance analysis device according to an embodiment of the present disclosure;

[0021] Figure 7 It is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0023] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0024] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0025] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0026] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0027] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0028] In order to solve the problem of CDN transmission performance analysis, the solution proposed in the related technology is the service detection function at the TCP layer. Specifically, a tracking point is set at the corresponding position in the kernel TCP protocol stack, which can identify the request and response in the scenario where there is only one concurrent request and response on a single connection, and then obtain data information such as the time when the request is received in the protocol stack and the time consumed in the service process. In addition, the method also supports statistical analysis in the kernel system and regularly outputs statistical information of the specified connection. Among them, the method is applicable to services with only one concurrent request and response on a connection.

[0029] When the TCP service scenario is a concurrent request and response, the various stages are as follows Figure 1 As shown in the figure, the Nth request sent by the client to the server is represented as ReqN. The request consists of two data packets, ReqN-1 and ReqN-2. The time when the server receives the first packet is recorded as T0, and the time when the second packet is recorded as T1. After receiving the request, the server processes it and sends two response data packets RspN-1 and RspN-2 to the client. The time when the server sends the first packet is recorded as T2. After receiving the response packet, the client sends a confirmation message ACK (Acknowledge character) to the server. The time when the server receives the last ACK is recorded as T3.

[0030] Based on the records of the above time points, we can calculate: the time used by the user to request upload (upload_time); the server's processing time (process_time), which is the time from the server receiving the last request data packet to the server starting to send the response data packet to the client; and the data download time (download_time), which is the time from the server starting to send the response data packet to the client to the server receiving the last ACK from the client.

[0031] However, this method needs to introduce additional kernel module components to perform time statistics analysis, which increases processing complexity and so on.

[0032] Based on this, the embodiment of the present disclosure provides a CDN transmission performance analysis method, which can obtain the corresponding first transmission time information on the target link to which each request belongs, and the first transmission time information is determined based on the end time after the request processing is completed and the first link state information of the target link obtained at the beginning of the request. For adjacent first and second requests and the first request is before the second request, the first transmission time information obtained by the first request includes partial transmission time information of the first request and partial transmission time information of the second request. After each request obtains the corresponding first transmission time information, all the first transmission time information is statistically analyzed to obtain the target transmission time information corresponding to each request.

[0033] Before describing this solution, the analysis principle involved in this solution is explained in detail. As described above, since the data sent by the server is returned immediately after entering the TCP buffer, it is difficult to count the actual transmission time of this request in the public network when the log is generated at the end of the request. In addition, due to the parallelization of protocols such as http2, it is also difficult to clearly count the start time of the request at TCP layer 4.

[0034] Since the performance analysis is done by statistical analysis, the statistical variables only need to describe the approximate trend, and the kernel does not need to be too precise in statistics. In addition, the TCP connection time must be serial. For example, if three requests are run on a link, the ideal average value is:

[0035]

[0036] in, , as well as They respectively represent the transport layer time consumed by the access logs at the end of the three requests.

[0037] However, due to the above reasons (the data sent by the server is returned immediately after entering the TCP buffer), it is impossible to accurately measure , as well as .

[0038] On this basis, the idea of ​​this case is to further fragment the request time, that is, the first transmission time information obtained at the end of each request is only partial time information, including its own partial transmission time information and the partial transmission time information of the previous request. For example, for the second request, the first transmission time information obtained includes the partial transmission time information of the first request and the partial transmission time information of the second request.

[0039] Although the first transmission time information obtained for each request cannot represent the complete transmission time information of each request, since the first transmission time information of all requests for each link is subsequently statistically analyzed, the statistical result will not be greatly affected.

[0040] Figure 2 A schematic diagram of an optional application scenario of the CDN transmission performance analysis method in the embodiment of the present disclosure is shown, in which the first terminal 41 is connected to the first server 30 through the first network, the first server 30 is connected to the third server 20 through the second server 10, and the third server 20 is connected to the second terminal 42 through the second network. The first server 30, the second server 10 and the third server 20 form a content distribution network. By executing the CDN transmission performance analysis method of the embodiment of the present disclosure in the first server 30, the second server 10 and the third server 20, the corresponding links are analyzed, thereby obtaining the analysis result of the CDN transmission performance.

[0041] According to an embodiment of the present disclosure, an embodiment of a CDN transmission performance analysis method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0042] In this embodiment, a CDN transmission performance analysis method is provided, which can be used in CDN. Figure 3 is a flow chart of a CDN transmission performance analysis method according to an embodiment of the present disclosure. Figure 3 As shown, the process includes the following steps:

[0043] Step S201, obtaining first transmission time information obtained by each request in the target link.

[0044] Among them, the first transmission time information is determined based on the end time after the request ends and the first link status information of the target link obtained when the request starts. For adjacent first and second requests and the first request is before the second request, the first transmission time information obtained by the second request includes partial transmission time information of the first request and partial transmission time information of the second request.

[0045] The link state information of the target link changes with time, including time information related to the link. For each request in the target link, the first link state information of the target link is obtained at the start of the request, and the first link state information includes the real-time time information of the target link. Therefore, after the first link state information is obtained at the start of the request, the time information at the start of the request can be represented.

[0046] After the request processing is completed, the end time after the request is completed is determined. For each request, the end time after the request is completed is compared with the time information when the request starts, and the first transmission time information corresponding to the request can be determined.

[0047] As described above, since the data is returned immediately after being sent to the TCP buffer, the first transmission time information obtained by each request includes the partial transmission time information of the previous request and its own partial transmission time information. Specifically, the first request is adjacent to the second request, and the first request is before the second request, then, for the second request, the first transmission time information obtained includes the partial transmission time information of the first request and the partial transmission time information of the second request.

[0048] Step S202: Statistically analyze the first transmission time information obtained from all requests to obtain target transmission time information corresponding to each request in the target link.

[0049] For all requests belonging to the target link, the first transmission time information corresponding to each of them can be obtained. For the last request of the target link, part of the corresponding transmission time information can be obtained, while the remaining part of the transmission time information will be lost. However, this will not have a significant impact on the target transmission time information corresponding to each request to be determined in the end. On the one hand, since the first transmission time information obtained for all requests will be statistically analyzed, on the other hand, the transmission time information will also be processed during the actual processing due to factors such as the long tail. Therefore, for the last request of the target link, only obtaining part of the transmission time information will not have a significant impact on the final performance analysis results.

[0050] For the first transmission time information obtained by all requests, the statistical analysis may be calculating the mean, or performing a difference comparison analysis based on the mean, etc. The specific method of the statistical analysis is not limited here, and can be set according to actual needs.

[0051] After statistical analysis is performed on the first transmission time information obtained for all requests of the target link, the target transmission time information corresponding to each request is characterized by the result of the statistical analysis.

[0052] The CDN transmission performance analysis method provided in this embodiment is difficult to accurately count the transmission time information because the request returns immediately after sending data to the TCP buffer. Based on this, slicing is provided through variables that only increase and never decrease during the link process. That is, the time of each request is divided into two parts in principle, one part is obtained by itself, and the other part is obtained by the next request. The slicing method is used to truly characterize the time information of the client receiving data, that is, to characterize the transmission performance of the CDN, so that the transmission time consumption of the client network can be truly and reasonably fitted, and then accurate CDN transmission performance analysis results can be obtained.

[0053] In this embodiment, a CDN transmission performance analysis method is provided, which can be used in CDN. Figure 4 is a flow chart of a CDN transmission performance analysis method according to an embodiment of the present disclosure. Figure 4 As shown, the process includes the following steps:

[0054] Step S301, obtaining first transmission time information obtained by each request in the target link.

[0055] Among them, the first transmission time information is determined based on the end time after the request ends and the first link status information of the target link obtained when the request starts. For adjacent first and second requests and the first request is before the second request, the first transmission time information obtained by the second request includes partial transmission time information of the first request and partial transmission time information of the second request.

[0056] Specifically, the above step S301 includes:

[0057] Step S3011, after receiving the request, obtaining first link state information of the target link to which the request belongs.

[0058] Since multiple requests can be obtained at the same time, it is necessary to determine the target link to which these requests belong. For example, the request carries the identifier of the corresponding link, and the target link to which the request belongs can be determined by the identifier of the link. Alternatively, other methods can be used to determine the target link to which the request belongs.

[0059] After determining the target link, the first link state information of the target link can be obtained. As described above, there is a time variable that only increases but never decreases during the link process. The time variable includes multiple types of time information, such as the accumulated value of link idle time, the accumulated value of link sending time, etc.

[0060] In some optional implementations, obtaining the first link state information of the target link to which the request belongs includes: obtaining the first link state information of the target link from a data structure corresponding to the target link, where the data structure corresponding to the target link is used to back up the link state information corresponding to the transport layer.

[0061] At the beginning of the request, the first link state information is obtained from the data structure corresponding to the target link. The data structure is used to back up the link state information corresponding to the transport layer. Based on this, at the beginning of the request, the first link state information is directly obtained from the data structure instead of from the kernel transport layer, thereby avoiding data interaction with the kernel.

[0062] In some optional implementations, the time in the first link state information includes a target link sending time accumulation value, a first time accumulation value of the target link being limited by the peer receiving window, and a second time accumulation value of the target link being limited by the local sending buffer.

[0063] The time information included in the link status information of the target link includes: the cumulative value of the target link idle time (idle time); the cumulative value of the target link sending time (busy sending data), which represents the time statistics of the client response data; the first cumulative value of the target link being limited by the peer's receiving window (rwnd-limited), and the cumulative value of the target link being limited by the local sending buffer (sndbuf-limited).

[0064] Since there is no need to count the idle time, the first link state information obtained by each request includes the other three of the above four types of time.

[0065] The first link state information includes three types of time, covering each stage of the transmission process, thereby ensuring the comprehensiveness of the acquired first transmission time information.

[0066] In some optional implementations, the CDN transmission performance analysis method further includes: after the request is completed, updating the link status information in the data structure corresponding to the target link.

[0067] After the request is completed, the link state information in the data structure corresponding to the target link is updated based on the request time to facilitate determining the first transmission time information.

[0068] After the request is completed, the link status information in the data structure corresponding to the target link is updated in a timely manner to facilitate subsequent accurate statistical analysis.

[0069] Step S3012, process the request and obtain the end time after the request processing is completed.

[0070] The obtained request is processed according to the request requirements. Since the request processing takes a certain amount of time, it is necessary to obtain the corresponding end time after the request processing is completed, rather than directly using the obtained first link state information for statistical analysis.

[0071] Step S3013: Determine first transmission time information corresponding to the request based on the difference between the end time and the time in the first link state information.

[0072] For each type of time information in the first link state information, the difference between the end time and each type of time information is calculated to obtain the transmission time information corresponding to each type of time. Accordingly, the first transmission time information corresponding to the request is obtained.

[0073] In some optional implementations, the above step S3013 includes: respectively calculating the difference between the end time and each time in the first link state information to obtain the first transmission time information corresponding to the request. The corresponding first transmission time information is determined by the difference between the end time and each time, and the calculation method is simple and easy to implement.

[0074] Step S302: Statistically analyze the first transmission time information obtained from all requests to obtain target transmission time information corresponding to each request in the target link.

[0075] Specifically, the above step S302 includes: performing average calculation on the first transmission time information obtained from all requests, and using the calculation result as the target transmission time information corresponding to each request.

[0076] For example, the target link corresponds to 3 requests, and the first transmission time information obtained by request 1 is ,in, is a portion of the transmission time information corresponding to request 1; the second transmission time information obtained by request 2 is ,in, The remaining part of the transmission time information corresponding to request 1, is part of the transmission time information corresponding to request 2; the first transmission time information obtained by request 3 is ,in, The remaining part of the transmission time information corresponding to request 2, This is part of the transmission time information corresponding to request 3.

[0077] As described above, due to the inability to accurately measure , as well as , then the time can be obtained by dividing the request time into slices, and then statistical analysis can be performed later. This method can not only accurately obtain the slice time, but also has no effect on the accuracy of the final result through statistical analysis.

[0078] For example, the first transmission time information obtained from the above three requests is averaged:

[0079]

[0080] The result of the average calculation is used as the target transmission time information corresponding to each request. The first transmission time information corresponding to each request is determined based on the end time of the request and the first link state information obtained when the request starts.

[0081] It should be noted that the above-mentioned first transmission time information is a general term for multiple types of time, and does not specifically refer to a certain time. That is, the calculation methods of the above-mentioned three types of time (the cumulative value of the target link sending time, the first cumulative value of the target link being limited by the opposite end receiving window, and the second cumulative value of the target link being limited by the local end sending buffer) can all be obtained by using the above-mentioned average calculation.

[0082] The target transmission time information corresponding to each request is characterized by using the mean calculation method. Since the sum of the first transmission time information is basically the same as that before slicing, calculating the target transmission time information by using the mean method can ensure the accuracy of the calculation result.

[0083] The CDN transmission performance analysis method provided in this embodiment determines the first transmission time information after the request ends. Compared with the determination of the first transmission time information at the beginning of the request, this method can partially process the delay of the last request on the target link, thereby approaching the delay in the actual scenario.

[0084] As a specific application example of the present disclosure, Figure 5 The schematic diagram of the principle of this method is shown. The link status information includes general time information, such as delay, etc., as well as time information of general downloading (such as application interface call, downloading and on-demand, etc.) and time information of general uploading (such as file uploading and live streaming, etc.). The time information in the link status information is used to quantify the CDN transmission capacity or means, especially in the racing scenario.

[0085] Based on this, the link state information is updated after the response information (ACK) is obtained. For each received request, the first link state information is obtained from the link state information corresponding to the target link after the request is obtained. Figure 53 requests on the target link are shown in FIG. 1 , namely, request 1 to request 3. For request 1 to request 3, the first link state information corresponding to each request is obtained according to the order in which they arrive, and then combined with the end time of each request, the first transmission time information corresponding to each request is obtained. Combined with the mean statistical analysis method described above, the target transmission time information corresponding to each request is obtained, so as to quantify the CDN transmission performance.

[0086] This method can accurately fit the index data on the client side by performing statistical analysis after slicing the time information corresponding to the request. In addition, since this method is based on the link status information of the target link to analyze the CDN transmission performance, it is not related to the protocol itself, so it can be applied to the use of all protocols, including but not limited to http1, https and http2.

[0087] In this embodiment, a CDN transmission performance analysis device is also provided, which is used to implement the above embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0088] This embodiment provides a CDN transmission performance analysis device, such as Figure 6 As shown, including:

[0089] Acquisition module 601 is used to obtain the first transmission time information obtained by each request in the target link, the first transmission time information is determined based on the end time after the request ends and the first link status information of the target link obtained when the request starts. For adjacent first and second requests and the first request is before the second request, the first transmission time information obtained by the second request includes partial transmission time information of the first request and partial transmission time information of the second request.

[0090] The analysis module 602 is used to perform statistical analysis on the first transmission time information obtained from all requests to obtain target transmission time information corresponding to each request in the target link.

[0091] In some optional implementations, the acquisition module 601 includes:

[0092] The acquiring unit is used to acquire the first link state information of the target link to which the request belongs after receiving the request.

[0093] The processing unit is used to process the request and obtain the end time after the request processing is completed.

[0094] The time information determining unit is used to determine the first transmission time information corresponding to the request based on the difference between the end time and the time in the first link state information.

[0095] In some optional implementations, the acquiring unit includes:

[0096] The acquisition subunit is used to acquire first link state information of the target link from a data structure corresponding to the target link, and the data structure corresponding to the target link is used to back up the link state information corresponding to the transport layer.

[0097] In some optional implementations, the CDN transmission performance analysis device further includes:

[0098] The update module is used to update the link status information in the data structure corresponding to the target link after the request is completed.

[0099] In some optional implementations, the time in the first link state information includes a target link sending time accumulation value, a first time accumulation value of the target link being limited by the peer receiving window, and a second time accumulation value of the target link being limited by the local sending buffer.

[0100] In some optional implementations, the time information determining unit includes:

[0101] The difference between the end time and each time in the first link state information is calculated respectively to obtain the first transmission time information corresponding to the request.

[0102] In some optional implementations, the analysis module 602 includes:

[0103] The mean calculation unit is used to perform mean calculation on the first transmission time information obtained by all requests, and use the calculation result as the target transmission time information corresponding to each request.

[0104] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0105] The CDN transmission performance analysis device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0106] The present disclosure also provides an electronic device having the above Figure 6 The CDN transmission performance analysis device shown.

[0107] See also Figure 7 , Figure 7 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present disclosure, such as Figure 7 As shown, the electronic device includes: one or more processors 100, a memory 200, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 100 is taken as an example.

[0108] The processor 100 may be a central processing unit, a network processor or a combination thereof. The processor 100 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.

[0109] The memory 200 stores instructions executable by at least one processor 100, so that the at least one processor 100 executes the method shown in the above embodiment.

[0110] The memory 200 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 200 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 200 may optionally include a memory remotely arranged relative to the processor 100, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0111] The memory 200 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 200 may also include a combination of the above types of memory.

[0112] The electronic device further includes a communication interface 300 for the electronic device to communicate with other devices or a communication network.

[0113] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0114] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0115] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A CDN transmission performance analysis method, characterized in that: The method comprises: Obtaining first transmission time information obtained by each request in the target link, where the first transmission time information is determined based on an end time after the request ends and first link state information of the target link obtained when the request starts, and for adjacent first and second requests and the first request is before the second request, the first transmission time information obtained by the second request includes partial transmission time information of the first request and partial transmission time information of the second request; Performing statistical analysis on the first transmission time information obtained by all the requests to obtain target transmission time information corresponding to each of the requests in the target link; The step of obtaining the first transmission time information obtained by each request in the target link includes: After receiving the request, first link state information of the target link to which the request belongs is obtained, where the time in the first link state information includes a cumulative value of the target link sending time, a first cumulative value of the target link being limited by the receiving window of the other end, and a second cumulative value of the target link being limited by the sending buffer of the local end; Processing the request, and obtaining the end time after the request processing is completed; The difference between the end time and each time in the first link state information is calculated respectively to obtain the first transmission time information corresponding to the request.

2. The method according to claim 1, characterized in that The obtaining first link status information of the target link to which the request belongs includes: The first link state information of the target link is obtained from a data structure corresponding to the target link, where the data structure corresponding to the target link is used to back up the link state information corresponding to the transport layer.

3. The method according to claim 2, characterized in that The method further comprises: After the request is completed, the link status information in the data structure corresponding to the target link is updated.

4. The method according to any one of claims 1 to 3, characterized in that The statistical analysis of the first transmission time information obtained from all the requests to obtain the target transmission time information corresponding to each of the requests in the target link includes: An average calculation is performed on the first transmission time information obtained by all the requests, and the calculation result is used as the target transmission time information corresponding to each of the requests.

5. A CDN transmission performance analysis device, characterized in that: The device comprises: an acquisition module, configured to acquire first transmission time information obtained by each request in a target link, wherein the first transmission time information is determined based on an end time after the end of the request and first link state information of the target link obtained when the request starts, and for adjacent first and second requests and the first request is before the second request, the first transmission time information obtained by the second request includes partial transmission time information of the first request and partial transmission time information of the second request; An analysis module, configured to perform statistical analysis on the first transmission time information obtained by all the requests, and obtain target transmission time information corresponding to each of the requests in the target link; Wherein, the acquisition module includes: an acquiring unit, configured to acquire, after receiving the request, first link state information of a target link to which the request belongs, wherein the time in the first link state information includes a cumulative value of a sending time of the target link, a first cumulative value of a time when the target link is limited by a receiving window of a peer end, and a second cumulative value of a time when the target link is limited by a sending buffer of a local end; A processing unit, used for processing the request and obtaining the end time after the request processing is completed; The time information determination unit is used to respectively calculate the difference between the end time and each time in the first link state information to obtain the first transmission time information corresponding to the request.

6. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the CDN transmission performance analysis method according to any one of claims 1 to 4 by executing the computer instructions.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the CDN transmission performance analysis method according to any one of claims 1 to 4.

8. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the CDN transmission performance analysis method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Link time consumption analysis method and device, storage medium and electronic equipment

    CN116483578A

  • CDN (Content Delivery Network) quality evaluation method, device and equipment and storage medium

    CN116743763A