CN104639471B - A kind of method of message subpackage processing - Google Patents
A kind of method of message subpackage processing Download PDFInfo
- Publication number
- CN104639471B CN104639471B CN201310546163.5A CN201310546163A CN104639471B CN 104639471 B CN104639471 B CN 104639471B CN 201310546163 A CN201310546163 A CN 201310546163A CN 104639471 B CN104639471 B CN 104639471B
- Authority
- CN
- China
- Prior art keywords
- message
- subpackage
- data
- frame
- 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.)
- Active
Links
Abstract
The present invention discloses a kind of method of message subpackage processing, includes the following steps:Receive the message data subpackage serially issued, wherein the message data subpackage carries out subpackage acquisition by treating the affairs message issued;When some message data subpackage processing failure, the processing operation of all message data subpackages received including the message data subpackage of the processing failure is subjected to rollback.Overall integrity of the message data packet being made of now multiple packetized data packets in fact in transmission process, and there is good safety.
Description
Technical field
The present invention relates to technical field of the computer network, more particularly to a kind of method of message subpackage processing.
Background technology
In the prior art, will not include the processing there is no handling when some message data subpackage processing failure yet
The processing operation of all message data subpackages received including the message data subpackage of failure carries out rollback.
Moreover, in general, during carrying out message transmissions, directly message can be handed between server end and client
Mutually, the safety of message transmissions can be caused poor in this way.
Invention content
The purpose of the present invention is to provide a kind of methods of message subpackage processing, in fact now by multiple packetized data packet structures
At overall integrity of the message data packet in transmission process, and there is good safety.
A kind of method of message subpackage processing provided for achieving the object of the present invention, includes the following steps:
Receive the message data subpackage serially issued, wherein the message data subpackage is by treating the affairs report issued
Text carries out subpackage acquisition;
It, will be all including the message data subpackage of the processing failure when some message data subpackage processing failure
The processing operation of the message data subpackage received carries out rollback.
More preferably, described to carry out the subpackage acquisition message data subpackage by treating the affairs message issued, including such as
Lower step:
Affairs message to be issued is divided into multiple message data subpackages with same Transaction Identifier.
More preferably, the message subpackage processing method, further includes following steps:
Message data subpackage setting finally to issue indicates that the affairs issue the end of identification finished.
More preferably, the message subpackage processing method, further includes following steps:
When being not received by next message data subpackage in preset time interval, then by all messages received
The processing operation of data subpackage carries out rollback.
More preferably, the message subpackage processing method, further includes following steps:
Message is encrypted, and is added unpacks information in messages, by accepting after client framework decryption message to text
Part, which is unpacked and is sent to, accepts frame conjunction packet.
More preferably, described that message is encrypted, and information of unpacking is added in messages, by accepting client framework decryption
It is unpacked and is sent to file after message and accept frame conjunction packet, included the following steps:
Client application calls local interface to initiate data transfer request;
It accepts client framework and generates handshake message;
It accepts client framework and checks message size;
Use aes(Advanced Encryption Standard, Advanced Encryption Standard)Algorithm for encryption handshake message;
It transmits data to and accepts frame;
Accept frame ciphertext data, the information of Examined effect message;
It accepts frame and generates response message;Server end generates signcode and is encrypted with user certificate, if definition is logical
Letter mode is that the password that transmits every time is all different, then is required for generating signcode each time, if the communication mode of definition is
Password is identical, then same password is used only within the effective time of communication, otherwise, using different passwords, if definition
Communication mode be use digital envelope, then the transmission of business datum each time all use digital envelope;
Whether accept in frame Examined effect message has subpackage information;If including information of unpacking, checks that server end is
It is no to have the partial data uploaded, subpackage information is generated, response message is added in subpackage information;
With aes encrypted response messages, returned packet is accepted client framework;
Accept client framework decryption message;
Indicate algorithm for encryption at digital envelope according to data business datum;
If subpackage has multiple data packets, it is necessary to which multiple data packets are encrypted to digital envelope respectively;Each data
Package dresses up transmission message;
Transmission data packet;
Accept frame difference decryption technology message and according to technology message decryption services message;
If technology message includes subpackage information, unloading subpackage information needs to judge whether that all packets are all transmitted,
If be all transmitted, to merge the packet of transmission, then to 14 steps, otherwise, return to the technology message shaken hands, including passing not yet
Defeated test serial number;
Accept frame record log;
Frame is accepted to E-Packet;
Frame encryption application handling result is accepted, with aes encryption technology messages;
It accepts frame data is sent back to and accept client framework;
Accept client framework decryption technology message and service message;
It accepts frame and handling result is returned to upper layer application.
More preferably, described that message is encrypted, and information of unpacking is added in messages, by accepting client framework decryption
It is unpacked and is sent to file after message and accept frame conjunction packet, included the following steps:
Client framework is accepted when message data is more than 1M, cryptographic handshake report after information of unpacking is added in handshake message
Text:
It accepts and generates response message after handshake message is decrypted in frame, if any information of unpacking in handshake message, then will
Response message is added in information of unpacking, and response message is encrypted;
It accepts client framework response message is decrypted and file is unpacked, transmitting message after encryption;After decryption
Response message in comprising unpack information when, accept client framework analysis and unpack information, and processing of unpacking is carried out to message, divide
After packet encryption, start transmitting message;
After accepting frame decryption message, record log and merging data packet.
The method of the message subpackage processing of the present invention, when carrying out the issued transaction of more messages, by whole message into line number
It issues according to the division parallel series of subpackage, when handling message data subpackage, when there is the situation of processing failure, will wrap
The processing operation for including all message data subpackages received including the message data subpackage of the processing failure carries out rollback, protects
It demonstrate,proves all message data subpackages to execute as a whole, so as to meet the message number being made of multiple packetized data packets
According to overall integrity demand of the packet in transmission process, further, the safety of message transmissions is provided by encryption and decryption.
Description of the drawings
Fig. 1 is the method flow diagram of the message subpackage processing of one embodiment according to the present invention.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to keep the objectives, technical solutions, and advantages of the present invention more clear thorough
The method of the message subpackage processing of the present invention is further elaborated.It should be appreciated that specific embodiment described herein
It is only used to explain the present invention, be not intended to limit the present invention.
The method of message encryption and decryption subpackage processing of the present invention, the method includes:
Receive the message data subpackage serially issued, wherein the message data subpackage is by treating the affairs report issued
Text carries out subpackage acquisition;
It, will be all including the message data subpackage of the processing failure when some message data subpackage processing failure
The processing operation of the message data subpackage received carries out rollback.
Preferably, described to carry out the subpackage acquisition message data subpackage by treating the affairs message issued, including:
Affairs message to be issued is divided into multiple message data subpackages with same Transaction Identifier.
Further, the method further includes:
Message data subpackage setting finally to issue indicates that the affairs issue the end of identification finished.
Further, the method further includes:
When being not received by next message data subpackage in preset time interval, then by all messages received
The processing operation of data subpackage carries out rollback.
The method of message subpackage processing of the present invention, is further encrypted message, and information of unpacking is added in messages,
Frame conjunction packet is accepted by being unpacked and being sent to file after accepting client framework decryption message.
1, client application calls local interface to initiate data transfer request;
2, it accepts client framework and generates handshake message;
3, it accepts client framework and checks message size;
If 1) message size is more than 1M, letter increases subpackage breath in handshake message
4, with aes algorithm for encryption handshake message(Service message item data is sky, and signature message data item is sky);
5, it transmits data to and accepts frame;
6, frame ciphertext data, the information of Examined effect message, as whether client manufacturer registers, whether user notes are accepted
Volume etc.;
7, it accepts frame and generates response message;Server end generates signcode and is encrypted with user certificate(If definition
Communication mode is that the password that transmits every time is all different, then is required for generating signcode each time, if the communication mode of definition
It is that password is identical, then only within the effective time of communication(Client has the case where uploading data in 30 minutes)Using same
Password, otherwise, using different passwords, if the communication mode of definition is to use digital envelope, business datum each time
Transmission all uses digital envelope, pays attention to:Illustrated with digital envelope in following step)
Whether 8, accept in frame Examined effect message has subpackage information;
1) include information of unpacking, check whether server end has the partial data uploaded;
2) subpackage information is generated;
3) response message is added in subpackage information;
9, with aes encrypted response messages, returned packet is to being accepted client framework;
10, client framework decryption message is accepted;
11, indicate algorithm for encryption at digital envelope according to data business datum;
1) if subpackage has multiple data packets, it is necessary to which multiple data packets are encrypted to digital envelope respectively(If communication
Mode is digital envelope, if communication mode is not digital envelope, symmetric cryptography is used only, similarly hereinafter);
2) each data packet group is dressed up transmission message;
12, transmission data packet;
13, frame difference decryption technology message is accepted and according to technology message decryption services message;
If 1) technology message includes subpackage information, unloading subpackage information needs to judge whether that all packets all transfer
At if be all transmitted, merging the packet of transmission, then to 14 steps, otherwise, the technology message shaken hands be returned to, including not having also
There is the test serial number of transmission;
14, frame record log is accepted;
15, frame is accepted to E-Packet;
16, frame encryption application handling result is accepted(Digital envelope is made with user certificate), with aes encryption technologies
Message;
17, it accepts frame data is sent back to and accept client framework;
18, client framework decryption technology message and service message are accepted;
19, it accepts frame and handling result is returned to upper layer application.
As a kind of embodiment, an embodiment of the present invention provides a kind of encryption and decryption subpackage of message processing, such as Fig. 1 institutes
Show, may comprise steps of:
Step 201 accepts client framework when message data is more than 1M, adds after information of unpacking is added in handshake message
Close handshake message;
In the step, processing of the client framework for message is accepted, message is analyzed first, data are more than 1M
When, handshake message is added in the information that will unpack.Certainly, it needs to carry out subpackage to message when we can also be set in how many data volumes.
Step 202 accepts and generates response message after handshake message is decrypted in frame, if any letter of unpacking in handshake message
Breath, then response message is added in the information that will unpack, and response message is encrypted.
In the step, accepts frame and decryption has been carried out to message, analysis, has handled unpack information and encrypted operation.
Step 203 accepts client framework and is decrypted to response message and file is unpacked, transmitting message after encryption.
When including to unpack information in the response message after decryption, accepts client framework and analyze information of unpacking, and to report
Text carries out processing of unpacking and starts transmitting message after subpackage encryption.
Step 204, after accepting frame decryption message, record log and merging data packet.
Message is all to encrypt before transmission during being transmitted between accepting frame and accepting client framework, is received
After decrypt.Information of unpacking in ultimate analysis message, and all subpackages are subjected to conjunction package operation.With the difference of the prior art
It is, present example primarily focuses on the safety in document transmission process.
The method of the message subpackage processing of the present invention, when carrying out the issued transaction of more messages, by whole message into line number
It issues according to the division parallel series of subpackage, when handling message data subpackage, when there is the situation of processing failure, will wrap
The processing operation for including all message data subpackages received including the message data subpackage of the processing failure carries out rollback, protects
It demonstrate,proves all message data subpackages to execute as a whole, so as to meet the message number being made of multiple packetized data packets
It carries out after subpackage and encrypts according to overall integrity demand of the packet in transmission process, while to the message of big data quantity, for report
The safety of text transmission has greatly improved, and improves its safety.
Finally it should be noted that it will be apparent that those skilled in the art can carry out various changes and change to the present invention
Type is without departing from the spirit and scope of the present invention.If being wanted in this way, these modifications and changes of the present invention belongs to right of the present invention
Ask and its equivalent technologies within the scope of, then the present invention be also intended to include these modification and variations.
Claims (5)
1. a kind of method of message subpackage processing, which is characterized in that include the following steps:
Receive the message data subpackage that serially issues, wherein the message data subpackage by treat the affairs message issued into
Row subpackage obtains;
When some message data subpackage processing failure, all including the message data subpackage of the processing failure have been connect
The processing operation of the message data subpackage of receipts carries out rollback;
Message is encrypted, and is added unpacks information in messages, by accept after client framework decryption message to file into
Row, which is unpacked and is sent to, accepts frame conjunction packet, includes the following steps:
Client application calls local interface to initiate data transfer request;
It accepts client framework and generates handshake message;
It accepts client framework and checks message size;
With aes algorithm for encryption handshake message;
It transmits data to and accepts frame;
Accept frame ciphertext data, the information of Examined effect message;
It accepts frame and generates response message;Server end generates signcode and is encrypted with user certificate, if the communication party of definition
Formula is that the password that transmits every time is all different, then is required for generating signcode each time, if the communication mode of definition is password
It is identical, then same password is used only within the effective time of communication, otherwise, using different passwords, if definition is logical
Letter mode is to use digital envelope, then the transmission of business datum each time all uses digital envelope;
Whether accept in frame Examined effect message has subpackage information;If including information of unpacking, checks whether server end has
The partial data uploaded generates subpackage information, and response message is added in subpackage information;
With aes encrypted response messages, returned packet is accepted client framework;
Accept client framework decryption message;
Indicate algorithm for encryption at digital envelope according to data business datum;
If subpackage has multiple data packets, it is necessary to which multiple data packets are encrypted to digital envelope respectively;Each data packet group
Dress up transmission message;
Transmission data packet;
Accept frame difference decryption technology message and according to technology message decryption services message;
If technology message includes subpackage information, unloading subpackage information needs to judge whether that all packets are all transmitted, if
It is all transmitted, to merge the packet of transmission, then arrive following frame record logs that accept and walk, otherwise, return to the technology report shaken hands
Text, including the test serial number of transmission not yet;
Accept frame record log;
Frame is accepted to E-Packet;
Frame encryption application handling result is accepted, with aes encryption technology messages;
It accepts frame data is sent back to and accept client framework;
Accept client framework decryption technology message and service message;
It accepts frame and handling result is returned to upper layer application.
2. message subpackage processing method according to claim 1, which is characterized in that described by treating the affairs report issued
Text carries out subpackage and obtains the message data subpackage, includes the following steps:
Affairs message to be issued is divided into multiple message data subpackages with same Transaction Identifier.
3. message subpackage processing method according to claim 1, which is characterized in that further include following steps:
Message data subpackage setting finally to issue indicates that the affairs issue the end of identification finished.
4. message subpackage processing method according to claim 1, which is characterized in that further include following steps:
When being not received by next message data subpackage in preset time interval, then by all message datas received
The processing operation of subpackage carries out rollback.
5. message subpackage processing method according to claim 1, which is characterized in that it is described that message is encrypted, and
Information of unpacking is added in message, frame conjunction is accepted by being unpacked and being sent to file after accepting client framework decryption message
Packet, includes the following steps:
Client framework is accepted when message data is more than 1M, cryptographic handshake message after information of unpacking is added in handshake message:
It accepts and generates response message after handshake message is decrypted in frame, if any information of unpacking in handshake message, then will unpack
Response message is added in information, and response message is encrypted;
It accepts client framework response message is decrypted and file is unpacked, transmitting message after encryption;Sound after decryption
Answer in message includes to accept client framework when unpacking information and analyze information of unpacking, and carry out processing of unpacking to message, subpackage adds
After close, start transmitting message;
After accepting frame decryption message, record log and merging data packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310546163.5A CN104639471B (en) | 2013-11-06 | 2013-11-06 | A kind of method of message subpackage processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310546163.5A CN104639471B (en) | 2013-11-06 | 2013-11-06 | A kind of method of message subpackage processing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104639471A CN104639471A (en) | 2015-05-20 |
CN104639471B true CN104639471B (en) | 2018-08-24 |
Family
ID=53217800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310546163.5A Active CN104639471B (en) | 2013-11-06 | 2013-11-06 | A kind of method of message subpackage processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104639471B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101640690A (en) * | 2009-08-27 | 2010-02-03 | 华为技术有限公司 | Method and system for guaranteeing network security as well as DHCP server and client |
CN102123079A (en) * | 2010-12-31 | 2011-07-13 | 华为技术有限公司 | Method and device for processing transaction message |
CN102801616A (en) * | 2012-08-02 | 2012-11-28 | 华为技术有限公司 | Message sending and receiving method, device and system |
CN103139222A (en) * | 2013-03-19 | 2013-06-05 | 成都卫士通信息产业股份有限公司 | Internet protocol security (IPSEC) tunnel data transmission method and device thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030101346A1 (en) * | 2000-02-29 | 2003-05-29 | Barron Austin Kesler | Method for notarizing receipt of electronic communications and enabling electronic registered mail; method for verifying identity of account party |
-
2013
- 2013-11-06 CN CN201310546163.5A patent/CN104639471B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101640690A (en) * | 2009-08-27 | 2010-02-03 | 华为技术有限公司 | Method and system for guaranteeing network security as well as DHCP server and client |
CN102123079A (en) * | 2010-12-31 | 2011-07-13 | 华为技术有限公司 | Method and device for processing transaction message |
CN102801616A (en) * | 2012-08-02 | 2012-11-28 | 华为技术有限公司 | Message sending and receiving method, device and system |
CN103139222A (en) * | 2013-03-19 | 2013-06-05 | 成都卫士通信息产业股份有限公司 | Internet protocol security (IPSEC) tunnel data transmission method and device thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104639471A (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10880732B2 (en) | Authentication of phone caller identity | |
EP3391620B1 (en) | Systems and methods for secure multi-party communications using a proxy | |
CN109088889B (en) | SSL encryption and decryption method, system and computer readable storage medium | |
CN103118027B (en) | The method of TLS passage is set up based on the close algorithm of state | |
CN109194625B (en) | Client application protection method and device based on cloud server and storage medium | |
CN103546289B (en) | USB (universal serial bus) Key based secure data transmission method and system | |
US20140195804A1 (en) | Techniques for secure data exchange | |
CN107800675A (en) | A kind of data transmission method, terminal and server | |
EP3157195B1 (en) | Communication protocol testing method, and tested device and testing platform thereof | |
US10505984B2 (en) | Exchange of control information between secure socket layer gateways | |
CN111131416A (en) | Business service providing method and device, storage medium and electronic device | |
CN103036880A (en) | Network information transmission method, transmission equipment and transmission system | |
TW201537937A (en) | Unified identity authentication platform and authentication method thereof | |
CN112804217B (en) | Block chain technology-based evidence storing method and device | |
WO2017006118A1 (en) | Secure distributed encryption system and method | |
CN115622772A (en) | Financial data transmission method and application gateway for financial business service | |
JP2013008140A (en) | Single sign-on system, single sign-on method and authentication server cooperation program | |
CN112600667B (en) | Key negotiation method, device, equipment and storage medium | |
CN112261002B (en) | Data interface docking method and device | |
US20130283363A1 (en) | Secure data transfer over an arbitrary public or private transport | |
CN117081736A (en) | Key distribution method, key distribution device, communication method, and communication device | |
CN104639471B (en) | A kind of method of message subpackage processing | |
WO2022028391A1 (en) | Data cloud service method and communication apparatus | |
CN106911625B (en) | Text processing method, device and system for safe input method | |
CN111049798A (en) | Information processing method and device and computer readable storage medium |
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 |