CN108965300B - Data packet generation method and device and computer readable storage medium - Google Patents
Data packet generation method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN108965300B CN108965300B CN201810806999.7A CN201810806999A CN108965300B CN 108965300 B CN108965300 B CN 108965300B CN 201810806999 A CN201810806999 A CN 201810806999A CN 108965300 B CN108965300 B CN 108965300B
- Authority
- CN
- China
- Prior art keywords
- target
- value
- character string
- bit
- string
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/02—Capturing of monitoring data
- H04L43/026—Capturing of monitoring data using flow identification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
Abstract
The invention belongs to the technical field of data packet generation, and particularly relates to a data packet generation method, a data packet generation device and a computer readable storage medium, wherein the method comprises the following steps: receiving a target value and a mask of a target byte where each key field in a packet header of a data packet to be generated is located and an interval value between any two adjacent target bytes; for each target byte, adding the target value to a bit corresponding to a first preset value in the mask code in the target byte, and adding a second preset value complement bit to a bit corresponding to a second preset value in the mask code in the target byte to obtain a target byte value; generating packet header content corresponding to the target protocol type according to the target byte values and bit complementing strings determined according to the interval values; and encapsulating the packet header content and a preset data field to obtain the data packet to be generated. The invention can improve the efficiency of the data packet generation process.
Description
Technical Field
The present invention belongs to the field of data packet generation technology, and in particular, to a data packet generation method, apparatus and computer readable storage medium.
Background
A packet generator is a tool that can produce packets of a particular type, a particular length, and a particular rate. The main function of the data packet generator is to simulate the real packet excitation environment, and generate data stream by constructing the data packet, so as to achieve the purpose of testing the packet processing equipment. The packet generator plays a significant role in testing products such as switches and routers and developing protocols. A tester can test the tested object by only building a simple test environment for the tested object without putting the tested object into an actual operation environment, and meanwhile, the risk and the cost of the test are reduced.
Currently existing packet generators are mainly implemented in software, and the existing packet generators can generally generate only one specific protocol type of packet. When the protocol type of the data packet needs to be changed in the test work, it is very inconvenient or the data packet of the protocol type needed by the test cannot be provided. Therefore, the problem of low efficiency of the packet generation process in the prior art is caused.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a data packet generation method, a data packet generation device and a computer readable storage medium, which solve the technical problem of low efficiency of a data packet generation process in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a data packet generation method, which comprises the following steps:
receiving a target value and a mask of a target byte where each key field in a packet header of a data packet to be generated is located and an interval value between any two adjacent target bytes, wherein the mask and the interval value are determined according to a packet header format corresponding to a target protocol type supported by the data packet to be generated;
for each target byte, adding the target value to a bit corresponding to a first preset value in the mask code in the target byte, and adding a second preset value complement bit to a bit corresponding to a second preset value in the mask code in the target byte to obtain a target byte value;
generating packet header content corresponding to the target protocol type according to the target byte values and bit complementing strings determined according to the interval values;
and encapsulating the packet header content and a preset data field to obtain the data packet to be generated.
Preferably, the generating, according to the plurality of target byte values and the bit complement string determined according to the interval value, packet header content corresponding to the target protocol type specifically includes:
performing head-to-tail splicing on the target byte values according to the receiving sequence of the target values to obtain character strings;
inserting bit complementing character strings determined according to the interval values into the positions corresponding to the interval values in the character strings to obtain the packet header contents corresponding to the target protocol types.
Preferably, the inserting a padding string determined according to the interval value into the position corresponding to each interval value in the string specifically includes:
inserting a plurality of bit complementing character strings determined according to the interval values into corresponding positions in the character strings for multiple times, and obtaining an expanded character string after inserting the interval values every time;
and carrying out iterative replacement on the expanded character string for multiple times until the position corresponding to each interval value in the character string is inserted into a bit-complementing character string determined according to the interval value.
Preferably, the expanding character string iterative replacement specifically includes:
replacing a second target byte value behind the bit complementing character string in the previous expansion character string by utilizing the bit complementing character string in the next expansion character string and the target byte value adjacent behind the bit complementing character string;
and storing the obtained new expansion character string between the latter expansion character string and the former expansion character string when the next expansion character string is iteratively replaced.
The invention also provides a data packet generating device, which comprises:
the device comprises a receiving module, a generating module and a processing module, wherein the receiving module is used for receiving a target value and a mask of a target byte where each key field in a packet header of a data packet to be generated is located and an interval value between any two adjacent target bytes, wherein the mask and the interval value are determined according to a packet header format corresponding to a target protocol type supported by the data packet to be generated;
an adding module, configured to add, for each target byte, the target value to a bit of the target byte corresponding to a first preset value in the mask, and add a second preset value complement to a bit of the target byte corresponding to a second preset value in the mask, to obtain a target byte value;
the generating module is used for generating packet header contents corresponding to the target protocol type according to the target byte values and bit complementing strings determined according to the interval values;
and the encapsulating module is used for encapsulating the packet header content and a preset data field to obtain the data packet to be generated.
Preferably, the generating module comprises:
the splicing submodule is used for splicing the plurality of target byte values from head to tail according to the receiving sequence of the target values to obtain a character string;
and the inserting sub-module is used for inserting the bit complementing character string determined according to the interval value into the position corresponding to each interval value in the character string to obtain the packet header content corresponding to the target protocol type.
Preferably, the insertion sub-module includes:
the inserting unit is used for inserting a plurality of bit complementing character strings determined according to the interval values into corresponding positions in the character strings for multiple times, and an expansion character string is obtained after the interval values are inserted every time;
and the replacing unit is used for carrying out iterative replacement on the expanded character string for multiple times until the position corresponding to each interval value in the character string is inserted into the bit-complementing character string determined according to the interval value.
Preferably, the replacement unit includes:
a replacing subunit, configured to replace a second target byte value after the bit complementing string in the previous extension string by using the bit complementing string in the next extension string and the target byte value adjacent to the bit complementing string;
and the storage subunit is used for storing the obtained new expansion character string between the latter expansion character string and the former expansion character string when the next iteration replacement of the expansion character string is carried out.
The present invention also provides a computer-readable storage medium storing non-volatile program code executable by a processor, the program code causing the processor to execute a packet generation method as described above.
Compared with the prior art, the invention has the following advantages:
when a user needs to support a data packet of a target protocol type, the mask and the interval value can be determined in advance according to a packet header format corresponding to the target protocol type, meanwhile, a target value of a target byte where a key field is located is determined, then, the data packet to be generated is obtained by using the data packet generation method of the invention, and firstly, the target value and the mask of the target byte where each key field is located in the packet header of the data packet to be generated and the interval value between any two adjacent target bytes are received; for each target byte, adding the target value to a bit corresponding to a first preset value in the mask code in the target byte, and adding a second preset value complement bit to a bit corresponding to a second preset value in the mask code in the target byte to obtain a target byte value; generating packet header content corresponding to the target protocol type according to the target byte values and bit complementing strings determined according to the interval values; and encapsulating the packet header content and a preset data field to obtain the data packet to be generated. Thus, the obtained data packet is the data packet that the user needs to support the target protocol type, and at this time, when the data packet is used for the data packet that needs to support another target protocol type, the mask and interval values may be determined in advance according to a packet header format corresponding to another target protocol type, and the target value of the target byte where the key field is located may be determined at the same time, and then, the data packet generation method is used again to obtain the data packet of another target protocol type, so as to avoid the problem that the existing data packet generator can only generate the data packet of a specific protocol type, when the test work needs to change the protocol type of the data packet, the prior art is very inconvenient or can not provide the data packet of the protocol type needed by the test, therefore, the technical problem that the efficiency of the data packet generation process is low in the prior art is solved, and the technical effect of improving the efficiency of the data packet generation process is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a data packet generating method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for generating header contents corresponding to a target protocol type;
FIG. 3 is a flow chart of a method of inserting a padding string in a string determined by an interval value;
FIG. 4 is a flow diagram of a method of expanding iterative replacement of strings;
FIG. 5 is a sequence diagram of iterative replacement of an expanded string;
fig. 6 is a block diagram of a data packet generating apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of a generating module in a data packet generating apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram illustrating a structure of an insertion sub-module in a data packet generating apparatus according to an embodiment of the present invention;
fig. 9 is a block diagram of a replacement unit in a packet generation apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core of the invention is to provide a data packet generation method, a data packet generation device and a computer readable storage medium, so as to improve the efficiency of a data packet generation process.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, fig. 1 is a flowchart illustrating a method for generating a data packet according to an embodiment of the present invention, where the method for generating a data packet specifically includes the following steps:
step S101, receiving a target value and a mask of a target byte where each key field in a packet header of a data packet to be generated is located and an interval value between any two adjacent target bytes, wherein the mask and the interval value are determined according to a packet header format corresponding to a target protocol type supported by the data packet to be generated.
Specifically, the packet header of the data packet to be generated is divided in units of bytes, so that the control efficiency of data can be improved. The header includes a number of fields, and among these fields, the fields concerned by the user are called key fields. Within the header, a critical field may include a number of target bytes in the byte. The target value and the mask are both 8 bits. The interval value is 4 bits, and the unit of the interval value is bytes, for example, the interval value between the target byte where the target value a is located and the target byte where the target value B is located is 5, that is, the interval between the target byte where the target value a is located and the target byte where the target value B is located is 5 bytes. Each target byte is assigned a mask, and the bits of the target byte and the bits of the mask are in a one-to-one correspondence.
Step S102, for each target byte, adding the target value to a bit of the target byte corresponding to a first preset value in the mask, and adding a second preset value complement to a bit of the target byte corresponding to a second preset value in the mask to obtain a target byte value.
Specifically, the first preset value may be a digital 1, and the second preset value may be a digital 0. And adding the target value to a bit corresponding to a number 1 in the mask in the target byte and adding a digit 0 complement bit to a bit corresponding to a number 0 in the mask in the target byte to obtain a target byte value aiming at each target byte. For example, the target value a of the target byte a is 1011, and the mask a corresponding to the target byte a is 11110000, so the target value a (1011) is added to the bit of the target byte a corresponding to the number 1 of the mask a, and the complement of the number 0 is added to the bit of the target byte a corresponding to the number 0 of the mask a, resulting in the target byte value 10110000.
Step S103, generating packet header content corresponding to the target protocol type according to the target byte values and the bit complementing string determined according to the interval value.
As shown in fig. 2, step S103 may include the steps of:
step S201, performing end-to-end concatenation on the plurality of target byte values according to the receiving sequence of the target values to obtain a character string.
Specifically, the order of reception of the known target values is: and if the target value A, the target value B and the target value C are obtained, splicing the tail of the target byte value corresponding to the target value A and the head of the target byte corresponding to the target value B, and splicing the tail of the target byte value corresponding to the target value B and the head of the target byte value corresponding to the target value C to obtain the character string.
Step S202, inserting a bit complementing character string determined according to the interval value into the position corresponding to each interval value in the character string to obtain the packet header content corresponding to the target protocol type.
As shown in fig. 3, step S202 may include the steps of:
step S301, inserting a plurality of bit-filling character strings determined according to the interval value into corresponding positions in the character strings for multiple times, and obtaining an expanded character string after inserting the interval value every time.
Specifically, it is known that target byte a corresponds to interval value a and target value a, target byte B corresponds to interval value B and target value B, and target byte C corresponds to interval value C and target value C. The order of reception of the known target values is: target value a, target value B and target value C. First, the complement string is determined according to the interval value, for example, when the interval value a is 5, the complement string a corresponding to the interval value a may be determined to be 40 (5 times 8 bits equals 40 bits) bits, and the value on each bit is a number 0. Then, a padding character string A is inserted into the character string, and the inserted position is in front of the target value A, so that an expansion character string A is obtained. And inserting the padding character string B into the character string, wherein the inserted position is between the target value A and the target value B, and an expanded character string B is obtained. And inserting the padding character string C into the character string, wherein the inserted position is between the target value B and the target value C, and an expanded character string C is obtained.
Step S302, carrying out iterative replacement on the expanded character string for multiple times until the position corresponding to each interval value in the character string is inserted into a bit-complementing character string determined according to the interval value.
As shown in fig. 4, step S302 may include the steps of:
step S401, replacing the second target byte value after the bit complementing character string in the previous extension character string with the bit complementing character string in the next extension character string and the target byte value adjacent to the bit complementing character string.
And step S402, storing the obtained new expansion character string between the latter expansion character string and the former expansion character string when the next expansion character string is iteratively replaced.
Specifically, as shown in fig. 5, a run-out string a51, a run-out string B52, and a run-out string C53 are known with a sequential generation order. First, replacing a target byte value B in a extension string a51 with a complement string B in an extension string B52 and a target byte value B adjacent to the complement string B to obtain a first extension string 54, and storing the first extension string 54 between an extension string B52 and an extension string C53. Then the next round of replacement is performed. The complementary string C in the extension string C53 and the target byte value C adjacent to the complementary string C are substituted for the target byte value C in the first extension string 54, resulting in the second extension string 55. Since the padding strings determined according to the interval values are inserted into the positions corresponding to the interval values in the second extension string 55, the second extension string 55 is the header content corresponding to the target protocol type.
And step S104, encapsulating the packet header content and a preset data field to obtain the data packet to be generated.
It is understood that the data field may be a fixed value designated by the user or a random value. And finally, the obtained data packet to be generated is the data packet corresponding to the target protocol type, and the data packet is required by the user.
When the protocol type of the data packet needs to be changed in the test work, the prior art is very inconvenient or cannot provide the data packet of the protocol type needed by the test, so that the technical problem that the efficiency of the data packet generation process is low in the prior art is solved, and the technical effect of improving the efficiency of the data packet generation process is achieved.
Corresponding to the above method embodiment, the present invention further provides a data packet generating device, as shown in fig. 6, fig. 6 is a block diagram of a structure of the data packet generating device provided in the embodiment of the present invention, where the device includes:
a receiving module 601, configured to receive a target value and a mask of a target byte where each key field in a packet header of a data packet to be generated is located, and an interval value between any two adjacent target bytes, where the mask and the interval value are determined according to a packet header format corresponding to a target protocol type supported by the data packet to be generated.
An adding module 602, configured to add, for each target byte, the target value to a bit of the target byte corresponding to a first preset value in the mask, and add a second preset value complement to a bit of the target byte corresponding to a second preset value in the mask, to obtain a target byte value.
A generating module 603, configured to generate packet header content corresponding to the target protocol type according to the target byte values and the bit padding string determined according to the interval value.
Further, as shown in fig. 7, the generating module includes a splicing sub-module and an inserting sub-module.
And the splicing submodule 701 is configured to splice the plurality of target byte values end to end according to the receiving sequence of the target values, so as to obtain a character string.
The inserting sub-module 702 is configured to insert a bit complementing string determined according to the interval value into a position corresponding to each interval value in the string, so as to obtain a packet header content corresponding to the target protocol type.
Further, as shown in fig. 8, the insertion sub-module includes an insertion unit and a replacement unit.
An inserting unit 801, configured to insert multiple bit-filling strings determined according to the interval value into corresponding positions in the string for multiple times, where an extended string is obtained after the interval value is inserted each time.
A replacing unit 802, configured to perform iterative replacement on the expanded character string multiple times until a padding character string determined according to the interval value is inserted into a position corresponding to each interval value in the character string.
Further, as shown in fig. 9, the replacement unit includes a replacement sub-unit and a storage sub-unit.
A replacing subunit 901, configured to replace the second target byte value after the bit complementing string in the previous extension string by using the bit complementing string in the next extension string and the target byte value adjacent to the bit complementing string.
And a storing subunit 902, configured to store the obtained new expansion character string between the subsequent expansion character string and a previous expansion character string when performing next iteration replacement on the expansion character string.
An encapsulating module 604, configured to encapsulate the packet header content and a preset data field to obtain the data packet to be generated.
In correspondence with the above method embodiments, the present invention also provides a computer-readable storage medium storing non-volatile program code executable by a processor, the program code causing the processor to execute one of the above packet generation methods.
The computer program product for performing the data packet generating method provided in the embodiment of the present invention includes a computer-readable storage medium storing a nonvolatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
In all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of example embodiments may have different values.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution 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 all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (5)
1. A method for generating a data packet, the method comprising:
receiving a target value and a mask of a target byte where each key field in a packet header of a data packet to be generated is located and an interval value between any two adjacent target bytes, wherein the mask and the interval value are determined according to a packet header format corresponding to a target protocol type supported by the data packet to be generated;
for each target byte, adding the target value to a bit corresponding to a first preset value in the mask code in the target byte, and adding a second preset value complement bit to a bit corresponding to a second preset value in the mask code in the target byte to obtain a target byte value;
generating packet header content corresponding to the target protocol type according to the target byte values and the bit complementing string determined according to the interval value, specifically comprising: performing head-to-tail splicing on the target byte values according to the receiving sequence of the target values to obtain character strings; inserting bit complementing character strings determined according to the interval values into the positions corresponding to the interval values in the character strings to obtain packet header contents corresponding to the target protocol types;
inserting a bit complementing string determined according to the interval value into a position corresponding to each interval value in the string, specifically including: inserting a plurality of bit complementing character strings determined according to the interval values into corresponding positions in the character strings for multiple times, and obtaining an expanded character string after inserting the interval values every time; carrying out iterative replacement on the expanded character string for multiple times until the position corresponding to each interval value in the character string is inserted into a bit complementing character string determined according to the interval value;
and encapsulating the packet header content and a preset data field to obtain the data packet to be generated.
2. The method according to claim 1, wherein the iterative replacement of the extension string specifically includes:
replacing a second target byte value behind the bit complementing character string in the previous expansion character string by utilizing the bit complementing character string in the next expansion character string and the target byte value adjacent behind the bit complementing character string;
and storing the obtained new expansion character string between the latter expansion character string and the former expansion character string when the next expansion character string is iteratively replaced.
3. A packet generation apparatus, comprising:
the device comprises a receiving module, a generating module and a processing module, wherein the receiving module is used for receiving a target value and a mask of a target byte where each key field in a packet header of a data packet to be generated is located and an interval value between any two adjacent target bytes, wherein the mask and the interval value are determined according to a packet header format corresponding to a target protocol type supported by the data packet to be generated;
an adding module, configured to add, for each target byte, the target value to a bit of the target byte corresponding to a first preset value in the mask, and add a second preset value complement to a bit of the target byte corresponding to a second preset value in the mask, to obtain a target byte value;
the generating module is used for generating packet header contents corresponding to the target protocol type according to the target byte values and bit complementing strings determined according to the interval values;
the encapsulation module is used for encapsulating the packet header content and a preset data field to obtain the data packet to be generated;
the generation module comprises:
the splicing submodule is used for splicing the plurality of target byte values from head to tail according to the receiving sequence of the target values to obtain a character string;
the inserting sub-module is used for inserting bit complementing character strings determined according to the interval values into the positions corresponding to the interval values in the character strings to obtain packet header contents corresponding to the target protocol types;
the insertion sub-module includes:
the inserting unit is used for inserting a plurality of bit complementing character strings determined according to the interval values into corresponding positions in the character strings for multiple times, and an expansion character string is obtained after the interval values are inserted every time;
and the replacing unit is used for carrying out iterative replacement on the expanded character string for multiple times until the position corresponding to each interval value in the character string is inserted into the bit-complementing character string determined according to the interval value.
4. A packet generating apparatus according to claim 3, wherein said replacing unit comprises:
a replacing subunit, configured to replace a second target byte value after the bit complementing string in the previous extension string by using the bit complementing string in the next extension string and the target byte value adjacent to the bit complementing string;
and the storage subunit is used for storing the obtained new expansion character string between the latter expansion character string and the former expansion character string when the next iteration replacement of the expansion character string is carried out.
5. A computer-readable storage medium storing non-volatile program code executable by a processor, the program code causing the processor to perform a packet generation method according to any one of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810806999.7A CN108965300B (en) | 2018-07-21 | 2018-07-21 | Data packet generation method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810806999.7A CN108965300B (en) | 2018-07-21 | 2018-07-21 | Data packet generation method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108965300A CN108965300A (en) | 2018-12-07 |
CN108965300B true CN108965300B (en) | 2021-06-18 |
Family
ID=64495516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810806999.7A Active CN108965300B (en) | 2018-07-21 | 2018-07-21 | Data packet generation method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965300B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111181802B (en) * | 2019-12-10 | 2022-02-25 | 中移(杭州)信息技术有限公司 | Protocol data simulation method, device and computer readable storage medium |
CN112948235B (en) * | 2021-01-28 | 2024-03-22 | 维沃移动通信有限公司 | Data packet generation method and device and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102918793A (en) * | 2010-09-30 | 2013-02-06 | Lg电子株式会社 | Method and apparatus for transmitting control information |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003078553A (en) * | 2001-08-31 | 2003-03-14 | Hitachi Ltd | Packet transferring method |
CN101841437B (en) * | 2010-03-23 | 2012-04-18 | 华为技术有限公司 | Method and device for testing equipment |
CN102420713A (en) * | 2010-09-28 | 2012-04-18 | 大唐移动通信设备有限公司 | Test data packet packaging method and equipment |
CN105634684B (en) * | 2014-11-19 | 2019-04-19 | 中国移动通信集团广东有限公司 | A kind of processing method of data packet, device and server |
CN106209830B (en) * | 2016-07-08 | 2019-12-10 | 中国人民解放军国防科学技术大学 | message construction method based on XML network protocol expression |
-
2018
- 2018-07-21 CN CN201810806999.7A patent/CN108965300B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102918793A (en) * | 2010-09-30 | 2013-02-06 | Lg电子株式会社 | Method and apparatus for transmitting control information |
Also Published As
Publication number | Publication date |
---|---|
CN108965300A (en) | 2018-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101745456B1 (en) | Ecu for transmitting large data in hil test environment, system including the same and method thereof | |
CN108965300B (en) | Data packet generation method and device and computer readable storage medium | |
US8102776B2 (en) | Methods and apparatus for generating simulated network traffic | |
CN104579541B (en) | A kind of building method of wireless communication system Medium Access Layer protocol Data Unit | |
CN105308927A (en) | Packet editing method and related device | |
JP5694717B2 (en) | Traffic distribution control process and apparatus | |
KR20050057698A (en) | Apparatus and method for generating checksum | |
US8121974B2 (en) | Method of generating node indentifier in tree structure | |
CN112787927A (en) | Segmented routing message forwarding method and device and preset logic circuit unit | |
CN110868458B (en) | Communication method and device for stable control system | |
CN114422385B (en) | Method and system for generating network system test case | |
CN112696995A (en) | Electronic detonator network quick addressing method and device and electronic detonator system | |
CN112737995B (en) | Method, device and equipment for processing Ethernet frame and storage medium | |
CN102404152B (en) | Method and equipment for identifying response messages | |
CN107547378B (en) | VPN route learning method and device | |
CN109844750A (en) | Padding state determines | |
CN108092942B (en) | Message processing method and device | |
CN116318660A (en) | Message expansion and compression method and related device | |
CN107005433A (en) | A kind of Timing Processing method and device of flow table item | |
CN103957070A (en) | Method and device for positioning data frame | |
CN107070922B (en) | Method and device for accelerating message generation | |
CN107579930B (en) | Method for generating message label | |
JP6647725B2 (en) | Traffic generation device and traffic generation method | |
CN113973074B (en) | Message processing method and device, electronic equipment and medium | |
CN113518033A (en) | Routing method, Hash operation method, router, device and equipment |
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 |