Link quality detection method and device, equipment and storage medium
By receiving link quality detection requests in a network environment, generating and performing detection tasks, the problem that the prior art cannot accurately detect link quality is solved, and accurate detection and evaluation of link quality in a network environment is achieved.
Patent Information
- Application Number
- CN202310975390.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-03
- Publication Date
- 2025-02-14
AI Technical Summary
The prior art cannot accurately detect link quality in a network environment and cannot measure link quality of media streams.
By receiving link quality detection requests, detection information is extracted, detection tasks are generated and sent to the detection terminal, the detection terminal and detection server perform detection tasks, feedback detection information, and generate link quality detection results.
Accurate detection of link quality in the network environment is achieved, network quality problems can be detected, and detection results containing link quality parameters can be obtained.
Smart Images

Figure CN119450118A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a link quality detection method, device, equipment and storage medium. Background Art
[0002] The H.323 protocol is part of the H.32x series of video surveillance, video telephony and multimedia conference transmission protocols proposed by ITU-T. It solves problems such as call and session control, multimedia and bandwidth management in media applications such as point-to-point and multi-point video surveillance and video conferencing. H.323 is widely used in IP-based media application systems due to its relatively mature protocol family and good scalability. Due to the complexity and diversity of Internet situations, there is an urgent need for a method based on the H.323 protocol family to detect whether the media stream is normal. In the related technology, it is possible to determine whether the media stream is normal by detecting whether the terminal using the H.323 protocol can complete a normal call, but this method can only determine whether the terminal is normal, and cannot measure the link quality of the media stream. Summary of the invention
[0003] The main purpose of the present invention is to provide a link quality detection method, device, equipment and storage medium, aiming to solve the technical problem that the prior art cannot accurately detect the link quality in a network environment.
[0004] To achieve the above object, the present invention provides a link quality detection method, which comprises the following steps:
[0005] Upon receiving a link quality detection request, extracting detection information in the link quality detection request;
[0006] Generate a detection task according to the detection information, and send the detection task to a detection terminal, wherein the detection terminal is used for a detection server corresponding to the detection task to execute the detection task and feed back the detection information;
[0007] The detection information fed back by the detection terminal is received, and a link quality detection result is generated according to the detection information.
[0008] Optionally, after the step of receiving the detection information fed back by the detection terminal and generating a link quality detection result according to the detection information, the method further includes:
[0009] Determine current media stream parameters according to the link quality detection result;
[0010] Determine target media stream parameters based on a preset media stream parameter algorithm and the current media stream parameters;
[0011] The target media stream parameters are sent to the detection terminal, and the detection terminal is used to perform data exchange with the detection server based on the target media stream parameters.
[0012] Optionally, the step of determining target media stream parameters based on a preset media stream parameter algorithm and the current media stream parameters includes:
[0013] Determine initial network parameters according to the current media stream parameters and preset parameter thresholds;
[0014] Normalizing the initial network parameters to obtain target network parameters;
[0015] The target media stream parameters are determined based on a preset media stream parameter algorithm and the target network parameters.
[0016] Optionally, after the step of receiving the detection information fed back by the detection terminal and generating a link quality detection result according to the detection information, the method further includes:
[0017] Determine network parameter information according to the link quality detection result;
[0018] Acquiring service information of the detection terminal and the detection server;
[0019] Determine the type of the detection message according to the service information and the network parameter information;
[0020] The detection message type is sent to the detection terminal, and the detection terminal is used to generate a detection negotiation message based on the detection message type, and perform the detection task with the detection server through the detection negotiation message.
[0021] Optionally, before the step of generating a detection task according to the detection information and sending the detection task to the detection terminal, the step further includes:
[0022] Receiving call information between the detection server and the detection terminal;
[0023] Determining whether the detection protocol message has been subjected to network address translation according to the call information;
[0024] If the detection protocol message undergoes network address translation, the network address mapping information is determined according to the network parameters of the detection terminal.
[0025] Optionally, the detection terminal is used for a detection server corresponding to the detection task to execute the detection task, including:
[0026] When receiving the detection task, the detection terminal generates a detection negotiation message and sends the detection negotiation message to the detection server;
[0027] The detection server parses and verifies the detection negotiation message, and notifies the detection terminal to start executing the detection task after the verification passes.
[0028] Optionally, the step of sending the detection negotiation message to the detection server includes:
[0029] The detection negotiation message is sent to the detection server via TCP or UDP protocol.
[0030] In addition, to achieve the above object, the present invention also provides a link quality detection device, the device comprising:
[0031] A detection information extraction module, configured to extract detection information in the link quality detection request when receiving the link quality detection request;
[0032] A detection module, configured to generate a detection task according to the detection information, and send the detection task to a detection terminal, wherein the detection terminal is configured to execute the detection task with a detection server corresponding to the detection task, and feed back the detection information;
[0033] The link quality detection result generating module is used to receive the detection information fed back by the detection terminal and generate a link quality detection result according to the detection information.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also proposes a link quality detection device, which includes: a memory, a processor, and a link quality detection program stored in the memory and executable on the processor, and the link quality detection program is configured to implement the steps of the link quality detection method described above.
[0035] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a link quality detection program is stored, and when the link quality detection program is executed by a processor, the steps of the link quality detection method described above are implemented.
[0036] When receiving a link quality detection request, the present invention extracts detection information from the link quality detection request; generates a detection task based on the detection information, and sends the detection task to a detection terminal, the detection terminal is used to execute the detection task with a detection server corresponding to the detection task, and feed back detection information; receives the detection information fed back by the detection terminal, and generates a link quality detection result based on the detection information. Since the present invention generates a detection task based on the detection information, the detection information generated by the detection task is executed by the detection terminal and the detection server corresponding to the detection task is received, and a link quality detection result is generated based on the detection information. Compared with the existing method of detecting the connection status of two systems by periodically sending heartbeat packets, the above method of the present invention can obtain detection results containing link quality parameters and detect whether there are network quality problems in the network environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a structural diagram of a link quality detection device in a hardware operating environment involved in an embodiment of the present invention;
[0038] Figure 2 It is a flowchart of the first embodiment of the link quality detection method of the present invention;
[0039] Figure 3 It is a flowchart of a second embodiment of a link quality detection method of the present invention;
[0040] Figure 4 It is a flowchart of a third embodiment of a link quality detection method of the present invention;
[0041] Figure 5 It is a structural block diagram of the first embodiment of the link quality detection device of the present invention.
[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0044] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a link quality detection device in a hardware operating environment involved in an embodiment of the present invention.
[0045] like Figure 1As shown, the link quality detection device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0046] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the link quality detection device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0047] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a link quality detection program.
[0048] exist Figure 1 In the link quality detection device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the link quality detection device of the present invention can be set in the link quality detection device, and the link quality detection device calls the link quality detection program stored in the memory 1005 through the processor 1001, and executes the link quality detection method provided by the embodiment of the present invention.
[0049] Based on the above link quality detection device, the embodiment of the present invention provides a link quality detection method, referring to Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a link quality detection method according to the present invention.
[0050] In this embodiment, the link quality detection method includes the following steps:
[0051] Step S10: when receiving a link quality detection request, extracting detection information in the link quality detection request.
[0052] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a mobile phone, a tablet computer, a personal computer, etc., or an electronic device or a detection controller capable of realizing the above functions. The following takes the detection controller as an example to illustrate this embodiment and the following embodiments.
[0053] It should be understood that the scenario corresponding to this embodiment may be: before performing media processing such as video conferencing and video monitoring, or when media such as video conferencing and video monitoring cannot be performed normally, use media stream quality detection, and judge whether there is a link quality problem in the current network environment based on the detection results, whether the network needs to be adjusted, and adjust the media stream parameters according to the suggestions of the detection results. For example, the detection results show that there is an H.323NAT device in the network environment, and the user can choose whether to continue using the current network based on the actual business situation. The detection results will also show the link packet loss, delay, jitter, and bandwidth utilization rate, so that the user can understand the current network status. The detection results will also use the quality detection model to calculate the optimal media stream parameters that can be used for the current link for the user.
[0054] It should be noted that the link quality detection request may be a detection command submitted by a user through the user interface or API interface of the detection controller. The detection information may include: the operating environment of the configured detection terminal, the detection target address and port, the detection protocol, the detection task cycle, the detection interval time, the number of retries and other parameter information.
[0055] Step S20: Generate a detection task according to the detection information, and send the detection task to a detection terminal, where the detection terminal is used for a detection server corresponding to the detection task to execute the detection task and feed back detection information.
[0056] It should be noted that the generation of the detection task according to the detection information can be that the detection controller generates the detection task according to the detection target address and port, detection protocol, detection task cycle, detection interval time, number of retries, link quality parameters that need to be detected and other information in the detection information. And send the detection task to the detection terminal that needs to perform network quality detection in the detection information. After receiving the detection task, the detection terminal will generate a detection negotiation message according to the detection information in the detection task, and send the detection negotiation message to the detection server that needs to perform network quality detection. After receiving the detection negotiation message, the detection server parses and verifies the detection negotiation message to ensure the effectiveness and security of the detection task; the detection server prepares relevant detection messages (headers, parameters, time) according to the information of the detection negotiation message, and performs necessary configuration and parameter settings; after the detection server is ready, it notifies the detection terminal to start the detection task. Then the detection server and the detection terminal execute the detection task, and perform statistics and analysis on the detection messages received by each of them to generate detection results. The detection server sends the generated detection results to the detection terminal. Therefore, the detection information includes the detection results generated by the detection server based on the received detection messages and the detection results generated by the detection terminal based on the received detection messages.
[0057] Furthermore, in order to enable the detection terminal and the detection server to successfully complete the detection task. It is also necessary to detect whether the H.323 common protocol message passes through the H.323 network address translation device. If it does, the detection terminal and the detection server may not be able to exchange data and complete the detection task due to the conversion of the network address. Therefore, before the step S10, it also includes: receiving call information between the detection server and the detection terminal; judging whether the detection protocol message has passed through the network address conversion according to the call information; if the detection protocol message has passed through the network address conversion, determining the network address mapping information according to the network parameters of the detection terminal.
[0058] It should be noted that the call information may be the protocol type of the H.323 message sent by the detection terminal and received by the detection server, as well as the information such as the IP and port used. The method of judging whether the detection protocol message has undergone network address translation based on the call information may be that after the detection server receives the H.323 message and other information sent by the detection terminal, it parses the payload according to different protocol types, extracts the IP and port for comparison, and judges whether it has passed through the H.323NAT device. If it has undergone network address translation, the network address mapping information is determined based on the network parameters of the detection terminal, and when data interaction and detection are performed subsequently, the detection protocol message is sent to the detection terminal based on the network address mapping information.
[0059] Step S30: receiving the detection information fed back by the detection terminal, and generating a link quality detection result according to the detection information.
[0060] It should be noted that generating the link quality detection result according to the detection information can be to determine the current network quality parameters according to the detection message interaction, link quality parameters, whether the message is complete, whether the NAT device exists, and other information in the detection information, and generate the link quality detection result according to the network quality parameters. It is also possible to manage and optimize the detection task according to the detection information, such as adjusting the detection frequency, adjusting the parameters of the detection terminal, re-specifying the detection target address, etc. The detection controller can also use the detection information to optimize and improve the application program, improve the user experience and the quality of the media stream.
[0061] In a specific implementation, the specific steps of the detection terminal and the detection server performing the detection task may be:
[0062] 1. The detection controller configures detection-related information and issues detection tasks based on user requests.
[0063] Users can submit detection task requests through the detection controller's user interface or API interface;
[0064] The detection controller configures the detection terminal's operating environment, detection target address and port, detection protocol, detection task cycle, detection interval, retry times and other parameters according to the detection task;
[0065] The detection controller sends the configured detection tasks to the detection terminals;
[0066] If multiple detection tasks need to be managed, the detection controller can use a scheduling algorithm to schedule and optimize the detection tasks.
[0067] 2. After receiving the detection task, the detection terminal constructs a detection negotiation message according to the detection task content and sends the detection negotiation message to the detection server. After receiving the detection negotiation message, the detection server performs corresponding preparations.
[0068] The detection negotiation message contains relevant information of the detection task, such as target address, detection protocol, detection parameters, etc.
[0069] The detection terminal prepares relevant detection negotiation messages according to the detection task information and performs necessary configuration and parameter settings;
[0070] The detection terminal uses TCP or UDP protocol to send the detection negotiation message to the detection server;
[0071] The detection server parses and verifies the detection negotiation message to ensure the effectiveness and security of the detection task;
[0072] The detection server prepares relevant detection messages (header, parameters, time) according to the information of the detection negotiation message, and performs necessary configuration and parameter settings;
[0073] After the detection server is ready, it notifies the detection terminal to start the detection task.
[0074] 3. The detection server and detection terminal perform detection tasks and perform statistics and analysis on the messages they receive.
[0075] The detection server and detection terminal send out the prepared detection messages at the specified time interval.
[0076] The detection server and detection terminal perform statistics and analysis on the detection messages sent and received;
[0077] 4. The detection results of the detection server and the detection terminal are summarized in the detection terminal.
[0078] After sending, the detection server obtains detection results based on the statistics and analysis of the message, such as network quality, whether the message is complete, whether the NAT device exists, etc.
[0079] The detection server sends the detection result to the detection terminal;
[0080] After sending, the detection terminal also obtains detection results based on statistics and analysis of received messages, such as network quality, message integrity, and whether NAT equipment exists.
[0081] After the detection terminal receives and sends the detection results sent by the detection server, it summarizes the detection results obtained locally.
[0082] 5. The detection terminal sends the summarized detection results to the detection controller, and the detection controller manages and optimizes the detection tasks based on the received summarized detection results.
[0083] The detection terminal reports the detection result information to the detection controller, including the detection message interaction status, link quality parameters, whether the message is complete, whether the NAT device exists, etc.
[0084] The detection controller manages and optimizes the detection task according to the received detection result information, such as adjusting the detection frequency, adjusting the parameters of the detection terminal, re-specifying the detection target address, etc.
[0085] The detection controller can also use the detection result information to optimize and improve the application, thereby improving the user experience and the quality of the media stream.
[0086] This embodiment requires the detection controller, the detection terminal and the detection server to work together. After receiving the detection request from the detection controller, the detection terminal generates the corresponding H.323 message according to the detection information; the detection terminal sends the message and the corresponding verification information to the detection server; the detection server and the detection terminal send and receive the detection message as required, and the detection server returns the detection result after calculating it to the detection terminal. The detection terminal summarizes the link quality parameter results and reports the summarized information to the detection controller for display and optimization.
[0087] When receiving a link quality detection request, this embodiment extracts the detection information in the link quality detection request; generates a detection task based on the detection information, and sends the detection task to a detection terminal, the detection terminal is used to execute the detection task with a detection server corresponding to the detection task, and feed back the detection information; receives the detection information fed back by the detection terminal, and generates a link quality detection result based on the detection information. Since this embodiment generates a detection task based on the detection information, the detection information generated by the detection task is executed by the detection terminal and the detection server corresponding to the detection task is received, and a link quality detection result is generated based on the detection information. Compared with the existing method of detecting the connection status of two systems by periodically sending heartbeat packets, the above method of this embodiment can obtain detection results containing link quality parameters and detect whether there are network quality problems in the network environment.
[0088] refer to Figure 3 , Figure 3 FIG. 4 is a flow chart of a second embodiment of a link quality detection method according to the present invention.
[0089] Based on the first embodiment above, in this embodiment, after step S30, the following is further included:
[0090] Step S401: determining current media stream parameters according to the link quality detection result.
[0091] It should be noted that the current media stream parameters may include parameters such as delay value, packet loss rate, jitter value, maximum frame rate, available bandwidth, maximum resolution, and parameter values.
[0092] Step S402: determining target media stream parameters based on a preset media stream parameter algorithm and the current media stream parameters.
[0093] It should be noted that the target media stream parameters may include an optimal bit rate, an optimal frame rate, and an optimal resolution. The determination of the target media stream parameters based on the preset media stream parameter algorithm and the current media stream parameters may be determining the initial network parameters based on the current media stream parameters and the preset parameter thresholds;
[0094] Normalizing the initial network parameters to obtain target network parameters;
[0095] The target media stream parameters are determined based on a preset media stream parameter algorithm and the target network parameters.
[0096] It should be noted that the preset parameter threshold may be a preset delay value threshold, a packet loss rate threshold, a jitter threshold, etc. The determining of the initial network parameters based on the current media stream parameters and the preset parameter threshold may be to obtain the initial network parameters by dividing the current media stream parameters by the preset parameter threshold corresponding to the current media stream parameters. For example, the initial delay value is obtained by dividing the actually measured delay value by the preset delay value threshold. Normalizing the initial network parameters may be to normalize the initial network parameters to within the range of [0,1]. Determining the target media stream parameters based on the preset media stream parameter algorithm and the target network parameters may be to calculate the target media stream parameters based on the target network parameters with reference to the following algorithm:
[0097] Optimal bitrate = (1-normalized delay coefficient) * (1-normalized packet loss coefficient) * (1-normalized jitter coefficient) * available bandwidth
[0098] Optimal frame rate = maximum frame rate * (1-normalized delay coefficient) * (1-normalized packet loss rate coefficient)
[0099] Optimal resolution = maximum resolution * (1-normalized delay coefficient) * (1-normalized packet loss rate coefficient)
[0100] The normalized delay coefficient is: the actual measured delay value is divided by the preset maximum delay value, and the result is normalized to the range of [0,1]. The normalized delay coefficient indicates the percentage of the actual delay to the maximum delay.
[0101] Normalized packet loss rate coefficient: Divide the actual measured packet loss rate by the preset maximum packet loss rate value, and normalize the result to the range of [0,1]. The normalized packet loss rate coefficient represents the percentage of the actual packet loss rate to the maximum packet loss rate.
[0102] Normalized jitter coefficient: Divide the actual measured jitter value by the preset maximum jitter value and normalize the result to the range of [0,1]. The normalized jitter coefficient indicates the percentage of the actual jitter to the maximum jitter.
[0103] Available bandwidth: The actual available network bandwidth, which can be obtained through bandwidth estimation algorithms (such as BBR, RENO, etc.).
[0104] Maximum frame rate: The maximum frame rate supported by the device, such as 60fps, 30fps, etc.
[0105] Maximum resolution: The maximum resolution supported by the device, such as 1920x1080, 1280x720, etc.
[0106] Step S403: sending the target media stream parameters to the detection terminal, where the detection terminal is used to perform data exchange with the detection server based on the target media stream parameters.
[0107] In a specific implementation, after the detection controller calculates the optimal target media stream parameters according to the link quality detection results, the target media stream parameters can be sent to the detection terminal and the detection server, so that the detection terminal and the detection server can exchange data according to the target media stream parameters.
[0108] This embodiment determines the current media stream parameters according to the link quality detection result; determines the target media stream parameters based on the preset media stream parameter algorithm and the current media stream parameters; sends the target media stream parameters to the detection terminal, and the detection terminal is used to interact with the detection server based on the target media stream parameters. This embodiment provides users with optimal media stream parameters; the data and information obtained through detection can provide more references for the terminal to perform media applications, so that users can adjust the network topology and media stream parameters in time, thereby providing high-quality media stream services.
[0109] refer to Figure 4 , Figure 4 FIG. 4 is a flow chart of a third embodiment of a link quality detection method according to the present invention.
[0110] Based on the above embodiments, in this embodiment, after step S30, the method further includes:
[0111] Step S501: Determine network parameter information according to the link quality detection result.
[0112] It should be noted that the network parameter information may include protocol information used by the detection terminal and the detection server when performing detection in the detection message and basic device information of the detection terminal and the detection server.
[0113] Step S502: Acquire service information of the detection terminal and the detection server.
[0114] It should be noted that the service information may be a demand for data interaction between the detection terminal and the detection server.
[0115] Step S503: Determine the type of the detection message according to the service information and the network parameter information;
[0116] It should be noted that the detection message type may include H.225 RAS signaling based on UDP, H.225 call signaling based on TCP, and H.245 media control signaling based on TCP.
[0117] It should be understood that a complete call process using the H.323 protocol family involves two protocols, H.225 and H.245; at the same time, the protocols using the H.225 transport layer also include UDP and TCP; applying the scalable characteristics of the H.323 protocol family, the basic information of the devices at both ends of the media stream, the capabilities that the media stream application can support, and related verification can be added to the detection message. Therefore, the detection message can be optimized based on the standard H.323 protocol. The detection controller can notify the detection terminal to generate the following types of messages according to the needs of the user: H.225RAS signaling based on UDP, H.225 call signaling based on TCP, and H.245 media control signaling based on TCP.
[0118] Step S504: sending the detection message type to the detection terminal, the detection terminal is used to generate a detection negotiation message based on the detection message type, and perform the detection task with the detection server through the detection negotiation message.
[0119] This embodiment determines network parameter information according to the link quality detection result; obtains service information of the detection terminal and the detection server; determines the detection message type according to the service information and the network parameter information; sends the detection message type to the detection terminal, and the detection terminal is used to generate a detection negotiation message based on the detection message type, and performs the detection task with the detection server through the detection negotiation message. The detection efficiency and data interaction efficiency of the detection server and the detection terminal can be improved.
[0120] Reference Figure 5 , Figure 5 It is a structural block diagram of the first embodiment of the link quality detection device of the present invention.
[0121] like Figure 5 As shown, the link quality detection device proposed in the embodiment of the present invention includes:
[0122] The detection information extraction module 10 is used to extract the detection information in the link quality detection request when receiving the link quality detection request;
[0123] A detection module 20, configured to generate a detection task according to the detection information, and send the detection task to a detection terminal, wherein the detection terminal is configured to execute the detection task with a detection server corresponding to the detection task, and feed back the detection information;
[0124] The link quality detection result generating module 30 is used to receive the detection information fed back by the detection terminal and generate a link quality detection result according to the detection information.
[0125] When receiving a link quality detection request, this embodiment extracts the detection information in the link quality detection request; generates a detection task based on the detection information, and sends the detection task to a detection terminal, the detection terminal is used to execute the detection task with a detection server corresponding to the detection task, and feed back the detection information; receives the detection information fed back by the detection terminal, and generates a link quality detection result based on the detection information. Since this embodiment generates a detection task based on the detection information, the detection information generated by the detection task is executed by the detection terminal and the detection server corresponding to the detection task is received, and a link quality detection result is generated based on the detection information. Compared with the existing method of detecting the connection status of two systems by periodically sending heartbeat packets, the above method of this embodiment can obtain detection results containing link quality parameters and detect whether there are network quality problems in the network environment.
[0126] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0127] In addition, for technical details not fully described in this embodiment, reference may be made to the link quality detection method provided in any embodiment of the present invention, and will not be repeated here.
[0128] Based on the first embodiment of the link quality detection device of the present invention, a second embodiment of the link quality detection device of the present invention is proposed.
[0129] In this embodiment, the link quality detection result generating module 30 is further used to determine the current media stream parameters according to the link quality detection result;
[0130] Determine target media stream parameters based on a preset media stream parameter algorithm and the current media stream parameters;
[0131] The target media stream parameters are sent to the detection terminal, and the detection terminal is used to perform data exchange with the detection server based on the target media stream parameters.
[0132] Furthermore, the link quality detection result generating module 30 is further used to determine the initial network parameters according to the current media stream parameters and the preset parameter thresholds;
[0133] Normalizing the initial network parameters to obtain target network parameters;
[0134] The target media stream parameters are determined based on a preset media stream parameter algorithm and the target network parameters.
[0135] Furthermore, the link quality detection result generating module 30 is further used to determine network parameter information according to the link quality detection result;
[0136] Acquiring service information of the detection terminal and the detection server;
[0137] Determine the type of the detection message according to the service information and the network parameter information;
[0138] The detection message type is sent to the detection terminal, and the detection terminal is used to generate a detection negotiation message based on the detection message type, and perform the detection task with the detection server through the detection negotiation message.
[0139] Furthermore, the detection information extraction module 10 is also used to receive call information between the detection server and the detection terminal;
[0140] Determining whether the detection protocol message has been subjected to network address translation according to the call information;
[0141] If the detection protocol message undergoes network address translation, the network address mapping information is determined according to the network parameters of the detection terminal.
[0142] Further, when receiving the detection task, the detection terminal generates a detection negotiation message and sends the detection negotiation message to the detection server;
[0143] The detection server parses and verifies the detection negotiation message, and notifies the detection terminal to start executing the detection task after the verification passes.
[0144] Furthermore, the detection terminal sends the detection negotiation message to the detection server through the TCP or UDP protocol.
[0145] Other embodiments or specific implementations of the link quality detection device of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.
[0146] In addition, an embodiment of the present invention further provides a storage medium, on which a link quality detection program is stored. When the link quality detection program is executed by a processor, the steps of the link quality detection method described above are implemented.
[0147] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0148] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0150] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A link quality detection method, characterized in that: The link quality detection method comprises the following steps: Upon receiving a link quality detection request, extracting detection information in the link quality detection request; Generate a detection task according to the detection information, and send the detection task to a detection terminal, wherein the detection terminal is used for a detection server corresponding to the detection task to execute the detection task and feed back the detection information; The detection information fed back by the detection terminal is received, and a link quality detection result is generated according to the detection information.
2. The link quality detection method according to claim 1, characterized in that: After the step of receiving the detection information fed back by the detection terminal and generating a link quality detection result according to the detection information, the method further includes: Determine current media stream parameters according to the link quality detection result; Determine target media stream parameters based on a preset media stream parameter algorithm and the current media stream parameters; The target media stream parameters are sent to the detection terminal, and the detection terminal is used to perform data exchange with the detection server based on the target media stream parameters.
3. The link quality detection method according to claim 2, characterized in that: The step of determining the target media stream parameters based on the preset media stream parameter algorithm and the current media stream parameters includes: Determine initial network parameters according to the current media stream parameters and preset parameter thresholds; Normalizing the initial network parameters to obtain target network parameters; The target media stream parameters are determined based on a preset media stream parameter algorithm and the target network parameters.
4. The link quality detection method according to claim 1, characterized in that: After the step of receiving the detection information fed back by the detection terminal and generating a link quality detection result according to the detection information, the method further includes: Determine network parameter information according to the link quality detection result; Acquiring service information of the detection terminal and the detection server; Determine the type of the detection message according to the service information and the network parameter information; The detection message type is sent to the detection terminal, and the detection terminal is used to generate a detection negotiation message based on the detection message type, and perform the detection task with the detection server through the detection negotiation message.
5. The link quality detection method according to claim 1, characterized in that: Before the step of generating a detection task according to the detection information and sending the detection task to the detection terminal, the method further includes: Receiving call information between the detection server and the detection terminal; Determining whether the detection protocol message has been subjected to network address translation according to the call information; If the detection protocol message undergoes network address translation, the network address mapping information is determined according to the network parameters of the detection terminal.
6. The link quality detection method according to any one of claims 1 to 4, characterized in that: The detection terminal is used for the detection server corresponding to the detection task to execute the detection task, including: When receiving the detection task, the detection terminal generates a detection negotiation message and sends the detection negotiation message to the detection server; The detection server parses and verifies the detection negotiation message, and notifies the detection terminal to start executing the detection task after the verification passes.
7. The link quality detection method according to claim 6, characterized in that: The step of sending the detection negotiation message to the detection server includes: The detection negotiation message is sent to the detection server via TCP or UDP protocol.
8. A link quality detection device, characterized in that: The link quality detection device comprises: A detection information extraction module, configured to extract detection information in the link quality detection request when receiving the link quality detection request; A detection module, configured to generate a detection task according to the detection information, and send the detection task to a detection terminal, wherein the detection terminal is configured to execute the detection task with a detection server corresponding to the detection task, and feed back the detection information; The link quality detection result generating module is used to receive the detection information fed back by the detection terminal and generate a link quality detection result according to the detection information.
9. A link quality detection device, characterized in that: The device comprises: a memory, a processor, and a link quality detection program stored in the memory and executable on the processor, wherein the link quality detection program is configured to implement the steps of the link quality detection method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a link quality detection program, and when the link quality detection program is executed by the processor, the steps of the link quality detection method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Media stream link quality detection method and system based on Web RTC protocol
CN121644412A
Satellite link communication state detection method based on 4G base station
CN121727617A