CN116828225A - Video stream resource acquisition method and system based on point-to-point mode - Google Patents

Video stream resource acquisition method and system based on point-to-point mode Download PDF

Info

Publication number
CN116828225A
CN116828225A CN202211651749.3A CN202211651749A CN116828225A CN 116828225 A CN116828225 A CN 116828225A CN 202211651749 A CN202211651749 A CN 202211651749A CN 116828225 A CN116828225 A CN 116828225A
Authority
CN
China
Prior art keywords
video stream
point
resource
user terminal
cache node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211651749.3A
Other languages
Chinese (zh)
Inventor
余丹
兰雨晴
何金泽
王丹星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Standard Intelligent Security Technology Co Ltd
Original Assignee
China Standard Intelligent Security Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Standard Intelligent Security Technology Co Ltd filed Critical China Standard Intelligent Security Technology Co Ltd
Priority to CN202211651749.3A priority Critical patent/CN116828225A/en
Publication of CN116828225A publication Critical patent/CN116828225A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a video stream resource acquisition method and a system based on a point-to-point mode, wherein a user terminal which meets preset video stream receiving conditions in advance initiates a resource acquisition request according to video stream receiving state information of the user terminal; searching a cache node which stores corresponding video stream resources in a point-to-point network according to attribute information of the video resources expected to be acquired by a user end, constructing an intra-domain communication channel between the point-to-point network and the user end, transmitting the video stream resources to the user end based on the intra-domain communication channel after the video stream resources are converted, screening the user end according to a video stream receiving state of the user end, ensuring that only the user end meeting preset video stream receiving conditions can acquire the video stream resources through the point-to-point network, and constructing the intra-domain communication channel between the point-to-point network and the user end, so that the video stream resources are transmitted in the intra-domain communication channel, and effectively improving the transmission efficiency and the transmission reliability of the video stream resources.

Description

