CN108965492B - Bullet screen link quality statistical method, storage medium, electronic equipment and system - Google Patents
Bullet screen link quality statistical method, storage medium, electronic equipment and system Download PDFInfo
- Publication number
- CN108965492B CN108965492B CN201810688319.6A CN201810688319A CN108965492B CN 108965492 B CN108965492 B CN 108965492B CN 201810688319 A CN201810688319 A CN 201810688319A CN 108965492 B CN108965492 B CN 108965492B
- Authority
- CN
- China
- Prior art keywords
- bullet screen
- client
- bullet
- link quality
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4314—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method, a storage medium, electronic equipment and a system for bullet screen link quality statistics, which relate to the technical field of information processing, and the method comprises the following steps of S1: acquiring a domain name corresponding to a bullet screen server issued by a gateway server, and analyzing the domain name to obtain a list of IP addresses; s2: the client links the IP addresses one by one until the bullet screen server corresponding to the domain name is successfully linked, and records the response time when the linking is successful; s3: collecting link quality information of a bullet screen server, wherein the link quality information comprises: and when the bullet screen is successfully sent, the bullet screen packet drop rate is increased, wherein the time consumed for successfully sending the bullet screen is the time consumed for sending the bullet screen from the client to receive the bullet screen sent by the client from the successfully linked IP address. The method, the storage medium, the electronic device and the system for bullet screen link quality statistics can better count and analyze bullet screen link quality.
Description
Technical Field
The invention relates to the technical field of information processing, in particular to a method, a storage medium, electronic equipment and a system for bullet screen link quality statistics.
Background
Currently, with the development of live broadcasting, live broadcasting applications are more and more popular, and meanwhile, more and more people watch live broadcasting through mobile equipment.
There are a lot of barrages in the live broadcast, which are watched and interacted by the audience, and the barrage is one of the friendly interaction modes between the audience and the main broadcast. Therefore, when the audience can watch the barrage, the barrage is not delayed and the received barrage is not lost, which is particularly important for live broadcasting. In addition, after the live broadcast is opened, the barrage can be displayed before the live broadcast picture is displayed, or the barrage can be synchronously displayed, so that the barrage is a better experience for the audience.
However, the mobile terminal is located in a geographical and state uncertainty, which results in an unstable network. That is, the mobile terminal often has a condition that the linked barrage is bad or even the linked barrage is not on, and the maintenance personnel needs to optimize the link condition, so a method is urgently needed to count the link quality of the barrage and the link quality of the barrage.
In addition, in the prior art, there is no method for evaluating the bullet screen link quality, and after some settings are performed on the server by a maintainer, the maintainer cannot judge whether the optimized bullet screen quality is good or bad, so that a method for quantifying the quality of the linked bullet screen is urgently needed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a bullet screen link quality statistical method which can better perform statistics and analysis on bullet screen link quality.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
a method for shot-screen link quality statistics comprises the following steps:
s1: acquiring a domain name corresponding to a bullet screen server issued by a gateway server, and analyzing the domain name to obtain a list of IP addresses;
s2: the client links the IP addresses one by one according to a preset sequence until the bullet screen server corresponding to the domain name is successfully linked, and records the response time when the linking is successful;
s3: collecting link quality information of a bullet screen server, wherein the link quality information comprises: and when the bullet screen is successfully sent, the bullet screen packet drop rate is increased, wherein the time consumed for successfully sending the bullet screen is the time consumed for sending the bullet screen from the client to receive the bullet screen sent by the client from the successfully linked IP address.
On the basis of the above technical solution, before step S1, the method further includes the following steps:
a1: acquiring an IP address list through an HTTP request;
a2: the client links the IP addresses one by one according to a preset sequence until a gateway server corresponding to the HTTP request is successfully linked, and records response time for successfully linking the IP addresses;
a3: the gateway server acquires and verifies whether the login request of the client is legal or not, if the login request is legal, login is allowed, the domain name of the bullet screen server is issued, and if the login request is illegal, login is not allowed.
On the basis of the technical scheme, the preset sequence is the sequence from near to far of the network addresses of the bullet screen server from the client.
On the basis of the above technical solution, step S3 includes the following specific steps:
s301: the client sends the barrage data and records the sending time;
s302: in a preset time interval, the client acquires and matches the bullet screen transmitted by the bullet screen server in real time, whether bullet screen data sent by an account of the client exists is matched, if yes, the current time is recorded, the time consumed for successfully sending the bullet screen is obtained by subtracting the sending time from the current time, if not, the matching is continued until the preset time interval, and the step S303 is carried out;
s303: recording the matching timeout times, judging whether the matching timeout times exceed the preset times, if not, returning to the step S301, if so, recording the current IP address as the link failure from the successful link, and returning to the step S2.
On the basis of the above technical solution, step S3 includes the following specific steps:
s311: the client sends out a preset number of appointed barrages;
s312; the method comprises the steps that a client side obtains bullet screens transmitted by a bullet screen server in real time, and the number of the specified bullet screens in the bullet screens is matched and counted to obtain the number of successful bullet screens;
s313: and dividing the successful number by the preset number to obtain the bullet screen package dropping rate.
On the basis of the above technical solution, after step S4, the method further includes the following steps:
b1: the client uploads the link quality information to a live broadcast platform;
b2: the live broadcast platform sequences the link quality of the barrages according to a preset calculation method;
b3: and the live broadcast platform reports 5 IP addresses with the worst link quality and IP addresses which cannot be linked.
The present invention also provides a storage medium having stored thereon a computer program: the computer program realizes the method of the technical scheme when being executed by a processor.
The present invention also provides an electronic device comprising a memory and a processor, the memory having stored thereon a computer program running on the processor: the processor implements the method of the above technical solution when executing the computer program.
The invention also provides a system for bullet screen link quality statistics, which comprises the following steps:
the analysis module is used for acquiring a domain name corresponding to the bullet screen server issued by the gateway server and analyzing the domain name to obtain a list of IP addresses;
the link module is used for linking the IP addresses one by one according to a preset sequence until the bullet screen server corresponding to the domain name is successfully linked, and recording the response time when the linking is successful;
the detection module is used for collecting the link quality information of the bullet screen server, and the link quality information comprises: and when the bullet screen is successfully sent, the bullet screen packet drop rate is increased, wherein the time consumed for successfully sending the bullet screen is the time consumed for sending the bullet screen from the client to receive the bullet screen sent by the client from the successfully linked IP address.
On the basis of the above technical solution, the system for bullet screen link quality statistics further includes:
the live broadcast linking module is used for acquiring an IP address list through the HTTP request, and the client links the IP addresses one by one according to a preset sequence until the gateway server corresponding to the HTTP request is successfully linked, and records the response time of successfully linking the IP addresses;
and the verification module is used for verifying whether the login request is legal or not, if the login request is legal, the login is allowed, and the domain name of the bullet screen server is issued, and if the login request is illegal, the login is not allowed.
Compared with the prior art, the invention has the advantages that:
(1) according to the method, the storage medium, the electronic equipment and the system for shot screen link quality statistics, each IP address is linked, the time required by successful linking is counted, the packet drop rate and the time consumed by successful sending of the shot screen are counted after successful linking, the shot screen link quality can be better counted, and maintenance personnel are assisted to provide better shot screen receiving and sending experience for users.
(2) The method, the storage medium, the electronic device and the system for calculating the bullet screen link quality firstly link the gateway server, determine the address of the bullet screen needing to be received, avoid receiving the wrong bullet screen, further calculate the quality of the wrong bullet screen, simultaneously influence the synchronization problem of the bullet screen and live broadcast by the link quality of the gateway server, and better reflect the bullet screen by adding the gateway link quality into the calculation.
(3) According to the method, the storage medium, the electronic equipment and the system for shot-screen link quality statistics, the link is performed from near to far according to the distance between the shot-screen server and the client, so that the client can confirm the IP address which can be successfully linked at the highest speed, and a user can have better experience.
(4) The method, the storage medium, the electronic equipment and the system for bullet screen link quality statistics are used for carrying out statistics on the successful sending time of the bullet screen and the packet drop rate of the bullet screen, and the link quality of the bullet screen can be directly presented by specific numerical values.
(5) The method, the storage medium, the electronic equipment and the system for bullet screen link quality statistics upload the statistical results and report the statistical results after sequencing, so that positions needing to be overhauled by maintainers can be well informed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings corresponding to the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method for bullet screen link quality statistics according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an embodiment of a bullet screen link quality statistics system according to the present invention.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present invention provides a method for bullet screen link quality statistics, where bullet screen link quality can be confirmed by linking a bullet screen server and collecting link quality information of the bullet screen server, and the method includes the following steps:
s1: and acquiring a domain name corresponding to the bullet screen server issued by the gateway server, and analyzing the domain name to obtain an IP address list. When a user watches the live broadcast by using the client, if the bullet screen needs to be acquired, bullet screen information needs to be acquired from the bullet screen server, so that an IP address is needed, and a link is tried to be established with the bullet screen server through the IP address.
Specifically, after linking a gateway server related to live broadcast, a client may obtain a domain name corresponding to a bullet screen server from the gateway server, where the domain name generally corresponds to a list of IP addresses in a network environment, that is, after analyzing the domain name, a plurality of IP addresses may be obtained for the client to link.
Specifically, after a user logs in a certain live broadcast platform to watch live broadcast, in order to ensure the bullet screen experience of the user, the client receives a domain name issued by the gateway server, logs in and analyzes the domain name to link the bullet screen server to obtain the bullet screen, wherein the domain name issued by the gateway server may include a plurality of IP addresses for the client to try to link.
S2: and the client links the IP addresses one by one according to a preset sequence until the bullet screen server corresponding to the domain name is successfully linked, and records the response time when the linking is successful. And the client can link the bullet screen server after obtaining the IP address.
Specifically, after the client resolves the domain name of step S1 to obtain the list of IP addresses,
the IP address can be tried to be linked, and the response time of a successful link is recorded when the bullet screen server is linked, that is, the time from the client sending a link request to the bullet screen server returning the successful link. After the user acquires the live video by linking the gateway server, the user experience is influenced by the speed of acquiring the bullet screen: if the user opens the live broadcast at the client and watches the live broadcast, the barrage can be loaded immediately, namely the client can be linked with a barrage server immediately, and the user experience is better; and if the user is opening the live broadcast and watching the live broadcast, the barrage needs to wait for a period of time to appear, namely the response time of the client linked barrage server is longer, and the user experience is relatively worse. The quality of the bullet screen link can be reflected from the side through the response time of the bullet screen server, and meanwhile the experience of a user using the client can also be reflected.
For example, the client a obtains A, B two IP addresses after resolving the domain name, the preset link sequence is also A, B, the client a first links the a IP address and records the link time a1, if the barrage server of the a IP address replies to the successful link and replies to the time a2, the corresponding time of the successful link AIP address is recorded as a2-a1, if the AIP address exceeds the preset link time of the system and still does not correspond, the client a continues to link the B IP address and records the link time B1, if the barrage server of the B IP address replies to the successful link and replies to the time B2, the corresponding time of the successful link AIP address is recorded as B2-B1.
Furthermore, besides recording the response time of successfully linking the barrage server, the client also records the IP address of the link failure and feeds the IP address back to the live broadcast platform. The client feeds back the address of the unlinked IP, and can help maintenance personnel who are straight to find the problem bullet screen server so as to overhaul or replace the problem bullet screen server.
S3: collecting link quality information of a bullet screen server, wherein the link quality information comprises: and when the bullet screen is successfully sent, the bullet screen packet drop rate is increased, wherein the time consumed for successfully sending the bullet screen is the time consumed for sending the large screen from the client to receive the bullet screen sent by the client from the successfully linked IP address. After the client finishes linking the bullet screen server, the link quality of the bullet screen server can be tested by sending data or the bullet screen through the established link.
Specifically, when the client needs to test that the client sends the bullet screen, the bullet screen is time-consuming, and the probability that the bullet screen server receives and sends the failed bullet screen is obtained, namely, the packet drop rate of the bullet screen. The bullet screen is consuming time and represents that the user sends and acquires the bullet screen when watching the live broadcast: if the client sends the barrage aiming at the current live broadcast picture when watching the live broadcast, and the client displays the barrage in real time, the client can participate in the live broadcast in real time from multiple angles, and the user experience is good; if the client side sends the barrage aiming at the current live broadcast picture when watching the live broadcast, the client side does not display the barrage at a later time, and the user cannot participate in the live broadcast immediately, so that the experience is poor.
Preferably, before step S1, the method further includes the following steps:
a1: the list of IP addresses is obtained by an HTTP request. The client needs to link the live gateway server before linking the bullet screen server. And (3) carrying out HTTP request through the live website, analyzing to obtain an IP address list, and if a live platform is logged in, sending an HTTP request through a certain website www.
A2: and the client links the IP addresses one by one according to a preset sequence until the gateway server corresponding to the HTTP request is successfully linked, and records the response time of successfully linking the IP addresses. Before a user uses a client to obtain a bullet screen, the user preferentially enters a live broadcast website to obtain a live broadcast video stream. If the client plays the video and the bullet screen does not appear late, the user experience is influenced, and the quality of the bullet screen is poor; similarly, if the client sees the barrage and the video does not appear late, the user experience is also influenced, the barrage appears too fast, the quality of the barrage link is better than the link quality of the gateway server, and the user experience is also influenced.
A3: the gateway server acquires and verifies whether the login request of the client is legal or not, if the login request is legal, login is allowed, the domain name of the bullet screen server is issued, and if the login request is illegal, login is not allowed. In order to prevent an illegal user from logging in the server, the user who completes the link needs to be verified, and the client who passes the verification can issue the bullet screen server.
Preferably, the preset sequence in step S2 is a sequence from the bullet screen server website to the client. The client links the bullet screen server and verifies the quality of bullet screen links, but if the links are preferentially from far to near or in other sequences, the response time for the user to be able to view the bullet screen will probably be longer. The purpose or the original intention of verifying the bullet screen link quality improves user 'S viewing experience, and this kind of link order is contradictory with this purpose or original intention, therefore, preferably according to the order from near to far away from the client for step S2 can effectively record the response speed of bullet screen server, can also guarantee user' S viewing experience.
Further, step S3 includes the following specific steps:
s301: and the client sends the barrage data and records the sending time. If the client only obtains the bullet screen from the bullet screen server, the client only can obtain the receiving time of the bullet screen, the sending time of the bullet screen is difficult to verify, and further the total time required by the bullet screen from sending to displaying is obtained.
S302: in a preset time interval, the client acquires and matches the bullet screen transmitted by the bullet screen server in real time, whether bullet screen data sent by the client account exists is matched, if yes, the current time is recorded, the current time is used for subtracting the sending time to obtain consumed time for successfully sending the bullet screen, if not, the matching is continued until the preset time interval, and the step S303 is carried out.
The bullet screen data are sent to the bullet screen server from the client side and then forwarded back to the client side by the bullet screen server, and the total time of the bullet screen data in one round-trip transmission between the client side and the server can be intuitively reflected, namely the transmission speed and the time reflect the quality of bullet screen link.
It should be noted that, the client sends the bullet screen data to the bullet screen server, and the bullet screen server sends the received bullet screen data to all the clients linked to the client, so that the client sending the bullet screen data can receive the bullet screen data sent by other clients besides receiving the bullet screen data sent by the client, and the bullet screen data may be the same. Therefore, after receiving the same bullet screen data sent by the bullet screen server, the client needs to further verify whether the bullet screen data is sent by the client, if so, the current time is recorded, and if not, the bullet screen data sent by the client is continuously matched.
Furthermore, the client needs to preset time limit when sending the bullet screen data and matching the bullet screen data. If the time limit is not preset, the client cannot match the bullet screen data sent by the client, the bullet screen time consumption is infinite, and the actual situation may be that the bullet screen data is lost and needs to be sent again for matching. Therefore, after the time interval is preset, the client can be better helped to more stably and quickly acquire the bullet screen time consumption.
S303: recording the matching timeout times, judging whether the matching timeout times exceed the preset times, if so, returning to the step S301, if so, recording the current IP address as a link failure from a successful link, and returning to the step S2.
The link between the client and the bullet screen server may not be stable, that is, after the client successfully links the bullet screen server, bullet screen data cannot be sent back to the client due to crash, maintenance and the like of the bullet screen server. And if the client only continuously sends the bullet screen data after the client successfully links the bullet screen server, the time consumed by the bullet screen cannot be obtained. After the matching times are set, the client side matches the times, namely, the client side judges that the link is lost, and the link is re-linked, so that the verification stability can be ensured.
Detailed method for integrating step S3
Further, step S3 further includes the following specific steps:
s311: the client sends out appointed barrages with preset numbers. Except the quality that single barrage was sent, live platform still need consider the quality of a plurality of barrages transmission, consequently, the customer end sends a plurality of appointed barrages to barrage server at first, and its figure can be preset by the maintainer of live platform.
S312; the client side obtains the bullet screen transmitted by the bullet screen server in real time, the number of the specified bullet screens in the bullet screen is matched and counted to obtain the number of success, and the number of failure of sending the bullet screen is obtained by subtracting the number of success from the number of success in the preset bullet screen. Considering the quality of bullet screen transmission, namely the quantity of bullet screen servers which are required to obtain achievements or fail transmission of bullet screens, the invention considers the link quality of bullet screens according to the bullet screen package dropping rate, and therefore, the quantity of bullet screen transmission failures is required to be obtained.
S313: and dividing the failure number by the preset number to obtain the bullet screen package drop rate. The number of the used failures is in the preset number, namely the bullet screen failure rate is also the bullet screen package falling rate, and the more the preset number is preferably selected, the more the package falling rate is accurate.
The client sends a plurality of bullet screen data, and the bullet screen server forwards the client, if the bullet screen server has a packet drop phenomenon, data loss or bullet screen defect can occur in the plurality of bullet screen data. And the number of the bullet screens of the dropped packages, namely the number of the bullet screens which fail to be sent is equal to the total number (preset number) of the bullet screens minus the number of the bullet screens which are successfully received, and then the number which fails to be sent is divided by the total number of the bullet screens to obtain the rate of the dropped packages.
It should be noted that, the specified bullet screen is a specific bullet screen that can be identified by the client and is not confused with the special bullet screen sent by the user, preferably, the specified bullet screen is a string of special character strings or codes, and when the client sends out a special character string and returns by the router, the client can identify the special bullet screen and is not confused with other bullet screens returned by the router.
Preferably, the following steps are further included after step S4:
b1: and the client uploads the link quality information to the live broadcast platform. Link quality information shows the good or bad degree of linking of barrage, provides the index of maintenance for maintainer, makes it know specific action or set up after, barrage link quality is whether to obtain revising or worsen to carry out next step, consequently, need the client to link quality information upload.
B2: and the live broadcast platform sequences the link quality of the barrages according to a preset calculation method.
Except that the information of the link quality is informed to the maintainers, the live broadcast platform can also sequence the link quality according to the relatively important index of the live broadcast platform through a preset algorithm, so that managers and maintainers can conveniently check the link quality level of each link on the current live broadcast platform.
It should be noted that the preset algorithm described in step B2 is a calculation method designed for the live broadcast platform, and calculates a specific numerical indicator by using the link quality information as a parameter. Through setting up the weight, the mode that will live the heavier index setting of platform is high weight calculates, also can be according to the mode of taking up the ratio, and it is more to set up the heavier index of live platform and take up the ratio, then calculates as long as can calculate the concrete numerical value of linking quality for it can sort.
B3: and the live broadcast platform reports 5 IP addresses with the worst link quality and IP addresses which cannot be linked. In addition to the barrage link being maintained by the maintainer, the live broadcast platform can report the 5 IP addresses with the worst quality and the IP addresses that cannot be linked through the sorting in step B2. The maintainers of the live broadcast platform can know that other urgent links except the link which is maintained at present can also sequence the work tasks of the maintainers, so that the maintainers can better see, experience and struggle for users.
In addition, corresponding to the method for bullet screen link quality statistics, the invention further provides a storage medium, wherein a computer program is stored on the storage medium, and the computer program realizes the steps of the embodiments when being executed by a processor. The storage medium includes various media capable of storing program codes, such as a usb disk, a removable hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk, or an optical disk.
In addition, corresponding to the method for bullet screen link quality statistics, the invention further provides an electronic device, where the electronic device stores a computer program, and the computer program is executed by a processor to implement the steps of the above embodiments. It should be noted that the electronic device includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the computer program to implement the steady moving terminal display method of the foregoing embodiment.
Referring to fig. 2, the system for bullet screen link quality statistics provided by the present invention includes an analysis module, a link module, and an inspection module.
The analysis module is used for acquiring a domain name corresponding to the bullet screen server issued by the gateway server and analyzing the domain name to obtain a list of IP addresses;
and the linking module is used for linking the IP addresses one by one according to a preset sequence until the bullet screen server corresponding to the domain name is successfully linked and recording the response time when the linking is successful. The quality of the bullet screen link can be reflected from the side through the response time of the bullet screen server, and meanwhile the experience of a user using the client can also be reflected.
Furthermore, besides recording the response time of successfully linking the bullet screen server, the linking module also records the IP address of the link failure and feeds the IP address back to the live broadcast platform. The link module feeds back the address of the IP which cannot be linked, and can help maintenance personnel of the live broadcast platform to find the problem bullet screen server so as to overhaul or replace the problem bullet screen server.
The detection module is used for collecting the link quality information of the bullet screen server, and the link quality information comprises: and when the bullet screen is successfully sent, the bullet screen packet drop rate is increased, wherein the time consumed for successfully sending the bullet screen is the time consumed for sending the bullet screen from the client to receive the bullet screen sent by the client from the successfully linked IP address. After the link module completes the link to the bullet screen server, the detection module can test the link quality of the bullet screen server by sending data or the bullet screen through the established link.
Preferably, the system for bullet screen link quality statistics further comprises a live broadcast link module and a verification module.
And the live broadcast link module is used for acquiring an IP address list through the HTTP request, linking the IP addresses one by one according to a preset sequence until the gateway server corresponding to the HTTP request is successfully linked, and recording the response time of successfully linking the IP addresses.
And the verification module is used for verifying whether the login request is legal or not, if the login request is legal, the login is allowed, and the domain name of the bullet screen server is issued, and if the login request is illegal, the login is not allowed.
Preferably, the detection module further comprises a first sending submodule, a first receiving submodule and a timeout submodule.
The first sending submodule is used for sending the bullet screen data and recording sending time.
The first receiving submodule is used for acquiring and matching the bullet screen transmitted by the bullet screen server in real time by the client within a preset time interval, matching whether bullet screen data transmitted by an account of the client exists or not, recording the current time if the bullet screen data exists, subtracting the transmission time from the current time to obtain consumed time for successfully transmitting the bullet screen, and continuing matching until the preset time interval and calling the timeout submodule if the bullet screen data does not exist.
The timeout submodule is used for recording matching timeout times and judging whether the matching timeout times exceed a preset time, if not, the definition sending submodule is called, and if so, the current IP address is recorded as link failure from successful link, and the link module is called.
Furthermore, the detection module further comprises a second sending submodule, a second receiving submodule and a calculating submodule.
The second sending submodule is used for the client to send the appointed barrages with the preset number.
And the second receiving submodule is used for the client to obtain the bullet screens transmitted by the bullet screen server in real time, matching and counting the number of the specified bullet screens in the bullet screens to obtain the number of success, and subtracting the number of success from the preset number to obtain the number of failure of sending the bullet screens.
The calculation submodule is used for acquiring the preset number from the second sending submodule and acquiring the failure number from the second receiving submodule, and the failure number is divided by the preset number to obtain the bullet screen packet drop rate.
Preferably, the system for bullet screen link quality statistics further comprises an uploading module, a sorting module and a reporting module.
The uploading module is used for uploading the link quality information to the live broadcast platform.
The sorting module is used for sorting the link quality of the bullet screens according to a preset calculation method.
And the reporting module is used for reporting the 5 IP addresses with the worst link quality and the IP addresses which cannot be linked.
Various modifications and specific examples in the foregoing method embodiments are also applicable to the system of the present embodiment, and the detailed description of the method is clear to those skilled in the art, so that the detailed description is omitted here for the sake of brevity.
Generally speaking, according to the method, the storage medium, the electronic device and the system for bullet screen link quality statistics provided by the embodiment of the invention, through linking the bullet screen server and recording the consumed time length, the consumed time for sending the bullet screen and the bullet screen dropping rate, compared with the conventional technology and the like, the link numerical value of the bullet screen server can be linked through the visual display detection client, the bullet screen link quality before or after maintenance can be better fed back to the maintenance personnel, and the maintenance personnel can more efficiently and visually see whether the bullet screen link quality of the bullet screen server is improved or not.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (5)
1. A method for shot screen link quality statistics is characterized by comprising the following steps:
s1: acquiring a domain name corresponding to a bullet screen server issued by a gateway server, and analyzing the domain name to obtain a list of IP addresses;
s2: linking the IP addresses one by one according to a preset sequence until the bullet screen server corresponding to the domain name is successfully linked, and recording the response time when the linking is successful;
s3: collecting link quality information of a bullet screen server, wherein the link quality information comprises: the time spent on successfully sending the bullet screen is the time spent on sending the bullet screen from the client to the client receiving the bullet screen sent by the client from the successfully linked IP address;
the method further comprises the following steps before the step S1:
a1: acquiring an IP address list through an HTTP request;
a2: linking the IP addresses one by one according to a preset sequence until a gateway server corresponding to the HTTP request is successfully linked, and recording response time for successfully linking the IP addresses;
a3: checking whether a login request of a client is legal or not from a gateway server, logging in if the login request is legal, and acquiring a domain name of a bullet screen server;
step S3 includes the following specific steps:
s301: sending the bullet screen data and recording the sending time;
s302: in a preset time interval, the client acquires and matches the bullet screen transmitted by the bullet screen server in real time, whether bullet screen data sent by an account of the client exists is matched, if yes, the current time is recorded, the time consumed for successfully sending the bullet screen is obtained by subtracting the sending time from the current time, if not, the matching is continued until the preset time interval, and the step S303 is carried out;
s303: recording matching timeout times, judging whether the matching timeout times exceed preset times, if not, returning to the step S301, if so, recording the current IP address as a link failure from a successful link, and returning to the step S2;
step S3 includes the following specific steps:
s311: the client sends out a preset number of appointed barrages;
s312: the method comprises the steps that a client side obtains bullet screens transmitted by a bullet screen server in real time, the number of the specified bullet screens in the bullet screens is matched and counted to obtain the number of successful bullet screens, and the number of failure of sending the bullet screens is obtained by subtracting the number of successful bullet screens from the preset number;
s313: dividing the number of failures by a preset number to obtain a bullet screen package drop rate;
the following steps are also included after step S4:
b1: the client uploads the link quality information to a live broadcast platform;
b2: the live broadcast platform sequences the link quality of the barrages according to a preset calculation method;
b3: and the live broadcast platform reports 5 IP addresses with the worst link quality and IP addresses which cannot be linked.
2. The method of claim 1, wherein the bullet screen link quality statistics comprise: the preset sequence is the sequence from near to far of the network address of the bullet screen server from the client.
3. A storage medium having a computer program stored thereon, characterized in that: which computer program, when being executed by a processor, carries out the method of claim 1 or 2.
4. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that runs on the processor, characterized in that: the processor, when executing the computer program, implements the method of claim 1 or 2.
5. A system for bullet screen link quality statistics, comprising:
the analysis module is used for acquiring a domain name corresponding to the bullet screen server issued by the gateway server and analyzing the domain name to obtain a list of IP addresses;
the link module is used for linking the IP addresses one by one according to a preset sequence until the bullet screen server corresponding to the domain name is successfully linked, and recording the response time when the linking is successful;
the detection module is used for collecting the link quality information of the bullet screen server, and the link quality information comprises: the time spent on successfully sending the bullet screen is the time spent on sending the bullet screen from the client to the client receiving the bullet screen sent by the client from the successfully linked IP address;
the live broadcast linking module is used for acquiring an IP address list through the HTTP request, linking the IP addresses one by one according to a preset sequence until a gateway server corresponding to the HTTP request is successfully linked, and recording response time for successfully linking the IP addresses;
a reporting module for
Uploading link quality information to a live broadcast platform through a client;
sequencing the link quality of the bullet screens according to a preset calculation method;
reporting the 5 IP addresses with the worst link quality and the IP addresses which can not be linked
The verification module is used for verifying whether the login request is legal or not, if the login request is legal, the login is allowed, the domain name of the bullet screen server is issued, and if the login request is illegal, the login is not allowed;
the detection module is specifically configured to:
sending the bullet screen data and recording the sending time;
in a preset time interval, the client acquires and matches the bullet screen transmitted by the bullet screen server in real time, whether bullet screen data sent by an account of the client exists is matched, if yes, the current time is recorded, the time consumed for successfully sending the bullet screen is obtained by subtracting the sending time from the current time, if not, the matching is continued until the preset time interval, and the step S303 is carried out;
recording matching timeout times, judging whether the matching timeout times exceed preset times, if not, returning to the step S301, if so, recording the current IP address as a link failure from a successful link, and returning to the step S2;
the client sends out a preset number of appointed barrages;
s312: the method comprises the steps that a client side obtains bullet screens transmitted by a bullet screen server in real time, the number of the specified bullet screens in the bullet screens is matched and counted to obtain the number of successful bullet screens, and the number of failure of sending the bullet screens is obtained by subtracting the number of successful bullet screens from the preset number;
s313: and dividing the failure number by the preset number to obtain the bullet screen package drop rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810688319.6A CN108965492B (en) | 2018-06-28 | 2018-06-28 | Bullet screen link quality statistical method, storage medium, electronic equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810688319.6A CN108965492B (en) | 2018-06-28 | 2018-06-28 | Bullet screen link quality statistical method, storage medium, electronic equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108965492A CN108965492A (en) | 2018-12-07 |
CN108965492B true CN108965492B (en) | 2021-11-26 |
Family
ID=64487681
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810688319.6A Active CN108965492B (en) | 2018-06-28 | 2018-06-28 | Bullet screen link quality statistical method, storage medium, electronic equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965492B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113115059B (en) * | 2021-03-29 | 2022-07-05 | 武汉斗鱼鱼乐网络科技有限公司 | Bullet screen connection monitoring method, device, equipment and storage medium |
CN114245198B (en) * | 2021-12-17 | 2024-02-06 | 北京达佳互联信息技术有限公司 | Method and device for processing media content, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105871977A (en) * | 2015-11-27 | 2016-08-17 | 乐视体育文化产业发展(北京)有限公司 | Long connection establishment method and system, and devices |
CN105939485A (en) * | 2016-06-27 | 2016-09-14 | 武汉斗鱼网络科技有限公司 | System and method for monitoring bullet screen service availability based on user bullet screen behaviors |
CN106330607A (en) * | 2016-08-25 | 2017-01-11 | 北京润通丰华科技有限公司 | Method and system for estimating TCP connection application quality based on one-way monitoring log |
CN107690078A (en) * | 2017-09-28 | 2018-02-13 | 腾讯科技(深圳)有限公司 | Barrage method for information display, provide method and equipment |
-
2018
- 2018-06-28 CN CN201810688319.6A patent/CN108965492B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105871977A (en) * | 2015-11-27 | 2016-08-17 | 乐视体育文化产业发展(北京)有限公司 | Long connection establishment method and system, and devices |
CN105939485A (en) * | 2016-06-27 | 2016-09-14 | 武汉斗鱼网络科技有限公司 | System and method for monitoring bullet screen service availability based on user bullet screen behaviors |
CN106330607A (en) * | 2016-08-25 | 2017-01-11 | 北京润通丰华科技有限公司 | Method and system for estimating TCP connection application quality based on one-way monitoring log |
CN107690078A (en) * | 2017-09-28 | 2018-02-13 | 腾讯科技(深圳)有限公司 | Barrage method for information display, provide method and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108965492A (en) | 2018-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107040816B (en) | Client application operation abnormity analysis method and device | |
CN110460732B (en) | Network quality monitoring method and device and communication server | |
CN108270738B (en) | Video processing method and network equipment | |
CN109995614B (en) | Alpha testing method and device | |
CN106992974B (en) | Live video information monitoring method, device and equipment | |
CN111506489A (en) | Test method, system, device, server and storage medium | |
CN108965492B (en) | Bullet screen link quality statistical method, storage medium, electronic equipment and system | |
CN104735473A (en) | Video stream playing detection method and device | |
CN105721184A (en) | Network link quality monitoring method and apparatus | |
CN110740065B (en) | Method, device and system for identifying degradation fault point | |
CN108600790A (en) | A kind of detection method and device of interim card failure | |
CN105872611A (en) | Pressure-bearing test method and device of cloud live broadcast system | |
CN105912439B (en) | A kind of method, apparatus and system of computer monitoring | |
CN111193945A (en) | Advertisement playing processing method and device | |
CN114900662A (en) | Method, system, device and medium for determining video stream transmission quality information | |
CN110266741B (en) | Method and device for automatically scheduling client service in content distribution network | |
US9658932B2 (en) | Lightweight functional testing | |
CN105872735A (en) | Information processing method and electronic equipment | |
CN112463572B (en) | Cross-border multi-service dial testing software testing system and method thereof | |
EP3062228A1 (en) | Lightweight functional testing | |
CN110134558A (en) | A kind of detection method and device of server | |
CN112769643B (en) | Resource scheduling method and device, electronic equipment and storage medium | |
CN112118156B (en) | Filtering method and device for Ethernet protocol test | |
CN109921937B (en) | Testing system and method for automatically verifying long-time task of flow protocol | |
CN113923443A (en) | Network video recorder testing method and device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |