WO2020261320A1 - データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム - Google Patents

データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム Download PDF

Info

Publication number
WO2020261320A1
WO2020261320A1 PCT/JP2019/024898 JP2019024898W WO2020261320A1 WO 2020261320 A1 WO2020261320 A1 WO 2020261320A1 JP 2019024898 W JP2019024898 W JP 2019024898W WO 2020261320 A1 WO2020261320 A1 WO 2020261320A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
sequence number
section
monitoring
sequence
Prior art date
Application number
PCT/JP2019/024898
Other languages
English (en)
French (fr)
Inventor
晶子 大輝
周平 吉田
祐太 右近
奈美子 池田
新田 高庸
Original Assignee
日本電信電話株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 日本電信電話株式会社 filed Critical 日本電信電話株式会社
Priority to PCT/JP2019/024898 priority Critical patent/WO2020261320A1/ja
Priority to JP2021528650A priority patent/JP7197010B2/ja
Priority to US17/619,189 priority patent/US11882061B2/en
Publication of WO2020261320A1 publication Critical patent/WO2020261320A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • H04L1/1621Group acknowledgement, i.e. the acknowledgement message defining a range of identifiers, e.g. of sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/28Flow control; Congestion control in relation to timing considerations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1835Buffer management

Definitions

  • the present invention relates to a data order correction method for rearranging received data with a sequence number in the order of the sequence numbers.
  • packets that arrive in random order on the receiving side are temporarily stored in an order correction buffer, and the order information (usually) stored in the packet header is stored. Sort the packets in the correct order based on the sequence number) and then play the original audio or video.
  • the audio or video playback is temporarily stopped in order to wait for the arrival of the packet with a large delay, or the packet with a very large delay is discarded. Dropouts occur in audio and video.
  • the terminal that transmits the packet adds the transmission time information to the transmission packet and transmits the packet, and the packet monitoring device records the reception time of the packet taken out by the network tap or the like. , Read the transmission time information from the arrived packet, obtain the delay of each packet from the difference between the reception time and the transmission time, and observe the fluctuation of the delay.
  • Patent Document 2 packet jitter is observed without using transmission time information.
  • the packet interval is calculated by arranging the received packets in order (order correction) and calculating the packet arrival interval for the packets that are periodically generated and given the sequence number. Observe the fluctuation of.
  • the ring buffer is divided into a plurality of storage areas, two or more consecutive storage areas are defined as monitoring sections, and the transmitted data is set. It is stored in a predetermined storage area, monitors whether the data required for reassembly is stored in the monitoring section, calls them when the data required for reassembly is available in the monitoring section, and stores the data in the storage area. When is behind the monitoring section, the monitoring section is moved so that the end of the monitoring section is the storage area for storing this data.
  • Patent Document 1 it is necessary to match the time information standard, for example, the unit of time, between the terminal that transmits the packet and the packet monitoring device.
  • Patent Document 2 since it is assumed that a plurality of received data are concatenated to reassemble the original large data, a sufficiently large ring buffer having a storage area for all sequence numbers is used. , Read from the ring buffer when the data required for reassembly is available in the monitoring section.
  • the storage for writing data based on the remainder obtained by dividing the sequence number by the number of storage areas in the ring buffer it is conceivable to determine the area, read it from the ring buffer when the data near the beginning is collected, and reuse the vacant storage area for the data with the same surplus.
  • data having the same surplus as the data already stored in the ring buffer but having a different sequence number arrives, there is a problem that the data are arranged in the wrong order.
  • the present invention has been made to solve such a problem, and even when the number of storage areas of the ring buffer is limited, the received data can be accurately sorted in order of the sequence number. It is an object of the present invention to provide a correction method.
  • the data order correction method of the present invention is a data order correction method in which data with order information is temporarily stored in a ring buffer to correct the order, and the ring buffer is an order.
  • a monitoring section having a predetermined number of storage areas corresponding to information and consisting of one or two or more consecutive sequence numbers, and the first or second sequence number of the monitoring section is set as the first sequence number.
  • the packet monitoring device of the present invention includes an arrival time information adding unit that adds arrival time information to a received packet whose sequence information is included in the header, and information in the header of the packet. Based on the monitored target extraction unit that extracts the monitored packet and the order information in the header of the monitored packet, the order of the monitored packet is corrected by the data order correction method, and the order information is obtained. It is stored in the packet order correction unit that outputs the arrival time information of two consecutive packets, the packet interval calculation unit that obtains the packet interval from the difference between the arrival times of the two consecutive packets, and the statistical information storage unit. It is provided with a visualization unit that displays as a histogram based on the frequency distribution of packet intervals.
  • the data order correction device of the present invention is a data order correction device that temporarily stores data with order information in a ring buffer and corrects the order, and the ring buffer is an order.
  • a monitoring section having a predetermined number of storage areas corresponding to information and consisting of one or two or more consecutive sequence numbers, and the first or second sequence number of the monitoring section is set as the first sequence number.
  • the ring buffer writing unit that writes the received data to the position of the storage area corresponding to the determined value, and all the data in the monitoring section when the data is written in all of the monitoring sections.
  • a ring buffer read unit that reads out data, and a monitoring section / receiving section management unit that later updates the first sequence number and the last sequence number of the monitoring section and the receiving section within the range of the number of sequence numbers of the monitoring section.
  • the data order correction program of the present invention is a data order correction program for executing a data order correction method for temporarily storing data with order information in a ring buffer and performing order correction. Therefore, the ring buffer includes a predetermined number of storage areas corresponding to order information, and has a monitoring section consisting of one or two or more consecutive sequence numbers, and the first or second sequence of the monitoring section. It has a receiving section in which the number is the first sequence number and the sequence number immediately before the first sequence number in the monitoring section is the last sequence number, and the sequence number of the received data is the number of storage areas of the ring buffer.
  • the step of writing the received data to the position of the storage area corresponding to the determined value and the data are stored in all of the monitoring sections.
  • FIG. 1 is a configuration example of a packet format according to the present embodiment.
  • FIG. 2 is a diagram showing a configuration example of the packet monitoring device according to the present embodiment.
  • FIG. 3 is a diagram showing a configuration example of a ring buffer according to the present embodiment.
  • FIG. 4 is a diagram showing a configuration example of the data order correction device according to the present embodiment.
  • FIG. 5 is a configuration example of a computer for realizing the data order correction device and the like according to the present embodiment.
  • FIG. 6 is a diagram showing an example of an operation flowchart of the data order correction method according to the present embodiment.
  • FIG. 7 is a diagram for explaining an initial state of the ring ring buffer according to the present embodiment.
  • FIG. 8 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 9 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 10 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 11 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 12 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 13 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 14 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 15 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 16 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 17 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 18 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 19 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 20 is a diagram for explaining the operation of the ring ring buffer according to the present embodiment.
  • FIG. 21 is a configuration example of a conventional ring buffer.
  • FIG. 1 is a configuration example of the format of the RTP packet that is the target of the order correction in the first embodiment.
  • a sequence number (SequenceNumber, 16-bit width with a range of 0 to 65535) indicating the order in which the packets are generated is stored, and a sequence of a plurality of RTP packets sent in the same call is stored.
  • the number is configured to start at a random value at the start of the call, increase by 1 until the end of the call, and then return to 0 after 65535. Therefore, the sequence numbers of the RTP packets immediately after generation are serial numbers at equal intervals in time.
  • FIG. 2 is a configuration example of the packet monitoring device according to the present embodiment.
  • the packet monitoring device 1 in the present embodiment adds arrival time information to the PHY unit 10, the MAC unit 20, and the received packet that perform processing of the physical layer (PHY) and the data link layer (MAC) on the received packet.
  • the arrival time information adding unit 30, the monitored target extraction unit 40 that extracts the monitored packets of the same flow containing the order information in the header based on the information in the packet header, and the monitored target packet 40 in the header of the monitored packet.
  • a packet order correction unit 50 that corrects the order of monitored packets based on the information (sequence number in FIG. 1) and outputs arrival time information of two packets having continuous order information, and two packet order correction units 50 having continuous order information.
  • the statistical information storage unit 70 that stores the packet arrival interval, and the frequency distribution for each packet arrival interval stored in the statistical information storage unit 70. It also includes a visualization unit 80 that is displayed as a histogram.
  • the arrival time information adding unit 30 adds arrival time information to the packet taken out by performing the processing of the physical layer (PHY) and the data link layer (MAC) on the received packet.
  • Examples of means for giving time information include a method of inserting or overwriting in a header, a method of running in parallel with a packet and transferring it to a subsequent block, and the like.
  • the monitoring target extraction unit 40 extracts the packet to be monitored based on the information in each header of the packet. For example, the source address and destination address of the packet header and the destination port number in the UDP header are inspected, and packets that match the values registered as monitoring targets are extracted as monitored packets, and packet order correction is performed. Send to the department.
  • the packet order correction unit 50 corrects the order of the monitored packets based on the sequence number extracted from the header of the monitored packet, and sends the arrival time information of two or more packets having consecutive sequence numbers to the packet interval calculation unit 60. Output.
  • the configuration of the packet order correction unit and the packet order correction method will be described in detail in the configuration and operation example of the packet order correction unit 60 described later.
  • the packet interval calculation unit 60 obtains the packet time interval from the difference between the arrival times of the two consecutive packets. .. By subtracting the arrival time of the packet whose sequence number is earlier from the arrival time of the packet whose sequence number is later, it is possible to determine not only the time interval of the packets but also whether or not the order of the packets is reversed.
  • the statistical information storage unit 70 stores the frequency distribution of the packet interval obtained by the packet interval calculation unit 60.
  • the number of data stored from the beginning of the monitoring section of the ring buffer to the end of the receiving section which will be described later, reaches a certain number
  • the received data is discarded outside the receiving section, the beginning of the monitoring section or If a certain time has passed from the arrival time of the data closest to the beginning and the monitoring section and the receiving section are moved for any reason, the frequency of the movement is stored for each reason or collectively. It may be configured as follows.
  • the visualization unit 80 displays the frequency distribution of the packet intervals stored in the statistical information storage unit 70 as a histogram.
  • FIG. 3 is a configuration example of the ring buffer according to the present embodiment.
  • the ring buffer of this configuration example has a predetermined number of storage areas corresponding to the sequence information, and one or two or more consecutive sequence numbers are set as monitoring sections, and the head or second sequence number of the monitoring section is set.
  • a receiving section is provided in which the sequence number at the beginning is set and the sequence number immediately before the sequence number at the beginning of the monitoring section is the sequence number at the end.
  • the position corresponding to the sequence number in which the ring buffer goes around from the sequence number at the beginning of the monitoring section is the end of the acceptance section.
  • the beginning and end of the monitoring section and the receiving section are represented by sequence numbers and managed.
  • the width and interval between the monitoring section and the receiving section are constant, at least one of the four types of sequence numbers shown in FIG. 3 can be known from one of the other three types of sequence numbers. It suffices to manage one type of sequence number.
  • the sequence number of the received data is the sequence number in the receiving section, and if it is in the receiving section, the received data is stored in the storage area corresponding to the sequence number of the received data. Is written. On the other hand, if the sequence number of the received data is outside the receiving section, the received data is discarded.
  • the monitoring section and the receiving section are moved by increasing the sequence number at the beginning and the sequence number at the end of each. For example, when the number of sequence numbers of the monitoring section is 2, the monitoring section and the receiving section are moved to the back by one storage area, or the monitoring section and the receiving section are moved to the back by two storage areas. ..
  • FIG. 4 is a configuration example of the packet order correction unit 50 according to the present embodiment.
  • the packet order correction unit 50 is a function unit that temporarily stores data with order information in a ring buffer and corrects the order.
  • the packet order correction unit 50 includes an acceptance / rejection determination unit 51 that determines whether the order information of the received data is within the acceptance section, and the order information of the received data is within the acceptance section.
  • the ring buffer writing unit 52 that writes the received data to the ring buffer 55 at the position of the storage area corresponding to the order information of the received data, and the monitoring when the data is written to all of the monitoring sections. It is composed of a ring buffer reading unit 53 that reads out all the data in the section from the ring buffer 55, and a monitoring section / receiving section management unit 54 that manages the monitoring section and the receiving section and moves them as needed.
  • the PHY unit 10 the MAC unit 20, the arrival time information adding unit 30, the monitoring target extraction unit 40, the packet order correction unit 50, the packet interval calculation unit 60, and the statistical information storage unit
  • the 70 can be realized as hardware on a NIC (Network Interface Card).
  • the visualization unit 80 can be realized by a computer, visualization software installed on the computer, and a display connected to the computer.
  • the arrival time information adding unit 30, the monitoring target extraction unit 40, the packet order correction unit 50, the packet interval calculation unit 60, the statistical information storage unit 70, and the visualization unit 80 CPU (Central Processing Unit), storage device and external interface (hereinafter referred to as external I / F), and a program that controls these hardware resources.
  • CPU Central Processing Unit
  • external I / F storage device and external interface
  • the computer 100 includes a CPU 200, a storage device 300, and an external I / F 400, which are connected to each other via an I / O interface 500.
  • a program such as a data order correction program for realizing the operation of the packet monitoring device 1 of the present embodiment, and data such as received data, arrival time information of received data, monitoring section, and receiving section are stored in the storage device 300.
  • Other computers that transmit and receive signals to and from each other are connected to the external I / F 400.
  • the CPU 200 executes the process described in the present embodiment according to the data order correction program or the like stored in the storage device 300. Further, the processing program may be configured to be recorded on a computer-readable recording medium.
  • FIG. 6 is an example of an operation flowchart of the data order correction method according to the present embodiment.
  • S2 When data is received (S2), the number of stored packets is larger than 0 (S3), and the value determined based on the surplus obtained by dividing the sequence number of the received data by the number of storage areas of the ring buffer is within the receiving interval.
  • S5 when the received data is written in the position of the storage area corresponding to the determined value and the number of stored packets is currentized (S6), and when the data is written in all of the monitoring sections (S6).
  • step (S7) a step (S8) of reading all the data in the monitoring section, and a step (S9) of updating the first sequence number and the last sequence number of the monitoring section and the receiving section to normalize the stored packet. including. If the number of stored packets is smaller than the threshold value, the process transitions to S2 to receive data, and the above operation is repeated.
  • updating the sequence number means moving the sequence number back by one.
  • the process proceeds to S9, the first sequence number and the last sequence number of the monitoring section and the receiving section are updated, and the stored packets are currentized. If the data is not received in S2, the transition to S7 is performed, and S2 ⁇ S7 ⁇ S8 ⁇ S9 ⁇ S10 ⁇ S2 is repeated until the serial number data is interrupted or new data is received.
  • the received sequence number is set as the beginning of the monitoring section, the end of the monitoring section, the beginning and the end of the receiving section are determined accordingly, and the transition to S6 is performed (S4). If it is outside the acceptance section in S5, it transitions to S9, and if no data is written in all of the monitoring sections in S7, it transitions to S10.
  • the number of sequence numbers of the monitoring section is 2, and the first sequence number and the last sequence number of the monitoring section and the receiving section are updated after one, and the monitoring section and the receiving section are updated. Will be described as an example in the case where is moved back by one.
  • FIG. 7 is a diagram showing an initial state of the ring buffer in the present embodiment.
  • the ring buffer of FIG. 7 has 128 storage areas, and is configured to store 128 packets of arrival time information and arrival flags of received packets.
  • the storage area in which the first packet is stored is the head of the monitoring section, and two consecutive sequence numbers from there are the monitoring sections.
  • the second sequence number of the monitoring section is set at the beginning of the receiving section, and the sequence number after 126 (128-width of the monitoring section) from the sequence number at the beginning of the monitoring section is set at the end of the receiving section.
  • the storage area corresponding to the sequence number immediately before the sequence number at the beginning of the monitoring section is the end of the acceptance section.
  • the packet to be sequence-corrected is the RTP packet described in FIG. 1, and the sequence numbers 0 to 65535 in the RTP header correspond to the sequence numbers. Since the ring buffer has only 128 packets of storage area while there are 65535 sequence numbers, the arrival time information of each packet and the address of the storage area where the arrival flag is stored are determined by mod (sequential number, 128). Then, the threshold number of stored packets in the ring buffer is set to 120 packets as an example. The storage area in which the packet received in the initial state is stored becomes the beginning of the monitoring section, and the order number at the beginning and the order number at the end of each of the monitoring section and the receiving section are determined corresponding to the beginning of the monitoring section.
  • the packet order correction unit 50 holds the first sequence number and the last sequence number of the monitoring section and the receiving section, and the number of stored packets in a register or the like, and these information are used when writing or reading the arrival time information. Will be updated from time to time as needed.
  • the arrival flag of address 2 in the storage area becomes 1
  • the sequence number at the beginning of the acceptance section becomes "3", which is one after the sequence number "2" at the beginning of the monitoring section.
  • the sequence number at the end of the acceptance section is "129", which is 126 (128-2) after the sequence number 3 at the beginning. Since the number of storage areas for which the arrival flag is 1 is 1, the number of stored packets is 1.
  • the first sequence number and the last sequence number of the monitoring section are updated to (3, 4), which is one number after (2, 3) in FIG. 10, and the first sequence number of the acceptance section. And the sequence number at the end is updated to the next number (4, 130), and the monitoring section and the receiving section are moving.
  • the arrival flag of the storage area (address 2) outside the monitoring section is set, and the number of stored packets is reduced by 1 to 2.
  • the arrival time information T_2 and T_3 read from the ring buffer are transferred to the packet interval calculation unit, and the packet interval calculation unit calculates the packet interval (T_3-T_2) of the serial number packet.
  • FIG. 12 shows a state in which all the data in the monitoring section is read from the ring buffer because all the data (arrival time information T_3, T_4) are prepared in the monitoring section in the state of FIG. Similar to FIG. 11, the first sequence number and the last sequence number of each of the monitoring section and the receiving section are updated after one according to the execution of the reading process from the monitoring section, and the monitoring section and the receiving section are received. Each section is moved by one later. In this figure, in order to calculate the interval with the next packet of sequence number 5, the data T_4 of sequence number 4 of the monitoring section remains even after the arrival time information T_3 and T_4 are read.
  • the starting sequence number and the trailing sequence number of the monitoring section are updated to (4, 5), which is one number after (3, 4) in FIG. 11, and becomes the top sequence number of the receiving section.
  • the last sequence number is updated to the next number (5, 131), and the monitoring section and the receiving section are moving.
  • the arrival time information T_3 and T_4 read from the ring buffer are transferred to the packet interval calculation unit, and the packet interval calculation unit calculates the packet interval (T_4-T_3) of the serial number packet.
  • the state of the ring buffer Since the data in the monitoring section is only T_4 and no data is written in all of the monitoring sections, the data is not read from the monitoring section, the monitoring section and the receiving section are not moved, and the monitoring section and the receiving section are not moved.
  • the sequence numbers at the beginning and end of the section are the same as in FIG. On the other hand, the number of stored packets has increased by 119 to 120, reaching the threshold value of 120 stored packets.
  • FIG. 14 shows a state of the ring buffer in which the monitoring section and the receiving section are moved by one after each because the number of stored packets has reached the threshold value 120 in FIG.
  • the first sequence number and the last sequence number of the monitoring section are updated to (5, 6), which is one number after (4, 5) in FIG. 13, and the first sequence number and the last sequence number of the acceptance section are updated. It is updated to the next number (6, 132), and the monitoring section and the receiving section have moved. Since the arrival flag of the storage area (address 4) outside the monitoring section is in the raised state in FIG. 13, the arrival flag of the address 4 is lowered and the number of stored packets is also reduced by 1 to 119.
  • FIG. 16 shows a state of the ring buffer in which the monitoring section and the receiving section are moved by one after each because the number of stored packets reached the threshold value 120 in FIG.
  • the first sequence number and the last sequence number of the monitoring section are updated to (6, 7), which is one number after (5, 6) in FIG. 15, and the first sequence number and the last sequence number of the acceptance section are updated. It is updated to the next number (7,133), and the monitoring section and the receiving section have moved. Since the arrival flag of the storage area (address 5) outside the monitoring section was lowered in the state shown in FIG. 15, this arrival flag is held in the lowered state, and the number of stored packets is not changed.
  • the first sequence number and the last sequence number of the monitoring section are updated to (7, 8), which is one number after (6, 7) in FIG. 16, and the first sequence number of the acceptance section. And the sequence number at the end is updated to the next number (8, 134), and the monitoring section and the receiving section are moving.
  • the arrival flag of the storage area (address 6) outside the monitoring section is lowered, and the number of stored packets is reduced by 1 to 119.
  • the T_6 and T_7 read from the ring buffer are transferred to the packet interval calculation unit.
  • the packet interval calculation unit calculates the packet interval (T_7-T_6) of the serial number packets. After that, in the same manner, reading data from the monitoring section and moving the monitoring section and the receiving section are repeatedly executed.
  • FIG. 19 shows that in the state of FIG. 18 in which the first sequence number and the last sequence number of the acceptance section are (126, 252), when a packet of sequence number 900 outside the acceptance section arrives, writing or reading is performed.
  • This is the state of the ring buffer in which the monitoring section and the receiving section are moved by one after each without performing.
  • the first sequence number and the last sequence number of the monitoring section are updated to (126, 127), which is one number after (125, 126), and the first sequence number and the last sequence number of the acceptance section are one. It is updated to the later number (127, 253), and the monitoring section and the receiving section have moved.
  • the arrival flag of the storage area (address 125) outside the monitoring section is set, and the number of stored packets is also decremented by 1 to 0. That is, it becomes the same as the initial state.
  • the arrival time information T_901 is written to the address 5 (mod (901, 128)) corresponding to the sequence number 901, and the sequence number "901" becomes the head of the monitoring section.
  • T_901 is written to the address 5
  • the arrival flag of the address 5 in the storage area becomes 1, and the sequence number at the beginning of the acceptance section becomes "902", which is one after the sequence number "901" at the beginning of the monitoring section.
  • the sequence number at the end of the acceptance section is "1028” after 126 (128-2) from the sequence number 902 at the beginning, and the number of stored packets is 1.
  • the arrival time information of the head data of the monitoring section is compared with the current time, and the current time exceeds a certain time from the arrival time. If this is the case, the monitoring section and the receiving section may be moved one step later.
  • the arrival time information of the data closest to the head of the second and subsequent data of the monitoring section may be used. Even if the data in the monitoring section is lost, by forcibly moving the monitoring section and the receiving section, if the data in the subsequent monitoring section is available, the data can be read from the ring buffer.
  • ⁇ Effect of the first embodiment> when the data is gathered in the monitoring section having the width of two sequence numbers, all the data in the monitoring section is read out, and the monitoring section and the receiving section are moved one step later. , It is possible to extract serial number packets from packets arriving in no particular order and calculate the packet interval in real time. By determining the storage area to write data to by the remainder obtained by dividing the sequence number by the number of storage areas in the ring buffer, even if the number of storage areas in the ring buffer is limited and the storage areas for all sequence numbers cannot be implemented. Order correction is possible.
  • the beginning and the end of the monitoring section and the receiving section are managed by the sequence number instead of the position (address) of the storage area. Therefore, the sequence number is stored in the ring buffer storage area. Even if the surplus divided by the number is the same as the data already stored in the ring buffer but the data with different sequence numbers arrives, it is possible to prevent the malfunction of arranging the data in the wrong order. Order control is possible as long as the ring buffer is within the range of the sequence number width in which data can be stored, that is, within the range from the beginning of the monitoring section to the end of the receiving section.
  • the monitoring section and the receiving section are moved one step later, or , Data in the monitoring section is lost by moving the monitoring section and the receiving section to one after the data closest to the beginning or the beginning when a certain time has passed from the arrival time of the data closest to the beginning or the beginning. Even if this is the case, if the monitoring section and the receiving section are forcibly moved and the data in the subsequent monitoring section are available, the data can be read from the ring buffer.
  • the data sequence correction method of the present invention is used for the purpose of concatenating the payload portions of packets in the order of sequence numbers to restore the original data.
  • one sequence number may be used as the monitoring section.
  • the order number at the beginning of the monitoring section is set as the beginning of the receiving section, and the sequence number immediately before the beginning sequence number of the monitoring section is set as the end of the receiving section, and the writing destination is the same as in the first embodiment.
  • the address of the storage area of the packet may be determined, and the payload and a part of the header information or the entire packet may be written as data in the ring buffer.
  • the data of one packet may be read out and the monitoring section and the receiving section may be moved back by one.
  • the received data is outside the receiving section, or a certain time has passed from the arrival time of the data closest to the beginning or the beginning.
  • ⁇ Third embodiment> when the data order correction method of the present invention is used for the purpose of concatenating the payload portions of the packets in the order of the sequence numbers to restore the original data,
  • the data transfer speed per data bus for transferring the data read from the ring buffer to the restoration processing unit in the subsequent stage is slow, widen the data bus width for multiple (N) packets at a time. It is configured to transfer the data of the above to the restoration processing unit in the subsequent stage.
  • N consecutive sequence numbers are set as the monitoring section, the sequence number at the beginning of the monitoring section is set as the beginning of the receiving section, and the sequence number immediately before the sequence number at the beginning of the monitoring section is set as the end of the receiving section.
  • the write destination address may be determined by the same method as in the first embodiment, and the payload and a part of the header information or the entire packet may be written as data in the ring buffer.
  • the data of N packets is collected in the monitoring section, the data of all the monitoring sections (N packets) is read out, and the monitoring section and the receiving section are the number of sequence numbers of the monitoring section. It suffices to move N pieces.
  • the data for N packets read from the ring buffer is transferred in parallel to the restoration processing unit in the subsequent stage via each of the N data buses.
  • the received data is outside the receiving section, or a certain time has passed from the arrival time of the data closest to the beginning or the beginning.
  • 1 Packet monitoring device, 10 ... PHY unit, 20 ... MAC unit, 30 ... Arrival time information addition unit, 40 ... Monitoring target extraction unit, 50 ... Packet order correction unit, 51 ... Acceptance / rejection determination unit, 52 ... Ring buffer document Incorporation unit, 53 ... Ring buffer reading unit, 54 ... Monitoring section / acceptance section management unit, 55 ... Ring buffer, 60 ... Packet interval calculation unit, 70 ... Statistical information storage unit, 80 ... Visualization unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本発明のデータ順序補正方法は、順序情報付のデータをリングバッファに一時保存して順序補正するデータ順序補正方法であって、リングバッファは、順序情報に対応する所定の数の記憶領域を備え、1個または連続する2個以上の順序番号からなる監視区間と、監視区間の先頭または2つ目の順序番号を先頭の順序番号とし、監視区間の先頭の順序番号の1つ前の順序番号を末尾の順序番号とする受入区間を備え(S1)、受信したデータ(S2)の順序番号をリングバッファの記憶領域数で割った余剰に基づいて決定した値が受入区間内であった場合(S5)に、決定した値に対応する記憶領域の位置に、受信したデータを書き込むステップ(S6)と、監視区間の全てにデータが書き込まれている場合に、監視区間内の全てのデータを読み出すステップ(S7、S8)と、監視区間の順序番号数の範囲内で、監視区間及び受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を後に更新するステップ(S9)とを含む。 リングバッファの記憶領域数に制約がある場合においても、受信したデータを順序番号順に正確に並べ替えることが可能なデータ順序補正方法を提供することができる。

