Packet monitoring device, communication system, and program

The packet monitoring device balances time stamp data integration and real-time performance by distributing data for each packet ID with a survival time, enhancing network monitoring accuracy and responsiveness.

JP2024127553AActive Publication Date: 2024-09-20SEIKO SOLUTIONS
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023036771
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-20
Estimated Expiration
2043-03-09

AI Technical Summary

Technical Problem

Conventional packet monitoring systems lack the ability to integrate time stamp data from multiple monitoring points and fail to provide real-time performance while maintaining accuracy, especially in capturing instantaneous network conditions such as delay and packet loss.

Method used

A packet monitoring device that adjusts the balance between time stamp data integration accuracy and real-time performance by distributing time stamp data for each packet ID and applying a survival time before passing it to post-processing.

Benefits of technology

Enables accurate and real-time monitoring of packet communication by ensuring that only relevant time stamp data is processed promptly, allowing for effective delay measurement, packet loss detection, and route change detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024127553000001
    Figure 2024127553000001
Patent Text Reader

Abstract

To provide a packet monitoring device that adjusts a balance of an accuracy and a real time property in an integration of time stamp data by an adjustment of a life time, and monitors a packet communication, and to provide a communication system and a program.SOLUTION: A packet monitoring device includes: a communication unit that sequentially receives time stamp data containing header information of a packet and a time stamp from a plurality of agents; a distribution unit that performs distribution processing for distributing the time stamp data in each packet ID generated from the header information; and a control unit that transports and receives the time stamp data distributed to the packet ID to post processing when a life time in regard to the distribution to the packet ID is passed on the basis of the time stamp data distributed to the packet ID.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a packet monitoring device, a communication system, and a program. [Background technology]

[0002] Conventionally, a flow communication quality estimation device has been known that, when managing the overall communication quality state of an IP network, extracts one packet out of N arriving packets from a packet stream flowing in one direction on a link between nodes such as routers in a flow management unit, continues the process of reading, storing and managing the flow information for a certain period of time, and estimates the communication quality of the flow passing through the link to be measured using the flow information in a quality estimation unit (Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2011-124750 A Summary of the Invention [Problem to be solved by the invention]

[0004] Conventional technology assumes that the end-to-end flow of packets will be monitored at a single fixed point, and does not take into account the integration of timestamp data from multiple monitoring points through which a single packet passes.

[0005] In addition, in conventional technology, in order to ensure real-time performance, one packet out of N is sampled to reduce the amount of calculation required for monitoring. However, although this method can grasp the trends of network packets, it cannot obtain information from a microscopic perspective, such as momentary increases in delays or packet losses.

[0006] The present invention has been made to solve the above-mentioned problems, and aims to provide a packet monitoring device, communication system, and program that can monitor packet communications by adjusting the balance between the accuracy of timestamp data integration and real-timeness. [Means for solving the problem]

[0007] In order to achieve the above-mentioned object, the packet monitoring device of the present invention is composed of a communication unit that sequentially receives timestamp data including packet header information and a timestamp from a plurality of agents, a distribution unit that performs a distribution process that distributes timestamp data for each packet ID generated from the header information, and a control unit that, based on the timestamp data distributed for each packet ID, when the survival time for distribution to the packet ID has elapsed, passes the timestamp data distributed to the packet ID to post-processing.

[0008] According to this invention, the communication unit sequentially receives time stamp data including packet header information and time stamps from a plurality of agents. The distribution unit performs a distribution process of distributing the time stamp data for each packet ID generated from the header information.

[0009] Then, when the survival time related to the allocation to the packet ID has elapsed based on the time stamp data allocated by the control unit to each of the packet IDs, the time stamp data allocated to the packet ID is passed to post-processing.

[0010] In this way, a process of allocating received time stamp data for each packet ID is performed, and when the time to live related to the allocation to the packet ID has elapsed, the time stamp data allocated to the packet ID is handed over to post-processing. Therefore, by adjusting the time to live, the balance between the accuracy of integration of time stamp data and real-timeness can be adjusted to monitor packet communications.

[0011] In addition, in the packet monitoring device, as a first mode of allocation processing of timestamp data, the control unit can transfer the timestamp data allocated to the packet ID to post-processing when the survival time has elapsed since the timestamp data was first allocated to the packet ID.

[0012] Furthermore, in the packet monitoring device, as a second mode of the allocation process of timestamp data, when timestamp data is allocated to a packet ID, based on the timestamp data allocated to the packet ID, the control unit rearranges the timestamps according to the size of the timestamps, and when the difference in the timestamps becomes equal to or greater than a predetermined threshold, the timestamp data with the oldest timestamp is passed on to post-processing. At the same time, even if the difference in the timestamps is less than the threshold, the timestamp data allocated to the packet ID can be passed on to post-processing once the survival time since the last timestamp data was allocated to the packet ID has elapsed.

[0013] In the packet monitoring device, the time stamp is the time at which the data packet passed through the agent.

[0014] The packet monitoring device may further include an input unit that receives an input from a user regarding the time to live, and the control unit may use the time to live according to the received input.

[0015] In addition, the communication system of the present invention includes a plurality of agents that transmit and receive packets with other agents and sequentially transmit timestamp data including header information of the packets and a timestamp to the packet monitoring device, and the packet monitoring device of the above-mentioned invention.

[0016] The program of the present invention is a program for causing a computer to function as each unit of the packet monitoring device of the present invention. Effect of the Invention

[0017] According to the present invention, by adjusting the survival time, it is possible to adjust the balance between the accuracy of integration of timestamp data and real-time performance when monitoring packet communications. [Brief description of the drawings]

[0018] [Figure 1] FIG. 2 is a diagram showing how data packets are transmitted and received between agents. [Diagram 2] 1 is a diagram illustrating an example of a communication system according to an embodiment of the present invention. [Diagram 3] FIG. 2 is a block diagram showing a configuration of an agent according to an embodiment of the present invention. [Figure 4] 1 is a block diagram showing a configuration of a packet monitoring device according to an embodiment of the present invention; [Diagram 5] FIG. 2 is a diagram for explaining a distribution process of the packet monitoring device according to the first embodiment. [Figure 6] FIG. 13 is a diagram for explaining post-processing. [Figure 7] FIG. 13 is a flowchart showing a time stamp recording process routine of an agent according to an embodiment of the present invention. [Figure 8] 11 is a flowchart showing a distribution processing routine of the packet monitoring device according to the embodiment of the present invention. [Figure 9] 11 is a flowchart showing a time to live management processing routine of the packet monitoring device according to the embodiment of the present invention. FIG. [Figure 10] FIG. 11 is a diagram for explaining a distribution process of a packet monitoring device according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

[0020] First, an outline of the embodiment of the present invention will be described.

[0021] In the embodiment of the present invention, packet communications are monitored in real time by acquiring time stamps related to packets and processing the information.

[0022] Here, greater importance is being placed on stream data processing, in which data is collected from the beginning with an emphasis on real-time performance, and only the data needed for the purpose is retained, while unnecessary data is discarded on the spot as processing continues.

[0023] Recently, there has been an increasing emphasis on stream data processing, in which data that is collected with an emphasis on real-time processing is processed while retaining only the data required for the purpose and discarding unnecessary data on the spot. In order to process various records related to packet communications between multiple devices in real time, the monitoring agent must detect target events that occur within the OS with high accuracy, record the time of detection (obtain a timestamp), and promptly send it to a back-end server for data processing. The back-end server that receives the data must quickly perform processing such as aggregating related data and sorting related data chronologically, as the timestamp data arrives separately with no guaranteed order.

[0024] In the embodiment of the present invention, data binding and chronological sorting performed in the back-end server are performed at high speed.

[0025] Moreover, in the embodiment of the present invention, packet communication is monitored by passive delay measurement, which records the transit time of all or some of the data packets of the actual service.

[0026] For example, suppose data packets (e.g., video packets) are being sent and received between agents A and B. When investigating the state of the network between agents A and B, normally Ping packets or OWAMP / TWAMP packets are sent and received in addition to the data packets to measure connectivity and transmission delay time. This type of delay measurement method is called active delay measurement, and is a measurement method that places emphasis mainly on checking the normality of the communication infrastructure.

[0027] On the other hand, passive latency measurement does not send packets specifically for measurement, but measures the transmission latency of all or part of the communication packets (data packets) of this service. This monitors not only the health of the infrastructure but also the communication of this service itself.

[0028] Generally, TCP / IP communication identifies a communication path between agents using a 5-tuple consisting of the TCP or UDP type, source IP address, destination IP address, source port number, and destination port number.

[0029] For example, as shown in Figure 1, the passage timestamp of packet n is recorded in three places, agent a, agent m, and agent b, and first these must be linked as belonging to the same packet, that is, data must be combined. The 5-tuple alone does not provide enough information for packet identification, so other information must be added to identify each packet (packet ID). Specifically, in the case of UDP, the packet ID is made up of the 5-tuple, plus the Checksum field in the UDP header and the Identifier field in the IP header. In the case of TCP, the packet ID is made up of the 5-tuple, plus the Sequence Number field in the TCP header.

[0030] Therefore, each agent sends a set of packet ID and timestamp information to the backend server as timestamp data, and the backend server calculates the packet ID from the received timestamp data and combines packets with the same packet ID.

[0031] The above process allows multiple timestamps for one packet to be combined into one, but this only combines the separate timestamp data into one, and does not yet process the data into latency measurements or other data that has technical or business meaning. Such processing will be performed in post-processing.

[0032] [First embodiment] <System Configuration of the First Embodiment> The configuration of a communication system according to a first embodiment will be described. As shown in Fig. 2, a communication system 100 according to an embodiment of the present invention includes a packet monitoring device 10, which is a back-end server, and a plurality of agents 20. The packet monitoring device 10 and the plurality of agents 20 are connected via a network N, such as a LAN (Local Area Network) such as Ethernet (registered trademark) or the Internet.

[0033] The agents 20 may be configured as a computer including a CPU, a RAM, and a ROM storing programs for executing various processing routines described below and various data. The agents 20 transmit and receive data, including transferring packets, between the agents 20.

[0034] As shown in FIG. 3, the agent 20 includes, as its functions, a communication unit 30 and a time stamp generation unit 32.

[0035] The communication unit 30 transmits and receives packets to and from other agents 20 .

[0036] The time stamp generating unit 32 generates time stamp data including a packet ID including header information of the packet, and a time stamp. Here, the time stamp is the time when the packet passed through the time stamp reference point of the agent 20.

[0037] The communication unit 30 sequentially transmits the generated time stamp data to the packet monitoring device 10.

[0038] The packet monitoring device 10 in this embodiment can be configured as a computer including a CPU, a RAM, and a ROM storing programs and various data for executing various processing routines described later. As shown in Fig. 4, the packet monitoring device 10 has, as functions, an input unit 38, a communication unit 40, a storage unit 42, a distribution unit 44, a control unit 46, and a processing unit 48.

[0039] The input unit 38 accepts an input relating to the survival time from the user. The input unit 39 accepts, for example, the numerical value of the survival time itself, or an increase or decrease from a default survival time. The communication unit 40 sequentially receives time stamp data from the multiple agents 20.

[0040] The storage unit 42 includes a front queue 42A and a back queue 42B.

[0041] The pre-queue 42A stores the successively received time stamp data in the order of reception.

[0042] The allocated time stamp data output from the control unit 46 is stored in the post queue 42B in order.

[0043] The distribution unit 44 extracts the time stamp data from the pre-queue 42A, and performs a distribution process to distribute the time stamp data for each packet ID.

[0044] When the time to live related to the allocation to the packet ID has elapsed based on the time stamp data allocated to the packet ID, the control unit 46 stores the time stamp data allocated to the packet ID in the post-queue 42B to be passed to post-processing.

[0045] Specifically, when the survival time has elapsed since the time stamp data was initially assigned to a packet ID, the control unit 46 stores the time stamp data assigned to that packet ID in the post queue 42B.

[0046] 5, the sorting unit 44 stores the time stamp data Data(n)[1], . . . , Data(n)[k] in a data temporary storage box (cache) associated with the key Key(n), which is a packet ID. The time stamp data continues to be stored for the survival time, and when the survival time has elapsed, the control unit 46 stores all the time stamp data in the storage box in the post queue 42B and erases the storage box.

[0047] In this embodiment, the survival time is the time that has elapsed since a storage box corresponding to a certain key was generated, and when the survival time has elapsed, the storage box disappears.

[0048] Furthermore, when the time stamp data is stored in the post-queue 42B, the time stamp data is subjected to data processing, for example, a data type conversion to a data type prepared for post-processing.

[0049] Figure 5 shows an example in which the lifetime of the storage box corresponding to Key(m) has elapsed, and all timestamp data Data(m)[1], ..., Data(m)[l] are stored in the post queue 42B, and the entire storage box is erased.

[0050] The processing unit 48 retrieves the allocated time stamp data from the post-queue 42B, and performs post-processing such as delay measurement on a packet-by-packet basis, measuring the Packet Delay Variance (PDV) between consecutive packets, basic statistical processing on delay and PDV, calculating the average, maximum, minimum and variance per unit time, detecting packet loss in the communication being measured, detecting changes in the packet transmission path of the communication being measured, or detecting packet congestion in the communication being measured.

[0051] For example, if the assigned timestamp data for packet n is P(n), then all the timestamp information is contained within P(n), such as P(n).src (the timestamp of agent a in Figure 1 above) and P(n).dst (the timestamp of agent b in Figure 1 above).

[0052] In this case, the simple delay between agents a and b is Delay(n)=P(n).dst-P(n).src PDV is the difference between Delay(n) and Delay(n-1). That is, PDV(n)=Delay(n)-Delay(n-1) As can be seen from the calculation of PDV and basic statistics per unit time, P(n) must be correctly arranged in chronological order when processing data.

[0053] Although we will not go into detail about packet loss detection, route change detection, and packet congestion detection, it is possible to detect the occurrence of an event by comparing packet timestamp data, as shown in Figure 6.

[0054] Packet loss and route changes are detected based on the loss of timestamp information between agent a and agent b. Packet congestion can also be detected by the narrowing of the timestamp difference between agents a and b, or between agents m1 and m2. In either case, in data processing, the process of sorting the timestamp data in chronological order must be performed as quickly as possible, just like the sorting process.

[0055] Furthermore, shortening the survival time improves real-time performance, but depending on the environment, there is a high possibility that all the necessary timestamp data may not be available within the survival time, making it difficult to properly integrate the data. For this reason, in an embodiment of the present invention, the survival time is made configurable by the user. For example, the user takes into consideration the purpose of using the timestamp data and inputs information about the desired survival time (for example, the survival time itself, or an increase or decrease from the default survival time, etc.) to the input unit 38 of the packet monitoring device 10, and the survival time is determined based on the input.

[0056] <Operation of the First Embodiment> Next, the processing by each agent 20 according to the embodiment of the present invention will be described with reference to FIG.

[0057] When data packets are being transmitted and received between the agents 20, each of the agents 20 executes a time stamp recording process routine shown in FIG.

[0058] First, in step S100, based on the monitoring condition (hook condition, for example, 5-tuple) of the monitored packet, it is determined whether or not a target data packet has passed in the communication unit 30. For example, when the agent 20 itself transmits a target data packet that meets the monitoring condition, or when the agent 20 receives a target data packet that meets the monitoring condition from another agent 20, the passage of the target data packet is detected, and the process proceeds to step S102.

[0059] In step S102, the time stamp generating unit 32 generates time stamp data including a packet ID including header information of the data packet and a time stamp, where the time stamp is the time when the data packet passes through the time stamp reference point of the agent 20.

[0060] In step S104, the communication unit 30 transmits the generated time stamp data to the packet monitoring device 10, and the processing routine ends.

[0061] Next, the process performed by the packet monitoring device 10 according to the embodiment of the present invention will be described with reference to FIGS.

[0062] When the packet monitoring device 10 receives the time stamp data from each agent 20, it stores the received data packet in the pre-queue 42A of the storage unit 42. Then, the packet monitoring device 10 executes a distribution process routine shown in FIG.

[0063] First, in step S110, the allocating unit 44 determines whether or not timestamp data is stored in the previous queue 42A. If timestamp data is stored in the previous queue 42A, the process proceeds to step S112. On the other hand, if timestamp data is not stored in the previous queue 42A, the process routine is terminated.

[0064] In step S112, the distribution unit 44 retrieves the time stamp data from the pre-queue 42A, performs a distribution process to distribute the time stamp data for each packet ID, and ends the processing routine. In the distribution process, the time stamp data is stored in a data temporary storage box (cache) associated with a key that is the packet ID.

[0065] Moreover, the packet monitoring device 10 executes a time to live management process routine shown in FIG.

[0066] In step S120, it is determined whether there is a packet ID whose time to live has elapsed. If there is no packet ID whose time to live has elapsed, the processing routine ends. On the other hand, if there is a packet ID whose time to live has elapsed, the process proceeds to step S122.

[0067] In step S122, all the time stamp data in the storage box of the corresponding packet ID is stored in the post queue 42B, and the storage box is deleted, and the processing routine is terminated.

[0068] As described above, according to the communication system of the first embodiment, a process of allocating received time stamp data for each packet ID is performed, and when the survival time related to the allocation to the packet ID has elapsed, the time stamp data allocated to the packet ID is handed over to post-processing. This makes it possible to monitor packet communications by adjusting the balance between the accuracy of integration of time stamp data and real-timeness by adjusting the survival time.

[0069] [Second embodiment] Next, a communication system according to a second embodiment will be described. Since the communication system according to the second embodiment has the same configuration as the first embodiment, the same reference numerals are used and the description will be omitted.

[0070] In the second embodiment, the allocation process of timestamp data is different from that in the first embodiment.

[0071] The distribution unit 44 of the packet monitoring device 10 according to the second embodiment extracts the time stamp data from the pre-queue 42A, and performs a distribution process of distributing the time stamp data for each packet ID.

[0072] When timestamp data is assigned to a packet ID, the control unit 46 rearranges the data according to the length of the timestamp based on the timestamp data assigned to the packet ID, and when the difference in the timestamps exceeds a predetermined threshold value (e.g., 50 ms), the control unit 46 stores the timestamp data with the oldest timestamp in the post-queue 42B to be passed on to post-processing.

[0073] Here, the time stamp data stored in the post queue 42B is data that is determined to be no longer able to receive any older time stamp data. Also, the time stamp difference is the time stamp difference between the oldest time stamp data and the newest time stamp data in the storage box corresponding to a certain key.

[0074] For example, as shown in FIG. 10, the oldest timestamp data Data(m)[l] among the timestamp data stored in a temporary data storage box (cache) linked to the packet ID key Key(m) is stored in the post queue 42B, and the timestamp data Data(m)[l] is erased from the storage box.

[0075] When the survival time (e.g., 100 ms) since the last timestamp data was assigned to a packet ID has elapsed, the control unit 46 determines that no more timestamp data for this packet ID will arrive, and stores the timestamp data assigned to the packet ID in the post-queue 42B to be handed over to post-processing.

[0076] For example, as shown in Fig. 10, the timestamp data Data(n)[1], ..., Data(n)[k] are stored in a temporary data storage box (cache) associated with the packet ID key Key(n) while sorting the timestamps in descending order. The timestamp data continues to be stored for the survival time, and when the survival time has elapsed, all the timestamp data in that storage box is stored in the post-queue 42B and the storage box is deleted.

[0077] In this embodiment, the survival time is the time from when a change (addition or deletion of data) occurs in a storage box corresponding to a certain key until the storage box disappears without any change.

[0078] In addition, depending on the calculation to be performed in the post-processing, the rule for determining whether the "timestamp difference" is equal to or greater than the threshold value may be changed. For example, in the case of PDV calculation, the difference between the timestamp and the second smallest timestamp may be calculated as the "timestamp difference".

[0079] Specifically, let R1, . . . , Ri-1 be the timestamp data in the storage box, and let us assume that the timestamps are sorted in descending order in this order. Then, Timestamp(R1)-Timestamp(Ri-1)>50[ms] When this occurs, the "difference in timestamps" between both the timestamp data Ri and Ri-1 is equal to or greater than the threshold. In this case, the two timestamp data Ri and Ri-1 can be considered to be in a definite chronological order, so PDV(i) is calculated using these two data. Then, only the timestamp data Ri is removed from the storage box.

[0080] Other configurations and operations of the communication system according to the second embodiment are similar to those of the communication system according to the first embodiment, and therefore description thereof will be omitted.

[0081] As described above, according to the communication system of the second embodiment, a process of allocating received time stamp data for each packet ID is performed, and when the difference in time stamps of the allocated time stamp data exceeds a predetermined threshold, the time stamp data with the oldest time stamp is passed to post-processing, and when the survival time related to allocation to packet IDs has elapsed, the time stamp data allocated to the packet ID is passed to post-processing. This makes it possible to monitor packet communications by adjusting the balance between accuracy and real-timeness of integration of time stamp data by adjusting the survival time.

[0082] The present invention is not limited to the above-described embodiment, and various modifications and applications are possible without departing from the spirit and scope of the present invention. [Explanation of symbols]

[0083] 10 Packet monitoring device 20. Agent 30 Communications Department 32 Time stamp generation unit 38 Input section 40 Communications Department 42 Storage section 42A Front Queue 42B Post Queue 44 Sorting section 46 Control Unit 48 Processing section 100 Communication Systems

Claims

1. a communication unit that sequentially receives time stamp data including header information and time stamps of packets from a plurality of agents; a distribution unit that performs a distribution process for distributing time stamp data for each packet ID generated from the header information; a control unit that transfers the time stamp data assigned to the packet ID to a post-processing when a survival time related to the assignment to the packet ID has elapsed based on the time stamp data assigned to each packet ID; A packet monitoring device comprising:

2. 2. The packet monitoring device according to claim 1, wherein the control unit passes the time stamp data assigned to the packet ID to a post-processing when a survival time has elapsed since the time stamp data was first assigned to the packet ID.

3. The control unit, when the time stamp data is assigned to the packet ID, sorts the time stamps according to their size based on the time stamp data assigned to the packet ID, and when a difference between the time stamps becomes equal to or greater than a predetermined threshold, transfers the time stamp data with the oldest time stamp to post-processing, and A packet monitoring device as described in claim 1, wherein even if the difference in timestamps is less than the threshold, if the survival time since the last timestamp data was assigned to the packet ID has elapsed, the timestamp data assigned to the packet ID is handed over to post-processing.

4. 2. The packet monitoring device according to claim 1, wherein the time stamp is a time at which a data packet passes through the agent.

5. an input unit for receiving an input regarding the survival time from a user, The packet monitoring device according to claim 1 , wherein the control unit uses the time to live according to the received input.

6. a plurality of agents that transmit and receive packets to and from other agents and that sequentially transmit timestamp data including header information and timestamps of the packets to a packet monitoring device; A packet monitoring device according to any one of claims 1 to 5, A communication system comprising:

7. A program for causing a computer to function as each unit of the packet monitoring device according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Flow communication quality estimating method, device, and program

    JP2011124750A