First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

SMB and TCP packets - TCP retransmissions

Hi,

I'm looking for some help on analysis some packets.

The pcap i have consists of TCP and SMB packets.

From the IO graph, I have shown TCP errors (which are showing as retransmissions) and all SMB packets.

I have noticed form the graph that when there are any TCP errors, the SMB packet numbers lower drastically:

^this is an image of my graph.

If anyone could help to explain why this is or why the retransmissions are occuring id appreciate it.

bb25's avatar
1
bb25
asked 2021-03-31 11:35:36 +0000
grahamb's avatar
23.8k
grahamb
updated 2021-03-31 11:49:38 +0000
edit flag offensive 0 remove flag close merge delete

Comments

Could you please share us a trace? https://blog.packet-foo.com/2016/11/t...

Christian_R's avatar Christian_R (2021-04-01 00:18:12 +0000) edit
add a comment see more comments

1 Answer

0

The screenshot suggests that the systems use SMB (not SMB2) to exchange data.

Most applications make blocking calls when they read or write files. In other words: Send data, wait for an acknowledgement, then send the next block etc. In case of an error, the client has to wait until the TCP retransmission has been resolved.

One of the improvements with SMB2 was the introduction of pipelining, where clients could fire away a bunch of requests at once. A sequence like "Create File, Query Information, Close" takes only one TCP turn.

I wonder, how your application reacts, if SMB2 is used. Of course, the calls have to be non-blocking ...

Good luck

Eddi

Eddi's avatar
2.4k
Eddi
answered 2021-04-03 16:18:49 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer