CN105610626B - Router data clone method and router - Google Patents
Router data clone method and router Download PDFInfo
- Publication number
- CN105610626B CN105610626B CN201610009372.XA CN201610009372A CN105610626B CN 105610626 B CN105610626 B CN 105610626B CN 201610009372 A CN201610009372 A CN 201610009372A CN 105610626 B CN105610626 B CN 105610626B
- Authority
- CN
- China
- Prior art keywords
- router
- service
- data
- file
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/60—Router architectures
Abstract
The disclosure is directed to a kind of router data clone method and routers, this method comprises: in the local area network of the first router access the second router, the service that the first router identification the second router is provided to the first router, determine the service type that the second router provides, the first router is according to service type, replicate the data in the second router, to, so that the first router can be with the data in Active Replication the second router, compared to the scheme of manual replicate data, it is more efficient, improve user experience.
Description
Technical field
This disclosure relates to the communication technology more particularly to router data clone method and router.
Background technique
With the development of information technology, intelligent router using more and more extensive.Storage is provided in intelligent router
Space, user can by user data, for example, the data such as picture, photo, are stored in the memory space of intelligent router, then
The user data stored in intelligent router is checked by the electronic equipment connecting with intelligent router.In the process that user uses
In, it may be necessary to intelligent router is replaced, after how the user data in the old intelligent router before replacement being copied to replacement
New intelligent router in just seem very necessary.
In the related technology, after by connecting new intelligent router with old intelligent router, old Intelligent routing is replicated manually
Data in device are into new intelligent router.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of router data clone method and router.
According to the first aspect of the embodiments of the present disclosure, a kind of router data clone method is provided, comprising:
The first router accesses in the local area network of the second router;
The first router identifies the service that the second router is provided to the first router, determines described
The service type that two routers provide;
The first router replicates the data in the second router according to the service type.
With reference to first aspect, in the first possible implementation of the first aspect, the first router identifies institute
State the service that the second router is provided to the first router, comprising:
The first router passes through the second router described in file-sharing service protocol identification to the first router
The service of offer;And/or
The first router identifies the second router to described first by application programming interface API protocol
The service that router provides.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect
In, the first router replicates the data in the second router according to the service type, comprising:
If the corresponding service of the service type is the file-sharing service that the second router provides, described first
Router replicates the data in the second router by file-sharing service agreement;Or
If the corresponding service of the service type is the API that the second router provides, the first router is logical
It crosses API protocol and replicates data in the second router;Or
If the corresponding service of the service type is the file-sharing service and API that the second router provides, institute
It states the first router and replicates data in the second router by file-sharing service agreement or API protocol.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect possible
Implementation, in a third possible implementation of the first aspect, the first router are multiple according to the service type
Before making the data in the second router, further includes:
The duplicate instructions that the first router receiving control apparatus is sent, wherein the duplicate instructions are used to indicate institute
State the data of the first router duplication preset kind;
The first router replicates the data in the second router according to the service type, comprising:
The first router replicates full in the second router according to the service type and the duplicate instructions
The data of the foot preset kind.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect possible
Implementation, the first router is multiple according to the service type in a fourth possible implementation of the first aspect
Make the data in the second router, comprising:
The first router is according to the service type and presets the reproducible data type identification secondary route
Data on device determine the reproducible data in the second router, wherein described to preset reproducible data type as band
There are the data of default mark and/or the predeterminated position for being stored in the second router;
The first router replicates the reproducible data in the second router.
According to the second aspect of an embodiment of the present disclosure, a kind of router is provided, comprising:
AM access module is configured as in the local area network of access the second router;
Identification module is configured as identifying the service that the second router is provided to the router, determines described
The service type that two routers provide;
Replication module is configured as replicating the data in the second router according to the service type.
In conjunction with second aspect, in the first possible implementation of the second aspect, the identification module includes:
First identification submodule, is configured as through the second router described in file-sharing service protocol identification to the road
The service provided by device;And/or
Second identification submodule, is configured as identifying the second router by application programming interface API protocol
The service provided to the router.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect
In, the replication module includes:
First duplication submodule is configured as when the corresponding service of the service type being that the second router provides
When file-sharing service, then the data in the second router are replicated by file-sharing service agreement;Or
Second duplication submodule is configured as when the corresponding service of the service type being that the second router provides
When API, then the data in the second router are replicated by API protocol;Or
Third replicates submodule, is configured as when the corresponding service of the service type being that the second router provides
File-sharing service and when API, then replicate the number in the second router by file-sharing service agreement or API protocol
According to.
Second in conjunction with the possible implementation of the first of second aspect or second aspect or second aspect is possible
Implementation, in the third possible implementation of the second aspect, the router further include:
Receiving module is configured as the duplicate instructions of receiving control apparatus transmission, wherein the duplicate instructions are used to indicate
The data of the router duplication preset kind;
The replication module includes:
4th duplication submodule, is configured as according to the service type and the duplicate instructions, duplication described second
Meet the data of the preset kind on router.
Second in conjunction with the possible implementation of the first of second aspect or second aspect or second aspect is possible
Implementation, in the fourth possible implementation of the second aspect, the replication module includes:
It identifies submodule, be configured as according to the service type and preset reproducible data type identification described second
Data on router determine the reproducible data in the second router, wherein described to preset reproducible data type
For the data with default mark and/or the predeterminated position for being stored in the second router;
5th duplication submodule, is configured as replicating the reproducible data in the second router.
According to the third aspect of an embodiment of the present disclosure, a kind of router is provided, comprising:
Memory;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It accesses in the local area network of the second router;
It identifies the service that the second router is provided to the router, determines the service that the second router provides
Type;
According to the service type, the data in the second router are replicated.
The technical scheme provided by this disclosed embodiment can include the following benefits:
It in one embodiment, is accessed by the first router in the local area network of the second router, the first router identification the
The service that two routers are provided to the first router determines the service type that the second router provides, and the first router is according to clothes
Service type replicates the data in the second router, thus, so that the first router can be with the number in Active Replication the second router
According to, it is more efficient compared to the scheme of manual replicate data, improve user experience.
In another embodiment, the duplicate instructions sent by the first router receiving control apparatus, the first router root
According to service type and duplicate instructions, the data for meeting preset kind in the second router are replicated, user is actively selected
The data for needing to replicate which type are selected, it is thus possible to only replicate user's specified data to meet the needs of users, further
Improve duplicating efficiency and user experience.
In another embodiment, reproducible data type identification the according to service type and is preset by the first router
Data on two routers determine the reproducible data in the second router, wherein preset reproducible data type be with
The data of default mark and/or the predeterminated position being stored in the second router, the first router replicate in the second router
Reproducible data can only replicate with default mark and/or be stored in the data of predeterminated position, thus, realize that a duplication can
Replicate data further improves duplicating efficiency and user experience without replicating the total data in the second router.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of router data clone method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the router data clone method shown according to another exemplary embodiment;
Fig. 3 is a kind of flow chart of the router data clone method shown according to a further exemplary embodiment;
Fig. 4 is a kind of block diagram of router shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the router shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of the router shown according to a further exemplary embodiment;
Fig. 7 is a kind of block diagram of router shown according to another exemplary embodiment;
Fig. 8 is a kind of block diagram of the router shown according to another exemplary embodiment;
Fig. 9 is a kind of block diagram of router shown according to an exemplary embodiment;
Figure 10 is a kind of block diagram of router shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of flow chart of router data clone method shown according to an exemplary embodiment.Such as Fig. 1 institute
Show, router data clone method provided in this embodiment includes:
S101: the first router accesses in the local area network of the second router.
The router data clone method that the embodiment of the present disclosure provides can be used for needing replacing in the scene of router: the
One router can be the new router after replacement, and the second router can be the old router before replacement.The first via by
Device and the second router can all be intelligent routers.User is during using the second router, in the second router
User data is stored, for example, the data such as picture, video and text, it can realize the electricity by connecting with the second router
Sub- equipment viewing picture or video.When user needs to replace the second router using the first router, in order to subsequent
These data are continued to use, need for the user data in the second router to be copied in the first router.
The first router is first accessed the second router by the router data clone method needs that the embodiment of the present disclosure provides
Local area network in.The first router and the second router all include wide area network (Wide Area Network;Referred to as: WAN) mouth and
Local area network (Local Area Network;Referred to as: LAN) mouth.User needs with nets such as twisted pair, coaxial cables before S101
The WAN mouth of the first router is connect by line with the LAN of the second router mouth, thus by the first router and second from hardware
Router connection.Later, the first router can pass through dynamic host configuration protocol (Dynamic Host Configuration
Protocol;It referred to as: DHCP) accesses in the local area network of the second router, the first router accesses the local area network of the second router
In after may recognize that the second router.
S102: the service that the first router identification the second router is provided to the first router determines that the second router mentions
The service type of confession.
After the first router accesses in the local area network of the second router, need to identify that the second router is mentioned to the first router
The service of confession determines the service type that the second router provides.
In one implementation, the first router passes through file-sharing service protocol identification the second router to the first via
The service provided by device.For example, the first router can pass through the texts such as Bit Torrent agreement, Jabber/XMPP agreement
The service that part shared service protocol identification the second router is provided to the first router.If the first router uses file-sharing
Service agreement energy successful access the second router, it is determined that secondary route is that file-sharing takes to the service that the first router provides
Business.Energy successful access the second router means that the first router can be established by file-sharing service agreement with the second router
Connection, and the data in the second router can be read.
In another implementation, the first router passes through application programming interface (Application
Programming Interface;Referred to as: the API) service that is provided to the first router of protocol identification the second router.If
The first router uses API protocol energy successful access the second router, it is determined that the second router is provided to the first router
Service is API.
In another implementation, the first router uses file-sharing service agreement and API protocol to identify the simultaneously
The service that two routers are provided to the first router.If can successful access the second router, it is determined that the second router to
The service that the first router provides is file-sharing service and API.
Optionally, before S102, the first router can also pass through media access control (Media Access
Control;Referred to as: MAC) Address Recognition the second router.
S103: the first router replicates the data in the second router according to service type.
After the service type that the second router provides has been determined, the first router replicates secondary route according to service type
Data on device.
In one implementation, if the corresponding service of service type is the file-sharing service that the second router provides,
Then the first router replicates the data in the second router by file-sharing service agreement.
In another implementation, if the corresponding service of service type be the second router provide API, first
Router replicates the data in the second router by API protocol.
In another implementation, if the corresponding service of service type is the file-sharing service that the second router provides
And API, then the first router replicates the data in the second router by file-sharing service agreement or API protocol.That is,
If the second router provides file-sharing service and API to the first router simultaneously, the first router selection is according to wherein
Data in any service type duplication the second router.In this implementation, optionally, the first router can be to
Two routers send connection request message corresponding with the agreement of selection, and the second router receives connection request message and according to even
It connects request message and determines that agreement identical with the agreement that the first router selects and the first router establish connection.In such realization
In mode, if the corresponding service of service type is the file-sharing service and API that the second router provides, the first router is also
It can choose the data replicated in the second router by API protocol, this is because API has more compared to file-sharing service
The high permission for checking the data in the second router.
Data in the second router of the first router duplication can be all data in the second router, can also be with
Partial data in the second router, the present embodiment are without limitation.The first router replicates the data in the second router
The data that may be copied to later are stored into the memory space of itself, for users to use.
Router data clone method provided in this embodiment accesses the local area network of the second router by the first router
In, the service that the first router identification the second router is provided to the first router determines the service class that the second router provides
Type, the first router replicate the data in the second router according to service type, thus, allow the first router actively
The data in the second router are replicated, it is more efficient compared to the scheme of manual replicate data, improve user experience.
Fig. 2 is a kind of flow chart of the router data clone method shown according to another exemplary embodiment.This implementation
On the basis of example embodiment shown in Fig. 1, to the first router according to service type, before replicating the data in the second router
And the first via is by replicating the data in the second router, elaborating, as shown in Fig. 2, the present embodiment is mentioned according to service type
The router data clone method of confession includes:
S201: the first router accesses in the local area network of the second router.
Similar with S101, after the first router is connect by user on hardware with the second router, the first router can be with
It is accessed by DHCP protocol in the local area network of the second router.
S202: the service that the first router identification the second router is provided to the first router determines that the second router mentions
The service type of confession.
S102 is similar, and there are three types of implementation, the first router passes through file-sharing service protocol identification the second router
The service provided to the first router.Alternatively, the first router identifies that the second router is mentioned to the first router by API protocol
The service of confession.Alternatively, the first router uses file-sharing service agreement and API protocol to identify the second router to first simultaneously
The service that router provides.
S203: the duplicate instructions that the first router receiving control apparatus is sent.
Wherein, duplicate instructions are used to indicate the data of the first router duplication preset kind.
It should be noted that control equipment is the equipment for establishing connection with the first router, control equipment can be by having
Line mode or wireless mode are connect with the first router.Control equipment can be computer, mobile phone, information receiving and transmitting and set
Standby, tablet device and personal digital assistant etc..User can input duplicate instructions on the control device, for example, can pass through control
Application program (Application on control equipment;Referred to as: APP) input duplicate instructions.
Duplicate instructions are used to indicate the data of the first router duplication preset kind, for example, duplicate instructions can indicate only
Copy picture the data of format, alternatively, a data for replicating video format can be indicated.Here preset kind be not limited solely to for
The data of specific format can also be the data for specifying which user's write-in, also can specify which user passes through which equipment
The data of write-in.User can input duplicate instructions in control equipment according to the demand of itself.Control equipment receives user
After the duplicate instructions of input, duplicate instructions can be sent to the first router.What the first router receiving control apparatus was sent
Duplicate instructions.
S204: the first router replicates according to service type and duplicate instructions and meets preset kind in the second router
Data.
It is similar with S103,3 kinds of implementations: if the corresponding service of service type is that the file that the second router provides is total
The service of enjoying, the first router are replicated to meet in the second router and be preset by file-sharing service agreement and according to duplicate instructions
The data of type.
If the corresponding service of service type is the API that the second router provides, the first router passes through API protocol and root
According to duplicate instructions, the data for meeting preset kind in the second router are replicated.
If the corresponding service of service type is the file-sharing service and API that the second router provides, the first router
By file-sharing service agreement or API protocol and according to duplicate instructions, replicates and meet preset kind in the second router
Data.That is, if the second router provides file-sharing service and API, the first router choosing to the first router simultaneously
It selects according to any one of them service type and according to duplicate instructions, replicates the data for meeting preset kind in the second router.?
In such implementation, if the corresponding service of service type be the second router provide file-sharing service and API, first
Router is also an option that by API protocol and according to duplicate instructions, replicates the data for meeting preset kind in the second router.
Router data clone method provided in this embodiment, the duplication sent by the first router receiving control apparatus
Instruction, the first router replicate the data for meeting preset kind in the second router, make according to service type and duplicate instructions
Obtaining user can actively select to need to replicate the data of which type, it is thus possible to replicate user's specified data only to meet
The demand of user further improves duplicating efficiency and user experience.
Fig. 3 is a kind of flow chart of the router data clone method shown according to a further exemplary embodiment.This implementation
On the basis of example embodiment shown in Fig. 1, to the first router according to service type, the data in the second router are replicated, are made
It is described in detail, as shown in figure 3, router data clone method provided in this embodiment includes:
S301: the first router accesses in the local area network of the second router.
Similar with S101, after the first router is connect by user on hardware with the second router, the first router can be with
It is accessed by DHCP protocol in the local area network of the second router.
S302: the service that the first router identification the second router is provided to the first router determines that the second router mentions
The service type of confession.
S102 is similar, and there are three types of implementation, the first router passes through file-sharing service protocol identification the second router
The service provided to the first router.Alternatively, the first router identifies that the second router is mentioned to the first router by API protocol
The service of confession.Alternatively, the first router uses file-sharing service agreement and API protocol to identify the second router to first simultaneously
The service that router provides.
S303: the first router is according to service type and presets the number in reproducible data type identification the second router
According to determining the reproducible data in the second router.
Wherein, presetting reproducible data type is with default mark and/or to be stored in default in the second router
The data of position.
Default mark and predeterminated position can be the first router and the second router makes an appointment.
For example, the data in the second router can be divided into system data and user data, wherein system data and
User data have different marks, system data does not need to replicate, and only needs to replicate user data, the first router according to
File-sharing service agreement or API protocol and preset reproducible data type only identify the data with default mark.
Alternatively, the data in the second router are stored in different positions, the first router is according to file-sharing service agreement or API
Agreement and preset reproducible data type only identify the data for being stored in predeterminated position, for example, only identification drive is " D "
The data stored on hard disk.Alternatively, the first router is according to file-sharing service agreement or API protocol and preset reproducible
Data type identify with default mark and be stored in the data of predeterminated position simultaneously.With default mark and/or it is stored in
The data of predeterminated position are reproducible data.
S304: the first router replicates the reproducible data in the second router.
Reproducible data after the first router identifies reproducible data, i.e., in duplication the second router.
Router data clone method provided in this embodiment according to service type and is preset and can be answered by the first router
Data in the data type identification the second router of system, determine the reproducible data in the second router, wherein default to answer
The data type of system is the data with default mark and/or the predeterminated position being stored in the second router, the first router
The reproducible data in the second router is replicated, only duplication default mark can be had and/or be stored in the data of predeterminated position,
To realize only duplication reproducible data, without the total data in duplication the second router, further improve duplication
Efficiency and user experience.
Fig. 4 is a kind of block diagram of router shown according to an exemplary embodiment.As shown in figure 4, the present embodiment provides
Router include:
AM access module 41 is configured as in the local area network of access the second router.
User needs to use the cables such as twisted pair, coaxial cable by the LAN mouth company of the WAN mouth of router and the second router
It connects, thus connect router with the second router from hardware.Later, AM access module 41 can be accessed by DHCP protocol
In the local area network of the second router, AM access module 41 may recognize that secondary route after accessing in the local area network of the second router
Device.
Identification module 42 is configured as the service that identification the second router is provided to router, determines that the second router mentions
The service type of confession.
Replication module 43 is configured as replicating the data in the second router according to service type.
Router provided in this embodiment is configured as the local area network of access the second router by the way that AM access module is arranged
In, identification module is configured as the service that identification the second router is provided to the first router, determines what the second router provided
Service type, replication module are configured as replicating the data in the second router according to service type, thus, router can be with
Data in Active Replication the second router, it is more efficient compared to the scheme of manual replicate data, improve user experience.
Fig. 5 is a kind of block diagram of the router shown according to another exemplary embodiment.The present embodiment implementation shown in Fig. 4
On the basis of example, identification module 42 includes:
First identification submodule 421, is configured as through file-sharing service protocol identification the second router to router
The service of offer.
First identification submodule 421 can be taken by file-sharings such as Bit Torrent agreement, Jabber/XMPP agreements
The service that business protocol identification the second router is provided to router.
Second identification submodule 422 is configured as identifying the clothes that the second router is provided to router by API protocol
Business.
It should be noted that it should be noted that identification module 42, which can be, only includes the first identification submodule 421 or only
Including the second identification submodule 422, alternatively, simultaneously including the first identification submodule 421 and the second identification submodule 422.
Router provided in this embodiment is configured as passing through file-sharing service by setting the first identification submodule
The service that protocol identification the second router is provided to router, the second identification submodule, is configured as identifying the by API protocol
The service that two routers are provided to router, the service that identification the second router is provided to router, thus, according to corresponding clothes
Service type replicates the data in the second router, and step is succinct, high-efficient.
Fig. 6 is a kind of block diagram of the router shown according to a further exemplary embodiment.As shown in fig. 6, the present embodiment mentions
On the basis of the router of confession embodiment shown in Fig. 5, replication module 43 includes:
First duplication submodule 431 is configured as when the corresponding service of service type being that the file that the second router provides is total
When enjoying service, then the data in the second router are replicated by file-sharing service agreement.
Second duplication submodule 432 is configured as when the corresponding service of service type being the API that the second router provides
When, then the data in the second router are replicated by API protocol.
Third replicates submodule 433, is configured as when the corresponding service of service type being the file that the second router provides
Shared service and when API, then replicate the data in the second router by file-sharing service agreement or API protocol.
First duplication submodule 431, second replicates the secondary route that submodule 432 and third duplication submodule 433 replicate
Data on device can be all data in the second router, can also be with the partial data in the second router, the present embodiment
It is without limitation.The data that may be copied to after data in router duplication the second router are stored to the storage sky of itself
Between in, for users to use.
Router provided in this embodiment is configured as by setting the first duplication submodule when service type is corresponding
When service is the file-sharing service that the second router provides, then replicated in the second router by file-sharing service agreement
Data, the second duplication submodule are configured as then leading to when the corresponding service of service type is the API that the second router provides
Cross the data in API protocol duplication the second router, third replicates submodule, be configured as be when the corresponding service of service type
When file-sharing service and API that the second router provides, then pass through file-sharing service agreement or API protocol duplication second
Data on router can replicate the data in the second router according to corresponding service type, and step is succinct, high-efficient.
Fig. 7 is a kind of block diagram of router shown according to another exemplary embodiment.As shown in fig. 7, the present embodiment mentions
The router of confession is on the basis of the embodiment shown in fig. 4, further includes:
Receiving module 71 is configured as the duplicate instructions of receiving control apparatus transmission.
Wherein, duplicate instructions are used to indicate the data of router duplication preset kind.
4th duplication submodule 434 is configured as being replicated full in the second router according to service type and duplicate instructions
The data of sufficient preset kind.
Router provided in this embodiment is configured as the duplication of receiving control apparatus transmission by the way that receiving module is arranged
Instruction, the 4th replication module are configured as replicating according to service type and duplicate instructions and meeting default class in the second router
The data of type allow user actively to select to need to replicate the data of which type, it is thus possible to only replicate what user specified
Data further improve duplicating efficiency and user experience to meet the needs of users.
Fig. 8 is a kind of block diagram of the router shown according to another exemplary embodiment.As shown in figure 8, the present embodiment mentions
On the basis of the embodiment shown in fig. 4, replication module 43 includes: the router of confession
It identifies submodule 435, be configured as according to service type and preset reproducible data type identification secondary route
Data on device determine the reproducible data in the second router.
Wherein, presetting reproducible data type is with the default default position for identifying and/or being stored in the second router
The data set.
5th duplication submodule 436, the reproducible data being configured as in duplication the second router.
Router data clone method provided in this embodiment identifies submodule by setting, is configured as according to service
Type and the data in reproducible data type identification the second router are preset, determines the reproducible number in the second router
According to, wherein presetting reproducible data type is with default mark and/or the predeterminated position being stored in the second router
Data, the 5th duplication submodule, the reproducible data being configured as in duplication the second router only duplication can have default mark
Know and/or be stored in the data of predeterminated position, thus, only duplication reproducible data is realized, without replicating the second router
On total data, further improve duplicating efficiency and user experience.
The foregoing describe the built-in function and structure of wearable device charge reminder device, Fig. 9 is according to an exemplary reality
Apply a kind of block diagram of the router exemplified.As shown in figure 9, the router can be realized are as follows:
Memory 1001;Memory for 1002 executable instruction of storage processor;Wherein, processor 1002 is configured
Are as follows:
It accesses in the local area network of the second router.
The service that identification the second router is provided to router determines the service type that the second router provides.
According to service type, the data in the second router are replicated.
Router data provided in this embodiment identifies the second router by accessing in the local area network of the second router
The service provided to the first router determines the service type that the second router provides, and according to service type, replicates secondary route
Data on device, thus, so that router can be with the data in Active Replication the second router, compared to manual replicate data
Scheme, it is more efficient, improve user experience.
Figure 10 is a kind of block diagram of router shown according to an exemplary embodiment.For example, router 1900 can be by
It is provided as a router.Referring to Fig.1 0, it further comprises one or more processing that router 1900, which includes processing component 1922,
Device and memory resource represented by a memory 1932, can be by the instruction of the execution of processing component 1922, example for storing
Such as application program.The application program stored in memory 1932 may include it is one or more each correspond to one group
The module of instruction.In addition, processing component 1922 is configured as executing instruction, to execute above-mentioned router data clone method, institute
The method of stating includes:
It accesses in the local area network of the second router;
The service that identification the second router is provided to router determines the service type that the second router provides;
According to service type, the data in the second router are replicated.
Router 1900 can also include that a power supply module 1926 is configured as executing the power management of router 1900,
One wired or wireless network interface 1950 is configured as router 1900 being connected to network and an input and output (I/O)
Interface 1958.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (7)
1. router data clone method characterized by comprising
The first router accesses in the local area network of the second router;
The first router identifies the service that the second router is provided to the first router, determines second tunnel
The service type provided by device;
The first router replicates the data in the second router according to the service type,
The first router identifies the service that the second router is provided to the first router, comprising:
The first router is provided by the second router described in file-sharing service protocol identification to the first router
Service;And/or
The first router by application programming interface API protocol identify the second router to the first via by
The service that device provides,
The first router replicates the data in the second router according to the service type, comprising:
If the corresponding service of the service type is the file-sharing service that the second router provides, the first via by
Device replicates the data in the second router by file-sharing service agreement;Or
If the corresponding service of the service type is the API that the second router provides, the first router passes through API
Agreement replicates the data in the second router;Or
If the corresponding service of the service type is the file-sharing service and API that the second router provides, described the
One router replicates the data in the second router by file-sharing service agreement or API protocol.
2. the method according to claim 1, wherein the first router is according to the service type, duplication
Before data in the second router, further includes:
The duplicate instructions that the first router receiving control apparatus is sent, wherein the duplicate instructions are used to indicate described the
The data of one router duplication preset kind;
The first router replicates the data in the second router according to the service type, comprising:
The first router replicates according to the service type and the duplicate instructions and meets institute in the second router
State the data of preset kind.
3. the method according to claim 1, wherein the first router is according to the service type, duplication
Data in the second router, comprising:
The first router is according to the service type and presets in the reproducible data type identification the second router
Data, determine the reproducible data in the second router, wherein it is described preset reproducible data type be with pre-
The data of the predeterminated position of the second router are known and/or be stored in bidding;
The first router replicates the reproducible data in the second router.
4. a kind of router characterized by comprising
AM access module is configured as in the local area network of access the second router;
Identification module is configured as identifying the service that the second router is provided to the router, determines second tunnel
The service type provided by device;
Replication module is configured as replicating the data in the second router according to the service type,
The identification module includes:
First identification submodule, is configured as through the second router described in file-sharing service protocol identification to the router
The service of offer;And/or
Second identification submodule is configured as identifying the second router to institute by application programming interface API protocol
The service of router offer is provided,
The replication module includes:
First duplication submodule is configured as when the corresponding service of the service type being the file that the second router provides
When shared service, then the data in the second router are replicated by file-sharing service agreement;Or
Second duplication submodule is configured as when the corresponding service of the service type being the API that the second router provides
When, then the data in the second router are replicated by API protocol;Or
Third replicates submodule, is configured as when the corresponding service of the service type being the file that the second router provides
Shared service and when API, then replicate the data in the second router by file-sharing service agreement or API protocol.
5. router according to claim 4, which is characterized in that the router further include:
Receiving module is configured as the duplicate instructions of receiving control apparatus transmission, wherein the duplicate instructions are used to indicate described
The data of router duplication preset kind;
The replication module includes:
4th duplication submodule, is configured as replicating the secondary route according to the service type and the duplicate instructions
Meet the data of the preset kind on device.
6. router according to claim 4, which is characterized in that the replication module includes:
It identifies submodule, be configured as according to the service type and preset the reproducible data type identification secondary route
Data on device determine the reproducible data in the second router, wherein described to preset reproducible data type as band
There are the data of default mark and/or the predeterminated position for being stored in the second router;
5th duplication submodule, is configured as replicating the reproducible data in the second router.
7. a kind of router characterized by comprising
Memory;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It accesses in the local area network of the second router;
It identifies the service that the second router is provided to the router, determines the service class that the second router provides
Type;
According to the service type, the data in the second router are replicated,
The service that the identification the second router is provided to the router, comprising:
The service provided by the second router described in file-sharing service protocol identification to the router;And/or
The service that the second router is provided to the router is identified by application programming interface API protocol,
It is described according to the service type, replicate the data in the second router, comprising:
If the corresponding service of the service type is the file-sharing service that the second router provides, pass through file-sharing
Service agreement replicates the data in the second router;Or
If the corresponding service of the service type is the API that the second router provides, described the is replicated by API protocol
Data on two routers;Or
If the corresponding service of the service type is the file-sharing service and API that the second router provides, pass through text
Part shared service agreement or API protocol replicate the data in the second router.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610009372.XA CN105610626B (en) | 2016-01-07 | 2016-01-07 | Router data clone method and router |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610009372.XA CN105610626B (en) | 2016-01-07 | 2016-01-07 | Router data clone method and router |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105610626A CN105610626A (en) | 2016-05-25 |
CN105610626B true CN105610626B (en) | 2019-07-23 |
Family
ID=55990171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610009372.XA Active CN105610626B (en) | 2016-01-07 | 2016-01-07 | Router data clone method and router |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105610626B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021142788A1 (en) * | 2020-01-17 | 2021-07-22 | Oppo广东移动通信有限公司 | Method and apparatus for migrating configuration capabilities, storage medium, and processor |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1443012A (en) * | 2002-03-06 | 2003-09-17 | 株式会社Ntt都科摩 | Changing over control device and method and mobile communication system |
CN1610324A (en) * | 2003-10-22 | 2005-04-27 | 三星电子株式会社 | Network apparatus and method for stable handoff |
CN1745553A (en) * | 2003-04-15 | 2006-03-08 | 松下电器产业株式会社 | Routing control method, router, and terminal |
-
2016
- 2016-01-07 CN CN201610009372.XA patent/CN105610626B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1443012A (en) * | 2002-03-06 | 2003-09-17 | 株式会社Ntt都科摩 | Changing over control device and method and mobile communication system |
CN1745553A (en) * | 2003-04-15 | 2006-03-08 | 松下电器产业株式会社 | Routing control method, router, and terminal |
CN1610324A (en) * | 2003-10-22 | 2005-04-27 | 三星电子株式会社 | Network apparatus and method for stable handoff |
Also Published As
Publication number | Publication date |
---|---|
CN105610626A (en) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3101867B1 (en) | Wireless audio output devices | |
US10448082B2 (en) | Information exchanging method and device, audio terminal and computer-readable storage medium | |
US7467162B2 (en) | Pre-configured settings for portable devices | |
KR101465854B1 (en) | Dynamically mediating multimedia content and devices | |
CN105139877A (en) | Method for connecting multimedia play devices, main device, control terminal and system | |
CN101860534A (en) | Method and system for switching network, access equipment and authentication server | |
CN105122770A (en) | Wireless docking device. | |
CN105451299A (en) | Method for controlling WiFi connection and electronic equipment thereof | |
CN104753989A (en) | Screen image transmission and playing method and device based on Web-based OS runtime environment | |
TW201637415A (en) | Bridge device for large meetings | |
CN102761579A (en) | Method and system utilizing storage area network for data transmission | |
CN103813475A (en) | Data transmission method, data acquisition method and electronic device | |
CN104750372A (en) | File sharing method and device | |
US20100291913A1 (en) | Remote control method between mobile phones | |
CN104811473A (en) | Virtual nonvolatile storage medium establishing method and system and management system | |
CN103345855B (en) | Projection switching system and projection switching method for teaching | |
CN103168436A (en) | Method and apparatus for accessing device based on intuitive selection | |
CN107241312B (en) | A kind of right management method and device | |
CN107817962A (en) | A kind of long-range control method, device, control server and storage medium | |
CN105610626B (en) | Router data clone method and router | |
JP2007280113A (en) | Proxy service providing device and network system | |
CN106330504B (en) | Method for realizing application and service controller | |
CN106027632A (en) | Data transmission method and device | |
CN102651777A (en) | Link establishing method and equipment | |
US20150261271A1 (en) | System, apparatus, and method for device control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |