CN107733732A - A kind of method and device for judging network condition - Google Patents

A kind of method and device for judging network condition Download PDF

Info

Publication number
CN107733732A
CN107733732A CN201710721518.8A CN201710721518A CN107733732A CN 107733732 A CN107733732 A CN 107733732A CN 201710721518 A CN201710721518 A CN 201710721518A CN 107733732 A CN107733732 A CN 107733732A
Authority
CN
China
Prior art keywords
packet loss
client
network condition
members
video room
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
CN201710721518.8A
Other languages
Chinese (zh)
Other versions
CN107733732B (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.)
Guiyang Longmaster Information and Technology Co ltd
Original Assignee
Guiyang Longmaster Information and 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 Guiyang Longmaster Information and Technology Co ltd filed Critical Guiyang Longmaster Information and Technology Co ltd
Priority to CN201710721518.8A priority Critical patent/CN107733732B/en
Publication of CN107733732A publication Critical patent/CN107733732A/en
Application granted granted Critical
Publication of CN107733732B publication Critical patent/CN107733732B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone

Abstract

The invention belongs to network technique field, and in particular to a kind of method and device for judging network condition, the described method comprises the following steps:Obtain the first up packet loss, descending packet loss and other up packet loss;According to the described first up packet loss, descending packet loss and other up packet loss got, the network condition of the client of other members in the network condition and video room of the client is judged.This method can be used for the network condition for during user carries out Video chat, timely and accurately judging the client of other members in the network condition and video room of client.

Description

