Hi all,
I have some questions and I would be grateful if you could help me. As you know, by adding a Network library, the library without open source needs good documentations. The documentation @ Keil and ARM websites is appropriate for many uses but for networks needs to be completed.
My questions:
1) In the Net_Config_ETH_0.h file, what is the OS Resource Settings?
2)In Net_Config.c, what is the OS Resource Settings? What does define its size
To change the default OS resource settings for the Network Core, use Core Thread Stack Size. The default value is 1024 bytes
3) In Net_Config.c, what is the Memory Pool Size?
The Memory Pool Size specifies the amount of RAM in bytes allocated for the memory pool. The buffers for the network packets are allocated from this memory pool. Usually, the default value of 12000 bytes is sufficient.
Does it get this memory from RTOS Global Dynamic memory?
4) How can I define the maximum data size and packet numbers per second if I use TCP or UDP protocol? I am using STM32F10x series with 72 MHz and a Phi with 50 MHz resource clock with RMII protocol.
5) How much time does a packet need to be transmitted after using netUDP_Send or netTCP_Send?
6) Is there any limitation for the Network on tick number or Kernel frequency of RTOS?
7) If I send the 30Bytes UDP packet each 100us, how the network library handle it? It sends them very fast or accumulate them in in queue form?
Thank you.
1. Yes, that is correct. Each packet is stored in the memory pool until it is acknowledged by the other side.
2. The values are actually initial values. TCP sockets implement optimization algorithms that optimize the transmission, such as: slow start, congestion avoidance, fast retransmission, sliding window and others. One of these algorithms is to measure RTT time and reduce retransmission timeouts, which can be as low as 100 ms in low latency networks. I suggest leaving the maximum number of retransmission retries at a default value.
3. Yes you are right about that.
I appreciate your explanations and help. Thank you for your comment.