CN106411723A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN106411723A
CN106411723A CN201611139115.4A CN201611139115A CN106411723A CN 106411723 A CN106411723 A CN 106411723A CN 201611139115 A CN201611139115 A CN 201611139115A CN 106411723 A CN106411723 A CN 106411723A
Authority
CN
China
Prior art keywords
message
target message
checking mark
default
described target
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.)
Pending
Application number
CN201611139115.4A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201611139115.4A priority Critical patent/CN106411723A/en
Publication of CN106411723A publication Critical patent/CN106411723A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking

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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a message processing method. The method includes the steps of receiving a target message sent by a sender; analyzing the target message, and determining whether preset verification identifiers exist in the target message; if yes, removing the verification identifiers from the target message to obtain an original message corresponding to the target message; and processing the original message. By application of the technical scheme provided by the embodiment of the invention, the preset verification identifiers are added in the message, thus robustness and fault tolerance of the message can be increased, security of message transmission is improved, an illegal message is prevented from occupying too many computing resources of a receiver, improves message processing efficiency of the receiver. The invention also discloses a message processing device having corresponding technical effects.

Description

A kind of message treatment method and device
Technical field
The present invention relates to technical field of internet application, more particularly to a kind of message treatment method and device.
Background technology
With the fast development of Internet technology, the communication being carried out by network is got more and more with exchanging, and network becomes and disappears The main path of breath transmission, network security problem also seems more important.
At present, unauthorized person can be with the message in intercept network, after it is parsed easily by message gripping tool Obtain origination message, thus causing the leakage of message, meanwhile, unauthorized person is according to the destination address of the message intercepting, acceptable Forge invalid message and be sent to destination address recipient, cause the waste of recipient's computing resource, reduce recipient to message Treatment effeciency.
Content of the invention
It is an object of the invention to provide a kind of message treatment method and device, to improve the security of message transmission, it is to avoid Invalid message takies the excessive computing resource of recipient, improves the treatment effeciency to message for the recipient.
For solving above-mentioned technical problem, the present invention provides following technical scheme:
A kind of message treatment method, including:
Receive the target message that sender sends;
Described target message is parsed, determines and in described target message, whether there is default checking mark;
If it is, removing described checking mark in described target message, obtain described target message corresponding original Message;
Described origination message is processed.
In a kind of specific embodiment of the present invention, also include:
If it is determined that there is not described checking mark in described target message, then abandon described target message, or to institute State sender and return error message.
In a kind of specific embodiment of the present invention, in the described target message of described determination, whether there is default checking Mark, including:
Determine and at the default flag bit of described target message, whether there is default checking mark.
In a kind of specific embodiment of the present invention, described default flag bit is multiple, and the described target of described determination disappears With the presence or absence of default checking mark at the default flag bit of breath, including:
Determine at each default flag bit of described target message, whether all there is default checking mark accordingly.
In a kind of specific embodiment of the present invention, before the described target message receiving sender's transmission, also wrap Include:
Receive described sender transmission is reaching the described checking mark generating during the time interval of setting.
A kind of message processing apparatus, including:
Target message receiver module, for receiving the target message of sender's transmission;
Checking mark determining module, for parsing to described target message, determines in described target message whether deposit In default checking mark, if it is, triggering origination message obtains module;
Described origination message obtains module, for removing described checking mark in described target message, obtains described mesh The mark corresponding origination message of message;
Message processing module, for processing to described origination message.
In a kind of specific embodiment of the present invention, also include exception processing module, be used for:
When there is not described checking mark in determining described target message, abandon described target message, or to described Sender returns error message.
In a kind of specific embodiment of the present invention, described checking mark determining module, specifically for:
Determine and at the default flag bit of described target message, whether there is default checking mark.
In a kind of specific embodiment of the present invention, described default flag bit is multiple, and described checking mark determines mould Block, specifically for:
Determine at each default flag bit of described target message, whether all there is default checking mark accordingly.
In a kind of specific embodiment of the present invention, also include checking mark sending module, be used for:
Described receive sender send target message before, receive described sender send reach setting when Between the described checking mark that generates when being spaced.
The technical scheme that the application embodiment of the present invention is provided, recipient is receiving the target message of sender's transmission When, target message is parsed, determines and in target message, whether there is default checking mark, if it is present in target Remove checking mark in message, obtain the corresponding origination message of target message, origination message is further processed.In message Middle increase is default to verify mark, can increase robustness and the fault-tolerance of message, improve the security of message transmission, it is to avoid Invalid message takies the excessive computing resource of recipient, improves the treatment effeciency to message for the recipient.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of implementing procedure figure of message treatment method in the embodiment of the present invention;
Fig. 2 is a kind of structural representation of message processing apparatus in the embodiment of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiment is only a part of embodiment of the present invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of message treatment method, the method can apply to recipient, recipient with send out The side of sending can carry out interacting message.
Shown in Figure 1, a kind of implementing procedure figure of the message treatment method being provided by the embodiment of the present invention, the method May comprise steps of:
S110:Receive the target message that sender sends.
In embodiments of the present invention, sender reach setting message send trigger condition when, such as reach setting when Between be spaced when, or, receive message send instruction when, can to recipient send target message.
After recipient receives the target message of sender's transmission, the operation of step S120 can be continued executing with.
S120:Target message is parsed, determines and in target message, whether there is default checking mark.
After recipient receives the target message of sender's transmission, target message can be parsed, determine that target disappears Whether there is default checking mark in breath, if it is, can determine that target message is legitimate messages, step can be continued executing with The operation of rapid S130, if it is not, then can determine that target message is invalid message, as shown in Figure 1.
Checking mark can sender and recipient be made an appointment.Can be specifically technical staff to sender and Set when recipient is configured, can also be and be sent to other side's after sender or recipient generate.Checking mark Knowing can be specifically specific character or character string.
In one embodiment of the invention, before step S110, the method can also comprise the following steps:
Receive sender's transmission is reaching the checking mark generating during the time interval of setting.
In embodiments of the present invention, sender can according to set rule generate checking mark, and by generate after checking Mark is sent to recipient, to be consistent with the checking information of recipient.
Sender can also generate checking mark according to setting cycle, generate checking when reaching the time interval of setting Mark.The checking mark that different cycles generate can with identical can be different.So can ensure that real-time and the peace of checking mark Quan Xing.
After sender generates checking mark when reaching the time interval of setting, checking mark is sent to recipient, connects Debit itself is storing this checking mark.So, recipient, when receiving the target message of sender's transmission, can be based on and be somebody's turn to do Checking mark, determines that whether there is this checking in target message identifies.
There is not checking mark in a kind of specific embodiment of the present invention if it is determined that in target message, then abandon Target message, or return error message to sender.
If there is not default checking mark in target message, this target message may be invalid message, recipient Discard processing can be done to this target message, to avoid processing the excessive computing resource of this target message occupancy.Or, recipient Error message can be returned to sender, sender may determine whether to resend target message according to error message.
Sender, when sending target message, for transmitting security consideration, can pass after target message is encrypted Defeated, that is, target message is the message through encryption.After recipient receives target message, can first target message be carried out Decryption processing, then it is parsed, determine and in target message, whether there is default checking mark.
In a kind of specific embodiment of the present invention, step S120 may comprise steps of:
Determine and at the default flag bit of target message, whether there is default checking mark.
Sender can generate target message according to the message format setting, and target message is sent to recipient.? Flag bit can be preset in target message, such as at message end, or certain specific location setting flag bit of message.Right After target message is parsed, determine and at the default flag bit of target message, whether there is default checking mark.If deposited Then can determine that target message is legitimate messages, otherwise it may be determined that target message is invalid message.
In a kind of specific embodiment of the present invention, default flag bit is multiple, determines the default mark of target message At position, the step with the presence or absence of default checking mark is specially:
Determine at each default flag bit of target message, whether all there is default checking mark accordingly.
Target message follows the message format of setting, can preset multiple flag bits in target message.Unlike signal position The checking mark at place can with identical can be different.Recipient receive sender transmission target message after, to target message Parsed, each default flag bit of target message can be checked, for each default flag bit, determined this default flag bit Place is with the presence or absence of default checking mark accordingly.
If it is determined that all there is default checking mark accordingly at each default flag bit of target message, then can be true The message that sets the goal is legitimate messages.If there is not default checking accordingly at the default flag bit of at least one of target message Mark, then can determine that target message is invalid message.
S130:Remove checking mark in target message, obtain the corresponding origination message of target message.
In step S120, recipient is parsed to the target message receiving if it is determined that existing pre- in target message If checking mark it is determined that this target message be legitimate messages, can remove in target message this checking mark, obtain mesh The mark corresponding origination message of message.
S140:Origination message is processed.
After recipient obtains the corresponding origination message of target message, can be according to the handling process setting to this origination message Processed.
For ease of understanding, illustrate.
User A needs to transmit a message " abcdefg " to user B.
User A, before transmitting this message, adds checking mark " v " at this message end, this message switchs to new Message " abcdefgv ".After user A is encrypted according to the AES the setting message new to this, by new the disappearing after encryption Breath sends user B to.
User B receives this new message, is decrypted process to it, obtains " abcdefgv ", determines and wherein exists in advance If checking mark " v ", then can determine that the message that it receives is legitimate messages.If wherein there is not default checking mark Know " v ", then can determine that the message that it receives is invalid message.
After user B determines that the message receiving is legitimate messages, checking mark " v " can be removed within the message, obtain Origination message " abcdefg ", is further processed to this origination message.
The method that the application embodiment of the present invention is provided, recipient is when receiving the target message of sender's transmission, right Target message is parsed, and determines and whether there is default checking mark in target message, if it is present in target message Remove checking mark, obtain the corresponding origination message of target message, origination message is further processed.Increase in the message Default checking mark, can increase robustness and the fault-tolerance of message, improve the security of message transmission, it is to avoid illegally disappear Breath takies the excessive computing resource of recipient, improves the treatment effeciency to message for the recipient.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of message processing apparatus, is described below A kind of message processing apparatus and a kind of above-described message treatment method can be mutually to should refer to.
Shown in Figure 2, this device is included with lower module:
Target message receiver module 210, for receiving the target message of sender's transmission;
Checking mark determining module 220, for parsing to target message, determines to whether there is in target message and presets Checking mark, if it is, triggering origination message obtain module 230;
Origination message obtains module 230, for removing checking mark in target message, obtains target message corresponding former Beginning message;
Message processing module 240, for processing to origination message.
The device that the application embodiment of the present invention is provided, recipient is when receiving the target message of sender's transmission, right Target message is parsed, and determines and whether there is default checking mark in target message, if it is present in target message Remove checking mark, obtain the corresponding origination message of target message, origination message is further processed.Increase in the message Default checking mark, can increase robustness and the fault-tolerance of message, improve the security of message transmission, it is to avoid illegally disappear Breath takies the excessive computing resource of recipient, improves the treatment effeciency to message for the recipient.
In a kind of specific embodiment of the present invention, also include exception processing module, be used for:
When there is not checking mark in determining target message, abandon target message, or return mistake letter to sender Breath.
In a kind of specific embodiment of the present invention, checking mark determining module 220, specifically for:
Determine and at the default flag bit of target message, whether there is default checking mark.
In a kind of specific embodiment of the present invention, default flag bit is multiple, checking mark determining module 220, tool Body is used for:
Determine at each default flag bit of target message, whether all there is default checking mark accordingly.
In a kind of specific embodiment of the present invention, also include checking mark sending module, be used for:
Receive sender send target message before, receive sender send when reaching the time interval of setting The checking mark generating.
In this specification, each embodiment is described by the way of going forward one by one, and what each embodiment stressed is and other The difference of embodiment, between each embodiment same or similar partly mutually referring to.Fill for disclosed in embodiment For putting, because it corresponds to the method disclosed in Example, so description is fairly simple, referring to method part in place of correlation Illustrate.
Professional further appreciates that, in conjunction with the unit of each example of the embodiments described herein description And algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and The interchangeability of software, generally describes composition and the step of each example in the above description according to function.These Function to be executed with hardware or software mode actually, the application-specific depending on technical scheme and design constraint.Specialty Technical staff can use different methods to each specific application realize described function, but this realization should Think beyond the scope of this invention.
The step of the method in conjunction with the embodiments described herein description or algorithm can directly be held with hardware, processor The software module of row, or the combination of the two is implementing.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In known any other form of storage medium in field.
Specific case used herein is set forth to the principle of the present invention and embodiment, the saying of above example Bright it is only intended to help and understands technical scheme and its core concept.It should be pointed out that it is common for the art For technical staff, under the premise without departing from the principles of the invention, the present invention can also be carried out with some improvement and modify, these Improve and modify and also fall in the protection domain of the claims in the present invention.