A kind of method and device for judging network condition
Technical field
The invention belongs to network technique field, and in particular to a kind of method and device for judging network condition.
Background technology
With the development of broadband network, the matter quantity and form of legacy network communication are changed, exchange is no longer simply limited to In ordinary language word, separate far away friend is allowed to meet each other each other using Video chat.Video chat is that one kind utilizes net Network realizes the business of two people or the visual chat feature of more people.Carry out amusement exchange currently with Video chat function, enter Row video conference, carry out tele-medicine etc..
Video chat largely facilitates the exchange between people, reduces communication cost.But due to Video chat Preferable broadband network is needed, in the case where network condition is poor, significantly limit experience of the people to Video chat, especially It is when carrying out Video chat, if Caton phenomenon occurs in network, the people of Video chat can not quickly and accurately know Road is which side network there is a problem on earth, and then can not quickly cope with the phenomenon of network interim card, makes the experience of user Effect is poor.
The content of the invention
In order to solve the above-mentioned technical problem, the present invention provides a kind of method and device for judging network condition, and it can be used for During user carries out Video chat, timely and accurately judge in the network condition and video room of client other into The network condition of the client of member.
It is a primary object of the present invention to provide a kind of method for judging network condition, comprise the following steps:
Obtain the first up packet loss, descending packet loss and other up packet loss;The first up packet loss is this Client uploaded videos flow to the packet loss of server end, and the descending packet loss is that the client is downloaded from the server end The packet loss of the video flowing of other members in video room, other described up packet loss are the visitors of other members in video room Family end uploaded videos flow to the packet loss of the server end;The video room is that the client user is entered by the client The virtual video room entered;
According to the described first up packet loss, descending packet loss and other up packet loss got, the client is judged The network condition of the client of other members in the network condition and video room at end.
In the method for judging network condition, it is preferred that the network condition and video room for judging the client The network condition of the client of other interior members includes:
Setup parameter x, y, wherein 0 < x < y < 1;
By the described first up packet loss, descending packet loss, compared respectively with x, y, draw the first comparing result, and root The network condition of the client is judged according to first comparing result;
It is described to judge that the network condition of the client includes according to first comparing result:
If the first up packet loss is more than y, judge the network condition of the client to be poor;
If the first up packet loss is less than or equal to y, and descending packet loss is more than y, then judges the net of the client Network situation is poor;
If the first up packet loss is less than or equal to y, and descending packet loss is less than or equal to x, then judges the client The network condition at end is preferably;
If the first up packet loss is less than or equal to y, and descending packet loss is more than x and is less than or equal to y, then judges During the network condition of the client is.
Further, the network of the network condition for judging the client and the client of other members in video room Situation also includes:
Other up packet loss are compared with x, y respectively, draw the second comparing result, and tie according to the described second contrast Fruit judges the network condition of the client of other members in video room;
It is described to judge that the network condition of the client of other members in video room includes according to second comparing result:
If other up packet loss are more than y, other members corresponding with the up packet loss in video room are judged The network condition of client is poor;
If other up packet loss are less than or equal to x, judge in video room it is corresponding with the up packet loss other The network condition of the client of member is preferably;
If other up packet loss are more than x and are less than or equal to y, judge corresponding with the up packet loss in video room The network condition of client of other members be.
In preferred embodiment, the method for judging network condition also includes:The display operation of customer in response end subscriber, Show the network condition of the client of other members in the network condition and video room of the client.
Preferably, the first up packet loss of the acquisition, descending packet loss and other up packet loss, are to obtain each second Take once.
The present invention's also provides a kind of device for judging network condition, and it includes:
Acquisition module, for obtaining the first up packet loss, descending packet loss and other up packet loss;On described first Row packet loss is the packet loss that the client uploaded videos flow to server end, and the descending packet loss is the client from described The packet loss of the video flowing of other members in server end foradownloaded video room, other described up packet loss are in video room The client uploaded videos of other members flow to the packet loss of the server end;The video room is that the client user is led to Cross the virtual video room of client entrance;
Judge module, for according to the described first up packet loss, descending packet loss and other the up packet losses got Rate, judge the network condition of the client of other members in the network condition and video room of the client.
The device for judging network condition, it is preferred that the judge module includes:
Setup unit, for setup parameter x, y, wherein 0 < x < y < 1;
First comparison unit, for by the described first up packet loss, descending packet loss, comparing, drawing with x, y respectively First comparing result, and judge according to first comparing result network condition of the client;
First comparison unit includes:
First judgment sub-unit, if being more than y for the described first up packet loss, judge the network condition of the client For difference;
Second judgment sub-unit, if it is less than or equal to y for the described first up packet loss, and descending packet loss is more than y, Then judge the network condition of the client to be poor;
3rd judgment sub-unit, if be less than or equal to y for the described first up packet loss, and descending packet loss be less than or Equal to x, then the network condition of the client is judged preferably;
4th judgment sub-unit, if it is less than or equal to y for the described first up packet loss, and descending packet loss is more than x And be less than or equal to y, then during the network condition for judging the client is.
It is preferred that the judge module also includes:
Second comparison unit, for other up packet loss to be compared with x, y respectively, the second comparing result is drawn, and The network condition of the client of other members in video room is judged according to second comparing result;
Second comparison unit includes:
5th judgment sub-unit, if being more than y for other up packet loss, judge in video room with the up packet loss The network condition of the client of other members is poor corresponding to rate;
6th judgment sub-unit, if being less than or equal to x for other up packet loss, judge in video room and on this The network condition of the client of other members corresponding to row packet loss is preferably;
7th judgment sub-unit, if being more than x for other up packet loss and being less than or equal to y, judge video room During the network condition of the client of interior other members corresponding with the up packet loss is.
The device for judging network condition, it is preferred that it also includes display module, for customer in response end subscriber Display operation, show the network condition of the client of other members in the network condition and video room of the client.
It is described judge network condition device, wherein, it is described acquisition the first up packet loss, descending packet loss and other on Row packet loss, it is to obtain once each second.
The method of the judgement network condition of the embodiment of the present invention, can be during user carries out Video chat, in time The network condition of the client of other members in the network condition and video room of client is judged exactly, if network goes out Existing Caton phenomenon, it is which side network there is a problem on earth that the people of Video chat, which can quickly and accurately know, and then User can be facilitated to quickly cope with the phenomenon of network interim card, improve the experience effect of the Video chat of user.
Brief description of the drawings
, below will be to the present invention or prior art in order to illustrate more clearly of technical scheme of the invention or of the prior art The required accompanying drawing used is briefly described in description, it should be apparent that, drawings in the following description are only the present invention's Some embodiments, for those of ordinary skill in the art, without having to pay creative labor, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is the flow chart of the method for the judgement network condition in one embodiment of the present invention.
Fig. 2 is the flow chart of the first up packet loss statistical method in the method for the judgement network condition shown in Fig. 1.
Fig. 3 is the network condition for judging the client and video room in the method for the judgement network condition shown in Fig. 1 The flow chart of the network condition of the client of other interior members.
Fig. 4 is the structured flowchart of the device of the judgement network condition in one embodiment of the present invention.
Fig. 5 is the structured flowchart of the device of the judgement network condition in another preferred embodiment of the present invention.
Fig. 6 is the structured flowchart of the device of the judgement network condition in another preferred embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the present invention, technical scheme is clearly and completely described, it is clear that Described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, sheet The every other embodiment that field those of ordinary skill is obtained under the premise of creative work is not made, belongs to the present invention The scope of protection.
Some features are simply discriminatively called by " first ", " second " in the embodiment of the present invention, this be in order to It is convenient understanding setting, have no otherwise restriction.
The method of judgement network condition as shown in Figure 1, it comprises the following steps:
S101:Obtain the first up packet loss, descending packet loss and other up packet loss;The first up packet loss It is the packet loss that the client uploaded videos flow to server end, the descending packet loss is the client from the server end The packet loss of the video flowing of other members in foradownloaded video room, other described up packet loss are other members in video room Client uploaded videos flow to the packet loss of the server end;The video room is that the client user passes through the client Hold the virtual video room entered.
Can there are two members or more members in the video room, the quantity of other up packet loss can Can be one or more to be corresponding with other numbers of members in video room.Other members in video room, Refer to user member corresponding to other clients in addition to user member corresponding to the client.When video room have two into For member when carrying out Video chat, other members in video room are one, and other described up packet loss are one;Work as video There are three members in room when carrying out Video chat, and other members in video room are two, other described up packet loss Can be one or two;When video room has more than three members carrying out Video chat, in video room other into Member is two or more, and other described up packet loss can be one or two or more.
As shown in Fig. 2 the method for the first up packet loss statistics can include:
S1011:Server or client define the statistic period T 1 of a packet;It is that client often sends T1 number According to bag, packet loss of server statistics;
S1012:Transmitted packet is numbered client, is then sent to server according to number order;
S1013:After server receives the packet of client transmission, the numbering of the packet is first judged;If server is received Numbering to the first packet is n1, then writes down the numbering n1 of the packet;
S1014:When server judges that the numbering for receiving packet is more than or equal to n1+T1-1, carry out counting the cycle The number of interior received packet, and calculate the first up packet loss in the cycle;
S1015:If server judges that receiving the numbering of packet is more than n1+T1-1, using the packet received as The beginning of next measurement period;If the numbering that server judges to receive packet is equal to n1+T1-1, next by what is received Beginning of the packet as next measurement period;Circulated with this, calculate the first up packet loss in each cycle.
Wherein, T1 can be the positive integers such as 10,30,55,80,100,200,500, and numbering can be numbered from 0, press Natural number according to 0,1,2,3,4 order or it is numbered from other natural numbers.
Specifically, it is assumed that T1=10, be that client often sends 10 packets, packet loss of server statistics;It is false If the numbering of the first packet be 10 (package number that client is sent is 10,11,12,13,14,15,16,17,18,19, 20th, 21 etc.), when server receives the packet, the numbering of the packet is write down;Judge to receive packet in server Numbering be more than or equal to 19 when, counted the number of received packet, and calculate in the cycle first on Row packet loss.If server judges that the numbering for receiving packet is more than 19, using the packet received as next statistics The beginning in cycle;If server judges that the numbering for receiving packet is equal to 19, using the next packet received as next The beginning of individual measurement period;Circulated with this, calculate the first up packet loss in each cycle.
Further, by taking the period 1 as an example, server writes down the numbering of packet when the first packet is received 10.If server receives 19 number bags, server starts to count received packet, it is assumed that the packet received Numbering has 10,14,15,17,18,19, then the packet lost just has 11,12,13,16, then losing in this measurement period Bag rate is 4/10;If after server receives 18 number bags, directly receiving 20 number bags, then server starts to count and received Packet, it is assumed that the numbering of the packet received has 10,14,15,17,18, then the packet lost just has 11,12,13, 16th, 19, then the packet loss in this measurement period is 5/10.
Further, if after server receives 20 number bags, using the packet received as next statistics week The beginning of phase, when server judges that the numbering for receiving packet is more than or equal to 29, counted received data Bag, and calculate the packet loss in this cycle.If after server receives 18 number bags, what is directly received is 21 number bags, Then beginning of the server using the 21 number bag received as next measurement period, server judge to receive the volume of packet Number be more than or equal to 30 when, counted the number of received packet, and calculate the packet loss in this cycle.If clothes Business device receives 30 number bags, then server starts to count received packet, it is assumed that the numbering of the packet received has 21st, 24,25,27,28,29,30, then the packet lost just has 22,23,26, then the packet loss in this measurement period is 3/10。
The method of the descending packet loss statistics can be similar with the method for the described first up packet loss statistics, specifically may be used With including:
Step 1:Server or client define the statistic period T 2 of a packet;It is that server often sends T2 number According to bag, client counts a packet loss;
Step 2:Transmitted packet is numbered server, is then sent to client according to number order;
Step 3:After client receives the packet of server transmission, the numbering of the packet is first judged;If client is received Numbering to the first packet is n2, then writes down the numbering n2 of the packet;
Step 4:When client judges that the numbering for receiving packet is more than or equal to n2+T2-1, carry out counting the cycle The number of interior received packet, and calculate the first up packet loss in the cycle;
Step 5:If client judges that receiving the numbering of packet is more than n2+T2-1, using the packet received as The beginning of next measurement period;If the numbering that client judges to receive packet is equal to n2+T2-1, next by what is received Beginning of the packet as next measurement period;Circulated with this, calculate the descending packet loss in each cycle;
Wherein, T2 can be the positive integers such as 10,30,55,80,100,200,500, and numbering can be numbered from 0, press Natural number according to 0,1,2,3,4 order or it is numbered from other natural numbers.
Other described up packet loss are that the client uploaded videos of other members in video room flow to the server The packet loss at end, it is to be counted in server reception video room during the client uploaded videos stream of other members, Its statistical method can be identical with the method for the described first up packet loss statistics, and simply client object is different.
The first up packet loss of the acquisition, descending packet loss and other up packet loss can be specifically clients from The first up packet loss and other up packet loss are obtained on server, descending packet loss is obtained from client inside.
S102:According to the described first up packet loss, descending packet loss and other up packet loss got, judging should The network condition of the client of other members in the network condition and video room of client.
The network condition of other members in the network condition for judging the client and video room, can be by the client In the network condition and video room at end the network condition of other members be respectively divided into, poor two grades, or be divided into, In, poor Three Estate, or made a distinction according to other grades.
Specifically, can be with setup parameter m, 0 < m < 1;
If the first up packet loss is more than m, judge the network condition of the client to be poor;
If the first up packet loss is less than or equal to m, and descending packet loss is more than m, then judges the net of the client Network situation is poor;
If the first up packet loss is less than or equal to m, and descending packet loss is less than or equal to m, then judges the client The network condition at end is preferably.
If other up packet loss are more than m, other members visitor corresponding with the up packet loss in video room is judged The network condition at family end is poor;
If other up packet loss are less than or equal to m, judge in video room it is corresponding with the up packet loss other The network condition of member client is preferably.
The method of the judgement network condition of the embodiment of the present invention, can be during user carries out Video chat, in time The network condition of the client of other members in the network condition and video room of client is judged exactly, if network goes out Existing Caton phenomenon, it is which side network there is a problem on earth that the people of Video chat, which can quickly and accurately know, and then User can be facilitated to quickly cope with the phenomenon of network interim card, improve the experience effect of the Video chat of user.
Generally, in order to judge more rapidly and more accurately other members in the network condition and video room of the client Network condition, it is described to judge the client as shown in figure 3, wherein based on the method for the judgement network condition shown in Fig. 1 The network condition of the client of other members includes in network condition and video room:
S201:Setup parameter x, y, wherein 0 < x < y < 1;
S202:By the described first up packet loss, descending packet loss, compared respectively with x, y, draw the first contrast knot Fruit, and judge according to first comparing result network condition of the client;
It is described to judge that the network condition of the client includes according to first comparing result:
If the first up packet loss is more than y, judge the network condition of the client to be poor;
If the first up packet loss is less than or equal to y, and descending packet loss is more than y, then judges the net of the client Network situation is poor;
If the first up packet loss is less than or equal to y, and descending packet loss is less than or equal to x, then judges the client The network condition at end is preferably;
If the first up packet loss is less than or equal to y, and descending packet loss is more than x and is less than or equal to y, then judges During the network condition of the client is.
Further, as shown in figure 3, the visitor of the network condition and other members in video room for judging the client The network condition at family end also includes:
S203:Other up packet loss are compared with x, y respectively, draw the second comparing result, and according to described second Comparing result judges the network condition of the client of other members in video room;
It is described to judge that the network condition of the client of other members in video room includes according to second comparing result:
If other up packet loss are more than y, other members corresponding with the up packet loss in video room are judged The network condition of client is poor.
If other up packet loss are less than or equal to x, judge in video room it is corresponding with the up packet loss other The network condition of the client of member is preferably.
If other up packet loss are more than x and are less than or equal to y, judge corresponding with the up packet loss in video room The network condition of client of other members be.
Based on the method for the judgement network condition shown in Fig. 1, it also includes:The display operation of customer in response end subscriber, shows The network condition of the client of other members in the network condition and video room of the client is shown.
Judge in the network condition and video room of the client after the network condition of the client of other members, can be with Directly display out the network condition of the client of other members in the network condition and video room of the client;Can also be in visitor When family end subscriber finds that network compares interim card, client user carries out display operation, is grasped in response to the display of client user Make, show the network condition of the client of other members in the network condition and video room of the client.The latter, Ke Yi In the case of network condition is preferable, it will not influence the video between user due to frequently showing network condition and link up.
Method based on the judgement network condition shown in Fig. 1, it is preferred that the acquisition first up packet loss, descending Packet loss and other up packet loss, it is to obtain once each second.Certainly, obtain the first up packet loss, descending packet loss and The frequency of other up packet loss can also be acquisition per minute once, obtain once or other frequencies within every 0.5 second.It is and per second Clock obtains once, you can to ensure to monitor the real-time of network quality, can be unlikely to up due to continually obtaining first again Packet loss, descending packet loss and other up packet loss and influence network.
As one embodiment, the scene of tele-medicine is carried out by internet with reference to doctor and patient, introduces this The method of the judgement network condition of invention.There was only a doctor and a patient in the video room of the embodiment of the present invention.
The method that doctor's client judges network condition, it comprises the following steps:
S301:Each second obtains a first up packet loss, descending packet loss and other up packet loss;Described first Up packet loss is the packet loss that doctor's client uploaded videos flow to server end, and the descending packet loss is doctor visitor The packet loss of family end video flowing of patient member out of described server end foradownloaded video room, other described up packet loss are The client uploaded videos of patient member flow to the packet loss of the server end in video room;The video room is the doctor The virtual video room that raw client user is entered by doctor's client;
S302:Setup parameter x, y, wherein x are 1%, y 5%;
S303:By the described first up packet loss, descending packet loss, compared respectively with x, y;
S304:If the first up packet loss is more than y, judge the network condition of doctor's client to be poor;If institute State the first up packet loss and be less than or equal to y, and descending packet loss is more than y, then the network condition for judging doctor's client is Difference;If the first up packet loss is less than or equal to y, and descending packet loss is less than or equal to x, then judges doctor's client Network condition preferably;If the first up packet loss is less than or equal to y, and descending packet loss is more than x and is less than or equal to Y, then during the network condition for judging doctor's client is;
S305:Other up packet loss are compared with x, y respectively;
S306:If other up packet loss are more than y, judge in video room it is corresponding with the up packet loss other into The network condition of the client of member is poor;If other up packet loss are less than or equal to x, judge up with this in video room The network condition of the client of other members corresponding to packet loss is preferably;If other up packet loss are more than x and are less than or equal to Y, then during the network condition for judging the client of other members corresponding with the up packet loss in video room is;
S307:The display operation of clinician user is responded, is shown in the network condition and video room of doctor's client The network condition at patient customer end.
The embodiment of the present invention, it can timely and accurately judge doctor client when doctor and patient carry out tele-medicine The network condition of patient's client in the network condition and video room at end, if Caton phenomenon occurs in network, doctor can be more Quickly and accurately know it is which side network there is a problem on earth, and then clinician user can be facilitated to quickly cope with net The phenomenon of network interim card, improve the tele-medicine body effect of clinician user.
The embodiment of the present invention also provides a kind of device for judging network condition, as shown in figure 4, it includes:
Acquisition module, for obtaining the first up packet loss, descending packet loss and other up packet loss;On described first Row packet loss is the packet loss that the client uploaded videos flow to server end, and the descending packet loss is the client from described The packet loss of the video flowing of other members in server end foradownloaded video room, other described up packet loss are in video room The client uploaded videos of other members flow to the packet loss of the server end;The video room is that the client user is led to Cross the virtual video room of client entrance;
Judge module, for according to the described first up packet loss, descending packet loss and other the up packet losses got Rate, judge the network condition of the client of other members in the network condition and video room of the client.
The device of the judgement network condition of the embodiment of the present invention, available for the side for realizing the judgement network condition shown in Fig. 1 Method, it during user carries out Video chat, can timely and accurately judge the network condition and video room of client In other members client network condition, if there is Caton phenomenon in network, the people of Video chat can quickly, standard Really know it is which side network there is a problem on earth, and then user can be facilitated to quickly cope with showing for network interim card As improving the experience effect of the Video chat of user.
The device for judging network condition can also include statistics packet loss module, as shown in figure 5, can specifically wrap Include:
First definition unit, the statistic period T 1 of a packet is defined for server or client;It is client Often send T1 packet, packet loss of server statistics;
First numbered cell, transmitted packet is numbered for client, then sent according to number order To server;
First recording unit, after the packet that client is sent is received for server, first judge the numbering of the packet; If the numbering that server receives the first packet is n1, the numbering n1 of the packet is write down;
First computing unit, for when server judges that the numbering for receiving packet is more than or equal to n1+T1-1, carrying out The number of the packet received in the cycle is counted, and calculates the first up packet loss in the cycle;
First computing unit, if being additionally operable to the numbering that server judges to receive packet is more than n1+T1-1, it will receive Beginning of the packet arrived as next measurement period;If the numbering that server judges to receive packet is equal to n1+T1-1, The then beginning using the next packet received as next measurement period;Circulated with this, calculate first in each cycle Up packet loss.
The statistics packet loss module, as shown in figure 5, also including:
Second definition unit, is additionally operable to server or client defines the statistic period T 2 of a packet;It is service Device often sends T2 packet, and client counts a packet loss;
Second numbered cell, it is additionally operable to server and transmitted packet is numbered, then sent out according to number order Give client;
Second recording unit, after the packet that server is sent is received for client, first judge the numbering of the packet; If the numbering that client receives the first packet is n2, the numbering n2 of the packet is write down;
Second computing unit, for when client judges that the numbering for receiving packet is more than or equal to n2+T2-1, carrying out The number of the packet received in the cycle is counted, and calculates the first up packet loss in the cycle;
Second computing unit, if being additionally operable to the numbering that client judges to receive packet is more than n2+T2-1, it will receive Beginning of the packet arrived as next measurement period;If the numbering that client judges to receive packet is equal to n2+T2-1, The then beginning using the next packet received as next measurement period;Circulated, calculated descending in each cycle with this Packet loss.
Generally, in order to judge more rapidly and more accurately other members in the network condition and video room of the client Network condition, it is described judge network condition device in, as shown in fig. 6, the judge module includes:
Setup unit, for setup parameter x, y, wherein 0 < x < y < 1;
First comparison unit, for by the described first up packet loss, descending packet loss, comparing, drawing with x, y respectively First comparing result, and judge according to first comparing result network condition of the client;
First comparison unit includes:
First judgment sub-unit, if being more than y for the described first up packet loss, judge the network condition of the client For difference;
Second judgment sub-unit, if it is less than or equal to y for the described first up packet loss, and descending packet loss is more than y, Then judge the network condition of the client to be poor;
3rd judgment sub-unit, if be less than or equal to y for the described first up packet loss, and descending packet loss be less than or Equal to x, then the network condition of the client is judged preferably;
4th judgment sub-unit, if it is less than or equal to y for the described first up packet loss, and descending packet loss is more than x And be less than or equal to y, then during the network condition for judging the client is.
Further, as shown in fig. 6, the judge module also includes:
Second comparison unit, for other up packet loss to be compared with x, y respectively, the second comparing result is drawn, and The network condition of the client of other members in video room is judged according to second comparing result;
Second comparison unit includes:
5th judgment sub-unit, if being more than y for other up packet loss, judge in video room with the up packet loss The network condition of the client of other members is poor corresponding to rate.
6th judgment sub-unit, if being less than or equal to x for other up packet loss, judge in video room and on this The network condition of the client of other members corresponding to row packet loss is preferably.
7th judgment sub-unit, if being more than x for other up packet loss and being less than or equal to y, judge video room During the network condition of the client of interior other members corresponding with the up packet loss is.
Further, as shown in fig. 6, the device for judging network condition also includes display module, for customer in response The display operation of end subscriber, shows the network-like of the client of other members in the network condition and video room of the client Condition.
It is described judge network condition device, wherein, it is described acquisition the first up packet loss, descending packet loss and other on Row packet loss, it is to obtain once each second.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but the former is more in many cases Good embodiment.Based on such understanding, what technical scheme substantially contributed to prior art in other words Part can be embodied in the form of software product, and the computer software product is stored in a storage medium, if including It is dry to instruct to cause terminal device (be mobile phone, personal computer, server, or network equipment etc.) to perform the present invention Method described in each embodiment.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should Depending on protection scope of the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment It is distributed in the device of embodiment, respective change can also be carried out and be disposed other than in one or more devices of the present embodiment.On Stating the module of embodiment can be integrated in one, and can also be deployed separately;A module is can be merged into, can also further be torn open It is divided into multiple submodule.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Disclosed above is only several specific embodiments of the present invention, and still, the present invention is not limited to this, any ability What the technical staff in domain can think change should all fall into protection scope of the present invention.

Claims (10)

  1. A kind of 1. method for judging network condition, it is characterised in that comprise the following steps:
    Obtain the first up packet loss, descending packet loss and other up packet loss;The first up packet loss is the client End uploaded videos flow to the packet loss of server end, and the descending packet loss is the client from the server end foradownloaded video The packet loss of the video flowing of other members in room, other described up packet loss are the clients of other members in video room Uploaded videos flow to the packet loss of the server end;The video room is that the client user is entered by the client Virtual video room;
    According to the described first up packet loss, descending packet loss and other up packet loss got, the client is judged The network condition of the client of other members in network condition and video room.
  2. 2. the method according to claim 1 for judging network condition, it is characterised in that the network for judging the client The network condition of the client of other members includes in situation and video room:
    Setup parameter x, y, wherein 0 < x < y < 1;
    By the described first up packet loss, descending packet loss, compared respectively with x, y, draw the first comparing result, and according to institute State the network condition that the first comparing result judges the client;
    It is described to judge that the network condition of the client includes according to first comparing result:
    If the first up packet loss is more than y, judge the network condition of the client to be poor;
    If the first up packet loss is less than or equal to y, and descending packet loss is more than y, then judges the network-like of the client Condition is poor;
    If the first up packet loss is less than or equal to y, and descending packet loss is less than or equal to x, then judges the client Network condition is preferably;
    If the first up packet loss is less than or equal to y, and descending packet loss is more than x and is less than or equal to y, then judges the visitor During the network condition at family end is.
  3. 3. the method according to claim 2 for judging network condition, it is characterised in that the network for judging the client The network condition of the client of other members also includes in situation and video room:
    Other up packet loss are compared with x, y respectively, draw the second comparing result, and sentence according to second comparing result The network condition of the client of other members in disconnected video room;
    It is described to judge that the network condition of the client of other members in video room includes according to second comparing result:
    If other up packet loss are more than y, the client of other members corresponding with the up packet loss in video room is judged The network condition at end is poor;
    If other up packet loss are less than or equal to x, other members corresponding with the up packet loss in video room are judged Client network condition preferably;
    If other up packet loss, which are more than, x and is less than or equal to y, judge in video room it is corresponding with the up packet loss its During the network condition of the client of his member is.
  4. 4. the method according to claim 1 for judging network condition, it is characterised in that also include:Customer in response end subscriber Display operation, show the network condition of the client of other members in the network condition and video room of the client.
  5. 5. the method according to claim 1 for judging network condition, it is characterised in that the first up packet loss of the acquisition Rate, descending packet loss and other up packet loss, it is to obtain once each second.
  6. A kind of 6. device for judging network condition, it is characterised in that including:
    Acquisition module, for obtaining the first up packet loss, descending packet loss and other up packet loss;Described first up loses Bag rate is the packet loss that the client uploaded videos flow to server end, and the descending packet loss is the client from the service The packet loss of the video flowing of other members in the foradownloaded video room of device end, other described up packet loss be in video room other The client uploaded videos of member flow to the packet loss of the server end;The video room is that the client user passes through this The virtual video room that client enters;
    Judge module, for according to the described first up packet loss, descending packet loss and other the up packet loss got, sentencing The network condition of the client of other members in the network condition and video room of the client of breaking.
  7. 7. the device according to claim 6 for judging network condition, it is characterised in that the judge module includes:
    Setup unit, for setup parameter x, y, wherein 0 < x < y < 1;
    First comparison unit, for by the described first up packet loss, descending packet loss, being compared respectively with x, y, drawing first Comparing result, and judge according to first comparing result network condition of the client;
    First comparison unit includes:
    First judgment sub-unit, if being more than y for the described first up packet loss, the network condition for judging the client is Difference;
    Second judgment sub-unit, if it is less than or equal to y for the described first up packet loss, and descending packet loss is more than y, then sentences The network condition for the client of breaking is poor;
    3rd judgment sub-unit, if it is less than or equal to y for the described first up packet loss, and descending packet loss is less than or equal to X, then judge the network condition of the client preferably;
    4th judgment sub-unit, if it is less than or equal to y for the described first up packet loss, and descending packet loss is more than x and small In or equal to y, then during the network condition for judging the client is.
  8. 8. the device according to claim 7 for judging network condition, it is characterised in that the judge module also includes:
    Second comparison unit, for other up packet loss to be compared with x, y respectively, draw the second comparing result, and according to Second comparing result judges the network condition of the client of other members in video room;
    Second comparison unit includes:
    5th judgment sub-unit, if being more than y for other up packet loss, judge in video room with the up packet loss pair The network condition of the client of other members answered is poor;
    6th judgment sub-unit, if being less than or equal to x for other up packet loss, judge up to lose with this in video room The network condition of the client of other members corresponding to bag rate is preferably;
    7th judgment sub-unit, x and be less than or equal to y if being more than for other up packet loss, judge in video room and During the network condition of the client of other members is corresponding to the up packet loss.
  9. 9. the device according to claim 6 for judging network condition, it is characterised in that also including display module, for ringing Answer the display of client user to operate, show the client of other members in the network condition and video room of the client Network condition.
  10. 10. the device according to claim 6 for judging network condition, it is characterised in that the first up packet loss of the acquisition Rate, descending packet loss and other up packet loss, it is to obtain once each second.
CN201710721518.8A 2017-08-22 2017-08-22 Method and device for judging network condition Active CN107733732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710721518.8A CN107733732B (en) 2017-08-22 2017-08-22 Method and device for judging network condition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710721518.8A CN107733732B (en) 2017-08-22 2017-08-22 Method and device for judging network condition

Publications (2)

Publication Number Publication Date
CN107733732A true CN107733732A (en) 2018-02-23
CN107733732B CN107733732B (en) 2021-03-05

Family

ID=61204700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710721518.8A Active CN107733732B (en) 2017-08-22 2017-08-22 Method and device for judging network condition

Country Status (1)

Country Link
CN (1) CN107733732B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110197447A (en) * 2019-04-17 2019-09-03 威比网络科技(上海)有限公司 Based on communication index online education method, apparatus, electronic equipment, storage medium
CN111669468A (en) * 2020-06-05 2020-09-15 平安科技(深圳)有限公司 Network state display method and device in call process, computer equipment and medium
CN112135119A (en) * 2020-09-11 2020-12-25 上海七牛信息技术有限公司 Method and system for automatically monitoring and alarming network condition in real-time audio and video communication

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105024868A (en) * 2014-04-17 2015-11-04 北京视联动力国际信息技术有限公司 Network quality detection method and network quality detection system for video Internet
CN105703977A (en) * 2016-04-29 2016-06-22 腾讯科技(深圳)有限公司 Audio/video quality monitoring method, device and system
CN106385374A (en) * 2016-08-17 2017-02-08 武汉精伦电气有限公司 Transmission control method and system of local area network transmitting terminal for relieving network congestion
US20170155870A1 (en) * 2014-07-04 2017-06-01 Telefonaktiebolaget Lm Ericsson (Publ) Priority of uplink streams in video switching
CN106888104A (en) * 2015-12-15 2017-06-23 杭州华为企业通信技术有限公司 A kind of the Internet telephone calls method, relevant device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105024868A (en) * 2014-04-17 2015-11-04 北京视联动力国际信息技术有限公司 Network quality detection method and network quality detection system for video Internet
US20170155870A1 (en) * 2014-07-04 2017-06-01 Telefonaktiebolaget Lm Ericsson (Publ) Priority of uplink streams in video switching
CN106888104A (en) * 2015-12-15 2017-06-23 杭州华为企业通信技术有限公司 A kind of the Internet telephone calls method, relevant device and system
CN105703977A (en) * 2016-04-29 2016-06-22 腾讯科技(深圳)有限公司 Audio/video quality monitoring method, device and system
CN106385374A (en) * 2016-08-17 2017-02-08 武汉精伦电气有限公司 Transmission control method and system of local area network transmitting terminal for relieving network congestion

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110197447A (en) * 2019-04-17 2019-09-03 威比网络科技(上海)有限公司 Based on communication index online education method, apparatus, electronic equipment, storage medium
CN110197447B (en) * 2019-04-17 2022-09-30 哈尔滨沥海佳源科技发展有限公司 Communication index based online education method and device, electronic equipment and storage medium
CN111669468A (en) * 2020-06-05 2020-09-15 平安科技(深圳)有限公司 Network state display method and device in call process, computer equipment and medium
WO2021139345A1 (en) * 2020-06-05 2021-07-15 平安科技(深圳)有限公司 Method and apparatus for displaying network state during call process, and computer device and medium
CN111669468B (en) * 2020-06-05 2021-10-29 平安科技(深圳)有限公司 Network state display method and device in call process, computer equipment and medium
CN112135119A (en) * 2020-09-11 2020-12-25 上海七牛信息技术有限公司 Method and system for automatically monitoring and alarming network condition in real-time audio and video communication

Also Published As

Publication number Publication date
CN107733732B (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN107733732A (en) A kind of method and device for judging network condition
CN104618195B (en) Bandwidth estimation method and apparatus
CN103533018B (en) Based on the method that dynamic network condition is TCP agent session allocation buffer
CN104396215B (en) For bandwidth allocation and the method and apparatus of estimation
CN108009028A (en) Message treatment method, device, equipment and computer-readable recording medium
CN104486243B (en) Data transmission method, equipment and system
CN105898541A (en) Method and device for reducing waiting time in multimedia system
CN109600610A (en) A kind of data-encoding scheme and terminal
CN106846065A (en) A kind of data processing method and device
CN102791045B (en) Mobile communication terminal and its automatically method of preferred host-host protocol
CN109120974A (en) A kind of method and device that audio-visual synchronization plays
CN103841462B (en) Top box of digital machine multi-screen plays the method and device of program
CN101854380A (en) Method for realizing cross-platform point-to-point (P2P) video chat
CN106605411A (en) Streaming video data in the graphics domain
CN106791679B (en) A kind of determination method and device of video transmission path
CN107295364A (en) Real-time streaming transport control method, control device for barrage video
WO2021139345A1 (en) Method and apparatus for displaying network state during call process, and computer device and medium
CN107147583A (en) A kind of intelligent assistance processing method and intelligent assistance processing wireless router
CN105828014B (en) A kind of audio/video transmission method and device
US20120051218A1 (en) Adaptive method and system of regulation of yellow traffic in a network
CN101378295A (en) Method for denoting network telephone talking quality
CN108540745A (en) Transmission method, transmitting terminal, receiving terminal and the Transmission system of high definition double fluid video
CN106507101A (en) A kind of video service quality evaluation methodology and device
CN107360389A (en) A kind of video communication method, device and terminal
CN104427383B (en) A kind of information processing method and electronic equipment

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180223

Assignee: Guiyang Longma Video Technology Co.,Ltd.

Assignor: GUIYANG LONGMASTER INFORMATION & TECHNOLOGY Co.,Ltd.

Contract record no.: X2022520000003

Denomination of invention: A method and device for judging network condition

Granted publication date: 20210305

License type: Common License

Record date: 20220302

Application publication date: 20180223

Assignee: GUIYANG SANJIU INTERNET MEDICAL Co.,Ltd.

Assignor: GUIYANG LONGMASTER INFORMATION & TECHNOLOGY Co.,Ltd.

Contract record no.: X2022520000002

Denomination of invention: A method and device for judging network condition

Granted publication date: 20210305

License type: Common License

Record date: 20220301

EE01 Entry into force of recordation of patent licensing contract