LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is consider a "large" tcp/ip string

Is 114,000 bytes considered a large tcp/ip string and should I break up one single write into multiple smaller writes? Or does it not really matter? I don't know much about what tcp is doing on the low level in the background.

0 Kudos
Message 1 of 3
(2,402 Views)

Don't worry about breaking it up; let your operating system's TCP stack handle that for you.  It knows how large a packet should be and can combine multiple small writes into one larger one for the same destination, or split a large amount of data into appropriately-sized packets.

Message 2 of 3
(2,382 Views)

@nathand wrote:

Don't worry about breaking it up; let your operating system's TCP stack handle that for you.  It knows how large a packet should be and can combine multiple small writes into one larger one for the same destination, or split a large amount of data into appropriately-sized packets.


Thank you Nathand!

 

"An answer from you is better than a guess from me." Smiley Wink

 

The added beauty is error recovery if the network paths have to be reconfigured durring the transfer. TCP/IP guarentees they will be delivered intact or an error will be returned.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,380 Views)