02.02.2018 Views

Practical_modern_SCADA_protocols_-_dnp3,_60870-5_and_Related_Systems

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Ethernet <strong>and</strong> TCP/IP networks 337<br />

• Transmission control protocol (TCP), a connection-oriented protocol that<br />

offers a very reliable method of transferring a stream of data in byte format<br />

between applications (RFC 793)<br />

The process <strong>and</strong> application layer<br />

This layer provides the user or application programs with interfaces to the TCP/IP stack.<br />

Protocols at this level include (but are not limited to) file transfer protocol (FTP), trivial<br />

file transfer protocol (TFTP), simple mail transfer protocol (SMTP), telecommunications<br />

network (TELNET), post office protocol (POP3), remote procedure calls (RPC), remote<br />

login (RLOGIN), hypertext transfer protocol (HTTP) <strong>and</strong> network time protocol (NTP).<br />

12.12.2 Internet layer <strong>protocols</strong> (packet transport)<br />

This section will deal with the Internet protocol (IP) <strong>and</strong> the Internet control message<br />

protocol (ICMP).<br />

IP version 4 (IPv4)<br />

IP (RFC 791) is responsible for the delivery of packets (‘datagrams’) between hosts. It is<br />

analogous to the postal system, in that it forwards (routes) <strong>and</strong> delivers datagrams on the<br />

basis of IP addresses attached to the datagrams, in the same way the postal service would<br />

process a letter based on the postal address. The IP address is a 32-bit entity containing<br />

both the network address (the ‘zip code’) <strong>and</strong> the host address (the ‘street address’).<br />

IP also breaks up (fragments) datagrams that are too large. This is often necessary<br />

because the LANs <strong>and</strong> WANs that a datagram may have to traverse on its way to its<br />

destination may have different frame size limitations. For example, Ethernet can h<strong>and</strong>le<br />

1500 bytes but X.25 can h<strong>and</strong>le only 576 bytes. IP on the sending side will fragment<br />

a datagram if necessary, attach an IP header to each fragment, <strong>and</strong> send them off consecutively.<br />

On the receiving side, IP will again rebuild the original datagram.<br />

The IPv4 header<br />

The IP header is appended to the information that IP accepts from higher-level <strong>protocols</strong>,<br />

before passing it around the network. This information could, within itself, contain the<br />

headers appended by higher level <strong>protocols</strong> such as TCP. The header consists of at least<br />

five 32-bit (4 byte) ‘long words’ i.e. 20 bytes total <strong>and</strong> is made up as follows.<br />

Figure 12.14<br />

IPv4 header

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!