📄 rfc892.txt
字号:
service requested is a local matter, though it will normally berelated to the requirements of transport connection(s) expected to beassigned to it. A Network Connection with no transport connections will beavailable after initial establishment or because explicitdisconnection of all the transport connections previously assigned toit has taken place. Either Transport entity may as a localmatter choose to disconnect the Network Connection or assign otherTransport Connections to it.6.2 Transport Protocol Data Unit (TPDU) Transfer Purpose: To convey transport protocol data unit in user data fields of network service primitives. Network Service Primitives N-DATA N-EXPEDITED DATA Description: This function is inherent. The Transport Protocol Data Units (TPDUs) defined for theprotocol are listed in Figure 3. TPDU name Abbreviation Connection Request CR Connection Confirm CC Disconnect Request DR Disconnect Confirm DC Data DT Expedited Data ED Data Acknowledge AK Expedited Acknowledge EA Reject RJ TPDU Error ERR Figure 3. Transport Protocol Data UnitsISO Transport Protocol Specification Page 16International Standards Organization TPDUs are conveyed using the NS-User data parameters of theNetwork Service primitives, primarily with the N-DATA, but also withN-EXPEDITED primitives. Transport entities shall accept all permissible assignments andmay issue any permissible assignments. The permissible assignments ofTPDUs to these primitives are shown in Figure 4. Concatenation ofTPDUs is also permitted (see section 6.4).Primitive Applicable TPDUs NoteN-DATA CR, CC, DR, DT, ED, AK, EA, RJ, DC, ERRN-EXPEDITED ED, EA 1Notes:1. This assignment is permissible only when using class 1 and when the network expedited variant has been agreed.Figure 4. Network Service Primitives which can convey TPDUs.6.3 Data TPDU Length and Segmenting Purpose: Mapping between one TSDU and TPDUs. TPDUs and fields used: DT - End of TSDU (1 bit) Description: The data field of Data TPDUs may contain any number of octetsup to an agreed maximum as negotiated at connection time. A transport entity uses an End of TSDU mark as defined below: In each Data TPDU a transport entity may indicate the end of aTSDU. Category 1 Having the End of TSDU mark set to yes. These TPDUs may or may not have the maximum length. Category 2 Having the End of TSDU mark set to no. These TPDUs do not necessarily have the maximum length. A complete Data TPDU sequence is defined as being composed ofISO Transport Protocol Specification Page 17International Standards Organizationeither a single category 1 DT TPDU or consecutive category 2 followedby a category 1 DT TPDU.6.4 Concatenation and Separation Pupose: Conveyance of multiple TPDUs in one NSDU. Description: All TPDUs carry in their TPDU header a length indicator (seeSection 8.2.1). Additionally, TPDUs are classified as either DataTPDUs or Control TPDUs. Control TPDUs may or may not contain a datafield. For TPDUs containing data the length of the data field isindicated by the length of the NSDU. These provisions permit anynumber of Control TPDUs that may not contain data to be concatenatedwith a single control TPDU which may contain data or with a singleData TPDU. The control TPDUs without data must precede the TPDU withdata, if any. The number of TPDUs so concatenated is terminated bythe end of the NSDU. The concatenated set of TPDUs may be for the same or differenttransport connections. An implementation shall accept concatenatedTPDUs and may concatenate TPDUs before transmission. The transportentity shall not send a concatenated set of TPDUs which exceeds twicethe overall maximum TPDU length for all the TCs assigned to thenetwork connection.6.5 Connection Establishment Purpose: Creation of a new transport connection. Network Service Primitives: N-DATA TPDUs and fields used: CR, CC - source reference (16 bits) - initial credit (if applicable) - calling transport address (optional) - called transport address (optional) - user data (optional) - TPDU size (optional) - sequence number length (optional) - checksum selection (optional) - acknowledgement time (optional) - quality of service (optional) CR - preferred protocol classISO Transport Protocol Specification Page 18International Standards Organization - alternative protocol classes (zero or more) - version number (optional) - security (optional) - proposed options CC - destination reference (16 bits) - selected protocol class - selected options Description: This function is inherent: A transport connection is established by means of onetransport entity (the initiator) transmitting a Connection Request(CR) TPDU to the other transport entity (the responder), which replieswith a Connection Confirm (CC) TPDU. Before sending the CR TPDU, theinitiator assigns the transport connection being created to one (ormore if the splitting function is being used) network connection(s).It is this set of network connections over which the TPDUs are sent.During this exchange, all information and parameters needed for thetransport entities to operate must be exchanged or negotiated. The following information is exchanged: o references. Each transport entity chooses a reference which is 16 bits long and which is arbitrary except for the following restrictions: - it cannot already be in use or "frozen" (see "Frozen References", Section 6.19). - it cannot be zero. Each transport entity is responsible for selecting theReference which the partner will use. This mechanism is symmetricaland therefore avoids the need to assign a status of master or slave topartners and avoids call collision. This mechanism also providesidentification of the transport connection independent of the networkconnection. The range of References used for transport connections, ina given transport entity, is a local system parameter. o addresses (optional). Indicate the calling and called transport service access points. When either network address unambiguously defines the transport address this information may be omitted. o initial credit. Only relevant for classes which include the Explicit Flow Control Function.ISO Transport Protocol Specification Page 19International Standards Organization o user data. Not available in class 0. Up to 32 octets in in other classes. The following negotiations take place: o protocol class. The initiator shall propose a preferredclass and any number of alternatives. (Except that no alternatives areallowed when class 0 is the preference.) The initiator should assumewhen it sends the CR TPDU that its preferred class will be agreed to,and commence the functions associated with that class. Note: This means, for example, that when a class whichincludes resynchronization (see "Resynchronization", Section 6.15) ispreferred, resynchronization will occur if a reset is signalled duringconnection establishment. When the responder has decided which class is to be used, itshall indicate this in the CC TPDU and shall invoke the appropriatefunctions for the class. The responder may select the preferredclass, or any of the alternative classes or may select class 0 ifclass 1 is proposed or class 2 if class 3 or 4 is proposed. (seeSection 9) If the preferred class is not selected, then on receipt of theCC TPDU, the initiator shall adjust its functions accordingly. o TPDU Size. The initiator may propose a maximum size forTPDUs, and the responder may accept this value or respond with anyvalue between the proposed value and 128 in the set of valuesavailable (see "Encoding", Section 8). o sequence number length. Either normal or extended isavailable. When the sequence number is extended, the credit field (ifapplicable) is also extended. o checksum selection. This defines whether or not TPDUs ofthe connection are to include a checksum. o version number. This defines the version of the transportprotocol standard used for this connection. o security parameter. This parameter and its semantics areuser defined. o quality of service parameter. This defines the throughput,delay, priority and residual error rate. o The non-use of explicit flow control in class 2 isnegotiated.ISO Transport Protocol Specification Page 20International Standards Organization o The use of Network Receipt Confirmation and Networkexpedited is negotiated when class 1 is to be used. The negotiation rules for the options are such that theinitiator may propose either to use or not to use the option. Theresponder may either accept the proposed choice or select themandatory alternative defined in Section 9. During the establishment phase of the transport connection,the use of the expedited data option field of CR/CC allows bothTransport Service user to negotiate the use or non use of theexpedited data transport service as described in the transport servicedefinitions. The following table summarizes the negotiation possibilitiesfor the options. Proposition Made Possible by the Initiator Selection by Option the ResponderTransport expedited data Yes Yes or Notransfer service No NoUse of receipt confir- Yes Yes or Nomation (class 1 only) No NoUse of the network Yes Yes or Noexpedited variant No No(class 1 only)Non use of checksum Yes Yes or No(class 4 only) No NoNon use of explicit Yes Yes or Noflow control (class 2 only) No NoUse of extended format Yes Yes or No No No In class 2, whenever a transport entity requests or agrees tothe Transport Expedited data transfer service or to the use ofextended formats, it must also request or agree (respectively) to theuse of explicit flow control.6.6 Connection Refusal Purpose: Refusal of the transport connection. TPDUs and fields used:ISO Transport Protocol Specification Page 21International Standards Organization DR - reason (1 octet) - user data (maximum of 64 octets) ERR - reject code (1 octet) - rejected TPDU parameter Description: If a transport connection cannot be accepted, the calledtransport entity shall respond to the CR TPDU with a DR TPDU. Theclearing reason shall indicate why the connection was not accepted.The source reference field in the DR TPDU is set to zero to indicatean unassigned reference. If the CR is regarded as an invalid TPDU, the called transportentity will respond by sending an ERR TPDU. On receipt of this TPDU,the calling entity will regard the connection as closed.6.7 Release Variants: 'implicit' or 'explicit' Purpose: Termination of the transport connection. Network Service Primitives: N-DISCONNECT (implicit variant only) N-DATA TPDUs and fields used: DR - clearing reason (1 octet) - user data (maximum of 64 octets) DC Description:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -