CN112040332A - Method and system for obtaining video content with smooth CDN bandwidth - Google Patents

Method and system for obtaining video content with smooth CDN bandwidth Download PDF

Info

Publication number
CN112040332A
CN112040332A CN202010838393.9A CN202010838393A CN112040332A CN 112040332 A CN112040332 A CN 112040332A CN 202010838393 A CN202010838393 A CN 202010838393A CN 112040332 A CN112040332 A CN 112040332A
Authority
CN
China
Prior art keywords
node
video content
switched
nodes
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010838393.9A
Other languages
Chinese (zh)
Other versions
CN112040332B (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.)
Tianjin Zhirong Innovation Technology Development Co ltd
Original Assignee
Tianjin Zhirong Innovation Technology Development 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 Tianjin Zhirong Innovation Technology Development Co ltd filed Critical Tianjin Zhirong Innovation Technology Development Co ltd
Priority to CN202010838393.9A priority Critical patent/CN112040332B/en
Publication of CN112040332A publication Critical patent/CN112040332A/en
Application granted granted Critical
Publication of CN112040332B publication Critical patent/CN112040332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/632Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing using a connection between clients on a wide area network, e.g. setting up a peer-to-peer communication via Internet for retrieving video segments from the hard-disk of other client devices
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • 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/141Setup of application 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5683Storage of data provided by user terminals, i.e. reverse caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8352Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a method and a system for obtaining video content with smooth CDN bandwidth. The method comprises the following steps: the method comprises the steps that a first node responds to an operation instruction for switching video content, and sends request information for acquiring the switched video content to a background server, wherein the request information comprises identity identification information of the first node and channel information of the switched video content; the background server determines other node networks which are the same as the video channel of the first node and establish P2P connection according to the channel information, so that the first node establishes communication connection with one or more nodes in the node networks; and the first node determines a second node in the node network, which caches the switched video content, according to the identification information of the switched video content, and acquires the switched video content from the second node. In this way, CDN bandwidth glitches generated at the time point of video content switching can be effectively smoothed.

Description

