Network Buffering Question
#1
Posted 03 February 2011 - 07:51 PM
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#2
Posted 03 February 2011 - 08:55 PM
#3
Posted 04 February 2011 - 08:25 AM
#4
Posted 05 February 2011 - 10:42 PM
I've just been writing up the Sliverlight code I have recently written and doing so caused me to question one of my design decisions. I decided that given the limited resources (i.e. memory) on the N+ I would send data to the browser in 256 byte chunks. On reading this code It caused me to recall my TCP/IP network training which stated that TCP packets were about 1.7Kbytes.
My question is, am I being too conservative and would I be better sending the data in say 1.5Kbyte chunks?
Alternatively, is my memory failing and I'm having a grey moment
Thanks in advance,
Mark
If you want to make sure the Netduino (or another other device along the way) is not fragmenting your packets then set your data segments size to 1452. With overhead (48 bytes for TCP and IP headers ) this will result in a packet size of 1500 and your packets should not fragments as they go our over the internet. If you notice fragmentation (drop in performance or using network tools you see it) then drop your segment to 1444 and then your MTU will be 1492 and should support even legacy devices in your network path.
FYI - If you want to see if your getting fragmentation using tools ten you can get wireshark for free. Once installed on your computer you will either have to send traffic to / from the device from the computer that has wireshark installed and running or use an old ethernet ***HUB*** (not a switch) and the you can capture the packets going between the netduino and a separate web-server / client
- nlatin likes this
http://jarrodsinclair.wordpress.com//
#5
Posted 23 December 2013 - 04:25 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users