Skip to main content

How to play back captured tcp packets. - Part 2. Reuse received packets

Introduction

Through various packet capture tools, we can capture various network packets such as tcp, udp, and usb for testing or monitoring purposes.
Sometimes, however, we feel the need to reuse these captured packet data for testing.
This article is about this need.


What is the goal?

If the goal of Part 1 is to reuse the captured sent packets, the goal of Part 2 is to reuse the captured received packets to verify that the response to the test packets has the expected value.


How to reuse received packets.

If the engineer's prediction is not wrong, the test message will be sent and then the corresponding message packet will be received.

The problem is that it is not easy to see all of these response message data.
To solve this problem, we create the expected message packets from the captured packets and compare them with the received message packets during the test.


What do we need?

- It should be easy to check and edit on the GUI to utilize the captured data.
- The best option would be to view the capture data you want to edit in a structured format.
- And finally, easy ways to compare message data should be provided.


What is the solution?

1. If you are familiar with hex data processing or command line based or if you do not have a lot of work, you may be able to achieve that goal through open source such as packetreply or wireshack.
2. However, if you need to do this for more than a few hours, you can achieve your goals more efficiently and easily with Newronz(www.newronz.com) software.

4 steps for reuse of captured response packets.

1. Define the structure of the response message packet to be reused in the GUI.
2. Extract the corresponding message packets from the pre-captured PCap file
3. Edit message packets to have the expected data
4. Send test packets and check the report to see if the responses are expected

Watch next video for all steps.



That's it.  Now, we are able to reuse the captured tcp packets at the testing level.
(Newronz is free for personal use and open source projects.)


Comments