CN113556587B - Video playing link route optimization method and device based on android terminal - Google Patents

Video playing link route optimization method and device based on android terminal Download PDF

Info

Publication number
CN113556587B
CN113556587B CN202111095802.1A CN202111095802A CN113556587B CN 113556587 B CN113556587 B CN 113556587B CN 202111095802 A CN202111095802 A CN 202111095802A CN 113556587 B CN113556587 B CN 113556587B
Authority
CN
China
Prior art keywords
video
playing
node
equipment
video content
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
Application number
CN202111095802.1A
Other languages
Chinese (zh)
Other versions
CN113556587A (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.)
Yifang Information Technology Co ltd
Original Assignee
Guangzhou Easefun Information 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 Guangzhou Easefun Information Technology Co ltd filed Critical Guangzhou Easefun Information Technology Co ltd
Priority to CN202111095802.1A priority Critical patent/CN113556587B/en
Publication of CN113556587A publication Critical patent/CN113556587A/en
Application granted granted Critical
Publication of CN113556587B publication Critical patent/CN113556587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The invention provides a video playing link route optimization method and device based on an android terminal, wherein the method comprises the following steps: establishing interaction with a DNS server corresponding to the video through an Http protocol; establishing a background updating task, and updating node information linked with the video stream in real time; selecting the optimal playing node information, and continuously monitoring the playing state of the video; and when the video content acquisition abnormality is monitored, preferentially connecting the current optimal playing node by adopting a CDN node switching mode. The device uses the method. The problem that the data stream is easily hijacked is solved, playing safety is improved, meanwhile, the problem of video playing failure is quickly and stably responded by using a flexible automatic node switching scheme, video stream information is switched under the condition that a user does not sense the video stream information, and using experience of the user is improved.

Description

Video playing link route optimization method and device based on android terminal
Technical Field
The invention relates to the technical field of networks, in particular to a video playing link route optimization method and device based on an android terminal.
Background
On a plurality of education training and learning platforms, students can learn on demand through a video player developed based on an android system. Since videos of training institutions and learning platforms generally need to be purchased for payment before being played, students pay attention to whether the videos can be played normally besides paying attention to the content of the videos, and therefore selection of a video playing link and improvement of a playing abnormity processing mechanism of a video player are particularly important.
The existing video playback link scheme has the following disadvantages:
1. the playing security is poor, and the data stream information is easy to hijack;
2. streaming data node instability (not the optimal node) results in video streaming not being smooth;
3. the response when the video stream playing fails is not flexible, and usually, a user needs to manually adjust the playing code rate or switch the playing line, so that the optimal playing node cannot be intelligently judged, and the use experience of the user is influenced.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a video playing link route optimization method and device based on an android terminal, and solves the defects of poor playing safety, unsmooth playing and inflexible response when playing fails in the prior art.
The technical scheme of the invention is realized as follows: a video playing link route optimization method based on an android terminal comprises the following steps:
establishing interaction with a DNS (Domain Name System) server corresponding to the video through an Http Protocol (Hyper Text Transfer Protocol);
establishing a background updating task, and updating node information linked with the video stream in real time;
selecting the optimal playing node information, and continuously monitoring the playing state of the video;
when the video Content is monitored to be abnormal, a CDN (Content Delivery Network) node switching mode is adopted to preferentially connect the current optimal playing node.
Further, the step of establishing interaction with the DNS server corresponding to the video via the Http protocol includes:
sending the domain name request to an LTM (Local Traffic Manager) device through a new Http request;
after receiving the formatted Http request, the LTM device acquires a client source address and a domain name corresponding to a video in the Http request;
the LTM equipment re-initiates a new DNS analysis request, takes a real client source address as a DNS request source address, and initiates DNS analysis to GTM (Global Traffic Manager) equipment;
the GTM equipment obtains an optimal analysis result in a topology address base according to a real client source address;
the GTM equipment sends the DNS analysis result back to the LTM equipment;
the LTM equipment reconstructs the received DNS resolution result into an Http response packet and transmits the Http response packet back.
Further, the step of preferentially connecting the currently optimal playing node in a CDN node switching manner when it is monitored that the video content acquisition is abnormal includes:
when the video content is monitored to be abnormal for the first time, reducing the playing code rate of the current video and continuously monitoring the playing state of the video;
and when the video content acquisition abnormality is monitored again, preferentially connecting the current optimal playing node by adopting a CDN node switching mode.
Further, the method for determining that video content is abnormal in acquisition includes:
acquiring a cardinal number A corresponding to the playing code rate of the current video;
acquiring a cardinal number B corresponding to the response time of the current connection node;
reading video content at a background, and acquiring a base number C corresponding to the continuous reading time of the video and a base number D of the ratio of the total reading time to the interruption time;
according to a weighting formula:
Figure 670910DEST_PATH_IMAGE001
judging whether the video content is abnormal or not when N is larger than a preset threshold value; wherein
Figure 642539DEST_PATH_IMAGE002
Figure 996160DEST_PATH_IMAGE003
A weighting value corresponding to each radix.
Further, the step of obtaining the cardinality a corresponding to the playing code rate of the current video includes:
acquiring the playing code rate of the current video;
acquiring screen size information of client playing equipment;
and determining a base A according to the screen size information and the playing code rate.
The invention also provides a video playing link route optimization device based on the android terminal, which comprises the following steps:
the communication module is used for establishing interaction with a DNS server corresponding to the video through an Http protocol;
the updating module is used for creating a background updating task and updating the node information linked with the video stream in real time;
the monitoring module is used for selecting the optimal playing node information and continuously monitoring the playing state of the video;
and the switching module is used for preferentially connecting the current optimal playing node by adopting a CDN node switching mode when the video content acquisition abnormity is monitored.
Further, the communication module is configured to send a domain name request to the LTM device through a new Http request;
the LTM equipment is used for taking out a client source address and a domain name corresponding to the video from the formatted Http request after receiving the formatted Http request;
the LTM equipment is also used for initiating DNS analysis to GTM equipment by taking a real client source address as a DNS request source address after a new DNS analysis request is initiated again;
the GTM equipment is used for acquiring an optimal analysis result in a topology address base according to a real client source address;
the GTM equipment is used for sending the DNS analysis result back to the LTM equipment;
and the LTM equipment is used for reconstructing the received DNS resolution result into an Http response packet and sending the Http response packet back to the communication module.
Further, the above-mentioned switching module includes:
the first processing submodule is used for reducing the playing code rate of the current video and continuously monitoring the playing state of the video when the video content is monitored to be abnormal for the first time;
and the second processing submodule is used for preferentially connecting the current optimal playing node by adopting a CDN node switching mode when the video content acquisition abnormity is monitored again.
Further, the switching module further includes a determining submodule configured to determine that the video content is abnormal, where the determining submodule includes:
the first obtaining unit is used for obtaining a cardinal number A corresponding to the playing code rate of the current video;
the second acquisition unit is used for acquiring a cardinal number B corresponding to the response time of the current connection node;
the third acquisition unit is used for reading video content in a background, and acquiring a base number C corresponding to the continuous reading time of the video and a base number D of the ratio of the total reading time to the interruption time;
a determination unit for determining, according to a weighting formula:
Figure 404139DEST_PATH_IMAGE001
judging whether the video content is abnormal or not when N is larger than a preset threshold value; wherein
Figure 868618DEST_PATH_IMAGE002
Figure 803076DEST_PATH_IMAGE003
A weighting value corresponding to each radix.
Further, the first obtaining unit includes:
the first obtaining subunit is used for obtaining the playing code rate of the current video;
the second acquisition subunit is used for acquiring the screen size information of the client playing equipment;
and the determining subunit is used for determining a base A according to the screen size information and the playing code rate.
In addition, the playing state of the video is continuously monitored, when the video content is monitored to be abnormal, the current optimal playing node is preferentially connected in a node switching mode, the CDN automatic switching scheme is flexible, the problem of video playing failure is quickly and stably responded, the video stream information is switched under the condition that a user does not sense the video stream information, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a video playing link route optimization method based on an android terminal according to a first embodiment of the present invention;
FIG. 2 is a detailed flowchart of step S11 in FIG. 1;
fig. 3 is a flowchart of a video playing link route optimization method based on an android terminal according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a method for determining video content acquisition anomalies;
fig. 5 is a detailed flowchart of step S31 in fig. 4;
fig. 6 is a schematic structural diagram of a video playback link route optimization device based on an android terminal according to a third embodiment of the present invention.
Fig. 7 is a schematic structural diagram of the switching module in fig. 6.
Fig. 8 is a schematic structural diagram of the judgment submodule in fig. 7.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment:
referring to fig. 1 and fig. 2, an embodiment of the present invention discloses a video playing link routing optimization method based on an android terminal, including:
and S11, establishing interaction with a DNS server corresponding to the video through an Http protocol.
According to the embodiment, interaction is established with the DNS server corresponding to the video through the Http protocol before the video is played, so that the problem that the data is hijacked can be effectively solved.
As a modification but not limited, the step S11 includes steps S111 to S116:
s111, sending the domain name request to LTM equipment through a new Http request;
s112, after the LTM equipment receives the formatted Http request, the LTM equipment acquires a client source address and a domain name corresponding to the video in the Http request;
s113, the LTM equipment initiates a new DNS analysis request again, takes a real client source address as a DNS request source address, and initiates DNS analysis to the GTM equipment;
s114, the GTM equipment obtains an optimal analysis result in a topology address base according to a real client source address;
s115, the GTM equipment sends the DNS analysis result back to the LTM equipment;
s116, the LTM device reconstructs the received DNS resolution result into an Http response packet and transmits the Http response packet back.
The Local Traffic Manager (LTM) device is responsible for load balancing of an intranet and specifically distributing a visitor demand to a corresponding server, and meanwhile, the LTM is used for acquiring a client source address in an Http request and a domain name corresponding to a video from a new Http request, and sending a real client source address to a GTM as a DNS request source address. The GTM (Global Traffic Manager) is responsible for load balancing of the extranet, and is used to obtain an optimal resolution result according to the real client address, including selecting an optimal node.
In the improvement scheme, because a new Http is directly requested to acquire a DNS server record address through IP, a domain analysis process for inquiring a local operator does not exist, and the problem of data hijacking is fundamentally avoided; meanwhile, as the IP is directly accessed, a domain analysis process is omitted, and the fastest node is found for access after the nodes are sequenced through an intelligent algorithm, so that the average access delay is reduced; in addition, the scheme reduces the server sorting with overhigh failure rate in the past through an algorithm, improves the server sorting through data accessed recently, and improves the server sorting through the history access success record.
And S12, creating a background updating task and updating the node information linked with the video stream in real time.
In the embodiment, by creating the background update task, the nodes available for video stream connection and the load and delay conditions of each node are acquired in real time.
S13, select the optimal playback node information, and continuously monitor the playback status of the video.
When playing, the playing node with the lowest load and delay is preferentially selected to be connected, and the playing state of the video is continuously monitored.
S14, when it is monitored that the video content is abnormal, a CDN node switching manner is used to preferentially connect the currently optimal playback node.
In this embodiment, in the video playing process, when the video is jammed and the loading time exceeds the preset threshold, it is determined that the video content is abnormal to obtain, and at this time, a CDN node switching manner is adopted to preferentially connect the currently optimal playing node.
In addition, the playing state of the video is continuously monitored, when the video content is monitored to be abnormal, the current optimal playing node is preferentially connected in a node switching mode, the CDN automatic switching scheme is flexible, the problem of video playing failure is quickly and stably responded, the video stream information is switched under the condition that a user does not sense the video stream information, and the use experience of the user is improved.
Second embodiment:
referring to fig. 3 to fig. 5, an embodiment of the present invention discloses another video playing link routing optimization method based on an android terminal, including:
and S21, establishing interaction with a DNS server corresponding to the video through an Http protocol.
And S22, creating a background updating task and updating the node information linked with the video stream in real time.
S23, select the optimal playback node information, and continuously monitor the playback status of the video.
S21-S23 are the same as the corresponding steps of the first embodiment, and are not recited here.
S24, when the video content is monitored for the first time to obtain abnormal content, reducing the playing code rate of the current video, and continuously monitoring the playing state of the video;
in this embodiment, when it is monitored that video content is abnormal for the first time, it is preferred to reduce the playing rate of the current video, so as to avoid sending the video that is not smoothly played due to frequent node replacement.
S25, when the video content is monitored again and the video content is abnormal, a CDN node switching manner is adopted to preferentially connect the currently optimal playback node.
As a specific solution, but not limited to, the method for determining the video content acquisition abnormality includes steps S31 to S34:
s31, a base number a corresponding to the playing code rate of the current video is obtained.
In this embodiment, different playback rate ranges correspond to different bases a, and the bases a are used to measure the picture quality of the current video. As a preferred option, radix A is rounded such as 1, 2, 3, 4, etc. to facilitate subsequent calculations, and radix B, C, D is also preferably rounded based on the understanding described above.
S32, a base number B corresponding to the response time of the current connection node is obtained.
In this embodiment, the background acquires the response time of the current node in real time, and generates a corresponding base B according to the numerical range of the response time, where the base B is used to measure the connectivity quality of the current node.
S33, reading the video content in the background, and acquiring a base number C corresponding to the continuous reading time of the video and a base number D of the ratio of the total reading time to the interruption time;
in this step, the base number C is used to measure the offline playing time of the current video, and the base number D is used to measure the cache quality of the current video. The longer the offline playing time is, the more stable the current node is, and the higher the cache quality is, the situations of short pause, screen splash or frame skip of the video can be avoided.
S34, according to the weighting formula:
Figure 62019DEST_PATH_IMAGE001
judging whether the video content is abnormal or not when N is larger than a preset threshold value; wherein
Figure 206562DEST_PATH_IMAGE002
Figure 209153DEST_PATH_IMAGE004
A weighting value corresponding to each radix.
The scheme respectively obtains the cardinal numbers A, B, C, D at preset time intervals (such as several seconds), determines the weighted value N according to each cardinal number and the corresponding weighted value, and judges whether the code rate needs to be switched in advance or the node needs to be replaced by comprehensively considering the picture quality of the video, the connection quality of the node, the off-line playing time and the cache quality of the video. Compared with the first embodiment, in the embodiment, under the condition that the video is not jammed and is loaded overtime, the judgment of switching the code rate or the node to ensure the video fluency can be made in advance, so that the user can watch the video smoothly, the influence of the network on the user is reduced, and the use experience of the user is further improved.
As a modification to step S31, step S31 further includes steps S311 to S313:
s311, acquiring the playing code rate of the current video;
s312, acquiring screen size information of the client playing equipment;
s313, according to the screen size information and the playing code rate, a base A is determined.
In the improved scheme of S31, the playing code rate and the screen size of the client playing device are respectively obtained to determine the radix a, and in an exemplary case of the same code rate, the radix a of the small-screen user is smaller than the radix a of the large-screen user, so that the small-screen user can watch the video at a lower code rate without being influenced by the picture, and the large-screen user does not influence the use experience because the code rate is automatically lowered too low. The scheme can achieve the best balance between the picture quality and the playing code rate, and improves the reliability of judging the video content acquisition abnormity in the embodiment.
The third embodiment:
referring to fig. 6 to 8, the present invention further provides an android-based video playing link routing optimization apparatus 100, including a communication module 110, an updating module 120, a monitoring module 130, and a switching module 140, where:
the communication module 110 is configured to establish interaction with a DNS server corresponding to a video through an Http protocol;
the updating module 120 is connected with the communication module 110 and is used for creating a background updating task and updating the node information linked with the video stream in real time;
the monitoring module 130 is connected to the updating module 120, and is configured to select optimal playing node information and continuously monitor a playing state of the video;
and the switching module 140 is connected to the monitoring module 130, and configured to preferentially connect the currently optimal playing node in a CDN node switching manner when it is monitored that the video content is abnormal.
As an improvement to the above solution, but not limited thereto, the communication module 110 is configured to send a domain name request to the LTM device 200 through a new Http request;
the LTM device 200 is configured to, after receiving the formatted Http request, extract a client source address and a domain name corresponding to the video from the Http request;
the LTM device 200 is further configured to initiate DNS resolution to the GTM device 300 by using a real client source address as a DNS request source address after a new DNS resolution request is reinitiated;
the GTM device 300 is configured to obtain an optimal parsing result in a topology address base according to a real client source address;
the GTM device 300 is configured to send a DNS resolution result back to the LTM device 200;
the LTM device 200 is configured to reconstruct the received DNS resolution result into an Http response packet, and send the Http response packet back to the communication module 110.
Further, the switching module 140 includes:
the first processing submodule 141 is configured to reduce a playing code rate of a current video when it is monitored that video content is abnormal for the first time, and continuously monitor a playing state of the video;
the second processing submodule 142 is connected to the first processing submodule 141, and is configured to preferentially connect the currently optimal playing node by using a CDN node switching manner when it is monitored that the video content is abnormal again.
Further, the switching module 140 further includes a determining sub-module 143, configured to determine that video content is abnormal, where the determining sub-module 143 includes a first obtaining unit 1431, a second obtaining unit 1432, a third obtaining unit 1433, and a determining unit 1434, where:
a first obtaining unit 1431, configured to obtain a radix a corresponding to a playing code rate of a current video;
a second obtaining unit 1432, configured to obtain a base number B corresponding to the response time of the current connection node;
a third obtaining unit 1433, configured to read video content in a background, and obtain a base number C corresponding to a continuous video reading time and a base number D of a ratio between a total reading time and an interruption time;
a determining unit 1434, connected to the second acquiring unit 1432, the third acquiring unit 1433, and the determining unit 1434, configured to:
Figure 998117DEST_PATH_IMAGE001
the video content acquisition device is used for determining that video content acquisition is abnormal when N is greater than a preset threshold value; wherein
Figure 427962DEST_PATH_IMAGE005
Figure 935166DEST_PATH_IMAGE004
For each radix pairThe corresponding weight value.
Further, the first obtaining unit 1431 includes a first obtaining subunit 1431a, a second obtaining subunit 1431b, and a determining subunit 1431c, where:
a first obtaining subunit 1431a, configured to obtain a playing code rate of a current video;
a second obtaining subunit 1431b, configured to obtain screen size information of the client playback device;
a determining subunit 1431c, connected to the second obtaining subunit 1431b and the determining subunit 1431c, configured to determine a base a according to the screen size information and the playing code rate.
The modules, sub-modules, units and sub-units of the present embodiment correspond to the steps of the two method embodiments one to one, and are not described herein.
In addition, the playing state of the video is continuously monitored, when the video content is monitored to be abnormal, the current optimal playing node is preferentially connected in a node switching mode, the CDN automatic switching scheme is flexible, the problem of video playing failure is quickly and stably responded, the video stream information is switched under the condition that a user does not sense the video stream information, and the use experience of the user is improved.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed optimization device and optimization method can be implemented in other ways. For example, the above-described embodiment of the optimization device is merely illustrative, and the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A video playing link route optimization method based on an android terminal is characterized by comprising the following steps:
establishing interaction with a DNS server corresponding to the video through an Http protocol;
establishing a background updating task, and updating node information linked with the video stream in real time;
selecting the optimal playing node information, and continuously monitoring the playing state of the video;
when the video content acquisition abnormality is monitored, preferentially connecting the current optimal playing node by adopting a CDN node switching mode;
the step of establishing interaction with the DNS server corresponding to the video through the Http protocol comprises the following steps:
sending the domain name request to LTM equipment through a new Http request;
after receiving the formatted Http request, the LTM device acquires a client source address and a domain name corresponding to a video in the Http request;
the LTM equipment re-initiates a new DNS analysis request, takes a real client source address as a DNS request source address, and initiates DNS analysis to the GTM equipment;
the GTM equipment obtains an optimal analysis result in a topology address base according to a real client source address;
the GTM equipment sends the DNS analysis result back to the LTM equipment;
the LTM equipment reconstructs the received DNS resolution result into an Http response packet and transmits the Http response packet back.
2. The optimization method of claim 1, wherein the step of preferentially connecting the currently optimal playback node in a CDN node switching manner when monitoring that video content acquisition is abnormal includes:
when the video content is monitored to be abnormal for the first time, reducing the playing code rate of the current video and continuously monitoring the playing state of the video;
and when the video content acquisition abnormality is monitored again, preferentially connecting the current optimal playing node by adopting a CDN node switching mode.
3. The optimization method of claim 2, wherein the method for determining the video content acquisition abnormality comprises:
acquiring a cardinal number A corresponding to the playing code rate of the current video;
acquiring a cardinal number B corresponding to the response time of the current connection node;
reading video content at a background, and acquiring a base number C corresponding to the continuous reading time of the video and a base number D of the ratio of the total reading time to the interruption time;
according to a weighting formula:
Figure DEST_PATH_IMAGE002
judging whether the video content is abnormal or not when N is larger than a preset threshold value; wherein, X1, X2, X3 and X4 are weighted values corresponding to the cardinality.
4. The optimization method of claim 3, wherein the step of obtaining the radix A corresponding to the playing code rate of the current video comprises:
acquiring the playing code rate of the current video;
acquiring screen size information of client playing equipment;
and determining a base A according to the screen size information and the playing code rate.
5. The utility model provides a video playback links route optimization device based on tall and erect end of ann, its characterized in that includes:
the communication module is used for establishing interaction with a DNS server corresponding to the video through an Http protocol;
the updating module is used for creating a background updating task and updating the node information linked with the video stream in real time;
the monitoring module is used for selecting the optimal playing node information and continuously monitoring the playing state of the video;
the switching module is used for preferentially connecting the current optimal playing node by adopting a CDN node switching mode when the video content acquisition abnormity is monitored;
the communication module is used for sending the domain name request to the LTM equipment through a new Http request;
the LTM equipment is used for taking out a client source address and a domain name corresponding to the video from the formatted Http request after receiving the formatted Http request;
the LTM equipment is also used for initiating DNS analysis to GTM equipment by taking a real client source address as a DNS request source address after a new DNS analysis request is initiated again;
the GTM equipment is used for acquiring an optimal analysis result in a topology address base according to a real client source address;
the GTM equipment is used for sending the DNS analysis result back to the LTM equipment;
and the LTM equipment is used for reconstructing the received DNS resolution result into an Http response packet and sending the Http response packet back to the communication module.
6. The optimization apparatus of claim 5, wherein the switching module comprises:
the first processing submodule is used for reducing the playing code rate of the current video and continuously monitoring the playing state of the video when the video content is monitored to be abnormal for the first time;
and the second processing submodule is used for preferentially connecting the current optimal playing node by adopting a CDN node switching mode when the video content acquisition abnormity is monitored again.
7. The optimization apparatus according to claim 6, wherein the switching module further comprises a determining sub-module for determining that the video content is abnormal, the determining sub-module comprising:
the first obtaining unit is used for obtaining a cardinal number A corresponding to the playing code rate of the current video;
the second acquisition unit is used for acquiring a cardinal number B corresponding to the response time of the current connection node;
the third acquisition unit is used for reading video content in a background, and acquiring a base number C corresponding to the continuous reading time of the video and a base number D of the ratio of the total reading time to the interruption time;
a determination unit for determining, according to a weighting formula:
Figure DEST_PATH_IMAGE004
judging whether the video content is abnormal or not when N is larger than a preset threshold value; wherein, X1, X2, X3 and X4 are weighted values corresponding to the cardinality.
8. The optimization apparatus of claim 7, wherein the first obtaining unit comprises:
the first obtaining subunit is used for obtaining the playing code rate of the current video;
the second acquisition subunit is used for acquiring the screen size information of the client playing equipment;
and the determining subunit is used for determining a base A according to the screen size information and the playing code rate.
CN202111095802.1A 2021-09-18 2021-09-18 Video playing link route optimization method and device based on android terminal Active CN113556587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111095802.1A CN113556587B (en) 2021-09-18 2021-09-18 Video playing link route optimization method and device based on android terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111095802.1A CN113556587B (en) 2021-09-18 2021-09-18 Video playing link route optimization method and device based on android terminal

