Communication data identification device and method

The communication data identification device efficiently processes packets from multiple protocols by dividing headers into field values and using shared hash calculation units with identification bits, addressing resource inefficiencies and protocol handling limitations.

JP7571881B2Active Publication Date: 2024-10-23NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023529304
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-06-23
Publication Date
2024-10-23
Estimated Expiration
2041-06-23

AI Technical Summary

Technical Problem

Conventional methods for packet processing in network virtualization require excessive hash operation resources and cannot handle multiple protocols coexisting effectively.

Method used

A communication data identification device that divides packet headers into field values, performs hash operations on field values with the same function in the OSI reference model using shared hash calculation units, and adds identification bits to differentiate protocols, ensuring efficient resource utilization.

Benefits of technology

Enables high-speed packet identification across multiple protocols with reduced computational resources by sharing hash operations and adding identification bits to distinguish protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571881000001
    Figure 0007571881000001
  • Figure 0007571881000002
    Figure 0007571881000002
  • Figure 0007571881000003
    Figure 0007571881000003
Patent Text Reader

Abstract

This communication data identification device (10) comprises a header analysis unit (11) that divides a header of a received packet into field values, and a hash calculation unit (12) that executes a hash calculation on the basis of the field values. The present invention can thereby provide a communication data identification device and method with which it is possible to reduce computational resources and to identify packets containing a plurality of different protocols.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a communication data identification device and method used for packet transmission and reception. [Background technology]

[0002] In recent years, with the advancement of network virtualization, it has become necessary to process packets from multiple networks on a single device. In order to monitor packets from such multiple networks, it is important to identify and process various protocols.

[0003] In order to support such diverse protocols, for example, Ternary Content Addressable Memory (TCAM), which uses a comparison and match method, is used. However, since TCAM is implemented as a dedicated chip, it has the problem that it can only be introduced in expensive dedicated devices.

[0004] Meanwhile, in hardware and software that are not dedicated chips, for example, a technique has been disclosed for identifying a flow by calculating a hash value for each field of a packet header (Patent Document 1). [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2019-9630 A Summary of the Invention [Problem to be solved by the invention]

[0006] In conventional methods, a primitive method of performing a hash operation on all fields to be analyzed can support a variety of protocols, but has the problem of requiring a large amount of hash operation resources.

[0007] In addition, in the method disclosed in Patent Document 1, since the field position is specified in advance, it is possible to execute the method with the minimum necessary hash calculations, but there is a problem that it cannot be used when multiple different protocols are mixed. [Means for solving the problem]

[0008] In order to solve the above-mentioned problems, the communication data identification device according to the present invention includes a header analysis unit that divides the header of a received packet into field values, and a hash calculation unit that performs a hash calculation based on the field values. The same hash calculation unit performs a hash calculation on field values ​​having the same function at the same layer in the OSI reference model among the field values, and an identification bit is assigned to each of the field values ​​having the same function at the same layer. do.

[0009] A communication data identification method according to the present invention includes the steps of: dividing a header of a received packet into field values; Among them, for the field values ​​of the same function at the same layer in the OSI reference model, performing a hash operation; assigning an identification bit to each of the field values ​​having the same function in the same layer; Equipped with. Effect of the Invention

[0010] According to the present invention, it is possible to provide a communication data identification device and method capable of identifying packets containing a mixture of a plurality of different protocols while reducing computational resources. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a block diagram showing a configuration of a communication data identification device according to a first embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram for explaining the operation of the communication data identification device according to the first embodiment of the present invention. [Diagram 3] FIG. 3 is a diagram for explaining the operation of the conventional communication data identification device. [Figure 4] FIG. 4 is a diagram for explaining the operation of the communication data identification device according to the first embodiment of the present invention. [Diagram 5] FIG. 5 is a diagram for explaining the operation of the communication data identification device according to the first embodiment of the present invention. [Figure 6A]FIG. 6A is a diagram for explaining the operation of the communication data identification device according to the first embodiment of the present invention. [Figure 6B] FIG. 6B is a diagram for explaining the operation of the communication data identification device according to the first embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] <First embodiment> A communication data identification device and method according to a first embodiment of the present invention will be described with reference to Figs. 1 to 6B.

[0013] <Configuration of communication data identification device> As shown in FIG. 1, a communication data identification device 10 according to this embodiment includes a header analysis unit 11 and a plurality of hash calculation units 12 connected in parallel to the header analysis unit.

[0014] Figure 2 shows an example of the data structure of a packet to be analyzed. Packet data 1 is made up of a data body 2 and header data (header) 3 required for transmission and reception. Within each header 3, an arbitrary number of bits is assigned a meaning. Hereinafter, these assigned bit divisions are referred to as field values ​​4. Also, a group of packets with matching field values ​​4 is called a flow.

[0015] In the communication data identification device 10 , a packet to be analyzed is input to a header analysis unit 11 .

[0016] The header analysis unit 11 reads the header configuration of each packet, and divides the packet into the field value 4 of each header 3 and the data value of the data body 2 .

[0017] The field values ​​4 divided by the header analysis unit 11 are notified to the hash calculation unit 12, which calculates a hash value corresponding to each field value 4. Here, in order to support high-speed networks, the hash calculation is performed on each field value 4 by individual hash calculation units 12 that are parallelized.

[0018] In the conventional method, a hash calculation is performed for each field value, as shown in FIG.

[0019] In the communication data identification device 10 according to the present embodiment, the field values ​​of protocols having the same function in the OSI reference model are calculated by the same hash calculation unit, as shown in Fig. 4. For example, in the figure, "L2VPN Protocol 1" and "L2VPN Protocol 2" have the same function in the OSI reference model, and are therefore calculated by the same hash calculation unit.

[0020] In this manner, in the communication data identification device 10, the same hash calculation unit performs hash calculations on field values ​​that have the same function at the same layer in the OSI reference model.

[0021] This configuration utilizes the characteristics of hash calculations and the meaning of protocols (field values). Protocols provide transfers on networks based on the OSI reference model. At this time, the same transfer protocol is rarely applied at the same layer, except for protocols that provide specific functions such as encryption. Therefore, the hash calculation unit can be shared by multiple protocols that provide the same functions at the same layer, such as VPNs.

[0022] Here, if the same calculation process is simply performed, there is a possibility that it will be confused as to which protocol was the subject of the hash calculation. Therefore, in protocols that share the hash calculation, an identification bit is added to the beginning, as described below.

[0023] In this manner, the communication data identification device 10 assigns an identification bit to each field value having the same function in the same layer.

[0024] In this way, by performing a hash operation on the field value including the identification bit, the protocol to be subjected to the hash operation can be identified, and the hash operation unit can be shared among multiple protocols that provide the same functions in the same layer.

[0025] An example of a protocol that provides the same function is shown in Fig. 5. This embodiment is not limited to this example, and can be similarly applied to a plurality of protocols that provide equivalent functions.

[0026] In order to share a hash calculation among a plurality of field values ​​in this way, the format of the input data to the hash calculation unit must be the same.

[0027] Therefore, in the communication data identification device, among different field values ​​sharing a hash calculation unit, shorter field values ​​are padded to have the same bit length as longer field values. For example, in Fig. 6A, the field value of the MPLS label is padded with area 21. This allows each field value to be treated as having the same data format.

[0028] Furthermore, if they are treated as having the same data format, the input data may be the same between different field values, resulting in false positives.

[0029] Therefore, in the communication data identification device, in the header analysis unit or the hash calculation unit, in order to identify field values ​​that share a hash calculation unit, an identification bit is added to each field value of the same function in the same layer. For example, in Fig. 6A, "1" and "0" are added to the beginning of each field value as the identification bit 22.

[0030] The identification bit is a bit string having a length sufficient to identify the field values ​​that share the hash calculation unit, and is assigned to an area within the field value that can be easily identified, such as the beginning or end.

[0031] In this embodiment, an example has been shown in which "1" and "0" are used as the identification bits, but any predetermined identifiable value may be used, such as "10" and "111".

[0032] By the above processing, the field values ​​of protocols that provide the same function in the OSI reference model can be calculated in the same hash calculation section, and the calculation resources required for the hash calculation section to identify each packet can be reduced.

[0033] According to the communication data identification device and method of the present embodiment, it is possible to reduce computational resources and quickly identify packets in which a plurality of different protocols are mixed.

[0034] In this embodiment, a corresponding protocol is exemplified, but the present invention is not limited to this, and any protocol that provides a similar function on a network may be used.

[0035] Moreover, the hash calculation is not limited to spatial parallelism, but is also applicable to time parallelism such as pipelines.

[0036] Furthermore, all or part of the embodiments of the present invention may be realized by a hardware circuit, or may be realized as software using a CPU.

[0037] In the embodiment of the present invention, the structure, dimensions, materials, etc. of each component in the configuration of the communication data identification device and the method thereof are shown as examples, but the present invention is not limited to these. Anything that can exert the function and effect of the communication data identification device may be used. [Industrial Applicability]

[0038] The present invention relates to a communication data identification device and method, and can be applied to a packet transmission / reception system in a communication network. [Explanation of symbols]

[0039] 10 Communication data identification device 11 Header parser 12 Hash calculation unit

Claims

1. a header parser for dividing the header of a received packet into field values; a hash calculation unit that executes a hash calculation based on the field value; Equipped with The same hash calculation unit performs a hash calculation on field values ​​having the same function at the same layer in the OSI reference model among the field values; An identification bit is assigned to each field value having the same function in the same layer. A communication data identification device comprising:

2. splitting a header of a received packet into field values; performing a hash operation on field values ​​having the same function at the same layer in the OSI reference model, among the field values; providing an identification bit to each of the field values ​​having the same function in the same layer; A communication data identification method comprising:

Citation Information

Patent Citations

  • Joint pipelining packet classification, and address search method and device for switching environments

    JP2006020317A

  • Transmission source tracing system, packet specification information recording device, trace management device, program for communication apparatus, and program for tracing management device

    JP2011114820A

  • Network load distribution device and method

    JP2019009630A

  • Multi-signal analysis for identifying unauthorized access range

    JP2020509478A