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.

8.4 Data link layer<br />

Fundamentals of IEC <strong>60870</strong>-5 187<br />

The data link layer is responsible for the passing of data across the communications<br />

channel, <strong>and</strong> ensuring that the data is received in full <strong>and</strong> uncorrupted by errors. It does<br />

this using a unit of data known as a frame, combined with procedures to govern its transmission<br />

<strong>and</strong> reception. The frame is made up of an amount of data that is large enough to<br />

carry control information such as a destination address, checking information used to<br />

detect errors, <strong>and</strong> a payload of data, if required. It is also an amount of data that is not<br />

too large, so that a transmission error will not cause the loss of too much data, or so that<br />

timing discrepancies between transmitter <strong>and</strong> receiver can lead to loss of synchronism.<br />

IEC <strong>60870</strong>-5-101, or T101, specifies the operation of the data link layer by referring<br />

to <strong>and</strong> making selections from the st<strong>and</strong>ards identified in Table 8.1, repeated in the<br />

following extract:<br />

Link Layer IEC <strong>60870</strong>-5-2 Transmission procedures<br />

IEC <strong>60870</strong>-5-1<br />

Frame formats<br />

In this section the operation of the data link layer is explained in detail, commencing<br />

with the data frame structure <strong>and</strong> then looking at the transmission procedures.<br />

8.4.1 Frame format<br />

The frame format used by T101 is referred to as the FT1.2 format. There are two forms of<br />

this, one of fixed length <strong>and</strong> the other of variable length. The fixed length frame is<br />

restricted to use for frames carrying no user data, <strong>and</strong> therefore is used only for data link<br />

control comm<strong>and</strong> <strong>and</strong> acknowledgment frames. In addition to the fixed <strong>and</strong> variable length<br />

frames, there is a ‘single control character’ frame which consists of a single byte. This may<br />

be used for acknowledgment only.<br />

These frames are shown in Figures 8.5 <strong>and</strong> 8.6. Figure 8.5 shows the actual bit pattern<br />

that would be seen on the physical channel, interpreted from left to right. This representation<br />

includes the start <strong>and</strong> stop bits that are transmitted with every byte or octet of the<br />

frame. The overall frame construction is shown in Figure 8.6. This does not represent the<br />

bit pattern, but shows only the information content down to the octet level. For consistency<br />

with the applicable st<strong>and</strong>ards, these are presented vertically in octet order. Thus, the first<br />

octet is shown at the top, <strong>and</strong> following octets are shown below. Clarification of the order<br />

of bits <strong>and</strong> octets is included in the following section.

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

Saved successfully!

Ooh no, something went wrong!