CN106375403B - Data synchronization method and device - Google Patents

Data synchronization method and device Download PDF

Info

Publication number
CN106375403B
CN106375403B CN201610776873.0A CN201610776873A CN106375403B CN 106375403 B CN106375403 B CN 106375403B CN 201610776873 A CN201610776873 A CN 201610776873A CN 106375403 B CN106375403 B CN 106375403B
Authority
CN
China
Prior art keywords
terminals
terminal
sending
network speed
data
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
Application number
CN201610776873.0A
Other languages
Chinese (zh)
Other versions
CN106375403A (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

Images

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 a device, wherein the method comprises the following steps; receiving data synchronization requests from a plurality of terminals; acquiring network speed information of the plurality of terminals every other preset time period; selecting a plurality of terminals with top internet speed ranking from the plurality of terminals according to the internet speed information of the plurality of terminals; and sending synchronous data to the corresponding terminal according to the data synchronization request of the terminal with the top network speed rank.

Description

Data synchronization method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a data synchronization method and apparatus.
Background
With the increasing popularity of cloud backup technologies, more and more users begin to use cloud backup and cloud synchronization technologies. However, due to limited network resources, when there are too many synchronization requests, the server has a slow data synchronization speed when synchronizing data to the terminal. Therefore, how to increase the speed of synchronizing data of the server is a topic that cannot be avoided.
Therefore, the prior art has defects and needs to be improved urgently.
Disclosure of Invention
The embodiment of the invention provides a data synchronization method, which comprises the following steps;
receiving data synchronization requests from a plurality of terminals;
acquiring network speed information of the plurality of terminals every other preset time period;
selecting a plurality of terminals with top internet speed ranking from the plurality of terminals according to the internet speed information of the plurality of terminals;
and sending synchronous data to the corresponding terminal according to the data synchronization request of the terminal with the top network speed rank.
In the data synchronization method of the present invention, the step of sending the synchronization data to the corresponding terminal according to the data synchronization request of the terminal with the top internet speed rank comprises;
sending synchronous data to the corresponding terminal according to the data synchronization request of the terminal with the top network speed rank;
monitoring the network state of each terminal in real time in the sending process;
when the network speed of one terminal is monitored to be lower than a preset value or the network is disconnected, selecting a terminal with the highest network speed rank from the unselected terminals in the plurality of terminals as a replacement terminal;
and sending synchronous data to the replacement terminal according to the data request information of the replacement terminal.
In the data synchronization method of the present invention, the step of acquiring the network speed information of the plurality of terminals every predetermined time period includes:
respectively sending network speed acquisition requests to the plurality of terminals every other preset time period;
and receiving the network speed information from the plurality of terminals.
The present invention provides a data synchronization apparatus, including:
the receiving module is used for receiving data synchronization requests from a plurality of terminals;
the acquisition module is used for acquiring the network speed information of the plurality of terminals every other preset time period;
the selection module is used for selecting a plurality of terminals with the network speed ranking at the top from the plurality of terminals according to the network speed information of the plurality of terminals;
and the sending module is used for sending the synchronous data to the corresponding terminal according to the data synchronous request of the terminal with the top network speed rank.
In the data synchronization apparatus of the present invention, the transmission module includes;
the first sending unit is used for sending the synchronous data to the corresponding terminal according to the data synchronous request of the terminal with the top internet speed rank;
the monitoring unit is used for monitoring the network states of the plurality of terminals in real time in the sending process;
the replacing unit is used for selecting a terminal with the highest network speed ranking as a replacing terminal from the unselected terminals in the plurality of terminals when the network speed of one terminal in the plurality of terminals is monitored to be lower than a preset value or the network is disconnected;
and the second sending unit is used for sending the synchronous data to the replacing terminal according to the data request information of the replacing terminal.
In the data synchronization apparatus of the present invention, the obtaining module includes:
a sending unit, which sends network speed obtaining requests to the plurality of terminals respectively every predetermined time period;
and a receiving unit which receives the network speed information from the plurality of terminals.
Compared with the prior art, the method and the device have the advantages that data synchronization requests from a plurality of terminals are received; acquiring network speed information of the plurality of terminals every other preset time period; selecting a plurality of terminals with top internet speed ranking from the plurality of terminals according to the internet speed information of the plurality of terminals; and sending synchronous data to the corresponding terminal according to the data synchronization request of the terminal with the top network speed rank, thereby improving the speed of processing data synchronization by the server.
Drawings
Fig. 1 is a flowchart of a data synchronization method in a first preferred embodiment of the present invention.
Fig. 2 is a block diagram of a data synchronization apparatus in a preferred embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
In the description that follows, embodiments of the invention are described with reference to steps and symbols of operations performed by one or more computers, unless otherwise indicated. It will thus be appreciated that those steps and operations, which are referred to herein several times as being computer-executed, include being manipulated by a computer processing unit in the form of electronic signals representing data in a structured form. This manipulation transforms the data or maintains it at locations in the computer's memory system, which may reconfigure or otherwise alter the computer's operation in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the invention have been described in language specific to above, it is not intended to be limited to the specific details shown, since one skilled in the art will recognize that various steps and operations described below may be implemented in hardware.
Example one
As shown in fig. 1, an embodiment of the present invention provides a data synchronization method, which is mainly used in a server, and the method includes the following steps;
s101, receiving data synchronization requests from a plurality of terminals;
s102, acquiring network speed information of the plurality of terminals every other preset time period;
s103, selecting a plurality of terminals with top network speed ranking from the plurality of terminals according to the network speed information of the plurality of terminals;
and S104, sending synchronous data to the corresponding terminal according to the data synchronization request of the terminal with the top internet speed rank.
The respective steps of the data synchronization method will be described in detail below.
In step S101, the plurality of terminals may be computers, mobile phones, IPADs, or the like.
In step S102, the network speed information of the plurality of terminals in turn is acquired every 5 minutes or 6 minutes, and specifically, the step includes the following sub-steps:
respectively sending network speed acquisition requests to the plurality of terminals every other preset time period;
and receiving the network speed information from the plurality of terminals.
In step S103, for example, the number of the plurality of terminals is 20, and a terminal with a top 10 wire speed rank is selected from the 20 terminals to perform data synchronization.
In step S104, synchronous data transmission is performed simultaneously to the top 10 end of the wire speed ranking.
In other embodiments, the step S104 specifically includes:
s1041, sending synchronous data to a corresponding terminal according to the data synchronization request of the terminal with the top internet speed rank; and simultaneously, synchronous data transmission is carried out on the terminal 10 at the top of the network speed rank.
S1042, monitoring the network states of the terminals in real time in the sending process; and during sending, monitoring the network state of the terminal 10 before the ranking, and judging whether the network is disconnected or the network speed is abnormally low.
S1043, when the network speed of a terminal is monitored to be lower than a preset value or the network is disconnected, selecting a terminal with the highest network speed rank from the unselected terminals in the plurality of terminals as a replacement terminal;
and S1044, sending the synchronous data to the replacing terminal according to the data request information of the replacing terminal.
The invention receives data synchronization requests from a plurality of terminals; acquiring network speed information of the plurality of terminals every other preset time period; selecting a plurality of terminals with top internet speed ranking from the plurality of terminals according to the internet speed information of the plurality of terminals; and sending synchronous data to the corresponding terminal according to the data synchronization request of the terminal with the top network speed rank, thereby improving the speed of processing data synchronization by the server.
Example two
As shown in fig. 2, an embodiment of the present invention provides a data synchronization apparatus, which is mainly used in a server, and includes;
a receiving module 201, configured to receive data synchronization requests from multiple terminals;
an obtaining module 202, configured to obtain network speed information of the multiple terminals every predetermined time period;
a selecting module 203, configured to select, according to the network speed information of the multiple terminals, a plurality of terminals with the network speed ranking top from the multiple terminals;
the sending module 204 is configured to send the synchronization data to the corresponding terminal according to the data synchronization request of the terminal with the top internet speed rank.
In the data synchronization apparatus according to the present invention, the sending module 204 includes;
the first sending unit is used for sending the synchronous data to the corresponding terminal according to the data synchronous request of the terminal with the top internet speed rank;
the monitoring unit is used for monitoring the network states of the plurality of terminals in real time in the sending process;
the replacing unit is used for selecting a terminal with the highest network speed ranking as a replacing terminal from the unselected terminals in the plurality of terminals when the network speed of one terminal in the plurality of terminals is monitored to be lower than a preset value or the network is disconnected;
and the second sending unit is used for sending the synchronous data to the replacing terminal according to the data request information of the replacing terminal.
In the data synchronization apparatus of the present invention, the obtaining module 202 includes:
a sending unit, which sends network speed obtaining requests to the plurality of terminals respectively every predetermined time period;
and a receiving unit which receives the network speed information from the plurality of terminals.
The invention receives data synchronization requests from a plurality of terminals; acquiring network speed information of the plurality of terminals every other preset time period; selecting a plurality of terminals with top internet speed ranking from the plurality of terminals according to the internet speed information of the plurality of terminals; and sending synchronous data to the corresponding terminal according to the data synchronization request of the terminal with the top network speed rank, thereby improving the speed of processing data synchronization by the server.
Various operations of embodiments are provided herein. In one embodiment, the one or more operations may constitute computer readable instructions stored on one or more computer readable media, which when executed by an electronic device, will cause the computing device to perform the operations. The order in which some or all of the operations are described should not be construed as to imply that these operations are necessarily order dependent. Those skilled in the art will appreciate alternative orderings having the benefit of this description. Moreover, it should be understood that not all operations are necessarily present in each embodiment provided herein.
Also, as used herein, the word "preferred" is intended to serve as an example, instance, or illustration. Any aspect or design described herein as "preferred" is not necessarily to be construed as advantageous over other aspects or designs. Rather, use of the word "preferred" is intended to present concepts in a concrete fashion. The term "or" as used in this application is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless specified otherwise or clear from context, "X employs A or B" is intended to include either of the permutations as a matter of course. That is, if X employs A; x employs B, or X employs both A and B, then "X employs A or B" is satisfied in any of the foregoing examples.
Also, although the disclosure has been shown and described with respect to one or more implementations, equivalent alterations and modifications will occur to others skilled in the art based upon a reading and understanding of this specification and the annexed drawings. The present disclosure includes all such modifications and alterations, and is limited only by the scope of the appended claims. In particular regard to the various functions performed by the above described components (e.g., elements, resources, etc.), the terms used to describe such components are intended to correspond, unless otherwise indicated, to any component which performs the specified function of the described component (e.g., that is functionally equivalent), even though not structurally equivalent to the disclosed structure which performs the function in the herein illustrated exemplary implementations of the disclosure. In addition, while a particular feature of the disclosure may have been disclosed with respect to only one of several implementations, such feature may be combined with one or more other features of the other implementations as may be desired and advantageous for a given or particular application. Furthermore, to the extent that the terms "includes," has, "" contains, "or variants thereof are used in either the detailed description or the claims, such terms are intended to be inclusive in a manner similar to the term" comprising.
Each functional unit in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Each apparatus or system described above may perform the method in the corresponding method embodiment.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (4)

1. A data synchronization method, comprising the steps of;
receiving data synchronization requests from a plurality of terminals;
acquiring network speed information of the plurality of terminals every other preset time period;
selecting a plurality of terminals with top internet speed ranking from the plurality of terminals according to the internet speed information of the plurality of terminals;
sending synchronous data to a corresponding terminal according to the data synchronization request of the terminal with the top network speed rank; the step of sending the synchronous data to the corresponding terminal according to the data synchronous request of the terminal with the top network speed rank comprises the following steps;
sending synchronous data to the corresponding terminal according to the data synchronization request of the terminal with the top network speed rank;
monitoring the network state of each terminal in real time in the sending process;
when the network speed of one terminal is monitored to be lower than a preset value or the network is disconnected, selecting a terminal with the highest network speed rank from the unselected terminals in the plurality of terminals as a replacement terminal;
and sending synchronous data to the replacement terminal according to the data request information of the replacement terminal.
2. The data synchronization method according to claim 1, wherein the step of acquiring the network speed information of the plurality of terminals every predetermined period of time comprises:
respectively sending network speed acquisition requests to the plurality of terminals every other preset time period;
and receiving the network speed information from the plurality of terminals.
3. A data synchronization apparatus, comprising:
the receiving module is used for receiving data synchronization requests from a plurality of terminals;
the acquisition module is used for acquiring the network speed information of the plurality of terminals every other preset time period;
the selection module is used for selecting a plurality of terminals with the network speed ranking at the top from the plurality of terminals according to the network speed information of the plurality of terminals;
the sending module is used for sending synchronous data to the corresponding terminal according to the data synchronization request of the terminal with the top internet speed rank; the sending module comprises;
the first sending unit is used for sending the synchronous data to the corresponding terminal according to the data synchronous request of the terminal with the top internet speed rank;
the monitoring unit is used for monitoring the network states of the plurality of terminals in real time in the sending process;
the replacing unit is used for selecting a terminal with the highest network speed ranking as a replacing terminal from the unselected terminals in the plurality of terminals when the network speed of one terminal in the plurality of terminals is monitored to be lower than a preset value or the network is disconnected;
and the second sending unit is used for sending the synchronous data to the replacing terminal according to the data request information of the replacing terminal.
4. The data synchronization apparatus according to claim 3, wherein the obtaining module comprises:
a sending unit, which sends network speed obtaining requests to the plurality of terminals respectively every predetermined time period;
and a receiving unit which receives the network speed information from the plurality of terminals.
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 CN106375403A (en) 2017-02-01
CN106375403B true 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 (5)

* 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
CN103796040A (en) * 2012-10-31 2014-05-14 上海心动企业发展有限公司 Method and device for releasing multimedia data according to network status of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101904053B1 (en) * 2012-03-13 2018-11-30 삼성전자 주식회사 Apparatus and method for processing a multimedia data in terminal equipment

Patent Citations (5)

* 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
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
CN106375403A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
US9589063B2 (en) Two-dimensional code processing method and terminal
CN103544020A (en) Method and mobile terminal for displaying application software icons
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
US20130297563A1 (en) Timestamp management method for data synchronization and terminal therefor
CN109862100B (en) Method and device for pushing information
EP3136655B1 (en) Multimedia display method, device and equipment
CN106897162B (en) Communication mode selection method of component in application, communication system and mobile terminal
CN107580032B (en) Data processing method, device and equipment
KR20170035985A (en) Identifying files for data write operations
US20160092441A1 (en) File Acquiring Method and Device
CN103841464A (en) Video information pushing method and device
CN104699795A (en) Method and device for pushing videos
WO2017147018A1 (en) Downloading visual assets
EP3040877A1 (en) Method and system for processing associated content
CN102769625A (en) Client-side Cookie information acquisition method and device
CN109492163B (en) List display recording method and device, terminal equipment and storage medium
CN111008032A (en) Page data updating method and device
CN106375403B (en) Data synchronization method and device
CN103354927A (en) Method and apparatus for managing content in a processing device
CN105024974B (en) The message treatment method and device of IPTV
CN114615525B (en) Video pushing method, device, equipment and storage medium
JP7498800B2 (en) Screen mirroring method and apparatus, electronic device and computer-readable storage medium
CN103309941A (en) Application update method, device and system
CN113434729A (en) Video related information aggregation obtaining method and device and terminal equipment

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