CN105553722A - Timestamp-based data exchange method, device and system - Google Patents

Timestamp-based data exchange method, device and system Download PDF

Info

Publication number
CN105553722A
CN105553722A CN201510953589.1A CN201510953589A CN105553722A CN 105553722 A CN105553722 A CN 105553722A CN 201510953589 A CN201510953589 A CN 201510953589A CN 105553722 A CN105553722 A CN 105553722A
Authority
CN
China
Prior art keywords
model object
data
timestamp value
flag bit
data update
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
CN201510953589.1A
Other languages
Chinese (zh)
Other versions
CN105553722B (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.)
SHENZHEN DATA FAULT TOLERANCE SYSTEM CO Ltd
Original Assignee
SHENZHEN DATA FAULT TOLERANCE SYSTEM CO Ltd
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 SHENZHEN DATA FAULT TOLERANCE SYSTEM CO Ltd filed Critical SHENZHEN DATA FAULT TOLERANCE SYSTEM CO Ltd
Priority to CN201510953589.1A priority Critical patent/CN105553722B/en
Publication of CN105553722A publication Critical patent/CN105553722A/en
Application granted granted Critical
Publication of CN105553722B publication Critical patent/CN105553722B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • H04L41/064Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis involving time analysis
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a timestamp-based data exchange method, device and system. The timestamp-based data exchange method comprises the steps: when detecting that a storage apparatus generates data updating, judging whether a model object in the storage apparatus is canceled; according to a judgment result, setting an updating flag bit of a model object group occurring the data updating, and a model object occurring the data updating and a current timestamp value of a model object group where the model object occurring the data updating is located; according to the data of the model object, the current timestamp value, the updating flag bit and a history timestamp value included in a data request of a client, constructing response model object data, and sending the response model object data, the current timestamp value and the updating flag bit to the client. According to the timestamp-based data exchange method, device and system, by adopting the timestamp, an object occurring data changing is recorded, so that useless redundant information is removed when a server and the client perform data transmission, the transmission efficiency is improved, and the maintenance costs are reduced.

Description

