CN104980417B - A kind of UGC document distribution method and equipment - Google Patents

A kind of UGC document distribution method and equipment Download PDF

Info

Publication number
CN104980417B
CN104980417B CN201410384888.3A CN201410384888A CN104980417B CN 104980417 B CN104980417 B CN 104980417B CN 201410384888 A CN201410384888 A CN 201410384888A CN 104980417 B CN104980417 B CN 104980417B
Authority
CN
China
Prior art keywords
user
file
ugc
priority
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410384888.3A
Other languages
Chinese (zh)
Other versions
CN104980417A (en
Inventor
曾东方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410384888.3A priority Critical patent/CN104980417B/en
Publication of CN104980417A publication Critical patent/CN104980417A/en
Application granted granted Critical
Publication of CN104980417B publication Critical patent/CN104980417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of UGC document distribution methods, comprising: receives the file upload request including the first UGC file that user equipment is sent, includes user identifier in this document upload request;The precedence information of user is inquired in the corresponding relationship of user identifier and precedence information that itself is stored according to the user identifier;If the priority for inquiring the user is the first priority, the corresponding object edge node of the user is determined, and by the first UGC file distributing to the object edge node;Wherein, the priority of the user is that the UGC file that the first priority shows that the user uploads needs to be distributed to part edge node.The embodiment of the invention also discloses a kind of UGC file distributing equipment.Implement the embodiment of the present invention, UGC file acquisition efficiency can be improved.

Description

A kind of UGC document distribution method and equipment
Technical field
The present invention relates to Internet technical field more particularly to a kind of UGC document distribution method and equipment.
Background technique
Video stream media, as a kind of content ways of presentation of Web2.0, because have than picture and text have it is more lively Describing mode and liked by masses.Product type is common in all kinds of video sharing class APP (application) and social network sites.We this This kind of video is called UGC (User Generated Content, user-generated content) video.
Current all kinds of UGC video products can all use CDN (Content Distribution Network, content distribution Network) acceleration technique, the fringe node foradownloaded video information for allowing user to be most close to the users from CDN network simultaneously plays.UGC video text Part is synchronized to CDN fringe node, generallys use following scheme:
After user's uploaded videos file to data center, not active synchronization to CDN fringe node.It clicks and regards when other users When frequency plays, the service of broadcasting is provided by fringe node, if fringe node content is not present, the real-time reverse proxy of fringe node is gone Data center's pulling data is transmitted to user's broadcasting.
In the implementation of the present invention, at least there is following technical problem in the prior art in inventor's discovery:
In the prior art, when user obtains video file by fringe node, fringe node needs first from data center Corresponding video file is obtained, then the video file is handed down to user, the efficiency for obtaining video file is lower.
Summary of the invention
The embodiment of the invention discloses a kind of UGC document distribution method and equipment, can be improved user and obtain UGC file Efficiency.
First aspect of the embodiment of the present invention discloses a kind of user generated content (UGC) document distribution method, comprising:
The file upload request including the first UGC file that user equipment is sent is received, includes in this document upload request User identifier;
User is inquired in the corresponding relationship of user identifier and precedence information that itself is stored according to the user identifier Precedence information;
If the priority for inquiring the user is the first priority, the corresponding object edge node of the user is determined, and By the first UGC file distributing to the object edge node;Wherein, the priority of the user is that the first priority shows The UGC file that the user uploads needs to be distributed to part edge node.
Second aspect of the embodiment of the present invention discloses a kind of user generated content (UGC) file distributing equipment, comprising:
First receiving module, for receiving the file upload request including the first UGC file of user equipment transmission, this article Part upload request includes user identifier;
Enquiry module, user identifier for being stored according to the user identifier in the UGC file distributing equipment and excellent The precedence information of user is inquired in the corresponding relationship of first grade information;
First determining module, when the priority for inquiring the user when the enquiry module is the first priority, Determine the corresponding object edge node of the user;Wherein, the priority of the user is that the first priority shows that the user uploads UGC file need to be distributed to part edge node;
Distribution module is used for the first UGC file distributing to the object edge node.
The implementation of the embodiments of the present invention has the following beneficial effects:
When receiving the file upload request for UGC file, according to the user identifier for including in file upload request The priority for uploading the user of the UGC file is determined, and when the priority of the user is the first priority, by the UGC file It is distributed to the corresponding object edge node of the user, so that user can obtain UGC text by the object edge node Part improves the efficiency of UGC file acquisition.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is a kind of flow diagram of UGC document distribution method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another kind UGC document distribution method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of UGC file acquisition method provided in an embodiment of the present invention;
Fig. 4 is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of UGC file distributing equipment provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another kind UGC file distributing equipment provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another kind UGC file distributing equipment provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another kind UGC file distributing equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts Example is applied, shall fall within the protection scope of the present invention.
As shown in Figure 1, being a kind of flow diagram of UGC document distribution method provided in an embodiment of the present invention, can wrap Include following steps:
S101, the file upload request including the first UGC file that user equipment is sent is received, in this document upload request Including user identifier.
S102, use is inquired in the corresponding relationship of user identifier and precedence information that itself is stored according to the user identifier The precedence information at family.
If S103, the priority for inquiring user are the first priority, the corresponding object edge node of the user is determined, and By the first UGC file distributing to the object edge node.
In the embodiment of the present invention, UGC file can include but is not limited to video file, audio file, picture file (dynamic Picture, static images) etc., the embodiment of the present invention is without limitation.
In the embodiment of the present invention, for the UGC file that user uploads, can be determined according to the precedence information of the user should UGC file needs the fringe node distributed, and is distributed to the UGC file.
Specifically, when receiving the file upload request for the first UGC file, it can be according to this document upload request The user identifier of middle carrying, itself storage user identifier and precedence information corresponding relationship in inquiry upload this first The precedence information of the user of UGC file, to determine the first UGC file need according to the precedence information of the user inquired The fringe node to be distributed.
As an alternative embodiment, the corresponding relationship of user identifier and precedence information in the embodiment of the present invention It can be pre-configured with and store in a manner of human configuration.
As another optional embodiment, the user identifier in the embodiment of the present invention and the corresponding of precedence information are closed System can also be determining in a manner of dynamic statistics and stores.
It in this embodiment, can also include following step before receiving the file upload request for the first UGC file It is rapid:
Step 11), according to the user identifier for the user for uploading UGC file, count what each user in preset time period uploaded The times of acquisition of UGC file;
Step 12) is ranked up user according to the sequence of the times of acquisition from high to low;
Step 13), the precedence information that user is determined according to ranking results, and store the user identifier and priority of user The corresponding relationship of information.
It for uploaded videos file, in embodiments of the present invention, can recorde in preset time (false in microblogging by user It is set as one week) the click play situation of video file that is uploaded in microblogging of each user, and according to the user identifier of user (as used Name in an account book) times of acquisition (i.e. broadcasting time) of the video file of each user's upload in statistics one week, and according to the broadcasting time pair User is ranked up.Wherein, which can be as shown in table 1:
Table 1
According to above-mentioned ranking results, the precedence information of user can be determined, and store the user identifier of user and preferential The corresponding relationship of grade information.
For example, what video playing number can be come to preceding 10 user is determined as priority according to above-mentioned ranking results (video file uploaded after user's measurement period of highest priority needs to be distributed to all the user of highest (the second priority) Fringe node);The user that the user that video playing number comes rear 10 is determined as priority minimum (third priority) is (preferential The video file that the minimum user of grade uploads after measurement period does not need point to be distributed to fringe node);Remaining user's is preferential Grade is determined as the first priority (being higher than third priority, be lower than the second priority), which uploads after measurement period Video file need to be distributed to part edge node.
In another example according to above-mentioned ranking results, it can be according to the sequence of sequence from high to low, by the total of video playing number It is set as highest priority (the second priority) with the priority of the user for the ratio 90% for accounting for the total broadcasting time of video, it will be remaining User in, according to sequence sequence from high to low, the summation of video playing number accounts for the ratio 9% of the total broadcasting time of video The priority of user is set as time high priority (the first priority), the priority of remaining user is set as lowest priority (the Three priority).
Assuming that the total broadcasting time of video is 1000, the summation of the video playing number of user 1 to user 10 is 900, user 11 to the summation of video playing number of user 40 be 90, and the summation of the video playing number of user 40 to user 50 is 10, then The second priority is set by the priority of user 1 to user 10, it is excellent to set first for the priority of user 11 to user 40 The priority of user 40 to user 50 are set third priority by first grade.
In the embodiment of the present invention, after determining the precedence information of user, the user identifier of user and preferential can store The corresponding relationship of grade information.Wherein, the corresponding relationship of the user identifier of user and precedence information can be as shown in table 2:
Table 2
User identifier Priority
User 1 Second priority
User 2 Second priority
User 20 First priority
(N is total number of users to user N, 20) N is greater than Third priority
It further, in embodiments of the present invention, is the user of the first priority for priority, it is also necessary to determine the use The UGC file that family uploads needs the fringe node distributed, therefore, after the precedence information that user is determined according to ranking results, It may comprise steps of:
Step 21), when the priority of user be the first priority when, statistics obtain the user upload UGC file use The geographical location information in the region that family equipment is distributed;
Step 22), that fringe node present in the corresponding region of the geographical location information is determined as the user is corresponding Fringe node;Wherein, the fringe node that the corresponding fringe node of the user needs to distribute for the UGC file that the user uploads.
For example, it is assumed that the click play situation for the video file that user A is uploaded determines that the priority of user A is first preferential Grade then can further count the geographical location letter in the region that is distributed of user equipment of the video of click play user A upload It ceases (geographical location information that user equipment can be determined according to the IP address of the user equipment of click play video file), such as north Capital, Shanghai, Shenzhen, it may be considered that the audient for the video file that user A is uploaded is mainly distributed on above-mentioned zone, it can be by the area Fringe node existing for domain is determined as the corresponding fringe node of user A, and the video file needs that subsequent user A is uploaded are distributed to State the fringe node in region.
It should be noted that being the first priority for priority in technical solution provided in an embodiment of the present invention User, when obtaining what the user uploaded counting it needs to be determined that a threshold value can be set when its corresponding fringe node It, can be only by the number of the user equipment of the same area after the geographical location information in the region that the user equipment of UCG file is distributed Amount is more than that fringe node existing for the region of the threshold value is determined as the corresponding fringe node of the user.
For example, it is assumed that the priority of user A is the first priority, the video that the click play user A counted is uploaded is literary The region of the user equipment distribution of part includes Beijing, Shanghai, Shenzhen, Nanjing, wherein Pekinese's user device quantity is 20, Shanghai For 15, Shenzhen 10, Nanjing 2, and preset threshold value is 5, then can by Beijing, Shanghai, Shenzhen setting fringe node (such as Fruit presence) it is determined as the corresponding fringe node of user A.
Further, in embodiments of the present invention, in the corresponding relationship of the user identifier and precedence information that determine user Later, the user identifier of the user of itself storage and the corresponding relationship of precedence information can also periodically be updated.
Specifically, can periodically unite after the corresponding relationship of the user identifier and precedence information that determine user The times of acquisition for the UGC file that each user uploads in predetermined period are counted, and according to the user identifier of each user, user is uploaded The times of acquisition of UGC file are ranked up (according to sequence from high to low), are determined in the predetermined period according to ranking results The precedence information of user, and according to the precedence information of the user in the predetermined period update itself storage user user The corresponding relationship of mark and precedence information.
As shown in Fig. 2, be the flow diagram of another kind UGC document distribution method provided in an embodiment of the present invention, it can be with The following steps are included:
S201, it determines the precedence information for uploading the user of UGC file, and stores pair of user identifier and precedence information It should be related to.
In the embodiment of the present invention, it can count each in preset time period according to the user identifier for the user for uploading UGC file The times of acquisition for the UGC file that user uploads, and user is ranked up according to the sequence of the times of acquisition from high to low, in turn The precedence information of user is determined according to ranking results, and stores the user identifier of user and the corresponding relationship of precedence information.
It for uploaded videos file, in embodiments of the present invention, can recorde in preset time (false in microblogging by user It is set as one week) the click play situation of video file that is uploaded in microblogging of each user, and according to the user identifier of user (as used Name in an account book) times of acquisition (i.e. broadcasting time) of the video file of each user's upload in statistics one week, and according to the broadcasting time pair User is ranked up.
According to above-mentioned ranking results, the precedence information of user can be determined, and store the user identifier of user and preferential The corresponding relationship of grade information.
For example, what video playing number can be come to preceding 10 user is determined as priority according to above-mentioned ranking results (video file uploaded after user's measurement period of highest priority needs to be distributed to all the user of highest (the second priority) Fringe node);The user that the user that video playing number comes rear 10 is determined as priority minimum (third priority) is (preferential The video file that the minimum user of grade uploads after measurement period does not need point to be distributed to fringe node);Remaining user's is preferential Grade is determined as the first priority (being higher than third priority, be lower than the second priority), which uploads after measurement period Video file need to be distributed to part edge node.
In another example according to above-mentioned ranking results, it can be according to the sequence of sequence from high to low, by the total of video playing number It is set as highest priority (the second priority) with the priority of the user for the ratio 90% for accounting for the total broadcasting time of video, it will be remaining User in, according to sequence sequence from high to low, the summation of video playing number accounts for the ratio 9% of the total broadcasting time of video The priority of user is set as time high priority (the first priority), the priority of remaining user is set as lowest priority (the Three priority).
Assuming that the total broadcasting time of video is 1000, the summation of the video playing number of user 1 to user 10 is 900, user 11 to the summation of video playing number of user 40 be 90, and the summation of the video playing number of user 40 to user 50 is 10, then The second priority is set by the priority of user 1 to user 10, it is excellent to set first for the priority of user 11 to user 40 The priority of user 40 to user 50 are set third priority by first grade.
In the embodiment of the present invention, after determining the precedence information of user, the user identifier of user and preferential can store The corresponding relationship of grade information.
Further, in embodiments of the present invention, in the corresponding relationship of the user identifier and precedence information that determine user Later, the user identifier of the user of itself storage and the corresponding relationship of precedence information can also periodically be updated.
It wherein, is the user of the first priority for priority, it is also necessary to determine that the UGC file that the user uploads needs to divide The fringe node of hair.
Specifically, the UGC file for obtaining that the user uploads can be counted when the priority of user is the first priority The geographical location information in the region that user equipment is distributed;By fringe node present in the corresponding region of the geographical location information It is determined as the corresponding fringe node of the user;Wherein, the corresponding fringe node of the user is that the UGC file that the user uploads needs The fringe node of distribution.
For example, it is assumed that the click play situation for the video file that user A is uploaded determines that the priority of user A is first preferential Grade then can further count the geographical location letter in the region that is distributed of user equipment of the video of click play user A upload It ceases (geographical location information that user equipment can be determined according to the IP address of the user equipment of click play video file), such as north Capital, Shanghai, Shenzhen, it may be considered that the audient for the video file that user A is uploaded is mainly distributed on above-mentioned zone, it can be by the area Fringe node existing for domain is determined as the corresponding fringe node of user A, and the video file needs that subsequent user A is uploaded are distributed to State the fringe node in region.
S202, when receive user equipment transmission the file upload request including the first UGC file when, according to this document The user identifier carried in upload request inquires user in the corresponding relationship of user identifier and precedence information that itself is stored Precedence information.If the priority for inquiring user is the first priority, S203 is gone to;If inquiring the priority of user For the second priority, then S204 is gone to;If the priority for inquiring user is third priority, or does not inquire the preferential of user Grade information, then go to S205.
S203, the corresponding object edge node of user is determined, and by the first UGC file distributing to the object edge section Point.
S204, by the first UGC file distributing to all fringe nodes.
S205, the first UGC file is saved to data center.
It, can be according to carrying in this document upload request when receiving file upload request in the embodiment of the present invention User identifier inquires itself user identifier of storage and the corresponding relationship of precedence information, uploads the first UGC file to determine User priority.
When the priority for inquiring user is the first priority, then show the first UGC file for uploading the user point Need to be sent to part edge node, at this point it is possible to the corresponding object edge node of the user is inquired according to the user identifier of user, And by the first UGC file distributing to the object edge node.
When the priority for inquiring user is the second priority, then the first UGC file of user upload is demonstrated the need for Need to be distributed to all fringe nodes, at this point, by the first UGC file distributing to all fringe nodes.
When the priority for inquiring user is third priority, or precedence information (user of the user is not inquired Before this not on be transmitted through UGC file), then show the user upload UGC file do not need to be distributed to fringe node, at this point, should First UGC file is saved to data center.
It should be noted that in technical solution provided in an embodiment of the present invention, the UGC file that all users upload, Needing to be saved in data center, (data center preserves the identification information for the UGC file that all users upload and uploads UGC text The corresponding relationship of the user identifier of the user of part), and described in above-described embodiment when User Priority be the first priority or When the second priority, the UGC file distributing for needing to upload the user is practical, it is emphasized that in addition to needing to fringe node The UGC file is saved in except data center, it is also necessary to be distributed to corresponding fringe node;And when User Priority is third Priority, or when not inquiring the precedence information of user, the UGC file which uploads is saved in data center, in fact Border is not, it is emphasized that need the UGC file distributing to fringe node, and only need to be saved in data center.
Based on above-mentioned UGC file distributing process, the embodiment of the invention also provides a kind of method of UGC file acquisition, Flow diagram may refer to Fig. 3.
As shown in figure 3, being a kind of flow diagram of UGC file acquisition method provided in an embodiment of the present invention, can wrap Include following steps:
S301, the UGC file acquisition request that user equipment is sent is received, carries request in UGC file acquisition request The geographical location information of the region of the identification information and user equipment of the UGC file of acquisition.
S302, the user is selected as from the fringe node or data center for preserving the UGC file according to nearby principle Equipment provides fringe node or the data center of service, and the address information of the fringe node or data center is sent to the use Family equipment, so that the user equipment obtains the UGC file according to the address information.
In the embodiment of the present invention, when user wants to obtain the UGC file of certain user upload, as user wants to play user 1 video file uploaded in microblogging, the user can initiate the request of UGC file acquisition by user equipment, which obtains The identification information of the UGC file of request can at least be carried (identification information can be in unique identification system by taking in request The a certain UGC file that a certain user uploads) and the user equipment region geographical location information.
When receiving the UGC file acquisition request of user equipment (user equipment A) transmission, can be obtained according to this document The identification information of the UGC file carried in request, inquiry uploads the user identifier of the user of the UGC file in the data center, And then determine the edge node devices of the UGC file distributing.
Specifically, the identification information of the UGC file carried in being requested according to file acquisition, is inquired in the data center The user identifier of the user of the UGC file is uploaded, and inquires the user identifier and priority of itself storage according to the user identifier The corresponding relationship of information determines the priority of the user.If the priority of the user is the first priority, this is further determined that The corresponding object edge node of user preserves the fringe node of the UGC file of user upload;If the priority of the user For the second priority, then the UGC file that user upload is saved in all fringe nodes can be determined;If the user's is excellent First grade is third priority, or does not inquire the precedence information of the user, then can determine the UGC file of user upload not It is distributed to fringe node, and is stored in data center.
It, can be according to nearby principle from the fringe node or data for preserving the UGC file 1 according to above-mentioned query result It is selected as user equipment A in the heart, fringe node or the data center of service be provided, and by the fringe node or data center Address information is sent to user equipment A, so that user equipment A obtains the UGC file 1 according to the address information.
For example, preserving UGC file 1 in fringe node if having inquired, the ground in geographical location Yu user A can choose The nearest fringe node in reason position provides service for user equipment A;UGC file 1 is preserved if not inquired in fringe node, It then can choose data center and provide service for user equipment A.
For example, it is assumed that user equipment A is located at Beijing, the fringe node for preserving UGC file 1 is distributed in Beijing, Shanghai, depth The ground such as ditch between fields select Pekinese's fringe node to provide service for user then according to nearby principle, by the address of Pekinese's fringe node Information is sent to user equipment A, so that user equipment A obtains UGC file according to the address information from Pekinese's fringe node 1。
In order to make those skilled in the art can better understand that technical solution provided in an embodiment of the present invention, below with reference to Technical solution provided in an embodiment of the present invention is described in specific application scenarios.
In this embodiment, with user in microblogging uploaded videos file and user the click play video in microblogging For file.
Referring to fig. 4, it is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, may include stream matchmaker Body dispatching platform 41 (i.e. UGC file distributing equipment), fringe node 42 and data center 43;Wherein:
When stream media scheduling platform 41 receives the video upload request of user equipment transmission, it can be uploaded according to the video The user identifier for including in request determines the precedence information of video uploader.
When the priority of video uploader is the second priority, stream media scheduling platform requests the video upload request The video distribution of upload is to all fringe nodes 42;
When the priority of video uploader is the first priority, stream media scheduling platform requests the video upload request To part edge node 42, (stream media scheduling platform can determine the corresponding target side of the video uploader to the video distribution of upload Edge node, and request the video distribution uploaded to the object edge node video upload request);
When the priority of video uploader is third priority, stream media scheduling platform is not asked the video upload request The video of upload is asked to save to data center 43, without being distributed to fringe node 42.
When stream media scheduling platform 41 receives video playing request, the video that can be played according to the request, and Request plays the geographical location information of the user of video, according to nearby principle from the fringe node 42 for preserving the UGC file or It is selected as the user in data center 43, fringe node 42 or the data center 43 of service are provided.
Detailed process is as follows:
1, analyze the log of stream media scheduling dispatching platforms, collect video viewers' geographical location information (being positioned according to IP) and Watch video information.
2, step 1 result is analyzed, according to query video to video uploader information.Count video uploader by Crowd's distribution, exports the video hot topic play area list of each video uploader.
Statistical rules is as follows:
I. video playing number is counted by video uploader, and is arranged from high to low by broadcasting time.
II. taking and contributing the video uploader of preceding 90% access is big V user (i.e. the second priority users), for region-wide heat Door.
III. the video uploader for taking intermediate 9% access of contribution is any active ues (i.e. the first priority users), is calculated each The video click play zone list of video uploader.
IV. remaining user is defined as inactive user (i.e. third priority user), does not count.
3, step 2 result is analyzed, inquires the fringe node list of each regional deployment, exported in each video uploader The distribution fringe node list of any active ues, big V user distribute all fringe nodes.
4, when video uploader uploaded videos are to steaming media platform, dissemination system decision rule is as follows:
I. the distribution fringe node list storehouse of video uploader is inquired, if user exists, enters II, otherwise enters IV。
II. if matching big V user, all fringe nodes are directly distributed to, into V.Otherwise enter III.
III. if matching any active ues, inquire the fringe node list of user hot topic, assign to video to these sides Edge node, into V.
IV. inactive user is matched, file does not do pre- distribution, directly service is provided using data center, into V.
V. terminate.
5, when video viewers click video playing, stream media scheduling platform is video-see according to file distributing situation Person distributes an optimal nearest access point and provides service.
Through above description as can be seen that in technical solution provided in an embodiment of the present invention, it can be uploaded according to user The acquisition situation of UGC file determine the priority of user, and the UGC file that user uploads is carried out according to the priority of user Distribution, the UGC file distributing that the user of highest priority uploads to all fringe nodes, the high user of preferential level upload For UGC file distributing to part edge node, the UGC file that the minimum user of priority uploads is not distributed to fringe node, when with When family needs to obtain UGC file, the UGC file that the user of (the first priority or the second priority) high for priority uploads, It can be obtained from fringe node, ensure that user obtains the efficiency of UGC file.
Based on the identical technical concept of above method embodiment, the embodiment of the invention also provides a kind of UGC file distributings Equipment can be applied in above method embodiment.
As shown in figure 5, being a kind of structural schematic diagram of UGC file distributing equipment provided in an embodiment of the present invention, can wrap It includes:
First receiving module 501, for receiving the file upload request including the first UGC file of user equipment transmission, This document upload request includes user identifier;
Enquiry module 502, user identifier for being stored according to the user identifier in the UGC file distributing equipment and The precedence information of user is inquired in the corresponding relationship of precedence information;
First determining module 503, the priority for inquiring the user when the enquiry module 402 are first preferential When grade, the corresponding object edge node of the user is determined;Wherein, the priority of the user is that the first priority shows the user The UGC file of upload needs to be distributed to part edge node;
Distribution module 504 is used for the first UGC file distributing to the object edge node.
Wherein, the distribution module 504 can be also used for,
When the priority that the enquiry module inquires the user is the second priority, by the first UGC file It is distributed to all fringe nodes;Wherein, the priority of the user is that the second priority shows that the UGC file that the user uploads needs It is distributed to all fringe nodes;
Or/and
When the priority that the enquiry module inquires the user is third priority, or, not inquiring the user Precedence information when, the first UGC file is saved to data center;Wherein, the priority of the user is that third is excellent The UGC file that first grade shows that the user uploads does not need to be distributed to fringe node.
Referring to Figure 6 together, Fig. 6 is the structural representation of another kind UGC file distributing equipment disclosed by the embodiments of the present invention Figure.Wherein, terminal device shown in fig. 6 is that UGC file distributing equipment as shown in Figure 5 optimizes, and shown in Fig. 5 UGC file distributing equipment compare, UGC file distributing equipment shown in fig. 6 can also include:
Statistical module 505 is counted and is respectively used in preset time period for the user identifier according to the user for uploading UGC file The times of acquisition for the UGC file that family uploads;
Sorting module 506, for being ranked up according to the sequence of the times of acquisition from high to low to the user;
Second determining module 507, for determining the precedence information of the user according to the ranking results;
Memory module 508, for storing the user identifier of the user and the corresponding relationship of precedence information.
Wherein, the statistical module 505 can be also used for, and when the priority of user is the first priority, statistics is obtained The geographical location information in the region that the user equipment for the UGC file that the user uploads is distributed;
Correspondingly, UGC file distributing equipment shown in fig. 6 can also include:
Third determining module 509, for determining fringe node present in the corresponding region of the geographic location information For the corresponding fringe node of the user;Wherein, the corresponding fringe node of the user is that the UGC file that the user uploads needs to distribute Fringe node.
As an alternative embodiment, UGC file distributing equipment shown in fig. 6 can also include:
Update module 510, for periodically updating the user identifier and priority of the user stored in the memory module The corresponding relationship of information.
Referring to Figure 7 together, Fig. 7 is the structural representation of another kind UGC file distributing equipment disclosed by the embodiments of the present invention Figure.Wherein, terminal device shown in Fig. 7 is that UGC file distributing equipment as shown in Figure 5 optimizes, and shown in Fig. 5 UGC file distributing equipment compare, UGC file distributing equipment shown in Fig. 7 can also include:
Second receiving module 511, for receiving the UGC file acquisition request of user equipment transmission, which is asked The geographical location information of the identification information of the UGC file of request and the region of the user equipment is carried in asking;
Processing module 512, for being selected from the fringe node or data center for preserving the UGC file according to nearby principle It is selected as the user equipment and fringe node or the data center of service is provided, and by the fringe node or the address information of data center It is sent to the user equipment, so that the user equipment obtains the UGC file according to the address information.
Fig. 8 is the structural schematic diagram of another UGC file distributing equipment provided in the embodiment of the present invention.As shown in figure 8, The flow-control equipment includes: at least one processor 801, such as CPU, input/output unit 803, memory 804, at least one A communication bus 802.Wherein, communication bus 802 is for realizing the connection communication between these components.Wherein, memory 804 can To be high speed RAM memory, it is also possible to non-labile memory (non-volatile memory), for example, at least one Magnetic disk storage.Memory 804 optionally can also be that at least one is located remotely from the storage device of aforementioned processor 801.Its Batch processing code is stored in middle memory 804, and processor 801 calls the program code stored in memory 804, for holding The following operation of row:
The file upload request including the first UGC file that user equipment is sent is received by input/output unit 803, it should It include user identifier in file upload request;
User is inquired in the corresponding relationship of user identifier and precedence information that itself is stored according to the user identifier Precedence information;
If the priority for inquiring the user is the first priority, the corresponding object edge node of the user is determined, and By input/output unit 803 by the first UGC file distributing to the object edge node;Wherein, the user's is excellent First grade is that the UGC file that the first priority shows that the user uploads needs to be distributed to part edge node.
In an alternative embodiment, processor 801 calls the program code stored in memory 804, can also be performed following Operation:
If the priority for inquiring the user is the second priority, by input/output unit 803 by the first UGC File distributing is to all fringe nodes;Wherein, the priority of the user is the UGC text that the second priority shows that the user uploads Part needs to be distributed to all fringe nodes;
Or/and
If the priority for inquiring the user is third priority, or, the precedence information of the user is not inquired, The oneth UGC file is saved to data center by input/output unit 803;Wherein, the priority of the user is the The UGC file that three priority show that the user uploads does not need to be distributed to fringe node.
In an alternative embodiment, processor 801 calls the program code stored in memory 804, can also be performed following Operation:
According to the user identifier for the user for uploading UGC file, the UGC file that each user uploads in preset time period is counted Times of acquisition;
The user is ranked up according to the sequence of the times of acquisition from high to low;
The precedence information of the user is determined according to the ranking results, and stores the user identifier of the user and excellent The corresponding relationship of first grade information.
In an alternative embodiment, processor 801 calls the program code stored in memory 804 according to the ranking results After the precedence information for determining the user, following operation can also be performed:
When the priority of user is the first priority, statistics obtains the user equipment institute for the UGC file that the user uploads The geographical location information in the region of distribution;
Fringe node present in the corresponding region of the geographic location information is determined as the corresponding edge section of the user Point;Wherein, the fringe node that the corresponding fringe node of the user needs to distribute for the UGC file that the user uploads.
In an alternative embodiment, processor 801 calls the program code stored in memory 804 according to the ranking results Determine the precedence information of the user, and after storing the user identifier of the user and the corresponding relationship of precedence information, Following operation can also be performed:
Periodically update the user identifier of the user of itself storage and the corresponding relationship of precedence information.
In an alternative embodiment, processor 801 calls the program code stored in memory 804, can also be performed following Operation:
The UGC file acquisition request that user equipment is sent is received by input/output unit 803, which asks The geographical location information of the identification information of the UGC file of request and the region of the user equipment is carried in asking;
The user equipment is selected as from the fringe node or data center for preserving the UGC file according to nearby principle to mention Fringe node or data center for service, and pass through input/output unit 803 for the fringe node or the address of data center Information is sent to the user equipment, so that the user equipment obtains the UGC file according to the address information.
Specifically, the UGC file distributing equipment introduced in the present embodiment can combine Fig. 1 or Fig. 2 to implement the present invention The UGC document distribution method or Fig. 3 of introduction some or all of introduce in UGC file acquisition method embodiment process.
As can be seen from the above description, in technical solution provided in an embodiment of the present invention, UGC file is directed to when receiving When file upload request, determine that the user's for uploading the UGC file is preferential according to the user identifier for including in file upload request Grade, and when the priority of the user is the first priority, by the UGC file distributing to the corresponding object edge section of the user Point improves the efficiency of UGC file acquisition so that user can obtain the UGC file by the object edge node.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (8)

1. a kind of user generated content (UGC) document distribution method characterized by comprising
According to the user identifier for the user for uploading UGC file, the acquisition for the UGC file that each user uploads in preset time period is counted Number;The user is ranked up according to the sequence of the times of acquisition from high to low;Institute is determined according to the ranking results The precedence information of user is stated, and stores the user identifier of the user and the corresponding relationship of precedence information;It is excellent as user When first grade is the first priority, the geographical position in the region that the user equipment that statistics obtains the UGC file that the user uploads is distributed Confidence breath;Fringe node present in the corresponding region of the geographical location information is determined as the corresponding edge section of the user Point;Wherein, the fringe node that the corresponding fringe node of the user needs to distribute for the UGC file that the user uploads;
The file upload request including the first UGC file that user equipment is sent is received, includes user in this document upload request Mark;
The excellent of user is inquired in the corresponding relationship of user identifier and precedence information that itself is stored according to the user identifier First grade information;The precedence information of the user is for showing file distributing mode;
If the priority for inquiring the user is the first priority, the corresponding object edge node of the user is determined, and by institute The first UGC file distributing is stated to the object edge node;Wherein, the priority of the user is that the first priority shows the use The UGC file that family uploads needs to be distributed to part edge node.
2. the method as described in claim 1, which is characterized in that this method further include:
If the priority for inquiring the user is the second priority, by the first UGC file distributing to all fringe nodes; Wherein, the priority of the user is that the UGC file that the second priority shows that the user uploads needs to be distributed to all edge sections Point;
Or/and
If the priority for inquiring the user is third priority, or, the precedence information of the user is not inquired, by institute The first UGC file is stated to save to data center;Wherein, the priority of the user is that third priority shows what the user uploaded UGC file does not need to be distributed to fringe node.
3. the method as described in claim 1, which is characterized in that described to determine that the user's is preferential according to the ranking results Grade information, and after storing the user identifier of the user and the corresponding relationship of precedence information, further includes:
Periodically update the user identifier of the user of itself storage and the corresponding relationship of precedence information.
4. the method as described in claim 1, which is characterized in that this method further include:
The UGC file acquisition request that user equipment is sent is received, the UGC of request is carried in UGC file acquisition request The geographical location information of the region of the identification information of file and the user equipment;
The user equipment is selected as from the fringe node or data center for preserving the UGC file according to nearby principle, clothes are provided The fringe node of business or data center, and the address information of the fringe node or data center is sent to the user equipment, with The user equipment is set to obtain the UGC file according to the address information.
5. a kind of user generated content (UGC) file distributing equipment characterized by comprising
Statistical module counts what each user in preset time period uploaded for the user identifier according to the user for uploading UGC file The times of acquisition of UGC file;When the priority of user is the first priority, statistics obtains the UGC file that the user uploads The geographical location information in the region that user equipment is distributed;
Third determining module, for fringe node present in the corresponding region of the geographical location information to be determined as the user Corresponding fringe node;Wherein, the edge section that the corresponding fringe node of the user needs to distribute for the UGC file that the user uploads Point;
Sorting module, for being ranked up according to the sequence of the times of acquisition from high to low to the user;
Second determining module, for determining the precedence information of the user according to the ranking results;
Memory module, for storing the user identifier of the user and the corresponding relationship of precedence information;
First receiving module, for receiving the file upload request including the first UGC file of user equipment transmission, on this document Passing request includes user identifier;
Enquiry module, user identifier and priority for being stored according to the user identifier in the UGC file distributing equipment The precedence information of user is inquired in the corresponding relationship of information;The precedence information of the user is for showing file distributing side Formula;
First determining module determines when the priority for inquiring the user when the enquiry module is the first priority The corresponding object edge node of the user;Wherein, the priority of the user is the UGC that the first priority shows that the user uploads File needs to be distributed to part edge node;
Distribution module is used for the first UGC file distributing to the object edge node.
6. equipment as claimed in claim 5, which is characterized in that the distribution module is also used to,
When the priority that the enquiry module inquires the user is the second priority, by the first UGC file distributing To all fringe nodes;Wherein, the priority of the user is that the second priority shows that the UGC file that the user uploads needs to divide It is sent to all fringe nodes;
Or/and
When the priority that the enquiry module inquires the user is third priority, or, not inquiring the excellent of the user When first grade information, the first UGC file is saved to data center;Wherein, the priority of the user is third priority The UGC file for showing that the user uploads does not need to be distributed to fringe node.
7. equipment as claimed in claim 5, which is characterized in that further include:
Update module, for periodically updating the user identifier of the user stored in the memory module and pair of precedence information It should be related to.
8. equipment as claimed in claim 5, which is characterized in that further include:
Second receiving module is taken in UGC file acquisition request for receiving the UGC file acquisition request of user equipment transmission The geographical location information of the region of the identification information and user equipment of UGC file with request;
Processing module, for being selected as this from the fringe node or data center for preserving the UGC file according to nearby principle User equipment provides fringe node or the data center of service, and the address information of the fringe node or data center is sent to The user equipment, so that the user equipment obtains the UGC file according to the address information.
CN201410384888.3A 2014-08-06 2014-08-06 A kind of UGC document distribution method and equipment Active CN104980417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410384888.3A CN104980417B (en) 2014-08-06 2014-08-06 A kind of UGC document distribution method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410384888.3A CN104980417B (en) 2014-08-06 2014-08-06 A kind of UGC document distribution method and equipment

Publications (2)

Publication Number Publication Date
CN104980417A CN104980417A (en) 2015-10-14
CN104980417B true CN104980417B (en) 2018-12-07

Family

ID=54276526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410384888.3A Active CN104980417B (en) 2014-08-06 2014-08-06 A kind of UGC document distribution method and equipment

Country Status (1)

Country Link
CN (1) CN104980417B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106934283A (en) * 2015-12-31 2017-07-07 中兴通讯股份有限公司 A kind of method and apparatus for realizing file censorship
CN105847437B (en) * 2016-05-26 2022-12-27 北京科技大学 Data transmission method
CN106250107A (en) * 2016-07-18 2016-12-21 福建天泉教育科技有限公司 A kind of data statistical approach and system
CN108712343A (en) * 2018-05-14 2018-10-26 网宿科技股份有限公司 Distribution method, system, fringe node and the central dispatching system of streaming media resource
CN109918605B (en) * 2019-03-07 2021-09-24 杭州又拍云科技有限公司 Method for generating dynamic picture based on content distribution network
CN110418194B (en) * 2019-07-19 2022-03-25 咪咕文化科技有限公司 Video distribution method and base station
CN112202888B (en) * 2020-09-30 2021-12-14 中国联合网络通信集团有限公司 Message forwarding method for edge user and SDN
CN114417144A (en) * 2021-12-29 2022-04-29 南京大众书网图书文化有限公司 Method, apparatus, medium and program product for same-person authoring

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956448A (en) * 2005-10-28 2007-05-02 中兴通讯股份有限公司 Contents distributing method based on outer condition trigger node action
CN101068341A (en) * 2007-06-01 2007-11-07 中兴通讯股份有限公司 Stream media dispatching system and medium file scheduling method thereof
CN103177005A (en) * 2011-12-21 2013-06-26 深圳市腾讯计算机系统有限公司 Processing method and system of data access
CN103856535A (en) * 2012-12-05 2014-06-11 腾讯科技(北京)有限公司 Method and device for obtaining user data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188569B (en) * 2006-11-16 2011-05-04 饶大平 Method for constructing data quanta space in network and distributed file storage system
CN101883012B (en) * 2010-07-09 2012-04-18 四川长虹电器股份有限公司 Method for processing storage resources in network edge node

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956448A (en) * 2005-10-28 2007-05-02 中兴通讯股份有限公司 Contents distributing method based on outer condition trigger node action
CN101068341A (en) * 2007-06-01 2007-11-07 中兴通讯股份有限公司 Stream media dispatching system and medium file scheduling method thereof
CN103177005A (en) * 2011-12-21 2013-06-26 深圳市腾讯计算机系统有限公司 Processing method and system of data access
CN103856535A (en) * 2012-12-05 2014-06-11 腾讯科技(北京)有限公司 Method and device for obtaining user data

Also Published As

Publication number Publication date
CN104980417A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN104980417B (en) A kind of UGC document distribution method and equipment
US10368134B2 (en) Live content streaming system and method
CN110678239B (en) Distributed sample-based game profiling with game metadata and metrics and game API platform supporting third party content
US10397636B1 (en) Methods and systems for synchronizing data streams across multiple client devices
Xia et al. Research note—to continue sharing or not to continue sharing? An empirical analysis of user decision in peer-to-peer sharing networks
CN103295147B (en) method, device and system for advertising
US8892648B1 (en) Media player social network integration
CN108810052B (en) Live broadcast server selection method and device
US20150331940A1 (en) Media selection
CN108900923A (en) Recommend the method and apparatus of live streaming template
CN108449606B (en) Barrage limiting method, device, server and medium
CN105897850A (en) Response processing method and system and scheduling proxy server for CDN platform
CN110099134A (en) Video file method for down loading, device, electronic equipment and storage medium
US20160381127A1 (en) Systems and methods for dynamic networked peer-to-peer content distribution
CN108551585B (en) Barrage checking method, device, server and medium
Childs et al. Characterizing Youtube and Bitchute content and mobilizers during us election fraud discussions on twitter
CN106055706A (en) Cache resource storage method and device
Sastry How to tell head from tail in user-generated content corpora
CN105577646B (en) Method, equipment and the content distribution system of user side aggregated bandwidth
US10135943B2 (en) Automated and integrated system for tournament logistics and services using Internet, electronic devices, and methods thereof
US11683566B2 (en) Live content streaming system and method
Cong et al. An efficient server bandwidth costs decreased mechanism towards mobile devices in cloud-assisted P2P-VoD system
US20220070507A1 (en) Method for distributing audio/video stream in audio/video stream distribution system, and dynamic parent node
Hu et al. Content to cash: Understanding and improving crowdsourced live video broadcasting services with monetary donations
CN103179191B (en) P2P network control device and P2P network managing and control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190731

Address after: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.