Async udp connection

AmazingNoob

Member
Join Date
Aug 2016
Location
asia
Posts
14
Hi there,

I have a scenario and wonder how it would work. Or how udp work in general.
I have a plc , and many pcs (100) that multicast to the plc through udp at a 1400 bytes each. my plc rpi is every 50ms.

This is how I think it work, please correct me if I'm wrong.
The plc will listen for a connection to each of these pc within a scan, and if there is a connection, the next scan it will read out the packet from each pc. With each packet is about 1400 bytes, if the plc cannot finish reading the packet within the scan time, does the nic on the plc queue the packet and receive it within next scan? Does the packet get lost, and the pc will have to retransmit it again? Do I need to do some data handling (merging) if the fragment is read in the next scan?
 
UDP does not involve a 'connection'. It just sends a packet out or receives a packet but there is not really a socket 'connection' between the two endpoints like there is with TCP. The C language functions in a computer kind of make it look like UDP supports connections but it doesn't.

I'm not sure how the 'RPI' Requested Packet Interval term applies to this situation.

There is not anywhere near enough information to be able to answer this one.
 
Thanks.
Yeah, I was looking for more of a performance chart, but I guess it's difficult to measure as it depends on many factors (os,nic speed etc). So, I guess I'm terms of the rpi, would we typically increase the rpi so that when receiving the packet we do not drop it off?
 

Similar Topics

Hi, I know this is a plc forum, so this is a bit off-topic. However I know there are lot of smart electrical engineers here, so I will give it a...
Replies
14
Views
3,979
Hi, i am trying to connect to s7300, but there are two methods 1 is async and the other is sync. what is the difference ? for a continous data...
Replies
0
Views
2,379
Hello all, I am working on a project utilizing an s7-1200 cpu and Tia Portal v17. I currently have an external PCB with some sensors on it (and...
Replies
1
Views
736
Hi PLCTalk Family, I am currently using S71200 for UDP communication in one of our projects. Recently due to the chip shortage looking out to...
Replies
3
Views
1,292
Hi all, I was trying to communicate FX3GE PLC with KEPServer / Kepware via UDP protocol but did not succeed. Does anybody has any solution or...
Replies
2
Views
1,065
Back
Top Bottom