157
Precautions in Using Socket Services Section 6-9
6-9-5 Maximum Transmission Delays (Ignoring other Network Delays)
The transmission delays for socket service is calculated as the sum of the
communications processing times for both nodes.
Transmission delay = Remote node send processing time + Local node
receive processing time + Local node send processing time + Remote
node receive processing time
Calculate the maximum Ethernet Unit transmission delays for sending and
receiving using the following formulas. These times are the same for both
UDP and TCP.
■ Requesting UDP Socket Services by Manipulating Dedicated Control Bits
CS/CJ CPU Units
Transmission processing time = reception processing time = CPU Unit cycle
time
× 7 + number of send/receive bytes × 0.002 + 22 (ms)
CS-H/CJ-H CPU Units
Transmission processing time = reception processing time = CPU Unit cycle
time
× 7 + number of send/receive bytes × 0.001 + 17 (ms)
■ Requesting TCP Socket Services by Manipulating Dedicated Control Bits
CS/CJ CPU Units
Transmission processing time = reception processing time = CPU Unit cycle
time
× 7 + number of send/receive bytes × 0.002 + 29 (ms)
CS-H/CJ-H CPU Units
Transmission processing time = reception processing time = CPU Unit cycle
time
× 7 + number of send/receive bytes × 0.001 + 21 (ms)
■ Requesting UDP Socket Services by Executing
CMND(490)
CS/CJ CPU Units
transmission processing time = reception processing time = CPU Unit cycle
time
× 3 + number of send/receive bytes × 0.002 + A (ms) (See note 1.)
Note 1: When the CPU Unit cycle time is less than 2 ms, A=45, and when it is
2 ms or more, A = 67
CS-H/CJ-H CPU Units
transmission processing time = reception processing time = CPU Unit cycle
time
× 2 + number of send/receive bytes × 0.001 + A (ms) (See note 2.)
Note 2: When the CPU Unit cycle time is less than 2 ms, A = 26, and when it
is 2 ms or more, A = 52
■ TCP Socket Services Using
CMND(490)
CS/CJ CPU Units
Transmission processing time = Reception processing time = CPU Unit
cycle time
× 3 + number of bytes sent/received × 0.002 + A (ms) (See note
3.)
Note 3: When the CPU Unit cycle time is less than 2 ms, A = 46, and when it
is 2 ms or more, A = 68
CS-H/CJ-H CPU Units
transmission processing time = reception processing time = CPU Unit cycle
time
× 2 + number of bytes sent/received × 0.001+ A (ms) (See note 4.)