Movatterモバイル変換


[0]ホーム

URL:


CN106375403B - Data synchronization method and device - Google Patents

Data synchronization method and device
Download PDF

Info

Publication number
CN106375403B
CN106375403BCN201610776873.0ACN201610776873ACN106375403BCN 106375403 BCN106375403 BCN 106375403BCN 201610776873 ACN201610776873 ACN 201610776873ACN 106375403 BCN106375403 BCN 106375403B
Authority
CN
China
Prior art keywords
terminals
data
terminal
network
network speed
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 UniversityfiledCriticalHuizhou University
Priority to CN201610776873.0ApriorityCriticalpatent/CN106375403B/en
Publication of CN106375403ApublicationCriticalpatent/CN106375403A/en
Application grantedgrantedCritical
Publication of CN106375403BpublicationCriticalpatent/CN106375403B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

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;
areceiving module 201, configured to receive data synchronization requests from multiple terminals;
an obtainingmodule 202, configured to obtain network speed information of the multiple terminals every predetermined time period;
a selectingmodule 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 sendingmodule 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 sendingmodule 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 obtainingmodule 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)

Translated fromChinese
1.一种数据同步方法,其特征在于,包括以下步骤;1. a data synchronization method, is characterized in that, comprises the following steps;接收来自多个终端的数据同步请求;Receive data synchronization requests from multiple terminals;每隔预定时间段获取该多个终端的网速信息;acquiring network speed information of the multiple terminals every predetermined time period;根据该多个终端的网速信息,从该多个终端中选出若干网速排名靠前的终端;According to the network speed information of the multiple terminals, select a number of terminals with top network speeds from the multiple terminals;根据该若干网速排名靠前的终端的数据同步请求,发送同步数据给对应的终端;所述根据该若干网速排名靠前的终端的数据同步请求,发送同步数据给对应的终端的步骤包括;Sending synchronization data to the corresponding terminal according to the data synchronization requests of the terminals with the top network speeds; the step of sending the synchronization data to the corresponding terminals according to the data synchronization requests of the terminals with the top network speeds includes the following steps: ;根据该该若干网速排名靠前的终端的数据同步请求,发送同步数据给对应的终端;Send synchronization data to the corresponding terminal according to the data synchronization request of the terminals with the top network speeds;在发送过程中实时监控每一终端的网络状态;Monitor the network status of each terminal in real time during the sending process;当监测到一终端的网络速度低于预定值或断网时,从所述多个终端中的未被选中的终端中选择一网速排名最靠前的作为替换终端;When it is detected that the network speed of a terminal is lower than a predetermined value or the network is disconnected, selecting a terminal with the highest network speed from the unselected terminals in the plurality of terminals as a replacement terminal;根据该替换终端的数据请求信息,发送同步数据给所述替换终端。According to the data request information of the replacement terminal, the synchronization data is sent to the replacement terminal.2.根据权利要求1所述的数据同步方法,其特征在于,所述每隔预定时间段获取该多个终端的网速信息的步骤包括:2. The data synchronization method according to claim 1, wherein the step of acquiring the network speed information of the multiple terminals every predetermined time period comprises:每隔预定时间段分别发送网速获取请求给所述多个终端;sending network speed acquisition requests to the multiple terminals every predetermined period of time;接收来自所述多个终端的网速信息。Receive network speed information from the plurality of terminals.3.一种数据同步装置,其特征在于,包括:3. A data synchronization device, characterized in that, comprising:接收模块,用于接收来自多个终端的数据同步请求;a receiving module for receiving data synchronization requests from multiple terminals;获取模块,用于每隔预定时间段获取该多个终端的网速信息;an acquisition module, used for acquiring the network speed information of the multiple terminals every predetermined time period;选择模块,用于根据该多个终端的网速信息,从该多个终端中选出若干网速排名靠前的终端;a selection module, configured to select a number of terminals with top network speeds from the multiple terminals according to the network speed information of the multiple terminals;发送模块,用于根据该若干网速排名靠前的终端的数据同步请求,发送同步数据给对应的终端;所述发送模块包括;a sending module, configured to send synchronization data to the corresponding terminals according to the data synchronization requests of the terminals with the top rankings in network speed; the sending module includes;第一发送单元,用于根据该该若干网速排名靠前的终端的数据同步请求,发送同步数据给对应的终端;a first sending unit, configured to send synchronization data to the corresponding terminal according to the data synchronization request of the terminals with the top network speeds;监测单元,用于在发送过程中实时监控该若干终端的网络状态;a monitoring unit for monitoring the network status of the several terminals in real time during the sending process;替换单元,用于当监测到该若干终端中的一个终端的网络速度低于预定值或断网时,从所述多个终端中的未被选中的终端中选择一网速排名最靠前的终端作为替换终端;A replacement unit, configured to select a terminal with the highest network speed from the unselected terminals in the plurality of terminals when it is monitored that the network speed of one terminal in the plurality of terminals is lower than a predetermined value or the network is disconnected terminal as a replacement terminal;第二发送单元,用于根据该替换终端的数据请求信息,发送同步数据给所述替换终端。The second sending unit is configured to send synchronization data to the replacement terminal according to the data request information of the replacement terminal.4.根据权利要求3所述的数据同步装置,其特征在于,所述获取模块包括:4. The data synchronization device according to claim 3, wherein the acquisition module comprises:发送单元,每隔预定时间段分别发送网速获取请求给所述多个终端;a sending unit, respectively sending network speed acquisition requests to the multiple terminals every predetermined time period;接收单元,接收来自所述多个终端的网速信息。A receiving unit, receiving network speed information from the multiple terminals.
CN201610776873.0A2016-08-312016-08-31 Data synchronization method and deviceActiveCN106375403B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610776873.0ACN106375403B (en)2016-08-312016-08-31 Data synchronization method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610776873.0ACN106375403B (en)2016-08-312016-08-31 Data synchronization method and device

Publications (2)

Publication NumberPublication Date
CN106375403A CN106375403A (en)2017-02-01
CN106375403Btrue CN106375403B (en)2021-06-01

Family

ID=57900982

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610776873.0AActiveCN106375403B (en)2016-08-312016-08-31 Data synchronization method and device

Country Status (1)

CountryLink
CN (1)CN106375403B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101350992A (en)*2007-07-192009-01-21日本电气株式会社Mobile terminal mail system, mobile terminal mail control method, and mobile terminal mail control program
CN102256101A (en)*2011-07-262011-11-23中兴通讯股份有限公司Method and system for converting media capability in video conference, and application server
CN102892089A (en)*2012-09-252013-01-23中国联合网络通信集团有限公司Message pushing method, device and system
CN103258389A (en)*2013-04-192013-08-21中国建设银行股份有限公司Method and system for self-service terminals to upload files and self-service terminals
CN103796040A (en)*2012-10-312014-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 numberPriority datePublication dateAssigneeTitle
KR101904053B1 (en)*2012-03-132018-11-30삼성전자 주식회사Apparatus and method for processing a multimedia data in terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101350992A (en)*2007-07-192009-01-21日本电气株式会社Mobile terminal mail system, mobile terminal mail control method, and mobile terminal mail control program
CN102256101A (en)*2011-07-262011-11-23中兴通讯股份有限公司Method and system for converting media capability in video conference, and application server
CN102892089A (en)*2012-09-252013-01-23中国联合网络通信集团有限公司Message pushing method, device and system
CN103796040A (en)*2012-10-312014-05-14上海心动企业发展有限公司Method and device for releasing multimedia data according to network status of mobile terminal
CN103258389A (en)*2013-04-192013-08-21中国建设银行股份有限公司Method and system for self-service terminals to upload files and self-service terminals

Also Published As

Publication numberPublication date
CN106375403A (en)2017-02-01

Similar Documents

PublicationPublication DateTitle
CN107315825B (en)Index updating system, method and device
CN105787077B (en)Data synchronization method and device
CN110012217B (en)Method and device for determining acquisition resolution and electronic equipment
CN109885786B (en)Data caching processing method and device, electronic equipment and readable storage medium
US9589063B2 (en)Two-dimensional code processing method and terminal
US20180077277A1 (en)Selectively providing content to users located within a virtual perimeter
US20140229436A1 (en)Method of File Synchronization and Electronic Device Thereof
EP3136655B1 (en)Multimedia display method, device and equipment
KR20170035985A (en)Identifying files for data write operations
WO2020216204A1 (en)Information acquisition method and apparatus
CN103907311B (en) Remote Access from Mobile Devices
US20180302462A1 (en)Social media server for providing client with media content including tagging information and the client
CN111147226B (en)Data storage method, device and storage medium
CN113407856B (en)Search result ordering method and device and electronic equipment
CN106375403B (en) Data synchronization method and device
US20170178693A1 (en)Adaptive media content recording
WO2019194794A1 (en)Social media content management
CN112769941A (en)Distributed system flow switching verification method and device
US9577967B2 (en)Method and system for managing an informational site using a social networking application
WO2017165253A1 (en)Modular communications
US20150009414A1 (en)Image output apparatus, image output system, and image output control program
WO2016131249A1 (en)Method and device for grouping contacts
AU2016253673B2 (en)Streaming digital content synchronization
WO2023107638A1 (en)Method and system for view sharing of digital files
US20140066034A1 (en)Apparatus and method for displaying callback information

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp