Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

TCP/IP connection help / improvement suggestion

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP
View previous topic :: View next topic  
Author Message
Estelles

Bascom Member



Joined: 14 Dec 2005
Posts: 208
Location: Scotland

uk.gif
PostPosted: Thu Nov 22, 2007 10:12 am    Post subject: TCP/IP connection help / improvement suggestion Reply with quote

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
View user's profile Visit poster's website
lpa

Bascom Member



Joined: 12 Dec 2006
Posts: 27
Location: Oreokastro, Greece

greece.gif
PostPosted: Thu Nov 22, 2007 1:38 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Estelles

Bascom Member



Joined: 14 Dec 2005
Posts: 208
Location: Scotland

uk.gif
PostPosted: Thu Nov 22, 2007 10:51 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
lpa

Bascom Member



Joined: 12 Dec 2006
Posts: 27
Location: Oreokastro, Greece

greece.gif
PostPosted: Fri Nov 23, 2007 5:38 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Estelles

Bascom Member



Joined: 14 Dec 2005
Posts: 208
Location: Scotland

uk.gif
PostPosted: Fri Nov 23, 2007 7:57 pm    Post subject: Reply with quote

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. Confused
Back to top
View user's profile Visit poster's website
lpa

Bascom Member



Joined: 12 Dec 2006
Posts: 27
Location: Oreokastro, Greece

greece.gif
PostPosted: Mon Nov 26, 2007 8:59 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP All times are GMT + 1 Hour
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
You cannot attach files in this forum
You cannot download files in this forum