メインコンテンツまでスキップ

3. トランスポート接続

データリンクスイッチは、ペアで使用することも、単独で使用することもできる。単独の DLS は、TCP を使用せずに (下の図の DLC(1) から DLC(2) へ) あるデータリンクを別のデータリンクへ内部で切り替える。ペアの DLS は、スイッチ間プロトコル (Switch-to-Switch Protocol, SSP) を使用して、信頼性のあるトランスポート上でデータリンクを多重化する。本 RFC は、データリンクスイッチ間のこの多重化のためのフレーム形式とプロトコルについて記述する。SSP の初期の実装では、データリンクスイッチ間の信頼性のあるトランスポートとして TCP が使用される。ただし、OSI TP4 などの他のトランスポート接続も使用できる。

    +-----------------------------------------------+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

2 つのルータ間でデータリンクスイッチングが行われる前に、両者は相互に TCP 接続を確立する必要がある。各 DLS は、DLS 対応ルータのリストとその状態 (active/inactive) を維持する。この接続が確立されると、DLS は SSP を使用して、トランスポート接続上にエンドツーエンドの回線を確立する。トランスポート接続の内部には、DLS メッセージ単位の特定の集合が存在する。これらの PDU のメッセージ形式と種別については、以降の節で記述する。

データリンクスイッチ間の TCP 接続に関連するデフォルトパラメータは次のとおりである:

            Socket Family     AF_INET        (Internet protocols)
Socket Type SOCK_STREAM (stream socket)
Read Port Number 2065
Write Port Number 2067

2 つ以上のデータリンクスイッチが同じ LAN に接続され得る。この LAN は、ソースルーティングブリッジによって相互接続された多数のトークンリングセグメントから構成される。この場合、同じ LAN に接続されたブリッジ間では TCP 接続は定義されない。これにより、利用側のシステムは、ソースルートブリッジネットワークを通るブリッジパスの選択と同様の方法で、可能なデータリンクスイッチの 1 つを選択できるようになる。共通 LAN に接続された各データリンクスイッチの仮想リングセグメントには、同じリング番号が設定されていなければならない。これにより、あるデータリンクスイッチが送信した LAN フレームが他のデータリンクスイッチを通って伝播するのを防ぐ。

3.1. SSP フレーム形式​

以下の図は、データリンクスイッチ間のトラフィックのための 2 つのメッセージヘッダを示す。制御メッセージヘッダは、情報メッセージ以外のすべてのメッセージに使用される。情報メッセージヘッダの長さは 16 バイト、制御メッセージヘッダの長さは 72 バイトである。制御メッセージヘッダの最初の 16 バイトは情報メッセージヘッダと同一である。

     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. アドレスパラメータ​

     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

XIDFRAME、CONTACT、CONTACTED の各メッセージの交換中は、一連の回線 ID パラメータが DATA LINK ID パラメータとともにメッセージ形式に含まれる。接続が確立されると、INFOFRAME メッセージは短い

ヘッダで交換される。このヘッダには、リモート DLS に関連する回線 ID のみが含まれる。Remote Data Link Correlator および Remote DLC Port ID には、パケットの方向に応じて、発信元または宛先のデータリンクスイッチに関連付けられた Data Link Correlator および DLC Port ID が設定される。

3.3. メッセージ種別​

次の表は、データリンクスイッチ間で交換されるプロトコルデータ単位の一覧である。記載されていないすべての値は、後続のリリースでの使用に備えて予約されている。

     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

注: DGRMFRAME メッセージと DATAFRAME メッセージはともに、DLC エンティティが UI フレーム内で受信した情報を運ぶために使用される。後述するように、DGRMFRAME メッセージは一対の回線 ID に従ってアドレス指定されるのに対し、DATAFRAME メッセージは一対の MAC アドレスと一対のリンク SAP アドレスから成るデータリンク ID に従ってアドレス指定される。後者は、エンドツーエンドの回線が確立される前、まだ回線 ID が確立されていない段階で使用される。

NetBIOS 制御メッセージの交換では、DLC ヘッダ全体がメッセージ単位の一部として運ばれる。これには、ルーティング情報フィールドが 18 バイトにパディングされた MAC ヘッダと、LLC ヘッダが含まれる。影響を受けるメッセージ種別は、NETBIOS_NQ、NETBIOS_NR、NETBIOS_ANQ、NETBIOS_ANR、および

NetBIOS システムによって使用される場合の DATAFRAME である。上記の 5 つのメッセージを受信した際、リモートデータリンクスイッチは DLC ヘッダ内のルーティング情報を使用しない。