Differences Between Tcp And Udp - Omron CJ1W-ETN11 Operation Manual

Sysmac cs/cj series ethernet units
Hide thumbs Also See for CJ1W-ETN11:
Table of Contents

Advertisement

Overview
6-1-5

Differences between TCP and UDP

TCP Communications
1,2,3...
Send
request
made.
Local node
UDP Communications
Send
request
made.
Local node
106
quently, port numbers 1024 and above should be used for socket services.
The Ethernet Unit does not support port #0.
Some port numbers over 1024 may be reserved on some workstations (for
example, the X-window server is port #6000). Do not use port numbers that
are already reserved for other processes.
The setting status of the UNIX workstation port numbers can be checked in /
etc/services.
There are differences in the socket services between TCP and UDP.
The following procedure is followed each time data is transmitted to ensure
that the data arrives normally at the remote node:
1. The remote node returns ACK when data is received normally.
2. The local node sends the next data after it receives ACK, or it resends the
same data if ACK is not returned within the specified time.
Transmitted data
ACK (acknowledge)
Resent data
With the TCP protocol, the remote IP address and remote TCP port number
are specified when an open request is made for a socket. When a send
request is made, the number of bytes to send and the send data are specified.
When a receive request is made, the number of bytes to receive is specified.
With the TCP protocol, communications with another remote device are not
possible until the socket that was opened has been closed.
Data is simply sent to the remote. Unlike TCP, the reception of data is not
checked and data is not resent. To increase communication reliability, data
resends must be programmed by the user in user application.
Transmitted data
ACK (acknowledge: only when
processed by application)
With the UDP protocol, the remote IP address and remote TCP port number
are not specified when an open request is made for a socket. When a send
request is made, the remote IP address, the remote TCP port number, the
number of bytes to send, and the send data are specified. When a receive
request is made, the number of bytes to receive is specified. (In addition to the
received data, the source IP address and source UDP port number are stored
in the response data).
With the UDP protocol, communications with another remote device are pos-
sible even if the socket that was opened is not closed.
Section 6-1
Receive
request
made.
Remote node
Receive
request
made.
Remote node

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-etn11Cs/cj seriesCs1w-etn01W343-e1-07

Table of Contents