Está en la página 1de 11

21/03/2022

BIENVENIDOS

Instructor
PROTOCOLO DE Estudiantes
COMUNICACION DNP3 Nombres/Compañía/Posición
Experiencia en Sistemas de Potencia
Objetivos para este Curso

1 2

TEMARIO

Introducción Protocolo DNP3.


Fundamentos Protocolo DNP3.
INTRODUCCION PROTOCOLO
Protocolo DNP3 sobre TCP/IP y UDP/IP. DNP3
DNP3 Polling y opciones de comunicación.

3 4

CONCEPTOS GENERALES CONCEPTOS GENERALES

DNP ISO OSI IEC EPA RTU MTU IED


1 2 3 4 5 6 7 8
Distribution Network International Open Systems International Enhanced REMOTE TERMINAL MASTER TERMINAL INTELIGENT
Protocol (Protocolo de Standards Interconnections Electrotechnical Performance UNIT (Unidad UNIT (Unidad ELECTRONIC DEVICE
Red Distribuida). Organization (Interconexión de Commissions Architecture Terminal Remota). Terminal Maestra). (Dispositivo
(Organización Sistemas Abiertos). (Comisión (Arquitectura de Electrónico
Internacional de Electrotécnica Desempeño Inteligente).
Estándares). Internacional). Mejorado).

5 6

1
21/03/2022

CONCEPTOS GENERALES CONCEPTOS GENERALES

IEEE UCA APDU APCI ASDU TPDU LPDU LSDU


9 10 11 12 13 14 15 16
Institute of Electric Utility Communication Application Protocol Application Protocol Application Service Transport Protocol Link Protocol Data Link Service Data Unit
and Electronic Architecture Data Unit (Unidad de Control Information Data Unit (Unidad de Data Unit (Unidad de Unit (Unidad de (Unidad de servicio
Engineers (Instituto de (Arquitectura de protocolo para datos (Información de Servicio para datos protocolo para datos protocolo para nivel para nivel enlace de
Ingeniería Eléctricos y Comunicación para de aplicación, Control del protocolo de aplicación, de transporte, de enlace de datos, datos, frame).
Electrónicos). Empresas de Fragmentos). para aplicación, Fragmentos). segmetos). frame).
Servicios). Fragmentos).

7 8

CONCEPTOS GENERALES LINEA DE TIEMPO

CRC SCADA COS SOE DNP


Versión
DNP
Comité Técnico Definición de
Nivel 1 / Nivel 2
Procedimiento

17 18 19 20
2.0 Subconjuntos De Certificación

02 05 07 Documentación

8
Volúmenes
Cyclic Redudancy Supervisory Control Change Of State Sequence Of Events
Check (Verificación de and Data Acquisition (Cambio de Estado). (Secuencia de
Redundancia Cíclica). (Control, Supervisión Eventos). DNP DNP DNP/Ethernet
y Adquisición de
Versión Grupo de Usuarios Documentos
Datos).
1.0 3.0 De Conformidad

01 03 06

1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005

90´s Siglo XXI

9 10

DISTRIBUTION NETWORK PROTOCOL V3 VENTAJAS PROTOCOLO DNP3

DNP3 (acrónimo del Inglés Distribution Network Protocol, en su


ITEM ITEM ITEM ITEM
versión 3).
01 02 03 04
Protocolo Industrial para comunicaciones entre equipos
inteligentes (IED) y estaciones controladoras, componentes del GRUPO DE RESPALDO FLEXIBLE INDEPENDENCIA

sistema SCADA. USUARIOS DNP 3


Manejado y Administrado por Respaldo por el Comté Muy Flexible y ampliamente Tiene independencia de
Fabricantes, Empresas Técnico DNP3. Encargado del implementado. hardware, medio de
Ampliamente utilizado en el Sector Eléctrico (Difundido en EE.UU. Electricas, Integradores de
Sistemas y Desarrolladores de
Desarrollo y evolución del
protocolo.
comunicación, Sistema
operative y Fabricantes.

Y Canadá, de menor presencia en Europa). Software.

Utilizado también en otros rubros industriales (Agua, Gas, entre


otros).

11 12

2
21/03/2022

VENTAJAS PROTOCOLO DNP3

ITEM

02
ITEM

03
ITEM

04
ITEM

05
FUNDAMENTOS DEL
PROTOCOLO DNP3
RESPALDO FLEXIBLE INDEPENDENCIA ESCALABLE

Respaldo por el Comté Muy Flexible y ampliamente Tiene independencia de Es un protocol altamente
Técnico DNP3. Encargado del implementado. hardware, medio de escalable.
Desarrollo y evolución del comunicación, Sistema - Nivel 1 – IED sencillos
protocolo. operative y Fabricantes. (funcionalmente)
- Nivel 2 – IED y UTR de
mediano tamaño.
- Nivel 3 – UTR avanzada,
Concentradores de Datos y
Estaciones Maestras.

13 14

ARQUITECTURA DEL PROTOCOLO ARQUITECTURA DEL PROTOCOLO

Estructura del Protocolo: Estructura del Protocolo:


Origen Destino
Envío de
7. APLICACION Datos

6. PRESENTACION
5. SESION 4. APLICACIÓN
4. TRANSPORTE 3. TRANSPORTE APLICACIÓN APLICACIÓN
3. RED 2. ENLACE DE DATOS ENLACE DE DATOS ENLACE DE DATOS
2. ENLACE DE DATOS 1.FISICO FISICO FISICO
1. FISICA
Reducido a 3 Capas + Pseudo Capa de
Modelo ISO/OSI Transporte (Transporte + Red).

15 16

SECUENCIA DE SEPARACION DE MENSAJES CAPA FISICA


Mensaje de la capa de aplicación Descripción de capa física.
Primer Fragmento Segundo Fragmento

A A Capa de
FRAGMENTOS Aplicación
H H

SEGMENTOS T A T T T A T T Función de
Transporte
H H H H H H H H Originalmente diseñado para enlace
serial: Dnp3 sobre redes:
• 8 bits de datos. El grupo de usuarios dnp3 produce el
TRAMAS
L T A L T L T L T A L T L T Capa de Enlace • 1 bit de inicio, 1 bit de parada. estándar para la transmisión del
de Datos
H H H H H H H H H H H H H H
• Sin paridad. protocolo sobre la red.
• RS-232C nivel de voltaje y control de
Secuencia de Transmisión señales.

17 18

3
21/03/2022

CAPA FISICA EJERCICIO

Servicios provenidos por la capa Configure los parámetros del enlace serial tanto en el
física:
 Conectado (Connect).
SEL-351A y SEL-3530.
 Desconectado (Disconnect).
 Enviado (Send).
 Recibido (Receive).
 Estado (Status).

19 20

CAPA DE ENLACE DE DATOS CAPA DE ENLACE DE DATOS


Bloque 0 Bloque 1 Bloque n
Los mensajes DNP3 a nivel de enlace se encuentran en
bloques 292 bytes (máximo) denominados Tramas. INICIO MSG
0x05 0x64
LON CCF
DESTINO
LSB MSB
FUENTE
LSB MSB LSB
CRC
MSB
DATOS
LSB
CRC
MSB
DATOS
LSB
CRC
MSB

El formato de trama es similar al FT3, si bien presenta ciertas


diferencias. Encabezado del Mensaje de
longitud Fija 10 Bytes
Cuerpo del Mensaje de longitud
Variable 0 – 282 Bytes

Una trama DNP3 consta de tres bloques bien diferenciados: • 2 bytes de inicio (start bytes), cuyo valor es fijo. 0x05 (valor en hexadecimal) para el primero y 0x64 para el
Cabecera DNP3, datos y CRC. segundo.
• 1 byte con el tamaño de la trama. Este valor no tiene en cuenta ni la cabecera, ni los CRC.
• 1 byte con el código de control, que permite fijar los servicios del nivel de enlace, el sentido del flujo, etc.
• 2 bytes con la dirección de destino.
• 2 bytes con la dirección de origen.
• 2 bytes de CRC.

21 22

CAPA DE ENLACE DE DATOS CAPA DE ENLACE DE DATOS

Código de Control (Control Byte). CODE Primario a Secundario (Descripción)


0 Reset Link.
RX TX
1 Reset Users Process.
2 Test Link.

INICIO MSG DESTINO FUENTE CRC 3 User Data – Confirm Expected.


LON CCF
0x05 0x64 LSB MSB LSB MSB LSB MSB 4 User Data – No Confirm.
INICIO MSG DESTINO FUENTE CRC
9 Request Link Status. Formato LON CCF
0x05 0x64 LSB MSB LSB MSB LSB MSB

CODE Secundario a Primario (Descripción) Primario 05 64 05 C0 0001 000C CFA0 Reseteo de Enlace al
DIR PRM
FCB FCV
FUNCTION CODE
0 Confirm - ACK. Iniciar la comunicación.
RES DFC
1 Confirm - NACK. Secundario 05 64 05 00 000C 0001 FDE9
Bit 7 6 5 4 3 2 1 0
11 Respond – Link Status.
14 Link Not Functioning.
15 Link Not Used.

23 24

4
21/03/2022

PSEUDO CAPA DE TRANSPORTE CAPA DE APLICACION DNP

TSDV
DATOS

TPDU
DATOS DATOS DATOS

1 249 1 249 1 249

CRC CRC CRC


LPDU DATOS DATOS DATOS
LSB MSB LSB MSB LSB MSB
10 250 + 32 10 250 + 32 10 250 + 32

25 26

CAPA DE APLICACION CAPA DE APLICACION


APDU ASDU
Datos de Aplicación de Usuario
2–4 0 – 2046/2044
Datos de aplicación de usuario
DATOS
pueden ser de cualquier tamaño. RESQUET HEADER RESPONSE HEADER

1 1 1 1 2
ASDU ASDU
DATOS DATOS CODE GENERAL TYPE Function CODE GENERAL TYPE Function
0 Transfer Function. Confirm 0 Response Function. Confirm
1 Read 129 Read
2 Write 130 Unsolicited
Message.
APDU DATOS DATOS Tamaño Máximo: 2048 Bytes 3–6 Control Function.
7 – 12 Freeze Function.
13 – 18 Application Control Function.
19 – 22 Configuration Function.
23 Time Synchronisation.
TSDV DATOS 24 – 128 Reserved.

27 28

CAPA DE APLICACION CAPA DE APLICACION


APDU ASDU
Códigos de Función 2–4 0 – 2046/2044

RESQUET HEADER RESPONSE HEADER


CODE Function Action Response
0 Confirm Message Fragment confirmation. No further response required. 1 1 1 1 2
Used by both request and responses.
1 Read Respond with requested data objects. PRIMER BYTE SEGUNDO BYTE

2 Write Store specified data objects in outstation. Respond with status of operation.
Indicaciones
3 Select Select or arm points, but do not produce any control action, Respond with the status of the selected control points. BIT MEANING WHEN SET BIT MEANING WHEN SET Internas
or change of setpoint. The Operate function
0 All Stations message recieved 0 Function code not implemented
code must be subsequently received to activate these
outputs. 1 Class 1 data available 1 Requested objects unknow
4 Operate Set or produce the output actions on the points previously Respond with the status of the control points following 2 Class 2 data available 2 Parameters invalid
selected by the Select function. action.
3 Class 3 data available 3 Buffer overflow
5 Direct Operate Select and operate the specified outputs or control points. Respond with the status of the control points following
4 Time synchronisation required 4 Operation already in progress
action.
5 Points in Local 5 Corrupt configuration
6 Direct Operate, no Select and operate the specified outputs or control points. No response message to be sent.
Ack 6 Device trouble 6 Reserved (0)
7 Device restart 7 Reserved (0)

29 30

5
21/03/2022

CAPA DE APLICACION CAPA DE APLICACION


APDU ASDU
Clasificación de Grupos:
0 – 2046/2044
2–4

Rango de Grupo Descripción de Objetos de Grupo


0-9 Objetos Entradas Binarias.
OBJECT HEADER DATA OBJECTS OBJECT HEADER DATA OBJECTS OBJECT HEADER DATA OBJECTS
3 – 11 3 – 11 3 – 11 10-19 Objeto Salidas Binarias.
20-29 Objetos Contadores.
30-39 Objetos Entradas Analógicas.
OBJECT QUALIFIER 40-49 Objetos Salidas Analógicas.
2 1 0-8
50-59 Objetos de Tiempo.
60-69 Objetos de Clases.
OBJECT GROUP OBJECT VARIATION 70-79 Objetos de Archivos.
1 1 80-89 Objetos de Equipos.
90-99 Objetos de Aplicación.
100 + Objetos numéricos alternos.

31 32

Binary Input Objects Binary Output Objects


Binary Input Static Data (Object 1) Binary Output Status (Object 10)
Var 1 = Binary Input Read Status of Binary Outputs
Var 2 = Binary Input with Status Control Block (Object 12)
Binary Input Event Objects (Object 2) Var 1 = Control Relay Output Block
Var 1 = Binary Input Change without Time Function Codes Supported
Var 2 = Binary Input Change with Time 03 – Select & 04 – Operate = SBO
Var 3 = Binary Input Change with Relative Time 05 Direct Operate
06 Direct Operate, No Ack

33 34

Binary Counters Frozen Counters


 Binary Counters (Object 20)  Frozen Counter (Object 21)
 Obj 20, Var 1 = 32-Bit Binary Counter  Obj 21, Var 1 = 32-Bit Frozen Counter
 Obj 20, Var 2 = 16-Bit Binary Counter  Obj 21, Var 2 = 16-Bit Frozen Counter
 Obj 20, Var 3 = 32-Bit Delta Counter  Obj 21, Var 3 = 32-Bit Frozen Delta Counter
 Obj 20, Var 4 = 16-Bit Delta Counter  Obj 21, Var 4 = 16-Bit Frozen Delta Counter
 Obj 20, Var 5 = 32-Bit Binary Counter w/o Flag  Obj 21, Var 5 to 8 = Frozen Counters with Time of
 Obj 20, Var 6 = 16-Bit Binary Counter w/o Flag Freeze
 Obj 20, Var 7 =32-Bit Delta Counter w/o Flag  Obj 21, Var 9 to 12 = Frozen Counters w/o Flag
 Obj 20, Var 8 = 16-Bit Delta Counter w/o Flag

35 36

6
21/03/2022

Counter Change Events Frozen Counter Events


 Counter Change Event (Object 22)  Frozen Counter Event (Object 23)
 Obj 22, Var 1 = 32-Bit Counter Change w/o Time  Obj 23, Var 1 = 32-Bit Frozen Counter Event w/o Time
 Obj 22, Var 2 = 16-Bit Counter Change w/o Time  Obj 23, Var 2 = 16-Bit Frozen Counter Event w/o Time
 Obj 22, Var 3 = 32-Bit Delta Counter Change w/o Time  Obj 23, Var 3 = 32-Bit Frozen Delta Counter Event w/o Time
 Obj 22, Var 4 = 16-Bit Delta Counter Change w/o Time  Obj 23, Var 4 = 16-Bit Frozen Delta Counter Event w/o Time
 Obj 22, Var 5 = 32-Bit Binary Counter Change with Time  Obj 23, Var 5 = 32-Bit Frozen Counter Event with Time
 Obj 22, Var 6 = 16-Bit Binary Counter Change with Time  Obj 23, Var 6 = 16-Bit Frozen Counter Event with Time
 Obj 22, Var 7 = 32-Bit Delta Counter Change with Time  Obj 23, Var 7 = 32-Bit Frozen Delta Counter Event with Time
 Obj 22, Var 8 = 16-Bit Delta Counter Change with Time  Obj 23, Var 8 = 16-Bit Frozen Delta Counter Event with Time

37 38

Analog Objects Analog Objects


 Analog Input (Object 30)  Frozen Analog Input (Object 31)
 Obj 30, Var 1 = 32-Bit Analog Input  Obj 31, Var 1 = 32-Bit Frozen Analog Input
 Obj 30, Var 2 = 16-Bit Analog Input  Obj 31, Var 2 = 16-Bit Frozen Analog Input
 Obj 30, Var 3 = 32-Bit Analog Input w/o Flag  Obj 31, Var 3 = 32-Bit Frozen Analog Input with Time
 Obj 30, Var 4 = 16-Bit Analog Input w/o Flag  Obj 31, Var 4 = 16-Bit Frozen Analog Input with Time
 Obj 30, Var 5 = Short Floating Analog Input  Obj 31, Var 5 = 32-Bit Frozen Analog Input w/o Flag
 Obj 30, Var 6 = Long Floating Analog Input  Obj 31, Var 6 = 16-Bit Frozen Analog Input w/o Flag
 Obj 30, Var 7 = Extended Floating Analog Input  Obj 31, Var 7 = Short Floating Frozen Analog Input
 Obj 31, Var 8 = Long Floating Frozen Analog Input
 Obj 31, Var 9 = Extended Floating Frozen Analog Input

