CN103957258A - Trans-regional data communication method and system - Google Patents

Trans-regional data communication method and system Download PDF

Info

Publication number
CN103957258A
CN103957258A CN201410183228.9A CN201410183228A CN103957258A CN 103957258 A CN103957258 A CN 103957258A CN 201410183228 A CN201410183228 A CN 201410183228A CN 103957258 A CN103957258 A CN 103957258A
Authority
CN
China
Prior art keywords
data
information
time
unit
temporal information
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
CN201410183228.9A
Other languages
Chinese (zh)
Other versions
CN103957258B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201410183228.9A priority Critical patent/CN103957258B/en
Publication of CN103957258A publication Critical patent/CN103957258A/en
Application granted granted Critical
Publication of CN103957258B publication Critical patent/CN103957258B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a trans-regional data communication method and system. The method comprises the steps of obtaining data, performing timeliness judging on the obtained data according to data circulation time and the data valid period to obtain valid data, processing the valid data, adding timestamp information to the processed valid data, and sending out the valid data with the timestamp information. According to the technical scheme, timeliness judging of the data is automatically achieved by the system in the whole communication process, manual intervention is not needed, and it is guaranteed that transmitted and processed data among applications are valid in timeliness.

Description

A kind of transregional data communications method and system
Technical field
The present invention relates to data communication field, particularly a kind of transregional data communications method and system, also comprises a kind of data age control device and method for synchronizing time.
Background technology
Along with the sustainable development of IT industry, in enterprise, more affairs are included into IT system and process, and between inner each server of IT system, exist increasing communication to connect.Because the processing of each application is all the control of effective property, its instruction of sending fails to be processed in a predefined time range, and data originating end will think that these data lost efficacy.But due to data multiple processing links of need flowing through, when performance fault appears in wherein one or more links, will cause that the ageing of communication packet of carrying out transmission process between application lost efficacy, can still need the thing that processes of application, finally produce the inconsistent or production development accident of data.
For example: bank ATM is initiated the transaction of withdrawing the money, if because main frame is busy, this data processing request is overlong time in host process waiting list, has exceeded the Business Processing term of validity, ATM because overtime having abandoned wait for, current transaction data ought to be discarded.But according to current conventional data age treatment mechanism, these transaction data are finally still by host process and detain account, this pen data of withdrawing the money are still processed in each intermediate links, until return on ATM, to be judged as this pen data of withdrawing the money by ATM overtime and discarded.In addition, ATM also needs again automatically to initiate a punching just to be asked, to allow the button account that main frame rollback has completed before upgrade.So at present conventional data age treatment mechanism waste efficient resource.
In addition, also withdraw the money as example with ATM, after ATM withdraws the money and just concludes the business and send, the data of withdrawing the money because of various reasons lag behind and arrive main frame, and before the positive transaction data of withdrawing the money arrives main frame, ATM just asks because wait timeout has sent the punching of withdrawing the money, due to the treatment mechanism difference of each node, withdraw the money and rush the correction data request more Zao main frame that arrives of may just concluding the business than withdrawing the money, this withdraws the money and rushes correction data request meeting and process unsuccessfully (because on main frame, can not find this pen positive transaction record of withdrawing the money), but then arrive withdraw the money just to conclude the business carried out account by main frame and upgraded, this pen is withdrawn the money and be there will be no punching just to conclude the business, cause causing account mistake.
Existing data age control function, generally only limits to internal system, can not cross-system operation, or need the external clock support such as synchronously.This Data Control mode, in the data handling procedure across time zone, or when the Time Inconsistency of each intermediate node server, is difficult to ensure the ageing of data.Therefore, need a kind of new data age control device and way, in the data handling procedure of various scenes, can carry out self-correcting, ensure the energy-conservation correct identification invalid packet of each communication link.
Summary of the invention
For addressing the above problem, the present invention proposes a kind of transregional data communications method and system, in the time carrying out data interaction, cannot effectively judge the ageing of data to overcome current all kinds of server, thereby cause the problem that the low and wrong Data Update of efficiency that all kinds of invalid data processings cause causes account.
For achieving the above object, the invention provides a kind of transregional data communications method, described method comprises:
Obtain data;
Effective period the data of obtaining are carried out to ageing judgement according to data circulations time and data, obtain valid data;
Described valid data are carried out to data processing;
To valid data after treatment joining day stamp information;
The valid data of joining day information are sent.
Optionally, in an embodiment of the present invention, the described data circulation time is greater than described data effective periods, and described data are invalid datas; The described data circulation time is less than or equal to described data effective periods, and described data are the valid data that meet ageing requirement.
Optionally, in an embodiment of the present invention, the described data circulation time obtains according to the timestamp information in local zone time, time zone conversion, time difference and data.
Optionally, in an embodiment of the present invention, described timestamp information comprises and sends data terminal place time-zone information, local transmitting time, data effective periods.
For achieving the above object, the invention provides another kind of transregional data communications method, described method comprises:
Initiate transaction data;
To the data joining day stamp information of initiating;
The data that joining day is stabbed to information are sent to other back end and process;
Obtain data after treatment;
Effective period the data of obtaining are carried out to ageing judgement according to data circulations time and data, obtain valid data;
Show described valid data according to functional requirement.
For achieving the above object, the present invention also provides a kind of transregional data communication system, and described system comprises:
The first data receiver unit, for obtaining data;
The first timeliness judging unit, for the data of obtaining being carried out to ageing judgement effective period according to data circulation time and data, obtains valid data;
Data processing unit, for carrying out data processing to described valid data;
Very first time stamp information unit, for stabbing information to the valid data after treatment joining day;
The first transmitting element, for sending the valid data of joining day information.
Optionally, in an embodiment of the present invention, described the first timeliness judging unit judges that the described data circulation time is greater than described data effective periods, and described data are invalid datas; Described the first timeliness judging unit judges that the described data circulation time is less than or equal to described data effective periods, and described data are the valid data that meet ageing requirement.
Optionally, in an embodiment of the present invention, the data circulation time that described the first timeliness judging unit uses obtains according to the timestamp information in local zone time, time zone conversion, time difference and data.
Optionally, in an embodiment of the present invention, the timestamp information that described very first time stamp information unit uses comprises and sends data terminal place time-zone information, local transmitting time, data effective periods.
For achieving the above object, the present invention also provides another kind of transregional data communication system, and described system comprises:
Data are initiated unit, for initiating transaction data;
The second timestamp information unit, for the data joining day stamp information to initiating;
The second transmitting element, is sent to other back end and processes for being stabbed to the data of information the joining day;
The second data receiver unit, for obtaining data after treatment;
The second timeliness judging unit, for the data of obtaining being carried out to ageing judgement effective period according to data circulation time and data, obtains valid data;
Display unit, for showing described valid data according to functional requirement.
For achieving the above object, the invention provides a kind of data age control device, comprising:
Initial handshake unit, shakes hands for carrying out application layer with other back end that need to communicate by letter, exchanges mutual temporal information, other unit in described data age control device are carried out to initialization process, obtains the temporal information of communicating pair;
Server time acquiring unit, for obtaining server current time and corresponding time-zone information;
Time-out information acquiring unit, for obtaining the predefined data of transaction information effective period;
Temporal information memory cell, for recording the temporal information of all kinds of transaction data, described temporal information comprises the temporal information of the communicating pair that described initial handshake unit obtains;
Timeliness control unit, comprises timestamp processing module and timeliness judge module, the data joining day stamp information of described timestamp processing module for needs are sent; Wherein, described timestamp information comprises the information that described server time acquiring unit and described time-out information acquiring unit obtain; Described timeliness judge module is for carrying out timeliness judgement according to the temporal information recording in the temporal information of the data that obtain and temporal information memory cell to the data that obtain.
Optionally, in an embodiment of the present invention, also comprise: temporal information lock unit;
Described temporal information lock unit, be used for organizing message to be sent to other back end, again obtaining communication both sides' temporal information, carries out automatic synchronization and correction to the temporal information of communicating pair, and the time information renovation obtaining is arrived to described temporal information memory cell.
For achieving the above object, the invention provides a kind of method for synchronizing time, the data age control device of the method based on above-mentioned carries out, and described method for synchronizing time comprises:
Read configuration file by described time-out information acquiring unit, complete the initialization operation of described data age control device;
Initial handshake unit and communication counterpart carry out shaking hands of application layer, the temporal information needing described in exchange run duration both sides, and the temporal information of obtaining is write to temporal information memory cell;
Temporal information lock unit regularly starts, and exchanges with communication counterpart, obtains new temporal information, and the time information renovation obtaining is arrived to described temporal information memory cell.
Optionally, in an embodiment of the present invention, the step of shaking hands that described initial handshake unit and communication counterpart carry out application layer comprises:
The side that communicates by letter initiates handshake request to communication counterpart;
Described communication counterpart returns replys to described communication one side;
What described communication one root returned according to communication counterpart replys transmission application abbreviation to described communication counterpart;
Local time information is sent to described communication one side by described communication counterpart;
Described communication one side registers the temporal information of described communication counterpart, and local time information is sent to described communication counterpart;
Described communication counterpart is registered described communication one side's temporal information.
Technique scheme has following beneficial effect: the technical program allows the ageing judgement of data in whole communication process, be all that system realizes automatically, without manual intervention, has ensured that be all effective in transmission between each application and the data processed on ageing.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is one of transregional data communications method flow chart of one provided by the invention;
Fig. 2 is two of the transregional data communications method flow chart of one provided by the invention;
Fig. 3 is one of transregional data communication system block diagram of one provided by the invention;
Fig. 4 is two of the transregional data communication system block diagram of one provided by the invention;
Fig. 5 is one of a kind of data age control device 500 block diagrams provided by the invention;
Fig. 6 is two of a kind of data age control device 500 block diagrams provided by the invention;
Fig. 7 is two of a kind of method for synchronizing time flow chart provided by the invention;
Fig. 8 is the transregional data communication system structural representation of the present embodiment;
Fig. 9 is the function logic structure chart of the data age control device of the present embodiment;
Figure 10 is the realization flow figure of the time synchronized part of the data age control device of the present embodiment;
Figure 11 is the handshake procedure schematic diagram of an actual motion of the present embodiment;
Figure 12 is that a complete data validity of the present embodiment judges process chart.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the 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, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, for the invention provides a kind of transregional data communications method flow chart.Described method comprises:
Step 101): obtain data;
Step 102): effective period the data of obtaining are carried out to ageing judgement according to data circulations time and data, obtain valid data;
Step 103): described valid data are carried out to data processing;
Step 104): to valid data after treatment joining day stamp information;
Step 105): the valid data of joining day information are sent.
Optionally, in an embodiment of the present invention, the described data circulation time is greater than described data effective periods, and described data are invalid datas; The described data circulation time is less than or equal to described data effective periods, and described data are the valid data that meet ageing requirement.
Optionally, in an embodiment of the present invention, the described data circulation time obtains according to the timestamp information in local zone time, time zone conversion, time difference and data.
Optionally, in an embodiment of the present invention, described timestamp information comprises and sends data terminal place time-zone information, local transmitting time, data effective periods.
As shown in Figure 2, for the invention provides two of a kind of transregional data communications method flow chart.Described method comprises:
Step 201): initiate transaction data;
Step 202): to the data joining day stamp information of initiating;
Step 203): the data that the joining day is stabbed to information are sent to other back end and process;
Step 204): obtain data after treatment;
Step 205): effective period the data of obtaining are carried out to ageing judgement according to data circulations time and data, obtain valid data;
Step 206): show described valid data according to functional requirement.
As shown in Figure 3, be one of transregional data communication system block diagram of one provided by the invention.Described system comprises:
The first data receiver unit 301, for obtaining data;
The first timeliness judging unit 302, for the data of obtaining being carried out to ageing judgement effective period according to data circulation time and data, obtains valid data;
Data processing unit 303, for carrying out data processing to described valid data;
Very first time stamp information unit 304, for stabbing information to the valid data after treatment joining day;
The first transmitting element 305, for sending the valid data of joining day information.
Optionally, in an embodiment of the present invention, described the first timeliness judging unit 302 judges that the described data circulation time is greater than described data effective periods, and described data are invalid datas; Described the first timeliness judging unit 302 judges that the described data circulation time is less than or equal to described data effective periods, and described data are the valid data that meet ageing requirement.
Optionally, in an embodiment of the present invention, the data circulation time that described the first timeliness judging unit 302 uses obtains according to the timestamp information in local zone time, time zone conversion, time difference and data.
Optionally, in an embodiment of the present invention, the timestamp information that described very first time stamp information unit 304 uses comprises and sends data terminal place time-zone information, local transmitting time, data effective periods.
As shown in Figure 4, be two of the transregional data communication system block diagram of one provided by the invention.Described system comprises:
Data are initiated unit 401, for initiating transaction data;
The second timestamp information unit 402, for the data joining day stamp information to initiating;
The second transmitting element 403, is sent to other back end and processes for being stabbed to the data of information the joining day;
The second data receiver unit 404, for obtaining data after treatment;
The second timeliness judging unit 405, for the data of obtaining being carried out to ageing judgement effective period according to data circulation time and data, obtains valid data;
Display unit 406, for showing described valid data according to functional requirement.
As shown in Figure 5, be one of a kind of data age control device 500 block diagrams provided by the invention.Comprise:
Initial handshake unit 501, shakes hands for carrying out application layer with other back end that need to communicate by letter, exchanges mutual temporal information, other unit in described data age control device are carried out to initialization process, obtains the temporal information of communicating pair;
Server time acquiring unit 502, for obtaining server current time and corresponding time-zone information;
Time-out information acquiring unit 503, for obtaining the predefined data of transaction information effective period;
Temporal information memory cell 504, for recording the temporal information of all kinds of transaction data, described temporal information comprises the temporal information of the communicating pair that described initial handshake unit obtains;
Timeliness control unit 505, comprises timestamp processing module 5051 and timeliness judge module 5052, the data joining day stamp information of described timestamp processing module 5051 for needs are sent; Wherein, described timestamp information comprises the information that described server time acquiring unit and described time-out information acquiring unit obtain; Described timeliness judge module 5052 is for carrying out timeliness judgement according to the temporal information of record in the temporal information of the data that obtain and temporal information memory cell 504 to the data that obtain.
As shown in Figure 6, be two of a kind of data age control device 500 block diagrams provided by the invention.On the basis of Fig. 5, also comprise: temporal information lock unit 506;
Described temporal information lock unit 506, be used for organizing message to be sent to other back end, again obtaining communication both sides' temporal information, carries out automatic synchronization and correction to the temporal information of communicating pair, and the time information renovation obtaining is arrived to described temporal information memory cell 504.
As shown in Figure 7, be a kind of method for synchronizing time flow chart provided by the invention.The data age control device of the method based on above-mentioned Fig. 6 carries out, and described method for synchronizing time comprises:
Step 701): read configuration file by described time-out information acquiring unit 503, complete the initialization operation of described data age control device;
Step 702): initial handshake unit 501 carries out shaking hands of application layer with communication counterpart, the temporal information needing described in exchange run duration both sides, and the temporal information of obtaining is write to temporal information memory cell 504;
Step 703): temporal information lock unit 506 regularly starts, and exchanges with communication counterpart, obtains new temporal information, and the time information renovation obtaining is arrived to described temporal information memory cell 504.
Optionally, in an embodiment of the present invention, described initial handshake unit 501 comprises with the step of shaking hands that communication counterpart carries out application layer:
The side that communicates by letter initiates handshake request to communication counterpart;
Described communication counterpart returns replys to described communication one side;
What described communication one root returned according to communication counterpart replys transmission application abbreviation to described communication counterpart;
Local time information is sent to described communication one side by described communication counterpart;
Described communication one side registers the temporal information of described communication counterpart, and local time information is sent to described communication counterpart;
Described communication counterpart is registered described communication one side's temporal information.
Embodiment:
The present embodiment is application system is carried out in data handling procedure, add the device shown in Fig. 6 at each node server, this device is in the time that data send, write time stamp information in data, this timestamp information includes but not limited to: this client place time-zone information, local transmitting time, data effective periods etc.One can actual motion heading partial design example as follows:
In the time that service end is accepted data, data age control device judges the ageing of data, thereby abandons in time invalid data.Further, this device does not rely on external condition, startup stage can shake hands by application (between application layer mutually exchange operation information needed) perception the other side's temporal information for calculating correct timestamp, and during continuous service, carry out the validity of retention time information by regularly initiating automatically probe messages, thereby realize the self-correcting of temporal information.
Below contrast accompanying drawing is elaborated to this technical scheme:
As shown in Figure 8, be the transregional data communication system structural representation of the present embodiment.Comprise: data processing equipment 1, the first data age control device 2, the first data sending device 3, the first data sink 4, the second data age control device 5, the second data sending device 6, the second data sink 7, data originating end 8.Relevant apparatus is described below:
Data processing equipment 1 can be mainframe computer, also can be medium and small computer, main being responsible for processed receiving data, for example: the accounting data table in the request of withdrawing the money is upgraded, registers transaction register etc., and the detail of data processing and data age control device are irrelevant.
The first data age control device 2 is identical with the second data age control device 5 internal structure functions, it is the core component of the present embodiment, data age control device can carry out the time synchronized between system, and in data transmission procedure the information such as joining day stamp, after data receiver, carry out ageing judgement.This device will be described in more detail in Fig. 9.
The major function of the first data sending device 3 and the second data sending device 6 is to transfer data to an other processing node.
The major function of the second data sink 4 and the second data sink 7 is to receive the data that other node passes over.
Data originating end 8 can be the Possum of client or similar ATM, and request msg is after data originating end 8 produces, and in figure, multiple processing unit arrival data processing equipments 1 carry out actual treatment.
As shown in Figure 9, be the function logic structure chart of the data age control device of the present embodiment.Data age control device 20 comprises: initial handshake unit 21, temporal information lock unit 22, timestamp processing unit 23, temporal information memory cell 24, server time acquiring unit 25, time-out information acquiring unit 26.
Wherein, initial handshake unit 21, for needing the back end of communication to carry out shaking hands of application layer with other, exchange mutual temporal information, other processing unit of initialization, and the temporal information obtaining of shaking hands is registered to temporal information memory cell 24, temporal information comprises and being not limited to: time zone, both sides' time difference etc..
Temporal information lock unit 22 is the resident service in backstage, it regularly starts, organize specific message to send to the opposing party of communication, thereby again get the temporal information of communication two party, and by new time information renovation in time information memory cell 24, thereby the oneself who realizes temporal information is synchronous and correct, after having avoided local system time of communication two party to be modified, temporal information in data message is long-time calculates inaccurate problem.
Timestamp processing unit 23 is computing modules of data age control device, and all data of platform application all need the processing of elapsed time stamp processing unit 23.If current these data need to send, timestamp processing unit 23 dispatch server time acquisition unit 25, time-out information acquiring unit 26 obtain required temporal information, temporal information comprises and being not limited to: current server time, predefined message time-out time, local time zone etc., and by correlation time information be filled into and send in data; If current these data read, timestamp processing unit 23 is according to the temporal information in data, as the temporal information of record in transmitting time, local zone time and temporal information memory cell 24 is carried out ageing judgement.
Temporal information memory cell 24, for recording all kinds of event informations, comprises and being not limited to: time zone, time difference etc., inquire about carrying out when validity judges for unit.
Server time acquiring unit 25, for obtaining system local zone time and time-zone information.For example: obtain by the localtime function in the API (Application Programming Interface, application programming interfaces) of C language.
Time-out information acquiring unit 26, for obtaining the predefined data of transaction information effective period.For example by predefined data information recording effective period in the configuration file of XML form, then by analysis configuration file acquisition.
More than introduce data age control device, introduced in detail a kind of data age control method below in conjunction with Figure 10 and Figure 11.The method does not rely on external condition, the yet correct validity of calculated data in the environment of time zone difference, asynchronism(-nization) step between each application.
As shown in figure 10, be the realization flow figure of the time synchronized part of the data age control device of the present embodiment, this flow process comprises the steps:
Step 300: data age control device 2 starts, this can be manual operations, also automatically starting.Service is read configuration file by time-out information reading unit 26, the initialization operation of finishing device after starting.
Step 301: initial handshake unit 21 carries out shaking hands of application layer with communication the other side, the required information of exchange run duration both sides, comprises initial time difference information.As shown in figure 11, be the handshake procedure schematic diagram of the actual motion of the present embodiment.Comprise:
The side that communicates by letter initiates handshake request to communication counterpart;
Described communication counterpart returns replys to described communication one side;
What described communication one root returned according to communication counterpart replys transmission application abbreviation to described communication counterpart;
Local time information is sent to described communication one side by described communication counterpart;
Described communication one side registers the temporal information of described communication counterpart, and local time information is sent to described communication counterpart;
Described communication counterpart is registered described communication one side's temporal information.
In this step the inside, data sending terminal and receiving terminal have exchanged temporal information mutually, and these temporal informations comprise and being not limited to: local zone time, time-zone information.After application is shaken hands, by its information access time information memory cell 24.
Step 302: initial handshake unit 21 starts other functional module.
Step 303: temporal information lock unit 22 regularly starts, and communication the other side links up, and obtains new temporal information, and is updated in temporal information memory cell 24, thus realize the self-correcting of temporal information.One can the request of actual motion and the design of EDI messages example of response as follows:
Request message:
type length remarks
int 4 request classification.As 1001 expression request time information
long 8 local zone time is empty in request message
int 4 time-zone information is empty in request message
Back message using:
Step 304: initial handshake unit 21 is by the temporal information write time information memory cell 24 getting in step 301.Meanwhile, the temporal information of temporal information lock unit regular update is also in access time information memory cell 24.
As shown in figure 12, for one of the present embodiment complete data validity judges process chart.The method comprises the following steps:
Step 400: data originating end 8 starts to initiate data;
Step 401: the second data age control device 5 carries out ageing processing to communication packet, adds temporal information in data.
In this step, the internal module server time acquiring unit 25 of data age device will obtain the information such as local zone time, time zone by the API of system, and time-out time acquiring unit 26 is by by information effective period of analysis configuration file acquisition data, then installs above-mentioned temporal information unification is write in related data;
Step 402: the second data sending device 6 sends data;
Step 403: the first data sink 3 receives data;
Step 404: the first data age control device 2 carries out ageing judgement to the data that receive, not meeting ageing data will be abandoned.A sample calculation as follows:
Data circulation time=local zone time+time zone differs from the timestamp in – data between conversion+time
If the data circulation time is greater than the data effective period in data, think that these data are invalid datas; If the data circulation time is less than the data effective period in data, think that these data are valid data.
Step 405: the data that meet ageing requirement are processed by data processing equipment 1;
Step 406: after data processing equipment 1 is processed, need the data of passback data originating end 8, will again carry out ageing processing by the first data age control device 2, insert temporal information;
Step 407: the first data sending device 4 sends data;
Step 408: the second data sink 7 receives data;
Step 409: the second data age processing unit 5 carries out ageing judgement to receiving data, and not meeting ageing data will be abandoned.A sample calculation as follows:
Data circulation time=local zone time+time zone differs from the timestamp in – data between conversion+time
If the data circulation time is greater than the data effective period in data, think that these data are invalid datas; If the data circulation time is less than the data effective period in data, think that these data are valid data.
Step 410: data originating end 8 receives data after treatment, for the function such as specifically representing.
The present embodiment has reduced the resource consumption of server to invalid data processing, and reduces the inconsistent risk of data that server brings because processing invalid data.ATM is waiting for that after the data effective period, sending punching just asks again, even if withdraw the money, rear arrival main frame is just being asked in request specific impulse, the request message of withdrawing the money also can be abandoned by main frame because being decidedly superior to effective period, account also can not be updated, walking across time zone or each node server asynchronism(-nization), in discrepant situation, ensure the robustness of application system, ensured the validity of data.
Finally it should be noted that: above-mentioned only in order to the present invention to be described and unrestricted technical scheme described in the invention; Although this specification has been described in detail to the present invention, but, those skilled in the art still can modify or be equal to replacement the present invention, and all do not depart from technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in claim scope of the present invention.

