Font Size: a A A

Research And Implementation Of Provincial Food And Drug Administration Portal System Data Synchronization

Posted on:2018-02-20Degree:MasterType:Thesis
Country:ChinaCandidate:G LeiFull Text:PDF
GTID:2348330521450926Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the deepening of government reform and the increasing popularity of network information,government agencies have increased the construction of information systems.Provincial Food and Drug Administration portal system is one of the information system that the Food and Drug Administration focused on building.The portal system is divided into the website page part and the background service part.The front pages provide the browsing function,and the background service part provides the website content management service.This article mainly studies the data synchronization part of the portal system.The work of this part is the backup of the system core information.When the background system generates,modify and delete page data,synchronization part complete the same process in the backup side.The synchronization of data modification involves the design of synchronization algorithm,which is the focus of this paper.Based on the analysis and understanding of the classical synchronization algorithm Rsync,and through the comparison of the three data block synchronization methods,combined with the data characteristics of the Provincial Food and Drug Administration,this paper proposes a two-wheel fixed block synchronization method.First,the fixed block data is checked.The matching fixed block data pairs are generated.Then,the similarity detection is performed on the mismatched fixed blocks,the fixed blocks which are most similar to them are obtained.And then the matching pairs and similar pairs are sent to the backup side.And then,the system starts the second round of sliding block matching,in a similar pair of byte-by-byte sliding check,getting the final difference data.Finally,the backup file is reconstructed based on the match pairs and the difference data.According to the improved synchronization algorithm,the system realizes the data synchronization between the active and standby servers.System synchronization is divided into three parts,for file creation synchronization,for data modification of the synchronization,for file deletion synchronization.Among them,the file creation and deletion is for the overall file.The active and standby ends just communicate and transmit the message without anything.Data synchronization based on the improved algorithm achieves the need for both ends with the implementation of data block checksum calculation,block matching and file refactoring,and through the interaction of the message to complete the synchronization.Before the data is sent,the algorithm needs to convert the object data into byte data that can be sent.Therefore,in order to reduce the network traffic as much as possible,this paper also discusses the synchronization protocol in the checksum and the difference data representation.On this basis,it also discusses the file refactoring.According to the improved synchronization algorithm,the system completes the design and implementation of the synchronization system.And the synchronization function is tested.The test achieves our desired goal.In this paper,the performance of the algorithm is tested,and the comparison tests are carried out for different block size,different data,different methods and different similarity detection.The results show that the improved algorithm can effectively reduce the data transmission.And it is suitable for the portal system.The test also gives the best performance configuration of the algorithm.
Keywords/Search Tags:Portal System, Data Synchronization, Rsync, Data Compression
PDF Full Text Request
Related items