CN113691882A - Method, device, equipment and storage medium for judging network condition - Google Patents

Method, device, equipment and storage medium for judging network condition Download PDF

Info

Publication number
CN113691882A
CN113691882A CN202111028684.2A CN202111028684A CN113691882A CN 113691882 A CN113691882 A CN 113691882A CN 202111028684 A CN202111028684 A CN 202111028684A CN 113691882 A CN113691882 A CN 113691882A
Authority
CN
China
Prior art keywords
way
current
delay
minimum
time delay
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.)
Granted
Application number
CN202111028684.2A
Other languages
Chinese (zh)
Other versions
CN113691882B (en
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.)
Ava Electronic Technology Co Ltd
Original Assignee
Ava Electronic Technology 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 Ava Electronic Technology Co Ltd filed Critical Ava Electronic Technology Co Ltd
Priority to CN202111028684.2A priority Critical patent/CN113691882B/en
Publication of CN113691882A publication Critical patent/CN113691882A/en
Application granted granted Critical
Publication of CN113691882B publication Critical patent/CN113691882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/60Network 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/63Control 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/647Control 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/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for judging network conditions. Wherein, the method comprises the following steps: acquiring the current one-way time delay and the minimum one-way time delay from the local terminal to the opposite terminal in the sending direction; calculating the difference between the current one-way delay and the minimum one-way delay; and obtaining the network condition in the sending direction from the local terminal to the opposite terminal according to the difference between the current one-way delay and the minimum one-way delay. According to the principle that the physical link through which the data of two communication parties pass does not change greatly within a certain limited time, the present relative variation of the one-way time delay is taken as the one-way time delay jitter of the network, and the obtained result is very sensitive, can quickly reflect the network condition and has higher reference value.

Description

Method, device, equipment and storage medium for judging network condition
Technical Field
The present invention relates to the field of network data transmission technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining a network status.
Background
With the development of internet technology, the requirements for real-time or low delay are increasing continuously, and in order to ensure the transmission quality required by these requirements, the network congestion condition of the forwarding link needs to be detected in real time, so that the network congestion condition of the forwarding link can be found in time, and corresponding processing is performed in time to reduce the service impact caused by poor transmission quality.
At present, for the unidirectional delay jitter of a link, a special detection packet is generally sent, and the unidirectional delay value of the detection packet is used for judging, but in different networks, the unidirectional delay value is different based on physical reasons such as the material and the distance of transmission, for example, the optical fiber transmission is faster than the coaxial cable, the unidirectional delay of satellite-to-ground transmission may reach 300ms, and the jitter condition of the network cannot be accurately reflected by only depending on the unidirectional delay value; in addition, the use of dedicated probing packets consumes additional resources and latency, which is not conducive to network transmission.
Disclosure of Invention
The present invention provides a method, an apparatus, a device and a storage medium for determining a network status, so as to overcome at least one of the above-mentioned drawbacks of the prior art. The technical scheme adopted by the invention is as follows.
In a first aspect, the present invention provides a method for determining a network condition, including the steps of:
acquiring the current one-way time delay and the minimum one-way time delay from the local terminal to the opposite terminal in the sending direction;
calculating the difference between the current one-way delay and the minimum one-way delay;
and obtaining the network condition in the sending direction from the local terminal to the opposite terminal according to the difference between the current one-way delay and the minimum one-way delay.
In one embodiment, obtaining the current one-way delay includes:
sending a data packet to the opposite terminal, wherein the data packet comprises a local terminal sending time stamp T1;
receiving a response packet sent by an opposite terminal;
wherein the response packet includes: current one-way delay in the sending direction;
the current one-way time delay is obtained according to the difference value of a time stamp T1 sent by the local terminal and a time stamp T2 of the data packet received by the opposite terminal.
In one embodiment, the method for determining network condition is used for determining audio/video transmission network condition;
the data packet is an audio/video data packet;
the response packet is a response packet which is periodically returned by the opposite terminal or is returned by the local terminal when a plurality of audio/video data packets are continuously received by the opposite terminal.
In one embodiment, the current one-way delay is derived from the latest audio/video data packet received.
In one embodiment, obtaining the minimum one-way delay comprises:
acquiring the current one-way time delay and the current minimum one-way time delay;
comparing the current one-way time delay with the current minimum one-way time delay to obtain the minimum one-way time delay;
and when the current one-way delay is smaller than the current minimum one-way delay, replacing the current minimum one-way delay with the current one-way delay to be used as the minimum one-way delay.
In one embodiment, the method for determining network condition is used for determining audio/video transmission network condition;
the data packet is a video data packet;
the minimum one-way delay is the minimum current one-way delay in the last GOP period.
In one embodiment, when the time length for which the transmission code rate reaches the set lowest transmission value exceeds a preset time length and the difference between the current one-way delay and the minimum one-way delay exceeds a preset threshold, the current one-way delay is used to replace the current minimum one-way delay as the minimum one-way delay.
In a second aspect, the present invention provides a method for determining the status of an audio/video transmission network, comprising the steps of:
a sending end sends an audio/video data packet, wherein the audio/video data packet comprises a sending end sending time stamp T1;
the receiving terminal receives the audio/video data packet, takes out the timestamp T1, obtains a receiving timestamp T2 of the receiving terminal, and obtains the current one-way delay in the sending direction according to the difference value of the timestamp T2 and the timestamp T1;
the receiving end replies a response packet of the transmitting end periodically or when continuously receiving a plurality of audio/video data packets, wherein the response packet comprises the current one-way time delay;
and the sending end receives the response packet sent by the receiving end, takes out the current one-way time delay and judges the network condition in the sending direction according to the current one-way time delay.
In a third aspect, the present invention provides an apparatus for determining a network condition, including:
the acquisition module is used for acquiring the current one-way time delay and the minimum one-way time delay from the local terminal to the opposite terminal in the sending direction;
the calculation module is used for calculating the difference between the current one-way time delay and the minimum one-way time delay;
and the judging module is used for judging the network condition in the sending direction from the local terminal to the opposite terminal according to the difference between the current one-way delay and the minimum one-way delay.
In a fourth aspect, the present invention provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of the above embodiments when executing the program.
In a fifth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any of the above embodiments.
According to the principle that the physical link through which data of two communication parties pass does not change too much within a certain limited time and the main reason of causing the network jitter delay is the change generated by the congestion degree of the network bandwidth, the method takes the relative change amount of the current one-way delay as the network one-way delay jitter, thereby judging the network condition, and the obtained result is very sensitive, can quickly reflect the network condition and has a reference value.
Drawings
FIG. 1 is a schematic flow chart of the method of the first embodiment.
FIG. 2 is a schematic flow chart of an implementation of the first embodiment.
FIG. 3 is a schematic flow chart of another implementation of the first embodiment.
FIG. 4 is a flow chart of the method of the second embodiment.
Fig. 5 is a schematic structural diagram of an apparatus according to a third embodiment.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that the term "first \ second \ … …" related to the embodiments of the present invention is only used for distinguishing similar objects, and does not represent a specific ordering for the objects, and it should be understood that "first \ second \ … …" may be interchanged with a specific order or sequence, where permitted. It should be understood that the objects identified as "first \ second \ … …" may be interchanged under appropriate circumstances such that the embodiments of the invention described herein may be practiced in sequences other than those illustrated or described herein.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for determining a network condition according to an embodiment of the present invention, where the method includes step S110, step S120, and step S130. It should be noted that steps S110, S120 and S130 are merely reference numerals for clearly explaining the corresponding relationship between the embodiment and fig. 1, and do not represent the order limitation of the method steps of the method for determining the network condition in the present embodiment.
Step S110, the current one-way delay and the minimum one-way delay from the local terminal to the opposite terminal in the sending direction are obtained.
Generally speaking, the local terminal periodically sends a data packet of a playback request message including self sending time and a packet sequence number to the opposite terminal; and receiving a response packet of a playback response message including the content of the playback request message, which is replied by the opposite terminal, and receiving the time of the playback response message according to the content of the playback response message. And calculating the difference between the time of periodically receiving the echoing response message and the time of sending the echoing response message in the content of the echoing response message to obtain a sending time slot difference value sentTimeSlot. The current one-way delay can be obtained according to the sending time slot difference SentTimeSlot. For example, the difference value of the transmission time slots is used as the current one-way delay, or is corrected according to a preset model, so as to obtain the final current one-way delay in the transmission direction.
Since the link is built, each sampling period (including the sampling period) has the current one-way time delay obtained by the respective sampling period, and the minimum value of all the current one-way time delays is the minimum one-way time delay. Of course, the minimum value of the minimum current one-way delay in a certain period of time or a certain period of adoption period may also be used as the minimum one-way delay.
In different networks, the values of the one-way time delays are different based on physical reasons such as transmission materials, distances and the like, and the minimum one-way time delay can be considered as the time delay caused by the influence of the physical reasons only on the current link.
Step S120, calculating a difference between the current one-way delay and the minimum one-way delay.
And calculating to obtain the difference between the current one-way delay and the minimum one-way delay, wherein the difference can be regarded as the delay caused by skimming physical reasons in the current one-way delay, and the difference is used as a basic value for calculating the one-way delay jitter of the link from the local terminal to the opposite terminal in the sending direction.
Step S130, according to the difference between the current one-way delay and the minimum one-way delay, the network condition in the sending direction from the home terminal to the opposite terminal is obtained.
On the basis of the basic value obtained in step S120, the basic value is corrected through experiment or experience, for example, a correction coefficient is multiplied before the basic value, and then the one-way delay jitter of the link in the transmission direction from the local terminal to the opposite terminal is obtained. Of course, the basic value may be directly used as the one-way delay jitter of the link in the transmission direction from the local terminal to the opposite terminal without correction. For example, a SentTimeSlot _ jitter represents a one-way delay jitter value of a link in a transmission direction from a local terminal to an opposite terminal, and a SentTimeSlot _ jitter is a SentTimeSlot-SentTimeSlot _ good, that is, a difference between a current one-way delay and a minimum one-way delay is used as a current jitter value. After obtaining the jitter value, the network status of the transmission direction can be determined according to the SentTimeSlot _ jitter.
It is known that, within a certain limited time, the physical link through which data of two communicating parties pass does not change too much, so that the propagation delay is constant. In this case, the main cause of network jitter is the variation in the degree of congestion of the network bandwidth. Therefore, the one-way delay when the link is clear and not congested can be used as a reference, and it is considered that the time that the current one-way delay takes more than the reference one-way delay is caused by network jitter. Therefore, the current one-way delay is compared with the reference one-way delay, and the difference between the two is used as the basic value of the one-way delay jitter. In fact, the reference unidirectional delay is only an ideal state value and is difficult to obtain, so the method takes the minimum unidirectional delay in all sampling periods as the reference unidirectional delay to approximately obtain the reference unidirectional delay, compares the current unidirectional delay with the minimum unidirectional delay, corrects the obtained unidirectional delay to obtain the unidirectional delay jitter, and then judges the network condition.
It must be noted that the present invention refers to a sender in general and a receiver in general, in which case the method of the present invention is used on the sender. However, in a full duplex communication link, a receiving side also sends data to a sending side, so in this case, the method of the present invention can be used on both the sending side, which is the sending side, and the receiving side, which is the receiving side.
According to the method, the network condition is judged by taking the relative variation of the current one-way delay as the network one-way delay jitter according to the principle that the physical link through which the data of two communication parties pass does not change too much within a certain limited time and the main reason of causing the network jitter is the variation generated by the congestion degree of the network bandwidth, and the obtained result is very sensitive, can quickly reflect the network condition and has a reference value.
In one embodiment, as shown in fig. 2, obtaining the current one-way delay includes: step S210 and step S220.
Step S210, sending a data packet to the opposite end, where the data packet includes a local end sending timestamp T1.
The local terminal sends data packets to the opposite terminal, and each time a data packet is sent out, the data packet carries a local terminal sending time stamp T1. The data packet carrying the local sending time stamp T1 can identify its uniqueness, so as to avoid the false judgment of the responder on the data packet which arrives later in succession in case of network congestion.
Step S220, receiving a response packet sent by the opposite terminal;
wherein the response packet includes: current one-way delay in the sending direction;
the current one-way time delay is obtained according to the difference value of a time stamp T1 sent by the local terminal and a time stamp T2 of the data packet received by the opposite terminal.
And after the opposite end receives the data packet, taking out the timestamp T1 in the data packet, acquiring the timestamp T2 of the data packet received by the receiving end, and obtaining a sending time slot difference SentTimeSlot in the sending direction according to the difference value between the timestamp T2 and the timestamp T1, namely the SentTimeSlot is T2-T1. And obtaining the current one-way time delay according to the sending time slot difference value SentTimeSlot. For example, the difference value of the transmission time slots is used as the current one-way delay, or is corrected according to a preset model, so as to obtain the final current one-way delay in the transmission direction.
It should be noted here that, since the local terminal and the peer terminal do not use the same time stamp system, there is a possibility that the time stamp T2 is earlier than the time stamp T1, which results in a negative value of the transmission slot difference, but the transmission slot difference is smaller when the time consumption is still shorter in the magnitude of the transmission slot difference.
In one embodiment, the method for determining network condition is used for determining audio/video transmission network condition;
the data packet is an audio/video data packet;
the response packet is a response packet which is periodically returned by the opposite terminal or is returned by the local terminal when a plurality of audio/video data packets are continuously received by the opposite terminal.
In an audio/video transmission network, network congestion and packet loss often occur at the time when the volume of audio/video data packets sent in a unit time is large, and the more the volume of audio/video data packets sent in the unit time is, the more frequently the network congestion situation is detected, and the more real-time the network congestion situation can be detected. In addition, as the audio/video data transmission has a response mechanism, the response mechanism can be fully utilized, a special detection packet is not needed, and resources and waiting time are not required to be consumed additionally.
At this time, the receiving end may set two types of timings for sending the response packet, one is to send the response packet according to the set time period, and the other is to send the response packet after continuously receiving N audio/video data packets. In addition, the receiving end can set the period duration TimePeriod or the N value according to the actual situation to adjust the time for sending the response packet.
It should be noted that, regardless of the above-described method of transmitting the response packet, since there is more than one audio/video data packet received, a plurality of transmission slot difference SentTimeSlot are actually generated in one response period. In this case, according to the actual situation, a suitable sendtimeslot difference value SentTimeSlot may be selected to be processed to obtain the current one-way delay, for example, a SentTimeSlot obtained by selecting the latest received audio/video data packet, or an average value of the senttimeslots in a response period, or a highest/lowest SentTimeSlot value in a response period may be selected.
In one embodiment, the current one-way delay is derived from the latest audio/video data packet received.
As described above, a plurality of sending time slot difference senttimeslots are generated in one response period, and since the SentTimeSlot value obtained from the newly received audio/video data packet has the strongest real-time property and can relatively reflect the current minimum one-way time delay, the previous one-way time delay of the current response period is obtained according to the SentTimeSlot.
In one embodiment, as shown in fig. 3, obtaining the minimum one-way delay includes the steps of: step S310 and step S320.
Step S310, obtain the current one-way delay and the current minimum one-way delay.
The current one-way delay is obtained, and the current one-way delay can be obtained by the method described in the previous embodiment, or by other methods. And acquiring the current minimum one-way time delay, wherein the current minimum one-way time delay refers to the minimum one-way time delay before the sampling period.
Step S320, comparing the current one-way time delay with the current minimum one-way time delay to obtain the minimum one-way time delay; and when the current one-way delay is smaller than the current minimum one-way delay, replacing the current minimum one-way delay with the current one-way delay to be used as the minimum one-way delay.
Since the current minimum one-way delay (SentTimeSlot _ good) is the minimum one-way delay before the current sampling period, the current one-way delay of the current sampling period may be smaller than the current minimum one-way delay, and therefore, the two are required to be compared, and the smaller value of the two is used as the final minimum one-way delay, that is, SentTimeSlot _ good ═ SentTimeSlot _ good > SentTimeSlot: SentTimeSlot _ good, so as to obtain the minimum value of all the one-way delays including the current sampling period. The minimum one-way delay obtained in the sampling period can be used in the next sampling period, and the method of the embodiment can be continuously adopted in the next sampling period to obtain the minimum one-way delay of the sampling period.
In one embodiment, the method for determining network condition is used for determining audio/video transmission network condition;
the data packet is a video data packet;
the minimum one-way delay is the minimum current one-way delay in the last GOP period.
As mentioned above, in the audio/video transmission network, it is advantageous to use audio/video data packets more simply and effectively. In this embodiment, it is preferable to use a video data packet, and when the video data packet is used, the smallest one of the current one-way delays received in the previous GOP period may be used as the smallest one-way delay in the current GOP period. Because the link state of each time segment may change in the same physical link, and the current link state cannot be reflected depending on the historical minimum value, it is necessary to update according to the recent minimum one-way delay, where the GOP is used as an update unit, and the minimum one-way delay of the GOP is updated by the minimum value of all current one-way delays of one GOP above the GOP.
Of course, the use of the minimum one-way delay may be used as the minimum one-way delay in the whole GOP period, or as in the previous embodiment, the smaller value of the current one-way delay and the minimum one-way delay may be used as the minimum one-way delay.
In one embodiment, when the time length for which the transmission code rate reaches the set lowest transmission value exceeds a preset time length and the difference between the current one-way delay and the minimum one-way delay exceeds a preset threshold, the current one-way delay is used to replace the current minimum one-way delay as the minimum one-way delay.
If the minimum one-way delay is still larger after the sending code rate reaches the set lowest sending threshold for a period of time, and possibly a link is switched, the minimum one-way delay is updated to be the current one-way delay, so that long-term accumulation of data volume caused by low sending code rate is avoided.
Example two
The method of the second embodiment corresponds to the method of the first embodiment, and specifically includes a transmitting end and a receiving end. Referring to fig. 4, fig. 4 is a flowchart illustrating a method for determining an audio/video transmission network status according to a second embodiment of the present invention, where the method includes step S410, step S420, step S430, and step S440. It should be noted that steps S410, S420, S430 and S440 are merely reference numerals for clearly explaining the corresponding relationship between the embodiment and fig. 4, and do not represent the sequential limitation of the method steps of the method for determining the condition of the audio/video transmission network in this embodiment.
Step S410, a sending end sends an audio/video data packet, wherein the audio/video data packet comprises a sending end sending time stamp T1;
step S420, the receiving end receives the audio/video data packet, takes out the time stamp T1, obtains a receiving time stamp T2 of the receiving end, and obtains the one-way time delay in the sending direction according to the difference value of the time stamp T2 and the time stamp T1;
step S430, the receiving end replies a response packet of the sending end periodically or when continuously receiving a plurality of audio/video data packets, wherein the response packet comprises the one-way time delay;
step S440, the sending end receives the response packet sent by the receiving end, takes out the one-way delay, and determines the network status in the sending direction according to the one-way delay.
According to the method, the network condition is judged by taking the relative variation of the current one-way delay as the network one-way delay jitter according to the principle that the physical link through which the data of two communication parties pass does not change too much within a certain limited time and the main reason of causing the network jitter delay is the variation generated by the congestion degree of the network bandwidth, and the obtained result is very sensitive, can quickly reflect the network condition and has a reference value. In addition, as the audio/video data transmission has a response mechanism, the response mechanism can be fully utilized, a special detection packet is not needed, and resources and waiting time are not required to be consumed additionally.
EXAMPLE III
Corresponding to the method of the first embodiment, as shown in fig. 5, the present invention further provides a device 5 for determining a network status, including: an acquisition module 510, a calculation module 520, and a determination module 530.
An obtaining module 510, configured to obtain a current one-way delay and a minimum one-way delay in a sending direction from a home terminal to an opposite terminal;
a calculating module 520, configured to calculate a difference between the current one-way delay and the minimum one-way delay;
the determining module 530 is configured to determine a network condition in a sending direction from the home terminal to the peer terminal according to a difference between the current one-way delay and the minimum one-way delay.
The device judges the network condition by taking the relative variation of the current one-way delay as the one-way delay variation of the network according to the principle that the physical link through which the data of two communication parties pass does not change too much within a certain limited time and the main reason of causing the network jitter delay is the variation generated by the congestion degree of the network bandwidth, so that the obtained result is very sensitive, the network condition can be quickly reflected, and the device has a reference value.
In one embodiment, the apparatus for determining a network condition further includes: the device comprises a sending module and a receiving module.
A sending module, configured to send a data packet to an opposite end, where the data packet includes a local sending timestamp T1;
the receiving module is used for receiving a response packet sent by the opposite terminal;
wherein the response packet includes: current one-way delay in the sending direction;
the current one-way time delay is obtained according to the difference value of a time stamp T1 sent by the local terminal and a time stamp T2 of the data packet received by the opposite terminal.
In one embodiment, the means for determining network conditions is configured to determine audio/video transmission network conditions;
the data packet is an audio/video data packet;
the response packet is a response packet which is periodically returned by the opposite terminal or is returned by the local terminal when a plurality of audio/video data packets are continuously received by the opposite terminal.
In one embodiment, the current one-way delay is derived from the latest audio/video data packet received.
In one embodiment, the apparatus for determining a network condition further includes: and a minimum time delay calculation module.
A minimum time delay calculation module, configured to obtain the minimum one-way time delay, where the process of obtaining the minimum one-way time delay includes the steps of:
acquiring the current one-way time delay and the current minimum one-way time delay;
comparing the current one-way time delay with the current minimum one-way time delay to obtain the minimum one-way time delay;
and when the current one-way delay is smaller than the current minimum one-way delay, replacing the current minimum one-way delay with the current one-way delay to be used as the minimum one-way delay.
In one embodiment, the means for determining network conditions is configured to determine audio/video transmission network conditions;
the data packet is a video data packet;
the minimum one-way delay is the minimum value of all current one-way delays acquired in the last GOP period.
In one embodiment, when the time length for which the transmission code rate reaches the set lowest transmission value exceeds a preset time length and the difference between the current one-way delay and the minimum one-way delay exceeds a preset threshold, the current one-way delay is used to replace the current minimum one-way delay as the minimum one-way delay.
Example four
An embodiment of the present invention further provides a storage medium, on which computer instructions are stored, and the instructions, when executed by a processor, implement the method for determining a network condition or the method for determining an audio/video transmission network condition according to any of the above embodiments.
Those skilled in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Random Access Memory (RAM), a Read-Only Memory (ROM), a magnetic disk, and an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or various other media that can store program code.
Corresponding to the computer storage medium, in an embodiment, there is also provided a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any one of the methods for determining a network condition or the methods for determining an audio/video transmission network condition in the embodiments.
According to the computer equipment, a computer program running on a processor is used, according to the principle that within a certain limited time, a physical link through which data of two communication parties pass does not change greatly, and the main reason of causing network jitter delay is the change generated by the congestion degree of network bandwidth, the relative change quantity of the current one-way delay is used as the network one-way delay jitter, so that the network condition is judged, the obtained result is very sensitive, the network condition can be quickly reflected, and the reference value is very high.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
It should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.

Claims (11)

1. A method for determining a network condition, comprising the steps of:
acquiring the current one-way time delay and the minimum one-way time delay from the local terminal to the opposite terminal in the sending direction;
calculating the difference between the current one-way delay and the minimum one-way delay;
and obtaining the network condition in the sending direction from the local terminal to the opposite terminal according to the difference between the current one-way delay and the minimum one-way delay.
2. The method of claim 1, wherein obtaining the current one-way delay comprises:
sending a data packet to the opposite terminal, wherein the data packet comprises a local terminal sending time stamp T1;
receiving a response packet sent by an opposite terminal;
wherein the response packet includes: current one-way delay in the sending direction;
the current one-way time delay is obtained according to the difference value of a time stamp T1 sent by the local terminal and a time stamp T2 of the data packet received by the opposite terminal.
3. The method of determining network conditions of claim 2,
the method for judging the network condition is used for judging the audio/video transmission network condition;
the data packet is an audio/video data packet;
the response packet is a response packet which is periodically returned by the opposite terminal or is returned by the local terminal when a plurality of audio/video data packets are continuously received by the opposite terminal.
4. A method of determining a network condition as claimed in claim 3, wherein the current one-way delay is derived from the latest received audio/video data packet.
5. The method according to any of claims 1-4, wherein obtaining the minimum one-way delay comprises:
acquiring the current one-way time delay and the current minimum one-way time delay;
comparing the current one-way time delay with the current minimum one-way time delay to obtain the minimum one-way time delay;
and when the current one-way delay is smaller than the current minimum one-way delay, replacing the current minimum one-way delay with the current one-way delay to be used as the minimum one-way delay.
6. The method for determining network conditions according to any of claims 1-4,
the method for judging the network condition is used for judging the audio/video transmission network condition;
the data packet is a video data packet;
the minimum one-way delay is the minimum current one-way delay in the last GOP period.
7. The method of determining network conditions of claim 6,
and when the time length of the sending code rate reaching the set lowest sending value exceeds the preset time length and the difference between the current one-way time delay and the minimum one-way time delay exceeds the preset threshold value, replacing the current minimum one-way time delay with the current one-way time delay to serve as the minimum one-way time delay.
8. A method for determining a condition of an audio/video transmission network, comprising the steps of:
a sending end sends an audio/video data packet, wherein the audio/video data packet comprises a sending end sending time stamp T1;
the receiving terminal receives the audio/video data packet, takes out the timestamp T1, obtains a receiving timestamp T2 of the receiving terminal, and obtains the current one-way delay in the sending direction according to the difference value of the timestamp T2 and the timestamp T1;
the receiving end replies a response packet of the transmitting end periodically or when continuously receiving a plurality of audio/video data packets, wherein the response packet comprises the current one-way time delay;
and the sending end receives the response packet sent by the receiving end, takes out the current one-way time delay and judges the network condition in the sending direction according to the current one-way time delay.
9. An apparatus for determining a network condition, comprising:
the acquisition module is used for acquiring the current one-way time delay and the minimum one-way time delay from the local terminal to the opposite terminal in the sending direction;
the calculation module is used for calculating the difference between the current one-way time delay and the minimum one-way time delay;
and the judging module is used for judging the network condition in the sending direction from the local terminal to the opposite terminal according to the difference between the current one-way delay and the minimum one-way delay.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-8 when executing the program.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202111028684.2A 2021-09-02 2021-09-02 Method, device, equipment and storage medium for judging network condition Active CN113691882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111028684.2A CN113691882B (en) 2021-09-02 2021-09-02 Method, device, equipment and storage medium for judging network condition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111028684.2A CN113691882B (en) 2021-09-02 2021-09-02 Method, device, equipment and storage medium for judging network condition

Publications (2)

Publication Number Publication Date
CN113691882A true CN113691882A (en) 2021-11-23
CN113691882B CN113691882B (en) 2024-04-26

Family

ID=78585140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111028684.2A Active CN113691882B (en) 2021-09-02 2021-09-02 Method, device, equipment and storage medium for judging network condition

Country Status (1)

Country Link
CN (1) CN113691882B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040184483A1 (en) * 2003-01-31 2004-09-23 Akiko Okamura Transmission bandwidth control device
JP2005268979A (en) * 2004-03-17 2005-09-29 Nippon Telegr & Teleph Corp <Ntt> Convergence control method based on one-way delay time, system, device and method for communication program, and recording medium
CN101272290A (en) * 2008-05-12 2008-09-24 中国电信股份有限公司 Measuring method, measuring apparatus and forwarding device for route congestion state in IP network
US20110216648A1 (en) * 2010-03-05 2011-09-08 Microsoft Corporation Congestion control for delay sensitive applications
CN102231898A (en) * 2011-07-05 2011-11-02 深圳市融创天下科技股份有限公司 Network bandwidth self-adaptive QOS (quality of service) transmission method and system and terminal device
KR20150142350A (en) * 2014-06-11 2015-12-22 (주)티아이스퀘어 Method for Measuring Variation of Transmission Delay Time of Network for Rate Adaptation and Realtime Video Service System Using the Same
CN105230067A (en) * 2013-05-20 2016-01-06 瑞典爱立信有限公司 Congestion control in communication network
CN105407411A (en) * 2015-10-21 2016-03-16 广州市百果园网络科技有限公司 Data sending method and data sending device
WO2017000719A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Congestion control method and device based on queue delay
CN108234224A (en) * 2016-12-13 2018-06-29 腾讯科技(深圳)有限公司 The detection method and device of available bandwidth
CN110191060A (en) * 2018-02-22 2019-08-30 中兴通讯股份有限公司 A kind of adjustment data packet sends method, apparatus, equipment and the system of code rate
WO2020134559A1 (en) * 2018-12-29 2020-07-02 北京达佳互联信息技术有限公司 Data transmission method and apparatus, terminal device, and storage medium
CN111683393A (en) * 2020-05-25 2020-09-18 华中科技大学 Adaptive congestion control method for dynamically adjusting gain coefficient
CN111935441A (en) * 2020-07-30 2020-11-13 北京佳讯飞鸿电气股份有限公司 Network state detection method and device
CN112702230A (en) * 2020-12-21 2021-04-23 厦门亿联网络技术股份有限公司 Network congestion detection method, system, terminal device and readable storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040184483A1 (en) * 2003-01-31 2004-09-23 Akiko Okamura Transmission bandwidth control device
JP2005268979A (en) * 2004-03-17 2005-09-29 Nippon Telegr & Teleph Corp <Ntt> Convergence control method based on one-way delay time, system, device and method for communication program, and recording medium
CN101272290A (en) * 2008-05-12 2008-09-24 中国电信股份有限公司 Measuring method, measuring apparatus and forwarding device for route congestion state in IP network
US20110216648A1 (en) * 2010-03-05 2011-09-08 Microsoft Corporation Congestion control for delay sensitive applications
CN102231898A (en) * 2011-07-05 2011-11-02 深圳市融创天下科技股份有限公司 Network bandwidth self-adaptive QOS (quality of service) transmission method and system and terminal device
CN105230067A (en) * 2013-05-20 2016-01-06 瑞典爱立信有限公司 Congestion control in communication network
KR20150142350A (en) * 2014-06-11 2015-12-22 (주)티아이스퀘어 Method for Measuring Variation of Transmission Delay Time of Network for Rate Adaptation and Realtime Video Service System Using the Same
WO2017000719A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Congestion control method and device based on queue delay
CN105407411A (en) * 2015-10-21 2016-03-16 广州市百果园网络科技有限公司 Data sending method and data sending device
CN108234224A (en) * 2016-12-13 2018-06-29 腾讯科技(深圳)有限公司 The detection method and device of available bandwidth
CN110191060A (en) * 2018-02-22 2019-08-30 中兴通讯股份有限公司 A kind of adjustment data packet sends method, apparatus, equipment and the system of code rate
WO2020134559A1 (en) * 2018-12-29 2020-07-02 北京达佳互联信息技术有限公司 Data transmission method and apparatus, terminal device, and storage medium
CN111683393A (en) * 2020-05-25 2020-09-18 华中科技大学 Adaptive congestion control method for dynamically adjusting gain coefficient
CN111935441A (en) * 2020-07-30 2020-11-13 北京佳讯飞鸿电气股份有限公司 Network state detection method and device
CN112702230A (en) * 2020-12-21 2021-04-23 厦门亿联网络技术股份有限公司 Network congestion detection method, system, terminal device and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李盼;李月强;汪卫章;: "3G网络下视频传输自适应控制的研究", 电子设计工程, no. 20 *

Also Published As

Publication number Publication date
CN113691882B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN107171969B (en) Data transmission method, device and system
CN109787868B (en) Method, system and server for selecting routing path
US7383331B2 (en) Network server load detection system, sharing system and method
US9781474B2 (en) Content playback information estimation apparatus and method and program
JP6337105B2 (en) Method for adapting a download operation of a client terminal configured to receive multimedia content and corresponding terminal
US7516238B2 (en) Background transport service
CN111935441B (en) Network state detection method and device
CN110312150B (en) Video frame transmission method, system and server
CN109548156B (en) Single-channel Time Division Multiple Access (TDMA) satellite cluster ad hoc network time slot resource allocation method
CN112737897B (en) Link monitoring and scheduling method, device, equipment and storage medium
CN112671718A (en) Switching method of return link, server and storage medium
EP3560152B1 (en) Determining the bandwidth of a communication link
CN109257335B (en) Method for maintaining back source link, back source method, related device and storage medium
CN103312469B (en) Confirmation in multicast retransmission represents system of selection and device
CN112737940B (en) Data transmission method and device
CN107222403A (en) A kind of data transmission method, system and electronic equipment
CN112087349B (en) Method, device and system for acquiring retransmission timeout value
CN113364698A (en) Bandwidth estimation method, system, electronic device and storage medium
CN113691882A (en) Method, device, equipment and storage medium for judging network condition
CN114422079B (en) Data transmission method and device, computer equipment and storage medium
CN113726595B (en) Detection method and device of timeout client, electronic equipment and storage medium
CN111093089A (en) Method for managing video, edge cache scheduling center and communication system
CN109905327B (en) Wireless network data transmission method, sending end and receiving end
CN107222299A (en) A kind of data transmission method, system and electronic equipment
CN107592269B (en) Method and network node for transmitting load information of path

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