Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Large TCP/IP Packets


  • Please log in to reply
3 replies to this topic

#1 mohammad

mohammad

    Advanced Member

  • Members
  • PipPipPip
  • 79 posts

Posted 04 June 2012 - 08:28 PM

Hi all, My Netduino Plus is a Web server. When it receives any packet, it reads the the packet length from its header. Then, Netduino drops it. My question is how Netduino can receive the packets with length larger than its RAM capacity (28KB). I could send packets larger than 80KB and Netduino could read their headers. Any reply is appreciated. Thanks, Mohammad

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 04 June 2012 - 08:54 PM

Hi Mohammad, Are you trying to send TCP packets of 80KB...or chunks of data that large? You can't send a single TCP packet that big to a Netduino--but if you sent it that much data you'll get a small chunk (say 1500 bytes) that you can read and process. And the rest of the data should be "held back" until your Netduino Plus has enough room in its buffers to receive it. Chris

#3 mohammad

mohammad

    Advanced Member

  • Members
  • PipPipPip
  • 79 posts

Posted 05 June 2012 - 07:20 PM

Hi Chris,

Thanks for your reply.
I sent chunks of data around 80KB. My assumption: chunks of data = TCP/IP packets. Am I wrong?
I know that MTU for Ethernet only allows 1.5KB of data to transfer. So, the TCP packets should be fragmented on router, then send to Netduino.

And the rest of the data should be "held back" until your Netduino Plus has enough room in its buffers to receive it.

My understanding from your reply is in this way:
- 80KB data are sent to Netduino. Netduino can read the header, but it cannot read the whole content. When it empties its memory, the pending contents can be loaded in Netduino. Yes?

Thanks again,
Mohammad

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 05 June 2012 - 08:46 PM

My understanding from your reply is in this way:
- 80KB data are sent to Netduino. Netduino can read the header, but it cannot read the whole content. When it empty its memory, the pending contents can be loaded in Netduino. Yes?

Yes, that should work.

Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.