Method and system for obtaining video content with smooth CDN bandwidth
Technical Field
Embodiments of the present disclosure relate generally to the field of anti-hotlinking technology for network video, and more particularly, to a method and system for obtaining video content with smooth CDN bandwidth.
Background
At present, due to the development of networks, audio and video data transmission between users is not simply data transmission transmitted through a server in the traditional sense, and network data transmission and communication can be carried out by utilizing a P2P technology. The technology is called audio and video P2P transmission technology, also called audio and video peer-to-peer network transmission technology, and is a novel communication network transmission technology which is emerging in recent years. The method breaks the fixed form of a server/client (C/S) mode of the traditional network in the transmission mode, and establishes a direct communication mechanism of the client to the client.
The relation between the peers in the P2P network is Peer-to-Peer, and the peers have the characteristics of both a Client and a Server. The audio and video communication can be directly carried out without depending on a centralized server or resources, and the dependence on the server is reduced.
In the prior art, when a user watches the same video content for a long time, other nodes can be stably connected through the P2P technology, and required video data is acquired from the other nodes, so that the consumption of the bandwidth of the CDN is reduced as much as possible. However, when video content changes, differences are generated between data taken from other nodes, so that P2P data transmission content fails, a user goes to the CDN to obtain data, and when the user amount is large, a large CDN bandwidth spike is generated at a time point of switching, so that CDN bandwidth cost increases abnormally.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide an acquisition scheme for video content, which is capable of reducing the amount of users accessing the CDN to acquire data and further smoothing the bandwidth of the CDN when the video content changes.
In a first aspect of the present disclosure, a method for obtaining video content with a smooth CDN bandwidth is provided, where the method includes:
the method comprises the steps that a first node responds to an operation instruction for switching video content, and sends request information for acquiring the switched video content to a background server, wherein the request information comprises identity identification information of the first node and channel information of the switched video content;
the background server determines other node networks which are the same as the video channel of the first node and establish P2P connection according to the channel information, so that the first node establishes communication connection with one or more nodes in the node networks;
and the first node determines a second node in the node network, which caches the switched video content, according to the identification information of the switched video content, and acquires the switched video content from the second node.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, after the first node responds to receiving an operation instruction for switching video content, further including:
and acquiring channel information and video identification information of the current video content, and channel information and video identification information of the switched video content.
The above-described aspects and any possible implementation further provide an implementation, further including:
judging whether the switched video content and the current video content belong to the same channel;
if the switched video content and the current video content do not belong to the same channel, sending request information for acquiring the switched video content to a background server;
and if the switched video content and the current video content belong to the same channel, not sending request information for acquiring the switched video content to a background server.
The above aspect and any possible implementation further provides an implementation in which the establishing a communication connection between the first node and one or more nodes in the node network includes:
determining one or more nodes with the least hop count with the first node in the node network, sending the identification information of the first node to the one or more nodes, and enabling the one or more nodes to send a communication connection request to the first node.
The above aspect and any possible implementation further provides an implementation in which the establishing a communication connection between the first node and one or more nodes in the node network includes:
determining one or more nodes with the least hop count with the first node in the node network, sending the identification information of the one or more nodes to the first node, and enabling the first node to send a communication connection request to the one or more nodes.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the first node determines, according to the identification information of the switched video content, a second node in the node network, where the switched video content is cached in, and acquires the switched video content from the second node, including:
the first node sends the video identification information of the switched video content and the identity identification information of the first node to other nodes in the node network, each other node judges whether the other node caches the corresponding video content according to the video identification information, and when the corresponding video content is cached, the node is used as a second node, and the second node sends the switched video content to the first node.
The above-described aspects and any possible implementation further provide an implementation, further including:
and if the second node cached with the corresponding video content does not exist in the node network, the first node acquires the switched video content from the background server.
In a second aspect of the present disclosure, there is provided a system for acquiring video content based on P2P technology, including:
the background server is used for determining other node networks which are the same as the video channel of the first node and establish P2P connection according to the channel information, so that the first node establishes communication connection with one or more nodes in the node networks;
the first node is used for responding to an operation instruction for switching the video content and sending request information for acquiring the switched video content to a background server, wherein the request information comprises the identity identification information of the first node and the channel information of the switched video content; and determining a second node in the node network, which caches the switched video content, according to the identification information of the switched video content, and acquiring the switched video content from the second node.
In a third aspect of the present disclosure, an electronic device is provided, comprising a memory having stored thereon a computer program and a processor implementing the method as described above when executing the program.
In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method as set forth above.
It should be understood that the statements herein reciting aspects are not intended to limit the critical or essential features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
By the method for acquiring the video content with the smooth CDN bandwidth, CDN bandwidth burrs generated at the time point of video content switching can be effectively smoothed, and abnormal increase of CDN bandwidth cost is avoided.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like or similar reference characters designate like or similar elements, and wherein:
fig. 1 shows a flowchart of a method for obtaining video content with a smooth CDN bandwidth according to a first embodiment of the present disclosure;
fig. 2 shows a flowchart of a method for obtaining video content with a smooth CDN bandwidth according to a second embodiment of the present disclosure;
fig. 3 is a functional structure diagram of a system for acquiring video content with a smooth CDN bandwidth according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an obtaining apparatus for video content with a smooth CDN bandwidth according to a fourth embodiment of the present disclosure;
FIG. 5 shows a prior art CDN bandwidth line graph;
fig. 6 shows a CDN bandwidth line graph after applying the method for obtaining video content with a smooth CDN bandwidth according to the embodiment of the present disclosure;
FIG. 7 illustrates a prior art people profile;
fig. 8 is a user demographics illustrating an acquisition method of video content with a smooth CDN bandwidth to which an embodiment of the present disclosure is applied;
fig. 9 is a state diagram illustrating the change of the P2P sharing rate of the whole channel playing period in the prior art;
fig. 10 shows a state diagram of changes in the P2P sharing rate of the whole channel playing period after the method for acquiring video content with a smooth CDN bandwidth according to the embodiment of the present disclosure is applied.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In the method for obtaining video content with smooth CDN bandwidth according to the embodiment of the present disclosure, when a user side switches video content, if a channel where the video content is located after switching and a channel where the video content is located before switching do not change, a P2P connection established by the user side is not disconnected, so that a node that views the video content of the same channel maintains a P2P connection, and the user side obtains the switched video content from other nodes in a P2P network instead of accessing the CDN to obtain the switched video content, thereby avoiding a sudden increase in the access amount of the CDN in a short time of program switching, causing a large burr in the CDN bandwidth, and causing an abnormal increase in the CDN bandwidth cost in a 95 charging mode of the CDN bandwidth. Fig. 5 is a graph showing CDN bandwidth line in the prior art; fig. 6 shows a CDN bandwidth line graph after applying the method for obtaining video content with a smooth CDN bandwidth according to the embodiment of the present disclosure. As can be seen from fig. 5, in the prior art, when video content is switched, a lot of CDN glitches are generated (that is, the bandwidth of the CDN changes in a short time is large), and fig. 6 shows a CDN bandwidth line graph after applying the method for acquiring video content with a smooth CDN bandwidth according to the embodiment of the present disclosure, it can be seen that the CDN bandwidth line graph after applying the method for acquiring video content with a smooth CDN bandwidth according to the embodiment of the present disclosure is smoother than that of fig. 5. Fig. 7 shows a prior art people profile. Fig. 8 is a user demographics illustrating an obtaining method of video content with a smooth CDN bandwidth to which an embodiment of the present disclosure is applied. Fig. 9 shows a state diagram of the change of the P2P sharing rate of the whole channel playing period in the prior art. Fig. 10 shows a state diagram of changes in the P2P sharing rate of the whole channel playing period after the method for acquiring video content with a smooth CDN bandwidth according to the embodiment of the present disclosure is applied. As can be seen from fig. 7 and 8, the number of users does not change significantly during the application of the method of the prior art and the method of the present embodiment for obtaining video content with smooth CDN bandwidth. As can be seen from fig. 9, the user sharing rate of the video content with a smooth CDN bandwidth is relatively smooth during respective application periods, which indicates that the number of times of reestablishing the P2P connection is reduced, and as can be seen from fig. 10, the user sharing rate of the method in the prior art has large fluctuation during the application periods.
The technical solution of the present disclosure is explained below with reference to specific examples. Specifically, as shown in fig. 1, it is a flowchart of a method for obtaining video content with a smooth CDN bandwidth according to a first embodiment of the present disclosure. As shown in fig. 1, the method of this embodiment may include the following steps:
s101: the first node responds to the received operation instruction for switching the video content, and sends request information for acquiring the switched video content to a background server, wherein the request information comprises the identity information of the first node and the channel information of the switched video content.
The first node in this embodiment may be any node in a network, and this embodiment describes the technical solution of the embodiment of the present disclosure from the perspective of one node, where the node is the first node. The first node of this embodiment may be a computer, a tablet computer, or a network television, which are not listed here.
When a user watches video content through a first node, if the current video content is played completely or the video content needs to be switched due to other factors, the user sends a command for switching the video content to the first node. For example, an operation instruction for switching video content is sent to the first node through a remote controller, a mouse, a keyboard, a voice input device, or the like. After receiving the operation instruction, the first node sends request information for acquiring the switched video content to a backend server (i.e., CDN), where the request information includes the identification information of the first node and channel information of the switched video content.
In this embodiment, the background server side may identify the video content in advance, and identify a channel of the video content. When the first node sends the request information to the background server, the first node sends the identity information of the first node and the channel information of the video content, wherein the identity information can be information such as the equipment model, the IP address and the account information of the first node, the channel information of the video content is a channel of the video content which is well identified by the server, the identity of the first node can be identified through the identity information, and the channel corresponding to the switched video content can be determined through the channel information.
S102: and the background server determines other node networks which are the same as the video channel of the first node and establish P2P connection according to the channel information, so that the first node establishes communication connection with one or more nodes in the node networks.
After receiving the request information sent by the first node, the background server stores the identification information and the channel information in the request information, and similarly, it can be known that the background server stores the identification information and the channel information in the request information sent by other nodes. The background server determines one or more other nodes with the same channel for watching the video content at the current time point and the channel for the video content acquired by the first node according to the channel information sent by the first node, and sends the identification information of the nodes to the first node, so that the first node sends a connection request to one or more nodes in the node network, and further establishes communication connection. Or the identity information of the first node may be sent to one or more other nodes in which a channel for watching the video content at the current time point is the same as a channel for the video content acquired by the first node, so that the one or more other nodes send connection requests to the first node to establish communication connection, thereby forming a node network.
The process of a first node establishing a communication connection with other nodes in a network of nodes typically comprises the following processes:
the specific process of establishing communication connection between a first node and other nodes belongs to the existing P2P streaming media technology, and the specific process is not described in detail in the embodiment.
S103: and the first node determines a second node in the node network, which caches the switched video content, according to the identification information of the switched video content, and acquires the switched video content from the second node.
In this embodiment, after the first node establishes a communication connection with one or more other nodes having the same channel for watching the video content as the channel for the video content acquired by the first node, data interaction may be performed with the one or more nodes. The first node may send the identification information of the switched video content to the one or more nodes, after receiving the identification information of the video content sent by the first node, the nodes search for the corresponding video content from the video content list cached by the nodes according to the identification information, and if the corresponding video content can be found, the corresponding video content may be sent to the first node through the established connection with the first node, and at this time, the node cached with the corresponding video content is the second node.
By the method for obtaining video content with a smooth CDN bandwidth according to the embodiment, one or more nodes in a node network that has the same video channel as the first node and establishes p2p connection obtain data from a CDN server. The number of connections and the acquired traffic are relatively stable and are not affected by the switching content or channel of the first node. When the video content of the first node is switched, the video content after switching does not need to be acquired from the background server, so that the access amount of the node to the background server during video content switching is reduced, the sudden increase of the CDN bandwidth in a short time is avoided, the CDN bandwidth burrs generated at the time point of video content switching can be effectively smoothed, and the abnormal increase of the CDN bandwidth cost is avoided.
As another embodiment of the present disclosure, in the above embodiment, if there is no second node cached with corresponding video content in the node network, the first node acquires the switched video content from the background server.
As an optional embodiment of the present disclosure, in the above embodiment, some nodes may also be preset as core nodes, and the first node establishes communication connection with other nodes through the core nodes in the node network, and acquires the video content after handover from other nodes through the core nodes.
Fig. 2 is a flowchart of a method for obtaining video content with a smooth CDN bandwidth according to a second embodiment of the present disclosure. The method of the embodiment comprises the following steps:
s201: and acquiring channel information and video identification information of the current video content, and channel information and video identification information of the switched video content.
In this embodiment, after the first node responds to the received operation instruction for switching the video content, the first node first acquires the channel information and the video identification information of the current video content, and the channel information and the video identification information of the switched video content.
The background server identifies the video content and the corresponding channel in advance when providing the video playing service, so that the channel information and the video identification information of the current video content, and the channel information and the video identification information of the switched video content can be directly acquired.
S202: and judging whether the switched video content and the current video content belong to the same channel. If the switched video content and the current video content belong to the same channel, the step S203 is performed, and if the switched video content and the current video content do not belong to the same channel, the step S204 is performed.
S203: and sending request information for acquiring the switched video content to a background server.
S204: the request information for acquiring the switched video content is not transmitted to the background server, and the process proceeds to step S205.
In this embodiment, after the first node receives an operation instruction for switching video content sent by a user, the first node first determines whether the video content still belongs to the same channel before and after switching. If the video content belongs to the same channel, the existing P2P connection is maintained, namely the P2P connection established when the current video content is not obtained is not disconnected, the video content is not obtained from the background server, but the switched video content is obtained from other nodes in the existing node network. The video content is obtained from the background server only under the condition that other nodes in the existing P2P node network do not cache the switched video content. Compared with the prior art, the P2P connection is established by taking the video identification information as the standard, but the P2P connection is established by taking the channel information as the standard, so that the access frequency of a background server during program switching is reduced, and the bandwidth of the CDN is reduced.
S205: and the background server determines other node networks which are the same as the video channel of the first node and establish P2P connection according to the channel information.
S206: and the first node determines a second node in the node network, which caches the switched video content, according to the identification information of the switched video content, and acquires the switched video content from the second node.
Step S205 and step S206 in this embodiment are similar to the specific implementation manner in the first embodiment, and are not repeated in this embodiment.
By the method for obtaining the video content with the smooth CDN bandwidth, when the video content of the first node is switched, the video content after switching does not need to be obtained from the background server, so that CDN bandwidth burrs generated at the time point of video content switching can be effectively smoothed, and abnormal increase of CDN bandwidth cost is avoided.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
It should be understood that the statements herein reciting aspects are not intended to limit the critical or essential features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
The above is a description of embodiments of the method, and the embodiments of the apparatus are further described below.
Fig. 3 is a schematic functional structure diagram of a system for acquiring video content with a smooth CDN bandwidth according to a third embodiment of the present disclosure. The system for acquiring video content with a smooth CDN bandwidth of the present embodiment includes:
the background server 301 is configured to determine, according to the channel information, other node networks that are the same as the video channel of the first node and establish a P2P connection, so that the first node establishes a communication connection with one or more nodes in the node networks;
a first node 302, configured to send, in response to receiving an operation instruction for switching video content, request information for acquiring the switched video content to a background server, where the request information includes identity information of the first node and channel information of the switched video content; and determining a second node in the node network, which caches the switched video content, according to the identification information of the switched video content, and acquiring the switched video content from the second node.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 4 is a schematic structural diagram illustrating an obtaining apparatus for video content with a smooth CDN bandwidth according to a fourth embodiment of the present disclosure. The terminal device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 4, the computer system includes a Central Processing Unit (CPU)401 that can perform various appropriate actions and processes based on a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for system operation are also stored. The CPU 401, ROM 402, and RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. Drivers 410 are also connected to the I/O interface 405 on an as needed basis. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 on an as-needed basis, so that a computer program read out therefrom is mounted on the storage section 408 on an as-needed basis.
In particular, based on the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 401.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a load programmable logic device (CPLD), and the like.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for obtaining video content with smooth CDN bandwidth is characterized by comprising the following steps:
the method comprises the steps that a first node responds to an operation instruction for switching video content, and sends request information for acquiring the switched video content to a background server, wherein the request information comprises identity identification information of the first node and channel information of the switched video content;
the background server determines other node networks which are the same as the video channel of the first node and establish P2P connection according to the channel information, so that the first node establishes communication connection with one or more nodes in the node networks;
and the first node determines a second node in the node network, which caches the switched video content, according to the identification information of the switched video content, and acquires the switched video content from the second node.
2. The method according to claim 1, wherein after the first node receives an operation instruction for switching video contents, the method further comprises:
and acquiring channel information and video identification information of the current video content, and channel information and video identification information of the switched video content.
3. The method for acquiring video content according to claim 2, further comprising:
judging whether the switched video content and the current video content belong to the same channel;
if the switched video content and the current video content do not belong to the same channel, sending request information for acquiring the switched video content to a background server;
and if the switched video content and the current video content belong to the same channel, not sending request information for acquiring the switched video content to a background server.
4. The method according to claim 3, wherein the establishing a communication connection between the first node and one or more nodes in the node network comprises:
determining one or more nodes with the least hop count with the first node in the node network, sending the identification information of the first node to the one or more nodes, and enabling the one or more nodes to send a communication connection request to the first node.
5. The method according to claim 3, wherein the establishing a communication connection between the first node and one or more nodes in the node network comprises:
determining one or more nodes with the least hop count with the first node in the node network, sending the identification information of the one or more nodes to the first node, and enabling the first node to send a communication connection request to the one or more nodes.
6. The method according to claim 4 or 5, wherein the first node determines, according to the identification information of the switched video content, a second node in the node network where the switched video content is cached, and acquires the switched video content from the second node, including:
the first node sends the video identification information of the switched video content and the identity identification information of the first node to other nodes in the node network, each other node judges whether the other node caches the corresponding video content according to the video identification information, and when the corresponding video content is cached, the node is used as a second node, and the second node sends the switched video content to the first node.
7. The method for acquiring video content according to claim 6, further comprising:
and if the second node cached with the corresponding video content does not exist in the node network, the first node acquires the switched video content from the background server.
8. A system for acquiring video content based on P2P technology, comprising:
the background server is used for determining other node networks which are the same as the video channel of the first node and establish P2P connection according to the channel information, so that the first node establishes communication connection with one or more nodes in the node networks;
the first node is used for responding to an operation instruction for switching the video content and sending request information for acquiring the switched video content to a background server, wherein the request information comprises the identity identification information of the first node and the channel information of the switched video content; and determining a second node in the node network, which caches the switched video content, according to the identification information of the switched video content, and acquiring the switched video content from the second node.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010838393.9A 2020-08-19 2020-08-19 Method and system for obtaining video content with smooth CDN bandwidth Active CN112040332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010838393.9A CN112040332B (en) 2020-08-19 2020-08-19 Method and system for obtaining video content with smooth CDN bandwidth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010838393.9A CN112040332B (en) 2020-08-19 2020-08-19 Method and system for obtaining video content with smooth CDN bandwidth

Publications (2)

Publication Number Publication Date
CN112040332A true CN112040332A (en) 2020-12-04
CN112040332B CN112040332B (en) 2022-02-11

Family

ID=73577045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010838393.9A Active CN112040332B (en) 2020-08-19 2020-08-19 Method and system for obtaining video content with smooth CDN bandwidth

Country Status (1)

Country Link
CN (1) CN112040332B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660323A (en) * 2021-08-05 2021-11-16 百度在线网络技术(北京)有限公司 Method, apparatus, and computer-readable storage medium for communication between devices
CN114390338A (en) * 2022-01-26 2022-04-22 湖南快乐阳光互动娱乐传媒有限公司 Method and device for rapidly acquiring p2p video and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005606A (en) * 2006-12-31 2007-07-25 华为技术有限公司 Method and device for reducing medium playing delay
US20080144621A1 (en) * 2006-12-14 2008-06-19 At&T Knowledge Ventures, L.P. System and method for peer to peer video streaming
CN102510395A (en) * 2011-10-21 2012-06-20 合一网络技术(北京)有限公司 Flash video scheduling method based on peer to server peer (P2SP)
CN104822084A (en) * 2015-04-30 2015-08-05 华南理工大学 Concurrent-stream-based rapid channel switching method of P2P real-time playing system
US20170149859A1 (en) * 2015-11-20 2017-05-25 Le Holdings (Beijing) Co., Ltd. Method, device and system for playing network videos
CN107948670A (en) * 2016-10-12 2018-04-20 北京优朋普乐科技有限公司 A kind of small documents playback method and device
FR3066672A1 (en) * 2017-05-19 2018-11-23 Sagemcom Broadband Sas METHOD FOR COMMUNICATING AN IMMERSIVE VIDEO
US20190068701A1 (en) * 2017-08-31 2019-02-28 Boe Technology Group Co., Ltd. Content Scheduling Method Based on CDN and P2P Network, and Communication Network
CN109756774A (en) * 2017-11-07 2019-05-14 中兴通讯股份有限公司 A kind of method and device of OTT multicast channel switching
CN111556344A (en) * 2020-04-04 2020-08-18 网宿科技股份有限公司 Method, device, equipment and system for downloading video stream

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080144621A1 (en) * 2006-12-14 2008-06-19 At&T Knowledge Ventures, L.P. System and method for peer to peer video streaming
CN101005606A (en) * 2006-12-31 2007-07-25 华为技术有限公司 Method and device for reducing medium playing delay
CN102510395A (en) * 2011-10-21 2012-06-20 合一网络技术(北京)有限公司 Flash video scheduling method based on peer to server peer (P2SP)
CN104822084A (en) * 2015-04-30 2015-08-05 华南理工大学 Concurrent-stream-based rapid channel switching method of P2P real-time playing system
US20170149859A1 (en) * 2015-11-20 2017-05-25 Le Holdings (Beijing) Co., Ltd. Method, device and system for playing network videos
CN107948670A (en) * 2016-10-12 2018-04-20 北京优朋普乐科技有限公司 A kind of small documents playback method and device
FR3066672A1 (en) * 2017-05-19 2018-11-23 Sagemcom Broadband Sas METHOD FOR COMMUNICATING AN IMMERSIVE VIDEO
US20190068701A1 (en) * 2017-08-31 2019-02-28 Boe Technology Group Co., Ltd. Content Scheduling Method Based on CDN and P2P Network, and Communication Network
CN109756774A (en) * 2017-11-07 2019-05-14 中兴通讯股份有限公司 A kind of method and device of OTT multicast channel switching
CN111556344A (en) * 2020-04-04 2020-08-18 网宿科技股份有限公司 Method, device, equipment and system for downloading video stream

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660323A (en) * 2021-08-05 2021-11-16 百度在线网络技术(北京)有限公司 Method, apparatus, and computer-readable storage medium for communication between devices
CN114390338A (en) * 2022-01-26 2022-04-22 湖南快乐阳光互动娱乐传媒有限公司 Method and device for rapidly acquiring p2p video and electronic equipment

