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.

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

The First Packet<br />

The Second Packet<br />

A to B 1 B to A 0<br />

From Pri/Sec 1 From Pri/Sec 1 (1= Primary, 0 = Secondary)<br />

FCB / Res 0 FCB / Res 0<br />

FCV/ Ignored 0 FCV/ Ignored 0<br />

First bit of Function 0 First bit of Function 0<br />

1 1<br />

0 0<br />

0 0<br />

User Data (no Confirm)<br />

User Data (no Confirm)<br />

Next we look at Block 1 of Packet 1 (Transport + Application Data)<br />

C0C1153C02063C03063C0406<br />

has been already removed.<br />

Note that since this Block is 16 bytes or less the CRC<br />

The first byte on the left is the Transport Header (C0).<br />

C0 = 1100 0000<br />

FIN FIR Sequence<br />

1 1 00 0000<br />

This tells us that this packet is the first <strong>and</strong> last packet in this sequence <strong>and</strong> therefore it is<br />

not fragmented. We then know that the rest of the packet is an Application Layer Block.<br />

C1153C02063C03063C0406<br />

The first byte on the left is the Application header (C1).<br />

C1 = 1100 0001<br />

FIR FIN Confirmation Sequence<br />

1 1 0 0 0001<br />

This tells us that this packet is the first <strong>and</strong> last packet in this sequence <strong>and</strong> therefore it is<br />

not fragmented at the Application Layer level. It also tells us that this packet is sequence<br />

number 1.<br />

153C02063C03063C0406<br />

The next byte on the left (15) tells us that this packet is sending a function code that disables<br />

the unsolicited message capabilities of the slave. This can be seen under Func. Code under<br />

Request Header under Message Header under APCI on the DNP APDU sheet. (0X15)<br />

3C02063C03063C0406

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

Saved successfully!

Ooh no, something went wrong!