LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I calculate the maximum packet size of the data sent using TCP?

I need to find the maximum size of data transmitted via the TCP. How do I calculate it . What is the impact of packet size of the network on the data transmission and reception via TCP?
Suresh Thangappan
0 Kudos
Message 1 of 2
(5,032 Views)


@Suresh T wrote:
I need to find the maximum size of data transmitted via the TCP. How do I calculate it . What is the impact of packet size of the network on the data transmission and reception via TCP?




If you mean the IP packet size used by the various netwerk entities, there is no real way to do that on TCP/IP level. If at all possible you will need to go on a lower protocol level such as ICMP or similar. Still I'm not sure it can be done at all, since the IP protocol is constructed in such a way, that any router or sometimes even gateaway is able to repackage your data in whatever way it likes if it only guarantees that the data is not altered.

You will have to checkout the specific Internet Protocol discussions and if you find something be prepared to create some external code in a DLL, since LabVIEW does not give you access to other low level protocols other than UDP and TCP.\

If you mean the actual data size transmitted by the other side this must be done by either:

1) Fixed size data packages where the package identifier or whatever is enough to know what follows
2) Explicite embedding of the data size in the data stream
3) termination character recognition such as carriage return/line feed

Rolf Kalbermatter

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 2
(5,030 Views)