Publications (2)

Publication Number Publication Date
CN113556587A CN113556587A (en) 2021-10-26
CN113556587B true CN113556587B (en) 2021-12-24

Family

ID=78134435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111095802.1A Active CN113556587B (en) 2021-09-18 2021-09-18 Video playing link route optimization method and device based on android terminal

Country Status (1)

Country Link
CN (1) CN113556587B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065859A (en) * 2022-06-07 2022-09-16 北京达佳互联信息技术有限公司 Video data acquisition method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202524399U (en) * 2010-11-04 2012-11-07 F5网络公司 Flow management device
CN103747297A (en) * 2014-01-09 2014-04-23 能力天空科技(北京)有限公司 Video dynamic dispatching method, device and video playing system
CN105072159A (en) * 2015-07-17 2015-11-18 杭州施强网络科技有限公司 Node management list structure in P2P networking and management method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11057446B2 (en) * 2015-05-14 2021-07-06 Bright Data Ltd. System and method for streaming content from multiple servers
CN111211971B (en) * 2020-01-03 2021-11-05 西安新能技术有限公司 Cluster type instant message system supporting internet inquiry service and implementation method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202524399U (en) * 2010-11-04 2012-11-07 F5网络公司 Flow management device
CN103747297A (en) * 2014-01-09 2014-04-23 能力天空科技(北京)有限公司 Video dynamic dispatching method, device and video playing system
CN105072159A (en) * 2015-07-17 2015-11-18 杭州施强网络科技有限公司 Node management list structure in P2P networking and management method thereof

Also Published As

Publication number Publication date
CN113556587A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
US9660761B2 (en) System and method for monitoring a connection of an end-user device to a network
US10992569B2 (en) System and method for real-time load balancing of network packets
US8289965B2 (en) System and method for establishing a communications session with an end-user based on the state of a network connection
US7546355B2 (en) Network architecture for data transmission
Mok et al. QDASH: a QoE-aware DASH system
CN102137006B (en) Data transmission method and equipment in CDN (Content Delivery Network)
US20080002711A1 (en) System and method for access state based service options
US20070006270A1 (en) Timely recovery for media on demand streaming
CN113556587B (en) Video playing link route optimization method and device based on android terminal
US20100293226A1 (en) Web conference performance monitoring system
CN110460732A (en) Network quality monitoring method, device and the communication server
US20140237112A1 (en) Method for Evaluating Streaming Media Transmission Quality and Obtaining Information, and Related Device and System
CN109104377A (en) Long connection load-balancing method, equipment, system and computer readable storage medium
US10498615B2 (en) Method, apparatus and system for providing wireless network speed information
CN106656629A (en) Prediction method for stream media playing quality
CN111092904B (en) Network connection method and device
JP2007068093A (en) Ip telephone failure zone carving system and method
JP2003230125A (en) Automatic changeover control method and system for stream distribution
KR100553553B1 (en) System and Method for Managing and Providing Sequential Quality of Service Information
CN110891077A (en) CDN node detection method and device
CN115242755A (en) Performance monitoring and load balancing method based on SIP signaling server cluster
FR3116979A1 (en) Support to help identify malfunctioning devices
KR100587972B1 (en) Method for QoS of internet multimedia service
Heikkinen et al. Dynamic cache optimization for DASH clients in Content Delivery Networks
CN111211989B (en) CDN quality analysis method based on broadband television

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 402, No. 66, North Street, University Town Center, Panyu District, Guangzhou City, Guangdong Province, 510006

Patentee after: Yifang Information Technology Co.,Ltd.

Address before: 510006 Room 601, 603, 605, science museum, Guangdong University of technology, 100 Waihuan West Road, Xiaoguwei street, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU EASEFUN INFORMATION TECHNOLOGY Co.,Ltd.