3. Connexion de transport
Les commutateurs de liaisons de données (Data Link Switch, DLS) peuvent être utilisés par paires ou isolément. Un DLS unique commute en interne une liaison de données vers une autre sans utiliser TCP (de DLC(1) à DLC(2) dans la figure ci-dessous). Une paire de DLS multiplexe les liaisons de données sur un transport fiable au moyen du protocole de commutation à commutation (Switch-to-Switch Protocol, SSP). Ce RFC documente les formats de trame et les protocoles de ce multiplexage entre commutateurs de liaisons de données. La mise en œuvre initiale du SSP utilise TCP comme transport fiable entre les commutateurs de liaisons de données. D'autres connexions de transport, telles qu'OSI TP4, pourraient toutefois être utilisées.
+-----------------------------------------------+Switch-to-Switch
| DLC Interfaces | Protocol (SSP)
|+------------+ DLC Request +------------+ |
|| Data |<---------------- | | |Send SSP Frame
|| Link | DLC Indication | | |-------------->
|| Control 1 |----------------->| | |
|+------------+ | Data Link | |
|+------------+ DLC Request | Switch | |
|| Data |<---------------- | | |Rec. SSP Frame
|| Link | DLC Indication | | |<-------------
|| Control 2 | ---------------->| | |
|+------------+ +------------+ |
| Multi-Protocol Router |
+-----------------------------------------------+
Figure 2. DLS System Diagram
Avant que la commutation de liaisons de données puisse avoir lieu entre deux routeurs, ceux-ci doivent établir une connexion TCP entre eux. Chaque DLS maintient une liste des routeurs capables de prendre en charge DLS et de leur état (actif/inactif). Une fois cette connexion établie, le DLS utilise le SSP pour établir des circuits de bout en bout sur la connexion de transport. La connexion de transport contient un ensemble précis d'unités de message DLS. Les formats et les types de messages de ces unités de données de protocole (PDU) sont documentés dans les sections suivantes.
Les paramètres par défaut associés aux connexions TCP entre les commutateurs de liaisons de données sont les suivants :
Socket Family AF_INET (Internet protocols)
Socket Type SOCK_STREAM (stream socket)
Read Port Number 2065
Write Port Number 2067
Deux commutateurs de liaisons de données ou plus peuvent être connectés au même LAN, constitué d'un certain nombre de segments en anneau à jeton interconnectés par des ponts à routage de source. Dans ce cas, aucune connexion TCP n'est définie entre les ponts connectés au même LAN. Cela permet aux systèmes utilisateurs de sélectionner l'un des commutateurs de liaisons de données possibles d'une manière similaire à la sélection d'un chemin de pont dans un réseau ponté à routage de source. Le segment d'anneau virtuel de chaque commutateur de liaisons de données connecté à un LAN commun doit être configuré avec le même numéro d'anneau. Cela empêche les trames LAN envoyées par un commutateur de liaisons de données d'être propagées par les autres commutateurs de liaisons de données.
3.1. Formats de trame SSP
Les diagrammes suivants montrent les deux en-têtes de message utilisés pour le trafic entre les commutateurs de liaisons de données. L'en-tête de message de contrôle est utilisé pour tous les messages, à l'exception des messages d'information. L'en-tête de message d'information mesure 16 octets, et l'en-tête de message de contrôle 72 octets. Les seize premiers octets de l'en-tête de message de contrôle sont identiques à ceux de l'en-tête de message d'information.
CONTROL MESSAGES (72 Bytes)
+-----------------------------------------------------------------+
| Version Number Reserved Field |
| Message Length ----> . |
| Remote Data Link Correlator ----> . |
| . . |
| Remote DLC Port ID ----> . |
| . . |
| Reserved Field ----> . |
| Message Type Reserved Field |
| Protocol ID Header Number |
| Header Length ----> . |
| Reserved Field ----> . |
| Reserved Field Message Type |
| Target MAC Address ----> . |
| . . |
| . . |
| Origin MAC Address ----> . |
| . . |
| . . |
| Origin Link SAP Target Link SAP |
| Frame Direction Reserved Field |
| Message Length ----> . |
| DLC Header Length ----> . |
| Origin DLC Port ID ----> . |
| . . |
| Origin Data Link Correlator ----> . |
| . . |
| Origin Transport ID ----> . |
| . . |
| Target DLC Port ID ----> . |
| . . |
| Target Data Link Correlator ----> . |
| . . |
| Target Transport ID ----> . |
| . . |
| Reserved Field ----> . |
| . . |
+-----------------------------------------------------------------+
(Even Byte) (Odd Byte)
INFORMATION MESSAGE (16 Bytes)
+-----------------------------------------------------------------+
| Version Reserved Field |
| Message Length ----> . |
| Remote Data Link Correlator ----> . |
| . . |
| Remote DLC Port ID ----> . |
| . . |
| Reserved Field ----> . |
| Message Type Reserved Field |
+-----------------------------------------------------------------+
(Even Byte) (Odd Byte)
The Version Number is set to x'4B', indicating a numeric value of 75.
The Header Length is x'00 48', indicating a numeric value of 72
bytes.
The Header Number is x'01', indicating a value of one.
The Frame Direction field is set to x'01' for frames sent from the
origin DLS to the target DLS, and is set to x'02' for frames sent
from the target DLS to the origin DLS.
Note: The Remote Data Link Correlator and Remote DLC Port ID are
set equal to the Target Data Link Correlator and Target DLC Port
ID if the Frame Direction field is set to x'01', and are set equal
to the Origin Data Link Correlator and Origin DLC Port ID if the
Direction Field is set to x'02'.
The Protocol ID field is set to x'42', indicating a numeric value of
66.
The Message Length field defines the number of bytes within the data
field following the header. Note that this value is specified in two
different fields of the message header.
The DLC Header Length is set to zero for SNA and is set to x'23' for
NetBIOS datagrams, indicating a length of 35 bytes. This includes
the Access Control (AC) field, the Frame Control (FC) field,
Destination MAC Address (DA), the Source MAC Address (SA), the
Routing Information (RI) field (padded to 18 bytes), the Destination
link SAP (DSAP), the Source link SAP (SSAP), and the LLC control
field (UI).
The values for the Message Type field are defined in a later section.
Note that this value is specified in two different fields of the
message header.
Reserved fields are set to zero upon transmission and should be
ignored upon receipt.
3.2. Address Parameters
A data link is defined as a logical association between the two end
stations using Data Link Switching. It is identified by a Data Link
ID (14 bytes) consisting of the pair of attachment addresses
associated with each end system. Each attachment address is
represented by the concatenation of the MAC address (6 bytes) and the
LLC address (1 byte).
DATA LINK ID (14 Bytes)
+-----------------------------------------------------------------+
|Target MAC Address ----> . |
| . . |
| . . |
|Origin MAC Address ----> . |
| . . |
| . . |
|Origin Link SAP Target Link SAP |
+-----------------------------------------------------------------+
An end-to-end circuit is identified by a pair of Circuit ID's. A
Circuit ID is a 64 bit number that identifies the DLC circuit within
a single DLS. It consists of a DLC Port ID (4 bytes), and a Data
Link Correlator (4 bytes). This value is unique in a single DLS and
is assigned locally. The pair of Circuit ID's along with the
identifiers of the Data Link Switches, uniquely identify a single
end-to-end circuit. Each DLS must keep a table of these Circuit ID
pairs, one for the local end of the circuit and the other for the
remote end of the circuit. In order to identify which Data Link
Switch originated the establishment of a circuit, the terms, origin
DLS and target DLS, will be employed in this document.
CIRCUIT ID (8 Bytes)
+-----------------------------------------------------------------+
|DLC Port ID ----> . |
| . . |
|Data Link Correlator ----> . |
| . . |
+-----------------------------------------------------------------+
The Origin Transport ID and the Target Transport ID fields in the
message header are used to identify the individual TCP/IP port on a
Data Link Switch. The values have only local significance. However,
each Data Link Switch is required to reflect the values contained in
these two fields, along with the associated values for DLC Port ID
and the Data Link Correlator, when returning a message to the other
Data Link Switch.
The following figure shows the use of the addressing parameters
during the establishment of an end-to-end connection. The CANUREACH,
ICANREACH, and REACH_ACK messages all carry the Data Link ID,
consisting of the MAC and Link SAP addresses associated with the two
end stations. Upon receipt of a CANUREACH message, the target DLS
starts a data link for each port, thereby obtaining a Data Link
Correlator. If the target station can be reached, an ICANREACH
message is returned to the origin DLS containing the Target Circuit
ID parameter. Upon receipt, the origin DLS starts a data link and
returns the Origin Circuit ID to the target DLS within the REACH_ACK
message. If the REACH_ACK message is not successfully received, the
target Data Link Switch can obtain the Origin Circuit ID from a
subsequent message (i.e., CONTACT, XIDFRAME, or DGRMFRAME).
+------------+ +------------+
|Disconnected| |Disconnected|
+------------+ CANUREACH (Data Link ID) +------------+
------------------------------------------------->
ICANREACH (Data Link ID, Target Circuit ID)
<------------------------------------------------
REACH_ACK (Data Link ID, Origin Cir ID, Target Cir ID)
------------------------------------------------->
+------------+ +------------+
|Circuit Est.| |Circuit Est.|
+------------+ +------------+
XIDFRAME (Data Link ID, Origin Cir ID, Target Cir ID)
<------------------------------------------------>
CONTACT (Data Link ID, Origin Cir ID, Target Cir ID)
------------------------------------------------->
CONTACTED (Data Link ID, Origin Cir ID, Target Cir ID)
<-------------------------------------------------
+------------+ +------------+
| Connected | | Connected |
+------------+ +------------+
INFOFRAME (Remote Circuit ID = Target Circuit ID)
------------------------------------------------->
INFOFRAME (Remote Circuit ID = Origin Circuit ID)
<-------------------------------------------------
Figure 3. DLS Circuits and Connections
3.2. Paramètres d'adresse
CONTROL MESSAGES (72 Bytes)
+-----------------------------------------------------------------+
| Version Number Reserved Field |
| Message Length ----> . |
| Remote Data Link Correlator ----> . |
| . . |
| Remote DLC Port ID ----> . |
| . . |
| Reserved Field ----> . |
| Message Type Reserved Field |
| Protocol ID Header Number |
| Header Length ----> . |
| Reserved Field ----> . |
| Reserved Field Message Type |
| Target MAC Address ----> . |
| . . |
| . . |
| Origin MAC Address ----> . |
| . . |
| . . |
| Origin Link SAP Target Link SAP |
| Frame Direction Reserved Field |
| Message Length ----> . |
| DLC Header Length ----> . |
| Origin DLC Port ID ----> . |
| . . |
| Origin Data Link Correlator ----> . |
| . . |
| Origin Transport ID ----> . |
| . . |
| Target DLC Port ID ----> . |
| . . |
| Target Data Link Correlator ----> . |
| . . |
| Target Transport ID ----> . |
| . . |
| Reserved Field ----> . |
| . . |
+-----------------------------------------------------------------+
(Even Byte) (Odd Byte)
INFORMATION MESSAGE (16 Bytes)
+-----------------------------------------------------------------+
| Version Reserved Field |
| Message Length ----> . |
| Remote Data Link Correlator ----> . |
| . . |
| Remote DLC Port ID ----> . |
| . . |
| Reserved Field ----> . |
| Message Type Reserved Field |
+-----------------------------------------------------------------+
(Even Byte) (Odd Byte)
The Version Number is set to x'4B', indicating a numeric value of 75.
The Header Length is x'00 48', indicating a numeric value of 72
bytes.
The Header Number is x'01', indicating a value of one.
The Frame Direction field is set to x'01' for frames sent from the
origin DLS to the target DLS, and is set to x'02' for frames sent
from the target DLS to the origin DLS.
Note: The Remote Data Link Correlator and Remote DLC Port ID are
set equal to the Target Data Link Correlator and Target DLC Port
ID if the Frame Direction field is set to x'01', and are set equal
to the Origin Data Link Correlator and Origin DLC Port ID if the
Direction Field is set to x'02'.
The Protocol ID field is set to x'42', indicating a numeric value of
66.
The Message Length field defines the number of bytes within the data
field following the header. Note that this value is specified in two
different fields of the message header.
The DLC Header Length is set to zero for SNA and is set to x'23' for
NetBIOS datagrams, indicating a length of 35 bytes. This includes
the Access Control (AC) field, the Frame Control (FC) field,
Destination MAC Address (DA), the Source MAC Address (SA), the
Routing Information (RI) field (padded to 18 bytes), the Destination
link SAP (DSAP), the Source link SAP (SSAP), and the LLC control
field (UI).
The values for the Message Type field are defined in a later section.
Note that this value is specified in two different fields of the
message header.
Reserved fields are set to zero upon transmission and should be
ignored upon receipt.
3.2. Address Parameters
A data link is defined as a logical association between the two end
stations using Data Link Switching. It is identified by a Data Link
ID (14 bytes) consisting of the pair of attachment addresses
associated with each end system. Each attachment address is
represented by the concatenation of the MAC address (6 bytes) and the
LLC address (1 byte).
DATA LINK ID (14 Bytes)
+-----------------------------------------------------------------+
|Target MAC Address ----> . |
| . . |
| . . |
|Origin MAC Address ----> . |
| . . |
| . . |
|Origin Link SAP Target Link SAP |
+-----------------------------------------------------------------+
An end-to-end circuit is identified by a pair of Circuit ID's. A
Circuit ID is a 64 bit number that identifies the DLC circuit within
a single DLS. It consists of a DLC Port ID (4 bytes), and a Data
Link Correlator (4 bytes). This value is unique in a single DLS and
is assigned locally. The pair of Circuit ID's along with the
identifiers of the Data Link Switches, uniquely identify a single
end-to-end circuit. Each DLS must keep a table of these Circuit ID
pairs, one for the local end of the circuit and the other for the
remote end of the circuit. In order to identify which Data Link
Switch originated the establishment of a circuit, the terms, origin
DLS and target DLS, will be employed in this document.
CIRCUIT ID (8 Bytes)
+-----------------------------------------------------------------+
|DLC Port ID ----> . |
| . . |
|Data Link Correlator ----> . |
| . . |
+-----------------------------------------------------------------+
The Origin Transport ID and the Target Transport ID fields in the
message header are used to identify the individual TCP/IP port on a
Data Link Switch. The values have only local significance. However,
each Data Link Switch is required to reflect the values contained in
these two fields, along with the associated values for DLC Port ID
and the Data Link Correlator, when returning a message to the other
Data Link Switch.
The following figure shows the use of the addressing parameters
during the establishment of an end-to-end connection. The CANUREACH,
ICANREACH, and REACH_ACK messages all carry the Data Link ID,
consisting of the MAC and Link SAP addresses associated with the two
end stations. Upon receipt of a CANUREACH message, the target DLS
starts a data link for each port, thereby obtaining a Data Link
Correlator. If the target station can be reached, an ICANREACH
message is returned to the origin DLS containing the Target Circuit
ID parameter. Upon receipt, the origin DLS starts a data link and
returns the Origin Circuit ID to the target DLS within the REACH_ACK
message. If the REACH_ACK message is not successfully received, the
target Data Link Switch can obtain the Origin Circuit ID from a
subsequent message (i.e., CONTACT, XIDFRAME, or DGRMFRAME).
+------------+ +------------+
|Disconnected| |Disconnected|
+------------+ CANUREACH (Data Link ID) +------------+
------------------------------------------------->
ICANREACH (Data Link ID, Target Circuit ID)
<------------------------------------------------
REACH_ACK (Data Link ID, Origin Cir ID, Target Cir ID)
------------------------------------------------->
+------------+ +------------+
|Circuit Est.| |Circuit Est.|
+------------+ +------------+
XIDFRAME (Data Link ID, Origin Cir ID, Target Cir ID)
<------------------------------------------------>
CONTACT (Data Link ID, Origin Cir ID, Target Cir ID)
------------------------------------------------->
CONTACTED (Data Link ID, Origin Cir ID, Target Cir ID)
<-------------------------------------------------
+------------+ +------------+
| Connected | | Connected |
+------------+ +------------+
INFOFRAME (Remote Circuit ID = Target Circuit ID)
------------------------------------------------->
INFOFRAME (Remote Circuit ID = Origin Circuit ID)
<-------------------------------------------------
Figure 3. DLS Circuits and Connections
Au cours de l'échange des messages XIDFRAME, CONTACT et CONTACTED, la paire de paramètres d'identifiant de circuit est incluse dans le format de message, avec le paramètre DATA LINK ID. Une fois la connexion établie, les messages INFOFRAME sont échangés avec l'en-tête plus court.
Cet en-tête ne contient que l'identifiant de circuit associé au DLS distant. Le correlator de liaison de données distant (Remote Data Link Correlator) et l'identifiant de port DLC distant (Remote DLC Port ID) sont définis égaux au correlator de liaison de données et à l'identifiant de port DLC associés au commutateur de liaisons de données d'origine ou cible, selon la direction du paquet.
3.3. Types de messages
Le tableau suivant répertorie les unités de données de protocole échangées entre les commutateurs de liaisons de données. Toutes les valeurs qui ne figurent pas dans cette liste sont réservées à un usage éventuel dans des versions ultérieures.
Command Function Hex Value
------- -------- ---------
CANUREACH Can U Reach Station x'03'
ICANREACH I Can Reach Station x'04'
REACH_ACK Reach Acknowledgment x'05'
DGRMFRAME Datagram Frame (See note) x'06'
XIDFRAME XID Frame x'07'
CONTACT Contact Remote Station x'08'
CONTACTED Remote Station Contacted x'09'
RESTART_DL Restart Data Link x'10'
DL_RESTARTED Data Link Restarted x'11'
INFOFRAME Information (I) Frame x'0A'
HALT_DL Halt Data Link x'0E'
DL_HALTED Data Link Halted x'0F'
NETBIOS_NQ NetBIOS Name Query x'12'
NETBIOS_NR NetBIOS Name Recognized x'13'
DATAFRAME Data Frame (See note) x'14'
NETBIOS_ANQ NetBIOS Add Name Query x'1A'
NETBIOS_ANR NetBIOS Add Name Response x'1B'
Table 1. SSP Message Types
Note : les messages DGRMFRAME et DATAFRAME sont tous deux utilisés pour transporter les informations reçues par l'entité DLC dans des trames UI. Comme nous l'expliquerons ci-dessous, le message DGRMFRAME est adressé selon une paire d'identifiants de circuit, tandis que le message DATAFRAME est adressé selon un identifiant de liaison de données, composé d'une paire d'adresses MAC et d'une paire d'adresses SAP de liaison. Ce dernier est utilisé avant l'établissement d'un circuit de bout en bout, lorsque les identifiants de circuit n'ont pas encore été établis.
Pour l'échange des messages de contrôle NetBIOS, l'en-tête DLC entier est transporté comme partie intégrante de l'unité de message. Cela inclut l'en-tête MAC, avec le champ d'information de routage complété à 18 octets, ainsi que l'en-tête LLC. Les types de messages suivants sont concernés : NETBIOS_NQ, NETBIOS_NR, NETBIOS_ANQ, NETBIOS_ANR et DATAFRAME lorsqu'
ils sont utilisés par des systèmes NetBIOS. Les informations de routage contenues dans l'en-tête DLC ne sont pas utilisées par le commutateur de liaisons de données distant lorsqu'il reçoit les cinq messages ci-dessus.