CN101969404A - Method and equipment for processing messages - Google Patents

Method and equipment for processing messages Download PDF

Info

Publication number
CN101969404A
CN101969404A CN2010105175841A CN201010517584A CN101969404A CN 101969404 A CN101969404 A CN 101969404A CN 2010105175841 A CN2010105175841 A CN 2010105175841A CN 201010517584 A CN201010517584 A CN 201010517584A CN 101969404 A CN101969404 A CN 101969404A
Authority
CN
China
Prior art keywords
message
information
service message
service
processed
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
CN2010105175841A
Other languages
Chinese (zh)
Other versions
CN101969404B (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201010517584A priority Critical patent/CN101969404B/en
Publication of CN101969404A publication Critical patent/CN101969404A/en
Application granted granted Critical
Publication of CN101969404B publication Critical patent/CN101969404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and equipment for processing messages. The method comprises the following steps of: A. judging whether the received service message is matched with a preset principle or not by the equipment; B. when the service message is matched with the preset principle, recording initial service message information of the service message by the equipment; C. after the service message is processed in the equipment, judging whether the processed service message information is consistent with the unprocessed service message information or not by the equipment; and D. when the processed service message information is inconsistent with the unprocessed service message information, recording the service message information processed by the service message by the equipment. In the invention, the equipment records the initial service message information and the processed service message information of the service message, which are matched with the preset principle, thereby tracking and recording the complete processing flow of the service message on the equipment and further positioning network faults according to the recorded information.

Description

Message processing method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for processing a packet.
Background
With the increasing demand of networks, services processed on network devices such as routers or gateways become more complicated and diversified. Network devices only perform simple service processing such as forwarding of IP messages or NAT (Network Address Translation) source Address Translation, which cannot meet actual networking applications, and various VPN (Virtual Private Network) services and MPLS (Multi-Protocol Label Switching) forwarding services are increasingly widely used, for example: the GRE (Generic Routing Encapsulation) tunneling technology ensures that messages can be transmitted across different protocol Networks, the IPSec tunneling technology provides high-quality, interoperable, and cryptography-based security assurance for data transmitted over insecure Networks, the VPDN (Virtual Private Dial-up Networks) tunneling technology provides a remote access service for remote users, and the MPLS provides a connection-oriented technology for forwarding according to a specific length label.
With the complexity and diversification of network device services, the related configuration on the network device is gradually becoming more and more complex, and network failures caused by device misconfiguration or networking application are also gradually increasing.
In order to locate a fault on a network device, a commonly used method is to track a processing flow of a service message in the network device, but the service running in the actual network device is complex, and meanwhile, the traffic flow of the processed service is also large, when debugging information related to message processing is opened when a network fault occurs, the output debugging information is more and more disordered, and the fault location and solution are not facilitated. Currently, a commonly used optimization method matches original feature information of a message by pre-configuring an Access Control List (ACL), such as: and information such as a source IP address, a destination IP address, a protocol, a source port, a destination port and the like is input, output information is filtered when the message processing debugging switch is turned on, and only messages containing specified message information are output. However, if the message is processed by services such as NAT and VPN, the original information of the message is modified, for example, the NAT service generally modifies the source address of the message, the GRE service adds a new header to the original message, and the IPSec service encrypts the original message, which all result in the original information of the message being modified, and cannot track the complete processing flow of the specific service message on the device, so that the location of the fault occurring in the network device cannot be accurately located.
Disclosure of Invention
The invention provides a message processing method and device, which can record the processing process of a message in the device.
The invention provides a message processing method, which comprises the following steps:
step A, equipment judges whether a received service message is matched with a preset rule or not;
step B, when the service message is matched with a preset rule, the equipment records the initial service message information of the service message;
step C, after the service message is processed in the equipment, the equipment judges whether the processed service message information is consistent with the service message information before processing;
and D, when the processed service message information is inconsistent with the service message information before processing, the equipment records the processed service message information of the service message.
The service message information includes: message type and message key information;
the step C comprises the following steps: when the message type of the processed service message is different from the recorded message type, judging that the processed service message information is inconsistent with the service message information before processing; and when the message type of the processed service message is the same as the recorded message type, further judging whether the message key information of the processed service message is the same as the recorded message key information, if so, judging that the processed service message information is consistent with the service message information before processing, otherwise, judging that the result is inconsistent.
The recording, by the device, initial service packet information of the service packet includes: recording the initial service message information through an initial part and a message information recording field, wherein the initial part and the message information recording field respectively comprise a message type field, the message type field of the initial part records the type of the initial service message, and the message information recording field records the key information of the initial service message;
the recording, by the device, the processed message information of the service message includes: and the equipment adds a message information record field to record the key information of the processed message, and updates the value of the message type field in the last added message information record field to the value corresponding to the type of the processed message.
The initial part also comprises record identification information of the service message;
the step C comprises the following steps: and after the service message is processed in the equipment, judging whether the service message is matched with the recording condition according to the recorded recording identification information of the service message, and judging whether the processed service message information is consistent with the service message information before processing when the service message is matched.
Further comprising:
and E, outputting the recorded initial message information and the processed message information of the service message.
A network device, comprising:
a receiving unit, configured to receive a service packet;
the processing unit is used for processing the service message;
the judging unit is connected with the receiving unit and the processing unit and used for judging whether the service message received by the receiving unit matches a preset rule or not and judging whether the service message information processed by the processing unit is consistent with the service message information before processing or not;
the recording unit is connected with the judging unit and used for recording the initial service message information of the service message when the service message is matched with a preset rule; and when the processed service message information is inconsistent with the service message information before processing, recording the processed service message information of the service message.
The service message information includes: message type and message key information; the judging unit is further configured to: when the message type of the processed service message is different from the recorded message type, judging that the processed service message information is inconsistent with the service message information before processing; and when the message type of the processed service message is the same as the recorded message type, further judging whether the message key information of the processed service message is the same as the recorded message key information, if so, judging that the processed service message information is consistent with the service message information before processing, otherwise, judging that the result is inconsistent.
The recording unit is further configured to:
recording the initial service message information through an initial part and a message information recording field, wherein the initial part and the message information recording field respectively comprise a message type field, and the message type field of the initial part records the initial service message type; and when the processed service message information is inconsistent with the service message information before processing, adding a message information recording field to record the key information of the processed message, and updating the value of the message type field in the last added message information recording field to the value corresponding to the processed message type.
The initial part also comprises record identification information of the service message;
the judging unit is further configured to: and after the service message is processed in the equipment, judging whether the service message is matched with the recording condition according to the recorded recording identification information of the service message, and judging whether the processed service message information is consistent with the service message information before processing when the service message is matched.
Further comprising:
and the output unit is connected with the recording unit and used for outputting the initial message information and the processed message information of the service message recorded by the recording unit.
Compared with the prior art, the invention has at least the following advantages:
in the invention, the equipment records the initial message information and the processed message information of the service message matched with the preset rule, so that the complete processing flow of the service message on the equipment can be tracked and recorded, and the network fault in the equipment can be positioned according to the recorded information.
Drawings
Fig. 1 and fig. 2 are schematic flow diagrams of a message processing method provided by the present invention;
fig. 3 is a schematic structural diagram of a network device provided in the present invention.
Detailed Description
In the invention, when the service message received by the equipment is matched with the preset rule, the equipment records the initial message information of the service message, and when the processed service message information is inconsistent with the service message information before processing, the equipment records the processed message information of the service message, thereby recording the initial message information of the service message and the processed message information on the equipment and tracking the processing process of the message on the equipment.
In the invention, the device records the message information of the service message in the memory. After receiving the message from the physical layer, the device copies the message from the cache of the interface physical chip, and stores the message into a segment of memory area, where the segment of memory area includes some other information besides the message itself, such as the message receiving interface, the message length, and the memory size, which are not the message itself. In the invention, when the service message is matched with a preset rule, namely the message is a specific service message needing to be tracked and processed, the equipment applies for expanding a memory (a memory area outside the memory area) in the memory to record the initial message information of the message and the processed service message information.
To clearly introduce the message processing method provided by the present invention, the configuration of the extended memory is first described.
The service message information stored in the extended memory includes an initial part and a message information recording field, wherein the initial part is defined as shown in table 1:
TABLE 1
Label Next Payload Layers Length
In Table 1, Label: a specific service packet tag, which has a length of 1 byte, is used for identifying a specific service packet, for example, each type of specific service packet may be identified by a different Label value;
next Payload: the message information type of the Next record is 0, which means that the record field is the last segment and the length is 1 byte, the Next Payload is the initial part, and the message information type of the Next record is the initial message type;
layers: the number of layers of message information recorded in the current memory is 1 byte in length, and the number of message information recording fields can be identified;
length: the length of the message information recorded in the current memory is 2 bytes.
The message information recording field records the message type and the message key information, the category of the message key information is different according to the different types of the recorded information, and the following description takes the IPv4 information type and the MPLS information type as an example.
The Next Payload field of the IPv4 information type is 1. The message information record field of the IPv4 information type is specifically shown in table 2:
TABLE 2
Figure BSA00000316079700051
Wherein,
next Payload: the length of the Next recorded message information type is 1 byte, the Next Payload in the last recorded message information recording field after each message processing is 0, which indicates that the recording field is the last segment, and the value of the Next Payload in the last message information recording field is updated from 0 to the value corresponding to the last message information type after the message processing;
SIP: IP message source IP, the length is 4 bytes;
DIP: the length of the IP message destination is 4 bytes;
ID: IP message ID information, the length is 2 bytes;
frag: IP message fragmentation information with the length of 2 bytes;
pro: IP message protocol information with length of 1 byte;
SPort: the IP message source port information is filled when the IP protocol is TCP or UDP, and the length is 2 bytes;
DPort: the IP message destination port information is filled when the IP protocol is TCP or UDP, and the length is 2 bytes;
application: a service type field, which represents the service type representation of the information for changing the message and has the length of 1 byte;
the service types are defined as follows:
initial message: 0
NAT:1
IPSec:2
GRE:3
L2TP:4
IPv4-IPv6 Tunnel:5。
The Next Payload field of the MPLS information type is 2, and the message information record field of the MPLS information type is specifically shown in table 3:
table 3:
Next Payload MPLS Label
wherein, Next Payload: the length of the Next recorded message information type is 1 byte, and the Next Payload in table 2 can be referred to specifically;
MPLS Label: the MPLS label field is consistent with the MPLS message label structure and has the length of 4 bytes.
The message processing method provided by the invention is described by two examples in combination with the setting of the extended memory. The initial service packet is an IP packet, where the packet in the first example is processed by MPLS encapsulation, and the packet in the second example is processed by IPSec.
For the first example, the message processing flow provided by the present invention is shown in fig. 1, and includes the following steps:
step 101, identifying a specific service message according to a preset rule.
For example, a specific service packet is identified by information such as a source IP address, a destination IP address, and a port number of an original packet. Caching the received message from the interface physical layer and copying the message to a memory space, then comparing the received message with a preset rule, such as ACL, if the received message is matched with the preset rule, judging that the message is a specific service message, and executing step 102; otherwise, processing according to the standard processing flow of the message.
Step 102, recording initial message information of the service message.
Applying for initial message information of a segment of memory region record message from the memory, including message type, message key information and record identification information of the record message. The three above-mentioned methods may be set to record only part of the information therein according to actual needs, for example, only record the message type and the message key information, which is not limited in the present invention.
In this example, taking the processing flow of recording the IP packet as an example, it is assumed that the Label value of the initial IP packet is 100 and the length is 24; meanwhile, since the initial part is an IP packet, the value of the Next Payload field of the initial part of the service packet information is 1, and when the initial packet information of the IP packet is stored, the initial part is as shown in table 4:
TABLE 4
100 1 1 24
As shown in table 1, the Label value is 100 for the IP packet, and the Next Payload value is 1, because it is the first record field now, so the layer value is 1, which means that there is only one record field, and Length is the Length of the record packet information.
As shown in table 2, at this time, the message is an initial message, and is not processed by other messages, only the initial message information exists, and there is no Next message information record field, so that the Next Payload field of the first message information record field of the service message information is filled with 0. The key message information includes source IP, destination IP, protocol number, ID, fragment, source/destination port of the original message (if the protocol type is TCP or UDP, otherwise, 0 is filled), reads the key information and fills in each field of the message information record, the Application field is filled with 0, which represents the initial received message, and the obtained message information record field is shown in table 5:
TABLE 5
0 192.168.1.1 100.1.1.1 8200 0 6 5006 80 0
And 103, processing the service message by the message processing module and recording message processing information.
Specifically, the message processing module needs to determine whether the service message matches the recording condition according to the record identification information of the recorded service message, for example, the message processing module determines whether the message is a specific service message according to the value of the Label field of the service message (record identification information), for example, determines whether the Label field in the extended memory associated with the message has been filled with a value, if no value exists, it indicates that the message is not a service message to be tracked, and the message is processed according to a standard flow; and if the Label field in the extended memory is filled with the value, judging that the message is a specific service message needing to be tracked.
The message processing module further compares whether the message information processed by the service module is consistent with the message information in the message information recording field recorded last in the extended memory, and the specific comparison method is as follows: firstly, comparing whether the current message type is consistent with the message type represented by the penultimate Next Payload field, and judging whether the current message type is an IPv4 message or an MPLS message in the embodiment; if the key information fields of the current message are consistent with the key information of the last record, continuing to read the key information fields of the current message and comparing the key information fields with the key information of the last record, and if the key information fields are still consistent with the key information of the last record, not performing any processing on the record information fields; if the key value of the message type or the record information field is not consistent with the current message, the following processing is adopted: filling the type of the current message into the last Next Payload field of the service message information, filling a new message information record field in the end part of the last message information record field, wherein the Next Payload field is filled with 0, filling the following information according to the type of the current message, and finally modifying the Layers and Length fields of the initial part if the message is an IPv4 message and the value of the Application field is required to be filled.
In this embodiment, the packet processing module processes the service packet, which takes MPLS encapsulation as an example. In combination with the above-described processing procedure of the message processing module, the message processing module first reads the label value, and since the value is 100, the message processing module determines that the message is a specific service message. Further, the message processing module compares the processed message type with the message type represented by the Next to last Payload field. The current message type (the processed message type) is an MPLS message, the penultimate Next Payload field is a Next Payload field in table 4, and its value is 1, and identifies an IP message, so that the two message types are different, the message processing module updates the value of the last Next Payload field (i.e., the Next Payload field in table 5) to a Next Payload value 2 (see table 3) corresponding to the MPLS message, adds a new message information recording field to record the message information after the current message processing, and modifies the layer value of the initial part to 2, and the length value is also correspondingly increased to 29.
The initial portion after the re-modification is shown in table 6:
TABLE 6
100 1 2 29
The first message information record field update is shown in table 7,
TABLE 7
2 192.168.1.1 100.1.1.1 8200 0 6 5006 80 0
The second message information record field is shown in table 8,
TABLE 8
0 1033
And 104, outputting the recorded initial message information and the processed message information of the service message.
The filtering may be performed according to a set condition when the record is output, for example, the filtering may be performed according to a Label value corresponding to a preset specific service type, so that it is possible to track that the packet has undergone several times of encapsulation and decapsulation or processing in which the packet is modified with original information when the packet is processed inside the device.
The present invention also provides another example, taking the case that the initial IP packet is processed by the IPSec service, as shown in fig. 2, including:
step 201, identifying an IP service packet according to a preset rule.
Step 202, recording initial message information of the IP service message.
Referring specifically to step 102, the initial message information record is shown in tables 4 and 5.
Step 203, the message processing module processes the IP service message with IPSec service, and records the message processing information.
Specifically, when the IPSec service is processed, the packet processing module reads the label value, and since the value is 100, the packet processing module determines that the packet is an IP service packet, and further reads the Next to last Payload value 1, which is the same as the service type processed by the IPSec service, and is an IP packet. Further, the message processing module compares the current message key information with the message key information in the last recorded message information recording field.
After the initial service packet is processed by IPSec encryption, assuming that the packet source IP is 201.1.1, the destination IP is 163.1.1.100, the protocol number is 50, the packet ID is 7000, which is different from the key information of the initial packet shown in table 5, the packet processing module updates the value of the last Next Payload field from 0 to 1, adds a new packet information recording field to record the processed packet information, modifies the layer value of the initial part to 2, correspondingly increases the length value, and the modified initial part is shown in table 9:
TABLE 9
100 1 2 43
The first message information record field update is shown in table 10,
watch 10
1 192.168.1.1 100.1.1.1 8200 0 6 5006 80 0
The second message information record field is shown in table 11,
TABLE 11
0 201.1.1.1 163.1.1.100 7000 0 50 0 0 2
An Application field value of 0 in table 10 indicates that the original packet is recorded, and an Application field value of 2 in table 11 indicates that the IPSec processing is performed on the packet.
And step 204, outputting the recorded initial message information and the processed message information of the service message.
There may be two special cases of messages in the device, namely message fragmentation and message reassembly. For the message fragmentation condition, at this time, the message is split into a plurality of sub-messages when being processed by the message processing module, the message processing module copies the extended memory fields of the message and associates the extended memory fields with the newly generated fragmentation message, and if the modified message meets the recording condition, the two extended memory fields after fragmentation are modified respectively. For the case of message reassembly, that is, a message is reassembled into a new message with another message when the message processing module processes the message, because the message processing module usually processes the reassembled message in the same process, the message processing module only needs to associate the extended memory field of one of the messages with the reassembled new message and delete the extended memory field of the other message.
The process of judging, processing and recording the message by the device in the method can be independently completed by each service processing module, or the process of judging, processing and recording can be independently completed by an independently arranged module, for example, each service module reports a completion event to the judging module after completing the service processing, and then the judging module independently completes the operations of message comparison, memory recording information modification and the like.
Based on the same technical concept as the above method example, the present invention further provides a network device, as shown in fig. 3, including:
a receiving unit 11, configured to receive a service packet;
a processing unit 12, configured to process the service packet;
a determining unit 13, connected to the receiving unit 11 and the processing unit 12, configured to determine whether the service packet received by the receiving unit matches a preset rule, and determine whether service packet information processed by the processing unit is consistent with service packet information before processing;
a recording unit 14, connected to the determining unit 13, configured to record initial service packet information of the service packet when the service packet matches a preset rule; and when the processed service message information is inconsistent with the service message information before processing, recording the processed service message information of the service message.
The service message information comprises a message type and message key information; correspondingly, the judging unit 13 is further configured to: when the message type of the processed service message is different from the recorded message type, judging that the processed service message information is inconsistent with the service message information before processing; and when the message type of the processed service message is the same as the recorded message type, further judging whether the message key information of the processed service message is the same as the recorded message key information, if so, judging that the processed service message information is consistent with the service message information before processing, otherwise, judging that the result is inconsistent.
The recording unit 14 is further configured to: recording the initial service message information through an initial part and a message information recording field, wherein the initial part and the message information recording field respectively comprise a message type field, and the message type field of the initial part records the initial service message type; and when the processed service message information is inconsistent with the service message information before processing, adding a message information recording field to record the key information of the processed message, and updating the value of the message type field in the last added message information recording field to the value corresponding to the processed message type.
The initial part also comprises record identification information of the service message; correspondingly, the judging unit 13 is further configured to: and after the service message is processed in the equipment, judging whether the service message is matched with the recording condition according to the recorded recording identification information of the service message, and judging whether the processed service message information is consistent with the service message information before processing when the service message is matched. Referring to table 1, the mode of the initial part recorded by the recording unit 14 records the initial packet type using a Next Payload field, and may also use a Label field to identify a specific service packet (that is, use a Label field value as a record identifier of the service packet), use a layer field to record the number of packet information Layers recorded in the current memory, and use a Length field to record the Length of the packet information recorded in the current memory. The message key information is recorded in the message information recording field, and the message key information recorded according to different message types can be different, and can be referred to tables 2 and 3.
The network device further includes:
and the output unit 15 is connected to the recording unit 14, and is configured to output the initial packet information and the processed packet information of the service packet recorded by the recording unit.
In the embodiment of the invention, the network equipment records the initial message information and the processed message information of the service message matched with the preset rule, so that the complete processing flow of the service message on the equipment can be tracked and recorded, and the network fault in the equipment can be positioned according to the recorded information.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
The above disclosure is only for a few specific embodiments of the present invention, but the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (10)

1. A method for message processing, comprising:
step A, equipment judges whether a received service message is matched with a preset rule or not;
step B, when the service message is matched with a preset rule, the equipment records the initial service message information of the service message;
step C, after the service message is processed in the equipment, the equipment judges whether the processed service message information is consistent with the service message information before processing;
and D, when the processed service message information is inconsistent with the service message information before processing, the equipment records the processed service message information of the service message.
2. The method of claim 1, wherein the service packet information comprises: message type and message key information;
the step C comprises the following steps: when the message type of the processed service message is different from the recorded message type, judging that the processed service message information is inconsistent with the service message information before processing; and when the message type of the processed service message is the same as the recorded message type, further judging whether the message key information of the processed service message is the same as the recorded message key information, if so, judging that the processed service message information is consistent with the service message information before processing, otherwise, judging that the result is inconsistent.
3. The method of claim 2, wherein the device recording initial service packet information of the service packet comprises: recording the initial service message information through an initial part and a message information recording field, wherein the initial part and the message information recording field respectively comprise a message type field, the message type field of the initial part records the type of the initial service message, and the message information recording field records the key information of the initial service message;
the recording, by the device, the processed message information of the service message includes: and the equipment adds a message information record field to record the key information of the processed message, and updates the value of the message type field in the last added message information record field to the value corresponding to the type of the processed message.
4. The method of claim 3, wherein the start part further includes record identification information of the service packet;
the step C comprises the following steps: and after the service message is processed in the equipment, judging whether the service message is matched with the recording condition according to the recorded recording identification information of the service message, and judging whether the processed service message information is consistent with the service message information before processing when the service message is matched.
5. The method of any one of claims 1-4, further comprising:
and E, outputting the recorded initial message information and the processed message information of the service message.
6. A network device, comprising:
a receiving unit, configured to receive a service packet;
the processing unit is used for processing the service message;
the judging unit is connected with the receiving unit and the processing unit and used for judging whether the service message received by the receiving unit matches a preset rule or not and judging whether the service message information processed by the processing unit is consistent with the service message information before processing or not;
the recording unit is connected with the judging unit and used for recording the initial service message information of the service message when the service message is matched with a preset rule; and when the processed service message information is inconsistent with the service message information before processing, recording the processed service message information of the service message.
7. The network device of claim 6, wherein the service packet information comprises: message type and message key information;
the judging unit is further configured to: when the message type of the processed service message is different from the recorded message type, judging that the processed service message information is inconsistent with the service message information before processing; and when the message type of the processed service message is the same as the recorded message type, further judging whether the message key information of the processed service message is the same as the recorded message key information, if so, judging that the processed service message information is consistent with the service message information before processing, otherwise, judging that the result is inconsistent.
8. The network device of claim 7, wherein the recording unit is further to:
recording the initial service message information through an initial part and a message information recording field, wherein the initial part and the message information recording field respectively comprise a message type field, and the message type field of the initial part records the initial service message type; and when the processed service message information is inconsistent with the service message information before processing, adding a message information recording field to record the key information of the processed message, and updating the value of the message type field in the last added message information recording field to the value corresponding to the processed message type.
9. The network device of claim 8, wherein the start portion further includes record identification information of the service packet;
the judging unit is further configured to: and after the service message is processed in the equipment, judging whether the service message is matched with the recording condition according to the recorded recording identification information of the service message, and judging whether the processed service message information is consistent with the service message information before processing when the service message is matched.
10. The network device of any one of claims 6-9, further comprising:
and the output unit is connected with the recording unit and used for outputting the initial message information and the processed message information of the service message recorded by the recording unit.
CN201010517584A 2010-10-25 2010-10-25 Method and equipment for processing messages Active CN101969404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010517584A CN101969404B (en) 2010-10-25 2010-10-25 Method and equipment for processing messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010517584A CN101969404B (en) 2010-10-25 2010-10-25 Method and equipment for processing messages

Publications (2)

Publication Number Publication Date
CN101969404A true CN101969404A (en) 2011-02-09
CN101969404B CN101969404B (en) 2012-09-26

Family

ID=43548509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010517584A Active CN101969404B (en) 2010-10-25 2010-10-25 Method and equipment for processing messages

Country Status (1)

Country Link
CN (1) CN101969404B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506463A (en) * 2015-01-04 2015-04-08 盛科网络(苏州)有限公司 Method and device for providing online process debugging information of message chip of exchanger
CN106789695A (en) * 2016-11-24 2017-05-31 杭州迪普科技股份有限公司 Message processing method and device
CN107995086A (en) * 2017-12-26 2018-05-04 南京航空航天大学 A kind of method of business datum encrypted transmission in intelligence manufacture Internet of Things based on VPDN and IPSEC
CN109547318A (en) * 2019-01-18 2019-03-29 杭州迪普科技股份有限公司 The processing method of VPN data message, device, electronic equipment
CN114531721A (en) * 2022-01-28 2022-05-24 新华三技术有限公司 Method for establishing tunnel and processing message and AC
CN114697160A (en) * 2020-12-28 2022-07-01 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN114760166A (en) * 2020-12-28 2022-07-15 国家计算机网络与信息安全管理中心 Tunnel message processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474570A (en) * 2002-08-10 2004-02-11 华为技术有限公司 Method for recording access of address changeover users in data transmission process
US7395483B1 (en) * 2004-10-15 2008-07-01 Sun Microsystems, Inc. Method and apparatus for performing error-detection and error-correction
CN101488921A (en) * 2009-02-24 2009-07-22 华为技术有限公司 Packet track recording method and packet track recording apparatus
CN101741617A (en) * 2009-12-17 2010-06-16 中兴通讯股份有限公司 Method and device for positioning fault

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474570A (en) * 2002-08-10 2004-02-11 华为技术有限公司 Method for recording access of address changeover users in data transmission process
US7395483B1 (en) * 2004-10-15 2008-07-01 Sun Microsystems, Inc. Method and apparatus for performing error-detection and error-correction
CN101488921A (en) * 2009-02-24 2009-07-22 华为技术有限公司 Packet track recording method and packet track recording apparatus
CN101741617A (en) * 2009-12-17 2010-06-16 中兴通讯股份有限公司 Method and device for positioning fault

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506463A (en) * 2015-01-04 2015-04-08 盛科网络(苏州)有限公司 Method and device for providing online process debugging information of message chip of exchanger
CN106789695A (en) * 2016-11-24 2017-05-31 杭州迪普科技股份有限公司 Message processing method and device
CN106789695B (en) * 2016-11-24 2020-04-03 杭州迪普科技股份有限公司 Message processing method and device
CN107995086A (en) * 2017-12-26 2018-05-04 南京航空航天大学 A kind of method of business datum encrypted transmission in intelligence manufacture Internet of Things based on VPDN and IPSEC
CN109547318A (en) * 2019-01-18 2019-03-29 杭州迪普科技股份有限公司 The processing method of VPN data message, device, electronic equipment
CN109547318B (en) * 2019-01-18 2021-03-23 杭州迪普科技股份有限公司 VPN data message processing method and device and electronic equipment
CN114697160A (en) * 2020-12-28 2022-07-01 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN114760166A (en) * 2020-12-28 2022-07-15 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN114760166B (en) * 2020-12-28 2023-05-26 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN114697160B (en) * 2020-12-28 2023-05-26 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN114531721A (en) * 2022-01-28 2022-05-24 新华三技术有限公司 Method for establishing tunnel and processing message and AC

Also Published As

Publication number Publication date
CN101969404B (en) 2012-09-26

Similar Documents

Publication Publication Date Title
US11374848B2 (en) Explicit routing with network function encoding
US10237177B2 (en) Transfer device and transfer system
CN101969404B (en) Method and equipment for processing messages
US9019837B2 (en) Packet modification to facilitate use of network tags
US20220078114A1 (en) Method and Apparatus for Providing Service for Traffic Flow
EP3070895B1 (en) Encapsulation method and system for flow identifier
US11711288B2 (en) Centralized error telemetry using segment routing header tunneling
US9154993B1 (en) Mobile-IPv6 encapsulation for wireless networks
US12095660B2 (en) Method for multi-segment flow specifications
CN101325557A (en) Method, system and apparatus for sharing tunnel load
US9769116B2 (en) Encapsulating traffic while preserving packet characteristics
EP2038757A2 (en) Methods and apparatus for providing optimal identification and processing of layer 3 control channels
CN113852552B (en) Network communication method, system and storage medium
EP4287550A1 (en) Packet processing method, client end device, server end device, and computer-readable medium
EP3920512A1 (en) Transmission method and device for message
US20200145255A1 (en) Service Offload or Bypass Initiated by a Service Function Forwarder in a Service Function Chaining Network
US20230327983A1 (en) Performance measurement in a segment routing network
CN108471374B (en) Data message forwarding method and device
JP6718739B2 (en) Communication device and communication method
US10917502B2 (en) Method for using metadata in internet protocol packets
US9918217B1 (en) Fast roaming across a network fabric
CN114785536B (en) Message processing method and device
US10904035B2 (en) Method and system for processing encapsulated wireless traffic
US10938778B2 (en) Route reply back interface for cloud internal communication
CN117640555A (en) QUIC message transmission method and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.