- 浏览: 175803 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
行动与思考:
你好!请问GraphicString这个类型是什么类型呀?怎么 ...
ACSE-1 (osi 8650-1)abstract syntax -
gaozon:
楼主,你好,请问用lua能编写这样一种插件吗:我想更改网络层i ...
编程语言 Lua -
langzhe:
percept:profile("test.dat& ...
erlang r12 新增加Percept并发性能调测模块 -
mryufeng:
解释epmd等2进制协议是erlang的拿手呀
Use Erlang NIF to snoop, capture packets(in Windows XP), in OTP-R13B04 -
xumingyong:
GeoffCant在git clone git://git.e ...
Use Erlang NIF to snoop, capture packets(in Windows XP), in OTP-R13B04
MMS的ASN.1规定( 8825-1 BER 8825-2 PER )
8 7 6 5 4 3 2 1 + Length + Content
-------------------------------------------------------------------------
|Class |X | Tag | |
-------------------------------------------------------------------------
Class:
0 0 Universal
0 1 Application
1 0 Context-speciatic:指Type不需传送,双方约定 IMPLICIT
1 1 prviate
X :
0 ---- primitive -----指定:content without a Structure 只有 1个Length 1个Content
1 ---- contructed -----指定:content with addition structure
(如squence,squence of , implicit squence ,implicit squence of )
(Type , Length ,Content )任意个嵌套T-L-C
Tag:
ASN.1中Tag可能超过5个Bits,但是MMS中不会出现
Length: 指Content的长度。可以任意长度,
例子:
1.单个OCTET STRING (ASN.1 key word )
Type (= OCTET STRING), Length (= 5 Octets) and Content (= 24 65 4F EF F3 hex)
T L C
- - --------------
04 05 24 65 4F EF F3
2.有上下文中的[2]IMPLICIT OCTET STRING (多[2]IMPLICIT )
T L C
- - --------------
82 05 24 65 4F EF F3
--
1 0 0 0 0 0 1 0 05 24 65 4F EF F3
--- ---------
1 0 : Context-speciatic
0 0 0 1 0: 02 primitive , value = 2
3.有上下文中的[2] OCTET STRING (多个[2] 无关键字IMPLICIT )
T L C
-----------------------
T L C
- - --------------
82 07 04 05 24 65 4F EF F3
-----------------------> OCTET STRING
82:
1 0 1 0 0 0 1 0
--- - ---------
1 0 : Context-speciatic
1 : constructed
The DER are particularly advisable for the coding of short messages; 适合短消息
the CER are suitable for very long messages 适合长消息
The "A0" in the first line says that it is a MMS definition
(A = 1010 hex for the first four bits of the ASN.1 types - context-specific and constructed).
The "0" is the tag that contains the number in square brackets on the right.
数据映射到MMS
ICCP (具体到购买何种Block)
ICCP Server ObjectS
1.Association
2.Data Value
3.Data Set
4.Transfer Set
5.Account
6.Device
7.Program
8.Event
9.Conformance Blocks and Associated Objects
9-1 Block 1 (Periodic Power System Data)保护事项对象是可选的
Indication Point Object、 Status Points、Analog Points、Quality Codes
Time Stamp、COV Counter、Protection Equipment Event Object
9-2 Block 2 (Extended Data Set Condition Monitoring)
主要是用来report-by-exception, or RBE,以节省带宽。
9-3 Block 3 (Block Data Transfer)
主要用来如何利用ASN.1节省传送字节
9-4 Block 4 (Information Messages)
9-5 Block 5 (Device Control)
9-6 Block 6 (Program Control)
9-7 Block 7 (Event Reporting)
9-8 Block 8 (Additional User Objects)
9-9 Block 9 (Time Series Data)
Three TASE.2 operations are defined for use in managing associations: Associate, Conclude, and Abort
Associate:用在客户端,用来跟服务器建立联系。 Conclude, Abort服务器、客户端均可用。
数据传送机制
a) One Shot Data
b) Periodic Data
c) Event Data
d) Exception Data(如不变不送,... ... )
Direct-Control (NonSBO)noninterlocked
Select-Before-Operateinterlocked. (SBO) 带选择控制
包含tag的service or data
-------------------------------
尚未知道的tag?????
#define AARE_apdu1 0x61
#define AARQ_apdu0 0x60
#define ABRT_apdu4 0x64
#define RLRE_apdu3 0x63
#define RLRQ_apdu2 0x62
#define acse_result_diagnostic3 0xa3
#define acse_result2 0xa2
#define acse_service_user1 0xa1
Data ::= CHOICE {
-- context tag 0 is reserved for AccessResult
IF ( str1 )
array [1] IMPLICIT SEQUENCE OF Data,
ELSE
array [1] IMPLICIT NULL,
ENDIF
IF ( str2 )
structure [2] IMPLICIT SEQUENCE OF Data,
ELSE
structure [2] IMPLICIT NULL,
ENDIF
boolean [3] IMPLICIT BOOLEAN,
bit-string [4] IMPLICIT BIT STRING,
integer [5] IMPLICIT INTEGER,
unsigned [6] IMPLICIT INTEGER, -- shall not be negative
floating-point [7] IMPLICIT FloatingPoint,
-- [8] is reserved
octet-string [9] IMPLICIT OCTET STRING,
visible-string [10] IMPLICIT VisibleString,
generalized-time [11] IMPLICIT GeneralizedTime,
binary-time [12] IMPLICIT TimeOfDay,
bcd [13] IMPLICIT INTEGER, -- shall not be negative
booleanArray [14] IMPLICIT BIT STRING,
objId [15] IMPLICIT OBJECT IDENTIFIER,
...,
mMSString [16] IMPLICIT MMSString
}
GetNameList-Request ::= SEQUENCE {
objectClass [0] ObjectClass,
objectScope [1] CHOICE {
vmdSpecific [0] IMPLICIT NULL,
domainSpecific [1] IMPLICIT Identifier,
aaSpecific [2] IMPLICIT NULL },
continueAfter [2] IMPLICIT Identifier OPTIONAL }
GetNameList-Response ::= SEQUENCE {
listOfIdentifier [0] IMPLICIT SEQUENCE OF Identifier,
moreFollows [1] IMPLICIT BOOLEAN DEFAULT TRUE }
AcknowledgeEventNotification-Request ::= SEQUENCE {
eventEnrollmentName [0] ObjectName,
acknowledgedState [2] IMPLICIT EC-State,
timeOfAcknowledgedTransition [3] EventTime }
ConfirmedServiceRequest包含很多choice
flex ,yacc/bison 的脚本???
RFC1006
主要描述ISO 高4层利用TCP/IP的传输层功能来进行传输,实现ISO
具体描述各种原语TP和TCP的对应关系
参考文档:
Transport service [ISO8072]
Transport protocol [ISO8073]
In order to achieve good performance, the default TPDU size is
65531 octets, instead of 128 octets. In order to negotiate a
smaller (standard) TPDU size, the negotiation mechanism
specified in [ISO8073] is used
连接利用TCP 102端口
TCP TP最大区别:TCP包是流式的,没有边界
TP发送的是离散的对象(NSDUs).
TP0
TP4
initiate negotiation初始化需要商讨的东西(Vendor需发布的东西)
CASM
ASCE
发表评论
-
IEC60870-5-104集锦
2009-05-12 20:00 3218=============================== ... -
基于TCP/IP的IEC60870-5-104远动规约在电力系统中的应用
2009-05-12 15:45 2355摘 要 : ... -
基于TCP/IP的IEC60870-5-104远动通信协议
2009-05-12 15:36 4388介绍了国际电工委员会制定的基于TCP/IP网 络的调度主站和 ... -
Capture file header format
2009-04-21 16:44 1488截获包的文件头格式 (比如:wireshark, e ... -
TCP Socket类型
2009-04-20 20:19 1828对于许多初学者来说, ... -
ASN.1 of MMS related Protocol, totally 8 files
2009-04-17 12:56 1339Download Link: http://xu ... -
ACSE-1 (osi 8650-1)abstract syntax
2009-04-14 17:39 2326-- Module ACSE-1 (X.227:04/1995 ... -
MMS related Protocol structure & frame format
2009-04-14 12:19 4400Get from http://wiki.wireshark. ... -
MMS报文分析示例(三)
2009-04-14 10:43 3161Variable Management 1. ... -
MMS报文分析示例(二)
2009-04-14 10:39 3546VMD Management 1. Ident ... -
Triangle MicroWorks, Inc
2009-04-14 02:13 1504发现Triangle MicroWorks, Inc公司不愧为 ... -
MMS Syntax (ISO 9506-2:1999)
2009-04-13 13:27 1731Updated and fixed on 2006-08-11 ... -
MMS报文分析示例(一)
2009-04-13 12:08 3185Context Management 1. ... -
MMS abstract syntax (sisco)
2009-04-13 10:39 2308Get from http://www.sisconet. ... -
MMS->OSI MODEL
2009-04-12 22:36 1405Kema UniCA analyzer Provid ... -
MMS笔记(一)
2009-04-12 22:23 1869=============================== ... -
asn.1的ber编码
2009-04-12 22:06 4160ASN.1即抽象语法符号,用来定义应用程序数据和表示[wi ... -
MMS编码
2009-04-12 22:03 2385Telecontrol Application Service ... -
WireShark Lua Example
2009-04-11 16:42 2871From: http://wiki.wireshark.org ... -
使用lua编写Wireshark的dissector插件
2009-04-11 16:33 5729Dissector 插件可以用来对特定的协议内容进行分析展示 ...
相关推荐
GBT 16262.1-2006 信息技术 抽象语法记法一(ASN.1) 第2部分信息客体规范.PDF GBT 16262.1-2006 信息技术 抽象语法记法一(ASN.1) 第3部分约束规范.PDF GBT 16262.1-2006 信息技术 抽象语法记法一(ASN.1) 第4部分参数...
ASN.1-asn1c图.vsdx
ASN.1-C compiler, called CASNl, is designed and implemented to free the protocol implementors from the arduous work of translating protocol- defined data-types and constructing their encoders and ...
GBT 16262.2-2006 信息技术抽象语法记法一(ASN.1) 第2部分信息客体规范.pdf GBT 16262.3-2006 信息技术抽象语法记法一(ASN.1) 第3部分约束规范.pdf GBT 16262.4-2006 信息技术抽象语法记法一(ASN.1) 第 4部分ASN.1...
T-REC-X.680-200811-I!!PDF-E T-REC-X.681-200811-I!!PDF-E T-REC-X.682-200811-I!!PDF-E T-REC-X.683-200811-I!!PDF-E T-REC-X.690-200811-I!!PDF-E T-REC-X.691-200811-I!!PDF-E T-REC-X.692-200811-I!...PDF-E
required documentation, it still takes considerable time to understand ASN.1 and MMS. This document is intended to help boot-strap individuals in the educational process. In order to achieve an ...
学习ASN.1必备,国内外介绍ASN.1编码格式最全的文章
erlang-asn1-19.3.6.4-1.el7.x86_64.rpm
GBT 16262.2-2006 信息技术抽象语法记法一(ASN.1) 第2部分信息客体规范.pdf GBT 16262.3-2006 信息技术抽象语法记法一(ASN.1) 第3部分约束规范.pdf GBT 16262.4-2006 信息技术抽象语法记法一(ASN.1) 第 4部分ASN.1...
ASN.1 Reference card
是一个简单的查看asn1,ber编码格式文件的工具。
电子书,有关ASN。1的第一部分,基本记法规范,
GBT 16262.1-2006 信息技术 抽象语法记法一(ASN.1) 第2部分信息客体规范.PDF GBT 16262.1-2006 信息技术 抽象语法记法一(ASN.1) 第3部分约束规范.PDF GBT 16262.1-2006 信息技术 抽象语法记法一(ASN.1) 第4部分参数...
GB16262.2-2006-T 信息技术 抽象语法记法一(ASN.1) 第2部分 信息客体规范; GB16262.3-2006-T 信息技术 抽象语法记法一(ASN. 1)第3部分 约束规范; GB16262.4-2006-T 信息技术 抽象语法记法一(ASN.1) 第4部分 ASN.1...
此文属国家通信标准文件,详细描述了几种编码之间的区别,并重点对BER的编码规范进行了透彻的描述
GBT 16262.2-2006 信息技术抽象语法记法一(ASN.1) 第2部分信息客体规范.pdf GBT 16262.3-2006 信息技术抽象语法记法一(ASN.1) 第3部分约束规范.pdf GBT 16262.4-2006 信息技术抽象语法记法一(ASN.1) 第 4部分ASN.1...
CMP ASN.1,CMP标准的ASN1文件,用于解析CMP data数据。以ASN的格式显示。
GBT 16262.2-2006 信息技术抽象语法记法一(ASN.1) 第2部分信息客体规范.pdf GBT 16262.3-2006 信息技术抽象语法记法一(ASN.1) 第3部分约束规范.pdf GBT 16262.4-2006 信息技术抽象语法记法一(ASN.1) 第 4部分ASN.1...
asn1 - golang的Asn.1 BER 和 DER 编码库
资源来自pypi官网。 资源全名:asn1tools-0.78.0-py2.py3-none-any.whl