CN113259759A - Network connection state evaluation method and device, terminal equipment and storage medium - Google Patents

Network connection state evaluation method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113259759A
CN113259759A CN202110550278.6A CN202110550278A CN113259759A CN 113259759 A CN113259759 A CN 113259759A CN 202110550278 A CN202110550278 A CN 202110550278A CN 113259759 A CN113259759 A CN 113259759A
Authority
CN
China
Prior art keywords
heartbeat
network connection
connection state
average value
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110550278.6A
Other languages
Chinese (zh)
Inventor
张志龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Leiniao Network Media Co ltd
Original Assignee
Shenzhen Leiniao Network Media Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Leiniao Network Media Co ltd filed Critical Shenzhen Leiniao Network Media Co ltd
Priority to CN202110550278.6A priority Critical patent/CN113259759A/en
Publication of CN113259759A publication Critical patent/CN113259759A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network

Abstract

The invention discloses a network connection state evaluation method, a network connection state evaluation device, terminal equipment and a storage medium. The method comprises the following steps: acquiring at least two heartbeat reply times, and calculating an average value of the heartbeat reply times, wherein the heartbeat reply time is the time required by a screen projection sending end from sending a heartbeat packet to receiving a data packet matched with the heartbeat packet; acquiring a file downloading speed sent by a screen projection receiving end, wherein the file downloading speed is the downloading speed of the screen projection receiving end for receiving the multimedia file; and determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed. By using the technical scheme of the invention, the stability of the network connection state can be continuously detected.

Description

