Internet Draft
INTERNET DRAFT                                        Avri Doria, Nokia
GSMP Working Group                    Fiffi Hellstrand, Nortel Networks
Standards Track                        Kenneth Sundell, Nortel Networks
                                         Tom Worster, Ennovate Networks
                                                   Expires October 2000




                      General Switch Management Protocol V3

                            <draft-ietf-gsmp-05.txt>


     This document is an Internet-Draft and is in full conformance with
     all provisions of Section 10 of RFC2026.

     Internet-Drafts are working documents of the Internet Engineering
     Task Force (IETF), its areas, and its working groups.  Note that
     other groups may also distribute working documents as Internet-
     Drafts.

     Internet-Drafts are draft documents valid for a maximum of six
     months and may be updated, replaced, or obsoleted by other
     documents at any time.  It is inappropriate to use Internet-
     Drafts as reference material or to cite them other than as "work
     in progress."

     The list of current Internet-Drafts can be accessed at
     http://www.ietf.org/ietf/1id-abstracts.txt

     The list of Internet-Draft Shadow Directories can be accessed at
     http://www.ietf.org/shadow.html.


Acknowledgement

     GSMP was created by P. Newman, W. Edwards, R. Hinden, E. Hoffman,
     F. Ching Liaw, T. Lyon, and G. Minshall (see [6] and [7]). This
     version of GSMP is based on their work.







Doria, et. al.       Expires October 2000        [Page 1]




Internet Draft     General Switch Management Protocol     April 2000

Contributors

  In addition to the authors/editors listed in the heading, many
  members of the GSMP group have made significant contributions to
  this specification. Among the contributors who have contributed
  materially are: Constantin Adam, Clint Bishard, Joachim Buerkle,
  Aurel A. Lazar, Mahesan Nandikesan, Matt Peters, Balaji
  Srinivasan, Jaroslaw Sydir, Chao-Chun Wang.


Abstract

  This memo provides the fourth draft of the standards track
  specification of GSMP. It is a revision of draft-worster-gsmp-00
  which itself was based on GSMP V2 [7].


Changes since <draft-ietf-gsmp-04.txt>

  (Note: this section will be removed before submission to IESG)

     Fixed reference to gsmpv2

      Move reservation message to chapter 5

      Renamed encapsulation adaptation and added arguments and
     explanation.

      Fixed a number of typos and other blemishes.

      Added failure message 80 to cover circumstance where switch
     does not support point to multipoint connections where the
     branches have different QoS parameters.
















Doria, et. al.      Expires October 2000        [Page 2]




Internet Draft     General Switch Management Protocol     April 2000



Table of Contents


1. INTRODUCTION...............................................5

2. GSMP PACKET ENCAPSULATION .................................8

3. COMMON DEFINITIONS AND PROCEDURES..........................8
   3.1 GSMP PACKET FORMAT.....................................9
       3.1.1 Basic GSMP Message format........................9
       3.1.2 Fields commonly found in GSMP messages...........12
       3.1.3 Labels ..........................................12
       3.1.4 Failure Response Messages .......................22
4. CONNECTION MANAGEMENT MESSAGES.............................24
   4.1 GENERAL MESSAGE DEFINITIONS ...........................24
   4.2 ADD BRANCH MESSAGE.....................................29
       4.2.1 ATM specific procedures:.........................32
   4.3 DELETE TREE MESSAGE ...................................33
   4.4 VERIFY TREE MESSAGE....................................33
   4.5 DELETE ALL INPUT PORT MESSAGE..........................34
   4.6 DELETE ALL OUTPUT PORT MESSAGE ........................35
   4.7 DELETE BRANCHES MESSAGE................................35
   4.8 MOVE OUTPUT BRANCH MESSAGE ............................38
       4.8.1 ATM Specific Procedures:.........................40
   4.9 MOVE INPUT BRANCH MESSAGE..............................41
       4.9.1 ATM Specific Procedures:.........................43
5. RESERVATION MANAGEMENT MESSAGES............................45
   5.1 RESERVATION REQUEST MESSAGE............................45
   5.2 DELETE RESERVATION MESSAGE.............................48
   5.3 DELETE ALL RESERVATIONS MESSAGE........................48
6. MANAGEMENT MESSAGES........................................50
   6.1 PORT MANAGEMENT MESSAGE................................50
   6.2 LABEL RANGE MESSAGE....................................55
       6.2.1 Short Labels.....................................58
       6.2.2 TLV Labels ......................................63
7. STATE AND STATISTICS MESSAGES..............................71
   7.1 CONNECTION ACTIVITY MESSAGE ...........................71
   7.2 STATISTICS MESSAGES....................................74
       7.2.1 Port Statistics Message .........................76
       7.2.2 Connection Statistics Message ...................77
       7.2.3 QoS Class Statistics Message.....................77
   7.3 REPORT CONNECTION STATE MESSAGE........................77
8. CONFIGURATION MESSAGES ....................................83
   8.1 SWITCH CONFIGURATION MESSAGE...........................83



Doria, et. al.      Expires October 2000        [Page 3]




Internet Draft     General Switch Management Protocol     April 2000

       8.1.1 Configuration Message Processing.................85
   8.2 PORT CONFIGURATION MESSAGE.............................85
       8.2.1 PortType Specific Data ..........................89
   8.3 ALL PORTS CONFIGURATION MESSAGE .......................100
   8.4 SERVICE CONFIGURATION MESSAGE..........................102
9. EVENT MESSAGES ............................................107
   9.1 PORT UP MESSAGE........................................108
   9.2 PORT DOWN MESSAGE......................................108
   9.3 INVALID LABEL MESSAGE..................................108
   9.4 NEW PORT MESSAGE.......................................109
   9.5 DEAD PORT MESSAGE......................................109
   9.6 ADJACENCY UPDATE MESSAGE ..............................109
10. SERVICE MODEL DEFINITION..................................110
   10.1 OVERVIEW..............................................110
   10.2 SERVICE MODEL DEFINITIONS.............................110
       10.2.1 Original Specifications.........................111
       10.2.2 Service Definition..............................111
       10.2.3 Capability Sets.................................112
   10.3 SERVICE MODEL PROCEDURES..............................112
   10.4 SERVICE DEFINITIONS ..................................113
       10.4.1 ATM Forum Service Categories....................114
       10.4.2 Integrated Services.............................118
       10.4.3 MPLS CR-LDP.....................................119
       10.4.4 Frame Relay ....................................119
       10.4.5 Diff-Serv ......................................120
       10.4.6 Circuit Emulation...............................120
   10.5 FORMAT AND ENCODING OF THE TRAFFIC PARAMETERS BLOCK...121
       10.5.1 Traffic Parameters for ATM Forum Services.......121
       10.5.2 Traffic Parameters for the Int-Serv.............122
       10.5.3 Traffic Parameters for the CRLDP Service........123
       10.5.4 Traffic Parameters for the Frame Relay Service..124
   10.6 TRAFFIC CONTROLS (TC) FLAGS ..........................125
11. ADJACENCY PROTOCOL .......................................127
   11.1 PACKET FORMAT.........................................127
   11.2 PROCEDURE.............................................130
       11.2.1 State Tables ...................................133
   11.3 PARTITION INFORMATION STATE...........................134
   11.4 LOSS OF SYNCHRONISATION...............................134
   11.5 MULTIPLE CONTROLLERS PER SWITCH PARTITION.............135
       11.5.1 Multiple Controller Adjacency Process ..........135
12. FAILURE RESPONSE CODES....................................137
   12.1 DESCRIPTION OF FAILURE RESPONSE MESSAGES .............137
   12.2 SUMMARY OF FAILURE RESPONSE CODES.....................142
13. SECURITY CONSIDERATIONS...................................145






Doria, et. al.      Expires October 2000        [Page 4]




Internet Draft     General Switch Management Protocol     April 2000

1.  Introduction

   The General Switch Management Protocol (GSMP), is a general
   purpose protocol to control a label switch. GSMP allows a
   controller to establish and release connections across the switch;
   add and delete leaves on a multicast connection; manage switch
   ports; request configuration information; and request statistics.
   It also allows the switch to inform the controller of asynchronous
   events such as a link going down. The GSMP protocol is asymmetric,
   the controller being the master and the switch being the slave.
   Multiple switches may be controlled by a single controller using
   multiple instantiations of the protocol over separate control
   connections. Also a switch may be controlled by more than one
   controller by using the technique of partitioning.

   A "physical" switch can be partitioned into several virtual
   switches which are referred to as partitions. In this version of
   GSMP switch partitioning is static and occurs prior to running
   GSMP. The partitions of a physical switch are isolated from each
   other by the implementation and the controller assumes that the
   resources allocated to a partition are at all times available to
   that partition. A partition appears to its controller as a label
   switch.  Throughout the rest of this document, the term switch (or
   equivalently, label switch) is used to refer to either a physical,
   non-partitioned switch or to a partition. The resources allocated
   to a partition appear to the controller as if they were the actual
   physical resources of the partition. For example if the bandwidth
   of a port is divided among several partitions, each partition
   would appear to the controller to have its own independent port.

   GSMP controls a partitioned switch through the use of a partition
   identifier which is carried in every GSMP message. Each partition
   has a one-to-one control relationship with its own logical
   controller entity (which in the remainder of the document is
   referred to simply as a controller) and GSMP independently
   maintains adjacency between each controller-partition pair.

   A label switch is a frame or cell switch that supports connection
   oriented switching using the exact match forwarding algorithm
   based on labels attached to incoming cells or frames. A switch is
   assumed to contain multiple "ports". Each port is a combination of
   one "input port" and one "output port". Some GSMP requests refer
   to the port as a whole whereas other requests are specific to the
   input port or the output port. Cells or labelled frames arrive at
   the switch from an external communication link on incoming
   labelled channels at an input port. Cells or labelled frames
   depart from the switch to an external communication link on
   labelled channels from an output port.



Doria, et. al.      Expires October 2000        [Page 5]




Internet Draft     General Switch Management Protocol     April 2000

  A switch may support multiple label types, however, each switch
  port can support only one label type. The label type supported by
  a given port is indicated by the switch to the controller in a
  port configuration message. Connections may be established between
  ports supporting different label types. Label types include ATM,
  Frame Relay and MPLS Generic Labels.

  A connection across a switch is formed by connecting an incoming
  labelled channel to one or more outgoing labelled channels.
  Connections are referenced by the input port on which they arrive
  and the Labels values of their incoming labelled channel.

  GSMP supports point-to-point and point-to-multipoint connections.
  A multipoint-to-point connection is specified by establishing
  multiple point-to-point connections each of them specifying the
  same output branch. A multipoint-to-multipoint connection is
  specified by establishing multiple point-to-multipoint trees each
  of them specifying the same output branches.

  In general a connection is established with a certain quality of
  service (QoS). This version of GSMP includes a default QoS
  Configuration and additionally allows the negotiation of
  alternative, optional QoS configurations. The default QoS
  Configuration includes three QoS Models: a Service Model, a Simple
  Abstract Model (strict priorities) and a QoS Profile Model.

  The Service Model is based on service definitions found external
  to GSMP such as in Integrated Services or ATM Service Categories.
  Each connection is assigned a specific service that defines the
  handling of the connection by the switch. Additionally, traffic
  parameters and traffic controls may be assigned to the connection
  depending on the assigned service.

  In the Simple Abstract Model a connection is assigned a priority
  when it is established. It may be assumed that for connections
  that share the same output port, an cell or frame on a connection
  with a higher priority is much more likely to exit the switch
  before a cell or frame on a connection with a lower priority if
  they are both in the switch at the same time. The number of
  priorities that each port of the switch supports may be obtained
  from the port configuration message.

  The QoS Profile Model provides a simple mechanism that allows
  connection to be assigned QoS semantics defined external to GSMP.

  All GSMP switches must support the default QoS Configuration. A
  GSMP switch may additionally support one or more alternative QoS
  Configurations. The QoS models of alternative QoS configurations
  are defined outside the GSMP specification. GSMP includes a


Doria, et. al.      Expires October 2000        [Page 6]




Internet Draft     General Switch Management Protocol     April 2000

  negotiation mechanism that allows a controller to select form the
  QoS configurations that a switch supports.

  GSMP contains an adjacency protocol. The adjacency protocol is
  used to synchronise state across the link, to negotiate which
  version of the GSMP protocol to use, to discover the identity of
  the entity at the other end of a link, and to detect when it
  changes.






































Doria, et. al.      Expires October 2000        [Page 7]




Internet Draft     General Switch Management Protocol     April 2000

2.  GSMP Packet Encapsulation

   GSMP packets may be transported via any suitable medium. GSMP
   packet encapsulations for ATM, Ethernet and TCP are specified in
   [15]. Additional encapsulations for GSMP packets may be defined in
   separate documents.


3.  Common Definitions and Procedures

   GSMP is a master-slave protocol. The controller issues request
   messages to the switch. Each request message indicates whether a
   response is required from the switch and contains a transaction
   identifier to enable the response to be associated with the
   request. The switch replies with a response message indicating
   either a successful result or a failure. There are six classes of
   GSMP request-response message: Connection Management, Reservation
   Management, Port Management, State and Statistics, Configuration,
   and Quality of Service. The switch may also generate asynchronous
   Event messages to inform the controller of asynchronous events.
   The controller can be required to acknowledge event messages, but
   by default does not do so. There is also an adjacency protocol
   message used to establish synchronisation across the link and
   maintain a handshake.

   For the request-response messages, each message type has a format
   for the request message and a format for the success response.
   Unless otherwise specified a failure response message is identical
   to the request message that caused the failure, with the Code
   field indicating the nature of the failure.

   Switch ports are described by a 32-bit port number. The switch
   assigns port numbers and it may typically choose to structure the
   32 bits into opaque sub-fields that have meaning to the physical
   structure of the switch (e.g. slot, port). In general, a port in
   the same physical location on the switch will always have the same
   port number, even across power cycles. The internal structure of
   the port number is opaque to the GSMP protocol. However, for the
   purposes of network management such as logging, port naming, and
   graphical representation, a switch may declare the physical
   location (physical slot and port) of each port. Alternatively,
   this information may be obtained by looking up the product
   identity in a database.

   Each switch port also maintains a port session number assigned by
   the switch. A message, with an incorrect port session number must
   be rejected. This allows the controller to detect a link failure
   and to keep state synchronised.



Doria, et. al.      Expires October 2000        [Page 8]




Internet Draft     General Switch Management Protocol     April 2000

   Except for the adjacency protocol message, no GSMP messages may be
   sent across the link until the adjacency protocol has achieved
   synchronisation, and all GSMP messages received on a link that
   does not currently have state synchronisation must be discarded.

3.1  GSMP Packet Format

3.1.1  Basic GSMP Message format

   All GSMP messages, except the adjacency protocol message, have the
   following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |    Transaction Identifier                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                          Message Body                         ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   (The convention in the documentation of Internet Protocols [5] is
   to express numbers in decimal. Numbers in hexadecimal format are
   specified by prefacing them with the characters "0x". Numbers in
   binary format are specified by prefacing them with the characters
   "0b". Data is pictured in "big-endian" order. That is, fields are
   described left to right, with the most significant octet on the
   left and the least significant octet on the right. Whenever a
   diagram shows a group of octets, the order of transmission of
   those octets is the normal order in which they are read in
   English. Whenever an octet represents a numeric quantity the left
   most bit in the diagram is the high order or most significant bit.
   That is, the bit labelled 0 is the most significant bit.
   Similarly, whenever a multi-octet field represents a numeric
   quantity the left most bit of the whole field is the most
   significant bit. When a multi-octet quantity is transmitted, the
   most significant octet is transmitted first. This is the same
   coding convention as is used in the ATM layer [1] and AAL-5 [2].)

   Version
              The version number of the GSMP protocol being used in
              this session. It should be set by the sender of the
              message to the GSMP protocol version negotiated by the
              adjacency protocol.


Doria, et. al.      Expires October 2000        [Page 9]




Internet Draft     General Switch Management Protocol     April 2000

  Message Type
             The GSMP message type. GSMP messages fall into eight
             classes: Connection Management, Resource Management,
             Port Management, State and Statistics, Configuration,
             Quality of Service, Events and messages belonging to an
             Abstract or Resource Model (ARM) extension. Each class
             has a number of different message types. In addition,
             one Message Type is allocated to the adjacency protocol.

  Result
             Field in a Connection Management request message, a Port
             Management request message, or a Quality of Service
             request message is used to indicate whether a response
             is required to the request message if the outcome is
             successful. A value of "NoSuccessAck" indicates that the
             request message does not expect a response if the
             outcome is successful, and a value of "AckAll" indicates
             that a response is expected if the outcome is
             successful. In both cases a failure response must be
             generated if the request fails. For Sate and Statistics,
             and Configuration request messages, a value of
             "NoSuccessAck" in the request message is ignored and the
             request message is handled as if the field were set to
             "AckAll". (This facility was added to reduce the control
             traffic in the case where the controller periodically
             checks that the state in the switch is correct. If the
             controller does not use this capability, all request
             messages should be sent with a value of "AckAll.")

            In a response message the result field can have three
            values: "Success," "More," and "Failure". The "Success"
            and "More" results both indicate a success response. All
            messages that belong to the same success response will
            have the same Transaction Identifier. The "Success"
            result indicates a success response that may be
            contained in a single message or the final message of a
            success response spanning multiple messages.

            "More" in the result indicates that the message, either
            request or response, exceeds the maximum transmission
            unit of the data link and that one or more further
            messages will be sent to complete the success response.

            ReturnReceipt is a results field used in Events to
            indicate that an acknowledgement is required for the
            message. The default for Events Messages is that the
            controller will not acknowledge Events. In the case
            where a switch requires acknowledgement, it will set the
            EventAck flag in the header of the Event Message.


Doria, et. al.      Expires October 2000        [Page 10]




Internet Draft     General Switch Management Protocol     April 2000

            The encoding of the result field is:

                  NoSuccessAck:               Result = 1
                  AckAll:                     Result = 2
                  Success:                    Result = 3
                  Failure:                    Result = 4
                  More:                       Result = 5
                  ReturnReceipt               Result = 6

            The Result field is not used in an adjacency protocol
            message.

  Code
             Field gives further information concerning the result in
             a response message. It is mostly used to pass an error
             code in a failure response but can also be used to give
             further information in a success response message or an
             event message. In a request message the code field is
             not used and is set to zero. In an adjacency protocol
             message the Code field is used to determine the function
             of the message.

  Partition ID
             Field used to associate the command with a specific
             switch partition. The format of the Partition ID is not
             defined in GSMP. If desired, the Partition ID can be
             divided into multiple sub-identifiers within a single
             partition.  For example: the Partition ID could be
             subdivided into a 6-bit partition number and a 2-bit
             sub-identifier which would allow a switch to support 64
             partitions with 4 available IDs per partition.

  Transaction Identifier
             Used to associate a request message with its response
             message. For request messages the controller may select
             any transaction identifier. For response messages the
             transaction identifier is set to the value of the
             transaction identifier from the message to which it is a
             response. For event messages the transaction identifier
             should be set to zero. The Transaction Identifier is not
             used, and the field is not present, in the adjacency
             protocol.

  I flag
             If I is set then the SubMessage Number field indicates
             the total number of SubMessage segments that compose the
             entire message.  If it is not set then the SubMessage
             Number field indicates the sequence number of this
             SubMessage segment within the whole message.


Doria, et. al.      Expires October 2000        [Page 11]




Internet Draft     General Switch Management Protocol     April 2000

   SubMessage Number
             When a message is segmented because it exceeds the MTU
             of the link layer, each segment will include a
             submessage number to indicate its position.
             Alternatively, if it is the first submessage in a
             sequence of submessages, the I flag will be set and this
             filed will contain the total count of submessage
             segments.

   Length
               Message length in octets including header.

3.1.2  Fields commonly found in GSMP messages

   The following fields are frequently found in GSMP messages. They
   are defined here to avoid repetition.

   Port
             Gives the port number of the switch port to which the
             message applies.

   Port Session Number
             Each switch port maintains a Port Session Number
             assigned by the switch. The port session number of a
             port remains unchanged while the port is continuously in
             the Available state and the link status is continuously
             Up. When a port returns to the Available state after it
             has been Unavailable or in any of the Loopback states,
             or when the line status returns to the Up state after it
             has been Down or in Test, or after a power cycle, a new
             Port Session Number must be generated. Port session
             numbers should be assigned using some form of random
             number.

             If the Port Session Number in a request message does not
             match the current Port Session Number for the specified
             port, a failure response message must be returned with
             the Code field indicating, "Invalid port session
             number."  The current port session number for a port may
             be obtained using a Port Configuration or an All Ports
             Configuration message.

3.1.3  Labels

   There are two types of labels which are used in GSMP: short labels
   which are 28 bits long and TLV labels. Additionally, a label field
   can be composed of many stacked labels that together constitute
   the Label.



Doria, et. al.      Expires October 2000        [Page 12]




Internet Draft     General Switch Management Protocol     April 2000

   All Labels will be designated as follow:

      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |T|S|x|x|                Input or Output Label                  |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       T: Label Type Indicator
          T = 0: Short 28 bit Label
          T = 1: TLV label

          Both label types are discussed below in section 3.1.3.1 and
          section 3.1.3.2.

       S: Stacked Label Indicator
          Label Stacking is discussed below in section 3.1.3.3

       x: Reserved Flags. These are generally used by specific
          messages and will be defined in those messages.


3.1.3.1   Short Labels

   Whenever a 28-bit label is sufficient, as is the case with ATM,
   Frame Relay and MPLS, a short label may be used.

3.1.3.1.1  ATM Short Labels

   If a port's attribute PortType=ATM then that port's labels must be
   interpreted as ATM Labels as shown:

     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
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |T|S|x|x|           VPI         |              VCI              |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   ATM ports do not support Extension Labels so the VPI and VCI
   values always occupy the 28 bits following the flags in a
   connection management message. For a virtual path connection
   (switched as a single virtual path connection) or a virtual path
   (switched as one or more virtual channel connections within the
   virtual path) the VCI field is not used.

   ATM distinguishes between virtual path connections and virtual
   channel connections. The connection management messages apply both
   to virtual channel connections and virtual path connections. The
   Add Branch and Move Branch connection management messages have two
   Message Types. One Message Type indicates that a virtual channel
   connection is required, and the other Message Type indicates that


Doria, et. al.      Expires October 2000        [Page 13]




Internet Draft     General Switch Management Protocol     April 2000

   a virtual path connection is required. The Delete Branches, Delete
   Tree, and Delete All connection management messages have only a
   single Message Type because they do not need to distinguish
   between virtual channel connections and virtual path connections.
   For virtual path connections, neither Input VCI fields nor Output
   VCI fields are required. They should be set to zero by the sender
   and ignored by the receiver. Virtual channel branches may not be
   added to an existing virtual path connection. Conversely, virtual
   path branches may not be added to an existing virtual channel
   connection. In the Port Configuration message each switch input
   port may declare whether it is capable of supporting virtual path
   switching (i.e. accepting connection management messages
   requesting virtual path connections).

3.1.3.1.2  Frame Relay Short Labels

   If a port's attribute PortType=FR then that port's labels must be
   interpreted as Frame Relay Labels as shown:


     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
    +- - - -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |T|S|x|x| Res |Len|              DLCI                           |
    +- - - -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   The Len field specifies the number of bits of the DLCI. The
   following values are supported:

       Len  DLCI bits
       0    10
       1    17
       2    23

   DLCI is the binary value of the Frame Relay Label. The significant
   number of bits (10, 17, or 23) of the label value are to be
   encoded into the Data Link Connection Identifier (DLCI) field when
   part of the Frame Relay data link header [13].

   Frame relay ports do not support Extension Labels so the Len and
   DLCI values should be right justified with the Resv. bits set to
   zero in the 28 bits Label field following the flags in a
   connection management message.

3.1.3.1.3  MPLS Generic Short Labels

   If a port's attribute PortType=MPLS then that port's labels are
   for use on links for which label values are independent of the



Doria, et. al.      Expires October 2000        [Page 14]




Internet Draft     General Switch Management Protocol     April 2000

   underlying link technology. Example of such links are PPP and
   Ethernet. On such links the labels are carried in MPLS label
   stacks [14]. The labels for this PortType must be interpreted as
   MPLS labels as shown:

     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
    +- - - - - - - - - - - -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |T|S|x|x|               |              MPLS Label               |
    +- - - - - - - - - - - -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       MPLS Label
          This is a 20-bit label value as specified in [14]
          represented as a 20-bit number in a 4 byte field.


3.1.3.2  TLV Labels

   When the Label Type Indicator (T flag) is set to 1, the label is
   TLV (Type, Length and Value) label. A summary of TLV labels
   supported in this version of the protocol is listed below:

       TLV Label       Type     Section Title

       ATM Label       0x100    ATM TLV Labels
       FR Label        0x101    Frame Relay TLV Labels
       MPLS Gen Label 0x102     MPLS Generic TLV Labels
       FEC Label       0x103    FEC TLV Labels
       DS3-DS1 Label 0x200      DS3 to DS1 Service TLV Labels
       E3-E1 Label     0x201    E3 to E1 Service TLV Labels
       S-DS1 Label     0x202    Structured DS1 Service TLV Labels
       U-DS1 Label     0x203    Unstructured DS1 Service TLV Labels
       S-E1 Label      0x204    Structured E1 Service TLV Labels
       U-E1 Label      0x205    Unstructured E1 Service TLV Labels
The form of all TLV labels is as follows:


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|x|       Label Type      |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                                                               |
     ~                          Label Value                          ~
     |                                                               |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Label Type



Doria, et. al.      Expires October 2000        [Page 15]




Internet Draft     General Switch Management Protocol     April 2000

       A 12-bit field indicating the type of label.

   Label Length

       A 16-bit field indicating the length of label in octets,
       padded into a 32-bit word boundary.

3.1.3.2.1  ATM TLV Labels

   If the T bit is set and Label Type = ATM Label, the labels must be
   interpreted as shown:


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|x|   ATM Label (0x100)   |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |       |           VPI         |              VCI              |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   The label value field should be interpreted as defined in section
   "ATM Short Labels".


3.1.3.2.2  Frame Relay TLV Labels

   If the T bit is set and TLV Type = FR Label, the labels must be
   interpreted as shown:


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|x|    FR Label (0x101)   |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |       | Res |Len|              DLCI                           |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       The label value field should be interpreted as defined in
       section "Frame Relay Short Labels".


3.1.3.2.3  MPLS Generic TLV Labels





Doria, et. al.      Expires October 2000        [Page 16]




Internet Draft     General Switch Management Protocol     April 2000

   If the T bit is set and Label Type = MPLS Generic Label, the
   labels must be interpreted as shown:


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|x| MPLS Gen Label (0x102)|          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                       |              MPLS Label               |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       The label value field should be interpreted as defined in
       section "MPLS Generic Short Labels".


3.1.3.2.4  FEC TLV

       Labels may be bound to Forwarding Equivalence Classes (FECs)
       as defined in [19]. In this version of the protocol only
       Prefix FECs are supported. If the T bit is set and Label Type
       = FEC Label, the labels must be interpreted as shown:


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|x|   FEC Label (0x103)   |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |x x x x x x x x|         Address Family        | Prefix Length |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     ~                             Prefix                            ~
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Address Family

       Two octet quantity containing a value from ADDRESS FAMILY
       NUMBERS in [5] that encodes the address family for the address
       prefix in the Prefix field.

   Prefix Length

       One octet containing the length in bits of the address prefix
       that follows. A length of zero indicates a prefix that matches
       all addresses (the default destination); in this case the
       Prefix itself is zero octets.

   Prefix


Doria, et. al.      Expires October 2000        [Page 17]




Internet Draft     General Switch Management Protocol     April 2000

         An address prefix encoded according to the Address Family
         field, whose length, in bits, was specified in the Prefix
         Length field, padded to a 32-bit word boundary.


3.1.3.2.5  DS3 to DS1 Service TLV Labels

         If the T bit is set and Label Type = DS3-DS1 Service Label,
         the labels must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|U| DS3-DS1 Label (0x200) |         Label Length          |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |  Channel ID   |                 Time Slots                    |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   This label type represents a DS3 circuit channalized into a DS1
   channel.

   U:

         Indicates when set that the DS1 channel is unstructured,
         otherwise it is structured.

   Channel ID:

         Specifies the DS1 channel identity:
         DS1 Channel ID's     1-28

   Time Slots:

         A variable length bit field indicating the 64k time slots
         included in the label. The length in octets, was specified in
         the Label Length field, padded to a 32-bit word boundary.


3.1.3.2.6  E3 into E1 Service TLV Labels

         If the T bit is set and Label Type = E3-E1 Service Label, the
         labels must be interpreted as shown:







Doria, et. al.      Expires October 2000        [Page 18]




Internet Draft     General Switch Management Protocol     April 2000


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|U|  E3-E1 Label (0x201)  |         Label Length          |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |  Channel ID   |                 Time Slots                    ~
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     ~                        Time Slots                             ~
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   This label type represents an E3 circuit channalized into an E1
   channel.

   U : 

       Indicates when set that the E1 channel is unstructured,
       otherwise it is structured.


   Channel ID:

       Specifies the E1 channel identity:
       E1 Channel ID's     1-16

   Time Slots:

       A variable length bit field indicating the 64k time slots
       included in the label. The length in octets, was specified in
       the Label Length field, padded to a 32-bit word boundary.


3.1.3.2.7  Structured DS1 Service TLV Labels

       If the T bit is set and Label Type = S-DS1 Label, the labels
       must be interpreted as shown:


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|x|  S-DS1 Label (0x202)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Time Slots                             |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|

   Time Slots:


Doria, et. al.      Expires October 2000        [Page 19]




Internet Draft     General Switch Management Protocol     April 2000

       A variable length bit field indicating the 64k time slots
       included in the label. The length in octets, was specified in
       the Label Length field, padded to a 32-bit word boundary.


3.1.3.2.8  Unstructured DS1 Service TLV Labels

       If the T bit is set and Label Type = E3-E1 Service Label, the
       labels must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|x|  U-DS1 Label (0x203)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Time Slots                             |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|

   Time Slots:

       A variable length bit field indicating the 64k time slots
       included in the label. The length in octets, was specified in
       the Label Length field, padded to a 32-bit word boundary.


3.1.3.2.9  Structured E1 Service TLV Labels

       If the T bit is set and Label Type = S-E1 Label, the labels
       must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|x|   S-E1 Label (0x204)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Time Slots                             |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|

   Time Slots:

       A variable length bit field indicating the 64k time slots
       included in the label. The length in octets, was specified in
       the Label Length field, padded to a 32-bit word boundary.


3.1.3.2.10  Unstructured E1 Service TLV Labels





Doria, et. al.      Expires October 2000        [Page 20]




Internet Draft     General Switch Management Protocol     April 2000

       If the T bit is set and Label Type = U-E1 Label, the labels
       must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|x|x|   U-E1 Label (0x204)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Time Slots                             |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|

   Time Slots:

       A variable length bit field indicating the 64k time slots
       included in the label. The length in octets, was specified in
       the Label Length field, padded to a 32-bit word boundary.



3.1.3.3  Label Stacking

   Label stacking is a technique used in MPLS that allows
   hierarchical labelling. MPLS label stacking is similar to but
   subtly different from the VPI/VCI hierarchy of labels in ATM.
   There is no set limit to the depth of label stacks which can be
   used in GSMP.

   When the Stacked Label Indicator S is set to 1 it indicates that
   an additional label field will be appended to the adjacent label
   field. For example, a stacked Input Short Label could be
   designated as follows:


    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |T|S|x|x|                  Input Label                          |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 ** ~T|S|x|x|              Stacked Input Label                      ~
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       ** Note: There can be zero or more Stacked Labels fields (like
          those marked **) following an Input or Output Label field.
          A Stacked Label follows the previous label field if and
          only if the S Flag in the previous label is set.

   When a label is extended by stacking, it is treated by the
   protocol as a single extended label, and all operations on that
   label are atomic.  For example, in an add branch message, the
   entire input label is switched for the entire output label.


Doria, et. al.      Expires October 2000        [Page 21]




Internet Draft     General Switch Management Protocol     April 2000

   Likewise in a Move Input Branch and Move Output Branch messages,
   the entire label is swapped.  For that reason, in all messages
   that designate a label field it will depicted as a single 32-bit
   value, though it might be instantiated by many 32-bit values in
   practice.


3.1.3.4  Additional General Message Information

   1. Any field in a GSMP message that is unused or defined as
      "reserved" must be set to zero by the sender and ignored by the
      receiver.

   2. Flags that are undefined will be designated as:
      x: reserved

   3. It is not an error for a GSMP message to contain additional
      data after the end of the Message Body. This is to support
      development and experimental purposes. However, the maximum
      transmission unit of the GSMP message, as defined by the data
      link layer encapsulation, must not be exceeded.

   4. A success response message must not be sent until the requested
      operation has been successfully completed.

3.1.4  Failure Response Messages

   A failure response message is formed by returning the request
   message that caused the failure with the Result field in the
   header indicating failure (Result = 4) and the Code field giving
   the failure code. The failure code specifies the reason for the
   switch being unable to satisfy the request message.

   If the switch issues a failure response in reply to a request
   message, no change should be made to the state of the switch as a
   result of the message causing the failure. (For request messages
   that contain multiple requests, such as the Delete Branches
   message, the failure response message will specify which requests
   were successful and which failed. The successful requests may
   result in changed state.)

   If the switch issues a failure response it must choose the most
   specific failure code according to the following precedence:

       - Invalid Message

       - General Message Failure




Doria, et. al.      Expires October 2000        [Page 22]




Internet Draft     General Switch Management Protocol     April 2000

      - Specific Message Failure A failure response specified in the
         text defining the message type.

      - Connection Failures

      - Virtual Path Connection Failures

      - Multicast Failures

      - QoS Failures

      - General Failures

  If multiple failures match in any of the categories, the one that
  is listed first should be returned. Descriptions of the Failure
  response messages can be found in section 12.































Doria, et. al.      Expires October 2000        [Page 23]




Internet Draft     General Switch Management Protocol     April 2000

4.  Connection Management Messages

4.1  General Message Definitions

   Connection management messages are used by the controller to
   establish, delete, modify and verify connections across the
   switch. The Add Branch, Delete Tree, and Delete All connection
   management messages have the following format for both request and
   response messages:


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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Reservation ID                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Input Port                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                  Input Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Input Service Selector                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Output Port                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                  Output Label                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                   Output Service Selector                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |IQS|OQS|P|x|N|O|            Adaptation Method                  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


          When required, the Add Branch, Move Input Branch and Move
          Output Branch messages have an additional, variable length
          data block appended to the above message. This will be
          required when indicated by the IQS and OQS flags (if they
          are set to 0b10) and the service selector.  The additional
          data block has the following form:





Doria, et. al.      Expires October 2000        [Page 24]




Internet Draft     General Switch Management Protocol     April 2000


   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    TC Flags   |                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                     Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Output TC Flags|                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                     Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Note: Field and Parameters that have been explained in the
         description of the general messages will not be explained
         in this section. Please refer to section 3.1 for details.


  Input PortIdentifies a switch input port.
  Reservation ID
             Identifies the reservation that must be deployed for the
             branch being added. Reservations are established using
             reservation management messages (see Chapter 5). A value
             of zero indicates that no Reservation is being deployed
             for the branch. If a reservation with a corresponding
             Reservation ID exists then the reserved resources must
             be applied to the branch. If the numerical value of
             Reservation ID is greater than the value of Max
             Reservations (from the Switch Configuration message), a
             failure response is returned indicating "Reservation ID
             out of Range." If the value of Input Port differs from
             the input port specified in the reservation or if the
             value of Output Port differs from the output port
             specified in the reservation, a failure response must be
             returned indicating "Mismatched reservation ports." If
             no reservation corresponding to Reservation ID exists, a
             failure response must be returned indicating "Non-
             existent reservation."

             If a valid Reservation ID is specified and the Service
             Model is used (i.e. QMS=0b10) then the Traffic
             Parameters Block may be omitted from the Add Branch
             message indicating that the Traffic Parameters specified
             in the corresponding Reservation Request message are
             implied.


Doria, et. al.      Expires October 2000        [Page 25]




Internet Draft     General Switch Management Protocol     April 2000

  Input LabelIdentifies an incoming labelled channel arriving at the
             switch input port indicated by the Input Port field. The
             value in the Input Label field must be interpreted
             according to the Label Type attribute of the switch
             input port indicated by the Input Port field.

  Output PortIdentifies a switch output port.
  Output Label
             Identifies an outgoing labelled channel departing at the
             switch output port indicated by the Output Port field.
             The value in the Output Label field must be interpreted
             according to the Label Type attribute of the switch
             input port indicated by the Output Port field

  IQS, OQS Input and Output QoS Model Selector:
             The QoS Model Selector is used to specify a QoS Model
             for the connection. The value of IQS/OQS indicates the
             interpretation for both the Input Service Selector or
             the Output Service Selector and should be interpreted as
             a priority, a QoS profile or a service specification as
             shown:

            IQS/OQS QoS Model               Service Selector
            ---        ---------            ----------------
            00         Simple Abstract      Model Priority
            01         QoS Profile Model    QoS Profile
            10         Service Model        Service Specification
            11         Optional ARM         ARM Specification

  P Flag
             If the Parameter flag is set it indicates that a single
             instance of the Traffic Parameter block is provided.
             This occurs in cases where the Input Traffic Parameters
             are identical to Output Traffic Parameters.

  B Flag
             The B flag is used to indicate whether bandwidth
             allocation is in use.  Details on the use of the B flag
             can be found in section

  N Flag
             The Null flag is used to indicate a null encapsulation
             method. This occurs when the branch is connecting two
             ports of the same type.



Doria, et. al.      Expires October 2000        [Page 26]




Internet Draft     General Switch Management Protocol     April 2000

  O Flag
              The Opaque flag indicate whether the adaptation flag is
              opaque, or whether it is defined by the protocol.

  Adaptation Method
              The adaptation method is used to define the adaptation
              framing that may be in use when moving traffic from one
              port type to another port type; e.g. from a frame relay
              port to an ATM port.
              The content of this field is defined by the Opaque flag.
              If the Opaque flag is set, then this field is defined by
              the switch manufacturer and is not defined in this
              protocol.  If the opaque flag is not set, the field is
              divided into two 12-bit fields as follows:
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |IQS|OQS|P|x|N|O|    Input Adaptation   |   Output Adaptation   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            Input Adaptation
               Adaptation framing method used on incoming connections.
            Output Adaptation
               Adaptation framing method used on outgoing connections.
            Adaptation Types:

               0x100                        PPP
               0x200                        FRF.5
               0x201                        FRF.8


            Input and Output TC Flags
               TC (Traffic Control) Flags are used in Add Branch, Move  
               Input Branch and Move Output Branch messages for
               connections using the Service Model (i.e. when
               QMS=0b10). The TC Flags field is defined in Section
               10.6.

  Input and Output Traffic Parameters Block
              This variable length field is used in Add Branch, Move
              Input Branch and Move Output Branch messages for
              connections using the Service Model (i.e. when
              QMS=0b10). Traffic Parameters Block is defined in
              Section 10.5. The Traffic Parameters Block may be
              omitted if a valid, non-zero Reservation ID is
              specified, in which case the Traffic Parameters of the
              corresponding Reservation Request message are used. If
              the P flag is set, then the appended message block will
              only include a single traffic parameter block which will
              be used for both input and output traffic.




Doria, et. al.      Expires October 2000        [Page 27]




Internet Draft     General Switch Management Protocol     April 2000

  For all connection management messages, except the Delete Branches
  message, the success response message is a copy of the request
  message returned with the Result field indicating success and the
  Number of Branches field indicating the number of branches on the
  connection after completion of the operation. The Code field is
  not used in a connection management success response message.

  The failure response message is a copy of the request message
  returned with a Result field indicating failure and the Number of
  Branches field indicating the number of branches on the
  connection.

  Fundamentally, no distinction is made between point-to-point and
  point-to-multipoint connections. By default, the first Add Branch
  message for a particular Input Port and Input Label will establish
  a point-to-point connection. The second Add Branch message with
  the same Input Port and Input Label fields will convert the
  connection to a point-to-multipoint connection with two branches.
  However, to avoid possible inefficiency with some switch designs,
  the Multicast Flag is provided. If the controller knows that a new
  connection is point-to-multipoint when establishing the first
  branch, it may indicate this in the Multicast Flag. Subsequent Add
  Branch messages with the same Input Port and Input Label fields
  will add further branches to the point-to-multipoint connection.
  Use of the Delete Branch message on a point-to-multipoint
  connection with two branches will result in a point-to-point
  connection. However, the switch may structure this connection as a
  point-to-multipoint connection with a single output branch if it
  chooses. (For some switch designs this structure may be more
  convenient.) Use of the Delete Branch message on a point-to-point
  connection will delete the point-to-point connection. There is no
  concept of a connection with zero output branches. All connections
  are unidirectional, one input labelled channel to one or more
  output labelled channels.

  GSMP supports point-to-point and point-to-multipoint connections. A
  multipoint-to-point connection is specified by establishing multiple
  point-to-point connections each of them specifying the same output
  branch. (An output branch is specified by an output port and output
  label.)

  The connection management messages may be issued regardless of the
  Port Status of the switch port. Connections may be established or
  deleted when a switch port is in the Available, Unavailable, or
  any of the Loopback states. However, all connection state on an
  input port will be deleted when the port returns to the Available
  state from any other state, i.e. when a Port Management message is
  received for that port with the Function field indicating either
  Bring Up, or Reset Input Port.


Doria, et. al.      Expires October 2000        [Page 28]




Internet Draft     General Switch Management Protocol     April 2000



4.2  Add Branch Message

   The Add Branch message is a connection management message used to
   establish a connection or to add an additional branch to an
   existing connection. It may also be used to check the connection
   state stored in the switch. The connection is specified by the
   Input Port and Input Label fields. The output branch is specified
   by the Output Port and Output Label fields. The quality of service
   requirements of the connection are specified by the QoS Model
   Selector and Service Selector fields. To request a connection the
   Add Branch message is:

      Message Type = 16


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Reservation ID                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Input Port                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|M|B|                  Input Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Input Service Selector                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Output Port                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                  Output Label                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                   Output Service Selector                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |IQS|OQS|P|x|N|O|            Adaptation Method                  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   When the value of either IQS or OQS is set to 0b10 then the
   following Traffic Parameters Block is appended to the above
   message:



Doria, et. al.      Expires October 2000        [Page 29]




Internet Draft     General Switch Management Protocol     April 2000


   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Input TC Flags |                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~               Input Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Output TC Flags|                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~              Output Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


      Note: Field and Parameters that have been explained in the
         description of the general connection message will not be
         explained in this section. Please refer to section 4.1for
         details.

      M: Multicast
              Multicast flag is used as a hint for point-to-
              multipoint connections in the Add Branch message. It
              is not used in any other connection management
              messages and in these messages it should be set to
              zero. If set, it indicates that the connection is very
              likely to be a point-to-multipoint connection. If
              zero, it indicates that this connection is very likely
              to be a point-to-point connection or is unknown.

              The Multicast flag is only used in the Add Branch
              message when establishing the first branch of a new
              connection. It is not required to be set when
              establishing subsequent branches of a point-to-
              multipoint connection and on such connections it
              should be ignored by the receiver. (On receipt of the
              second and subsequent Add Branch messages the receiver
              knows that this is a point-to-multipoint connection.)
              If it is known that this is the first branch of a
              point-to-multipoint connection this flag should be
              set. If it is unknown, or if it is known that the
              connection is point-to-point this flag should be zero.
              The use of this flag is not mandatory. It may be
              ignored by the switch. If unused the flag should be
              set to zero. Some switches use a different data
              structure for point-to-multipoint connections than for
              point-to-point connections. This flag avoids the
              switch setting up a point-to-point structure for the


Doria, et. al.      Expires October 2000        [Page 30]




Internet Draft     General Switch Management Protocol     April 2000

              first branch of a point-to-multipoint connection which
              must immediately be deleted and reconfigured as point-
              to-multipoint when the second branch is established.

       B: Bi-directional
            The Bi-directional flag applies only to the Add Branch
            message. In all other Connection Management messages it
            is not used. It may only be used when establishing a
            point- to-point connection. The Bi-directional flag in
            an Add Branch message, if set, requests that two
            unidirectional connections be established, one in the
            forward direction, and one in the reverse direction. It
            is equivalent to two Add Branch messages, one specifying
            the forward direction, and one specifying the reverse
            direction. The forward direction uses the values of
            Input Port, Input Label, Output Port and Output Label as
            specified in the Add Branch message. The reverse
            direction is derived by exchanging the values specified
            in the Input Port and Input Label fields, with those of
            the Output Port and Output Label fields respectively.
            Thus, a connection in the reverse direction arrives at
            the input port specified by the Output Port field, on
            the label specified by the Output Label field. It
            departs from the output port specified by the Input Port
            field, on the label specified by the Input Label field.

            The Bi-directional flag is simply a convenience to
            establish two unidirectional connections in opposite
            directions between the same two ports, with identical
            Labels, using a single Add Branch message. In all future
            messages the two unidirectional connections must be
            handled separately. There is no bi-directional delete
            message. However, a single Delete Branches message with
            two Delete Branch Elements, one for the forward
            connection and one for the reverse, may be used.


  If the connection specified by the Input Port and Input Label
  fields does not already exist, it must be established with the
  single output branch specified in the request message. If the Bi-
  directional Flag in the Flags field is set, the reverse connection
  must also be established. The output branch should have the QoS
  attributes specified by the Class of Service field.

  If the connection specified by the Input Port and Input Label
  fields already exists, but the specified output branch does not,
  the new output branch must be added. The new output branch should
  have the QoS attributes specified by the Class of Service field.


Doria, et. al.      Expires October 2000        [Page 31]




Internet Draft     General Switch Management Protocol     April 2000

   If the connection specified by the Input Port and Input Label
   fields already exists and the specified output branch also already
   exists, the QoS attributes of the connection, specified by the
   Class of Service field, if different from the request message,
   should be changed to that in the request message. A success
   response message must be sent if the Result field of the request
   message is "AckAll". This allows the controller to periodically
   reassert the state of a connection or to change its priority. If
   the result field of the request message is "NoSuccessAck" a
   success response message should not be returned. This may be used
   to reduce the traffic on the control link for messages that are
   reasserting previously established state. For messages that are
   reasserting previously established state, the switch must always
   check that this state is correctly established in the switch
   hardware (i.e. the actual connection tables used to forward cells
   or frames).

   If the output branch specified by the Output Port and Output Label
   fields is already in use by any connection other than that
   specified by the Input Port and Input Label fields, then the
   resulting output branch will have multiple input branches. If
   multiple point-to-point connections share the same output branch
   the result will be a multipoint-to-point connection.

   If the connection specified by the Input Port and Input Label
   fields already exists, and the Bi-directional Flag in the Flags
   field is set, a failure response must be returned indicating:
   "Only point-to-point bi-directional connections may be
   established."

   It should be noted that different switches support multicast in
   different ways. There will be a limit to the total number of
   point- to-multipoint connections any switch can support, and
   possibly a limit on the maximum number of branches that a point-
   to-multipoint connection may specify. Some switches also impose a
   limit on the number of different Label values that may be assigned
   to the output branches of a point-to-multipoint connection. Many
   switches are incapable of supporting more than a single branch of
   any particular point-to-multipoint connection on the same output
   port. Specific failure codes are defined for some of these
   conditions.

4.2.1  ATM specific procedures:

          To request an ATM virtual path connection the ATM Virtual
          Path Connection (VPC) Add Branch message is:

             Message Type = 26



Doria, et. al.      Expires October 2000        [Page 32]




Internet Draft     General Switch Management Protocol     April 2000

          An ATM virtual path connection can only be established
          between ATM ports, i.e. ports with the "ATM" Label Type
          attribute. If an ATM VPC Add Branch message is received and
          either the switch input port specified by the Input Port
          field or the switch output port specified by the Output
          Port field is not an ATM port, a failure response message
          must be returned indicating, "Virtual path switching is not
          supported on non-ATM ports."

          If an ATM VPC Add Branch message is received and the switch
          input port specified by the Input Port field does not
          support virtual path switching, a failure response message
          must be returned indicating, "Virtual path switching is not
          supported on this input port."

          If an ATM virtual path connection already exists on the
          virtual path specified by the Input Port and Input VPI
          fields, a failure response message must be returned
          indicating, "Attempt to add a virtual channel connection
          branch to an existing virtual path connection." For the VPC
          Add Branch message, if a virtual channel connection already
          exists on any of the virtual channels within the virtual
          path specified by the Input Port and Input VPI fields, a
          failure response message must be returned indicating,
          "Attempt to add a virtual path connection branch to an
          existing virtual channel connection."

4.3  Delete Tree Message

   The Delete Tree message is a Connection Management message used to
   delete an entire connection. All remaining branches of the
   connection are deleted. A connection is specified by the Input
   Port and Input Label fields. The Output Port and Output Label
   fields are not used in this message. The Delete Tree message is:

      Message Type = 18

   If the Result field of the request message is "AckAll" a success
   response message must be sent upon successful deletion of the
   specified connection. The success message must not be sent until
   the delete operation has been completed and if possible, not until
   all data on the connection, queued for transmission, has been
   transmitted. The Number of Branches field is not used in either
   the request or response messages of the Delete Tree message.

4.4  Verify Tree Message

   The Verify Tree message has been removed from this version of
   GSMP. Its function has been replaced by the Number of Branches


Doria, et. al.      Expires October 2000        [Page 33]




Internet Draft     General Switch Management Protocol     April 2000

   field in the success response to the Add Branch message which
   contains the number of branches on a connection after successful
   completion of an Add Branch operation.

      Message Type = 19

   If a request message is received with Message Type = 19 a failure
   response must be returned with the Code field indicating: "The
   specified request is not implemented in this version of the
   protocol."

4.5  Delete All Input Port Message

   The Delete All Input Port message is a connection management
   message used to delete all connections on a switch input port All
   connections that arrive at the specified input port must be
   deleted. On completion of the operation all dynamically assigned
   Label values for the specified port must be unassigned, i.e. there
   must be no connections established in the Label space that GSMP
   controls on this port. The Service Selectors, Output Port, Input
   Label and Output Label fields are not used in this message. The
   Delete All Input Port message is:

      Message Type = 20

   If the Result field of the request message is "AckAll" a success
   response message must be sent upon completion of the operation.
   The Number of Branches field is not used in either the request or
   response messages of the Delete All Input Port message. The
   success response message must not be sent until the operation has
   been completed.

   The following failure response messages may be returned to a
   Delete All Input Port request.

          The specified request is not implemented on this switch.

          One or more of the specified ports does not exist.

          Invalid Port Session Number.

   If any field in a Delete All Input Port message not covered by the
   above failure codes is invalid, a failure response must be
   returned indicating: "Invalid request message." Else, the Delete
   All Input Port operation must be completed successfully and a
   success message returned. No other failure messages are permitted.





Doria, et. al.      Expires October 2000        [Page 34]




Internet Draft     General Switch Management Protocol     April 2000

4.6  Delete All Output Port Message

   The Delete All message is a connection management message used to
   delete all connections on a switch output port. All connections
   that have the specified output port must be deleted.  On
   completion of the operation all dynamically assigned Label values
   for the specified port must be unassigned, i.e. there must be no
   connections established in the Label space that GSMP controls on
   this port. The Service Selectors, Input Port, Input Label and
   Output Label fields are not used in this message. The Delete All
   Output Port message is:

      Message Type = 21

   If the Result field of the request message is "AckAll" a success
   response message must be sent upon completion of the operation.
   The Number of Branches field is not used in either the request or
   response messages of the Delete All Output Port message. The
   success response message must not be sent until the operation has
   been completed.

   The following failure response messages may be returned to a
   Delete All Output Port request.

          The specified request is not implemented on this switch.

          One or more of the specified ports does not exist.

          Invalid Port Session Number.

   If any field in a Delete All Output Port message not covered by
   the above failure codes is invalid, a failure response must be
   returned indicating: "Invalid request message." Else, the delete
   all operation must be completed successfully and a success message
   returned. No other failure messages are permitted.

4.7  Delete Branches Message

   The Delete Branches message is a connection management message
   used to request one or more delete branch operations. Each delete
   branch operation deletes a branch of a channel, or in the case of
   the last branch of a connection, it deletes the connection. The
   Delete Branches message is:

      Message Type = 17

   The request message has the following format:




Doria, et. al.      Expires October 2000        [Page 35]




Internet Draft     General Switch Management Protocol     April 2000


    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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           Reserved            |      Number of Elements       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                    Delete Branch Elements                     ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Note: Field and Parameters that have been explained in the
         description of the general connection message will not be
         explained in this section. Please refer to section 4.1for
         details.


  Number of Elements
             Specifies the number of Delete Branch Elements to follow
             in the message. The number of Delete Branch Elements in
             a Delete Branches message must not cause the packet
             length to exceed the maximum transmission unit defined
             by the encapsulation.

  Each Delete Branch Element specifies a branch to be deleted and
  has the following structure:

















Doria, et. al.      Expires October 2000        [Page 36]




Internet Draft     General Switch Management Protocol     April 2000


   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Error |  Reserved             | Element Length|               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Input Port                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                  Input Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Output Port                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                 Output Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


      Note: Field and Parameters that have been explained in the
           description of the general connection message will not be
           explained in this section. Please refer to section 4.1for
           details.


  Error
              Is used to return a failure code indicating the reason
              for the failure of a specific Delete Branch Element in a
              Delete Branches failure response message. The Error
              field is not used in the request message and must be set
              to zero. A value of zero is used to indicate that the
              delete operation specified by this Delete Branch Element
              was successful. Values for the other failure codes are
              specified in Section 3.2, "Failure Response Messages."

              All other fields of the Delete Branch Element have the
              same definition as specified for the other connection
              management messages.

  In each Delete Branch Element, a connection is specified by the
  Input Port and Input Label fields. The specific branch to be
  deleted is indicated by the Output Port and Output Label fields.

  If the Result field of the Delete Branches request message is
  "AckAll" a success response message must be sent upon successful
  deletion of the branches specified by all of the Delete Branch
  Elements. The success response message must not be sent until all
  of the delete branch operations have been completed. The success
  response message is only sent if all of the requested delete
  branch operations were successful. No Delete Branch Elements are
  returned in a Delete Branches success response message and the
  Number of Elements field must be set to zero.


Doria, et. al.      Expires October 2000        [Page 37]




Internet Draft     General Switch Management Protocol     April 2000

   If there is a failure in any of the Delete Branch Elements a
   Delete Branches failure response message must be returned. The
   Delete Branches failure response message is a copy of the request
   message with the Code field of the entire message set to "General
   Message Failure" and the Error field of each Delete Branch Element
   indicating the result of each requested delete operation. A
   failure in any of the Delete Branch Elements must not interfere
   with the processing of any other Delete Branch Elements.

4.8  Move Output Branch Message

   The Move Output Branch message is used to move a branch of an
   existing connection from its current output port label to a new
   output port label in a single atomic transaction. The Move Output
   Branch connection management message has the following format for
   both request and response messages:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           Input Port                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                  Input Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Service Selector                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Old Output Port                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|              Old Output Label                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        New Output Port                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|QMS|              New Output Label                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Service Selector                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |IQS|OQS|P|x|N|O|          Adaptation Method                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   When the value of either IQS or OQS is set to 0b10 then the
   following Traffic Parameters Block is appended to the above
   message:


Doria, et. al.      Expires October 2000        [Page 38]




Internet Draft     General Switch Management Protocol     April 2000


   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Input TC Flags |                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~               Input Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Output TC Flags|                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~              Output Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


      Note: Field and Parameters that have been explained in the
         description of the general connection message will not be
         explained in this section. Please refer to section 4.1for
         details.

  The Move Output Branch message is a connection management message
  used to move a single output branch of connection from its current
  output port and Output Label, to a new output port and Output
  Label on the same connection. None of the connection's other
  output branches are modified. When the operation is complete the
  original Output Label on the original output port will be deleted
  from the connection.

  The Move Output Branch message is:

     Message Type = 22

  For the Move Output Branch message, if the connection specified by
  the Input Port and Input Label fields already exists, and the
  output branch specified by the Old Output Port and Old Output
  Label fields exists as a branch on that connection, the output
  branch specified by the New Output Port and New Output Label
  fields is added to the connection and the branch specified by the
  Old Output Port and Old Output Label fields is deleted. If the
  Result field of the request message is "AckAll" a success response
  message must be sent upon successful completion of the operation.
  The success response message must not be sent until the Move
  Branch operation has been completed.

  For the Move Output Branch message, if the connection specified by
  the Input Port and Input Label fields already exists, but the
  output branch specified by the Old Output Port and Old Output
  Label fields does not exist as a branch on that connection, a


Doria, et. al.      Expires October 2000        [Page 39]




Internet Draft     General Switch Management Protocol     April 2000

   failure response must be returned with the Code field indicating,
   "The specified branch does not exist."

4.8.1  ATM Specific Procedures:

   The ATM VPC Move Output Branch message is a connection management
   message used to move a single output branch of a virtual path
   connection from its current output port and output VPI, to a new
   output port and output VPI on the same virtual channel connection.
   None of the other output branches are modified. When the operation
   is complete the original output VPI on the original output port
   will be deleted from the connection.

   The VPC Move Branch message is:

       Message Type = 27

   For the VPC Move Output Branch message, if the virtual path
   connection specified by the Input Port and Input VPI fields
   already exists, and the output branch specified by the Old Output
   Port and Old Output VPI fields exists as a branch on that
   connection, the output branch specified by the New Output Port and
   New Output VPI fields is added to the connection and the branch
   specified by the Old Output Port and Old Output VPI fields is
   deleted. If the Result field of the request message is "AckAll" a
   success response message must be sent upon successful completion
   of the operation. The success response message must not be sent
   until the Move Branch operation has been completed.

   For the VPC Move Output Branch message, if the virtual path
   connection specified by the Input Port and Input VPI fields
   already exists, but the output branch specified by the Old Output
   Port and Old Output VPI fields does not exist as a branch on that
   connection, a failure response must be returned with the Code
   field indicating, "The specified branch does not exist."

   If the virtual channel connection specified by the Input Port and
   Input Label fields; or the virtual path connection specified by
   the Input Port and  Input VPI fields; does not exist, a failure
   response must be returned with the Code field indicating, "The
   specified connection does not exist."

   If the output branch specified by the New Output Port, New Output
   VPI, and New Output VCI fields for a virtual channel connection;
   or the output branch specified by the New Output Port and New
   Output VPI fields for a virtual path connection; is already in use
   by any connection other than that specified by the Input Port and
   Input Label fields then the resulting output branch will have
   multiple input branches. If multiple point-to-point connections


Doria, et. al.      Expires October 2000        [Page 40]




Internet Draft     General Switch Management Protocol     April 2000

   share the same output branch the result will be a multipoint-to-
   point connection. If multiple point-to-multipoint trees share the
   same output branches the result will be a multipoint-to-multipoint
   connection.

4.9  Move Input Branch Message

   The Move Input Branch message is used to move a branch of an
   existing connection from its current input port label to a new
   input port label in a single atomic transaction. The Move Input
   Branch connection management message has the following format for
   both request and response messages:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           Output Port                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                  Output Label                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Service Selector                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Old Input Port                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|              Old Input Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        New Input Port                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|QMS|              New Input Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Service Selector                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |IQS|OQS|P|x|N|O|          Adaptation Method                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   When the value of either IQS or OQS is set to 0b10 then the
   following Traffic Parameters Block is appended to the above
   message:





Doria, et. al.      Expires October 2000        [Page 41]




Internet Draft     General Switch Management Protocol     April 2000


   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Input TC Flags |                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~               Input Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Output TC Flags|                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~              Output Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


      Note: Field and Parameters that have been explained in the
         description of the general connection message will not be
         explained in this section. Please refer to section 4.1for
         details.

  The Move Input Branch message is a connection management message
  used to move a single input branch of connection from its current
  input port and Input Label, to a new input port and Input Label on
  the same connection. None of the connection's other input branches
  are modified. When the operation is complete the original Input
  Label on the original input port will be deleted from the
  connection.

  The Move Input Branch message is:

     Message Type = 23

  For the Move Input Branch message, if the connection specified by
  the Output Port and Output Label fields already exists, and the
  input branch specified by the Old Input Port and Old Input Label
  fields exists as a branch on that connection, the input branch
  specified by the New Input Port and New Input Label fields is
  added to the connection and the branch specified by the Old Input
  Port and Old Input Label fields is deleted. If the Result field of
  the request message is "AckAll" a success response message must be
  sent upon successful completion of the operation. The success
  response message must not be sent until the Move Input Branch
  operation has been completed.

  For the Move Input Branch message, if the connection specified by
  the Output Port and Output Label fields already exists, but the
  input branch specified by the Old Input Port and Old Input Label
  fields does not exist as a branch on that connection, a failure


Doria, et. al.      Expires October 2000        [Page 42]




Internet Draft     General Switch Management Protocol     April 2000

   response must be returned with the Code field indicating, "The
   specified branch does not exist."

4.9.1  ATM Specific Procedures:

   The ATM VPC Move Input Branch message is a connection management
   message used to move a single input branch of a virtual path
   connection from its current input port and input VPI, to a new
   input port and input VPI on the same virtual channel connection.
   None of the other input branches are modified. When the operation
   is complete the original input VPI on the original input port will
   be deleted from the connection.

   The VPC Move Input Branch message is:

       Message Type = 28

   For the VPC Move Input Branch message, if the virtual path
   connection specified by the Output Port and Output VPI fields
   already exists, and the input branch specified by the Old Input
   Port and Old Input VPI fields exists as a branch on that
   connection, the input branch specified by the New Input Port and
   New Input VPI fields is added to the connection and the branch
   specified by the Old Input Port and Old Input VPI fields is
   deleted. If the Result field of the request message is "AckAll" a
   success response message must be sent upon successful completion
   of the operation. The success response message must not be sent
   until the Move Input Branch operation has been completed.

   For the VPC Move Input Branch message, if the virtual path
   connection specified by the Output Port and Output VPI fields
   already exists, but the input branch specified by the Old Input
   Port and Old Input VPI fields does not exist as a branch on that
   connection, a failure response must be returned with the Code
   field indicating, "The specified branch does not exist."

   If the virtual channel connection specified by the Output Port and
   Output Label fields; or the virtual path connection specified by
   the Output Port and Output VPI fields; does not exist, a failure
   response must be returned with the Code field indicating, "The
   specified connection does not exist."

   If the input branch specified by the New Input Port, New Input
   VPI, and New Input VCI fields for a virtual channel connection; or
   the input branch specified by the New Input Port and New Input VPI
   fields for a virtual path connection; is already in use by any
   connection other than that specified by the Output Port and Output
   Label fields then the resulting input branch will have multiple
   output branches. If multiple point-to-point connections share the


Doria, et. al.      Expires October 2000        [Page 43]




Internet Draft     General Switch Management Protocol     April 2000

  same input branch the result will be a point-to-multipoint
  connection. If multiple multipoint-to-point trees share the same
  input branches the result will be a multipoint-to-multipoint
  connection.









































Doria, et. al.      Expires October 2000        [Page 44]




Internet Draft     General Switch Management Protocol     April 2000

5.  Reservation Management Messages

   GSMP allows switch resources (e.g. bandwidth, buffers, queues,
   labels, etc.) to be reserved for connections before the
   connections themselves are established. This is achieved through
   the manipulation of Reservations in the switch.

   Reservations are hard state objects in the switch that can be
   created by the controller by sending a Reservation Request
   message. Each Reservation is uniquely identified by an identifying
   number called a Reservation ID. Reservation objects can be deleted
   with the Delete Reservation message or the Delete All Reservations
   message. A reservation object is also deleted when the Reservation
   is Deployed by specifying a Reservation ID in an Add Branch
   message.

   The reserved resources must remain reserved until either the
   Reservation is deployed, in which case the resources are applied
   to a branch, or the Reservation is explicitly deleted (with a
   Delete Reservation message or a Delete All Reservations message),
   in which case the resources are freed. Reservations and reserved
   resources are deleted if the switch is reset.

   A Reservation object includes its Reservation ID plus all the
   switch state associated with a branch with the exception that the
   branch's input label and/or output label may be unspecified. The
   Request Reservation message is therefore almost identical to the
   Add Branch message.

   The switch established the maximum number of reservations it can
   store by setting the value of Max Reservations in the Switch
   Configuration response message. The switch indicates that it does
   not support reservations by setting Max Reservations to 0. The
   valid range of Reservation IDs is 1 to Max Reservations).

5.1  Reservation Request Message

   The Reservation Request message creates a Reservation in the
   switch and reserves switch resources for a connection that may
   later be established using an Add Branch message. The Reservation
   Request Message is:

      Message Type = 70

   The Port Management message has the following format for the
   request message:





Doria, et. al.      Expires October 2000        [Page 45]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Reservation ID                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Input Port                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|M|B|                  Input Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Service Selector                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Output Port                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|QMS|                  Output Label                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Service Selector                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |IQS|OQS|P|x|N|O|          Adaptation Method                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  When the value of either IQS or OQS is set to 0b10 then the
  following Traffic Parameters Block is appended to the above
  message:

















Doria, et. al.      Expires October 2000        [Page 46]




Internet Draft     General Switch Management Protocol     April 2000


   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Input TC Flags |                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~               Input Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Output TC Flags|                 Reserved                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~              Output Traffic Parameters Block                  ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


      Note: Field and Parameters that have been explained in the
         description of the general connection message will not be
         explained in this section. Please refer to section 4.1for
         details.

  All the fields of the Reservation Request message have the same
  meanings as they do in the Add Branch message with the following
  exceptions:

      Reservation ID
         Specifies the Reservation ID of the Reservation. If the
         numerical value of Reservation ID is greater than the value
         of Max Reservations (from the Switch Configuration
         message), a failure response is returned indicating
         "Reservation ID out of Range." If the value of Reservation
         ID matches that of an extant Reservation, a failure
         response is returned indicating "Reservation ID in use."

      Input Label
         If a specific input label is specified then that label is
         reserved along with the required resources.  If the Input
         Label is 0 then the switch reserves the resources, but will
         not bind them to a label until the add branch command is
         given which references the Reservation Id. If the input
         label is 0, then all stacked labels must also be zeroed.

      Output Label
         If a specific Output Label is specified then that label is
         reserved along with the required resources.  If the Output
         Label is 0 then the switch reserves the resources, but will
         not bind them to a label until the add branch command is
         given which references the Reservation Id. If the Output
         Label is 0, then all stacked labels must also be zeroed


Doria, et. al.      Expires October 2000        [Page 47]




Internet Draft     General Switch Management Protocol     April 2000

   When the switch receives a valid Reservation Request it reserves
   all the appropriate switch resources needed to establish a branch
   with corresponding attributes. If sufficient resources are not
   available, a failure response is returned indicating "Insufficient
   Resources." Other failure responses are as defined for the Add
   Branch message.

5.2  Delete Reservation Message

   The Delete Reservation message deletes a Reservation object in the
   switch and frees the reserved switch resources of the reservation.
   The Reservation Request Message is:

      Message Type = 71

   The Delete Reservation message has the following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Reservation ID                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   If the Reservation ID matches that of an extant Reservation then
   the reservation is deletes and corresponding switch resources are
   freed. If the numerical value of Reservation ID is greater than
   the value of Max Reservations (from the Switch Configuration
   message), a failure response is returned indicating "Reservation
   ID out of Range." If the value of Reservation ID does not match
   that of any extant Reservation, a failure response is returned
   indicating "Non-existent Reservation ID."

5.3  Delete All Reservations Message

   The Delete Reservation message deletes all extant Reservation
   objects in the switch and frees the reserved switch resources of
   these reservations. The Reservation Request Message is:

      Message Type = 72

   The Delete Reservation message has the following format:


Doria, et. al.      Expires October 2000        [Page 48]




Internet Draft     General Switch Management Protocol     April 2000


    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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+






































Doria, et. al.      Expires October 2000        [Page 49]




Internet Draft     General Switch Management Protocol     April 2000

6.  Management Messages

6.1  Port Management Message

   The Port Management message allows a port to be brought into
   service, taken out of service, looped back, reset, or the transmit
   data rate changed. Only the Bring Up and the Reset Input Port
   functions change the connection state (established connections) on
   the input port. Only the Bring Up function changes the value of
   the Port Session Number. The port event message is also used as
   part of the Event Message flow control mechanism.

   If the Result field of the request message is "AckAll" a success
   response message must be sent upon successful completion of the
   operation. The success response message must not be sent until the
   operation has been completed. The Port Management Message is:

      Message Type = 32

   The Port Management message has the following format for the
   request and success response messages:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Port                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     Event Sequence Number                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Reserved     |   Duration    |          Function             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           Event Flags         |        Flow Control Flags     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Transmit Data Rate                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       Note: Field and Parameters that have been explained in the
          description of the general messages will not be explained
          in this section. Please refer to section 3.1for details.




Doria, et. al.      Expires October 2000        [Page 50]




Internet Draft     General Switch Management Protocol     April 2000

  Event Sequence Number
             In the success response message gives the current value
             of the Event Sequence Number of the switch port
             indicated by the Port field. The Event Sequence Number
             is set to zero when the port is initialised. It is
             incremented by one each time the port detects an
             asynchronous event that the switch would normally report
             via an Event message. If the Event Sequence Number in
             the success response differs from the Event Sequence
             Number of the most recent Event message received for
             that port, events have occurred that were not reported
             via an Event message. This is most likely to be due to
             the flow control that restricts the rate at which a
             switch can send Event messages for each port. In the
             request message this field is not used.

  Duration Is the length of time, in seconds, that any of the
             loopback states remain in operation. When the duration
             has expired the port will automatically be returned to
             service. If another Port Management message is received
             for the same port before the duration has expired, the
             loopback will continue to remain in operation for the
             length of time specified by the Duration field in the
             new message. The Duration field is only used in request
             messages with the Function field set to Internal
             Loopback, External Loopback, or Bothway Loopback.

  Function Specifies the action to be taken. The specified action
             will be taken regardless of the current status of the
             port (Available, Unavailable, or any Loopback state). If
             the specified function requires a new Port Session
             Number to be generated, the new Port Session Number must
             be returned in the success response message. The defined
             values of the Function field are:

            Bring Up:
                 Function = 1. Bring the port into service. All
                 connections that arrive at the specified input port
                 must be deleted and a new Port Session Number must
                 be selected using some form of random number. On
                 completion of the operation all dynamically
                 assigned Label values for the specified input port
                 must be unassigned, i.e. no connections will be
                 established in the Label space that GSMP controls
                 on this input port. The Port Status of the port
                 afterwards will be Available.



Doria, et. al.      Expires October 2000        [Page 51]




Internet Draft     General Switch Management Protocol     April 2000

            Take Down:
                 Function = 2. Take the port out of service. Any
                 data received at this port will be discarded. No
                 data will be transmitted from this port. The Port
                 Status of the port afterwards will be Unavailable.

                 The behaviour is undefined if the port is taken
                 down over which the GSMP session that controls the
                 switch is running. (In this case the most probable
                 behaviour would be for the switch either to ignore
                 the message or to terminate the current GSMP
                 session and to initiate another session, possibly
                 with the backup controller, if any.) The correct
                 method to reset the link over which GSMP is running
                 is to issue an RSTACK message in the adjacency
                 protocol.

            Internal Loopback:
                 Function = 3. Data arriving at the output port from
                 the switch fabric are looped through to the input
                 port to return to the switch fabric. All of the
                 functions of the input port above the physical
                 layer, e.g. header translation, are performed upon
                 the looped back data. The Port Status of the port
                 afterwards will be Internal Loopback.

            External Loopback:
                 Function = 4. Data arriving at the input port from
                 the external communications link are immediately
                 looped back to the communications link at the
                 physical layer without entering the input port.
                 None of the functions of the input port above the
                 physical layer are performed upon the looped back
                 data. The Port Status of the port afterwards will
                 be External Loopback.

            Bothway Loopback:
                 Function = 5. Both internal and external loopback
                 are performed. The Port Status of the port
                 afterwards will be Bothway Loopback.

            Reset Input Port:
                 Function = 6. All connections that arrive at the
                 specified input port must be deleted and the input
                 and output port hardware re-initialised. On
                 completion of the operation all dynamically
                 assigned Label values for the specified input port
                 must be unassigned, i.e. no connections will be
                 established in the Label space that GSMP controls


Doria, et. al.      Expires October 2000        [Page 52]




Internet Draft     General Switch Management Protocol     April 2000

                 on this input port. The range of labels that may be
                 controlled by GSMP on this port will be set to the
                 default values specified in the Port Configuration
                 message. The transmit data rate of the output port
                 must be set to its default value. The Port Session
                 Number is not changed by the Reset Input Port
                 function. The Port Status of the port afterwards
                 will be Unavailable.

            Reset Flags:
                 Function = 7. This function is used to reset the
                 Event Flags and Flow Control Flags. For each bit
                 that is set in the Event Flags field, the
                 corresponding Event Flag in the switch port must be
                 reset to 0. For each bit that is set in the Flow
                 Control Flags field, the corresponding Flow Control
                 Flag in the switch port must toggled; i.e. flow
                 control for the corresponding event is turned off
                 if is currently on and it is turned on if it is
                 currently off. The Port Status of the port is not
                 changed by this function.

            Set Transmit Data Rate:
                 Function = 8. Sets the transmit data rate of the
                 output port as close as possible to the rate
                 specified in the Transmit Data Rate field. In the
                 success response message the Transmit Data Rate
                 must indicate the actual transmit data rate of the
                 output port. If the transmit data rate of the
                 requested output port cannot be changed, a failure
                 response must be returned with the Code field
                 indicating: "The transmit data rate of this output
                 port cannot be changed." If the transmit data rate
                 of the requested output port can be changed, but
                 the value of the Transmit Data Rate field is beyond
                 the range of acceptable values, a failure response
                 must be returned with the Code field indicating:
                 "Requested transmit data rate out of range for this
                 output port." In the failure response message the
                 Transmit Data Rate must contain the same value as
                 contained in the request message that caused the
                 failure. The transmit data rate of the output port
                 is not changed by the Bring Up, Take Down, or any
                 of the Loopback functions. It is returned to the
                 default value by the Reset Input Port function.

       Transmit Data Rate
            This field is only used in request and success response
            messages with the Function field set to "Set Transmit


