WO2010069214A1 - Method and equipment for field filtering - Google Patents

Method and equipment for field filtering Download PDF

Info

Publication number
WO2010069214A1
WO2010069214A1 PCT/CN2009/074950 CN2009074950W WO2010069214A1 WO 2010069214 A1 WO2010069214 A1 WO 2010069214A1 CN 2009074950 W CN2009074950 W CN 2009074950W WO 2010069214 A1 WO2010069214 A1 WO 2010069214A1
Authority
WO
WIPO (PCT)
Prior art keywords
field
filtered
filtering
decoding result
protocol
Prior art date
Application number
PCT/CN2009/074950
Other languages
French (fr)
Chinese (zh)
Inventor
贾林
陈锦荣
李永利
王宝财
Original Assignee
北京中创信测科技股份有限公司
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 北京中创信测科技股份有限公司 filed Critical 北京中创信测科技股份有限公司
Publication of WO2010069214A1 publication Critical patent/WO2010069214A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method and apparatus for implementing field filtering.
  • the protocol analyzer is used to analyze the data packets transmitted by the network to determine the problem.
  • the filtering of various fields in the protocol is the key technology of protocol analysis.
  • each field in the protocol corresponds to a specific filtering process
  • the field filtering function is implemented by calling a filtering process corresponding to the field.
  • the developer needs to establish the filtering processing flow for the field 1 respectively, the filtering processing flow 2 for the field 2, and the field for the field 3 Filter process flow 3.
  • the sender establishes a specific filtering process for each field.
  • This cumbersome field filtering method is bound to bring a huge amount of work to the developer, especially when implementing the filtering function of all the fields defined in the protocol specification.
  • To implement the full field filtering function in the protocol due to the large number of fields in the full field, it is not easy for developers to filter the entire field in the protocol during development. Summary of the invention
  • Embodiments of the present invention provide a method and apparatus for implementing field filtering to implement filtering of fields in a protocol on the basis of reducing the workload of a developer.
  • the embodiment of the present invention discloses a method for implementing field filtering, including: acquiring a field type of a field to be filtered; and invoking a filtering process corresponding to a field type of the field to be filtered, according to the filtering process according to the The filtering condition of the field to be filtered is performed on the decoding result of the filtered field. Filter processing.
  • the obtaining the field type of the field to be filtered includes: establishing a protocol static information set and presenting the protocol static information set to the user, where the user selects a field to be filtered from the protocol static information set, the protocol
  • the unit in the static information set is field information of a field, and the field information includes at least a field type; receiving a field to be filtered selected by the user from the static information set of the protocol; and reading field information of the field to be filtered , get the field type of the field to be filtered.
  • the filtering processing of the decoding result by the filtering process according to the filtering condition of the to-be-filtered field includes: obtaining a filtering condition and a decoding result of the to-be-filtered field; determining whether the filtering condition of the to-be-filtered field is related to the to-be-filtered field The decoding results match.
  • the filtering condition for obtaining the to-be-filtered field includes: receiving filtering logic selected by the user for the to-be-filtered field; receiving a filtering value set by the user for the filtering logic.
  • the decoding result of the field to be filtered includes: establishing a decoding result set of the protocol, the unit in the decoding result set is a decoding result of the field, and the field to which the decoding result belongs is indicated by a field identifier; Decoding results of the fields to be filtered are found from the set of decoding results according to the field identifier of the field to be filtered.
  • the embodiment of the invention further discloses an apparatus for implementing field filtering, comprising: a pre-built unit, configured to pre-establish a filtering processing flow corresponding to a field type; and a field type obtaining unit, configured to obtain a field type of the field to be filtered;
  • the filtering unit is configured to invoke a filtering process corresponding to the field type of the field to be filtered, and the filtering process is used to filter the decoding result of the filtering field according to the filtering condition of the to-be-filtered field.
  • the field type obtaining unit includes: a protocol static information set establishing unit, and displaying the protocol static information set to the user, where the user selects a field to be filtered from the protocol static information set, and is used to establish a protocol static
  • the information set, the unit in the static information set of the protocol is field information of a field, and the field information includes at least a field type.
  • the first selecting unit is configured to receive, by the user, the selected one of the static protocol information sets.
  • a filter unit configured to read field information of the field to be filtered, and obtain a field type of the field to be filtered.
  • the filtering unit includes: a first acquiring unit, configured to acquire a filtering condition of the field to be filtered; a second acquiring unit, configured to obtain a decoding result of the field to be filtered; and a determining unit, configured to determine Whether the filtering condition of the field to be filtered matches the decoding result of the field to be filtered.
  • the first obtaining unit includes: a first receiving subunit, configured to receive filtering logic set by the user for the to-be-filtered field; and a second receiving subunit, configured to receive, by the user, the filtering logic Filter the value.
  • the second obtaining unit includes: a decoding result set establishing unit, configured to establish a decoding result set of the protocol, where a unit in the decoding result set is a decoding result of the field, and a field to which the decoding result belongs is The field identifier indicates that the field identifier is used to find the decoding result of the field to be filtered from the decoding result set according to the field identifier of the field to be filtered.
  • the filtering process is established according to the field type, and the fields of the same field type are filtered by the same filtering process. Because the field types of each field in the protocol are limited, usually several There are more than a dozen, so the developer's workload is greatly saved, and it is easier for developers to implement filtering of all fields in the protocol.
  • FIG. 1 is a flowchart of a method for implementing field filtering according to a first embodiment of the present invention
  • FIG. 2 is a flowchart of a method for implementing field filtering according to Embodiment 2 of the present invention
  • FIG. 4 is a structural diagram of an apparatus for implementing field filtering according to Embodiment 3 of the present invention.
  • the invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations.
  • personal computer server computer, handheld or portable device, tablet device, multiprocessor system, distributed computing environment including any of the above systems or devices, and so on.
  • the invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located locally, including storage devices. And remote computer storage media.
  • FIG. 1 is a flowchart of a method for implementing field filtering according to an embodiment of the present disclosure, which may include the following steps:
  • Step 101 Obtain a field type of a field to be filtered.
  • the field type of the field to be filtered includes: establishing a protocol static information set, where the unit in the static information set of the protocol is field information, the field information includes a field type; and selecting a to-be-set from the protocol static information set Filtering the field; reading the field information of the field to be filtered to obtain the field type of the field to be filtered.
  • Step 102 Invoke a filtering process corresponding to the field type of the field to be filtered, and the filtering process performs filtering processing on the decoding result of the filtering field according to the filtering condition of the to-be-filtered field.
  • the filtering process of the decoding information by the filtering process according to the filtering condition of the to-be-filtered field includes: obtaining a filtering condition and a decoding result of the to-be-filtered field; determining whether the filtering condition of the to-be-filtered field is related to the decoding result of the to-be-filtered field match.
  • the filtering process is established according to the field type, and the fields of the same field type are filtered by the same filtering process. Because the field types of each field in the protocol are limited, usually several to ten. Several, therefore, greatly save the developer's workload, making it easier for developers to filter the entire field in the protocol.
  • Embodiment 2
  • FIG. 2 is a flowchart of a method for implementing field filtering according to Embodiment 2 of the present invention. The difference from the first embodiment is that the embodiment is a specific implementation manner for implementing field filtering. .
  • a filtering process corresponding to the field type is established in advance, for example, a string type field filtering processing flow corresponding to a string type field and a numerical field filtering processing corresponding to a numeric type field.
  • the process, after the filtering process is established for the field types of all the fields defined in the protocol specification, the filtering process for the fields in the protocol may specifically include The following steps:
  • Step 201 Select a field to be filtered
  • a protocol static information set is established for each protocol, and the protocol static information set is used to completely describe the information of the entire protocol, for example, the coding mode of the protocol, the number of fields, and the attributes of each field.
  • Each unit in the protocol static information set corresponds to one field information.
  • the protocol static information set is a set of all field information, and the field information of each field mainly includes the field type and the field identifier. Through the field type, the filtering process corresponding to the field can be invoked, and the field identifier can be used to distinguish each field in the protocol static information tree.
  • the content of the protocol static information collection can be:
  • A is a field identifier, indicating that the unit is the field information of the field A, Data is the field type, and the field type of the field A is a numeric value.
  • the protocol static information set can be physically implemented by using an array, so that the protocol static information collection is on the data structure, and the field identification is more convenient for quickly locating a field information unit in the collection.
  • the protocol static information set can be logically in the form of a tree. Each node in the tree corresponds to a field information. Taking the IP protocol as an example, a static information set of the IP protocol is established, and a static information tree corresponding to the static information set of the IP protocol is established. As shown in Figure 3.
  • the protocol static information set can be presented to the user in the form of a static information tree as shown in FIG. 3, and the user can directly select the field to be filtered from the static information tree.
  • Step 202 Set a filter condition for each field to be filtered, and generate a filter condition set.
  • the user sets a filtering condition for each field to be filtered, where the filtering condition includes filtering logic and a filtering value corresponding to the filtering logic.
  • the filter condition set by the user generates a filter condition set.
  • Each unit in the filter condition set corresponds to a filter condition of the field to be filtered.
  • the content of the filter condition set may be:
  • the field A, the field B and the field C are selected from the above-mentioned protocol static information set as the field to be filtered, if (A, Data, >, 5) The unit is taken as an example. Then, the numeric field A is set to have a field logic of " >", and the corresponding field logic has a field value of 5.
  • protocol static information set can also be physically implemented using an array.
  • Step 203 Call a filtering process corresponding to the field type of each field to be filtered according to the field type of each field to be filtered.
  • the field type and the field identifier of each field to be filtered are obtained from the field information of the field to be filtered, and the corresponding relationship between the previously established field type and the filtering process is invoked.
  • the filtering process corresponding to the field type of the field to be filtered In the filtering process of each field to be filtered, the decoding result of each field to be filtered is found from the decoding result set by the field identifier of each field to be filtered, and the field identifier of each field to be filtered is filtered from the same.
  • the filter condition of each field to be filtered is found in the condition set. After the filter condition and the decoding result of each field to be filtered are determined, it is sequentially determined whether the filter condition of each field to be filtered matches the decoding result, thereby completing the pair. Filtering of all fields to be filtered.
  • the decoding result in the above may be stored in the form of a set of decoding results.
  • the decoding result of the data packet is established into a decoding result set, and each unit in the decoding result set corresponds to a decoding result of one field, and each decoding is indicated by a field identifier.
  • the field to which the result belongs For example, when it is determined that the fields to be filtered are the field A, the field B, and the field C, the field information of the field A and the field B are all numeric, and the field type of the field C is a string type.
  • Field A and field B call the filtering process corresponding to the numeric field
  • field C calls the filtering process corresponding to the string type field to complete the filtering process.
  • the filtering process is established according to the field type, and the fields of the same field type are filtered by the same filtering process. Because the field types of each field in the protocol are limited, usually several There are more than a dozen, so the developer's workload is greatly saved, and it is easier for developers to implement filtering of all fields in the protocol.
  • Embodiment 3
  • FIG. 4 is a structural diagram of an apparatus for implementing field filtering according to Embodiment 3 of the present invention.
  • the apparatus includes a preset unit 401, a field type obtaining unit 402, and a filtering unit 403.
  • the internal structure and connection relationship will be further described below in conjunction with the working principle of the device.
  • the pre-built unit 401 is configured to pre-establish a filtering process corresponding to the field type;
  • the field type obtaining unit 402 is configured to obtain a field type of the field to be filtered;
  • the filtering unit 403 is configured to invoke a filtering process corresponding to the field type of the field to be filtered, and the filtering process is used to filter the decoding result of the filtering field according to the filtering condition of the to-be-filtered field.
  • the field type obtaining unit 402 includes: a protocol static information set establishing unit 404, a first selecting unit 405, and a reading unit 406, and a protocol static information set establishing unit 404, configured to establish a protocol static information set, and the protocol static information set
  • the unit in the field is field information, and the field information includes a field type.
  • the first selecting unit 405 is configured to select a field to be filtered from the static protocol information set.
  • the reading unit 406 is configured to read the The field information of the field is filtered to obtain the field type of the field to be filtered.
  • the filtering unit 403 includes: a first obtaining unit 407, a second obtaining unit 408, and a determining unit 409, a first obtaining unit 407, configured to obtain a filtering condition of the field to be filtered, and a second obtaining unit 408, configured to acquire a field to be filtered. Decoding result; the determining unit 409, configured to determine the field to be filtered Whether the filter condition matches the decoding result of the field to be filtered.
  • the first obtaining unit 407 includes: a first receiving subunit, configured to receive filtering logic set by the user for the to-be-filtered field; and a second receiving subunit, configured to receive a filtering value set by the user for the filtering logic .
  • the second obtaining unit 408 includes: a decoding result set establishing unit, configured to establish a decoding result set of the protocol, where a unit in the decoding result set is a decoding result of the field, and a field to which the decoding result belongs is identified by a field
  • the second selection unit searches for a decoding result of the to-be-filtered field from the decoding result set according to the field identifier of the field to be filtered.
  • the filtering process is established according to the field type, and the fields of the same field type are filtered by the same filtering process. Because the field types of each field in the protocol are limited, usually several There are more than a dozen, so the developer's workload is greatly saved, and it is easier for developers to implement filtering of all fields in the protocol.
  • the method and apparatus for implementing field filtering provided by the present invention are described in detail above, and the description is only for helping to understand the method and core idea of the present invention. Meanwhile, for those skilled in the art, the idea according to the present invention is The details of the present invention and the scope of application are subject to change, and the contents of the present specification should not be construed as limiting the present invention.

Abstract

A method and equipment for field filtering are provided. The method includes that: the field type of a field to be filtered is obtained (101); the filtering process corresponding to the field type of a field to be filtered is called, and the filtering process performs the filtering processing to the decoding result of the field to be filtered according to the filtering conditions of the field to be filtered (102). According to the embodiment of the invention, the field in the protocol could be filtered with releasing the workload of the development personnel.

Description

实现字段过滤的方法和装置  Method and device for realizing field filtering
本申请要求于 2008 年 12 月 19 日提交中国专利局、 申请号为 200810239863.9、 发明名称为"实现字段过滤的方法和装置 "的中国专利申请的 优先权, 其全部内容通过引用结合在本申请中。  The present application claims priority to Chinese Patent Application No. 200810239863.9, entitled "Implementation of Field Filtering Method and Apparatus" on December 19, 2008, the entire disclosure of which is incorporated herein by reference. .
技术领域 Technical field
本发明涉及网络通信技术领域,特别是涉及一种实现字段过滤的方法和装 置。  The present invention relates to the field of network communication technologies, and in particular, to a method and apparatus for implementing field filtering.
背景技术 Background technique
随着网络应用的急剧增长, 网络中所潜伏的危险也越来越多, 因此有必要 对网络中的传输数据包进行分析, 以便找出网络中潜在的问题。 例如, 当网络 中报文的发送比较慢时, 需要使用协议分析仪对网络传输的数据包进行分析, 进而判断问题的所在。其中,对协议中的各种字段的过滤是协议分析的关键技 术。  With the rapid growth of network applications, there are more and more risks lurking in the network. Therefore, it is necessary to analyze the transmission packets in the network in order to find potential problems in the network. For example, when the sending of packets in the network is slow, the protocol analyzer is used to analyze the data packets transmitted by the network to determine the problem. Among them, the filtering of various fields in the protocol is the key technology of protocol analysis.
在现有技术中, 为了实现字段的过滤, 协议中每个字段都对应一个特定的 过滤处理流程, 通过调用与字段所对应的过滤处理流程来实现字段过滤功能。 例如, 当对字段 1、 字段 2和字段 3进行过滤时, 为了实现相应的过滤功能, 需要由开发人员分别为字段 1建立过滤处理流程 1、 为字段 2建立过滤处理流 程 2和为字段 3建立过滤处理流程 3。 发人员针对每一个字段建立特定的过滤处理流程,这种繁瑣的字段过滤方法势 必会给开发人员带来巨大的工作量,特别是要实现协议规范中所定义的所有字 段的过滤功能时, 即要实现协议中的全字段过滤功能时, 由于全字段的字段数 目庞大, 从而导致开发人员在开发中不容易实现对协议中全字段的过滤。 发明内容  In the prior art, in order to implement field filtering, each field in the protocol corresponds to a specific filtering process, and the field filtering function is implemented by calling a filtering process corresponding to the field. For example, when filtering the field 1, the field 2, and the field 3, in order to implement the corresponding filtering function, the developer needs to establish the filtering processing flow for the field 1 respectively, the filtering processing flow 2 for the field 2, and the field for the field 3 Filter process flow 3. The sender establishes a specific filtering process for each field. This cumbersome field filtering method is bound to bring a huge amount of work to the developer, especially when implementing the filtering function of all the fields defined in the protocol specification. To implement the full field filtering function in the protocol, due to the large number of fields in the full field, it is not easy for developers to filter the entire field in the protocol during development. Summary of the invention
本发明实施例提供了一种实现字段过滤的方法和装置,以在减轻开发人员 工作量的基础上实现对协议中字段的过滤。  Embodiments of the present invention provide a method and apparatus for implementing field filtering to implement filtering of fields in a protocol on the basis of reducing the workload of a developer.
本发明实施例公开了一种实现字段过滤的方法, 包括: 获取待过滤字段的 字段类型; 调用与所述待过滤字段的字段类型相对应的过滤处理流程, 由所述 过滤处理流程根据所述待过滤字段的过滤条件对待过滤字段的解码结果进行 过滤处理。 The embodiment of the present invention discloses a method for implementing field filtering, including: acquiring a field type of a field to be filtered; and invoking a filtering process corresponding to a field type of the field to be filtered, according to the filtering process according to the The filtering condition of the field to be filtered is performed on the decoding result of the filtered field. Filter processing.
优选的, 所述获取待过滤字段的字段类型包括: 建立协议静态信息集合并 将所述协议静态信息集合展现给用户,由用户从所述协议静态信息集合中选择 待过滤的字段, 所述协议静态信息集合中的单元为一个字段的字段信息, 所述 字段信息中至少包括有字段类型;接收用户从所述协议静态信息集合中选择的 待过滤字段; 读取所述待过滤字段的字段信息,得到所述待过滤字段的字段类 型。  Preferably, the obtaining the field type of the field to be filtered includes: establishing a protocol static information set and presenting the protocol static information set to the user, where the user selects a field to be filtered from the protocol static information set, the protocol The unit in the static information set is field information of a field, and the field information includes at least a field type; receiving a field to be filtered selected by the user from the static information set of the protocol; and reading field information of the field to be filtered , get the field type of the field to be filtered.
优选的,所述由过滤处理流程根据待过滤字段的过滤条件对解码结果进行 过滤处理包括: 获取待过滤字段的过滤条件和解码结果; 判断所述待过滤字段 的过滤条件是否与待过滤字段的解码结果相匹配。  Preferably, the filtering processing of the decoding result by the filtering process according to the filtering condition of the to-be-filtered field includes: obtaining a filtering condition and a decoding result of the to-be-filtered field; determining whether the filtering condition of the to-be-filtered field is related to the to-be-filtered field The decoding results match.
优选的, 所述获取待过滤字段的过滤条件包括: 接收用户为所述待过滤字 段选择的过滤逻辑; 接收用户为所述过滤逻辑设定的过滤值。  Preferably, the filtering condition for obtaining the to-be-filtered field includes: receiving filtering logic selected by the user for the to-be-filtered field; receiving a filtering value set by the user for the filtering logic.
优选的,所述获取待过滤字段的解码结果包括:建立协议的解码结果集合, 所述解码结果集合中的单元为所述字段的解码结果,所述解码结果所属的字段 由字段标识进行指示;根据待过滤字段的字段标识从所述解码结果集合中查找 到待过滤字段的解码结果。  Preferably, the decoding result of the field to be filtered includes: establishing a decoding result set of the protocol, the unit in the decoding result set is a decoding result of the field, and the field to which the decoding result belongs is indicated by a field identifier; Decoding results of the fields to be filtered are found from the set of decoding results according to the field identifier of the field to be filtered.
本发明实施例还公开了一种实现字段过滤的装置, 包括: 预建单元, 用于 预先建立与字段类型相对应的过滤处理流程; 字段类型获取单元, 用于获取待 过滤字段的字段类型; 过滤单元, 用于调用与所述待过滤字段的字段类型相对 应的过滤处理流程,由所述过滤处理流程根据所述待过滤字段的过滤条件对待 过滤字段的解码结果进行过滤处理。  The embodiment of the invention further discloses an apparatus for implementing field filtering, comprising: a pre-built unit, configured to pre-establish a filtering processing flow corresponding to a field type; and a field type obtaining unit, configured to obtain a field type of the field to be filtered; The filtering unit is configured to invoke a filtering process corresponding to the field type of the field to be filtered, and the filtering process is used to filter the decoding result of the filtering field according to the filtering condition of the to-be-filtered field.
优选的, 所述字段类型获取单元包括: 协议静态信息集合建立单元并将所 述协议静态信息集合展现给用户,由用户从所述协议静态信息集合中选择待过 滤的字段, 用于建立协议静态信息集合, 所述协议静态信息集合中的单元为一 个字段的字段信息, 所述字段信息中至少包括有字段类型; 第一选择单元, 用 于接收用户从所述静态协议信息集合中选择的待过滤字段; 读取单元, 用于读 取所述待过滤字段的字段信息, 得到所述待过滤字段的字段类型。  Preferably, the field type obtaining unit includes: a protocol static information set establishing unit, and displaying the protocol static information set to the user, where the user selects a field to be filtered from the protocol static information set, and is used to establish a protocol static The information set, the unit in the static information set of the protocol is field information of a field, and the field information includes at least a field type. The first selecting unit is configured to receive, by the user, the selected one of the static protocol information sets. a filter unit, configured to read field information of the field to be filtered, and obtain a field type of the field to be filtered.
优选的, 所述过滤单元包括: 第一获取单元, 用于获取待过滤字段的过滤 条件; 第二获取单元, 用于获取待过滤字段的解码结果; 判断单元, 用于判断 所述待过滤字段的过滤条件是否与待过滤字段的解码结果相匹配。 优选的, 所述第一获取单元包括: 第一接收子单元, 用于接收用户为所述 待过滤字段设置的过滤逻辑; 第二接收子单元, 用于接收用户为所述过滤逻辑 设定的过滤值。 Preferably, the filtering unit includes: a first acquiring unit, configured to acquire a filtering condition of the field to be filtered; a second acquiring unit, configured to obtain a decoding result of the field to be filtered; and a determining unit, configured to determine Whether the filtering condition of the field to be filtered matches the decoding result of the field to be filtered. Preferably, the first obtaining unit includes: a first receiving subunit, configured to receive filtering logic set by the user for the to-be-filtered field; and a second receiving subunit, configured to receive, by the user, the filtering logic Filter the value.
优选的, 所述第二获取单元包括: 解码结果集合建立单元, 用于建立协议 的解码结果集合, 所述解码结果集合中的单元为所述字段的解码结果, 所述解 码结果所属的字段由字段标识进行指示; 第二选择单元,根据待过滤字段的字 段标识从所述解码结果集合中查找到待过滤字段的解码结果。  Preferably, the second obtaining unit includes: a decoding result set establishing unit, configured to establish a decoding result set of the protocol, where a unit in the decoding result set is a decoding result of the field, and a field to which the decoding result belongs is The field identifier indicates that the field identifier is used to find the decoding result of the field to be filtered from the decoding result set according to the field identifier of the field to be filtered.
由上述本发明的实施例可以看出,按照字段类型建立过滤处理流程,相同 字段类型的字段由相同的过滤处理流程进行过滤处理,由于在协议中各个字段 的字段类型有限, 通常为几种到十几种, 因此, 极大地节省了开发人员的工作 量, 更易于开发人员实现对协议中全字段的过滤。  It can be seen from the foregoing embodiment of the present invention that the filtering process is established according to the field type, and the fields of the same field type are filtered by the same filtering process. Because the field types of each field in the protocol are limited, usually several There are more than a dozen, so the developer's workload is greatly saved, and it is easier for developers to implement filtering of all fields in the protocol.
附图说明 DRAWINGS
图 1为本发明实施例一揭示的一种实现字段过滤的方法的流程图; 图 2为本发明实施例二揭示的一种实现字段过滤的方法的流程图; 图 3为本发明 IP协议的静态信息集合所对应的静态信息树的结构示意 图;  FIG. 1 is a flowchart of a method for implementing field filtering according to a first embodiment of the present invention; FIG. 2 is a flowchart of a method for implementing field filtering according to Embodiment 2 of the present invention; A schematic diagram of the structure of a static information tree corresponding to a static information set;
图 4为本发明实施例三揭示的一种实现字段过滤的装置的结构图。  FIG. 4 is a structural diagram of an apparatus for implementing field filtering according to Embodiment 3 of the present invention.
具体实施方式 detailed description
为使本发明的上述目的、特征和优点能够更加明显易懂, 下面结合附图和 具体实施方式对本发明作进一步详细的说明。  The present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
本发明可用于众多通用或专用的计算系统环境或配置中。 例如: 个人计算 机、 服务器计算机、 手持设备或便携式设备、 平板型设备、 多处理器系统、 包 括以上任何系统或设备的分布式计算环境等等。  The invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations. For example: personal computer, server computer, handheld or portable device, tablet device, multiprocessor system, distributed computing environment including any of the above systems or devices, and so on.
本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例 如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的 例程、 程序、 对象、 组件、 数据结构等等。 也可以在分布式计算环境中实践本 发明,在这些分布式计算环境中, 由通过通信网络而被连接的远程处理设备来 执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地 和远程计算机存储介质中。 实施例一 The invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located locally, including storage devices. And remote computer storage media. Embodiment 1
请参阅图 1 , 图 1为本发明实施例一揭示的一种实现字段过滤的方法的 流程图, 可以包括以下步骤:  Referring to FIG. 1 , FIG. 1 is a flowchart of a method for implementing field filtering according to an embodiment of the present disclosure, which may include the following steps:
步骤 101 : 获取待过滤字段的字段类型;  Step 101: Obtain a field type of a field to be filtered.
其中, 获取待过滤字段的字段类型包括: 建立协议静态信息集合, 所述 协议静态信息集合中的单元为字段信息, 所述字段信息中包括有字段类型; 从 所述协议静态信息集合中选择待过滤字段; 读取所述待过滤字段的字段信息, 得到所述待过滤字段的字段类型。  The field type of the field to be filtered includes: establishing a protocol static information set, where the unit in the static information set of the protocol is field information, the field information includes a field type; and selecting a to-be-set from the protocol static information set Filtering the field; reading the field information of the field to be filtered to obtain the field type of the field to be filtered.
步骤 102: 调用与所述待过滤字段的字段类型相对应的过滤处理流程, 由 所述过滤处理流程根据所述待过滤字段的过滤条件对待过滤字段的解码结果 进行过滤处理。  Step 102: Invoke a filtering process corresponding to the field type of the field to be filtered, and the filtering process performs filtering processing on the decoding result of the filtering field according to the filtering condition of the to-be-filtered field.
其中, 由过滤处理流程根据待过滤字段的过滤条件对解码信息进行过滤 处理包括: 获取待过滤字段的过滤条件和解码结果; 判断所述待过滤字段的过 滤条件是否与待过滤字段的解码结果相匹配。  The filtering process of the decoding information by the filtering process according to the filtering condition of the to-be-filtered field includes: obtaining a filtering condition and a decoding result of the to-be-filtered field; determining whether the filtering condition of the to-be-filtered field is related to the decoding result of the to-be-filtered field match.
由上述本发明实施例可以看出,按照字段类型建立过滤处理流程,相同字 段类型的字段由相同的过滤处理流程进行过滤处理,由于在协议中各个字段的 字段类型有限,通常为几种到十几种, 因此,极大地节省了开发人员的工作量, 更易于开发人员实现对协议中全字段的过滤。 实施例二  It can be seen from the foregoing embodiment of the present invention that the filtering process is established according to the field type, and the fields of the same field type are filtered by the same filtering process. Because the field types of each field in the protocol are limited, usually several to ten. Several, therefore, greatly save the developer's workload, making it easier for developers to filter the entire field in the protocol. Embodiment 2
请参阅图 2, 图 2为本发明实施例二揭示的一种实现字段过滤的方法的流 程图, 与上述实施例一的不同之处在于, 本实施例为一种实现字段过滤的具体 实施方式。  Referring to FIG. 2, FIG. 2 is a flowchart of a method for implementing field filtering according to Embodiment 2 of the present invention. The difference from the first embodiment is that the embodiment is a specific implementation manner for implementing field filtering. .
在本实施例中, 预先建立与字段类型相对应的过滤处理流程, 例如, 与字 符串类型的字段相对应的字符串型字段过滤处理流程和与数值类型的字段相 对应的数值型字段过滤处理流程,当针对协议规范中所定义的所有字段的字段 类型都建立了过滤处理流程之后, 对协议中的字段的过滤过程可以具体包括 以下步骤: In this embodiment, a filtering process corresponding to the field type is established in advance, for example, a string type field filtering processing flow corresponding to a string type field and a numerical field filtering processing corresponding to a numeric type field. The process, after the filtering process is established for the field types of all the fields defined in the protocol specification, the filtering process for the fields in the protocol may specifically include The following steps:
步骤 201 : 选择待过滤的字段;  Step 201: Select a field to be filtered;
其中, 为每个协议建立协议静态信息集合,协议静态信息集合用来完整描 述整个协议的信息, 例如, 协议的编码方式、 字段个数以及每个字段的属性。 协议静态信息集合中的每一个单元都对应一个字段信息,协议静态信息集合是 一个全字段信息的集合,在每个字段的字段信息中主要包括字段类型和字段标 识。通过字段类型,可以调用与该字段相对应的过滤处理流程,通过字段标识, 可以区分协议静态信息树中的各个字段。  A protocol static information set is established for each protocol, and the protocol static information set is used to completely describe the information of the entire protocol, for example, the coding mode of the protocol, the number of fields, and the attributes of each field. Each unit in the protocol static information set corresponds to one field information. The protocol static information set is a set of all field information, and the field information of each field mainly includes the field type and the field identifier. Through the field type, the filtering process corresponding to the field can be invoked, and the field identifier can be used to distinguish each field in the protocol static information tree.
例如, 协议静态信息集合的内容可以为:  For example, the content of the protocol static information collection can be:
{  {
( A, Data ) ,  (A, Data),
( B , Data ) ,  (B, Data),
( C, String ) ,  ( C, String ) ,
( D, Time ) ,  ( D, Time ) ,
( E, Float ) ,  ( E, Float ) ,
如果以其中的 (A, Data )单元为例来说明, 那么, A为字段标识, 表示 该单元为字段 A的字段信息, Data为字段类型, 表示字段 A的字段类型为数 值型。 If the (A, Data) unit is used as an example, then A is a field identifier, indicating that the unit is the field information of the field A, Data is the field type, and the field type of the field A is a numeric value.
协议静态信息集合在物理上可以使用数组的方式实现,这样使得协议静态 信息集合在数据结构上筒单,通过字段标识更便于快速定位集合中的某个字段 信息单元。 协议静态信息集合在逻辑上可以采用树的形式, 树中的每一个 节点对应一个字段信息, 以 IP协议为例, 建立 IP协议的静态信息集合, IP 协议的静态信息集合所对应的静态信息树如图 3所示。  The protocol static information set can be physically implemented by using an array, so that the protocol static information collection is on the data structure, and the field identification is more convenient for quickly locating a field information unit in the collection. The protocol static information set can be logically in the form of a tree. Each node in the tree corresponds to a field information. Taking the IP protocol as an example, a static information set of the IP protocol is established, and a static information tree corresponding to the static information set of the IP protocol is established. As shown in Figure 3.
当建立了协议静态信息集合之后,可以将协议静态信息集合以如图 3所示 的静态信息树形式展现给用户,用户可以从静态信息树中直接选择待过滤的字 段。  After the protocol static information set is established, the protocol static information set can be presented to the user in the form of a static information tree as shown in FIG. 3, and the user can directly select the field to be filtered from the static information tree.
步骤 202: 为每个待过滤的字段设置过滤条件, 生成过滤条件集合; 其中, 当从协议静态信息集合中选定了待过滤的字段后, 由用户为每 个待过滤的字段设置过滤条件, 所述的过滤条件包括过滤逻辑和与该过滤 逻辑相对应的过滤值, 并将用户设置的过滤条件生成过滤条件集合, 过滤 条件集合中的每一单元都对应一个待过滤字段的过滤条件, 过滤条件中, 例如, 过滤条件集合的内容可以为: Step 202: Set a filter condition for each field to be filtered, and generate a filter condition set. After the field to be filtered is selected from the static information set of the protocol, the user sets a filtering condition for each field to be filtered, where the filtering condition includes filtering logic and a filtering value corresponding to the filtering logic. The filter condition set by the user generates a filter condition set. Each unit in the filter condition set corresponds to a filter condition of the field to be filtered. For example, the content of the filter condition set may be:
( A, Data, > , 5 ), (A, Data, >, 5),
( B , Data, <, 10 ),  (B, Data, <, 10),
( C , String, == , "zctt" ), 这里, 从上述协议静态信息集合中选择了字段 A、 字段 B和字段 C为 待过滤的字段, 如果以其中的 (A, Data, > , 5 ) 单元为例来说明, 那么, 数值型的字段 A被设置的字段逻辑为" >", 对应该字段逻辑的字段值为 5。  (C , String, == , "zctt" ), Here, the field A, the field B and the field C are selected from the above-mentioned protocol static information set as the field to be filtered, if (A, Data, >, 5) The unit is taken as an example. Then, the numeric field A is set to have a field logic of " >", and the corresponding field logic has a field value of 5.
同样, 协议静态信息集合在物理上也可以使用数组的方式实现。  Similarly, the protocol static information set can also be physically implemented using an array.
步骤 203: 根据每个待过滤字段的字段类型, 调用与每个待过滤字段的字 段类型相对应的过滤处理流程。  Step 203: Call a filtering process corresponding to the field type of each field to be filtered according to the field type of each field to be filtered.
其中, 当选择了待过滤字段之后,从待过滤字段的字段信息中可以得到每 个待过滤字段的字段类型和字段标识,根据预先建立的字段类型和过滤处理流 程之间的对应关系,调用与待过滤字段的字段类型相对应的过滤处理流程。在 每个待过滤字段的过滤处理流程中,通过每个待过滤字段的字段标识从解码结 果集合中查找到每个待过滤字段的解码结果, 同样, 通过每个待过滤字段的字 段标识从过滤条件集合中查找到每个待过滤字段的过滤条件,在确定了每个待 过滤字段的过滤条件和解码结果后,依次判断每个待过滤字段的过滤条件是否 与解码结果相匹配, 从而完成对所有待过滤字段的过滤处理。  After the field to be filtered is selected, the field type and the field identifier of each field to be filtered are obtained from the field information of the field to be filtered, and the corresponding relationship between the previously established field type and the filtering process is invoked. The filtering process corresponding to the field type of the field to be filtered. In the filtering process of each field to be filtered, the decoding result of each field to be filtered is found from the decoding result set by the field identifier of each field to be filtered, and the field identifier of each field to be filtered is filtered from the same. The filter condition of each field to be filtered is found in the condition set. After the filter condition and the decoding result of each field to be filtered are determined, it is sequentially determined whether the filter condition of each field to be filtered matches the decoding result, thereby completing the pair. Filtering of all fields to be filtered.
上述中的解码结果可以以解码结果集合的形式存储。当接收到数据包并对 数据包进行解码后,将数据包的解码结果建立成一个解码结果集合,解码结果 集合中的每一个单元对应一个字段的解码结果,并通过字段标识来指示每个解 码结果所属的字段。 例如, 当确定待过滤的字段为字段 A、 字段 B和字段 C后, 由相应的字 段信息可知, 字段 A和字段 B的字段类型都为数值型, 字段 C的字段类型为 字符串型, 因此, 字段 A和字段 B会调用与数值型的字段相对应的过滤处理 流程, 而字段 C会调用与字符串型的字段相对应的过滤处理流程, 从而分别 完成过滤处理工作。 The decoding result in the above may be stored in the form of a set of decoding results. After receiving the data packet and decoding the data packet, the decoding result of the data packet is established into a decoding result set, and each unit in the decoding result set corresponds to a decoding result of one field, and each decoding is indicated by a field identifier. The field to which the result belongs. For example, when it is determined that the fields to be filtered are the field A, the field B, and the field C, the field information of the field A and the field B are all numeric, and the field type of the field C is a string type. Field A and field B call the filtering process corresponding to the numeric field, and field C calls the filtering process corresponding to the string type field to complete the filtering process.
由上述本发明的实施例可以看出,按照字段类型建立过滤处理流程,相同 字段类型的字段由相同的过滤处理流程进行过滤处理,由于在协议中各个字段 的字段类型有限, 通常为几种到十几种, 因此, 极大地节省了开发人员的工作 量, 更易于开发人员实现对协议中全字段的过滤。 实施例三  It can be seen from the foregoing embodiment of the present invention that the filtering process is established according to the field type, and the fields of the same field type are filtered by the same filtering process. Because the field types of each field in the protocol are limited, usually several There are more than a dozen, so the developer's workload is greatly saved, and it is easier for developers to implement filtering of all fields in the protocol. Embodiment 3
与上述一种实现字段过滤的方法相对应,本发明实施例还提供了一种实现 字段过滤的装置。 请参阅图 4, 图 4为本发明实施例三揭示的一种实现字段过 滤的装置的结构图, 该装置包括预设单元 401、 字段类型获取单元 402和过滤 单元 403。 下面结合该装置的工作原理进一步介绍其内部结构以及连接关系。  Corresponding to the foregoing method for implementing field filtering, an embodiment of the present invention further provides an apparatus for implementing field filtering. Referring to FIG. 4, FIG. 4 is a structural diagram of an apparatus for implementing field filtering according to Embodiment 3 of the present invention. The apparatus includes a preset unit 401, a field type obtaining unit 402, and a filtering unit 403. The internal structure and connection relationship will be further described below in conjunction with the working principle of the device.
预建单元 401 , 用于预先建立与字段类型相对应的过滤处理流程; 字段类型获取单元 402, 用于获取待过滤字段的字段类型;  The pre-built unit 401 is configured to pre-establish a filtering process corresponding to the field type; the field type obtaining unit 402 is configured to obtain a field type of the field to be filtered;
过滤单元 403 , 用于调用与所述待过滤字段的字段类型相对应的过滤处理 流程,由所述过滤处理流程根据所述待过滤字段的过滤条件对待过滤字段的解 码结果进行过滤处理。  The filtering unit 403 is configured to invoke a filtering process corresponding to the field type of the field to be filtered, and the filtering process is used to filter the decoding result of the filtering field according to the filtering condition of the to-be-filtered field.
其中, 字段类型获取单元 402包括: 协议静态信息集合建立单元 404、 第 一选择单元 405和读取单元 406, 协议静态信息集合建立单元 404, 用于建立 协议静态信息集合, 所述协议静态信息集合中的单元为字段信息, 所述字段信 息中包括有字段类型; 第一选择单元 405 , 用于从所述静态协议信息集合中选 择待过滤字段; 读取单元 406, 用于读取所述待过滤字段的字段信息, 得到所 述待过滤字段的字段类型。  The field type obtaining unit 402 includes: a protocol static information set establishing unit 404, a first selecting unit 405, and a reading unit 406, and a protocol static information set establishing unit 404, configured to establish a protocol static information set, and the protocol static information set The unit in the field is field information, and the field information includes a field type. The first selecting unit 405 is configured to select a field to be filtered from the static protocol information set. The reading unit 406 is configured to read the The field information of the field is filtered to obtain the field type of the field to be filtered.
过滤单元 403包括:第一获取单元 407、第二获取单元 408和判断单元 409, 第一获取单元 407 , 用于获取待过滤字段的过滤条件; 第二获取单元 408, 用 于获取待过滤字段的解码结果; 判断单元 409, 用于判断所述待过滤字段的过 滤条件是否与待过滤字段的解码结果相匹配。 The filtering unit 403 includes: a first obtaining unit 407, a second obtaining unit 408, and a determining unit 409, a first obtaining unit 407, configured to obtain a filtering condition of the field to be filtered, and a second obtaining unit 408, configured to acquire a field to be filtered. Decoding result; the determining unit 409, configured to determine the field to be filtered Whether the filter condition matches the decoding result of the field to be filtered.
所述第一获取单元 407包括: 第一接收子单元, 用于接收用户为所述待过 滤字段设置的过滤逻辑; 第二接收子单元, 用于接收用户为所述过滤逻辑设定 的过滤值。  The first obtaining unit 407 includes: a first receiving subunit, configured to receive filtering logic set by the user for the to-be-filtered field; and a second receiving subunit, configured to receive a filtering value set by the user for the filtering logic .
所述第二获取单元 408包括: 解码结果集合建立单元, 用于建立协议的解 码结果集合, 所述解码结果集合中的单元为所述字段的解码结果, 所述解码结 果所属的字段由字段标识进行指示; 第二选择单元,根据待过滤字段的字段标 识从所述解码结果集合中查找到待过滤字段的解码结果。  The second obtaining unit 408 includes: a decoding result set establishing unit, configured to establish a decoding result set of the protocol, where a unit in the decoding result set is a decoding result of the field, and a field to which the decoding result belongs is identified by a field The second selection unit searches for a decoding result of the to-be-filtered field from the decoding result set according to the field identifier of the field to be filtered.
由上述本发明的实施例可以看出,按照字段类型建立过滤处理流程,相同 字段类型的字段由相同的过滤处理流程进行过滤处理,由于在协议中各个字段 的字段类型有限, 通常为几种到十几种, 因此, 极大地节省了开发人员的工作 量, 更易于开发人员实现对协议中全字段的过滤。 以上对本发明所提供的一种实现字段过滤的方法和装置进行了详细介绍, 说明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本领域的一般 技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  It can be seen from the foregoing embodiment of the present invention that the filtering process is established according to the field type, and the fields of the same field type are filtered by the same filtering process. Because the field types of each field in the protocol are limited, usually several There are more than a dozen, so the developer's workload is greatly saved, and it is easier for developers to implement filtering of all fields in the protocol. The method and apparatus for implementing field filtering provided by the present invention are described in detail above, and the description is only for helping to understand the method and core idea of the present invention. Meanwhile, for those skilled in the art, the idea according to the present invention is The details of the present invention and the scope of application are subject to change, and the contents of the present specification should not be construed as limiting the present invention.

Claims

权 利 要 求 Rights request
1、 一种实现字段过滤的方法, 其特征在于, 预先建立与字段类型相对应 的过滤处理流程, 所述方法包括:  A method for implementing field filtering, characterized in that a filtering process corresponding to a field type is established in advance, and the method includes:
获取待过滤字段的字段类型;  Get the field type of the field to be filtered;
调用与所述待过滤字段的字段类型相对应的过滤处理流程,由所述过滤处 理流程根据所述待过滤字段的过滤条件对待过滤字段的解码结果进行过滤处 理。  The filtering process corresponding to the field type of the field to be filtered is invoked, and the filtering process of the filtering field is filtered by the filtering process according to the filtering condition of the to-be-filtered field.
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取待过滤字段的字 段类型包括:  2. The method according to claim 1, wherein the obtaining the field type of the field to be filtered comprises:
建立协议静态信息集合并将所述协议静态信息集合展现给用户,由用户从 所述协议静态信息集合中选择待过滤的字段,所述协议静态信息集合中的单元 为一个字段的字段信息, 所述字段信息中至少包括有字段类型;  Establishing a protocol static information set and presenting the protocol static information set to the user, and the user selects a field to be filtered from the protocol static information set, where the unit in the static information set is a field field information, The field information includes at least a field type;
接收用户从所述协议静态信息集合中选择的待过滤字段;  Receiving a field to be filtered selected by the user from the static information set of the protocol;
读取所述待过滤字段的字段信息, 得到所述待过滤字段的字段类型。  The field information of the field to be filtered is read, and the field type of the field to be filtered is obtained.
3、 根据权利要求 1所述的方法, 其特征在于, 所述由过滤处理流程根据 待过滤字段的过滤条件对解码结果进行过滤处理包括: The method according to claim 1, wherein the filtering process is performed by the filtering process according to the filtering condition of the field to be filtered, including:
获取待过滤字段的过滤条件和解码结果;  Obtaining the filtering condition and decoding result of the field to be filtered;
4、 根据权利要求 3所述的方法, 其特征在于, 所述获取待过滤字段的过 滤条件包括: The method according to claim 3, wherein the obtaining the filtering condition of the field to be filtered comprises:
接收用户为所述待过滤字段选择的过滤逻辑;  Receiving filtering logic selected by the user for the to-be-filtered field;
接收用户为所述过滤逻辑设定的过滤值。  The filtered value set by the user for the filtering logic is received.
5、 根据权利要求 3所述的方法, 其特征在于, 所述获取待过滤字段的解 码结果包括:  The method according to claim 3, wherein the obtaining the decoding result of the field to be filtered comprises:
建立协议的解码结果集合,所述解码结果集合中的单元为所述字段的解码 结果, 所述解码结果所属的字段由字段标识进行指示;  Establishing a decoding result set of the protocol, where a unit in the decoding result set is a decoding result of the field, and a field to which the decoding result belongs is indicated by a field identifier;
根据待过滤字段的字段标识从所述解码结果集合中查找到待过滤字段的 解码结果。  Decoding the field to be filtered from the decoded result set according to the field identifier of the field to be filtered.
6、 一种实现字段过滤的装置, 其特征在于, 所述装置包括: 预建单元, 用于预先建立与字段类型相对应的过滤处理流程; 字段类型获取单元, 用于获取待过滤字段的字段类型; 6. An apparatus for implementing field filtering, wherein the apparatus comprises: a pre-built unit, configured to pre-establish a filtering process corresponding to the field type; and a field type obtaining unit, configured to obtain a field type of the field to be filtered;
过滤单元, 用于调用与所述待过滤字段的字段类型相对应的过滤处理流 程,由所述过滤处理流程根据所述待过滤字段的过滤条件对待过滤字段的解码 结果进行过滤处理。  And a filtering unit, configured to invoke a filtering processing process corresponding to the field type of the to-be-filtered field, where the filtering processing process performs filtering processing on the decoding result of the filtering field according to the filtering condition of the to-be-filtered field.
7、 根据权利要求 6所述的装置, 其特征在于, 所述字段类型获取单元包 括:  The device according to claim 6, wherein the field type obtaining unit comprises:
协议静态信息集合建立单元,用于建立协议静态信息集合并将所述协议静 态信息集合展现给用户, 由用户从所述协议静态信息集合中选择待过滤的字 段, 所述协议静态信息集合中的单元为一个字段的字段信息, 所述字段信息中 至少包括有字段类型;  a protocol static information collection establishing unit, configured to establish a protocol static information set and display the protocol static information set to the user, where the user selects a field to be filtered from the protocol static information set, where the protocol static information set The unit is field information of a field, and the field information includes at least a field type;
第一选择单元,用于接收用户从所述静态协议信息集合中选择的待过滤字 段;  a first selecting unit, configured to receive a to-be-filtered field selected by the user from the static protocol information set;
读取单元, 用于读取所述待过滤字段的字段信息,得到所述待过滤字段的 字段类型。  a reading unit, configured to read field information of the to-be-filtered field, to obtain a field type of the to-be-filtered field.
8、 根据权利要求 6所述的装置, 其特征在于, 所述过滤单元包括: 第一获取单元, 用于获取待过滤字段的过滤条件;  The device according to claim 6, wherein the filtering unit comprises: a first acquiring unit, configured to acquire a filtering condition of a field to be filtered;
第二获取单元, 用于获取待过滤字段的解码结果; 结果相匹配。  a second obtaining unit, configured to obtain a decoding result of the field to be filtered; the results match.
9、 根据权利要求 8所述的装置, 其特征在于, 所述第一获取单元包括: 第一接收子单元, 用于接收用户为所述待过滤字段设置的过滤逻辑; 第二接收子单元, 用于接收用户为所述过滤逻辑设定的过滤值。  The device according to claim 8, wherein the first acquiring unit comprises: a first receiving subunit, configured to receive filtering logic set by the user for the to-be-filtered field; a second receiving subunit, It is used to receive a filter value set by the user for the filtering logic.
10、 根据权利要求 8所述的装置, 其特征在于, 所述第二获取单元包括: 解码结果集合建立单元, 用于建立协议的解码结果集合, 所述解码结果集 合中的单元为所述字段的解码结果,所述解码结果所属的字段由字段标识进行 指示;  The apparatus according to claim 8, wherein the second obtaining unit comprises: a decoding result set establishing unit, configured to establish a decoding result set of the protocol, where the unit in the decoding result set is the field The decoding result, the field to which the decoding result belongs is indicated by the field identifier;
第二选择单元,根据待过滤字段的字段标识从所述解码结果集合中查找到 待过滤字段的解码结果。  The second selecting unit searches for a decoding result of the to-be-filtered field from the decoding result set according to the field identifier of the field to be filtered.
PCT/CN2009/074950 2008-12-19 2009-11-16 Method and equipment for field filtering WO2010069214A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810239863.9 2008-12-19
CN 200810239863 CN101442539B (en) 2008-12-19 2008-12-19 Method and apparatus for implementing field filtration

Publications (1)

Publication Number Publication Date
WO2010069214A1 true WO2010069214A1 (en) 2010-06-24

Family

ID=40726778

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/074950 WO2010069214A1 (en) 2008-12-19 2009-11-16 Method and equipment for field filtering

Country Status (2)

Country Link
CN (1) CN101442539B (en)
WO (1) WO2010069214A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442539B (en) * 2008-12-19 2011-09-28 北京中创信测科技股份有限公司 Method and apparatus for implementing field filtration
CN101719915B (en) * 2009-11-10 2012-12-19 北京中创信测科技股份有限公司 Method and device for realizing field decoding
CN104717078A (en) * 2013-12-13 2015-06-17 贵州电网公司信息通信分公司 Configuration-based data merging method
CN110880992A (en) * 2019-11-29 2020-03-13 中盈优创资讯科技有限公司 Method and device for acquiring network telemetering telemetric protocol data
CN113342830A (en) * 2021-07-08 2021-09-03 银联商务股份有限公司 Data processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545254A (en) * 2003-11-13 2004-11-10 中兴通讯股份有限公司 A method of fast data packet filtering
US20050083935A1 (en) * 2003-10-20 2005-04-21 Kounavis Michael E. Method and apparatus for two-stage packet classification using most specific filter matching and transport level sharing
CN101442539A (en) * 2008-12-19 2009-05-27 北京中创信测科技股份有限公司 Method and apparatus for implementing field filtration

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080101222A1 (en) * 2006-10-30 2008-05-01 David Alan Christenson Lightweight, Time/Space Efficient Packet Filtering

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050083935A1 (en) * 2003-10-20 2005-04-21 Kounavis Michael E. Method and apparatus for two-stage packet classification using most specific filter matching and transport level sharing
CN1545254A (en) * 2003-11-13 2004-11-10 中兴通讯股份有限公司 A method of fast data packet filtering
CN101442539A (en) * 2008-12-19 2009-05-27 北京中创信测科技股份有限公司 Method and apparatus for implementing field filtration

Also Published As

Publication number Publication date
CN101442539B (en) 2011-09-28
CN101442539A (en) 2009-05-27

Similar Documents

Publication Publication Date Title
CN102402481B (en) The fuzz testing of asynchronous routine code
US20130014086A1 (en) Debugger connection
CN106708762B (en) unified management system and method for serial port equipment under LINUX
WO2010012170A1 (en) Database security monitoring method, device and system
US20150067146A1 (en) Custom correlation of a distributed business transaction
CN110933075B (en) Service calling method and device, electronic equipment and storage medium
WO2005043315A3 (en) System, method and computer program product for network resource processing
CN104412565B (en) For relating to the method that the socket of bearer independent protocol manages
CN107181821A (en) A kind of information push method and device based on SSE specifications
WO2010069214A1 (en) Method and equipment for field filtering
US11294740B2 (en) Event to serverless function workflow instance mapping mechanism
CN111447107A (en) Network state determination method and device, storage medium and electronic equipment
CN111352836A (en) Pressure testing method and related device
CN110309065B (en) Concurrent execution method, device and equipment of test tasks and storage medium
CN114741400A (en) Data synchronization and analysis method, device and terminal equipment
US20210111986A1 (en) Protocol and state analysis in a dynamic routing network
CN104570967B (en) Long-range control method and system based on android system
CN105207829B (en) Intrusion detection data processing method, device and system
CN117176802A (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN111447273A (en) Cloud processing system and data processing method based on cloud processing system
WO2020238131A1 (en) Web crawler system testing method and apparatus, storage medium, and electronic device
CN115134254B (en) Network simulation method, device, equipment and storage medium
CN111427710B (en) Communication method, device, equipment and storage medium of components in application program
CN116260747A (en) Monitoring method and device of terminal test equipment and electronic equipment
CN107193670B (en) Remote management method, device and system for cluster workstations

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09832896

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09832896

Country of ref document: EP

Kind code of ref document: A1