Search

CN-122001648-A - Network data packet sending method and device and related equipment

CN122001648ACN 122001648 ACN122001648 ACN 122001648ACN-122001648-A

Abstract

The application provides a network data packet sending method, a device and related equipment, wherein the network data packet sending method comprises the steps of analyzing a first network data packet sent by received first electronic equipment to obtain a first request for acquiring an industrial control protocol body; under the condition that a second request matched with the first request exists in a cache, a first protocol body corresponding to the second request is obtained, an intelligent body is called to generate a first data field according to the first protocol body, data stored in a first target position for storing the data field in the first protocol body is null, the first data field is stored in the first target position in the first protocol body to generate the industrial control protocol body, the industrial control protocol body is packaged into a second network data packet, and the second network data packet is sent to the first electronic equipment. Therefore, the updating efficiency of the tool protocol body is improved.

Inventors

  • WANG ZONGXIANG
  • LIAN LINA
  • WEI XIAOSHAN
  • LI DAN
  • ZHOU WEI
  • MA BING
  • ZHONG QIWEI
  • GUO GUANGYUE
  • BAO ZEWEN
  • ZHOU LI

Assignees

  • 中移(上海)信息通信科技有限公司
  • 中移智行网络科技有限公司
  • 中国移动通信集团有限公司
  • 中移湾区(广东)创新研究院有限公司

Dates

Publication Date
20260508
Application Date
20260203

Claims (10)

  1. 1. A method for transmitting a network packet, comprising: Analyzing a first network data packet sent by a received first electronic device to obtain a first request for acquiring an industrial control protocol body; under the condition that a second request matched with the first request exists in a cache, acquiring a first protocol body corresponding to the second request, and calling an intelligent agent to generate a first data field according to the first protocol body, wherein data stored in a first target position for storing the data field in the first protocol body is null; storing the first data field into a first target location in the first protocol body to generate the industrial control protocol body; And encapsulating the industrial control protocol body into a second network data packet, and sending the second network data packet to the first electronic equipment.
  2. 2. The method according to claim 1, wherein, in the case that it is determined that there is a second request matching the first request in the cache, acquiring a first protocol body corresponding to the second request includes: Detecting whether a second request matched with the first request exists in a cache; And under the condition that a plurality of candidate requests matched with the first request exist in the cache, determining the candidate request with the largest hit number in the plurality of candidate requests as the second request, and acquiring a first protocol body corresponding to the second request.
  3. 3. The method of claim 1, wherein the invoking agent generating a first data field from the first protocol body comprises: Generating a first prompt word template according to the first request and the first protocol body, wherein the first prompt word template is used for enabling the intelligent agent to generate the first data field according to the format of the first prompt word template; And calling the intelligent agent to perform model reasoning according to the first prompt word template so as to generate the first data field.
  4. 4. The method of claim 3, wherein said invoking said agent to perform model reasoning from said hint word template to generate said first data field comprises: determining a fine tuning weight according to the first protocol body, wherein the first protocol body corresponds to the fine tuning weight; and correcting the agent according to the fine adjustment weight, and calling the corrected agent to perform model reasoning according to the prompt word template so as to generate the first data field.
  5. 5. The method according to claim 1, wherein the method further comprises: Calling an intelligent agent to respectively generate a second protocol body and a second data field under the condition that a second request matched with the first request does not exist in a cache, wherein data stored in a second target position for storing the data field in the second protocol body is null; Storing the second data field in a second target location in the second protocol body to generate the industrial control protocol body; And encapsulating the industrial control protocol body into a third network data packet, and sending the third network data packet to the first electronic equipment.
  6. 6. The method of claim 5, wherein the invoking the agent generates a second protocol body and a second data field, respectively, comprising: generating a second prompt word template and a third prompt word template according to the first request, wherein the second prompt word template is used for enabling the intelligent agent to generate the second protocol body according to the format of the second prompt word template, and the third prompt word template is used for enabling the intelligent agent to generate the second data field according to the format of the third prompt word template; Invoking the intelligent agent to perform model reasoning according to the second prompt word template so as to generate the second protocol body; and invoking the agent to perform model reasoning according to the third prompt word template to generate the second data field.
  7. 7. A network packet transmission apparatus, comprising: the analysis module is used for analyzing the received first network data packet sent by the first electronic equipment to obtain a first request for acquiring the industrial control protocol body; The acquisition module is used for acquiring a first protocol body corresponding to the second request and calling the intelligent agent to generate a first data field according to the first protocol body under the condition that the second request matched with the first request exists in the cache, wherein data stored in a first target position for storing the data field in the first protocol body is null; the generation module is used for storing the first data field into a first target position in the first protocol body so as to generate the industrial control protocol body; and the sending module is used for packaging the industrial control protocol body into a second network data packet and sending the second network data packet to the first electronic equipment.
  8. 8. An electronic device comprising a memory, a processor and a program stored on the memory and executable on the processor, characterized in that the processor is adapted to read the program in the memory to implement the steps in the network packet transmission method according to any one of claims 1 to 6.
  9. 9. A readable storage medium storing a program, wherein the program when executed by a processor implements the steps in the network packet transmission method according to any one of claims 1 to 6.
  10. 10. A computer program product comprising computer instructions which, when executed by a processor, implement the steps in the network data packet transmission method of any one of claims 1 to 6.

Description

Network data packet sending method and device and related equipment Technical Field The embodiment of the application relates to the technical field of artificial intelligence, in particular to a network data packet sending method, a network data packet sending device and related equipment. Background With the continuous development of electronic technology, electronic equipment occupies an increasingly important position in the life of people, and honeypots can be arranged in the electronic equipment at present to improve the safety performance of the electronic equipment, and are active defense technology, attacks are attracted by an attacker through actively exposing some holes and setting some baits, and the attack behavior is analyzed by capturing attack flow or codes. When the protocol body corresponding to the honeypot is written, when the application scene is updated, a user is required to manually update the protocol body, and the efficiency of manually updating the protocol body by the user is lower. It can be seen that the update efficiency of the current protocol body is low. Disclosure of Invention The embodiment of the application provides a network data packet sending method, a network data packet sending device and related equipment, which are used for solving the problem of low updating efficiency of a current protocol body. To solve the above problems, the present application is achieved as follows: in a first aspect, an embodiment of the present application provides a method for sending a network data packet, including: Analyzing a first network data packet sent by a received first electronic device to obtain a first request for acquiring an industrial control protocol body; under the condition that a second request matched with the first request exists in a cache, acquiring a first protocol body corresponding to the second request, and calling an intelligent agent to generate a first data field according to the first protocol body, wherein data stored in a first target position for storing the data field in the first protocol body is null; storing the first data field into a first target location in the first protocol body to generate the industrial control protocol body; And encapsulating the industrial control protocol body into a second network data packet, and sending the second network data packet to the first electronic equipment. In a second aspect, an embodiment of the present application provides a network packet sending device, including: the analysis module is used for analyzing the received first network data packet sent by the first electronic equipment to obtain a first request for acquiring the industrial control protocol body; The acquisition module is used for acquiring a first protocol body corresponding to the second request and calling the intelligent agent to generate a first data field according to the first protocol body under the condition that the second request matched with the first request exists in the cache, wherein data stored in a first target position for storing the data field in the first protocol body is null; the generation module is used for storing the first data field into a first target position in the first protocol body so as to generate the industrial control protocol body; and the sending module is used for packaging the industrial control protocol body into a second network data packet and sending the second network data packet to the first electronic equipment. In a third aspect, an embodiment of the present application further provides an electronic device, including a memory, a processor, and a program stored in the memory and capable of running on the processor, where the processor is configured to read the program in the memory to implement the steps in the method according to the foregoing first aspect. In a fourth aspect, embodiments of the present application also provide a readable storage medium storing a program which, when executed by a processor, implements the steps of the method as described in the foregoing first aspect. In a fifth aspect, embodiments of the present application also provide a computer program product comprising computer instructions which, when executed by a processor, implement the steps of the method as described in the first aspect above. In the embodiment of the application, a first network data packet sent by a received first electronic device is analyzed to obtain a first request for acquiring an industrial control protocol body, the first protocol body corresponding to a second request is acquired under the condition that the second request matched with the first request exists in a cache, an intelligent agent is called to generate a first data field according to the first protocol body, data stored in a first target position for storing the data field in the first protocol body is null, the first data field is stored in the first target position in the first protocol body to generate the industrial con