A kind of method for interchanging data based on timestamp, Apparatus and system
Technical field
The invention belongs to technical field of memory, particularly relate to a kind of method for interchanging data based on timestamp, Apparatus and system.
Background technology
Along with the continuous progress of information technology, the demand of people to dedicated storage equipment is more and more stronger.In the project plan of reality, administrative staff want to access easily and operate the assistance that numerous memory device be unable to do without storage management system software.Storage management software is divided into single equipment control and multiple equipment management, single equipment management system is relatively simple, generally realized by the web be deployed on storage array, multiple equipment management system architecture relative complex, need independent server (server) layer organize and manage numerous memory device, operator has carried out practical operation by client (client) alternately with server.
Whenever client refreshes during system cloud gray model, or floor array equipment state changes, and server needs to send new data to client.In prior art, all by all coordinates collection of data during each refresh data of storage management system, all send to client, but this technical efficiency is lower, even if data only have very little change, also total data will be transmitted, because data volume is very large, transmission and analyzing efficiency can be lower, are also unfavorable for that developer carries out debugging efforts by daily record in addition.
Summary of the invention
The invention provides a kind of method for interchanging data based on timestamp and device, the object of data change is there occurs by timestamp record, make to remove useless redundant information when carrying out transfer of data between sever and client, improve efficiency of transmission and reduce maintenance cost.
Method for interchanging data based on timestamp provided by the invention, comprising:
When memory device generation Data Update being detected, judge in described memory device, whether there is model object deleted; According to judged result, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur; Receive the request of data of client, in described request of data, comprise the historical time timestamp value of each model object group; According to the data of model object, described historical time timestamp value, described current timestamp value and described renewal flag bit tectonic response model object data, and described response model object data, described current timestamp value and described renewal flag bit are sent to described client.
Method for interchanging data based on timestamp provided by the invention, comprising:
Request of data is sent to server; Receive response model object data, the generation model object of Data Update and the current timestamp value of place model object group thereof that described server sends, and the renewal flag bit of the model object group at the model object place of generation Data Update; Resolve described response model object data according to described renewal flag bit, and carry out Data Update, and preserve described current timestamp value.
DEU data exchange unit based on timestamp provided by the invention, comprising:
Judge module, for when memory device generation Data Update being detected, judges whether there is model object in described memory device deleted; Module is set, for according to judged result, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur; Receiver module, for receiving the request of data of client, comprises the historical time timestamp value of each model object group in described request of data; Constructing module, for the data according to model object, described historical time timestamp value, described current timestamp value and described renewal flag bit tectonic response model object data; Sending module, for sending to described client by described response model object data, described current timestamp value and described renewal flag bit.
DEU data exchange unit based on timestamp provided by the invention, comprising:
Sending module, for sending request of data to server; Receiver module, for receiving the response model object data that described server sends, there is the model object of Data Update and the current timestamp value of place model object group thereof, and the renewal flag bit of the model object group at the model object place of generation Data Update; Parsing module, for according to described renewal flag bit, resolves described response model object data; Update module, for carrying out Data Update; Preserve module, for preserving described current timestamp value.
Data exchange system based on timestamp provided by the invention, comprising:
Server, client and memory device; Wherein, described server, for when described memory device generation Data Update being detected, judges whether there is model object in described memory device deleted; According to judged result, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur; Receive the request of data of described client, in described request of data, comprise the historical time timestamp value of each model object group; According to the data of model object, described historical time timestamp value, described current timestamp value and described renewal flag bit tectonic response model object data, and described response model object data, described current timestamp value and described renewal flag bit are sent to described client; Described client, for sending request of data to server; Receive response model object data, the generation model object of Data Update and the current timestamp value of place model object group thereof that described server sends, and the renewal flag bit of the model object group at the model object place of generation Data Update; According to described renewal flag bit, resolve described response model object data, and carry out Data Update, and preserve described current timestamp value.
From the invention described above embodiment, the present invention passes through, compared to prior art, the present invention is by deleted according to whether there being model object during Data Update, difference arranges the renewal flag bit of the model object group that Data Update occurs, and difference arranges the generation model object of Data Update and the current timestamp value of place model object group thereof, determine that the data of which model object need to send client to and upgrade with this, thus reduce the transmission of hash, raising speed, reduces network and takies.And owing to having filtered out most of useless redundant data, transmission be all critical data, add exploitation and engineering staff carries out the convenience of debugging.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of the data exchange system based on timestamp that first embodiment of the invention provides;
Fig. 2 is the realization flow schematic diagram of the method for interchanging data based on timestamp that second embodiment of the invention provides;
Fig. 3 is the realization flow schematic diagram of the method for interchanging data based on timestamp that third embodiment of the invention provides;
Fig. 4 is the realization flow schematic diagram of the method for interchanging data based on timestamp that fourth embodiment of the invention provides;
Fig. 5 is the structural representation of the DEU data exchange unit based on timestamp that fifth embodiment of the invention and the 6th embodiment provide;
Fig. 6 is the structural representation of the DEU data exchange unit based on timestamp that seventh embodiment of the invention provides;
Fig. 7 is the structural representation of the DEU data exchange unit based on timestamp that eighth embodiment of the invention provides.
Embodiment
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, and not all embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, the data transmission system structural representation based on timestamp that Fig. 1 provides for first embodiment of the invention.This system comprises: server 10 (server), client 20 (client) and memory device 30.
Particularly, this system can be divided into three layers by structure: mechanical floor, server layer, client tier, and wherein, mechanical floor comprises multiple memory device 30, and client tier comprises multiple client 20.Communication utility command row interface (cli between mechanical floor and server 10, command-lineinterface) mode, communication between server layer and client tier uses extend markup language (XML, ExtensibleMarkupLanguage) mode, network communication protocol uses transmission control protocol (TCP, and Simple Network Management Protocol (SNMP TransmissionControlProtocol), SimpleNetworkManagementProtocol), server and each client possess object model data in internal memory, client 20 can regularly upgrade to server 10 request msg.
Wherein, server 10, for when detecting that Data Update occurs memory device 30, judge in memory device 30, whether there is model object deleted, according to judged result, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, current time stamp (the TS of model object and the place model object group thereof that Data Update occurs is set, TimeStamp) value, receive the request of data that client 20 sends, the historical time timestamp value of each model object group that client 20 records is comprised in this request of data, and according to the data of model object, this historical time timestamp value, this current timestamp value and this renewal flag bit tectonic response model object data, and by this response model object data, this current timestamp value and this renewal flag bit send to client 20.
It should be noted that, this model object refers to inhomogeneous memory cell in memory device, and this model object group refers to the set of similar model object.Such as, VDisk is had in storage array, POOL and RAID, each VDisk, POOL and RAID is called a model object, and all model objects of each class are denoted as VDiskList, POOLList and RAIDList altogether respectively, be called VDisk model object group, POOL model object group and RAID model object group.
Timestamp is an integer value, identifies the time at certain a moment uniquely.Server 10 is when managing multiple memory device 30, and need the model data of preserving multiple memory device 30 in internal memory, each model object adds a timestamp attribute, and each similar model object group is also with a timestamp attribute.Such as, for the logical volume model object (VDisk) on storage array, each logical volume model object has individual timestamp attribute, also has a timestamp attribute as similar all logical volume model object groups (being denoted as VDiskList).In system operation, by timestamp, server 10 and client 30 determine that the data of which model object need to upgrade.
This historical time timestamp value is the last time and carries out in the timestamp value that client 20 is preserved after exchanges data, and identical with the timestamp value that server after last exchanges data 10 is preserved, this historical time timestamp value is that server 10 sends to client 20.
Further, according to judged result, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the timestamp value of place model object group thereof occur, be specially, if judged result is for there being model object deleted, the renewal flag bit (refresh) then arranging the model object group at the model object place that Data Update occurs is 1, represent and need the data refreshing all model objects, and the generation model object of Data Update and the timestamp value of place model object group thereof are all set to 0 as this current timestamp value.Such as, a model object VDisk in model object group VDiskList is deleted, the refresh flag bit then arranging model object group VDiskList is 1, and the TS value of model object group VDiskList and all model object VDisk is set to 0 and as this current timestamp value.If judged result is not for having model object deleted, the renewal flag bit then arranging the model object group at the model object place that Data Update occurs is 0, and the timestamp value that the model object group at the model object place of Data Update occurs is increased by 1 as this current timestamp value, and, the timestamp value of model object that Data Update occurs is set to this current timestamp value, as this current timestamp after the timestamp value that namely model object of Data Update and the model object group at place thereof occur all increases by 1.Such as a model object VDisk there occurs Data Update, the TS value of the model object group VDiskList at this model object VDisk place is added 1 as current TS value, and arranges TS vDisk=TS vDiskList, that is, the current TS value of model object VDisk and model object group VDiskList is all the TS value after increasing.
Further, up-to-date data are transmitted by server 10 in order to utilize timestamp, when client 20 asks up-to-date data to server 10, the historical time timestamp value that client 20 adds each model object group that client 20 self is preserved in request of data sends to server 10.Server 10 is according to the data of model object, this historical time timestamp value, this current timestamp value and this renewal flag bit tectonic response model object data, particularly, if this renewal flag bit is 0, the data configuration then selecting current timestamp value to be greater than the model object of this historical time timestamp value is the XML text of response model object data, such as, in the request of data of client 20, the timestamp value of model object group VDiskList is 5, and the timestamp value of model object group VDiskList is 9 in server 10, then all timestamp value in the model object VDisk of server 10 are greater than 5 all join in response model object data, and the timestamp value 9 of model object group VDiskList is sent to client 20.
If this renewal flag bit is 1, indicating that model object is deleted, then need the data of all model objects to send to client 20, therefore, is the XML text of response model object data by the data configuration of all model objects.And by this renewal flag bit 1, and there is the model object of Data Update and the timestamp value 0 of place model object group thereof and all send to client 20.
The exchanges data opposite equip. client 20 corresponding with server 10, for sending request of data to server 10, the historical time timestamp value of each model object group of client 20 self record is comprised in this request of data, and the response model object data that reception server 10 sends, there is the model object of Data Update and the current timestamp value of place model object group thereof, and, there is the renewal flag bit of the model object group at the model object place of Data Update, this response model object data is resolved according to this renewal flag bit, and carry out Data Update, and preserve this current timestamp value.
Further, according to this renewal flag bit, resolve this response model object data, and carry out Data Update and comprise:
If this renewal flag bit is 0, then resolve this response model object data to obtain the XML text of response model object data, and carry out corresponding Data Update according to this XML text, that is, model object data upgrade by correspondence.Such as, there is Data Update in model object VDisk, then the corresponding data upgrading VDisk.Now, this current timestamp value of preservation is than this historical time timestamp value large 1 of preserving before.
If this renewal flag bit is 1, then remove the data of all model objects in model object group corresponding in memory model, resolve this response model object data to obtain the XML text of response model object data, and, add in the model object group of this correspondence according to the data of this XML text by the model object that Data Update occurs.Now, this current timestamp value of preservation is 0.
In the embodiment of the present invention, by deleted according to whether there being model object during Data Update, difference arranges the renewal flag bit of the model object group that Data Update occurs, and difference arranges the generation model object of Data Update and the current timestamp value of place model object group thereof, determine that the data of which model object need to send client to and upgrade with this, thus reduce the transmission of hash, improve speed, reduce network and take.And owing to having filtered out most of useless redundant data, transmission be all critical data, add exploitation and engineering staff carries out the convenience of debugging.
Refer to Fig. 2, the realization flow schematic diagram of the method for interchanging data based on timestamp that Fig. 2 provides for second embodiment of the invention, mainly comprises the following steps S201 to step S204:
S201, when memory device generation Data Update being detected, judge in this memory device, whether there is model object deleted;
This model object refers to inhomogeneous memory cell in memory device, and this model object group refers to the set of similar model object.Such as, VDisk is had in storage array, POOL and RAID, each VDisk, POOL and RAID is called a model object, and all model objects of each class are denoted as VDiskList, POOLList and RAIDList altogether respectively, be called VDisk model object group, POOL model object group and RAID model object group.
When memory device generation Data Update being detected, judging in this memory device, whether there is model object deleted, that is, whether having the model objects such as VDisk, POOL, RAID whether deleted.
S202, according to judged result, the renewal flag bit of model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur;
The setting that different judged results is corresponding different.By arranging the renewal flag bit of the model object group at the model object place that Data Update occurs, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur, can determine which model object there occurs Data Update.
The request of data of S203, reception client, comprises the historical time timestamp value of each model object group in this request of data;
The latest data of this request of data on request server.This historical time timestamp value is the last time and carries out in the timestamp value that client is preserved after exchanges data, and identical with the timestamp value that server after last exchanges data is preserved, this historical time timestamp value is that server sends to client.
S204, data, this historical time timestamp value, this current timestamp value and this renewal flag bit tectonic response model object data according to model object, and this response model object data, this current timestamp value and this renewal flag bit are sent to this client.
The data of model object refer to the data of the model object after renewal.Response model object data refers to that the requirement of customer in response end sends to the data of the model object relevant to more new data of client.This response model object data be configured to, this current timestamp value and this renewal flag bit are sent to this client, client is made to resolve this response model object data according to this current timestamp value and this renewal flag bit, and complete renewal according to it, and preserve this current timestamp value, historical time timestamp value when so this current timestamp value is user end to server request msg next time.
The embodiment of the present invention, by deleted according to whether there being model object during Data Update, difference arranges the renewal flag bit of the model object group that Data Update occurs, and difference arranges the generation model object of Data Update and the current timestamp value of place model object group thereof, determine that the data of which model object need to send client to and upgrade with this, thus reduce the transmission of hash, improve speed, reduce network and take.And owing to having filtered out most of useless redundant data, transmission be all critical data, add exploitation and engineering staff carries out the convenience of debugging.
Refer to Fig. 3, the realization flow schematic diagram of the method for interchanging data based on timestamp that Fig. 3 provides for third embodiment of the invention, mainly comprises the following steps S301 to step S304:
S301, when memory device generation Data Update being detected, judge in this memory device, whether there is model object deleted;
When memory device generation Data Update being detected, judging in this memory device, whether there is model object deleted, that is, whether having the model objects such as VDisk, POOL, RAID whether deleted.
S302, according to judged result, the renewal flag bit of model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur;
Particularly, if judged result is for there being model object deleted, the renewal flag bit (refresh) then arranging the model object group at the model object place that Data Update occurs is 1, represent and need the data refreshing all model objects, and the generation model object of Data Update and the timestamp value of place model object group thereof are all set to 0 as this current timestamp value.
If judged result is not for having model object deleted, the renewal flag bit then arranging the model object group at the model object place that Data Update occurs is 0, and the timestamp value that the model object group at the model object place of Data Update occurs is increased by 1 as this current timestamp value, and, the timestamp value of the model object that Data Update occurs is set to this current timestamp value.That is, as this current timestamp after the timestamp value of the generation model object of Data Update and the model object group at place thereof all increases by 1.
The request of data of S303, reception client, comprises the historical time timestamp value of each model object group in this request of data;
In order to utilize timestamp only to transmit up-to-date data by server, when the data that user end to server request is up-to-date, the historical time timestamp value that client adds each model object group that client self is preserved in request of data sends to server.
If this renewal flag bit of S304 is 0, the data configuration then selecting current timestamp value to be greater than the model object of this historical time timestamp value is the extend markup language text of response model object data, if this renewal flag bit is 1, be then the extend markup language text of response model object data by the data configuration of all model objects, and this response model object data, this current timestamp value and this renewal flag bit are sent to this client.
Server is according to the data of model object, this historical time timestamp value, this current timestamp value and this renewal flag bit tectonic response model object data, particularly, if this renewal flag bit is 0, the data configuration then selecting current timestamp value to be greater than the model object of this historical time timestamp value is the XML text of response model object data, and this response model object data, this current timestamp value and this renewal flag bit are sent to this client.
If this renewal flag bit is 1, indicating that model object is deleted, then need the data of all model objects to send to client, therefore, is the XML text of response model object data by the data configuration of all model objects.And by this renewal flag bit 1, and there is the model object of Data Update and the timestamp value 0 of place model object group thereof and all send to client.
The embodiment of the present invention, by deleted according to whether there being model object during Data Update, difference arranges the renewal flag bit of the model object group that Data Update occurs, and difference arranges the generation model object of Data Update and the current timestamp value of place model object group thereof, determine that the data of which model object need to send client to and upgrade with this, thus reduce the transmission of hash, improve speed, reduce network and take.And owing to having filtered out most of useless redundant data, transmission be all critical data, add exploitation and engineering staff carries out the convenience of debugging.
Refer to Fig. 4, the realization flow schematic diagram of the method for interchanging data based on timestamp that Fig. 4 provides for fourth embodiment of the invention, mainly comprises the following steps S401 to step S403:
S401, to server send request of data;
User end to server sends request of data, and this request of data is used for this server request latest data.The historical time timestamp value of each model object group of client self record is comprised in this request of data.
This historical time timestamp value is the last time and carries out in the timestamp value that client is preserved after exchanges data, and identical with the timestamp value that server after last exchanges data is preserved, this historical time timestamp value is that server sends to client.
S402, the response model object data receiving the transmission of this server, the generation model object of Data Update and the current timestamp value of place model object group thereof, and the renewal flag bit of the model object group at the model object place of generation Data Update;
This response model object data comprises the data after renewal.
S403, resolve this response model object data according to this renewal flag bit, and carry out Data Update, and preserve this current timestamp value.
Particularly, if this renewal flag bit is 0, then resolve this response model object data to obtain the XML text of response model object data, and carry out corresponding Data Update according to the XML text of this response model object data.Such as, there is Data Update in model object VDisk, then the corresponding data upgrading VDisk.Now, this current timestamp value of preservation is than this historical time timestamp value large 1 of preserving before.
If this renewal flag bit is 1, then remove the data of all model objects in model object group corresponding in memory model, and resolve this response model object data to obtain the XML text of response model object data, and the data of the model object that Data Update occurs add in corresponding model object group by the XML text according to this response model object data.Now, this current timestamp value of preservation is 0.
The embodiment of the present invention, by deleted according to whether there being model object during Data Update, difference arranges the renewal flag bit of the model object group that Data Update occurs, and difference arranges the generation model object of Data Update and the current timestamp value of place model object group thereof, determine that the data of which model object need to send client to and upgrade with this, thus reduce the transmission of hash, improve speed, reduce network and take.And owing to having filtered out most of useless redundant data, transmission be all critical data, add exploitation and engineering staff carries out the convenience of debugging.
Refer to Fig. 5, Fig. 5 is the structural representation of the DEU data exchange unit based on timestamp that fifth embodiment of the invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.The switch of Fig. 5 example can be the executive agent of the aforementioned method for interchanging data based on timestamp provided embodiment illustrated in fig. 2.The DEU data exchange unit based on timestamp of Fig. 5 example, mainly comprises:
Judge module 501, module 502, receiver module 503, constructing module 504 and sending module 505 are set.
Each functional module is described in detail as follows above:
Wherein, judge module 501, for when memory device generation Data Update being detected, judges whether there is model object in this memory device deleted;
Module 502 is set, for the judged result according to judge module 501, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur;
Receiver module 503, for receiving the request of data of client, comprises the historical time timestamp value of each model object group in this request of data;
Constructing module 504, for the data according to model object, this historical time timestamp value, this current timestamp value and this renewal flag bit tectonic response model object data;
Sending module 505, for sending to this client by this response model object data, this current timestamp value and this renewal flag bit.
The details that the present embodiment is not most, refers to earlier figures 1 to description embodiment illustrated in fig. 4, repeats no more herein.
It should be noted that, in the execution mode of the DEU data exchange unit based on timestamp of above Fig. 5 example, the division of each functional module only illustrates, can be as required in practical application, the facility of the such as configuration requirement of corresponding hardware or the realization of software is considered, and above-mentioned functions distribution is completed by different functional modules, the internal structure be about to based on the DEU data exchange unit of timestamp is divided into different functional modules, to complete all or part of function described above.And in practical application, the corresponding functional module in the present embodiment can be by corresponding hardware implementing, also can perform corresponding software by corresponding hardware and complete; Each embodiment that this specification provides all can apply foregoing description principle.
The embodiment of the present invention, by deleted according to whether there being model object during Data Update, difference arranges the renewal flag bit of the model object group that Data Update occurs, and difference arranges the generation model object of Data Update and the current timestamp value of place model object group thereof, determine that the data of which model object need to send client to and upgrade with this, thus reduce the transmission of hash, improve speed, reduce network and take.And owing to having filtered out most of useless redundant data, transmission be all critical data, add exploitation and engineering staff carries out the convenience of debugging.
Still refer to Fig. 5, the DEU data exchange unit based on timestamp that sixth embodiment of the invention provides, mainly comprise:
Judge module 501, module 502, receiver module 503, constructing module 504 and sending module 505 are set.
Each functional module is described in detail as follows above:
Wherein, judge module 501, for when memory device generation Data Update being detected, judges whether there is model object in this memory device deleted;
Module 502 is set, for the judged result according to judge module 501, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur;
Receiver module 503, for receiving the request of data of client, comprises the historical time timestamp value of each model object group in this request of data;
Constructing module 504, for the data according to model object, this historical time timestamp value, this current timestamp value and this renewal flag bit tectonic response model object data;
Sending module 505, for sending to this client by this response model object data, this current timestamp value and this renewal flag bit.
Further, module 502 is set, if also for judged result for there being model object deleted, the renewal flag bit then arranging the model object group at the model object place of this generation Data Update is 1, and the timestamp value of the model object of this generation Data Update and place model object group thereof is all set to 0 as this current timestamp value.
Module 502 is set, if also for judged result for not having model object deleted, the renewal flag bit then arranging the model object group at the model object place of this generation Data Update is 0, and the timestamp value of the model object group at the model object place of this generation Data Update is increased by 1 as this current timestamp value, and, the timestamp value of the model object of this generation Data Update is set to this current timestamp value.
Further, constructing module 504, if be also 0 for this renewal flag bit, the data configuration then selecting current timestamp value to be greater than the model object of this historical time timestamp value is the extend markup language text of response model object data, if this renewal flag bit is 1, be then the extend markup language text of response model object data by the data configuration of all model objects.
Sending module 505, also for the extend markup language text of this response model object data, this current timestamp value and this renewal flag bit are sent to this client.
The details that the present embodiment is not most, refers to earlier figures 1 to description embodiment illustrated in fig. 5, repeats no more herein.
The embodiment of the present invention, by deleted according to whether there being model object during Data Update, difference arranges the renewal flag bit of the model object group that Data Update occurs, and difference arranges the generation model object of Data Update and the current timestamp value of place model object group thereof, determine that the data of which model object need to send client to and upgrade with this, thus reduce the transmission of hash, improve speed, reduce network and take.And owing to having filtered out most of useless redundant data, transmission be all critical data, add exploitation and engineering staff carries out the convenience of debugging.
Refer to Fig. 6, Fig. 6 is the structural representation of the DEU data exchange unit based on timestamp that seventh embodiment of the invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.The switch of Fig. 6 example can be the executive agent of the aforementioned method for interchanging data based on timestamp provided embodiment illustrated in fig. 4.The DEU data exchange unit based on timestamp of Fig. 6 example, mainly comprises:
Sending module 601, receiver module 602, parsing module 603, update module 604 and preservation module 605.
Each functional module is described in detail as follows above:
Wherein, sending module 601, for sending request of data to server;
Receiver module 602, for receiving the response model object data that this server sends, there is the model object of Data Update and the current timestamp value of place model object group thereof, and the renewal flag bit of the model object group at the model object place of generation Data Update;
Parsing module 603, for according to this renewal flag bit, resolves this response model object data;
Update module 604, for carrying out Data Update;
Preserve module 605, for preserving this current timestamp value.
The details that the present embodiment is not most, refers to earlier figures 1 to description embodiment illustrated in fig. 5, repeats no more herein.
The embodiment of the present invention, by deleted according to whether there being model object during Data Update, difference arranges the renewal flag bit of the model object group that Data Update occurs, and difference arranges the generation model object of Data Update and the current timestamp value of place model object group thereof, determine that the data of which model object need to send client to and upgrade with this, thus reduce the transmission of hash, improve speed, reduce network and take.And owing to having filtered out most of useless redundant data, transmission be all critical data, add exploitation and engineering staff carries out the convenience of debugging.
Refer to Fig. 7, Fig. 7 is the structural representation of the DEU data exchange unit based on timestamp that eighth embodiment of the invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.The switch of Fig. 6 example can be the executive agent of the aforementioned method for interchanging data based on timestamp provided embodiment illustrated in fig. 7.The DEU data exchange unit based on timestamp of Fig. 7 example, mainly comprises:
Sending module 701, receiver module 702, parsing module 703, update module 704, preservation module 705 and removing module 706.
Each functional module is described in detail as follows above:
Wherein, sending module 701, for sending request of data to server;
Receiver module 702, for receiving the response model object data that this server sends, there is the model object of Data Update and the current timestamp value of place model object group thereof, and the renewal flag bit of the model object group at the model object place of generation Data Update;
Parsing module 703, for according to this renewal flag bit, resolves this response model object data;
Update module 704, for carrying out Data Update;
Preserve module 705, for preserving this current timestamp value.
Further, parsing module 703, if be also 0 for this renewal flag bit, then resolves this response model object data to obtain the extend markup language text of response model object data.
Update module 704, also for carrying out corresponding Data Update according to the extend markup language text of this response model object data.
This device can further include:
Remove module 706, if be 1 for this renewal flag bit, then remove the data of all model objects in model object group corresponding in memory model.
Further, the data of the model object that Data Update occurs also are added in corresponding model object group for the extend markup language text according to this response model object data by update module 704.
The details that the present embodiment is not most, refers to earlier figures 1 to description embodiment illustrated in fig. 6, repeats no more herein.
The embodiment of the present invention, by deleted according to whether there being model object during Data Update, difference arranges the renewal flag bit of the model object group that Data Update occurs, and difference arranges the generation model object of Data Update and the current timestamp value of place model object group thereof, determine that the data of which model object need to send client to and upgrade with this, thus reduce the transmission of hash, improve speed, reduce network and take.And owing to having filtered out most of useless redundant data, transmission be all critical data, add exploitation and engineering staff carries out the convenience of debugging.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple module or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or module or communication connection can be electrical, machinery or other form.
The described module illustrated as separating component can or may not be physically separates, and the parts as module display can be or may not be physical module, namely can be positioned at a place, or also can be distributed on multiple mixed-media network modules mixed-media.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional module in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of modules exists, also can two or more module integrations in a module.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.
If described integrated module using the form of software function module realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
It should be noted that, for aforesaid each embodiment of the method, in order to easy description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other order or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be all that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiment.
Be more than to provided by the present invention a kind of based on the method for interchanging data of timestamp, the description of Apparatus and system, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, to sum up, this description should not be construed as limitation of the present invention.

Claims (10)

1. based on a method for interchanging data for timestamp, it is characterized in that, described method comprises:
When memory device generation Data Update being detected, judge in described memory device, whether there is model object deleted;
According to judged result, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur;
Receive the request of data of client, in described request of data, comprise the historical time timestamp value of each model object group;
According to the data of model object, described historical time timestamp value, described current timestamp value and described renewal flag bit tectonic response model object data, and described response model object data, described current timestamp value and described renewal flag bit are sent to described client.
2. method according to claim 1, it is characterized in that, described according to judged result, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur;
If judged result is for there being model object deleted, the renewal flag bit then arranging the model object group at the model object place of described generation Data Update is 1, and the timestamp value of the model object of described generation Data Update and place model object group thereof is all set to 0 as described current timestamp value;
If judged result is not for having model object deleted, the renewal flag bit then arranging the model object group at the model object place of described generation Data Update is 0, and the timestamp value of the model object group at the model object place of described generation Data Update is increased by 1 as described current timestamp value, and, the timestamp value of the model object of described generation Data Update is set to described current timestamp value.
3. method according to claim 1, it is characterized in that, the described data according to model object, described historical time timestamp value, described current timestamp value and described renewal flag bit tectonic response model object data, and send to described client to comprise described response model object data, described current timestamp value and described renewal flag bit:
If described renewal flag bit is 0, then the data configuration selecting current timestamp value to be greater than the model object of described historical time timestamp value is the extend markup language text of response model object data; If described renewal flag bit is 1, be then the extend markup language text of response model object data by the data configuration of all model objects, and the extend markup language text of described response model object data, described current timestamp value and described renewal flag bit are sent to described client.
4. based on a method for interchanging data for timestamp, it is characterized in that, described method comprises:
Request of data is sent to server;
Receive response model object data, the generation model object of Data Update and the current timestamp value of place model object group thereof that described server sends, and the renewal flag bit of the model object group at the model object place of generation Data Update;
Resolve described response model object data according to described renewal flag bit, and carry out Data Update, and preserve described current timestamp value.
5. method according to claim 4, is characterized in that, describedly resolves described response model object data according to described renewal flag bit, and carries out Data Update and comprise:
If described renewal flag bit is 0, then resolve described response model object data to obtain the extend markup language text of response model object data, and carry out corresponding Data Update according to the extend markup language text of described response model object data;
If described renewal flag bit is 1, then remove the data of all model objects in model object group corresponding in memory model, and resolve described response model object data to obtain the extend markup language text of response model object data, and the data of the model object that Data Update occurs add in corresponding model object group by the extend markup language text according to described response model object data.
6. based on a DEU data exchange unit for timestamp, it is characterized in that, described device comprises:
Judge module, for when memory device generation Data Update being detected, judges whether there is model object in described memory device deleted;
Module is set, for according to judged result, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur;
Receiver module, for receiving the request of data of client, comprises the historical time timestamp value of each model object group in described request of data;
Constructing module, for the data according to model object, described historical time timestamp value, described current timestamp value and described renewal flag bit tectonic response model object data;
Sending module, for sending to described client by described response model object data, described current timestamp value and described renewal flag bit.
7. device according to claim 6, is characterized in that,
Described module is set, if also for judged result for there being model object deleted, the renewal flag bit then arranging the model object group at the model object place of described generation Data Update is 1, and the timestamp value of the model object of described generation Data Update and place model object group thereof is all set to 0 as described current timestamp value;
Described module is set, if also for judged result for not having model object deleted, the renewal flag bit then arranging the model object group at the model object place of described generation Data Update is 0, and the timestamp value of the model object group at the model object place of described generation Data Update is increased by 1 as described current timestamp value, and, the timestamp value of the model object of described generation Data Update is set to described current timestamp value;
Described constructing module, if be also 0 for described renewal flag bit, then the data configuration selecting current timestamp value to be greater than the model object of described historical time timestamp value is the extend markup language text of response model object data; If described renewal flag bit is 1, be then the extend markup language text of response model object data by the data configuration of all model objects;
Described sending module, also for the extend markup language text of described response model object data, described current timestamp value and described renewal flag bit are sent to described client.
8. based on a DEU data exchange unit for timestamp, it is characterized in that, described device comprises:
Sending module, for sending request of data to server;
Receiver module, for receiving the response model object data that described server sends, there is the model object of Data Update and the current timestamp value of place model object group thereof, and the renewal flag bit of the model object group at the model object place of generation Data Update;
Parsing module, for according to described renewal flag bit, resolves described response model object data;
Update module, for carrying out Data Update;
Preserve module, for preserving described current timestamp value.
9. device according to claim 8, is characterized in that,
Described parsing module, if be also 0 for described renewal flag bit, then resolves described response model object data to obtain the extend markup language text of response model object data;
Described update module, also for carrying out corresponding Data Update according to the extend markup language text of described response model object data;
Described device also comprises:
Remove module, if be 1 for described renewal flag bit, then remove the data of all model objects in model object group corresponding in memory model;
The data of the model object that Data Update occurs also are added in corresponding model object group for the extend markup language text according to described response model object data by described update module.
10. based on a data exchange system for timestamp, it is characterized in that, described system comprises:
Server, client and memory device;
Wherein, described server, for when described memory device generation Data Update being detected, judges whether there is model object in described memory device deleted; According to judged result, the renewal flag bit of the model object group at the model object place that Data Update occurs is set, and, arrange and the model object of Data Update and the current timestamp value of place model object group thereof occur; Receive the request of data of described client, in described request of data, comprise the historical time timestamp value of each model object group; According to the data of model object, described historical time timestamp value, described current timestamp value and described renewal flag bit tectonic response model object data, and described response model object data, described current timestamp value and described renewal flag bit are sent to described client;
Described client, for sending request of data to server; Receive response model object data, the generation model object of Data Update and the current timestamp value of place model object group thereof that described server sends, and the renewal flag bit of the model object group at the model object place of generation Data Update; According to described renewal flag bit, resolve described response model object data, and carry out Data Update, and preserve described current timestamp value.
CN201510953589.1A 2015-12-16 2015-12-16 A kind of method for interchanging data based on timestamp, apparatus and system Active CN105553722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510953589.1A CN105553722B (en) 2015-12-16 2015-12-16 A kind of method for interchanging data based on timestamp, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510953589.1A CN105553722B (en) 2015-12-16 2015-12-16 A kind of method for interchanging data based on timestamp, apparatus and system

Publications (2)

Publication Number Publication Date
CN105553722A true CN105553722A (en) 2016-05-04
CN105553722B CN105553722B (en) 2019-01-08

Family

ID=55832662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510953589.1A Active CN105553722B (en) 2015-12-16 2015-12-16 A kind of method for interchanging data based on timestamp, apparatus and system

Country Status (1)

Country Link
CN (1) CN105553722B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106198362A (en) * 2016-08-31 2016-12-07 南京理工大学 Remote multi-point laser dust particle counter system
CN107154957A (en) * 2016-12-29 2017-09-12 贵州电网有限责任公司铜仁供电局 Distributed storage control method based on virtual ring load-balancing algorithm

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364163A (en) * 2007-08-07 2009-02-11 英业达股份有限公司 System for establishing logical volume and method thereof
US20090319525A1 (en) * 2008-06-23 2009-12-24 Microsoft Corporation Lost write protection via stream-based replication
CN101853217A (en) * 2009-03-30 2010-10-06 富士通株式会社 Buffer control device, signal conditioning package and computer readable recording medium storing program for performing
CN102314322A (en) * 2011-07-01 2012-01-11 杭州华三通信技术有限公司 Data processing method and device based on RAID (redundant array of independent disks)
CN103885718A (en) * 2012-12-21 2014-06-25 刘庆国 Mirror disk increment synchronizing method based on lvm
CN104657089A (en) * 2015-03-13 2015-05-27 浪潮集团有限公司 Unified management method of placement groups on object storage device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364163A (en) * 2007-08-07 2009-02-11 英业达股份有限公司 System for establishing logical volume and method thereof
US20090319525A1 (en) * 2008-06-23 2009-12-24 Microsoft Corporation Lost write protection via stream-based replication
CN101853217A (en) * 2009-03-30 2010-10-06 富士通株式会社 Buffer control device, signal conditioning package and computer readable recording medium storing program for performing
CN102314322A (en) * 2011-07-01 2012-01-11 杭州华三通信技术有限公司 Data processing method and device based on RAID (redundant array of independent disks)
CN103885718A (en) * 2012-12-21 2014-06-25 刘庆国 Mirror disk increment synchronizing method based on lvm
CN104657089A (en) * 2015-03-13 2015-05-27 浪潮集团有限公司 Unified management method of placement groups on object storage device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106198362A (en) * 2016-08-31 2016-12-07 南京理工大学 Remote multi-point laser dust particle counter system
CN107154957A (en) * 2016-12-29 2017-09-12 贵州电网有限责任公司铜仁供电局 Distributed storage control method based on virtual ring load-balancing algorithm

Also Published As

Publication number Publication date
CN105553722B (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN103503414B (en) A kind of group system calculating storage and merge
CN103036736B (en) A kind of configuration equipment monitoring system based on data source and method
CN102469025B (en) Multipath switching over multiple storage systems
CN104283959B (en) A kind of memory mechanism based on grading performance suitable for cloud platform
CN103929500A (en) Method for data fragmentation of distributed storage system
CN105138281B (en) A kind of sharing method and device of physical disk
CN104639347A (en) Multi-cluster monitoring method and device, and system
CN102231673B (en) System and method for monitoring business server
CN103973516A (en) Method and device for achieving monitoring function in data processing system
CN104050248A (en) File storage system and storage method
CN105338297A (en) Video data storage and playback system, device and method
CN103117901A (en) Distributed heartbeat detection method, device and system
CN104469395A (en) Image transmission method and device
CN103399781A (en) Cloud server and virtual machine management method thereof
CN102902746A (en) Method, device and system for processing mass data
CN105553722A (en) Timestamp-based data exchange method, device and system
CN105657057A (en) Calculation and storage fused cluster system
CN109284294A (en) Method and device for collecting data, storage medium and processor
CN103226501B (en) A kind of backup logic method of database and backup logic system
CN103678578A (en) Data visualization processing method, server and data visualization processing system
CN106569729A (en) Method and device for writing in data in distributed system
CN102541471B (en) Storage system with multiple controllers
CN103490923B (en) The reading/writing method of journal file, Apparatus and system
US10157216B2 (en) Data management system and data management method
CN103377286A (en) Database history management method and system thereof

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