Doria, et. al.      Expires October 2000        [Page 53]




Internet Draft     General Switch Management Protocol     April 2000

            Data Rate." It is used to set the output data rate of
            the output port. It is specified in cells, bytes or
            bits/s. If the Transmit Data Rate field contains the
            value 0xFFFFFFFF the transmit data rate of the output
            port should be set to the highest valid value.

  Event FlagsField in the request message is used to reset the Event
             Flags in the switch port indicated by the Port field.
             Each Event Flag in a switch port corresponds to a type
             of Event message. When a switch port sends an Event
             message it sets the corresponding Event Flag on that
             port. Depending on the setting in the Flow Control Flag,
             a port is either subject to flow control or not. If it
             is subject to flow control then it is not permitted to
             send another Event message of the same type before the
             Event Flag has been reset. To reset an event flag, the
             Function field in the request message is set to "Reset
             Flags." For each bit that is set in the Event Flags
             field, the corresponding Event Flag in the switch port
             is reset.

            The Event Flags field is only used in a request message
            with the Function field set to "Reset Event Flags." For
            all other values of the Function field, the Event Flags
            field is not used. In the success response message the
            Event Flags field must be set to the current value of
            the Event Flags for the port, after the completion of
            the operation specified by the request message, for all
            values of the Function field. Setting the Event Flags
            field to all zeros in a "Reset Event Flags" request
            message allows the controller to obtain the current
            state of the Event Flags and the current Event Sequence
            Number of the port without changing the state of the
            Event Flags.

            The correspondence between the types of Event message
            and the bits of the Event Flags field is as follows:












Doria, et. al.      Expires October 2000        [Page 54]




Internet Draft     General Switch Management Protocol     April 2000


                                     1
                 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
                +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                |U|D|I|N|Z|A|x|x|x|x|x|x|x|x|x|x|
                +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                U: Port Up          Bit  0, (most significant bit)
                D: Port Down        Bit  1,
                I: Invalid Label    Bit  2,
                N: New Port         Bit  3,
                Z: Dead Port        Bit  4,
                A: Adjacency Event  Bit  5,
                x: Unused           Bits 6--15.

   Flow Control Flags Field
             This flags in this field are used to indicate whether
             the flow control mechanism described in the Events Flag
             field is turned on or not. If the Flow Control Flag is
             on, then the flow control mechanism for that event on
             that port is activated. To toggle flow control, the
             Function field in the request message is set to "Reset
             Flags." For each bit that is set in the Flow Control
             Flags field, the flow control corresponding Event in the
             switch port is toggled.

             The correspondence between the Flow Control applied to
             the Events messages and the bits of the flow Control
             Flags field is as follows:

                                     1
                 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
                +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                |U|D|I|N|Z|A|x|x|x|x|x|x|x|x|x|x|
                +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                U: Port Up          Bit  0, (most significant bit)
                D: Port Down        Bit  1,
                I: Invalid Label    Bit  2,
                N: New Port         Bit  3,
                Z: Dead Port        Bit  4,
                A: Adjacency Event  Bit  5,
                x: Unused           Bits 6--15.

6.2  Label Range Message

   The default label range, Min Label to Max Label, is specified for
   each port by the Port Configuration or the All Ports Configuration
   messages. When the protocol is initialised, before the


Doria, et. al.      Expires October 2000        [Page 55]




Internet Draft     General Switch Management Protocol     April 2000

  transmission of any Label Range messages, the label range of each
  port will be set to the default label range. (The default label
  range is dependent upon the switch design and configuration and is
  not specified by the GSMP protocol.) The Label Range message
  allows the range of labels supported by a specified port, to be
  changed. Each switch port must declare whether it supports the
  Label Range message in the Port Configuration or the All Ports
  Configuration messages. The Label Range message is:

     Message Type = 33

  The Label Range message has the following format for the request
  and success response messages:

    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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Port                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Q|M|D|x|          Range Count  |           Range Length        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                       Label Data Block                       ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Note: Field and Parameters that have been explained in the
         description of the general messages will not be explained
         in this section. Please refer to section 3.1for details.


     Each element of the Label Data Block has the following format:










Doria, et. al.      Expires October 2000        [Page 56]




Internet Draft     General Switch Management Protocol     April 2000


   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|V|C|               Min Label                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|x|               Max Label                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Remaining Labels                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  Flags

       Q: Query
            If the Query flag is set in a request message, the
            switch must respond with the current range of valid
            labels. The current label range is not changed by a
            request message with the Query flag set. If the Query
            flag is zero, the message is requesting a label change
            operation.

       M: Multipoint Query
            If the Multipoint Query flag is set the switch must
            respond with the current range of valid specialized
            multipoint labels. The current label range is not
            changed by a request message with the Multipoint Query
            flag set.

       D: Disjoint Label Range Indicator
            This flag will be set in a Query response if the labels
            available for assignment belong to a disjoint set.

       V: Label
            The Label flag use is port type specific.

       C: Multipoint Capable
            Indicates label range can be used for multipoint
            connections.

  Range CountCount of Label Data elements contained in the Label Data
             Block.

  Range Length
             Byte count in the Label Data Block.


  The success response to a Label Range message requesting a change
  of label range is a copy of the request message with the Remaining



Doria, et. al.      Expires October 2000        [Page 57]




Internet Draft     General Switch Management Protocol     April 2000

   Label Range fields updated to the new values after the Label Range
   operation.

   If the switch is unable to satisfy a request to change the Label
   range, it must return a failure response message with the Code
   field set to "Cannot support requested label range." In this
   failure response message the switch must use the Min Label and Max
   Label fields to suggest a label range that it would be able to
   satisfy.

   A Label Range request message may be issued regardless of the Port
   Status or the Line Status of the target switch port. If the Port
   field of the request message contains an invalid port (a port that
   does not exist or a port that has been removed from the switch) a
   failure response message must be returned with the Code field set
   to, "One or more of the specified ports does not exist."

   If the Query flag is set in the request message, the switch must
   reply with a success response message containing the current range
   of valid labels that are supported by the port. The Min Label and
   Max Label fields are not used in the request message.

   If the Multipoint Query flag is set in the request message, and
   the switch does not support a range of valid multipoint labels
   then the switch must reply with a failure response message with
   the Code field set to, "Specialized multipoint labels not
   supported" The Min Label and Max Label fields are not used in the
   Multipoint request message.

6.2.1  Short Labels

   Whenever a 28-bit label is sufficient, as is the case with ATM,
   Frame Relay and MPLS, a short label may be used.


6.2.1.1  ATM Short Labels:

   If PortType=ATM the label range fields have following format:












Doria, et. al.      Expires October 2000        [Page 58]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|V|C|      Min VPI          |       Min VCI                 |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|x|      Max VPI          |       Max VCI                 |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |        Remaining VPIs         |        Remaining VCIs         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  x:          unused.

  V: Label If the Label flag is set, the message refers to a range
              of VPIs only. The Min VCI and Max VCI fields are unused.
              If the Label flag is zero the message refers to a range
              of VCIs on either one VPI or on a range of VPIs.

  Min VPI
   Max VPI
              Specify a range of VPI values, Min VPI to Max VPI
              inclusive. A single VPI may be specified with a Min VPI
              and a Max VPI having the same value. In a request
              message, if the value of the Max VPI field is less than
              or equal to the value of the Min VPI field, the
              requested range is a single VPI with a value equal to
              the Min VPI field. Zero is a valid value. In a request
              message, if the Query flag is set, and the Label flag is
              zero, the Max VPI field specifies a single VPI and the
              Min VPI field is not used. The maximum valid value of
              these fields for both request and response messages is
              0xFFF.

  Min VCI
   Max VCI
              Specify a range of VCI values, Min VCI to Max VCI
              inclusive. A single VCI may be specified with a Min VCI
              and a Max VCI having the same value. In a request
              message, if the value of the Max VCI field is less than
              or equal to the value of the Min VCI field, the
              requested range is a single VCI with a value equal to
              the Min VCI field. Zero is a valid value. (However,
              VPI=0, VCI=0 is not available as a virtual channel
              connection as it is used as a special value in ATM to
              indicate an unassigned cell.)

  Remaining VPIs



Doria, et. al.      Expires October 2000        [Page 59]




Internet Draft     General Switch Management Protocol     April 2000

   Remaining VCIs
              These fields are unused in the request message. In the
              success response message and in the failure response
              message these fields give the maximum number of
              remaining VPIs and VCIs that could be requested for
              allocation on the specified port (after completion of
              the requested operation in the case of the success
              response). It gives the switch controller an idea of how
              many VPIs and VCIs it could request. The number given is
              the maximum possible given the constraints of the switch
              hardware. There is no implication that this number of
              VPIs and VCIs is available to every switch port.

  If the Query flag and the Label flag are set in the request
  message, the switch must reply with a success response message
  containing the current range of valid VPIs that are supported by
  the port. The Min VPI and Max VPI fields are not used in the
  request message.

  If the Query flag is set and the Label flag is zero in the request
  message, the switch must reply with a success response message
  containing the current range of valid VCIs that are supported by
  the VPI specified by the Max VPI field. If the requested VPI is
  invalid, a failure response must be returned indicating: "One or
  more of the specified input VPIs is invalid." The Min VPI field is
  not used in either the request or success response messages.

  If the Query flag is zero and the Label flag is set in the request
  message, the Min VPI and Max VPI fields specify the new range of
  VPIs to be allocated to the input port specified by the Port
  field. Whatever the range of VPIs previously allocated to this
  port it should be increased or decreased to the specified value.

  If the Query flag and the Label flag are zero in the request
  message, the Min VCI and Max VCI fields specify the range of VCIs
  to be allocated to each of the VPIs specified by the VPI range.
  Whatever the range of VCIs previously allocated to each of the
  VPIs within the specified VPI range on this port, it should be
  increased or decreased to the specified value. The allocated VCI
  range must be the same on each of the VPIs within the specified
  VPI range.

  If the switch is unable to satisfy a request to change the label
  range, it must return a failure response message with the Code
  field set to "Cannot support requested label range." If the switch
  is unable to satisfy a request to change the VPI the switch must
  use the Min VPI and Max VPI fields to suggest a VPI range that it
  would be able to satisfy and set the VCI fields to zero or if the
  switch is unable to satisfy a request to change the VCI range on


Doria, et. al.      Expires October 2000        [Page 60]




Internet Draft     General Switch Management Protocol     April 2000

   all VPIs within the requested VPI range, the switch must use the
   Min VPI, Max VPI, Min VCI, and Max VCI fields to suggest a VPI and
   VCI range that it would be able to satisfy.

   In all other failure response messages for the label range
   operation the switch must return the values of Min VPI, Max VPI,
   Min VCI, and Max VCI from the request message.

   While switches can typically support all 256 or 4096 VPIs the VCI
   range that can be supported is often more constrained. Often the
   Min VCI must be 0 or 32. Typically all VCIs within a particular
   VPI must be contiguous. The hint in the failure response message
   allows the switch to suggest a label range that it could satisfy
   in view of its particular architecture.

   While the Label Range message is defined to specify both a range
   of VPIs and a range of VCIs within each VPI, the most likely use
   is to change either the VPI range or the range of VCIs within a
   single VPI. It is possible for a VPI to be valid but to be
   allocated no valid VCIs. Such a VPI could be used for a virtual
   path connection but to support virtual channel connections it
   would need to be allocated a range of VCIs.


6.2.1.2  Frame Relay Short Labels:

   If PortType=FR the label range fields have following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|V|C|x|x|Len|             Min DLCI                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|x|x|x|x|x|             Max DLCI                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                            Remaining DLCIs                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   x:        unused flag.

   Res:      Reserved

   V: Label The Label flag is not used.
   Len
             This field specifies the number of bits of the DLCI. The
             following values are supported:



Doria, et. al.      Expires October 2000        [Page 61]




Internet Draft     General Switch Management Protocol     April 2000

               Len  DLCI bits
               0    10
               1    17
               2    23

   Min DLCI
   Max DLCI Specify a range of DLCI values, Min DLCI to Max DLCI
               inclusive. The values should be right justified in the
               23-bit fields and the preceding bits should be set to
               zero. A single DLCI may be specified with a Min DLCI and
               a Max DLCI having the same value. In a request message,
               if the value of the Max DLCI field is less than or equal
               to the value of the Min DLCI field, the requested range
               is a single DLCI with a value equal to the Min DLCI
               field. Zero is a valid value.

   Remaining DLCIs
               This field is unused in the request message. In the
               success response message and in the failure response
               message this field gives the maximum number of remaining
               DLCIs that could be requested for allocation on the
               specified port (after completion of the requested
               operation in the case of the success response). It gives
               the switch controller an idea of how many DLCIs it could
               request. The number given is the maximum possible given
               the constraints of the switch hardware. There is no
               implication that this number of DLCIs is available to
               every switch port.


6.2.1.3  MPLS Generic Short Labels:

   The Label Range field for PortTypes using MPLS labels (e.g.
   Ethernet, SONET etc.) has the following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|C|      Res      |          Min MPLS Label               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|x|      Res      |          Max MPLS Label               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                   Remaining MPLS Labels                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   x:          unused flag.

   Res:        Reserved


Doria, et. al.      Expires October 2000        [Page 62]




Internet Draft     General Switch Management Protocol     April 2000

   Min MPLS Label:
   Max MPLS Label:
             Specify a range of MPLS label values, Min MPLS Label to
             Max MPLS Label inclusive. The Max and Min MPLS label
             fields are 20 bits each.

   Remaining MPLS Labels:
             This field is unused in the request message. In the
             success response message and in the failure response
             message this field gives the maximum number of remaining
             MPLS Labels that could be requested for allocation on
             the specified port (after completion of the requested
             operation in the case of the success response). It gives
             the switch controller an idea of how many MPLS Labels it
             could request. The number given is the maximum possible
             given the constraints of the switch hardware. There is
             no implication that this number of Labels is available
             to every switch port.


6.2.2  TLV Labels

   When the Label Type Indicator (T flag) is set to 1, the label is
   TLV (Type, Length and Value) label.


6.2.2.1  ATM TLV Labels:

   If the T bit is set and Label Type = ATM Label, the labels range
   message must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|x|C|   ATM Label (0x100)   |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |  Res  |        min VPI        |            min VCI            |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|x|x|   ATM Label (0x100)   |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |  Res  |        max VPI        |            max VCI            |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |       Remaining VPI's         |        Remaining VCI's        |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       The label value field should be interpreted as defined in
       section "ATM Short Labels" above.




Doria, et. al.      Expires October 2000        [Page 63]




Internet Draft     General Switch Management Protocol     April 2000

6.2.2.2  Frame Relay TLV Labels:

   If the T bit is set and Label Type = FR Label, the labels range
   message must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x x|C|    FR Label (0x101)   |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |x|x|x|x|x|x|Len|                 Min DLCI                      |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x x x|    FR Label (0x101)   |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |x x x x x x|Len|                 Max DLCI                      |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                          Remaining DLCI                       |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

     The label value field should be interpreted as defined in
     section "Frame Relay Short Labels" above.


6.2.2.3  MPLS Generic TLV Labels:

   If the T bit is set and Label Type = MPLS Generic Label, the
   labels range message must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|x|C| MPLS Gen Label (0x102)|          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |          Res          |          Min MPLS Label               |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|x|x| MPLS Gen Label (0x102)|          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |          Res          |          Max MPLS Label               |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                      Remaining Labels                         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

     The label value field should be interpreted as defined in
     section "MPLS Generic Short Labels" above.







Doria, et. al.      Expires October 2000        [Page 64]




Internet Draft     General Switch Management Protocol     April 2000

6.2.2.4  DS3 to DS1 Service TLV Labels:

   If the T bit is set and Label Type = DS3-DS1 Label, the labels
   range message must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|U|C| DS3-DS1 Label (0x200) |         Label Length          |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |   Min Ch ID   |             Min Time Slots                    |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|S|U|x| DS3-DS1 Label (0x200) |         Label Length          |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |   Max Ch ID   |             Max Time Slots                    |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |Remaining Ch ID|          Remaining Time Slots                 |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

     x:       unused.

     U:      Indicates when set that the DS1 channel is unstructured,
             otherwise it is structured.

   Min Ch ID:
   Max Ch ID:Specify a range of Channel ID values, Min Channel ID to
             Max Channel ID inclusive. The length of the Max and Min
             Channel ID fields is eight bits.

   Min Time Slots:
   Max Time Slots:
             Specify a range of Time Slot values, Min Time Slot to
             Max Time Slot inclusive. The length of the Max and Min
             Time Slots fields is 24 bits.

   Remaining Ch ID and Time Slots:
             These fields are unused in the request message. In the
             success response message and in the failure response
             message these fields give the maximum number of
             remaining Channel ID's and Time Slots that could be
             requested for allocation on the specified port (after
             completion of the requested operation in the case of the
             success response). It gives the switch controller an
             idea of how many Channel ID's and Time Slots it could
             request. The number given is the maximum possible given
             the constraints of the switch hardware.




Doria, et. al.      Expires October 2000        [Page 65]




Internet Draft     General Switch Management Protocol     April 2000

6.2.2.5  E3 to E1 Service TLV Labels:

   If the T bit is set and Label Type = E3-E1 Label, the labels range
   message must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|U|C|   E3-E1 Label (0x201) |         Label Length          |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |   Min Ch ID   |             Min Time Slots                    |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                       Min Time Slots                          |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|U|x|   E3-E1 Label (0x201) |         Label Length          |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |   Max Ch ID   |             Max Time Slots                    |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                       Max Time Slots                          |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |Remaining Ch ID|          Remaining Time Slots                 |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   x:        unused.

   U:        Indicates when set that the E1 channel is unstructured,
             otherwise it is structured.


   Min Ch ID:
   Max Ch ID:Specify a range of Channel ID values, Min Channel ID to
             Max Channel ID inclusive. The length of the Max and Min
             Channel ID fields is eight bits.

   Min Time Slots:
   Max Time Slots:
             Specify a range of Time Slot values, Min Time Slot to
             Max Time Slot inclusive. The length of the Max and Min
             Time Slots fields is 30 bits.

   Remaining Ch ID and Time Slots:
             These fields are unused in the request message. In the
             success response message and in the failure response
             message these fields give the maximum number of
             remaining Channel ID's and Time Slots that could be
             requested for allocation on the specified port (after
             completion of the requested operation in the case of the


Doria, et. al.      Expires October 2000        [Page 66]




Internet Draft     General Switch Management Protocol     April 2000

             success response). It gives the switch controller an
             idea of how many Channel ID's and Time Slots it could
             request. The number given is the maximum possible given
             the constraints of the switch hardware.


6.2.2.6  Structured DS1 TLV Labels

   If the T bit is set and Label Type = S-DS1 Label, the labels range
   message must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|x|C|  S-DS1 Label (0x202)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Min Time Slots                         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
     |T|x|x|x|  S-DS1 Label (0x202)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Max Time Slots                         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
     |                      Remaining Time Slots                     |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|

   x:        unused.

   Min Time Slots:
   Max Time Slots:
             Specify a range of Time Slot values, Min Time Slot to
             Max Time Slot inclusive. The Label Length field
             indicates the length of the Max and Min Time Slots
             fields.

   Remaining Time Slots:
             This field is unused in the request message. In the
             success response message and in the failure response
             message this field gives the maximum number of remaining
             Time Slots that could be requested for allocation on the
             specified port (after completion of the requested
             operation in the case of the success response). It gives
             the switch controller an idea of how many Time Slots it
             could request. The number given is the maximum possible
             given the constraints of the switch hardware.







Doria, et. al.      Expires October 2000        [Page 67]




Internet Draft     General Switch Management Protocol     April 2000

6.2.2.7  Unstructured DS1 TLV Labels

   If the T bit is set and Label Type = U-DS1 Label, the labels range
   message must be interpreted as shown:

      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|x|C|  U-DS1 Label (0x203)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Min Time Slots                         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
     |T|x|x|x|  U-DS1 Label (0x203)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Max Time Slots                         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
     |                      Remaining Time Slots                     |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|


   x:        unused.

   Min Time Slots:
   Max Time Slots:
             Specify a range of Time Slot values, Min Time Slot to
             Max Time Slot inclusive. The Label Length field
             indicates the length of the Max and Min Time Slots
             fields.

   Remaining Time Slots:
             This field is unused in the request message. In the
             success response message and in the failure response
             message this field gives the maximum number of remaining
             Time Slots that could be requested for allocation on the
             specified port (after completion of the requested
             operation in the case of the success response). It gives
             the switch controller an idea of how many Time Slots it
             could request. The number given is the maximum possible
             given the constraints of the switch hardware.


6.2.2.8  Structured E1 TLV Labels

   If the T bit is set and Label Type = S-E1 Label, the labels range
   message must be interpreted as shown:






Doria, et. al.      Expires October 2000        [Page 68]




Internet Draft     General Switch Management Protocol     April 2000


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|x|C|   S-E1 Label (0x204)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Min Time Slots                         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
     |T|x|x|x|   S-E1 Label (0x204)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Max Time Slots                         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
     |                      Remaining Time Slots                     |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|

   x:        unused.

   Min Time Slots:
   Max Time Slots:
             Specify a range of Time Slot values, Min Time Slot to
             Max Time Slot inclusive. The Label Length field
             indicates the length of the Max and Min Time Slots
             fields.

   Remaining Time Slots:
             This field is unused in the request message. In the
             success response message and in the failure response
             message this field gives the maximum number of remaining
             Time Slots that could be requested for allocation on the
             specified port (after completion of the requested
             operation in the case of the success response). It gives
             the switch controller an idea of how many Time Slots it
             could request. The number given is the maximum possible
             given the constraints of the switch hardware.


6.2.2.9  Unstructured E1 TLV Labels

   If the T bit is set and Label Type = U-E1 Label, the labels range
   message must be interpreted as shown:










Doria, et. al.      Expires October 2000        [Page 69]




Internet Draft     General Switch Management Protocol     April 2000


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |T|x|x|C|   U-E1 Label (0x205)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Min Time Slots                         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
     |T|x|x|x|   U-E1 Label (0x205)  |          Label Length         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                        Max Time Slots                         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
     |                      Remaining Time Slots                     |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
  
   x:         unused.

  Min Time Slots:
  Max Time Slots:
             Specify a range of Time Slot values, Min Time Slot to
             Max Time Slot inclusive. The Label Length field
             indicates the length of the Max and Min Time Slots
             fields.

  Remaining Time Slots:
             This field is unused in the request message. In the
             success response message and in the failure response
             message this field gives the maximum number of remaining
             Time Slots that could be requested for allocation on the
             specified port (after completion of the requested
             operation in the case of the success response). It gives
             the switch controller an idea of how many Time Slots it
             could request. The number given is the maximum possible
             given the constraints of the switch hardware.















Doria, et. al.      Expires October 2000        [Page 70]




Internet Draft     General Switch Management Protocol     April 2000

7.  State and Statistics Messages

   The state and statistics messages permit the controller to request
   the values of various hardware counters associated with the switch
   input and output ports and connections. They also permit the
   controller to request the connection state of a switch input port.
   The Connection Activity message is used to determine whether one
   or more specific connections have recently been carrying traffic.
   The Statistics message is used to query the various port and
   connection traffic and error counters.

   The Report Connection State message is used to request an input
   port to report the connection state for a single connection, a
   single ATM virtual path connection, or for the entire input port.

7.1  Connection Activity Message

   The Connection Activity message is used to determine whether one
   or more specific connections have recently been carrying traffic.
   The Connection Activity message contains one or more Activity
   Records. Each Activity Record is used to request and return
   activity information concerning a single connection. Each
   connection is specified by its input port and Input Label which
   are specified in the Input Port and Input Label fields of each
   Activity Record.

   Two forms of activity detection are supported. If the switch
   supports per connection traffic accounting, the current value of
   the traffic counter for each specified connection must be
   returned. The units of traffic counted are not specified but will
   typically be either cells or frames. The controller must compare
   the traffic counts returned in the message with previous values
   for each of the specified connections to determine whether each
   connection has been active in the intervening period. If the
   switch does not support per connection traffic accounting, but is
   capable of detecting per connection activity by some other
   unspecified means, the result may be indicated for each connection
   using the Flags field. The Connection Activity message is:

      Message Type = 48

   The Connection Activity request and success response messages have
   the following format:








Doria, et. al.      Expires October 2000        [Page 71]




Internet Draft     General Switch Management Protocol     April 2000


    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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       Number of Records       |           Reserved            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                       Activity Records                        ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Note: Field and Parameters that have been explained in the
           description of the general messages will not be explained
           in this section. Please refer to section 3.1for details.

  Number of Records
              Field specifies the number of Activity Records to
              follow. The number of Activity records in a single
              Connection Activity message must not cause the packet
              length to exceed the maximum transmission unit defined
              by the encapsulation.

  Each Activity Record has the following format:

   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |V|C|A|x|          TC Count     |        TC Block Length        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Input Port                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                  Input Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                      Traffic Count                            +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  Flags

       V: Valid Record
             In the success response message the Valid Record flag is
             used to indicate an invalid Activity Record. The flag
             must be zero if any of the fields in this Activity
             Record are invalid, if the input port specified by the


Doria, et. al.      Expires October 2000        [Page 72]




Internet Draft     General Switch Management Protocol     April 2000

             Input Port field does not exist, or if the specified
             connection does not exist. If the Valid Record flag is
             zero in a success response message, the Counter flag,
             the Activity flag, and the Traffic Count field are
             undefined. If the Valid Record flag is set, the Activity
             Record is valid, and the Counter and Activity flags are
             valid. The Valid Record flag is not used in the request
             message.

       C: Counter
             In a success response message, if the Valid Record flag
             is set, the Counter flag, if zero, indicates that the
             value in the Traffic Count field is valid. If set, it
             indicates that the value in the Activity flag is valid.
             The Counter flag is not used in the request message.

       A: Activity
             In a success response message, if the Valid Record and
             Counter flags are set, the Activity flag, if set,
             indicates that there has been some activity on this
             connection since the last Connection Activity message
             for this connection. If zero, it indicates that there
             has been no activity on this connection since the last
             Connection Activity message for this connection. The
             Activity flag is not used in the request message.

  TC Count In cases where per connection traffic counting is
             supported, this filed contains the count of Traffic
             Count entries

  TC Block Length
             In cases where per connection traffic counting is
             supported, this filed contains the Traffic Count block
             size in bytes.

  Input PortIdentifies the port number of the input port on which
             the connection of interest arrives in order to identify
             the connection (regardless of whether the traffic count
             for the connection is maintained on the input port or
             the output port).
   Input LabelFields identify the specific connection for which
             statistics are being requested.
   Traffic Count
             Field is not used in the request message. In the success
             response message, if the switch supports per connection
             traffic counting, the Traffic Count field must be set to


Doria, et. al.      Expires October 2000        [Page 73]




Internet Draft     General Switch Management Protocol     April 2000

               the value of a free running, connection specific, 64-bit
               traffic counter counting traffic flowing across the
               specified connection. The value of the traffic counter
               is not modified by reading it. If per connection traffic
               counting is supported, the switch must report the
               Connection Activity result using the traffic count
               rather than using the Activity flag.

   The format of the failure response is the same as the request
   message with the Number of Records field set to zero and no
   Connection Activity records returned in the message. If the switch
   is incapable of detecting per connection activity, a failure
   response must be returned indicating, "The specified request is
   not implemented on this switch."

7.2  Statistics Messages

   The Statistics messages are used to query the various port and
   connection and error counters.

   The Statistics request messages have the following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Port                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                     Label                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       Note: Field and Parameters that have been explained in the
            description of the general messages will not be explained
            in this section. Please refer to section 3.1for details.

   Label
               The Label Field identifies the specific connection for
               which statistics are being requested.

   The success response for the Statistics message has the following
   format:





Doria, et. al.      Expires October 2000        [Page 74]




Internet Draft     General Switch Management Protocol     April 2000


    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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Port                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                     Label                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                       Input Cell Count                        +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                       Input Frame Count                       +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                    Input Cell Discard Count                   +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                   Input Frame Discard Count                   +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                      ATM HEC Error Count                      +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                  Input Invalid Label Count                    +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                       Output Cell Count                       +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                      Output Frame Count                       +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                   Output Cell Discard Count                   +
   |                                                               |


Doria, et. al.      Expires October 2000        [Page 75]




Internet Draft     General Switch Management Protocol     April 2000

   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   +                  Output Frame Discard Count                   +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       Note: Field and Parameters that have been explained in the
          description of the general messages will not be explained
          in this section. Please refer to section 3.1for details.

   Input Cell Count
   Output Cell Count
             Give the value of a free running 64-bit counter counting
             cells arriving at the input or departing from the output
             respectively.

   Input Frame Count
   Output Frame Count
             Give the value of a free running 64-bit counter counting
             frames (packets) arriving at the input or departing from
             the output respectively.

   Input Cell Discard Count
   Output Cell Discard Count
             Give the value of a free running 64-bit counter counting
             cells discarded due to queue overflow on an input port
             or on an output port respectively.

   Input Frame Discard Count
   Output Frame Discard Count
             Give the value of a free running 64-bit counter counting
             frames discarded due to congestion on an input port or
             on an output port respectively.

   ATM HEC Error Count
             Gives the value of a free running 64-bit counter
             counting ATM cells discarded due to header checksum
             errors on arrival at an input port.

   Invalid Label Count
             Gives the value of a free running 64-bit counter
             counting cells or frames discarded because their Label
             is invalid on arrival at an input port.

7.2.1  Port Statistics Message

   The Port Statistics message requests the statistics for the switch
   port specified in the Port field. The contents of the Label field
   in the Port Statistics request message is ignored. All of the


Doria, et. al.      Expires October 2000        [Page 76]




Internet Draft     General Switch Management Protocol     April 2000

   count fields in the success response message refer to per-port
   counts regardless of the connection to which the cells or frames
   belong. Any of the count fields in the success response message
   not supported by the port must be set to zero. The Port Statistics
   message is:

      Message Type = 49

7.2.2  Connection Statistics Message

   The Connection Statistics message requests the statistics for the
   connection specified in the Label field that arrives on the switch
   input port specified in the Port field. All of the count fields in
   the success response message refer only to the specified
   connection. The ATM HEC Error Count and Invalid Label Count fields
   are not connection specific and must be set to zero. Any of the
   other count fields not supported on a per connection basis must be
   set to zero in the success response message. The Connection
   Statistics message is:

      Message Type = 50

7.2.3  QoS Class Statistics Message

   The QoS Class Statistics message is not supported in this version
   of GSMP.

      Message Type = 51 is reserved.

7.3  Report Connection State Message

   The Report Connection State message is used to request an input
   port to report the connection state for a single connection or for
   the entire input port. The Report Connection State message is:

      Message Type = 52

   The Report Connection State request message has the following
   format:











Doria, et. al.      Expires October 2000        [Page 77]




Internet Draft     General Switch Management Protocol     April 2000


    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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Input Port                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|A|V|                  Input Label                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Note: Field and Parameters that have been explained in the
           description of the general messages will not be explained
           in this section. Please refer to section 3.1for details.

  Input PortIdentifies the port number of the input port for which
              the connection state is being requested.

  Flags

       A: All Connections
             If the All Connections flag is set, the message requests
             the connection state for all connections that arrive at
             the input port specified by the Input Port field. In
             this case the Input Label field and the Label flag are
             unused.

       V: ATM VPI
             The ATM VPI flag may only be set for ports with
             PortType=ATM. If the switch receives a Report Connection
             State message in which the ATM VPI flag set and in which
             the input port specified by the Input Port field does
             not have PortType=ATM, the switch must return an Error
             Message "28: ATM Virtual Path switching is not supported
             on non-ATM ports."

             If the All Connections flag is zero and the ATM VPI flag
             is also zero, the message requests the connection state
             for the connection that arrives at the input port
             specified by the Port and Input Label fields.

              ATM specific procedures:




Doria, et. al.      Expires October 2000        [Page 78]




Internet Draft     General Switch Management Protocol     April 2000

                If the All Connections flag is zero and the ATM VPI
                flag is set and the input port specified by the Input
                Port field has LabelType=ATM, the message requests
                the connection state for the virtual path connection
                that arrives at the input port specified by the Input
                Port and Input VPI fields. If the specified Input VPI
                identifies an ATM virtual path connection (i.e. a
                single switched virtual path) the state for that
                connection is requested. If the specified Input VPI
                identifies a virtual path containing virtual channel
                connections, the message requests the connection
                state for all virtual channel connections that belong
                to the specified virtual path.

        x: Unused.

   Input LabelField identifies the specific connection for which
             connection state is being requested. For requests that
             do not require a connection to be specified, the Input
             Label field is not used.

   The Report Connection State success response message has the
   following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Input Port                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       Sequence Number                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                       Connection Records                      ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       Note: Field and Parameters that have been explained in the
          description of the general messages will not be explained
          in this section. Please refer to section 3.1for details.

   Input PortIs the same as the Input Port field in the request

Doria, et. al.      Expires October 2000        [Page 79]




Internet Draft     General Switch Management Protocol     April 2000

             message. It identifies the port number of the input port
             for which the connection state is being reported.

  Sequence Number
             In the case that the requested connection state cannot
             be reported in a single success response message, each
             successive success response message in reply to the same
             request message must increment the Sequence Number. The
             Sequence Number of the first success response message,
             in response to a new request message, must be zero.

  Connection Records
             Each success response message must contain one or more
             Connection Records. Each Connection Record specifies a
             single point-to-point or point-to-multipoint connection.
             The number of Connection Records in a single Report
             Connection State success response must not cause the
             packet length to exceed the maximum transmission unit
             defined by the encapsulation. If the requested
             connection state cannot be reported in a single success
             response message, multiple success response messages
             must be sent. All success response messages that are
             sent in response to the same request message must have
             the same Input Port and Transaction Identifier fields as
             the request message. A single Connection Record must not
             be split across multiple success response messages. The
             More flag of the last Connection Record in a success
             response message indicates whether the response to the
             request has been completed or whether one or more
             further success response messages should be expected in
             response to the same request message.

  Each Connection Record has the following format:

   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |A|V|P|       Record Count  |           Record Length           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                   Input Label                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                      Output Branch Records                    ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  Flags

       A: All Connections
       V: ATM VPI
            For the first Connection Record in each success response


Doria, et. al.      Expires October 2000        [Page 80]




Internet Draft     General Switch Management Protocol     April 2000

            message the All Connections and the ATM VPI flags must
            be the same as those of the request message. For
            successive Connection Records in the same success
            response message these flags are not used.

       P: ATM VPC
            The ATM VPC flag may only be set for ports with
            PortType=ATM. The ATM VPC flag, if set and only if set,
            indicates that the Connection Record refers to an ATM
            virtual path connection.

  Input LabelThe input label of the connection specified in this
             Connection Record.

  Record Count
             Count of number of connection records included in
             response.

  Record Block Length
             Length in bytes of Output Branch Record Block

  Output Branch Records
             Each Connection Record must contain one or more Output
             Branch Records. Each Output Branch Record specifies a
             single output branch belonging to the connection
             identified by the Input Label field of the Connection
             Record and the Input Port field of the Report Connection
             State message. A point-to-point connection will require
             only a single Output Branch Record. A point-to-
             multipoint connection will require multiple Output
             Branch Records. The last Output Branch Record of each
             Connection Record is indicated by the Last Branch flag
             of the Output Branch Record. If a point-to-multipoint
             connection has more output branches than can fit in a
             single Connection Record contained within a single
             success response message, that connection may be
             reported using multiple Connection Records in multiple
             success response messages.

  Each Output Branch Record has the following format:









Doria, et. al.      Expires October 2000        [Page 81]




Internet Draft     General Switch Management Protocol     April 2000


   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Output Port                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                  Output Label                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  Output PortThe output port of the switch to which this output
             branch is routed.

  Output Label
             The output label of the output branch specified in this
             Output Branch Record.

            ATM specific procedures:

                  If this Output Branch Record is part of a
                  Connection Record that specifies a virtual path
                  connection (the ATM VPC flag is set) the Output VCI
                  field is unused.

  A Report Connection State request message may be issued regardless
  of the Port Status or the Line Status of the target switch port.

  If the Input Port of the request message is valid, and the All
  Connections flag is set, but there are no connections established
  on that port, a failure response message must be returned with the
  code field set to, " General Message Failure" For the Report
  Connection State message, this failure code indicates that no
  connections matching the request message were found. This failure
  message should also be returned if the Input Port of the request
  message is valid, the All Connections flag is zero, and no
  connections are found on that port matching the specified
  connection.














Doria, et. al.      Expires October 2000        [Page 82]




Internet Draft     General Switch Management Protocol     April 2000

8.  Configuration Messages

   The configuration messages permit the controller to discover the
   capabilities of the switch. Three configuration request messages
   have been defined: Switch, Port, and All Ports.

8.1  Switch Configuration Message

   The Switch Configuration message requests the global (non port-
   specific) configuration for the switch. The Switch Configuration
   message is:

      Message Type = 64

   The Port field is not used in the switch configuration message.

   The Switch Configuration message has the following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     MType     |     MType     |     MType     |     MType     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Firmware Version Number    |          Window Size          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |          Switch Type          |                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
   |                          Switch Name                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Max Reservations                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       Note: Field and Parameters that have been explained in the
            description of the general messages will not be explained
            in this section. Please refer to section 3.1for details.

   MType
               Represents an alternative QoS Configuration type.
               In the request message the requested MType is in the
               most significant (leftmost) MType octet; the other three
               MType octets are unused. The reply message will either
               accept the MType request by including the requested
               MType in the leftmost MType field of the response


Doria, et. al.      Expires October 2000        [Page 83]




Internet Draft     General Switch Management Protocol     April 2000

             message or it will reject the MType request by
             responding with MType=0, the default MType, in the first
             MType field.  Optionally, in the case of a rejection,
             the switch reply can include up to 3 additional MType
             values in the rightmost 3 octets of the reply message
             respectively, each of which indicates an available
             alternative QoS Configurations. A switch that supports
             on the default QoS Configuration always returns MType=0
             in all four MType fields. MType negotiation is discussed
             in section 8.1.1.


             0               ¡  Indicates use of the default GSMP model
             1               ¡  Indicates use of IEEE qGSMP model
             2 - 200         -  Reserved
             201 - 255       -  Experimental

  Firmware Version Number
             The version number of the switch control firmware
             installed.

  Window SizeThe maximum number of unacknowledged request messages
             that may be transmitted by the controller without the
             possibility of loss. This field is used to prevent
             request messages being lost in the switch because of
             overflow in the receive buffer. The field is a hint to
             the controller. If desired, the controller may
             experiment with higher and lower window sizes to
             determine heuristically the best window size.

  Switch TypeA 16-bit field allocated by the manufacturer of the
             switch. (For these purposes the manufacturer of the
             switch is assumed to be the organisation identified by
             the OUI in the Switch Name field.) The Switch Type
             identifies the product. When the Switch Type is combined
             with the OUI from the Switch Name the product is
             uniquely identified. Network Management may use this
             identification to obtain product related information
             from a database.

  Switch NameA 48-bit quantity that is unique within the operational
             context of the device. A 48-bit IEEE 802 MAC address, if
             available, may be used as the Switch Name. The most
             significant 24 bits of the Switch Name must be an
             Organisationally Unique Identifier (OUI) that identifies
             the manufacturer of the switch.


Doria, et. al.      Expires October 2000        [Page 84]




Internet Draft     General Switch Management Protocol     April 2000

   Max Reservations
              The maximum number of Reservations that the switch can
              support (see Chapter 5). A value of 0 indicates that the
              switch does not support Reservations.

8.1.1  Configuration Message Processing

   After adjacency between a controller and a switch is first
   established the controller that opts to use a QoS Configuration
   other then the default would send the Switch Configuration request
   including the requested QoS Configuration's MType value in the
   request message. This request must be sent before any connection
   messages are exchanged. If the switch can support the requested
   QoS configuration then the switch includes the requested MType
   value in the response message as an indication that it accepts the
   request. If the switch cannot support the requested QoS
   Configuration, it replaces the MType value in the request message
   with that of the default QoS Configuration, i.e. MType=0.

   The switch configuration response messages may additionally
   include the MType values of up to three alternative QoS
   Configurations that the switch supports and that the controller
   may choose between.

   The exchange continues until the controller sends a requested
   MType that the switch accepts or until it sends a connection
   request message. If the exchange ends without confirmation of an
   alternate switch model, then the default Mtype=0 is be used.

   Once a MType has been established for the switch, it cannot be
   changed without full restart; that is the re-establishment of
   adjacency with the resetting of all connections.

8.2  Port Configuration Message

   The Port Configuration message requests the switch for the
   configuration information of a single switch port. The Port field
   in the request message specifies the port for which the
   configuration is requested. The Port Configuration message is:

      Message Type = 65.

   The Port Configuration success response message has the following
   format:







Doria, et. al.      Expires October 2000        [Page 85]




Internet Draft     General Switch Management Protocol     April 2000


    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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Port                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       Port Session Number                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Event Sequence Number                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            Event Flags        |          reserved             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   PortType    |S|x|x|x|x|x|x|x|     Data Fields Length        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                     PortType Specific Data                    ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Number of Service Specs    |                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               |
   |                                                               |
   ~                      Service Specs List                       ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Note: Field and Parameters that have been explained in the
          description of the general messages will not be explained
          in this section. Please refer to section 3.1for details.

  Port
             The switch port to which the configuration information
             refers. Configuration information relating to both the
             input and the output sides of the switch port is given.
             Port numbers are 32 bits wide and allocated by the
             switch. The switch may choose to structure the 32 bits
             into subfields that have meaning to the physical
             structure of the switch hardware (e.g. physical slot and
             port). This structure may be indicated in the Physical
             Slot Number and Physical Port Number fields.

  Event Sequence Number
             The Event Sequence Number is set to zero when the port
             is initialised. It is incremented by one each time the


Doria, et. al.      Expires October 2000        [Page 86]




Internet Draft     General Switch Management Protocol     April 2000

              port detects an asynchronous event that the switch would
              normally report via an Event message. The Event Sequence
              Number is explained in section 9.
   Event FlagsEvent Flags in a switch port corresponds to a type of
              Event message.

  PortType


              PortType = 0d01 = ATM
              PortType = 0d02 = FR
              PortType = 0d03 = MPLS
              PortType = 0d04 = DS3/E3
              PortType = 0d05 = DS1/E1

  S: Service Model
              If set, indicates that Service Model data follows the
              PortSpecific port configuration data.

  Data Fields Length
              The total length in bytes of the combined PortType
              Specific Data and Service Model Data fields. The length
              of each of these fields may be derived from the other
              data so the value of Data Fields Length serves primarily
              as a check and to assist parsing of the All Ports
              Configuration message success response.

  PortType Specific Data
              This field contains the configuration data specific to
              the particular port type as specified by the PortType
              field. The field format and length depends also on the
              value of PortType. PortType Specific Data is defined
              below.

  Number of Service Specs
              Field contains the total number of Service Specs
              following in the remainder of the Port Configuration
              message response or Port Configuration Record.

  Service Specs List
              Field contains a sequence of 1 or more Service Specs
              (defined below). If the Number of Service Specs is an
              even number then 16 bits of padding is inserted after
              the last Service Spec in order to justify the end of the
              Service Specs List at a 32-bit word boundary.

      Service Spec
              The format of the Service Spec field is given below:


Doria, et. al.      Expires October 2000        [Page 87]




Internet Draft     General Switch Management Protocol     April 2000


                 0                   1
                 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
                +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
               |  Service ID   |Capability Set ID|
                +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

            Each Service Spec identifies a Service supported by the
            switch together with the Capability Set ID that
            identifies the parameters of that instance of the
            Service. The Service Spec List may contain more than one
            Service Spec sharing the same Service ID. However, each
            Service Spec in the Service Specs List must be unique.

            Service ID
                 Field contains the Service ID of a Service
                 supported on the port. Service ID values are
                 defined as part of the Service definition in
                 Chapter 9.6.

            Capability Set ID
                 Field identifies a Capability Set ID of the Service
                 specified by the Service ID that is supported on
                 the port. Capability Set ID values are defined by
                 the Switch in the Service Configuration response
                 message (see Section 8.4). The switch must not
                 return a {Service ID, Capability Set ID} pair that
                 is not reported in a Service Configuration response
                 message.




















Doria, et. al.      Expires October 2000        [Page 88]




Internet Draft     General Switch Management Protocol     April 2000

8.2.1  PortType Specific Data


The length, format and semantics of the PortType Specific Data field
in the Port Configuration message success response and in the Port
Records of the All Port Configuration message success response all
depend on the PortType value of the same message or record
respectively. The specification of the PortType Specific Data field
is given below. For each defined PortType value the Min and Max
Label fields are given in the subsequent subsections.

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |P|M|L|R|Q|  label range count  |      label range length       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                      Label Range Block                        ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       Receive Data Rate                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Transmit Data Rate                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Port Status  |   Line Type   |  Line Status  |  Priorities   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Physical Slot Number      |     Physical Port Number      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       Note: Field and Parameters that have been explained in the
            description of the general messages will not be explained
            in this section. Please refer to section 3.1for details.


   Where each of the ranges in the Label Range Blocks will have the
   following format:

   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|V|C|               Min Label                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|x|               Max Label                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


   Flags

        P: VP Switching
              The ATM VPC flag may only be set for ports with
              PortType=ATM. The VP Switching flag, if set, indicates


Doria, et. al.      Expires October 2000        [Page 89]




Internet Draft     General Switch Management Protocol     April 2000

            that this input port is capable of supporting virtual
            path switching. Else, if zero, it indicates that this
            input port is only capable of virtual channel switching.

       M: Multicast Labels
            The Multicast Labels flag, if set, indicates that this
            output port is capable of labelling each output branch
            of a point-to-multipoint tree with a different label. If
            zero, it indicates that this output port is not able to
            label each output branch of a point-to-multipoint tree
            with a different label.

       L: Logical Multicast
            The Logical Multicast flag, if set, indicates that this
            output port is capable of supporting more than a single
            branch from any point-to-multipoint connection. This
            capability is often referred to as logical multicast. If
            zero, it indicates that this output port can only
            support a single output branch from each point-to-
            multipoint connection.

       R: Label Range
            The Label Range flag, if set, indicates that this switch
            port is capable of reallocating its label range and
            therefore accepts the Label Range message. Else, if
            zero, it indicates that this port does not accept Label
            Range messages.

       Q: QoSThe QoS flag, if set, indicates that this switch port is
            capable of handling the Quality of Service messages
            defined in section 9 of this specification. Else, if
            zero, it indicates that this port does not accept the
            Quality of Service messages.

       V: Label
            The Label flag use is port type specific.

       C: Multipoint Capable
            This flag indicates that the label range may be used for
            multipoint connections.

  Label Range Count
             Count of Label Data elements contained in the Label Data
             Block.

  Label Range Length
             Byte count in the Label Data Block.



Doria, et. al.      Expires October 2000        [Page 90]




Internet Draft     General Switch Management Protocol     April 2000

  Min Label The specification of the Min Label field for each
             defined PortType value is given in the subsequent
             subsections. The default minimum value of dynamically
             assigned incoming label that the connection table on the
             input port supports and that may be controlled by GSMP.
             This value is not changed as a result of the Label Range
             message.

  Max Label The specification of the Max Label field for each
             defined PortType value is given in the subsequent
             subsections. The default maximum value of dynamically
             assigned incoming label that the connection table on the
             input port supports and that may be controlled by GSMP.
             This value is not changed as a result of the Label Range
             message.

  Receive Data Rate
             The maximum rate of data that may arrive at the input
             port in;
             cells/s       for PortType=ATM
             bytes/s       for PortType=FR
             bytes/s       for PortType=MPLS
             bit/s         for PortType=DS3/E3
             bit/s         for PortType=DS1/E1

  Transmit Data Rate
             The maximum rate of data that may depart from the output
             port in;
             cells/s       for PortType=ATM
             bytes/s       for PortType=FR
             bytes/s       for PortType=MPLS
             bit/s         for PortType=DS3/E3
             bit/s         for PortType=DS1/E1

             (The transmit data rate of the output port may be
             changed by the Set Transmit Data Rate function of the
             Port Management message.)

  Port StatusGives the administrative state of the port. The defined
             values of the Port Status field are:

            Available:
                 Port Status = 1. The port is available to both send
                 and receive cells or frames. When a port changes to
                 the Available state from any other administrative
                 state, all dynamically assigned connections must be


Doria, et. al.      Expires October 2000        [Page 91]




Internet Draft     General Switch Management Protocol     April 2000

                 cleared and a new Port Session Number must be
                 generated.

            Unavailable:
                 Port Status = 2. The port has intentionally been
                 taken out of service. No cells or frames will be
                 transmitted from this port. No cells or frames will
                 be received by this port.

            Internal Loopback:
                 Port Status = 3. The port has intentionally been
                 taken out of service and is in internal loopback:
                 cells or frames arriving at the output port from
                 the switch fabric are looped through to the input
                 port to return to the switch fabric. All of the
                 functions of the input port above the physical
                 layer, e.g. header translation, are performed upon
                 the looped back cells or frames.

            External Loopback:
                 Port Status = 4. The port has intentionally been
                 taken out of service and is in external loopback:
                 cells or frames arriving at the input port from the
                 external communications link are immediately looped
                 back to the communications link at the physical
                 layer without entering the input port. None of the
                 functions of the input port above the physical
                 layer are performed upon the looped back cells or
                 frames.

            Bothway Loopback:
                 Port Status = 5. The port has intentionally been
                 taken out of service and is in both internal and
                 external loopback.

            The Port Status of the port over which the GSMP session
            controlling the switch is running, must be declared
            Available. The controller will ignore any other Port
            status for this port. The Port Status of switch ports
            after power-on initialisation is not defined by GSMP.

  Line Type The type of physical transmission interface for this
             port. The values for this field are defined by the
             IANAifType's specified in [17].

             The following values are identified for use in this
             version of the protocol.



Doria, et. al.      Expires October 2000        [Page 92]




Internet Draft     General Switch Management Protocol     April 2000

             PortType=Unknown:     other(1)
             PortType=MPLS:        ethernetCsmacd(6),
                                   ppp(23)
             PortType=DS1/E1: ds1(18)
             PortType=DS3/E3: ds3(30)
             PortType=ATM: atm(37)
             PortType=FR:          frameRelayService(44)


  Line StatusThe status of the physical transmission medium connected
             to the port. The defined values of the Line Status field
             are:

            Up: Line Status = 1. The line is able to both send and
                     receive. When the Line Status changes to Up from
                     either the Down or Test states, a new Port Session
                     Number must be generated.

            Down:Line Status = 2. The line is unable either to send
                     or receive or both.

            Test:Line Status = 3. The port or line is in a test
                     mode, for example, power-on test.

  PrioritiesThe number of different priority levels that this output
             port can assign to connections. Zero is invalid in this
             field. If an output port is able to support "Q"
             priorities, the highest priority is numbered zero and
             the lowest priority is numbered "Q-1". The ability to
             offer different qualities of service to different
             connections based upon their priority is assumed to be a
             property of the output port of the switch. It may be
             assumed that for connections that share the same output
             port, a cell or frame on a connection with a higher
             priority is much more likely to exit the switch before a
             cell or frame on a connection with a lower priority if
             they are both in the switch at the same time.

  Physical Slot Number
             The physical location of the slot in which the port is
             located. It is an unsigned 16-bit integer that can take
             any value except 0xFFFF. The value 0xFFFF is used to
             indicate "unknown." The Physical Slot Number is not used


Doria, et. al.      Expires October 2000        [Page 93]




Internet Draft     General Switch Management Protocol     April 2000

             by the GSMP protocol. It is provided to assist network
             management in functions such as logging, port naming,
             and graphical representation.

   Physical Port Number
             The physical location of the port within the slot in
             which the port is located. It is an unsigned 16-bit
             integer that can take any value except 0xFFFF. The value
             0xFFFF is used to indicate "unknown." The Physical Port
             Number is not used by the GSMP protocol. It is provided
             to assist network management in functions such as
             logging, port naming, and graphical representation.

             There must be a one to one mapping between Port Number
             and the Physical Slot Number and Physical Port Number
             combination. Two different Port Numbers must not yield
             the same Physical Slot Number and Physical Port Number
             combination. The same Port Number must yield the same
             Physical Slot Number and Physical Port Number within a
             single GSMP session. If both Physical Slot Number and
             Physical Port Number indicate "unknown" the physical
             location of switch ports may be discovered by looking up
             the product identity in a database to reveal the
             physical interpretation of the 32-bit Port Number.



8.2.1.1  PortType Specific data for PortType=ATM

   If PortType=ATM and the T flag is not set, the label range fields
   have following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|V|x|      Min VPI          |       Min VCI                 |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|V|x|      Max VPI          |       Max VCI                 |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


   V: Label If the Label flag is set, the message refers to a range
             of VPIs only. The Min VCI and Max VCI fields are unused.
             If the Label flag is zero the message refers to a range
             of VCIs on either one VPI or on a range of VPIs.



Doria, et. al.      Expires October 2000        [Page 94]




Internet Draft     General Switch Management Protocol     April 2000

  Min VPI
             The default minimum value of dynamically assigned
             incoming VPI that the connection table on the input port
             supports and that may be controlled by GSMP.

  Max VPI
             The default maximum value of dynamically assigned
             incoming VPI that the connection table on the input port
             supports and that may be controlled by GSMP.

             At power-on, after a hardware reset, and after the Reset
             Input Port function of the Port Management message, the
             input port must handle all values of VPI within the
             range Min VPI to Max VPI inclusive and GSMP must be able
             to control all values within this range. It should be
             noted that the range Min VPI to Max VPI refers only to
             the incoming VPI range that can be supported by the
             associated port. No restriction is placed on the values
             of outgoing VPIs that may be written into the cell
             header. If the switch does not support virtual paths it
             is acceptable for both Min VPI and Max VPI to specify
             the same value, most likely zero.

             Use of the Label Range message allows the range of VPIs
             supported by the port to be changed. However, the Min
             VPI and Max VPI fields in the Port Configuration and All
             Ports Configuration messages always report the same
             default values regardless of the operation of the Label
             Range message.

  Min VCI
             The default minimum value of dynamically assigned
             incoming VCI that the connection table on the input port
             can support and may be controlled by GSMP. This value is
             not changed as a result of the Label Range message.

  Max VCI
             The default maximum value of dynamically assigned
             incoming VCI that the connection table on the input port
             can support and may be controlled by GSMP.

             At power-on, after a hardware reset, and after the Reset
             Input Port function of the Port Management message, the
             input port must handle all values of VCI within the
             range Min VCI to Max VCI inclusive, for each of the
             virtual paths in the range Min VPI to Max VPI inclusive,
             and GSMP must be able to control all values within this
             range. It should be noted that the range Min VCI to Max
             VCI refers only to the incoming VCI range that can be


Doria, et. al.      Expires October 2000        [Page 95]




Internet Draft     General Switch Management Protocol     April 2000

             supported by the associated port on each of the virtual
             paths in the range Min VPI to Max VPI. No restriction is
             placed on the values of outgoing VCIs that may be
             written into the cell header.

             Use of the Label Range message allows the range of VCIs
             to be changed on each VPI supported by the port.
             However, the Min VCI and Max VCI fields in the Port
             Configuration and All Ports Configuration messages
             always report the same default values regardless of the
             operation of the Label Range message.

             For a port over which the GSMP protocol is operating,
             the VCI of the GSMP control channel may or may not be
             reported as lying within the range Min VCI to Max VCI. A
             switch should honour a connection request message that
             specifies the VCI value of the GSMP control channel even
             if it lies outside the range Min VCI to Max VCI.


If PortType=ATM and the T flag is set, the label range fields have
following format:
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|V|x|   ATM Label (0x100)   |          Label Length         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       |           VPI         |              VCI              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   The message contains the same definitions as above.


8.2.1.2  PortType Specific data for PortType=FR

   If PortType=FR and the T flag is unset,  the label range fields
   have following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|x|Res|Len|             Min DLCI                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|x|  Res  |             Max DLCI                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   x:        unused flag

   Res:      Reserved field


Doria, et. al.      Expires October 2000        [Page 96]




Internet Draft     General Switch Management Protocol     April 2000

   Len
               This field specifies the number of bits of the DLCI. The
               following values are supported:

               Len  DLCI bits
               0    10
               1    17
               2    23

   Min DLCI
   Max DLCI Specify a range of DLCI values, Min DLCI to Max DLCI
               inclusive. The values should be right justified in the
               23-bit fields and the preceding bits should be set to
               zero. A single DLCI may be specified with a Min DLCI and
               a Max DLCI having the same value. In a request message,
               if the value of the Max DLCI field is less than or equal
               to the value of the Min DLCI field, the requested range
               is a single DLCI with a value equal to the Min DLCI
               field. Zero is a valid value.


   If PortType=FR and the T flag is set, the label range fields have
   following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|    FR Label (0x101)   |          Label Length         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       |Res|Len|                DLCI                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   The message contains the same definitions as above.


8.2.1.3  PortType Specific data for PortType=MPLS

   The Label Range field for PortTypes using MPLS labels (e.g.
   Ethernet, SONET etc.) with the T flag unset, has the following
   format:









Doria, et. al.      Expires October 2000        [Page 97]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x x x x x x x x x x x|          Min MPLS Label               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |x x x x|x x x x x x x x|          Max MPLS Label               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Min MPLS Label:
   Max MPLS Label:
             Specify a range of MPLS label values, Min MPLS Label to
             Max MPLS Label inclusive. The Max and Min MPLS label
             fields are 20 bits each.


   If PortType=MPLS and the T flag is set, the label range fields
   have following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|x| MPLS Gen Label (0x102)|          Label Length         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |          Res          |              MPLS Label               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   The message contains the same definitions as above.


8.2.1.4  PortType Specific data for PortType=DS3/E3

   If the PortType=DS3/E3 and the T flag set, the label range field
   has the following format:















Doria, et. al.      Expires October 2000        [Page 98]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|U|       Label Type      |         Label Length          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Min Ch ID   |             Min Time Slots                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       Min Time Slots                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Max Ch ID   |             Max Time Slots                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       Max Time Slots                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


   Min Ch ID:
   Max Ch ID:Specify a range of DS1/E1 channel ID values, Min Ch ID
             to Max Ch ID inclusive. The Max and Min Ch ID fields are
             8 bits each.

             For DS1 Channels values are 1-28
             For E1 Channels values are 1-16


   Min Time Slots:
   Max Time Slots:
             Specify a range of DS0 Time Slots, Max Time Slot to Max
             Time Slot inclusive. The length of Max and Min Time
             Slots are determined by the Label Length field (minus
             the Ch ID octet).


8.2.1.5  PortType Specific data for PortType=DS1/E1

   If the PortType=DS3/E3 and the T flag set, the label range field
   has the following format:












Doria, et. al.      Expires October 2000        [Page 99]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|x|x|x|      Label Type       |          Label Length         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Min Time Slots                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
   |                        Max Time Slots                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|

   Min Time Slots:
   Max Time Slots:
             Specify a range of DS0 Time Slots, Max Time Slot to Max
             Time Slot inclusive. The length of Max and Min Time
             Slots are determined by the Label Length field (minus
             the Ch ID octet).


8.3  All Ports Configuration Message

   The All Ports Configuration message requests the switch for the
   configuration information of all of its ports. The All Ports
   Configuration message is:

      Message Type = 66

   The Port field is not used in the request message.

   The All Ports Configuration success response message has the
   following format:

















Doria, et. al.      Expires October 2000        [Page 100]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       Number of Records       |           Reserved            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                          Port Records                         ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Note: Field and Parameters that have been explained in the
         description of the general messages will not be explained
         in this section. Please refer to section 3.1for details.

  Number of Records
             Field gives the total number of Port Records to be
             returned in response to the All Ports Configuration
             request message. The number of port records in a single
             All Ports Configuration success response must not cause
             the packet length to exceed the maximum transmission
             unit defined by the encapsulation. If a switch has more
             ports than can be sent in a single success response
             message it must send multiple success response messages.
             All success response messages that are sent in response
             to the same request message must have the same
             Transaction Identifier as the request message and the
             same value in the Number of Records field. All success
             response messages that are sent in response to the same
             request message, except for the last message, must have
             the result field set to "More." The last message, or a
             single success response message, must have the result
             field set to "Success." All Port records within a
             success response message must be complete, i.e. a single
             Port record must not be split across multiple success
             response messages.

  Port Records
             Follow in the remainder of the message. Each port record
             has the following format:





Doria, et. al.      Expires October 2000        [Page 101]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Port                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       Port Session Number                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            Event Flags        |          reserved             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   PortType    |S|x|x|x|  Res  |      Data Fields Length       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                     PortType Specific Data                    ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Number of Service Specs    |                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               |
   |                                                               |
   ~                      Service Specs List                       ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   The definition of the fields in the Port Record is exactly the
   same as that of the Port Configuration message.

8.4  Service Configuration Message

   The Service Configuration message requests the switch for the
   configuration information of the Services that are supported. The
   Service Configuration message is:

      Message Type = 67

   The Service Configuration success response message has the
   following format:














Doria, et. al.      Expires October 2000        [Page 102]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |           Transaction Identifier              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Number of Service Records   |           Reserved            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                       Service Records                         ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Note: Field and Parameters that have been explained in the
         description of the general messages will not be explained
         in this section. Please refer to section 3.1for details.

  Number of Service Records
             Field gives the total number of Service Records to be
             returned in the Service model Data field.

  Service Records
             A sequence of zero or more Service Records. The switch
             returns one Service Record for each Service that it
             supports any of its ports. A Service record contains the
             configuration data of the specified Service. Each
             Service Record has the following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Service ID  |   Reserved    |  Number of Cap. Set. Records  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                   Capability Set Records                      ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  Service IDThe Service ID Field identifies the Service supported by
             the port. The Services are defined with their Service ID
             values in Chapter 9.6.





Doria, et. al.      Expires October 2000        [Page 103]




Internet Draft     General Switch Management Protocol     April 2000

  Number of Cap. Set. Records
             Field gives the total number of Capability Set Records
             to be returned in the Service Record field.

  Capability Set Records
             The switch returns one or more Capability Set Records in
             each Service Record. A Capability Set contains a set of
             parameters that describe the QoS parameter values and
             traffic controls that apply to an instance of the
             Service. Each Capability Set record has the following
             format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Cap. Set ID  |   Reserved    |       Traffic Controls        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     CLR       |                     CTD                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Frequency   |                     CDV                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  Capability Set ID
             The value in this Field defines a Capability Set ID
             supported by the switch. The values of a Capability Set
             ID is assigned by the switch and used in Port
             Configuration messages to identify Capability Sets
             supported by individual ports. Each Capability Set
             Record within a Service Record must have a unique
             Capability Set ID.

   Traffic Controls
      Field identifies the availability of Traffic Controls within
      the Capability Set. Traffic Controls are defined as part of the
      respective Service definition, see Chapter 10. Some or all of
      the Traffic Controls may be undefined for a given Service, in
      which case the corresponding Flag is ignored by the controller.
      The Traffic Controls field is formatted into Traffic Control
      Sub-fields as follows:

              0                   1
              0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
             +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            | U | D | I | E | S | V |  Res  |
             +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

     Traffic Control Sub-fields have the following encoding:




Doria, et. al.      Expires October 2000        [Page 104]




Internet Draft     General Switch Management Protocol     April 2000

      0b00 Indicates that the Traffic Control is not available in
            the Capability Set.

      0b01 Indicates that the Traffic Control is applied to all
            connections that use the Capability Set.

      0b10 Indicates that the Traffic Control is available for
            application to connections that use the Capability Set
            on a per connection basis.

      0b11 Reserved

     Traffic Control Sub-fields:

      U: Usage Parameter Control
            The Usage Parameter Control sub-field indicates the
            availability of Usage Parameter Control for the
            specified Service and Capability Set.

      D: Packet Discard
            The Packet Discard sub-field indicates the availability
            of Packet Discard for the specified Service and
            Capability Set.

      I: Ingress Shaping
            The Ingress Shaping sub-field indicates the availability
            of Ingress Traffic Shaping to the Peak Cell Rate and
            Cell Delay Variation Tolerance for the specified Service
            and Capability Set.

      E: Egress Shaping, Peak Rate
            The Egress Shaping, Peak Rate sub-field indicates the
            availability of Egress Shaping to the Peak Cell Rate and
            Cell Delay Variation Tolerance for the specified Service
            and Capability Set.

      S: Egress Traffic Shaping, Sustainable Rate
            The Egress Shaping, Sustainable Rate sub-field, if set,
            indicates that Egress Traffic Shaping to the Sustainable
            Cell Rate and Maximum Burst Size is available for the
            specified Service and Capability Set.

      V: VC Merge
            The VC Merge sub-field indicates the availability of ATM
            Virtual Channel Merge (i.e. multipoint to point ATM
            switching with a traffic control to avoid AAL5 PDU
            interleaving) capability for the specified Service and
            Capability Set.



Doria, et. al.      Expires October 2000        [Page 105]




Internet Draft     General Switch Management Protocol     April 2000

      Res: Reserved

   QoS Parameters
      The remaining four fields in the Capability Set Record contain
      the values of QoS Parameters. QoS Parameters are defined as
      part of the respective Service definition, see Chapter 9.6.
      Some or all of the QoS Parameters may be undefined for a given
      Service, in which case the corresponding field is ignored by
      the controller.

      CLR: Cell Loss Ratio
            The Cell Loss Ratio parameter indicates the CLR
            guaranteed by the switch for the specified Service. A
            cell loss ratio is expressed as an order of magnitude n,
            where the CLR takes the value 10exp(-n). The value n is
            coded as a binary integer, having a range of 1 <= n <=
            15. In addition, the value 0b1111 1111 indicates that no
            CLR guarantees is given.

      Frequency
            The frequency field is coded as an 8 bit unsigned
            integer. Frequency applies to the MPLS CR-LDP Service
            (see Section 10.4.3). Valid values of Frequency are:

                     0 - Very frequent
                     1 - Frequent
                     2 - Unspecified

      CTD: Cell Transfer Delay
            The CTD value is expressed in units of microseconds. It
            is coded as a 24-bit binary integer.

      CDV: Peak-to-peak Cell Delay Variation
            The CDV value is expressed in units of microseconds. It
            is coded as a 24-bit binary integer.














Doria, et. al.      Expires October 2000        [Page 106]




Internet Draft     General Switch Management Protocol     April 2000

9.  Event Messages

   Event messages allow the switch to inform the controller of
   certain asynchronous events. By default the controller does not
   acknowledge event messages unless ReturnReceipt is set in the
   Result field. The Code field is only used in case of Adjacency
   Update message, otherwise it is not used and should be set to
   zero. Event messages are not sent during initialisation. Event
   messages have the following format:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |    Result     |     Code      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition ID  |    Transaction Identifier                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |I|         SubMessage Number   |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Port                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Port Session Number                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     Event Sequence Number                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |T|S|x|x|                     Label                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       Note: Field and Parameters that have been explained in the
            description of the general messages will not be explained
            in this section. Please refer to section 3.1for details.

   Event Sequence Number
               The current value of the Event Sequence Number for the
               specified port. The Event Sequence Number is set to zero
               when the port is initialised. It is incremented by one
               each time the port detects an asynchronous event that
               the switch would normally report via an Event message.
               The Event Sequence Number must be incremented each time
               an event occurs even if the switch is prevented from
               sending an Event message due to the action of the flow
               control.

   Label
               Field gives the Label to which the event message refers.
               If this field is not required by the event message it is
               set to zero.




Doria, et. al.      Expires October 2000        [Page 107]




Internet Draft     General Switch Management Protocol     April 2000

   Each switch port must maintain an Event Sequence Number and a set
   of Event Flags, one Event Flag for each type of Event message.
   When a switch port sends an Event message it must set the Event
   Flag on that port corresponding to the type of the event. The port
   is not permitted to send another Event message of the same type
   until the Event Flag has been reset. Event Flags are reset by the
   "Reset Event Flags" function of the Port Management message. This
   is a simple flow control preventing the switch from flooding the
   controller with event messages. The Event Sequence Number of the
   port must be incremented every time an event is detected on that
   port even if the port is prevented from reporting the event due to
   the action of the flow control. This allows the controller to
   detect that it has not been informed of some events that have
   occurred on the port due to the action of the flow control.

9.1  Port Up Message

   The Port Up message informs the controller that the Line Status of
   a port has changed from either the Down or Test state to the Up
   state. When the Line Status of a switch port changes to the Up
   state from either the Down or Test state a new Port Session Number
   must be generated, preferably using some form of random number.
   The new Port Session Number is given in the Port Session Number
   field. The Label field is not used and is set to zero. The Port Up
   message is:

      Message Type = 80

9.2  Port Down Message

   The Port Down message informs the controller that the Line Status
   of a port has changed from the Up state to the Down state. This
   message will be sent to report link failure if the switch is
   capable of detecting link failure. The port session number that
   was valid before the port went down is reported in the Port
   Session Number field. The Label field is not used and is set to
   zero. The Port Down message is:

      Message Type = 81

9.3  Invalid Label Message

   The Invalid Label message is sent to inform the controller that
   one or more cells or frames have arrived at an input port with a
   Label that is currently not allocated to an assigned connection.
   The input port is indicated in the Port field, and the Label in
   the Label field. The Invalid Label message is:

      Message Type = 82


Doria, et. al.      Expires October 2000        [Page 108]




Internet Draft     General Switch Management Protocol     April 2000

9.4  New Port Message

   The New Port message informs the controller that a new port has
   been added to the switch. The port number of the new port is given
   in the Port field. A new Port Session Number must be assigned,
   preferably using some form of random number. The new Port Session
   Number is given in the Port Session Number field. The state of the
   new port is undefined so the Label field is not used and is set to
   zero. The New Port message is:

      Message Type = 83

9.5  Dead Port Message

   The Dead Port message informs the controller that a port has been
   removed from the switch. The port number of the port is given in
   the Port field. The Port Session Number that was valid before the
   port was removed is reported in the Port Session Number field. The
   Label fields are not used and are set to zero. The Dead Port
   message is:

      Message Type = 84

9.6  Adjacency Update Message

   The Adjacency Update message informs the controller when
   adjacencies, i.e. other controllers controlling a specific
   partition, are joining or leaving. When a new adjacency has been
   established, the switch sends an Adjacency Update message to every
   controller with an established adjacency to that partition. The
   Adjacency Update message is also sent when adjacency is lost
   between the partition and a controller, provided that there are
   any remaining adjacencies with that partition. The Code field is
   used to indicate the number of adjacencies known by the switch
   partition. The label field is not used and should be set to zero.
   The Adjacency Update message is:

      Message Type = 85












Doria, et. al.      Expires October 2000        [Page 109]




Internet Draft     General Switch Management Protocol     April 2000

10.  Service Model Definition

10.1  Overview

   In the GSMP Service Model a controller may request the switch to
   establish a connection with a given Service. The requested Service
   is identified by including a Service ID in the Add Branch message.
   The Service ID refers to a Service Definition provided in this
   chapter of the GSMP specification.

   A switch that implements one or more of the Services, as defined
   below, advertises the availability of these Services in the
   Service Configuration message response (see Section 8.4). Details
   of the switch's implementation of a given Service that are
   important to the controller (e.g. the value of delay or loss
   bounds or the availability of traffic controls such as policers or
   shapers) are reported in the form of a Capability Set in the
   Service Configuration message response.

   Thus a switch's implementation of a Service is defined in two
   parts: the Service Definition, which is part of the GSMP
   specification, and the Capability Set, which describes attributes
   of the Service specific to the switch. A switch may support more
   than one Capability Set for a given Service. For example if a
   switch supports one Service with two different values of a delay
   bound it could do this by reporting two Capability Sets for that
   Service.

   The Service Definition is identified in GSMP messages by the
   Service ID, an eight-bit identifier. Assigned numbers for the
   Service ID are given with the Service Definitions in Section 10.4.
   The Capability Set is identified in GSMP messages by the
   Capability Set ID, an eight-bit identifier. Numbers for the
   Capability Set ID are assigned by the switch and are advertised in
   the Service Configuration message response.

   The switch reports all its supported Services and Capability Sets
   in the Service Configuration message response. The subset of
   Services and Capability Sets supported on an individual port is
   reported in the Port Configuration message response or in the All
   Ports Configuration message response. In these messages the
   Services and Capability Sets supported on the specified port are
   indicated by a list of {Service ID, Capability Set ID} number
   pairs.

10.2  Service Model Definitions

   Terms and objects defined for the GSMP Service Model are given in
   this section.


Doria, et. al.      Expires October 2000        [Page 110]




Internet Draft     General Switch Management Protocol     April 2000

10.2.1  Original Specifications

   Services in GSMP are defined largely with reference to Original
   Specifications, i.e. the standards or implementation agreements
   published by organisations such as ITU-T, IETF, and ATM Forum that
   originally defined the Service. This version of GSMP refers to 4
   Original specifications: [8], [9], [10], and [11].

10.2.2  Service Definition, Traffic Parameters, QoS Parameters and
     Traffic Controls

   Each Service Definition in GSMP includes definition of:

       Traffic Parameters
          Traffic Parameter definitions are associated with Services
          while Traffic Parameter values are associated with
          connections.

          Traffic Parameters quantitatively describe a connection's
          requirements on the Service. For example, Peak Cell Rate is
          a Traffic Parameter of the Service defined by the ATM Forum
          Constant Bit Rate Service Category.

          Some Traffic Parameters are mandatory and some are
          optional, depending on the Service.

          Semantics of Traffic Parameters are defined by reference to
          Original Specifications.

       QoS Parameters
          QoS Parameters and their values are associated with
          Services.

          QoS Parameters express quantitative characteristics of a
          switch's support of a Service. They include, for example,
          quantitative bounds on switch induced loss and delay.

          Some QoS Parameters will be mandatory and some will be
          optional.

          Semantics of QoS Parameters are defined by reference to
          Original Specifications.

       Traffic Controls
          The implementation of some Services may include the use of
          Traffic Controls. Traffic Controls include for example
          functions such as policing, input shaping, output shaping,
          tagging and marking, frame vs. cell merge, frame vs. cell
          discard.



Doria, et. al.      Expires October 2000        [Page 111]




Internet Draft     General Switch Management Protocol     April 2000

          Switches are not required to support Traffic Controls. Any
          function that is always required in the implementation of a
          Service is considered part of the Service and is not
          considered a Traffic Control.

          If a switch supports a Traffic Control then the control may
          be applied either to all connections that use a given
          Capability Set (see below) or to individual connections.

          The definition of a Traffic Control is associated with a
          Service. Traffic Controls are defined, as far as possible,
          by reference to Original Specifications.

10.2.3  Capability Sets

   For each Service that a switch supports the switch must also
   support at least one Capability Set. A Capability Set establishes
   characteristics of a switch's implementation of a Service. It may
   be appropriate for a switch to support more than one Capability
   Set for a given Service.

   A Capability Set may contain, depending on the Service definition,
   QoS Parameter values and indication of availability of Traffic
   Controls.

   If a switch reports QoS Parameter values in a Capability Set then
   these apply to all the connections that use that Capability Set.

   For each Traffic Control defined for a given Service the switch
   reports availability of that control as one of the following:

       Not available in the Capability Set,

       Applied to all connections that use the Capability Set, or

       Available for application to connections that use the
          Capability Set on a per connection basis. In this case a
          controller may request application of the Traffic Control
          in connection management messages.

10.3  Service Model Procedures

   A switch's Services and Capability Sets are reported to a
   controller in a Service Configuration messages. A Service
   Configuration message response includes the list of Services
   defined for GSMP that the switch supports and, for each Service, a
   specification of the Capability Sets supported for the Service.
   Services are referred to by numbers standardised in the GSMP
   specification. Capability Sets are referred to by a numbering



Doria, et. al.      Expires October 2000        [Page 112]




Internet Draft     General Switch Management Protocol     April 2000

   system reported by the switch. Each Capability Set within a given
   Service includes a unique identifying number together with the
   switch's specification of QoS Parameters and Traffic Controls.

   A switch need not support all the defined Services and Capability
   Sets on every port. The supported Services and Capability Sets are
   reported to the controller on a per port basis in port
   configuration messages. Port configuration response messages list
   the supported Services using the standardised identifying numbers
   and the Capability Sets by using the identifying numbers
   established in the switch Service configuration messages.

   GSMP does not provide a negotiation mechanism by which a
   controller may establish or modify Capability Sets.

   When a controller establishes a connection, the connection
   management message includes indication of the Service and the
   Capability Set. Depending on these the connection management
   message may additionally include Traffic Parameter values and
   Traffic Control flags.

   A connection with a given Service can only be established if both
   the requested Service and the requested Capability Set are
   available on all of the connection's input and output ports.

   Refresh of an extant connection is permitted but the add branch
   message requesting the message must not include indication of
   Service, Capability Sets or Traffic Parameters.

   An extant connection's Traffic Parameters may be changed without
   first deleting the connection. The Service and Capability Sets of
   an extant connection cannot be changed.

   Move branch messages may be refused on the grounds of resource
   depletion.

10.4  Service Definitions

   This section sets forth the definition of Services. Each Service
   will be defined in its own subsection. Each Service definition
   includes the following definitions:

       Service Identifier
          The reference number used to identify the Service in GSMP
          messages.

       Service Characteristics
          A definition of the Service.



Doria, et. al.      Expires October 2000        [Page 113]




Internet Draft     General Switch Management Protocol     April 2000

       Traffic Parameters
          A definition of the Traffic Parameters used in connection
          management messages.

       QoS Parameters
          A definition of the QoS Parameters that are included in the
          Capability Set for instances of the Service.

       Traffic Controls
          A definition of the Traffic Controls that may be supported
          by an instance of the Service.

   Descriptive text is avoided wherever possible in order to minimise
   any possibility of semantic conflict with the Original
   Specifications.

10.4.1  ATM Forum Service Categories


10.4.1.1  CBR

   Service Identifier:

       CBR.1 - Service ID = 1

   Service Characteristics:

       Equivalent to ATM Forum CBR.1 Service, see [8].

   Traffic Parameters:

       - Peak Cell Rate

       - Cell Delay Variation Tolerance

   QoS Parameters:

       - Cell Loss Ratio

       - Maximum Cell Transfer Delay

       - Peak-to-peak Cell Delay Variation

   Traffic Controls:

       - (U) Usage Parameter Control

       - (I) Ingress Traffic Shaping to the Peak Cell Rate




Doria, et. al.      Expires October 2000        [Page 114]




Internet Draft     General Switch Management Protocol     April 2000

       - (E) Egress Traffic Shaping to the Peak Cell Rate and Cell
          Delay Variation Tolerance

       - (D) Packet Discard


10.4.1.2  rt-VBR

   Service Identifier:

       rt-VBR.1 - Service ID = 2

       rt-VBR.2 - Service ID = 3

       rt-VBR.3 - Service ID = 4

   Service Characteristics:

       Equivalent to ATM Forum rt-VBR Service, see [8].

   Traffic Parameters:

       - Peak Cell Rate

       - Cell Delay Variation Tolerance

       - Sustainable Cell Rate

       - Maximum Burst Size

   QoS Parameters:

       - Cell Loss Ratio

       - Maximum Cell Transfer Delay

       - Peak-to-peak Cell Delay Variation

   Traffic Controls:

       - (U) Usage Parameter Control

       - (I) Ingress Traffic Shaping to the Peak Cell Rate

       - (E) Egress Traffic Shaping to the Peak Cell Rate and Cell
          Delay Variation Tolerance

       - (S) Egress Traffic Shaping to the Sustainable Cell Rate and
          Maximum Burst Size



Doria, et. al.      Expires October 2000        [Page 115]




Internet Draft     General Switch Management Protocol     April 2000

       - (P) Packet Discard

       - (V) VC Merge


10.4.1.3  nrt-VBR

   Service Identifier:

       nrt-VBR.1 - Service ID = 5

       nrt-VBR.2 - Service ID = 6

       nrt-VBR.3 - Service ID = 7

   Service Characteristics:

       Equivalent to ATM Forum nrt-VBR Service, see [8].

   Traffic Parameters:

       - Peak Cell Rate

       - Cell Delay Variation Tolerance

       - Sustainable Cell Rate

       - Maximum Burst Size

   QoS Parameter:

       - Cell Loss Ratio

   Traffic Controls:

       - (U) Usage Parameter Control

       - (I) Ingress Traffic Shaping to the Peak Cell Rate

       - (E) Egress Traffic Shaping to the Peak Cell Rate and Cell
          Delay Variation Tolerance

       - (S) Egress Traffic Shaping to the Sustainable Cell Rate and
          Maximum Burst Size

       - (P) Packet Discard

       - (V) VC Merge




Doria, et. al.      Expires October 2000        [Page 116]




Internet Draft     General Switch Management Protocol     April 2000

10.4.1.4  UBR

   Service Identifier:

       UBR.1 - Service ID = 8

       UBR.2 - Service ID = 9

   Service Characteristics:

       Equivalent to ATM Forum UBR Service, see [8].

   Traffic Parameters:

       - Peak Cell Rate

       - Cell Delay Variation Tolerance

   QoS Parameter:

       None

   Traffic Controls:

       - (U) Usage Parameter Control

       - (I) Ingress Traffic Shaping to the Peak Cell Rate

       - (E) Egress Traffic Shaping to the Peak Cell Rate and Cell
          Delay Variation Tolerance

       - (P) Packet Discard

       - (V) VC Merge


10.4.1.5  ABR

   ABR is not supported in this version of GSMP.


10.4.1.6  GFR

   Service Identifier:

       GFR.1 - Service ID = 12

       GFR.2 - Service ID = 13

   Service Characteristics:


Doria, et. al.      Expires October 2000        [Page 117]




Internet Draft     General Switch Management Protocol     April 2000

       Equivalent to ATM Forum GFR Service, see [8].

   Traffic Parameters:

       - Peak Cell Rate

       - Cell Delay Variation Tolerance

       - Minimum Cell Rate

       - Maximum Burst Size

       - Maximum Frame Size

   QoS Parameter:

       - Cell Loss Ratio

   Traffic Controls:

       - (U) Usage Parameter Control

       - (I) Ingress Traffic Shaping to the Peak Cell Rate

       - (E) Egress Traffic Shaping to the Peak Cell Rate and Cell
          Delay Variation Tolerance

       - (V) VC Merge

10.4.2  Integrated Services


10.4.2.1  Controlled Load

   Service Identifier:

       Int-Serv Controlled Load - Service ID = 20

   Service Characteristics:

       See [9].

   Traffic Parameters:

       - Token bucket rate (r)

       - Token bucket depth (b)

       - Peak rate (p)



Doria, et. al.      Expires October 2000        [Page 118]




Internet Draft     General Switch Management Protocol     April 2000

       - Minimum policed unit (m)

       - Maximum packet size (M)

   QoS Parameter:

       None.

   Traffic Controls:

       None.

10.4.3  MPLS CR-LDP

   Service Identifier:

       MPLS CR-LDP QoS - Service ID = 25

   Service Characteristics:

       See [10].

   Traffic Parameters:

       - Peak Data Rate

       - Peak Burst Size

       - Committed Data Rate

       - Committed Burst Size

       - Excess Burst Size

       - Weight

   QoS Parameter:

       - Frequency

   Traffic Controls:

       None currently defined.

10.4.4  Frame Relay

   Service Identifier:

       Frame Relay Service - Service ID = 30



Doria, et. al.      Expires October 2000        [Page 119]




Internet Draft     General Switch Management Protocol     April 2000

   Service Characteristics:

       Equivalent to Frame Relay Bearer Service, see [11].

   Traffic Parameters:

       - Committed Information Rate

       - Committed Burst Rate

       - Excess Burst Rate

   QoS Parameters:

       None

   Traffic Controls:

       - Usage Parameter Control

       - Egress Traffic Shaping to the Committed Information Rate
          and Committed Burst Size

10.4.5  Diff-Serv

   For future study.

   Editor's note:  We either need to fill in this section (any
   volunteers?) or we need to remove it.

10.4.6  Circuit Emulation

   Service Identifier:

       Structured DS1          - Service ID = 50

       Unstructured DS1        - Service ID = 51

       Structured E1           - Service ID = 52

       Unstructured E1         - Service ID = 53

       Unstructured DS3        - Service ID = 54

       Unstructured E3         - Service ID = 55

   Service Characteristics:

       Equivalent to Circuit Emulation Service, see [18].



Doria, et. al.      Expires October 2000        [Page 120]




Internet Draft     General Switch Management Protocol     April 2000

   Traffic Parameters:

       -  Peak Cell Rate

       -  Cell Delay Variation Tolerance


   QoS Parameters:

       None

   Traffic Controls:

       -  Usage Parameter Control




10.5  Format and encoding of the Traffic Parameters Block in
    connection management messages

   Connection management messages that use the GSMP Service Model
   (i.e. those that have QMS=0b10) include the Traffic Parameters
   Block that specifies the Traffic Parameter values of a connection.
   The required Traffic Parameters of a given Service are given in
   Section 10.4. The format and encoding of these parameters are
   given below.

10.5.1  Traffic Parameters for ATM Forum Services

   The Traffic Parameters:

       - Peak Cell Rate

       - Cell Delay Variation Tolerance

       - Sustainable Cell Rate

       - Maximum Burst Size

       - Minimum Cell Rate

       - Maximum Frame Size

   are defined in [8]. These Parameters are encoded as 24-bit
   unsigned integers. Peak Cell Rate, Sustainable Cell Rate, and
   Minimum Cell Rate are in units of cells per second. Cell Delay



Doria, et. al.      Expires October 2000        [Page 121]




Internet Draft     General Switch Management Protocol     April 2000

   Variation Tolerance is in units of microseconds. Maximum Burst
   Size and Maximum Frame Size are in units of cells. In GSMP
   messages the individual Traffic Parameters are encoded as follows:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Reserved   |           24 bit unsigned integer             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   The format of the Traffic Parameters Block in connection
   management messages depends on the Service. It is a sequence of
   the 32 bit words (as shown above) corresponding to the Traffic
   Parameters as specified in the Service Definitions given in
   Section 10.4.1 in the order given there.

10.5.2  Traffic Parameters for the Int-Serv Controlled Load Service

   The Traffic Parameters:

       - Token bucket rate (r)

       - Token bucket size (b)

       - Peak rate (p)
   are defined in [9]. They are encoded as 32-bit IEEE single-
   precision floating point numbers. The Traffic Parameters Token
   bucket rate (r) and Peak rate (p) are in units of bytes per
   seconds. The Traffic Parameter Token bucket size (b) is in units
   of bytes.

   The Traffic Parameters:

       - Minimum policed unit (m)

       - Maximum packet size (M)

   are defined in [9]. They are encoded as 32 integer in units of
   bytes.

   The Traffic Parameters Block for the Int-Serv Controlled Load
   Service is as follows:









Doria, et. al.      Expires October 2000        [Page 122]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     Token bucket rate (r)                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     Token bucket size (b)                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Peak rate (p)                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Minimum policed unit (m)                   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Maximum packet size (M)                    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

10.5.3  Traffic Parameters for the CRLDP Service

   The Traffic Parameters:

       - Peak Data Rate,

       - Peak Burst Size,

       - Committed Data Rate,

       - Committed Burst Size, and

       - Excess Burst Size
   are defined in [10] to be encoded as a 32-bit IEEE single-
   precision floating point number. A value of positive infinity is
   represented as an IEEE single-precision floating-point number
   with an exponent of all ones (255) and a sign and mantissa of all
   zeros. The values Peak Data Rate and Committed Data Rate are in
   units of bytes per second. The values Peak Burst Size, Committed
   Burst Size and Excess Burst Size are in units of bytes.

   The Traffic Parameter

       - Weight

   is defined in [10] to be an 8-bit unsigned integer indicating the
   weight of the CRLSP. Valid weight values are from 1 to 255. The
   value 0 means that weight is not applicable for the CRLSP.

   The Traffic Parameters Block for the CRLDP Service is as follows:






Doria, et. al.      Expires October 2000        [Page 123]




Internet Draft     General Switch Management Protocol     April 2000


    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Peak Data Rate                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                        Peak Burst Size                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Committed Data Rate                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      Committed Burst Size                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       Excess Burst Size                       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                Reserved                       |    Weight     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

10.5.4  Traffic Parameters for the Frame Relay Service

   The Traffic Parameters:

       Committed Information Rate

       Committed Burst Size

       Excess Burst Size

   are defined in [11]. Format and encoding of these parameters for
   frame relay signalling messages are defined in [12]. (Note than in
   [12] the Committed Information Rate is called "Throughput".) GSMP
   uses the encoding defined in [12] but uses a different format.

   The format of the Traffic Parameters Block for Frame Relay Service
   is a follows:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      Reserved           | Mag | Reserved|  CIR Multiplier     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      Reserved           | Mag |x x|     CBS Multiplier        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      Reserved           | Mag |x x|     EBS Multiplier        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

       Mag
              This field is an unsigned integer in the range from 0 to
              6. The value 7 is not allowed. Mag is the decimal



Doria, et. al.      Expires October 2000        [Page 124]




Internet Draft     General Switch Management Protocol     April 2000

             exponent for the adjacent multiplier field (which itself
             functions as a mantissa).

       CIR Multiplier
             This field is an unsigned integer. It functions as the
             mantissa of the Committed Information Rate Traffic
             Parameter.

       CBS Multiplier
       EBS Multiplier
             These fields are unsigned integers. They function as the
             mantissas of the Committed Burst Size and Excess Burst
             Size Traffic Parameters respectively.

   The Traffic Parameter Values are related to their encoding in GSMP
   messages as follows:

       Committed Information Rate = 10^(Mag) * (CIR Multiplier)

       Committed Burst Size = 10^(Mag) * (CBS Multiplier)

       Excess Burst Size = 10^(Mag) * (EBS Multiplier)

10.6  Traffic Controls (TC) Flags

   The TC Flags field in Add Branch messages for connections using
   the Service Model are set by the controller to indicate that
   specific traffic controls are requested for the requested
   connection. The TC Flags field is shown below:

              0 1 2 3 4 5 6 7
             +-+-+-+-+-+-+-+-+
             |U|D|I|E|S|V|P|x|
             +-+-+-+-+-+-+-+-+

       U: Usage Parameter Control
             When set, this flag indicates that Usage Parameter
             Control is requested.

       D: Packet Discard
             When set, this flag indicates that Packet Discard is
             requested.

       I: Ingress Shaping
             When set, this flag indicates the availability of
             Ingress Traffic Shaping to the Peak Rate and  Delay
             Variation Tolerance is requested.




Doria, et. al.      Expires October 2000        [Page 125]




Internet Draft     General Switch Management Protocol     April 2000

      E: Egress Shaping, Peak Rate
            When set, this flag indicates that Egress Shaping to the
            Peak Rate and Delay Variation Tolerance is requested.

      S: Egress Traffic Shaping, Sustainable Rate
            When set, this flag indicates that Egress Traffic
            Shaping to the Sustainable Rate and Maximum Burst Size
            is requested.

      V: VC Merge
            When set, this flag indicates that ATM Virtual Channel
            Merge (i.e. multipoint to point ATM switching with a
            traffic control to avoid AAL5 PDU interleaving) is
            requested.

      P: PortWhen set indicates that traffic block pertains to
            Ingress Port.

      x: Reserved

  The controller may set (to one) the flag corresponding to the
  requested Traffic Control if the corresponding Traffic Control has
  been indicated in the Service Configuration response message
  (Section 8.4) as available for application to connections that use
  the requested Capability Set on a per connection basis. (The
  requested Capability Set is indicated by the Capability Set ID the
  least significant byte of the Service Selector field of the Add
  Branch message.) If the Traffic Control has been indicated in the
  Service Configuration response message as either not available in
  the Capability Set or applied to all connections that use the
  Capability Set then the controller sets the flag to zero and the
  switch ignores the flag.
















Doria, et. al.      Expires October 2000        [Page 126]




Internet Draft     General Switch Management Protocol     April 2000

11.  Adjacency Protocol

   The adjacency protocol is used to synchronise state across the
   link, to agree on which version of the protocol to use, to
   discover the identity of the entity at the other end of a link,
   and to detect when it changes. GSMP is a hard state protocol. It
   is therefore important to detect loss of contact between switch
   and controller, and to detect any change of identity of switch or
   controller. No GSMP messages other than those of the adjacency
   protocol may be sent across the link until the adjacency protocol
   has achieved synchronisation.

11.1  Packet Format

   All GSMP messages belonging to the adjacency protocol have the
   following structure:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Version    | Message Type  |     Timer     |M|     Code    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Sender Name                          |
   +                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                               |                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
   |                         Receiver Name                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Sender Port                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         Receiver Port                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |PType  | PFlag |        Sender Instance                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Partition Id  |        Receiver Instance                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Version

              In the adjacency protocol the Version field is used for
              version negotiation. In a SYN message the Version field
              always contains the highest version understood by the
              sender. A receiver receiving a SYN message with a
              version higher than understood will ignore that message.
              A receiver receiving a SYN message with a version lower
              than its own highest version, but a version that it
              understands, will reply with a SYNACK with the version
              from the received SYN in its GSMP Version field. This
              defines the version of the GSMP protocol to be used


Doria, et. al.      Expires October 2000        [Page 127]




Internet Draft     General Switch Management Protocol     April 2000

             while the adjacency protocol remains synchronised. All
             other messages will use the agreed version in the
             Version field.

            The version number for the version of the GSMP protocol
            defined by this specification is Version = 2.

  Message Type
             The adjacency protocol is:

                  Message Type = 10

  Timer
             The Timer field is used to inform the receiver of the
             timer value used in the adjacency protocol of the
             sender. The timer specifies the nominal time between
             periodic adjacency protocol messages. It is a constant
             for the duration of a GSMP session. The timer field is
             specified in units of 100ms.

  M-Flag
             The M-Flag is used in the SYN message to indicate
             whether the sender is a master or a slave. If the M-Flag
             is set in the SYN message, the sender is a master. If
             zero, the sender is a slave. The GSMP protocol is
             asymmetric, the controller being the master and the
             switch being the slave. The M-Flag prevents a master
             from synchronising with another master, or a slave with
             another slave. If a slave receives a SYN message with a
             zero M-Flag, it must ignore that SYN message. If a
             master receives a SYN message with the M-Flag set, it
             must ignore that SYN message. In all other messages the
             M-Flag is not used.

  Code
             Field specifies the function of the message. Four Codes
             are defined for the adjacency protocol:

                  SYN:     Code = 1
                  SYNACK:  Code = 2
                  ACK:     Code = 3
                  RSTACK:  Code = 4.

  Sender NameFor the SYN, SYNACK, and ACK messages, is the name of
             the entity sending the message. The Sender Name is a 48-
             bit quantity that is unique within the operational
             context of the device. A 48-bit IEEE 802 MAC address, if
             available, may be used for the Sender Name. If the


Doria, et. al.      Expires October 2000        [Page 128]




Internet Draft     General Switch Management Protocol     April 2000

             Ethernet encapsulation is used the Sender Name must be
             the Source Address from the MAC header. For the RSTACK
             message, the Sender Name field is set to the value of
             the Receiver Name field from the incoming message that
             caused the RSTACK message to be generated.

  Receiver Name
             For the SYN, SYNACK, and ACK messages, is the name of
             the entity that the sender of the message believes is at
             the far end of the link. If the sender of the message
             does not know the name of the entity at the far end of
             the link, this field should be set to zero. For the
             RSTACK message, he Receiver Name field is set to the
             value of the Sender Name field from the incoming message
             that caused the RSTACK message to be generated.

  Sender PortFor the SYN, SYNACK, and ACK messages, is the local port
             number of the link across which the message is being
             sent. For the RSTACK message, the Sender Port field is
             set to the value of the Receiver Port field from the
             incoming message that caused the RSTACK message to be
             generated.

  Receiver Port
             For the SYN, SYNACK, and ACK messages, is what the
             sender believes is the local port number for the link,
             allocated by the entity at the far end of the link. If
             the sender of the message does not know the port number
             at the far end of the link, this field should be set to
             zero. For the RSTACK message, the Receiver Port field is
             set to the value of the Sender Port field from the
             incoming message that caused the RSTACK message to be
             generated.

  PTYPE
             Type of partition being requested.
             0 No Partition Request
             1 Fixed Partition

  PFLAG
             Used to indicate type of partition request.
             1 - New Adjacency.  In the case of a new adjacency, the
             state of the switch will be reset.
             2 - Recovered Adjacency.  In the case of a recovered
             adjacency, the state of the switch will remain, and the
             Switch Controller will be responsible for confirming
             that the state of the switch matches the desired state.



Doria, et. al.      Expires October 2000        [Page 129]




Internet Draft     General Switch Management Protocol     April 2000

   Sender Instance
             For the SYN, SYNACK, and ACK messages, is the sender's
             instance number for the link. It is used to detect when
             the link comes back up after going down or when the
             identity of the entity at the other end of the link
             changes. The instance number is a 32-bit number that is
             guaranteed to be unique within the recent past and to
             change when the link or node comes back up after going
             down. Zero is not a valid instance number. For the
             RSTACK message, the Sender Instance field is set to the
             value of the Receiver Instance field from the incoming
             message that caused the RSTACK message to be generated.

   Partition ID
             Field used to associate the message with a specific
             switch partition.

   Receiver Instance
             For the SYN, SYNACK, and ACK messages, is what the
             sender believes is the current instance number for the
             link, allocated by the entity at the far end of the
             link. If the sender of the message does not know the
             current instance number at the far end of the link, this
             field should be set to zero. For the RSTACK message, the
             Receiver Instance field is set to the value of the
             Sender Instance field from the incoming message that
             caused the RSTACK message to be generated.

11.2  Procedure

   The adjacency protocol is described by the following rules and
   state tables.

   The rules and state tables use the following operations:

    o The "Update Peer Verifier" operation is defined as storing the
      values of the Sender Instance, Sender Port, and Sender Name
      fields from a SYN or SYNACK message received from the entity at
      the far end of the link.

    o The procedure "Reset the link" is defined as:

          1. Generate a new instance number for the link
          2. Delete the peer verifier (set to zero the values of
              Sender Instance, Sender Port, and Sender Name previously
              stored by the Update Peer Verifier operation)
          3. Send a SYN message
          4. Enter the SYNSENT state.



Doria, et. al.      Expires October 2000        [Page 130]




Internet Draft     General Switch Management Protocol     April 2000

   o The state tables use the following Boolean terms and operators:

       A    The Sender Instance in the incoming message matches the
            value stored from a previous message by the "Update Peer
            Verifier" operation.

       B    The Sender Instance, Sender Port, Sender Name and Sender
            Partition ID fields in the incoming message match the
            values stored from a previous message by the "Update
            Peer Verifier" operation.

       C    The Receiver Instance, Receiver Port,  Receiver Name and
            Receiver Partition ID fields in the incoming message
            match the values of the Sender Instance, Sender Port,
            Sender Name and Sender Partition ID currently sent in
            outgoing SYN, SYNACK, and ACK messages.

       "&&" Represents the logical AND operation

       "||" Represents the logical OR operation

       "!" Represents the logical negation (NOT) operation.

    o A timer is required for the periodic generation of SYN, SYNACK,
      and ACK messages. The value of the timer is announced in the
      Timer field. The period of the timer is unspecified but a value
      of one second is suggested.

     There are two independent events: the timer expires, and a
     packet arrives. The processing rules for these events are:



















Doria, et. al.      Expires October 2000        [Page 131]




Internet Draft     General Switch Management Protocol     April 2000


        Timer Expires:   Reset Timer
                         If state = SYNSENT Send SYN
                         If state = SYNRCVD Send SYNACK
                         If state = ESTAB   Send ACK

         Packet Arrives:
             If incoming message is an RSTACK:
                 If (A && C && !SYNSENT) Reset the link
                 Else discard the message.
             If incoming message is a SYN, SYNACK, or ACK:
                 Response defined by the following State Tables.
             If incoming message is any other GSMP message and
                 state != ESTAB:
                 Discard incoming message.
                 If state = SYNSENT Send SYN (Note 1)
                 If state = SYNRCVD Send SYNACK (Note 1)

             Note 1: No more than two SYN or SYNACK messages should
             be sent within any time period of length defined by
             the timer.

    o State synchronisation across a link is considered to be
      achieved when the protocol reaches the ESTAB state. All GSMP
      messages, other than adjacency protocol messages, that are
      received before synchronisation is achieved will be discarded.






















Doria, et. al.      Expires October 2000        [Page 132]




Internet Draft     General Switch Management Protocol     April 2000

11.2.1  State Tables


State: SYNSENT


+======================================================================+
|     Condition      |                Action               | New State |
+====================+=====================================+===========+
|    SYNACK && C     |  Update Peer Verifier; Send ACK     |   ESTAB   |
+--------------------+-------------------------------------+-----------+
|    SYNACK && !C    |            Send RSTACK              |  SYNSENT  |
+--------------------+-------------------------------------+-----------+
|        SYN         |  Update Peer Verifier; Send SYNACK  |  SYNRCVD  |
+--------------------+-------------------------------------+-----------+
|        ACK         |            Send RSTACK              |  SYNSENT  |
+======================================================================+


State: SYNRCVD

+======================================================================+
|     Condition      |                Action               | New State |
+====================+=====================================+===========+
|    SYNACK && C     |  Update Peer Verifier; Send ACK     |   ESTAB   |
+--------------------+-------------------------------------+-----------+
|    SYNACK && !C    |            Send RSTACK              |  SYNRCVD  |
+--------------------+-------------------------------------+-----------+
|        SYN         |  Update Peer Verifier; Send SYNACK  |  SYNRCVD  |
+--------------------+-------------------------------------+-----------+
|   ACK && B && C    |              Send ACK               |   ESTAB   |
+--------------------+-------------------------------------+-----------+
|  ACK && !(B && C)  |            Send RSTACK              |  SYNRCVD  |
+======================================================================+


State: ESTAB


+======================================================================+
|     Condition      |                Action               | New State |
+====================+=====================================+===========+
|   SYN || SYNACK    |           Send ACK (note 2)         |   ESTAB   |
+--------------------+-------------------------------------+-----------+
|   ACK && B && C    |           Send ACK (note 3)         |   ESTAB   |
+--------------------+-------------------------------------+-----------+
|  ACK && !(B && C)  |              Send RSTACK            |   ESTAB   |
+======================================================================+



Doria, et. al.      Expires October 2000        [Page 133]




Internet Draft     General Switch Management Protocol     April 2000

   Note 2: No more than two ACKs should be sent within any time
   period of length defined by the timer. Thus, one ACK must be sent
   every time the timer expires. In addition, one further ACK may be
   sent between timer expirations if the incoming message is a SYN or
   SYNACK. This additional ACK allows the adjacency protocol to reach
   synchronisation more quickly.

   Note 3: No more than one ACK should be sent within any time period
   of length defined by the timer.

11.3  Partition Information State

   Each instance of a [switch controller ¡ switch partition] pair
   will need to establish adjacency synchronisation independently.

   Part of the process of establishing synchronisation when using
   partition will be to establish the assignment of partition
   identifiers.  Two scenarios are provided for:

       -  A controller can request a specific partition identifier
          with the switch having the option to either accept or to
          reject the request.  In this case the adjacency message
          will include Partition ID != 0.

       -  The switch can assign partition identifiers to controllers
          based on its on pre-established mechanisms.  In this case
          the adjacency message will include Partition ID = 0.

   The assignment is determined by the following behaviour:

       -  An adjacency message from the controller with SYN || SYNACK
          && PTYPE is treated as a partition request

       -  An adjacency message from the switch with SYNACK || ACK &&
          PTYPE is treated as a partition assignment

       -  An adjacency message from the switch with RSTACK && PTYPE
          is treated as partition unavailability.

11.4  Loss of Synchronisation

   If after synchronisation is achieved, no valid GSMP messages are
   received in any period of time in excess of three times the value
   of the Timer field announced in the incoming adjacency protocol
   messages, loss of synchronisation may be declared.

   While re-establishing synchronisation with a controller, a switch
   should maintain its state, deferring the decision about resetting
   the state until after synchronisation is re-established.


Doria, et. al.      Expires October 2000        [Page 134]




Internet Draft     General Switch Management Protocol     April 2000

   Once synchronisation is re-established the decision about
   resetting the state should be made on the following basis:

       -  If PFLAG = 1, then a new adjacency has been established and
          the state should be reset

       -  If PFLAG = 2, then adjacency has been re-established and
          the switch state should be retained.  Verification that
          controller and switch state are the same is the
          responsibility of the controller.

11.5  Multiple Controllers per switch partition

   Multiple switch controllers may jointly control a single switch
   partition. The controllers may control a switch partition either
   in a master/standby fashion or as part of multiple controllers
   providing load-sharing for the same partition. It is the
   responsibility of the controller to co-ordinate their interactions
   with the switch partition. In order to assist the controllers in
   tracking multiple controller adjacencies to a single switch
   partition, the Adjacency Update message is used to inform a
   controller that there are other controllers interacting the same
   partition. It should be noted that the GSMP will not co-ordinate
   cache synchronization information among controllers; i.e. the
   switch partition will service each command it receives in turn as
   if it were interacting with a single controller.  Implementations
   without controller entity synchronisation are advised against
   using multiple controllers with a single switch partition.

11.5.1  Multiple Controller Adjacency Process

   The first adjacency for a specific partition is determined by the
   procedures described in chapter Partition Information State. The
   next adjacencies to the partition are identified by a new
   partition request with same Partition id as the first one but with
   different Sender Name. Adjacency loss is defined in the section on
   the Loss of Synchronization (11.4).

   Example:

   A switch partition has never been used. When the first controller
   (A) achieves adjacency, an adjacency count will be initiated and
   (A) will get an Adjacency Update message about itself with Code
   field = 1. Since (A) receives an adjacency count of 1 this
   indicates that it only controller for that partition.

   When a second adjacency (B), using the same Partition ID, achieves
   adjacency, the adjacency counter will be increased by 1.Both (A)
   and (B) will receive an Adjacency Update message indicating


Doria, et. al.      Expires October 2000        [Page 135]




Internet Draft     General Switch Management Protocol     April 2000

  adjacency count of 2 in the Code field. Since the count is greater
  than 1, this will indicate to both (A) and (B) that there is
  another controller interacting with the switch; identification of
  the other controller will not be provided by GSMP, but will be the
  responsibility of the controllers. .

  If (A) looses adjacency, the adjacency count will be decreased and
  an Adjacency Update message will be sent to (B) indicating
  adjacency count of 1 in the Code field. If (B) leaves as well, the
  partition is regarded as idle and the adjacency count may be
  reset.



































Doria, et. al.      Expires October 2000        [Page 136]




Internet Draft     General Switch Management Protocol     April 2000

12.  Failure Response Codes

12.1  Description of Failure Response Messages

   A failure response message is formed by returning the request
   message that caused the failure with the Result field in the
   header indicating failure (Result = 4) and the Code field giving
   the failure code. The failure code specifies the reason for the
   switch being unable to satisfy the request message.

   If the switch issues a failure response in reply to a request
   message, no change should be made to the state of the switch as a
   result of the message causing the failure. (For request messages
   that contain multiple requests, such as the Delete Branches
   message, the failure response message will specify which requests
   were successful and which failed. The successful requests may
   result in changed state.)

   If the switch issues a failure response it must choose the most
   specific failure code according to the following precedence:

       - Invalid Message

       - General Message Failure

       - Specific Message Failure A failure response specified in the
          text defining the message type.

       - Connection Failures

       - Virtual Path Connection Failures

       - Multicast Failures

       - QoS Failures

       - General Failures

   If multiple failures match in any of the following categories, the
   one that is listed first should be returned. The following failure
   response messages and failure codes are defined:

   Invalid Message

       3:  The specified request is not implemented on this switch.
               The Message Type field specifies a message that is not
               implemented on the switch or contains a value that is
               not defined in the version of the protocol running in
               this session of GSMP.



Doria, et. al.      Expires October 2000        [Page 137]




Internet Draft     General Switch Management Protocol     April 2000

      4:  One or more of the specified ports does not exist.
              At least one of the ports specified in the message is
              invalid. A port is invalid if it does not exist or if
              it has been removed from the switch.

      5:  Invalid Port Session Number.
              The value given in the Port Session Number field does
              not match the current Port Session Number for the
              specified port.

      7: Invalid Partition ID
              The value given in the Partition ID field is not legal
              for this partition.


   General Message Failure

      10: The meaning of this failure is dependent upon the
              particular message type and is specified in the text
              defining the message.


   Specific Message Failure - A failure response that is only used by
             a specific message type

   - Failure responses messages used by the Label Range message

      40: Cannot support one or more requested label ranges.

      41: Cannot support disjoint label ranges.

      42: Specialized multipoint labels not supported.

   - Failure response messages used by the Set Transmit Data Rate
             function of the Port Management message

      43: The transmit data rate of this output port cannot be
              changed.

      44: Requested transmit data rate out of range for this output
              port.
              The transmit data rate of the requested output port
              can be changed, but the value of the Transmit Data
              Rate field is beyond the range of acceptable values.

   - Failure response message range reserved for the ARM extension



Doria, et. al.      Expires October 2000        [Page 138]




Internet Draft     General Switch Management Protocol     April 2000

      128-159: These failure response codes will be interpreted
              according to definitions provided by the model
              description.


   Connection Failures

      11:  The specified connection does not exist.
              An operation that expects a connection to be specified
              cannot locate the specified connection. A connection
              is specified by the input port and input label on
              which it arrives. An ATM virtual path connection is
              specified by the input port and input VPI on which it
              arrives.

      12:  The specified branch does not exist.
              An operation that expects a branch of an existing
              connection to be specified cannot locate the specified
              branch. A branch of a connection is specified by the
              connection it belongs to and the output port and
              output label on which it departs. A branch of an ATM
              virtual path connection is specified by the virtual
              path connection it belongs to and the output port and
              output VPI on which it departs.

      13: One or more of the specified Input Labels is invalid.

      14: One or more of the specified Output Labels is invalid.

      15: Only point-to-point bi-directional connections may be
              established.
              The connection specified by the Input Port and Input
              Label fields already exists, and the bi-directional
              Flag in the Flags field is set.

      16: Invalid Service Selector field in a Connection Management
              message.
              The value of the Service Selector field is invalid.

      17: Insufficient resources for QoS Profile.
              The resources requested by the QoS Profile in the
              Service Selector field are not available.

      18: Insufficient Resources.
              Switch resources needed to establish a branch are not
              available.




Doria, et. al.      Expires October 2000        [Page 139]




Internet Draft     General Switch Management Protocol     April 2000

      20: Reservation ID out of Range
              The numerical value of Reservation ID is greater than
              the value of Max Reservations (from the Switch
              Configuration message).

      21: Mismatched reservation ports
              The value of Input Port differs from the input port
              specified in the reservation or the value of Output
              Port differs from the output port specified in the
              reservation.

      22: Reservation ID in use
              The value of Reservation ID matches that of an extant
              Reservation.

      23: Non-existent reservation ID
              No reservation corresponding to Reservation ID exists.


   ATM Virtual Path Connections

      24: ATM virtual path switching is not supported on this input
              port.

      25: Point-to-multipoint ATM virtual path connections are not
              supported on either the requested input port or the
              requested output port.
              One or both of the requested input and output ports is
              unable to support point-to-multipoint ATM virtual path
              connections.

      26: Attempt to add an ATM virtual path connection branch to an
              existing virtual channel connection.
              It is invalid to mix branches switched as virtual
              channel connections with branches switched as ATM
              virtual path connections on the same point-to-
              multipoint connection.

      27: Attempt to add a virtual channel connection branch to an
              existing ATM virtual path connection.
              It is invalid to mix branches switched as virtual
              channel connections with branches switched as ATM
              virtual path connections on the same point-to-
              multipoint connection.

      28: ATM Virtual path switching is not supported on non-ATM
              ports.
              One or both of the requested input and output ports is


Doria, et. al.      Expires October 2000        [Page 140]




Internet Draft     General Switch Management Protocol     April 2000

              not an ATM port. ATM virtual path switching is only
              supported on ATM ports.


   Multicast Failures

      29: A branch belonging to the specified point-to-multipoint
              connection is already established on the specified
              output port and the switch cannot support more than a
              single branch of any point-to-multipoint connection on
              the same output port.

      30: The limit on the maximum number of point-to-multipoint
              connections that the switch can support has been
              reached.

      31: The limit on the maximum number of branches that the
              specified point-to-multipoint connection can support
              has been reached.

      32: Cannot label each output branch of a point-to-multipoint
              tree with a different label.
              Some early designs, and some low-cost switch designs,
              require all output branches of a multicast connection
              to use the same value of Label.

      33: Only point-to-point bi-directional connections may be
              established.
              It is an error to attempt to add an additional output
              branch to an existing connection with the bi-
              directional flag set.

      34: Unable to assign the requested Label value to the
              requested branch on the specified point-to-multipoint
              connection.
              Although the requested Labels are valid, the switch is
              unable to support the request using the specified
              Label values for some reason not covered by the above
              failure responses. This message implies that a valid
              value of Label exists that the switch could support.
              For example, some switch designs restrict the number
              of distinct Label values available to a point-to-
              multipoint connection. (Most switch designs will not
              require this message.)

      35: General problem related to the manner in which point-to-
              multipoint is supported by the switch.
              Use this message if none of the more specific


Doria, et. al.      Expires October 2000        [Page 141]




Internet Draft     General Switch Management Protocol     April 2000

               multicast failure messages apply. (Most switch designs
               will not require this message.)


   QoS Failures

   60-79: These failure response codes will be interpreted according
             to definitions provided by the model description.

   80: Switch does not support different QoS parameters for different
             branches within a multipoint connection.

   General Failures

       2:  Invalid request message.
               There is an error in one of the fields of the message
               not covered by a more specific failure message.

       6:  One or more of the specified ports is down.
               A port is down if its Port Status is Unavailable.
               Connection Management, Connection State, Port
               Management, and Configuration operations are permitted
               on a port that is Unavailable. Connection Activity and
               Statistics operations are not permitted on a port that
               is Unavailable and will generate this failure
               response. A Port Management message specifying a Take
               Down function on a port already in the Unavailable
               state will also generate this failure response.

       19: Out of resources.
               The switch has exhausted a resource not covered by a
               more specific failure message, for example, running
               out of memory.

       1:  Unspecified reason not covered by other failure codes.
               The failure message of last resort.

12.2  Summary of Failure Response Codes

   The following list gives a summary of the failure codes defined
   for failure response messages:

        1: Unspecified reason not covered by other failure codes.
        2: Invalid request message.
        3: The specified request is not implemented on this switch.
        4: One or more of the specified ports does not exist.
        5: Invalid Port Session Number.
        6: One or more of the specified ports is down.



Doria, et. al.      Expires October 2000        [Page 142]




Internet Draft     General Switch Management Protocol     April 2000

       7: Invalid Partition ID.
      10: General message failure. (The meaning of this failure code
            depends upon the Message Type. It is defined within the
            description of any message that uses it.)
      11: The specified connection does not exist.
      12: The specified branch does not exist.
      13: One or more of the specified Input Labels is invalid.
      14: One or more of the specified Output Labels is invalid.
      15: Only point-to-point bi-directional connections may be
            established.
      16: Invalid service selector field in a connection management
            message.
      17: Insufficient resources for QoS profile.
      18: Insufficient resources.
      19: Out of resources (e.g. memory exhausted, etc.).
      20: Reservation ID out of Range
      21: Mismatched reservation ports
      22: Reservation ID in use
      23: Non-existent reservation ID
      24: Virtual path switching is not supported on this input
            port.
      25: Point-to-multipoint virtual path connections are not
            supported on either the requested input port or the
            requested output port.
      26: Attempt to add a virtual path connection branch to an
            existing virtual channel connection.
      27: Attempt to add a virtual channel connection branch to an
            existing virtual path connection.
      28: ATM Virtual Path switching is not supported on non-ATM
            ports.
      29: A branch belonging to the specified point-to-multipoint
            connection is already established on the specified
            output port and the switch cannot support more than a
            single branch of any point-to-multipoint connection on
            the same output port.
      30: The limit on the maximum number of point-to-multipoint
            connections that the switch can support has been
            reached.
      31: The limit on the maximum number of branches that the
            specified point-to-multipoint connection can support has
            been reached.
      32: Cannot label each output branch of a point-to-multipoint
            tree with a different label.
      33: Only point-to-point bi-directional connections may be
            established.
      34: Unable to assign the requested Label value to the
            requested branch on the specified point-to-multipoint
            connection.



Doria, et. al.      Expires October 2000        [Page 143]




Internet Draft     General Switch Management Protocol     April 2000

      35: General problem related to the manner in which point-to-
            multipoint is supported by the switch.
      40: Cannot support one or more requested label ranges.
      41: Cannot support disjoint label ranges.
      42: Specialized multipoint labels not supported.
      43: The transmit cell rate of this output port cannot be
            changed.
      44: Requested transmit cell rate out of range for this output
            port.
      60-79: Reserved for QoS failures.
      80: Switch does not support different QoS parameters for
            different branches within a multipoint connection.
      128-159: Reserved for the ARM extensions.

































Doria, et. al.      Expires October 2000        [Page 144]




Internet Draft     General Switch Management Protocol     April 2000

13.  Security Considerations

   The security of GSMP's TCP/IP control channel has been addressed
   in [15]. Any potential remaining security considerations are not
   addressed in the current revision of this draft.








































Doria, et. al.      Expires October 2000        [Page 145]




Internet Draft     General Switch Management Protocol     April 2000



Appendix A    Summary of Messages


  Message Name                      Message Number  Status


  Connection Management Messages
       Add Branch .......................16
          ATM Specific - VPC.............26
       Delete Tree.......................18
       Verify Tree.......................19          Obsoleted
       Delete All Input..................20
       Delete All Output.................21
       Delete Branches...................17
       Move Output Branch............... 22
           ATM Specific - VPC............27
       Move Input Branch.................23
           ATM Specifc  - VPC............28

  Port Management Messages
       Port Management...................32
       Label Range.......................33

  State and Statistics Messages
       Connection Activity...............48
       Port Statistics...................49
       Connection Statistics.............50
       QoS Class Statistics..............51        Reserved
       Report Connection State...........52

  Configuration Messages
       Switch Configuration..............64
       Port Configuration................65
       All Ports Configuration...........66
       Service Configuration.............67

  Reservation Messages
       Reservation Request.............. 70
       Delete Reservation................71
       Delete All Reservations...........72


  Event Messages





Doria, et. al.      Expires October 2000        [Page 146]




Internet Draft     General Switch Management Protocol     April 2000

       Port Up...........................80
       Port Down.........................81
       Invalid Label.....................82
       New Port..........................83
       Dead Port.........................84


  Abstract and Resource Model Extension Messages
      Reserved..........................200-249


  Adjacency Protocol.................10        Required


































Doria, et. al.      Expires October 2000        [Page 147]




Internet Draft     General Switch Management Protocol     April 2000



Appendix B     IANA Considerqations


     The TCP port for establishing GSMP connections is 6068

     This section still needs work  ed.



References

     [1]  "B-ISDN ATM Layer Specification," International
              Telecommunication Union, ITU-T Recommendation I.361, Mar.
              1993.

     [2]  "B-ISDN ATM Adaptation Layer (AAL) Specification,"
              International Telecommunication Union, ITU-T
              Recommendation I.363, Mar. 1993.

     [3]  IEEE/WG 1520, Adam, C; Lazar, A; Nanadikesan, M; "Proposal
              for Standaridizing the qGSMP protocol", P1520/TS/ATM-002,
              http://comet.columbia.edu/pin-atm/docs/P1520-TS-ATM-
              002R1.pdf, 19 Jan, 1999

     [4]  Sjostrand, H., "Definitions of Managed Objects for the
              General Switch Management Protocol (GSMP)," Internet-Draft
              draft-ietf-gsmp-mib-00, September 1999.

     [5]  Reynolds, J., and J. Postel, "Assigned Numbers," STD 2,
              RFC 1700, October 1994.

     [6]  Newman, P, Edwards, W., Hinden, R., Hoffman, E. Ching
              Liaw, F., Lyon, T. and Minshall, G., "Ipsilon's General
              Switch Management Protocol Specification," Version 1.1,
              RFC 1987, August 1996.

     [7]  Newman, P., Edwards, W., Hinden, R., Hoffman, E., Ching
              Liaw, F., Lyon, T. and Minshall, G., "Ipsilon's General
              Switch Management Protocol Specification," Version 2.0,
              RFC 2297, March 1998.

     [8]  ATM Forum Technical Committee, "Traffic Management
              Specification Version 4.1," af-tm-0121.000, 1999.

     [9]  J. Wroclawski, "Specification of the Controlled-Load
              Network Element Service," RFC2211, Sep 1997.



Doria, et. al.      Expires October 2000        [Page 148]




Internet Draft     General Switch Management Protocol     April 2000

     [10]  B. Jamoussi, et. al. "Constraint-Based LSP Setup using
              LDP," Internet Draft draft-ietf-mpls-cr-ldp-03.txt, Feb
              1999.

     [11]  ITU-T Recommendation I.233 Frame Mode Bearer Services
              1992.

     [12]  ITU-T Recommendation Q.933, Integrated Services Digital
              Network (ISDN) Digital Subscriber Signaling System No. 1
              (DSS 1) ¡ Signaling Specifications For Frame Mode Switched
              And Permanent Virtual Connection Control And Status
              Monitoring, 1995.

     [13]  ITU-T Recommendation Q.922, Integrated Services Digital
              Network (ISDN) Data Link Layer Specification For Frame
              Mode Bearer Services, 1992

     [14]  E. Rosen, et al, "MPLS Label Stack Encoding" Internet-
              Draft draft-ietf-mpls-label-encaps-07.txt, Sep 1999.

     [15]  T. Worster, et al, "GSMP Packet Encapsulations for ATM,
              Ethernet and TCP," Internet-Draft draft-ietf-gsmp-encaps-
              01, Jan 2000.

     [16]  A. Doria, et al, "GSMP Applicability" Internet Draft
              draft-ietf-gsmp-applicabiity-00, April 2000.

     [17]  IANAifType - MIB DEFINITIONS,
               ftp://ftp.isi.edu/mib/ianaiftype.mib, February 2000.

     [18]  ATM Forum Circuit Emulation Service Interoperability
              Specification, Version 2.0, af-vtoa-0078.000, January
              1997.

     [19]  L. Anderson et al, "LDP Specification", work in progress,
              October 1999.



Authors' Addresses

   Avri Doria
   Nokia
   5 Wayside Road
   Burlington MA 01803
   Phone: +1 781 993 4656
   avri.doria@nokia.com



Doria, et. al.      Expires October 2000        [Page 149]




Internet Draft     General Switch Management Protocol     April 2000

   Fiffi Hellstrand
   Nortel Networks AB
   S:t Eriksgatan 115 A
   P.O. Box 6701
   SE-113 85 Stockholm Sweden
   fiffi@nortelnetworks.com

   Kenneth Sundell
   Nortel Networks AB
   S:t Eriksgatan 115 A
   P.O. Box 6701
   SE-113 85 Stockholm Sweden
   ksundell@nortelnetworks.com

   Tom Worster
   Ennovate Networks
   60 Codman Hill Rd
   Boxboro MA 01719 USA
   Tel +1 978-263-2002
   fsb@thefsb.org



























Doria, et. al.      Expires October 2000        [Page 150]