CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

TCP window size error (18F97J60 and CCS TCP stack)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
peterpanic



Joined: 05 Apr 2010
Posts: 17
Location: UK

View user's profile Send private message

TCP window size error (18F97J60 and CCS TCP stack)
PostPosted: Wed May 09, 2012 10:34 am     Reply with quote

I'm seeing a curious error where the TCP window size seems to be wrongly reported by the PIC to the wire.

The trigger for the problem was user reports that comms just lock up with a Windows 7 host, while they are ok with XP hosts. That turns out to be because there is a difference between how XP and Win7 handle zero-window packets (sometimes Win7 doesn't behave 'properly'). But that's not the real problem, I think...

The window announced by the PIC (on a WireShark capture) seems to hover around 58000; sometimes as low as 55000 and as high as 61000. But the transmit and receive buffer sizes are set to the default 2k, so it's not something simple like a sign bit gone wrong. On other occasions, I have seen it swing from 5000 "down" to 63000. Again, that's an 8k swing, which is wrong.

Anyone else seen this, or have a plan for investigating?
_________________
- peter -
peterpanic



Joined: 05 Apr 2010
Posts: 17
Location: UK

View user's profile Send private message

PostPosted: Fri May 11, 2012 2:50 pm     Reply with quote

Resolved. I copied all the very latest TCP library files and the latest device file, not that any seemed to have any relevant changes (I diff'd the lot of them), and now the window figure is rational.
_________________
- peter -
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sat May 12, 2012 1:55 am     Reply with quote

Quote:
I copied all the very latest TCP library files and the latest device file

Which TCP library version are you referring to?
peterpanic



Joined: 05 Apr 2010
Posts: 17
Location: UK

View user's profile Send private message

PostPosted: Sat May 12, 2012 2:00 am     Reply with quote

FvM wrote:
Which TCP library version are you referring to?

The CCS one - C:\Program Files\PICC\TCP-IP\PIC Examples Source\tcpip
_________________
- peter -
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Sat May 12, 2012 6:41 am     Reply with quote

Peterpanic
Can you give us the date stamp on the working files in your TCP/IP?
The day month may vary ..it is the year that I'm interested in.
peterpanic



Joined: 05 Apr 2010
Posts: 17
Location: UK

View user's profile Send private message

PostPosted: Sat May 12, 2012 8:35 am     Reply with quote

Quote:
Can you give us the date stamp on the working files in your TCP/IP?

tcp.c, dns.c and stacktsk.c are all 2011, the rest are 2010 or older (mac.c and slip.c are 2006 for example)

Here we are (the 2012 ones are ones I have changed):

10/05/2012 28,207 http.c
10/05/2012 53,308 ETH97J60.c
10/05/2012 8,789 helpers.c
03/03/2012 4,448 hardware.h
26/01/2011 60,942 tcp.c
26/01/2011 13,210 tcp.h
26/01/2011 11,118 dns.c
26/01/2011 16,372 stacktsk.h
26/01/2011 10,196 hardware.h.orig
26/01/2011 15,641 stacktsk.c
16/09/2010 17,626 rtl8019AS.c
16/09/2010 46,855 HTTP2.c
16/09/2010 23,819 udp.c
16/09/2010 5,464 elcd.c
27/07/2010 33,425 dhcp.c
27/07/2010 6,876 arptsk.c
27/07/2010 16,877 smtp.c
27/07/2010 7,923 arp.c
27/07/2010 8,401 icmp.c
15/07/2010 10,801 ip.c
06/06/2010 57,512 tcp.bak
05/06/2010 10,555 ip.bak
12/05/2010 8,407 icmp.bak
12/05/2010 7,832 arp.bak
12/05/2010 22,544 udp.bak
08/01/2010 47,126 ppp.c
08/01/2010 7,501 pppwrap.c
30/12/2009 8,747 modem.c
30/12/2009 3,418 modem.h
30/12/2009 12,218 ppp.h
30/12/2009 7,893 mac.h
27/05/2009 81,559 enc28j60.c
25/03/2009 7,775 dhcp.h
25/03/2009 12,209 udp.h
19/02/2009 4,040 arp.h
19/02/2009 5,133 Tick.c
15/12/2008 9,395 ETH97J60.h
20/11/2008 1,545 smtp.h
12/09/2008 18,969 enc28j60.h
17/06/2008 4,244 arptsk.h
10/06/2008 5,198 Tick.h
21/04/2008 6,115 alcd.c
25/03/2008 8,195 ip.h
25/03/2008 5,231 icmp.h
12/03/2008 3,235 helpers.h
11/09/2007 3,733 pppwrap.h
27/07/2007 4,124 tftp.h
27/07/2007 19,131 ftp.c
27/07/2007 12,146 tftp.c
24/07/2007 61,132 SNMP.c
17/04/2007 2,426 HTTP2.h
17/04/2007 6,805 pic18.h
14/03/2007 2,287 Announce.h
12/03/2007 6,062 announce.c
12/03/2007 3,942 ftp.h
15/11/2006 16,910 snmp.h
14/11/2006 1,705 DNS.h
08/11/2006 5,344 mlcd.c
21/09/2006 2,383 http.h
19/09/2006 17,220 slip.c
19/09/2006 17,315 mac.c
19/09/2006 5,983 dlcd.c
11/08/2006 5,833 NBNS.c
02/08/2006 1,655 NBNS.h
_________________
- peter -
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sat May 12, 2012 11:50 am     Reply with quote

Stupid question: When have the CCS TCPIP examples provided for download the last time? My copy, downloaded in 2009 is of August 2008. Apparently it's not available now.
peterpanic



Joined: 05 Apr 2010
Posts: 17
Location: UK

View user's profile Send private message

PostPosted: Sat May 12, 2012 12:02 pm     Reply with quote

FvM wrote:
Stupid question: When have the CCS TCPIP examples provided for download the last time?

According to the download manager, the latest is dated 8mar2012. I think you have to be on maintenance to get updated stuff like this.
_________________
- peter -
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sat May 12, 2012 3:00 pm     Reply with quote

Thanks for the information. I'have an active subscription, but the TCPIP examples are not shown anywhere at CCS download pages.

P.S.: O.K., the code seems to be only accessible through the download manager. Don't know why. Substantially, it's still the MCHP stack V3.75 of 2006, which isn't neccessarily a bad thing.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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