DNP3

1
DNP APDU Message Header Object Header Data Object Header Data DUI IO DUI Appl. Ctrl Func. Code Appl. Ctrl Func. Code Internal Indication Request Header Response Header Object Group Object Variation Qualifier Range 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 First Final Confirm Unsolicited Secuence 0X00 Confirm 0x01 Read 0x02 Write 0x03 Select 0x04 Operate 0x05 Direct operate 0x06 Direct Op. No Ack 0x07 Immediate Freeze 0x08 Immediate Freeze No Ack 0x09 Freeze and Clear 0x0A Freeze and Clear No Ack 0x0B Freeze and Time 0x0C Freeze and Time No Ack 0x0D Cold Restart 0x0E Warm Restart 0x0F Init Data to Defaults 0x10 Initialize Application 0x11 Start Application 0x12 Stop Application 0x13 Save Configuration 0x14 Enable Unsolicited Msgs 0x15 Disable Unsolicited Msgs 0x16 Assign Class 0x17 Delay Measurement 0x00 Confirm 0x81 Response 0x82 Unsolicited Response FIRST OCTET RESTART DEV TROUBLE LOCAL NEED TIME CLASS 3 CLASS 2 CLASS 1 ALL STATIONS 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 SECOND OCTET RESERVED RESERVED BAD CONFIG ALREADY EXEC BUFFER OVFL OUT OF RANGE OBJECT UNKNOWN BAD FUNCTION QUALIFIER CODE 0 8-BIT Start and Stop Indices 1 16-BIT Start and Stop Indices 2 32-BIT Start and Stop Indices 3 8-BIT Absolute Address Indentifiers 4 16-BIT Absolute Address Indentifiers 5 32-BIT Absolute Address Indentifiers 6 No Range Field 7 8-BIT Quantity 8 16-BIT Quantity 9 32-BIT Quantity 11 (0x0B) Variable Array INDEX SIZE (REQUEST ONLY- QUAL CODE=11) 0 Dataless Object, No Further Indexing 1-1 Octet Index or Indetifier Size 2-2 Octet Index or Indetifier Size 3-4 Octet Index or Indetifier Size INDEX SIZE (RESPONSE ONLY) 0 –No Index, Packed 1-1 Octet Index 2-2 Octet Index 3-4 Octet Index 4-1 Octet Index Size 5-2 Octet Index Size 6-4 Octet Index Size DNP= DISTRIBUITED NETWORK PROTOCOL APDU= APPLICATION PROTOCOL DATA UNIT APCI= APPLICATION PROTOCOL CONTROL INFORMATION DUI= DATA UNIT IDENTIFIER IO= INFORMATION OBJECT AC AC FC IIN FC

description

Curso

Transcript of DNP3

Page 1: DNP3

DNP APDU Message Header Object Header Data Object Header Data

APCI DUI IO DUI IO

Appl.Ctrl

Func.Code

Appl.Ctrl

Func.Code

Internal Indication

Request Header Response Header

ObjectGroup

ObjectVariation

Qualifier Range

7 6 5 4 3 2 1 07 6 5 4 3 2 1 0

Firs

tF

inal

Con

firm

Uns

olic

ited

Sec

uenc

e

0X00 Confirm0x01 Read0x02 Write0x03 Select0x04 Operate0x05 Direct operate0x06 Direct Op. No Ack0x07 Immediate Freeze0x08 Immediate Freeze No Ack0x09 Freeze and Clear0x0A Freeze and Clear No Ack0x0B Freeze and Time0x0C Freeze and Time No Ack0x0D Cold Restart0x0E Warm Restart0x0F Init Data to Defaults0x10 Initialize Application0x11 Start Application0x12 Stop Application0x13 Save Configuration0x14 Enable Unsolicited Msgs0x15 Disable Unsolicited Msgs0x16 Assign Class0x17 Delay Measurement

0x00 Confirm0x81 Response0x82 Unsolicited Response

FIRST OCTET

RE

ST

AR

TD

EV

TR

OU

BLE

LOC

AL

NE

ED

TIM

E

CLA

SS

3

CLA

SS

2

CLA

SS

1A

LL S

TA

TIO

NS

7 6 5 4 3 2 1 0

7 6 5 4 3 2 1 0SECOND OCTET

R

ES

ER

VE

D

RE

SE

RV

ED

B

AD

CO

NF

IG

ALR

EA

DY

EX

EC

BU

FF

ER

OV

FL

O

UT

OF

RA

NG

EO

BJE

CT

UN

KN

OW

N

BA

D F

UN

CT

ION

QUALIFIER CODE0 8-BIT Start and Stop Indices1 16-BIT Start and Stop Indices2 32-BIT Start and Stop Indices3 8-BIT Absolute Address Indentifiers4 16-BIT Absolute Address Indentifiers5 32-BIT Absolute Address Indentifiers6 No Range Field7 8-BIT Quantity8 16-BIT Quantity9 32-BIT Quantity11 (0x0B) Variable Array

INDEX SIZE(REQUEST ONLY- QUAL CODE=11)0 Dataless Object, No Further Indexing1-1 Octet Index or Indetifier Size2-2 Octet Index or Indetifier Size3-4 Octet Index or Indetifier Size

INDEX SIZE(RESPONSE ONLY)0 –No Index, Packed1-1 Octet Index2-2 Octet Index3-4 Octet Index4-1 Octet Index Size5-2 Octet Index Size6-4 Octet Index Size

DNP= DISTRIBUITED NETWORK PROTOCOL

APDU= APPLICATION PROTOCOL DATA UNIT

APCI= APPLICATION PROTOCOL CONTROL INFORMATION

DUI= DATA UNIT IDENTIFIER

IO= INFORMATION OBJECT

AC AC FC IINFC