View previous topic :: View next topic |
Author |
Message |
Estelles
Joined: 14 Dec 2005 Posts: 208 Location: Scotland
|
Posted: Thu Nov 22, 2007 10:12 am Post subject: TCP/IP connection help / improvement suggestion |
|
|
Hi
I'm posting this because I don't know where else... I'm a bit lost with this.
I got a project that is sending informaton to a web server every 10 seconds, in general this works very well. However I noticed that about 10 times per day the connection is lost for about 2 minutes and it is recovered.
I logged the data for 12hours with WireShark to see what was going on and I noticed that every single communication was splitted. I don't think the information I'm sending is that big anyway. I was wondering if the attachment may have something to do with loosing sometime comms.. (sample.JPG - Normal operation)
Is anyone familiar with this type fo things?
The other attachment is when the comms fail (fail.JPG - Fail operation)
Thanks
Ed
P.S.- Internet server is red line. 172.x is the AVR device |
|
Back to top |
|
|
lpa
Joined: 12 Dec 2006 Posts: 27 Location: Oreokastro, Greece
|
Posted: Thu Nov 22, 2007 1:38 pm Post subject: |
|
|
It seems that during failure a spanning tree algorithm is taking place initiated from a dell machine.
you may have to disable spanning tree. |
|
Back to top |
|
|
Estelles
Joined: 14 Dec 2005 Posts: 208 Location: Scotland
|
Posted: Thu Nov 22, 2007 10:51 pm Post subject: |
|
|
I'm not sure what a spanning tree is but the Dell machine is the computer used to sniff the data packets. How could that affect the re-connection of the AVR? |
|
Back to top |
|
|
lpa
Joined: 12 Dec 2006 Posts: 27 Location: Oreokastro, Greece
|
Posted: Fri Nov 23, 2007 5:38 pm Post subject: |
|
|
Spanning tree is a procedure that search the network for switches in order to eliminate network loops. It seems that the Dell machine is running the spanning tree algorithm and it is occupying exclusively the Ethernet network for a short period of time, during which other network communications are lost.
Probably your avr network communication does not have a mechanism to check (acknowledge) that your packets are received from the Dell station. |
|
Back to top |
|
|
Estelles
Joined: 14 Dec 2005 Posts: 208 Location: Scotland
|
Posted: Fri Nov 23, 2007 7:57 pm Post subject: |
|
|
So basically you mean that the AVR is getting confused with the Dell machine? The problem of loosing connection should stop then when teh Dell machine is off, however that is not the case and still looses connections even when the computer is off. The only time I use the Dell machine is to sniff the packets.
Unless it is something witht he router + the bridge that is going through.... This is quite confusing, above all at this level of the communication layer. |
|
Back to top |
|
|
lpa
Joined: 12 Dec 2006 Posts: 27 Location: Oreokastro, Greece
|
Posted: Mon Nov 26, 2007 8:59 am Post subject: |
|
|
Then, it is probably from the bridge. Can you figure if the bridge is using spanning tree ? I think that if you turn off spanning tree then you will solve the problem. |
|
Back to top |
|
|
|