|
|
View previous topic :: View next topic |
Author |
Message |
puppie7777
Joined: 09 Jun 2004 Posts: 25 Location: Monterey, CA
|
Seq Number and Ack Number in TCP stack |
Posted: Mon Sep 20, 2004 3:24 am |
|
|
Hi, There!
i have built in a tcp stack which uses the ported tcp for CCS from Microchip TCP/IP stack. my pic now works as client, it works fine just except one "small" problem, if anyone has the simalar encounters as the following i will be very appreciated if he/she can share the experience!
The whole protocol stack which includes TCP/IP PPP stack works fine, but the connection keeps running for long time, my pic suddently "dont care about" any following incoming packets when pic side sending out a packet missing. (if the GPRS traffic is smooth, it will run for quite long time, maybe can transmit 10 thousand plus packets), and every time in this case, the program will "jump out" due to the sequence number and the ACK number not match. (my crc-16 checksum caculation in ppp layer works fine!).
Any suggestion will be highly appriciated! |
|
|
Guest
|
|
Posted: Mon Sep 20, 2004 11:15 am |
|
|
Same experiences. Currently I'm working on this (ppp and ported tcp/ip stack) over PSTN. Sometimes I can upload huge files to an FTP server and sometimes it lacks after a couple 100 bytes.
Note that I have assigned an inactivity timer to the ip stack to disconnect (close the socket, disconnect ppp and then disconnect modem). It is not a solution for the problem just helps to keep phone charges as low as possible |
|
|
puppie7777
Joined: 09 Jun 2004 Posts: 25 Location: Monterey, CA
|
|
Posted: Fri Sep 24, 2004 4:11 am |
|
|
Hi, there!
Now i have found out the reason, it is because my pic directly connect to GPRS modem (i m not using NIC), so there is not a "retransmit" mechanism on the virtural MAC layer to retransmit the data if no ACK received.
Actually in the TCPTick() function from Microchip TCP/IP stack, there is a "retransmit" mechanism, so far seems i can manage to retransmit an ACK packet, but still dont know how to implement on retransmitting data packet. Because the stack "push" this task to the NIC.
does anyone got a direction on that?
Rgds! |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|