CN108449371B - A kind of contents access method and device - Google Patents

A kind of contents access method and device Download PDF

Info

Publication number
CN108449371B
CN108449371B CN201710083526.4A CN201710083526A CN108449371B CN 108449371 B CN108449371 B CN 108449371B CN 201710083526 A CN201710083526 A CN 201710083526A CN 108449371 B CN108449371 B CN 108449371B
Authority
CN
China
Prior art keywords
content
cluster head
access
head node
terminal 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
CN201710083526.4A
Other languages
Chinese (zh)
Other versions
CN108449371A (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710083526.4A priority Critical patent/CN108449371B/en
Publication of CN108449371A publication Critical patent/CN108449371A/en
Application granted granted Critical
Publication of CN108449371B publication Critical patent/CN108449371B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

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

Abstract

This application involves field of data service more particularly to a kind of contents access methods and device, to solve the problems, such as that the service processing pressure of CDN service node of network side existing in the prior art is excessive;The embodiment of the present application provides a kind of contents access method, comprising: determines that first terminal equipment is chosen as total weighted value of cluster head node;The cluster head node is used to obtain access content from content distribution network CDN service device, and provides content access service to other terminal devices;If total weighted value of first terminal equipment is zero, total weighted value that other terminal devices that total weighted value is not zero are sent is received;According to total weighted value that other terminal devices are sent, cluster head node is chosen from other terminal devices;Content is requested access to the cluster head node of selection.

Description

A kind of contents access method and device
Technical field
This application involves field of data service more particularly to a kind of contents access methods and device.
Background technique
With popularizing for mobile Internet, more and more users access content using mobile terminal, therefore are promoted and moved The speed that dynamic terminal carries out access to content becomes a very important problem.
Currently, operator by network side dispose content distributing network (Content Delivery Network, CDN), content is published to the network side position nearest apart from user to shorten user at a distance from the content of access, to be promoted The speed of mobile terminal progress access to content.The logical architecture of existing CDN mainly includes content center, overall scheduling center, fortune Battalion's management platform and several CDN service nodes, wherein CDN service nodal distance user is closer.In practical applications, interior Appearance center full dose stores various data contents, and the content distribution for storing content center is responsible for each in overall scheduling center CDN service node is simultaneously managed.When user terminal carries out access to content, first by CDN service node in user's offer Hold access service, CDN service node can in the local requested content of quick response user, and if locally search less than When the requested content of user, the access content requests that user terminal is sent can be further uploaded to entirely by CDN service node Control centre, office.Subsequent overall scheduling center can choose optimal CDN service node after receiving the access content requests Or it is routed directly to content source, content access service is provided by the optimal CDN service node or content source determined for user. In the above scheme, since CDN is deployed in network side, user is intended to the CDN service section to network side when carrying out access to content Point request content, this results in the service processing pressure of the CDN service node of network side excessive.
Based on this, using existing CDN deployment way, there is the service processing pressure mistakes of the CDN service node of network side Big problem.
Summary of the invention
The embodiment of the present application provides a kind of contents access method and device, to solve network side existing in the prior art CDN service node the excessive problem of service processing pressure.
A kind of contents access method provided by the embodiments of the present application, comprising:
Determine that first terminal equipment is chosen as total weighted value of cluster head node;The cluster head node is used for from content delivery network Network CDN server obtains access content, and provides content access service to other terminal devices;
If total weighted value of the first terminal equipment is zero, other terminal devices hair that total weighted value is not zero is received The total weighted value sent;
According to total weighted value that other terminal devices are sent, cluster head node is chosen from other terminal devices;
Content is requested access to the cluster head node of selection.
Optionally, the method also includes:
If total weighted value of the first terminal equipment is not zero, total weighted value is broadcasted, and receiving other ends After what end equipment was sent is chosen for the selection result of cluster head node for the first terminal equipment, the other ends for choosing result will be sent End equipment is as using the first terminal equipment as the ordinary node in the cluster of cluster head node;
Content access service is provided to using the first terminal equipment as the ordinary node in the cluster of cluster head node.
Optionally it is determined that first terminal equipment is chosen as total weighted value of cluster head node, comprising:
According to the corresponding value of affecting parameters each under preset a variety of affecting parameters, the corresponding power of each affecting parameters Weight values and the access content of first terminal equipment user share wish value, determine that the first terminal equipment is chosen as cluster head Total weighted value of node.
Optionally, determine that the access content of the terminal user shares wish value according to following steps:
If the first terminal equipment user is unwilling to provide content access service, by first terminal equipment user's Access content shares wish value and is set as 0, if the first terminal equipment user is ready to provide content access service, by this The access content of one terminal user shares wish value and is set as 1.
Optionally, the corresponding value of the basis each affecting parameters under preset a variety of affecting parameters, each influence The access content of the corresponding weighted value of parameter and first terminal equipment user share wish value, determine that the first terminal is set The standby total weighted value for being chosen as cluster head node, comprising:
Will under preset a variety of affecting parameters the corresponding value of every kind of influence factor multiplied by corresponding weighted value, then will After each product addition arrived, wish value is shared multiplied by the access content of first terminal equipment user, obtains the first terminal Equipment is chosen as total weighted value of cluster head node.
Optionally, if the cluster head node selected includes main cluster head node and standby cluster head node, the cluster to selection First node requests access to content, comprising:
Content access request is sent to the main cluster head node selected, if being not received by preset time threshold The access to content response that the main cluster head node is sent, then obtain access content to the standby cluster head node selected.
Optionally, the other terminal devices for choosing result will be sent as using itself as cluster head node in first terminal equipment Cluster in ordinary node after, the method also includes:
Instruction information is sent to the content distribution network CDN service device of network side, the instruction information is used to indicate described First terminal equipment is cluster head node, and using the first terminal equipment as the ordinary node in the cluster of cluster head node;
Receive and cache the access content that the CDN server issues.
Optionally, described to provide access to content clothes to by the ordinary node in the cluster of cluster head node of the first terminal equipment Business, comprising:
After receiving the content access request that the ordinary node is sent, judge it is local whether be cached with it is accessed interior Hold;
If so, the accessed content of local cache is sent to the ordinary node;
If it is not, the then content accessed to CDN server request, and the content that the CDN server is fed back, hair Give the ordinary node
A kind of content access device provided by the embodiments of the present application, comprising:
Determining module, for determining that first terminal equipment is chosen as total weighted value of cluster head node;The cluster head node is used Content is accessed in obtaining from content distribution network CDN service device, and provides content access service to other terminal devices;
Receiving module, for receiving what total weighted value was not zero when total weighted value of the first terminal equipment is zero Total weighted value that other terminal devices are sent;
Module is chosen, total weighted value for sending according to other terminal devices is chosen from other terminal devices Cluster head node;
Request content module, for requesting access to content to the cluster head node of selection.
Optionally, described device further include:
First processing module, for broadcasting total weighted value when total weighted value of the first terminal equipment is not zero, And the selection that the first terminal equipment is chosen for cluster head node that other terminal devices are sent is received in the receiving module As a result after, the other terminal devices for choosing result will be sent as using the first terminal equipment to be common in the cluster of cluster head node Node;
Content module is provided, for providing content to using the first terminal equipment as the ordinary node in the cluster of cluster head node Access service.
Optionally, the determining module is specifically used for:
According to the corresponding value of affecting parameters each under preset a variety of affecting parameters, the corresponding power of each affecting parameters Weight values and the access content of first terminal equipment user share wish value, determine that the first terminal equipment is chosen as cluster head Total weighted value of node.
Optionally, the determining module is also used to:
If the first terminal equipment user is unwilling to provide content access service, by first terminal equipment user's Access content shares wish value and is set as 0, if the first terminal equipment user is ready to provide content access service, by this The access content of one terminal user shares wish value and is set as 1.
Optionally, the determining module is specifically used for:
Will under preset a variety of affecting parameters the corresponding value of every kind of influence factor multiplied by corresponding weighted value, then will After each product addition arrived, wish value is shared multiplied by the access content of first terminal equipment user, obtains the first terminal Equipment is chosen as total weighted value of cluster head node.
Optionally, the request content module is specifically used for:
If the cluster head node selected includes main cluster head node and standby cluster head node, to the main cluster head node hair selected Send content access request;
If being not received by the access to content response that the main cluster head node sends in preset time threshold, then to The standby cluster head node selected obtains access content.
Optionally, described device further include:
Second processing module, for the other terminal devices for choosing result will to be sent as with itself in first terminal equipment After the ordinary node in the cluster of cluster head node, instruction information is sent to the content distribution network CDN service device of network side, it is described It is cluster head node that instruction information, which is used to indicate the first terminal equipment, and using the first terminal equipment as the cluster of cluster head node In ordinary node;Receive and cache the access content that the CDN server issues.
Optionally, the offer content module is specifically used for:
After the content access request that the receiving module receives that the ordinary node is sent, local whether cache judged There is accessed content;
If so, the accessed content of local cache is sent to the ordinary node;
If it is not, the then content accessed to CDN server request, and the content that the CDN server is fed back, hair Give the ordinary node.
In the embodiment of the present application, first terminal equipment can determine the total weighted value for itself being chosen as cluster head node, and When the total weighted value determined is zero, total weighted value that other terminal devices that total weighted value is not zero are sent is received, goes forward side by side one The total weighted value sent according to other terminal devices is walked, cluster head node is selected from other terminal devices, so as in progress When holding access, content is requested access to the cluster head node selected.Wherein, the cluster head node selected can be from content delivery network Network CDN server obtains access content, and provides content access service to other terminal devices.Using aforesaid way, first In the case that total weighted value that terminal device is chosen as cluster head node is zero, first terminal equipment can be asked directly to cluster head node Access content is sought, without requesting access to content to the CDN server of network side, to be effectively reduced the CDN clothes of network side The excessive problem of the service processing pressure of business node.
Detailed description of the invention
Fig. 1 is the contents access method flow chart that the embodiment of the present application one provides;
Fig. 2 is a kind of access to content configuration diagram based on terminal device that the embodiment of the present application two provides;
Fig. 3 is the flow chart of the ordinary node progress access to content in certain cluster that the embodiment of the present application two provides;
Fig. 4 is the content access device structure chart that the embodiment of the present application three provides.
Specific embodiment
In the embodiment of the present application, first terminal equipment can determine the total weighted value for itself being chosen as cluster head node, and When the total weighted value determined is zero, total weighted value that other terminal devices that total weighted value is not zero are sent is received, goes forward side by side one The total weighted value sent according to other terminal devices is walked, cluster head node is selected from other terminal devices, so as in progress When holding access, content is requested access to the cluster head node selected.Wherein, the cluster head node selected can be from content delivery network Network CDN server obtains access content, and provides content access service to other terminal devices.Using aforesaid way, first In the case that total weighted value that terminal device is chosen as cluster head node is zero, first terminal equipment can be asked directly to cluster head node Access content is sought, without requesting access to content to the CDN server of network side, to be effectively reduced the CDN clothes of network side The excessive problem of the service processing pressure of business node.
The embodiment of the present application is described in further detail with reference to the accompanying drawings of the specification.
Embodiment one
As shown in Figure 1, the contents access method flow chart provided for the embodiment of the present application one, comprising the following steps:
S101: first terminal equipment determines the total weighted value for itself being chosen as cluster head node.
Here, cluster head node is used to obtain access content from the CDN server of network side, and provides to other terminal devices Content access service.
In specific implementation, first terminal equipment can be according to each affecting parameters pair under preset a variety of affecting parameters The access content of the value, the corresponding weighted value of each affecting parameters and the first terminal equipment user that answer share wish value, Determine that the first terminal equipment is chosen as total weighted value of cluster head node.
Here, preset a variety of affecting parameters refer to affecting parameters relevant to selection this event of cluster head node, such as eventually Network insertion rate, set meal residual flow, remaining capacity and mobility of terminal device of end equipment etc..And it can root According to significance level of each affecting parameters in selection this event of cluster head node, one is pre-configured with for each affecting parameters Weighted value, wherein the corresponding weighted value sum of each affecting parameters is 1.
In specific implementation, first terminal equipment can push a piece of news to first terminal equipment user in advance, for the One terminal user chooses whether to be ready to provide content access service.It is subsequent can be according to the selection situation of first terminal user Determine that the access content of the terminal user shares wish value: if first terminal equipment user is unwilling to provide access to content clothes The access content of first terminal equipment user is then shared wish value and is set as 0, if first terminal equipment user is ready to mention by business For content access service, then the access content of first terminal equipment user is shared into wish value and be set as 1.
Further, first terminal equipment can determine the total weight for itself being chosen as cluster head node according to following manner Value: it every kind of influence factor corresponding value then will will be obtained multiplied by corresponding weighted value under preset a variety of affecting parameters After each product addition, wish value is shared multiplied by the access content of first terminal equipment user, obtains the first terminal equipment It is chosen as total weighted value of cluster head node.Specific calculating process will be exemplified below.
S102: first terminal equipment judges whether its total weighted value is zero.
If so, thening follow the steps S103~S105;
If it is not, thening follow the steps S106~S108.
S103: total weighted value that other terminal devices that total weighted value is not zero are sent is received.
Here, if total weighted value that first terminal equipment is determined is zero, not overseas broadcast itself weight, and receive total Total weighted value that other terminal devices that weighted value is not zero are sent.
S104: the total weighted value sent according to other terminal devices chooses cluster head node from other terminal devices.
It in specific implementation, can more each weighted value after receiving total weighted value that other terminal devices are sent Size, choose the maximum terminal device of total weighted value as it and main cluster head node of content access service be provided.In addition, also The big terminal device of total weighted value time can be chosen and be used as standby cluster head node, when the main cluster head node of selection can not provide normally When content access service, content further can be requested access to standby cluster head node.In specific implementation, first terminal equipment The total weighted value that can be sent according to other terminal devices are received, selects multiple standby cluster head nodes.
The main cluster head node from being chosen in other terminal devices that above-mentioned total weighted value is not zero or standby cluster head node it Afterwards, it will can further choose result and be sent to the main cluster head node selected or standby cluster head node, to indicate main cluster head section Point or standby cluster head node need to provide content access service.
S105: content is requested access to the cluster head node of selection.
In specific implementation, after first terminal equipment selects cluster head node, when subsequent progress access to content, if choosing The cluster head node of taking-up includes main cluster head node and standby cluster head node, then first terminal equipment can be first to the main cluster selected First node sends content access request, if being not received by the content that main cluster head node is sent in preset time threshold and visiting It asks response, then further can initiate access to content to the standby cluster head node selected, obtain access content.Wherein, content is visited Ask that response can refer to main cluster head node after receiving content access request, the instruction sent to first terminal equipment is quasi- The response of standby reception content may also mean that main cluster head node after receiving content access request, and directly feedback is accessed interior The response of appearance.The process that first terminal equipment obtains access content from standby cluster head node can be found in be obtained from main cluster head node The process for accessing content, is no longer described in detail one by one here.
S106: total weighted value is broadcasted.
In specific implementation, if total weighted value that first terminal equipment is determined is not zero, overseas broadcast itself weight, And total weighted value that other terminal devices that total weighted value is not zero are sent is not received.
S107: in the selection knot that the first terminal equipment is chosen for cluster head node for receiving other terminal devices transmissions After fruit, the other terminal devices for choosing result will be sent as using the first terminal equipment as the common section in the cluster of cluster head node Point.
In specific implementation, the other terminal devices for choosing result will be sent as using itself as cluster in first terminal equipment After ordinary node in the cluster of first node, instruction information can also be sent to the CDN server of network side, wherein instruction letter It is cluster head node that breath, which is used to indicate the first terminal equipment, and using the first terminal equipment to be common in the cluster of cluster head node Node, so as to network side CDN server after receiving the instructions, can be to the first terminal equipment, i.e. cluster head section Point issues relevant access content in advance.Further, first terminal equipment, i.e. cluster head node can receive and caches CDN clothes The access content that business device issues.
S108: content access service is provided to using the first terminal equipment as the ordinary node in the cluster of cluster head node.
In specific implementation, the ordinary node in the cluster that first terminal equipment receives using itself as cluster head node is sent Content access request after, can first determine whether local whether be cached with accessed content.If local cached is interviewed The local accessed content cached then can be transmitted directly to the ordinary node by the content asked;If local uncached quilt The content of access, then the content that can be further accessed to the request of the CDN server of network side, and CDN server is fed back Content, be sent to ordinary node, while by the content caching of CDN server feedback in local.
In the embodiment of the present application one, by taking first terminal equipment as an example, it is described in detail and is chosen as cluster in first terminal equipment In the case that total weighted value of first node is zero, it can be used as ordinary node to the cluster head node selected and request access to content. It is not zero in the weighted value that first terminal equipment is chosen as cluster head node, and receives other terminal devices that total weighted value is zero In the case where the selection result for being chosen for cluster head node sent, cluster head node can be used as to using itself as cluster head node Cluster in ordinary node provide content access service.
As can be seen from the above embodiments, each terminal device of user side can pass through self-organizing sub-clustering and selection cluster head section Point is divided into the CDN sub-clustering being made of one by one cluster head node and several ordinary nodes, and in each CDN sub-clustering, by Meet CDN service node of the terminal device as user side as cluster head node, and other terminal devices in cluster, that is, common Node can carry out access to content by cluster head node, set up CDN net between each terminal device of user side to realize Network.In the following, will be described in detail in the embodiment of the present application two and set up CDN network for user side and carry out access to content Method.
Embodiment two
Contents access method provided by one based on the above embodiment, in order to realize that setting up CDN network in user side goes forward side by side Row access to content, the embodiment of the present application two have also listed a kind of access to content framework based on terminal device, as shown in Figure 2.
Existing CDN network framework is still used in network side, and has affixed one's name to CDN server, i.e. CDN clothes in network lateral edge portion Business node.In user side, each terminal device is by self-organizing sub-clustering and chooses cluster head node, is divided into one by one by cluster head section The CDN sub-clustering of point and several ordinary nodes composition.Wherein, in each cluster, by meeting the terminal device as cluster head node As the CDN service node of user side, and other terminal device, that is, ordinary nodes in cluster, can be carried out by cluster head node in Hold access.And when carrying out access to content, ordinary node can be by locality connection, such as WIFI heat to the access of cluster head node Point connection is to complete, and cluster head node can be by remotely connecting, as cellular network connects to the access of network side CDN service node Fetch completion.
The access to content process after the completion of the clustering process and sub-clustering that are directed between terminal device respectively is carried out below It is described in detail.
(1) self-organizing sub-clustering is carried out between terminal device and choose the process of cluster head
Firstly, scene for the specific business, marks off a region, using each terminal device in the region as using Family node, and preset out to the relevant influence factor of selection this event of cluster head node and with each influence factor pair The weighted value answered.Specific influence factor is network insertion rate Rate, set meal residual flow FRes, remaining capacity BRes, with And mobility Mobility, weighted value corresponding with this four influence factors is respectively WRate、WFRes、WBRes、WMobility.Wherein, Weighted value in the area for each influence factor of each user node configuration is consistent, is such as directed to this region, each shadow The weighted value of the factor of sound may respectively be WRate=0.3, WFRes=0.2, WBRes=0.4, WMobility=0.1, and it is directed to each The value of influence factor needs in the same order of magnitude in user node.In addition, the access content of each user node is shared Wish value WWill1 or 0 can be set as according to the selection of each terminal user.
Further, each user node can be corresponding according to the corresponding value of each affecting parameters, each affecting parameters Weighted value, access content share wish value calculate separately out itself according to following self-organizing election algorithms and be chosen as cluster head Total weighted value W of nodeNode, self-organizing election algorithm is as follows:
WNode=(Rate × WRate+FRes×WFRes+BRes×WBRes+Mobility×WMobility)×WWill
Wherein, network insertion rate Rate:Rate > 0, weight WRate;Set meal residual flow FRes:FRes > 0, weight For WFRes;Remaining capacity BRes:BRes > 0, weight WBRes;Mobility Mobility:Mobility >=0, weight is WMobility;It accesses content and shares wish value WWillIt is 0 or 1, terminal user is ready that providing content access service is then 1, no It is then 0.And WRate+WFRes+WBRes+WMobility=1.
It in specific implementation,, should if total weighted value is 0 after each user node calculates itself total weighted value User node begins preparing reception as the user node that can not be selected as cluster head node, not overseas broadcast itself weight The total weighted value for other user nodes that total weighted value is not zero;If total weighted value is not 0, the user node is as candidate cluster First node, the total weighted value of overseas broadcast itself within the scope of preset signalc threshold, and other user node broadcast are not received Total weighted value.
Further, the user node for being 0 for weighted value, if the user node receives in preset time threshold The total weighted value sent to candidate cluster head node, then total weighted value of more each candidate cluster head node, maximum by total weighted value Candidate cluster head node is as the main cluster head node for providing content access service for it furthermore it is also possible to the secondary big candidate of total weighted value Cluster head node provides the standby cluster head node of content access service as it, select main cluster head node or standby cluster head node it Afterwards, which will choose result and is sent to the main cluster head node selected or standby cluster head node.In addition, if the user node is pre- If first time threshold in do not receive any broadcast, then the user node be used as non-sub-clustering node, subsequent content access still Directly obtained by network side.
For candidate cluster head node, if candidate cluster head node receives weighted value and is not zero in preset time threshold User node send be chosen for cluster head node selection as a result, then by it is all be sent to it choose result users save Point is as using itself as the ordinary node in the cluster of cluster head node, and to the CDN server of network side hair after sub-clustering completion Send instruction information, so as to network side CDN server after receiving the instructions, can be issued to cluster head node relevant Content is accessed, it is subsequent to provide content access service by the cluster head node for the ordinary node in cluster.And if by one section After time, candidate cluster head node do not receive it is any choose as a result, then candidate's cluster head node is also used as non-sub-clustering node, after Continuous access to content is still directly obtained by network side.In practical applications, since the user node quantity of user side is more, each User node provide content access service capacity variance is larger and each user node between locality connection signal intensity difference The factors such as larger are carrying out may be user node number one upper limit value of setting accommodated in each cluster when sub-clustering, also, Cluster head node can will only meet the ordinary node within the scope of preset signalc threshold and be divided in cluster using itself as cluster head node In.
Based on this, sub-clustering is completed in the user node in the region, wherein there are small part user nodes due to distance and The factors such as signal do not enter into any sub-clustering, still use existing access to content mode.Here, non-sub-clustering node carries out content visit It is described in detail in the process asked no longer the application.
(2) in cluster ordinary node carry out access to content process
After user node in the region completes sub-clustering and selects cluster head, the ordinary node in subsequent cluster carries out content visit It is preferentially completed by the cluster head node of user side when asking.Ordinary node in certain specific cluster carries out the stream of access to content Journey, as shown in Figure 3.And the access to content of non-sub-clustering node, cluster head node is directly completed by network side, here no longer It is discussed in detail.
S301: ordinary node sends content access request to main cluster head node.
S302: ordinary node judges whether main cluster head node is effective.
If so, ordinary node receives the instruction that main cluster head node is sent and prepares i.e. in preset time threshold The response of reception content, it may be determined that the main cluster head node is effective, continues to execute step S303;
If it is not, ordinary node can determine the main cluster head node failure, step S304 is continued to execute.
S303: the accessed content that main cluster head node is sent is received, wherein the accessed content can be main cluster head What node had locally cached, it can also be what main cluster head node was requested to network side CDN service node.
S304: ordinary node sends content access request to standby cluster head node, and receives the interviewed of standby cluster head node feedback The content asked.
Here, the process that ordinary node obtains access content from standby cluster head node can be found in be obtained from main cluster head node Access the process of content.In specific implementation, if main cluster head node and standby cluster head node fail, which can be with The cluster head re-initiated chooses process, i.e., the total weighted value sent according to the candidate cluster head node that total weighted value is not zero continues Cluster head node is therefrom selected, detailed process can be found in the process of sub-clustering and cluster head selection between above-mentioned user node.
To sum up, in the embodiment of the present application, each terminal device can be divided by self-organizing sub-clustering and selection cluster head node At the CDN sub-clustering being made of one by one cluster head node and several ordinary nodes.Wherein, in each cluster, cluster is used as by meeting CDN service node of the terminal device of first node as user side, and other terminal device, that is, ordinary nodes in cluster, Ke Yitong It crosses cluster head node and carries out access to content.User side can only be carried out by the CDN service node of network side compared to the prior art Access to content, the embodiment of the present application can further promote the speed of access to content, and save ordinary node in progress Hold flow when access.
Conceived based on same application, a kind of content visit corresponding with contents access method is additionally provided in the embodiment of the present application Ask device, since the principle that the device solves the problems, such as is similar to the embodiment of the present application contents access method, the reality of the device The implementation for the method for may refer to is applied, overlaps will not be repeated.
Embodiment three
As shown in figure 4, the content access device structure chart provided for the embodiment of the present application three, comprising:
Determining module 41, for determining that first terminal equipment is chosen as total weighted value of cluster head node;The cluster head node For obtaining access content from content distribution network CDN service device, and content access service is provided to other terminal devices;
Receiving module 42, for receiving total weighted value and being not zero when total weighted value of the first terminal equipment is zero Other terminal devices send total weighted value;
Module 43 is chosen, total weighted value for sending according to other terminal devices is selected from other terminal devices Take cluster head node;
Request content module 44, for requesting access to content to the cluster head node of selection.
Optionally, described device further include:
First processing module 45, for broadcasting total weight when total weighted value of the first terminal equipment is not zero Value, and the choosing that the first terminal equipment is chosen for cluster head node that other terminal devices are sent is received in the receiving module After taking result, the other terminal devices for choosing result will be sent as using the first terminal equipment to be general in the cluster of cluster head node Logical node;
Content module 46 is provided, for interior to providing using the first terminal equipment as the ordinary node in the cluster of cluster head node Hold access service.
Optionally, the determining module 41 is specifically used for:
According to the corresponding value of affecting parameters each under preset a variety of affecting parameters, the corresponding power of each affecting parameters Weight values and the access content of first terminal equipment user share wish value, determine that the first terminal equipment is chosen as cluster head Total weighted value of node.
Optionally, the determining module 41 is also used to:
If the first terminal equipment user is unwilling to provide content access service, by first terminal equipment user's Access content shares wish value and is set as 0, if the first terminal equipment user is ready to provide content access service, by this The access content of one terminal user shares wish value and is set as 1.
Optionally, the determining module 41 is specifically used for:
Will under preset a variety of affecting parameters the corresponding value of every kind of influence factor multiplied by corresponding weighted value, then will After each product addition arrived, wish value is shared multiplied by the access content of first terminal equipment user, obtains the first terminal Equipment is chosen as total weighted value of cluster head node.
Optionally, the request content module 44 is specifically used for:
If the cluster head node selected includes main cluster head node and standby cluster head node, to the main cluster head node hair selected Send content access request;
If being not received by the access to content response that the main cluster head node sends in preset time threshold, then to The standby cluster head node selected obtains access content.
Optionally, described device further include:
Second processing module 47, for the other terminal devices for choosing result will to be sent as with certainly in first terminal equipment After the ordinary node in the cluster of cluster head node, instruction information, institute are sent to the content distribution network CDN service device of network side Stating instruction information and being used to indicate the first terminal equipment is cluster head node, and using the first terminal equipment as cluster head node Ordinary node in cluster;Receive and cache the access content that the CDN server issues.
Optionally, the offer content module 46 is specifically used for:
After the content access request that the receiving module receives that the ordinary node is sent, local whether cache judged There is accessed content;
If so, the accessed content of local cache is sent to the ordinary node;
If it is not, the then content accessed to CDN server request, and the content that the CDN server is fed back, hair Give the ordinary node.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of device (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing devices, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of contents access method, which is characterized in that this method comprises:
Determine that first terminal equipment is chosen as total weighted value of cluster head node;The cluster head node is used for from content distributing network CDN server obtains access content, and provides content access service to other terminal devices;
If total weighted value of the first terminal equipment is zero, receive what other terminal devices that total weighted value is not zero were sent Total weighted value;
According to total weighted value that other terminal devices are sent, cluster head node is chosen from other terminal devices;
Content is requested access to the cluster head node of selection;
Wherein, the determining first terminal equipment is chosen as total weighted value of cluster head node, comprising:
According to the corresponding value of affecting parameters each under preset a variety of affecting parameters, the corresponding weight of each affecting parameters Value and the access content of first terminal equipment user share wish value, determine that the first terminal equipment is chosen as cluster head section Total weighted value of point;
Wherein, determine that the access content of the terminal user shares wish value according to following steps:
If the first terminal equipment user is unwilling to provide content access service, by the access of first terminal equipment user Content shares wish value and is set as 0, if the first terminal equipment user is ready to provide content access service, by first end The access content of end equipment user shares wish value and is set as 1.
2. the method as described in claim 1, which is characterized in that the method also includes:
If total weighted value of the first terminal equipment is not zero, total weighted value is broadcasted, and set receiving other terminals After what preparation was sent the first terminal equipment to be chosen for the selection result of cluster head node, the other terminals for choosing result will be sent and set For as using the first terminal equipment as the ordinary node in the cluster of cluster head node;
Content access service is provided to using the first terminal equipment as the ordinary node in the cluster of cluster head node.
3. the method as described in claim 1, which is characterized in that the basis each influence under preset a variety of affecting parameters The access content of the corresponding value of parameter, the corresponding weighted value of each affecting parameters and first terminal equipment user is shared Wish value determines that the first terminal equipment is chosen as total weighted value of cluster head node, comprising:
It every kind of influence factor corresponding value then will will be obtained multiplied by corresponding weighted value under preset a variety of affecting parameters After each product addition, wish value is shared multiplied by the access content of first terminal equipment user, obtains the first terminal equipment It is chosen as total weighted value of cluster head node.
4. the method as described in claim 1, which is characterized in that if the cluster head node selected includes main cluster head node and standby cluster First node, then it is described to request access to content to the cluster head node of selection, comprising:
Content access request is sent to the main cluster head node selected, if being not received by described in preset time threshold The access to content response that main cluster head node is sent, then obtain access content to the standby cluster head node selected.
5. method according to claim 2, which is characterized in that the other terminals for choosing result will be sent in first terminal equipment Equipment as using itself as the ordinary node in the cluster of cluster head node after, the method also includes:
Instruction information is sent to the content distribution network CDN service device of network side, the instruction information is used to indicate described first Terminal device is cluster head node, and using the first terminal equipment as the ordinary node in the cluster of cluster head node;
Receive and cache the access content that the CDN server issues.
6. the method as described in claim 2 or 5, which is characterized in that described to using the first terminal equipment as cluster head node Ordinary node in cluster provides content access service, comprising:
After receiving the content access request that the ordinary node is sent, judge locally whether be cached with accessed content;
If so, the accessed content of local cache is sent to the ordinary node;
If it is not, the then content accessed to CDN server request, and the content that the CDN server is fed back, is sent to The ordinary node.
7. a kind of content access device, which is characterized in that the device includes:
Determining module, for determining that first terminal equipment is chosen as total weighted value of cluster head node;The cluster head node be used for from Content distribution network CDN service device obtains access content, and provides content access service to other terminal devices;
Receiving module, for when total weighted value of the first terminal equipment is zero, receive total weighted value be not zero it is other Total weighted value that terminal device is sent;
Module is chosen, total weighted value for sending according to other terminal devices chooses cluster head from other terminal devices Node;
Request content module, for requesting access to content to the cluster head node of selection;
Wherein, the determining module is specifically used for:
According to the corresponding value of affecting parameters each under preset a variety of affecting parameters, the corresponding weight of each affecting parameters Value and the access content of first terminal equipment user share wish value, determine that the first terminal equipment is chosen as cluster head section Total weighted value of point;
Wherein, the determining module is also used to:
If the first terminal equipment user is unwilling to provide content access service, by the access of first terminal equipment user Content shares wish value and is set as 0, if the first terminal equipment user is ready to provide content access service, by first end The access content of end equipment user shares wish value and is set as 1.
8. device as claimed in claim 7, which is characterized in that described device further include:
First processing module, for when total weighted value of the first terminal equipment is not zero, broadcasting total weighted value, and The receiving module receives the selection result that the first terminal equipment is chosen for cluster head node that other terminal devices are sent Afterwards, the other terminal devices for choosing result will be sent as using the first terminal equipment as the common section in the cluster of cluster head node Point;
Content module is provided, for providing access to content to using the first terminal equipment as the ordinary node in the cluster of cluster head node Service.
9. device as claimed in claim 7, which is characterized in that the determining module is specifically used for:
It every kind of influence factor corresponding value then will will be obtained multiplied by corresponding weighted value under preset a variety of affecting parameters After each product addition, wish value is shared multiplied by the access content of first terminal equipment user, obtains the first terminal equipment It is chosen as total weighted value of cluster head node.
10. device as claimed in claim 7, which is characterized in that the request content module is specifically used for:
If the cluster head node selected includes main cluster head node and standby cluster head node, into the main cluster head node transmission selected Hold access request;
If being not received by the access to content response that the main cluster head node is sent, then to selection in preset time threshold Standby cluster head node out obtains access content.
11. device as claimed in claim 8, which is characterized in that described device further include:
Second processing module, for the other terminal devices for choosing result will to be sent as using itself as cluster in first terminal equipment After ordinary node in the cluster of first node, instruction information, the instruction are sent to the content distribution network CDN service device of network side It is cluster head node that information, which is used to indicate the first terminal equipment, and using the first terminal equipment as in the cluster of cluster head node Ordinary node;Receive and cache the access content that the CDN server issues.
12. the device as described in claim 8 or 11, which is characterized in that the offer content module is specifically used for:
After the content access request that the receiving module receives that the ordinary node is sent, judge it is local whether be cached with by The content of access;
If so, the accessed content of local cache is sent to the ordinary node;
If it is not, the then content accessed to CDN server request, and the content that the CDN server is fed back, is sent to The ordinary node.
CN201710083526.4A 2017-02-16 2017-02-16 A kind of contents access method and device Active CN108449371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710083526.4A CN108449371B (en) 2017-02-16 2017-02-16 A kind of contents access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710083526.4A CN108449371B (en) 2017-02-16 2017-02-16 A kind of contents access method and device

Publications (2)

Publication Number Publication Date
CN108449371A CN108449371A (en) 2018-08-24
CN108449371B true CN108449371B (en) 2019-10-29

Family

ID=63190582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710083526.4A Active CN108449371B (en) 2017-02-16 2017-02-16 A kind of contents access method and device

Country Status (1)

Country Link
CN (1) CN108449371B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11718539B2 (en) * 2019-11-19 2023-08-08 LCW Supercritical Technologies Corporation Extraction and recovery of Pd from aqueous solutions

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136932A (en) * 2006-10-20 2008-03-05 中兴通讯股份有限公司 Cluster type stream media networking system and its content issue and service method
CN101534204A (en) * 2008-03-10 2009-09-16 中国网通集团宽带业务应用国家工程实验室有限公司 Streaming media information distribution system and method thereof and user end
CN105681079A (en) * 2016-01-11 2016-06-15 东北电力大学 Mobile P2P (Peer-to-Peer) network clustering method based on node mobility characteristic

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003223378A (en) * 2002-01-29 2003-08-08 Fujitsu Ltd Contents delivery network service method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136932A (en) * 2006-10-20 2008-03-05 中兴通讯股份有限公司 Cluster type stream media networking system and its content issue and service method
CN101534204A (en) * 2008-03-10 2009-09-16 中国网通集团宽带业务应用国家工程实验室有限公司 Streaming media information distribution system and method thereof and user end
CN105681079A (en) * 2016-01-11 2016-06-15 东北电力大学 Mobile P2P (Peer-to-Peer) network clustering method based on node mobility characteristic

Also Published As

Publication number Publication date
CN108449371A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN102118376B (en) Content delivery network service device and content download method
CN105103507B (en) The method and device of network function virtualization
CN102118323B (en) Content delivery network service device and content download method
CN106330997B (en) A kind of method and system of the content distribution for mobile terminal application
US20150113160A1 (en) Adaptation, shunt transmission and stream switching method and system for coordinated service
CN108737534B (en) Block chain-based data transmission method and device and block chain system
CN105897850A (en) Response processing method and system and scheduling proxy server for CDN platform
CN104284201A (en) Video content processing method and device
CN104052803A (en) Decentralized distributed rendering method and system
CN101924785A (en) Data uploading and downloading methods and system
CN104348798B (en) A kind of method, apparatus, dispatch server and system for distributing network
CN106254561A (en) The real-time offline download method of a kind of Internet resources file and system
CN105556472B (en) It manages and the client of multiple computing systems is accessed
CN108345643A (en) A kind of data processing method and device
CN109076108A (en) Receive network node, endpoint node and the method for interest message
Sinky et al. Responsive content-centric delivery in large urban communication networks: A LinkNYC use-case
CN109121185A (en) The selection method and device, computer readable storage medium of network slice subnet
CN110035306A (en) Dispositions method and device, the dispatching method and device of file
CN106790552A (en) A kind of content providing system based on content distributing network
CN105656992A (en) Content distribution device orienting to secondary movement content distribution system and method thereof
CN106385426A (en) Target hitting method of node content and apparatus thereof
CN107003981A (en) It is synchronous with the equipment locally matched to obtain data from remote server using point to point link
CN108449371B (en) A kind of contents access method and device
CN106060114B (en) A kind of resource share method and device
CN104602035A (en) Streaming media on-demand method and streaming media on-demand system

Legal Events

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