Description

データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム
 本発明は、受信した順序番号付のデータを順序番号順に並べ替えるデータ順序補正方法に関する。
 音声や映像を一定周期で符号化しパケット化して送信する通信方式では、受信側で順不同に到着したパケットを順序補正用バッファに一時保存して、パケットのヘッダに格納されている順序情報(通常は順序番号)に基づいてパケットを正しい順序に並べ替えてから、元の音声や映像を再生する。
 ここで、伝送経路で加わる遅延の揺らぎ(ジッタ)があまりにも大きいと、遅延が大きいパケットの到着を待つために音声や映像の再生が一時的に止まったり、遅延が非常に大きいパケットが廃棄されて音声や映像にドロップアウトが発生する。通信事業者からは、ジッタの発生箇所を特定する目的で、通信経路に挿入したネットワークタップ等でネットワーク信号を分岐して取り出し、パケットのジッタを測定したいという要望がある。
 特許文献1に記載の遅延測定方法では、パケットを送信する端末は、送信パケットに送信時刻情報を付加して送信し、パケット監視装置は、ネットワークタップ等で取り出したパケットの受信時刻を記録するとともに、到着したパケットから送信時刻情報を読み出して、受信時刻と送信時刻の差分から各パケットの遅延を求め、遅延の揺らぎを観測する。
 一方、特許文献2では、送信時刻情報を用いずにパケットのジッタを観測する。特許文献2では、周期的に生成され順序番号を付与されたパケットを対象として、受け取ったパケットを順番に整理(順序補正)してパケットの到着間隔を算出した結果を集計することで、パケット間隔の揺らぎを観測する。
 特許文献3に記載の順序補正方法では、図21に示すように、リングバッファを複数の記憶領域に区切っておき、連続する2つ以上の記憶領域を監視区間として定め、送られてきたデータを所定の記憶領域に格納し、再組立に必要なデータが監視区間に格納されているか否かを監視し、再組立に必要なデータが監視区間に揃ったらそれらを呼び出し、データを格納した記憶領域が監視区間よりも後ろである場合に、監視区間の最後尾がこのデータを格納した記憶領域になるように監視区間を移動させる。
特許第5479793号公報 特許第5625992号公報 特開2009-171157号公報
 特許文献1では、パケットを送信する端末とパケット監視装置の間で、時刻情報の規格、例えば、時刻の単位を合せる必要がある。一方、特許文献2では、受信した複数のデータを連結して元の大きなデータを再組立することを想定しているため、全順序番号分の記憶領域を持つ十分大きなサイズのリングバッファを用いて、再組立に必要なデータが監視区間に揃ったらリングバッファから読み出す。
 ここで、リングバッファの記憶領域数に制約があって全順序番号分の記憶領域を実装できない時は、例えば、順序番号をリングバッファの記憶領域数で割った剰余に基づいてデータを書込む記憶領域を決定し、先頭付近のデータが揃ったらリングバッファから読み出して、空いた記憶領域を余剰が同じデータ用に使い回すことが考えられる。しかしながら、既にリングバッファに保存されているデータと余剰が同じで順序番号が異なるデータが到着すると、データを誤った順に並べてしまうという問題がある。
 本発明は、このような課題を解決するためになされたものであり、リングバッファの記憶領域数に制約がある場合においても、受信したデータを順序番号順に正確に並べ替えることが可能なデータ順序補正方法を提供することを目的とする。
 上述したような課題を解決するために、本発明のデータ順序補正方法は、順序情報付のデータをリングバッファに一時保存して順序補正するデータ順序補正方法であって、前記リングバッファは、順序情報に対応する所定の数の記憶領域を備え、1個または連続する2個以上の順序番号からなる監視区間と、前記監視区間の先頭または2つ目の順序番号を先頭の順序番号とし、前記監視区間の先頭の順序番号の1つ前の順序番号を末尾の順序番号とする受入区間を備え、受信したデータの順序番号を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値が前記受入区間内であった場合に、前記決定した値に対応する前記記憶領域の位置に、受信したデータを書き込むステップと、前記監視区間の全てにデータが書き込まれている場合に、前記監視区間内の全てのデータを読み出すステップと、前記監視区間の順序番号数の範囲内で、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を後に更新するステップとを含む。
 上述したような課題を解決するために、本発明のパケット監視装置は、ヘッダ内に順序情報が含まれる受信パケットに到着時刻情報を付与する到着時刻情報付与部と、前記パケットのヘッダ内の情報に基づいて、監視対象パケットを抽出する監視対象抽出部と、監視対象パケットのヘッダ内の前記順序情報に基づいて、上記データ順序補正方法で前記監視対象パケットの順序を補正し、前記順序情報が連続する2つのパケットの到着時刻情報を出力するパケット順序補正部と、前記順序情報が連続する2つのパケットの到着時刻の差からパケット間隔を求めるパケット間隔計算部と、統計情報記憶部に記憶されているパケット間隔の度数分布に基づいて、ヒストグラムとして表示する可視化部とを備える。
 上述したような課題を解決するために、本発明のデータ順序補正装置は、順序情報付のデータをリングバッファに一時保存して順序補正するデータ順序補正装置であって、前記リングバッファは、順序情報に対応する所定の数の記憶領域を備え、1個または連続する2個以上の順序番号からなる監視区間と、前記監視区間の先頭または2つ目の順序番号を先頭の順序番号とし、前記監視区間の先頭の順序番号の1つ前の順序番号を末尾の順序番号とする受入区間を備え、受信したデータの順序番号を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値が前記受入区間内であるかを判断する受入可否判断部と受信したデータの順序番号を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値が前記受入区間内であった場合に、前記決定した値に対応する前記記憶領域の位置に、受信したデータを書き込むリングバッファ書込部と、前記監視区間の全てにデータが書き込まれている場合に、前記監視区間内の全てのデータを読み出すリングバッファ読出部と、前記監視区間の順序番号数の範囲内で、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を後に更新する監視区間/受入区間管理部を備える。
 上述したような課題を解決するために、本発明のデータ順序補正プログラムは、順序情報付のデータをリングバッファに一時保存して順序補正するデータ順序補正方法を実行するためのデータ順序補正プログラムであって、前記リングバッファは、順序情報に対応する所定の数の記憶領域を備え、1個または連続する2個以上の順序番号からなる監視区間と、前記監視区間の先頭または2つ目の順序番号を先頭の順序番号とし、前記監視区間の先頭の順序番号の1つ前の順序番号を末尾の順序番号とする受入区間を備え、受信したデータの順序番号を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値が前記受入区間内であった場合に、前記決定した値に対応する前記記憶領域の位置に、受信したデータを書き込むステップと、前記監視区間の全てにデータが書き込まれている場合に、前記監視区間内の全てのデータを読み出すステップと、前記監視区間の順序番号数の範囲内で、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を後に更新するステップとをコンピュータに実行させる。
 以上説明したように、本発明によれば、リングバッファの記憶領域数に制約がある場合においても、受信したデータを順序番号順に正確に並べ替えることが可能なデータ順序補正方法を提供することが可能となる。
図1は、本実施の形態に係るパケットフォーマットの構成例である。 図2は、本実施の形態に係るパケット監視装置の構成例を示す図である。 図3は、本実施の形態に係るリングバッファの構成例を示す図である。 図4は、本実施の形態に係るデータ順序補正装置の構成例を示す図である。 図5は、本実施の形態に係るデータ順序補正装置等を実現するためのコンピュータの構成例である。 図6は、本実施の形態に係るデータ順序補正方法の動作フローチャートの例を示す図である。 図7は、本実施の形態に係るリングリングバッファの初期状態を説明するための図である。 図8は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図9は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図10は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図11は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図12は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図13は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図14は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図15は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図16は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図17は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図18は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図19は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図20は、本実施の形態に係るリングリングバッファの動作を説明するための図である。 図21は、従来のリングバッファの構成例である。
 以下、本発明の実施の形態を図面に基づいて詳細に説明する。本発明は、以下に説明する実施の形態に限定されるものではない。
<第1の実施の形態>
 本発明の実施の形態では、IP電話の通話において、G.711等の音声コーデック方式で音声データを等間隔で符号化してRTP(Real-time Transport Protocol)パケットに格納して送信されたパケットを順序補正の対象とする場合を例として説明する。なお、本発明の適用の対象は、以下に説明するパケットの構成に限定されるものではない。
 図1は、第1の実施の形態における順序補正の対象であるRTPパケットのフォーマットの構成例である。RTPパケットのRTPヘッダには、パケットの生成された順序を示すシーケンス番号(SequenceNumber、16ビット幅で範囲は、0~65535)が格納されており、同一通話で送出される複数のRTPパケットのシーケンス番号は、通話開始時にランダムな値から始まって通話終了まで1ずつ増加し、65535の次は0に戻るように構成されている。そのため、生成直後のRTPパケットは、時間的に等間隔で、シーケンス番号が連番である。
 一方、伝送後のRTPパケットは、伝送路での遅延がパケット毎に一定ではないため、時間的に等間隔で到着せず、さらには、シーケンス番号の順番通りにパケットが到着しない場合もある。 通信経路に設置したネットワークタップ等でネットワーク信号を分岐して取り出して、パケット監視装置で連番RTPパケットの到着間隔を求めて、横軸がパケット到着間隔のヒストグラムに表示することで、パケット間のジッタを監視することができる。図2は、本実施の形態に係るパケット監視装置の構成例である。
<パケット監視装置>
 本実施の形態におけるパケット監視装置1は、受信したパケットに対して物理レイヤ(PHY)とデータリンクレイヤ(MAC)の処理を行うPHY部10、MAC部20、受信パケットに到着時刻情報を付与する到着時刻情報付与部30と、パケットのヘッダ内の情報に基づいて、ヘッダ内に順序情報が含まれる同一フローの監視対象パケットを抽出する監視対象抽出部40と、監視対象パケットのヘッダ内の順序情報(図1のシーケンス番号)に基づいて、監視対象パケットの順序を補正し、順序情報が連続する2つのパケットの到着時刻情報を出力するパケット順序補正部50と、順序情報が連続する2つのパケットの到着時刻の差からパケット間隔を求めるパケット間隔計算部60と、パケット到着間隔を記憶する統計情報記憶部70と、統計情報記憶部70に記憶されているパケット到着間隔毎の度数分布に基づいて、ヒストグラムとして表示する可視化部80とを備える。
<到着時刻情報付与部>
 到着時刻情報付与部30は、受信したパケットに対して物理レイヤ(PHY)とデータリンクレイヤ(MAC)の処理を行うことにより取り出されたパケットに、到着時刻情報を付与する。時刻情報を付与する手段の例としては、ヘッダに挿入または上書する方法、あるいは、パケットと並走して後段ブロックへ転送する方法、等がある。
<監視対象抽出部>
 監視対象抽出部40は、パケットの各ヘッダ内の情報に基づいて、監視対象とするパケットを抽出する。例えば、パケットのヘッダの送信元アドレスと宛先アドレス、および、UDPヘッダ内の宛先ポート番号を検査して、監視対象として登録されている値と一致するパケットを監視対象パケットとして抽出し、パケット順序補正部に送信する。
<パケット順序補正部>
 パケット順序補正部50は、監視対象パケットのヘッダから抽出した順序番号に基づいて監視対象パケットの順序を補正し、順序番号が連続する2つ以上のパケットの到着時刻情報をパケット間隔計算部60へ出力する。パケット順序補正部の構成とパケット順序補正方法については、後述のパケット順序補正部60の構成と動作例において詳細に説明する。
<パケット間隔計算部>
 パケット間隔計算部60は、パケット順序補正部50から順序番号が連続する2つ以上のパケットの到着時刻情報が入力されると、2つの連続するパケットの到着時刻の差からパケットの時間間隔を求める。順序番号が後のパケットの到着時刻から、順序番号が前のパケットの到着時刻を減算すれば、パケットの時間間隔だけでなく、パケットの順序が逆転しているかどうかも判定することができる。
<統計情報記憶部>
 統計情報記憶部70では、パケット間隔計算部60で求めたパケット間隔の度数分布を記憶する。また、後述するリングバッファの監視区間の先頭から受入区間の末尾に記憶されているデータの個数が一定数に達した場合、受信したデータが受入区間外で破棄された場合、監視区間の先頭もしくは先頭に最も近いデータの到着時刻から一定時間が経過した場合のいずれかの理由で監視区間と受入区間を移動させた場合にその移動させた頻度を、その理由毎に、または、まとめて記憶するように構成してもよい。
<可視化部>
 可視化部80では、統計情報記憶部70に記憶されているパケット間隔の度数分布をヒストグラムとして表示する。
<リングバッファの構成>
 図3は、本実施の形態に係るリングバッファの構成例である。本構成例のリングバッファは、順序情報に対応する所定の数の記憶領域を備え、1個または連続する2個以上の順序番号を監視区間とし、監視区間の先頭または2つ目の順序番号を先頭の順序番号とし、監視区間の先頭の順序番号の1つ前の順序番号を末尾の順序番号とする受入区間を備える。監視区間の先頭の順序番号からリングバッファが一周した順序番号に対応する位置が受入区間の末尾となる。図21の従来のリングバッファと異なり、本発明の実施の形態では、監視区間と受入区間の先頭と末尾を順序番号で表して管理する。なお、監視区間と受入区間の幅や間隔が一定の場合は、図3に記載の4種類の順序番号のいずれか1種類から他の3種類の順序番号を知ることができるので、少なくともいずれか1種類の順序番号を管理していればよい。
 本実施の形態に係るリングバッファでは、受信したデータの順序番号が受入区間内の順序番号であるか判断し、受入区間内の場合に、受信したデータの順序番号に対応する記憶領域に受信データが書き込まれる。一方、受信したデータの順序番号が受入区間外の場合は、受信データは廃棄される。
 上記動作を繰り返して行い、監視区間内に全てのデータが書き込まれている場合に、監視区間内の全てのデータを読み出すとともに、監視区間の順序番号数の範囲内で、監視区間及び受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を増加させて、監視区間及び受入区間を移動させる。例えば、監視区間の順序番号数が2の場合には、監視区間及び受入区間を記憶領域の1つ分後ろに移動させ、あるいは、監視区間及び受入区間を記憶領域の2つ分後ろに移動させる。
<パケット順序補正部の構成>
 図4は、本実施の形態に係るパケット順序補正部50の構成例である。パケット順序補正部50は、順序情報付のデータをリングバッファに一時保存して順序補正する機能部である。
 図4に示すように、パケット順序補正部50は、受信したデータの順序情報が受入区間内であるかを判断する受入可否判断部51と、受信したデータの順序情報が受入区間内であった場合に、受信したデータの順序情報に対応する記憶領域の位置に、受信したデータをリングバッファ55に書き込むリングバッファ書込部52と、監視区間の全てにデータが書き込まれている場合に、監視区間内の全てのデータをリングバッファ55から読み出すリングバッファ読出部53と、監視区間と受入区間を管理し、必要に応じて移動させる監視区間/受入区間管理部54とから構成されている。
 本実施の形態におけるパケット監視装置1の一例として、PHY部10、MAC部20、到着時刻情報付与部30、監視対象抽出部40、パケット順序補正部50、パケット間隔計算部60、統計情報記憶部70は、NIC(Network Interface Card)上にハードウェアとして実現することができる。可視化部80は、コンピュータ、コンピュータにインストールした可視化ソフトウェア、および、コンピュータに接続したディスプレイによって実現することができる。
 本実施の形態におけるパケット監視装置1の別の例として、到着時刻情報付与部30、監視対象抽出部40、パケット順序補正部50、パケット間隔計算部60、統計情報記憶部70、可視化部80は、CPU(Central Processing Unit)、記憶装置及び外部インタフェース(以下、外部I/F)を備えたコンピュータと、これらのハードウェア資源を制御するプログラムによって実現することができる。このようなコンピュータの構成例を図5に示す。
 コンピュータ100は、CPU200と、記憶装置300と、外部I/F400とを備えており、それらがI/Oインタフェース500を介して互いに接続されている。本実施の形態のパケット監視装置1の動作を実現するためのデータ順序補正プログラム等のプログラムや、受信データ、受信データの到着時刻情報、監視区間、受入区間等のデータは記憶装置300に格納され、外部I/F400には、互いに信号を送受信する他のコンピュータが接続される。CPU200は、記憶装置300に格納されたデータ順序補正プログラム等に従って本実施の形態で説明した処理を実行する。また、この処理プログラムをコンピュータ読み取り可能な記録媒体に記録するように構成してもよい。
<パケット順序補正部の動作例>
 図6は、本実施の形態に係るデータ順序補正方法の動作フローチャートの一例である。本実施の形態に係るデータ順序補正方法では、監視区間および受入区間を初期設定してパケット保存数=0にしておく(S1)。データを受信したら(S2)、保存パケット数が0より大きく(S3)、受信したデータの順序番号をリングバッファの記憶領域数で割った余剰に基づいて決定した値が受入区間内であった場合に(S5)、決定した値に対応する記憶領域の位置に、受信したデータを書き込み、保存パケット数を現行化するステップ(S6)と、監視区間の全てにデータが書き込まれている場合に(S7)、監視区間内の全てのデータを読み出すステップ(S8)と、監視区間及び受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を更新し、保存パケットを現行化するステップ(S9)とを含む。パケット保存数が閾値より小さい場合には、S2に遷移してデータを受信し、上記動作を繰り返す。ここで、順序番号の更新とは、順序番号を1つ後ろに移動することを意味する。
 パケット保存数が閾値に達した場合には、S9に遷移して監視区間及び受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を更新し、保存パケットを現行化する。S2でデータを受信しない場合はS7に遷移し、連番のデータが途切れるか新しいデータを受信するまでS2→S7→S8→S9→S10→S2を繰り返す。S3で保存パケット数が0の場合には、受信した順序番号を監視区間の先頭として、それに合わせて監視区間の末尾、受入区間の先頭と末尾を決定し、S6に遷移する(S4)。S5で受入区間外の場合にはS9に遷移し、S7で監視区間の全てにデータが書き込まれていない場合には、S10に遷移する。
 尚、第1の実施の形態では、監視区間の順序番号数が2で、監視区間及び受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を1つ後に更新して、監視区間及び受入区間を1つ分後ろに移動させる場合を例として説明する。
<初期状態からの動作>
 図7は、本実施の形態におけるリングバッファの初期状態を表す図である。図7のリングバッファは記憶領域数が128で、受信パケットの到着時刻情報と到着フラグを128パケット分記憶できるように構成されている。図7において、先頭パケットが格納される記憶領域が監視区間の先頭となり、そこから連続する2つの順序番号が監視区間となる。監視区間の2つ目の順序番号を受入区間の先頭とし、監視区間の先頭の順序番号から126(128-監視区間の幅)個後の順序番号を受入区間の末尾とする。この場合、監視区間の先頭の順序番号の一つ前の順序番号に対応する記憶領域が受入区間の末尾となる。
 順序補正の対象となるパケットは、図1で説明したRTPパケットであり、RTPヘッダ内の0~65535のシーケンス番号が順序番号に相当する。順序番号が65535個あるのに対してリングバッファの記憶領域が128パケット分しかないので、各パケットの到着時刻情報と到着フラグの格納先の記憶領域のアドレスをmod(順序番号,128)により決定し、リングバッファの保存パケット数の閾値を一例として120パケットとする。初期状態に受信したパケットが格納された記憶領域が監視区間の先頭となり、監視区間の先頭に対応させて、監視区間及び受入区間のそれぞれの先頭の順序番号及び末尾の順序番号が決定される。
 パケット順序補正部50は、監視区間および受入区間の先頭の順序番号と末尾の順序番号、および、保存パケット数をレジスタ等に保持し、これらの情報は、到着時刻情報の書込や読出の際に必要に応じて随時更新される。
 図8は、図7に示した保存パケット数=0の初期状態において順序番号=2であるパケットが到着して、その到着時刻情報T_2を書き込んだ後のリングバッファの状態である。順序番号2に対応する記憶領域のアドレス2(=mod(2,128))にT_2が書き込まれて、これにより順序番号「2」が監視区間の先頭となる。アドレス2にT_2が書き込まれると、記憶領域のアドレス2の到着フラグが1となり、受入区間の先頭の順序番号は、監視区間の先頭の順序番号「2」の1つ後の「3」となり、受入区間の末尾の順序番号は、先頭の順序番号3から126(128-2)個後の「129」となる。到着フラグが1である記憶領域の数は1なので、保存パケット数は1となる。
 図9は、図8の状態において順序番号=4であるパケットが到着して、その到着時刻情報T_4を書き込んだ後のリングバッファの状態である。図8の受入区間の先頭順序番号3から末尾順序番号129に対して、受信パケットの順序番号4は受入区間内なので、順序番号4に対応する記憶領域のアドレス4(=mod(4,128))にT_4を格納するとともに、アドレス4の到着フラグを1とし、保存パケット数を1増やして2とする。図9の状態では、監視区間の全てにデータが書き込まれていないので、監視区間からの読み出し処理は実行されず、監視区間および受入区間の移動も行われない。
 図10は、図9の状態において順序番号=3であるパケットが到着して、その到着時刻情報T_3を書き込んだ後のリングバッファの状態である。図9の受入区間の先頭順序番号3から末尾順序番号129に対して、受信パケットの順序番号3は受入区間内なので、順序番号3に対応するアドレス3(=mod(3,128))にT_3を格納するとともに、アドレス3の到着フラグを1とし、保存パケット数を1増やして3とする。
 図11では、図10の状態で監視区間内に全てのデータ(到着時刻情報T_2、T_3)が揃ったので、監視区間内の全てのデータをリングバッファから読み出す処理が実行される。監視区間からの読み出し処理が実行されたことに応じて、監視区間及び受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を1つ後に更新して、監視区間と受入区間がそれぞれ後に1つ移動させた状態となる。本図では、次の順序番号4のパケットとの間隔を計算するため、到着時刻情報T_2、T_3を読み出した後も、監視区間の順序番号3のデータT_3は残される。
 図11では、監視区間の先頭の順序番号と末尾の順序番号は、図10の(2、3)から1つ後の番号である(3、4)に更新され、受入区間の先頭の順序番号と末尾の順序番号は、1つ後の番号である(4、130)に更新され、監視区間および受入区間が移動している。監視区間から外れた記憶領域(アドレス2)の到着フラグは下され、保存パケット数は1減って2となる。リングバッファから読み出された到着時刻情報T_2、T_3は、パケット間隔計算部に転送され、パケット間隔計算部は、連番パケットのパケット間隔(T_3-T_2)を計算する。
 図12は、図11の状態で監視区間内に全てのデータ(到着時刻情報T_3、T_4)が揃ったので、監視区間内の全てのデータをリングバッファから読み出された状態である。図11と同様に、監視区間からの読み出し処理が実行されたことに応じて、監視区間及び受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を1つ後に更新して、監視区間と受入区間をそれぞれ後に1つ移動させた状態となる。本図では、次の順序番号5のパケットとの間隔を計算するため、到着時刻情報T_3、T_4を読み出した後も、監視区間の順序番号4のデータT_4は残される。
 図12では、監視区間の先頭の順序番号と末尾の順序番号は、図11の(3、4)から1つ後の番号である(4、5)に更新され、受入区間の先頭順序番号と末尾順序番号は、1つ後の番号(5、131)に更新され、監視区間および受入区間が移動している。監視区間から外れた記憶領域(アドレス=3)の到着フラグは下ろされ、保存パケット数は1減って1となる。リングバッファから読み出された到着時刻情報T_3、T_4は、パケット間隔計算部に転送され、パケット間隔計算部は、連番パケットのパケット間隔(T_4-T_3)を計算する。
<保存パケット数が閾値に達した時の動作>
 図13は、図12の状態の後に順序番号=5のパケットは到着せずに、順序番号=6~124の119個のパケットが到着して、それらの到着時刻情報T_6~T_124を書き込んだ後のリングバッファの状態である。監視区間内のデータはT_4のみであり、監視区間の全てにデータが書き込まれていないので、監視区間からのデータの読み出しは行われず、監視区間と受入区間の移動も行われず、監視区間と受入区間の先頭と末尾の順序番号は、図12と同じである。一方、保存パケット数は、119増えて120となり、保存パケット数の閾値120に達している。
 図14は、図13において保存パケット数が閾値120に達したため、監視区間と受入区間をそれぞれ後に1つ移動させたリングバッファの状態である。監視区間の先頭の順序番号と末尾の順序番号は、図13の(4、5)から1つ後の番号である(5、6)に更新され、受入区間の先頭順序番号と末尾順序番号は、1つ後の番号(6、132)に更新され、監視区間および受入区間が移動した状態である。監視区間から外れた記憶領域(アドレス4)の到着フラグは、図13では上がった状態であるので、アドレス4の到着フラグは下され、保存パケット数も1減らされて119となる。
 図15は、図14において順序番号=125のパケットが到着して、その到着時刻情報T_125を書き込んだ後のリングバッファの状態である。図14の受入区間の先頭順序番号6から末尾順序番号132に対して、受信パケットの順序番号125は受入区間内なので、順序番号125に対応するアドレス125(mod(125,128))にT_125を格納するとともに到着フラグを1とし、保存パケット数を1増やして120とする。図15の状態では、監視区間の全てにデータが書き込まれていないので、監視区間からの読み出し処理は実行されず、監視区間および受入区間の移動も行われないが、図13と同様に、保存パケット数の閾値120に達した場合の監視区間及び受入区間の移動が行われる。
 図16は、図15で保存パケット数が閾値120に達したため、監視区間と受入区間をそれぞれ後に1つ移動させたリングバッファの状態である。監視区間の先頭の順序番号と末尾の順序番号は、図15の(5、6)から1つ後の番号である(6、7)に更新され、受入区間の先頭順序番号と末尾順序番号は、1つ後の番号(7、133)に更新され、監視区間および受入区間が移動した状態である。監視区間から外れた記憶領域(アドレス5)の到着フラグは図15の状態で下りていたので、この到着フラグは下りた状態で保持され、保存パケット数も変更されない。
 図17は、図16の状態で監視区間内に全てのデータ(到着時刻情報T_6、T_7)が揃ったので、監視区間内の全てのデータをリングバッファから読み出して、監視区間と受入区間をそれぞれ後に1つ移動させたリングバッファの状態である。監視区間からの読み出し処理が実行されたことに応じて、監視区間及び受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を1つ後に更新して、監視区間と受入区間をそれぞれ後に1つ移動させた状態となる。本図においても、次の順序番号8のパケットとの間隔を計算するため、到着時刻情報T_6、T_7を読み出した後も監視区間内の順序番号7のデータT_7は残される。
 図17では、監視区間の先頭の順序番号と末尾の順序番号は、図16の(6、7)から1つ後の番号である(7、8)に更新され、受入区間の先頭の順序番号と末尾の順序番号は、1つ後の番号である(8、134)に更新され、監視区間および受入区間が移動している。監視区間から外れた記憶領域(アドレス6)の到着フラグを下ろし、保存パケット数を1減らして119とする。リングバッファから読み出されたT_6、T_7は、パケット間隔計算部に転送される。パケット間隔計算部は、連番パケットのパケット間隔(T_7-T_6)を計算する。以降、同様にして、監視区間からのデータの読み出しと監視区間および受入区間の移動が繰り返し実行される。
 図18は、図17の状態の後に、監視区間内のデータ(T_i、T_i+1)をリングバッファから読み出して監視区間と受入区間をそれぞれ後に1つ移動させる動作を、監視区間内のデータが揃わなくなるまで繰り返した後のリングバッファの状態である(i=7,8,…,124)。最後にアドレス124、125のT_124とT_125がリングバッファから読み出されて、アドレス125のT_125のみが残った状態となり、アドレス125の到着フラグのみが1となり、保存パケット数=1になっている。監視区間の先頭の順序番号と末尾の順序番号は、(125、126)であり、受入区間の先頭の順序番号と末尾の順序番号は、(126、252)となっている。
<受入区間外のパケットを受信した時の動作>
 図19は、受入区間の先頭の順序番号と末尾の順序番号が、(126、252)である図18の状態において、受入区間外の順序番号900のパケットが到着した場合に、書込みや読出を行わずに監視区間と受入区間をそれぞれ後に1つ移動させたリングバッファの状態である。監視区間の先頭の順序番号と末尾の順序番号は、(125、126)から1つ後の番号である(126、127)に更新され、受入区間の先頭順序番号と末尾順序番号は、1つ後の番号(127、253)に更新され、監視区間および受入区間が移動した状態である。監視区間から外れた記憶領域(アドレス125)の到着フラグは下され、保存パケット数も1減らされて、0となる。すなわち、初期状態と同様になる。
 図20は、図19に示した保存パケット数=0の状態において順序番号901であるパケットが到着して、その到着時刻情報T_901を書き込んだ後のリングバッファの状態である。順序番号901に対応するアドレス5(mod(901,128))に到着時刻情報T_901が書き込まれて、順序番号「901」が監視区間の先頭となる。アドレス5にT_901が書き込まれると、記憶領域のアドレス5の到着フラグが1となり、受入区間の先頭の順序番号は、監視区間の先頭の順序番号「901」の1つ後の「902」となり、受入区間の末尾の順序番号は、先頭の順序番号902から126(128-2)個後の「1028」となり、保存パケット数は1となる。
<先頭もしくは先頭に最も近いデータの到着時刻から一定時間が経過した時の動作>
 リングバッファに書き込むデータがパケットの到着時刻情報を含む場合は、上記の動作に加えて、監視区間の先頭データの到着時刻情報を現在時刻と比較して、到着時刻から現在時刻が一定時間を超過していた場合に、監視区間と受入区間を1つ後に移動させてもよい。
 監視区間の先頭データが書き込まれていない場合は、監視区間の2つ目以降のデータで先頭に最も近いデータの到着時刻情報を用いてもよい。監視区間内のデータが失われていた場合でも、監視区間と受入区間を強制的に移動させることで、その後の監視区間内のデータが揃っていれば、リングバッファからデータを読み出すことができる。
<第1の実施の形態の効果>
 第1の実施の形態によれば、順序番号2個分の幅の監視区間にデータが揃ったら監視区間内のデータをすべて読み出し、監視区間と受入区間を1つ後に移動するように構成したので、順不同で到着したパケットの中から連番パケットを抽出してパケット間隔を算出する処理をリアルタイムに行うことが可能になる。順序番号をリングバッファの記憶領域数で割った剰余によりデータの書込先記憶領域を決定することで、リングバッファの記憶領域数に制約があって全順序番号分の記憶領域を実装できない場合でも順序補正が可能になる。
 第1の実施の形態では、従来と異なり、監視区間と受入区間の先頭と末尾を記憶領域の位置(アドレス)ではなく順序番号で管理するように構成したので、順序番号をリングバッファの記憶領域数で割った余剰が既にリングバッファに保存されているデータと同じだが順序番号が異なるデータが到着した場合でも、データを誤った順に並べてしまう誤動作を防ぐことができる。リングバッファがデータを格納可能な順序番号の幅の範囲内、すなわち、監視区間の先頭から受入区間の末尾の範囲内であれば、順序制御が可能である。
 また、監視区間の先頭から受入区間の末尾に記憶されているデータの個数が一定数に達した場合、受信したデータが受入区間外の場合に監視区間と受入区間を1つ後に移動させ、あるいは、先頭もしくは先頭に最も近いデータの到着時刻から一定時間が経過した時に監視区間と受入区間を当該先頭もしくは先頭に最も近いデータの1つ後まで移動させることにより、監視区間内のデータが失われていた場合でも、監視区間と受入区間を強制的に移動させて、その後の監視区間内のデータが揃っていれば、リングバッファからデータを読み出すことができる。
 さらに、監視区間内のデータを読み出さずに監視区間と受入区間を後に移動させた頻度を記憶することにより、パケットが破棄されたり失われたりしたことを把握することも可能である。
<第2の実施の形態>
 第1の実施の形態では、連続する2つの順序番号を監視区間としたが、パケットのペイロード部分を順序番号の順に連結して元のデータを復元する用途で本発明のデータ順序補正方法を用いる場合は、順序番号1個分を監視区間としてもよい。この場合、監視区間の先頭の順序番号を受入区間の先頭とし、監視区間の先頭の順序番号から1つ前の順序番号を受入区間の末尾として、第1の実施の形態と同様に書込先の記憶領域のアドレスを決定して、リングバッファにはペイロードと一部のヘッダ情報、または、パケット全体をデータとして書き込めばよい。第2の実施の形態では、監視区間に1個のパケットのデータが書き込まれていたら、パケット1個分のデータを読み出して、監視区間と受入区間を1つ後ろに移動させればよい。
 監視区間先頭~受入区間末尾に記憶されているデータの個数が一定数に達した場合、受信したデータが受入区間外の場合、あるいは、先頭もしくは先頭に最も近いデータの到着時刻から一定時間が経過した場合の処理は、第1の実施の形態と同様である。
<第2の実施の形態の効果>
 第1の実施の形態の効果に加えて、順序番号1個分を監視区間とすることでリングバッファから直前に読み出したパケットの次のパケットが到着したらすぐに読み出して、パケット間隔測定だけでなくデータ復元にも適用可能になる。
<第3の実施の形態>
 第3の実施の形態では、第2の実施の形態と同様に、パケットのペイロード部分を順序番号の順に連結して元のデータを復元する用途で本発明のデータ順序補正方法を用いる場合において、リングバッファから読み出したデータを後段の復元処理部へ転送するためのデータバス1本あたりのデータ転送速度が遅い場合に、データバス幅を広くして、1度に複数(N個)のパケット分のデータを後段の復元処理部へ転送するように構成される。
 この場合は、連続する順序番号N個分を監視区間とし、監視区間の先頭の順序番号を受入区間の先頭とし、監視区間の先頭の順序番号から1つ前の順序番号を受入区間の末尾として、第1の実施の形態と同様の方法で書込先アドレスを決定して、リングバッファにはペイロードと一部のヘッダ情報、または、パケット全体をデータとして書き込めばよい。第3の実施の形態では、監視区間にN個のパケットのデータが揃ったら、監視区間の全て(パケットN個分)のデータを読み出して、監視区間と受入区間を監視区間の順序番号の数N個分移動させればよい。リングバッファから読み出されたパケットN個分のデータは、N本のデータバスの各々を経由して後段の復元処理部へ並列に転送される。
 監視区間先頭~受入区間末尾に記憶されているデータの個数が一定数に達した場合、受信したデータが受入区間外の場合、あるいは、先頭もしくは先頭に最も近いデータの到着時刻から一定時間が経過した場合の処理は、第1の実施の形態と同様である。
<第3の実施の形態の効果>
 複数パケット分の連続データが揃ったらリングバッファからまとめて読み出してバス幅が大きなデータバスを経由して後段の復元処理部へ並列に転送することで、データバス1本あたりのデータ転送速度が遅い場合でもバス幅を広げてデータバス全体の合計の転送速度を向上でき、パケット入力速度に対してパケット出力速度が遅くなることを防ぐことができる。
<実施の形態の拡張>
 以上、実施の形態を参照して本発明を説明したが、本発明は上記の実施の形態に限定されるものではない。本発明の構成や詳細には、本発明の技術思想の範囲内で当業者が理解し得る様々な変更をすることができる。
 1…パケット監視装置、10…PHY部、20…MAC部、30…到着時刻情報付与部、40…監視対象抽出部、50…パケット順序補正部、51…受入可否判断部、52…リングバッファ書込部、53…リングバッファ読み出し部、54…監視区間/受入区間管理部、55…リングバッファ、60…パケット間隔計算部、70…統計情報記憶部、80…可視化部。

Claims (9)

  1.  順序情報付のデータをリングバッファに一時保存して順序補正するデータ順序補正方法であって、
     前記リングバッファは、
     順序情報に対応する所定の数の記憶領域を備え、
     1個または連続する2個以上の順序番号からなる監視区間と、
     前記監視区間の先頭または2つ目の順序番号を先頭の順序番号とし、前記監視区間の先頭の順序番号の1つ前の順序番号を末尾の順序番号とする受入区間を備え、
     受信したデータの順序番号を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値が前記受入区間内であった場合に、
     前記決定した値に対応する前記記憶領域の位置に、受信したデータを書き込むステップと、
     前記監視区間の全てにデータが書き込まれている場合に、前記監視区間内の全てのデータを読み出すステップと、
     前記監視区間の順序番号数の範囲内で、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を後に更新するステップと
     を含むデータ順序補正方法。
  2.  前記リングバッファに記憶されているデータの個数が0の場合に、
     受信したデータの順序番号を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値に対応する前記記憶領域の位置に、前記受信したデータを書き込み、
     前記受信したデータを書き込んだ記憶領域を前記監視区間の先頭とし、前記監視区間の先頭に対応させて、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を決定する
     請求項1に記載のデータ順序補正方法データ順序補正方法。
  3.  前記監視区間の先頭から前記受入区間の末尾に記憶されているデータの個数が所定の数に達した場合に、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を1つ後に更新する
     請求項1または2に記載のデータ順序補正方法。
  4.  受信したデータの順序情報を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値が前記受入区間内でなかった場合に、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を1つ後に更新する
     請求項1から3のいずれか1項に記載のデータ順序補正方法。
  5.  前記受信したデータを前記リングバッファに書き込む際に、前記受信したデータの到着時刻の情報を書き込み、
     前記監視区間の先頭もしくは先頭に最も近いデータの到着時刻から所定の時間が経過した場合に、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を1つ後に更新する
     請求項1~4のいずれか1項に記載のデータ順序補正方法。
  6.  ヘッダ内に順序情報が含まれる受信パケットに到着時刻情報を付与する到着時刻情報付与部と、
     前記受信パケットのヘッダ内の情報に基づいて、監視対象パケットを抽出する監視対象抽出部と、
     監視対象パケットのヘッダ内の前記順序情報に基づいて、請求項1~5のいずれかの方法で前記監視対象パケットの順序を補正し、前記順序情報が連続する2つのパケットの到着時刻情報を出力するパケット順序補正部と、
     前記順序情報が連続する2つのパケットの到着時刻の差からパケット間隔を求めるパケット間隔計算部と、
     統計情報記憶部に記憶されているパケット間隔の度数分布に基づいて、ヒストグラムとして表示する可視化部と
     を備えるパケット監視装置。
  7.  前記監視区間の先頭から前記受入区間の末尾に記憶されているデータの個数が一定数に達した場合、または、受信したデータが前記受入区間外で破棄された場合、または、前記監視区間の先頭もしくは先頭に最も近いデータの到着時刻から一定時間が経過した場合のいずれかの理由で前記監視区間と前記受入区間を後に移動させた頻度を、理由毎に、または、まとめて記憶する
     請求項6に記載のパケット監視装置。
  8.  順序情報付のデータをリングバッファに一時保存して順序補正するデータ順序補正装置であって、
     前記リングバッファは、
     順序情報に対応する所定の数の記憶領域を備え、
     1個または連続する2個以上の順序番号からなる監視区間と、
     前記監視区間の先頭または2つ目の順序番号を先頭の順序番号とし、前記監視区間の先頭の順序番号の1つ前の順序番号を末尾の順序番号とする受入区間を備え、
     受信したデータの順序番号を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値が前記受入区間内であるかを判断する受入可否判断部と
     受信したデータの順序番号を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値が前記受入区間内であった場合に、
     前記決定した値に対応する前記記憶領域の位置に、受信したデータを書き込むリングバッファ書込部と、
     前記監視区間の全てにデータが書き込まれている場合に、前記監視区間内の全てのデータを読み出すリングバッファ読出部と、
     前記監視区間の順序番号数の範囲内で、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を後に更新する監視区間/受入区間管理部と
     を備えるデータ順序補正装置。
  9.  順序情報付のデータをリングバッファに一時保存して順序補正するデータ順序補正方法を実行するためのデータ順序補正プログラムであって、
     前記リングバッファは、
     順序情報に対応する所定の数の記憶領域を備え、
     1個または連続する2個以上の順序番号からなる監視区間と、
     前記監視区間の先頭または2つ目の順序番号を先頭の順序番号とし、前記監視区間の先頭の順序番号の1つ前の順序番号を末尾の順序番号とする受入区間を備え、
     受信したデータの順序番号を前記リングバッファの記憶領域数で割った余剰に基づいて決定した値が前記受入区間内であった場合に、
     前記決定した値に対応する前記記憶領域の位置に、受信したデータを書き込むステップと、
     前記監視区間の全てにデータが書き込まれている場合に、前記監視区間内の全てのデータを読み出すステップと、
     前記監視区間の順序番号数の範囲内で、前記監視区間及び前記受入区間のそれぞれの先頭の順序番号及び末尾の順序番号を後に更新するステップと
     をコンピュータに実行させるデータ順序補正プログラム。
PCT/JP2019/024898 2019-06-24 2019-06-24 データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム WO2020261320A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/JP2019/024898 WO2020261320A1 (ja) 2019-06-24 2019-06-24 データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム
JP2021528650A JP7197010B2 (ja) 2019-06-24 2019-06-24 データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム
US17/619,189 US11882061B2 (en) 2019-06-24 2019-06-24 Data sequence correction method, packet monitoring device, data sequence correction device, and data sequence correction program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2019/024898 WO2020261320A1 (ja) 2019-06-24 2019-06-24 データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム

Publications (1)

Publication Number Publication Date
WO2020261320A1 true WO2020261320A1 (ja) 2020-12-30

Family

ID=74061565

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/024898 WO2020261320A1 (ja) 2019-06-24 2019-06-24 データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム

Country Status (3)

Country Link
US (1) US11882061B2 (ja)
JP (1) JP7197010B2 (ja)
WO (1) WO2020261320A1 (ja)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006013612A (ja) * 2004-06-22 2006-01-12 Traffic Shimu:Kk データ監視システム、プログラム、記録媒体、表示操作方法
JP2009171157A (ja) * 2008-01-15 2009-07-30 Fujitsu Ltd リングバッファの使用方法およびスイッチング装置
JP2016139978A (ja) * 2015-01-28 2016-08-04 エヌ・ティ・ティ・コミュニケーションズ株式会社 パケット処理システム、通信システム、パケット処理装置、パケット処理方法、及びプログラム

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5479793B2 (ja) 2009-07-16 2014-04-23 株式会社サイバー創研 片道変動遅延時間の推定方法及びその装置
JP5625992B2 (ja) 2011-02-18 2014-11-19 沖電気工業株式会社 品質推定装置、品質推定方法およびプログラム
US20230009530A1 (en) * 2019-12-11 2023-01-12 Nippon Telegraph And Telephone Corporation Data Sequence Amendment Method, Packet Monitoring Apparatus, Data Sequence Amendment Device, and Data Sequence Amendment Program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006013612A (ja) * 2004-06-22 2006-01-12 Traffic Shimu:Kk データ監視システム、プログラム、記録媒体、表示操作方法
JP2009171157A (ja) * 2008-01-15 2009-07-30 Fujitsu Ltd リングバッファの使用方法およびスイッチング装置
JP2016139978A (ja) * 2015-01-28 2016-08-04 エヌ・ティ・ティ・コミュニケーションズ株式会社 パケット処理システム、通信システム、パケット処理装置、パケット処理方法、及びプログラム

Also Published As

Publication number Publication date
US11882061B2 (en) 2024-01-23
JP7197010B2 (ja) 2022-12-27
JPWO2020261320A1 (ja) 2020-12-30
US20220247697A1 (en) 2022-08-04

Similar Documents

Publication Publication Date Title
US7889672B2 (en) Communication apparatus and method of calculating round trip time
US7742414B1 (en) Lightweight indexing for fast retrieval of data from a flow-level compressed packet trace
US6965566B2 (en) Packet flow control apparatus and a method for controlling the same
US8306045B2 (en) Packet forwarding apparatus and method for discarding packets
US8089979B2 (en) Packet relay apparatus and packet relay method
CN113783800A (zh) 数据包处理方法、装置、计算机设备及可读存储介质
JP2022518631A (ja) パケット交換ネットワークにおいて通信エンティティのコンピューター手段によって実施される方法、並びにそのコンピュータープログラム及びコンピューター可読非一時的記録媒体、並びにパケット交換ネットワークの通信エンティティ
EP1654651B1 (en) Method and apparatus for providing tandem connection, performance monitoring, and protection architectures over ethernet protocols
CN113364778B (zh) 一种报文处理方法及装置
US7949002B1 (en) Reduced latency FIFO
WO2020261320A1 (ja) データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム
WO2021117171A1 (ja) データ順序補正方法、パケット監視装置、データ順序補正装置、及びデータ順序補正プログラム
JP2007274056A (ja) データグラム再組立装置
US20040088439A1 (en) Pipelined network processing with FIFO queues
US6621825B1 (en) Method and apparatus for per connection queuing of multicast transmissions
CN112565821B (zh) 数据处理方法、装置、安全网关及存储设备
JP7467325B2 (ja) 通信制御装置、通信制御方法、情報処理装置、情報処理方法、および、プログラム
WO2003079612A1 (en) Method and apparatus for direct data placement over tcp/ip
JP4258996B2 (ja) スケジューリング装置およびセル通信装置
CN109639386B (zh) 一种报文下发方法及转发设备
WO2024134755A1 (ja) パケット監視装置、方法およびプログラム
JP3443531B2 (ja) 通信シミュレーション装置
KR100847168B1 (ko) Udp/rtp를 사용하는 망에서의 지터 처리를 위한 패킷 순서 재배열 장치 및 방법
JPH05167616A (ja) 通信処理装置
CN112702236B (zh) 一种实现丢包检测的方法和处理器

Legal Events

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

Ref document number: 19934851

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021528650

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19934851

Country of ref document: EP

Kind code of ref document: A1