Solution #0697 · IT & Internet · Industry-specific

After-sales logs and packet capture analysis

Split thousands of tcpdump packets by session so support engineers don't have to dig through useless packets

Score
Internal scoring scale
Roles
Tech Support
Frontline role
Industry
IT & Internet
Industry-specific
Maturity
—
Validated in practice
01 — Business fit

Who should use it, and when

For engineers and their supervisors doing after-sales support in the information technology and internet industry: after a user reports a fault, they need to look at tcpdump captures to locate the problem, but there are many packets, timestamps are hard to compare, and conclusions depend on personal experience. The source lists the applicable role as technical support. It suits teams that already have basic packet-capture capability and want to turn the packet-digging process into fixed steps.

02 — Key steps

The key moves that make it work

1
First limit the capture scope

Based on the time the user reported the fault, keep a window of a few minutes before and after, use host and port filters to capture only relevant addresses, and capture on the client and server at the same time. Set the scope before you start capturing, or one run will produce thousands of irrelevant packets.

2
Unify the time baseline

Before capturing, confirm that both ends are synchronized to the same time source, and note the capture start time and time zone. When comparing against ticket timestamps afterward, first calculate the clock offset between the two ends, then judge which segment is the real timeout.

3
Split by session before reading

Use tcp.stream or a five-tuple to split the large capture file into individual connections, first filter for obvious signals such as retransmissions, RST, and zero windows, then look at application-layer content one by one. Don't reverse the order, or you'll still be digging through packets manually.

4
Write the ticket as a timeline

Ask the user to give operation steps and approximate time points when reporting the fault, organize them into a timeline, and compare them one by one with the requests in the capture. Without that timeline, you can only guess what the user clicked when reading the packets.

5
Mark packet numbers in conclusions

After each conclusion, write the corresponding stream number and packet number, and attach the exported fragment. Reviewers can jump straight to those lines, and newcomers don't have to retrace the senior staff's thinking.

TAKEAWAY
Fix the scope and time first
The hard part of packet capture isn't the tool; it's defining the scope, time baseline, and ticket timeline before you start. Once these steps are done, reading packets becomes a reviewable action rather than relying on gut feeling.
03 — Risks & pitfalls

What to know before you start

Risk 1 · Capture point chosen incorrectlyIf you capture only on the client side, packet loss and retransmissions may be blamed on the network; when middlebox mirroring is incomplete, the conclusion points the wrong way, and changing configuration accordingly may be wasted effort.
Risk 2 · Clocks at the two ends out of syncWhen the client and server time sources aren't synchronized, comparing timestamps across devices will be off, making it easy to judge a normal slow request as a timeout, and all later analysis is built on that mistake.
Risk 3 · Encrypted traffic hides the contentWhen the link uses TLS you can only see the handshake and byte counts, and application-layer error content can't be read. Such problems need application logs instead; you can't conclude from the capture alone.