Movatterモバイル変換


[0]ホーム

URL:


CN119420830A - A Wireshark message parsing plug-in generation method and system - Google Patents

A Wireshark message parsing plug-in generation method and system
Download PDF

Info

Publication number
CN119420830A
CN119420830ACN202510020856.3ACN202510020856ACN119420830ACN 119420830 ACN119420830 ACN 119420830ACN 202510020856 ACN202510020856 ACN 202510020856ACN 119420830 ACN119420830 ACN 119420830A
Authority
CN
China
Prior art keywords
field
protocol
stack
plug
bit width
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.)
Pending
Application number
CN202510020856.3A
Other languages
Chinese (zh)
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.)
Chengdu Beizhong Network Core Technology Co ltd
Original Assignee
Chengdu Beizhong Network Core Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Beizhong Network Core Technology Co ltdfiledCriticalChengdu Beizhong Network Core Technology Co ltd
Priority to CN202510020856.3ApriorityCriticalpatent/CN119420830A/en
Publication of CN119420830ApublicationCriticalpatent/CN119420830A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

A method for generating Wireshark message analysis plug-in includes obtaining designed protocol hierarchy relation diagram, analyzing protocol hierarchy relation diagram by using hierarchy relation diagram analysis engine to obtain correlation and key content of field value between hierarchy and in layer, analyzing protocol design document by using protocol design document engine to obtain field set, using bit width of data type in Wireshark plug-in as reference set, processing field bit width according to protocol field splitting algorithm to obtain field set mask by marking field type and mask, constructing plug-in element according to field set mask and generating protocol analysis plug-in according to hierarchy relation diagram, protocol design document and plug-in element. The method can reduce the development threshold of the plug-in, solve the problems of complex and various protocol designs, uncertain fields and the like, and efficiently, accurately and automatically generate the Wireshark message analysis plug-in.

Description

