WO2013143360A1 - Method for downloading service data and mobile terminal - Google Patents

Method for downloading service data and mobile terminal Download PDF

Info

Publication number
WO2013143360A1
WO2013143360A1 PCT/CN2013/071359 CN2013071359W WO2013143360A1 WO 2013143360 A1 WO2013143360 A1 WO 2013143360A1 CN 2013071359 W CN2013071359 W CN 2013071359W WO 2013143360 A1 WO2013143360 A1 WO 2013143360A1
Authority
WO
WIPO (PCT)
Prior art keywords
data source
current optimal
optimal data
link
current
Prior art date
Application number
PCT/CN2013/071359
Other languages
French (fr)
Chinese (zh)
Inventor
蔡云飞
汪洋
周洪
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013143360A1 publication Critical patent/WO2013143360A1/en

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/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Definitions

  • the present invention relates to mobile communication technologies, and in particular, to a service data download method and a mobile terminal.
  • BACKGROUND With the development of 3G networks and smart mobile terminal technologies, accessing the Internet anytime and anywhere in a mobile state has become an indispensable requirement for people's lives. People can use mobile terminals to engage in various network experiences such as video viewing and file downloading. How to guide mobile terminal users to access the data source closest to the user, in order to reduce the transmission traffic of the whole network, improve the download speed of users, and improve the user experience, is a hot issue in current network research.
  • Mobile IP technology means that when a mobile user terminal uses a network based on TCP/IP protocol in moving and roaming across networks, it does not need to modify the original IP address of the mobile terminal, and continues to enjoy all the rights in the original network (similar to mobile phone roaming without changing The number, here is no need to change the IP address).
  • Mobile IP provides an IP routing mechanism that allows a mobile node to connect to any link with a permanent IP address.
  • Mobile IP has two implementation methods: tunnel mode and route optimization mode. When the mobile user terminal is on the local network link, the data flow of the two modes is the same.
  • the user's request to access the server is forwarded to the server through the home agent (HA), and the data responded by the server is forwarded to the user through the home agent. .
  • the step of the user accessing the network through the tunnel method includes: the request for the user to access the server is forwarded to the server through the foreign agent (FA), and the data responded by the server is not directly sent to the foreign agent, but is sent to the user's home agent.
  • FA foreign agent
  • the data is forwarded from the home agent to the foreign agent through the tunnel, and the foreign agent forwards the data to the roaming user.
  • the steps of accessing the network through the route optimization mode when the user is in the remote network area include: The request for the user to access the server is forwarded to the server through the foreign agent FA, and the data responded by the server passes the foreign agent. Forward directly to the user.
  • ALTO Application Layer Traffic Optimization
  • DNS Domain Name System
  • the ALTO service can provide information such as parameter selection of network resources (eg, relative location information of resource consumers and multiple data sources, and which data source is closer to resource consumers) to achieve a change in network resource consumption patterns. Maintain and improve application performance.
  • the CP server selects a content server to provide services to the user according to the current location of the user.
  • Data the essence of the nearest choice is to optimize application layer traffic, making user data access marginal, reducing network traffic, and improving user access quality.
  • the resource data is obtained from the data source closest to the home agent.
  • the user's mobile terminal is near the local agent (home agent or foreign agent) when initiating the service request.
  • the data source obtains the resource data.
  • the end user crosses from one agent area to another agent area, although the agent is switched, the data source of the access does not change, and the user receives the data before the user actively requests the new service.
  • the data received before the proxy switch is from the same data source.
  • the user User-A starts from the area Area-A, and the agent of Area-A is PA: (1) the user forwards the request service data packet through the proxy PA, requests video data from the CP server, and the CP server follows the proxy.
  • the IP address of the PA redirects the User-A request to the content server SA closest to the proxy PA; (2) the content server SA sends the video data to the proxy PA, and the PA forwards the data to User-A; (3) the user
  • the proxy of User-A moves to the area Area-B during the process of watching the video.
  • the proxy of User-A is switched from the PA to the PB, and the data of the content server SA is notified to the proxy PB, which is forwarded by the PB.
  • the proxy PB which is forwarded by the PB.
  • the end user completes the network link and proxy switching in the process of acquiring data in the mobile state, and keeps the service uninterrupted, but the terminal user
  • the proxy access after the switch is still the data source before the switch, and the original data source may not be the optimal data source for the current proxy in the current situation, because it needs to be from the currently linked data source to the current proxy.
  • Very long transmission paths may not achieve the desired results for traffic optimization.
  • the application layer traffic optimization effect of the user may become worse and worse, and the network traffic can no longer be reduced, and the communication quality can be reduced.
  • a technical problem to be solved by embodiments of the present invention is to provide a service data downloading method and a mobile terminal. It can reduce the network traffic and improve the communication quality when the user is in the mobile state to access the network.
  • an embodiment of the present invention provides a method for downloading service data, including:
  • the link request message is sent to the current optimal data source, and the service data is continuously downloaded from the current optimal data source.
  • an embodiment of the present invention further provides a mobile terminal, including:
  • An area switching judging module configured to determine whether a proxy area switch is found
  • the current optimal data source obtaining module is configured to: when the area switching judging module finds the proxy area switching, download the information of the current optimal data source when downloading the service data from the currently linked data source; the data source comparison module is configured to compare a current optimal data source and a currently linked data source; a downloading module, configured to send a link request message to the current optimal data source when the current optimal data source is different from the currently linked data source, and from the current optimal The data source continues to download the business data.
  • the embodiments of the present invention have the following beneficial effects: By dynamically linking to the current optimal data source when the proxy area is switched, it is possible to avoid the mobile terminal from being in the proxy optimization area when the mobile terminal is in the route optimization mode of the mobile IP.
  • the situation that the service data is still downloaded from the optimal data source corresponding to the location when the service request is initiated is beneficial to reducing the traffic of the entire network and improving the communication quality.
  • FIG. 1 is a schematic flowchart of a method for accessing a network in a mobile state according to a route optimization mode
  • FIG. 2 is a flowchart of a first embodiment of a method for downloading service data provided by the present invention
  • FIG. 3 is a flow chart of a second embodiment of a method for downloading service data provided by the present invention.
  • FIG. 4 is a flow chart of a third embodiment of a method for downloading service data provided by the present invention.
  • FIG. 5 is a flow chart of a method for downloading service data based on an ISP network or a CDN network provided by the present invention
  • FIG. 6 is a flowchart of a method for downloading service data based on a P2P network with a Tracker provided by the present invention
  • FIG. 7 is a flowchart of a service data downloading method based on a D2 protocol running P2P network provided by the present invention.
  • FIG. 8 is a schematic structural diagram of a first embodiment of a mobile terminal provided by the present invention.
  • FIG. 9 is a schematic structural diagram of a second embodiment of a mobile terminal provided by the present invention.
  • FIG. 10 is a schematic structural diagram of a third embodiment of a mobile terminal provided by the present invention.
  • FIG. 2 it is a flowchart of a first embodiment of a method for downloading service data provided by the present invention, where the method includes:
  • step S200 if the proxy area switching is found when the service data is downloaded from the currently linked data source, the information of the current optimal data source is obtained.
  • the communication network in order to ensure the communication quality, a lot of proxy agents are deployed, and the network area covered by each agent can be called a proxy area, when the mobile terminal When a terminal enters a proxy area, it needs to access the network through the proxy of the proxy area.
  • the current optimal data source refers to the data source closest to the current agent of the mobile terminal among all data sources including the service data resources required by the user.
  • the application layer traffic optimization technology or other similar technology can obtain the current optimal data source information and pass the current proxy A direction.
  • the current optimal data source requests service data. If the link is successfully established with the current optimal data source, then the current optimal data source is the data source currently linked by the mobile terminal.
  • the mobile terminal downloads the required service data from the currently linked data source through the current proxy A. In the process of downloading the service data, if the mobile terminal switches to another proxy area due to the mobile, the proxy of the mobile terminal also switches.
  • Agent B which is another proxy area, becomes the current agent of the mobile terminal. Since the current proxy for forwarding data has changed, the currently linked data source may no longer be the current best-performing data source, and the mobile terminal re-acquires the information of the current optimal data source.
  • step S201 if the current optimal data source is different from the currently linked data source, a link request message is sent to the current optimal data source, and the service data is continuously downloaded from the current optimal data source. Specifically, the obtained current optimal data source and the currently linked data source may be compared. If the current optimal data source is the same as the currently linked data source, the service data is still downloaded from the currently linked data source via the current proxy B. If the current optimal data source is different from the currently linked data source, a link is established with the current optimal data source, and the required service data is continuously downloaded from the current optimal data source via the current proxy B.
  • the service data downloading method provided by the embodiment of the present invention can avoid the proxy area in the mobile IP route optimization mode even if the mobile terminal is far away from the originating service request, by dynamically linking to the current optimal data source when the proxy area is switched.
  • the situation that the service data is still downloaded from the optimal data source corresponding to the location when the service request is initiated is beneficial to reducing the traffic of the entire network and improving the communication quality.
  • FIG. 3 it is a flowchart of a second embodiment of a method for downloading service data provided by the present invention, where the method includes:
  • the service data is received from the currently linked data source. Specifically, the requested service data is received from the currently linked data source via the current proxy.
  • step S301 If the result of the determination in step S301 is NO, it indicates that the proxy area has not been switched, and the mobile terminal is still in the original proxy area, and the process proceeds to step S300.
  • step S301 If the answer of the step S301 is YES, it indicates that the mobile terminal moves to another proxy area, and the current proxy of the mobile terminal automatically switches to the proxy of the another proxy area, and step S302 is performed.
  • step S302 information of the current optimal data source is obtained.
  • the current optimal data source refers to the data source closest to the current agent of the mobile terminal among all data sources including the service data.
  • step S303 it is determined whether the current optimal data source is the same as the currently linked data source. If the decision result in the step S303 is YES, the process proceeds to a step S300. If the decision result in the step S303 is NO, the step S304 is executed.
  • step S304 the downloaded information of the currently downloaded service data is extracted.
  • the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
  • a link request message is sent to the current optimal data source, and the link request message includes the downloaded information.
  • the current optimal data source may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information included therein, and then forward the service data after the downloaded service data to the mobile terminal via the current agent of the mobile terminal. , that is, the service data requested by the mobile terminal that has not been downloaded yet.
  • step S306 the service data is continuously downloaded from the current optimal data source according to the downloaded information in the link request message. Specifically, the mobile terminal can continue to download the service data from the current optimal data source via the current agent, and the service data that continues to be downloaded does not include the downloaded service data.
  • FIG. 4 is a A flowchart of a third embodiment of a method for downloading service data, the method comprising:
  • service data is received from the currently linked data source. Specifically, the requested service data is received from the currently linked data source via the current agent.
  • step S401 it is determined whether the proxy area is switched.
  • the proxy discovery mechanism of the mobile IP can be used to discover a new proxy when the proxy area switches, so as to determine whether the proxy area is switched according to whether the proxy switches.
  • step S401 If the result of the determination in the step S401 is NO, it indicates that the proxy area has not been switched, and the mobile terminal is still in the original proxy area, and the process proceeds to step S400.
  • step S401 If the answer of the step S401 is YES, it indicates that the mobile terminal moves to another proxy area, and the current proxy of the mobile terminal automatically switches to the proxy of the another proxy area, and step S402 is performed.
  • step S402 information of the current optimal data source is obtained.
  • the current optimal data source refers to the data source closest to the current agent of the mobile terminal among all data sources including the service data resources required by the user.
  • step S403 it is determined whether the current optimal data source is the same as the currently linked data source. If the decision result in the step S403 is YES, the process proceeds to a step S400. If the decision result in the step S403 is NO, the step S404 is executed.
  • the downloaded information of the currently downloaded service data is extracted.
  • the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
  • a link request message is sent to the current optimal data source, and the link request message includes the downloaded information.
  • the current optimal data source may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information included therein, and then forward the service data after the downloaded service data to the mobile terminal via the current agent of the mobile terminal. , that is, the service data requested by the mobile terminal that has not been downloaded yet.
  • step S406 it is determined whether the link with the current optimal data source is successfully established. If the decision result in the step S406 is NO, the process proceeds to a step S400. If the decision result in the step S406 is YES, the step S407 is executed.
  • step S407 the currently linked data source is disconnected, and the currently linked data source still refers to the data source for transmitting the service data in step S400, instead of the current optimal data source for newly establishing the link.
  • step S408 the service data is continuously downloaded from the current optimal data source according to the downloaded information in the link request message. Specifically, the service data may be continuously downloaded from the current optimal data source via the current agent, and the service data that continues to be downloaded does not include the downloaded service data.
  • the failure to link with the current optimal data source can be avoided.
  • the user experience is interrupted, improving the reliability of network access and the quality of the business experience.
  • step S201 or step S402 includes: The server sends the current optimal data source request message; the receiving management server uses the information of the current optimal data source returned by the data source optimization technology such as the application layer traffic optimization technology.
  • the current optimal data source request message may include location information of the current agent of the mobile terminal.
  • Common communication networks include network service providers (English: Internet Service Provider, ISP) network, content distribution network (English: Content Delivery Network, CDN) network, and peer-to-peer network (English: Point to Point, referred to as P2P) )Wait.
  • ISP Internet Service Provider
  • CDN Content Delivery Network
  • P2P Point to Point
  • FIG. 5 it is a flowchart of a service data downloading method based on an ISP network or a CDN network provided by the present invention.
  • the business data on different content servers can be identical, partially identical, or completely different.
  • the content server used here is the data source described above.
  • the current optimal data source is the closest content server to the user (or current agent) deployed by the content provider in the ISP network. The method includes:
  • the service data is received from the currently linked data source SA.
  • the currently located proxy area Area-A receives the requested service data from the currently linked data source SA via the current proxy PA, which is the optimal data source for the proxy PA.
  • the method may include: sending a service request to the management server of the service provider, and linking to the data source closest to itself under the guidance of the management server.
  • it is determined whether the proxy area is switched.
  • step S501 If the result of the determination in the step S501 is NO, it indicates that the proxy area is not switched, and the mobile terminal is still in the original proxy area Area-A, and the process proceeds to step S500.
  • step S501 If the result of the determination in step S501 is YES, it indicates that the mobile terminal moves to another proxy area Area-B, and the current proxy of the mobile terminal automatically switches to the proxy P-B of the proxy area Area-B, and step S502 is performed.
  • a current optimal data source request message is sent to the management server of the content provider.
  • the current optimal data source request message may include the address of the current proxy P-B.
  • step S503 the management server of the content provider receives information of the current optimal data source returned based on the application layer traffic optimization technology.
  • step S504 it is determined whether the current optimal data source is the same as the currently linked data source S-A. If the answer of step S504 is YES, step S500 is continued. It should be noted that, when step S500 is performed at this time, the mobile terminal downloads the service data from the data source S-A via the current proxy P-B.
  • step S505 the downloaded information of the currently downloaded service data is extracted.
  • the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
  • a link request message is sent to the current optimal data source S-B, and the link request message includes the downloaded information.
  • the current optimal data source SB may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information included therein, and then forward the downloaded service data to the mobile terminal via the current proxy PB of the mobile terminal.
  • the service data that is, the service data requested by the mobile terminal that has not been downloaded yet.
  • step S507 it is determined whether the link with the current optimal data source S-B is successfully established.
  • step S507 If the decision result in the step S507 is NO, the process proceeds to a step S500. It should be noted that, when step S500 is performed at this time, the mobile terminal downloads the service data from the data source S-A via the current proxy P-B.
  • step S508 is executed.
  • step S508 the data source S-A of the current link is disconnected.
  • the service data is continuously downloaded from the current optimal data source SB according to the downloaded information in the link request.
  • the current optimal data source can be obtained from the current proxy PB.
  • the SB downloads the business data, and the business data that continues to be downloaded does not include the downloaded business data.
  • the service provider For a CDN network, the service provider distributes its own service data on the server resources of the leased CDN operator.
  • the service data on different server resources may be identical, partially identical, or completely different.
  • the server resources used here are The data source described in this article.
  • the current optimal data source is the server resource closest to the user (or current agent) of the content provider renting the CDN operator. See Figure 5 for the method flow.
  • FIG. 6 is a flowchart of a service data downloading method based on a P2P network with a secondary server Tracker provided by the present invention.
  • the above data source is another node that is uploading the same service data, also called peer.
  • the current optimal data source is the preset number of nodes with the required business data and closest to the user (or current agent).
  • a secondary server A tracker is a program that runs on a server that tracks how many nodes are downloading the same file at the same time. When the mobile terminal is connected to the Tracker server, it will get a list of nodes. According to the node list, it can automatically connect to other nodes for download.
  • the method includes:
  • service data is received from the currently linked N nodes.
  • the currently located proxy area Area-A downloads the requested service data from the currently linked N nodes via the current proxy P-A, which is the optimal data source for the proxy P-A.
  • the method may include: sending a service request to the Tracker server, receiving, from the Tracker server, address information of the first N nodes having the service data and closest to the P-A, and then linking to the N nodes.
  • step S601 it is determined whether the proxy area is switched.
  • step S601 If the result of the determination in the step S601 is NO, it indicates that the proxy area has not been switched, and the mobile terminal is still in the original proxy area Area-A, and the process proceeds to step S600. If the answer of step S601 is YES, it indicates that the mobile terminal moves to another proxy area Area-B, and the current proxy of the mobile terminal automatically switches to the proxy P-B of the proxy area Area-B, and step S602 is performed.
  • step S602 the current optimal data source request message is sent to the Tracker server.
  • the current optimal data source request message may include the address of the current proxy P-B.
  • step S603 the information of the current optimal data source returned by the Tracker server based on the application layer traffic optimization technology is received.
  • step S604 comparing N nodes in the current optimal data source with N nodes currently linked, Confirming the nodes included in the current optimal data source and the currently linked data source as class I nodes, and identifying the nodes included in the current optimal data source and not included in the currently linked data source as class II nodes, Nodes that are included in the currently linked data source and that are not included in the current optimal data source are identified as class m nodes.
  • the downloaded information of the currently downloaded service data is extracted.
  • the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
  • a link request message is sent to the class II node, and the link request message includes the downloaded information.
  • the class II node may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information contained therein, and then forward the service data after the downloaded service data to the mobile terminal via the current proxy PB of the mobile terminal, That is, the service data requested by the mobile terminal that has not been downloaded yet.
  • step S607 it is sequentially determined whether the link with each class II node is successfully established, and each time a link with the class II node is successfully established, and a disconnection link is selected from the class III node according to a preset chain breaking algorithm.
  • the de-chaining algorithm may include randomly selecting a class III node to disconnect the link, and may also include disconnecting the class III node that is farthest from the current agent P-B, or selecting the slowest class III node to disconnect the link.
  • step S608 the service data is continuously downloaded from the class I node, the type II node that successfully establishes the link, and the class III node that still maintains the link according to the downloaded information in the link request. Specifically, the service data is continuously downloaded from the class I node, the type II node that successfully establishes the link, and the class III node that still maintains the link via the current agent P-B, and the service data that continues to be downloaded does not contain the downloaded service data.
  • FIG. 7 it is a flowchart of a service data downloading method of a P2P network based on a distributed hash table (English: Distributed Hash Table, DWT) protocol provided by the present invention.
  • DWT Distributed Hash Table
  • the above data source is another node that is uploading the same service data, also called a peer.
  • the current optimal data source is the preset number of nodes with the required business data and closest to the user (or current agent).
  • DHT is a distributed storage method.
  • Each client is responsible for a small range of routes and is responsible for storing a small amount of service data without the need for a server, thereby enabling addressing and storage of the entire DHT network.
  • the business data can also be downloaded very well, because it can find other users downloading the same file in the network, and realize the same function as connecting the Tracker server.
  • the method includes: receiving, at step S700, service data from N nodes currently linked. Specifically, the currently located proxy area Area-A downloads the requested service data from the currently linked N nodes via the current proxy PA, which are the optimal data source for the proxy PA.
  • the method may include: searching for a node having the service data by using a DHT protocol, and sorting the nodes, searching for address information of the first N nodes that are optimal (for example, closest to the PA), and then linking to the N node.
  • step S701 it is determined whether the proxy area is switched.
  • step S701 If the result of the determination in the step S701 is NO, it indicates that the proxy area is not switched, and the mobile terminal is still in the original proxy area Area-A, and the process proceeds to step S700. If the answer of the step S701 is YES, it indicates that the mobile terminal moves to another proxy area Area-B, and the current proxy of the mobile terminal automatically switches to the proxy P-B of the proxy area Area-B, and step S702 is performed.
  • step S702 information of the current optimal data source is obtained through the DHT protocol.
  • step S703 the N nodes in the current optimal data source are compared with the currently linked N nodes, and the nodes included in the current optimal data source and the currently linked data source are confirmed as class I nodes, and the current most A node that is included in the data source and is not included in the currently linked data source is identified as a class II node, and the node included in the currently linked data source and not included in the current optimal data source is confirmed as a class III node.
  • the downloaded information of the currently downloaded service data is extracted.
  • the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
  • a link request message is sent to the class II node, and the link request message includes the downloaded information.
  • the class II node may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information contained therein, and then forward the service data after the downloaded service data to the mobile terminal via the current proxy PB of the mobile terminal, That is, the service data requested by the mobile terminal that has not been downloaded yet.
  • step S706 it is sequentially determined whether the link with each type II node is successfully established, and each time a link with the class II node is successfully established, and a disconnection link is selected from the class III node according to a preset de-chaining algorithm.
  • the chain splitting algorithm may include randomly selecting a class III node to break the link, It may also include selecting a class III node that is farthest from the current agent PB to disconnect the link, or selecting the class III node with the slowest upload speed to disconnect the link.
  • step S707 the service data is continuously downloaded from the class I node, the type II node that successfully establishes the link, and the class III node that still maintains the link according to the downloaded information in the link request. Specifically, the service data is continuously downloaded from the class I node, the type II node that successfully establishes the link, and the class III node that still maintains the link via the current agent P-B, and the service data that continues to be downloaded does not contain the downloaded service data.
  • FIG. 8 is a schematic structural diagram of a first embodiment of a mobile terminal provided by the present invention, where the mobile terminal includes:
  • the area switching determining module 810 is configured to determine whether a proxy area switch is found.
  • many proxy agents are deployed.
  • the network area covered by each agent can be called a proxy area.
  • the area handover judging module 810 can discover a new proxy when the proxy area is switched by using the proxy discovery mechanism of the mobile IP, thereby determining whether the proxy area is switched according to whether the proxy is switched.
  • the current optimal data source obtaining module 820 is configured to: when the downloading module 830 downloads the service data from the currently linked data source, if the area switching determining module 810 finds the proxy area switching, the information of the current optimal data source is obtained.
  • the current optimal data source refers to the data source closest to the current agent of the mobile terminal among all data sources containing the service data resources required by the user.
  • the application layer traffic optimization technology or other similar technology can obtain the current optimal data source information and pass the current proxy A direction.
  • the current optimal data source requests service data. If the link is successfully established with the current optimal data source, then the current optimal data source is the data source currently linked by the mobile terminal.
  • the mobile terminal downloads the required service data from the currently linked data source through the current proxy A.
  • Agent B which is another proxy area, becomes the current agent of the mobile terminal. Since the current proxy for forwarding data has changed, the currently linked data source may no longer be the current best-performing data source, and the mobile terminal re-acquires the information of the current optimal data source.
  • the data source comparison module 830 is configured to compare the current optimal data source with the currently linked data source.
  • the downloading module 840 is configured to: when the current optimal data source is different from the currently linked data source, The pre-optimal data source sends a link request message and continues to download the service data from the current optimal data source. Specifically, after the data source comparison module 820 compares the obtained current optimal data source with the currently linked data source, if the current optimal data source is the same as the currently linked data source, the download module 830 still proceeds from the current proxy B. The currently linked data source downloads the service data. If the current optimal data source is different from the currently linked data source, the download module 830 establishes a link with the current optimal data source, and continues to download from the current optimal data source via the current proxy B. Business data is required.
  • the mobile terminal provided by the embodiment of the present invention can avoid avoiding the proxy area in the mobile IP route optimization mode even if the mobile terminal is far away from the proxy area when the service request is initiated, by dynamically linking to the current optimal data source when the proxy area is switched.
  • the service data is downloaded from the optimal data source corresponding to the location when the service request is initiated, the network traffic is reduced, and the communication quality is improved.
  • FIG. 9 is a schematic structural diagram of a second embodiment of a mobile terminal provided by the present invention.
  • the mobile terminal includes an area switching determining module 810, a current optimal data source obtaining module 820, a data source comparing module 830, and a downloading module 840.
  • the module 840 specifically includes a downloaded information extraction module 841, a link request sending module 842, and a data receiving module 843.
  • the downloaded information extraction module 841 is configured to extract the downloaded information of the currently downloaded service data when the determination result of the data source comparison module 830 is negative.
  • the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
  • the link request sending module 842 is configured to send a link request message to the current optimal data source, where the link request message includes the downloaded information.
  • the current optimal data source may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information included therein, and then forward the service data after the downloaded service data to the mobile terminal via the current agent of the mobile terminal. , that is, the service data requested by the mobile terminal that has not been downloaded yet.
  • the data receiving module 843 is configured to download the service data from the current optimal data source according to the downloaded information in the link request message. Specifically, the data receiving module 843 can download the service data from the current optimal data source via the current agent. When the linked data source is switched, the data receiving module 843 downloads the service data from the newly linked data source without including the data source from the original link. Downloaded business data.
  • FIG. 10 is a schematic structural diagram of a third embodiment of a mobile terminal provided by the present invention.
  • the mobile terminal includes an area switching determining module 810, a current optimal data source obtaining module 820, a data source comparing module 830, a downloading module 840, and a link.
  • the determining module 850 specifically includes a downloaded information extracting module 841, a link request sending module 842, and a data receiving module 843.
  • the link determining module 850 is configured to determine whether the link between the current optimal data source obtained by the current optimal data source obtaining module 820 is successfully established.
  • the link judging module 850 notifies the data receiving module 843 to continue to download the service data from the currently linked data source via the current proxy when the determination result is no, where the currently linked data source refers to the originally linked data source instead of the newly established link. Current optimal data source.
  • the link judging module 850 notifies the data receiving module 843 to disconnect from the originally linked data source when the judgment result is YES, and continues to receive the service data from the newly linked current optimal data source.
  • the failure to link with the current optimal data source can be avoided.
  • the user experience is interrupted, improving the reliability of network access and the quality of the business experience.
  • Common communication networks include ISP networks, CDN networks, P2P networks, etc.
  • the mobile terminal shown in any of Figures 8-10 can perform the method illustrated in Figures 5-7.
  • the current optimal data source obtaining module 810 specifically includes: a current optimal data source request message sending module, configured to send a current optimal data source request message to the management server; and the current optimal data source information receiving The module is configured to receive information about a current optimal data source returned by the management server using a data source optimization technique such as application layer traffic optimization technology.
  • the current optimal data source request message may include location information of the current agent of the mobile terminal.
  • the current optimal data source obtaining module 810 The method includes: a current optimal data source request message sending module, configured to send a current optimal data source request message to the secondary server tracker; and a current optimal data source information receiving module, configured to receive the current optimal data source returned by the auxiliary server tracker information.
  • the current optimal data source request message may include location information of the current agent of the mobile terminal.
  • the current optimal data source obtaining module 810 includes: a protocol running module, configured to obtain information of the current optimal data source through the distributed hash table protocol.
  • the data source comparison module 830 includes: a node comparison module, configured to compare the currently linked node with a node included in the current optimal data source, notify the download module to maintain a link with the same node, and A node that is included in the optimal data source but is not included in the currently linked node sends a link request message.
  • the downloading module 840 includes a link management module, configured to, after successfully establishing a link with a node that is not included in the node currently included in the current optimal data source, from the currently linked node according to a preset splitting algorithm Select a node that is not included in the current optimal data source and disconnect from the selected node.
  • the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only)
  • ROM read only memory
  • RAM random access memory

Landscapes

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

Abstract

The embodiment of the present invention discloses a method for downloading service data and a mobile terminal. If the mobile terminal finds the switching of a agent area when downloading the service data from the current linked data source, obtain the information of the current optimal data source; and if the current optimal data source is different from the current linked data source, the mobile terminal transmits a link request message to the current optimal data source, and continuously downloads the service data from the current optimal data source. With the present invention, the condition that the mobile terminal still downloads the needed service data from the optimal data source corresponding to the place for initiating the service request even if the mobile terminal is far away from the agent area in which initiating the service request under the route optimization mode of a mobile IP (Internet Protocol) can be avoided. The reduction of the whole network flow is facilitated, and meanwhile, the communication quality is improved.

Description

一种业务数据下载方法和移动终端 本申请要求于 2012 年 3 月 30 日提交中国专利局、 申请号为 CN 201210089705.6、 发明名称为 "一种业务数据下载方法和移动终端" 的中国专 利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Business data downloading method and mobile terminal This application claims priority to Chinese patent application filed on March 30, 2012 by the Chinese Patent Office, application number CN 201210089705.6, and the invention titled "a service data downloading method and mobile terminal" The entire contents of which are incorporated herein by reference. Technical field
本发明涉及移动通信技术, 尤其涉及一种业务数据下载方法和移动终端。 背景技术 随着 3G网络和智能移动终端技术的发展,在移动状态下随时随地访问互 联网成为人们生活不可或缺的需求之一, 人们可以借助移动终端从事视频观 看、 文件下载等各种网络体验。 如何引导移动终端用户访问距离用户最近的 数据源, 以便减少全网传输流量, 提高用户下载速度, 提升用户体验, 是目 前网络研究的热点问题。  The present invention relates to mobile communication technologies, and in particular, to a service data download method and a mobile terminal. BACKGROUND With the development of 3G networks and smart mobile terminal technologies, accessing the Internet anytime and anywhere in a mobile state has become an indispensable requirement for people's lives. People can use mobile terminals to engage in various network experiences such as video viewing and file downloading. How to guide mobile terminal users to access the data source closest to the user, in order to reduce the transmission traffic of the whole network, improve the download speed of users, and improve the user experience, is a hot issue in current network research.
用户在移动状态下访问网络需要借助于移动 IP技术。移动 IP技术是指移 动用户终端在跨网络移动和漫游中, 使用基于 TCP/IP协议的网络时, 不用修 改移动终端原来的 IP地址, 并继续享有原网络中一切权限(类似于手机漫游 不用换号码, 这里是不用换 IP地址)。 简单来说, 移动 IP提供了一种 IP路由 机制,使移动节点可以以一个永久的 IP地址连接到任何链路上。移动 IP存在 隧道模式和路由优化模式两种实现方法。 当移动用户终端处于本地网络链路 的时候, 两种模式的数据流程是一样的, 用户访问 server 的请求通过家乡代 理(Home Agent, HA )转发至 server, server响应的数据通过家乡代理转发 给用户。 当用户处于远端网络区域时, 用户处于漫游状态。 此时, 用户通过 隧道方法访问网络的步骤包括:用户访问 server的请求通过外地代理( Foreign Agent, FA )转发至 server, server响应的数据不是直接发给外地代理, 而是 发送至用户的家乡代理, 家乡代理与外地代理之间有一条转发隧道, 数据通 过隧道从家乡代理转发至外地代理, 外地代理再将数据转发给漫游用户。 用 户处于远端网络区域时通过路由优化模式访问网络的步骤包括: 用户访问 server的请求通过外地代理 FA转发至 server, server响应的数据通过外地代理 直接转发给用户。 Users accessing the network in a mobile state need to rely on mobile IP technology. Mobile IP technology means that when a mobile user terminal uses a network based on TCP/IP protocol in moving and roaming across networks, it does not need to modify the original IP address of the mobile terminal, and continues to enjoy all the rights in the original network (similar to mobile phone roaming without changing The number, here is no need to change the IP address). In simple terms, Mobile IP provides an IP routing mechanism that allows a mobile node to connect to any link with a permanent IP address. Mobile IP has two implementation methods: tunnel mode and route optimization mode. When the mobile user terminal is on the local network link, the data flow of the two modes is the same. The user's request to access the server is forwarded to the server through the home agent (HA), and the data responded by the server is forwarded to the user through the home agent. . When the user is in the remote network area, the user is roaming. At this time, the step of the user accessing the network through the tunnel method includes: the request for the user to access the server is forwarded to the server through the foreign agent (FA), and the data responded by the server is not directly sent to the foreign agent, but is sent to the user's home agent. There is a forwarding tunnel between the home agent and the foreign agent. The data is forwarded from the home agent to the foreign agent through the tunnel, and the foreign agent forwards the data to the roaming user. The steps of accessing the network through the route optimization mode when the user is in the remote network area include: The request for the user to access the server is forwarded to the server through the foreign agent FA, and the data responded by the server passes the foreign agent. Forward directly to the user.
内容提供商可以借助于诸如应用层流量优化 (英文: Application Layer Traffic Optimization, 简称: ALTO )技术、动态域名解析(英文: Domain Name System, 简称: DNS )等进行服务器资源的优化选择。 例如, ALTO服务可以 提供如网络资源的参数选择这样的信息 (如: 资源消费者与多个数据源的相 对位置信息, 哪个数据源距离资源消费者更近) 来达到通过改变网络资源消 费模式来保持和提高应用性能的目的。  Content providers can optimize server resources by means of Application Layer Traffic Optimization (ALTO) technology and Domain Name System (DNS). For example, the ALTO service can provide information such as parameter selection of network resources (eg, relative location information of resource consumers and multiple data sources, and which data source is closer to resource consumers) to achieve a change in network resource consumption patterns. Maintain and improve application performance.
当用户在当前所在地向内容提供商(英文: Content Provider, 简称: CP ) 服务器开始发起业务流程(视频观看、 文件下载等), CP服务器根据用户当 前的所在地, 就近选择一个内容服务器向用户提供业务数据, 就近选择的实 质就是进行应用层流量优化, 使得用户数据访问边缘化, 减少全网流量, 同 时提高用户的访问质量。  When the user initiates a business process (video viewing, file download, etc.) to the content provider (English: Content Provider, CP for short) at the current location, the CP server selects a content server to provide services to the user according to the current location of the user. Data, the essence of the nearest choice is to optimize application layer traffic, making user data access marginal, reducing network traffic, and improving user access quality.
对于隧道模式来说, 由于数据源提供的数据总是通过家乡代理转发给用 户的移动终端, 因此无论用户的移动终端当前处于哪个代理区域中, 都是从 距离家乡代理最近的数据源获取资源数据。  For the tunnel mode, since the data provided by the data source is always forwarded to the user's mobile terminal through the home agent, regardless of which agent area the user's mobile terminal is currently in, the resource data is obtained from the data source closest to the home agent. .
但是对于路由优化模式来说, 由于与数据源通信的是移动终端当前所在 地的代理, 而不一定是家乡代理, 因此用户的移动终端是从发起业务请求时 所在地代理(家乡代理或外地代理) 附近的数据源获取资源数据, 在终端用 户从一个代理区域跨越到另外一个代理区域时, 虽然切换了代理, 但是其访 问的数据源不发生改变, 在用户没有主动请求新的业务之前, 用户收到的数 据和代理切换前收到的数据来自相同的数据源。 如图 1所示, 用户 User-A从 区域 Area-A出发, Area-A的代理为 P-A: ( 1 )用户通过代理 P-A转发请求业 务数据包, 向 CP服务器请求视频数据, CP服务器跟据代理 P-A的 IP地址, 将 User-A的请求重定向到距离代理 P-A最近的内容服务器 S-A; ( 2 ) 内容服 务器 S-A将视频数据送往代理 P-A, P-A将数据转发给 User-A; ( 3 )用户 However, for the route optimization mode, since the communication with the data source is the agent of the current location of the mobile terminal, and not necessarily the home agent, the user's mobile terminal is near the local agent (home agent or foreign agent) when initiating the service request. The data source obtains the resource data. When the end user crosses from one agent area to another agent area, although the agent is switched, the data source of the access does not change, and the user receives the data before the user actively requests the new service. The data received before the proxy switch is from the same data source. As shown in Figure 1, the user User-A starts from the area Area-A, and the agent of Area-A is PA: (1) the user forwards the request service data packet through the proxy PA, requests video data from the CP server, and the CP server follows the proxy. The IP address of the PA redirects the User-A request to the content server SA closest to the proxy PA; (2) the content server SA sends the video data to the proxy PA, and the PA forwards the data to User-A; (3) the user
User-A在看视频的过程中移动到区域 Area-B,根据移动 IP的路由优化实现方 法, User-A的代理由 P-A切换到 P-B, 同时通知内容服务器 S-A的数据送往 代理 P-B , 由 P-B转发给 User-A。 User-A moves to the area Area-B during the process of watching the video. According to the route optimization method of the mobile IP, the proxy of User-A is switched from the PA to the PB, and the data of the content server SA is notified to the proxy PB, which is forwarded by the PB. Give User-A.
对于移动 IP的路由优化实现方法, 终端用户在移动状态获取数据的过程 中, 虽然完成网络链路和代理切换, 并保持业务的不中断, 但是, 终端用户 通过切换后的代理访问的仍然是切换前的数据源, 而原先的数据源在当前情 况下, 可能并不是对于当前代理最优的数据源, 由于从当前链接的数据源到 当前代理之间需要很长的传输路径, 可能已经达不到流量优化的理想结果。 随着用户的渐行渐远, 用户的应用层流量优化效果可能越来越差, 无法再减 少全网流量, 甚至会降低通信质量。 For the route optimization implementation method of mobile IP, the end user completes the network link and proxy switching in the process of acquiring data in the mobile state, and keeps the service uninterrupted, but the terminal user The proxy access after the switch is still the data source before the switch, and the original data source may not be the optimal data source for the current proxy in the current situation, because it needs to be from the currently linked data source to the current proxy. Very long transmission paths may not achieve the desired results for traffic optimization. As the user moves away, the application layer traffic optimization effect of the user may become worse and worse, and the network traffic can no longer be reduced, and the communication quality can be reduced.
发明内容 本发明实施例所要解决的技术问题在于, 提供一种业务数据下载方法和 移动终端。 可在用户处于移动状态访问网络时减小全网流量, 提高通信质量。 SUMMARY OF THE INVENTION A technical problem to be solved by embodiments of the present invention is to provide a service data downloading method and a mobile terminal. It can reduce the network traffic and improve the communication quality when the user is in the mobile state to access the network.
为了解决上述技术问题, 本发明实施例提供了一种业务数据下载方法, 包括:  In order to solve the above technical problem, an embodiment of the present invention provides a method for downloading service data, including:
若从当前链接的数据源下载业务数据时发现代理区域切换, 则获取当前 最优数据源的信息;  If the proxy area switch is found when the service data is downloaded from the currently linked data source, the information of the current optimal data source is obtained;
若当前最优数据源与当前链接的数据源不同, 则向当前最优数据源发送 链接请求消息, 并从所述当前最优数据源继续下载所述业务数据。  If the current optimal data source is different from the currently linked data source, the link request message is sent to the current optimal data source, and the service data is continuously downloaded from the current optimal data source.
相应地, 本发明实施例还提供了一种移动终端, 包括:  Correspondingly, an embodiment of the present invention further provides a mobile terminal, including:
区域切换判断模块, 用于判断是否发现代理区域切换;  An area switching judging module, configured to determine whether a proxy area switch is found;
当前最优数据源获取模块, 用于在从当前链接的数据源下载业务数据时, 若区域切换判断模块发现代理区域切换, 则获取当前最优数据源的信息; 数据源比较模块, 用于比较当前最优数据源与当前链接的数据源; 下载模块, 用于在当前最优数据源与当前链接的数据源不同时, 向当前 最优数据源发送链接请求消息, 并从所述当前最优数据源继续下载所述业务 数据。  The current optimal data source obtaining module is configured to: when the area switching judging module finds the proxy area switching, download the information of the current optimal data source when downloading the service data from the currently linked data source; the data source comparison module is configured to compare a current optimal data source and a currently linked data source; a downloading module, configured to send a link request message to the current optimal data source when the current optimal data source is different from the currently linked data source, and from the current optimal The data source continues to download the business data.
实施本发明实施例, 具有如下有益效果: 通过在代理区域切换时动态地 链接到当前最优的数据源, 可以避免在移动 IP的路由优化模式下, 移动终端 即使远离发起业务请求时的代理区域, 仍然从发起业务请求时所在地对应的 最优数据源下载业务数据的情况, 有利于减少全网流量, 同时提高了通信质 量。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 The embodiments of the present invention have the following beneficial effects: By dynamically linking to the current optimal data source when the proxy area is switched, it is possible to avoid the mobile terminal from being in the proxy optimization area when the mobile terminal is in the route optimization mode of the mobile IP. The situation that the service data is still downloaded from the optimal data source corresponding to the location when the service request is initiated is beneficial to reducing the traffic of the entire network and improving the communication quality. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图 1是现有的基于路由优化模式的在移动状态下访问网络的流程示意图; 图 2是本发明提供的业务数据下载方法的第一实施例流程图;  1 is a schematic flowchart of a method for accessing a network in a mobile state according to a route optimization mode; FIG. 2 is a flowchart of a first embodiment of a method for downloading service data provided by the present invention;
图 3是本发明提供的业务数据下载方法的第二实施例流程图;  3 is a flow chart of a second embodiment of a method for downloading service data provided by the present invention;
图 4是本发明提供的业务数据下载方法的第三实施例流程图;  4 is a flow chart of a third embodiment of a method for downloading service data provided by the present invention;
图 5是本发明提供的基于 ISP网络或 CDN网络的业务数据下载方法的流 程图;  5 is a flow chart of a method for downloading service data based on an ISP network or a CDN network provided by the present invention;
图 6是本发明提供的基于带有 Tracker的 P2P网络的业务数据下载方法的 流程图;  6 is a flowchart of a method for downloading service data based on a P2P network with a Tracker provided by the present invention;
图 7是本发明提供的基于运行 DHT协议的 P2P网络的业务数据下载方法 的流程图;  7 is a flowchart of a service data downloading method based on a D2 protocol running P2P network provided by the present invention;
图 8是本发明提供的移动终端的第一实施例结构示意图;  8 is a schematic structural diagram of a first embodiment of a mobile terminal provided by the present invention;
图 9是本发明提供的移动终端的第二实施例结构示意图;  9 is a schematic structural diagram of a second embodiment of a mobile terminal provided by the present invention;
图 10是本发明提供的移动终端的第三实施例结构示意图。  FIG. 10 is a schematic structural diagram of a third embodiment of a mobile terminal provided by the present invention.
具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参见图 2, 是本发明提供的业务数据下载方法的第一实施例流程图, 该 方法包括:  Referring to FIG. 2, it is a flowchart of a first embodiment of a method for downloading service data provided by the present invention, where the method includes:
在步骤 S200,若从当前链接的数据源下载业务数据时发现代理区域切换, 则获取当前最优数据源的信息。 在通信网络中, 为了保证通信质量, 部署了 很多代理 Agent, 每个代理覆盖的网络区域可以称为一个代理区域, 当移动终 端进入某个代理区域时, 需要经由该代理区域的代理接入网络。 当前最优数 据源是指所有包含用户所需业务数据资源的数据源中距离移动终端的当前代 理最近的数据源。 当用户需要访问网络发起业务请求 (例如视频观看、 文件 下载等网络业务) 时, 利用应用层流量优化技术或者其它类似技术, 移动终 端可以获取当前最优数据源的信息, 并通过当前代理 A向当前最优数据源请 求业务数据。 若与当前最优数据源成功建立链接, 那么这个当前最优数据源 就是移动终端当前链接的数据源。 移动终端通过当前代理 A从当前链接的数 据源下载所需业务数据, 在下载业务数据过程中, 若由于移动, 移动终端切 换到另一代理区域, 这时, 移动终端的代理也发生切换, 所述另一代理区域 的代理 B成为移动终端的当前代理。 由于用于转发数据的当前代理发生了改 变, 当前链接的数据源可能不再是当前效果最优的数据源, 移动终端重新获 取当前最优数据源的信息。 In step S200, if the proxy area switching is found when the service data is downloaded from the currently linked data source, the information of the current optimal data source is obtained. In the communication network, in order to ensure the communication quality, a lot of proxy agents are deployed, and the network area covered by each agent can be called a proxy area, when the mobile terminal When a terminal enters a proxy area, it needs to access the network through the proxy of the proxy area. The current optimal data source refers to the data source closest to the current agent of the mobile terminal among all data sources including the service data resources required by the user. When the user needs to access the network to initiate a service request (such as video viewing, file downloading, etc.), the application layer traffic optimization technology or other similar technology can obtain the current optimal data source information and pass the current proxy A direction. The current optimal data source requests service data. If the link is successfully established with the current optimal data source, then the current optimal data source is the data source currently linked by the mobile terminal. The mobile terminal downloads the required service data from the currently linked data source through the current proxy A. In the process of downloading the service data, if the mobile terminal switches to another proxy area due to the mobile, the proxy of the mobile terminal also switches. Agent B, which is another proxy area, becomes the current agent of the mobile terminal. Since the current proxy for forwarding data has changed, the currently linked data source may no longer be the current best-performing data source, and the mobile terminal re-acquires the information of the current optimal data source.
在步骤 S201 , 若当前最优数据源与当前链接的数据源不同, 则向当前最 优数据源发送链接请求消息, 并从所述当前最优数据源继续下载所述业务数 据。 具体地, 可以比较所获取的当前最优数据源与当前链接的数据源, 若当 前最优数据源与当前链接的数据源相同, 则经由当前代理 B仍然从当前链接 的数据源下载业务数据, 若当前最优数据源与当前链接的数据源不同, 则与 当前最优数据源建立链接, 并经由当前代理 B从当前最优数据源继续下载所 需业务数据。  In step S201, if the current optimal data source is different from the currently linked data source, a link request message is sent to the current optimal data source, and the service data is continuously downloaded from the current optimal data source. Specifically, the obtained current optimal data source and the currently linked data source may be compared. If the current optimal data source is the same as the currently linked data source, the service data is still downloaded from the currently linked data source via the current proxy B. If the current optimal data source is different from the currently linked data source, a link is established with the current optimal data source, and the required service data is continuously downloaded from the current optimal data source via the current proxy B.
本发明实施例提供的业务数据下载方法, 通过在代理区域切换时动态地 链接到当前最优的数据源, 可以避免在移动 IP的路由优化模式下, 移动终端 即使远离发起业务请求时的代理区域, 仍然从发起业务请求时所在地对应的 最优数据源下载业务数据的情况, 有利于减少全网流量, 同时提高了通信质 量。  The service data downloading method provided by the embodiment of the present invention can avoid the proxy area in the mobile IP route optimization mode even if the mobile terminal is far away from the originating service request, by dynamically linking to the current optimal data source when the proxy area is switched. The situation that the service data is still downloaded from the optimal data source corresponding to the location when the service request is initiated is beneficial to reducing the traffic of the entire network and improving the communication quality.
图 2 所示的实施例中, 若在下载业务数据的过程中需要切换数据源, 由 于已经下载了一部分业务数据, 可以以中断点为起点重新从当前最优数据源 下载剩下的业务数据, 该优选实施例如图 3所示。 请参见图 3 , 是本发明提供 的业务数据下载方法的第二实施例流程图, 该方法包括:  In the embodiment shown in FIG. 2, if the data source needs to be switched during the process of downloading the service data, since a part of the service data has been downloaded, the remaining service data can be re-downloaded from the current optimal data source starting from the interruption point. This preferred embodiment is shown in Figure 3. Referring to FIG. 3, it is a flowchart of a second embodiment of a method for downloading service data provided by the present invention, where the method includes:
在步骤 S300 , 从当前链接的数据源接收业务数据。 具体地, 经由当前代 理从当前链接的数据源接收所请求的业务数据。 在步骤 S301 , 判断代理区域是否切换。 具体地, 可以利用移动 IP的代理 发现机制在代理区域切换时发现新的代理, 从而根据代理是否切换来判断代 理区域是否切换。 At step S300, the service data is received from the currently linked data source. Specifically, the requested service data is received from the currently linked data source via the current proxy. In step S301, it is determined whether the proxy area is switched. Specifically, the proxy discovery mechanism of the mobile IP can be used to discover a new proxy when the proxy area switches, so as to determine whether the proxy area is switched according to whether the proxy switches.
若步骤 S301的判断结果为否, 表示代理区域没有切换, 移动终端仍然处 于原来的代理区域, 继续执行步骤 S300。  If the result of the determination in step S301 is NO, it indicates that the proxy area has not been switched, and the mobile terminal is still in the original proxy area, and the process proceeds to step S300.
若步骤 S301的判断结果为是, 表示移动终端移动到另一代理区域, 且移 动终端的当前代理自动切换为所述另一代理区域的代理, 执行步骤 S302。  If the answer of the step S301 is YES, it indicates that the mobile terminal moves to another proxy area, and the current proxy of the mobile terminal automatically switches to the proxy of the another proxy area, and step S302 is performed.
在步骤 S302 , 获取当前最优数据源的信息。 当前最优数据源是指所有包 含所述业务数据的数据源中距离移动终端的当前代理最近的数据源。  In step S302, information of the current optimal data source is obtained. The current optimal data source refers to the data source closest to the current agent of the mobile terminal among all data sources including the service data.
在步骤 S303 , 判断当前最优数据源与当前链接的数据源是否相同。 若步 骤 S303的判断结果为是, 则继续执行步骤 S300。 若步骤 S303的判断结果为 否, 则执行步骤 S304。  In step S303, it is determined whether the current optimal data source is the same as the currently linked data source. If the decision result in the step S303 is YES, the process proceeds to a step S300. If the decision result in the step S303 is NO, the step S304 is executed.
在步骤 S304 , 提取当前已下载的业务数据的已下载信息。 具体地, 已下 载信息可以包括已下载业务数据的数据量信息、 时长信息、 已下载位置信息、 已下载内容信息等。  In step S304, the downloaded information of the currently downloaded service data is extracted. Specifically, the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
在步骤 S305 , 向当前最优数据源发送链接请求消息, 所述链接请求消息 包含所述已下载信息。 当前最优数据源接收链接请求消息后, 可以根据其中 包含的已下载信息确定移动终端已下载的业务数据的数据量, 然后经由移动 终端的当前代理向移动终端转发已下载业务数据之后的业务数据, 即移动终 端所请求的还没有下载的业务数据。  In step S305, a link request message is sent to the current optimal data source, and the link request message includes the downloaded information. After receiving the link request message, the current optimal data source may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information included therein, and then forward the service data after the downloaded service data to the mobile terminal via the current agent of the mobile terminal. , that is, the service data requested by the mobile terminal that has not been downloaded yet.
在步骤 S306 , 根据所述链接请求消息中的所述已下载信息从所述当前最 优数据源继续下载所述业务数据。 具体地, 移动终端可以经由当前代理从当 前最优数据源继续下载业务数据, 且继续下载的业务数据不包含已下载的业 务数据。  In step S306, the service data is continuously downloaded from the current optimal data source according to the downloaded information in the link request message. Specifically, the mobile terminal can continue to download the service data from the current optimal data source via the current agent, and the service data that continues to be downloaded does not include the downloaded service data.
通过向当前最优数据源发送已下载业务数据的已下载信息, 可以实现数 据同步, 使得数据源切换时业务数据能够自动转接, 数据源的切换对用户不 可见, 从而保证了用户业务体验的流畅性, 保障了较佳的用户体验。  By sending the downloaded information of the downloaded service data to the current optimal data source, data synchronization can be implemented, so that the service data can be automatically transferred when the data source is switched, and the data source switching is invisible to the user, thereby ensuring the user service experience. Fluency ensures a better user experience.
图 3所示的实施例中, 步骤 S305之后, 可能由于通信环境的原因导致与 当前最优数据源无法成功建立链接, 为了保障下载业务数据的流畅性, 需要 判断是否成功建立链接, 该优选实施例如图 4所示。 请参见图 4 , 是本发明提 供的业务数据下载方法的第三实施例流程图, 该方法包括: In the embodiment shown in FIG. 3, after the step S305, the link with the current optimal data source may not be successfully established due to the communication environment. In order to ensure the smoothness of the downloaded service data, it is necessary to determine whether the link is successfully established. For example, as shown in Figure 4. Please refer to FIG. 4, which is a A flowchart of a third embodiment of a method for downloading service data, the method comprising:
在步骤 S400 , 从当前链接的数据源接收业务数据。 具体地, 经由当前代 理从当前链接的数据源接收所请求的业务数据。  At step S400, service data is received from the currently linked data source. Specifically, the requested service data is received from the currently linked data source via the current agent.
在步骤 S401 , 判断代理区域是否切换。 具体地, 可以利用移动 IP的代理 发现机制在代理区域切换时发现新的代理, 从而根据代理是否切换来判断代 理区域是否切换。  In step S401, it is determined whether the proxy area is switched. Specifically, the proxy discovery mechanism of the mobile IP can be used to discover a new proxy when the proxy area switches, so as to determine whether the proxy area is switched according to whether the proxy switches.
若步骤 S401的判断结果为否, 表示代理区域没有切换, 移动终端仍然处 于原来的代理区域, 继续执行步骤 S400。  If the result of the determination in the step S401 is NO, it indicates that the proxy area has not been switched, and the mobile terminal is still in the original proxy area, and the process proceeds to step S400.
若步骤 S401的判断结果为是, 表示移动终端移动到另一代理区域, 且移 动终端的当前代理自动切换为所述另一代理区域的代理, 执行步骤 S402。  If the answer of the step S401 is YES, it indicates that the mobile terminal moves to another proxy area, and the current proxy of the mobile terminal automatically switches to the proxy of the another proxy area, and step S402 is performed.
在步骤 S402 , 获取当前最优数据源的信息。 当前最优数据源是指所有包 含用户所需业务数据资源的数据源中距离移动终端的当前代理最近的数据 源。  In step S402, information of the current optimal data source is obtained. The current optimal data source refers to the data source closest to the current agent of the mobile terminal among all data sources including the service data resources required by the user.
在步骤 S403 , 判断当前最优数据源与当前链接的数据源是否相同。 若步 骤 S403的判断结果为是, 则继续执行步骤 S400。 若步骤 S403的判断结果为 否, 则执行步骤 S404。  In step S403, it is determined whether the current optimal data source is the same as the currently linked data source. If the decision result in the step S403 is YES, the process proceeds to a step S400. If the decision result in the step S403 is NO, the step S404 is executed.
在步骤 S404 , 提取当前已下载的业务数据的已下载信息。 具体地, 已下 载信息可以包括已下载业务数据的数据量信息、 时长信息、 已下载位置信息、 已下载内容信息等。  In step S404, the downloaded information of the currently downloaded service data is extracted. Specifically, the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
在步骤 S405 , 向当前最优数据源发送链接请求消息, 所述链接请求消息 包含所述已下载信息。 当前最优数据源接收链接请求消息后, 可以根据其中 包含的已下载信息确定移动终端已下载的业务数据的数据量, 然后经由移动 终端的当前代理向移动终端转发已下载业务数据之后的业务数据, 即移动终 端所请求的还没有下载的业务数据。  In step S405, a link request message is sent to the current optimal data source, and the link request message includes the downloaded information. After receiving the link request message, the current optimal data source may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information included therein, and then forward the service data after the downloaded service data to the mobile terminal via the current agent of the mobile terminal. , that is, the service data requested by the mobile terminal that has not been downloaded yet.
在步骤 S406 , 判断与所述当前最优数据源之间的链接是否建立成功。 若 步骤 S406的判断结果为否, 则继续执行步骤 S400。 若步骤 S406的判断结果 为是, 则执行步骤 S407。  In step S406, it is determined whether the link with the current optimal data source is successfully established. If the decision result in the step S406 is NO, the process proceeds to a step S400. If the decision result in the step S406 is YES, the step S407 is executed.
在步骤 S407 , 与所述当前链接的数据源断开链接, 这里的当前链接的数 据源仍然指的是步骤 S400中传输业务数据的数据源, 而不是新建立链接的当 前最优数据源。 在步骤 S408, 根据所述链接请求消息中的所述已下载信息从所述当前最 优数据源继续下载所述业务数据。 具体地, 可以经由当前代理从当前最优数 据源继续下载所述业务数据, 且继续下载的业务数据不包含已下载的业务数 据。 In step S407, the currently linked data source is disconnected, and the currently linked data source still refers to the data source for transmitting the service data in step S400, instead of the current optimal data source for newly establishing the link. In step S408, the service data is continuously downloaded from the current optimal data source according to the downloaded information in the link request message. Specifically, the service data may be continuously downloaded from the current optimal data source via the current agent, and the service data that continues to be downloaded does not include the downloaded service data.
通过确定与当前最优数据源成功建立链接后, 再断开与原数据源之间的 链接, 并从当前最优数据源继续接收业务数据, 可以避免与当前最优数据源 链接失败时导致的用户体验中断, 提高了网络访问的可靠性和业务体验的质 量。  After determining that the link with the current optimal data source is successfully established, then disconnecting the link with the original data source, and continuing to receive the service data from the current optimal data source, the failure to link with the current optimal data source can be avoided. The user experience is interrupted, improving the reliability of network access and the quality of the business experience.
优选地,对于步骤 S302或步骤 S402,若移动终端需要从内容提供商部署 的管理服务器(例如 P2P网络的辅助服务器 Tracker )获取当前最优数据源的 信息, 那么步骤 S201或步骤 S402包括: 向管理服务器发送当前最优数据源 请求消息; 接收管理服务器利用应用层流量优化技术等数据源优选技术返回 的当前最优数据源的信息。 其中, 当前最优数据源请求消息可以包括移动终 端的当前代理的位置信息。  Preferably, for step S302 or step S402, if the mobile terminal needs to obtain information of the current optimal data source from a management server deployed by the content provider (for example, a secondary server tracker of the P2P network), step S201 or step S402 includes: The server sends the current optimal data source request message; the receiving management server uses the information of the current optimal data source returned by the data source optimization technology such as the application layer traffic optimization technology. The current optimal data source request message may include location information of the current agent of the mobile terminal.
常见的通信网络包括网络服务供应商 (英文: Internet Service Provider, 简称: ISP ) 网络、 内容分发网络(英文: Content Delivery Network, 简称: CDN ) 网络以及点对点网络(英文: Point to Point, 简称: P2P )等。 下面将 参考图 5-7描述图 2-4所示的业务数据下载方法在不同通信网络中的应用。  Common communication networks include network service providers (English: Internet Service Provider, ISP) network, content distribution network (English: Content Delivery Network, CDN) network, and peer-to-peer network (English: Point to Point, referred to as P2P) )Wait. The application of the service data downloading method shown in Figs. 2-4 in different communication networks will be described below with reference to Figs. 5-7.
请参见图 5 , 是本发明提供的基于 ISP网络或 CDN网络的业务数据下载 方法的流程图。  Referring to FIG. 5, it is a flowchart of a service data downloading method based on an ISP network or a CDN network provided by the present invention.
对于 ISP网络,业务提供商在 ISP网络中部署自己的内容服务器,并在所 部署的内容服务器上分发自己的业务数据, 不同内容服务器上的业务数据可 以是完全相同、 部分相同或完全不同的, 这里所使用的内容服务器就是上文 所述的数据源。 当前最优数据源就是内容提供商在 ISP网络中部署的距离用 户 (或者说当前代理) 最近的内容服务器。 该方法包括:  For ISP networks, service providers deploy their own content servers in the ISP network and distribute their own business data on the deployed content servers. The business data on different content servers can be identical, partially identical, or completely different. The content server used here is the data source described above. The current optimal data source is the closest content server to the user (or current agent) deployed by the content provider in the ISP network. The method includes:
在步骤 S500, 从当前链接的数据源 S-A接收业务数据。 具体地, 在当前 所处的代理区域 Area-A经由当前代理 P-A从当前链接的数据源 S-A接收所请 求的业务数据, 数据源 S-A对于代理 P-A来说是最优的数据源。 在步骤 S500 之前可以包括: 向业务提供商的管理服务器发送业务请求, 在管理服务器的 引导下链接到距离自己最近的数据源。 在步骤 S501 , 判断代理区域是否切换。 At step S500, the service data is received from the currently linked data source SA. Specifically, the currently located proxy area Area-A receives the requested service data from the currently linked data source SA via the current proxy PA, which is the optimal data source for the proxy PA. Before step S500, the method may include: sending a service request to the management server of the service provider, and linking to the data source closest to itself under the guidance of the management server. In step S501, it is determined whether the proxy area is switched.
若步骤 S501的判断结果为否, 表示代理区域没有切换, 移动终端仍然处 于原来的代理区域 Area-A, 继续执行步骤 S500。  If the result of the determination in the step S501 is NO, it indicates that the proxy area is not switched, and the mobile terminal is still in the original proxy area Area-A, and the process proceeds to step S500.
若步骤 S501的判断结果为是,表示移动终端移动到另一代理区域 Area-B , 且移动终端的当前代理自动切换为代理区域 Area-B 的代理 P-B , 执行步骤 S502。  If the result of the determination in step S501 is YES, it indicates that the mobile terminal moves to another proxy area Area-B, and the current proxy of the mobile terminal automatically switches to the proxy P-B of the proxy area Area-B, and step S502 is performed.
在步骤 S502 ,向内容提供商的管理服务器发送当前最优数据源请求消息。 其中, 当前最优数据源请求消息可以包含当前代理 P-B的地址。  In step S502, a current optimal data source request message is sent to the management server of the content provider. The current optimal data source request message may include the address of the current proxy P-B.
在步骤 S503 , 接收内容提供商的管理服务器基于应用层流量优化技术返 回的当前最优数据源的信息。  In step S503, the management server of the content provider receives information of the current optimal data source returned based on the application layer traffic optimization technology.
在步骤 S504 , 判断当前最优数据源与当前链接的数据源 S-A是否相同。 若步骤 S504的判断结果为是, 则继续执行步骤 S500。 需要说明的是, 此 时执行步骤 S500时,移动终端是经由当前代理 P-B从数据源 S-A下载业务数 据。  In step S504, it is determined whether the current optimal data source is the same as the currently linked data source S-A. If the answer of step S504 is YES, step S500 is continued. It should be noted that, when step S500 is performed at this time, the mobile terminal downloads the service data from the data source S-A via the current proxy P-B.
若步骤 S504的判断结果为否, 则执行步骤 S505。 在步骤 S505 , 提取当 前已下载的业务数据的已下载信息。 具体地, 已下载信息可以包括已下载业 务数据的数据量信息、 时长信息、 已下载位置信息、 已下载内容信息等。  If the decision result in the step S504 is NO, the step S505 is executed. In step S505, the downloaded information of the currently downloaded service data is extracted. Specifically, the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
在步骤 S506 , 向当前最优数据源 S-B发送链接请求消息, 所述链接请求 消息包含所述已下载信息。 当前最优数据源 S-B接收链接请求消息后, 可以 根据其中包含的已下载信息确定移动终端已下载的业务数据的数据量, 然后 经由移动终端的当前代理 P-B向移动终端转发已下载业务数据之后的业务数 据, 即移动终端所请求的还没有下载的业务数据。  In step S506, a link request message is sent to the current optimal data source S-B, and the link request message includes the downloaded information. After receiving the link request message, the current optimal data source SB may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information included therein, and then forward the downloaded service data to the mobile terminal via the current proxy PB of the mobile terminal. The service data, that is, the service data requested by the mobile terminal that has not been downloaded yet.
在步骤 S507 , 判断与当前最优数据源 S-B是否成功建立链接。  In step S507, it is determined whether the link with the current optimal data source S-B is successfully established.
若步骤 S507的判断结果为否, 则继续执行步骤 S500。 需要说明的是, 此 时执行步骤 S500时,移动终端是经由当前代理 P-B从数据源 S-A下载业务数 据。  If the decision result in the step S507 is NO, the process proceeds to a step S500. It should be noted that, when step S500 is performed at this time, the mobile terminal downloads the service data from the data source S-A via the current proxy P-B.
若步骤 S507的判断结果为是, 则执行步骤 S508。 在步骤 S508 , 与当前 链接的数据源 S-A断开链接。  If the decision result in the step S507 is YES, the step S508 is executed. In step S508, the data source S-A of the current link is disconnected.
在步骤 509 , 根据所述链接请求中的所述已下载信息从当前最优数据源 S-B继续下载业务数据。 具体地, 可以经由当前代理 P-B从当前最优数据源 S-B下载业务数据, 且继续下载的业务数据不包含已下载的业务数据。 At step 509, the service data is continuously downloaded from the current optimal data source SB according to the downloaded information in the link request. Specifically, the current optimal data source can be obtained from the current proxy PB. The SB downloads the business data, and the business data that continues to be downloaded does not include the downloaded business data.
对于 CDN网络, 业务提供商在租用的 CDN运营商的服务器资源上分发 自己的业务数据, 不同服务器资源上的业务数据可以是完全相同、 部分相同 或完全不同的, 这里所使用的服务器资源就是上文所述的数据源。 当前最优 数据源就是内容提供商租用 CDN运营商的距离用户 (或者说当前代理)最近 的服务器资源。 其方法流程参见图 5。  For a CDN network, the service provider distributes its own service data on the server resources of the leased CDN operator. The service data on different server resources may be identical, partially identical, or completely different. The server resources used here are The data source described in this article. The current optimal data source is the server resource closest to the user (or current agent) of the content provider renting the CDN operator. See Figure 5 for the method flow.
请参见图 6, 是本发明提供的基于带有辅助服务器 Tracker的 P2P网络的 业务数据下载方法的流程图。 由于 P2P 网络釆用的是节点在下载的同时上传 同样的业务数据这种方式, 因此在 P2P 网络中, 上述数据源就是其它正在上 传相同业务数据的节点, 也称为 peer。 当前最优数据源就是具有所需业务数 据且距离用户(或者说当前代理)最近的预设数目的节点。辅助服务器 Tracker 是指运行于服务器上的一种程序, 这种程序能够追踪到底有多少节点同时在 下载同一个文件。 移动终端连上 Tracker服务器, 就会获得一个节点列表, 根 据节点列表, 可以自动连上其它节点进行下载。 该方法包括:  Please refer to FIG. 6, which is a flowchart of a service data downloading method based on a P2P network with a secondary server Tracker provided by the present invention. Since the P2P network uses the same service data as the node uploads at the same time of downloading, in the P2P network, the above data source is another node that is uploading the same service data, also called peer. The current optimal data source is the preset number of nodes with the required business data and closest to the user (or current agent). A secondary server A tracker is a program that runs on a server that tracks how many nodes are downloading the same file at the same time. When the mobile terminal is connected to the Tracker server, it will get a list of nodes. According to the node list, it can automatically connect to other nodes for download. The method includes:
在步骤 S600, 从当前链接的 N个节点接收业务数据。 具体地, 在当前所 处的代理区域 Area-A经由当前代理 P-A从当前链接的 N个节点下载所请求的 业务数据,这 N个节点对于代理 P-A来说是最优的数据源。在步骤 S600之前 可以包括: 向 Tracker服务器发送业务请求, 从 Tracker服务器接收具有所述 业务数据并且距离 P-A最近的前 N个节点的地址信息, 然后链接到这 N个节 点。  At step S600, service data is received from the currently linked N nodes. Specifically, the currently located proxy area Area-A downloads the requested service data from the currently linked N nodes via the current proxy P-A, which is the optimal data source for the proxy P-A. Before step S600, the method may include: sending a service request to the Tracker server, receiving, from the Tracker server, address information of the first N nodes having the service data and closest to the P-A, and then linking to the N nodes.
在步骤 S601 , 判断代理区域是否切换。  In step S601, it is determined whether the proxy area is switched.
若步骤 S601的判断结果为否, 表示代理区域没有切换, 移动终端仍然处 于原来的代理区域 Area-A, 继续执行步骤 S600。 若步骤 S601的判断结果为 是, 表示移动终端移动到另一代理区域 Area-B, 且移动终端的当前代理自动 切换为代理区域 Area-B的代理 P-B , 执行步骤 S602。  If the result of the determination in the step S601 is NO, it indicates that the proxy area has not been switched, and the mobile terminal is still in the original proxy area Area-A, and the process proceeds to step S600. If the answer of step S601 is YES, it indicates that the mobile terminal moves to another proxy area Area-B, and the current proxy of the mobile terminal automatically switches to the proxy P-B of the proxy area Area-B, and step S602 is performed.
在步骤 S602, 向 Tracker服务器发送当前最优数据源请求消息。 其中, 当 前最优数据源请求消息可以包含当前代理 P-B的地址。  In step S602, the current optimal data source request message is sent to the Tracker server. The current optimal data source request message may include the address of the current proxy P-B.
在步骤 S603,接收 Tracker服务器基于应用层流量优化技术返回的当前最 优数据源的信息。  In step S603, the information of the current optimal data source returned by the Tracker server based on the application layer traffic optimization technology is received.
在步骤 S604,比较当前最优数据源中的 N个节点与当前链接的 N个节点, 将当前最优数据源中和当前链接的数据源中均包含的节点确认为 I类节点,将 当前最优数据源中包含且当前链接的数据源中不包含的节点确认为 II 类节 点, 将当前链接的数据源中包含且当前最优数据源中不包含的节点确认为 m 类节点。 In step S604, comparing N nodes in the current optimal data source with N nodes currently linked, Confirming the nodes included in the current optimal data source and the currently linked data source as class I nodes, and identifying the nodes included in the current optimal data source and not included in the currently linked data source as class II nodes, Nodes that are included in the currently linked data source and that are not included in the current optimal data source are identified as class m nodes.
在步骤 S605 , 提取当前已下载的业务数据的已下载信息。 具体地, 已下 载信息可以包括已下载业务数据的数据量信息、 时长信息、 已下载位置信息、 已下载内容信息等。  In step S605, the downloaded information of the currently downloaded service data is extracted. Specifically, the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
在步骤 S606, 向 II类节点发送链接请求消息, 所述链接请求消息中包含 所述已下载信息。 II 类节点接收链接请求消息后, 可以根据其中包含的已下 载信息确定移动终端已下载的业务数据的数据量, 然后经由移动终端的当前 代理 P-B向移动终端转发已下载业务数据之后的业务数据, 即移动终端所请 求的还没有下载的业务数据。  In step S606, a link request message is sent to the class II node, and the link request message includes the downloaded information. After receiving the link request message, the class II node may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information contained therein, and then forward the service data after the downloaded service data to the mobile terminal via the current proxy PB of the mobile terminal, That is, the service data requested by the mobile terminal that has not been downloaded yet.
在步骤 S607 , 依次判断与每个 II类节点之间的链接是否成功建立, 每成 功建立一个与 II类节点之间的链接,根据预设的拆链算法从 III类节点中选择 一个断开链接。 例如, 拆链算法可以包括随机选择一个 III类节点断开链接, 还可以包括选择距离当前代理 P-B最远的 III类节点断开链接, 或选择上传速 度最慢的 III类节点断开链接等。  In step S607, it is sequentially determined whether the link with each class II node is successfully established, and each time a link with the class II node is successfully established, and a disconnection link is selected from the class III node according to a preset chain breaking algorithm. . For example, the de-chaining algorithm may include randomly selecting a class III node to disconnect the link, and may also include disconnecting the class III node that is farthest from the current agent P-B, or selecting the slowest class III node to disconnect the link.
在步骤 S608, 根据所述链接请求中的所述已下载信息从 I类节点、 成功 建立链接的 II类节点以及仍然保持链接的 III类节点继续下载业务数据。具体 地, 经由当前代理 P-B从 I类节点、 成功建立链接的 II类节点以及仍然保持 链接的 III类节点继续下载业务数据, 且继续下载的业务数据不包含已下载的 业务数据。  In step S608, the service data is continuously downloaded from the class I node, the type II node that successfully establishes the link, and the class III node that still maintains the link according to the downloaded information in the link request. Specifically, the service data is continuously downloaded from the class I node, the type II node that successfully establishes the link, and the class III node that still maintains the link via the current agent P-B, and the service data that continues to be downloaded does not contain the downloaded service data.
请参见图 7 , 是本发明提供的基于运行分布式哈希表(英文: Distributed Hash Table, 简称: DHT )协议的 P2P网络的业务数据下载方法的流程图。 由 于 P2P网络釆用的是节点在下载的同时上传同样的业务数据这种方式, 因此 在 P2P网络中, 上述数据源就是其它正在上传相同业务数据的节点, 也称为 peer。 当前最优数据源就是具有所需业务数据且距离用户 (或者说当前代理) 最近的预设数目的节点。 DHT是一种分布式存储方法, 在不需要服务器的情 况下, 每个客户端负责一个小范围的路由, 并负责存储一小部分业务数据, 从而实现整个 DHT网络的寻址和存储。 在完全不连上 Tracker服务器的情况 下, 通过 DHT协议也可以很好的下载业务数据, 因为它可以在网络中寻找下 载同一文件的其他用户,实现与连接 Tracker服务器相同的功能。该方法包括: 在步骤 S700, 从当前链接的 N个节点接收业务数据。 具体地, 在当前所 处的代理区域 Area-A经由当前代理 P-A从当前链接的 N个节点下载所请求的 业务数据,这 N个节点对于代理 P-A来说是最优的数据源。在步骤 S700之前 可以包括:通过 DHT协议查找具有所述业务数据的节点,并对节点进行排序, 查找最优的 (例如距离 P-A最近的)前 N个节点的地址信息, 然后链接到这 N个节点。 Referring to FIG. 7 , it is a flowchart of a service data downloading method of a P2P network based on a distributed hash table (English: Distributed Hash Table, DWT) protocol provided by the present invention. Since the P2P network uses the method in which the node uploads the same service data at the same time of downloading, in the P2P network, the above data source is another node that is uploading the same service data, also called a peer. The current optimal data source is the preset number of nodes with the required business data and closest to the user (or current agent). DHT is a distributed storage method. Each client is responsible for a small range of routes and is responsible for storing a small amount of service data without the need for a server, thereby enabling addressing and storage of the entire DHT network. In the case of not connecting to the Tracker server at all Under the DHT protocol, the business data can also be downloaded very well, because it can find other users downloading the same file in the network, and realize the same function as connecting the Tracker server. The method includes: receiving, at step S700, service data from N nodes currently linked. Specifically, the currently located proxy area Area-A downloads the requested service data from the currently linked N nodes via the current proxy PA, which are the optimal data source for the proxy PA. Before step S700, the method may include: searching for a node having the service data by using a DHT protocol, and sorting the nodes, searching for address information of the first N nodes that are optimal (for example, closest to the PA), and then linking to the N node.
在步骤 S701 , 判断代理区域是否切换。  In step S701, it is determined whether the proxy area is switched.
若步骤 S701的判断结果为否, 表示代理区域没有切换, 移动终端仍然处 于原来的代理区域 Area-A, 继续执行步骤 S700。 若步骤 S701的判断结果为 是, 表示移动终端移动到另一代理区域 Area-B, 且移动终端的当前代理自动 切换为代理区域 Area-B的代理 P-B , 执行步骤 S702。  If the result of the determination in the step S701 is NO, it indicates that the proxy area is not switched, and the mobile terminal is still in the original proxy area Area-A, and the process proceeds to step S700. If the answer of the step S701 is YES, it indicates that the mobile terminal moves to another proxy area Area-B, and the current proxy of the mobile terminal automatically switches to the proxy P-B of the proxy area Area-B, and step S702 is performed.
在步骤 S702, 通过 DHT协议获取当前最优数据源的信息。  In step S702, information of the current optimal data source is obtained through the DHT protocol.
在步骤 S703 ,比较当前最优数据源中的 N个节点与当前链接的 N个节点, 将当前最优数据源中和当前链接的数据源中均包含的节点确认为 I类节点,将 当前最优数据源中包含且当前链接的数据源中不包含的节点确认为 II 类节 点, 将当前链接的数据源中包含且当前最优数据源中不包含的节点确认为 III 类节点。  In step S703, the N nodes in the current optimal data source are compared with the currently linked N nodes, and the nodes included in the current optimal data source and the currently linked data source are confirmed as class I nodes, and the current most A node that is included in the data source and is not included in the currently linked data source is identified as a class II node, and the node included in the currently linked data source and not included in the current optimal data source is confirmed as a class III node.
在步骤 S704, 提取当前已下载的业务数据的已下载信息。 具体地, 已下 载信息可以包括已下载业务数据的数据量信息、 时长信息、 已下载位置信息、 已下载内容信息等。  At step S704, the downloaded information of the currently downloaded service data is extracted. Specifically, the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
在步骤 S705 , 向 II类节点发送链接请求消息, 所述链接请求消息中包含 所述已下载信息。 II 类节点接收链接请求消息后, 可以根据其中包含的已下 载信息确定移动终端已下载的业务数据的数据量, 然后经由移动终端的当前 代理 P-B向移动终端转发已下载业务数据之后的业务数据, 即移动终端所请 求的还没有下载的业务数据。  In step S705, a link request message is sent to the class II node, and the link request message includes the downloaded information. After receiving the link request message, the class II node may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information contained therein, and then forward the service data after the downloaded service data to the mobile terminal via the current proxy PB of the mobile terminal, That is, the service data requested by the mobile terminal that has not been downloaded yet.
在步骤 S706, 依次判断与每个 II类节点之间的链接是否成功建立, 每成 功建立一个与 II类节点之间的链接,根据预设的拆链算法从 III类节点中选择 一个断开链接。 例如, 拆链算法可以包括随机选择一个 III类节点断开链接, 还可以包括选择距离当前代理 P-B最远的 III类节点断开链接, 或选择上传速 度最慢的 III类节点断开链接等。 In step S706, it is sequentially determined whether the link with each type II node is successfully established, and each time a link with the class II node is successfully established, and a disconnection link is selected from the class III node according to a preset de-chaining algorithm. . For example, the chain splitting algorithm may include randomly selecting a class III node to break the link, It may also include selecting a class III node that is farthest from the current agent PB to disconnect the link, or selecting the class III node with the slowest upload speed to disconnect the link.
在步骤 S707, 根据所述链接请求中的所述已下载信息从 I类节点、 成功 建立链接的 II类节点以及仍然保持链接的 III类节点继续下载业务数据。具体 地, 经由当前代理 P-B从 I类节点、 成功建立链接的 II类节点以及仍然保持 链接的 III类节点继续下载业务数据, 且继续下载的业务数据不包含已下载的 业务数据。  In step S707, the service data is continuously downloaded from the class I node, the type II node that successfully establishes the link, and the class III node that still maintains the link according to the downloaded information in the link request. Specifically, the service data is continuously downloaded from the class I node, the type II node that successfully establishes the link, and the class III node that still maintains the link via the current agent P-B, and the service data that continues to be downloaded does not contain the downloaded service data.
请参见图 8, 是本发明提供的移动终端的第一实施例结构示意图, 该移动 终端包括:  FIG. 8 is a schematic structural diagram of a first embodiment of a mobile terminal provided by the present invention, where the mobile terminal includes:
区域切换判断模块 810,用于判断是否发现代理区域切换。在通信网络中, 为了保证通信质量, 部署了很多代理 Agent, 每个代理覆盖的网络区域可以称 为一个代理区域, 当移动终端进入某个代理区域时, 需要经由该代理区域的 代理接入网络。 具体地, 区域切换判断模块 810可以利用移动 IP的代理发现 机制在代理区域切换时发现新的代理, 从而根据代理是否切换来判断代理区 域是否切换。  The area switching determining module 810 is configured to determine whether a proxy area switch is found. In the communication network, in order to ensure the communication quality, many proxy agents are deployed. The network area covered by each agent can be called a proxy area. When the mobile terminal enters a certain proxy area, it needs to access the network via the proxy of the proxy area. . Specifically, the area handover judging module 810 can discover a new proxy when the proxy area is switched by using the proxy discovery mechanism of the mobile IP, thereby determining whether the proxy area is switched according to whether the proxy is switched.
当前最优数据源获取模块 820,用于在下载模块 830从当前链接的数据源 下载业务数据时, 若区域切换判断模块 810发现代理区域切换, 则获取当前 最优数据源的信息。 当前最优数据源是指所有包含用户所需业务数据资源的 数据源中距离移动终端的当前代理最近的数据源。 当用户需要访问网络发起 业务请求 (例如视频观看、 文件下载等网络业务) 时, 利用应用层流量优化 技术或者其它类似技术, 移动终端可以获取当前最优数据源的信息, 并通过 当前代理 A向当前最优数据源请求业务数据。 若与当前最优数据源成功建立 链接, 那么这个当前最优数据源就是移动终端当前链接的数据源。 移动终端 通过当前代理 A从当前链接的数据源下载所需业务数据, 在下载业务数据过 程中, 若由于移动, 移动终端切换到另一代理区域, 这时, 移动终端的代理 也发生切换, 所述另一代理区域的代理 B成为移动终端的当前代理。 由于用 于转发数据的当前代理发生了改变, 当前链接的数据源可能不再是当前效果 最优的数据源, 移动终端重新获取当前最优数据源的信息。  The current optimal data source obtaining module 820 is configured to: when the downloading module 830 downloads the service data from the currently linked data source, if the area switching determining module 810 finds the proxy area switching, the information of the current optimal data source is obtained. The current optimal data source refers to the data source closest to the current agent of the mobile terminal among all data sources containing the service data resources required by the user. When the user needs to access the network to initiate a service request (such as video viewing, file downloading, etc.), the application layer traffic optimization technology or other similar technology can obtain the current optimal data source information and pass the current proxy A direction. The current optimal data source requests service data. If the link is successfully established with the current optimal data source, then the current optimal data source is the data source currently linked by the mobile terminal. The mobile terminal downloads the required service data from the currently linked data source through the current proxy A. In the process of downloading the service data, if the mobile terminal switches to another proxy area due to the mobile, the proxy of the mobile terminal also switches. Agent B, which is another proxy area, becomes the current agent of the mobile terminal. Since the current proxy for forwarding data has changed, the currently linked data source may no longer be the current best-performing data source, and the mobile terminal re-acquires the information of the current optimal data source.
数据源比较模块 830 , 用于比较当前最优数据源与当前链接的数据源。 下载模块 840, 用于在当前最优数据源与当前链接的数据源不同时, 向当 前最优数据源发送链接请求消息, 并从所述当前最优数据源继续下载所述业 务数据。 具体地, 在数据源比较模块 820 比较所获取的当前最优数据源与当 前链接的数据源后, 若当前最优数据源与当前链接的数据源相同, 则下载模 块 830经由当前代理 B仍然从当前链接的数据源下载业务数据, 若当前最优 数据源与当前链接的数据源不同, 则下载模块 830 与当前最优数据源建立链 接, 并经由当前代理 B从当前最优数据源继续下载所需业务数据。 The data source comparison module 830 is configured to compare the current optimal data source with the currently linked data source. The downloading module 840 is configured to: when the current optimal data source is different from the currently linked data source, The pre-optimal data source sends a link request message and continues to download the service data from the current optimal data source. Specifically, after the data source comparison module 820 compares the obtained current optimal data source with the currently linked data source, if the current optimal data source is the same as the currently linked data source, the download module 830 still proceeds from the current proxy B. The currently linked data source downloads the service data. If the current optimal data source is different from the currently linked data source, the download module 830 establishes a link with the current optimal data source, and continues to download from the current optimal data source via the current proxy B. Business data is required.
本发明实施例提供的移动终端, 通过在代理区域切换时动态地链接到当 前最优的数据源, 可以避免在移动 IP的路由优化模式下, 移动终端即使远离 发起业务请求时的代理区域, 仍然从发起业务请求时所在地对应的最优数据 源下载业务数据的情况, 有利于减少全网流量, 同时提高了通信质量。  The mobile terminal provided by the embodiment of the present invention can avoid avoiding the proxy area in the mobile IP route optimization mode even if the mobile terminal is far away from the proxy area when the service request is initiated, by dynamically linking to the current optimal data source when the proxy area is switched. When the service data is downloaded from the optimal data source corresponding to the location when the service request is initiated, the network traffic is reduced, and the communication quality is improved.
图 8 所示的实施例中, 若在下载业务数据的过程中需要切换数据源, 由 于已经下载了一部分业务数据, 可以以中断点为起点重新从当前最优数据源 下载剩下的业务数据, 该优选实施例如图 9所示。 请参见图 9 , 是本发明提供 的移动终端的第二实施例结构示意图, 该移动终端包括区域切换判断模块 810、 当前最优数据源获取模块 820、 数据源比较模块 830和下载模块 840, 下载模块 840具体包括已下载信息提取模块 841、链接请求发送模块 842和数 据接收模块 843。  In the embodiment shown in FIG. 8, if the data source needs to be switched during the process of downloading the service data, since a part of the service data has been downloaded, the remaining service data can be re-downloaded from the current optimal data source starting from the interruption point. This preferred embodiment is shown in FIG. FIG. 9 is a schematic structural diagram of a second embodiment of a mobile terminal provided by the present invention. The mobile terminal includes an area switching determining module 810, a current optimal data source obtaining module 820, a data source comparing module 830, and a downloading module 840. The module 840 specifically includes a downloaded information extraction module 841, a link request sending module 842, and a data receiving module 843.
已下载信息提取模块 841 ,用于在数据源比较模块 830的判断结果为否时, 提取当前已下载的业务数据的已下载信息。 具体地, 已下载信息可以包括已 下载业务数据的数据量信息、 时长信息、 已下载位置信息、 已下载内容信息 等。  The downloaded information extraction module 841 is configured to extract the downloaded information of the currently downloaded service data when the determination result of the data source comparison module 830 is negative. Specifically, the downloaded information may include data amount information, duration information, downloaded location information, downloaded content information, and the like of the downloaded service data.
链接请求发送模块 842, 用于向当前最优数据源发送链接请求消息, 所述 链接请求消息包含所述已下载信息。 当前最优数据源接收链接请求消息后, 可以根据其中包含的已下载信息确定移动终端已下载的业务数据的数据量, 然后经由移动终端的当前代理向移动终端转发已下载业务数据之后的业务数 据, 即移动终端所请求的还没有下载的业务数据。  The link request sending module 842 is configured to send a link request message to the current optimal data source, where the link request message includes the downloaded information. After receiving the link request message, the current optimal data source may determine the data amount of the service data that the mobile terminal has downloaded according to the downloaded information included therein, and then forward the service data after the downloaded service data to the mobile terminal via the current agent of the mobile terminal. , that is, the service data requested by the mobile terminal that has not been downloaded yet.
数据接收模块 843 ,用于根据所述链接请求消息中的所述已下载信息从当 前最优数据源下载业务数据。 具体地, 数据接收模块 843 可以经由当前代理 从当前最优数据源下载业务数据。 当所链接的数据源发生切换时, 数据接收 模块 843从新链接的数据源下载的业务数据不包含从原来链接的数据源已经 下载的业务数据。 The data receiving module 843 is configured to download the service data from the current optimal data source according to the downloaded information in the link request message. Specifically, the data receiving module 843 can download the service data from the current optimal data source via the current agent. When the linked data source is switched, the data receiving module 843 downloads the service data from the newly linked data source without including the data source from the original link. Downloaded business data.
通过向当前最优数据源发送已下载业务数据的已下载信息, 可以实现数 据同步, 使得数据源切换时业务数据能够自动转接, 数据源的切换对用户不 可见, 从而保证了用户业务体验的流畅性, 保障了较佳的用户体验。  By sending the downloaded information of the downloaded service data to the current optimal data source, data synchronization can be implemented, so that the service data can be automatically transferred when the data source is switched, and the data source switching is invisible to the user, thereby ensuring the user service experience. Fluency ensures a better user experience.
图 9 所示的实施例中, 可能由于通信环境的原因导致与当前最优数据源 无法成功建立链接, 为了保障下载业务数据的流畅性, 需要判断是否成功建 立链接, 该优选实施例如图 10所示。 请参见图 10, 是本发明提供的移动终端 的第三实施例结构示意图, 该移动终端包括区域切换判断模块 810、 当前最优 数据源获取模块 820、数据源比较模块 830、下载模块 840和链接判断模块 850, 下载模块 840具体包括已下载信息提取模块 841、链接请求发送模块 842和数 据接收模块 843。  In the embodiment shown in FIG. 9, the link may not be successfully established with the current optimal data source due to the communication environment. In order to ensure the smoothness of the downloaded service data, it is necessary to determine whether the link is successfully established. Show. 10 is a schematic structural diagram of a third embodiment of a mobile terminal provided by the present invention. The mobile terminal includes an area switching determining module 810, a current optimal data source obtaining module 820, a data source comparing module 830, a downloading module 840, and a link. The determining module 850 specifically includes a downloaded information extracting module 841, a link request sending module 842, and a data receiving module 843.
链接判断模块 850,用于判断与当前最优数据源获取模块 820获取的当前 最优数据源之间的链接是否建立成功。 链接判断模块 850在判断结果为否时 通知数据接收模块 843经由当前代理继续从当前链接的数据源下载业务数据, 这里当前链接的数据源指的是原来就链接的数据源, 而不是新建立链接的当 前最优数据源。 链接判断模块 850在判断结果为是时通知数据接收模块 843 断开与原来链接的数据源断开链接, 并从新链接的当前最优数据源继续接收 业务数据。  The link determining module 850 is configured to determine whether the link between the current optimal data source obtained by the current optimal data source obtaining module 820 is successfully established. The link judging module 850 notifies the data receiving module 843 to continue to download the service data from the currently linked data source via the current proxy when the determination result is no, where the currently linked data source refers to the originally linked data source instead of the newly established link. Current optimal data source. The link judging module 850 notifies the data receiving module 843 to disconnect from the originally linked data source when the judgment result is YES, and continues to receive the service data from the newly linked current optimal data source.
通过确定与当前最优数据源成功建立链接后, 再断开与原数据源之间的 链接, 并从当前最优数据源继续接收业务数据, 可以避免与当前最优数据源 链接失败时导致的用户体验中断, 提高了网络访问的可靠性和业务体验的质 量。  After determining that the link with the current optimal data source is successfully established, then disconnecting the link with the original data source, and continuing to receive the service data from the current optimal data source, the failure to link with the current optimal data source can be avoided. The user experience is interrupted, improving the reliability of network access and the quality of the business experience.
常见的通信网络包括 ISP网络、 CDN网络以 P2P网络等, 在具体通信网 络中, 图 8-10中任一个附图所示的移动终端可以执行图 5-7所示的方法。  Common communication networks include ISP networks, CDN networks, P2P networks, etc. In a particular communication network, the mobile terminal shown in any of Figures 8-10 can perform the method illustrated in Figures 5-7.
在 ISP网络或 CDN网络中, 当前最优数据源获取模块 810具体包括: 当 前最优数据源请求消息发送模块, 用于向管理服务器发送当前最优数据源请 求消息; 当前最优数据源信息接收模块, 用于接收管理服务器利用应用层流 量优化技术等数据源优选技术返回的当前最优数据源的信息。 其中, 当前最 优数据源请求消息可以包括移动终端的当前代理的位置信息。  In the ISP network or the CDN network, the current optimal data source obtaining module 810 specifically includes: a current optimal data source request message sending module, configured to send a current optimal data source request message to the management server; and the current optimal data source information receiving The module is configured to receive information about a current optimal data source returned by the management server using a data source optimization technique such as application layer traffic optimization technology. The current optimal data source request message may include location information of the current agent of the mobile terminal.
在包含辅助服务器 Tracker的 P2P网络中, 当前最优数据源获取模块 810 包括: 当前最优数据源请求消息发送模块, 用于向辅助服务器 Tracker发送当 前最优数据源请求消息; 当前最优数据源信息接收模块, 用于接收辅助服务 器 Tracker返回的当前最优数据源的信息。 其中, 当前最优数据源请求消息可 以包括移动终端的当前代理的位置信息。 In the P2P network including the secondary server tracker, the current optimal data source obtaining module 810 The method includes: a current optimal data source request message sending module, configured to send a current optimal data source request message to the secondary server tracker; and a current optimal data source information receiving module, configured to receive the current optimal data source returned by the auxiliary server tracker information. The current optimal data source request message may include location information of the current agent of the mobile terminal.
在运行 DHT的 P2P网络中, 当前最优数据源获取模块 810包括: 协议运 行模块, 用于通过分布式哈希表协议获取当前最优数据源的信息。  In the P2P network running the DHT, the current optimal data source obtaining module 810 includes: a protocol running module, configured to obtain information of the current optimal data source through the distributed hash table protocol.
在 P2P网络中, 数据源比较模块 830包括: 节点比较模块, 用于比较当 前链接的节点与当前最优数据源中包含的节点, 通知下载模块保持与相同的 节点之间的链接、 并向当前最优数据源中包含但当前链接的节点中不包含的 节点发送链接请求消息。 下载模块 840 包括链接管理模块, 用于在成功与一 个所述当前最优数据源中包含且当前链接的节点中不包含的节点建立链接 后, 根据预设的拆链算法从当前链接的节点中选择一个不包含在当前最优数 据源中的节点, 断开与所选节点的链接。  In the P2P network, the data source comparison module 830 includes: a node comparison module, configured to compare the currently linked node with a node included in the current optimal data source, notify the download module to maintain a link with the same node, and A node that is included in the optimal data source but is not included in the currently linked node sends a link request message. The downloading module 840 includes a link management module, configured to, after successfully establishing a link with a node that is not included in the node currently included in the current optimal data source, from the currently linked node according to a preset splitting algorithm Select a node that is not included in the current optimal data source and disconnect from the selected node.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only)
Memory, ROM )或随机存 己忆体 ( Random Access Memory, RAM )等。 Memory, ROM) or random access memory (RAM).
以上所揭露的仅为本发明一种较佳实施例而已, 当然不能以此来限定本 发明之权利范围, 本领域普通技术人员可以理解实现上述实施例的全部或部 分流程, 并依本发明权利要求所作的等同变化, 仍属于发明所涵盖的范围。  The above is only a preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the present invention. The equivalent changes required are still within the scope of the invention.

Claims

权 利 要 求 Rights request
1、 一种业务数据下载方法, 其特征在于, 包括:  A method for downloading business data, comprising:
若从当前链接的数据源下载业务数据时发现代理区域切换, 则获取当前 最优数据源的信息;  If the proxy area switch is found when the service data is downloaded from the currently linked data source, the information of the current optimal data source is obtained;
若当前最优数据源与当前链接的数据源不同, 则向当前最优数据源发送 链接请求消息, 并从所述当前最优数据源继续下载所述业务数据。  If the current optimal data source is different from the currently linked data source, the link request message is sent to the current optimal data source, and the service data is continuously downloaded from the current optimal data source.
2、 根据权利要求 1所述的业务数据下载方法, 其特征在于, 所述向当前 最优数据源发送链接请求消息, 并从所述当前最优数据源继续下载所述业务 数据的步骤具体包括: The service data downloading method according to claim 1, wherein the step of transmitting a link request message to the current optimal data source, and continuing to download the service data from the current optimal data source comprises specifically :
提取当前已下载的业务数据的已下载信息;  Extract the downloaded information of the currently downloaded business data;
向当前最优数据源发送链接请求消息, 所述链接请求消息包含所述已下 载信息;  Sending a link request message to the current optimal data source, where the link request message includes the downloaded information;
根据所述链接请求消息中的所述已下载信息从所述当前最优数据源继续 下载所述业务数据。  The service data is continuously downloaded from the current optimal data source according to the downloaded information in the link request message.
3、 根据权利要求 1或 2所述的业务数据下载方法, 其特征在于, 所述向 当前最优数据源发送链接请求消息之后还包括: The service data downloading method according to claim 1 or 2, wherein the sending the link request message to the current optimal data source further comprises:
判断与所述当前最优数据源之间的链接是否建立成功, 若判断为是, 则 与所述当前链接的数据源断开链接; 若判断为否, 则继续从所述当前链接的 数据源下载所述业务数据。  Determining whether the link between the current optimal data source is successfully established, and if the determination is yes, disconnecting from the currently linked data source; if the determination is no, continuing the data source from the current link Download the business data.
4、 根据权利要求 3所述的业务数据下载方法, 其特征在于, 在网络服务 供应商网络中, 所述当前最优数据源是内容提供商部署的距离用户最近的内 容服务器。 The service data downloading method according to claim 3, wherein in the network service provider network, the current optimal data source is a content server that is deployed by the content provider and is closest to the user.
5、 根据权利要求 3所述的业务数据下载方法, 其特征在于, 在内容交付 网络中, 所述当前最优数据源是内容提供商租用内容交付网络运营商的距离 用户最近的服务器资源。 The service data downloading method according to claim 3, wherein in the content delivery network, the current optimal data source is a server resource that is rented by the content provider to the content delivery network operator and is closest to the user.
6、 根据权利要求 4或 5所述的业务数据下载方法, 其特征在于, 所述获 取当前最优数据源的信息的步骤具体包括: The method for downloading the service data according to claim 4 or 5, wherein the step of obtaining the information of the current optimal data source comprises:
向管理服务器发送当前最优数据源请求消息;  Sending a current optimal data source request message to the management server;
接收管理服务器返回的当前最优数据源的信息。  Receive information about the current optimal data source returned by the management server.
7、 根据权利要求 3所述的业务数据下载方法, 其特征在于, 在点对点网 络中, 所述当前最优数据源包括具有所述业务数据且距离用户最近的预设数 量的节点。 7. The service data downloading method according to claim 3, wherein in the peer-to-peer network, the current optimal data source comprises a node having the service data and a preset number closest to the user.
8、 根据权利要求 7所述的业务数据下载方法, 其特征在于, 在点对点网 络包含辅助服务器 Tracker,所述获取当前最优数据源的信息的步骤具体包括: 向辅助服务器 Tracker发送当前最优数据源请求消息; The service data downloading method according to claim 7, wherein the point-to-point network includes a secondary server tracker, and the step of acquiring information of the current optimal data source specifically includes: sending current optimal data to the secondary server tracker Source request message
接收辅助服务器 Tracker返回的当前最优数据源的信息。  Receive information about the current optimal data source returned by the secondary server Tracker.
9、 根据权利要求 6或 8所述的业务数据下载方法, 其特征在于, 所述当 前最优数据源请求消息包含当前代理的地址。 The service data downloading method according to claim 6 or 8, wherein the current optimal data source request message includes an address of a current agent.
10、 根据权利要求 7 所述的业务数据下载方法, 其特征在于, 在运行分 布式哈希表协议的点对点网络中, 所述获取当前最优数据源的信息的步骤具 体包括: The method for downloading the service data according to claim 7, wherein the step of acquiring the information of the current optimal data source in the peer-to-peer network running the distributed hash table protocol includes:
通过分布式哈希表协议获取当前最优数据源的信息。  The information of the current optimal data source is obtained through a distributed hash table protocol.
11、 根据权利要求 8或 10所述的业务数据下载方法, 其特征在于, 所述 向当前最优数据源发送链接请求消息的步骤具体包括: The method for downloading a service data according to claim 8 or 10, wherein the step of sending a link request message to the current optimal data source specifically includes:
比较当前链接的节点与当前最优数据源中包含的节点, 保持与相同的节 点之间的链接, 向当前最优数据源中包含但当前链接的节点中不包含的节点 发送链接请求消息。  Comparing the currently linked node with the node included in the current optimal data source, maintaining a link with the same node, and sending a link request message to the node included in the current optimal data source but not included in the currently linked node.
12、 根据权利要求 11所述的业务数据下载方法, 其特征在于, 所述与当 前链接的数据源断开链接的步骤具体包括: 12. The service data downloading method according to claim 11, wherein: The steps of the previously linked data source to disconnect the link specifically include:
在成功与一个所述当前最优数据源中包含且当前链接的节点中不包含的 节点建立链接后, 根据预设的拆链算法从当前链接的节点中选择一个不包含 在当前最优数据源中的节点, 断开与所选节点的链接。  After successfully establishing a link with a node that is not included in the currently-linked node included in the current optimal data source, selecting one of the currently linked nodes according to a preset splitting algorithm is not included in the current optimal data source. In the node, disconnect the link to the selected node.
13、 一种移动终端, 其特征在于, 包括: 13. A mobile terminal, comprising:
区域切换判断模块, 用于判断是否发现代理区域切换;  An area switching judging module, configured to determine whether a proxy area switch is found;
当前最优数据源获取模块, 用于在从当前链接的数据源下载业务数据时, 若区域切换判断模块发现代理区域切换, 则获取当前最优数据源的信息; 数据源比较模块, 用于比较当前最优数据源与当前链接的数据源; 下载模块, 用于在当前最优数据源与当前链接的数据源不同时, 向当前 最优数据源发送链接请求消息, 并从所述当前最优数据源继续下载所述业务 数据。  The current optimal data source obtaining module is configured to: when the area switching judging module finds the proxy area switching, download the information of the current optimal data source when downloading the service data from the currently linked data source; the data source comparison module is configured to compare a current optimal data source and a currently linked data source; a downloading module, configured to send a link request message to the current optimal data source when the current optimal data source is different from the currently linked data source, and from the current optimal The data source continues to download the business data.
14、 根据权利要求 13所述的移动终端, 其特征在于, 所述下载模块具体 包括: The mobile terminal according to claim 13, wherein the downloading module specifically includes:
已下载信息提取模块, 用于提取当前已下载的业务数据的已下载信息; 链接请求发送模块, 用于向当前最优数据源发送链接请求消息, 所述链 接请求消息包含所述已下载信息;  The downloaded information extraction module is configured to extract the downloaded information of the currently downloaded service data, and the link request sending module is configured to send a link request message to the current optimal data source, where the link request message includes the downloaded information;
数据接收模块, 用于根据所述链接请求消息中的所述已下载信息从所述 当前最优数据源继续下载所述业务数据。  And a data receiving module, configured to continue downloading the service data from the current optimal data source according to the downloaded information in the link request message.
15、 根据权利要求 13或 14所述的移动终端, 其特征在于, 所述移动终 端还包括: The mobile terminal according to claim 13 or 14, wherein the mobile terminal further comprises:
链接判断模块, 用于判断与所述当前最优数据源之间的链接是否建立成 功, 若判断为是, 则通知所述下载模块与当前链接的数据源断开链接; 若判 断为否, 则通知所述下载模块继续从当前链接的数据源下载所述业务数据。  a link determining module, configured to determine whether a link with the current optimal data source is successfully established, and if the determination is yes, notify the downloading module to disconnect from the currently linked data source; if the determination is no, Notifying the download module to continue downloading the business data from the currently linked data source.
16、 根据权利要求 15所述的移动终端, 其特征在于, 在网络服务供应商 网络或内容交付网络中, 所述当前最优数据源获取模块包括: 当前最优数据源请求消息发送模块, 用于向管理服务器发送当前最优数 据源请求消息; The mobile terminal according to claim 15, wherein in the network service provider network or the content delivery network, the current optimal data source obtaining module comprises: The current optimal data source request message sending module is configured to send a current optimal data source request message to the management server;
当前最优数据源信息接收模块, 用于接收管理服务器返回的当前最优数 据源的信息。  The current optimal data source information receiving module is configured to receive information about a current optimal data source returned by the management server.
17、 根据权利要求 15所述的移动终端, 其特征在于, 在包含辅助服务器 Tracker的点对点网络中, 所述当前最优数据源获取模块包括: The mobile terminal according to claim 15, wherein in the peer-to-peer network including the auxiliary server tracker, the current optimal data source obtaining module includes:
当前最优数据源请求消息发送模块, 用于向辅助服务器 Tracker发送当前 最优数据源请求消息;  The current optimal data source request message sending module is configured to send a current optimal data source request message to the secondary server Tracker;
当前最优数据源信息接收模块, 用于接收辅助服务器 Tracker返回的当前 最优数据源的信息。  The current optimal data source information receiving module is configured to receive information about the current optimal data source returned by the auxiliary server Tracker.
18、 根据权利要求 16或 17所述的移动终端, 其特征在于, 所述当前最 优数据源请求消息包含当前代理的地址。 The mobile terminal according to claim 16 or 17, wherein the current optimal data source request message includes an address of a current proxy.
19、 根据权利要求 15所述的移动终端, 其特征在于, 在运行分布式哈希 表协议的点对点网络中, 所述当前最优数据源获取模块包括: The mobile terminal according to claim 15, wherein in the peer-to-peer network running the distributed hash table protocol, the current optimal data source obtaining module includes:
协议运行模块, 用于通过分布式哈希表协议获取当前最优数据源的信息。  The protocol running module is configured to obtain information about a current optimal data source by using a distributed hash table protocol.
20、 根据权利要求 15所述的移动终端, 其特征在于, 在点对点网络中, 所述数据源比较模块包括: The mobile terminal according to claim 15, wherein in the peer-to-peer network, the data source comparison module comprises:
节点比较模块, 用于比较当前链接的节点与当前最优数据源中包含的节 点, 通知下载模块保持与相同的节点之间的链接、 并向当前最优数据源中包 含但当前链接的节点中不包含的节点发送链接请求消息。  a node comparison module, configured to compare the currently linked node with the node included in the current optimal data source, notify the download module to maintain a link with the same node, and to the node currently included in the current optimal data source but currently linked A node that is not included sends a link request message.
21、根据权利要求 20所述的移动终端, 其特征在于, 所述下载模块包括: 链接管理模块, 用于在成功与一个所述当前最优数据源中包含且当前链 接的节点中不包含的节点建立链接后, 根据预设的拆链算法从当前链接的节 点中选择一个不包含在当前最优数据源中的节点, 断开与所选节点的链接。 The mobile terminal according to claim 20, wherein the downloading module comprises: a link management module, configured to be included in a node that is successfully included with a currently optimal data source and is currently included in the link After the node establishes a link, a node that is not included in the current optimal data source is selected from the currently linked nodes according to a preset splitting algorithm, and the link with the selected node is disconnected.
PCT/CN2013/071359 2012-03-30 2013-02-05 Method for downloading service data and mobile terminal WO2013143360A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210089705.6 2012-03-30
CN2012100897056A CN102647460A (en) 2012-03-30 2012-03-30 Transaction data downloading method and mobile terminal

Publications (1)

Publication Number Publication Date
WO2013143360A1 true WO2013143360A1 (en) 2013-10-03

Family

ID=46660033

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/071359 WO2013143360A1 (en) 2012-03-30 2013-02-05 Method for downloading service data and mobile terminal

Country Status (2)

Country Link
CN (1) CN102647460A (en)
WO (1) WO2013143360A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647460A (en) * 2012-03-30 2012-08-22 华为技术有限公司 Transaction data downloading method and mobile terminal
MX358108B (en) 2013-06-05 2018-08-06 Thomson Licensing Method and apparatus for content distribution for multiscreen viewing.
WO2014194486A1 (en) 2013-06-05 2014-12-11 Thomson Licensing Method and apparatus for content distribution for multiscreen viewing
CN105264906A (en) 2013-06-05 2016-01-20 汤姆逊许可公司 Method and apparatus for content distribution for multiscreen viewing
CN104144223B (en) * 2014-08-21 2018-02-09 北京奇艺世纪科技有限公司 A kind of data capture method and device
CN111327697B (en) * 2020-02-18 2022-01-11 腾讯科技(深圳)有限公司 Data downloading method, device, equipment and storage medium
CN112532731B (en) * 2020-12-02 2023-04-07 上海英方软件股份有限公司 Automatic optimization method and device for multiple market data sources
CN116226213B (en) * 2023-02-22 2023-11-10 广州集联信息技术有限公司 Information recommendation system and method based on big data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964480A (en) * 2005-11-10 2007-05-16 华为技术有限公司 A method for switching stream media server
CN101287011A (en) * 2008-05-26 2008-10-15 蓝汛网络科技(北京)有限公司 Method, system and device for responding service request from user in content distributing network
CN102026314A (en) * 2009-09-17 2011-04-20 特拉博斯股份有限公司 Method and system for transferring a communication session between data sources
CN102647460A (en) * 2012-03-30 2012-08-22 华为技术有限公司 Transaction data downloading method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964480A (en) * 2005-11-10 2007-05-16 华为技术有限公司 A method for switching stream media server
CN101287011A (en) * 2008-05-26 2008-10-15 蓝汛网络科技(北京)有限公司 Method, system and device for responding service request from user in content distributing network
CN102026314A (en) * 2009-09-17 2011-04-20 特拉博斯股份有限公司 Method and system for transferring a communication session between data sources
CN102647460A (en) * 2012-03-30 2012-08-22 华为技术有限公司 Transaction data downloading method and mobile terminal

Also Published As

Publication number Publication date
CN102647460A (en) 2012-08-22

Similar Documents

Publication Publication Date Title
WO2013143360A1 (en) Method for downloading service data and mobile terminal
EP3014855B1 (en) Dynamic content distribution network selection based on context from transient criteria
US8307024B2 (en) Assisted peer-to-peer media streaming
EP2058980B1 (en) A method, system and device for establishing a peer to peer connection in a p2p network
US8504718B2 (en) System and method for a context layer switch
EP2086206A1 (en) System for operating a peer-to-peer network taking into account access network subscriber information
KR101215993B1 (en) P2P Content Distribution Network for Peer-to-Peer Live Streaming
WO2013040970A1 (en) Relay node selecting method and device
KR101573197B1 (en) Control method for transmitting distributed file based on P2Peer and P2P communication control apparatus therefor
JP2005109539A (en) System, method, and program for retrieving and distributing contents
CN104660550B (en) A method of conversate migration between multiserver
KR100804348B1 (en) Communication system, computer comprising a peer-to-peer message filter and method for processing a peer-to-peer message
Takasugi et al. Seamless service platform for following a user's movement in a dynamic network environment
EP2340634B1 (en) Method and devices for managing transmission of a data flow
JP5726302B2 (en) Secret or protected access to a network of nodes distributed across a communication architecture using a topology server
JP2010113710A (en) Method of transmitting data between peers with network selection according to at least one criterion, and associated management device and communication equipment
Luo et al. Mobility support for content centric networking: Case study
KR100706961B1 (en) Method and System for Providing Blog Service by Using Peer to Peer Communications
KR101535085B1 (en) PtoP communication control method and apparatus
Zhu Support mobile and distributed applications with named data networking
Zhou Decentralized WebRCT P2P network using Kademlia
KR101506157B1 (en) P2P communication control method, sink hole routing apparatus and information correcting apparatus therefor
Li et al. A multimedia service migration protocol for single user multiple devices
Tran et al. Named Data Networking Based Disaster Response Support System over Edge Computing Infrastructure. Electronics 2021, 10, 335
WO2013004139A1 (en) Method, apparatus and system for message interaction in peer-to-peer network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13769844

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13769844

Country of ref document: EP

Kind code of ref document: A1