CN106375403A - Data synchronization method and apparatus - Google Patents

Data synchronization method and apparatus Download PDF

Info

Publication number
CN106375403A
CN106375403A CN201610776873.0A CN201610776873A CN106375403A CN 106375403 A CN106375403 A CN 106375403A CN 201610776873 A CN201610776873 A CN 201610776873A CN 106375403 A CN106375403 A CN 106375403A
Authority
CN
China
Prior art keywords
terminal
network speed
data
data synchronization
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610776873.0A
Other languages
Chinese (zh)
Other versions
CN106375403B (en
Inventor
蔡昭权
胡辉
陈伽
胡松
蔡映雪
陈军
黄翰
黄思博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou University
Original Assignee
Huizhou University
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 Huizhou University filed Critical Huizhou University
Priority to CN201610776873.0A priority Critical patent/CN106375403B/en
Publication of CN106375403A publication Critical patent/CN106375403A/en
Application granted granted Critical
Publication of CN106375403B publication Critical patent/CN106375403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

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

Abstract

The invention provides a data synchronization method and apparatus. The method comprises the following steps: receiving data synchronization requests from a plurality of terminals; obtaining network speed information of the plurality of terminals after every predetermined time period; selecting multiple terminals having higher network speeds from the plurality of terminals according to the network speed information of the plurality of terminals; and sending synchronous data to the corresponding terminals according to the data synchronization requests of the multiple terminals having higher network speeds.

Description

Method of data synchronization and device
Technical field
The present invention relates to the communications field, more particularly to a kind of method of data synchronization and device.
Background technology
With the increasingly popularization of cloud redundancy technique, increasing user begins to use cloud backup and cloud synchronization skill Art.But, because Internet resources are limited, when synchronization request is excessive, server its synchronization when by data syn-chronization to terminal Data speed is slower.Therefore, how to improve the speed of the synchrodata of server, be a topic that can't steer clear of.
Therefore, prior art existing defects, need to improve.
Content of the invention
The embodiment of the present invention provides a kind of method of data synchronization, comprises the following steps;
Receive the data synchronization request from multiple terminals;
Every prescribed time period obtains the network speed information of the plurality of terminal;
According to the network speed information of the plurality of terminal, select the forward terminal of some network speed rankings from the plurality of terminal;
According to the data synchronization request of the forward terminal of this some network speed ranking, transmit synchronization data to corresponding terminal.
In method of data synchronization of the present invention, the data of the described terminal forward according to this some network speed ranking is same Step request, the step transmitting synchronization data to corresponding terminal includes;
According to the data synchronization request of the forward terminal of this this some network speed ranking, transmit synchronization data to corresponding terminal;
The network state of each terminal of monitor in real time in transmission process;
When the network speed monitoring a terminal is less than predetermined value or suspension, the not selected end from the plurality of terminal Network speed ranking conduct the most forward is selected to replace terminal in end;
According to the data request information of this replacement terminal, transmit synchronization data to described replacement terminal.
In method of data synchronization of the present invention, described every prescribed time period obtains the network speed letter of the plurality of terminal The step of breath includes:
Every prescribed time period sends network speed respectively and obtains request to the plurality of terminal;
Receive the network speed information from the plurality of terminal.
The present invention provides a kind of data synchronization unit, comprising:
Receiver module, for receiving the data synchronization request from multiple terminals;
Acquisition module, obtains the network speed information of the plurality of terminal for every prescribed time period;
Selecting module, for the network speed information according to the plurality of terminal, selects some network speed rankings forward from the plurality of terminal Terminal;
Sending module, for the data synchronization request of the terminal forward according to this some network speed ranking, it is right to transmit synchronization data to The terminal answered.
In data synchronization unit of the present invention, described sending module includes;
First transmitting element, for the data synchronization request of the terminal forward according to this this some network speed ranking, sends same step number According to corresponding terminal;
Monitoring means, for the network state of this some terminal of monitor in real time in transmission process;
Replacement unit, during for being less than predetermined value or suspension when the network speed monitoring one of this some terminal terminal, Network speed ranking terminal the most forward is selected as replacement terminal in not selected terminal from the plurality of terminal;
Second transmitting element, for the data request information according to this replacement terminal, transmits synchronization data to described replacement terminal.
In data synchronization unit of the present invention, described acquisition module includes:
Transmitting element, every prescribed time period sends network speed respectively and obtains request to the plurality of terminal;
Receiving unit, receives the network speed information from the plurality of terminal.
Compared to prior art, the present invention passes through to receive the data synchronization request from multiple terminals;Every pre- timing Between section obtain the plurality of terminal network speed information;According to the network speed information of the plurality of terminal, select some from the plurality of terminal The forward terminal of network speed ranking;According to the data synchronization request of the forward terminal of this some network speed ranking, transmit synchronization data to Corresponding terminal, thus improve the speed of server process data syn-chronization.
Brief description
Fig. 1 is the flow chart of the method for data synchronization in first preferred embodiment of the invention.
Fig. 2 is the structure chart of the data synchronization unit in one embodiment of the present invention.
Specific embodiment
Refer to schema, wherein identical element numbers represent identical assembly, and the principle of the present invention is to be implemented in one To illustrate in suitable computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should be by It is considered as limiting the present invention other specific embodiments not detailed herein.
In the following description, the specific embodiment of the present invention will be with reference to the operation performed by or multi-section computer Step and symbol illustrating, unless otherwise stating clearly.Therefore, it will appreciate that these steps and operation, wherein has and carries for several times To for being executed by computer, including by representing with the computer disposal list of the electronic signal of the data in a structuring pattern Unit is manipulated.This data of this manipulation transforms or be maintained at this computer memory system in position at, it can be joined again Put or in addition to change in a manner familiar to those skilled in the art the running of this computer.The data knot that this data is maintained Structure is the provider location of this internal memory, and it has by particular characteristics defined in this data form.But, the principle of the invention is with above-mentioned Illustrating, it is not represented as a kind of restriction to word, those skilled in the art will appreciate that described below plurality of step and Operation also may be implemented in the middle of hardware.
Embodiment one
As shown in figure 1, the embodiment of the present invention provides a kind of method of data synchronization, it is mainly used in server, and the method includes Following steps;
S101, receives the data synchronization request from multiple terminals;
S102, every prescribed time period obtains the network speed information of the plurality of terminal;
S103, according to the network speed information of the plurality of terminal, selects the forward terminal of some network speed rankings from the plurality of terminal;
S104, according to the data synchronization request of the forward terminal of this some network speed ranking, transmits synchronization data to corresponding terminal.
Below each step of this method of data synchronization is described in detail.
In step s101, the plurality of terminal can be computer, mobile phone or ipad etc..
The network speed information of the plurality of terminal successively in step s102, was obtained every 5 minutes or 6 minutes, specifically, should Step includes following sub-step:
Every prescribed time period sends network speed respectively and obtains request to the plurality of terminal;
Receive the network speed information from the plurality of terminal.
In this step s103, the quantity of for example the plurality of terminal is 20, selects network speed ranking from this 20 terminals Front 10 terminal carries out data syn-chronization.
In this step s104, data is activation is synchronized to before this network speed ranking 10 terminal simultaneously.
In further embodiments, this step s104 specifically includes:
S1041, according to the data synchronization request of the forward terminal of this this some network speed ranking, transmits synchronization data to corresponding end End;Data is activation is synchronized to before this network speed ranking 10 terminal simultaneously.
S1042, the network state of this some terminal of monitor in real time in transmission process;When sending, before monitoring this ranking 10 terminal network state, suspension or network speed are extremely low to judge it.
S1043, when the network speed monitoring a terminal is less than predetermined value or suspension, from the plurality of terminal not Network speed ranking conduct the most forward is selected to replace terminal in selected terminal;
S1044, according to the data request information of this replacement terminal, transmits synchronization data to described replacement terminal.
The present invention passes through to receive the data synchronization request from multiple terminals;Every prescribed time period obtains the plurality of terminal Network speed information;According to the network speed information of the plurality of terminal, select the forward terminal of some network speed rankings from the plurality of terminal; According to the data synchronization request of the forward terminal of this some network speed ranking, transmit synchronization data to corresponding terminal, thus improving The speed of server process data syn-chronization.
Embodiment two
As shown in Fig. 2 the embodiment of the present invention provides a kind of data synchronization unit, it is mainly used in server, and this device includes;
Receiver module 201, for receiving the data synchronization request from multiple terminals;
Acquisition module 202, obtains the network speed information of the plurality of terminal for every prescribed time period;
Selecting module 203, for the network speed information according to the plurality of terminal, selects some network speed rankings from the plurality of terminal and leans on Front terminal;
Sending module 204, for the data synchronization request of the terminal forward according to this some network speed ranking, transmits synchronization data to Corresponding terminal.
In data synchronization unit of the present invention, described sending module 204 includes;
First transmitting element, for the data synchronization request of the terminal forward according to this this some network speed ranking, sends same step number According to corresponding terminal;
Monitoring means, for the network state of this some terminal of monitor in real time in transmission process;
Replacement unit, during for being less than predetermined value or suspension when the network speed monitoring one of this some terminal terminal, Network speed ranking terminal the most forward is selected as replacement terminal in not selected terminal from the plurality of terminal;
Second transmitting element, for the data request information according to this replacement terminal, transmits synchronization data to described replacement terminal.
In data synchronization unit of the present invention, described acquisition module 202 includes:
Transmitting element, every prescribed time period sends network speed respectively and obtains request to the plurality of terminal;
Receiving unit, receives the network speed information from the plurality of terminal.
The present invention passes through to receive the data synchronization request from multiple terminals;Every prescribed time period obtains the plurality of terminal Network speed information;According to the network speed information of the plurality of terminal, select the forward terminal of some network speed rankings from the plurality of terminal; According to the data synchronization request of the forward terminal of this some network speed ranking, transmit synchronization data to corresponding terminal, thus improving The speed of server process data syn-chronization.
There is provided herein the various operations of embodiment.In one embodiment, described one or more operations can be with structure Become the computer-readable instruction of storage on one or more computer-readable mediums, it will make when being executed by electronic equipment to succeed in one's scheme Calculation equipment executes described operation.Describing the order of some or all of operations, to should not be construed as to imply that these operations necessarily suitable Sequence correlation.It will be appreciated by those skilled in the art that having the alternative sequence of the benefit of this specification.Furthermore, it is to be understood that Not all operation must exist in each embodiment provided in this article.
And, word " preferred " used herein means serving as example, example or illustration.Feng Wen is described as " preferably " any aspect or design be not necessarily to be construed as than other aspects or design more favourable.On the contrary, the use purport of word " preferred " Concept is being proposed in a concrete fashion.As used in this application term "or" is intended to mean the "or" comprising and non-excluded "or".That is, unless otherwise or clear from the context, " x is using a or b " means that nature includes any one of arrangement. That is, if x uses a;X uses b;Or x uses both a and b, then " x is using a or b " is met in aforementioned any example.
And, although illustrate and describing the disclosure, this area skill with respect to one or more implementations Art personnel will be appreciated that equivalent variations and modification based on to the reading of the specification and drawings and understanding.The disclosure include all this The modification of sample and modification, and be limited only by the scope of the following claims.Particularly with by said modules (such as element, Resource etc.) various functions that execute, the term for describing such assembly is intended to corresponding to the specified work(executing described assembly The random component (unless otherwise instructed) of energy (for example it is functionally of equal value), even if illustrated herein with execution in structure The exemplary implementations of the disclosure in the open structure of function be not equal to.Although additionally, the special characteristic of the disclosure is Through being disclosed with respect to the only one in some implementations, but this feature can be to giving or application-specific with such as For be expectation and favourable other implementations other combinations of features one or more.And, with regard to term " inclusion ", " tool Have ", " containing " or its deformation be used in specific embodiment or claim for, such term be intended to with term The similar mode of "comprising" includes.
Each functional unit in the embodiment of the present invention can be integrated in a processing module or unit list Solely it is physically present it is also possible to two or more units are integrated in a module.Above-mentioned integrated module both can adopt The form of hardware is realized, it would however also be possible to employ the form of software function module is realized.If described integrated module is with software function The form of module is realized and is situated between it is also possible to be stored in an embodied on computer readable storage as independent production marketing or when using In matter.Storage medium mentioned above can be read only memory, disk or CD etc..Above-mentioned each device or system are permissible Method in execution correlation method embodiment.
In sum although the present invention is disclosed above with preferred embodiment, but above preferred embodiment and be not used to limit The present invention processed, those of ordinary skill in the art, without departing from the spirit and scope of the present invention, all can make various change and profit Decorations, therefore protection scope of the present invention is defined by the scope that claim defines.

Claims (6)

1. a kind of method of data synchronization is it is characterised in that comprise the following steps;
Receive the data synchronization request from multiple terminals;
Every prescribed time period obtains the network speed information of the plurality of terminal;
According to the network speed information of the plurality of terminal, select the forward terminal of some network speed rankings from the plurality of terminal;
According to the data synchronization request of the forward terminal of this some network speed ranking, transmit synchronization data to corresponding terminal.
2. method of data synchronization according to claim 1 is it is characterised in that described forward according to this some network speed ranking The data synchronization request of terminal, the step transmitting synchronization data to corresponding terminal includes;
According to the data synchronization request of the forward terminal of this this some network speed ranking, transmit synchronization data to corresponding terminal;
The network state of each terminal of monitor in real time in transmission process;
When the network speed monitoring a terminal is less than predetermined value or suspension, the not selected end from the plurality of terminal Network speed ranking conduct the most forward is selected to replace terminal in end;
According to the data request information of this replacement terminal, transmit synchronization data to described replacement terminal.
3. method of data synchronization according to claim 2 is it is characterised in that the acquisition of described every prescribed time period is the plurality of The step of the network speed information of terminal includes:
Every prescribed time period sends network speed respectively and obtains request to the plurality of terminal;
Receive the network speed information from the plurality of terminal.
4. a kind of data synchronization unit is it is characterised in that include:
Receiver module, for receiving the data synchronization request from multiple terminals;
Acquisition module, obtains the network speed information of the plurality of terminal for every prescribed time period;
Selecting module, for the network speed information according to the plurality of terminal, selects some network speed rankings forward from the plurality of terminal Terminal;
Sending module, for the data synchronization request of the terminal forward according to this some network speed ranking, it is right to transmit synchronization data to The terminal answered.
5. data synchronization unit according to claim 4 is it is characterised in that described sending module includes;
First transmitting element, for the data synchronization request of the terminal forward according to this this some network speed ranking, sends same step number According to corresponding terminal;
Monitoring means, for the network state of this some terminal of monitor in real time in transmission process;
Replacement unit, during for being less than predetermined value or suspension when the network speed monitoring one of this some terminal terminal, Network speed ranking terminal the most forward is selected as replacement terminal in not selected terminal from the plurality of terminal;
Second transmitting element, for the data request information according to this replacement terminal, transmits synchronization data to described replacement terminal.
6. data synchronization unit according to claim 4 is it is characterised in that described acquisition module includes:
Transmitting element, every prescribed time period sends network speed respectively and obtains request to the plurality of terminal;
Receiving unit, receives the network speed information from the plurality of terminal.
CN201610776873.0A 2016-08-31 2016-08-31 Data synchronization method and device Active CN106375403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610776873.0A CN106375403B (en) 2016-08-31 2016-08-31 Data synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610776873.0A CN106375403B (en) 2016-08-31 2016-08-31 Data synchronization method and device

Publications (2)

Publication Number Publication Date
CN106375403A true CN106375403A (en) 2017-02-01
CN106375403B CN106375403B (en) 2021-06-01

Family

ID=57900982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610776873.0A Active CN106375403B (en) 2016-08-31 2016-08-31 Data synchronization method and device

Country Status (1)

Country Link
CN (1) CN106375403B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350992A (en) * 2007-07-19 2009-01-21 日本电气株式会社 Mobile terminal mail system, mobile terminal mail control method, and mobile terminal mail control program
CN102256101A (en) * 2011-07-26 2011-11-23 中兴通讯股份有限公司 Method and system for converting media capability in video conference, and application server
CN102892089A (en) * 2012-09-25 2013-01-23 中国联合网络通信集团有限公司 Message pushing method, device and system
CN103258389A (en) * 2013-04-19 2013-08-21 中国建设银行股份有限公司 Method and system for self-service terminals to upload files and self-service terminals
US20130246582A1 (en) * 2012-03-13 2013-09-19 Samsung Electronics Co. Ltd. Multimedia data processing apparatus and method of terminal
CN103796040A (en) * 2012-10-31 2014-05-14 上海心动企业发展有限公司 Method and device for releasing multimedia data according to network status of mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350992A (en) * 2007-07-19 2009-01-21 日本电气株式会社 Mobile terminal mail system, mobile terminal mail control method, and mobile terminal mail control program
CN102256101A (en) * 2011-07-26 2011-11-23 中兴通讯股份有限公司 Method and system for converting media capability in video conference, and application server
US20130246582A1 (en) * 2012-03-13 2013-09-19 Samsung Electronics Co. Ltd. Multimedia data processing apparatus and method of terminal
CN102892089A (en) * 2012-09-25 2013-01-23 中国联合网络通信集团有限公司 Message pushing method, device and system
CN103796040A (en) * 2012-10-31 2014-05-14 上海心动企业发展有限公司 Method and device for releasing multimedia data according to network status of mobile terminal
CN103258389A (en) * 2013-04-19 2013-08-21 中国建设银行股份有限公司 Method and system for self-service terminals to upload files and self-service terminals

Also Published As

Publication number Publication date
CN106375403B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN110806934A (en) RPA technology-based intelligent all-in-one machine development and multi-service rapid processing method
US10250521B2 (en) Data stream identifying method and device
CN106034113A (en) Data processing method and data processing device
EP2959402B1 (en) Architecture for remote access to content state
CN105610958A (en) Method and device for selecting time synchronization server and intelligent terminal
CN102833327B (en) Based on recognition methods and the device of the client type of HTTP
WO2014180154A1 (en) A method and apparatus for data communication
CN103425504A (en) Method and device for loading video files
CN104270362A (en) Request handling method and device
WO2015088557A1 (en) Data stream processing based on a boundary parameter
CN105245588A (en) Separation processing method of web service port
EP2690560B1 (en) Method of benchmarking the behaviour of a replacement information system with the old system
CN102684925A (en) Method and device for acquiring internet access source information
CN107483565A (en) A kind of service background recognition methods, proxy server and computer-readable storage medium
JP6199844B2 (en) Suspicious part estimation device and suspected part estimation method
CN104079368B (en) A kind of the test data transmission method and server of application software
CN106375403A (en) Data synchronization method and apparatus
CN107918737B (en) Pressure test data transmission method, device and system
CN106294058A (en) The target strategy processing problems of operation document determines method and device
CN109033235A (en) A kind of data storage dual-active framework construction method, system, medium and electronic equipment
CN102843428A (en) Uploaded data processing system and method
US9172729B2 (en) Managing message distribution in a networked environment
CN110971716B (en) Address configuration method, device, system and computer readable storage medium
CN112541136A (en) Method and device for acquiring network address information, storage medium and electronic equipment
CN106354781B (en) Test question searching method and device

Legal Events

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