PROCESSING TIME MEASUREMENT APPARATUS AND PROCESSING TIME MEASUREMENT METHOD
Provided is a processing time measurement device including: a packet acquisition unit that acquires a packet input to a virtualization processing unit or output from the virtualization processing unit in order to measure a packet processing time by the virtualization processing unit that virtualizes a network function; a packet identifier acquisition unit that acquires an identifier used to measure the processing time on the basis of a data portion of the acquired packet; a passage time recording unit that records time information indicating a time when the packet is acquired in association with the acquired identifier; and a processing time calculation unit that calculates the processing time on the basis of first time information and second time information in a case where the first time information in which the packet input to the virtualization processing unit is acquired and the second time information in which the packet output from the virtualization processing unit is acquired are recorded in association with the same identifier.
The present invention relates to a processing time measurement device and a processing time measurement method.
BACKGROUND ARTConventionally, a network functions virtualization (NFV) technology for a router, a gateway, a firewall, and a load balancer has been advanced. In order to meet a communication requirement between specific users, not only a network transfer part but also a processing delay in a virtualized network function implemented by the NFV needs to be considered. When an end-to-end communication delay is long, it is necessary to differentiate whether the transfer delay of the network part is long or whether the processing time in the virtualized network function part is long. Therefore, it is necessary to measure the processing time of the virtualized network function.
As a method of measuring the processing time of the virtualized network function, there is a method of embedding time data in a packet. In this method, time information is embedded in a packet before the packet is input into a virtualized network function. The processing time of the virtualized network function can be measured by calculating the difference between the time of the packet output after the processing by the virtualized network function ends and the time embedded in the packet.
Citation List Patent Literature
-
- Patent Literature 1: JP 2001-285154 A
However, in the above-described method, time information is written to a packet, and an unnecessary processing time occurs. Therefore, an end-to-end communication delay becomes longer. Moreover, in the case of a transmission control protocol (TCP) packet, unnecessary writing to the packet does not occur by using a header or the like, but there is a problem that it is difficult to monitor the entry and exit of the same packet since the content of the header changes when passing through the virtualized network function as in network address translation (NAT).
In view of the above circumstances, an object of the present invention is to provide a technology capable of measuring a processing time regardless of a packet type while suppressing occurrence of a processing delay in packet processing time measurement in a virtualized network function realized by a function of virtualizing a network function.
Solution to ProblemAccording to an aspect of the present invention, there is provided a processing time measurement device including: a packet acquisition unit that acquires a packet input to a virtualization processing unit or output from the virtualization processing unit in order to measure a packet processing time by the virtualization processing unit that virtualizes a network function; a packet identifier acquisition unit that acquires an identifier used to measure the processing time on the basis of a data portion of the acquired packet; a passage time recording unit that records time information indicating a time when the packet is acquired in association with the acquired identifier; and a processing time calculation unit that calculates the processing time on the basis of first time information and second time information in a case where the first time information in which the packet input to the virtualization processing unit is acquired and the second time information in which the packet output from the virtualization processing unit is acquired are recorded in association with the same identifier.
According to another aspect of the present invention, there is provided a processing time measurement method including: acquiring a packet input to a virtualization processing unit or output from the virtualization processing unit in order to measure a packet processing time by the virtualization processing unit that virtualizes a network function; acquiring an identifier used to measure the processing time on the basis of a data portion of the acquired packet; recording time information indicating a time when the packet is acquired in association with the acquired identifier; and calculating the processing time on the basis of first time information and second time information in a case where the first time information in which the packet input to the virtualization processing unit is acquired and the second time information in which the packet output from the virtualization processing unit is acquired are recorded in association with the same identifier.
Advantageous Effects of InventionAccording to the present invention, it is possible to measure a processing time regardless of a packet type while suppressing occurrence of a processing delay in packet processing time measurement in a virtualized network function realized by a function of virtualizing a network function.
Hereinafter, an embodiment of the present invention will be described below with reference to the drawings.
The virtualization processing unit 11 has a function of NFV in which a function of a network device (for example, a device such as a router, a gateway, a firewall, or a load balancer) is implemented as software and executed on a virtualized server. The virtualization processing unit 11 implements the function of the network device on a virtual machine or a container by using the function of the NFV.
The processing time measurement device 12 measures a processing time which is a time required for processing performed by the virtualization processing unit 11. The processing time measurement device 12 can be implemented, as software, on a general-purpose server on which a central processing unit (CPU) or a memory is installed. In order to increase the speed of the measurement processing, the processing time measurement device 12 may be implemented on hardware (including a circuit or a circuitry) such as an application specific integrated circuit (ASIC), a programmable logic device (PLD), or a field programmable gate array (FPGA).
The processing time measurement device 12 analyzes the packet input to the physical server 10 to specify a data portion of the packet, and acquires a packet identifier used to measure the processing time of the virtualization processing unit 11 on the basis of the specified data portion. The packet identifier may be a value configured by a value within a predetermined range in the specified data portion, or may be a value obtained by converting the data portion according to a certain rule. By using the acquired packet identifier, the processing time measurement device 12 acquires a first time at a timing when the same packet is input to the virtualization processing unit 11 (a circle illustrated in
The packet acquisition unit 121 acquires a packet input to the virtualization processing unit 11 and a packet output from the virtualization processing unit 11. When the packet acquisition unit 121 acquires the packet, there is a scheme of distinguishing a method of not differentiating between the packet input to the virtualization processing unit 11 and the packet output from the virtualization processing unit 11. In the first embodiment, a configuration for acquiring a packet by a method of not differentiating packets will be described. The packet acquisition unit 121 outputs, to the packet analysis unit 122, data information regarding data from an IP header to the data portion and time information indicating a time when the packet is acquired, from the acquired packet.
As a method for the packet acquisition unit 121 to acquire a packet, there are the following two methods, and any method may be used. A first packet acquisition method is a method in which the physical server 10 acquires a packet by mirroring a packet input to the virtualization processing unit 11 or a packet output from the virtualization processing unit 11 and transferring the packet to the packet acquisition unit 121.
A second packet acquisition method is a method in which a packet input to the virtualization processing unit 11 or a packet output from the virtualization processing unit 11 passes through the packet acquisition unit 121, and the packet acquisition unit 121 copies (mirrors) the passing packet to acquire the packet.
The packet analysis unit 122 analyzes the data information output from the packet acquisition unit 121 to specify the packet type and the data portion. The packet analysis unit 122 outputs information regarding the specified data portion and time information of the packet to the packet identifier acquisition unit 124.
The identifier determination database 123 is a database in which information regarding an identifier used to measure a processing time of the virtualization processing unit 11 is registered. For example, information for determining an identifier used to measure the processing time of the virtualization processing unit 11 according to the byte length of the data portion is registered in the identifier determination database 123.
The packet identifier acquisition unit 124 acquires an identifier from the data portion on the basis of the information regarding the data portion output from the packet analysis unit 122 and the identifier determination database 123. The packet identifier acquisition unit 124 outputs information regarding the acquired identifier and packet time information to the passage time recording unit 125.
The passage time recording unit 125 records the information regarding the identifier output from the packet identifier acquisition unit 124 and the packet time information in the passage time database 126 in association with each other.
The passage time database 126 is a database in which information regarding the passage time of each packet is registered. For example, in the passage time database 126, information regarding a time when the packet is input to the virtualization processing unit 11 (hereinafter, referred to as “input time information”) and information regarding a time when the packet is output from the virtualization processing unit 11 (hereinafter, referred to as “output time information”) are registered in association with the packet identifier. The passage time database 126 is used to calculate the processing time.
The processing time calculation unit 127 monitors the passage time database 126 periodically or at a predetermined timing, and calculates the processing time of the virtualization processing unit 11. Specifically, in a case where there is an identifier in which a combination of the input time information and the output time information is registered with reference to the passage time database 126, the processing time calculation unit 127 calculates a difference between a time indicated by the input time information and a time indicated by the output time information, which is associated with the identifier. Thus, the processing time calculation unit 127 calculates the processing time of the virtualization processing unit 11. The processing time calculation unit 127 deletes the information used to calculate the processing time from the passage time database 126.
In the example illustrated in
Note that, as illustrated in the example in which the byte length of the data portion is “20 to 26” as illustrated in
The packet acquisition unit 121 acquires a packet input to the virtualization processing unit 11 (step S101). The packet acquisition unit 121 outputs, to the packet analysis unit 122, data information regarding data from an IP header to the data portion and time information indicating a time when the packet is acquired, from the acquired packet. Note that, in order to accurately record the information regarding a time when the packet is acquired, even when a large number of packets flows at the same time, the packet acquisition unit 121 immediately records the time information without storing the acquired packets in the buffer. Therefore, it is necessary to allocate sufficient calculation resources (a CPU, a memory, and the like) to the processing time measurement device 12. However, in a case where the resources are absolutely insufficient, the packet acquisition unit 121 may not temporarily acquire the packet in order to guarantee the accuracy of the measurement.
A specific example of the information that the packet acquisition unit 121 outputs to the packet analysis unit 122 is illustrated in the upper portion of
The packet analysis unit 122 analyzes the packet on the basis of the data information output from the packet acquisition unit 121 (step S102). Specifically, regardless of the packet type (TCP, UDP, or the like), the packet analysis unit 122 refers to a header portion such as the total length and protocol of the packet, and specifies the information regarding the packet type, the range of the data portion (from which byte to which byte), and the byte length of the data portion. For example, the packet analysis unit 122 refers to the header portion and specifies information regarding the packet type “UDP”, the data portion, and the byte length “18” of the data portion, as illustrated in the middle portion of
Note that, although the UDP packet is described as an example in
The packet identifier acquisition unit 124 acquires an identifier from the data portion on the basis of the information regarding the packet type, the range of the data portion, and the byte length of the data portion, which are output from the packet analysis unit 122, and the identifier determination database 123 (step S103). Specifically, first, the packet identifier acquisition unit 124 refers to the identifier determination database 123 on the basis of the information regarding the byte length of the data portion obtained from the packet analysis unit 122, and specifies the byte range used as the packet identifier. For example, in a case where the byte length of the data portion ranges from 13 to 19, the packet identifier acquisition unit 124 specifies the fifth byte to eighth byte of the data portion as the byte range used as the packet identifier.
As illustrated in the lower portion of
The passage time recording unit 125 records the information regarding the identifier output from the packet identifier acquisition unit 124 and the time information in the passage time database 126 in association with each other (step S104). Specifically, first, the passage time recording unit 125 refers to the passage time database 126 and determines whether or not information regarding the identifier “201” output from the packet identifier acquisition unit 124 is registered. At the time of the start of the processing, no information is recorded in the passage time database 126 as illustrated in the first stage of
Therefore, the passage time recording unit 125 determines that information regarding the identifier “201” output from the packet identifier acquisition unit 124 is not registered. In this case, as illustrated in the second stage of
The processing in steps S101 to step S104 described above is executed each time a packet is acquired by the packet acquisition unit 121. Here, it is assumed that the processing in step S101 to step S103 is executed when the packet is acquired by the packet acquisition unit 121 again. Thus, it is assumed that the information regarding an identifier “231” and the time information “12:56.337563756” are newly output from the packet identifier acquisition unit 124 to the passage time recording unit 125.
The passage time recording unit 125 records the information regarding the identifier “231” and the time information “12:56.337563756”, which are newly output from the packet identifier acquisition unit 124, in the passage time database 126 in association with each other (step S104). Specifically, first, the passage time recording unit 125 refers to the passage time database 126 and determines whether or not information regarding the identifier “231” output from the packet identifier acquisition unit 124 is registered. The information regarding the identifier “231” is not registered in the passage time database 126 as illustrated in the second stage of
Therefore, the passage time recording unit 125 determines that the information regarding the identifier “231” output from the packet identifier acquisition unit 124 is not registered. In this case, as illustrated in the third stage of
It is assumed that a packet processed by the virtualization processing unit 11 is output from the virtualization processing unit 11 and acquired by the packet acquisition unit 121. Thus, it is assumed that the information regarding the identifier “201” and the time information “12:56.339563756” are newly output from the packet identifier acquisition unit 124 to the packet identifier acquisition unit 124. The passage time recording unit 125 records the information regarding the identifier “201” and the time information “12:56.339563756”, which are newly output from the packet identifier acquisition unit 124, in the passage time database 126 in association with each other (step S104).
Specifically, first, the passage time recording unit 125 refers to the passage time database 126 and determines whether or not information regarding the identifier “201” output from the packet identifier acquisition unit 124 is registered. The information regarding the identifier “201” is already registered in the passage time database 126 as illustrated in the third stage of
As illustrated in
The processing time calculation unit 127 refers to the passage time database 126 and determines whether or not there is a record with the time information (step S201). Specifically, the processing time calculation unit 127 determines whether or not the time information is registered in both the field of the acquisition time 1 and the field of the acquisition time 2 in association with the same identifier in the passage time database 126.
In a case where the time information is registered in both the field of the acquisition time 1 and the field of the acquisition time 2 in association with the same identifier, the processing time calculation unit 127 determines that there is a record with the time information. On the other hand, in a case where the time information is not registered in both the field of the acquisition time 1 and the field of the acquisition time 2 in association with the same identifier, the processing time calculation unit 127 determines that there is not a record with the time information.
In a case where the processing time calculation unit 127 refers to the passage time database 126 and determines that there is no record with the time information (step S201—NO), the processing time calculation unit 127 waits for a predetermined time (step S202). The time information storage processing illustrated in
On the other hand, in a case where the processing time calculation unit 127 refers to the passage time database 126 and determines that there is a record with the time information (step S201—YES), the processing time calculation unit 127 acquires the information regarding the acquisition time 1 and the information regarding the acquisition time 2, which are associated with the record with the time information. As illustrated in the upper portion of
The processing time calculation unit 127 calculates the processing time by calculating a difference between the acquired information “12:56.336563756” of the acquisition time 1 and the acquired information “12:56.339563756” of the acquisition time 2 (step S203). Thereafter, the processing time calculation unit 127 deletes the record of the identifier for which the processing time has been calculated from the passage time database 126 (step S204). For example, the processing time calculation unit 127 deletes the record of the identifier “201” as illustrated in the lower portion of
In the physical server 10 configured as described above, there are provided the packet acquisition unit 121 that acquires a packet input to the virtualization processing unit 11 or output from the virtualization processing unit 11 in order to measure the packet processing time by the virtualization processing unit 11, the packet identifier acquisition unit 124 that acquires an identifier used to measure the processing time on the basis of the data portion of the acquired packet, the passage time recording unit 125 that records the time information indicating a time when the packet is acquired in association with the acquired identifier, and a processing time calculation unit 127 that calculates a processing time on the basis of the first time information and the second time information in a case where the first time information in which the packet input to the virtualization processing unit 11 is acquired and the second time information in which the packet output from the virtualization processing unit 11 is acquired are recorded in association with the same identifier. As described above, the physical server 10 can easily calculate the processing time of the virtualization processing unit 11 by using a part of the data portion of the packet as the identifier regardless of the packet type and calculating the difference between a time when the same packet is input to the virtualization processing unit 11 and a time when the same packet is output from the virtualization processing unit 11. Moreover, in the physical server 10, since the packet is acquired by mirroring, work such as writing time information to the packet does not occur. Therefore, it is possible to measure the processing time of the virtualization processing unit 11 regardless of the packet type (TCP, UDP, or the like) while suppressing the occurrence of the processing delay.
Modification Example of First EmbodimentIn the data portion of the packet, the byte range of a planned identifier may become a position of a fixed parameter or a character string due to the user's modification or the like. In such a case, when the portion of the fixed parameter is used as an identifier, there is a possibility that a measurement error of the processing time occurs. Therefore, the processing time measurement device 12 monitors the number of times the identifier is acquired, and in a case where the number of times of acquisition is equal to or larger than a predetermined threshold, the identifier of which the number of times of acquisition is equal to or larger than a predetermined threshold is not used for measurement of the processing time. Hereinafter, a specific configuration will be described.
The processing time measurement device 12a is different from the processing time measurement device 12 in that the packet identifier acquisition unit 124a is provided instead of the packet identifier acquisition unit 124 and the identifier record database 128 is newly provided. The other configurations of the processing time measurement device 12a are similar to those of the processing time measurement device 12.
The packet identifier acquisition unit 124a acquires an identifier from the data portion on the basis of the information regarding the data portion output from the packet analysis unit 122 and the identifier determination database 123. The packet identifier acquisition unit 124a records the information regarding the acquired identifier in the identifier record database 128. At this time, the packet identifier acquisition unit 124a records the information regarding the acquired identifier in the identifier record database 128, and adds one to the number of times of acquisition in association with the identifier.
For example, in a case where the packet identifier acquisition unit 124a refers to the identifier record database 128 and information regarding the acquired identifier is not registered, the packet identifier acquisition unit 124a registers the information regarding the identifier as new registration, and adds one to the value for the number of times of acquisition. In a case where the packet identifier acquisition unit 124a refers to the identifier record database 128 and the information regarding the acquired identifier is already registered, the packet identifier acquisition unit 124a adds one to the value for the number of times of acquisition, which corresponds to the information regarding the acquired identifier, and updates the result. Thereafter, the packet identifier acquisition unit 124a refers to the identifier record database 128 to determine whether or not the number of times the acquired identifier is acquired is larger than a predetermined threshold. In a case where the number of times the identifier is acquired is equal to or less than a predetermined threshold, the packet identifier acquisition unit 124a outputs the information regarding the acquired identifier and the packet time information to the passage time recording unit 125. On the other hand, in a case where the number of times the identifier is acquired is larger than a predetermined threshold, the packet identifier acquisition unit 124a does not output the information regarding the acquired identifier and the packet time information to the passage time recording unit 125. For example, in a case where the number of times the identifier is acquired is larger than a predetermined threshold, the packet identifier acquisition unit 124a discards the acquired identifier.
The identifier record database 128 is a database in which information regarding an identifier is registered. For example, in the identifier record database 128, information regarding the number of times the identifier is acquired is registered in association with the packet identifier. The identifier record database 128 is used to determine whether or not to use information regarding the acquired packet for calculating the processing time.
When the processing in step S101 to step S103 ends, the packet identifier acquisition unit 124a acquires information regarding an identifier. The packet identifier acquisition unit 124a records the information regarding the acquired identifier in the identifier record database 128 (step S201). Specifically, the packet identifier acquisition unit 124a refers to the identifier field in the identifier record database 128, and determines whether or not there is an identifier matching the information regarding the acquired identifier. When there is no identifier matching the information regarding the acquired identifier, the packet identifier acquisition unit 124a creates a new record in the identifier record database 128. The packet identifier acquisition unit 124a records the information regarding the acquired identifier in the identifier field of the created record, and records a value of one in the number-of-times-of-acquisition field.
In a case where there is an identifier matching the information regarding the acquired identifier, the packet identifier acquisition unit 124a adds a value of one to the number-of-times-of-acquisition field of the record for the matching identifier to update the value recorded in the number-of-times-of-acquisition field. Thereafter, the packet identifier acquisition unit 124a refers to the identifier record database 128 to determine whether or not the value of the number-of-times-of-acquisition field associated with the acquired identifier is equal to or less than a threshold (step S202).
In a case where it is determined that the value of the number-of-times-of-acquisition field associated with the acquired identifier is equal to or less than the threshold (step S202—YES), the packet identifier acquisition unit 124a outputs the information regarding the acquired identifier and the time information to the passage time recording unit 125. Thereafter, processing in step S104 is executed.
On the other hand, in a case where the packet identifier acquisition unit 124a determines that the value of the number-of-times-of-acquisition field associated with the acquired identifier is larger than the threshold (step S202—NO), the processing in and after step S101 is repeatedly executed. As described above, in a case where many acquired identifiers have been acquired in the past, the processing time of the virtualization processing unit 11 is not measured on the basis of the identifier. As described above, in a case where many acquired identifiers have been acquired in the past, there is a possibility that a fixed parameter or the like is used as an identifier, and the measurement accuracy of the processing time may be decreased. Therefore, in order to solve such a problem, in a case where many acquired identifiers have been acquired in the past, the processing time measurement device 12a does not measure the processing time of the virtualization processing unit 11 on the basis of the identifier. Thus, it is possible to reduce erroneous measurement of the processing time.
Second EmbodimentIn the second embodiment, a configuration in which a packet input to the virtualization processing unit 11 and a packet output from the virtualization processing unit 11 are differentiated.
The processing time measurement device 12b is different from the processing time measurement device 12 in that the packet acquisition unit 121b and the passage time recording unit 125b are provided instead of the packet acquisition unit 121 and the passage time recording unit 125. The other configurations of the processing time measurement device 12b are similar to those of the processing time measurement device 12.
The packet acquisition unit 121b acquires a packet input to the virtualization processing unit 11 and a packet output from the virtualization processing unit 11. For example, the packet acquisition unit 121b acquires the packet input to the virtualization processing unit 11 and the packet output from the virtualization processing unit 11 at different portions. As an example, the packet acquisition unit 121b acquires a packet acquired at the first portion as the packet input to the virtualization processing unit 11, and acquires a packet acquired at the second portion as the packet output from the virtualization processing unit 11. The first portion and the second portion are set in advance. For example, the packet acquired at the circle portion in
The packet acquisition unit 121b outputs, to the packet analysis unit 122, an identifier (hereinafter, referred to as a “determination identifier”) for identifying whether a packet is the packet input to the virtualization processing unit 11 or the packet output from the virtualization processing unit 11, data information regarding data from an IP header to a data portion in the acquired packet, and time information indicating a time when the packet is acquired. For example, it is assumed that the packet input to the virtualization processing unit 11 is set as “one” and the packet output from the virtualization processing unit 11 is set as “two” as the determination identifier.
The packet analysis unit 122 analyzes the data information output from the packet acquisition unit 121 to specify the packet type and the data portion. The packet analysis unit 122 outputs the determination identifier, the information regarding the specified data portion, and the packet time information to the packet identifier acquisition unit 124.
The packet identifier acquisition unit 124 acquires an identifier from the data portion on the basis of the information regarding the data portion output from the packet analysis unit 122 and the identifier determination database 123. The packet identifier acquisition unit 124 outputs the determination identifier, the information regarding the acquired identifier, and the packet time information to the passage time recording unit 125.
The passage time recording unit 125b records the information regarding the identifier output from the packet identifier acquisition unit 124 and the packet time information in the passage time database 126 in association with each other. At this time, the passage time recording unit 125b specifies a field for recording the time information on the basis of the determination identifier output from the packet identifier acquisition unit 124. For example, in a case where the determination identifier is set as “one”, the passage time recording unit 125b records the time information output from the packet identifier acquisition unit 124 in the field of the acquisition time 1 of the passage time database 126, and in a case where the determination identifier is set as “two”, the passage time recording unit 125b records the time information output from the packet identifier acquisition unit 124 in the field of the acquisition time 2 of the passage time database 126.
The packet acquisition unit 121b acquires a packet at the first portion (step S301). The packet acquisition unit 121b outputs, to the packet analysis unit 122, data information regarding data from an IP header to the data portion and time information indicating a time when the packet is acquired, from the acquired packet. At this time, the packet acquisition unit 121b also outputs the determination identifier corresponding to the location where the packet is acquired to the packet analysis unit 122. For example, when the determination identifier in a case where a packet is acquired at the first portion is set as “one”, the packet acquisition unit 121b also outputs information regarding a determination identifier “1” to the packet analysis unit 122.
Note that, in order to accurately record the information regarding a time when the packet is acquired, even when a large number of packets flows at the same time, the packet acquisition unit 121b immediately records the time information without storing the acquired packets in the buffer. Therefore, it is necessary to allocate sufficient calculation resources (a CPU, a memory, and the like) to the processing time measurement device 12. However, in a case where the resources are absolutely insufficient, the packet acquisition unit 121b may not temporarily acquire the packet in order to guarantee the accuracy of the measurement.
A specific example of the information that the packet acquisition unit 121b outputs to the packet analysis unit 122 is illustrated in the upper portion of
The packet analysis unit 122 analyzes the packet on the basis of the data information output from the packet acquisition unit 121b (step S302). Specifically, regardless of the packet type (Transmission control protocol (TCP), UDP, or the like), the packet analysis unit 122 refers to a header portion such as the total length and protocol of the packet, and specifies the information regarding the packet type, the range of the data portion (from which byte to which byte), and the byte length of the data portion. For example, the packet analysis unit 122 refers to the header portion and specifies information regarding the packet type “UDP”, the data portion, and the byte length “18” of the data portion, as illustrated in the middle portion of
Note that, although the UDP packet is described as an example in
The packet identifier acquisition unit 124 acquires an identifier from the data portion on the basis of the information regarding the packet type, the range of the data portion, and the byte length of the data portion, which are output from the packet analysis unit 122, and the identifier determination database 123 (step S303). Specifically, first, the packet identifier acquisition unit 124 refers to the identifier determination database 123 on the basis of the information regarding the byte length of the data portion obtained from the packet analysis unit 122, and specifies the byte range used as the packet identifier. For example, in a case where the byte length of the data portion ranges from 13 to 19, the packet identifier acquisition unit 124 specifies the fifth byte to eighth byte of the data portion as the byte range used as the packet identifier.
As illustrated in the lower portion of
The passage time recording unit 125b records the information regarding the determination identifier “1” output from the packet identifier acquisition unit 124, the information regarding the identifier, and the time information in the passage time database 126 in association with each other (step S304). Specifically, first, the passage time recording unit 125b refers to the passage time database 126 and determines whether or not information regarding the identifier “201” output from the packet identifier acquisition unit 124 is registered. At the time of the start of the processing, no information is recorded in the passage time database 126 as illustrated in the first stage of
Therefore, the passage time recording unit 125b determines that information regarding the identifier “201” output from the packet identifier acquisition unit 124 is not registered. In this case, as illustrated in the second stage of
The processing in step S301 to step S304 described above is executed each time a packet is acquired by the packet acquisition unit 121b. Here, it is assumed that the processing in step S301 to step S303 is executed when the packet is acquired by the packet acquisition unit 121b again. Thus, it is assumed that the information regarding a determination identifier “1”, the information regarding the identifier “231”, and the time information “12:56.337563756” are newly output from the packet identifier acquisition unit 124 to the passage time recording unit 125b.
The passage time recording unit 125b records the information regarding the identifier “231” and the time information “12:56.337563756”, which are newly output from the packet identifier acquisition unit 124, in the passage time database 126 in association with each other (step S304). Specifically, first, the passage time recording unit 125b refers to the passage time database 126 and determines whether or not the information regarding the identifier “231” output from the packet identifier acquisition unit 124 is registered. The information regarding the identifier “231” is not registered in the passage time database 126 as illustrated in the second stage of
Therefore, the passage time recording unit 125b determines that the information regarding the identifier “231” output from the packet identifier acquisition unit 124 is not registered. In this case, as illustrated in the third stage of
It is assumed that a packet processed by the virtualization processing unit 11 is output from the virtualization processing unit 11 and acquired at the second portion different from the first portion by the packet acquisition unit 121b. In this case, the packet acquisition unit 121b outputs information “2” as the determination identifier to the packet analysis unit 122. Thereafter, the processing in steps S302 and S303 is executed, and the information regarding a determination identifier “2”, the information regarding the identifier “201”, and the time information “12:56.339563756” are newly output from the packet identifier acquisition unit 124 to the passage time recording unit 125b. The passage time recording unit 125b records the information regarding the identifier “201” and the time information “12:56.339563756”, which are newly output from the packet identifier acquisition unit 124, in the passage time database 126 in association with each other (step S304).
Specifically, first, the passage time recording unit 125b refers to the passage time database 126 and determines whether or not information regarding the identifier “201” output from the packet identifier acquisition unit 124 is registered. The information regarding the identifier “201” is already registered in the passage time database 126 as illustrated in the third stage of
In the physical server 10 according to the second embodiment configured as described above, the information regarding the determination identifier is used to differentiate between the packet input to the virtualization processing unit 11 and the packet output from the virtualization processing unit 11. Thus, it is possible to record time information of packets acquired at different locations for the same identifier. As a result, the time difference can be calculated more accurately.
Modification Example of Second EmbodimentSimilarly to the first embodiment, the processing time measurement device 12b may determine whether or not to use the identifier for measuring the processing time on the basis of the number of times the identifier is acquired.
The processing time measurement device 12c is different from the processing time measurement device 12b in that the packet identifier acquisition unit 124c is provided instead of the packet identifier acquisition unit 124 and the identifier record database 128 is newly provided. The other configurations of the processing time measurement device 12c are similar to those of the processing time measurement device 12b.
The packet identifier acquisition unit 124c acquires an identifier from the data portion on the basis of the information regarding the data portion output from the packet analysis unit 122 and the identifier determination database 123. The packet identifier acquisition unit 124c records the information regarding the acquired identifier in the identifier record database 128. At this time, the packet identifier acquisition unit 124c records the information regarding the acquired identifier in the identifier record database 128, and adds one to the number of times of acquisition in association with the identifier.
For example, in a case where the packet identifier acquisition unit 124c refers to the identifier record database 128 and information regarding the acquired identifier is not registered, the packet identifier acquisition unit 124c registers the information regarding the identifier as new registration, and adds one to the value for the number of times of acquisition. In a case where the packet identifier acquisition unit 124c refers to the identifier record database 128 and the information regarding the acquired identifier is already registered, the packet identifier acquisition unit 124c adds one to the value for the number of times of acquisition, which corresponds to the information regarding the acquired identifier, and updates the result. Thereafter, the packet identifier acquisition unit 124c refers to the identifier record database 128 to determine whether or not the number of times the acquired identifier is acquired is larger than a predetermined threshold. In a case where the number of times the identifier is acquired is equal to or less than a predetermined threshold, the packet identifier acquisition unit 124c outputs the information regarding the determination identifier, the information regarding the acquired identifier and the packet time information to the passage time recording unit 125b. On the other hand, in a case where the number of times the identifier is acquired is larger than a predetermined threshold, the packet identifier acquisition unit 124c does not output the information regarding the determination identifier, the information regarding the acquired identifier and the packet time information to the passage time recording unit 125c.
Third EmbodimentIn the first embodiment and the second embodiment, the configuration in a case where the packet identifier is a value configured with a value within a predetermined range in the specified data portion has been described. In a third embodiment, a configuration in a case where the packet identifier is a value obtained by converting the data portion according to a certain rule will be described. Note that in the third embodiment, similarly to the first embodiment, a case where the packet input to the virtualization processing unit 11 and the packet output from the virtualization processing unit 11 are not differentiated will be described.
The processing time measurement device 12d has the configuration different from that of the processing time measurement device 12 in that the packet identifier acquisition unit 124d is provided instead of the packet identifier acquisition unit 124 and the identifier determination database 123 is not provided. The other configurations of the processing time measurement device 12d are similar to those of the processing time measurement device 12.
The packet identifier acquisition unit 124d acquires an identifier from the data portion on the basis of the information regarding the data portion output from the packet analysis unit 122 and the identifier determination database 123. Specifically, the packet identifier acquisition unit 124d acquires an identifier by converting the data portion according to a certain rule. For example, the packet identifier acquisition unit 124d acquires, as an identifier, a value obtained by converting the data portion into data with a constant length by using a hash function or the like. The packet identifier acquisition unit 124d outputs information regarding the acquired identifier and packet time information to the passage time recording unit 125.
The processing from step S101 to step S102 is executed. Note that the description in the upper portion of
Note that, although the UDP packet is described as an example in
The packet identifier acquisition unit 124d acquires a packet identifier on the basis of the range of the data portion output from the packet analysis unit 122 (step S401). Specifically, as illustrated in the lower portion of
The passage time recording unit 125 records the information regarding the identifier output from the packet identifier acquisition unit 124d and the time information in the passage time database 126 in association with each other (step S104). Specifically, first, the passage time recording unit 125 refers to the passage time database 126 and determines whether or not the information regarding the identifier “68 6f 67 65” output from the packet identifier acquisition unit 124d is registered. At the time of the start of the processing, no information is recorded in the passage time database 126 as illustrated in the first stage of
Therefore, the passage time recording unit 125 determines that the information regarding the identifier “68 6f 67 65” output from the packet identifier acquisition unit 124d is not registered. In this case, as illustrated in the second stage of
The processing in steps S101, S102, S401, and S104 described above is executed each time a packet is acquired by the packet acquisition unit 121. Here, it is assumed that the processing in steps S101, S102, and S401 is executed when the packet is acquired by the packet acquisition unit 121 again. Thus, it is assumed that information regarding an identifier “38 4f 47 55” and the time information “12:56.337563756” are newly output from the packet identifier acquisition unit 124d to the passage time recording unit 125.
The passage time recording unit 125 records the information regarding the identifier “38 4f 47 55” and the time information “12:56.337563756”, which are newly output from the packet identifier acquisition unit 124d, in the passage time database 126 in association with each other (step S104). Specifically, first, the passage time recording unit 125 refers to the passage time database 126 and determines whether or not information regarding the identifier “38 4f 47 55” output from the packet identifier acquisition unit 124d is registered. The information regarding the identifier “38 4f 47 55” is not registered in the passage time database 126 as illustrated in the second stage of
Therefore, the passage time recording unit 125 determines that the information regarding the identifier “38 4f 47 55” output from the packet identifier acquisition unit 124d is not registered. In this case, as illustrated in the third stage of
It is assumed that a packet processed by the virtualization processing unit 11 is output from the virtualization processing unit 11 and acquired by the packet acquisition unit 121. Thus, it is assumed that the information regarding the identifier “201” and the time information “12:56.339563756” are newly output from the packet identifier acquisition unit 124d to the passage time recording unit 125. The passage time recording unit 125 records the information regarding the identifier “201” and the time information “12:56.339563756”, which are newly output from the packet identifier acquisition unit 124d, in the passage time database 126 in association with each other (step S104).
Specifically, first, the passage time recording unit 125 refers to the passage time database 126 and determines whether or not the information regarding the identifier “68 6f 67 65” output from the packet identifier acquisition unit 124d is registered. The information regarding the identifier “68 6f 67 65” is already registered in the passage time database 126 as illustrated in the third stage of
As illustrated in
In the physical server 10 according to the third embodiment configured as described above, it is possible to obtain effects similar to those of the first embodiment.
Moreover, in the physical server 10 according to the third embodiment, a value obtained by converting the data portion of the packet acquired by the packet acquisition unit 121 according to a certain rule is used as the identifier. Thus, the identifier can be acquired by a method different from that of the first embodiment. Moreover, the physical server 10 according to the third embodiment does not need to include the identifier determination database 123 as compared with the first embodiment, and the identifier can be acquired by the same method regardless of the byte length of the data portion as in the first embodiment.
Modification Example of Third EmbodimentIn the data portion of the packet, the byte range of a planned identifier may become a position of a fixed parameter or a character string due to the user's modification or the like. In such a case, when the portion of the fixed parameter is used as an identifier, there is a possibility that a measurement error of the processing time occurs. Therefore, the processing time measurement device 12d monitors the number of times the identifier is acquired, and in a case where the number of times of acquisition is equal to or larger than a predetermined threshold, the identifier of which the number of times of acquisition is equal to or larger than a predetermined threshold is not used for measurement of the processing time. Hereinafter, a specific configuration will be described.
The processing time measurement device 12e is different from the processing time measurement device 12d in that the packet identifier acquisition unit 124e is provided instead of the packet identifier acquisition unit 124 and the identifier record database 128 is newly provided. The other configurations of the processing time measurement device 12e are similar to those of the processing time measurement device 12d.
The packet identifier acquisition unit 124e acquires an identifier from the data portion on the basis of the information regarding the data portion output from the packet analysis unit 122 and the identifier determination database 123. Specifically, the packet identifier acquisition unit 124e acquires an identifier by converting the data portion according to a certain rule. For example, the packet identifier acquisition unit 124e acquires, as an identifier, a value obtained by converting the data portion into data with a constant length by using a hash function or the like.
The packet identifier acquisition unit 124e records the information regarding the acquired identifier in the identifier record database 128. At this time, the packet identifier acquisition unit 124e records the information regarding the acquired identifier in the identifier record database 128, and adds one to the number of times of acquisition in association with the identifier.
For example, in a case where the packet identifier acquisition unit 124e refers to the identifier record database 128 and the information regarding the acquired identifier is not registered, the packet identifier acquisition unit 124e registers the information regarding the identifier as new registration, and adds one to the value for the number of times of acquisition. In a case where the packet identifier acquisition unit 124e refers to the identifier record database 128 and the information regarding the acquired identifier is already registered, the packet identifier acquisition unit 124e adds one to the value for the number of times of acquisition, which corresponds to the information regarding the acquired identifier, and updates the result. Thereafter, the packet identifier acquisition unit 124e refers to the identifier record database 128 to determine whether or not the number of times the acquired identifier is acquired is larger than a predetermined threshold. In a case where the number of times the identifier is acquired is equal to or less than a predetermined threshold, the packet identifier acquisition unit 124e outputs the information regarding the acquired identifier and the packet time information to the passage time recording unit 125. On the other hand, in a case where the number of times the identifier is acquired is larger than a predetermined threshold, the packet identifier acquisition unit 124e does not output the information regarding the acquired identifier and the packet time information to the passage time recording unit 125.
The processing from step S101 to step S102 is executed. The packet identifier acquisition unit 124e acquires a packet identifier on the basis of the range of the data portion output from the packet analysis unit 122 (step S501). Specifically, the packet identifier acquisition unit 124e converts a data portion specified in the received data portion range into data with a constant length (for example, 4 bytes) by using a hash function or the like. The packet identifier acquisition unit 124e acquires data with a constant length (for example, 4 bytes) after the conversion as a value of the identifier.
The packet identifier acquisition unit 124e records the information regarding the acquired identifier in the identifier record database 128 (step S502). Specifically, the packet identifier acquisition unit 124e refers to the identifier field in the identifier record database 128, and determines whether or not there is an identifier matching the information regarding the acquired identifier. In a case where there is no identifier matching the information regarding the acquired identifier, the packet identifier acquisition unit 124e creates a new record in the identifier record database 128. The packet identifier acquisition unit 124e records information regarding the acquired identifier in the identifier field of the created record, and records a value of one in the number-of-times-of-acquisition field.
In a case where there is an identifier matching the information regarding the acquired identifier, the packet identifier acquisition unit 124e adds a value of one to the number-of-times-of-acquisition field of the record for the matching identifier to update the value recorded in the number-of-times-of-acquisition field. Thereafter, the packet identifier acquisition unit 124e refers to the identifier record database 128 to determine whether or not the value of the number-of-times-of-acquisition field associated with the acquired identifier is equal to or less than a threshold (step S503).
In a case where it is determined that the value of the number-of-times-of-acquisition field associated with the acquired identifier is equal to or less than the threshold (step S503—YES), the packet identifier acquisition unit 124e outputs the information regarding the acquired identifier and the time information to the passage time recording unit 125. The passage time recording unit 125 records the information regarding the identifier output from the packet identifier acquisition unit 124e and the time information in the passage time database 126 in association with each other (step S504). Specifically, first, the passage time recording unit 125 refers to the passage time database 126 and determines whether or not the information regarding the identifier output from the packet identifier acquisition unit 124e is registered.
In a case where the information regarding the identifier output from the packet identifier acquisition unit 124e is not registered in the passage time database 126, the passage time recording unit 125 records the information regarding the identifier and the time information in the passage time database 126 as a new record. On the other hand, in a case where the obtained information regarding the identifier is already registered in the passage time database 126, the passage time recording unit 125 registers the time information in the field of the acquisition time 2 of the record of the name of the corresponding identifier. The processing in steps S101, S102, S501, S502, and S503 described above is executed each time a packet is acquired by the packet acquisition unit 121.
On the other hand, in a case where the packet identifier acquisition unit 124e determines that the value of the number-of-times-of-acquisition field associated with the acquired identifier is larger than the threshold (step S503—NO), the processing in and after step S101 is repeatedly executed. As described above, in a case where many acquired identifiers have been acquired in the past, the processing time of the virtualization processing unit 11 is not measured on the basis of the identifier. As described above, in a case where many acquired identifiers have been acquired in the past, there is a possibility that a fixed parameter or the like is used as an identifier, and the measurement accuracy of the processing time may be decreased. Therefore, in order to solve such a problem, in a case where many acquired identifiers have been acquired in the past, the processing time measurement device 12e does not measure the processing time of the virtualization processing unit 11 on the basis of the identifier. Thus, it is possible to reduce erroneous measurement of the processing time.
Fourth EmbodimentIn the first embodiment and the second embodiment, the configuration in a case where the packet identifier is a value configured with a value within a predetermined range in the specified data portion has been described. In a fourth embodiment, a configuration in a case where the packet identifier is a value obtained by converting the data portion according to a certain rule will be described. Note that in the fourth embodiment, similarly to the second embodiment, a case where the packet input to the virtualization processing unit 11 and the packet output from the virtualization processing unit 11 are differentiated will be described.
The processing time measurement device 12f is different from the processing time measurement device 12d in that the packet acquisition unit 121f and the passage time recording unit 125f are provided instead of the packet acquisition unit 121 and the passage time recording unit 125. The other configurations of the processing time measurement device 12f are similar to those of the processing time measurement device 12d.
The packet acquisition unit 121f acquires a packet input to the virtualization processing unit 11 and a packet output from the virtualization processing unit 11. For example, the packet acquisition unit 121f acquires the packet input to the virtualization processing unit 11 and the packet output from the virtualization processing unit 11 at different portions. As an example, the packet acquisition unit 121f acquires a packet acquired at the first portion as the packet input to the virtualization processing unit 11, and acquires a packet acquired at the second portion as the packet output from the virtualization processing unit 11.
The packet acquisition unit 121f outputs, to the packet analysis unit 122, a determination identifier, data information regarding data from an IP header to the data portion, and time information indicating a time when the packet is acquired, from the acquired packet. For example, it is assumed that the packet input to the virtualization processing unit 11 is set as “one” and the packet output from the virtualization processing unit 11 is set as “two” as the determination identifier.
The packet analysis unit 122 analyzes the data information output from the packet acquisition unit 121f to specify the packet type and the data portion. The packet analysis unit 122 outputs the determination identifier, the information regarding the specified data portion, and the packet time information to the packet identifier acquisition unit 124d.
The packet identifier acquisition unit 124d acquires an identifier from the data portion on the basis of the information regarding the data portion output from the packet analysis unit 122 and the identifier determination database 123. The packet identifier acquisition unit 124d outputs the determination identifier, the information regarding the acquired identifier, and the packet time information to the passage time recording unit 125f.
The passage time recording unit 125f records the information regarding the identifier output from the packet identifier acquisition unit 124d and the packet time information in the passage time database 126 in association with each other. At this time, the passage time recording unit 125f specifies a field for recording the time information on the basis of the determination identifier output from the packet identifier acquisition unit 124d.
The packet acquisition unit 121f acquires a packet at the first portion (step S601). The packet acquisition unit 121f outputs, to the packet analysis unit 122, data information regarding data from an IP header to the data portion and time information indicating a time when the packet is acquired, from the acquired packet. At this time, the packet acquisition unit 121f also outputs the determination identifier corresponding to the location where the packet is acquired to the packet analysis unit 122. For example, when the determination identifier in a case where a packet is acquired at the first portion is set as “one”, the packet acquisition unit 121f also outputs information regarding a determination identifier “1” to the packet analysis unit 122.
Note that, in order to accurately record the information regarding a time when the packet is acquired, even when a large number of packets flows at the same time, the packet acquisition unit 121f immediately records the time information without storing the acquired packets in the buffer. Therefore, it is necessary to allocate sufficient calculation resources (a CPU, a memory, and the like) to the processing time measurement device 12. However, in a case where the resources are absolutely insufficient, the packet acquisition unit 121f may not temporarily acquire the packet in order to guarantee the accuracy of the measurement.
The packet analysis unit 122 analyzes the packet on the basis of the data information output from the packet acquisition unit 121f (step S602). Specifically, regardless of the packet type (TCP, UDP, or the like), the packet analysis unit 122 refers to a header portion such as the total length and protocol of the packet, and specifies the information regarding the packet type, the range of the data portion (from which byte to which byte), and the byte length of the data portion. The packet analysis unit 122 outputs information regarding a determination identifier “1”, information regarding the specified packet type, the data portion, and the byte length of the data portion, and time information to the packet identifier acquisition unit 124d.
The packet identifier acquisition unit 124d acquires a packet identifier on the basis of the range of the data portion output from the packet analysis unit 122 (step S603). Specifically, the packet identifier acquisition unit 124d converts a data portion specified in the received data portion range into data with a constant length (for example, 4 bytes) by using a hash function or the like. The packet identifier acquisition unit 124d acquires data with a constant length (for example, 4 bytes) after the conversion as a value of the identifier. The packet identifier acquisition unit 124d outputs the information regarding the determination identifier “1”, the information regarding the acquired identifier, and the time information to the passage time recording unit 125f.
The passage time recording unit 125f records the information regarding the identifier output from the packet identifier acquisition unit 124d and the time information in the passage time database 126 in association with each other (step S604). Specifically, first, the passage time recording unit 125f refers to the passage time database 126 and determines whether or not the information regarding the identifier output from the packet identifier acquisition unit 124d is registered.
In a case where it is determined that the information regarding the identifier output from the packet identifier acquisition unit 124d is not registered in the passage time database 126, the passage time recording unit 125f records the information regarding the identifier and the time information in the passage time database 126 as a new record. In this case, the passage time recording unit 125f refers to the information regarding the determination identifier “1” to specify the recording location of the time information. The determination identifier “1” is information indicating a packet input to the virtualization processing unit 11. Therefore, the passage time recording unit 125f records the time information in the field of the acquisition time 1. The processing in steps S601 to S603 described above is executed each time a packet is acquired by the packet acquisition unit 121f.
Thus, it is assumed that the packet acquisition unit 121f acquires the packet at the second portion different from the first portion. In this case, the packet acquisition unit 121f outputs information “2” as the determination identifier to the packet analysis unit 122. Thereafter, the processing in steps S602 and S603 is executed, and the information regarding a determination identifier “2”, the information regarding the identifier, and the time information are newly output from the packet identifier acquisition unit 124d to the passage time recording unit 125f. The passage time recording unit 125f records information regarding the identifier and the time information, which are newly output from the packet identifier acquisition unit 124d, in the passage time database 126 in association with each other (step S604).
Specifically, first, the passage time recording unit 125f refers to the passage time database 126 and determines whether or not the information regarding the identifier output from the packet identifier acquisition unit 124d is registered. In a case where it is determined that the information regarding the identifier output from the packet identifier acquisition unit 124d is registered in the passage time database 126, the passage time recording unit 125f refers to the information regarding the determination identifier “2” to specify the recording location of the time information. The determination identifier “2” is information indicating a packet output from the virtualization processing unit 11. Therefore, the passage time recording unit 125f records the time information in the field of the acquisition time 2 of the record corresponding to the acquired identifier.
In the physical server 10 according to the fourth embodiment configured as described above, it is possible to obtain effects similar to those of the second embodiment.
Modification Example of Fourth EmbodimentSimilarly to the first embodiment, the processing time measurement device 12f may determine whether or not to use the identifier for measuring the processing time on the basis of the number of times the identifier is acquired.
The processing time measurement device 12g has the configuration different from that of the processing time measurement device 12f in that the packet identifier acquisition unit 124g is provided instead of the packet identifier acquisition unit 124d. The other configurations of the processing time measurement device 12g are similar to those of the processing time measurement device 12f.
The packet identifier acquisition unit 124g acquires an identifier from the data portion on the basis of the information regarding the data portion output from the packet analysis unit 122 and the identifier determination database 123. Specifically, the packet identifier acquisition unit 124g acquires an identifier by converting the data portion according to a certain rule. The packet identifier acquisition unit 124g records the information regarding the acquired identifier in the identifier record database 128. At this time, the packet identifier acquisition unit 124g records the information regarding the acquired identifier in the identifier record database 128, and adds one to the number of times of acquisition in association with the identifier.
For example, in a case where the packet identifier acquisition unit 124g refers to the identifier record database 128 and the information regarding the acquired identifier is not registered, the packet identifier acquisition unit 124g registers the information regarding the identifier as new registration, and adds one to the value for the number of times of acquisition. In a case where the packet identifier acquisition unit 124g refers to the identifier record database 128 and the information regarding the acquired identifier is already registered, the packet identifier acquisition unit 124g adds one to the value for the number of times of acquisition, which corresponds to the information regarding the acquired identifier, and updates the result. Thereafter, the packet identifier acquisition unit 124g refers to the identifier record database 128 to determine whether or not the number of times the acquired identifier is acquired is larger than a predetermined threshold. In a case where the number of times the identifier is acquired is equal to or less than a predetermined threshold, the packet identifier acquisition unit 124g outputs the information regarding the determination identifier, the information regarding the acquired identifier, and the packet time information to the passage time recording unit 125f. On the other hand, in a case where the number of times the identifier is acquired is larger than a predetermined threshold, the packet identifier acquisition unit 124g does not output the information regarding the determination identifier, the information regarding the acquired identifier, and the packet time information to the passage time recording unit 125g.
Some function units included in the physical server 10 described above may be implemented by a computer. In that case, a program for implementing this function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read and executed by a computer system to implement this function. Note that, the “computer system” described herein includes an OS and hardware such as peripheral equipment. Furthermore, the “computer-readable recording medium” refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, or a CD-ROM, or a storage device such as a hard disk built in the computer system.
Moreover, the “computer-readable recording medium” may include a medium that dynamically holds the program for a short period of time, such as a communication line in a case where the program is transmitted via a network such as the Internet or a communication line such as a telephone line, and a medium that holds the program for a certain period of time, such as a volatile memory inside the computer system serving as a server or a client in that case. The program may be for implementing some of the functions described above, may be implemented in a combination of the functions described above and the program already recorded in the computer system, or may be implemented with a programmable logic device such as a field programmable gate array (FPGA).
Although the embodiments of the present invention have been described in detail with reference to the drawings, specific configurations are not limited to the embodiments and include design and the like within the gist of the present invention.
Industrial ApplicabilityThe present invention can be applied to a technology for measuring a packet processing time.
REFERENCE SIGNS LIST
-
- 10 Physical server
- 11 Virtualization processing unit
- 12, 12a, 12c, 12d, 12e, 12f, 12g Processing time measurement device
- 121, 121b, 121f Packet acquisition unit
- 122 Packet analysis unit
- 123 Identifier determination database
- 124, 124a, 124c, 124d, 124e, 124g Packet identifier acquisition unit
- 125, 125b, 125f Passage time recording unit
- 126 Passage time database
- 127 Processing time calculation unit
- 128 Identifier record database
Claims
1. A processing time measurement device comprising:
- a packet acquirer configured to acquire a packet input to a virtualization processor or output from the virtualization processor in order to measure a packet processing time by the virtualization processor that virtualizes a network function;
- a packet identifier acquirer configured to acquire an identifier used to measure the processing time on a basis of a data portion of the acquired packet;
- a passage time recorder configured to record time information indicating a time when the packet is acquired in association with the acquired identifier; and
- a processing time calculator configured to calculate the processing time on a basis of first time information and second time information in a case where the first time information in which the packet input to the virtualization processor is acquired and the second time information in which the packet output from the virtualization processor is acquired are recorded in association with the same identifier.
2. The processing time measurement device according to claim 1,
- wherein the packet identifier acquirer
- acquires, as the identifier, a value configured with a value within a predetermined range in the data portion of the packet.
3. The processing time measurement device according to claim 1,
- wherein the packet identifier acquirer
- acquires, as the identifier, a value obtained by converting the data portion of the packet according to a certain rule.
4. The processing time measurement device according to claim 1,
- wherein the packet acquirer
- acquires a packet input to the virtualization processor and a packet output from the virtualization processor at different locations, and outputs a determination identifier for identifying each of the acquired locations together with the packet, and
- the passage time recorder records time information on a basis of the determination identifier.
5. The processing time measurement device according to claim 1,
- wherein the packet identifier acquirer
- outputs information regarding the acquired identifier and the time information to the passage time recorder in a case where the number of times the acquired identifier is acquired is equal to or less than a threshold, and discards the acquired identifier in a case where the number of times the acquired identifier is acquired is larger than the threshold.
6. A processing time measurement method comprising:
- acquiring a packet input to a virtualization processor or output from the virtualization processor in order to measure a packet processing time by the virtualization processor that virtualizes a network function;
- acquiring an identifier used to measure the processing time on a basis of a data portion of the acquired packet;
- recording time information indicating a time when the packet is acquired in association with the acquired identifier; and
- calculating the processing time on a basis of first time information and second time information in a case where the first time information in which the packet input to the virtualization processor is acquired and the second time information in which the packet output from the virtualization processor is acquired are recorded in association with the same identifier.
Type: Application
Filed: Jan 19, 2023
Publication Date: Nov 26, 2026
Applicant: NTT, Inc. (Tokyo)
Inventors: Sei KOU (Musashino-shi), Tomoya HATANO (Musashino-shi), Tatsuya SHIMADA (Musashino-shi), Hiroshi O (Musashino-shi), Tomoaki YOSHIDA (Musashino-shi)
Application Number: 19/143,576