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.

80 <strong>Practical</strong> Modern <strong>SCADA</strong> Protocols: DNP3, <strong>60870</strong>.5 <strong>and</strong> <strong>Related</strong> <strong>Systems</strong><br />

5.2.3 The pseudo-transport layer<br />

The APDU from the application layer may be referred to as the transport service data unit<br />

within the pseudo-transport layer. It is interpreted purely as data to be transported by the<br />

transport layer. The transport layer breaks the TSDU down into smaller units termed transport<br />

protocol data units or TPDUs. These are made up of a one byte header, followed by a<br />

maximum of 249 bytes of data.<br />

The overall size of the TPDUs, which is 250 bytes, was determined so that each TPDU<br />

will fit within one ‘frame’ or LPDU at the data link layer.<br />

5.2.4 The data link layer<br />

This layer takes the TPDUs from the pseudo-transport layer <strong>and</strong> adds a 10 byte header to<br />

each. As the data link layer is also responsible for providing error detection <strong>and</strong> correction<br />

functions, error checking codes are introduced here. A 16-bit cyclic redundancy code<br />

(CRC) is used. Each TPDU is converted to a frame of up to 292 bytes in length.<br />

It is worth noting at this point that the frame format is known as the FT3 frame format,<br />

which was originally described by IEC 870-5-1. This frame format represents a historical<br />

point of common ground between DNP3 <strong>and</strong> IEC 870-5. This frame format will be<br />

returned to in the next section.<br />

5.2.5 The physical layer<br />

The physical layer converts each frame into a bit stream over the physical media. In the<br />

original DNP3 documentation, a bit-serial asynchronous physical layer is specified. It calls<br />

for 8-bit data, 1 start bit, 1 stop bit, no parity, <strong>and</strong> RS-232C voltage levels <strong>and</strong> control<br />

signals.<br />

5.2.6 Summary of message buildup<br />

The buildup of DNP3 messages has been shown from a top-down perspective to have the<br />

following features:<br />

• Application functions may or may not require the passage of data<br />

• Comm<strong>and</strong>s will often require no data<br />

• The application layer parses the data into APDUs<br />

• The APDU maximum size is 2048 bytes<br />

• The pseudo transport layer parses the APDU into smaller TPDUs<br />

• TPDU maximum size is 250 bytes<br />

• The data link layer adds headers <strong>and</strong> CRCs to form the LPDU<br />

• LPDU maximum size is 292 bytes, of which 250 bytes are data<br />

In the following sections the detailed functioning of each of the model layers will be<br />

examined. Looking at the functionality of each layer it will be necessary to examine <strong>and</strong><br />

underst<strong>and</strong> the message header sections applied at each layer, <strong>and</strong> to see how the functions<br />

of the layer are performed using them.<br />

5.3 Physical layer<br />

The physical layer may be described in terms of the network topology as well as the<br />

characteristics of the communication paths.

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

Saved successfully!

Ooh no, something went wrong!