Wireshark message parsing plug-in generation method and system
Technical Field
The invention relates to the technical field of computer networks, in particular to a method and a system for generating a Wireshark message parsing plug-in.
Background
Wireshark is a powerful and popular open source network protocol analysis tool. In order to enable a user to more conveniently and effectively use the Wireshark to analyze protocol data packets transmitted in a network in network communication, the Wireshark provides a stronger plug-in extension function.
When the Wireshark parses the data packet of the custom protocol, the data packet is usually defined according to the protocol format and implemented by combining with the extension rule of the plug-in. The existing plug-in development approach provided by Wireshark has significant limitations. Firstly, the Lua and C languages supported by the plug-in implementation of Wireshark are embedded languages, the plug-in development has high implementation threshold and complex design logic, and secondly, the protocol design has the problems of complexity, diversity, flexible level nesting, high field option and width uncertainty, high development difficulty, low reusability, high maintenance cost, difficult debugging and positioning and the like of the plug-in.
Disclosure of Invention
The invention aims to provide a method and a system for generating a Wireshark message parsing plug-in, which are used for solving the technical problems in the prior art.
The invention is realized by the following technical scheme:
in a first aspect, a method for generating a Wireshark message parsing plug-in according to an embodiment of the present invention includes:
acquiring a designed protocol hierarchy relation diagram;
Analyzing the protocol hierarchy relation diagram by adopting a hierarchy relation diagram analysis engine to obtain the association of field values among hierarchies and in the hierarchy and key content, and analyzing a protocol design document by adopting a protocol design document engine to obtain a field set;
The bit width of the data type in the Wireshark plug-in is used as a reference set, the field bit width is processed according to a protocol field splitting algorithm, and the type and the mask of the field are marked to obtain a field set mask;
Constructing plug-in elements according to the field set mask;
and generating a protocol analysis plug-in according to the hierarchical relation graph, the protocol design document and the plug-in element.
In a second aspect, the system for generating the Wireshark message parsing plug-in provided by the embodiment of the invention comprises an acquisition module, a parsing module, a calculation module, a construction module and a generation module,
The acquisition module is used for acquiring a designed protocol hierarchy relation diagram;
The analysis module analyzes the protocol hierarchical relation diagram by adopting a hierarchical relation diagram analysis engine to obtain the association of field values among the hierarchies and in the hierarchy and key content, and analyzes a protocol design document by adopting a protocol design document engine to obtain a field set;
the computing module takes the bit width of the data type in the Wireshark plug-in as a reference set, processes the field bit width according to a protocol field splitting algorithm, marks the type of the field and the mask to obtain a field set mask;
the construction module is used for constructing plug-in elements according to the field set mask;
And the generating module generates a protocol analysis plug-in according to the hierarchical relation graph, the protocol design document and the plug-in element.
Compared with the prior art, the invention has the following advantages and beneficial effects:
The Wireshark message analysis plug-in generation method and system provided by the embodiment of the invention firstly automatically generates the plug-in through a plug-in Python program without directly writing a Lua program, reduces the development threshold of the plug-in, secondly simplifies the design flow of the protocol plug-in through a protocol layer relation diagram mode, enables the protocol plug-in to realize more clear logic, and then introduces a protocol field splitting algorithm to enable the complicated and diverse pain points with uncertain fields of the protocol design to be solved. Finally, the method is transparent to the protocol, and the logical adjustment and field change of the protocol design are realized by only adjusting the protocol design document to regenerate the protocol plug-in unit, thus realizing plug-in and play of the plug-in unit.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the drawings that are needed in the examples will be briefly described below, it being understood that the following drawings only illustrate some examples of the present invention and therefore should not be considered as limiting the scope, and that other related drawings may be obtained from these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flowchart of a method for generating a Wireshark message parsing plug-in according to a first embodiment of the present invention;
FIG. 2 is a design protocol hierarchy diagram;
FIG. 3 is a flow chart of a specific method of computing a field set mask from a field set;
FIG. 4 is a topology diagram of a protocol resolution plug-in application;
Fig. 5 is a block diagram of a Wireshark message parsing plug-in generating system according to another embodiment of the present invention.
Detailed Description
For the purpose of making apparent the objects, technical solutions and advantages of the present invention, the present invention will be further described in detail with reference to the following examples and the accompanying drawings, wherein the exemplary embodiments of the present invention and the descriptions thereof are for illustrating the present invention only and are not to be construed as limiting the present invention.
Examples
As shown in fig. 1, a method for generating a Wireshark message parsing plug-in according to an embodiment of the present invention includes:
acquiring a designed protocol hierarchy relation diagram;
Analyzing the protocol hierarchy relation diagram by adopting a hierarchy relation diagram analysis engine to obtain the association of field values among hierarchies and in the hierarchy and key content, and analyzing a protocol design document by adopting a protocol design document engine to obtain a field set;
The bit width of the data type in the Wireshark plug-in is used as a reference set, the field bit width is processed according to a protocol field splitting algorithm, and the type and the mask of the field are marked to obtain a field set mask;
Constructing plug-in elements according to the field set mask;
and generating a protocol analysis plug-in according to the hierarchical relation graph, the protocol design document and the plug-in element.
The method is driven by using a protocol layer relation diagram mode, and is developed around the processing of the protocol layer relation diagram based on a protocol design document.
First, as shown in fig. 2, a design protocol hierarchy diagram is shown, and the protocol in this embodiment is drawn based on Ethernet, and belongs to a two-layer communication protocol. The protocol includes a protocol type, a private service header field, a private sub-service header field, and a service body field. And taking the custom protocol Type value as an identification protocol number. Wherein the protocol field parts are all except the Ethernet head part. In the protocol, the next layer of protocol may be determined by one or more field values in the upper layer protocol structure, or may be determined by the upper layer of protocol field and the field values in the next layer of protocol. The design of the protocol hierarchy relation diagram has strong flexibility, not only can use the design of protocol multi-hierarchy messages, but also can be suitable for the design of any hierarchy nested protocol of a standard protocol, and only the fields need to be specified in the upper layer of the protocol part.
And secondly, after the protocol hierarchical relation diagram is designed, writing an analysis protocol design document engine and an engine for the hierarchical relation diagram. Two types of engines are implemented using the Python language. The engine of the hierarchical relation graph is responsible for analyzing the association and key content of field values among the hierarchies and in the hierarchy, wherein the key content comprises field names, associated fields and values, and the protocol design document engine is responsible for analyzing a field set in the protocol design document, wherein the field set comprises field names, initial bit width and bit width information.
Third, a field set mask is calculated according to the field set, and the specific method is as follows:
Taking the bit widths of the data types of the uint8, the uint16, the uint24, the uint32 and the uint64 in the Wireshark plugin as a reference set A to obtain. And initializing a field stack S for storing a field set to be calculated. As shown in fig. 3, the detailed procedure is as follows:
First, the field bit width is subjected to reference splitting and compensation splitting operations according to a protocol field splitting algorithm.
The reference split operation logic is as follows:
when the protocol fields are sequentially pushed onto the stack S, the bit width and total of the fields in the stack S are calculated as follows. Where n is the number of fields in the stack S.
If it isAnd if the field in the stack S is not split, the stack S is empty and total is set to 0.
If it isIf the bit width of the stack top field is expressed by x, the number of split segments is expressed by n, and the calculated expression of the bit width f (n) of each segment is:
,
Wherein,,For a field bit width of 0 th,For the n-th field bit width,Is the largest value in reference set a.
The compensation split operation logic is as follows:
the field bit width y of the compensation split should satisfy the condition:
After this condition is met, a compensating split algorithm is employed, wherein the split segment number is denoted by n, the calculated expression for segment bit width f (n):
Second, the type and mask of the tag field. The reference splitting algorithm is still used, but the process is different and the specific operation is as follows.
After the protocol fields are sequentially stacked S, the total width total of the bits of the S fields of the stack is calculated, and the method is the same as above.
If it isWhen the stack field shares the data type, the data type is total, field elements in the stack occupy the bit interval bit of the data type to be 1 according to the sequence from the stack bottom to the stack top, and the data type bit interval bit is the mask of the field. Where the data type and mask are then the new attributes of the field, while stack S, total is reset and the next round of computation is performed.
If it isWhen the field elements in the stack are kept, and new fields are waited for to be added to the stack.
And fourthly, constructing plug-in elements such as a field set, logic judgment and the like according to the field set mask.
Firstly, field names, data types and mask attributes in protocol fields are defined to complete field definition of plug-ins, secondly, logic judgment conditions of a protocol layer are generated according to a protocol layer relation diagram and associated fields, the logic judgment conditions of the field of the layer are supplemented, and finally, the fields are added into the whole protocol chain in sequence according to field bit offset.
So far, the Python code is constructed, namely the protocol plug-in generation tool is manufactured.
And fifthly, generating a protocol analysis plug-in. And placing the protocol layer relation diagram and the protocol design document in a catalog of a generating tool, and generating a protocol analysis plug-in named with the lua suffix by a running tool.
As shown in fig. 4, the protocol parses the application of the plug-in. And preparing an operating environment of the Wireshark software in the PC equipment, and copying the generated analysis plug-in to a plug-in directory of the Wireshark. And then starting the Wireshark to capture the protocol message sent from the server A to the network card through the network card, judging whether the protocol message is a target protocol message, if so, adopting a protocol analysis plug-in to carry out protocol analysis, and dynamically displaying the captured message analysis result on a Wireshark graphical interface, and if not, analyzing according to a built-in protocol.
The Wireshark message analysis plug-in generation method provided by the embodiment of the invention comprises the steps of firstly automatically generating the plug-in through a plug-in Python program without directly writing a Lua program, reducing the development threshold of the plug-in, secondly simplifying the design flow of the protocol plug-in through a protocol layer relation diagram mode, enabling the protocol plug-in to realize logic more clearly, and then leading in a protocol field splitting algorithm to enable complicated and various protocol design and uncertain pain points of fields to be solved. Finally, the method is transparent to the protocol, and the logical adjustment and field change of the protocol design are realized by only adjusting the protocol design document to regenerate the protocol plug-in unit, thus realizing plug-in and play of the plug-in unit.
As shown in FIG. 5, the system for generating a Wireshark message parsing plug-in provided by another embodiment of the invention comprises an acquisition module, a parsing module, a calculation module, a construction module and a generation module, wherein the acquisition module is used for acquiring a designed protocol hierarchical relation diagram, the parsing module adopts a hierarchical relation diagram parsing engine to parse the protocol hierarchical relation diagram to obtain correlations and key contents of field values among the layers and inside the layers, adopts a protocol design document engine to parse a protocol design document to obtain a field set, the calculation module processes the bit width of a field according to a protocol field splitting algorithm by taking the bit width of a data type in the Wireshark plug-in as a benchmark set, marks the type and mask of the field to obtain a field set mask, the construction module is used for constructing plug-in elements according to the field set mask, and the generation module generates a protocol parsing plug-in according to the hierarchical relation diagram, the protocol design document and the plug-in elements.
The key content comprises a field name, an associated field and a value, and the field set comprises the field name, a start bit width and bit width information.
The calculation module comprises a benchmark set unit, a benchmark split unit and a compensation split unit, wherein the benchmark set unit is used for taking bit widths of the data types of the uint8, the uint16, the uint24, the uint32 and the uint64 in the Wireshark plugin as benchmark set A to obtainInitializing a field stack S for storing a field set to be calculated;
The standard splitting unit is used for calculating the formula of total field amount total in the stack S when the protocol fields are sequentially pushed into the stack S, wherein the formula is as follows:
,
Wherein n is the number of fields in the stack S;
If it isWhen the stack S is in the state of being empty, the fields in the stack S are not split, and the stack S is set to 0;
If it isIf the bit width of the stack top field is expressed by x, the number of split segments is expressed by n, and the calculated expression of the bit width f (n) of each segment is:
Wherein,For a field bit width of 0 th,For the n-th field bit width,Is the largest value in reference set a.
The compensation splitting unit is used for judging whether the bit width y meets the condition:
;
if so, a compensation splitting algorithm is adopted, wherein the splitting number is represented by n, and the calculated expression of the bit width f (n) of each segment is as follows:
The calculation module further comprises a marking unit for marking the type and mask of the field, and specifically comprises that after calculating the total amount of the field in the stack S, ifWhen the stack field shares the data type, the data type is total, the field elements in the stack occupy the bit interval bit of the data type to the top of the stack according to the stack bottom, the mask of the field is 1, the data type and the mask are used as the new attribute of the field, the stack S, total is reset and the next round of calculation is performed, ifWhen the field elements in the stack are kept, and new fields are waited for to be added to the stack.
The specific method for constructing the plug-in element by the construction module according to the field set mask comprises the following steps:
According to the protocol layer relation diagram and the associated field, generating logic judgment conditions of a protocol layer, and supplementing the logic judgment conditions of the field of the layer;
the fields are added to the entire protocol chain in turn according to the field bit offset.
The embodiment of the invention provides a Wireshark message analysis plug-in generation system, which firstly automatically generates plug-ins through plug-in Python programs without directly writing Lua programs, reduces the development threshold of the plug-ins, secondly simplifies the design flow of the protocol plug-ins through a protocol layer relation diagram mode, enables the protocol plug-ins to realize more clear logic, and then introduces a protocol field splitting algorithm to enable complicated and diverse protocol design and uncertain pain points of fields to be solved. Finally, the method is transparent to the protocol, and the logical adjustment and field change of the protocol design are realized by only adjusting the protocol design document to regenerate the protocol plug-in unit, thus realizing plug-in and play of the plug-in unit.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

Translated fromChinese
1.一种Wireshark报文解析插件生成方法,其特征在于,包括:1. A method for generating a Wireshark message parsing plug-in, comprising:获取设计的协议层级关系图;Get the designed protocol layer relationship diagram;采用层级关系图解析引擎解析协议层级关系图,得到层级之间、本层内部的字段值的关联以及关键内容,采用协议设计文档引擎解析协议设计文档,得到字段集;The hierarchical relationship diagram parsing engine is used to parse the protocol hierarchical relationship diagram to obtain the association and key content of field values between levels and within the current layer. The protocol design document engine is used to parse the protocol design document to obtain the field set.将Wireshark插件中的数据类型的比特宽度作为基准集合,根据协议字段拆分算法对字段比特宽度进行处理,并标记字段的类型和掩码得到字段集掩码;The bit width of the data type in the Wireshark plug-in is used as a benchmark set, the field bit width is processed according to the protocol field splitting algorithm, and the field type and mask are marked to obtain the field set mask;根据字段集掩码构建插件元素;Build plugin element based on fieldset mask;根据层级关系图、协议设计文档和插件元素生成协议解析插件。Generate a protocol parsing plug-in based on the hierarchical relationship diagram, protocol design document, and plug-in elements.2.根据权利要求1所述的方法,其特征在于,所述关键内容包括字段名称、关联字段及值,所述字段集包括字段名称、起始位宽和位宽信息。2. The method according to claim 1 is characterized in that the key content includes field name, associated fields and values, and the field set includes field name, starting bit width and bit width information.3.根据权利要求1所述的方法,其特征在于,所述将Wireshark插件中的数据类型的比特宽度作为基准集合具体包括:将Wireshark插件中的uint8、uint16、uint24、uint32、uint64数据类型的比特宽度作为基准集合A,得到,初始化字段栈S,用于存储待计算的字段集;3. The method according to claim 1 is characterized in that the bit width of the data type in the Wireshark plug-in as the reference set specifically comprises: taking the bit width of the uint8, uint16, uint24, uint32, uint64 data types in the Wireshark plug-in as the reference set A, and obtaining , initialize the field stack S, which is used to store the field set to be calculated;所述根据协议字段拆分算法对字段比特宽度进行处理包括基准拆分方法,具体包括:The processing of the field bit width according to the protocol field splitting algorithm includes a benchmark splitting method, specifically including:将协议字段顺序压入栈S时,计算栈S内字段总量total的公式为:When the protocol fields are pushed into stack S in sequence, the formula for calculating the total amount of fields in stack S is: ,其中,n为栈S内字段数;Where n is the number of fields in stack S;时,则栈S内字段不拆分,将栈S置空、total置0;like When , the fields in stack S are not split, stack S is set to empty and total is set to 0;时,则对栈顶字段拆分,如果栈顶字段比特宽度用x来表示,拆分段数用n来表示,每段比特宽度f(n)的计算表达式:like When , the top field of the stack is split. If the bit width of the top field of the stack is represented by x, and the number of split segments is represented by n, the calculation expression of the bit width of each segment f (n) is: ; 其中,为第0个字段比特宽度,为第n个字段比特宽度,为基准集合A中最大的数值。 in, , is the bit width of the 0th field, is the bit width of the nth field, is the largest value in the benchmark set A.4.根据权利要求3所述的方法,其特征在于,所述根据协议字段拆分算法对字段比特宽度进行处理包括补偿拆分方法,具体包括:4. The method according to claim 3, characterized in that the processing of the field bit width according to the protocol field splitting algorithm comprises a compensation splitting method, specifically comprising:判断比特宽度y是否满足条件:Determine whether the bit width y meets the conditions: ;若满足,则采用补偿拆分算法,其中拆分段数用n表示,每段比特宽度f(n)的计算表达式:If it is satisfied, the compensation splitting algorithm is used, where the number of split segments is represented by n, and the calculation expression of the bit width of each segment f (n) is: .5.根据权利要求3所述的方法,其特征在于,所述标记字段的类型和掩码的具体方法包括:5. The method according to claim 3, characterized in that the specific method of the type and mask of the tag field comprises:在计算栈S内字段总量total后,若时,栈字段共享数据类型则为total,栈内字段元素按栈底到栈顶,按顺序占用数据类型比特区间比特全为1,该字段的掩码为1,其中数据类型与掩码则作为字段的新属性,同时栈S、total被重置,并进行下一轮计算;After calculating the total amount of fields in stack S, if When , the stack field shared data type is total, and the field elements in the stack occupy the data type bit interval bits in order from the bottom of the stack to the top of the stack, and all the bits are 1. The mask of the field is 1, and the data type and mask are used as the new attributes of the field. At the same time, the stack S and total are reset, and the next round of calculation is performed;时,栈内字段元素保持,并等待新的字段入栈。like When , the field elements in the stack are maintained and wait for new fields to be pushed into the stack.6.根据权利要求5所述的方法,其特征在于,所述根据字段集掩码构建插件元素的具体方法包括:6. The method according to claim 5, characterized in that the specific method of constructing the plug-in element according to the field set mask comprises:根据协议字段中的字段名称、数据类型和掩码属性完成插件的字段定义;Complete the plug-in field definition based on the field name, data type, and mask attributes in the protocol field;根据协议层关系图和关联字段,产生协议层级的逻辑判断条件,并补充本层字段的逻辑判断条件;According to the protocol layer relationship diagram and associated fields, generate the logical judgment conditions of the protocol layer and supplement the logical judgment conditions of the fields in this layer;按照字段比特偏移,依次将字段添加到整个协议链中。The fields are added to the entire protocol chain in sequence according to the field bit offset.7.一种Wireshark报文解析插件生成系统,其特征在于,包括:获取模块、解析模块、计算模块、构建模块和生成模块,7. A Wireshark message parsing plug-in generation system, characterized in that it includes: an acquisition module, a parsing module, a calculation module, a construction module and a generation module,所述获取模块用于获取设计的协议层级关系图;The acquisition module is used to acquire the designed protocol level relationship diagram;所述解析模块采用层级关系图解析引擎解析协议层级关系图,得到层级之间、本层内部的字段值的关联以及关键内容,采用协议设计文档引擎解析协议设计文档,得到字段集;The parsing module uses a hierarchical relationship diagram parsing engine to parse the protocol hierarchical relationship diagram to obtain the association and key content of field values between levels and within the current layer, and uses a protocol design document engine to parse the protocol design document to obtain a field set;所述计算模块将Wireshark插件中的数据类型的比特宽度作为基准集合,根据协议字段拆分算法对字段比特宽度进行处理,并标记字段的类型和掩码得到字段集掩码;The calculation module uses the bit width of the data type in the Wireshark plug-in as a reference set, processes the field bit width according to the protocol field splitting algorithm, and marks the type and mask of the field to obtain a field set mask;所述构建模块用于根据字段集掩码构建插件元素;The building module is used to build a plug-in element according to the field set mask;所述生成模块根据层级关系图、协议设计文档和插件元素生成协议解析插件。The generation module generates a protocol parsing plug-in according to the hierarchical relationship diagram, the protocol design document and the plug-in elements.8.根据权利要求7所述的系统,其特征在于,所述关键内容包括字段名称、关联字段及值,所述字段集包括字段名称、起始位宽和位宽信息。8. The system according to claim 7 is characterized in that the key content includes field name, associated fields and values, and the field set includes field name, starting bit width and bit width information.9.根据权利要求8所述的系统,其特征在于,所述计算模块包括基准集合单元、基准拆分单元和补偿拆分单元,所述基准集合单元用于将Wireshark插件中的uint8、uint16、uint24、uint32、uint64数据类型的比特宽度作为基准集合A, 得到,初始化字段栈S,用于存储待计算的字段集;9. The system according to claim 8, characterized in that the calculation module comprises a reference set unit, a reference splitting unit and a compensation splitting unit, wherein the reference set unit is used to use the bit width of the uint8, uint16, uint24, uint32, and uint64 data types in the Wireshark plug-in as the reference set A, and obtain , initialize the field stack S, which is used to store the field set to be calculated;所述基准拆分单元用于将协议字段顺序压入栈S时,计算栈S内字段总量total的公式为:When the benchmark splitting unit is used to push the protocol fields into the stack S in sequence, the formula for calculating the total amount of fields in the stack S is: ,其中,n为栈S内字段数;Where n is the number of fields in stack S;时,则栈S内字段不拆分,将栈S置空、total置0;like When , the fields in stack S are not split, stack S is set to empty and total is set to 0;时,则对栈顶字段拆分,如果栈顶字段比特宽度用x来表示,拆分段数用n来表示,每段比特宽度f(n)的计算表达式:like When , the top field of the stack is split. If the bit width of the top field of the stack is represented by x, and the number of split segments is represented by n, the calculation expression of the bit width of each segment f (n) is: ;其中,为第0个字段比特宽度,为第n个字段比特宽度,为基准集合A中最大的数值;in, , is the bit width of the 0th field, is the bit width of the nth field, is the largest value in the benchmark set A;所述补偿拆分单元用于判断比特宽度y是否满足条件:The compensation splitting unit is used to determine whether the bit width y meets the condition: ;若满足,则采用补偿拆分算法,其中拆分段数用n表示,每段比特宽度f(n)的计算表达式:If it is satisfied, the compensation splitting algorithm is used, where the number of split segments is represented by n, and the calculation expression of the bit width of each segment f (n) is: .10.根据权利要求9所述的系统,其特征在于,所述计算模块还包括标记单元,所述标记单元用于标记字段的类型和掩码,具体包括:在计算栈S内字段总量total后,若时,栈字段共享数据类型则为total,栈内字段元素按栈底到栈顶,按顺序占用数据类型比特区间比特全为1,该字段的掩码为1,其中数据类型与掩码则作为字段的新属性,同时栈S、total被重置,并进行下一轮计算,若时,栈内字段元素保持,并等待新的字段入栈。10. The system according to claim 9, characterized in that the calculation module further comprises a marking unit, the marking unit is used to mark the type and mask of the field, specifically comprising: after calculating the total amount of fields in the stack S, if , the stack field shared data type is total, the field elements in the stack from the bottom to the top of the stack, in order to occupy the data type bit interval bits are all 1, the mask of the field is 1, the data type and mask as the new attributes of the field, at the same time stack S, total is reset, and the next round of calculation, if When , the field elements in the stack are maintained and wait for new fields to be pushed into the stack.
CN202510020856.3A2025-01-072025-01-07 A Wireshark message parsing plug-in generation method and systemPendingCN119420830A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202510020856.3ACN119420830A (en)2025-01-072025-01-07 A Wireshark message parsing plug-in generation method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202510020856.3ACN119420830A (en)2025-01-072025-01-07 A Wireshark message parsing plug-in generation method and system

Publications (1)

Publication NumberPublication Date
CN119420830Atrue CN119420830A (en)2025-02-11

Family

ID=94474984

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202510020856.3APendingCN119420830A (en)2025-01-072025-01-07 A Wireshark message parsing plug-in generation method and system

Country Status (1)

CountryLink
CN (1)CN119420830A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20050149342A1 (en)*2003-12-242005-07-07International Business Machines CorporationMethod and apparatus for creating and customizing plug-in business collaboration protocols
CN101035131A (en)*2007-02-162007-09-12杭州华为三康技术有限公司Protocol recognition method and device
CN103023909A (en)*2012-12-242013-04-03成都科来软件有限公司Network packet protocol identification method and system
CN111428462A (en)*2020-03-042020-07-17厦门科灿信息技术有限公司Communication protocol template construction method and terminal equipment
CN113238936A (en)*2021-05-112021-08-10中国船舶重工集团公司第七0九研究所Extensible universal embedded software communication interface testing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20050149342A1 (en)*2003-12-242005-07-07International Business Machines CorporationMethod and apparatus for creating and customizing plug-in business collaboration protocols
CN101035131A (en)*2007-02-162007-09-12杭州华为三康技术有限公司Protocol recognition method and device
CN103023909A (en)*2012-12-242013-04-03成都科来软件有限公司Network packet protocol identification method and system
CN111428462A (en)*2020-03-042020-07-17厦门科灿信息技术有限公司Communication protocol template construction method and terminal equipment
CN113238936A (en)*2021-05-112021-08-10中国船舶重工集团公司第七0九研究所Extensible universal embedded software communication interface testing method and device

Similar Documents

PublicationPublication DateTitle
CN101946248B (en) Method and device for providing application program interface services and performing cross-border mashup of application program interfaces
DayPatterns in network architecture
CN101589384B (en) System and method for measuring similarity of SVG documents
JP5052522B2 (en) System and method for optimization utilizing history of web service communication
CN103390012B (en)A kind of exhibiting pictures generation method based on access and device
CN109902274B (en)Method and system for converting json character string into thraft binary stream
Strassner et al.A semantic interoperability architecture for Internet of Things data sharing and computing
CN109933331A (en)Data transfer device and associated component between a kind of client-server
JP4991124B2 (en) Distributed data model
BR112014007669B1 (en) method and device for streaming streaming media
Riedel et al.Using web service gateways and code generation for sustainable IoT system development
US20060036723A1 (en)Method and apparatus for converting network management protocol to markup language
CN108429764A (en)A method of the data transmission based on proprietary protocol and parsing
Guo et al.Semantic Importance-Aware Communications with Semantic Correction Using Large Language Models
CN109067754B (en)Communication method and system for request terminal and server terminal
EP1303812A2 (en)Method for transmitting a mobile agent in a network, associated transmitter, receiver and mobile agent
CN108200080B (en)Remote service communication method
CN119420830A (en) A Wireshark message parsing plug-in generation method and system
RosuA-soap: Adaptive soap message processing and compression
US7584284B2 (en)Path-token-based web service caching method
CN101771697A (en)Network data stream identification method based on pattern matching method
CN112988740B (en) A data storage method for distribution network based on multiple data sources
CN114629970A (en)TCP/IP flow reduction method
CN112291202B (en)Message data visualization method, device and computer readable storage medium
JP2007213576A (en)Method and system for selectively tracing semantic web data using distributed update event, and storage device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp