nonce -> session id

This commit is contained in:
Randy Bush 2022-03-19 16:02:38 -07:00
parent 1fcda8adf5
commit 70abe34e18

View file

@ -542,7 +542,7 @@ Flags (bit):
respond with an ACK PDU.</t> respond with an ACK PDU.</t>
<!-- <!--
protocol "Version = 0:8,PDU Type = 1:8,Payload Length:32,Nonce:32,AttrCount:8,Attribute List ...:40,Serial Number:32" protocol "Version = 0:8,PDU Type = 1:8,Payload Length:32,Session ID:32,AttrCount:8,Attribute List ...:40,Serial Number:32"
--> -->
<figure> <figure>
@ -550,13 +550,13 @@ Flags (bit):
0 1 2 3 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 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Version = 0 | PDU Type = 2 | Payload Length ~ | Version = 0 | PDU Type = 1 | Payload Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~ | Nonce ~ | | Session ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~ | AttrCount | ~ | | AttrCount | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +
~ Attribute List ... ~ | Attribute List ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Serial Number | | Serial Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@ -564,13 +564,14 @@ Flags (bit):
</figure> </figure>
<t>The four octet Payload Length is the number of octets in all <t>The four octet Payload Length is the number of octets in all
fields of the PDU from the Nonce through the Serial Number.</t> fields of the PDU from the Session ID through the Serial Number.</t>
<t>The four octet Nonce identifies a session. It enables detection <t>The four octet Session ID uniquely identifies a session. It
of a duplicate OPEN PDU. It SHOULD be either a random number or a enables detection of a duplicate OPEN PDU. It SHOULD be either a
high resolution timestamp. It is needed to prevent session closure random number or a high resolution timestamp. It is needed to
due to a repeated OPEN caused by a race or a dropped or delayed ACK. prevent session closure due to a repeated OPEN caused by a race or a
It can be used to resume a dropped logical session.</t> dropped or delayed ACK. It can be used to resume a dropped logical
session.</t>
<t>The one octet AttrCount is the number of attributes in the <t>The one octet AttrCount is the number of attributes in the
Attribute List. A node may send zero or more attributes.</t> Attribute List. A node may send zero or more attributes.</t>
@ -594,9 +595,9 @@ Flags (bit):
the Serial Number would cause it to be zero, it should be the Serial Number would cause it to be zero, it should be
incremented again.</t> incremented again.</t>
<t>On session restart (new OPEN, same Nonce), a receiver MAY send <t>On session restart (new OPEN, same Session ID), a receiver MAY
the last received Serial Number to tell the sender to only send data send the last received Serial Number to tell the sender to only send
with a Serial Number greater (in the <xref target="RFC1982"/> data with a Serial Number greater (in the <xref target="RFC1982"/>
sense), or send a Serial Number of zero to request all data.</t> sense), or send a Serial Number of zero to request all data.</t>
<t>This allows a sender of an OPEN to tell the receiver that the <t>This allows a sender of an OPEN to tell the receiver that the