CN116233060A - Message information hiding method and device, terminal equipment and storage medium - Google Patents

Message information hiding method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN116233060A
CN116233060A CN202211697155.6A CN202211697155A CN116233060A CN 116233060 A CN116233060 A CN 116233060A CN 202211697155 A CN202211697155 A CN 202211697155A CN 116233060 A CN116233060 A CN 116233060A
Authority
CN
China
Prior art keywords
message
information
header
hiding
information hiding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211697155.6A
Other languages
Chinese (zh)
Other versions
CN116233060B (en
Inventor
武钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 6Cloud Technology Co Ltd
Beijing 6Cloud Information Technology Co Ltd
Original Assignee
Beijing 6Cloud Technology Co Ltd
Beijing 6Cloud 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 Beijing 6Cloud Technology Co Ltd, Beijing 6Cloud Information Technology Co Ltd filed Critical Beijing 6Cloud Technology Co Ltd
Priority to CN202211697155.6A priority Critical patent/CN116233060B/en
Publication of CN116233060A publication Critical patent/CN116233060A/en
Application granted granted Critical
Publication of CN116233060B publication Critical patent/CN116233060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • H04L5/0055Physical resource allocation for ACK/NACK
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a message information hiding method, a message information hiding device, terminal equipment and a storage medium, wherein the message information hiding method comprises the following steps: acquiring a first message, wherein the first message comprises a message header and a communication identifier; and according to the communication identification, replacing the message header to obtain a first message with hidden information. By replacing the message header according to the communication identifier to obtain the message with the hidden message, the technical problem that the high bandwidth and high concurrency are difficult to deal with can be solved, and the efficiency of message information hiding is improved.

Description

Message information hiding method and device, terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and apparatus for hiding message information, a terminal device, and a storage medium.
Background
Network Address Translation (NAT) technology is widely used in network scenarios.
In general, the network address conversion technology modifies the source/destination IP address of the IP packet, the source/destination port of the transmission control protocol or the user datagram protocol, so as to achieve the purpose of the hidden layer internal device address or the real server address. However, other information in the IP message may still be utilized.
The general agent scheme can realize that other information in the IP message is tampered. However, the proxy solution is difficult to cope with the high-bandwidth and high-concurrency scenario, resulting in low efficiency of message forwarding.
Disclosure of Invention
The main purpose of the application is to provide a message information hiding method, a device, terminal equipment and a storage medium, which aim to solve the technical problem that high bandwidth and high concurrency are difficult to deal with and improve the message information hiding efficiency.
In order to achieve the above objective, the present application provides a message information hiding method, which includes:
acquiring a first message, wherein the first message comprises a message header and a communication identifier;
and according to the communication identification, carrying out information replacement on the message header to obtain a first message with hidden information.
Optionally, the message header includes an IP header and a TCP header, and the step of replacing information with the message header according to the communication identifier to obtain the first message after information hiding includes:
and respectively replacing the IP header and the TCP header with information according to the communication identifier to obtain a first message with the hidden information.
Optionally, the communication identifier includes one or more of an address and a port, and the step of replacing information on the IP header and the TCP header according to the communication identifier to obtain the first message after the information is hidden includes:
according to the address and the port, carrying out information replacement on the TCP header to obtain a TCP header with hidden information;
according to the address, carrying out information replacement on the IP header to obtain an IP header with hidden information;
and obtaining the first message after information hiding based on the IP header after information hiding and the TCP header after information hiding.
Optionally, the TCP header includes a first sequence number, and the step of replacing information on the TCP header according to the address and the port to obtain the TCP header after information hiding includes:
generating a second serial number of the TCP header according to the address and the port;
and replacing the first serial number with the second serial number to obtain the TCP header with the hidden information.
Optionally, after the step of replacing the message header with the information according to the communication identifier to obtain the first message with the hidden information, the method further includes:
recording a sequence difference value of the first sequence number and the second sequence number;
receiving a second message;
and obtaining the second message after information hiding based on the second message and the sequence difference value.
Optionally, the IP header includes a first identification number, and the step of replacing information with the IP header according to the address to obtain the IP header after information hiding includes:
generating a second identification number of the IP header according to the address;
and replacing the first identification number with the second identification number to obtain the identification number after information hiding.
Optionally, after the step of replacing the message header with the information according to the communication identifier to obtain the first message with the hidden information, the method further includes:
recording an identification difference value of the first identification number and the second identification number;
receiving a third message;
and obtaining the third message with hidden information based on the third message and the identification difference value.
The embodiment of the application also provides a message information hiding device, which comprises:
the information acquisition module is used for acquiring a first message, wherein the first message comprises a message header and a communication identifier;
and the information hiding module is used for replacing the information of the message header according to the communication identifier to obtain a first message after information hiding.
The embodiment of the application also provides a terminal device, which comprises a memory, a processor and a message information hiding program stored on the memory and capable of running on the processor, wherein the message information hiding program realizes the steps of the message information hiding method when being executed by the processor.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a message information hiding program, and the message information hiding program realizes the steps of the message information hiding method when being executed by a processor.
The message information hiding method, the message information hiding device, the terminal equipment and the storage medium provided by the embodiment of the application are used for obtaining a first message, wherein the first message comprises a message header and a communication identifier; and according to the communication identification, carrying out information replacement on the message header to obtain a first message with hidden information. By replacing the message header according to the communication identifier to obtain the message with the hidden message, the technical problem that the high bandwidth and high concurrency are difficult to deal with can be solved, and the efficiency of message information hiding is improved. Based on the scheme of the application, starting from a high-bandwidth high concurrency rule existing in a communication scene, a message for improving head information is provided, the validity of the message information hiding method provided by the application is verified on the message, and finally the efficiency of forwarding the message through the method of the application is obviously improved.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which a message information hiding device of the present application belongs;
FIG. 2 is a flowchart illustrating a first exemplary embodiment of a message information hiding method according to the present application;
FIG. 3 is a flowchart illustrating a second exemplary embodiment of a message information hiding method according to the present application;
FIG. 4 is a flowchart illustrating a third exemplary embodiment of a message information hiding method according to the present application;
fig. 5 is a flowchart of a fourth exemplary embodiment of a message information hiding method according to the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The main solutions of the embodiments of the present application are: acquiring a first message, wherein the first message comprises a message header and a communication identifier; and according to the communication identification, carrying out information replacement on the message header to obtain a first message with hidden information. By replacing the message header according to the communication identifier to obtain the message with the hidden message, the technical problem that the high bandwidth and high concurrency are difficult to deal with can be solved, and the efficiency of message information hiding is improved. Based on the scheme of the application, starting from a high-bandwidth high concurrency rule existing in a communication scene, a message for improving head information is provided, the validity of the message information hiding method provided by the application is verified on the message, and finally the efficiency of forwarding the message through the method of the application is obviously improved.
In the embodiment of the application, the network address conversion technology is considered to modify the source/destination IP address of the IP message and the source/destination port of the transmission control protocol or the user datagram protocol, so that the purpose of the hidden layer internal equipment address or the real server address is achieved. However, other information in the IP message may still be utilized. The general agent scheme can realize that other information in the IP message is tampered, but the agent scheme is difficult to cope with the high-bandwidth high concurrency scene, so that the message forwarding efficiency is low.
Therefore, the scheme of the embodiment of the application designs a network address translation behavior method for improving the transmission control protocol from the aspect of coping with the practical problem of high bandwidth and high concurrency and considering the information hiding aspect and the processing performance aspect of the message, solves the technical problem that the high bandwidth and high concurrency are difficult to cope with, and improves the information hiding efficiency of the message.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which a message information hiding device of the present application belongs. The message information hiding device may be a device independent of the terminal device and capable of hiding the message information, and may be carried on the terminal device in a form of hardware or software. The terminal equipment can be an intelligent mobile terminal with a data processing function such as a mobile phone and a tablet personal computer, and can also be a fixed terminal equipment or a server with a data processing function.
In this embodiment, the terminal device to which the message information hiding apparatus belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and a message information hiding program, where the message information hiding device may hide the acquired first message, where the first message includes a message header and a communication identifier; according to the communication identification, replacing the information of the message header, and storing the obtained information such as the first message after hiding the information in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein, the message information hiding program in the memory 130 when executed by the processor implements the following steps:
acquiring a first message, wherein the first message comprises a message header and a communication identifier;
and according to the communication identification, carrying out information replacement on the message header to obtain a first message with hidden information.
Further, the message information hiding program in the memory 130 when executed by the processor further realizes the following steps:
and respectively replacing the IP header and the TCP header with information according to the communication identifier to obtain a first message with the hidden information.
Further, the message information hiding program in the memory 130 when executed by the processor further realizes the following steps:
according to the address and the port, carrying out information replacement on the TCP header to obtain a TCP header with hidden information;
according to the address, carrying out information replacement on the IP header to obtain an IP header with hidden information;
and obtaining the first message after information hiding based on the IP header after information hiding and the TCP header after information hiding.
Further, the message information hiding program in the memory 130 when executed by the processor further realizes the following steps:
generating a second serial number of the TCP header according to the address and the port;
and replacing the first serial number with the second serial number to obtain the TCP header with the hidden information.
Further, the message information hiding program in the memory 130 when executed by the processor further realizes the following steps:
recording a sequence difference value of the first sequence number and the second sequence number;
receiving a second message;
and obtaining the second message after information hiding based on the second message and the sequence difference value.
Further, the message information hiding program in the memory 130 when executed by the processor further realizes the following steps:
generating a second identification number of the IP header according to the address;
and replacing the first identification number with the second identification number to obtain the identification number after information hiding.
Further, the message information hiding program in the memory 130 when executed by the processor further realizes the following steps:
recording an identification difference value of the first identification number and the second identification number;
receiving a third message;
and obtaining the third message with hidden information based on the third message and the identification difference value.
According to the scheme, the first message is obtained, wherein the first message comprises a message header and a communication identifier; and according to the communication identification, carrying out information replacement on the message header to obtain a first message with hidden information. By replacing the message header according to the communication identifier to obtain the message with the hidden message, the technical problem that the high bandwidth and high concurrency are difficult to deal with can be solved, and the efficiency of message information hiding is improved. Based on the scheme of the application, starting from a high-bandwidth high concurrency rule existing in a communication scene, a message for improving head information is provided, the validity of the message information hiding method provided by the application is verified on the message, and finally the efficiency of forwarding the message through the method of the application is obviously improved.
Based on the above terminal device architecture, but not limited to the above architecture, the method embodiments of the present application are presented.
Referring to fig. 2, fig. 2 is a flowchart of a first exemplary embodiment of a message information hiding method according to the present application. The message information hiding method comprises the following steps:
step S210, a first message is obtained, wherein the first message comprises a message header and a communication identifier;
the execution main body of the method of the embodiment may be a message information hiding device, or may be a message information hiding terminal device or a server, and the embodiment uses the message information hiding device as an example, where the message information hiding device may be integrated on a terminal device such as a personal digital assistant, a smart phone, a tablet computer, etc. with a data processing function.
The scheme of the embodiment mainly realizes message information hiding of the message, particularly the message, and improves the message information hiding efficiency.
The embodiment starts from the practical problem of coping with high bandwidth and high concurrency, considers the information hiding aspect and the processing performance aspect of the message, designs a network address conversion behavior method for improving the transmission control protocol, solves the technical problem that the high bandwidth and high concurrency are difficult to cope with, and improves the efficiency of message information hiding.
It should be noted that the present embodiment may be applied to an IPv4 network, an IPv6 network, or other IP networks.
The first message is a data unit exchanged and transmitted in the network, namely a data block to be sent by the station, namely an IP message. The IP packet contains the complete data information to be transmitted. Wherein, the IP message comprises an IP header. The IP header is used to specify the source IP address, destination IP address, direct IP fragmentation and reassembly, and partial communication behavior of the IP communication.
Step S220, according to the communication identification, information replacement is carried out on the message header, and a first message with hidden information is obtained.
Specifically, in some actual scenes, the user does not allow the other party to acquire the own real source address, so that the own real source address can be further hidden by hiding the message information. For example, a private network accesses a public network, and the security of accessing the public network is improved by hiding message information; or one group accesses the resource information of other groups, and the other groups cannot acquire which group is accessing the resource information by hiding the message information. That is, through network address translation, internal device addresses or real server addresses may be hidden.
The embodiment is based on the scheme of traditional Network Address Translation (NAT), not only modifies the IP address, transmission control protocol or user datagram protocol port of the IP message, but also replaces the message header of the IP message, thus, after the IP message is subjected to network address translation, the IP address, port number and IP message header of the IP message are all changed, and the hiding effect of the real message information is improved.
According to the scheme, the first message is obtained, wherein the first message comprises a message header and a communication identifier; and according to the communication identification, carrying out information replacement on the message header to obtain a first message with hidden information. By replacing the message header according to the communication identifier to obtain the message with the hidden message, the technical problem that the high bandwidth and high concurrency are difficult to deal with can be solved, and the efficiency of message information hiding is improved.
Referring to fig. 3, fig. 3 is a flowchart of a second exemplary embodiment of a message information hiding method according to the present application. Based on the embodiment shown in fig. 2, the message header includes an IP header and a TCP header, and step S220 includes replacing information of the message header according to the communication identifier to obtain a first message with hidden information, where the first message includes:
and step S300, respectively replacing the information of the IP header and the TCP header according to the communication identifier to obtain a first message with the hidden information.
Specifically, the IP packet includes an IP header and a TCP header. Under the traditional network address conversion scheme, the embodiment also performs information replacement for the IP header and the TCP header, except that the port of the transmission control protocol or the user datagram protocol is modified according to the requirement for the IP address of the message. Therefore, after the conversion of the network address and the header information, the IP address and the port number of the IP message are changed, and the IP header and the TCP header are both changed, so that the hiding effect of the real message information is improved.
Further, the communication identifier includes one or more of an address and a port, and step S300 includes respectively replacing information of the IP header and the TCP header according to the communication identifier to obtain a first message after the information is hidden, where the first message includes:
step S310, according to the address and the port, replacing the TCP header with information to obtain a TCP header with hidden information;
the present embodiment is exemplified by the implementation of step S310 before step S320, and in other embodiments, step S310 may be implemented after step S320, or step S310 may be implemented synchronously with step S320.
Specifically, the communication identifier includes one or more of an address and a port. The address comprises a source IP address and/or a destination IP address of the IP message; the ports include source and/or destination ports of TCP or UDP. In this embodiment, for the transmission control protocol, a new TCP header is generated according to the source IP address and/or the destination IP address, the source port and/or the destination port of the IP packet, and the original TCP header is replaced with the new TCP header, so as to obtain the TCP header after information hiding.
Step S320, according to the address, carrying out information replacement on the IP header to obtain an IP header with hidden information;
specifically, a new identification number of the IP header is generated according to the source IP address and/or the destination IP address of the original IP message, and the original identification number is replaced by the new identification number, so that the identification number after information hiding is obtained.
Step S330, obtaining the first message after information hiding based on the IP header after information hiding and the TCP header after information hiding.
Specifically, the embodiment is based on the scheme of traditional network address conversion, so that the IP address, the transmission control protocol or the port of the user datagram protocol of the IP message is modified, and the IP header and the TCP header of the IP message are also modified. Therefore, the high performance and high concurrency of the network address conversion scheme can be utilized, and the information such as the identification number of the IP header, the serial number of the TCP header, the confirmation number and the like can be hidden, so that the performance and the function are considered.
According to the scheme, the TCP header is replaced by information according to the address and the port, and the TCP header with hidden information is obtained; according to the address, carrying out information replacement on the IP header to obtain an IP header with hidden information; and obtaining the first message after information hiding based on the IP header after information hiding and the TCP header after information hiding. By hiding the information of the identification numbers of the TCP header and the IP header, the technical problem that high bandwidth and high concurrency are difficult to deal with can be solved, and the efficiency of message information hiding is improved.
Referring to fig. 4, fig. 4 is a flowchart of a third exemplary embodiment of a message information hiding method according to the present application. Based on the embodiment shown in fig. 3, the TCP header includes a first sequence number, and step S310, performing information replacement on the TCP header according to the address and the port to obtain a TCP header with hidden information, including:
step S410, generating a second serial number of the TCP header according to the address and the port;
the sequence number (SEQ) is used for packet transmission after connecting to the network, the acknowledgement number (ACK) is used for acknowledgement of the received packet, and the value of the acknowledgement number is the sequence number of the packet waiting to be received.
Specifically, in the present embodiment, the communication identifier includes one or more of an address, a port, and a current time, and one or more of the current time. The IP message comprises an IP header and a TCP header, the TCP header comprises a serial number, the first serial number is an initial serial number in the TCP header, and the second serial number is a new serial number generated according to the address, the port and the current time of the IP message. The address comprises a source IP address and/or a destination IP address of the IP message; the ports include source and/or destination ports of TCP or UDP.
And step S420, replacing the first sequence number with the second sequence number to obtain the TCP header with the hidden information.
Specifically, for the transmission control protocol, according to the IP address, the port and the current time of the original message, a new sequence number of the TCP header is randomly generated, and the initial sequence number in the replacement message is the new sequence number, so that the sequence number and/or the acknowledgement number information in the TCP header can be hidden, and the accuracy of replacing the sequence number information is improved.
When the network address is converted, the IP address and the port number of the IP message are changed; and information replacement is performed on the sequence numbers in the TCP header, so that the sequence numbers and/or the acknowledgement numbers of the TCP header of the IP message are changed. Therefore, the high performance and high concurrency of the network address conversion scheme can be utilized, and the information such as the serial number and/or the acknowledgement number of the TCP header can be hidden, so that the performance and the function are both considered.
Further, step S220, after performing information replacement on the header of the message according to the communication identifier to obtain the first message with the hidden information, further includes:
step S430, recording a sequence difference value between the first sequence number and the second sequence number;
specifically, each byte in the byte stream that is transmitted in the TCP connection is numbered in sequence. For example, if the sequence number field value of one segment of message is 301 and the carried data has 100 fields, the next message
The data sequence number of the segment should start at 401. Thus, the sequence difference value is information hidden for the conversion of the sequence number of the IP message following the current message, more specifically for the initial sequence number in the TCP header of the IP message.
Step S440, receiving a second message;
specifically, the second message is a TCP message or an IP message after the current message.
Step S450, obtaining the second message with hidden information based on the second message and the sequence difference value.
Specifically, when the initial sequence number in the replaced TCP header is a new sequence number, the difference between the new sequence number and the initial sequence number is recorded, so as to facilitate the conversion of the sequence number of the subsequent IP message.
5 it should be noted that Transmission Control Protocol (TCP) is communication for connection between client and server
The protocol, using TCP, can connect the client and the server. Through the three-way handshake connection, the TCP can ensure that the information can be transferred to the receiving end without any difference of network environments. The embodiment of the application uses three-way handshake connection as an example, and the specific steps can be as follows:
when a client sends a message carrying an initial sequence number to a server, generating a new sequence number SEQ1 according to the address and a 0 port of the message, replacing the initial sequence number in the message with the sequence number SEQ1 to obtain the message carrying the sequence number SEQ1, and recording the sequence difference value between the initial sequence number and the sequence number SEQ 1;
when receiving a message carrying a sequence number SEQ1 and replying a response message carrying a confirmation number to a client, the server generates a new confirmation number ACK1 according to the address and the port of the response message and according to the sequence difference value,
obtaining a sequence number SEQ2, wherein the initial acknowledgement number in the replacement response message is acknowledgement number ACK1, and the initial sequence number in the response message of the replacement server 5 is sequence number SEQ2, so as to obtain the response message carrying ACK1 and SEQ2
Recording the difference value between the initial acknowledgement number and acknowledgement number ACK 1;
when receiving a response message carrying ACK1 and SEQ2, the client obtains a new acknowledgement number ACK2 based on the sequence difference value and obtains a new sequence number SEQ3 based on the acknowledgement number difference value,
and the initial acknowledgement number in the response message of the replacement client is acknowledgement number ACK2, the initial sequence number is sequence number 0 SEQ3, and the response message carrying the ACK2 and the SEQ3 is sent to the server to complete three-way handshake connection.
In addition, the client and the server of the transmission control protocol have serial numbers and confirmation numbers respectively, and record corresponding serial differences and confirmation differences at the same time.
According to the scheme, the second serial number of the TCP header is generated according to the address and the port; replacing the first serial number with the second serial number to obtain a TCP header with the hidden information; recording a sequence difference value of the first sequence number and the second sequence number; receiving a second message; and obtaining the second message after information hiding based on the second message and the sequence difference value. By replacing the sequence number in the TCP header with information and recording the sequence difference value, the accuracy and efficiency of the sequence number information hiding can be improved.
Referring to fig. 5, fig. 5 is a flowchart of a fourth exemplary embodiment of a message information hiding method according to the present application. Based on the embodiment shown in fig. 3, the IP header includes a first identification number, and step S320, according to the address, performs information replacement on the IP header to obtain an IP header with hidden information, including:
step S510, generating a second identification number of the IP header according to the address;
note that, the identification number (Identifier): the length of the IP messages forwarded in the IP network may be different, but if the message length exceeds the maximum length supported by the data link, the message needs to be split into several small fragments to be transmitted over the link. For example, the maximum length (MTU) of data in an ethernet frame is 1500 bytes, and each packet that is larger than the MTU is split to have the same value, i.e. an identification number, by which it is determined that the packet is the same IP packet.
Specifically, in the present embodiment, the communication identifier includes one or more of an address, a port, and a current time. The IP message comprises an IP header, the IP header comprises an identification number, the first identification number is an initial serial number in the IP header, and the second serial number is a new serial number generated according to the address of the IP message and the current time. The address comprises a source IP address and/or a destination IP address of the IP message; the ports include source and/or destination ports of TCP or UDP.
Step S520, replacing the first identification number with the second identification number to obtain the identification number after the information is hidden.
Specifically, a new identification number is randomly generated according to the source and destination IP addresses and time of the original message, the new identification number is used for replacing the initial identification number and is stored in the IP message, and the accuracy of replacing the serial number information can be improved.
When the network address is converted, the IP address and the port number of the IP message are changed; and information replacement is carried out on the identification number in the IP header, so that the identification number of the IP header of the IP message is changed. Therefore, the high performance and high concurrency of the network address conversion scheme can be utilized, and information such as the identification number of the IP header can be hidden, so that the performance and the function are considered.
Further, step S220, after performing information replacement on the header of the message according to the communication identifier to obtain the first message with the hidden information, further includes:
step S530, recording the identification difference value of the first identification number and the second identification number;
specifically, since the lengths of the IP packets forwarded in the network may be different, if the packet length exceeds the maximum length supported by the data link, the packet needs to be split into several small fragments to be transmitted on the link. For example, the maximum length (MTU) of data in an ethernet frame is 1500 bytes, and all packets larger than the MTU are split, and each packet to be split has the same value, i.e. an identification number, by which it is indicated that it is the same IP packet. Therefore, the identification difference value is used for information hiding of the messages of the same IP packet.
Step S540, receiving a third message;
specifically, the third message is an IP message or a TCP message after the current message.
It should be noted that, the third message may be the same message as the second message in step S440, so that when obtaining other messages except for the current message, the sequence number information in the TCP header and the identification number information in the IP header may be replaced simultaneously for the subsequent messages.
Step S550, obtaining the third message with hidden information based on the third message and the identification difference value.
Specifically, in the client and the server, the difference between the new identification number and the initial identification number is recorded, so that the conversion of the identification number of the subsequent message is facilitated.
The embodiment generates the second identification number of the IP header according to the address through the scheme; and replacing the first identification number with the second identification number to obtain the identification number after information hiding. Recording an identification difference value of the first identification number and the second identification number; receiving a third message; and obtaining the third message with hidden information based on the third message and the identification difference value. By replacing the identification number in the IP header and recording the identification difference value, the accuracy and efficiency of hiding the identification number information can be improved.
In addition, an embodiment of the present application further provides a message information hiding device, where the message information hiding device includes:
the information acquisition module is used for acquiring a first message, wherein the first message comprises a message header and a communication identifier;
and the information hiding module is used for replacing the information of the message header according to the communication identifier to obtain a first message after information hiding.
The principle and implementation process of message information hiding are realized in this embodiment, please refer to the above embodiments, and the description is omitted here.
In addition, the embodiment of the application also provides a terminal device, which comprises a memory, a processor and a message information hiding program stored on the memory and capable of running on the processor, wherein the message information hiding program realizes the steps of the message information hiding method when being executed by the processor.
Because all the technical solutions of all the embodiments are adopted when the message information hiding program is executed by the processor, at least all the beneficial effects brought by all the technical solutions of all the embodiments are provided, and the description is omitted here.
In addition, the embodiment of the application also provides a computer readable storage medium, and the computer readable storage medium stores a message information hiding program, and the message information hiding program realizes the steps of the message information hiding method when being executed by a processor.
Because all the technical solutions of all the embodiments are adopted when the message information hiding program is executed by the processor, at least all the beneficial effects brought by all the technical solutions of all the embodiments are provided, and the description is omitted here.
Compared with the prior art, the message information hiding method, the device, the terminal equipment and the storage medium provided by the embodiment of the application are used for obtaining the first message, wherein the first message comprises a message header and a communication identifier; and according to the communication identification, carrying out information replacement on the message header to obtain a first message with hidden information. By replacing the message header according to the communication identifier to obtain the message with the hidden message, the technical problem that the high bandwidth and high concurrency are difficult to deal with can be solved, and the efficiency of message information hiding is improved. Based on the scheme of the application, starting from a high-bandwidth high concurrency rule existing in a communication scene, a message for improving head information is provided, the validity of the message information hiding method provided by the application is verified on the message, and finally the efficiency of forwarding the message through the method of the application is obviously improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of embodiments, those skilled in the art will readily appreciate that the above-described exemplary methods may be implemented using software plus a necessary general purpose hardware platform, although they may be implemented using any suitable hardware platform
Hardware is used, but in many cases the former is a better implementation. Based on such understanding, the 0 technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all 5 equivalent structures or equivalent processes or direct or indirect applications in other related technical fields are included in the scope of the claims.

Claims (10)

1. The message information hiding method is characterized by comprising the following steps of:
acquiring a first message, wherein the first message comprises a message header and a communication identifier;
and according to the communication identification, carrying out information replacement on the message header to obtain a first message with hidden information.
2. The message information hiding method according to claim 1, wherein the message header includes an IP header and a TCP header, and the step of replacing the message header with information according to the communication identifier to obtain the first message after information hiding includes:
and respectively replacing the IP header and the TCP header with information according to the communication identifier to obtain a first message with the hidden information.
3. The message information hiding method according to claim 2, wherein the communication identifier includes one or more of an address and a port, and the step of replacing the IP header and the TCP header with information according to the communication identifier, respectively, to obtain the first message after the message hiding includes:
according to the address and the port, carrying out information replacement on the TCP header to obtain a TCP header with hidden information;
according to the address, carrying out information replacement on the IP header to obtain an IP header with hidden information;
and obtaining the first message after information hiding based on the IP header after information hiding and the TCP header after information hiding.
4. The message information hiding method according to claim 3, wherein the TCP header includes a first sequence number, and the step of replacing the TCP header with information according to the address and the port to obtain the TCP header after information hiding includes:
generating a second serial number of the TCP header according to the address and the port;
and replacing the first serial number with the second serial number to obtain the TCP header with the hidden information.
5. The method for hiding message information as claimed in claim 4, wherein after said step of replacing said message header with information according to said communication identifier to obtain the first message after information hiding, further comprising:
recording a sequence difference value of the first sequence number and the second sequence number;
receiving a second message;
and obtaining the second message after information hiding based on the second message and the sequence difference value.
6. The message information hiding method according to claim 3, wherein said IP header includes a first identification number, and said step of replacing said IP header with information according to said address to obtain an information-hidden IP header includes:
generating a second identification number of the IP header according to the address;
and replacing the first identification number with the second identification number to obtain the identification number after information hiding.
7. The method for hiding message information according to claim 6, wherein after the step of replacing the message header with the information according to the communication identifier to obtain the first message after information hiding, the method further comprises:
recording an identification difference value of the first identification number and the second identification number;
receiving a third message;
and obtaining the third message with hidden information based on the third message and the identification difference value.
8. A message information hiding apparatus, characterized in that the message information hiding apparatus comprises:
the information acquisition module is used for acquiring a first message, wherein the first message comprises a message header and a communication identifier;
and the information hiding module is used for replacing the information of the message header according to the communication identifier to obtain a first message after information hiding.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a message information hiding program stored on the memory and executable on the processor, which message information hiding program, when executed by the processor, implements the steps of the message information hiding method according to any one of claims 1-7.
10. A computer readable storage medium, wherein a message information hiding program is stored on the computer readable storage medium, which when executed by a processor implements the steps of the message information hiding method according to any one of claims 1-7.
CN202211697155.6A 2022-12-28 2022-12-28 Message information hiding method and device, terminal equipment and storage medium Active CN116233060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211697155.6A CN116233060B (en) 2022-12-28 2022-12-28 Message information hiding method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211697155.6A CN116233060B (en) 2022-12-28 2022-12-28 Message information hiding method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116233060A true CN116233060A (en) 2023-06-06
CN116233060B CN116233060B (en) 2023-11-03

Family

ID=86584977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211697155.6A Active CN116233060B (en) 2022-12-28 2022-12-28 Message information hiding method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116233060B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100046517A1 (en) * 2008-08-19 2010-02-25 Oki Electric Industry Co., Ltd. Address translator using address translation information in header area on network layer level and a method therefor
CN101707617A (en) * 2009-12-04 2010-05-12 福建星网锐捷网络有限公司 Message filtering method, device and network device
CN101771732A (en) * 2010-01-06 2010-07-07 福建星网锐捷网络有限公司 Message processing method, device and network equipment
CN111901218A (en) * 2020-06-23 2020-11-06 北京天融信网络安全技术有限公司 Message transmission method, SSLVPN proxy server, electronic device and storage medium
CN114844729A (en) * 2022-07-04 2022-08-02 中国人民解放军国防科技大学 Network information hiding method and system
CN115174520A (en) * 2022-06-09 2022-10-11 郑州信大捷安信息技术股份有限公司 Network address information hiding method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100046517A1 (en) * 2008-08-19 2010-02-25 Oki Electric Industry Co., Ltd. Address translator using address translation information in header area on network layer level and a method therefor
CN101707617A (en) * 2009-12-04 2010-05-12 福建星网锐捷网络有限公司 Message filtering method, device and network device
CN101771732A (en) * 2010-01-06 2010-07-07 福建星网锐捷网络有限公司 Message processing method, device and network equipment
CN111901218A (en) * 2020-06-23 2020-11-06 北京天融信网络安全技术有限公司 Message transmission method, SSLVPN proxy server, electronic device and storage medium
CN115174520A (en) * 2022-06-09 2022-10-11 郑州信大捷安信息技术股份有限公司 Network address information hiding method and system
CN114844729A (en) * 2022-07-04 2022-08-02 中国人民解放军国防科技大学 Network information hiding method and system

Also Published As

Publication number Publication date
CN116233060B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
US8595383B2 (en) System and method to associate a private user identity with a public user identity
US8631087B2 (en) Information processing server, remote control system, and remote control method using a tunnel to determine a service on another network and executing the service without using the tunnel
EP3720100A1 (en) Service request processing method and device
CN109218261B (en) Data processing method and data processing device
US8724630B2 (en) Method and system for implementing network intercommunication
WO2009094928A1 (en) A method and equipment for transmitting a message based on the layer-2 tunnel protocol
US20120137011A1 (en) Peer-to-peer connection system and method for use in multi-network environment
CN107770072A (en) A kind of method and apparatus for sending and receiving message
CN107580079A (en) A kind of message transmitting method and device
CN111510476A (en) Communication method, communication apparatus, computer device, and computer-readable storage medium
WO2021217869A1 (en) Method and system for transferring real ip address of client
US7995571B2 (en) System for providing tunnel service capable of data communication between different types of networks
US7023847B2 (en) Network address translation based mobility management
CN103916489B (en) The many IP of a kind of single domain name domain name analytic method and system
JP2012526427A (en) Dedicated gateway for mobile broadband devices
JP2005529550A5 (en)
CN116233060B (en) Message information hiding method and device, terminal equipment and storage medium
WO2023186109A1 (en) Node access method and data transmission system
CN104168302B (en) Equipment manipulation implementation method, system and proxy gateway
WO2017161866A1 (en) Network connection method and device
CN108848202B (en) Electronic device, data transmission method and related product
CN112637382B (en) Data sending method and device, and method and system for establishing P2P connection
EP1515513A1 (en) System and method for real-time data distribution using UDP
CN114363427A (en) Method for acquiring information of host equipment in real time based on browser
EP1726145B1 (en) Method and apparatus for efficiently transferring data within a telecommunications network

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