39 40

Analog Change Events Frozen Analog Change Events


 Analog Change Event (Object 32)  Frozen Analog Change Event (Object 33)
 Obj 32, Var 1 = 32-Bit Analog Change Event w/o Time  Obj 33, Var 1 = 32-Bit Analog Change Event w/o Time
 Obj 32, Var 2 = 16-Bit Analog Change Event w/o Time  Obj 33, Var 2 = 16-Bit Analog Change Event w/o Time
 Obj 32, Var 3 = 32-Bit Analog Change Event with Time  Obj 33, Var 3 = 32-Bit Analog Change Event with Time
 Obj 32, Var 4 = 16-Bit Analog Change Event with Time  Obj 33, Var 4 = 16-Bit Analog Change Event with Time
 Obj 32, Var 5 = Short Floating Analog Input  Obj 33, Var 5 = Short Floating Analog Input
 Obj 32, Var 6 = Long Floating Analog Input  Obj 33, Var 6 = Long Floating Analog Input
 Obj 32, Var 7 = Extended Floating Analog Input  Obj 33, Var 7 = Extended Floating Analog Input

41 42

7
21/03/2022

Analog Output Objects Analog Output Objects


 Analog Output Status (Object 40)  Analog Output Block (Object 41)
 Obj 40, Var 1 = 32-Bit Analog Output Status  Obj 41, Var 1 = 32-Bit Analog Output Block
 Obj 40, Var 2 = 16-Bit Analog Output Status  Obj 41, Var 2 = 16-Bit Analog Output Block
 Obj 40, Var 3 = Short Floating  Obj 41, Var 3 = Short Floating Analog Output
 Obj 40, Var 4 = Long Floating  Obj 41, Var 4 = Long Floating Analog Output
 Obj 41, Var 5 = Extended Floating Analog Output
 Obj 40, Var 5 = Extended Floating
 Function Codes Supported
03 – Select & 04 – Operate = SBO
05 Direct Operate
06 Direct Operate, No Ack

43 44

Time and Date Objects Time and Date Objects


 Time and Date (Object 50) Time Delay (Object 52)
READ and WRITE Time and Date (6 bytes long)
 Obj 50, Var 1 = Time and Date
To determine how long it takes for a
 Obj 50, Var 2 = Time and Date with Interval response to come back. Measures the delay.
 Obj 50, Var 3 = Time and Date to last Recorded Time Obj 52, Var 1 = Time Delay Coarse (1 second
 Time and Date CTO (Object 51) precision)
Only for Object 2 Var 3 – Binary input events with relative time Obj 52, Var 2 = Time Delay Fine (1 milisecond
 Obj 51, Var 1 = Time and Date CTO
precision)
 Obj 51, Var 2 = Unsynchronized Time and Date CTO

45 46

Class Data Objects CAPA DE APLICACION


 Class Data (Object 60)
 Obj 60, Var 1 = Class 0 Data } Static Poll Punto o Variable: Entrada
digital
Salida
analógica

 Obj 60, Var 2 = Class 1 Data Integrity Poll  Cada punto es identificable (Index 8 Salida digital 8
7 7
 Obj 60, Var 3 = Class 2 Data Event Poll + Grupo). 6 Entrada 6 6
5 analógica 5 5
Entrada
 Obj 60, Var 4 = Class 3 Data  Un punto usualmente es un valor 4 4 Contador 4 4
3 3
estático. 3
2
3
2
3
2 2 2
1 1
 Los puntos pueden generar evento. 1 1 1
 Class 0 Data – Static Data Objects 0 0 0 0 0

 El algunos casos los equipos


 Objects 1, 10, 20, 21, 30, 31, 40 soportan la transmisión de archivos CAPA DE USUARIO
 Class 1, 2, and 3 Data – Event Data Object Buffers y otros tipo de datos. CAPA DE APLICACION DNP3
 Objects 2, 22, 23, 32, 33 FUNCION TRANSPORTE
CAPA DE ENLACE DE DATOS DNP3

47 48

8
21/03/2022

METODOS DE INTEGRACION

INTERROGACION INTERROGACION

DNP3 POLLING Y OPCIONES Tipo Estática. Interrogación de Reporte por


Excepción.

DE COMUNICACION MÉTODOS
ACCESO
INFORMACIO N

REPORTE SIN INTERROGACION


Reporte por Excepción No Sin Interrogación - Silencioso.
Solicitado.

49 50

METODOS DE INTEGRACION METODOS DE INTEGRACION

INTERROGACION INTERROGACION
Tipo Estática. Interrogación de Reporte por
Excepción.

El maestro interroga por El dispositivo esclavo reporta


eventos disponibles. los datos de los eventos
disponibles.

TX TX

RX RX
El dispositivo Maestro El dispositivo esclavo El maestro realiza El esclavo responde la
Solicita los datos de algún responde con todos los interrogaciones periódicas pregunta con todos los datos
tipo de objeto. datos del objeto solicitado. por la clase 0. de clase 0.

51 52

METODOS DE INTEGRACION METODOS DE INTEGRACION

El maestro realiza de manera El dispositivo esclavo


ocasional interrogaciones responde con todos los
por datos de la clase 0. datos de la clase 0.

TX

RX RX
El dispositivo Esclavo reporta El maestro NO realiza El dispositivo Esclavo reporta de
automáticamente la interrogaciones a los manera automática (no
información de Eventos. esclavos. solicitada) la información de
Eventos.

REPORTE SIN INTERROGACION


Reporte por Excepción No Sin Interrogación - Silencioso.
Solicitado.

53 54

9
21/03/2022

FLEXIBLE SOLUCION CON DNP3


C.C.
HMI

PROTOCOLO DNP3 SOBRE SWITCH

TCP/IP Y UDP/IP CDS

Dispositivos Electrónicos Inteligentes

55 56

INTERNET PROTOCOL ENCAPSULAMIENTO DNP3 SOBRE TCP/IP

UNIDAD DE DATO

Fragmento: 2 – 2048 Bytes


APLICACION DNP APLICATION APDU
TRANSPORTE TCP UDP
DNP PROTOCOL DNP PSEUDO-TRANSPORT TPDU Max: 250 Bytes (249 Data Byte)
RED IP
DNP DATA LINK LPDU Trama: 292 Bytes
ENLACE DE DATOS ETHERNET IEEE 802.3
TRANSPORTE TCP UDP TCP SEGMENTO
TCP Header: 20 - 24 Bytes
TCP/IP PROTOCOL UDP Header: 8 Bytes
RED IP
IP DATAGRAMA IP Header: 20 - 24 Bytes
LAN Max. Size Normally 576 bytes
ENLACE DE DATOS ETHERNET IEEE 802.3

LAN

57 58

EJERCICIO EJERCICIO

Configure los parámetros del enlace ethernet tanto en el Integre el SEL-2440 hacia el SEL-3555 enviando
SEL-2440 y SEL-3555. principalmente los siguientes valores a través del enlace
ethernet:

Frecuencia.
Estados de los LEDs Frontales.

59 60

10
21/03/2022

EJERCICIO

Capture la trama de información con la herramienta del


AcSELerator RTAC y analice los resultados según el
encapsulamiento de datos en los capas del modelo
ISO/OSI.

61

11

También podría gustarte

  • Tabla
    Tabla
    Documento119 páginas
    Tabla
    Jose Antonio Ramirez Campana
    Aún no hay calificaciones
  • Silabo Casas
    Silabo Casas
    Documento2 páginas
    Silabo Casas
    Jose Antonio Ramirez Campana
    Aún no hay calificaciones
  • Grupos (Exposiciones) Rev1
    Grupos (Exposiciones) Rev1
    Documento7 páginas
    Grupos (Exposiciones) Rev1
    Jose Antonio Ramirez Campana
    Aún no hay calificaciones
  • Grupos
    Grupos
    Documento2 páginas
    Grupos
    Jose Antonio Ramirez Campana
    Aún no hay calificaciones
  • Carta Poder
    Carta Poder
    Documento1 página
    Carta Poder
    Jose Antonio Ramirez Campana
    Aún no hay calificaciones