Let's say I have a simple TCP connection w/ a client and a server. The client sends some data to the server, and the server sends something back to the client after doing some processing w/ the original data.
I am not 100% on how the flow of packets would work in this situation using a stop and wait protocol. When the client sends the original data to the server, does the server send an ACK and the new data at the same time (same packet?), or are these sent separately?
From examples I have seen online, I'm not able to understand fully when a server sends data back to a client in relation to when it sends an ACK.
Thank you!