Video stream resource acquisition method and system based on point-to-point mode
Technical Field
The invention relates to the technical field of video data processing, in particular to a method and a system for acquiring video stream resources based on a point-to-point mode.
Background
The video stream resource has the characteristics of large data volume and higher transmission bandwidth requirement, and in order to ensure the normal and stable transmission of the video stream resource, a point-to-point network is generally adopted to transmit the video stream resource. In the peer-to-peer network, a user can acquire network resources in a network server in a sharing or downloading mode, so that the transmission efficiency of video stream resources in the peer-to-peer network is improved. However, the access threshold condition of the peer-to-peer network to the user end is low, so that the peer-to-peer network can access a plurality of different user ends at the same time, and the user end is always connected with the same node in the peer-to-peer network, thus the workload of the peer-to-peer network can be increased, the transmission efficiency of video stream resources in the peer-to-peer network is limited, and the situation of slow video stream resource transmission is easily caused.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention provides a video stream resource acquisition method and a system based on a point-to-point mode, which initiate a resource acquisition request according to the video stream receiving state information of a user terminal, wherein the user terminal meets preset video stream receiving conditions in advance; searching a cache node which stores corresponding video stream resources in a point-to-point network according to attribute information of the video resources expected to be acquired by a user end, constructing an intra-domain communication channel between the point-to-point network and the user end, transmitting the video stream resources to the user end based on the intra-domain communication channel after the video stream resources are converted, screening the user end according to a video stream receiving state of the user end, ensuring that only the user end meeting preset video stream receiving conditions can acquire the video stream resources through the point-to-point network, and constructing the intra-domain communication channel between the point-to-point network and the user end, so that the video stream resources are transmitted in the intra-domain communication channel, and effectively improving the transmission efficiency and the transmission reliability of the video stream resources.
The invention provides a video stream resource acquisition method based on a point-to-point mode, which comprises the following steps:
step S1, judging whether the user terminal meets preset video stream receiving conditions according to video stream receiving state information of the user terminal; obtaining corresponding video stream resource attribute information according to a resource obtaining request from a user side meeting preset video stream receiving conditions;
step S2, searching a cache node which stores corresponding video stream resources in a point-to-point network according to the video stream resource attribute information; constructing an intra-domain communication channel between the point-to-point network and the user according to the network domain characteristic information of the cache node;
and step S3, after the video stream resources are converted, the video stream resources are transmitted to the user side based on the intra-domain communication channel.
Further, in the step S1, according to the video stream receiving status information of the user terminal, determining whether the user terminal meets the preset video stream receiving condition includes:
acquiring the processing progress information of the receiving tasks on the current video stream receiving list of the user side, so as to obtain the total number of the receiving tasks which are not completed currently by the user side; if the total number of the receiving tasks is larger than or equal to a preset number threshold, judging that the user side does not meet the preset video stream receiving condition; and if the total number of the receiving tasks is smaller than a preset number threshold, judging that the user side meets the preset video stream receiving condition.
Further, in the step S1, according to a resource acquisition request from a user terminal that satisfies a preset video stream receiving condition, corresponding video stream resource attribute information is obtained, including:
and analyzing and processing the resource acquisition request from the user terminal meeting the preset video stream receiving condition to obtain the resource name information of the video stream resource expected to be acquired by the user terminal, and taking the resource name information as the video stream resource attribute information.
Further, in the step S2, according to the attribute information of the video stream resources, a cache node storing the corresponding video stream resources is searched in a peer-to-peer network; according to the network domain characteristic information of the cache node, constructing an intra-domain communication channel between the point-to-point network and the user terminal, including:
comparing the resource name information corresponding to the video stream resource attribute information with the video stream resource name information stored by all cache nodes in the point-to-point network, so as to determine the cache node storing the corresponding video stream resource in the point-to-point network;
judging whether the cache node storing the corresponding video stream resources and the user terminal are in the same network domain according to the gateway address information accessed by the cache node storing the corresponding video stream resources and the gateway address information accessed by the user terminal;
if the two are in the same network domain, constructing an intra-domain communication channel between the cache node storing the corresponding video stream resources and the user terminal;
if the two are not in the same network domain, transferring the video stream resource from the current cache node to another cache node of the point-to-point network, and constructing an intra-domain communication channel between the other cache node and the user terminal; the other cache node is in the same network domain as the user terminal and has the cache node with the shortest gateway route with the user terminal.
Further, in the step S3, after the converting the video stream resource, transmitting the video stream resource to the client based on the intra-domain communication channel, including:
dividing the video stream resources into a plurality of video stream data packets according to the transmission bandwidth of the intra-domain communication channel; and transmitting all video stream data packets to the user side in sequence based on the intra-domain communication channel.
The invention also provides a video stream resource acquisition system based on the point-to-point mode, which comprises the following steps:
the user terminal identification module is used for judging whether the user terminal meets the preset video stream receiving condition according to the video stream receiving state information of the user terminal;
the video stream resource calibration module is used for obtaining corresponding video stream resource attribute information according to a resource obtaining request from a user side meeting preset video stream receiving conditions;
the intra-domain communication channel construction module is used for searching a cache node which stores corresponding video stream resources in a point-to-point network according to the video stream resource attribute information; constructing an intra-domain communication channel between the point-to-point network and the user according to the network domain characteristic information of the cache node;
and the video stream resource transmission module is used for transmitting the video stream resource to the user terminal based on the intra-domain communication channel after the video stream resource is converted.
Further, the user terminal identification module is configured to determine, according to the video stream receiving status information of the user terminal, whether the user terminal meets a preset video stream receiving condition, and includes:
acquiring the processing progress information of the receiving tasks on the current video stream receiving list of the user side, so as to obtain the total number of the receiving tasks which are not completed currently by the user side; if the total number of the receiving tasks is larger than or equal to a preset number threshold, judging that the user side does not meet the preset video stream receiving condition; and if the total number of the receiving tasks is smaller than a preset number threshold, judging that the user side meets the preset video stream receiving condition.
Further, the video stream resource calibration module is configured to obtain corresponding video stream resource attribute information according to a resource acquisition request from a user terminal that satisfies a preset video stream receiving condition, where the video stream resource attribute information includes:
and analyzing and processing the resource acquisition request from the user terminal meeting the preset video stream receiving condition to obtain the resource name information of the video stream resource expected to be acquired by the user terminal, and taking the resource name information as the video stream resource attribute information.
Further, the intra-domain communication channel construction module is configured to search a cache node storing a corresponding video stream resource in a peer-to-peer network according to the video stream resource attribute information; according to the network domain characteristic information of the cache node, constructing an intra-domain communication channel between the point-to-point network and the user terminal, including:
comparing the resource name information corresponding to the video stream resource attribute information with the video stream resource name information stored by all cache nodes in the point-to-point network, so as to determine the cache node storing the corresponding video stream resource in the point-to-point network;
judging whether the cache node storing the corresponding video stream resources and the user terminal are in the same network domain according to the gateway address information accessed by the cache node storing the corresponding video stream resources and the gateway address information accessed by the user terminal;
if the two are in the same network domain, constructing an intra-domain communication channel between the cache node storing the corresponding video stream resources and the user terminal;
if the two are not in the same network domain, transferring the video stream resource from the current cache node to another cache node of the point-to-point network, and constructing an intra-domain communication channel between the other cache node and the user terminal; the other cache node is in the same network domain as the user terminal and has the cache node with the shortest gateway route with the user terminal.
Further, the video stream resource transmission module is configured to transmit the video stream resource to the client based on the intra-domain communication channel after performing conversion processing on the video stream resource, and includes:
dividing the video stream resources into a plurality of video stream data packets according to the transmission bandwidth of the intra-domain communication channel; and transmitting all video stream data packets to the user side in sequence based on the intra-domain communication channel.
Compared with the prior art, the video stream resource acquisition method and the system based on the point-to-point mode initiate a resource acquisition request according to the video stream receiving state information of the user terminal, wherein the user terminal meets preset video stream receiving conditions in advance; searching a cache node which stores corresponding video stream resources in a point-to-point network according to attribute information of the video resources expected to be acquired by a user end, constructing an intra-domain communication channel between the point-to-point network and the user end, transmitting the video stream resources to the user end based on the intra-domain communication channel after the video stream resources are converted, screening the user end according to a video stream receiving state of the user end, ensuring that only the user end meeting preset video stream receiving conditions can acquire the video stream resources through the point-to-point network, and constructing the intra-domain communication channel between the point-to-point network and the user end, so that the video stream resources are transmitted in the intra-domain communication channel, and effectively improving the transmission efficiency and the transmission reliability of the video stream resources.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a video stream resource obtaining method based on a point-to-point mode according to the present invention.
Fig. 2 is a schematic structural diagram of a video stream resource acquisition system based on a point-to-point mode according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flow chart of a video stream resource obtaining method based on a point-to-point mode according to an embodiment of the present invention is shown. The video stream resource acquisition method based on the point-to-point mode comprises the following steps:
step S1, judging whether the user terminal meets preset video stream receiving conditions according to video stream receiving state information of the user terminal; obtaining corresponding video stream resource attribute information according to a resource obtaining request from a user side meeting preset video stream receiving conditions;
step S2, searching a cache node which stores corresponding video stream resources in a point-to-point network according to the attribute information of the video stream resources; constructing an intra-domain communication channel between the point-to-point network and the user terminal according to the network domain characteristic information of the cache node;
and step S3, after the video stream resource is converted, the video stream resource is transmitted to the user terminal based on the intra-domain communication channel.
The beneficial effects of the technical scheme are as follows: the video stream resource acquisition method based on the point-to-point mode initiates a resource acquisition request according to the video stream receiving state information of the user terminal, wherein the user terminal meets preset video stream receiving conditions in advance; searching a cache node which stores corresponding video stream resources in a point-to-point network according to attribute information of the video resources expected to be acquired by a user end, constructing an intra-domain communication channel between the point-to-point network and the user end, transmitting the video stream resources to the user end based on the intra-domain communication channel after the video stream resources are converted, screening the user end according to a video stream receiving state of the user end, ensuring that only the user end meeting preset video stream receiving conditions can acquire the video stream resources through the point-to-point network, and constructing the intra-domain communication channel between the point-to-point network and the user end, so that the video stream resources are transmitted in the intra-domain communication channel, and effectively improving the transmission efficiency and the transmission reliability of the video stream resources.
Preferably, in the step S1, determining whether the user terminal meets the preset video stream receiving condition according to the video stream receiving state information of the user terminal, includes:
acquiring the processing progress information of the receiving tasks on the current video stream receiving list of the user side, so as to obtain the total number of the receiving tasks which are not completed currently by the user side; if the total number of the receiving tasks is greater than or equal to a preset number threshold, judging that the user side does not meet the preset video stream receiving condition; if the total number of the receiving tasks is smaller than the preset number threshold, judging that the user side meets the preset video stream receiving condition.
The beneficial effects of the technical scheme are as follows: by the method, the total number of the currently unfinished receiving tasks of the user side is taken as a reference, and whether the user side meets the preset video stream receiving condition is judged, so that the user side with more currently unfinished receiving tasks can be prevented from initiating a resource obtaining request to the point-to-point network, the user side can actually execute the operation of obtaining resources from the point-to-point network only after finishing all the currently unfinished receiving tasks, and the user side is prevented from occupying the resources of the point-to-point network for a long time.
Preferably, in the step S1, corresponding video stream resource attribute information is obtained according to a resource acquisition request from a user terminal satisfying a preset video stream receiving condition, including:
and analyzing and processing the resource acquisition request from the user terminal meeting the preset video stream receiving condition to obtain the resource name information of the video stream resource expected to be acquired by the user terminal, and taking the resource name information as the attribute information of the video stream resource.
The beneficial effects of the technical scheme are as follows: by the method, the resource name information of the video stream resources expected to be acquired by the user side can be accurately determined, and the subsequent positioning from all cache nodes of the point-to-point network to the cache node corresponding to the video stream resources expected to be acquired by the user side is facilitated.
Preferably, in the step S2, according to the attribute information of the video stream resources, a cache node storing the corresponding video stream resources is searched in the peer-to-peer network; according to the network domain characteristic information of the cache node, constructing an intra-domain communication channel between the point-to-point network and the user terminal, including:
comparing the resource name information corresponding to the video stream resource attribute information with the video stream resource name information stored by all cache nodes in the point-to-point network, so as to determine the cache node storing the corresponding video stream resource in the point-to-point network;
judging whether the cache node storing the corresponding video stream resources and the user terminal are in the same network domain according to the gateway address information accessed by the cache node storing the corresponding video stream resources and the gateway address information accessed by the user terminal;
if the two are in the same network domain, constructing an intra-domain communication channel between the cache node storing the corresponding video stream resources and the user terminal;
if the two are not in the same network domain, transferring the video stream resource from the current cache node to another cache node of the point-to-point network, and constructing an intra-domain communication channel between the other cache node and the user terminal; the other cache node is in the same network domain as the user terminal and has the cache node with the shortest gateway route with the user terminal.
The beneficial effects of the technical scheme are as follows: by the method, the gateway address information accessed by the cache node storing the corresponding video stream resources and the gateway address information accessed by the user side are taken as references, whether the cache node storing the corresponding video stream resources and the user side are in the same network domain is judged, if the cache node storing the corresponding video stream resources and the user side are in the same network domain, the cache node storing the corresponding video stream resources and the user side can directly construct an intra-domain communication channel, and the transmission of the video stream resources in the same network domain is ensured; if the two are not in the same network domain, firstly transferring the video stream resources from the current cache node to another cache node of the point-to-point network, and then constructing an intra-domain communication channel between the other cache node and the user terminal, so that the intra-domain communication channel can be always utilized to transmit the video stream resources, and the transmission efficiency and reliability of the video stream resources are ensured.
Preferably, in the step S3, after the converting the video stream resource, the transmitting the video stream resource to the client based on the intra-domain communication channel includes:
dividing the video stream resource into a plurality of video stream data packets according to the transmission bandwidth of the intra-domain communication channel; all video stream data packets are sequentially transmitted to the user terminal based on the intra-domain communication channel.
The beneficial effects of the technical scheme are as follows: by the method, the video stream resources are equally divided into a plurality of video stream data packets, and all the video stream data packets are sequentially transmitted to the user side by utilizing the intra-domain communication channel, so that the situation that the video stream data is blocked in the transmission process of the intra-domain communication channel is avoided.
Referring to fig. 2, a schematic structural diagram of a video stream resource acquisition system based on a point-to-point mode according to an embodiment of the present invention is shown. The video stream resource acquisition system based on the point-to-point mode comprises the following steps:
the user terminal identification module is used for judging whether the user terminal meets the preset video stream receiving condition according to the video stream receiving state information of the user terminal;
the video stream resource calibration module is used for obtaining corresponding video stream resource attribute information according to a resource obtaining request from a user side meeting preset video stream receiving conditions;
the intra-domain communication channel construction module is used for searching a cache node which stores corresponding video stream resources in the point-to-point network according to the video stream resource attribute information; constructing an intra-domain communication channel between the point-to-point network and the user terminal according to the network domain characteristic information of the cache node;
and the video stream resource transmission module is used for transmitting the video stream resource to the user terminal based on the intra-domain communication channel after the video stream resource is converted.
The beneficial effects of the technical scheme are as follows: the video stream resource acquisition system based on the point-to-point mode initiates a resource acquisition request according to the video stream receiving state information of the user terminal, wherein the user terminal meets preset video stream receiving conditions in advance; searching a cache node which stores corresponding video stream resources in a point-to-point network according to attribute information of the video resources expected to be acquired by a user end, constructing an intra-domain communication channel between the point-to-point network and the user end, transmitting the video stream resources to the user end based on the intra-domain communication channel after the video stream resources are converted, screening the user end according to a video stream receiving state of the user end, ensuring that only the user end meeting preset video stream receiving conditions can acquire the video stream resources through the point-to-point network, and constructing the intra-domain communication channel between the point-to-point network and the user end, so that the video stream resources are transmitted in the intra-domain communication channel, and effectively improving the transmission efficiency and the transmission reliability of the video stream resources.
Preferably, the user terminal identification module is configured to determine, according to the video stream receiving status information of the user terminal, whether the user terminal meets a preset video stream receiving condition, and includes:
acquiring the processing progress information of the receiving tasks on the current video stream receiving list of the user side, so as to obtain the total number of the receiving tasks which are not completed currently by the user side; if the total number of the receiving tasks is greater than or equal to a preset number threshold, judging that the user side does not meet the preset video stream receiving condition; if the total number of the receiving tasks is smaller than the preset number threshold, judging that the user side meets the preset video stream receiving condition.
The beneficial effects of the technical scheme are as follows: by the method, the total number of the currently unfinished receiving tasks of the user side is taken as a reference, and whether the user side meets the preset video stream receiving condition is judged, so that the user side with more currently unfinished receiving tasks can be prevented from initiating a resource obtaining request to the point-to-point network, the user side can actually execute the operation of obtaining resources from the point-to-point network only after finishing all the currently unfinished receiving tasks, and the user side is prevented from occupying the resources of the point-to-point network for a long time.
Preferably, the video stream resource calibration module is configured to obtain corresponding video stream resource attribute information according to a resource acquisition request from a user terminal that satisfies a preset video stream receiving condition, and includes:
and analyzing and processing the resource acquisition request from the user terminal meeting the preset video stream receiving condition to obtain the resource name information of the video stream resource expected to be acquired by the user terminal, and taking the resource name information as the attribute information of the video stream resource.
The beneficial effects of the technical scheme are as follows: by the method, the resource name information of the video stream resources expected to be acquired by the user side can be accurately determined, and the subsequent positioning from all cache nodes of the point-to-point network to the cache node corresponding to the video stream resources expected to be acquired by the user side is facilitated.
Preferably, the intra-domain communication channel construction module is configured to search a point-to-point network for a cache node storing a corresponding video stream resource according to the video stream resource attribute information; according to the network domain characteristic information of the cache node, constructing an intra-domain communication channel between the point-to-point network and the user terminal, including:
comparing the resource name information corresponding to the video stream resource attribute information with the video stream resource name information stored by all cache nodes in the point-to-point network, so as to determine the cache node storing the corresponding video stream resource in the point-to-point network;
judging whether the cache node storing the corresponding video stream resources and the user terminal are in the same network domain according to the gateway address information accessed by the cache node storing the corresponding video stream resources and the gateway address information accessed by the user terminal;
if the two are in the same network domain, constructing an intra-domain communication channel between the cache node storing the corresponding video stream resources and the user terminal;
if the two are not in the same network domain, transferring the video stream resource from the current cache node to another cache node of the point-to-point network, and constructing an intra-domain communication channel between the other cache node and the user terminal; the other cache node is in the same network domain as the user terminal and has the cache node with the shortest gateway route with the user terminal.
The beneficial effects of the technical scheme are as follows: by the method, the gateway address information accessed by the cache node storing the corresponding video stream resources and the gateway address information accessed by the user side are taken as references, whether the cache node storing the corresponding video stream resources and the user side are in the same network domain is judged, if the cache node storing the corresponding video stream resources and the user side are in the same network domain, the cache node storing the corresponding video stream resources and the user side can directly construct an intra-domain communication channel, and the transmission of the video stream resources in the same network domain is ensured; if the two are not in the same network domain, firstly transferring the video stream resources from the current cache node to another cache node of the point-to-point network, and then constructing an intra-domain communication channel between the other cache node and the user terminal, so that the intra-domain communication channel can be always utilized to transmit the video stream resources, and the transmission efficiency and reliability of the video stream resources are ensured.
Preferably, the video stream resource transmission module is configured to transmit the video stream resource to the client based on the intra-domain communication channel after performing conversion processing on the video stream resource, and includes:
dividing the video stream resource into a plurality of video stream data packets according to the transmission bandwidth of the intra-domain communication channel; all video stream data packets are sequentially transmitted to the user terminal based on the intra-domain communication channel.
The beneficial effects of the technical scheme are as follows: by the method, the video stream resources are equally divided into a plurality of video stream data packets, and all the video stream data packets are sequentially transmitted to the user side by utilizing the intra-domain communication channel, so that the situation that the video stream data is blocked in the transmission process of the intra-domain communication channel is avoided.
As can be seen from the foregoing embodiments, the method and system for obtaining video stream resources based on a peer-to-peer mode initiate a resource obtaining request according to video stream receiving status information of a user terminal, where the user terminal meets preset video stream receiving conditions in advance; searching a cache node which stores corresponding video stream resources in a point-to-point network according to attribute information of the video resources expected to be acquired by a user end, constructing an intra-domain communication channel between the point-to-point network and the user end, transmitting the video stream resources to the user end based on the intra-domain communication channel after the video stream resources are converted, screening the user end according to a video stream receiving state of the user end, ensuring that only the user end meeting preset video stream receiving conditions can acquire the video stream resources through the point-to-point network, and constructing the intra-domain communication channel between the point-to-point network and the user end, so that the video stream resources are transmitted in the intra-domain communication channel, and effectively improving the transmission efficiency and the transmission reliability of the video stream resources.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. The video stream resource acquisition method based on the point-to-point mode is characterized by comprising the following steps:
step S1, judging whether the user terminal meets preset video stream receiving conditions according to video stream receiving state information of the user terminal; obtaining corresponding video stream resource attribute information according to a resource obtaining request from a user side meeting preset video stream receiving conditions;
step S2, searching a cache node which stores corresponding video stream resources in a point-to-point network according to the video stream resource attribute information; constructing an intra-domain communication channel between the point-to-point network and the user according to the network domain characteristic information of the cache node;
and step S3, after the video stream resources are converted, the video stream resources are transmitted to the user side based on the intra-domain communication channel.
2. The method for obtaining video stream resources based on the point-to-point mode according to claim 1, wherein:
in the step S1, according to the video stream receiving status information of the user terminal, determining whether the user terminal meets the preset video stream receiving condition includes:
acquiring the processing progress information of the receiving tasks on the current video stream receiving list of the user side, so as to obtain the total number of the receiving tasks which are not completed currently by the user side; if the total number of the receiving tasks is larger than or equal to a preset number threshold, judging that the user side does not meet the preset video stream receiving condition; and if the total number of the receiving tasks is smaller than a preset number threshold, judging that the user side meets the preset video stream receiving condition.
3. The method for obtaining video stream resources based on the point-to-point mode according to claim 2, wherein:
in the step S1, corresponding video stream resource attribute information is obtained according to a resource acquisition request from a user side satisfying a preset video stream receiving condition, including:
and analyzing and processing the resource acquisition request from the user terminal meeting the preset video stream receiving condition to obtain the resource name information of the video stream resource expected to be acquired by the user terminal, and taking the resource name information as the video stream resource attribute information.
4. The method for obtaining video stream resources based on the point-to-point mode according to claim 1, wherein:
in the step S2, according to the attribute information of the video stream resources, searching a cache node storing the corresponding video stream resources in a peer-to-peer network; according to the network domain characteristic information of the cache node, constructing an intra-domain communication channel between the point-to-point network and the user terminal, including:
comparing the resource name information corresponding to the video stream resource attribute information with the video stream resource name information stored by all cache nodes in the point-to-point network, so as to determine the cache node storing the corresponding video stream resource in the point-to-point network;
judging whether the cache node storing the corresponding video stream resources and the user terminal are in the same network domain according to the gateway address information accessed by the cache node storing the corresponding video stream resources and the gateway address information accessed by the user terminal;
if the two are in the same network domain, constructing an intra-domain communication channel between the cache node storing the corresponding video stream resources and the user terminal;
if the two are not in the same network domain, transferring the video stream resource from the current cache node to another cache node of the point-to-point network, and constructing an intra-domain communication channel between the other cache node and the user terminal; the other cache node is in the same network domain as the user terminal and has the cache node with the shortest gateway route with the user terminal.
5. The method for obtaining video stream resources based on the point-to-point mode according to claim 1, wherein:
in the step S3, after the conversion processing is performed on the video stream resource, the video stream resource is transmitted to the client based on the intra-domain communication channel, including:
dividing the video stream resources into a plurality of video stream data packets according to the transmission bandwidth of the intra-domain communication channel; and transmitting all video stream data packets to the user side in sequence based on the intra-domain communication channel.
6. The video stream resource acquisition system based on the point-to-point mode is characterized by comprising the following components:
the user terminal identification module is used for judging whether the user terminal meets the preset video stream receiving condition according to the video stream receiving state information of the user terminal;
the video stream resource calibration module is used for obtaining corresponding video stream resource attribute information according to a resource obtaining request from a user side meeting preset video stream receiving conditions;
the intra-domain communication channel construction module is used for searching a cache node which stores corresponding video stream resources in a point-to-point network according to the video stream resource attribute information; constructing an intra-domain communication channel between the point-to-point network and the user according to the network domain characteristic information of the cache node; and the video stream resource transmission module is used for transmitting the video stream resource to the user terminal based on the intra-domain communication channel after the video stream resource is converted.
7. The point-to-point mode based video stream resource acquisition system of claim 6 wherein:
the user terminal identification module is used for judging whether the user terminal meets the preset video stream receiving condition according to the video stream receiving state information of the user terminal, and comprises the following steps:
acquiring the processing progress information of the receiving tasks on the current video stream receiving list of the user side, so as to obtain the total number of the receiving tasks which are not completed currently by the user side; if the total number of the receiving tasks is larger than or equal to a preset number threshold, judging that the user side does not meet the preset video stream receiving condition; and if the total number of the receiving tasks is smaller than a preset number threshold, judging that the user side meets the preset video stream receiving condition.
8. The point-to-point mode based video stream resource acquisition system of claim 7 wherein:
the video stream resource calibration module is used for obtaining corresponding video stream resource attribute information according to a resource obtaining request from a user side meeting preset video stream receiving conditions, and comprises the following steps:
and analyzing and processing the resource acquisition request from the user terminal meeting the preset video stream receiving condition to obtain the resource name information of the video stream resource expected to be acquired by the user terminal, and taking the resource name information as the video stream resource attribute information.
9. The point-to-point mode based video stream resource acquisition system of claim 6 wherein:
the intra-domain communication channel construction module is used for searching a cache node which stores corresponding video stream resources in a point-to-point network according to the video stream resource attribute information; according to the network domain characteristic information of the cache node, constructing an intra-domain communication channel between the point-to-point network and the user terminal, including:
comparing the resource name information corresponding to the video stream resource attribute information with the video stream resource name information stored by all cache nodes in the point-to-point network, so as to determine the cache node storing the corresponding video stream resource in the point-to-point network;
judging whether the cache node storing the corresponding video stream resources and the user terminal are in the same network domain according to the gateway address information accessed by the cache node storing the corresponding video stream resources and the gateway address information accessed by the user terminal;
if the two are in the same network domain, constructing an intra-domain communication channel between the cache node storing the corresponding video stream resources and the user terminal;
if the two are not in the same network domain, transferring the video stream resource from the current cache node to another cache node of the point-to-point network, and constructing an intra-domain communication channel between the other cache node and the user terminal; the other cache node is in the same network domain as the user terminal and has the cache node with the shortest gateway route with the user terminal.
10. The point-to-point mode based video stream resource acquisition system of claim 6 wherein:
the video stream resource transmission module is configured to transmit the video stream resource to the user terminal based on the intra-domain communication channel after performing conversion processing on the video stream resource, and includes:
dividing the video stream resources into a plurality of video stream data packets according to the transmission bandwidth of the intra-domain communication channel; and transmitting all video stream data packets to the user side in sequence based on the intra-domain communication channel.
CN202211651749.3A 2022-12-21 2022-12-21 Video stream resource acquisition method and system based on point-to-point mode Pending CN116828225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211651749.3A CN116828225A (en) 2022-12-21 2022-12-21 Video stream resource acquisition method and system based on point-to-point mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211651749.3A CN116828225A (en) 2022-12-21 2022-12-21 Video stream resource acquisition method and system based on point-to-point mode

Publications (1)

Publication Number Publication Date
CN116828225A true CN116828225A (en) 2023-09-29

Family

ID=88113385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211651749.3A Pending CN116828225A (en) 2022-12-21 2022-12-21 Video stream resource acquisition method and system based on point-to-point mode

Country Status (1)

Country Link
CN (1) CN116828225A (en)

Similar Documents

Publication Publication Date Title
CN112968967B (en) Block synchronization method and device
CN102281190B (en) Networking method for load balancing apparatus, server and client access method
US20090319686A1 (en) Communication route selecting method and apparatus
CN108429701B (en) Network acceleration system
EP2563062A1 (en) Long connection management apparatus and link resource management method for long connection communication
CN111966289B (en) Partition optimization method and system based on Kafka cluster
WO2021169294A1 (en) Application recognition model updating method and apparatus, and storage medium
US10813032B2 (en) Systems and methods for neighboring node discovery in a network
US9813324B2 (en) Dynamic control of endpoint profiling
CN107018088B (en) Transmission link selection method and device
CN116828225A (en) Video stream resource acquisition method and system based on point-to-point mode
CN109474696B (en) Network service method, device, electronic equipment and readable storage medium
CN111092952A (en) Data interaction method and related product
CN113794994B (en) Information gathering method and device based on multicast domain name system and application thereof
CN114546641B (en) Comprehensive energy control system based on Internet of things gateway and node intelligent box
CN116821215A (en) OPC UA server searching method based on port inquiry
EP2930617A1 (en) Resource management method and device
US8266165B2 (en) Adaptive parameterized search algorithm
CN113572627B (en) Data processing method and data processing device
CN116647874B (en) 5G high-performance network server data optimization transmission method and system
CN114238004B (en) Method and device for checking data transmission correctness of interconnected circuit and electronic equipment
CN112203113B (en) Video stream structuring method and device, electronic equipment and computer readable medium
CN112217605B (en) Transmission policy selection method, device and storage medium
CN112347141B (en) Data access control method, system, device and medium
US10805384B1 (en) Systems and methods for load balancing server infrastructure

Legal Events

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