Claims (10)

1. a kind of message treatment method is it is characterised in that include:
Receive the target message that sender sends;
Described target message is parsed, determines and in described target message, whether there is default checking mark;
If it is, removing described checking mark in described target message, obtain the corresponding origination message of described target message;
Described origination message is processed.
2. message treatment method according to claim 1 is it is characterised in that also include:
If it is determined that there is not described checking mark in described target message, then abandon described target message, or to described The side of sending returns error message.
3. whether message treatment method according to claim 1 is it is characterised in that deposit in the described target message of described determination Identify in default checking, including:
Determine and at the default flag bit of described target message, whether there is default checking mark.
4. message treatment method according to claim 3 is it is characterised in that described default flag bit is multiple, described true With the presence or absence of default checking mark at the default flag bit of fixed described target message, including:
Determine at each default flag bit of described target message, whether all there is default checking mark accordingly.
5. the message treatment method according to any one of Claims 1-4 is it is characterised in that send out in described reception sender Before the target message sending, also include:
Receive described sender transmission is reaching the described checking mark generating during the time interval of setting.
6. a kind of message processing apparatus are it is characterised in that include:
Target message receiver module, for receiving the target message of sender's transmission;
Checking mark determining module, for parsing to described target message, determines in described target message and whether there is in advance If checking mark, if it is, triggering origination message obtain module;
Described origination message obtains module, for removing described checking mark in described target message, obtains described target and disappears Cease corresponding origination message;
Message processing module, for processing to described origination message.
7. message processing apparatus according to claim 6, it is characterised in that also including exception processing module, are used for:
When there is not described checking mark in determining described target message, abandon described target message, or to described transmission Side returns error message.
8. message processing apparatus according to claim 6, it is characterised in that described checking mark determining module, are specifically used In:
Determine and at the default flag bit of described target message, whether there is default checking mark.
9. message processing apparatus according to claim 8, it is characterised in that described default flag bit is multiple, described are tested Card mark determining module, specifically for:
Determine at each default flag bit of described target message, whether all there is default checking mark accordingly.
10. the message processing apparatus according to any one of claim 6 to 9 send it is characterised in that also including checking mark Module, is used for:
Described receive sender send target message before, receive described sender send between the time reaching setting Every when the described checking mark that generates.
CN201611139115.4A 2016-12-12 2016-12-12 Message processing method and device Pending CN106411723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611139115.4A CN106411723A (en) 2016-12-12 2016-12-12 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611139115.4A CN106411723A (en) 2016-12-12 2016-12-12 Message processing method and device

Publications (1)

Publication Number Publication Date
CN106411723A true CN106411723A (en) 2017-02-15

Family

ID=58085430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611139115.4A Pending CN106411723A (en) 2016-12-12 2016-12-12 Message processing method and device

Country Status (1)

Country Link
CN (1) CN106411723A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889372A (en) * 2019-01-21 2019-06-14 杭州迪普科技股份有限公司 Obtain method, apparatus, equipment and the storage medium of configuration information

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967592A (en) * 2014-10-09 2015-10-07 腾讯科技(深圳)有限公司 Identity verification method, apparatus and system
CN105007280A (en) * 2015-08-05 2015-10-28 郑州悉知信息技术有限公司 Application sign-on method and device
CN105100103A (en) * 2015-08-03 2015-11-25 小米科技有限责任公司 Message filtering method and device, server and terminal
CN105323253A (en) * 2015-11-17 2016-02-10 腾讯科技(深圳)有限公司 Identity verification method and device
CN105959308A (en) * 2016-06-30 2016-09-21 中电长城网际系统应用有限公司 Internal network IP data packet management method and system, and devices
WO2017024791A1 (en) * 2015-08-10 2017-02-16 华为技术有限公司 Authorization processing method and device
CN107426079A (en) * 2016-05-24 2017-12-01 腾讯科技(深圳)有限公司 A kind of processing method and processing device of informing message

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967592A (en) * 2014-10-09 2015-10-07 腾讯科技(深圳)有限公司 Identity verification method, apparatus and system
CN105100103A (en) * 2015-08-03 2015-11-25 小米科技有限责任公司 Message filtering method and device, server and terminal
CN105007280A (en) * 2015-08-05 2015-10-28 郑州悉知信息技术有限公司 Application sign-on method and device
WO2017024791A1 (en) * 2015-08-10 2017-02-16 华为技术有限公司 Authorization processing method and device
CN105323253A (en) * 2015-11-17 2016-02-10 腾讯科技(深圳)有限公司 Identity verification method and device
CN107426079A (en) * 2016-05-24 2017-12-01 腾讯科技(深圳)有限公司 A kind of processing method and processing device of informing message
CN105959308A (en) * 2016-06-30 2016-09-21 中电长城网际系统应用有限公司 Internal network IP data packet management method and system, and devices

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889372A (en) * 2019-01-21 2019-06-14 杭州迪普科技股份有限公司 Obtain method, apparatus, equipment and the storage medium of configuration information

Similar Documents

Publication Publication Date Title
WO2016180202A1 (en) Method and device for secure communication
US20040008681A1 (en) Prevention of denial of service attacks
CN101640682B (en) Method for improving safety of Web service
CN108512848A (en) The method and relevant apparatus of anti-replay-attack
CN104199657B (en) The call method and device of open platform
CN103347016A (en) Attack defense method
CN104994094B (en) Virtual platform safety protecting method based on virtual switch, device and system
CN112711759A (en) Method and system for preventing replay attack vulnerability security protection
CN106452764A (en) Method for automatically updating identification private key and password system
US10015145B2 (en) Unified source user checking of TCP data packets for network data leakage prevention
CN103428204A (en) Data security implementation method capable of resisting timing attacks and devices
US10122755B2 (en) Method and apparatus for detecting that an attacker has sent one or more messages to a receiver node
CN106453362A (en) Data transmission method and apparatus of vehicle-mounted device
US10491570B2 (en) Method for transmitting data, method for receiving data, corresponding devices and programs
CN112968910B (en) Replay attack prevention method and device
KR101463873B1 (en) Method and apparatus for preventing data loss
CN110309645A (en) A kind of couple of API carries out the method, apparatus and system of security protection
CN106411723A (en) Message processing method and device
CN111756698A (en) Message transmission method, device, equipment and computer readable storage medium
CN114499995B (en) Method, device and system for preventing replay attack
CN107864136A (en) A kind of stolen method of anti-locking system short message service
CN106888098A (en) The method and terminal of the checking communication information source true and false
CN106790028A (en) A kind of prison and the data transmission method and system of bank's intranet and extranet security isolation
CN107682146B (en) A kind of single chip communication method
CN105426704B (en) A kind of method that protecting computer software is realized based on network service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170215

RJ01 Rejection of invention patent application after publication