Conversion device, conversion method, and conversion program
A conversion device analyzes information of an input packet using hardware and determines whether to perform predetermined previous stage processing using the hardware. Furthermore, when it is determined to perform the previous stage processing, the conversion device uses the hardware to provide metadata including identification information indicating a group of packets to the packets on the basis of the fixed-length header information of the packets. In addition, the conversion device uses software to generate analysis packets corresponding to the group of packets using the provided metadata.
1 . A conversion device comprising:
an analysis unit, implemented using one or more computing devices, configured to:
analyze information of an input packet using hardware, and
determine whether predetermined previous stage processing using the hardware is to be performed;
a provision unit, implemented using one or more computing devices, configured to, based on the analysis unit being determined to perform the predetermined previous stage processing, perform, using the hardware, a process of providing metadata including identification information indicating a group of the packet to the packet on the basis of fixed-length header information in the packet; and
a generation unit, implemented using one or more computing devices, configured to generate analysis packets corresponding to the group of packets using the metadata provided by the provision unit,
wherein the generation unit is configured to:
acquire statistics of inner headers as processing for generating analysis packets corresponding to the group,
obtain a process of generating a packet including at least statistical information indicating statistics of the inner header and statistics of an outer header,
remove a process of generating a packet including at least statistical information indicating statistics of the inner header and the outer header, and
perform one or more processes of generating a packet whose transmission destination is rewritten to an external analysis device.
2 . The conversion device according to claim 1 , wherein the analysis unit is configured to:
determine whether the predetermined previous stage processing using the hardware is to be performed,
determine whether the packet is not an analysis target, and
discard, based on a determination that the packet is not the analysis target, the packet.
3 . The conversion device according to claim 1 , wherein the analysis unit is configured to identify a hardware processing portion and a software processing portion in the packet, and
wherein the provision unit is configured to:
acquire information in a header identified as the hardware processing portion by the analysis unit,
perform grouping on the basis of the information in the header to determine the identification information, and
perform a process of providing metadata including the identification information to the packet using the hardware.
4 . The conversion device according to claim 1 , wherein the generation unit is configured to:
analyze the packet and acquire header information included in the packet based on predetermined previous stage processing using the hardware not being performed,
perform classification into one of a plurality of groups on the basis of the header information and a set grouping condition, and
generate the analysis packets on the basis of processing corresponding to the classified groups.
5 . A conversion method performed by a conversion device, comprising:
analyzing information of an input packet using hardware and determining whether predetermined previous stage processing using the hardware is to be performed;
performing, based on the predetermined previous stage processing being determined to be performed, using the hardware, a process of providing metadata including identification information indicating a group of the packet to the packet on the basis of fixed-length header information in the packet; and
generating analysis packets corresponding to the group of packets using the provided metadata,
wherein generating analysis packets comprises:
acquiring statistics of inner headers as processing for generating analysis packets corresponding to the group,
obtaining a process of generating a packet including at least statistical information indicating statistics of the inner header and statistics of an outer header,
removing a process of generating a packet including at least statistical information indicating statistics of the inner header and the outer header, and
performing one or more processes of generating a packet whose transmission destination is rewritten to an external analysis device.
6 . A non-transitory recording medium storing a conversion program, wherein execution of the conversion program causes a computer to perform operations comprising:
analyzing information of an input packet using hardware and determining whether predetermined previous stage processing using the hardware is to be performed;
performing, based on the predetermined previous stage processing being determined to be performed, using the hardware, a process of providing metadata including identification information indicating a group of the packet to the packet on the basis of fixed-length header information in the packet; and
generating analysis packets corresponding to the group of packets using the provided metadata,
wherein generating analysis packets comprises:
acquiring statistics of inner headers as processing for generating analysis packets corresponding to the group,
obtaining a process of generating a packet including at least statistical information indicating statistics of the inner header and statistics of an outer header,
removing a process of generating a packet including at least statistical information indicating statistics of the inner header and the outer header, and
performing one or more processes of generating a packet whose transmission destination is rewritten to an external analysis device.