CN108055555A - Resource sharing method, device, service equipment and storage medium - Google Patents

Resource sharing method, device, service equipment and storage medium Download PDF

Info

Publication number
CN108055555A
CN108055555A CN201711316694.XA CN201711316694A CN108055555A CN 108055555 A CN108055555 A CN 108055555A CN 201711316694 A CN201711316694 A CN 201711316694A CN 108055555 A CN108055555 A CN 108055555A
Authority
CN
China
Prior art keywords
address
user terminal
resource
optimal
redirects
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711316694.XA
Other languages
Chinese (zh)
Other versions
CN108055555B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201711316694.XA priority Critical patent/CN108055555B/en
Publication of CN108055555A publication Critical patent/CN108055555A/en
Application granted granted Critical
Publication of CN108055555B publication Critical patent/CN108055555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/122Shortest path evaluation by minimising distances, e.g. by selecting a route with minimum of number of hops
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2665Gathering content from different sources, e.g. Internet and satellite
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/632Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing using a connection between clients on a wide area network, e.g. setting up a peer-to-peer communication via Internet for retrieving video segments from the hard-disk of other client devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a resource sharing method, which comprises the following steps: at an electronic device having a first IP address: receiving a resource request sent by a first user terminal with a second IP address; querying a second user terminal with resources according to the history; generating first hop count information according to the inquired route hop count between the third IP address of each second user terminal and the second IP address; generating second hop count information according to the route hop count from the first IP address to the second IP address; determining an optimal IP address according to the first hop count information and the second hop count information; and establishing network connection between the second IP address and the optimal IP address so as to finish the transmission of resources from the equipment corresponding to the optimal IP address to the first user terminal. The invention also discloses a resource sharing device, service equipment and a computer readable storage medium, which realize the high-efficiency utilization and the quick transmission of resources and improve the experience quality of users.

Description

A kind of resource share method, device, service equipment and storage medium
Technical field
The present invention relates to Resource Sharing Technology field more particularly to a kind of resource share method, device, service equipment and deposit Storage media.
Background technology
For a long time, the impression that TV programme give people is exactly in fixed channel and set time broadcast, and TV station is what when It waits and plays, when user can only just watch, and see again without what chance if missing, and user can not be according to certainly Oneself hobby chooses at random the reproduction time of program, and also can not TV programme be carried out with arbitrarily pause, retroversion and F.F..Therefore Time-moving television technology occurs, and time-moving television technology, can be selectively by live telecast frequency while direct broadcast service is provided The content in road is stored in Video service background system for user's program request by network, and realization watches that the set time is broadcast at any time The TV programme put.What vast TV user will be seen from now on, not exclusively so-called " broadcast type TV " or " live streaming formula TV ", But really " interactive television " or " personalized television ", consumer is made to be converted into active form by passive form.
Time-moving television is the VOD business joint developments of traditional radio and television and internet, the product be combineding with each other.VOD The following three phases of the development experience of business:Quasi- VOD (Near VOD, NVOD), true VOD (True VOD, TVOD) and interaction Formula V OD (Interactive VOD, IVOD) three phases.NVOD can make several channels viewing of substantial amounts of users to share unified Program, so as to achieve the purpose that save bandwidth resources, but start delay is not fixed during user's program request, obtaining portion sub-control system Power.TVOD is assigned with independent channel for each user, and the occupation rate of system bandwidth is higher, may be only available for bandwidth resources Compare in sufficient environment.For IVOD compared with NVOD and TVOD, the impression quality highest of user, server must possess TVOD The function of adjustment media transmission speed and content outside server, it is more demanding to VOD server, it is rich suitable for bandwidth resources In the rich and more rich environment of server resource, with network bandwidth and computer capacity development and user demand not Disconnected to be promoted, IVOD is the trend of VOD development.
Requirements of the IVOD to server is high, and may be only available for the ring that bandwidth resources are enriched and server resource enriches In border, nowadays user is more and more apparent to the dependence of network, and demand is also more and more, the bandwidth deficiency or load excessive of server The phenomenon that often occur, user has been more than just intrinsic capacity to the demand of Internet resources, and the prior art is always solely in Centre server asks for resource, and user, which will take excessive time, is constantly asking resource, further increases network blockage, net For network it could even be possible to there is locking state, user can not rapidly get resource, and cost of idle time affects making for user With.
The content of the invention
In view of the above-mentioned problems, it is an object of the invention to provide a kind of resource share method, device, calculate service equipment and Storage medium so that user can rapidly get required resource, and mitigate the burden of server.
The present invention provides a kind of resource share method, including at the electronic device with the first IP address:
Receive the resource request that the first user terminal with the second IP address is sent;Wherein, the resource request includes The mark of resource to be obtained;
According to historical record inquiry with the second user terminal with the corresponding resource of the mark;
It is jumped according to the routing between the 3rd IP address of each second user terminal inquired and second IP address The first of each second user terminal of revolution generation redirects several information;
The second of the number generation electronic device is redirected according to first IP address to the routing between the second IP address Redirect several information;
The second of several information and the electronic device, which is redirected, according to the first of each second user terminal redirects several letters Breath, determines optimal IP address;
The connection of the network between the second IP address of the first user terminal and the optimal IP address is established, to complete resource From the corresponding equipment of the optimal IP address to the transmission corresponding first user terminal of second IP address.
Preferably, the 3rd IP address of each second user terminal that the basis inquires and second IP address it Between routing redirect number and generate the first of each second user terminals and redirect several information, be specially:
It is jumped according to the routing between the 3rd IP address of each second user terminal inquired and second IP address Revolution NADetermine that the first of each second user terminal redirects several information with the current service number N of the second user terminal.
Preferably, the 3rd IP address of each second user terminal that the basis inquires and second IP address it Between routing redirect number and generate the first of each second user terminals and redirect several information, be specially:
It is jumped according to the routing between the 3rd IP address of each second user terminal inquired and second IP address Revolution NA, the second user terminal current service number N and be weight u generations that the current service number N is set each the The first of two user terminals redirects several information.
Preferably, it is described that the number generation electronics is redirected according to first IP address to the routing between the second IP address The second of device redirects several information, is specially:
Several N are redirected to the routing between the second IP address according to first IP addressCAnd the weighting of the electronic device Service number determines that the second of the electronic device redirects several information;Wherein, the Weighted Service is several according to the electronic device Current service number and the generation of default load threshold.
Preferably, it is described first to redirect the of several information and the electronic device according to each second user terminal Two redirect several information, determine optimal IP address, are specially:
The second of several information and the electronic device, which is redirected, according to the first of each second user terminal redirects several letters Breath is ranked up, and the corresponding IP address of equipment with minimum jump number information is determined as optimal IP address.
Preferably, when the optimal IP address is the first IP address:
Network connection between second IP address for establishing the first user terminal and the optimal IP address, specifically For:
Initiate the network Route establishment Shen of the second IP address from first IP address direction, first user terminal Please;
When the optimal IP address is three IP address of second user terminal:
Network connection between second IP address for establishing the first user terminal and the optimal IP address, specifically For:
The optimal IP address is sent to first user terminal and by the 2nd IP of first user terminal Location is sent to second user terminal corresponding with the optimal IP address, so that first user terminal is initiated from the 2nd IP It is directed toward the network Route establishment application of the optimal IP address and to use with the optimal IP address corresponding second in address Family terminal is initiated to be directed toward the network Route establishment application of second IP address from optimal IP address.
Preferably, the completion resource is from the corresponding equipment of the optimal IP address to second IP address corresponding the After transmission between one user terminal, further include:
Receive the information disconnected between the optimal IP address of the first user terminal feedback;
Update resource and the current service number that each equipment has obtained.
The present invention also provides a kind of resource shared devices, have the first IP address, including:
Resource request receiving module, for receiving the resource request that the first user terminal with the second IP address is sent; Wherein, the resource request includes the mark of resource to be obtained;
Enquiry module, for having the second user terminal with the corresponding resource of the mark according to historical record inquiry;
Optimal IP address determining module, for according to the 3rd IP address of each second user terminal inquired with it is described Routing between second IP address redirects number, and first IP address redirects number to the routing between the second IP address, determines one A optimal IP address;
Connection establishment module, for establishing the net between the second IP address of the first user terminal and the optimal IP address Road connects, to complete resource from the corresponding equipment of the optimal IP address to corresponding first user terminal of second IP address Between transmission.
The present invention also provides a kind of service equipments, have the first IP address, including processor, memory and are stored in In the memory and it is configured as the computer program performed by the processor, the memory and the processor coupling It connects, the processor realizes resource share method as described above when performing the computer program.
The present invention also provides a kind of computer readable storage medium, the computer readable storage medium includes storage Computer program, wherein, equipment performs such as the computer program controls the computer readable storage medium when running where The upper resource share method.
Resource share method provided in an embodiment of the present invention, device, service equipment and storage medium, by need to ask First user terminal of resource provides an optimal IP address with the resource, solves and is solely asked in the past to server During resource, resource transmission speed caused by due to network blockage is slow or even occurs causing servers go down due to network blockage The problem of.Optimal IP address determined by the embodiment of the present invention is to transmit the fastest IP address for asking for resource, thus User can be reduced and ask for the resource required time, server transmission bandwidth is avoided to block, resource is made efficiently to be utilized, Improve the Quality of experience of user.
Description of the drawings
In order to illustrate more clearly of technical scheme, attached drawing needed in embodiment will be made below Simply introduce, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, general for this field For logical technical staff, without creative efforts, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is the flow diagram for the resource share method that first embodiment of the invention provides.
Fig. 2 is the flow diagram for the resource share method that second embodiment of the invention provides.
Fig. 3 is the flow diagram for the resource share method that third embodiment of the invention provides.
Fig. 4 is the flow diagram for the resource share method that fourth embodiment of the invention provides.
Fig. 5 is the flow diagram for the resource share method that fifth embodiment of the invention provides.
Fig. 6 is the structure diagram for the resource shared device that sixth embodiment of the invention provides.
Fig. 7 is the structure diagram for the service equipment that seventh embodiment of the invention provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is the flow diagram for the resource share method that first embodiment of the invention provides.It includes Following steps:
At the electronic device with the first IP address:
S11 receives the resource request that the first user terminal with the second IP address is sent;Wherein, the resource request Include the mark of resource to be obtained.
Wherein, the electronic device with the first IP address can be server, as WEB server, database server, Streaming media server, VOD ordering servers etc., the present invention is not specifically limited.Particularly, the electronic device is program The central server of supplier.
Wherein, first user terminal can be DTV, laptop, desktop computer, Intelligent flat computer etc., The present invention is not specifically limited.
Wherein, the resource can be video resource, document information, live streaming resource, pictorial information, audio etc., and the present invention is not It is specifically limited.Particularly, the resource is the video frequency program resource in time-moving television.
It should be noted that the quantity of first user terminal can be one or more, that is, allow multiple first User terminal sends resource request simultaneously, and the present invention is not specifically limited.
S12, according to historical record inquiry with the second user terminal with the corresponding resource of the mark.
In the present embodiment, if the second user terminal was asked for and the corresponding money of the mark to the electronic device The second user terminal is then given tacit consent to the resource in source.Currently, in order to ensure second terminal has the e-sourcing, The electronic device can also send resource confirmation to described asked for the second user terminal of the corresponding resource of the mark Request, the second user terminal are fed back the resource status to the electronic device according to the current state of the resource and are believed Breath, the electronic device confirms to have according to the resource state information of feedback to be used with the second of the corresponding resource of the mark Family terminal.
Wherein, the current state of the resource includes:Can the presence or absence of resource, the stability of resource, resource carry out Transmission etc., the present invention is not specifically limited.
Furthermore, it is necessary to explanation, the electronic device is likely to be among server cluster, then at this point, in cluster Each server can share historical record, therefore, any one server in second user terminal to server cluster When asking for the resource, the Servers-all in server cluster can be learnt.
It should be noted that the second user terminal just has when using the service of resource-sharing and shares own resource Obligation, before opening the service, the second user terminal needs to agree to use agreement.
It should be noted that the second user terminal can be flat for DTV, laptop, desktop computer, intelligence Plate computer etc., the present invention is not specifically limited.
It should be noted that the quantity of the second user terminal can be one or more, that is, allow to inquire about multiple With the second user terminal with the corresponding resource of the mark, the present invention is not specifically limited.
S13, according to the road between the 3rd IP address of each second user terminal inquired and second IP address Several information are redirected by redirect each second user terminal of number generation first.
S14 redirects number according to first IP address to the routing between the second IP address and generates the electronic device Second redirects several information.
S15 redirects the second of several information and the electronic device according to the first of each second user terminal and redirects Number information, determines optimal IP address;
Wherein, Small-world Theory in Self points out that tellurian any two stranger can be averagely by 6 contact persons The chain of composition and connect.The application of Small-world Theory in Self in a network, it is according to different geographical locations that gridding resource is empty Between be divided into multiple and different Autonomous Domain AS, a kind of gridding resource tissue overlay structure based on Small-world Theory in Self is designed, by dynamic State determines the concentration class of node, and AS is divided and clustered according to certain cluster centre, wherein, in order to reduce average path Length will determine it is that cluster is changed to the probability cluster with random nature.According to Small-world Theory in Self, the electronic device analysis Each terminal redirects several information, and is distributed according to several information are redirected in different region units, the terminal of identical region unit It is considered as a cluster, the second user terminal with the resource can be found by redirecting for limited number of time in cluster.
Wherein, redirect the second of several information and the electronic device by the first of each second user terminal and redirect number Information is ranked up, and the corresponding IP address of equipment with minimum jump number information is determined as optimal IP address.
It is understood that shortest path of the equipment with minimum jump number information to first user terminal, because Its IP address is determined as optimal IP address by this, can realize the quick obtaining of resource.
S16 establishes the connection of the network between the second IP address of the first user terminal and the optimal IP address, to complete Resource is from the corresponding equipment of the optimal IP address to the transmission corresponding first user terminal of second IP address.
Resource share method provided in this embodiment, by for need ask resource the first user terminal one tool is provided Have the optimal IP address of the resource, solve it is previous when solely asking for resource to server, caused by due to network blockage Resource transmission speed is slow or even the problem of causing servers go down due to network blockage occurs.Determined by the embodiment of the present invention Optimal IP address is to transmit the fastest IP address for asking for resource, it is thus possible to which reducing user, to ask for resource required Time avoids server transmission bandwidth from blocking, and resource is made efficiently to be utilized, and improves the Quality of experience of user.
Referring to Fig. 2, Fig. 2 is the flow diagram for the resource share method that second embodiment of the invention provides.Including such as Lower step:
At the electronic device with the first IP address:
S21 receives the resource request that the first user terminal with the second IP address is sent;Wherein, the resource request Include the mark of resource to be obtained.
S22, according to historical record inquiry with the second user terminal with the corresponding resource of the mark.
S23, according to the road between the 3rd IP address of each second user terminal inquired and second IP address By redirecting several NADetermine that the first of each second user terminal redirects several letters with the current service number N of the second user terminal Breath.
S24 redirects number according to first IP address to the routing between the second IP address and generates the electronic device Second redirects several information.
S25 redirects the second of several information and the electronic device according to the first of each second user terminal and redirects Number information, determines optimal IP address.
S26 establishes the connection of the network between the second IP address of the first user terminal and the optimal IP address, to complete Resource is from the corresponding equipment of the optimal IP address to the transmission corresponding first user terminal of second IP address.
When sharing difference lies in, multiple networked devices broadband simultaneously with first embodiment due to the bandwidth upper limit, Individual equipment bandwidth allocation is cannot to reach normal peak, when the second user terminal provides clothes for other users terminal During business, then when determining optimal IP address, influences of the current service number N of second user terminal to its transmission speed need to be considered. For this purpose, in the present embodiment, when being ranked up to redirecting several information, except consider the 3rd IP address of second user terminal with Routing between second IP address redirects several NAOutside, also simultaneously in view of the current service number N of second user terminal.
It should be noted that considering the current service number N of second user terminal, it can be directly by NANext life is added with N Several information (N are redirected into the first of second user terminalA+ N), or N distributes a weight u to generate second user terminal First redirect several information (NA+ uN), the present invention is not specifically limited.
Resource share method provided in this embodiment, in the case where considering the current service number N of the second user terminal, institute is really Fixed its line condition of optimal IP address is good, and speed is fast, and the loss of communication data packet is small, most can quickly transmit asked for resource, Reduce user to ask for the resource required time, improve user experience.
Referring to Fig. 3, Fig. 3 is the flow diagram for the resource share method that third embodiment of the invention provides.Including such as Lower step:
At the electronic device with the first IP address:
S31 receives the resource request that the first user terminal with the second IP address is sent;Wherein, the resource request Include the mark of resource to be obtained.
S32, according to historical record inquiry with the second user terminal with the corresponding resource of the mark.
S33, according to the road between the 3rd IP address of each second user terminal inquired and second IP address Several information are redirected by redirect each second user terminal of number generation first.
S34 redirects several N according to first IP address to the routing between the second IP addressCAnd the electronic device Weighted Service number determines that the second of the electronic device redirects several information;Wherein, the Weighted Service is several fills according to the electronics The current service number put and the generation of default load threshold.
Wherein, the Weighted Service is several generates according to the current service number of the electronic device and default load threshold, Such as the current service number Q, the default load threshold W, the Weighted Service number areW is real according to electronic device The load threshold on border is set, and can be determined according to the actual performance parameter of electronic device.
S35 redirects the second of several information and the electronic device according to the first of each second user terminal and redirects Number information, determines optimal IP address.
S36 establishes the connection of the network between the second IP address of the first user terminal and the optimal IP address, to complete Resource is from the corresponding equipment of the optimal IP address to the transmission corresponding first user terminal of second IP address.
Difference lies in when the Weighted Service number of the electronic device with first embodimentWhen excessive, illustrate that electronics fills The load put is very big, can influence the transmission rate of resource, then when determining optimal IP address, need to consider Weighted Service numberTo passing The influence of defeated rate, for this purpose, in the present embodiment, when being ranked up, the first IP address except considering the electronic device Routing between second IP address redirects several NCOutside, also simultaneously in view of the Weighted Service number of the electronic device
Likewise, when considering the influence of Weighted Service number, it can be directly by NcWithIt is added and redirects number to generate second Information, orOne weight of distribution redirects several information to generate the second of electronic device, and the present invention is not specifically limited.
Resource share method provided in this embodiment is considering the Weighted Service number of the electronic deviceUnder, Cai Nenggeng The scientifically line condition of more each equipment, speed, the optimal IP address determined by guarantee are science, a resource The most fast IP address of transmission rate can reduce user and ask for the resource required time, improve user experience, efficiently utilize money Source.
Furthermore, it is necessary to which explanation, second embodiment and 3rd embodiment can consider simultaneously, i.e., redirected in calculating first Using the scheme of second embodiment during number information, and when calculating second redirects several information using the scheme of 3rd embodiment.
Referring to Fig. 4, Fig. 4 is the flow diagram for the resource share method that fourth embodiment of the invention provides.Including such as Lower step:
At the electronic device with the first IP address:
S41 receives the resource request that the first user terminal with the second IP address is sent;Wherein, the resource request Include the mark of resource to be obtained.
S42, according to historical record inquiry with the second user terminal with the corresponding resource of the mark.
S43, according to the road between the 3rd IP address of each second user terminal inquired and second IP address Several information are redirected by redirect each second user terminal of number generation first.
S44 redirects number according to first IP address to the routing between the second IP address and generates the electronic device Second redirects several information.
S45 redirects the second of several information and the electronic device according to the first of each second user terminal and redirects Number information, determines optimal IP address.
S46 when the optimal IP address is the first IP address, initiates to be directed toward first use from first IP address The network Route establishment application of second IP address of family terminal;As the 3rd IP that the optimal IP address is second user terminal During location, the optimal IP address is sent to first user terminal and sends out the second IP address of first user terminal Second user terminal corresponding with the optimal IP address is given, so that first user terminal is initiated from the second IP address It is directed toward the network Route establishment application of the optimal IP address and causes second user end corresponding with the optimal IP address It initiates to be directed toward the network Route establishment application of second IP address from optimal IP address in end;So that resource is from the optimal IP The corresponding equipment in location is to the transmission between corresponding first user terminal of second IP address.
Resource share method provided in this embodiment establishes the second IP address of the first user terminal with the optimal IP Network connection between location so that resource safer can be rapidly transmitted, and the optimal IP address is that a performance is optimal, The most fast IP address of resource transmission rate, when the optimal IP address is the first IP address, energy quick obtaining resource, when described When optimal IP address is three IP address of second user terminal, resource can be efficiently utilized, is solved previous solely to clothes The problem of business device asks for resource and causes network blockage, realizes resource-sharing, improves user experience.
Referring to Fig. 5, Fig. 5 is the flow diagram for the resource share method that fifth embodiment of the invention provides.
As the improvement of the present invention, in the completion resource from the corresponding equipment of the optimal IP address to the 2nd IP After transmission between corresponding first user terminal in address, further include:
S51 receives the information disconnected between the optimal IP address of the first user terminal feedback;
S52 updates resource and current service number that each equipment has obtained.
Resource share method provided in this embodiment updates resource and current service number that each equipment has obtained, Real-time update data can more quickly determine out IP address when determining an optimal IP address next time, improve work speed Rate efficiently using resource, improves user experience quality.
Referring to Fig. 6, sixth embodiment of the invention additionally provides a kind of resource shared device.
The resource shared device has the first IP address, and can perform above-mentioned first embodiment phase into the 5th embodiment The step of answering specifically includes:
Resource request receiving module 61, please for receiving the resource that the first user terminal with the second IP address is sent It asks;Wherein, the resource request includes the mark of resource to be obtained.
Enquiry module 62, according to historical record inquiry with the second user terminal with the corresponding resource of the mark;
First redirects several information determination modules 63, according to the 3rd IP address of each second user terminal inquired and institute It states the routing between the second IP address and redirects number and generate the first of each second user terminals and redirect several information;
Second redirects several information determination modules 64, is redirected according to first IP address to the routing between the second IP address The second of the number generation electronic device redirects several information;
Optimal IP address determining module 65 redirects several information and the electricity according to the first of each second user terminal The second of sub-device redirects several information, determines optimal IP address;
Connection establishment module 66 establishes the network between the second IP address of the first user terminal and the optimal IP address Connection, with complete resource from the corresponding equipment of the optimal IP address to corresponding first user terminal of second IP address it Between transmission.
Preferably, described first several information determination modules 63 are redirected it is specifically used for, according to each second user inquired Routing between the 3rd IP address and second IP address of terminal redirects several NAWith the current clothes of the second user terminal Business number N determines that the first of each second user terminal redirects several information.
Preferably, described first several information determination modules 63 are redirected it is additionally operable to, it is whole according to each second user inquired Routing between 3rd IP address and second IP address at end redirects several NA, the second user terminal current service number N and the weight u set for the current service number N redirect several information for generating the first of each second user terminal.
When sharing broadband simultaneously in view of multiple networked devices due to the bandwidth upper limit, individual equipment bandwidth allocation It is the situation that cannot reach normal peak, when the second user terminal provides service for other users terminal, then exists When determining optimal IP address, influences of the current service number N to transmission speed is being considered, also simultaneously in view of distributing a power for N Weight u, identified its line condition of optimal IP address is good, and speed is fast, and the loss of communication data packet is small, most can quickly transmit institute's rope Resource is taken, solves the problems, such as solely to ask for resource in the past to central server and cause network blockage, solves packet loss and ask Topic, reduces user and asks for the resource required time, improves user experience.
Preferably, described second several information determination modules 64 are redirected it is specifically used for, according to first IP address to second Routing between IP address redirects several NCAnd the Weighted Service number of the electronic device determines that the second of the electronic device redirects Number information;Wherein, the Weighted Service is several generates according to the current service number of the electronic device and default load threshold.
When the Weighted Service number of the electronic deviceWhen excessive, the Weighted Service number of the electronic device need to be considered Can the line condition of more each equipment, speed, the damaed cordition of communication data packet more scientificly, avoid the electronic device With the equipment of each second user terminal it is inconsistent caused by error, the identified optimal IP address is only one Science, IP address that resource transmission rate is most fast, can reduce user and ask for the resource required time, improve user experience, Efficiently utilize resource.
Preferably, the optimal IP address determining module 65 is specifically used for, according to the of each second user terminal One, which redirects the second of several information and the electronic device, redirects several information and is ranked up, and by setting with minimum jump number information Standby corresponding IP address is determined as optimal IP address.
Preferably, the connection establishment module 66 is specifically used for, and when the optimal IP address is the first IP address, initiates The network Route establishment application of the second IP address of first user terminal is directed toward from first IP address;When described optimal The optimal IP address is sent to first user terminal when IP address is three IP address of second user terminal and is incited somebody to action Second IP address of first user terminal is sent to second user terminal corresponding with the optimal IP address, so that institute State the first user terminal initiate from the second IP address be directed toward the network Route establishment application of the optimal IP address and cause with The corresponding second user terminal of the optimal IP address is initiated to be directed toward the network routing of second IP address from optimal IP address Establish application.
Wherein, the connection of the network between the second IP address of the first user terminal and the optimal IP address is established so that Resource safer can be rapidly transmitted, and the optimal IP address is that a performance is optimal, the most fast IP of resource transmission rate Address, when the optimal IP address is the first IP address, energy quick obtaining resource, when the optimal IP address is second user During three IP address of terminal, resource can be efficiently utilized, is solved and is solely asked for resource in the past to central server and make The problem of into network blockage, realizes resource-sharing, improves user experience.
Preferably, further include:
Disconnect information receiving module, for receive first user terminal feedback with the optimal IP address it The information of separated connection;
Update module, for updating resource and the current service number that each equipment has obtained.
Referring to Fig. 7, seventh embodiment of the invention additionally provides a kind of terminal, there is the electronic device of the first IP address, Including processor 71, memory 72 and it is stored in the memory 72 and is configured as the calculating performed by the processor Machine program 73, the computer program 73 can be performed by the processor 71, to realize above-mentioned first embodiment to six implementations Method described in example.
Terminal provided in this embodiment, by for user terminal provide an optimal IP address solve it is previous solely to Even there is the problem of paralysing due to congestion in the network blockage that central server is asked for resource and brought, reduces user and asks for money The source required time solves central server transmission bandwidth and is obstructed, and so as to lead to the problem of interim card, resource is made to obtain efficiently Utilization, improve the Quality of experience of user.
Eighth embodiment of the invention additionally provides a kind of computer readable storage medium, the computer readable storage medium Computer program including storage, wherein, the computer readable storage medium institute is controlled when the computer program is run The method as described in the above-mentioned first to the 5th embodiment is performed in equipment.
It should be noted that it in the above-described embodiments, all emphasizes particularly on different fields to the description of each embodiment, in some embodiment In the part that is not described in, may refer to the associated description of other embodiment.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and simulation military service must be the present invention It is necessary.
The steps in the embodiment of the present invention can be sequentially adjusted, combined, and deleted as needed.
The above disclosed power for being only a kind of preferred embodiment of the present invention, the present invention cannot being limited with this certainly Sharp scope one of ordinary skill in the art will appreciate that realizing all or part of flow of above-described embodiment, and is weighed according to the present invention Profit requires made equivalent variations, still falls within and invents covered scope.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..

Claims (10)

1. a kind of resource share method, which is characterized in that including at the electronic device with the first IP address:
Receive the resource request that the first user terminal with the second IP address is sent;Wherein, the resource request includes waiting to obtain The mark of the resource taken;
According to historical record inquiry with the second user terminal with the corresponding resource of the mark;
Number is redirected according to the routing between the 3rd IP address of each second user terminal inquired and second IP address Generate each second user terminal first redirects several information;
Redirect the number generation electronic device according to first IP address to the routing between the second IP address second redirects Number information;
The second of several information and the electronic device is redirected according to the first of each second user terminal and redirects several information, really Fixed optimal IP address;
The connection of the network between the second IP address of the first user terminal and the optimal IP address is established, to complete resource from institute The corresponding equipment of optimal IP address is stated to the transmission between corresponding first user terminal of second IP address.
2. resource share method as described in claim 1, which is characterized in that each second user that the basis inquires is whole What the routing between the 3rd IP address and second IP address at end redirected each second user terminals of number generation first redirects Number information, specially:
Several N are redirected according to the routing between the 3rd IP address of each second user terminal inquired and second IP addressA Determine that the first of each second user terminal redirects several information with the current service number N of the second user terminal.
3. resource share method according to claim 2, which is characterized in that each second user that the basis inquires Routing between the 3rd IP address and second IP address of terminal redirects the first jump that number generates each second user terminal Revolution information, specially:
Number is redirected according to the routing between the 3rd IP address of each second user terminal inquired and second IP address NA, the second user terminal current service number N and the weight u generations each second that are set for the current service number N use The first of family terminal redirects several information.
4. the resource share method as described in claims 1 to 3 any one, which is characterized in that described according to the first IP Address redirects several information to the routing between the second IP address redirects the number generation electronic device second, is specially:
Several N are redirected to the routing between the second IP address according to first IP addressCAnd the Weighted Service number of the electronic device Determine that the second of the electronic device redirects several information;Wherein, the several current clothes according to the electronic device of the Weighted Service Business number and the generation of default load threshold.
5. resource share method as described in claim 1, which is characterized in that described according to each second user terminal First redirects several information and the second of the electronic device redirects several information, determines optimal IP address, is specially:
According to the first of each second user terminal redirect the second of several information and the electronic device redirect several information into Row sequence, and the corresponding IP address of equipment with minimum jump number information is determined as optimal IP address.
6. a kind of resource share method as described in claim 1, which is characterized in that when the optimal IP address for the first IP During location:
Network connection between second IP address for establishing the first user terminal and the optimal IP address, specially:
Initiate the network Route establishment application of the second IP address from first IP address direction, first user terminal;
When the optimal IP address is three IP address of second user terminal:
Network connection between second IP address for establishing the first user terminal and the optimal IP address, specially:
The optimal IP address is sent to first user terminal and sends out the second IP address of first user terminal Second user terminal corresponding with the optimal IP address is given, so that first user terminal is initiated from the second IP address It is directed toward the network Route establishment application of the optimal IP address and causes second user end corresponding with the optimal IP address It initiates to be directed toward the network Route establishment application of second IP address from optimal IP address in end.
7. a kind of resource share method as described in claim 1, which is characterized in that the completion resource is from the optimal IP The corresponding equipment in location is further included to after the transmission between corresponding first user terminal of second IP address:
Receive the information disconnected between the optimal IP address of the first user terminal feedback;
Update resource and the current service number that each equipment has obtained.
8. a kind of resource shared device has the first IP address, which is characterized in that including:
Resource request receiving module, for receiving the resource request that the first user terminal with the second IP address is sent;Wherein, The resource request includes the mark of resource to be obtained;
Enquiry module, for having the second user terminal with the corresponding resource of the mark according to historical record inquiry;
Optimal IP address determining module, for the 3rd IP address and described second according to each second user terminal inquired Routing between IP address redirects number, and first IP address redirects number to the routing between the second IP address, determines one most Excellent IP address;
Connection establishment module connects for establishing the network between the second IP address of the first user terminal and the optimal IP address It connects, to complete resource from the corresponding equipment of the optimal IP address to corresponding first user terminal of second IP address Transmission.
9. a kind of service equipment has the first IP address, which is characterized in that including processor, memory and is stored in described In memory and the computer program performed by the processor is configured as, the memory is coupled with the processor, institute State the resource share method realized when processor performs the computer program as described in claim 1 to 7 any one.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage Machine program, wherein, equipment performs such as right the computer program controls the computer readable storage medium when running where It is required that the resource share method described in 1 to 7 any one.
CN201711316694.XA 2017-12-08 2017-12-08 Resource sharing method, device, service equipment and storage medium Active CN108055555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711316694.XA CN108055555B (en) 2017-12-08 2017-12-08 Resource sharing method, device, service equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711316694.XA CN108055555B (en) 2017-12-08 2017-12-08 Resource sharing method, device, service equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108055555A true CN108055555A (en) 2018-05-18
CN108055555B CN108055555B (en) 2020-11-10

Family

ID=62124465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711316694.XA Active CN108055555B (en) 2017-12-08 2017-12-08 Resource sharing method, device, service equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108055555B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193506A1 (en) * 2008-01-24 2009-07-30 Mcgrew David A Cryptographic peer discovery, authentication, and authorization for on-path signaling
CN102256164A (en) * 2011-07-12 2011-11-23 广州纳斯威尔信息技术有限公司 Video transmission system based on IP (Internet Protocol) network
CN102609305A (en) * 2012-02-07 2012-07-25 中山爱科数字科技股份有限公司 Method for sharing internal memory in server cluster
US20120271945A1 (en) * 2011-04-20 2012-10-25 Microsoft Corporation Obtaining Server Address when Domain Name System Proxy Solution Fails
CN103269454A (en) * 2013-05-08 2013-08-28 天津三星电子有限公司 Method for sharing television programs and television set using method
CN103763206A (en) * 2014-01-21 2014-04-30 能力天空科技(北京)有限公司 Network scheduling method and gateway

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193506A1 (en) * 2008-01-24 2009-07-30 Mcgrew David A Cryptographic peer discovery, authentication, and authorization for on-path signaling
US20120271945A1 (en) * 2011-04-20 2012-10-25 Microsoft Corporation Obtaining Server Address when Domain Name System Proxy Solution Fails
CN102256164A (en) * 2011-07-12 2011-11-23 广州纳斯威尔信息技术有限公司 Video transmission system based on IP (Internet Protocol) network
CN102609305A (en) * 2012-02-07 2012-07-25 中山爱科数字科技股份有限公司 Method for sharing internal memory in server cluster
CN103269454A (en) * 2013-05-08 2013-08-28 天津三星电子有限公司 Method for sharing television programs and television set using method
CN103763206A (en) * 2014-01-21 2014-04-30 能力天空科技(北京)有限公司 Network scheduling method and gateway

Also Published As

Publication number Publication date
CN108055555B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN101766013B (en) System and method of providing services via peer-to-peer-based next generation network
JP5390413B2 (en) Hierarchically clustered P2P streaming system
CN101635635B (en) Cloud mode streaming media service platform
EP2913978A1 (en) Business scheduling method and apparatus and convergence device
CN101355522B (en) Control method and system for media server
CN108989264A (en) A kind of live broadcasting method, system and relevant device
CN102668472A (en) Driven multicast traffic distribution on link-aggregate-group
CN106416269A (en) Unicast adaptive bitrate streaming
KR101628985B1 (en) Method for managing data transmission between peers according to levels of priority of transmitted and received data and associated management device
KR20080076803A (en) Bandwidth requesting system, bandwidth requesting device, client device, bandwidth requesting method, content playback method, and program
CN105830031A (en) Method and network node for selecting a media processing unit
CN103201984B (en) For the system and method for the dynamic-configuration of the overlay network based on ISN memory
WO2018145376A1 (en) Method and system for controlling wireless devices to share bandwidth
US10833944B2 (en) Distribution of bandwidth in a network
Kim 5G Network Communication, Caching, and Computing Algorithms Based on the Two‐Tier Game Model
Zhao et al. Enabling P2P one-view multiparty video conferencing
CN104580016A (en) Node distribution method, device and system
US20200169695A1 (en) Video conference multi-point control method and device, storage medium and computer apparatus
CN102420868A (en) Service providing method, device and system
Dong et al. A novel distribution service policy for crowdsourced live streaming in cloud platform
Deltouzos et al. Liquidstream II—Scalable P2P overlay optimization with adaptive minimal server assistance for stable and efficient video on demand
CN108055555A (en) Resource sharing method, device, service equipment and storage medium
CN103179191A (en) P2P (peer to peer) network control device and P2P network control architecture
Chen et al. OAZE: A network-friendly distributed zapping system for peer-to-peer IPTV
KR20150133437A (en) Method for arranging cache positioned at subscriber network and system thereof

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