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.

Appendix D: <strong>Practical</strong>s 509<br />

E2 81 00 00 50< Application Data Read response AC Fir:1 Fin:1 Con:1 Seq:02 [IIN<br />

Clear] [IIN Clear]<br />

Object 80 01 00 00 0F 00< [IIN Clear] 00< [IIN<br />

Clear] crc:E9 crc:8E —><br />

Setting The Time on the Slave:<br />

Set Time Request 170 to 2<br />

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

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

User Data (No Confirm) Length 18 Dest 2 Source 170 crc:40 crc:44<br />

C4< Transport Header Fin:1, Fir:1, Seq:04<br />

C4 02 32< Application Data Set Time request AC Fir:1 Fin:1 Con:0 Seq:04 Object 50<br />

01 07 01<br />

05 B7 05 A4 E8 00 crc:2B crc:B7 <br />

DNP3 Protocol Packet Analysis<br />

Objective:<br />

This information <strong>and</strong> practical is intended to provide the delegate with a practical underst<strong>and</strong>ing<br />

of the DNP3 packet by providing information specific to packet interpretation.<br />

Introduction:<br />

DNP3 packets use hexadecimal as a language. Sometimes these hex values need to be<br />

converted to decimal or binary values. The number of bytes in a datagram is an example<br />

of a value in a DNP3 packet that needs to be changed. In the packet, the length value is<br />

given in hexadecimal but we count in decimal, therefore the length needs to be converted<br />

to decimal. Sometimes binary data is needed as in the flag settings within the Application<br />

Layer portion of a packet. The eight bit hexadecimal values that represent the flag will<br />

need to be converted into binary. Another part of the structure of the packet is the positioning<br />

of the most significant <strong>and</strong> least significant bytes within two bytes of data. When<br />

data needs to be represented by two bytes, such as an address, the least significant byte is<br />

placed first <strong>and</strong> the most significant byte is place second. An example of this is…<br />

Address – AA00 Hex (as shown in the data stream)<br />

Address – 00AA Hex (as normally written, least significant byte first)<br />

Address – 170 Decimal (after converting to decimal)<br />

Or

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

Saved successfully!

Ooh no, something went wrong!