02.02.2018 Views

Practical_modern_SCADA_protocols_-_dnp3,_60870-5_and_Related_Systems

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

We see the control byte can be interpreted as such…<br />

C0 = 1100 0000 00 = 0000 0000 therefore…<br />

The First Packet<br />

The Second Packet<br />

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

From the Pri/Sec 1 From the Pri/Sec 0 (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 />

0 0<br />

0 0<br />

0 0<br />

Reset the Link<br />

Acknowledgement<br />

Notice: the two least significant bits denote the datalink functions (if any) of the packets.<br />

If a protocol analyzer was used to look at the previous packets it might interpret the data<br />

as such.<br />

Reset Link Comm<strong>and</strong> From 170 to 2<br />

Started at 30-Aug-101 15:13:1, protocol DNP 3.0 —><br />

[ 15:13:3] 05 64 05 C0 02 00 AA 00<<br />

Data Link Header [DIR] [PRM]<br />

Reset Link (Confirm) Length 5 Dest 2 Source 170 crc:A7 crc:6E <br />

05640500AA0002003F42<br />

Next we are going to look at a more complicated packet. The “disabling unsolicited<br />

response” packet is a very common packet that is used to put the DNP3 system into a<br />

master/slave only mode. This guarantees that there are no collisions within the system. It<br />

also makes the system more deterministic. (we know who talks to whom <strong>and</strong> when)<br />

Disabling Unsolicited Responses From the Slave:<br />

056411C40200AA0010D7C0C1153C02063C03063C0406944305640A44AA0002007FBAD<br />

AC1810000A393<br />

Again the first thing is to separate the data into packets.<br />

056411C40200AA0010D7C0C1153C02063C03063C04069443<br />

05640A44AA0002007FBADAC1810000A393

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

Saved successfully!

Ooh no, something went wrong!