Embodiment
Fig. 1 is the flow chart that the present invention is based on an embodiment of method for down loading of home gateway, and as shown in Figure 1, the method comprises:
Step 100, home gateway receives the downloading request message that user terminal sends, and described downloading request message comprises: the file address of at least one file to be downloaded and file name;
User terminal by the home gateway networking sends to this home gateway with the fileinfo that the user asks to download, thereby this home gateway is resolved the downloading request message that this user terminal sends, and obtains file address and the file name of at least one file to be downloaded.Need to prove, user terminal in the present embodiment refers to have the terminal equipment of accessing WLAN network function, such as smart mobile phone, notebook computer, iPAD etc., the user can use different user terminals by home gateway accessing WLAN network, to download by home gateway as the case may be.
Step 101, if judging, described home gateway knows the downlink data that in Preset Time, does not occur the access to netwoks process for the first down channel that carries out access to netwoks, then download the file corresponding with described file address and described file name and be stored in this locality by described the first down channel, until described the first down channel is when described downlink data occurring, stop to download described file, obtain the file of having downloaded for the user from described home gateway by described user terminal.
Home gateway is after the downloading request message of obtaining the user terminal transmission, starting download function begins to download, be specially: the home gateway monitoring is for the first down channel that carries out access to netwoks, and judge that whether occur user terminal in Preset Time carries out downlink data in the access to netwoks process, namely whether there is the user to carry out web page browsing, download online or watch video etc. to use the network behavior of broadband resource, when family's gateway does not monitor the downlink data flow that this user terminal carries out access to netwoks on this first down channel in Preset Time, home gateway is just downloaded file and the preservation corresponding with the file name of file to be downloaded from the application server corresponding with the file address of file to be downloaded, until monitoring, home gateway have this user terminal to carry out the downlink data flow of access to netwoks on this first down channel, stop to download this document, thereby avoid affecting the user when downlink bandwidth resource is downloaded to normal access to netwoks business because taking.It should be noted that home gateway can be kept at the file of downloading in the USB memory device of self expanding or other plug-in device, can design as required, the present embodiment is not limited this.And home gateway can show the download progress of file to be downloaded, thus download complete after, user terminal according to and this home gateway between communication protocol directly obtain from this home gateway and downloaded complete file.
The method for down loading based on home gateway that the present embodiment provides, receive the downloading request message of user terminal transmission when family's gateway after, judge and know the downlink data that in Preset Time, does not occur the access to netwoks process for the first down channel that carries out access to netwoks, then carrying out file by the first down channel downloads, until the first down channel is when downlink data in the access to netwoks process occurring, stop to download this document, obtain the file of having downloaded for the user from home gateway by user terminal, realized downloading when user terminal does not carry out access to netwoks by home gateway, thereby more adequately and reasonably utilize the network bandwidth, avoided in the prior art user terminal when carrying out access to netwoks, to download, take a large amount of bandwidth, affected the normal access to netwoks of user professional.
Further, the present embodiment is after home gateway receives the downloading request message of user terminal transmission, also comprise: home gateway determines whether to comprise the file address of file to be downloaded according to the site information that prestores, if judge and know that this site information comprises the file address of file to be downloaded, then download by the VLAN between the application server corresponding with this document address or permanent tunnel, thereby realized the downlink bandwidth that home gateway can be corresponding according to the classification flexible choice of downloading task.
Further, the present embodiment is after home gateway receives the downloading request message of user terminal transmission, also comprise: home gateway sends the bandwidth that comprises the home gateway sign to remote management platform and promotes request message, so that transmitting this bandwidth to BAS Broadband Access Server, remote management platform promotes request message, thereby after BAS Broadband Access Server receives the bandwidth that comprises home gateway sign and promotes request message, download for this home gateway distributes second down channel, thereby realized that home gateway can be self dynamic adjustment downlink bandwidth by remote management platform indication BAS Broadband Access Server according to the needs of downloading task.
Further, the present embodiment is after home gateway receives the downloading request message of user terminal transmission, also comprise: home gateway is determined the download rank of each file to be downloaded according to default download priority list, the download rank that priority list is determined file to be downloaded is downloaded in the home gateway inquiry, and wide for descending subband corresponding to this file to be downloaded distribution according to default allocation strategy and download rank, thereby realized that home gateway can be wide according to descending subband corresponding to the priority dynamic assignment of downloading task, to guarantee speed of download and the efficient of vital document.
Fig. 2 is the flow chart that the present invention is based on another embodiment of method for down loading of home gateway, and as shown in Figure 2, the method specifically comprises:
Step 200, home gateway receives the network insertion request message that comprises Media Access Control Address that user terminal sends, if verify that according to described Media Access Control Address described user terminal is legal, then allows described accessing user terminal to network;
The user installs client at user terminal in advance, when user terminal is networked by the network access equipment outside this home gateway, if the user need to find the resource of download in the process that surfs the web, then by selecting the home gateway downloading mode that fileinfo to be downloaded is kept in the client.User terminal in the present embodiment refers to have the terminal equipment of accessing WLAN network function, and such as smart mobile phone, notebook computer, iPAD etc., the user can use different user terminal accessing WLAN networks as the case may be.After the user goes back home, user terminal sends the network insertion request message that comprises Media Access Control Address to this home gateway, if after home gateway is legal according to self default white list or the blacklist checking user terminal corresponding with this Media Access Control Address, then allow this user terminal to access the WLAN (wireless local area network) that this home gateway provides.
Step 201, home gateway receives the downloading request message that user terminal sends, and described downloading request message comprises: the file address of at least one file to be downloaded and file name;
After user terminal and the home gateway networking, with stored in the client, wish carries out file file address that download, that comprise at least one file to be downloaded by the home gateway downloading mode and the downloading request message of file name sends to home gateway, thereby this home gateway is resolved the downloading request message that this user terminal sends, and obtains file address and the file name of at least one file to be downloaded.
Step 202, described home gateway determine whether to comprise the file address of described file to be downloaded according to the site information that prestores, if then execution in step 203, otherwise, execution in step 204;
Home gateway determines whether to comprise the file address of file to be downloaded according to the site information that prestores, wherein, the site information that prestores comprises that home gateway carries out the website of operator's self maintained of downloading service ownership, the website that cooperative relationship is perhaps arranged with this operator, inquire about this site information by home gateway, if judge and know that this site information comprises the file address of file to be downloaded, determine that then this document belongs to the file on the website of operator's self maintained, perhaps with this operator file on the website of cooperative relationship is arranged, then execution in step 203, if judge and know that this site information does not comprise the file address of file to be downloaded, determine that then this document does not belong to the file on the website of operator's self maintained, perhaps with this operator file on the website of cooperative relationship is arranged, then execution in step 204.
Step 203, this locality is downloaded and be kept to described home gateway by the VLAN between the application server corresponding with described file address or permanent tunnel, obtains the file of having downloaded for the user from described home gateway by described user terminal.
Determine this document when family's gateway and belong to the file on the website of operator's self maintained, perhaps with this operator file on the website of cooperative relationship is arranged, then download by the VLAN between the application server corresponding with this document address or permanent tunnel.Thereby realized the down going channel that home gateway can be corresponding according to the classification flexible choice of downloading task, thereby guaranteed to belong to the website that self operator safeguards, speed of download and efficient that file in the website of cooperative relationship is perhaps arranged with this operator, improve the user and experience, better carry out promoting service.
Step 204, described home network are determined the download rank of each file to be downloaded according to default download priority list, and distribute corresponding descending subband wide according to default allocation strategy and described download rank for each file to be downloaded;
Determine this document when family's gateway and do not belong to the website of operator's self maintained that the website of cooperative relationship is perhaps arranged with this operator, the first used when then needing by subscriber to access Internet down channel is downloaded.Be specially: home gateway is at first determined the download rank of each file to be downloaded according to default download priority list, wherein, download and comprise the website group in the priority list and download other corresponding relation of level, if degree ofestablishment 1 is for the highest, rank 3 is minimum, the home gateway inquiry is downloaded priority list and is determined that the website group ofrank 1 correspondence comprises the file address of file to be downloaded, the download rank of then determining this document is high, then home gateway distributes corresponding descending subband wide according to default allocation strategy and download rank for this file to be downloaded, be 50% of the wide downlink bandwidth that accounts for the current support of home gateway of descending subband corresponding to high file such as: allocation strategy for downloading rank, the descending subband of the file in downloading rank and being is wide account for the current support of home gateway downlink bandwidth 30%, download rank and be 20% of the wide downlink bandwidth that accounts for the current support of home gateway of the descending subband of low file, therefore, if the downlink bandwidth of the current support of home gateway is 2M, be 1M for this file to be downloaded distributes corresponding descending subband wide then.Thereby realized that home gateway can be wide according to descending subband corresponding to the priority dynamic assignment of downloading task, to guarantee speed of download and the efficient of vital document.
Step 205, if judging, described home gateway knows the downlink data that in Preset Time, does not occur the access to netwoks process for the first down channel that carries out access to netwoks, then download the file corresponding with described file address and described file name and be kept at this locality by described the first down channel, until described the first down channel is when described downlink data occurring, stop to download described file, obtain the file of having downloaded for the user from described home gateway by described user terminal.
Home gateway is according to default allocation strategy and download rank for after each file to be downloaded distributes the descending subband of correspondence wide, monitoring is for the first down channel that carries out access to netwoks, and judge that whether occur user terminal in Preset Time carries out downlink data in the access to netwoks process, namely whether there is the user to carry out web page browsing, download online or watch video etc. to use the network behavior of broadband resource, when family's gateway does not monitor the downlink data flow that this user terminal carries out access to netwoks on this first down channel in Preset Time, home gateway is just downloaded file and the preservation corresponding with the file address of this document and file name according to the descending subband that distributes for this file to be downloaded in advance is wide by this first down channel, until monitoring, home gateway have this user terminal to carry out the downlink data flow of access to netwoks on this first down channel, stop to download this document, thereby avoid affecting the user when downlink bandwidth resource is downloaded to normal access to netwoks business because taking.It should be noted that home gateway can be kept at the file of downloading in the USB memory device of self expanding or other plug-in device, can design as required, the present embodiment is not limited this.Thereby download complete after, user terminal according to and this home gateway between communication protocol directly obtain from this home gateway and downloaded complete file.
Described method also comprises:
Step 206, described home gateway sends the bandwidth that comprises the home gateway sign to remote management platform and promotes request message, promote request message so that described remote management platform sends described bandwidth to BAS Broadband Access Server, thus distribute for self by described BAS Broadband Access Server, download for the second down channel of downloading service.
Home gateway sends the bandwidth that comprises the home gateway sign to remote management platform and promotes request message, so that transmitting this bandwidth to BAS Broadband Access Server, remote management platform promotes request message, thereby after BAS Broadband Access Server receives the bandwidth that comprises home gateway sign and promotes request message, for distributing second down channel, downloads this home gateway, after downloading end, home gateway sends the download end that comprises the home gateway sign to remote management platform, so that remote management platform is transmitted this download end to BAS Broadband Access Server, thereby after receiving the download end that comprises home gateway sign when BAS Broadband Access Server, cancel as this home gateway and distribute, for the second down channel of downloading.Thereby realized that home gateway can be self dynamic adjustment downlink bandwidth by remote management platform indication BAS Broadband Access Server according to the needs of downloading task.Need to prove, home gateway can only be downloaded by the second down channel, be that each downloading task allocation of downlink subband is wide according to the downlink bandwidth of the second down channel and the priority of downloading task according to the concrete scheme in the step 204, not carry out normal access to netwoks by the first down channel professional thereby do not affect the user; Home gateway can be downloaded by the first down channel and the second down channel simultaneously, wide according to the descending subband of the priority assignment of downloading task according to the concrete scheme in the step 204, be that each downloading task allocation of downlink subband is wide according to total downlink bandwidth of the first down channel and the second down channel and the priority of downloading task according to the concrete scheme in the step 204, thereby accelerate speed of download.
The method for down loading based on home gateway that the present embodiment provides, receive the downloading request message of user terminal transmission when family's gateway after, belong to the file of inner website maintenance if determine download file, then download by VLAN or permanent tunnel, otherwise, download rank according to file to be downloaded is downloaded by the second down channel that the first down channel and/or BAS Broadband Access Server distribute, realized downloading when user terminal does not carry out access to netwoks by home gateway, thereby more adequately and reasonably utilize the network bandwidth, avoided in the prior art user terminal when carrying out access to netwoks, to download, take a large amount of bandwidth, affected the normal access to netwoks of user professional.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Fig. 3 is the structural representation of an embodiment of home gateway of the present invention, as shown in Figure 3, this home gateway comprises:receiver module 11 and the first processing module 12, wherein,receiver module 11 is used for receiving the downloading request message that user terminal sends, and downloading request message comprises: the file address of at least one file to be downloaded and file name; If being used for judging, the first processing module 12 knows the downlink data that in Preset Time, does not occur the access to netwoks process be used to the first down channel that carries out access to netwoks, then by the first down channel download file corresponding with file address and file name, until the first down channel when downlink data occurring, stops download file.
The function of each module and handling process in the home gateway that the present embodiment provides can be referring to above-mentioned embodiments of the method shown in Figure 1, and its realization principle and technique effect are similar, repeat no more herein.
Fig. 4 is the structural representation of another embodiment of home gateway of the present invention, as shown in Figure 4, based on embodiment illustrated in fig. 3, this home gateway also comprises: access module 13, be used for before the downloading request message that receives the user terminal transmission, receive the network insertion request message that comprises Media Access Control Address that user terminal sends, if legal according to Media Access Control Address authentication of users terminal, then allow accessing user terminal to network.
Further, this home gateway also comprises: the second processing module 14 and distribution module 15, wherein, the second processing module 14 is used for after the downloading request message that receives the user terminal transmission, determine whether to comprise the file address of institute's file to be downloaded according to the site information that prestores, if then download by the VLAN between the application server corresponding with the file address or permanent tunnel; If distribution module 15 is used for according to the definite file address that does not comprise institute's file to be downloaded of the site information that prestores, then determine the download rank of each file to be downloaded according to default download priority list, and wide for descending subband corresponding to each file to be downloaded distribution according to default allocation strategy and download rank, then carry out download process by the first processing module 12.Thereby realized the down going channel that home gateway can be corresponding according to the classification flexible choice of downloading task, thereby guaranteed to belong to the website that self operator safeguards, speed of download and efficient that file in the website of cooperative relationship is perhaps arranged with this operator, improve the user and experience, better carry out promoting service.
Further, this home gateway also comprises:
Request module 16 is used for after the downloading request message that receives the user terminal transmission, sends the bandwidth that comprises the home gateway sign to remote management platform and promotes request message, so that remote management platform sends bandwidth lifting request message to BAS Broadband Access Server;
The first processing module 12, also be used for distributing for self by BAS Broadband Access Server, download for the second down channel of downloading service.Thereby realized that home gateway can be self dynamic adjustment downlink bandwidth by remote management platform indication BAS Broadband Access Server according to the needs of downloading task.
The function of each module and handling process in the home gateway that the present embodiment provides can be referring to above-mentioned embodiments of the method shown in Figure 2, and its realization principle and technique effect are similar, repeat no more herein.
Fig. 5 is the structural representation that the present invention is based on an embodiment of download system of home gateway, as shown in Figure 5, this system comprises:user terminal 1 and home gateway 2, wherein, the home gateway that home gateway 2 can adopt the embodiment of the invention to provide,user terminal 1 are the related user terminal of the embodiment of the invention.
Function and handling process based on each module in the download system of home gateway that the present embodiment provides can be referring to the embodiments of the method shown in above-mentioned, and it realizes that principle and technique effect are similar, repeats no more herein.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.