A message callback method and device
A message encapsulation and message technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve problems such as message errors and abnormal processing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] The embodiment of the present invention provides a message callback method, such as figure 1 As shown, the method includes:
[0029] 101. Receive the processed message after the header information is encapsulated and sent by the message processing device.
[0030] Among them, the header information is usually encapsulated during the transmission process of the message. In the embodiment of the present invention, the encryption and decryption driver module receives the message processed by the encryption and decryption chip. The serial number is encapsulated into the header information together. Of course, the encapsulated header information may also contain other information required for transmission or processing, such as encrypted key vectors, etc., which is not limited in this embodiment of the present invention. After the encryption and decryption chip encrypts and decrypts the message, it does not change the header information encapsulated in the message, and repl...
Embodiment 2
[0038] The embodiment of the present invention provides a message callback method, such as figure 2 As shown, the method may include:
[0039] 201. A message to be processed is received.
[0040] Among them, part of the processing links in a processing flow can be handled by a message processing device with a specific function. Therefore, when a message to be processed is received, the message to be processed needs to be sent to the message processing device. After the processing of the message is completed, the processed message needs to be sent to the interface waiting for the message. For example, in a network router, the hardware encryption and decryption chip realizes the encryption and decryption operations of the message. The IPSec protocol layer module sends the message to be encrypted or decrypted to the encryption and decryption driver layer, and the encryption and decryption driver layer module receives the message to be encrypted. After decrypting the message, i...
Embodiment 3
[0072] Another embodiment of the present invention provides a message callback device, such as Figure 5 As shown, the device may include:
[0073] A receiving module 51, configured to receive the processed message sent by the message processing device after encapsulating the header information;
[0074] The obtaining module 52 is used to obtain the packet sequence number and the buffer descriptor BD sequence number from the header information of the processed packet received by the receiving module 51, wherein the BD sequence number is the same as that of the BD ring One-to-one correspondence of cache units;
[0075] A matching module 53, configured to match the packet serial number acquired by the acquiring module 52 with the packet serial number stored in the cache unit of the BD ring;
[0076] The callback module 54 is configured to, when the matching result of the matching module 53 indicates that the packet serial number obtained in the encapsulated header information ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


