WO2013097525A1 - 传输网络视频的方法及系统 - Google Patents
传输网络视频的方法及系统 Download PDFInfo
- Publication number
- WO2013097525A1 WO2013097525A1 PCT/CN2012/083358 CN2012083358W WO2013097525A1 WO 2013097525 A1 WO2013097525 A1 WO 2013097525A1 CN 2012083358 W CN2012083358 W CN 2012083358W WO 2013097525 A1 WO2013097525 A1 WO 2013097525A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video
- information
- buffer
- server
- terminal device
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/61—Network physical structure; Signal processing
- H04N21/6106—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
- H04N21/6125—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/612—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1021—Server selection for load balancing based on client or server locations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data redirection of data network streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/222—Secondary servers, e.g. proxy server, cable television Head-end
- H04N21/2225—Local VOD servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/63—Control 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/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64746—Control signals issued by the network directed to the server or the client
- H04N21/64761—Control signals issued by the network directed to the server or the client directed to the server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/63—Control 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
Definitions
- the present invention relates to the field of Internet technologies, and in particular, to a method and system for transmitting network video.
- a method for deploying a buffer in a network to assist network video transmission is as follows: The video resource is cached by a buffer device close to the user, and the network router receives the video request sent by the user, re-encapsulates the video request, and sends the video request to The buffer, the buffer decapsulates the video request and obtains the video resource according to the decapsulated message. If the video resource requested by the user is already buffered in the buffer, the buffer device immediately responds to the user and sends the video resource; The video resource requested by the user is not cached yet, and the buffer is connected to the video server and downloaded to the user.
- the inventors have found that at least the following problems exist in the prior art: in the process of processing a video request, the network router and the buffer data processing cost is relatively large; when the buffer is not yet cached to the user When requesting video resources, the buffer needs to connect to the video service.
- the server acquires video resources, and the terminal device needs to wait for a long time, and the user experience is low. Summary of the invention
- Embodiments of the present invention provide a method and system for transmitting network video to reduce data processing costs of network routers and buffers, reduce waiting time of terminal devices, and improve user experience.
- a method for transmitting a network video includes: transmitting, by a terminal device, video server name information in a video request message to a local domain name server, so that the local domain name server is configured according to the video server name information. Parsing out address information of a buffer corresponding to the video server name information;
- the buffer receives, by the terminal device, address information of the buffer sent by the local domain name server, and sending the video request information to the buffer according to address information of the buffer; If the video resource corresponding to the video identification information exists, the buffer sends the video resource to the terminal device;
- the buffer sends the redirection information to the terminal device;
- a terminal device According to another aspect of an embodiment of the present invention, a terminal device,
- the first sending module, the first receiving module, the second sending module, the third sending module, and the video receiving module are included, where:
- the first sending module is configured to send video server name information in the video request information to a local domain name server;
- the first receiving module is configured to receive address information of a buffer sent by the local domain name server, or receive address information of a manager sent by the local domain name server;
- the second sending module is configured to send the video request information to the buffer according to address information of the buffer
- the third sending module is configured to send the video request according to the address information of the manager Information is sent to the manager;
- the video receiving module is configured to: if a video resource corresponding to the video identification information in the video request information exists in the buffer, receive a video corresponding to the video identification information sent by the buffer a resource, or if the video resource corresponding to the video identification information in the video request information does not exist in the buffer, according to the address information of the video server and the video identification information in the redirect information Obtaining a video resource corresponding to the video identification information in the video server.
- a local domain name server a local domain name server
- the third receiving module, the first analyzing module, and the fourth sending module are included, where:
- the third receiving module is configured to receive video server name information sent by the terminal device, where the first parsing module is configured to parse the address information of the buffer according to the video server name information;
- the fourth sending module is configured to send address information of the buffer or address information of the manager to the terminal device.
- a manager includes a fourth receiving module, an obtaining module, a first screening module, and a fifth sending module, where:
- the fourth receiving module is configured to receive video request information sent by the terminal device, where the acquiring module is configured to obtain video resource information and load rate information saved in the multiple buffers;
- the first screening module is configured to acquire, according to video identification information in the video request information sent by the terminal device and video resource information saved in all buffers, all videos corresponding to the video identification information. a buffer of resources;
- the second screening module is configured to obtain a buffer with a minimum load rate according to load rate information of multiple buffers, or according to load rate information of all the buffers, where all of the videos are available And obtaining, in a buffer of the video resource corresponding to the information, a buffer with a minimum load rate; the fifth sending module, configured to send the video request information to the minimum load rate a buffer, or a buffer that is sent to the buffer having the smallest video resource corresponding to the video identification information.
- a buffer includes a fifth receiving module, a detecting unit, a sixth sending module, a seventh sending module, a sixth receiving module, a seventh receiving module, and an eighth sending module. among them:
- the fifth receiving module is configured to receive video request information sent by the terminal device, or the video request information sent by the manager;
- the detecting unit is configured to detect, according to the video identification information in the video request information, whether a video resource corresponding to the video identification information exists in the buffer;
- the sixth sending module is configured to: if the video resource corresponding to the video identification information exists in the buffer, send the video resource to the terminal device;
- the seventh sending module is configured to: if the video resource corresponding to the video identification information does not exist in the buffer, send the video server name information in the video request information to the auxiliary domain name server;
- the sixth receiving module is configured to receive address information of the video server sent by the secondary domain name server;
- the seventh receiving module is configured to acquire, according to the address information of the video server and the video identification information, a video resource corresponding to the video identification information in the video server, where the eighth sending module is configured to:
- the redirection information is sent to the terminal device, and the redirection information includes address information of the video server and the video identification information.
- a secondary domain name server includes an eighth receiving module, a third analyzing module, and a ninth sending module, where:
- the eighth receiving module is configured to receive video server name information sent by the buffer, where the third parsing module is configured to obtain address information of the video server according to the video server name information;
- the ninth sending module is configured to send the address information of the video server to the Punch.
- a system for transmitting network video includes a terminal device, a local domain name server, a buffer, and a secondary domain name server, wherein:
- the terminal device is configured to send the video server name information in the video request information to the local domain name server, and then receive the address information of the buffer sent by the local domain name server or the address information of the manager, and then according to the buffer
- the address information of the device is sent to the buffer, and if the video resource corresponding to the video identification information exists in the buffer, the video identification information sent by the buffer is received.
- a video resource or if the video resource corresponding to the video identification information does not exist in the buffer, receiving redirection information sent by the buffer, and according to the video server in the redirection information
- the address information and the video identification information acquire the video resource corresponding to the video identification information from the video server;
- the local domain name server is configured to receive the video server name information sent by the terminal device, and parse the address information of the buffer or the address information of the manager according to the video server name information, and then Transmitting the address information of the buffer or the address information of the manager to the terminal device;
- the buffer is configured to receive the video request information sent by the terminal device or the video request information sent by the manager, and detect according to the video identification information in the received video request information. Whether the video resource corresponding to the video identification information exists in the buffer, and if the video resource corresponding to the video identification information exists in the buffer, the video resource is sent to the terminal device, And if the video resource corresponding to the video identification information does not exist in the buffer, sending the video server name information in the video request information to the secondary domain name server, and then receiving the video sent by the secondary domain name server And obtaining the video resource corresponding to the video identification information in the video server according to the address information of the video server and the video identification information in the video request information, and sending the redirection information To the terminal device; And the auxiliary domain name server is configured to receive the video server name information sent by the buffer, obtain address information of the video server according to the video server name information, and send the address information to the buffer.
- the local domain name server is used to replace the network router to parse the video request information sent by the user; when there is no video resource required by the video request information sent by the user on the buffer, the buffer The video request information is parsed again by the secondary domain name server, and the parsed data is sent to the user's terminal device, so that the user's terminal device directly connects to the video server.
- the controller can also select a suitable buffer for the user according to the operation of each buffer.
- the local domain name server replaces the network router to parse the video request information sent by the user, thereby reducing the running burden of the network router; since only the specified information segment in the video request information is parsed The cost of the parsing process is reduced; when the video resource is not available on the buffer, the user's terminal device is directly connected to the video server to obtain video resources, thereby shortening the waiting time of the user and preventing the user from waiting for a long time.
- the black screen phenomenon has improved the user experience; the buffer is reasonably dispatched by the manager, thereby improving the load capacity of the system.
- FIG. 1 is a flowchart of a method for transmitting a network video according to Embodiment 1 of the present invention
- FIG. 2 is a flowchart of a method for transmitting a network video according to Embodiment 2 of the present invention.
- FIG. 5 is a schematic structural diagram of an apparatus for transmitting network video according to Embodiment 4 of the present invention
- FIG. 6 is a structural diagram of a system for transmitting network video according to Embodiment 5 of the present invention.
- FIG. 7 is a structural diagram of a system for transmitting network video according to Embodiment 6 of the present invention.
- An embodiment of the present invention provides a method for transmitting network video. As shown in FIG. 1, the method includes: S101: A terminal device sends video server name information in a video request message to a local domain name server.
- the terminal device sends the video server name information in the video request information to the local domain name server, so that the local domain name server parses the address information of the buffer according to the video server name information.
- the specific representation of the video request information may be
- URL Uniform Resource Locator
- the terminal device can use the URL access command as the video request information.
- the string of the URL access command is: http: ⁇ video.xyz.eom/a.flv.
- video.xyz.com is the host name of the video server
- a.flv is the specific video that you want to access
- the terminal device sends video.xyz.com as the video server name information to the local domain name server, and uses a.flv as the video identification. information.
- the terminal device receives address information of the buffer sent by the local domain name server, and sends the video request information to the buffer according to address information of the buffer. Device.
- the device Receiving, by the terminal device, address information of the buffer sent by the local domain name server, and sending the video request information to the buffer according to address information of the buffer, to facilitate the buffering
- the device identifies the video resource corresponding to the video according to the video in the video request information.
- the buffer After receiving the video request information sent by the terminal device, the buffer detects whether the video resource corresponding to the video identification information exists in the buffer, if the video identification information exists in the buffer If the corresponding video resource is forwarded to S104, if the video resource corresponding to the video identification information does not exist in the buffer, then the process proceeds to S105.
- the buffer sends the video resource to the terminal device.
- the buffer if the buffer is informed by the query that the video resource corresponding to the video identification information exists in the video resource that is cached by itself, the buffer directly sends the video resource to the terminal device. After the terminal device obtains the video resource corresponding to the video identification information, the process ends.
- the buffer sends redirection information to the terminal device.
- the redirection information includes: address information of the video server corresponding to the video server name information, and the video identification information.
- the address information of the video server having the video resource is obtained by using the auxiliary domain name server, and the auxiliary domain name server is configured to acquire the video server according to the video server name information. Address information.
- the terminal device acquires a video resource corresponding to the video identification information from the video server according to the address information of the video server and the video identification information in the redirection information.
- the local domain name server is configured to resolve the video server name information to
- the address information of the buffer may be parsed by: in the database list of the local domain name server, the video server name information and the address information corresponding to the video server name information are stored, wherein the address information is a buffer
- IP Internet Protocol
- the auxiliary domain name server is configured to parse the video server name information into the address information of the video server, and the parsing manner may be: in the database list of the secondary domain name server, the video server name information and the address information corresponding to the video server name information are stored.
- the address information is the IP address of the video server (ie, the address information of the video server).
- the local domain name server is used to replace the network router to parse the video request information sent by the user; when there is no video resource required by the video request information sent by the user, the buffer is assisted.
- the domain name server parses the video request information again, and sends the parsed data to the terminal device, so that the terminal device can directly connect to the video server.
- the local domain name server replaces the network router to parse the video request information sent by the user, thereby reducing the running burden of the network router; when the buffer does not have the required video resources, the terminal device can directly connect to the video server to obtain the video.
- the local domain name server only parses the specified pieces of information in the video request information, it can also reduce the cost of the parsing process.
- An embodiment of the present invention provides a method for transmitting a network video. As shown in FIG. 2, the method includes: S201: A terminal device sends video server name information in a video request message to a local domain name server.
- the terminal device sends the video server name information to the local domain name server, so as to facilitate the The domain name server parses the address information of the buffer according to the video server name information.
- the terminal device sends the video server name information to the local domain name server.
- the video server name information may be the host name of the video server where the video that the user wants to access is located, for example, port:
- the URL access command input by the user to the terminal device is: http://video.xyz.eom/a.flv, where video.xyz.com is the video server host name, a. flv is the specific video to be accessed, and the terminal device I don't know the IP address corresponding to video.xyz.com (that is, the address information of the video server). Therefore, I need to request the local domain name server to resolve the IP address corresponding to video.xyz.com.
- the local domain name server parses the address information of the buffer corresponding to the server name information according to the video server name information.
- the local domain name server parses the address information of the buffer corresponding to the video server name information according to the video server name information, and parses the address information of the buffer corresponding to the video server name information.
- the destination address required by the terminal device to send video request information for example:
- Video.xyz.com is the video server host name that is resolved by the local domain name server as the video server name information.
- the address information corresponding to the video server name information in the database list of the local domain name server is the IP address of the buffer corresponding to the video server name information (ie, the address information of the buffer), so that the local domain name server When parsing the video server name information, what is obtained is the IP address of the buffer corresponding to the video server name information, such as 210.1.1.1.
- the data processed by the local domain name server may only have video server name information (such as video.xyz.com), and does not need to process other extraneous data, thereby reducing the cost of the parsing process.
- video server name information such as video.xyz.com
- the terminal device receives address information of the buffer sent by the local domain name server.
- the buffer receives, by the terminal device, an address letter of the buffer sent by the local domain name server For example, in S205, the buffer detects, according to the video identification information in the video request information, whether the video resource corresponding to the video identification information exists in the buffer.
- S204 Send the video request information to the buffer according to the address information of the buffer.
- the terminal device after receiving the address information of the buffer sent by the local domain name server, the terminal device sends the video request information to the buffer corresponding to the server name information according to the address information of the buffer.
- the video request information sent by the terminal device to the buffer corresponding to the server name information may be an IP packet whose application layer is a GET message (a request message whose request method is GET), and the URL of the message It is: http://video.xyz.eom/a.flv. remains unchanged, but the destination address of the IP packet is 210.1.1.1, which is the IP address of the buffer (ie the address information of the buffer). .
- the buffer detects, according to the video identification information, whether a video resource corresponding to the video identification information exists in the buffer.
- the buffer After the video request information arrives at the buffer, the buffer detects whether there is a video resource corresponding to the video identification information in the video request information, for example:
- the buffer analyzes the IP packet as the video request information, such as http://video.xyz.eom/a.flv., in the URL of the IP packet, finds the video identification information (ie, the character a.flv It is known that the user requests the video resource corresponding to a.flv, and then the buffer queries whether all the video resources in the cache have video resources corresponding to a.flv.
- the video request information such as http://video.xyz.eom/a.flv.
- the terminal device receives the video resource sent by the buffer.
- the buffer directly sends the video resource to the terminal device. After the terminal device obtains the requested video resource, the process ends.
- the processes of the embodiments S201 to S206 of the present invention can improve the acquisition of video resources by the terminal device. Speed, and in the whole process, the local domain name server replaces the network router for data processing, and the network router only needs to send the local video request information to the local domain name server without any extra work, thus reducing the workload of the network router. . In addition, since the terminal device does not need to directly obtain video resources from the video server, the bandwidth of the metropolitan area network and the backbone network is saved.
- S207 If the video resource corresponding to the video identification information does not exist in the buffer, send the video server name information to the secondary domain name server by using the buffer.
- the buffer if the buffer knows that the video resource required by the terminal device does not exist in the buffered video resource, the buffer sends the video server name information in the video request information. To the secondary domain name server.
- the address information of the video server is obtained by the secondary domain name server according to the video server name information.
- the secondary domain name server may obtain the address information of the video server where the video resource required by the terminal device is located according to the video server name information sent by the buffer.
- the address information corresponding to the video server name information is the address information of the video server where the required video resource is located in the database list of the secondary domain name server, so that the secondary domain name server is parsing the name of the video server.
- the address information of the video server is obtained.
- the redirection information includes: address information of a video server having the video resource, and the video identification information.
- the video request sent by the terminal device needs to be redirected to the video server to directly obtain the video from the video server.
- Resources for example:
- the video request from the terminal device redirected to the video server is: Http://121.9.204.146/a.flv, where 121.9.204.146 is the IP address (address information of the video server) of the video server obtained by the buffer through the auxiliary domain name server.
- the terminal device can request the video server according to 121.9.204.146 (address information of the video server) and a.flv (video identification information). The required video resources.
- the terminal device after receiving the redirect message sent by the buffer, requests the video server to obtain the video resource according to the address information and the video identification information of the video server in the redirect message. After receiving the video request sent by the terminal device, the video server responds to the video request of the terminal device and sends the corresponding video resource.
- the terminal device when the terminal device cannot directly obtain the requested video resource from the buffer, the video server is requested to obtain the video resource. In this process, the terminal device does not need to wait for the buffer to acquire the video resource for a long time, and then downloads the video resource from the buffer. Therefore, the user's terminal device does not appear to wait for a long time and black screen, thereby improving The user experience.
- the buffer acquires video resources in the video server to the buffer according to the address information of the video server and the video identification information.
- the buffer requests the video server to acquire the video resource according to the address information and the video identification information of the video server, and the video server responds to the buffer after receiving the video request sent by the buffer. And sending the video resource requested by the buffer, after receiving the requested video resource, the buffer buffers the buffer, and when a subsequent user requests the same video resource, the buffer can directly send the video resource to the request. The user of this video resource.
- the local domain name server is configured to parse the video server name information into address information of the buffer, and the parsing manner may be: a database list in the local domain name server The video server name information and the address information corresponding to the video server name information are stored, wherein the address information is an IP address of the buffer (ie, address information of the buffer), so that the local domain name server is parsing the video server.
- the IP address of the buffer corresponding to the video server name information is finally obtained.
- the auxiliary domain name server is configured to parse the video server name information into the address information of the video server, and the parsing manner may be: in the database list of the secondary domain name server, the video server name information and the address information corresponding to the video server name information are stored.
- the address information is the IP address of the video server (ie, the address information of the video server), so that when the secondary domain name server resolves the video server name information, the IP address of the video server corresponding to the video server name information is finally obtained. .
- the local domain name server is used to replace the network router to parse the video request information sent by the user.
- the buffer is assisted.
- the domain name server parses the video request information again, and sends the parsed data to the user's terminal device, so that the user's terminal device can directly connect to the video server.
- the embodiment of the invention can replace the network router to parse the video request information sent by the user, thereby reducing the running burden of the network router; when the buffer does not have the required video resources, the user terminal device can directly connect to the video server to obtain the video resource. , thereby shortening the waiting time of the user, preventing the black screen phenomenon that the user appears due to long waiting, and improving the user experience. If only the specified pieces of information in the video request information are parsed, the cost of the parsing process can be reduced.
- An embodiment of the present invention provides a method for transmitting a network video.
- the method includes: This embodiment adds an implementation of the manager to participate in an invention solution based on Embodiment 2.
- a plurality of buffers corresponding to the video identification information may be generated, and the buffers are managed by one or more managers, depending on the situation (load condition, or proximity principle, etc.) Provide the most suitable buffer to the terminal, so that it can be more flexible for the user's end
- the end device deploys the buffer, and at the same time, through the centralized scheduling of the manager, the load balancing of each buffer can also be maintained.
- the manager is configured to receive the video request information sent by the terminal device, and then obtain video resource information and load rate information of all buffers, and then send the information according to the terminal device.
- the video identification information in the video request information and the video resource information of all the buffers acquire all buffers having video resources corresponding to the video identification information, and then according to all the buffers
- the load rate information acquires a buffer with the smallest load rate, or obtains a load ratio in the buffers of all the video resources corresponding to the video identification information according to the load rate information of all the buffers. a minimum buffer, and transmitting the video request information to the buffer with the lowest load rate, or to a buffer in the buffer having all the video resources corresponding to the video identification information The smallest buffer.
- the terminal device sends the video server name information in the video request information to the local domain name server.
- the terminal device sends the video server name information to the local domain name server, so that the local domain name server parses the address information of the manager according to the video server name information.
- the terminal device sends the video server name information to the local domain name server, and the video server name information may be the host name of the video server where the video that the user wants to access is located.
- S302 The local domain name server parses the address information of the manager according to the video server name information.
- the local domain name server parses out the address information of the manager according to the video server name information, and uses the address information of the manager as the destination address, for example:
- Video.xyz.com is the video server host name, and the local domain name server resolves the video server host name as a video server name information request, where the local domain name service
- the address information corresponding to the video server name information is the IP address of the manager (ie, the address information of the manager), so that the local domain name server obtains the manager when parsing the video server name information. IP address, such as 210 ⁇ 1.100.
- the data processed by the local domain name server may only have video server name information (such as video.xyz.com), and does not need to process other extraneous data, thereby reducing the cost of the parsing process.
- video server name information such as video.xyz.com
- S303 Receive address information of the manager sent by the local domain name server.
- the terminal device receives the address information of the manager sent by the local domain name server.
- the terminal device after receiving the address information of the manager sent by the local domain name server, the terminal device sends the video request information to the manager according to the address information of the manager, for example:
- the video request information sent by the terminal device to the manager may be 1 of the application layer is a GET message (request method is GET request message)?
- the packet has a URL of http://video.xyz.eom/a.flv., but the destination address of IP l is 210.1.1.100, which is the IP address of the manager (the address information of the manager).
- the manager obtains video resource information and load rate information of all buffers.
- a manager may be assigned in each cell or network area for centrally managing and scheduling all buffers and associated devices under the jurisdiction of the cell or network area.
- the condition referred to may be the current cached resource condition in the buffer and the load condition of the buffer.
- the current cached resource condition in the buffer is the most preferable condition, that is, the buffer for the terminal device is configured to have the video resource required by the user, so that the terminal device can quickly obtain the required video resource, and shorten the acquisition. The amount of time that a video resource needs to wait. Further, when there is a buffer with video resources required by the user, Multiple times, according to all the buffer load conditions with the video resources required by the user, the user is deployed with the least loaded buffer with the video resources required by the user, so that the terminal device can quickly obtain the required video resources.
- the buffer that is deployed can send the required video resources to the terminal device with a shorter response time and a higher transmission rate of the video data, thereby further shortening the waiting time for the terminal device to acquire the video resources.
- the manager can select the buffer with the smallest load, so that the buffer can quickly respond to the terminal device and send the heavy Directional information.
- the manager may deploy buffers in various manners, for example: after the manager selects a buffer ready for deployment, sends corresponding instruction information to the buffer.
- the buffer learns the terminal device that needs the video service according to the instruction information sent by the manager, and sends the buffered video resource required by the user to the terminal device.
- the implementation of the manager deployment buffer is not limited in the embodiment of the present invention, and may be any implementation well known to those skilled in the art.
- the method for managing and scheduling buffers through the manager may be:
- the buffer is powered on, sends an announcement message to the manager, informs the buffer that it has joined the network, can execute the scheduling command of the manager, and provides services for the user terminal device.
- the manager records the buffer address, and sends a query message to the buffer, requesting to query the video resource condition and the load condition currently buffered by the buffer.
- the buffer reports the current cached video resource condition and load status to the manager, and the manager marks the buffer as "Active".
- the manager then periodically sends a query message. For example: every 2 seconds, query the buffer's currently cached video resources and load conditions.
- the buffer After receiving the query request message of the manager, the buffer sends the currently cached video resource situation and the load status to the manager.
- the buffer is managed and scheduled by the manager, and may further include:
- the manager When the manager sends a query request message without receiving a response message from a buffer, The processor thinks that the buffer may be faulty, and marks the state of the buffer as "Ready”. If the response from the buffer is still not received after multiple queries, the manager will state the buffer. Marked as "Inactive” until the manager receives the response message from the buffer again, marking the status of the buffer as "Active”.
- the report message can be sent to the manager periodically to report the current cached resource status and load status.
- the manager acquires address information of all buffers having video resources corresponding to the video identification information.
- the manager acquires, according to the video identification information in the video request information, and the video resource information of all the buffers, all the buffers having the video resources corresponding to the video identification information. Address information.
- the manager may filter the buffer with the video resource corresponding to the video identification information according to the video identification information in the video request information and the video resource information of all buffers under the management of the manager. .
- the execution order of S305 and S306 may be undefined, that is, S306 may be performed first and then S305; or S305 and S306 may be performed at the same time.
- the manager obtains, according to the load rate information of all the buffers, a buffer with a minimum load rate among the buffers having all the video resources corresponding to the video identification information.
- the manager directly acquires the buffer with the smallest load rate among all the buffers under the jurisdiction. S310 to S314 are then executed by the buffer with the lowest load rate.
- the manager sends the video request information to the buffer.
- the manager sends the video request information to the buffer with the lowest load rate acquired, and the subsequent buffers in S309 through S314 also refer to the buffer with the lowest load rate.
- the manager can encapsulate a new layer of IP in the outer layer of the IP packet carrying the video request information. Header, the source address of the new IP header is the manager address, and the destination address is the selected buffer address.
- a video resource requested by the user has been cached in the buffer, and the buffer transmits the video resource to the user.
- the video request information sent by the terminal device is directly received by the manager. Therefore, when the video resource is sent to the terminal device, the buffer needs to be counterfeited into a manager (that is, the video resource is buffered).
- the original IP address in the IP packet sent with the video resource is changed to the IP address of the manager, and the destination address is still the terminal device, so that the terminal device considers the received video resource as management. Transmitted by the device, or send the video resource back to the manager, and then sent to the terminal device by the manager.
- the specific implementation of the buffer spoofing manager and the manager to send video resources to the terminal device is well known to those skilled in the art, and details are not described herein.
- the buffer knows that there is no video resource required by the terminal device in the buffered video resource, and the buffer sends the video server name information in the video request information to the secondary domain name server.
- the auxiliary domain name server acquires address information of the video server according to the video server name information.
- the secondary domain name server may obtain the address information of the video server where the required video resource is located according to the video server name information sent by the buffer.
- the address information corresponding to the video server name information is the address information of the video server where the required video resource is located in the database list of the secondary domain name server, so that the local domain name server obtains the video server name information when The address information of the video server.
- the redirection information includes: address information of a video server having the video resource, and the video identification information.
- the video resource requested by the user is not cached in the buffer.
- the terminal device needs to redirect to the video server to directly obtain the video resource from the video server.
- the terminal device acquires a video resource corresponding to the video identification information from the video server according to address information and video identification information of the video server in the redirection information.
- the terminal device after receiving the redirect message sent by the buffer, the terminal device requests the video server to obtain the video resource according to the address information and the video identification information of the video server in the redirect message, and the video server is authorized to pass the video server. After that, respond to the terminal device and send video resources. When the user cannot directly obtain the video resource from the buffer, the video server is requested to obtain the video resource immediately.
- the terminal device does not need to wait for the buffer to obtain the video resource for a long time, and then In order to download video resources from the buffer, the user's terminal device does not appear to wait for a long time and black screen, thereby improving the user experience.
- the buffer requests the video server to acquire the video resource according to the address information and the video identification information of the video server, and after receiving the video request sent by the buffer, the video server sends the video resource to the buffer response. After the buffer receives the requested video resource, it buffers it. When the subsequent user requests the same video resource, the buffer can directly send the video resource to the requesting user.
- the local domain name server is configured to parse the video server name information into the address information of the manager, and the parsing may be performed by: storing the video server name information and the video server name in the database list of the local domain name server. Address information corresponding to the information, wherein the address information is an IP address of the manager (ie, address information of the manager), so that the address When the domain name server resolves the video server name information, the IP address of the manager is finally obtained.
- the address information is an IP address of the manager (ie, address information of the manager)
- the auxiliary domain name server is configured to parse the video server name information into the address information of the video server, and the parsing manner may be: in the database list of the secondary domain name server, the video server name information and the address information corresponding to the video server name information are stored.
- the address information is the IP address of the video server (ie, the address information of the video server), so that when the secondary domain name server resolves the video server name information, the IP address of the video server is finally obtained.
- the local domain name server is used to replace the network router to parse the video request information sent by the user; when there is no video resource required by the video request information sent by the user on the buffer, the buffer is assisted.
- the domain name server parses the video request information again, and sends the parsed data to the user's terminal device, so that the user's terminal device can directly connect to the video server.
- the controller also selects a suitable buffer for the user based on the operation of each buffer.
- the embodiment of the present invention can replace the network router to parse the video request information sent by the user, thereby reducing the running burden of the network router; if only the specified information segment in the video request information is parsed, the parsing process can be mitigated.
- the black screen phenomenon improves the user experience; the buffer can be reasonably dispatched through the manager, thereby improving the load capacity of the system.
- An embodiment of the present invention provides an apparatus for transmitting network video.
- the apparatus includes: a terminal device, a local domain name server, a buffer, and a secondary domain name server.
- the terminal device includes: a first sending module 501, a first receiving module 502, and a second sending module.
- the first sending module 501 is configured to send a video server name letter in the video request information. Interested in the local domain name server.
- the first receiving module 502 is configured to receive address information of the buffer sent by the local domain name server, or receive address information of the manager sent by the local domain name server.
- the second sending module 503 is configured to send the video request information to the buffer according to the address information of the buffer.
- the third sending module 504 is configured to send the video request information to the manager according to the address information of the manager.
- the video receiving module 505 is configured to: if the video resource corresponding to the video identification information in the video request information exists in the buffer, receive the video identification information that is sent by the buffer a video resource, or if the video resource corresponding to the video identification information in the video request information does not exist in the buffer, according to the address information of the video server and the video identification information in the redirect information The video server obtains the video resource corresponding to the video identification information.
- the second receiving module 506 is configured to receive the redirection information sent by the buffer.
- the local domain name server includes: a third receiving module 507, a first parsing module 508, a fourth sending module 509, and a second parsing module 510.
- the third receiving module 507 is configured to receive video server name information sent by the terminal device.
- the first parsing module 508 is configured to parse the address information of the buffer according to the video server name information.
- the second parsing module 509 is configured to parse the address information of the manager according to the video server name information.
- the fourth sending module 510 is configured to send address information of the buffer or address information of the manager to the terminal device.
- the buffer includes: a fifth receiving module 516, a detecting unit 517, a sixth sending module 518, a seventh sending module 519, a sixth receiving module 520, a seventh receiving module 521, and an eighth sending module 522.
- the fifth receiving module 516 is configured to receive video request information sent by the terminal device, or the video request information sent by the manager.
- the detecting unit 517 is configured to detect, according to the video identification information in the video request information, whether a video resource corresponding to the video identification information exists in the buffer.
- the sixth sending module 518 is configured to send the video resource to the terminal device if the video resource corresponding to the video identification information exists in the buffer.
- the seventh sending module 519 is configured to send the video server name information in the video request information to the secondary domain name server if the video resource corresponding to the video identification information does not exist in the buffer.
- the sixth receiving module 520 is configured to receive address information of the video server sent by the secondary domain name server.
- the seventh receiving module 521 is configured to acquire, according to the address information of the video server and the video identification information, a video resource corresponding to the video identification information in the video server.
- the eighth sending module 522 is configured to send redirection information to the terminal device, where the redirection information includes address information of the video server and the video identification information.
- the secondary domain name server includes an eighth receiving module 523, a third parsing module 524, and a ninth sending module 525, where:
- the eighth receiving module 523 is configured to receive video server name information sent by the buffer.
- the third parsing module 524 is configured to obtain address information of the video server according to the video server name information.
- the ninth sending module 525 is configured to send address information of the video server to the buffer.
- the device for transmitting network video can resolve the video request information sent by the user by using the local domain name server instead of the network router; when the video resource required by the video request information sent by the user is not available on the buffer, the buffer The video request information is parsed again by the secondary domain name server, and the parsed data is sent to the user's terminal device, thereby making the user The terminal device can connect directly to the video server.
- the embodiment of the present invention can replace the network router to parse the video request information sent by the user, thereby reducing the running burden of the network router; if only the specified information segment in the video request information is parsed, the resolution process is mitigated.
- the black screen phenomenon improves the user experience.
- the device further includes a manager, where the manager includes a fourth receiving module 511, an obtaining module 512, a first screening module 513, a second screening module 514, and a fifth Send module 515.
- the manager includes a fourth receiving module 511, an obtaining module 512, a first screening module 513, a second screening module 514, and a fifth Send module 515.
- the fourth receiving module 511 is configured to receive video request information sent by the terminal device.
- the obtaining module 512 is configured to obtain video resource information and load rate information saved in multiple buffers.
- the first screening module 513 is configured to obtain, according to the video identification information in the video request information sent by the terminal device, and the video resource information saved in all the buffers, to obtain multiple corresponding to the video identification information.
- the second screening module 514 is configured to obtain a buffer with a minimum load rate according to load rate information of all buffers, or according to load rate information of all the buffers, A buffer having the smallest load factor is obtained in the buffer of the video resource corresponding to the identification information.
- the fifth sending module 515 is configured to send the video request information to the buffer with the lowest load rate, or to the buffer that has all the video resources corresponding to the video identification information.
- the buffer with the lowest load rate is configured to send the video request information to the buffer with the lowest load rate, or to the buffer that has all the video resources corresponding to the video identification information. The buffer with the lowest load rate.
- the manager of the embodiment of the present invention is capable of selecting a suitable buffer for the user according to the operation of each buffer by the manager. Compared with the prior art, the embodiment of the present invention can reasonably schedule buffers through the manager, thereby improving the load capacity of the system.
- Example 5 An embodiment of the present invention provides a system for transmitting network video. As shown in FIG. 6, the system includes a terminal device 601, a local domain name server 602, a buffer 603, a secondary domain name server 604, and a manager 605, where:
- the terminal device 601 is configured to send the video server name information in the video request information to the local domain name server, and then receive the address information of the buffer sent by the local domain name server, and then according to the address information of the buffer
- the video request information is sent to the buffer, and if the video resource corresponding to the video identification information exists in the buffer, the video resource corresponding to the video identification information sent by the buffer is received, or Receiving, in the buffer, the video resource corresponding to the video identification information, receiving the redirection information sent by the buffer, and according to the address information and location of the video server in the redirection information
- the video identification information acquires a video resource corresponding to the video identification information from the video server.
- the local domain name server 602 is configured to receive the video server name information sent by the terminal device, and parse the address information of the buffer according to the video server name information, and then send the buffer Address information to the terminal device.
- the buffer 603 is configured to receive the video request information sent by the terminal device, and detect, according to the video identification information in the received video request information, whether the video exists in the buffer. And identifying, by the video resource corresponding to the information, if the video resource corresponding to the video identification information exists in the buffer, sending the video resource to the terminal device, if the buffer does not exist in the buffer.
- the video resource corresponding to the video identification information, the video server name information in the video request information is sent to the secondary domain name server, and then the address information of the video server sent by the secondary domain name server is received, and according to the video server.
- the address information and the video identification information in the video request information acquire a video resource corresponding to the video identification information in the video server, and send the redirect information to the terminal device.
- the auxiliary domain name server 604 is configured to receive the video server name information sent by the buffer, and obtain address information of the video server according to the video server name information. And sent to the buffer.
- the system for transmitting network video can resolve the video request information sent by the user by using the local domain name server instead of the network router; when the video resource required by the video request information sent by the user is not available on the buffer, the buffer The video request information is parsed again by the secondary domain name server, and the parsed data is sent to the user's terminal device, so that the user's terminal device can directly connect to the video server.
- the embodiment of the present invention can replace the network router to parse the video request information sent by the user, thereby reducing the operational burden of the network router; if only the specified information segment in the video request information is parsed, the resolution can be reduced.
- the cost of the process when there is no required video resource on the buffer, the user's terminal device can directly connect to the video server to obtain video resources, thereby shortening the waiting time of the user and preventing the user from appearing for a long time waiting
- the black screen phenomenon improves the user experience.
- the embodiment of the present invention provides a system for transmitting network video.
- the system includes a terminal device 701, a local domain name server 702, a buffer 703, a secondary domain name server 704, and a manager 705, where:
- the terminal device 701 is configured to send the video server name information in the video request information to the local domain name server, and then receive the address information of the manager sent by the local domain name server, and the video is sent according to the address information of the manager.
- Sending the request information to the manager if the video resource corresponding to the video identification information exists in the buffer, receiving the video resource corresponding to the video identification information sent by the buffer, or Receiving, in the buffer, the video resource corresponding to the video identification information, receiving the redirection information sent by the buffer, and according to the address information and location of the video server in the redirection information
- the video identification information acquires a video resource corresponding to the video identification information from the video server.
- the local domain name server 702 is configured to receive the video server name information sent by the terminal device, and parse the address information of the manager according to the video server name information, and send the address information of the manager.
- the buffer 703 is configured to receive the video request information sent by the manager, and detect, according to the video identification information in the video request information, whether the video identification information exists in the buffer.
- Corresponding video resource if the video resource corresponding to the video identification information exists in the buffer, sending the video resource to the terminal device, if the video identification information does not exist in the buffer Corresponding video resource, sending the video server name information in the video request information to the secondary domain name server, and then receiving the address information of the video server sent by the secondary domain name server, and according to the address information of the video server And the video identification information in the video request information, acquiring a video resource corresponding to the video identification information in the video server, and sending the redirection information to the terminal device.
- the secondary domain name server 704 is configured to receive the video server name information sent by the buffer, obtain address information of the video server according to the video server name information, and send the address information to the buffer.
- the manager 705 is configured to receive the video request information sent by the terminal device, and then obtain video resource information and load rate information of all buffers, and then according to the video request information sent by the terminal device.
- the video identification information and the video resource information of all the buffers obtain all buffers having the video resources corresponding to the video identification information, and then obtain the minimum load rate according to the load rate information of all the buffers.
- Buffer, or according to the load rate information of all the buffers, in the buffers having all the video resources corresponding to the video identification information obtain a buffer with the smallest load rate, and
- the video request information is sent to the buffer with the lowest load rate, or to the buffer with the smallest load rate among the buffers having all the video resources corresponding to the video identification information.
- the system for transmitting network video can resolve the video request information sent by the user by using the local domain name server instead of the network router; when the video resource required by the video request information sent by the user is not available on the buffer, the buffer The video request information is parsed again by the secondary domain name server, and the parsed data is sent to the user's terminal device, so that the user's terminal device can directly connect to the video server; and the buffer can also be used according to each buffer by the manager. The operation is for the user to select the appropriate buffer.
- the embodiment of the present invention can replace the network router to parse the video request information sent by the user, thereby reducing the running burden of the network router; if only the specified information segment in the video request information is parsed, the parsing process can be mitigated.
- the black screen phenomenon improves the user experience; the buffer can be reasonably dispatched through the manager, thereby improving the load capacity of the system.
- the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种传输网络视频的方法及系统,涉及互联网技术领域,能够降低网络路由器和缓存器的数据处理成本,减少等待时间,提高用户体验。本发明的方法包括:终端设备发送视频请求信息中的视频服务器名称信息至本地域名服务器;所述终端设备接收所述本地域名服务器发送的所述缓冲器的地址信息,根据所述缓冲器的地址信息将所述视频请求信息发送至所述缓冲器;检测所述缓冲器中是否存在所述视频请求信息中的视频识别信息所对应的视频资源;若所述缓冲器中存在所述视频识别信息所对应的视频资源,则所述缓冲器将该视频资源发送至所述终端设备。本发明适用于传输网络视频资源。
Description
传输网络视频的方法及系统 本申请要求于 2011 年 12 月 28 日提交中国专利局、 申请号为
CN201110448651.3, 发明名称为" 传输网络视频的方法及系统" 的中国专 利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及互联网技术领域, 尤其涉及一种传输网络视频的方法及系 统。
背景技术
随着互联网技术的发展, 网络视频市场的逐渐扩展, 越来越多的用户 能够得到网络视频服务。 但是, 网络视频用户的增多导致网络视频流量急 剧增长, 而剧增的网络视频流量占用了大量网络资源, 例如: 在高峰时期, 北美地区绝大多数的网络带宽都被网络视频流量所占据, 并且城域网、 骨 干网以及网络路由器等网络设备面临着很大的运营压力。 同时, 剧增的网 络视频流量会降低现有网络视频的用户体验, 特别是在高峰时期, 用户在 观看视频时经常遇到停顿、 花块等问题。
一种在网络中部署緩存器来辅助网络视频传输的方法, 大致流程为: 通过靠近用户的緩存器设备緩存视频资源, 网络路由器接收用户发送的视 频请求, 将视频请求进行重封装后, 发送到緩存器, 緩存器解封装视频请 求后根据解封装后的报文获取视频资源, 如果緩存器中已经緩存了用户请 求的视频资源, 则緩存器设备立即给用户响应并发送视频资源; 若緩存器 上还没有緩存到用户所请求的视频资源, 则緩存器连接视频服务器并下载 视频资源然后再提供给用户。
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: 在对视频请求进行处理的过程中, 网络路由器和緩存器数据处理成本较大; 当緩存器上还没有緩存到用户请求的视频资源时, 緩存器需要连接视频服
务器并获取视频资源, 其间终端设备需要等待较长的时间, 用户体验较低。 发明内容
本发明的实施例提供一种传输网络视频的方法及系统, 以降低网络路 由器和緩存器的数据处理成本, 减少终端设备的等待时间, 改善用户体验。
根据本发明实施例的一个方面, 一种传输网络视频的方法, 包括: 终端设备发送视频请求信息中的视频服务器名称信息至本地域名服务 器, 以便于所述本地域名服务器根据所述视频服务器名称信息解析出所述 视频服务器名称信息对应的緩冲器的地址信息;
所述终端设备接收所述本地域名服务器发送的所述緩冲器的地址信 息 , 根据所述緩冲器的地址信息将所述视频请求信息发送至所述緩冲器; 若所述緩冲器中存在所述视频识别信息所对应的视频资源, 则所述緩 冲器将该视频资源发送至所述终端设备;
若所述緩冲器中不存在所述视频识别信息所对应的视频资源, 则所述 緩冲器将重定向信息发送至所述终端设备;
所述终端设备根据所述重定向信息从所述视频服务器中获取所述视频 识别信息所对应的视频资源。
根据本发明实施例的另一方面, 一种终端设备,
包括第一发送模块、 第一接收模块、 第二发送模块、 第三发送模块和 视频接收模块, 其中:
所述第一发送模块, 用于发送视频请求信息中的视频服务器名称信息 至本地域名服务器;
所述第一接收模块, 用于接收所述本地域名服务器发送的緩冲器的地 址信息, 或接收所述本地域名服务器发送的管理器的地址信息;
所述第二发送模块, 用于根据所述緩冲器的地址信息将所述视频请求 信息发送至所述緩冲器;
所述第三发送模块, 用于根据所述管理器的地址信息将所述视频请求
信息发送至所述管理器;
所述视频接收模块, 用于若所述緩冲器中存在所述视频请求信息中的 视频识别信息所对应的视频资源, 则接收所述緩冲器发送的所述视频识别 信息所对应的视频资源, 或若所述緩冲器中不存在所述视频请求信息中的 视频识别信息所对应的视频资源, 则根据重定向信息中的所述视频服务器 的地址信息和所述视频识别信息从所述视频服务器中获取所述视频识别信 息所对应的视频资源。
根据本发明实施例的再一方面, 一种本地域名服务器,
包括第三接收模块、 第一解析模块和第四发送模块, 其中:
所述第三接收模块, 用于接收终端设备发送的视频服务器名称信息; 所述第一解析模块, 用于根据所述视频服务器名称信息解析出緩冲器 的地址信息;
所述第四发送模块, 用于发送所述緩冲器的地址信息或管理器的地址 信息至所述终端设备。
根据本发明实施例的再一方面, 一种管理器, 包括第四接收模块、 获 取模块、 第一筛选模块和第五发送模块, 其中:
所述第四接收模块, 用于接收终端设备发送的视频请求信息; 所述获取模块, 用于获取多个緩冲器中保存的视频资源信息和负载率 信息;
所述第一筛选模块, 用于根据所述终端设备发送的所述视频请求信息 中的视频识别信息和所有緩冲器中保存的视频资源信息, 获取所有具有所 述视频识别信息所对应的视频资源的緩冲器;
所述第二筛选模块, 用于根据多个緩冲器的负载率信息, 获取负载率 最小的緩冲器, 或根据所述所有緩冲器的负载率信息, 在所述所有具有所 述视频识别信息所对应的视频资源的緩冲器中, 获取负载率最小的緩冲器; 所述第五发送模块, 用于将所述视频请求信息发送至所述负载率最小
的緩冲器, 或发送至在所述所有具有所述视频识别信息所对应的视频资源 的緩冲器中负载率最小的緩冲器。
根据本发明实施例的再一方面, 一种緩冲器, 包括第五接收模块、 检 测单元、 第六发送模块、 第七发送模块、 第六接收模块、 第七接收模块和 第八发送模块, 其中:
所述第五接收模块, 用于接收终端设备发送的视频请求信息, 或管理 器发送的所述视频请求信息;
所述检测单元, 用于根据所述视频请求信息中的视频识别信息, 检测 緩冲器中是否存在所述视频识别信息所对应的视频资源;
所述第六发送模块, 用于若所述緩冲器中存在所述视频识别信息所对 应的视频资源, 则将该视频资源发送至所述终端设备;
所述第七发送模块, 用于若所述緩冲器中不存在所述视频识别信息所 对应的视频资源, 则发送所述视频请求信息中的视频服务器名称信息至辅 助域名服务器;
所述第六接收模块, 用于接收所述辅助域名服务器发送的所述视频服 务器的地址信息;
所述第七接收模块, 用于根据所述视频服务器的地址信息和所述视频 识别信息, 获取视频服务器中的所述视频识别信息所对应的视频资源; 所述第八发送模块, 用于将重定向信息发送至所述终端设备, 所述重 定向信息包括所述视频服务器的地址信息和所述视频识别信息。
根据本发明实施例的再一方面, 一种辅助域名服务器, 包括第八接收 模块、 第三解析模块和第九发送模块, 其中:
所述第八接收模块, 用于接收緩冲器发送的视频服务器名称信息; 所述第三解析模块, 用于根据所述视频服务器名称信息获取视频服务 器的地址信息;
所述第九发送模块, 用于将所述视频服务器的地址信息发送至所述緩
冲器。
根据本发明实施例的又一方面, 一种传输网络视频的系统, 包括终端 设备、 本地域名服务器、 緩冲器和辅助域名服务器, 其中:
所述终端设备, 用于发送视频请求信息中的视频服务器名称信息至本 地域名服务器, 随后接收所述本地域名服务器发送的緩冲器的地址信息或 管理器的地址信息, 再根据所述緩冲器的地址信息将视频请求信息发送至 緩冲器, 若所述緩冲器中存在所述视频识别信息所对应的视频资源, 则接 收所述緩冲器发送的所述视频识别信息所对应的视频资源, 或若所述緩冲 器中不存在所述视频识别信息所对应的视频资源, 则接收所述緩冲器发送 的重定向信息, 并根据所述重定向信息中的所述视频服务器的地址信息和 所述视频识别信息从所述视频服务器中获取所述视频识别信息所对应的视 频资源;
所述本地域名服务器, 用于接收所述终端设备发送的所述视频服务器 名称信息, 并根据所述视频服务器名称信息解析出所述緩冲器的地址信息 或所述管理器的地址信息, 随后发送所述緩冲器的地址信息或管理器的地 址信息至所述终端设备;
所述緩冲器, 用于接收所述终端设备发送的所述视频请求信息或所述 管理器发送的所述视频请求信息, 并根据接收到的所述视频请求信息中的 视频识别信息, 检测所述緩冲器中是否存在所述视频识别信息所对应的视 频资源, 若所述緩冲器中存在所述视频识别信息所对应的视频资源, 则将 该视频资源发送至所述终端设备, 若所述緩冲器中不存在所述视频识别信 息所对应的视频资源, 则发送所述视频请求信息中的视频服务器名称信息 至辅助域名服务器, 随后接收所述辅助域名服务器发送的所述视频服务器 的地址信息, 并根据所述视频服务器的地址信息和所述视频请求信息中的 视频识别信息, 获取视频服务器中的所述视频识别信息所对应的视频资源, 并将所述重定向信息发送至所述终端设备;
所述辅助域名服务器, 用于接收所述緩冲器发送的所述视频服务器名 称信息, 根据所述视频服务器名称信息获取所述视频服务器的地址信息并 发送至所述緩冲器。
本发明实施例的传输网络视频的方法及系统, 通过本地域名服务器代 替网络路由器解析用户发送的视频请求信息; 在緩冲器上没有用户发送的 视频请求信息所要求的视频资源时, 緩冲器通过辅助域名服务器再次解析 视频请求信息, 并将解析后的数据发送给用户的终端设备, 从而使用户的 终端设备直接连接视频服务器。
可选地, 在解析的过程中可以只对需要进行处理的信息段进行解析。 可选地, 还可以通过管理器根据各个緩冲器的运行情况为用户选择合适的 緩冲器。
与现有技术相比, 本发明实施例中, 本地域名服务器代替网络路由器 解析用户发送的视频请求信息, 从而减少了网络路由器的运行负担; 由于 只对视频请求信息中的指定信息段进行解析从而减轻了解析过程所消耗的 成本; 在緩冲器上没有所需视频资源时使用户的终端设备直接连接视频服 务器以获得视频资源, 从而减短了用户的等待时间, 防止了用户因长时间 等待而出现的黑屏现象, 提高了用户体验; 通过管理器合理调度緩冲器, 从而提高了系统的负载能力。
附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例的描 述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅 仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造 性劳动的前提下, 还可以根据这些附图获得其它的附图。
图 1为本发明实施例 1提供的传输网络视频的方法的流程图;
图 2为本发明实施例 2提供的传输网络视频的方法的流程图;
图;
图 5为本发明实施例 4提供的传输网络视频的装置的结构示意图; 图 6为本发明实施例 5提供的传输网络视频的系统的结构图;
图 7为本发明实施例 6提供的传输网络视频的系统的结构图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不 是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。
为使本发明技术方案的优点更加清楚, 下面结合附图和实施例对本发 明作详细说明。
实施例 1
本发明实施例提供一种传输网络视频的方法,如图 1所示,该方法包括: S101, 终端设备发送视频请求信息中的视频服务器名称信息至本地域 名服务器。
终端设备发送视频请求信息中的视频服务器名称信息至本地域名服务 器, 以便于所述本地域名服务器根据所述视频服务器名称信息解析出緩冲 器的地址信息。 在实际应用中, 所述视频请求信息的具体表现形式可以为
URL ( Uniform Resource Locator , 统一资源定位符)访问命令, 例如:
终端设备可以将 URL访问命令作为视频请求信息, 比如: URL访问命 令的字符串为: http:〃 video.xyz.eom/a.flv。 其中 video.xyz.com为视频服务器 的主机名称, a.flv是想访问的具体视频, 终端设备将 video.xyz.com作为视频 服务器名称信息发送至本地域名服务器, 并将 a.flv作为视频识别信息。
S102 , 所述终端设备接收所述本地域名服务器发送的所述緩冲器的地 址信息, 根据所述緩冲器的地址信息将所述视频请求信息发送至所述緩冲
器。
所述终端设备接收所述本地域名服务器发送的所述緩冲器的地址信 息, 根据所述緩冲器的地址信息将所述视频请求信息发送至所述緩冲器, 以便于所述緩冲器根据所述视频请求信息中的视频识别信息所对应的视频 资源。
5103 , 检测所述緩冲器中是否存在所述视频请求信息中的视频识别信 息所对应的视频资源。
所述緩冲器在接收到终端设备发送的视频请求信息后, 检测所述緩冲 器中是否存在所述视频识别信息所对应的视频资源, 若所述緩冲器中存在 所述视频识别信息所对应的视频资源, 则转 S104 , 若所述緩冲器中不存在 所述视频识别信息对应的视频资源, 则转 S 105。
5104, 緩冲器将该视频资源发送至所述终端设备。
在一个实施例中, 如果緩冲器经过查询得知, 自身緩存的视频资源中 存在所述视频识别信息对应的视频资源, 则緩冲器直接将该视频资源发送 至所述终端设备, 在所述终端设备获取到所述视频识别信息对应的视频资 源后, 流程结束。
5105 , 所述緩冲器将重定向信息发送至所述终端设备。
其中, 所述重定向信息包括: 所述视频服务器名称信息对应的视频服 务器的地址信息、 所述视频识别信息。
可选的, 所述具有所述视频资源的视频服务器的地址信息是所述緩冲 器通过辅助域名服务器获取的, 所述辅助域名服务器用于根据所述视频服 务器名称信息获取所述视频服务器的地址信息。
5106 , 所述终端设备根据所述重定向信息中的所述视频服务器的地址 信息和所述视频识别信息从所述视频服务器中获取所述视频识别信息所对 应的视频资源。
在一个实施例中, 本地域名服务器用于将视频服务器名称信息解析为
緩冲器的地址信息, 解析的方式可以是: 在本地域名服务器的数据库列表 中, 存有视频服务器名称信息以及与该视频服务器名称信息所对应的地址 信息,其中,该地址信息为緩冲器的网络协议 IP ( Internet Protocol )地址(即 緩冲器的地址信息), 本地域名服务器在解析视频服务器名称信息时, 最终 得到的是视频服务器名称信息对应的緩冲器的 IP地址。
辅助域名服务器用于将视频服务器名称信息解析为视频服务器的地址 信息, 解析的方式可以是: 在辅助域名服务器的数据库列表中, 存有视频 服务器名称信息以及与视频服务器名称信息所对应的地址信息, 其中, 该 地址信息为视频服务器的 IP地址(即视频服务器的地址信息), 辅助域名服 务器在解析视频服务器名称信息时, 最终得到的是视频服务器名称信息对 应的视频服务器的 IP地址。
本发明实施例的传输网络视频的方法, 通过本地域名服务器代替网络 路由器解析用户发送的视频请求信息; 当緩冲器上没有用户发送的视频请 求信息所要求的视频资源时, 緩冲器通过辅助域名服务器再次解析视频请 求信息, 并将解析后的数据发送给终端设备, 从而使终端设备能够直接连 接视频服务器。 本发明实施例中, 本地域名服务器代替网络路由器解析用 户发送的视频请求信息, 从而减少网络路由器的运行负担; 在緩冲器上没 有所需视频资源时能够使终端设备直接连接视频服务器以获得视频资源, 从而减短了用户的等待时间, 防止了用户因长时间等待而出现的黑屏现象, 改善了用户体验。 如果本地域名服务器只对视频请求信息中的指定信息段 进行解析, 还可减轻解析过程所消耗的成本。
实施例 2
本发明实施例提供一种传输网络视频的方法,如图 2所示,该方法包括: S201, 终端设备发送视频请求信息中的视频服务器名称信息至本地域 名服务器。
终端设备发送视频服务器名称信息至本地域名服务器, 以便于所述本
地域名服务器根据所述视频服务器名称信息解析出緩冲器的地址信息。 在一个实施例中, 终端设备将视频服务器名称信息发送至本地域名服 务器。 视频服务器名称信息可以是用户本想访问的视频所在的视频服务器 的主机名称, 例 ¾口:
用户向终端设备输入的 URL访问命令是: http://video.xyz.eom/a.flv, 其 中, video.xyz.com是视频服务器主机名称, a. flv是想访问的具体视频, 终端 设备并不知道 video.xyz.com所对应的 IP地址(即视频服务器的地址信息), 因此需向本地域名服务器请求解析 video.xyz.com所对应的 IP地址。
S202, 本地域名服务器根据所述视频服务器名称信息解析出所述服务 器名称信息对应的緩冲器的地址信息。
在一个实施例中, 本地域名服务器根据视频服务器名称信息解析出所 述视频服务器名称信息对应的緩冲器的地址信息, 并将解析出的所述视频 服务器名称信息对应的緩冲器的地址信息作为终端设备用于发送视频请求 信息所需的目的地址, 例如:
video.xyz.com是视频服务器主机名称,本地域名服务器将其作为视频服 务器名称信息进行解析。 其中, 在本地域名服务器的数据库列表中, 该视 频服务器名称信息所对应的地址信息为所述视频服务器名称信息对应的緩 冲器的 IP地址(即緩冲器的地址信息), 使得本地域名服务器在解析视频服 务器名称信息时, 得到的是所述视频服务器名称信息对应的緩冲器的 IP地 址, 如 210.1.1.1。
可选地, 本地域名服务器所处理的数据中可以只有视频服务器名称信 息 (比如 video.xyz.com ), 不需处理其他无关的数据, 从而减少解析过程所 消耗的成本。
S203 , 所述终端设备接收所述本地域名服务器发送的所述緩冲器的地 址信息。
所述终端设备接收所述本地域名服务器发送的所述緩冲器的地址信
息, 以便于在 S205中所述緩冲器根据所述视频请求信息中的视频识别信息, 检测所述緩冲器中是否存在所述视频识别信息所对应的视频资源。
5204, 根据所述緩冲器的地址信息将所述视频请求信息发送至所述緩 冲器。
在一个实施例中, 终端设备收到本地域名服务器发送的所述緩冲器的 地址信息后, 根据緩冲器的地址信息将所述视频请求信息发送至所述服务 器名称信息对应的緩冲器, 例如: 所述终端设备向所述服务器名称信息对 应的緩冲器发送的视频请求信息可以是应用层为 GET 报文(请求方法为 GET的请求报文) 的 IP报文, 报文的 URL为: http://video.xyz.eom/a.flv.保持 不变, 但所述 IP报文的目的地址为 210.1.1.1 , 即緩冲器的 IP地址(即緩冲器 的地址信息)。
5205 , 所述緩冲器根据所述视频识别信息检测所述緩冲器中是否存在 所述视频识别信息所对应的视频资源。
所述视频请求信息到达所述緩冲器后, 所述緩冲器检测自身是否存在 所述视频请求信息中的视频识别信息所对应的视频资源, 例如:
所 述緩 冲 器 分析作 为 视频 请 求信 息 的 IP报文 , 如 http://video.xyz.eom/a.flv. , 在该 IP报文的 URL中, 找到视频识别信息 (即字 符 a.flv ), 就知道用户请求的是 a.flv对应的视频资源, 之后所述緩冲器在所 緩存的全部视频资源中查询是否存在 a.flv对应的视频资源。
5206, 若所述緩冲器中存在所述视频识别信息所对应的视频资源, 则 所述终端设备接收所述緩冲器发送的所述视频资源。
在一个实施例中, 如果所述緩冲器经过查询得知, 自身緩存的视频资 源中存在所述终端设备所需视频资源, 则所述緩冲器直接将该视频资源发 送至所述终端设备, 在所述终端设备获取到所请求的视频资源后, 流程结 束。
本发明实施例 S201至 S206的流程, 能够提高终端设备获取视频资源的
速度, 并且整个流程中, 本地域名服务器代替网络路由器进行数据处理, 网络路由器只需把本地视频请求信息发送给本地域名服务器, 而不需要做 任何的额外工作, 因此, 降低了网络路由器的工作负荷。 另外, 由于终端 设备不需要直接从视频服务器上获取视频资源, 从而节省了城域网以及骨 干网的带宽。
可选地, S207 , 若所述緩冲器中不存在所述视频识别信息所对应的视 频资源, 则通过所述緩冲器将所述视频服务器名称信息发送至辅助域名服 务器。
在一个实施例中, 如果所述緩冲器经过查询得知, 緩存的视频资源中 不存在所述终端设备所需视频资源, 则所述緩冲器将视频请求信息中的视 频服务器名称信息发送至所述辅助域名服务器。
5208 , 通过所述辅助域名服务器根据所述视频服务器名称信息获取所 述视频服务器的地址信息。
在本实施例中, 所述辅助域名服务器可以根据所述緩冲器发送的所述 视频服务器名称信息获取所述终端设备所需视频资源所在的视频服务器的 地址信息。 其中, 在所述辅助域名服务器的数据库列表中, 所述视频服务 器名称信息所对应的地址信息为所需视频资源所在的视频服务器的地址信 息, 使得所述辅助域名服务器在解析所述视频服务器名称信息时, 得到的 是该视频服务器的地址信息。
5209, 通过所述緩冲器接收重定向信息。
其中, 所述重定向信息包括: 具有所述视频资源的视频服务器的地址 信息、 所述视频识别信息。
在一个实施例中, 当緩冲器中不存在緩存用户所请求的视频资源时, 为了避免用户长时间等待, 需要将终端设备发出的视频请求重定向至视频 服务器, 以直接从视频服务器获取视频资源, 例如:
被重定向至视频服务器的终端设备发出 的视频请求为:
http://121.9.204.146/a.flv, 其中 121.9.204.146为緩冲器通过辅助域名服务器 解析所获得的视频服务器的 IP地址(视频服务器的地址信息)。 当緩冲器将 被重定向至视频服务器的视频请求发送至终端设备后, 终端设备就可以根 据 121.9.204.146 (视频服务器的地址信息)以及 a.flv (视频识别信息)向视 频服务器去请求获取所需的视频资源。
同时, 在所述緩冲器执行 S211。
S210, 根据所述重定向信息中的所述视频服务器的地址信息和所述视 频识别信息从所述视频服务器中获取所述视频识别信息所对应的视频资 源。
在一个实施例中, 终端设备在收到緩冲器发送的重定向消息后, 根据 重定向消息中的视频服务器的地址信息和视频识别信息, 向视频服务器请 求获取视频资源。 视频服务器接收到终端设备发送的视频请求后响应终端 设备的视频请求并发送相应的视频资源。 本发明实施例中, 当终端设备无 法从緩冲器上直接获取到所请求的视频资源时, 转而立即向视频服务器请 求获取视频资源。 在此过程中, 终端设备不需要长时间等待緩冲器先去获 取视频资源, 然后再从緩冲器下载视频资源, 因此, 用户的终端设备不会 出现长时间等待而黑屏的现象, 从而改善了用户体验。
可选地, S211 , 所述緩冲器根据所述视频服务器的地址信息和所述视 频识别信息获取视频服务器中的视频资源至所述緩冲器。
可选地, 在一个实施例中, 緩冲器根据视频服务器的地址信息和视频 识别信息向视频服务器请求获取视频资源, 视频服务器在接收到緩冲器发 送的视频请求后, 向緩冲器响应并发送该緩冲器请求的视频资源, 该緩冲 器收到所请求的视频资源之后, 将其緩存, 当后续某个用户请求相同视频 资源时, 緩冲器可直接将视频资源发送给请求该视频资源的用户。
在一个实施例中, 本地域名服务器用于将视频服务器名称信息解析为 緩冲器的地址信息, 解析的方式可以是: 在本地域名服务器的数据库列表
中, 存有视频服务器名称信息以及与视频服务器名称信息所对应的地址信 息, 其中, 该地址信息为緩冲器的 IP地址(即緩冲器的地址信息), 使得本 地域名服务器在解析视频服务器名称信息时, 最终得到的是所述视频服务 器名称信息对应的緩冲器的 IP地址。
辅助域名服务器用于将视频服务器名称信息解析为视频服务器的地址 信息, 解析的方式可以是: 在辅助域名服务器的数据库列表中, 存有视频 服务器名称信息以及与视频服务器名称信息所对应的地址信息, 其中, 该 地址信息为视频服务器的 IP地址(即视频服务器的地址信息), 使得辅助域 名服务器在解析视频服务器名称信息时, 最终得到的是所述视频服务器名 称信息对应的视频服务器的 IP地址。
本发明实施例的传输网络视频的方法, 通过本地域名服务器代替网络 路由器解析用户发送的视频请求信息, 在緩冲器上没有用户发送的视频请 求信息所要求的视频资源时, 緩冲器通过辅助域名服务器再次解析视频请 求信息, 并将解析后的数据发送给用户的终端设备, 从而使用户的终端设 备能够直接连接视频服务器。 本发明实施例能够代替网络路由器解析用户 发送的视频请求信息, 从而减少了网络路由器的运行负担; 在緩冲器上没 有所需视频资源时能够使用户的终端设备直接连接视频服务器以获得视频 资源, 从而减短了用户的等待时间, 防止了用户因长时间等待而出现的黑 屏现象, 提高了用户体验。 如果只对视频请求信息中的指定信息段进行解 析, 还可以减轻解析过程所消耗的成本。
实施例 3
本发明实施例提供一种传输网络视频的方法,如图 3所示,该方法包括: 本实施例在实施例 2的基础上增加了管理器参与发明方案的实施。 在本 发明的实际应用中, 会出现多个对应所述视频识别信息的緩冲器, 这些緩 冲器由一个或多个管理器管理, 所述管理器根据情况(负载情况, 或者就 近原则等) 向终端提供最合适的緩冲器, 从而可以更加灵活的为用户的终
端设备部署緩冲器, 同时, 通过管理器的集中调度, 还可以保持各緩冲器 的负载平衡。
具体的, 在本实施例中, 所述管理器用于接收所述终端设备发送的所 述视频请求信息, 之后获取所有緩冲器的视频资源信息和负载率信息, 再 根据所述终端设备发送的所述视频请求信息中的所述视频识别信息以及所 述所有緩冲器的视频资源信息, 获取所有具有所述视频识别信息所对应的 视频资源的緩冲器, 然后根据所述所有緩冲器的负载率信息获取负载率最 小的緩冲器, 或根据所述所有緩冲器的负载率信息, 在所述所有具有所述 视频识别信息所对应的视频资源的緩冲器中, 获取负载率最小的緩冲器, 并将所述视频请求信息发送至所述负载率最小的緩冲器, 或发送至在所述 所有具有所述视频识别信息所对应的视频资源的緩冲器中负载率最小的緩 冲器。
本实施例的方法包括:
5301, 终端设备发送视频请求信息中的视频服务器名称信息至本地域 名服务器。
终端设备发送视频服务器名称信息至本地域名服务器, 以便于所述本 地域名服务器根据所述视频服务器名称信息解析出管理器的地址信息。
在一个实施例中, 终端设备发送视频服务器名称信息至本地域名服务 器, 该视频服务器名称信息可以是用户本想访问的视频所在的视频服务器 的主机名称。
5302, 所述本地域名服务器根据所述视频服务器名称信息解析出所述 管理器的地址信息。
在一个实施例中, 本地域名服务器根据视频服务器名称信息解析出管 理器的地址信息, 并将管理器的地址信息作为目的地址, 例如:
video.xyz.com是视频服务器主机名称, 本地域名服务器将视频服务器 主机名称作为视频服务器名称信息请求进行解析, 其中, 在本地域名服务
器的数据库列表中, 该视频服务器名称信息所对应的地址信息是为管理器 的 IP地址(即管理器的地址信息), 使得本地域名服务器在解析视频服务器 名称信息时, 得到的是管理器的 IP地址, 如 210丄 1.100。
可选地, 本地域名服务器所处理的数据中可以只有视频服务器名称信 息 (比如 video.xyz.com ), 不需处理其他无关的数据, 从而减少解析过程所 消耗的成本。
5303 , 接收所述本地域名服务器发送的所述管理器的地址信息。
在一个实施例中, 终端设备接收本地域名服务器发送的管理器的地址 信息。
5304, 根据所述管理器的地址信息将所述视频请求信息发送至所述管 理器。
在一个实施例中, 终端设备收到本地域名服务器发送的管理器的地址 信息后, 根据管理器的地址信息将视频请求信息发送至管理器, 例如:
终端设备向管理器发送的视频请求信息可以是应用层为 GET报文(请 求方法为 GET的请求报文)的1?报文,报文的 URL为 http://video.xyz.eom/a.flv. 不变, 但 IP l的目的地址为 210.1.1.100, 即管理器的 IP地址(管理器的地 址信息)。
5305 , 管理器获取所有緩冲器的视频资源信息和负载率信息。
在一个实施例中, 在每一个小区或网络区域中可以分配一个管理器, 该管理器用于集中管理及调度该小区或网络区域中所辖的所有的緩冲器及 相关设备。
管理器为终端设备部署緩冲器的时 , 所参照的条件可以是緩冲器中的 当前緩存的资源情况以及緩冲器的负载情况。 其中, 緩冲器中的当前緩存 的资源情况为最优选的条件, 即优先为终端设备部署具有用户所需视频资 源的緩冲器, 以便于终端设备能够迅速获取所需的视频资源, 缩短获取视 频资源所需等待的时间。 进一步的, 当具有用户所需视频资源的緩冲器有
多个时, 再根据所有具有用户所需视频资源的緩冲器负载情况, 为用户部 署负载最小的具有用户所需视频资源的緩冲器, 以便于终端设备在迅速获 取所需的视频资源的同时, 保证被部署的緩冲器能够以较短的响应时间和 较高的视频数据的传输码率, 向终端设备发送所需的视频资源, 从而进一 步缩短终端设备获取视频资源所需等待的时间。 更进一步的, 当管理器所 辖的所有緩冲器都未緩存用户所需的视频资源时, 管理器可以选择负载最 小的緩冲器, 以便于该緩冲器能够迅速响应终端设备并发送重定向信息。
在本发明的实际应用中, 管理器部署緩冲器的方式可以有多种, 例如: 在管理器选定了准备用于部署的緩冲器后, 向该緩冲器发送相应的指令信 息, 緩冲器根据管理器发送的指令信息获悉需要视频服务的终端设备, 并 将所緩存的用户所需的视频资源发送至该终端设备。 本发明实施例对管理 器部署緩冲器的实现方式不做限定, 可以是本领域技术人员所熟知的任意 实现方式。
具体的, 如图 4所示, 通过管理器管理及调度緩冲器的方法可以是:
1 )、 緩冲器上电, 发送通告消息给管理器, 告知緩冲器已经加入到网 络中, 可以执行管理器的调度命令, 并为用户终端设备提供服务。
2 )、 管理器记录緩冲器地址, 并向緩冲器发送查询消息, 请求查询緩 冲器当前緩存的视频资源情况以及负载情况。
3 )、 緩冲器将当前緩存的视频资源情况以及负载情况上报给管理器, 管理器将此緩冲器标注为 "Active"状态。
4 )、 管理器随后周期性发送查询消息。 比如: 每 2秒一次, 查询緩冲器 当前緩存的视频资源情况以及负载情况。
5 )、 緩冲器收到管理器的查询请求消息后, 将当前緩存的视频资源情 况以及负载情况上才艮给管理器。
可选地, 通过管理器管理及调度緩冲器, 还可以包括:
当管理器发送查询请求消息而没有收到某个緩冲器的响应消息时, 管
理器认为緩冲器可能出现故障, 将该緩冲器的状态标注为 "Ready"状态, 如果经过多次查询依旧没有收到来自该緩冲器的响应, 管理器将该緩冲器 的状态标注为 "Inactive"状态, 直到管理器再次收到该緩冲器的响应消息后 将该緩冲器的状态标注为 "Active"状态。
緩冲器正常上电后, 如果没有收到管理器的查询消息, 也可以周期性 主动发送报告消息给管理器, 报告自身当前緩存的资源情况以及负载情况。
5306, 所述管理器获取所有具有所述视频识别信息所对应的视频资源 的緩冲器的地址信息。
其中, 所述管理器根据所述视频请求信息中的所述视频识别信息, 以 及所述所有緩冲器的视频资源信息, 获取所有具有所述视频识别信息所对 应的视频资源的緩冲器的地址信息。
在一个实施例中, 管理器可以根据视频请求信息中的视频识别信息以 及该管理器所辖的所有緩冲器的视频资源信息, 筛选出具有该视频识别信 息所对应的视频资源的緩冲器。
可选地, S305和 S306的执行顺序可以不做限定, 即, 可以先执行 S306 再执行 S305; 或者同时执行 S305和 S306。
5307 , 所述管理器根据所述所有緩冲器的负载率信息, 在所述所有具 有所述视频识别信息所对应的视频资源的緩冲器中, 获取负载率最小的緩 冲器。
其中, 若所述管理器所辖的所有緩冲器中都没有视频识别信息所对应 的视频资源, 则所述管理器直接获取所辖的所有緩冲器当中负载率最小的 緩冲器。 再通过该负载率最小的緩冲器执行 S310至 S314。
5308, 所述管理器将所述视频请求信息发送至所述緩冲器。
在一个实施例中, 管理器将视频请求信息发送给所获取的负载率最小 的緩冲器, 且之后的 S309至 S314中的緩冲器也都是指该负载率最小的緩冲 器。此处, 管理器可以在携带视频请求信息的 IP报文的外层再封装一层新 IP
头, 新 IP头的源地址为管理器地址, 目的地址为所选定的緩冲器地址。
5309, 若所述緩冲器中存在所述视频识别信息所对应的视频资源, 则 接收所述緩冲器发送的所述视频资源。
在一个实施例中, 緩冲器中已经緩存有用户请求的视频资源, 緩冲器 将该视频资源发送给用户。 其中, 由于本实施例中是由管理器直接接收终 端设备发送的视频请求信息, 因此, 緩冲器在将视频资源发送给终端设备 时, 需要仿冒成管理器 (即在緩冲器将视频资源发送给终端设备时, 将需 要随视频资源发送的 IP报文中的原 IP地址改为管理器的 IP地址,而目的地址 依旧为终端设备, 从而使终端设备将接收到的视频资源认为是管理器发送 的), 或者将视频资源发送回管理器, 再由管理器发送至终端设备。 其中, 緩冲器仿冒管理器以及管理器发送视频资源至终端设备的具体实现方式已 为本领域技术人员所熟知, 在此不作赘述。
在终端设备获取到所请求的视频资源后, 流程结束。
5310, 若所述緩冲器中不存在所述视频识别信息所对应的视频资源, 则通过所述緩冲器将所述视频服务器名称信息发送至辅助域名服务器。
在一个实施例中, 通过緩冲器经过查询得知, 所緩存的视频资源中不 存在终端设备所需视频资源, 则緩冲器将视频请求信息中的视频服务器名 称信息发送至辅助域名服务器。
5311 , 所述辅助域名服务器根据所述视频服务器名称信息获取所述视 频服务器的地址信息。
在一个实施例中, 辅助域名服务器可以根据緩冲器发送的视频服务器 名称信息获取所需视频资源所在的视频服务器的地址信息。 其中, 在辅助 域名服务器的数据库列表中, 该视频服务器名称信息所对应的地址信息为 所需视频资源所在的视频服务器的地址信息, 使得本地域名服务器在解析 视频服务器名称信息时, 得到的是该视频服务器的地址信息。
5312, 通过所述緩冲器接收重定向信息。
其中, 所述重定向信息包括: 具有所述视频资源的视频服务器的地址 信息、 所述视频识别信息。
在一个实施例中, 緩冲器中没有緩存用户所请求的视频资源, 为了避 免用户长时间等待, 终端设备需要重定向至视频服务器, 以直接从视频服 务器获取视频资源。
5313 , 所述终端设备根据所述重定向信息中的视频服务器的地址信息 和视频识别信息从所述视频服务器中获取所述视频识别信息所对应的视频 资源。
在一个实施例中, 终端设备在收到緩冲器发送的重定向消息后, 根据 重定向消息中的视频服务器的地址信息和视频识别信息, 向视频服务器请 求获取视频资源, 视频服务器在授权通过之后, 响应终端设备并发送视频 资源。 用户无法从緩冲器上直接获取到视频资源时, 转而立即向视频服务 器请求获取视频资源, 和现有技术不同的是, 终端设备不需要长时间等待 緩冲器先去获取视频资源, 然后才能从緩冲器下载视频资源, 因此, 用户 的终端设备不会出现长时间等待而黑屏的现象, 从而提高了用户体验。
5314, 通过所述緩冲器根据所述视频服务器的地址信息和所述视频识 别信息获取视频服务器中的视频资源至所述緩冲器。
在一个实施例中, 緩冲器根据视频服务器的地址信息和视频识别信息 向视频服务器请求获取视频资源, 视频服务器在接收到緩冲器发送的视频 请求后, 向緩冲器响应发送视频资源, 緩冲器收到所请求的视频资源之后, 将其緩存, 当后续用户请求相同视频资源时, 緩冲器可直接将视频资源发 送给请求用户。
在一个实施例中, 本地域名服务器用于将视频服务器名称信息解析为 管理器的地址信息, 解析的方式可以是: 在本地域名服务器的数据库列表 中, 存有视频服务器名称信息以及与视频服务器名称信息所对应的地址信 息, 其中, 该地址信息为管理器的 IP地址(即管理器的地址信息), 使得本
地域名服务器在解析视频服务器名称信息时, 最终得到的是管理器的 IP地 址。
辅助域名服务器用于将视频服务器名称信息解析为视频服务器的地址 信息, 解析的方式可以是: 在辅助域名服务器的数据库列表中, 存有视频 服务器名称信息以及与视频服务器名称信息所对应的地址信息, 其中, 该 地址信息为视频服务器的 IP地址(即视频服务器的地址信息), 使得辅助域 名服务器在解析视频服务器名称信息时, 最终得到的是视频服务器的 IP地 址。
本发明实施例的传输网络视频的方法, 通过本地域名服务器代替网络 路由器解析用户发送的视频请求信息; 在緩冲器上没有用户发送的视频请 求信息所要求的视频资源时, 緩冲器通过辅助域名服务器再次解析视频请 求信息, 并将解析后的数据发送给用户的终端设备, 从而使用户的终端设 备能够直接连接视频服务器。 可选地, 如果存在多个緩冲器, 还通过管理 器根据各个緩冲器的运行情况为用户选择合适的緩冲器。 与现有技术相比, 本发明实施例能够代替网络路由器解析用户发送的视频请求信息, 从而减 少了网络路由器的运行负担; 如果只对视频请求信息中的指定信息段进行 解析, 可减轻解析过程所消耗的成本; 在緩冲器上没有所需视频资源时能 够使用户的终端设备直接连接视频服务器以获得视频资源, 从而减短了用 户的等待时间, 防止了用户因长时间等待而出现的黑屏现象, 提高了用户 体验; 能够通过管理器合理调度緩冲器, 从而提高了系统的负载能力。 实施例 4
本发明实施例提供一种传输网络视频的装置,如图 5所示,该装置包括: 终端设备、 本地域名服务器、 緩冲器和辅助域名服务器。
终端设备包括: 第一发送模块 501、 第一接收模块 502、 第二发送模块
503、 第三发送模块 504、 视频接收模块 505、 第二接收模块 506。
所述第一发送模块 501 , 用于发送视频请求信息中的视频服务器名称信
息至所述本地域名服务器。
所述第一接收模块 502 , 用于接收所述本地域名服务器发送的所述緩冲 器的地址信息, 或接收所述本地域名服务器发送的所述管理器的地址信息。
所述第二发送模块 503 , 用于根据所述緩冲器的地址信息将所述视频请 求信息发送至所述緩冲器。
所述第三发送模块 504 , 用于根据所述管理器的地址信息将所述视频请 求信息发送至所述管理器。
所述视频接收模块 505 , 用于若所述緩冲器中存在所述视频请求信息中 的视频识别信息所对应的视频资源, 则接收所述緩冲器发送的所述视频识 别信息所对应的视频资源, 或若所述緩冲器中不存在所述视频请求信息中 的视频识别信息所对应的视频资源, 则根据重定向信息中的所述视频服务 器的地址信息和所述视频识别信息从所述视频服务器中获取所述视频识别 信息所对应的视频资源。
所述第二接收模块 506 , 用于接收所述緩冲器发送的所述重定向信息。 所述本地域名服务器包括: 第三接收模块 507、 第一解析模块 508、 第 四发送模块 509、 第二解析模块 510。
所述第三接收模块 507, 用于接收所述终端设备发送的视频服务器名称 信息。
所述第一解析模块 508 , 用于根据所述视频服务器名称信息解析出緩冲 器的地址信息。
所述第二解析模块 509 , 用于根据所述视频服务器名称信息解析出所述 管理器的地址信息。
所述第四发送模块 510 , 用于发送所述緩冲器的地址信息或管理器的地 址信息至所述终端设备。
所述緩冲器包括: 第五接收模块 516、检测单元 517、 第六发送模块 518、 第七发送模块 519、第六接收模块 520、第七接收模块 521、第八发送模块 522。
所述第五接收模块 516 , 用于接收终端设备发送的视频请求信息, 或管 理器发送的所述视频请求信息。
所述检测单元 517 , 用于根据所述视频请求信息中的视频识别信息, 检 测緩冲器中是否存在所述视频识别信息所对应的视频资源。
所述第六发送模块 518 , 用于若所述緩冲器中存在所述视频识别信息所 对应的视频资源, 则将该视频资源发送至所述终端设备。
所述第七发送模块 519 , 用于若所述緩冲器中不存在所述视频识别信息 所对应的视频资源, 则发送所述视频请求信息中的视频服务器名称信息至 辅助域名服务器。
所述第六接收模块 520 , 用于接收所述辅助域名服务器发送的所述视频 服务器的地址信息。
所述第七接收模块 521, 用于根据所述视频服务器的地址信息和所述视 频识别信息, 获取视频服务器中的所述视频识别信息所对应的视频资源。
所述第八发送模块 522 , 用于将重定向信息发送至所述终端设备, 所述 重定向信息包括所述视频服务器的地址信息和所述视频识别信息。
所述辅助域名服务器包括第八接收模块 523、 第三解析模块 524、 第九 发送模块 525 , 其中:
所述第八接收模块 523 , 用于接收緩冲器发送的视频服务器名称信息。 所述第三解析模块 524 , 用于根据所述视频服务器名称信息获取视频服 务器的地址信息。
所述第九发送模块 525 , 用于将所述视频服务器的地址信息发送至所述 緩冲器。
本发明实施例的传输网络视频的装置, 能够通过本地域名服务器代替 网络路由器解析用户发送的视频请求信息; 能够在緩冲器上没有用户发送 的视频请求信息所要求的视频资源时, 緩冲器通过辅助域名服务器再次解 析视频请求信息, 并将解析后的数据发送给用户的终端设备, 从而使用户
的终端设备能够直接连接视频服务器。 与现有技术相比, 本发明实施例能 够代替网络路由器解析用户发送的视频请求信息, 从而减少了网络路由器 的运行负担; 如果只对视频请求信息中的指定信息段进行解析从而减轻了 解析过程所消耗的成本; 在緩冲器上没有所需视频资源时能够使用户的终 端设备直接连接视频服务器以获得视频资源, 从而减短了用户的等待时间, 防止了用户因长时间等待而出现的黑屏现象, 提高了用户体验。
进一步可选的, 如图 5所示, 所述装置还包括管理器, 其中, 所述管理 器包括第四接收模块 511、 获取模块 512、 第一筛选模块 513、 第二筛选模块 514、 第五发送模块 515。
所述第四接收模块 511 , 用于接收终端设备发送的视频请求信息。
所述获取模块 512 , 用于获取多个緩冲器中保存的视频资源信息和负载 率信息。
所述第一筛选模块 513 , 用于根据所述终端设备发送的所述视频请求信 息中的视频识别信息和所有緩冲器中保存的视频资源信息, 获取多个具有 所述视频识别信息所对应的视频资源的緩冲器。
所述第二筛选模块 514, 用于根据所有緩冲器的负载率信息, 获取负载 率最小的緩冲器, 或根据所述所有緩冲器的负载率信息, 在所述所有具有 所述视频识别信息所对应的视频资源的緩冲器中, 获取负载率最小的緩冲 器。
所述第五发送模块 515 , 用于将所述视频请求信息发送至所述负载率最 小的緩冲器, 或发送至在所述所有具有所述视频识别信息所对应的视频资 源的緩冲器中负载率最小的緩冲器。
本发明实施例的管理器, 能够通过管理器根据各个緩冲器的运行情况 为用户选择合适的緩冲器。 与现有技术相比, 本发明实施例能够通过管理 器合理调度緩冲器, 从而提高了系统的负载能力。
实施例 5
本发明实施例提供一种传输网络视频的系统, 如图 6所示, 该系统包括 终端设备 601、 本地域名服务器 602、 緩冲器 603、 辅助域名服务器 604和管 理器 605 , 其中:
所述终端设备 601, 用于发送视频请求信息中的视频服务器名称信息至 本地域名服务器, 随后接收所述本地域名服务器发送的緩冲器的地址信息, 再根据所述緩冲器的地址信息将视频请求信息发送至緩冲器, 若所述緩冲 器中存在所述视频识别信息所对应的视频资源, 则接收所述緩冲器发送的 所述视频识别信息所对应的视频资源, 或若所述緩冲器中不存在所述视频 识别信息所对应的视频资源, 则接收所述緩冲器发送的重定向信息, 并根 据所述重定向信息中的所述视频服务器的地址信息和所述视频识别信息从 所述视频服务器中获取所述视频识别信息所对应的视频资源。
所述本地域名服务器 602 , 用于接收所述终端设备发送的所述视频服务 器名称信息, 并根据所述视频服务器名称信息解析出所述緩冲器的地址信 息, 随后发送所述緩冲器的地址信息至所述终端设备。
所述緩冲器 603 , 用于接收所述终端设备发送的所述视频请求信息, 并 根据接收到的所述视频请求信息中的视频识别信息, 检测所述緩冲器中是 否存在所述视频识别信息所对应的视频资源, 若所述緩冲器中存在所述视 频识别信息所对应的视频资源, 则将该视频资源发送至所述终端设备, 若 所述緩冲器中不存在所述视频识别信息所对应的视频资源, 则发送所述视 频请求信息中的视频服务器名称信息至辅助域名服务器, 随后接收所述辅 助域名服务器发送的所述视频服务器的地址信息, 并根据所述视频服务器 的地址信息和所述视频请求信息中的视频识别信息, 获取视频服务器中的 所述视频识别信息所对应的视频资源, 并将所述重定向信息发送至所述终 端设备。
所述辅助域名服务器 604 , 用于接收所述緩冲器发送的所述视频服务器 名称信息, 根据所述视频服务器名称信息获取所述视频服务器的地址信息
并发送至所述緩冲器。
本发明实施例的传输网络视频的系统, 能够通过本地域名服务器代替 网络路由器解析用户发送的视频请求信息; 能够在緩冲器上没有用户发送 的视频请求信息所要求的视频资源时, 緩冲器通过辅助域名服务器再次解 析视频请求信息, 并将解析后的数据发送给用户的终端设备, 从而使用户 的终端设备能够直接连接视频服务器。 与现有技术相比, 本发明实施例能 够代替网络路由器解析用户发送的视频请求信息, 从而减少了网络路由器 的运行负担; 如果只对视频请求信息中的指定信息段进行解析, 则可以减 轻解析过程所消耗的成本; 在緩冲器上没有所需视频资源时能够使用户的 终端设备直接连接视频服务器以获得视频资源, 从而减短了用户的等待时 间, 防止了用户因长时间等待而出现的黑屏现象, 提高了用户体验。
实施例 6
本发明实施例提供一种传输网络视频的系统, 如图 7所示, 该系统包括 终端设备 701、 本地域名服务器 702、 緩冲器 703、 辅助域名服务器 704和管 理器 705 , 其中:
所述终端设备 701, 用于发送视频请求信息中的视频服务器名称信息至 本地域名服务器, 随后接收所述本地域名服务器发送的管理器的地址信息, 根据所述管理器的地址信息将所述视频请求信息发送至所述管理器, 若所 述緩冲器中存在所述视频识别信息所对应的视频资源, 则接收所述緩冲器 发送的所述视频识别信息所对应的视频资源, 或若所述緩冲器中不存在所 述视频识别信息所对应的视频资源, 则接收所述緩冲器发送的重定向信息, 并根据所述重定向信息中的所述视频服务器的地址信息和所述视频识别信 息从所述视频服务器中获取所述视频识别信息所对应的视频资源。
所述本地域名服务器 702 , 用于接收所述终端设备发送的所述视频服务 器名称信息, 并根据所述视频服务器名称信息解析出所述管理器的地址信 息, 并发送所述管理器的地址信息至所述终端设备。
所述緩冲器 703 , 用于接收所述管理器发送的所述视频请求信息, 并根 据所述视频请求信息中的视频识别信息, 检测所述緩冲器中是否存在所述 视频识别信息所对应的视频资源, 若所述緩冲器中存在所述视频识别信息 所对应的视频资源, 则将该视频资源发送至所述终端设备, 若所述緩冲器 中不存在所述视频识别信息所对应的视频资源, 则发送所述视频请求信息 中的视频服务器名称信息至辅助域名服务器, 随后接收所述辅助域名服务 器发送的所述视频服务器的地址信息, 并根据所述视频服务器的地址信息 和所述视频请求信息中的视频识别信息, 获取视频服务器中的所述视频识 别信息所对应的视频资源, 并将所述重定向信息发送至所述终端设备。
所述辅助域名服务器 704 , 用于接收所述緩冲器发送的所述视频服务器 名称信息, 根据所述视频服务器名称信息获取所述视频服务器的地址信息 并发送至所述緩冲器。
所述管理器 705 , 用于接收所述终端设备发送的所述视频请求信息, 之 后获取所有緩冲器的视频资源信息和负载率信息, 再根据所述终端设备发 送的所述视频请求信息中的视频识别信息以及所述所有緩冲器的视频资源 信息, 获取所有具有所述视频识别信息所对应的视频资源的緩冲器, 然后 根据所述所有緩冲器的负载率信息获取负载率最小的緩冲器, 或根据所述 所有緩冲器的负载率信息, 在所述所有具有所述视频识别信息所对应的视 频资源的緩冲器中, 获取负载率最小的緩冲器, 并将所述视频请求信息发 送至所述负载率最小的緩冲器, 或发送至在所述所有具有所述视频识别信 息所对应的视频资源的緩冲器中负载率最小的緩冲器。
本发明实施例的传输网络视频的系统, 能够通过本地域名服务器代替 网络路由器解析用户发送的视频请求信息; 能够在緩冲器上没有用户发送 的视频请求信息所要求的视频资源时, 緩冲器通过辅助域名服务器再次解 析视频请求信息, 并将解析后的数据发送给用户的终端设备, 从而使用户 的终端设备能够直接连接视频服务器; 还能够通过管理器根据各个緩冲器
的运行情况为用户选择合适的緩冲器。 与现有技术相比, 本发明实施例能 够代替网络路由器解析用户发送的视频请求信息, 从而减少了网络路由器 的运行负担; 如果只对视频请求信息中的指定信息段进行解析, 可以减轻 解析过程所消耗的成本; 在緩冲器上没有所需视频资源时能够使用户的终 端设备直接连接视频服务器以获得视频资源, 从而减短了用户的等待时间, 防止了用户因长时间等待而出现的黑屏现象, 提高了用户体验; 能够通过 管理器合理调度緩冲器, 从而提高了系统的负载能力。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储 于计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实 施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体
RAM )等。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发 明的保护范围应该以权利要求的保护范围为准。
Claims
1、 一种传输网络视频的方法, 其特征在于, 包括:
终端设备发送视频请求信息中的视频服务器名称信息至本地域名服务 器, 以便于所述本地域名服务器根据所述视频服务器名称信息解析出所述 视频服务器名称信息对应的緩冲器的地址信息;
所述终端设备接收所述本地域名服务器发送的所述緩冲器的地址信 息 , 根据所述緩冲器的地址信息将所述视频请求信息发送至所述緩冲器; 若所述緩冲器中存在所述视频识别信息所对应的视频资源, 则所述緩 冲器将该视频资源发送至所述终端设备;
若所述緩冲器中不存在所述视频识别信息所对应的视频资源, 则所述 緩冲器将重定向信息发送至所述终端设备;
所述终端设备根据所述重定向信息从所述视频服务器中获取所述视频 识别信息所对应的视频资源。
2、 根据权利要求 1所述的传输网络视频的方法, 其特征在于, 所述重定向信息包括: 所述视频服务器名称信息对应的视频服务器的 地址信息、 所述视频识别信息, 其中, 所述视频服务器的地址信息是所述 緩冲器通过辅助域名服务器获取的, 所述辅助域名服务器用于根据所述视 频服务器名称信息获取所述视频服务器的地址信息。
3、 根据权利要求 2所述的传输网络视频的方法, 其特征在于, 还包括, 所述緩冲器根据所述视频服务器的地址信息和所述视频识别信息获取所述 视频服务器中的所述视频识别信息所对应的视频资源。
4、 根据权利要求 1所述的传输网络视频的方法, 其特征在于, 所述根 据所述緩冲器的地址信息将所述视频请求信息发送至所述緩冲器包括: 通过管理器将所述视频请求信息发送至所述緩冲器, 所述管理器用于 管理多个緩冲器, 并获取所述緩冲器的地址信息。
5、 根据权利要求 1或 4所述的传输网络视频的方法, 其特征在于, 在所
述通过管理器将所述视频请求信息发送至所述緩冲器之前, 所述方法还包 括:
所述终端设备发送所述视频服务器名称信息至所述本地域名服务器, 以便于所述本地域名服务器根据所述视频服务器名称信息解析出所述管理 器的地址信息;
所述终端设备接收所述本地域名服务器发送的所述管理器的地址信 息, 根据所述管理器的地址信息将所述视频请求信息发送至所述管理器。
6、 根据权利要求 4所述的传输网络视频的方法, 其特征在于, 所述通 过管理器将所述视频请求信息发送至所述緩冲器包括:
通过所述管理器将所述视频请求信息发送至负载率最小的緩冲器, 所 述管理器还用于获取负载率最小的緩冲器。
7、 根据权利要求 4所述的传输网络视频的方法, 其特征在于, 所述通 过管理器将所述视频请求信息发送至所述緩冲器还包括:
通过所述管理器将所述视频请求信息发送至具有所述视频识别信息所 对应的视频资源、 且负载率最小的緩冲器, 所述管理器还用于在所述所有 具有所述视频识别信息所对应的视频资源的緩冲器中获取负载率最小的緩 冲器。
8、 一种终端设备, 其特征在于, 包括第一发送模块、 第一接收模块、 第二发送模块、 第三发送模块和视频接收模块, 其中:
所述第一发送模块, 用于发送视频请求信息中的视频服务器名称信息 至本地域名服务器;
所述第一接收模块, 用于接收所述本地域名服务器发送的緩冲器的地 址信息, 或接收所述本地域名服务器发送的管理器的地址信息;
所述第二发送模块, 用于根据所述緩冲器的地址信息将所述视频请求 信息发送至所述緩冲器;
所述第三发送模块, 用于根据所述管理器的地址信息将所述视频请求
信息发送至所述管理器;
所述视频接收模块, 用于若所述緩冲器中存在所述视频请求信息中的 视频识别信息所对应的视频资源, 则接收所述緩冲器发送的所述视频识别 信息所对应的视频资源, 或若所述緩冲器中不存在所述视频请求信息中的 视频识别信息所对应的视频资源, 则根据重定向信息中的所述视频服务器 的地址信息和所述视频识别信息从所述视频服务器中获取所述视频识别信 息所对应的视频资源。
9、 根据权利要求 8所述的终端设备, 其特征在于, 所述终端设备还包 括:
第二接收模块, 用于接收所述緩冲器发送的所述重定向信息。
10、 一种本地域名服务器, 其特征在于, 包括第三接收模块、 第一解 析模块和第四发送模块, 其中:
所述第三接收模块, 用于接收终端设备发送的视频服务器名称信息; 所述第一解析模块, 用于根据所述视频服务器名称信息解析出緩冲器 的地址信息;
所述第四发送模块, 用于发送所述緩冲器的地址信息或管理器的地址 信息至所述终端设备。
11、 根据权利要求 10所述的本地域名服务器, 其特征在于, 还包括: 第二解析模块, 用于根据所述视频服务器名称信息解析出所述管理器 的地址信息。
12、 一种管理器, 其特征在于, 包括第四接收模块、 获取模块、 第一 筛选模块和第五发送模块, 其中:
所述第四接收模块, 用于接收终端设备发送的视频请求信息; 所述获取模块, 用于获取多个緩冲器中保存的视频资源信息和负载率 信息;
所述第一筛选模块, 用于根据所述终端设备发送的所述视频请求信息
中的视频识别信息和所有緩冲器中保存的视频资源信息, 获取所有具有所 述视频识别信息所对应的视频资源的緩冲器;
所述第二筛选模块, 用于根据多个緩冲器的负载率信息, 获取负载率 最小的緩冲器, 或根据所述所有緩冲器的负载率信息, 在所述所有具有所 述视频识别信息所对应的视频资源的緩冲器中, 获取负载率最小的緩冲器; 所述第五发送模块, 用于将所述视频请求信息发送至所述负载率最小 的緩冲器, 或发送至在所述所有具有所述视频识别信息所对应的视频资源 的緩冲器中负载率最小的緩冲器。
13、 一种緩冲器, 其特征在于, 包括第五接收模块、 检测单元、 第六 发送模块、 第七发送模块、 第六接收模块、 第七接收模块和第八发送模块, 其中:
所述第五接收模块, 用于接收终端设备发送的视频请求信息, 或管理 器发送的所述视频请求信息;
所述检测单元, 用于根据所述视频请求信息中的视频识别信息, 检测 緩冲器中是否存在所述视频识别信息所对应的视频资源;
所述第六发送模块, 用于若所述緩冲器中存在所述视频识别信息所对 应的视频资源, 则将该视频资源发送至所述终端设备;
所述第七发送模块, 用于若所述緩冲器中不存在所述视频识别信息所 对应的视频资源, 则发送所述视频请求信息中的视频服务器名称信息至辅 助域名服务器;
所述第六接收模块, 用于接收所述辅助域名服务器发送的所述视频服 务器的地址信息;
所述第七接收模块, 用于根据所述视频服务器的地址信息和所述视频 识别信息, 获取视频服务器中的所述视频识别信息所对应的视频资源; 所述第八发送模块, 用于将重定向信息发送至所述终端设备, 所述重 定向信息包括所述视频服务器的地址信息和所述视频识别信息。
14、 一种辅助域名服务器, 其特征在于, 包括第八接收模块、 第三解 析模块和第九发送模块, 其中:
所述第八接收模块, 用于接收緩冲器发送的视频服务器名称信息; 所述第三解析模块, 用于根据所述视频服务器名称信息获取视频服务 器的地址信息;
所述第九发送模块, 用于将所述视频服务器的地址信息发送至所述緩 冲器。
15、 一种传输网络视频的系统, 其特征在于, 包括终端设备、 本地域 名服务器、 緩冲器和辅助域名服务器, 其中:
所述终端设备, 用于发送视频请求信息中的视频服务器名称信息至本 地域名服务器, 随后接收所述本地域名服务器发送的緩冲器的地址信息或 管理器的地址信息, 再根据所述緩冲器的地址信息将视频请求信息发送至 緩冲器, 若所述緩冲器中存在所述视频识别信息所对应的视频资源, 则接 收所述緩冲器发送的所述视频识别信息所对应的视频资源, 或若所述緩冲 器中不存在所述视频识别信息所对应的视频资源, 则接收所述緩冲器发送 的重定向信息, 并根据所述重定向信息中的所述视频服务器的地址信息和 所述视频识别信息从所述视频服务器中获取所述视频识别信息所对应的视 频资源;
所述本地域名服务器, 用于接收所述终端设备发送的所述视频服务器 名称信息, 并根据所述视频服务器名称信息解析出所述緩冲器的地址信息 或所述管理器的地址信息, 随后发送所述緩冲器的地址信息或管理器的地 址信息至所述终端设备;
所述緩冲器, 用于接收所述终端设备发送的所述视频请求信息或所述 管理器发送的所述视频请求信息, 并根据接收到的所述视频请求信息中的 视频识别信息, 检测所述緩冲器中是否存在所述视频识别信息所对应的视 频资源, 若所述緩冲器中存在所述视频识别信息所对应的视频资源, 则将
该视频资源发送至所述终端设备, 若所述緩冲器中不存在所述视频识别信 息所对应的视频资源, 则发送所述视频请求信息中的视频服务器名称信息 至辅助域名服务器, 随后接收所述辅助域名服务器发送的所述视频服务器 的地址信息, 并根据所述视频服务器的地址信息和所述视频请求信息中的 视频识别信息, 获取视频服务器中的所述视频识别信息所对应的视频资源, 并将所述重定向信息发送至所述终端设备;
所述辅助域名服务器, 用于接收所述緩冲器发送的所述视频服务器名 称信息, 根据所述视频服务器名称信息获取所述视频服务器的地址信息并 发送至所述緩冲器。
16、 根据权利要求 15所述的传输网络视频的系统, 其特征在于, 还包 括:
管理器, 用于接收所述终端设备发送的所述视频请求信息, 之后获取 所有緩冲器的视频资源信息和负载率信息, 再根据所述终端设备发送的所 述视频请求信息中的视频识别信息以及所述所有緩冲器的视频资源信息, 获取所有具有所述视频识别信息所对应的视频资源的緩冲器, 然后根据所 述所有緩冲器的负载率信息获取负载率最小的緩冲器, 或根据所述所有緩 冲器的负载率信息, 在所述所有具有所述视频识别信息所对应的视频资源 的緩冲器中, 获取负载率最小的緩冲器, 并将所述视频请求信息发送至所 述负载率最小的緩冲器, 或发送至在所述所有具有所述视频识别信息所对 应的视频资源的緩冲器中负载率最小的緩冲器。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP12861471.6A EP2787742B1 (en) | 2011-12-28 | 2012-10-23 | Method and system for transmitting network video |
IN1388KON2014 IN2014KN01388A (zh) | 2011-12-28 | 2012-10-23 | |
US14/316,562 US9693092B2 (en) | 2011-12-28 | 2014-06-26 | Method and system for transmitting network video |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110448651.3 | 2011-12-28 | ||
CN201110448651.3A CN103188574B (zh) | 2011-12-28 | 2011-12-28 | 传输网络视频的方法及系统 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/316,562 Continuation US9693092B2 (en) | 2011-12-28 | 2014-06-26 | Method and system for transmitting network video |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013097525A1 true WO2013097525A1 (zh) | 2013-07-04 |
Family
ID=48679466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/083358 WO2013097525A1 (zh) | 2011-12-28 | 2012-10-23 | 传输网络视频的方法及系统 |
Country Status (5)
Country | Link |
---|---|
US (1) | US9693092B2 (zh) |
EP (1) | EP2787742B1 (zh) |
CN (1) | CN103188574B (zh) |
IN (1) | IN2014KN01388A (zh) |
WO (1) | WO2013097525A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103747286A (zh) * | 2014-01-03 | 2014-04-23 | 上海聚力传媒技术有限公司 | 一种用于提供视频的方法和设备 |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105471812B (zh) * | 2014-06-20 | 2019-03-01 | 北京奇虎科技有限公司 | 获取网络视频资源的方法及系统 |
US10104345B2 (en) * | 2014-12-16 | 2018-10-16 | Sighthound, Inc. | Data-enhanced video viewing system and methods for computer vision processing |
CN104954811B (zh) * | 2015-07-17 | 2018-06-15 | 杭州当贝网络科技有限公司 | 一种视频聚合应用加载网络视频的方法及智能电视终端 |
US10002313B2 (en) | 2015-12-15 | 2018-06-19 | Sighthound, Inc. | Deeply learned convolutional neural networks (CNNS) for object localization and classification |
CN105611406B (zh) * | 2015-12-21 | 2018-05-04 | 东南大学 | 一种接入网服务商监测用户到视频服务器延迟特性方法 |
CN105657571B (zh) * | 2015-12-25 | 2019-02-01 | 中山大学花都产业科技研究院 | 一种局域网内视频传输节省带宽的方法 |
CN107071518A (zh) * | 2016-09-05 | 2017-08-18 | 北京奥鹏远程教育中心有限公司 | 自适应移动终端学习的视频播放方法和系统 |
CN108989896B (zh) * | 2017-06-12 | 2020-02-21 | 视联动力信息技术股份有限公司 | 一种视频点播请求处理方法和装置 |
CN110913270B (zh) * | 2018-09-14 | 2021-12-21 | 北京微播视界科技有限公司 | 直播方法和装置 |
CN109218806B (zh) * | 2018-11-28 | 2021-09-17 | 北京字节跳动网络技术有限公司 | 一种视频信息显示方法、装置、终端及存储介质 |
CN111683264B (zh) * | 2020-06-16 | 2022-11-04 | 中国联合网络通信集团有限公司 | 视频点播方法、网络设备和终端 |
CN113761414A (zh) * | 2020-10-20 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | 一种页面数据获取方法和装置 |
CN114257879B (zh) * | 2021-12-17 | 2023-05-12 | 深圳市瑞云科技有限公司 | 一种播放视频的方法及系统 |
CN114584808B (zh) * | 2022-03-01 | 2023-09-22 | 抖音视界有限公司 | 一种视频流获取方法、装置、系统、设备和介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7080158B1 (en) * | 1999-02-09 | 2006-07-18 | Nortel Networks Limited | Network caching using resource redirection |
CN101119359A (zh) * | 2006-08-01 | 2008-02-06 | 中兴通讯股份有限公司 | 基于策略的服务负载均衡方法 |
CN101360105A (zh) * | 2007-06-21 | 2009-02-04 | 阿尔卡泰尔卢森特公司 | 内容点播方法和用于该方法的网络 |
CN102111685A (zh) * | 2011-02-24 | 2011-06-29 | 深信服网络科技(深圳)有限公司 | 一种网络视频加载的加速方法、设备及系统 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7139813B1 (en) * | 1999-11-01 | 2006-11-21 | Nokia Networks Oy | Timedependent hyperlink system in videocontent |
US7441045B2 (en) * | 1999-12-13 | 2008-10-21 | F5 Networks, Inc. | Method and system for balancing load distribution on a wide area network |
US6829654B1 (en) * | 2000-06-23 | 2004-12-07 | Cloudshield Technologies, Inc. | Apparatus and method for virtual edge placement of web sites |
EP1886232A1 (en) * | 2005-06-02 | 2008-02-13 | Thomson Licensing | Content timing method and system |
EP1885100B1 (de) | 2006-08-02 | 2009-04-08 | Siemens Aktiengesellschaft | Verfahren zur automatischen Adressvergabe an einen Kommunikationsteilnehmer und Kommunikationsteilnehmer |
US7881402B2 (en) * | 2006-09-07 | 2011-02-01 | Via Technologies, Inc. | Compensation for gain imbalance, phase imbalance and DC offsets in a transmitter |
US20100223364A1 (en) * | 2009-02-27 | 2010-09-02 | Yottaa Inc | System and method for network traffic management and load balancing |
CN101984637B (zh) * | 2010-11-02 | 2014-06-11 | 中兴通讯股份有限公司 | 内容分发实现方法及系统 |
-
2011
- 2011-12-28 CN CN201110448651.3A patent/CN103188574B/zh active Active
-
2012
- 2012-10-23 WO PCT/CN2012/083358 patent/WO2013097525A1/zh active Application Filing
- 2012-10-23 EP EP12861471.6A patent/EP2787742B1/en active Active
- 2012-10-23 IN IN1388KON2014 patent/IN2014KN01388A/en unknown
-
2014
- 2014-06-26 US US14/316,562 patent/US9693092B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7080158B1 (en) * | 1999-02-09 | 2006-07-18 | Nortel Networks Limited | Network caching using resource redirection |
CN101119359A (zh) * | 2006-08-01 | 2008-02-06 | 中兴通讯股份有限公司 | 基于策略的服务负载均衡方法 |
CN101360105A (zh) * | 2007-06-21 | 2009-02-04 | 阿尔卡泰尔卢森特公司 | 内容点播方法和用于该方法的网络 |
CN102111685A (zh) * | 2011-02-24 | 2011-06-29 | 深信服网络科技(深圳)有限公司 | 一种网络视频加载的加速方法、设备及系统 |
Non-Patent Citations (1)
Title |
---|
See also references of EP2787742A4 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103747286A (zh) * | 2014-01-03 | 2014-04-23 | 上海聚力传媒技术有限公司 | 一种用于提供视频的方法和设备 |
Also Published As
Publication number | Publication date |
---|---|
EP2787742A4 (en) | 2014-12-03 |
CN103188574B (zh) | 2017-04-19 |
US20140317671A1 (en) | 2014-10-23 |
EP2787742A1 (en) | 2014-10-08 |
EP2787742B1 (en) | 2016-12-28 |
US9693092B2 (en) | 2017-06-27 |
IN2014KN01388A (zh) | 2015-10-16 |
CN103188574A (zh) | 2013-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013097525A1 (zh) | 传输网络视频的方法及系统 | |
US11470148B2 (en) | Content delivery network | |
WO2018001144A1 (zh) | 基站、访问请求的响应方法、装置及系统 | |
CN100484069C (zh) | 一种文件数据分发方法及相关设备 | |
KR100959523B1 (ko) | 사용자를 위한 서비스 품질 관리 방법 및 이를 수행하기위한 시스템 | |
US20110119388A1 (en) | Optimization of Multimedia Service Over an IMS Network | |
EP3214844B1 (en) | Reception device, transmission device, and data processing method | |
WO2017206576A1 (zh) | 一种网关业务的处理方法及装置 | |
WO2015035816A1 (zh) | 一种nginx服务器配置维护方法及系统 | |
WO2009155801A1 (zh) | 提供媒体流服务的方法及其系统和装置 | |
US11290423B2 (en) | QOS in data stream delivery | |
KR20110039513A (ko) | 컨텐트 배포관리 시스템 및 방법 | |
CN112751897B (zh) | 负载均衡方法、装置、介质及设备 | |
WO2012034414A1 (zh) | 一种处理p2p业务的方法及系统 | |
CN112566164A (zh) | 一种通信系统及服务质量控制方法 | |
RU2664480C2 (ru) | Способ, устройство и система для доставки контента | |
US8843644B2 (en) | Method and apparatus for enabling a management system to interface with managed devices | |
KR100755617B1 (ko) | 스트리밍 미디어를 위한 서비스 위치 관리 방법 | |
CN108460042B (zh) | 一种页面显示的方法、相关设备及系统 | |
KR102482444B1 (ko) | 광고차단장치 및 그 동작 방법 | |
US20160028650A1 (en) | Method and system for a user to create favorite server lists for multiple services | |
US11323868B2 (en) | Serverless core network architecture | |
CN113285920B (zh) | 业务访问方法、装置、设备及存储介质 | |
WO2016106557A1 (zh) | 一种用于视频发送的方法与装置 | |
US20200128103A1 (en) | Methods, network node and client device for acquisition and delivery of resources in a communications network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12861471 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
REEP | Request for entry into the european phase |
Ref document number: 2012861471 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2012861471 Country of ref document: EP |