Claims (14)

1. a transregional data communications method, is characterized in that, described method comprises:
Obtain data;
Effective period the data of obtaining are carried out to ageing judgement according to data circulations time and data, obtain valid data;
Described valid data are carried out to data processing;
To valid data after treatment joining day stamp information;
The valid data of joining day information are sent.
2. the method for claim 1, is characterized in that, the described data circulation time is greater than described data effective periods, and described data are invalid datas; The described data circulation time is less than or equal to described data effective periods, and described data are the valid data that meet ageing requirement.
3. the method for claim 1, is characterized in that, the described data circulation time obtains according to the timestamp information in local zone time, time zone conversion, time difference and data.
4. the method for claim 1, is characterized in that, described timestamp information comprises and sends data terminal place time-zone information, local transmitting time, data effective periods.
5. a transregional data communications method, is characterized in that, described method comprises:
Initiate transaction data;
To the data joining day stamp information of initiating;
The data that joining day is stabbed to information are sent to other back end and process;
Obtain data after treatment;
Effective period the data of obtaining are carried out to ageing judgement according to data circulations time and data, obtain valid data;
Show described valid data according to functional requirement.
6. a transregional data communication system, is characterized in that, described system comprises:
The first data receiver unit, for obtaining data;
The first timeliness judging unit, for the data of obtaining being carried out to ageing judgement effective period according to data circulation time and data, obtains valid data;
Data processing unit, for carrying out data processing to described valid data;
Very first time stamp information unit, for stabbing information to the valid data after treatment joining day;
The first transmitting element, for sending the valid data of joining day information.
7. system as claimed in claim 6, is characterized in that, described the first timeliness judging unit judges that the described data circulation time is greater than described data effective periods, and described data are invalid datas; Described the first timeliness judging unit judges that the described data circulation time is less than or equal to described data effective periods, and described data are the valid data that meet ageing requirement.
8. system as claimed in claim 6, is characterized in that, the data circulation time that described the first timeliness judging unit uses obtains according to the timestamp information in local zone time, time zone conversion, time difference and data.
9. system as claimed in claim 6, is characterized in that, the timestamp information that described very first time stamp information unit uses comprises and sends data terminal place time-zone information, local transmitting time, data effective periods.
10. a transregional data communication system, is characterized in that, described system comprises:
Data are initiated unit, for initiating transaction data;
The second timestamp information unit, for the data joining day stamp information to initiating;
The second transmitting element, is sent to other back end and processes for being stabbed to the data of information the joining day;
The second data receiver unit, for obtaining data after treatment;
The second timeliness judging unit, for the data of obtaining being carried out to ageing judgement effective period according to data circulation time and data, obtains valid data;
Display unit, for showing described valid data according to functional requirement.
11. 1 kinds of data age control device, is characterized in that, comprising:
Initial handshake unit, shakes hands for carrying out application layer with other back end that need to communicate by letter, exchanges mutual temporal information, other unit in described data age control device are carried out to initialization process, obtains the temporal information of communicating pair;
Server time acquiring unit, for obtaining server current time and corresponding time-zone information;
Time-out information acquiring unit, for obtaining the predefined data of transaction information effective period;
Temporal information memory cell, for recording the temporal information of all kinds of transaction data, described temporal information comprises the temporal information of the communicating pair that described initial handshake unit obtains;
Timeliness control unit, comprises timestamp processing module and timeliness judge module, the data joining day stamp information of described timestamp processing module for needs are sent; Wherein, described timestamp information comprises the information that described server time acquiring unit and described time-out information acquiring unit obtain; Described timeliness judge module is for carrying out timeliness judgement according to the temporal information recording in the temporal information of the data that obtain and temporal information memory cell to the data that obtain.
12. devices as claimed in claim 11, is characterized in that, also comprise: temporal information lock unit
Described temporal information lock unit, be used for organizing message to be sent to other back end, again obtaining communication both sides' temporal information, carries out automatic synchronization and correction to the temporal information of communicating pair, and the time information renovation obtaining is arrived to described temporal information memory cell.
13. 1 kinds of method for synchronizing time, is characterized in that, the data age control device of the method based on described in claim 12 carries out, and described method for synchronizing time comprises:
Read configuration file by described time-out information acquiring unit, complete the initialization operation of described data age control device;
Initial handshake unit and communication counterpart carry out shaking hands of application layer, the temporal information needing described in exchange run duration both sides, and the temporal information of obtaining is write to temporal information memory cell;
Temporal information lock unit regularly starts, and exchanges with communication counterpart, obtains new temporal information, and the time information renovation obtaining is arrived to described temporal information memory cell.
14. methods as claimed in claim 13, is characterized in that, the step of shaking hands that described initial handshake unit and communication counterpart carry out application layer comprises:
The side that communicates by letter initiates handshake request to communication counterpart;
Described communication counterpart returns replys to described communication one side;
What described communication one root returned according to communication counterpart replys transmission application abbreviation to described communication counterpart;
Local time information is sent to described communication one side by described communication counterpart;
Described communication one side registers the temporal information of described communication counterpart, and local time information is sent to described communication counterpart;
Described communication counterpart is registered described communication one side's temporal information.
CN201410183228.9A 2014-04-30 2014-04-30 A kind of transregional data communications method and system Active CN103957258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410183228.9A CN103957258B (en) 2014-04-30 2014-04-30 A kind of transregional data communications method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410183228.9A CN103957258B (en) 2014-04-30 2014-04-30 A kind of transregional data communications method and system

Publications (2)

Publication Number Publication Date
CN103957258A true CN103957258A (en) 2014-07-30
CN103957258B CN103957258B (en) 2018-06-15

Family

ID=51334481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410183228.9A Active CN103957258B (en) 2014-04-30 2014-04-30 A kind of transregional data communications method and system

Country Status (1)

Country Link
CN (1) CN103957258B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354839A (en) * 2016-08-31 2017-01-25 国信优易数据有限公司 Method and system for detecting data timeliness
CN106559158A (en) * 2015-09-29 2017-04-05 国网智能电网研究院 A kind of mobile device data exchange method based on timestamp
CN107919933A (en) * 2017-11-17 2018-04-17 深圳市泉眼网络科技有限公司 A kind of method, apparatus, mobile terminal and the storage medium of time renewal
CN109377679A (en) * 2018-09-03 2019-02-22 深圳壹账通智能科技有限公司 Withdrawal method and terminal device
CN110690936A (en) * 2018-07-06 2020-01-14 腾讯科技(深圳)有限公司 Time control method, system and computer system in service operation

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639522B (en) * 2018-12-10 2020-11-10 通号城市轨道交通技术有限公司 Method for detecting timeliness of message in rail transit system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340436A (en) * 2008-08-14 2009-01-07 普天信息技术研究院有限公司 Method and apparatus implementing remote access control based on portable memory apparatus
US7980378B2 (en) * 2006-03-23 2011-07-19 Cummins-Allison Corporation Systems, apparatus, and methods for currency processing control and redemption
CN102299747A (en) * 2010-06-22 2011-12-28 上海云途信息技术有限公司 Device, system and method for performing safe data communication based on sound waves
CN102307216A (en) * 2011-03-15 2012-01-04 陈建国 Peer-to-peer (P2P) stream media broadcast method and system for multimedia telephone
CN102664726A (en) * 2012-04-26 2012-09-12 华为技术有限公司 Precision time protocol (PTP) clock source switching method, master and slave clock devices and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7980378B2 (en) * 2006-03-23 2011-07-19 Cummins-Allison Corporation Systems, apparatus, and methods for currency processing control and redemption
CN101340436A (en) * 2008-08-14 2009-01-07 普天信息技术研究院有限公司 Method and apparatus implementing remote access control based on portable memory apparatus
CN102299747A (en) * 2010-06-22 2011-12-28 上海云途信息技术有限公司 Device, system and method for performing safe data communication based on sound waves
CN102307216A (en) * 2011-03-15 2012-01-04 陈建国 Peer-to-peer (P2P) stream media broadcast method and system for multimedia telephone
CN102664726A (en) * 2012-04-26 2012-09-12 华为技术有限公司 Precision time protocol (PTP) clock source switching method, master and slave clock devices and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559158A (en) * 2015-09-29 2017-04-05 国网智能电网研究院 A kind of mobile device data exchange method based on timestamp
CN106559158B (en) * 2015-09-29 2018-12-04 国网智能电网研究院 A kind of mobile device data exchange method based on timestamp
CN106354839A (en) * 2016-08-31 2017-01-25 国信优易数据有限公司 Method and system for detecting data timeliness
CN106354839B (en) * 2016-08-31 2019-12-17 国信优易数据有限公司 Method and system for detecting timeliness of data
CN107919933A (en) * 2017-11-17 2018-04-17 深圳市泉眼网络科技有限公司 A kind of method, apparatus, mobile terminal and the storage medium of time renewal
CN110690936A (en) * 2018-07-06 2020-01-14 腾讯科技(深圳)有限公司 Time control method, system and computer system in service operation
CN109377679A (en) * 2018-09-03 2019-02-22 深圳壹账通智能科技有限公司 Withdrawal method and terminal device

Also Published As

Publication number Publication date
CN103957258B (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN103957258A (en) Trans-regional data communication method and system
CN106209948B (en) A kind of data push method and device
CN101595668B (en) Method and system for establishing a logical path between servers in a coordinated timing network
KR101750429B1 (en) Document editing system and method for collaborative editing
CN110659907B (en) Method and device for executing intelligent contracts
CN107193672B (en) Cross-block asynchronous contract calling system
CN103139157A (en) Network communication method based on socket, device and system
WO2021147793A1 (en) Data processing method, apparatus and system, electronic device and computer storage medium
CN103198007A (en) Multi-process log output method and system
CN102523109A (en) Resource state updating method, management client ends, and server
CN103677988A (en) Multi-process communication method and system for software system
US10009425B1 (en) Synchronization of transactions utilizing multiple distributed cloud-based services
WO2024012567A1 (en) System integration method and apparatus, and electronic device
CN107734034B (en) Server docking system, method, computer-readable storage medium and front-end processor
CN112511636B (en) Data transmission system, method, device, computer equipment and storage medium
CN111935316B (en) Method and device for acquiring front-end equipment catalog
CN115167874A (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN103945237A (en) Clock synchronization method and system, digital television equipment and EPG server
US9860112B2 (en) Techniques for synchronizing operations between regions when a network connection fails
CN104185169A (en) Stator synchronization method of air write card, device and system thereof
CN113377385A (en) Client automatic deployment method and device
CN114116375A (en) Data transmission method and device based on PLDM protocol
CN106357764A (en) Data synchronization method and sever of mobile terminal
CN105763640B (en) A kind of virtual machine managing and control system under cloud computing environment
CN106445694A (en) Application access method, device and system

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