Network connection state evaluation method and device, terminal equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of wireless screen projection, in particular to a network connection state evaluation method and device, terminal equipment and a storage medium.
Background
With the popularization of smart televisions, a home network center has become an important way for users to acquire information and perform entertainment, wherein the use of a multi-screen interaction technology to realize home entertainment information sharing is a very important content in a digital home network. The multi-screen interaction technology is used for realizing the transmission of digital multimedia (high-definition video, audio, pictures and the like) contents among different terminal devices in a wireless network connection mode. In a digital home network, terminal devices such as a mobile phone and a tablet computer can synchronize display contents of a screen to an intelligent television through a multi-screen interaction technology.
When a user uses the screen projection function to realize the transmission of digital multimedia contents between other terminal equipment and the intelligent television, if the network connection quality is poor, the phenomenon that the playing contents of the intelligent television are blocked easily occurs. In the existing wireless screen projection technology, network bandwidth is generally used as a basis for judging the network connection state, but the detection mode of the network connection state is not enough to comprehensively reflect the stability of the network connection state.
Disclosure of Invention
The embodiment of the invention provides a network connection state evaluation method and device, terminal equipment and a storage medium, so as to realize comprehensive and continuous evaluation on the stability of a network connection state.
In a first aspect, an embodiment of the present invention provides a method for evaluating a network connection state, where the method is performed by a screen-casting sending end, and the method includes:
acquiring at least two heartbeat reply times, and calculating the average value of the heartbeat reply times; the heartbeat reply time is the time required by the screen projection sending end from the sending of the heartbeat packet to the receiving of the data packet matched with the heartbeat packet;
acquiring the file downloading speed sent by a screen projection receiving end; the file downloading speed is the downloading speed of receiving the multimedia file by the screen projection receiving end;
and determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
In a second aspect, an embodiment of the present invention further provides a network connection state evaluation method, which is executed by a screen projection receiving end, and the method includes:
acquiring at least two heartbeat reply times sent by a screen projection sending end, and calculating an average value of the heartbeat reply times, wherein the heartbeat reply time is the time required by the screen projection sending end from sending a heartbeat packet to receiving a data packet matched with the heartbeat packet;
calculating the file downloading speed when downloading the multimedia file;
and determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
In a third aspect, an embodiment of the present invention further provides a network connection state evaluation device, which is arranged at a screen projection sending end, and includes:
the device comprises a sending end heartbeat reply time average value obtaining module and a receiving end heartbeat reply time average value obtaining module, wherein the sending end heartbeat reply time average value obtaining module is used for obtaining at least two heartbeat reply times and calculating a heartbeat reply time average value, and the heartbeat reply time is the time required by a screen projection sending end from sending a heartbeat packet to receiving a data packet matched with the heartbeat packet;
the system comprises a sending end file downloading speed acquisition module, a screen-casting receiving end and a multimedia file downloading module, wherein the sending end file downloading speed acquisition module is used for acquiring a file downloading speed sent by the screen-casting receiving end, and the file downloading speed is the downloading speed of the multimedia file received by the screen-casting receiving end;
and the sending end network connection state rating module is used for determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
In a fourth aspect, an embodiment of the present invention further provides a network connection state evaluation device, which is disposed at a screen projection receiving end, and includes:
the receiving end heartbeat reply time average value acquisition module is used for acquiring at least two heartbeat reply times sent by the screen projection sending end and calculating a heartbeat reply time average value, wherein the heartbeat reply time is the time required by the screen projection sending end from sending a heartbeat packet to receiving a data packet matched with the heartbeat packet;
the receiving end file downloading speed acquisition module is used for calculating the file downloading speed when the multimedia file is downloaded;
and the receiving end network connection state rating module is used for determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
In a fifth aspect, an embodiment of the present invention further provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the network connection state evaluation method according to any one of the embodiments of the present invention when executing the program.
In a sixth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the network connection state evaluation method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the average value of the heartbeat reply time is calculated according to more than two heartbeat reply times, the file downloading speed sent by the screen projection receiving end is obtained, and the level of the network connection state is determined according to the two factors of the average value of the heartbeat reply time and the file downloading speed. The problem that the stability of the network connection state cannot be fully reflected in a network connection state detection mode in the prior art is solved, and comprehensive and continuous evaluation of the stability of the network connection state is realized.
Drawings
Fig. 1 is a flowchart of a network connection status evaluation method according to a first embodiment of the present invention;
fig. 2 is a flowchart of another network connection state evaluation method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a network connection status evaluation method in the third embodiment of the present invention;
fig. 4 is a flowchart of another network connection state evaluation method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network connection state evaluation apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network connection state evaluation apparatus according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device in the seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a network connection status evaluation method according to an embodiment of the present invention, where this embodiment is applicable to a situation where a user determines a level of a network connection status when using a screen projection function, and the method may be executed by a network connection status evaluation device, which may be implemented by software and/or hardware and is generally integrated at a screen projection sending end.
As shown in fig. 1, the technical solution of the embodiment of the present invention specifically includes the following steps:
s110, acquiring at least two heartbeat reply times, and calculating a heartbeat reply time average value.
And the heartbeat reply time is the time required by the screen projection sending end from the sending of the heartbeat packet to the receiving of the data packet matched with the heartbeat packet.
In this embodiment, the execution main body is a screen-casting sending end, where the screen-casting sending end is to send the multimedia file to a screen-casting receiving end, so as to synchronize the screen content to a terminal device of the screen-casting receiving end, and the screen-casting sending end may be, for example, a mobile phone, a tablet, or another terminal device. The multimedia file can be a file corresponding to contents such as video, audio or pictures. The screen projection receiving end is a terminal device that acquires the multimedia file and plays the content corresponding to the multimedia file on a screen, and may be, for example, a television, a projector, or other terminal devices.
The heartbeat packet is a data packet in a preset format and is used for regularly informing the self state of the other side between the screen projection sending end and the screen projection receiving end, and the screen projection sending end regularly sends the heartbeat packet to the screen projection receiving end and receives the data packet matched with the heartbeat packet and replied by the screen projection receiving end.
Specifically, the screen projection sending end and the screen projection receiving end are connected to the same wireless network, or the screen projection receiving end is connected to a wired network, the screen projection sending end is connected to the wireless network, and the wired network and the wireless network are connected to the same wireless router. At the moment, the screen-casting sending end sends heartbeat packets to the wireless router at fixed time, the wireless router forwards the heartbeat packets to the screen-casting receiving end, the screen-casting receiving end generates data packets matched with the heartbeat packets after receiving the heartbeat packets, the data packets are sent to the wireless router, and the wireless router forwards the data packets to the screen-casting sending end.
In the embodiment of the invention, the screen projection sending end needs to acquire the time for sending the heartbeat packet and the time for receiving the data packet matched with the heartbeat packet. Specifically, the current time may be recorded when the heartbeat packet is sent and the data packet matched with the heartbeat packet is received. The time stamps in the heartbeat packet and the time stamps in the data packets matched with the heartbeat packet may also be obtained respectively, and the present embodiment does not limit the manner of obtaining the time for sending the heartbeat packet and the time for receiving the data packets matched with the heartbeat packet.
In the embodiment of the present invention, the number of the acquired heartbeat reply time may be predefined, and when it is determined that the preset number of heartbeat reply times have been acquired, the average value of the heartbeat reply time is calculated. Or when determining that the file download speed sent by the screen-casting receiving end is received, calculating the average value of the heartbeat reply time according to the acquired heartbeat reply time, where the amount of the acquired heartbeat reply time is not limited in this embodiment.
In the embodiment of the invention, the average value of the heartbeat reply time is calculated, and the average value of the heartbeat reply time is compared with the preset average value, so that the connection stability of the current network can be judged.
And S120, acquiring the file downloading speed sent by the screen projection receiving end.
The file downloading speed is the downloading speed of the multimedia file received by the screen projection receiving end.
Before the screen projection is carried out by the screen projection receiving end, the multimedia file is downloaded, and the file downloading speed can be calculated according to the file size and the downloading time of the multimedia file. The file downloading speed can be used as a judgment basis for the network connection state.
S130, determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
In the embodiment of the invention, the level of the network connection state can be determined by comprehensively considering the average value of the heartbeat reply time and the file downloading speed.
According to the embodiment of the invention, through integrating two judgment bases of the average value of the heartbeat reply time and the file downloading speed, the stability of the network connection state is graded in the process of receiving the multimedia file by the screen projection receiving end and projecting the screen, and the network connection state can be prompted to the user when the stability of the network connection state is poor, so that the user experience is improved.
According to the technical scheme of the embodiment, the average value of the heartbeat reply time is calculated according to more than two heartbeat reply times, the file downloading speed sent by the screen projection receiving end is obtained, and the level of the network connection state is determined according to the two factors of the average value of the heartbeat reply time and the file downloading speed. The problem that the stability of the network connection state cannot be fully reflected in a network connection state detection mode in the prior art is solved, and comprehensive and continuous evaluation of the stability of the network connection state is realized.
Example two
Fig. 2 is a flowchart of a network connection state evaluation method according to a second embodiment of the present invention, where the second embodiment of the present invention further embodies a process of obtaining a heartbeat reply time, and adds a step of establishing a transmission control protocol connection with a screen projection receiving end before obtaining the heartbeat reply time, and sending a heartbeat packet at regular time, and a step of prompting a user according to a network connection state level.
Correspondingly, as shown in fig. 2, the technical solution of the embodiment of the present invention specifically includes the following steps:
s210, establishing a transmission control protocol connection with the screen projection receiving end.
A TCP (Transmission Control Protocol) connection is established in advance between the screen-casting transmitting terminal and the screen-casting receiving terminal, and after the TCP connection is established, data Transmission can be performed between the screen-casting transmitting terminal and the screen-casting receiving terminal.
And S220, sending heartbeat packets to the screen projection receiving end at preset time intervals.
After the TCP connection is established, the screen projection sending end sends heartbeat packets to the screen projection receiving end at regular time.
S230, acquiring sending time of sending a target heartbeat packet to the screen projection receiving end and receiving time of receiving a target data packet which is sent by the screen projection receiving end and matched with the target heartbeat packet.
Specifically, the screen-casting sending end can record the current time as the sending time and the receiving time when sending the target heartbeat packet and receiving the target data packet matched with the target heartbeat packet. The time stamps in the target heartbeat packet and the target heartbeat data packet matched with the target heartbeat packet may also be acquired as the sending time and the receiving time, respectively.
S240, taking the difference value between the receiving time and the sending time as target heartbeat reply time.
And the difference value between the receiving time and the sending time is the target heartbeat reply time. The screen projection sending end sends heartbeat packets to the screen projection receiving end at regular time, and each sent heartbeat packet has a corresponding heartbeat reply time.
And S250, judging whether the heartbeat reply time acquisition condition is met, if so, returning to execute the S230, otherwise, executing the S260.
The condition for acquiring the heartbeat reply time is satisfied, the number of the heartbeat reply time may be smaller than the preset number, or the file download speed sent by the screen-casting receiving end is not received currently, which is not limited in this embodiment.
As long as the heartbeat reply time acquisition condition is satisfied, the heartbeat reply time corresponding to each heartbeat packet is calculated according to the steps of S230-S240, thereby acquiring a plurality of heartbeat reply times.
And S260, calculating a heartbeat reply time average value.
When the heartbeat reply time acquisition condition is not met, namely the number of the acquired heartbeat reply times is equal to the preset number, or the file downloading speed sent by the screen projection receiving end is received, calculating the average value of the acquired heartbeat reply times according to the currently acquired heartbeat reply times.
And S270, acquiring the file downloading speed sent by the screen projection receiving end.
And S280, determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
Specifically, an average value interval in which the heartbeat reply time average value is located and a speed interval in which the file download speed is located may be determined, and the level of the network connection state may be determined according to the average value interval and the speed interval. For example, the higher the level of the network connection state, the more stable the network connection state is.
Accordingly, S280 may further include:
s281, determining an average value interval where the heartbeat reply time average value is located and a speed interval where the file downloading speed is located.
In the embodiment of the invention, the average value interval and the speed interval can be divided in advance, and different levels are corresponding to different average value intervals and different speed intervals. For example, the average value of the heartbeat reply time may be divided into four intervals of 50ms to 100ms, 100ms to 300ms, 300ms to 1s, and more than 1s, the file download speed may be divided into four intervals of more than 20M/s, 5M/s to 20M/s, 1M/s to 5M/s, and less than 1M/s, the levels corresponding to different average value intervals and different speed intervals may be determined according to the following table one, and the higher the level, the more stable the network connection state is indicated.
Watch 1
Figure BDA0003075183790000091
And S282, taking the target level corresponding to the average value interval and the speed interval as the level of the current network connection state.
After the average value interval of the heartbeat reply time average value and the speed interval of the file downloading speed are determined, the level of the corresponding network connection state can be determined according to the two intervals.
And S290, judging whether the level corresponding to the network connection state is less than or equal to a preset level, if so, executing S2100, otherwise, executing S2110.
When the level of the network connection state is less than or equal to the preset level, it is indicated that the stability of the network connection state is poor at this time, and a prompt needs to be given to the user to improve the user experience.
And S2100, prompting the user to match with the network connection state.
Specifically, the levels of different network connection states may be set to correspond to different prompts. For example, the user may be prompted to wait patiently when the level of the network connection status is small, to view the network settings when the level of the network connection status is minimum, and so on.
And S2110, ending.
EXAMPLE III
Fig. 3 is a flowchart of a network connection status evaluation method in a third embodiment of the present invention, where this embodiment is applicable to a case where a user determines a level of a network connection status when using a screen projection function, and the method may be executed by a network connection status evaluation device, which may be implemented by software and/or hardware and is generally integrated at a screen projection receiving end.
As shown in fig. 3, the technical solution of the embodiment of the present invention specifically includes the following steps:
s310, acquiring at least two heartbeat reply times sent by the screen projection sending end, and calculating the average value of the heartbeat reply times.
And the heartbeat reply time is the time required by the screen projection sending end from the sending of the heartbeat packet to the receiving of the data packet matched with the heartbeat packet.
The execution main body of this embodiment is a screen projection receiving end, and it should be noted that the screen projection transmitting end or the screen projection receiving end may independently perform the rating of the network connection state, and the screen projection transmitting end and the screen projection receiving end may simultaneously perform the rating of the network connection state, and simultaneously prompt the network connection state to the user. The screen projection sending end obtains at least two heartbeat reply times, calculates an average value of the heartbeat reply times, and the screen projection receiving end calculates a file downloading speed when the multimedia file is downloaded. And when the screen projection receiving end carries out the grading of the network connection state, the screen projection sending end sends each heartbeat reply time to the screen projection receiving end.
And S320, calculating the file downloading speed when the multimedia file is downloaded.
The file downloading speed is calculated by the screen projection receiving end according to the size of the multimedia file and the downloading time, which has been described in the above embodiments, and this embodiment is not described herein again.
S330, determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
When the screen projection receiving end ranks the network connection state, the average value of the heartbeat reply time and the file downloading speed may also be considered comprehensively to determine the level of the network connection state.
According to the technical scheme of the embodiment, the average value of the heartbeat reply time is calculated by obtaining the heartbeat reply time sent by the screen projection sending end, the file downloading speed for downloading the multimedia file is calculated, and the level of the network connection state is determined according to the two factors of the average value of the heartbeat reply time and the file downloading speed. The problem that the stability of the network connection state cannot be fully reflected by a network connection state detection mode in the prior art is solved, and comprehensive and continuous evaluation of the stability of the network connection state at a screen projection receiving end is realized.
Example four
Fig. 4 is a flowchart of a network connection status evaluation method in a fourth embodiment of the present invention, and the present embodiment further embodies a process of calculating a file download speed on the basis of the foregoing embodiment.
Correspondingly, as shown in fig. 4, the technical solution of the embodiment of the present invention specifically includes the following steps:
s410, acquiring a download address which is sent by the screen-casting sending end and matched with the multimedia file.
And the screen projection sending end sends the download address of the multimedia file to the screen projection receiving end, and the screen projection receiving end downloads the multimedia file at the download address after acquiring the download address.
And S420, acquiring the multimedia file according to the download address.
And the screen projection receiving end downloads the multimedia file at the downloading address and can acquire the file size of the multimedia file, and after the multimedia file is downloaded, the downloading time of the multimedia file is recorded.
S430, acquiring at least two heartbeat reply times sent by the screen projection sending end, and calculating the average value of the heartbeat reply times.
And the screen projection receiving end acquires a plurality of heartbeat reply times sent by the screen projection sending end and calculates an average value. The screen projection receiving end can calculate the average value of the heartbeat reply time according to the acquired heartbeat reply time when determining that the acquired number of the heartbeat reply time reaches the preset number, and can also calculate the average value of the heartbeat reply time according to the acquired heartbeat reply time when determining that the downloading of the multimedia file is completed.
S440, obtaining the file size and the downloading time of the multimedia file, and calculating the file downloading speed according to the file size and the downloading time.
The file downloading speed can be obtained by dividing the file size of the multimedia file by the downloading time.
S450, determining an average value interval where the heartbeat reply time average value is located and a speed interval where the file downloading speed is located.
And S460, taking the target level corresponding to the average value interval and the speed interval as the level of the current network connection state.
The above embodiment has specifically described the manner of performing the network connection status rating by integrating the average value of the heartbeat reply time and the file download speed, and this embodiment will not be described again.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a network connection state evaluation apparatus in a fifth embodiment of the present invention, where the apparatus is arranged at a screen projection sending end, and the apparatus includes: a sending end heartbeat reply time average value obtaining module 510, a sending end file downloading speed obtaining module 520, and a sending end network connection state rating module 530. Wherein:
a sending end heartbeat reply time average value obtaining module 510, configured to obtain at least two heartbeat reply times, and calculate a heartbeat reply time average value, where the heartbeat reply time is a time required by a screen-casting sending end from sending a heartbeat packet to receiving a data packet matched with the heartbeat packet;
a sending end file downloading speed obtaining module 520, configured to obtain a file downloading speed sent by a screen-casting receiving end, where the file downloading speed is a downloading speed of a multimedia file received by the screen-casting receiving end;
and the sending-end network connection state rating module 530 is configured to determine a level of the network connection state according to the average heartbeat reply time and the file download speed.
According to the technical scheme of the embodiment, the average value of the heartbeat reply time is calculated according to more than two heartbeat reply times, the file downloading speed sent by the screen projection receiving end is obtained, and the level of the network connection state is determined according to the two factors of the average value of the heartbeat reply time and the file downloading speed. The problem that the stability of the network connection state cannot be fully reflected by a network connection state detection mode in the prior art is solved, and comprehensive and continuous evaluation of the stability of the network connection state at a screen projection sending end is realized.
On the basis of the above embodiment, the apparatus further includes:
the connection establishing module is used for establishing transmission control protocol connection with the screen projection receiving end;
and the heartbeat packet sending module is used for sending heartbeat packets to the screen projection receiving end at preset time intervals.
On the basis of the foregoing embodiment, the sending-end heartbeat reply time average value obtaining module 510 includes:
the time acquisition unit is used for acquiring the sending time of sending a target heartbeat packet to the screen projection receiving end and the receiving time of receiving a target data packet which is sent by the screen projection receiving end and matched with the target heartbeat packet;
a heartbeat reply time calculation unit, configured to use a difference between the receiving time and the sending time as a target heartbeat reply time;
and the heartbeat reply time acquisition condition judging unit is used for repeatedly executing the operation of acquiring the sending time of the target heartbeat packet sent to the screen projection receiving end if the condition of acquiring the heartbeat reply time is determined to be met.
On the basis of the foregoing embodiment, the sending-end network connection status rating module 530 includes:
a sending end interval determining unit, configured to determine an average interval where the heartbeat reply time average value is located and a speed interval where the file downloading speed is located;
and the sending end network connection state level determining unit is used for taking the average value interval and the target level corresponding to the speed interval as the level of the current network connection state.
On the basis of the above embodiment, the apparatus further includes:
and the network connection state prompting module is used for prompting the user to match the network connection state if the level corresponding to the network connection state is determined to be less than or equal to the preset level.
The network connection state evaluation device provided by the embodiment of the invention can execute the network connection state evaluation method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a network connection state evaluation apparatus in a sixth embodiment of the present invention, the apparatus is disposed at a screen projection receiving end, and the apparatus includes: a receiving end heartbeat reply time average value obtaining module 610, a receiving end file downloading speed obtaining module 620 and a receiving end network connection state rating module 630. Wherein:
a receiving end heartbeat reply time average value obtaining module 610, configured to obtain at least two heartbeat reply times sent by a screen-casting sending end, and calculate a heartbeat reply time average value, where the heartbeat reply time is time required by the screen-casting sending end from sending a heartbeat packet to receiving a data packet matched with the heartbeat packet;
a receiving end file downloading speed obtaining module 620, configured to calculate a file downloading speed when downloading the multimedia file;
and the receiving-end network connection state rating module 630 is configured to determine a level of the network connection state according to the average heartbeat reply time and the file downloading speed.
According to the technical scheme of the embodiment, the average value of the heartbeat reply time is calculated by obtaining the heartbeat reply time sent by the screen projection sending end, the file downloading speed for downloading the multimedia file is calculated, and the level of the network connection state is determined according to the two factors of the average value of the heartbeat reply time and the file downloading speed. The problem that the stability of the network connection state cannot be fully reflected by a network connection state detection mode in the prior art is solved, and comprehensive and continuous evaluation of the stability of the network connection state at a screen projection receiving end is realized.
On the basis of the above embodiment, the apparatus further includes:
the download address acquisition module is used for acquiring a download address which is sent by the screen-casting sending end and matched with the multimedia file;
the multimedia file acquisition module is used for acquiring the multimedia file according to the download address;
on the basis of the foregoing embodiment, the receiving end file downloading speed obtaining module 620 includes:
and the file downloading speed calculating unit is used for acquiring the file size and the downloading time of the multimedia file and calculating the file downloading speed according to the file size and the downloading time.
On the basis of the foregoing embodiment, the receiving-end network connection status rating module 630 includes:
a receiving end interval determining unit, configured to determine an average interval in which the heartbeat reply time average value is located and a speed interval in which the file downloading speed is located;
and the receiving end network connection state level determining unit is used for taking the target level corresponding to the average value interval and the speed interval as the level of the current network connection state.
The network connection state evaluation device provided by the embodiment of the invention can execute the network connection state evaluation method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a terminal device according to a seventh embodiment of the present invention, as shown in fig. 7, the terminal device includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of the processors 70 in the terminal device may be one or more, and one processor 70 is taken as an example in fig. 7; the processor 70, the memory 71, the input device 72 and the output device 73 in the terminal equipment may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 7.
The memory 71 is used as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as modules corresponding to the network connection status evaluation method in the embodiment of the present invention (for example, the sending-end heartbeat reply time average value obtaining module 510, the sending-end file download speed obtaining module 520, and the sending-end network connection status rating module 530 in the network connection status evaluation apparatus when the terminal device is a screen-casting sending end, or the receiving-end heartbeat reply time average value obtaining module 610, the receiving-end file download speed obtaining module 620, and the receiving-end network connection status rating module 630 in the network connection status evaluation apparatus when the terminal device is a screen-casting receiving end). The processor 70 executes various functional applications and data processing of the terminal device by running software programs, instructions and modules stored in the memory 71, that is, implements the network connection state evaluation method executed by the screen-projection sending terminal. The method comprises the following steps:
acquiring at least two heartbeat reply times, and calculating the average value of the heartbeat reply times; the heartbeat reply time is the time required by the screen projection sending end from the sending of the heartbeat packet to the receiving of the data packet matched with the heartbeat packet;
acquiring the file downloading speed sent by a screen projection receiving end; the file downloading speed is the downloading speed of receiving the multimedia file by the screen projection receiving end;
and determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
Or, the network connection state evaluation method executed by the screen projection receiving end can also be realized. The method comprises the following steps:
acquiring at least two heartbeat reply times sent by a screen projection sending end, and calculating an average value of the heartbeat reply times; the heartbeat reply time is the time required by the screen projection sending end from the sending of the heartbeat packet to the receiving of the data packet matched with the heartbeat packet;
calculating the file downloading speed when downloading the multimedia file;
and determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function controls of the computer apparatus. The output device 73 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for evaluating a network connection status, where the method includes:
acquiring at least two heartbeat reply times, and calculating the average value of the heartbeat reply times; the heartbeat reply time is the time required by the screen projection sending end from the sending of the heartbeat packet to the receiving of the data packet matched with the heartbeat packet;
acquiring the file downloading speed sent by a screen projection receiving end; the file downloading speed is the downloading speed of receiving the multimedia file by the screen projection receiving end;
and determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
Alternatively, the method may further comprise:
acquiring at least two heartbeat reply times sent by a screen projection sending end, and calculating an average value of the heartbeat reply times; the heartbeat reply time is the time required by the screen projection sending end from the sending of the heartbeat packet to the receiving of the data packet matched with the heartbeat packet;
calculating the file downloading speed when downloading the multimedia file;
and determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the network connection status evaluation method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above network connection state evaluation apparatus, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. A network connection state evaluation method is characterized by being executed by a screen projection sending end, and comprises the following steps:
acquiring at least two heartbeat reply times, and calculating the average value of the heartbeat reply times; the heartbeat reply time is the time required by the screen projection sending end from the sending of the heartbeat packet to the receiving of the data packet matched with the heartbeat packet;
acquiring the file downloading speed sent by a screen projection receiving end; the file downloading speed is the downloading speed of receiving the multimedia file by the screen projection receiving end;
and determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
2. The method of claim 1, further comprising, before obtaining at least two heartbeat recovery times and calculating a heartbeat recovery time average,:
establishing a transmission control protocol connection with the screen projection receiving end;
and sending heartbeat packets to the screen projection receiving end at preset time intervals.
3. The method of claim 2, wherein the obtaining at least two heartbeat recovery times comprises:
acquiring the sending time of sending a target heartbeat packet to the screen projection receiving end and the receiving time of receiving a target data packet which is sent by the screen projection receiving end and matched with the target heartbeat packet;
taking the difference value between the receiving time and the sending time as target heartbeat reply time;
and if the condition that the heartbeat reply time acquisition is met is determined, repeatedly executing the operation of acquiring the sending time of the target heartbeat packet sent to the screen projection receiving end.
4. The method of claim 1, wherein determining the level of network connection status based on the average heartbeat reply time and the file download speed comprises:
determining an average value interval in which the heartbeat reply time average value is located and a speed interval in which the file downloading speed is located;
and taking the target level corresponding to the average value interval and the speed interval as the level of the current network connection state.
5. The method of claim 1, after determining the level of network connection status, further comprising:
and if the level corresponding to the network connection state is determined to be less than or equal to the preset level, prompting the user to match with the network connection state.
6. A network connection state evaluation method is executed by a screen projection receiving end, and the method comprises the following steps:
acquiring at least two heartbeat reply times sent by a screen projection sending end, and calculating an average value of the heartbeat reply times; the heartbeat reply time is the time required by the screen projection sending end from the sending of the heartbeat packet to the receiving of the data packet matched with the heartbeat packet;
calculating the file downloading speed when downloading the multimedia file;
and determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
7. The method of claim 6, further comprising, prior to calculating a file download speed when downloading the multimedia file:
acquiring a download address which is sent by a screen-casting sending end and matched with a multimedia file;
acquiring the multimedia file according to the download address;
the calculating of the file downloading speed when the multimedia file is downloaded comprises:
and acquiring the file size and the downloading time of the multimedia file, and calculating the file downloading speed according to the file size and the downloading time.
8. The method of claim 6, wherein determining the level of network connection status based on the average heartbeat reply time and the file download speed comprises:
determining an average value interval in which the heartbeat reply time average value is located and a speed interval in which the file downloading speed is located;
and taking the target level corresponding to the average value interval and the speed interval as the level of the current network connection state.
9. A network connection state evaluation device is characterized in that the device is arranged at a screen projection sending end and comprises:
the device comprises a sending end heartbeat reply time average value obtaining module and a receiving end heartbeat reply time average value obtaining module, wherein the sending end heartbeat reply time average value obtaining module is used for obtaining at least two heartbeat reply times and calculating a heartbeat reply time average value, and the heartbeat reply time is the time required by a screen projection sending end from sending a heartbeat packet to receiving a data packet matched with the heartbeat packet;
the system comprises a sending end file downloading speed acquisition module, a screen-casting receiving end and a multimedia file downloading module, wherein the sending end file downloading speed acquisition module is used for acquiring a file downloading speed sent by the screen-casting receiving end, and the file downloading speed is the downloading speed of the multimedia file received by the screen-casting receiving end;
and the sending end network connection state rating module is used for determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
10. A network connection state evaluation device is characterized in that the device is arranged at a screen projection receiving end, and the device comprises:
the receiving end heartbeat reply time average value acquisition module is used for acquiring at least two heartbeat reply times sent by the screen projection sending end and calculating a heartbeat reply time average value, wherein the heartbeat reply time is the time required by the screen projection sending end from sending a heartbeat packet to receiving a data packet matched with the heartbeat packet;
the receiving end file downloading speed acquisition module is used for calculating the file downloading speed when the multimedia file is downloaded;
and the receiving end network connection state rating module is used for determining the level of the network connection state according to the average value of the heartbeat reply time and the file downloading speed.
11. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the network connection status evaluation method according to any one of claims 1 to 5 or 6 to 8 when executing the program.
12. A storage medium containing computer-executable instructions for performing the network connection state evaluation method of any of claims 1-5 or 6-8 when executed by a computer processor.
CN202110550278.6A 2021-05-20 2021-05-20 Network connection state evaluation method and device, terminal equipment and storage medium Pending CN113259759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110550278.6A CN113259759A (en) 2021-05-20 2021-05-20 Network connection state evaluation method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110550278.6A CN113259759A (en) 2021-05-20 2021-05-20 Network connection state evaluation method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113259759A true CN113259759A (en) 2021-08-13

Family

ID=77182945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110550278.6A Pending CN113259759A (en) 2021-05-20 2021-05-20 Network connection state evaluation method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113259759A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965496A (en) * 2021-10-15 2022-01-21 上汽通用五菱汽车股份有限公司 Method for optimizing response of screen projection process
CN115941991A (en) * 2023-01-10 2023-04-07 北京微吼时代科技有限公司 Method and system for verifying stability of message receiving under large concurrency

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060174160A1 (en) * 2003-01-17 2006-08-03 Sang-Hyeon Kim Method for transmitting and downloading streaming data
CN102946547A (en) * 2012-11-20 2013-02-27 浙江银江智慧交通集团有限公司 Detection method based on operation state of video image evidence-obtaining device
CN104683182A (en) * 2015-02-15 2015-06-03 上海帝联信息科技股份有限公司 Method and device for detecting network service quality of IDC machine room
WO2017088627A1 (en) * 2015-11-23 2017-06-01 深圳市中兴微电子技术有限公司 Network detection method and apparatus, digital set-top box, and storage medium
US20170302557A1 (en) * 2016-04-19 2017-10-19 International Business Machines Corporation Managing connections for data communications using heartbeat messaging
WO2017206883A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application processing method and apparatus, storage medium, and electronic device
US20200076721A1 (en) * 2018-08-29 2020-03-05 Comcast Cable Communications, Llc Methods and systems for internet speed testing
CN110868373A (en) * 2018-08-27 2020-03-06 浙江宇视科技有限公司 Multimedia data transmission method, device and computer readable storage medium
CN111045805A (en) * 2019-12-11 2020-04-21 深圳前海环融联易信息科技服务有限公司 Method and device for rating task executor, computer equipment and storage medium
CN112118591A (en) * 2019-06-19 2020-12-22 广东美的制冷设备有限公司 Equipment network state analysis control method, system and computer storage medium
CN112260862A (en) * 2020-10-13 2021-01-22 北京锐安科技有限公司 Network data quality determination method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060174160A1 (en) * 2003-01-17 2006-08-03 Sang-Hyeon Kim Method for transmitting and downloading streaming data
CN102946547A (en) * 2012-11-20 2013-02-27 浙江银江智慧交通集团有限公司 Detection method based on operation state of video image evidence-obtaining device
CN104683182A (en) * 2015-02-15 2015-06-03 上海帝联信息科技股份有限公司 Method and device for detecting network service quality of IDC machine room
WO2017088627A1 (en) * 2015-11-23 2017-06-01 深圳市中兴微电子技术有限公司 Network detection method and apparatus, digital set-top box, and storage medium
US20170302557A1 (en) * 2016-04-19 2017-10-19 International Business Machines Corporation Managing connections for data communications using heartbeat messaging
WO2017206883A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Application processing method and apparatus, storage medium, and electronic device
CN110868373A (en) * 2018-08-27 2020-03-06 浙江宇视科技有限公司 Multimedia data transmission method, device and computer readable storage medium
US20200076721A1 (en) * 2018-08-29 2020-03-05 Comcast Cable Communications, Llc Methods and systems for internet speed testing
CN112118591A (en) * 2019-06-19 2020-12-22 广东美的制冷设备有限公司 Equipment network state analysis control method, system and computer storage medium
CN111045805A (en) * 2019-12-11 2020-04-21 深圳前海环融联易信息科技服务有限公司 Method and device for rating task executor, computer equipment and storage medium
CN112260862A (en) * 2020-10-13 2021-01-22 北京锐安科技有限公司 Network data quality determination method and device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965496A (en) * 2021-10-15 2022-01-21 上汽通用五菱汽车股份有限公司 Method for optimizing response of screen projection process
CN113965496B (en) * 2021-10-15 2023-11-17 上汽通用五菱汽车股份有限公司 Method for optimizing screen-throwing process response
CN115941991A (en) * 2023-01-10 2023-04-07 北京微吼时代科技有限公司 Method and system for verifying stability of message receiving under large concurrency
CN115941991B (en) * 2023-01-10 2023-10-27 北京微吼时代科技有限公司 Method and system for verifying stability of message collection under large concurrency

Similar Documents

Publication Publication Date Title
CN108259948B (en) Method and device for playing live broadcast audio and video, computer and storage medium
US9457271B2 (en) Method and apparatus for managing a gaming application
CN106803989B (en) Multi-screen interaction method and device and terminal equipment
WO2017107542A1 (en) Video program obtaining method, device and system
US20140344286A1 (en) Method and apparatus for displaying webcast roomss
CN106488270B (en) Live broadcast room switching method and device
WO2014183427A1 (en) Method and apparatus for displaying webcast rooms
CN103945240A (en) Video playing method and device based on video aggregation
CN108810657B (en) Method and system for setting video cover
CN113259759A (en) Network connection state evaluation method and device, terminal equipment and storage medium
US9712943B2 (en) Information processing system, information processing method, mobile terminal, information processing apparatus, and control methods and control programs thereof
US20170171496A1 (en) Method and Electronic Device for Screen Projection
CN105100906A (en) Play control method and play control device
CN107040825B (en) Terminal, television, multi-screen interaction system and screen capture parameter setting method
CN113741762A (en) Multimedia playing method, device, electronic equipment and storage medium
CN103814591A (en) Communication method, access network equipment and UE (user equipment) of different-format networks
CN110113655A (en) A kind of method, apparatus and user terminal of video playing
CN110545457A (en) Video playing method, video playing system, terminal equipment and storage medium
CN111556344A (en) Method, device, equipment and system for downloading video stream
CN114143371A (en) Screen projection method and device, storage medium and electronic equipment
CN111935497B (en) Video stream management method and data server for traffic police system
CN113132194A (en) Information transfer method, device, equipment, server and storage medium
CN105141644A (en) Download method of streaming media file and terminal
CN112543361B (en) Multi-device playing method and device based on intelligent cabin and electronic terminal
CN108076381B (en) Video display method, video forwarding equipment and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination