CN112995780B - Network state evaluation method, device, equipment and storage medium - Google Patents
Network state evaluation method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112995780B CN112995780B CN202110163831.0A CN202110163831A CN112995780B CN 112995780 B CN112995780 B CN 112995780B CN 202110163831 A CN202110163831 A CN 202110163831A CN 112995780 B CN112995780 B CN 112995780B
- Authority
- CN
- China
- Prior art keywords
- data units
- client
- playing
- time length
- network
- 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.)
- Active
Links
- 238000011156 evaluation Methods 0.000 title claims abstract description 31
- 238000000034 method Methods 0.000 claims abstract description 42
- 238000012545 processing Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 10
- 230000036541 health Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64723—Monitoring of network processes or resources, e.g. monitoring of network load
- H04N21/64738—Monitoring network characteristics, e.g. bandwidth, congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/004—Diagnosis, testing or measuring for television systems or their details for digital television systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the disclosure discloses a method, a device, equipment and a storage medium for evaluating network state. The method comprises the following steps: acquiring at least two playable data units according to a playing request sent by a client; sending the at least two playable data units to a client, and acquiring the time consumed for the at least two playable data units to finish sending; acquiring the playing time lengths of the at least two playable data units; and evaluating the network state according to the consumed time length and the playing time length. According to the network state evaluation method provided by the embodiment of the disclosure, the network state is evaluated according to the sending consumed time length and the playing time length of at least two playable data units sent to the client, the evaluation of the network state of the client by the video live broadcast service end can be realized only by simple evaluation indexes, and the complexity of network state evaluation can be reduced.
Description
Technical Field
The present disclosure relates to the field of network evaluation technologies, and in particular, to a method, an apparatus, a device, and a storage medium for evaluating a network state.
Background
When an existing live video service end evaluates a client network, data of a Transmission Control Protocol (TCP) stack is generally adopted for calculation, and the advantage is that the obtained data is relatively intuitive, but the disadvantage is that only the outgoing bandwidth can be evaluated on a single-side basis, namely, the bandwidth sent to the client by the service end. If the current network rate can meet the watching needs of the client, the evaluation can be carried out by matching with more indexes, including the self rate of the live stream watched by the client and the actual rate sent to the client by the server.
The existing video live broadcast service end evaluates a client network in a complex mode, has too many judgment factors and can obtain a final conclusion by a plurality of indexes.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment and a storage medium for evaluating a network state, so as to realize the evaluation of a video live broadcast service end on a client network state and reduce the complexity of the evaluation of the network state.
In a first aspect, an embodiment of the present disclosure provides a method for evaluating a network status, including:
acquiring at least two playable data units according to a playing request sent by a client;
sending the at least two playable data units to a client, and acquiring the time consumed for the at least two playable data units to finish sending;
acquiring the playing time lengths of the at least two playable data units;
and evaluating the network state according to the consumed time length and the playing time length.
In a second aspect, an embodiment of the present disclosure further provides an apparatus for evaluating a network status, including:
the playable data unit acquisition module is used for acquiring at least two playable data units according to a playing request sent by the client;
the consumed duration acquisition module is used for sending the at least two playable data units to the client and acquiring the consumed duration for finishing sending the at least two playable data units;
a playing time length obtaining module, configured to obtain playing time lengths of the at least two playable data units;
and the network state evaluation module is used for evaluating the network state according to the consumed time length and the playing time length.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processing devices;
a storage device to store one or more instructions;
when executed by the one or more processing devices, the one or more instructions cause the one or more processing devices to implement the method for evaluating a network status according to the embodiment of the disclosure.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processing device, implements the method for evaluating a network state according to the disclosed embodiments.
The embodiment of the disclosure discloses a method, a device, equipment and a storage medium for evaluating network state. Acquiring at least two playable data units according to a playing request sent by a client; sending the at least two playable data units to a client, and acquiring the consumed time length for the at least two playable data units to finish sending; acquiring the playing time lengths of at least two playable data units; and evaluating the network state according to the consumed time length and the playing time length. According to the network state evaluation method provided by the embodiment of the disclosure, the network state is evaluated according to the sending consumed time length and the playing time length of at least two playable data units sent to the client, the evaluation of the network state of the client by the video live broadcast service end can be realized only by simple evaluation indexes, and the complexity of network state evaluation can be reduced.
Drawings
Fig. 1 is a flow chart of a method of evaluating network status in an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an apparatus for evaluating a network status in an embodiment of the present disclosure;
fig. 3 is a diagram illustrating the results of an electronic device in an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a flowchart of a network state evaluation method provided in an embodiment of the present disclosure, where this embodiment is applicable to a case where a live video service end evaluates a network state of a client, and the method may be executed by a network state evaluation device, where the network state evaluation device may be composed of hardware and/or software and may be generally integrated in a device with a network state evaluation function, where the device may be an electronic device such as a server or a server cluster. As shown in fig. 1, the method specifically includes the following steps:
step 110, at least two playable data units are obtained according to the playing request sent by the client.
The playable data unit may be a Group of Pictures (Gop), which is a Group of continuous Pictures including a plurality of picture frames. In this embodiment, before the server sends the live data (including the audio stream and the video stream) to the client, the live data needs to be encoded into a plurality of complete Gop, and Gop obtained by encoding is sent to the client.
Specifically, after a user logs in a live video Application (APP) through a client and enters a live broadcast room to watch live broadcasts, the client sends a live broadcast request to a server, and the server acquires at least two playable data units corresponding to the live broadcasts after receiving the live broadcast request.
In this embodiment, the server opens a buffer area for Gop data separately, the data stored in the buffer area may be named GopCache, and the buffer area is isolated from the real-time playing data. When data arrive at the video live broadcast server, the data are sent to the client side and refilled into the cache region, and therefore separation of GopCache data and real-time data is achieved. The space of the buffer area can be configured by the system fixedly, the unit of the general configuration is second, namely Gop data of the set second is stored in the buffer area, and Gop data of the set second can correspond to at least two Gop data. When the buffer is full, the old data needs to be cleared to ensure that the buffer stores Gop data for a set second at most.
When receiving a live broadcast request sent by a client, the server reads at least two playable data units in the set cache according to the play request. Namely, the server reads the Gop data of the set seconds from the buffer area.
Step 120, at least two playable data units are sent to the client, and the time length consumed for the completion of sending of the at least two playable data units is obtained.
The time duration consumed can be obtained by recording a first time when the server sends the at least two playable data units to the client, recording a second time when the client returns a receiving success message, and determining the time duration consumed for completing sending of the at least two playable data units according to the second time and the first time.
Step 130, the playing duration of at least two playable data units is obtained.
The playing time duration can be understood as the time duration required by the at least two playable units to finish playing according to the set rate. In this embodiment, the number of picture frames included in each playable data unit is obtained, and the play duration can be calculated according to the total number of picture frames and the play rate included in at least two playable data units.
And step 140, evaluating the network state according to the consumed time length and the playing time length.
The network state includes network health, network smoothness, network generality, network congestion, network range, and the like. When the network state is network health, indicating that the client can bear the live stream with higher code rate; when the network state is smooth, the client can watch live broadcast smoothly, but the watching of higher-definition live broadcast stream cannot be guaranteed; when the network state is general, the risk that the client is blocked is high, and the client can be further replaced to low clear flow; when the network state is network card pause, the client is indicated to be blocked certainly and needs to be replaced to low clear flow at once; and when the network state is extremely poor, the client cannot perform live streaming service, and the connection needs to be disconnected and the network needs to be replaced.
In this embodiment, the network state is evaluated according to the consumed time length and the playing time length, but the network state is evaluated according to at least one of a comparison result of the consumed time length and the first set value, a comparison result of the consumed time length and the playing time length, and a comparison result of the playing time length and the third set value.
Specifically, the method for evaluating the network state according to the consumed time length and the playing time length may be: and if the consumed time length is less than the first set value or the ratio of the consumed time length to the playing time length is less than or equal to a second set value, the network state is the network health.
Wherein the first set value may be 100ms and the second set value is 0.1. Assuming that the time duration consumed for completing the sending of the at least two playable data units is T1, and the play time duration of the at least two playable data units is T2, when T1 is less than 100ms, or T1/T2 is less than or equal to 0.1, the network state of the client is network health.
Specifically, the method for evaluating the network state according to the consumed time length and the playing time length may be: and if the ratio of the consumed time length to the playing time length is greater than the second set value and the consumed time length is less than the playing time length, the network state is smooth.
That is, when T1/T2>0.1 and T1< T2, the network state of the client is network smooth.
Specifically, the method for evaluating the network state according to the consumed time length and the playing time length may be: if the consumed time length is equal to the playing time length, the network state is the normal network state.
That is, when T1= T2, the network status of the client is network-generic.
Specifically, the method for evaluating the network state according to the consumed time length and the playing time length may be: and if the consumed duration is greater than the playing duration and the ratio of the consumed duration to the playing duration is less than a third set value, the network state is network stuck.
Wherein the third set value may be 1.5. When T1> T2 and T1/T2<1.5, the network status of the client is network stuck.
Specifically, the method for evaluating the network state according to the consumed time length and the playing time length may be: if the consumed time length is infinite or the ratio of the consumed time length to the playing time length is greater than or equal to a third set value, the network state is very poor.
When T1 is infinite or T1/T2 is more than or equal to 1.5, the network state of the client is extremely poor.
According to the technical scheme of the embodiment of the disclosure, at least two playable data units are obtained according to a playing request sent by a client; sending the at least two playable data units to a client, and acquiring the consumed time length for finishing sending the at least two playable data units; acquiring the playing time lengths of at least two playable data units; and evaluating the network state according to the consumed time length and the playing time length. According to the network state evaluation method provided by the embodiment of the disclosure, the network state is evaluated according to the sending consumed time length and the playing time length of at least two playable data units sent to the client, the evaluation of the network state of the client by the video live broadcast service end can be realized only by simple evaluation indexes, and the complexity of network state evaluation can be reduced.
Optionally, after the network status is evaluated according to the consumed duration and the playing duration, the method further includes the following steps: determining a video code rate according to the evaluated network state; the method comprises the steps of coding direct broadcast data according to video code rate to obtain a plurality of playable data units; and sending the plurality of playable data units to the client, so that the client decodes the received playable data units and plays the data units.
The video bitrate can be understood as the number of data bits transmitted per unit time during data transmission, and the unit is kbps, that is, kilobits per second. That is, the sampling rate, the greater the sampling rate per unit time, the higher the accuracy, and the closer the processed file is to the original file.
In this embodiment, the corresponding relationship between each network state and the video code rate may be established in advance, and after the network state is evaluated, the video code rate may be directly obtained according to the evaluation result. The video code rate is reduced in sequence according to the sequence of network health, network smoothness, network generality, network congestion and network extreme difference. Illustratively, when the network state is network health, a larger video bitrate can be set, so that the precision of the playing data received by the client is higher, and the watching experience of the user is ensured. When the network state is very poor, the video code rate is set to 0, that is, the playing data is not sent to the client.
Fig. 2 is a schematic structural diagram of an apparatus for evaluating a network status according to an embodiment of the present disclosure. As shown in fig. 2, the apparatus includes:
a playable data unit obtaining module 210, configured to obtain at least two playable data units according to a play request sent by a client;
a consumed duration obtaining module 220, configured to send the at least two playable data units to the client, and obtain a consumed duration for the at least two playable data units to complete sending;
a playing duration obtaining module 230, configured to obtain playing durations of at least two playable data units;
and a network status evaluation module 240, configured to evaluate the network status according to the consumed duration and the playing duration.
Optionally, the playable data unit obtaining module 210 is further configured to:
and reading at least two playable data units in the set cache according to the playing request sent by the client.
Optionally, the network status evaluation module 240 is further configured to:
and if the consumed time length is less than the first set value or the ratio of the consumed time length to the playing time length is less than or equal to a second set value, the network state is the network health.
Optionally, the network status evaluation module 240 is further configured to:
and if the ratio of the consumed time length to the playing time length is greater than the second set value and the consumed time length is less than the playing time length, the network state is smooth.
Optionally, the network status evaluation module 240 is further configured to:
if the consumed time length is equal to the playing time length, the network state is general.
Optionally, the network status evaluation module 240 is further configured to:
and if the consumed duration is greater than the playing duration and the ratio of the consumed duration to the playing duration is less than a third set value, the network state is network stuck.
Optionally, the network status evaluation module 240 is further configured to:
if the consumed time length is infinite or the ratio of the consumed time length to the playing time length is greater than or equal to a third set value, the network state is very poor.
The device can execute the methods provided by all the embodiments of the disclosure, and has corresponding functional modules and beneficial effects for executing the methods. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the disclosure.
Referring now to FIG. 3, a block diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like, or various forms of servers such as a stand-alone server or a server cluster. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, electronic device 300 may include a processing means (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a read-only memory device (ROM) 302 or a program loaded from a storage device 305 into a random access memory device (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program containing program code for performing a method for recommending words. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 305, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two playable data units according to a playing request sent by a client; sending the at least two playable data units to a client, and acquiring the consumed time length for the at least two playable data units to finish sending; acquiring the playing time lengths of the at least two playable data units; and evaluating the network state according to the consumed time length and the playing time length.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the disclosed embodiments, the disclosed embodiments disclose a method for evaluating a network state, comprising:
acquiring at least two playable data units according to a playing request sent by a client;
sending the at least two playable data units to a client, and acquiring the consumed time length for the at least two playable data units to finish sending;
acquiring the playing time lengths of the at least two playable data units;
and evaluating the network state according to the consumed time length and the playing time length.
Further, acquiring at least two playable data units according to a play request sent by a client includes:
and reading at least two playable data units in the set cache according to the playing request sent by the client.
Further, evaluating the network state according to the consumed time length and the playing time length comprises:
and if the consumed duration is less than a first set value or the ratio of the consumed duration to the playing duration is less than or equal to a second set value, the network state is network health.
Further, evaluating the network state according to the consumed time length and the playing time length comprises:
and if the ratio of the consumed time length to the playing time length is greater than the second set value and the consumed time length is less than the playing time length, the network state is smooth.
Further, evaluating the network state according to the consumed time length and the playing time length comprises:
and if the consumed duration is equal to the playing duration, the network state is general.
Further, evaluating the network state according to the consumed time length and the playing time length comprises:
and if the consumed duration is greater than the playing duration and the ratio of the consumed duration to the playing duration is less than a third set value, the network state is network stuck.
Further, evaluating the network status according to the consumed duration and the playing duration, comprising:
and if the consumed time length is infinite, or the ratio of the consumed time length to the playing time length is greater than or equal to the third set value, the network state is very poor.
Further, after evaluating the network status according to the elapsed time length and the playing time length, the method further includes:
determining a video code rate according to the evaluated network state;
coding the direct broadcasting data according to the video code rate to obtain a plurality of playable data units;
and sending the plurality of playable data units to the client, so that the client decodes the received playable data units and plays the data units.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present disclosure and the technical principles employed. Those skilled in the art will appreciate that the present disclosure is not limited to the particular embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the present disclosure. Therefore, although the present disclosure has been described in greater detail with reference to the above embodiments, the present disclosure is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the spirit of the present disclosure, the scope of which is determined by the scope of the appended claims.
Claims (10)
1. A method for evaluating a network status, the method being performed by a device for evaluating a network status, the device being integrated with a server or a server cluster, the method comprising:
acquiring at least two playable data units according to a playing request sent by a client;
sending the at least two playable data units to a client, and acquiring the time consumed for the at least two playable data units to finish sending;
acquiring the playing time lengths of the at least two playable data units;
evaluating the network state according to the consumed time length and the playing time length;
the method for acquiring at least two playable data units according to a playing request sent by a client comprises the following steps:
reading at least two playable data units in a set cache according to a playing request sent by a client;
reading at least two playable data units in a set cache according to a play request sent by a client, comprising:
after receiving a playing request sent by a client, the server reads at least two playable data units in a buffer area which is independently opened for Gop frame data in the server according to the playing request;
when the data of the live video server arrive, the data are firstly sent to the client and refilled into the cache region.
2. The method of claim 1, wherein evaluating the network status based on the elapsed time duration and the play time duration comprises:
and if the consumed duration is less than a first set value or the ratio of the consumed duration to the playing duration is less than or equal to a second set value, the network state is network health.
3. The method of claim 2, wherein evaluating the network status based on the elapsed time duration and the play time duration comprises:
and if the ratio of the consumed time length to the playing time length is greater than the second set value and the consumed time length is less than the playing time length, the network state is smooth.
4. The method of claim 1, wherein evaluating the network status based on the elapsed time duration and the play time duration comprises:
and if the consumed duration is equal to the playing duration, the network state is general.
5. The method of claim 1, wherein evaluating the network status based on the elapsed time duration and the play time duration comprises:
and if the consumed duration is greater than the playing duration and the ratio of the consumed duration to the playing duration is less than a third set value, the network state is network stuck.
6. The method of claim 5, wherein evaluating the network status based on the elapsed time duration and the play time duration comprises:
and if the consumed time length is infinite, or the ratio of the consumed time length to the playing time length is greater than or equal to the third set value, the network state is very poor.
7. The method of claim 1, further comprising, after evaluating a network status based on the elapsed time duration and the play time duration:
determining a video code rate according to the evaluated network state;
according to the video code rate, the direct broadcasting data are coded to obtain a plurality of data units capable of being played;
and sending the plurality of playable data units to the client, so that the client decodes the received playable data units and plays the data units.
8. An apparatus for evaluating network status, the apparatus being integrated with a server or a server cluster, comprising:
the playable data unit acquisition module is used for acquiring at least two playable data units according to a playing request sent by the client;
the time duration consumption acquisition module is used for sending the at least two playable data units to the client and acquiring the time duration consumption for finishing sending the at least two playable data units;
a playing time length obtaining module, configured to obtain playing time lengths of the at least two playable data units;
the network state evaluation module is used for evaluating the network state according to the consumed time length and the playing time length;
the playable data unit obtaining module is further configured to:
reading at least two playable data units in a set cache according to a playing request sent by a client;
the playable data unit obtaining module is further configured to:
after receiving a playing request sent by a client, reading at least two playable data units in a buffer area which is opened up for Gop frame data independently in a server according to the playing request;
when the data of the live video server arrive, the data are firstly sent to the client and refilled into the cache region.
9. An electronic device, characterized in that the electronic device comprises:
one or more processing devices;
a storage device to store one or more instructions;
the one or more instructions when executed by the one or more processing devices cause the one or more processing devices to implement the method of assessing the status of a network as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processing device, carries out a method of assessing a state of a network according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110163831.0A CN112995780B (en) | 2021-02-05 | 2021-02-05 | Network state evaluation method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110163831.0A CN112995780B (en) | 2021-02-05 | 2021-02-05 | Network state evaluation method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112995780A CN112995780A (en) | 2021-06-18 |
CN112995780B true CN112995780B (en) | 2022-11-25 |
Family
ID=76348377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110163831.0A Active CN112995780B (en) | 2021-02-05 | 2021-02-05 | Network state evaluation method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112995780B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118631565B (en) * | 2024-07-01 | 2025-01-24 | 北京天空卫士网络安全技术有限公司 | A network security status assessment system and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791821A (en) * | 2016-12-30 | 2017-05-31 | 合网络技术(北京)有限公司 | Play appraisal procedure and device |
CN106911927A (en) * | 2015-12-23 | 2017-06-30 | 中国移动通信集团公司 | Assess method, device and the DPI equipment of Internet video user experience quality |
CN107396171A (en) * | 2017-07-24 | 2017-11-24 | 广州酷狗计算机科技有限公司 | Live network broadcast method, device and storage medium |
CN107683600A (en) * | 2015-06-12 | 2018-02-09 | 爱立信股份有限公司 | Systems and methods for managing ABR bitrate delivery in response to client video buffer characteristics |
CN110290030A (en) * | 2019-08-12 | 2019-09-27 | 北京字节跳动网络技术有限公司 | Network state detection method, apparatus, electronic equipment and computer-readable medium |
CN111432248A (en) * | 2020-03-30 | 2020-07-17 | 北京百度网讯科技有限公司 | Quality monitoring method and device for live video stream |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100049793A1 (en) * | 2008-08-25 | 2010-02-25 | Michael Boerner | Dynamic video presentation based upon results of online assessment |
CN111225387B (en) * | 2020-01-16 | 2023-01-31 | 广州万码科技有限公司 | Mobile network analysis method, system, device and medium based on video playing |
-
2021
- 2021-02-05 CN CN202110163831.0A patent/CN112995780B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107683600A (en) * | 2015-06-12 | 2018-02-09 | 爱立信股份有限公司 | Systems and methods for managing ABR bitrate delivery in response to client video buffer characteristics |
CN106911927A (en) * | 2015-12-23 | 2017-06-30 | 中国移动通信集团公司 | Assess method, device and the DPI equipment of Internet video user experience quality |
CN106791821A (en) * | 2016-12-30 | 2017-05-31 | 合网络技术(北京)有限公司 | Play appraisal procedure and device |
CN107396171A (en) * | 2017-07-24 | 2017-11-24 | 广州酷狗计算机科技有限公司 | Live network broadcast method, device and storage medium |
CN110290030A (en) * | 2019-08-12 | 2019-09-27 | 北京字节跳动网络技术有限公司 | Network state detection method, apparatus, electronic equipment and computer-readable medium |
CN111432248A (en) * | 2020-03-30 | 2020-07-17 | 北京百度网讯科技有限公司 | Quality monitoring method and device for live video stream |
Also Published As
Publication number | Publication date |
---|---|
CN112995780A (en) | 2021-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111385576B (en) | Video coding method and device, mobile terminal and storage medium | |
CN111147606B (en) | Data transmission method, device, terminal and storage medium | |
CN106998485B (en) | Video live broadcasting method and device | |
CN112312229A (en) | Video transmission method and device, electronic equipment and storage medium | |
CN112423140A (en) | Video playing method and device, electronic equipment and storage medium | |
CN112632323A (en) | Video playing method, device, equipment and medium | |
CN113891132B (en) | Audio and video synchronous monitoring method and device, electronic equipment and storage medium | |
US20250063216A1 (en) | Method of video downloading, method of video transmission, terminal device, server and storage medium | |
CN112954354A (en) | Video transcoding method, device, equipment and medium | |
CN113905257A (en) | Video rate switching method, device, electronic device and storage medium | |
CN113364767B (en) | Streaming media data display method and device, electronic equipment and storage medium | |
CN113242446B (en) | Video frame caching method, video frame forwarding method, communication server and program product | |
CN115834918B (en) | Video live broadcast method and device, electronic equipment and readable storage medium | |
CN112995780B (en) | Network state evaluation method, device, equipment and storage medium | |
CN109547839A (en) | The dynamic previewing processing method and processing device of live content, medium, electronic equipment | |
CN113037751A (en) | Method and system for creating audio and video receiving stream | |
CN104429090A (en) | Content transmission device, content playback device, content delivery system, control method for content transmission device, control method for content playback device, data structure, control program, and recording medium | |
CN113542856B (en) | Method, device, equipment and computer readable medium for reverse playing of online video | |
CN113115074B (en) | Video jamming processing method and device | |
CN114257870A (en) | Short video playback method, device, device and storage medium | |
CN113259729B (en) | Data switching method, server, system and storage medium | |
CN111478916B (en) | Data transmission method, device and storage medium based on video stream | |
CN109618198A (en) | Live content reports method and device, storage medium, electronic equipment | |
CN113965779B (en) | Cloud game data transmission method, device, system and electronic device | |
CN115348460A (en) | Video preloading method, device, equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |