1 Scope
This Part of GB/Z 20177 applies to a communication protocol for networked control systems. The protocol provides peer-to-peer communication for networked control and is suitable for implementing both peer-to-peer and master-slave control strategies.
This Part describes services in layers 2-7. In the layer 2 (data link layer) specification, it also describes the MAC sub-layer interface to the physical layer. The physical layer provides a choice of transmission media. The interface described in this specification supports multiple transmission media at the physical layer. In the layer 7 specification, it includes a description of the types of messages used by applications to exchange application and network management data.
This Part is applicable to the design, manufacture, integration, installation and maintenance of Automation Control System and products.
2 Normative References
The following normative documents contain provisions which, through reference in this text, constitute provisions of this Part of GB/Z 20177. For dated references, subsequent amendments to, or revisions of, any of these publications do not apply. However, parties to agreements based on this Part are encouraged to investigate the possibility of applying the most recent editions of the normative documents indicated below. For undated references, the latest edition of the normative document referred to applies.
GB/T 9387.1-1998 Information Technology - Open Systems Interconnection - Basic Reference Model - Part 1: The Basic Model (idt ISO/IEC 7498:1994)
GB/T 16262-1996 Information Processing System - Open Systems Interconnection - Specification of Abstract Syntax Notation One (ASN.1) (idt ISO/IEC 8824:1990)
GB/T 16263-1996 Information Processing System - Open Systems Interconnection - Specification of Basic Encoding Rules for Abstract Syntax Notation One (ASN.1) (idt ISO/IEC 8825:1990)
3 Terms and Definitions
Foreword I
Introduction II
1 Scope
2 Normative References
3 Terms and Definitions
4 Symbols and Abbreviations
4.1 Symbols and Graphical Representations
4.2 Abbreviations
5 Overview of Protocol Layering
6 MAC Sublayer
6.1 Service Provided
6.2 Interface to the Link Layer
6.3 Interface to the Physical Layer
6.4 MPDU Format
6.5 Predictive p-persistent CSMA - Overview Description
6.6 Idle Channel Detection
6.7 Randomizing
6.8 Backlog Estimation for Channel
6.9 Optional Priority
6.10 Optional Collision Detection
6.11 Beta1, Beta2 and Preamble Timings
7 Link Layer
7.1 Assumptions
7.2 Service Provided
7.3 CRC
7.4 Transmit Algorithm
7.5 Receive Algorithm
8 Network Layer
8.1 Assumptions
8.2 Service Provided
8.3 Service Interface
8.4 Internal Structuring of the Network Layer
8.5 NPDU Format
8.6 Address Recognition
8.7 Routers
8.8 Routing Algorithm
8.9 Learning Algorithm — Subnets
9 Transaction Control Sublayer
9.1 Assumptions
9.2 Service Provided
9.3 Service Interface
9.4 State Variables
9.5 Transaction Control Algorithm
10 Transport Layer
10.1 Assumptions
10.2 Service Provided
10.3 Service Interface
10.4 TPDU Types and Formats
10.5 Protocol Diagram
10.6 Transport Protocol State Variables
10.7 Send Algorithm
10.8 Receive Algorithm
10.9 Receive Transaction Record Pool Size and Configuration Engineering
11 Session Layer
11.1 Assumptions
11.2 Service Provided
11.3 Service Interface
11.4 Internal Structure of the Session Layer
11.5 SPDU Types and Formats
11.6 Protocol Timing Diagrams
11.7 Request-Response State Variables
11.8 Request-Response Protocol — Client Part
11.9 Request-Response Protocol — Server Part
11.10 Request-Response Protocol Timers
11.11 Authentication Protocol
11.12 Encryption Algorithm
11.13 Retries and the Role of the Checksum Function
11.14 Random Number Generation
11.15 Using Authentication
12 Presentation/Application Layer
12.1 Assumptions
12.2 Service Provided
12.3 Service Interface
12.4 APDU Types and Formats
12.5 Protocol Diagrams
12.6 Application Protocol State Variables
12.7 Request - Response Messaging in Offline State
12.8 Network Variables
12.9 Error Notification to the Application Program
13 Network Management & Diagnostics
13.1 Assumptions
13.2 Services Provided
13.3 Network Management and Diagnostics Application Structure
13.4 Node States
13.5 Using the Network Management Services
13.5.1 Addressing Considerations
13.5.2 Making Network Configuration Changes
13.5.3 Downloading an Application Program
13.5.4 Error Handling Conditions (Informative)
13.6 Using Router Network Management Commands
13.7 NMPDU Formats and Types
13.8 DPDU Types and Formats
Appendix A (Normative) Reference Implementation
A.1 Predictive CSMA Algorithm
A.2 LPDU Transmit Algorithm
A.3 LPDU Receive Algorithm
A.4 Routing Algorithm
A.5 Learning Algorithm
A.6 Transaction Control Algorithm
A.7 Network Layer Algorithm
A.8 TPDU and SPDU Send Algorithm with Authentication
A.9 Application Layer
A.10 Network Management Commands
A.11 Configuration Data Structures
A.12 Include Files for the Reference Implementation
A.13 Application Protocol State Variables and Address Recognition Structures
A.14 Query-id Data Structures
A.15 Respond to Query Data Structure
A.16 Update Domain Data Structures
A.17 Leave Domain Data Structures
A.18 Update Key Data Structures
A.19 Update Address Data Structures
A.20 Query Address Data Structures
A.21 Query NV Cnfg Data Structures
A.22 Update Group Address Data Structures
A.23 Query Domain Data Structures
A.24 Update Network Variable Configuration Data Structures
A.25 Set Node Mode Data Structures
A.26 Read Memory Data Structures
A.27 Write Memory Data Structures
A.28 Checksum Recalculate Data Structures
A.29 Install Command Data Structures
A.30 Memory Refresh Data Structures
A.31 Query SI Data Structures
A.32 NV Fetch Data Structures
A.33 Manual Service Request Message Data Structures
A.34 Product Query Data Structures
A.35 Router Mode Data Structures
A.36 Router Table Clear Group or Subnet Table Data Structures
A.37 Router Group or Subnet Download Data Structures
A.38 Router Group Forward Data Structures
A.39 Router Subnet Forward Data Structures
A.40 Router Group No-Forward Data Structures
A.41 Router Subnet No-Forward Data Structures
A.42 Group / Subnet Table Report Data Structures
A.43 Router Status Data Structures
A.44 Query Status Data Structures
A.45 Proxy Status Data Structures
A.46 Clear Status Data Structures
A.47 Query Transceiver Status Data Structures
Appendix B (Normative) Additional Data Structures
B.1 Fixed Read-Only Data Structures
B.2 Domain Table
B.3 Address Table
B.4 Network Variable Tables - Informative
B.5 Self-Identification Structures
B.6 Configuration Structure
B 7 Statistics Relative Structure
Appendix C (Informative) Behavioral Characteristics
C.1 Channel Capacity and Throughput
C.2 Network Metrics
C.3 Transaction Metrics
C.4 Boundary Conditions — Power-Up
C.5 Boundary Conditions — High Load
Appendix D (Normative) PDU Summary
Appendix E (Normative) Naming and Addressing
E.1 Address Types and Formats
E.2 Domains
E.3 Subnets and Nodes
E.4 Groups
E.5 Unique_Node_ID and Node Address Assignment
E.6 NPDU Addressing
1 Scope
This Part of GB/Z 20177 applies to a communication protocol for networked control systems. The protocol provides peer-to-peer communication for networked control and is suitable for implementing both peer-to-peer and master-slave control strategies.
This Part describes services in layers 2-7. In the layer 2 (data link layer) specification, it also describes the MAC sub-layer interface to the physical layer. The physical layer provides a choice of transmission media. The interface described in this specification supports multiple transmission media at the physical layer. In the layer 7 specification, it includes a description of the types of messages used by applications to exchange application and network management data.
This Part is applicable to the design, manufacture, integration, installation and maintenance of Automation Control System and products.
2 Normative References
The following normative documents contain provisions which, through reference in this text, constitute provisions of this Part of GB/Z 20177. For dated references, subsequent amendments to, or revisions of, any of these publications do not apply. However, parties to agreements based on this Part are encouraged to investigate the possibility of applying the most recent editions of the normative documents indicated below. For undated references, the latest edition of the normative document referred to applies.
GB/T 9387.1-1998 Information Technology - Open Systems Interconnection - Basic Reference Model - Part 1: The Basic Model (idt ISO/IEC 7498:1994)
GB/T 16262-1996 Information Processing System - Open Systems Interconnection - Specification of Abstract Syntax Notation One (ASN.1) (idt ISO/IEC 8824:1990)
GB/T 16263-1996 Information Processing System - Open Systems Interconnection - Specification of Basic Encoding Rules for Abstract Syntax Notation One (ASN.1) (idt ISO/IEC 8825:1990)
3 Terms and Definitions
Contents of GB/Z 20177.1-2006
Foreword I
Introduction II
1 Scope
2 Normative References
3 Terms and Definitions
4 Symbols and Abbreviations
4.1 Symbols and Graphical Representations
4.2 Abbreviations
5 Overview of Protocol Layering
6 MAC Sublayer
6.1 Service Provided
6.2 Interface to the Link Layer
6.3 Interface to the Physical Layer
6.4 MPDU Format
6.5 Predictive p-persistent CSMA - Overview Description
6.6 Idle Channel Detection
6.7 Randomizing
6.8 Backlog Estimation for Channel
6.9 Optional Priority
6.10 Optional Collision Detection
6.11 Beta1, Beta2 and Preamble Timings
7 Link Layer
7.1 Assumptions
7.2 Service Provided
7.3 CRC
7.4 Transmit Algorithm
7.5 Receive Algorithm
8 Network Layer
8.1 Assumptions
8.2 Service Provided
8.3 Service Interface
8.4 Internal Structuring of the Network Layer
8.5 NPDU Format
8.6 Address Recognition
8.7 Routers
8.8 Routing Algorithm
8.9 Learning Algorithm — Subnets
9 Transaction Control Sublayer
9.1 Assumptions
9.2 Service Provided
9.3 Service Interface
9.4 State Variables
9.5 Transaction Control Algorithm
10 Transport Layer
10.1 Assumptions
10.2 Service Provided
10.3 Service Interface
10.4 TPDU Types and Formats
10.5 Protocol Diagram
10.6 Transport Protocol State Variables
10.7 Send Algorithm
10.8 Receive Algorithm
10.9 Receive Transaction Record Pool Size and Configuration Engineering
11 Session Layer
11.1 Assumptions
11.2 Service Provided
11.3 Service Interface
11.4 Internal Structure of the Session Layer
11.5 SPDU Types and Formats
11.6 Protocol Timing Diagrams
11.7 Request-Response State Variables
11.8 Request-Response Protocol — Client Part
11.9 Request-Response Protocol — Server Part
11.10 Request-Response Protocol Timers
11.11 Authentication Protocol
11.12 Encryption Algorithm
11.13 Retries and the Role of the Checksum Function
11.14 Random Number Generation
11.15 Using Authentication
12 Presentation/Application Layer
12.1 Assumptions
12.2 Service Provided
12.3 Service Interface
12.4 APDU Types and Formats
12.5 Protocol Diagrams
12.6 Application Protocol State Variables
12.7 Request - Response Messaging in Offline State
12.8 Network Variables
12.9 Error Notification to the Application Program
13 Network Management & Diagnostics
13.1 Assumptions
13.2 Services Provided
13.3 Network Management and Diagnostics Application Structure
13.4 Node States
13.5 Using the Network Management Services
13.5.1 Addressing Considerations
13.5.2 Making Network Configuration Changes
13.5.3 Downloading an Application Program
13.5.4 Error Handling Conditions (Informative)
13.6 Using Router Network Management Commands
13.7 NMPDU Formats and Types
13.8 DPDU Types and Formats
Appendix A (Normative) Reference Implementation
A.1 Predictive CSMA Algorithm
A.2 LPDU Transmit Algorithm
A.3 LPDU Receive Algorithm
A.4 Routing Algorithm
A.5 Learning Algorithm
A.6 Transaction Control Algorithm
A.7 Network Layer Algorithm
A.8 TPDU and SPDU Send Algorithm with Authentication
A.9 Application Layer
A.10 Network Management Commands
A.11 Configuration Data Structures
A.12 Include Files for the Reference Implementation
A.13 Application Protocol State Variables and Address Recognition Structures
A.14 Query-id Data Structures
A.15 Respond to Query Data Structure
A.16 Update Domain Data Structures
A.17 Leave Domain Data Structures
A.18 Update Key Data Structures
A.19 Update Address Data Structures
A.20 Query Address Data Structures
A.21 Query NV Cnfg Data Structures
A.22 Update Group Address Data Structures
A.23 Query Domain Data Structures
A.24 Update Network Variable Configuration Data Structures
A.25 Set Node Mode Data Structures
A.26 Read Memory Data Structures
A.27 Write Memory Data Structures
A.28 Checksum Recalculate Data Structures
A.29 Install Command Data Structures
A.30 Memory Refresh Data Structures
A.31 Query SI Data Structures
A.32 NV Fetch Data Structures
A.33 Manual Service Request Message Data Structures
A.34 Product Query Data Structures
A.35 Router Mode Data Structures
A.36 Router Table Clear Group or Subnet Table Data Structures
A.37 Router Group or Subnet Download Data Structures
A.38 Router Group Forward Data Structures
A.39 Router Subnet Forward Data Structures
A.40 Router Group No-Forward Data Structures
A.41 Router Subnet No-Forward Data Structures
A.42 Group / Subnet Table Report Data Structures
A.43 Router Status Data Structures
A.44 Query Status Data Structures
A.45 Proxy Status Data Structures
A.46 Clear Status Data Structures
A.47 Query Transceiver Status Data Structures
Appendix B (Normative) Additional Data Structures
B.1 Fixed Read-Only Data Structures
B.2 Domain Table
B.3 Address Table
B.4 Network Variable Tables - Informative
B.5 Self-Identification Structures
B.6 Configuration Structure
B 7 Statistics Relative Structure
Appendix C (Informative) Behavioral Characteristics
C.1 Channel Capacity and Throughput
C.2 Network Metrics
C.3 Transaction Metrics
C.4 Boundary Conditions — Power-Up
C.5 Boundary Conditions — High Load
Appendix D (Normative) PDU Summary
Appendix E (Normative) Naming and Addressing
E.1 Address Types and Formats
E.2 Domains
E.3 Subnets and Nodes
E.4 Groups
E.5 Unique_Node_ID and Node Address Assignment
E.6 NPDU Addressing