Altera_Forum
Honored Contributor
13 years agoNIOS II NicheStack:TCP data is not being sent at the required time interval!
I am working on the client side. and do not have control at the server side.
My application is running on altera stratixIII fpga. with LAN 91c111smsc phy/mac IC. My application is based on Nios-II: NicheStack TCP/IP using MicroC-OSII. my sopc builder has configured for Standard NIOS II processor. uses external SRAM for data processing. client is connected to the server via a cross cable of approx 2 meters. auto negotiation sets the speed at 100 mbps. my communication is TCP/IP and my application requires data exchanges at different time intervals.I need to send data with different msg IDs. and for every msg ID, packet size is fixed. for ex: for time update 10 bytes of data has to be sent as per the protocol. I have to send Time update to server every second. system clock driver period is 1 ms. i am using ostimeget() function. If i send only time update message and disable any other data exchange, i am able to see in ethereal, that time update is going every second(as expected). but when i initiate other data exchanges. time update gets delayed upto 5 sec. i have seen previous posts also. i checked tcp acknowledgment which takes 2 ms to 200 ms to come in my case. so i doubt this myt not be the problem.as it gets delayed for upto 5 sec. in one TCP message entire 10 bytes get sent. i want to know: 1. what is causing this delay. Why time update is not being dumped on the physical layer every second when other data processing and exchange is initiated in the simplesocketserver application. 2. and also In nios II nichestack, does that time update data get lost because of overwriting in the OS tx buffer?? 3. how does nichestack decides the number of data bytes in one tcp packet?? sometimes i am sending 10 bytes sometimes 5 messages altogether consisting 60 bytes.. if i have not conveyed the query properly plz let me know. i have been struggling with this problem for last 1 week. any help will be greatly appreciated.