Chapter 5. TCP/IP protocol

Table of Contents

Introduction
TCP/IP protocol in automation systems
Internet Protocol
Subnetting and CIDR
ICMP
ARP
Transport layer protocols
TCP
TCP ports and Internet sockets
TCP over wireless
Debugging TCP/IP
UDP
Application layer protocols
Telnet and FTP
SMTP/POP3/IMAP4
HTTP
DHCP
DNS
RIP/OSPF
SNMP
CORBA and DCOM
Protocol encryption
TLS/SSL
SSH and SFTP
HTTPS
Industrial Control protocols on TCP/IP
Modbus over TCP/IP
DNP3 over TCP/IP
OPC and OPC UA
Industrial Ethernet

Objective

After you have completed this chapter you should:

Introduction

The TCP/IP communication stack (OSI levels 3 and 4) is at the heart of most modern industrial communication stacks and a solid understanding of the TCP/IP concept is also important for developing or configuring drivers and application layer software in SCADA systems.

Internet protocol suite is the set of communications protocols that implements the protocol stack on which the Internet and many commercial networks run. It is part of the TCP/IP protocol suite, which is named after two of the most important protocols in it: the Transmission Control Protocol (TCP) and the Internet Protocol (IP), which were also the first two networking protocols defined. Note that today's TCP/IP networking represents a synthesis of two developments that began in the 1970's, namely LAN (Local Area Networks) and the Internet, both of which have revolutionized computing.

The Internet protocol suite - like many protocol suites - can be viewed as a set of layers and can be compared to the OSI model. Each layer solves a set of problems involving the transmission of data, and provides a well-defined service to the upper layer protocols based on using services from some lower layers. Upper layers are logically closer to the user and deal with more abstract data, relying on lower layer protocols to translate data into forms that can eventually be physically transmitted. The original TCP/IP reference model consists (see Figure 5.1, “The TCP/IP protocol stack”) of 4 layers, but has evolved into a 5-layer model.

Figure 5.1. The TCP/IP protocol stack

The TCP/IP protocol stack