METHOD FOR RECORDING, RECOVERING, AND REPLAYING REAL TRAFFIC
First Claim
1. A method for recording real traffic, used for processing a plurality of network packets of a plurality of network connections, comprising:
- executing a recording procedure, comprising;
receiving a recording parameter (N, M, P), wherein N, M, and P are integers greater than or equal to zero;
completely recording a header and a payload of each network packet of the network connections, and accumulating a payload accumulation value of each network connection;
recording the header and first M bytes of the payload of P consecutive network packets of the network connection corresponding to the payload accumulation value when one of the payload accumulation values exceeds N; and
recording the header of the network packets of the network connection corresponding to the payload accumulation value when one of the payload accumulation values exceeds N and after recording the P consecutive network packets of the network connection corresponding to the payload accumulation value.
1 Assignment
0 Petitions
Accused Products
Abstract
A recording, recovering, and replaying method for real traffic is used for processing a plurality of network packets of a plurality of network connections. A recording procedure of the method includes the following steps. A recording parameter (N, M, P) is received. A header and a payload of each network packet of the network connections are completely recorded, and a payload accumulation value of each network connection is accumulated. When one of the payload accumulation values exceeds N, the header of each network packet and first M bytes of the payload are recorded for P consecutive network packets corresponding to the payload accumulation value. When one of the payload accumulation values exceeds N and after the P consecutive network packets of the network connection corresponding to the payload accumulation value are recorded, the header of each network packet is recorded for the network connection corresponding to the payload accumulation value.
-
Citations
22 Claims
-
1. A method for recording real traffic, used for processing a plurality of network packets of a plurality of network connections, comprising:
-
executing a recording procedure, comprising; receiving a recording parameter (N, M, P), wherein N, M, and P are integers greater than or equal to zero; completely recording a header and a payload of each network packet of the network connections, and accumulating a payload accumulation value of each network connection; recording the header and first M bytes of the payload of P consecutive network packets of the network connection corresponding to the payload accumulation value when one of the payload accumulation values exceeds N; and recording the header of the network packets of the network connection corresponding to the payload accumulation value when one of the payload accumulation values exceeds N and after recording the P consecutive network packets of the network connection corresponding to the payload accumulation value. - View Dependent Claims (2, 3, 4)
-
-
5. A method for recording and recovering real traffic, used for processing a plurality of network packets of a plurality of network connections, comprising:
-
executing a recording procedure, comprising; receiving a recording parameter (N, M, P), wherein N, M, and P are integers greater than or equal to zero; completely recording a header and a payload of each network packet of the network connections, and accumulating a payload accumulation value of each network connection; recording the header of each network packet and first M bytes of the payload of P consecutive network packets of the network connection corresponding to the payload accumulation value when one of the payload accumulation values exceeds N; and recording the header of the network packets of the network connection corresponding to the payload accumulation value when one of the payload accumulation values exceeds N and after recording the P consecutive network packets of the network connection corresponding to the payload accumulation value; and executing a recovery procedure, comprising; checking whether the headers and the payloads of the network packets are complete or not one by one; determining whether the incomplete network packet has the complete header or not when obtaining at least one incomplete network packet; and executing following steps when the incomplete network packet has the complete header; obtaining a payload length of the incomplete network packet according to the header of the incomplete network packet; and writing a dummy value as the payload of the incomplete network packet according to the payload length. - View Dependent Claims (6, 7, 8, 9, 10, 11)
-
-
12. A method for recording, recovering, and replaying real traffic, used for processing a plurality of network packets of a plurality of network connections, comprising:
-
executing a recording procedure, comprising; receiving a recording parameter (N, M, P), wherein N, M, and P are integers greater than or equal to zero; completely recording a header and a payload of each network packet of the network connections, and accumulating a payload accumulation value of each network connection; recording the header of each network packet and first M bytes of the payload of P consecutive network packets of the network connection corresponding to the payload accumulation value when one of the payload accumulation values exceeds N; and recording the header of the network packets of the network connection corresponding to the payload accumulation value when one of the payload accumulation values exceeds N and after recording the P consecutive network packets of the network connection corresponding to the payload accumulation value; executing a recovery procedure, comprising; checking whether the headers and the payloads of the network packets are complete or not one by one; determining whether the incomplete network packet has the complete header or not when obtaining at least one incomplete network packet; and executing following steps when the incomplete network packet has the complete header; obtaining a payload length of the incomplete network packet according to the header of the incomplete network packet; and writing a dummy value as the payload of the incomplete network packet according to the payload length; and executing a replay procedure, comprising; receiving an event time and a network connection information, wherein the network connection information comprises at least one network connection address; and replaying the network packets of the at least one network connection corresponding to the network connection address. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
Specification