-
61850 MMS
相关协议
1. TPKT = RFC 1006
It
start with x03X00.
TPKT
is
used
to
on top
of TCP.
The two
major
points
missing
in
TCP
(compared
to
COTP)
are
the
TSAP
addressing
and
the
detection
of packet boundaries on the receiving
host.
Include Packet Header and
TPDU, The format of the TPDU is defined in
[ISO8073].
Note
that
only
TPDUs
formatted
for
transport
class
0
[TP0]
are
exchanged
(different
transport classes may use slightly
different formats).
0
1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+
| vrsn
| reserved | packet length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Header:version = always 3, 1 byte
TPDU = max. 65531. Based on the size of
the data transfer (DT) TPDU, this permits
a maximum TSDU size of 65524 octets.
2. COTP = ISO 8073 /
RFC983
Connection-oriented transport protocol
To
support expedited data, a non-standard TPDU, for
expedited data is permitted.
The
format used for the ED TPDU is nearly identical to
the format for the normal
data, DT,
TPDU. The only difference is that the value used
for the TPDU's code
is ED, not DT:
0 1 2
3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+
| header length |
code |credit |TPDU-NR and EOT| user data |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | ... | ... |
... |
| ... |
... | ... | ... |
| ... | ... |
... | ... |
+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+
TPDU Code
-------------------
CR = 0xE0, Connection Request
CC = 0xD0, Connection
Confirm
DR = 0x80, Disconnection
Request
DT = 0xF0, Data Transfer
ED = 0x70, Expected Data transfer
After
the
credit
field
(which
is
always
ZERO
on
output
and
ignored
on
input),
there
is
one additional field prior to the user data.
TPDU-NR and EOT = 8 bits
Bit 7 (the high-order bit, bit mask
1000 0000) indicates the end of a TSDU. All
other bits should be ZERO on output and
ignored on input.
The format of a CR or CC TPDU is:
0
1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+
| header length |
code | credit| destination reference |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| source reference | class |options|
variable data |
+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | ... |
... | ... |
|
... | ... | ... |
... |
| ... |
user data | ... | ... |
| ... | ... |
... | ... |
+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+
The format of a DR TPDU is:
0 1
2 3
0 1 2
3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7
8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| header length | code | credit|
destination reference |
+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+
| source
reference | reason | variable data |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | ... | ... |
... |
| ... |
... | ... | ... |
| ... | user data |
... | ... |
|
... | ... | ... |
... |
+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The format of a DT or ED TPDU is:
0
1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-++-+-+-+
| header length |
code | credit| TPDU-NR and EOT |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| user data | ... | ... |
... |
| ... |
... | ... | ... |
| ... | ... |
... | ... |
+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+
3.
ISO 8327-1
ISO Session
Protocol
Format
---------------------------
--------------------
SPDU
Type -- 1 byte
Length
-- 1 byte
Connect Accept
Item -- 8 bytes
Session
Requirement -- 4 bytes
Calling Session Selector -- 4 bytes
Called Session Selector --
4 bytes
Session User Data
-- ...
ISO Session
Protocol (ISO-SP) Messages:
Functional unit
SPDU code
SPDU name
Kernel
CN
OA
CDO
AC
RF
FN
DN
AB
AA
DT
PR
CONNECT
OVERFLOW ACCEPT
CONNECT DATA
OVERFLOW
ACCEPT
REFUSE
FINISH
DISCONNECT
ABORT
ABORT ACCEPT
DATA TRANSFER
PREPARE
Negotiated
release
NF
GT
PT
NOT
FINISHED
GIVE TOKENS
PLEASE
TOKENS
Half-
duplex
GT
PT
GIVE TOKENS
PLEASE TOKENS
Duplex
No additional associated SPDUs
Expedited data
EX
EXPEDITED DATA
Typed data
TD
TYPED DATA
Capability
data exchange
CD
CDA
CAPABILITY
DATA
CAPABILITY DATA ACK
-
-
-
-
-
-
-
-
-
上一篇:船公司代码和中英文对照
下一篇:货代常用术语缩写