Basic Knowledge On Protocols; Differences Between Tcp And Udp - Omron NY532-5400 User Manual

Ny-series ipc machine controller industrial panel pc / industrial box pc
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

9-2

Basic Knowledge on Protocols

9-2-1

Differences between TCP and UDP

The TCP and UDP functions used on socket services differ as shown below.
TCP Communications
The following operations are performed each time data is sent to ensure that it reaches the destination
node. The destination node returns an acknowledgement (ACK) when data is received normally. The
sending node sends the next data after ACK is returned. It resends the same data if ACK is not
received within a certain length of time.
Send
request
Sending node
In TCP, the remote IP address and the remote TCP port number are specified when a request is made
to open a socket. The variables that store the data to send are specified when the send request is
made.
UDP Communications
Data is simply sent to the destination node and no acknowledgement or resends are performed like
they are for TCP. To increase the reliability of communications, the user application must perform data
resend processing.
Send
request
Sending node
In UDP, the remote IP address and the remote UDP port number are not specified when a request is
made to open a socket. The variables that store the remote IP address, the remote UDP port number,
and the data to send are specified when the send request is made. (The received data is stored in the
response data to specify which UDP port was used from which IP address.) Furthermore, once a
socket is open in UDP, communications with other remote nodes is possible even if the socket is not
closed.
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (W563)
Send data
Acknowledgement (ACK)
Resend data
If ACK is not returned
Send data
Acknowledgement (ACK)
(When ACK processing is performed by user application)
9 Socket Service
Receive
request
Destination node
Receive
request
Destination node
9
9-3

Advertisement

Table of Contents
loading

Table of Contents