# US 2012/0084605 A1 · Replaying captured network traffic

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0084605 A1
- Document ID: US20120084605A1
- Status: Published application
- Kind: A1
- Application number: 12/897,224
- Filed: 2010-10-04
- Published: 2012-04-05
- Earliest claimed: 2010-10-04
- Assignees: Hewlett-Packard Development Company, L.P.
- Inventors: Hanan Shilon; Michael Gopshtein; Nir Shilon
- Web page: https://patentgrep.com/patent/US20120084605A1

## CPC

- H04L 43/50: Testing arrangements
- H04L 43/12: Network monitoring probes
- H04L 43/106: using time related information in packets, e.g. by adding timestamps
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems, methods, and machine readable and executable instructions are provided for replaying captured network traffic. A method for replaying captured network traffic can include replaying multiple captured network traffic files simultaneously on the same network device, the captured network traffic files including original network traffic captured from N original connections between C original clients and S original servers. During replaying, rewriting IF addresses and/or port number information of data packets comprising the original network traffic to reflect test network traffic from M test connections between X test clients and Y test servers, where at least X is different than C or Y is different than S. The method further includes modifying checksums, during replaying, to correct values corresponding to the rewritten IF addresses and port number information. N, C, S, M, X, and Y are positive integers.

## Claims

### Claim 1

A method for replaying captured network traffic, comprising:
replaying multiple captured network traffic files simultaneously on the same network device, the captured network traffic files including original network traffic captured from N original connections between C original clients and S original servers;
rewriting, during replaying. IP addresses and/or port number information of data packets comprising the original network traffic to reflect test network traffic from M test connections between X test clients and Y test servers, where at least X is different than C or Y is different than S;
modifying checksums, during replaying, to correct values corresponding to the rewritten IP addresses and port number information; and
wherein N, C, S, M, X, and Y are positive integers.

### Claim 2 (depends on 1)

The method of claim 1, wherein rewriting includes:
defining the mapping between the C clients and the X clients; and
changing all client port number information in at least one test connection involving a particular one of the X test clients where multiple original clients are mapped to the particular one of the X test clients.

### Claim 3 (depends on 1)

The method of claim 1, wherein rewriting includes preserving consistency between the N original connections and the M test connections such that any two original connections of a same captured network traffic file having a same original client IP address have a same test client IP address.

### Claim 4 (depends on 1)

The method of claim 1, wherein rewriting includes preventing possible network traffic collisions where an original connection from an original client exists in more than one captured network traffic file by changing the IP addresses and/or port number information of network traffic corresponding the original connection in at least all but one captured network traffic file.

### Claim 5 (depends on 1)

The method of claim 1, wherein replaying multiple captured network traffic files simultaneously on the same network device includes multiplying a number of N original connections to provide the M test connections, M being larger than N.

### Claim 6 (depends on 5)

The method of claim 5, further comprising scheduling a replay start time for each of the M test connections, wherein replaying includes starting replay of a particular test connection at the associated scheduled start time.

### Claim 7 (depends on 6)

The method of claim 6, wherein M and the replay start time for each of the M test connections is selected to provide a defined average throughput network traffic rate for a defined duration.

### Claim 8 (depends on 1)

The method of claim 1, wherein rewriting includes modifying a number of data packets to: change a source IP address, change a source port number information, change a destination IP address, and/or change a destination port number information.

### Claim 9 (depends on 1)

The method of claim 1, wherein rewriting includes modifying a number of data packets to change arrival time.

### Claim 10 (depends on 1)

The method of claim 1, wherein modifying checksums includes modifying all IP address and TCP header checksums.

### Claim 11

A non-transitory computer-readable medium having computer-readable instructions stored thereon that, if executed by one or more processors, cause the one or more processors to:
identify all unique original TCP connections in all input captured network traffic files;
identify unique client endpoints and server endpoints of the unique TCP connections;
assign new IP addresses to each of the unique client endpoints and server endpoints;
assign a new server port number and a new client port number for each of the unique original TOE connections, wherein each of the unique original TOP connections has a new client endpoint and server endpoint with a unique combination of client IP address, client port, server IP address, and server port;
modify IP and TOP checksums for each data packet of the input captured network traffic files to correctly reflect the new client and server endpoints; and
replay each data packet of the input captured network traffic files on a same network device.

### Claim 12 (depends on 11)

The non-transitory machine-readable medium of claim 11, including machine-readable instructions stored thereon that are executed by a processor to shift timestamps of each data packet to preserve all time intervals between data packets in same captured network traffic files.

### Claim 13 (depends on 12)

The non-transitory machine-readable medium of claim 12, including machine-readable instructions stored thereon that are executed by a processor to shift timestamps of each data packet to differently shift in time data packets in different captured network traffic files.

### Claim 14 (depends on 11)

The non-transitory machine-readable medium of claim 11, including machine-readable instructions stored thereon that are executed by a processor to replay all data packets on a single network device in a manner to maintain an original time interval between data packets of a same connection.

### Claim 15

A captured network traffic replay system, comprising:
a network device;
one or more computing devices communicatively coupled to the network device and arranged to provide network traffic to the network device, the one or more computing devices including:
logic configured to identify all unique original TCP connections in the captured network traffic files;
logic configured to identify unique client/server endpoints of the unique TOP connections;
logic configured to assign new IP addresses to each of the unique client/server endpoints;
logic configured to assign a new port number to particular client/server endpoints such that each of the unique original TCP connections has a new client/server endpoint with a unique combination of client IP address, client port, server IP address, and server port;
logic configured to modify IP and TOP checksums for each data packet of the captured network traffic files to correctly reflect the new client/server endpoints; and
logic configured to replay each data packet of the captured network traffic files to the network device.