Also Published As

Publication number Publication date
CN112040332B (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US20210315034A1 (en) Wireless connection establishment method, apparatus, device, and storage medium
CN105635180A (en) Message pushing method and device
CN112040332B (en) Method and system for obtaining video content with smooth CDN bandwidth
WO2017161762A1 (en) Data transmission method, device and system
US20100085943A1 (en) Handover of wireless connections
US9906981B2 (en) Method and system for dynamic regulation and control of Wi-Fi scans
WO2021017771A1 (en) Service request processing method and related device
US10860280B2 (en) Display method and device
CN110839084A (en) Session management method, device, equipment and medium
CN113467910B (en) Overload protection scheduling method based on service level
CN108243222A (en) Server network architecture method and device
KR20210049541A (en) Edge computing device and method for controlling thereof
CN113132403A (en) Back-source method and device for content distribution network
CN106686635B (en) Data transmission method and device based on control and configuration protocol of wireless access point
CN110874314B (en) Pressure measurement method, device, equipment and medium
CN112653632A (en) Flow control realization method and device
CN113012695B (en) Intelligent control method and device, electronic equipment and computer readable storage medium
CN112152879B (en) Network quality determination method, device, electronic equipment and readable storage medium
CN114327918B (en) Method and device for adjusting resource amount, electronic equipment and storage medium
US20220224770A1 (en) Client driven cloud network access system and method
CN110856045B (en) Video processing method, electronic device, and storage medium
CN114844870A (en) Media stream acquisition method and device, electronic equipment and storage medium
CN112769960A (en) Active flow control method and system based on Nginx server
CN113904940A (en) Resource adjusting method and device, electronic equipment and computer readable storage medium
CN117478722B (en) P2P identifier allocation method, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant