CN108234393B - Method and device for optimizing data link layer message - Google Patents
Method and device for optimizing data link layer message Download PDFInfo
- Publication number
- CN108234393B CN108234393B CN201611154237.0A CN201611154237A CN108234393B CN 108234393 B CN108234393 B CN 108234393B CN 201611154237 A CN201611154237 A CN 201611154237A CN 108234393 B CN108234393 B CN 108234393B
- Authority
- CN
- China
- Prior art keywords
- data
- service
- request
- domain
- message
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
- H04L9/0625—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation with splitting of the data block into left and right halves, e.g. Feistel based algorithms, DES, FEAL, IDEA or KASUMI
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
- H04L9/0631—Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A method and apparatus for optimizing data link layer message, the method includes receiving the business request of the user, and obtain the request message of the business request, the request message includes message header and application data; analyzing the request message, confirming the service type of the service request, and acquiring a data domain list of application data according to the service type; analyzing the data domain list to obtain basic data in the data domain; according to the service type, assembling the basic data according to a preset sequence to obtain complete service data; and processing the complete service data according to the service logic to generate service feedback information, packaging the service feedback information according to a data domain list corresponding to the service type and a preset sequence, and sending the feedback information to the mobile terminal. The data are encrypted through the security levels of different data fields, so that the network transmission efficiency of the data is effectively improved, and the work load of encrypting and decrypting the transmitted data in the interaction process is reduced.
Description
Technical Field
The invention relates to the field of computer networks and computer software, in particular to a method and a device for optimizing data link layer messages.
Background
Along with the popularization of smart phones and the arrival of the internet era, more and more enterprises interface their core services to a mobile phone platform, wherein sensitive information such as business data, user order information, online banking payment information and the like of the enterprises are inevitably involved. The Jingdong digital gathering is a mobile phone App platform bearing a Jingdong big data mobile report.
At present, in the aspect of ensuring the data security of a link layer, a secure communication channel for providing data confidentiality and integrity is generally established by taking secure access and channel encryption as means. In order to realize channel security, a Virtual Private Network (VPN) is usually adopted in the prior art, that is, a private network is established on a public network to perform encrypted communication; for the encryption method of the transmission data, the encryption algorithms such as Des encryption and Aes encryption are commonly used to encrypt the data in the network transmission.
However, the prior art has the following disadvantages:
1. because the VPN is high in cost and inconvenient to use, the VPN cannot be popularized to a large group of users as a conventional means, and the VPN also has technical hidden dangers, and occasionally some security vulnerabilities are exposed.
2. After data is encrypted by adopting an encryption mode, the network transmission efficiency of the data is reduced due to overlarge data packets, and the encryption and decryption operations are required to be carried out on the transmission data on both the mobile terminal and the server side, so that the system burden is increased, and the use by a user is not facilitated.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for optimizing a data link layer packet, which can encrypt according to a security level of a data domain without encrypting data transmitted through a whole network, thereby reducing the magnitude of data transmission, effectively improving network transmission efficiency, and reducing the work load of encrypting and decrypting transmission data in an interaction process between a mobile terminal and a server.
The technical scheme of the invention is to provide a method for optimizing data link layer messages, which comprises the following steps:
receiving a service request of a user and acquiring a request message of the service request, wherein the request message comprises a message header and application data;
analyzing the request message, confirming the service type of the service request, and acquiring a data domain list of the application data according to the service type;
analyzing the data domain list to obtain basic data in the data domain;
according to the service type, assembling the basic data according to a preset sequence to obtain complete service data;
and processing the complete service data according to service logic to generate service feedback information, packaging the service feedback information according to the data domain list corresponding to the service type and the preset sequence, and sending the feedback information to the mobile terminal.
Optionally, the request packet further includes: message length and TPEU.
Optionally, the data domain list includes, but is not limited to, mandatory domain, conditional domain, optional domain, encrypted domain, and a selectable combination thereof.
Optionally, the step of parsing the data field list and obtaining the basic data in the data field further includes: and if the data domain list comprises the encrypted domain, obtaining the encrypted data in the encrypted domain after decryption by a specified key.
Optionally, the encryption method includes: aes encryption or Des encryption.
The invention also provides a device for optimizing the data link layer message, which comprises:
a request receiving module, configured to receive the service request and obtain a request packet of the service request, where the request packet includes a packet header and application data;
the message analysis module is used for analyzing the request message, confirming the service type of the service request and acquiring a data domain list of the application data according to the service type;
the data analysis module is used for analyzing the data domain list to obtain basic data in the data domain;
the data assembling module is used for assembling the basic data according to the service type and a preset sequence to obtain complete service data;
and the service feedback module is used for processing the complete service data according to service logic to generate service feedback information, packaging and encrypting the service feedback information according to a preset data domain corresponding to the service type and a preset sequence, and sending the feedback information to the mobile terminal.
Optionally, the request packet further includes: message length and TPEU.
Optionally, the data domain list includes, but is not limited to, mandatory domain, conditional domain, optional domain, encrypted domain, and a selectable combination thereof.
Optionally, the data parsing module is further configured to: and if the data domain list comprises the encrypted domain, obtaining the encrypted data in the encrypted domain after decryption by a specified key.
Optionally, the encryption method includes: aes encryption and Des encryption.
The present invention also provides a terminal device for optimizing a data link layer packet, the terminal device comprising: a memory to store instructions and a processor to execute the instructions to:
receiving a service request of a user and acquiring a request message of the service request, wherein the request message comprises a message header and application data;
analyzing the request message, confirming the service type of the service request, and acquiring a data domain list of the application data according to the service type;
analyzing the data domain list to obtain basic data in the data domain;
according to the service type, assembling the basic data according to a preset sequence to obtain complete service data;
and processing the complete service data according to service logic to generate service feedback information, packaging the service feedback information according to the data domain list corresponding to the service type and the preset sequence, and sending the feedback information to the mobile terminal.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an apparatus.
An apparatus of an embodiment of the present invention includes: a processor; and a storage device, configured to store a program, where when the program is executed by the processor, the processor is enabled to implement the method for optimizing a data link layer packet according to the embodiment of the present invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium.
A computer readable medium of an embodiment of the present invention stores thereon a computer program, and when the computer program is executed by a processor, the computer program implements the method for optimizing a data link layer packet of an embodiment of the present invention.
The method and the device for optimizing the data link layer message can realize the self-definition of the type, the preset sequence and the parameter rule of the data domain, and can be packaged into a plurality of groups of data domains of different types according to the data of different service types on the premise of enhancing the data security, thereby expanding the service range of the data message and reducing the coupling degree between data. In addition, the invention can also encrypt the data domains respectively according to the security levels of the data domains without encrypting the data transmitted by the whole network, thereby reducing the magnitude of data transmission, effectively improving the network transmission efficiency and reducing the work load of encrypting and decrypting the transmitted data in the interaction process of the mobile terminal and the server.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. In the drawings:
fig. 1 is a schematic flowchart of a method for optimizing a data link layer packet according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus for optimizing data link layer packets according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal device for optimizing a data link layer packet according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
In this context, it is to be understood that, in the terms referred to:
the IOS8583 is a type of message protocol, which is used mostly for financial transactions.
Des encryption is a symmetric encryption algorithm, probably the most widely used key system, and in particular in securing financial data, the originally developed DEA is embedded in hardware.
Aes encryption: the cryptography is also known as Rijndael encryption, which is a block encryption standard adopted by the federal government in the united states. This standard, which is used to replace the original DES, has been analyzed by many parties and is widely used throughout the world.
The BCD code (Binary-Coded Decimal), also known as Binary Coded Decimal or Binary-Coded Decimal code, is a Binary digital code format.
Exemplary method
The optimized data link layer messaging method of the exemplary embodiment of the present invention is described below with reference to fig. 1.
Fig. 1 is a flowchart of a method for optimizing a data packet according to an embodiment of the present invention.
As shown, the method for optimizing data link layer messages may include:
step S101: receiving a service request of a user and acquiring a request message of the service request, wherein the request message comprises a message header and application data;
step S102: analyzing the request message, confirming the service type of the service request, and acquiring a data domain list of the application data according to the service type;
step S103: analyzing the data domain list to obtain basic data in the data domain;
step S104: according to the service type, assembling the basic data according to a preset sequence to obtain complete service data;
step S105: and processing the complete service data according to service logic to generate service feedback information, packaging the service feedback information according to the data domain list corresponding to the service type and the preset sequence, and sending the feedback information to the mobile terminal.
Optionally, the request packet further includes: message length and TPEU.
Optionally, the data domain list includes, but is not limited to, mandatory domain, conditional domain, optional domain, encrypted domain, and a selectable combination thereof.
Optionally, the step of parsing the data field list and obtaining the basic data in the data field further includes:
and if the data domain list comprises the encrypted domain, obtaining the encrypted data in the encrypted domain after decryption by a specified key.
Examples
The present invention will be described in detail with reference to a specific embodiment, but it should be noted that the specific embodiment is only for better describing the present invention and should not be construed as limiting the present invention.
Step S101: receiving a service request of a user, and acquiring a request message of the service request, wherein the request message comprises a message header and application data.
Specifically, the service terminal and the mobile terminal communicate in a connection-oriented Socket mode based on a TCP/IP protocol. The mobile terminal is the initiator of each communication interaction, and the service terminal responds to the service request of each accessed mobile terminal. According to the user input information and the service operation, and after the user confirmation, the mobile terminal sends a service request to the service terminal. The data packet organization adopts an ISO8583 packet protocol, and the data packet structure can be represented by the following table 1, where the data packet structure is: "message length + TPDU (protocol format) + message header + application data", wherein: the "packet length" indicates the total packet length. In one embodiment of the present invention, the total length of the header is 12 bytes, and the header is compressed by BCD code to be expressed as a value with a length of 6 bytes. "TPDU (transport protocol data unit)" includes ID, destination address, source address; the "header" includes: application type, software version number, terminal state, processing requirement, reserved field and the like; the "application data" includes: ISO8583Msg, transaction data, data element definitions, etc.
TABLE 1
In the process of sending the request message, when the application program of the mobile terminal is packed and sent, the parameters such as the application type, the software version number, the terminal state and the like in the data message are filled according to the relevant self-defined information of the mobile terminal, so that the service terminal can correspondingly process the service request according to the filled value after receiving the service request.
For example: the "application category" can be "customized" as:
the financial payment application is as follows: 60. the value added service payment is as follows: 62. the number aggregation universal service is as follows: 61
The "software version number" can be customized as:
initial version: 21. the starting date: 23
The "terminal state" can be customized as:
normal transaction state: 0. and (3) testing the transaction state: 1
The "processing requirements" can be customized as: no processing requirement: 0. reprocessing 1
It should be noted that, in the response message returned by the service terminal, the service terminal fills in the "processing requirement", other parameters keep the original value and return, and the mobile terminal performs corresponding processing according to the processing requirement in the message header of the received return message.
Step S102: and analyzing the request message, confirming the service type of the service request, and acquiring a data domain list of the application data according to the service type.
Specifically, a "data field list" in the application data corresponding to the "application type" is acquired according to the parameter of the "application type" in the header of the request packet.
For example, the different applications correspond to the following data field list, and a sample table of the data field list may be as shown in table 2:
the data field with the service type of financial payment application is as follows: MCE
The data field for payment of value added service type is as follows: MCO
The data domain of the service type of the aggregation universal service is as follows: MO (metal oxide semiconductor)
TABLE 2
Step S103: analyzing the data domain list to obtain basic data in the data domain; wherein the basic data of the data field comprises: message type, transaction type, data element; in an embodiment of the present invention, the length of the message type of the data field is 4 bytes, which is used to define the message type; the length of the service data is 16 bytes, and the service data is used for defining different service classes; the data elements are of indefinite length bytes in length and contain the actual data of the data field.
Specifically, if the data field list includes an encrypted field, the data related to the service in the encrypted field that needs to be encrypted is obtained after decryption by the specified key. The encrypted data can adopt an Aes encryption algorithm or a Des encryption algorithm, and the plaintext data can be obtained after decryption by using a specified key.
Step S104: according to the service type, assembling the basic data according to a preset sequence to obtain complete service data;
step S105: and processing the complete service data according to service logic to generate service feedback information, packaging the service feedback information according to the data domain list corresponding to the service type and the preset sequence, and sending the feedback information to the mobile terminal.
For example, the following steps are carried out:
taking user consumption as an example, when the current user consumes 100 yuan, the mobile terminal uploads user consumption data to the service terminal. After the service terminal verifies the message, 100 yuan is subtracted from the balance (1000 yuan) of the user, and balance information (900 yuan) is fed back to the mobile terminal. In this process, the following message data are involved:
1. request message sent up
Message header:
the application categories are: 60 (for financial payment applications)
Software version number: 2123 (initial version 21 start date 23)
The terminal state: 0 (Normal transaction state)
The treatment requirements are as follows: 2 (transaction report)
Since the application category in the basic data of the packet is 60, the application category is defined as: the financial payment application is made by agency, and the preset sequence of the application data corresponding to the application is as follows:
MCE, namely: mandatory domain + conditional domain + encrypted domain,
wherein, the mandatory domain: message type: 0320, representing a transaction request;
condition field: 20160501000000, indicating a transaction send time condition;
encryption domain: user name, account number, password, amount and the like (encrypted by AES).
2. Business logic for processing data by service terminal
After the uploaded request message is correctly analyzed, the background service terminal performs data processing according to the following service logic:
(1) acquiring user information according to the account;
(2) verifying the legality of the user name and the password, entering the next step if the user name and the password pass the legality, and otherwise, reflecting the abnormity;
(3) verifying whether the current user balance is larger than the uploaded consumption amount, if the current user balance is verified to be passed, carrying out the next step, and if not, reacting abnormally;
(4) and subtracting the consumption amount from the balance, repeating the remaining amount, and returning the remaining amount data.
3. Packaging the message and sending the feedback information to the mobile terminal
Wherein the feedback information includes: the application data and the header of the message,
the application data includes:
(1) encrypting the user name, the account number, the password and the residual amount data by adopting AES encryption, and taking the encrypted data as an encryption domain;
(2) 20160501000011 (transaction processing completion time) as a time condition field;
(3) 0330 (transaction result return) message type as mandatory field;
(4) the application data is composed of a mandatory domain, a conditional domain and an encryption domain, and the application data comprises the following components in a preset sequence: the MCE, i.e., the mandatory domain + the conditional domain + the encrypted domain, is arranged in that order.
(II) the return message header comprises:
the application categories are: 60 (for financial payment applications)
Software version number: 2123 (initial version 21 start date 23)
The terminal state: 0 (Normal transaction state)
The treatment requirements are as follows: 3 (return transaction result).
And finally, the mobile terminal receives and analyzes the feedback information returned by the service terminal to obtain a return message of the feedback information.
If the return message is a transaction result message, analyzing the transaction result message and displaying a transaction result;
if the return message is a write command message, the write command is sent to the SQLITE database one by one, the operation result is sent to the service terminal in a data message mode, and the feedback information returned by the service terminal is continuously waited;
if the 'transaction state is abnormal' (the reason may be that no APDU response is received, the message reception of the service terminal is overtime or other reasons), the mobile terminal may send a transaction retry request message to the service terminal for the transaction supporting the retry mechanism, so as to continue the transaction.
Fig. 2 is a schematic diagram of an apparatus for optimizing data link layer packets according to an embodiment of the present invention, where the apparatus 2 includes:
a request receiving module 21, configured to receive a service request of a user and obtain a request packet of the service request, where the request packet includes a packet header and application data;
a message parsing module 22, configured to parse the request message, determine a service type of the service request, and obtain a data domain list of the application data according to the service type;
the data analysis module 23 is configured to analyze the data domain list to obtain basic data in the data domain;
the data assembling module 24 is configured to assemble the basic data according to a preset sequence according to the service type to obtain complete service data;
and the service feedback module 25 is configured to process the complete service data according to service logic to generate service feedback information, package the service feedback information according to the data field corresponding to the service type and the preset sequence, and send the feedback information to the mobile terminal.
Optionally, the request packet further includes: message length and TPEU.
Optionally, the data domain list includes, but is not limited to, mandatory domain, conditional domain, optional domain, encrypted domain, and a selectable combination thereof.
Optionally, the data parsing module 24 is further configured to: and if the data domain list comprises the encrypted domain, obtaining the encrypted data in the encrypted domain after decryption by a specified key.
Optionally, the encryption method includes: aes encryption and Des encryption.
The device for optimizing the data link layer message provided by the invention is a device corresponding to the method, so the description is omitted.
Fig. 3 is a configuration diagram of a terminal apparatus for optimizing a data link layer packet according to the present invention, where the terminal apparatus 3 includes: a memory 31 and a processor 32, wherein the memory 31 is configured to store instructions, and the processor 32 is configured to execute the instructions to:
receiving a service request of a user and acquiring a request message of the service request, wherein the request message comprises a message header and application data;
analyzing the request message, confirming the service type of the service request, and acquiring a data domain list of the application data according to the service type;
analyzing the data domain list to obtain basic data in the data domain;
according to the service type, assembling the basic data according to a preset sequence to obtain complete service data;
and processing the complete service data according to service logic to generate service feedback information, packaging the service feedback information according to the data domain list corresponding to the service type and the preset sequence, and sending the feedback information to the mobile terminal.
The method, the device and the terminal device for optimizing the data link layer message can realize the self-definition of the type, the preset sequence and the parameter rule of the data domain, and can be packaged into a plurality of groups of data domains of different types according to the data of different service types on the premise of enhancing the data security, thereby expanding the service range of the data message and reducing the coupling degree between data. In addition, the invention can encrypt the data to be encrypted according to the encryption requirement of the data domain security level of the specific service without encrypting the whole data table, thereby reducing the magnitude of data transmission, effectively improving the network transmission efficiency and reducing the work load of encrypting and decrypting the transmitted data in the interaction process of the mobile terminal and the server.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that all of the depicted operations must be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (13)
1. A method for optimizing data link layer packets, comprising:
receiving a service request of a user and acquiring a request message of the service request, wherein the request message comprises a message header and application data;
analyzing the request message, confirming the service type of the service request, and acquiring a data domain list of the application data according to the service type;
analyzing the data domain list to obtain basic data in the data domain;
according to the service type, assembling the basic data according to a preset sequence to obtain complete service data;
and processing the complete service data according to service logic to generate service feedback information, packaging the service feedback information according to the data domain list corresponding to the service type and the preset sequence, and sending the feedback information to the mobile terminal.
2. The method of claim 1, wherein the request message further comprises: message length and TPDU.
3. The method of claim 1, wherein the data field list includes but is not limited to mandatory fields, conditional fields, optional fields, encrypted fields, and a selectable combination thereof.
4. The method according to claim 1, wherein the step of parsing the data field list to obtain the basic data in the data field further comprises:
and if the data domain list comprises the encrypted domain, obtaining the encrypted data in the encrypted domain after decryption by a specified key.
5. The method of claim 4, wherein the encryption scheme comprises: aes encryption and Des encryption.
6. An apparatus for optimizing data link layer packets, comprising:
the system comprises a request receiving module, a service request sending module and a service request receiving module, wherein the request receiving module is used for receiving a service request of a user and acquiring a request message of the service request, and the request message comprises a message header and application data;
the message analysis module is used for analyzing the request message, confirming the service type of the service request and acquiring a data domain list of the application data according to the service type;
the data analysis module is used for analyzing the data domain list to obtain basic data in the data domain;
the data assembling module is used for assembling the basic data according to a preset sequence according to the service type to obtain complete service data;
and the service feedback module is used for processing the complete service data according to service logic to generate service feedback information, packaging the service feedback information according to the data field corresponding to the service type and the preset sequence and sending the feedback information to the mobile terminal.
7. The apparatus of claim 6, wherein the request message further comprises: message length and TPDU.
8. The apparatus of claim 6, wherein the data field list comprises but is not limited to mandatory fields, conditional fields, optional fields, encrypted fields, and a selectable combination thereof.
9. The apparatus of claim 6, wherein the data parsing module is further configured to:
and if the data domain list comprises the encrypted domain, obtaining the encrypted data in the encrypted domain after decryption by a specified key.
10. The apparatus of claim 9, wherein the encryption scheme comprises: aes encryption and Des encryption.
11. A terminal device for optimizing data link layer packets, comprising: a memory to store instructions and a processor to execute the instructions to:
receiving a service request of a user and acquiring a request message of the service request, wherein the request message comprises a message header and application data;
analyzing the request message, confirming the service type of the service request, and acquiring a data domain list of the application data according to the service type;
analyzing the data domain list to obtain basic data in the data domain;
according to the service type, assembling the basic data according to a preset sequence to obtain complete service data;
and processing the complete service data according to service logic to generate service feedback information, packaging the service feedback information according to the data domain list corresponding to the service type and the preset sequence, and sending the feedback information to the mobile terminal.
12. An apparatus, comprising:
a processor;
a storage device for storing the program,
when executed by the processor, cause the processor to implement the method of any of claims 1-5.
13. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611154237.0A CN108234393B (en) | 2016-12-14 | 2016-12-14 | Method and device for optimizing data link layer message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611154237.0A CN108234393B (en) | 2016-12-14 | 2016-12-14 | Method and device for optimizing data link layer message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108234393A CN108234393A (en) | 2018-06-29 |
CN108234393B true CN108234393B (en) | 2021-01-26 |
Family
ID=62651043
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611154237.0A Active CN108234393B (en) | 2016-12-14 | 2016-12-14 | Method and device for optimizing data link layer message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108234393B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110209377B (en) * | 2019-04-26 | 2024-06-25 | 平安科技(深圳)有限公司 | Interface message processing method, device, equipment and storage medium based on factory class |
CN114297709A (en) * | 2021-12-28 | 2022-04-08 | 中国邮政储蓄银行股份有限公司 | Context data reading and writing method, reading and writing device, processor and service system |
CN115314453B (en) * | 2022-08-05 | 2024-06-14 | 郑州浪潮数据技术有限公司 | Data transmission method, data sending terminal, data receiving terminal and related equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010017849A (en) * | 1999-08-16 | 2001-03-05 | 정선종 | Method of data sending and receiving for supporting a security function in world wide web |
CN102254287A (en) * | 2011-06-27 | 2011-11-23 | 中国建设银行股份有限公司 | Bank business mobile processing system and method |
CN102542451A (en) * | 2010-12-24 | 2012-07-04 | 北大方正集团有限公司 | Electronic paying method, system and device thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101478337B1 (en) * | 2007-11-08 | 2015-01-02 | 삼성전자 주식회사 | Method and apparatus for providing encrypted key based on DRM type of host device |
-
2016
- 2016-12-14 CN CN201611154237.0A patent/CN108234393B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010017849A (en) * | 1999-08-16 | 2001-03-05 | 정선종 | Method of data sending and receiving for supporting a security function in world wide web |
CN102542451A (en) * | 2010-12-24 | 2012-07-04 | 北大方正集团有限公司 | Electronic paying method, system and device thereof |
CN102254287A (en) * | 2011-06-27 | 2011-11-23 | 中国建设银行股份有限公司 | Bank business mobile processing system and method |
Also Published As
Publication number | Publication date |
---|---|
CN108234393A (en) | 2018-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240354756A1 (en) | Transaction messaging | |
CN110199508B (en) | Secure data distribution of sensitive data across content distribution networks | |
CN1522516B (en) | Secure header information for multi-content e-mail | |
US8447969B2 (en) | Transfer device for sensitive material such as a cryptographic key | |
CN111131278B (en) | Data processing method and device, computer storage medium and electronic equipment | |
CN109688098B (en) | Method, device and equipment for secure communication of data and computer readable storage medium | |
EP3055978A1 (en) | Systems, methods, and computer program products for managing communications | |
CN110020955B (en) | Online medical insurance information processing method and device, server and user terminal | |
CN113179323B (en) | HTTPS request processing method, device and system for load balancing equipment | |
CN108897631A (en) | Information push method, device, equipment and storage medium | |
CN107545424B (en) | Data monitoring processing method, device and system | |
CN111628976A (en) | Message processing method, device, equipment and medium | |
CN108234393B (en) | Method and device for optimizing data link layer message | |
CN106161224B (en) | Method for interchanging data, device and equipment | |
CN115529130B (en) | Data processing method, terminal, server, system, device, medium and product | |
CN113194057B (en) | AS 2-based data receiving, transmitting and interacting method and client | |
CN117081840B (en) | Secure socket layer communication method, device, special data processor and medium | |
CN112613933A (en) | Invoice data processing method and device, storage medium and electronic equipment | |
CN108055271B (en) | Encryption and decryption method for electronic mail, storage medium and electronic equipment | |
CN107729345B (en) | Website data processing method and device, website data processing platform and storage medium | |
CN107343001B (en) | Data processing method and device | |
CN109951565B (en) | Data transmission method, device, medium and electronic equipment of supply chain management system | |
US20070008920A1 (en) | Method of creating a split terminal between a base terminal and equipments connected in series | |
CN109146476A (en) | A kind of method of payment, server-side, application end and payment system | |
CN116781256B (en) | Compatible interaction method, device, equipment and storage medium of mechanism data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |