6 years, 7 months ago.

TCP packet size and bytes missing

Hi,

I'm sending a char array of 811 bytes but I only receive 536 bytes on the client, when I use wire shark to inspect the network data the remaining bytes have not been sent, what could be causing this?

IP address of the mbed server is 192.168.0.100, port is 8080

the client is, 192.168.0.74.

Thanks...

section of code

......
TCPSocket clt_sock;
......

clt_sock.send(_config, 811);

......

Wire shark only sees one packet being sent from mbed device..

/media/uploads/joeh/tcp_packet_sizes.png

1 Answer

6 years, 7 months ago.

TCP is connection-oriented, reliable protocol. TCP is most reliable protocol when a packet is sent for an acknowledgment then the sender has to wait for the acknowledgment. if the sender receives no acknowledgment it means the packet might lose during the transaction and it re-send the packet. it is a most reliable protocol that is used to ack... https://quickbooksupports.co/ contact here, as our support team is avilable 24*7 to help you. if you have any quarry while using the quick book.

Accepted Answer

Thank you for your reply, it turns out my receive buffer on the client was too small.

posted by joe holdsworth 31 Mar 2018