home *** CD-ROM | disk | FTP | other *** search
/ Internet Core Protocols / Oreilly-InternetCoreProtocols.iso / RFCs / rfc2642.txt < prev    next >
Encoding:
Text File  |  1999-10-14  |  204.8 KB  |  5,324 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                            L. Kane
  8. Request for Comments: 2642                Cabletron Systems Incorporated
  9. Category: Informational                                      August 1999
  10.  
  11.  
  12.                  Cabletron's VLS Protocol Specification
  13.  
  14. Status of this Memo
  15.  
  16.    This memo provides information for the Internet community.  It does
  17.    not specify an Internet standard of any kind.  Distribution of this
  18.    memo is unlimited.
  19.  
  20. Copyright Notice
  21.  
  22.    Copyright (C) The Internet Society (1999).  All Rights Reserved.
  23.  
  24. Abstract
  25.  
  26.    The Virtual LAN Link State Protocol (VLSP) is part of the InterSwitch
  27.    Message Protocol (ISMP) which provides interswitch communication
  28.    between switches running Cabletron's SecureFast VLAN (SFVLAN)
  29.    product.  VLSP is used to determine and maintain a fully connected
  30.    mesh topology graph of the switch fabric.  Each switch maintains an
  31.    identical database describing the topology. Call-originating switches
  32.    use the topology database to determine the path over which to route a
  33.    call connection.
  34.  
  35.    VLSP provides support for equal-cost multipath routing, and
  36.    recalculates routes quickly in the face of topological changes,
  37.    utilizing a minimum of routing protocol traffic.
  38.  
  39. Table of Contents
  40.  
  41.     1. Introduction............................................  3
  42.        1.1 Acknowledgments.....................................  3
  43.        1.2 Data Conventions....................................  3
  44.        1.3 ISMP Overview.......................................  4
  45.     2. VLS Protocol Overview...................................  5
  46.        2.1 Definitions of Commonly Used Terms..................  6
  47.        2.2 Differences Between VLSP and OSPF...................  7
  48.            2.2.1 Operation at the Physical Layer...............  8
  49.            2.2.2 All Links Treated as Point-to-Point...........  8
  50.            2.2.3 Routing Path Information......................  9
  51.            2.2.4 Configurable Parameters.......................  9
  52.            2.2.5 Features Not supported........................  9
  53.        2.3 Functional Summary.................................. 10
  54.        2.4 Protocol Packets.................................... 11
  55.  
  56.  
  57.  
  58. Kane                         Informational                      [Page 1]
  59.  
  60. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  61.  
  62.  
  63.        2.5 Protocol Data Structures............................ 12
  64.        2.6 Basic Implementation Requirements................... 12
  65.        2.7 Organization of the Remainder of This Document...... 13
  66.     3. Interface Data Structure................................ 14
  67.        3.1 Interface States.................................... 16
  68.        3.2 Events Causing Interface State Changes.............. 18
  69.        3.3 Interface State Machine............................. 21
  70.     4. Neighbor Data Structure................................. 23
  71.        4.1 Neighbor States..................................... 25
  72.        4.2 Events Causing Neighbor State Changes............... 27
  73.        4.3 Neighbor State Machine.............................. 29
  74.     5. Area Data Structure..................................... 33
  75.        5.1 Adding and Deleting Link State Advertisements....... 34
  76.        5.2 Accessing Link State Advertisements................. 35
  77.        5.3 Best Path Lookup.................................... 35
  78.     6. Discovery Process....................................... 35
  79.        6.1 Neighbor Discovery.................................. 36
  80.        6.2 Bidirectional Communication......................... 37
  81.        6.3 Designated Switch................................... 38
  82.            6.3.1 Selecting the Designated Switch............... 39
  83.        6.4 Adjacencies......................................... 41
  84.     7. Synchronizing the Databases............................. 42
  85.        7.1 Link State Advertisements........................... 43
  86.            7.1.1 Determining Which
  87.                  Link State Advertisement Is Newer............. 44
  88.        7.2 Database Exchange Process........................... 44
  89.            7.2.1 Database Description Packets.................. 44
  90.            7.2.2 Negotiating the Master/Slave Relationship..... 45
  91.            7.2.3 Exchanging Database Description Packets....... 46
  92.        7.3 Updating the Database............................... 48
  93.        7.4 An Example.......................................... 49
  94.     8. Maintaining the Databases............................... 51
  95.        8.1 Originating Link State Advertisements............... 52
  96.            8.1.1 Switch Link Advertisements.................... 52
  97.            8.1.2 Network Link Advertisements................... 55
  98.        8.2 Distributing Link State Advertisements.............. 56
  99.            8.2.1 Overview...................................... 57
  100.            8.2.2 Processing an
  101.                  Incoming Link State Update Packet............. 58
  102.            8.2.3 Forwarding Link State Advertisements.......... 60
  103.            8.2.4 Installing Link
  104.                  State Advertisements in the Database.......... 62
  105.            8.2.5 Retransmitting Link State Advertisements...... 63
  106.            8.2.6 Acknowledging Link State Advertisements....... 64
  107.        8.3 Aging the Link State Database....................... 66
  108.            8.3.1 Premature Aging of Advertisements............. 66
  109.     9. Calculating the Best Paths.............................. 67
  110.    10. Protocol Packets........................................ 67
  111.  
  112.  
  113.  
  114. Kane                         Informational                      [Page 2]
  115.  
  116. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  117.  
  118.  
  119.        10.1 ISMP Packet Format................................. 68
  120.             10.1.1 Frame Header................................ 69
  121.             10.1.2 ISMP Packet Header.......................... 70
  122.             10.1.3 ISMP Message Body........................... 71
  123.        10.2 VLSP Packet Processing............................. 71
  124.        10.3 Network Layer Address Information.................. 72
  125.        10.4 VLSP Packet Header................................. 73
  126.        10.5 Options Field...................................... 75
  127.        10.6 Packet Formats..................................... 76
  128.             10.6.1 Hello Packets............................... 76
  129.             10.6.2 Database Description Packets................ 78
  130.             10.6.3 Link State Request Packets.................. 80
  131.             10.6.4 Link State Update Packets................... 82
  132.             10.6.5 Link State Acknowledgment Packets........... 83
  133.    11. Link State Advertisement Formats........................ 84
  134.        11.1 Link State Advertisement Headers................... 84
  135.        11.2 Switch Link Advertisements......................... 86
  136.        11.3 Network Link Advertisements........................ 89
  137.    12. Protocol Parameters..................................... 89
  138.        12.1 Architectural Constants............................ 90
  139.        12.2 Configurable Parameters............................ 91
  140.    13. End Notes............................................... 93
  141.    14. Security Considerations................................. 94
  142.    15. References.............................................. 94
  143.    16. Author's Address........................................ 94
  144.    17. Full Copyright Statement................................ 95
  145.  
  146. 1. Introduction
  147.  
  148.    This memo is being distributed to members of the Internet community
  149.    in order to solicit reactions to the proposals contained herein.
  150.    While the specification discussed here may not be directly relevant
  151.    to the research problems of the Internet, it may be of interest to
  152.    researchers and implementers.
  153.  
  154. 1.1 Acknowledgments
  155.  
  156.    VLSP is derived from the OSPF link-state routing protocol described
  157.    in [RFC2328], written by John Moy, formerly of Proteon, Inc.,
  158.    Westborough, Massachusetts.  Much of the current memo has been drawn
  159.    from [RFC2328].  Therefore, this author wishes to acknowledge the
  160.    contribution Mr. Moy has (unknowingly) made to this document.
  161.  
  162. 1.2 Data Conventions
  163.  
  164.    The methods used in this memo to describe and picture data adhere to
  165.    the standards of Internet Protocol documentation [RFC1700].  In
  166.    particular:
  167.  
  168.  
  169.  
  170. Kane                         Informational                      [Page 3]
  171.  
  172. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  173.  
  174.  
  175.       The convention in the documentation of Internet Protocols is to
  176.       express numbers in decimal and to picture data in "big-endian"
  177.       order.  That is, fields are described left to right, with the most
  178.       significant octet on the left and the least significant octet on
  179.       the right.  The order of transmission of the header and data
  180.       described in this document is resolved to the octet level.
  181.       Whenever a diagram shows a group of octets, the order of
  182.       transmission of those octets is the normal order in which they are
  183.       read in English.
  184.  
  185.       Whenever an octet represents a numeric quantity the left most bit
  186.       in the diagram is the high order or most significant bit.  That
  187.       is, the bit labeled 0 is the most significant bit.
  188.  
  189.       Similarly, whenever a multi-octet field represents a numeric
  190.       quantity the left most bit of the whole field is the most
  191.       significant bit.  When a multi-octet quantity is transmitted the
  192.       most significant octet is transmitted first.
  193.  
  194. 1.3 ISMP Overview
  195.  
  196.    The InterSwitch Message Protocol (ISMP) provides a consistent method
  197.    of encapsulating and transmitting control messages exchanged between
  198.    switches running Cabletron's SecureFast VLAN (SFVLAN) product, as
  199.    described in [IDsfvlan].  ISMP provides the following services:
  200.  
  201.    o  Topology services.  Each switch maintains a distributed topology
  202.       of the switch fabric by exchanging the following interswitch
  203.       control messages with other switches:
  204.  
  205.    o  Interswitch Keepalive messages are sent by each switch to announce
  206.       its existence to its neighboring switches and to establish the
  207.       topology of the switch fabric.  (Interswitch Keepalive messages
  208.       are exchanged in accordance with Cabletron's VlanHello protocol,
  209.       described in [IDhello].)
  210.  
  211.    o  Interswitch Spanning Tree BPDU messages and Interswitch Remote
  212.       Blocking messages are used to determine and maintain a loop-free
  213.       flood path between all network switches in the fabric.  This flood
  214.  
  215.       path is used for all undirected interswitch messages -- that is,
  216.       messages that are (potentially) sent to all switches in the switch
  217.       fabric.
  218.  
  219.    o  Interswitch Link State messages (VLS protocol) are used to
  220.       determine and maintain a fully connected mesh topology graph of
  221.       the switch fabric.  Call-originating switches use the topology
  222.       graph to determine the path over which to route a call connection.
  223.  
  224.  
  225.  
  226. Kane                         Informational                      [Page 4]
  227.  
  228. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  229.  
  230.  
  231.    o  Address resolution services.  Interswitch Resolve messages are
  232.       used to resolve a packet destination address when the packet
  233.       source and destination pair does not match a known connection.
  234.       Interswitch New User messages are used to provide end-station
  235.       address mobility between switches.
  236.  
  237.    o  Tag-based flooding.  A tag-based broadcast method is used to
  238.       restrict the broadcast of unresolved packets to only those ports
  239.       within the fabric that belong to the same VLAN as the source.
  240.  
  241.    o  Call tapping services.  Interswitch Tap messages are used to
  242.       monitor traffic moving between two end stations.  Traffic can be
  243.       monitored in one or both directions along the connection path.
  244.  
  245.    Note:  Previous versions of VLSP treated all links as if they were
  246.    broadcast (multi-access).  Thus, if VLSP determines that a neighbor
  247.    switch is running an older version of the protocol software (see
  248.    Section 6.1), it will change the interface type to broadcast and
  249.    begin exchanging Hello packets with the single neighbor switch.
  250.  
  251. 2. VLS Protocol Overview
  252.  
  253.    VLSP is a dynamic routing protocol.  It quickly detects topological
  254.    changes in the switch fabric (such as, switch interface failures) and
  255.    calculates new loop-free routes after a period of convergence.  This
  256.    period of convergence is short and involves a minimum of routing
  257.    traffic.
  258.  
  259.    All switches in the fabric run the same algorithm and maintain
  260.    identical databases describing the switch fabric topology.  This
  261.    database contains each switch's local state, including its usable
  262.    interfaces and reachable neighbors.  Each switch distributes its
  263.    local state throughout the switch fabric by flooding.  From the
  264.    topological database, each switch constructs a set of best path trees
  265.    (using itself as the root) that specify routes to all other switches
  266.    in the fabric.
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282. Kane                         Informational                      [Page 5]
  283.  
  284. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  285.  
  286.  
  287. 2.1 Definitions of Commonly Used Terms
  288.  
  289.    This section contains a collection of definitions for terms that have
  290.    a specific meaning to the protocol and that are used throughout the
  291.    text.
  292.  
  293.    Switch ID
  294.  
  295.       A 10-octet value that uniquely identifies the switch within the
  296.       switch fabric.  The value consists of the 6-octet base MAC address
  297.       of the switch, followed by 4 octets of zeroes.
  298.  
  299.    Network link
  300.  
  301.       The physical connection between two switches.  A link is
  302.       associated with a switch interface.
  303.  
  304.       There are two physical types of network links supported by VLSP:
  305.  
  306.       o  Point-to-point links that join a single pair of switches.  A
  307.          serial line is an example of a point-to-point network link.
  308.  
  309.       o  Multi-access broadcast links that support the attachment of
  310.          multiple switches, along with the capability to address a
  311.          single message to all the attached switches.  An attached
  312.          ethernet is an example of a multi-access broadcast network
  313.          link.
  314.  
  315.          A single topology can contain both types of links.  At startup,
  316.          all links are assumed to be point-to-point.  A link is
  317.          determined to be multi-access when more than one neighboring
  318.          switch is discovered on the link.
  319.  
  320.    Interface
  321.  
  322.       The port over which a switch accesses one of its links.
  323.       Interfaces are identified by their interface ID, a 10-octet value
  324.       consisting of the 6-octet base MAC address of the switch, followed
  325.       by the 4-octet local port number of the interface.
  326.  
  327.    Neighboring switches
  328.  
  329.       Two switches attached to a common link.
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338. Kane                         Informational                      [Page 6]
  339.  
  340. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  341.  
  342.  
  343.    Adjacency
  344.  
  345.       A relationship formed between selected neighboring switches for
  346.       the purpose of exchanging routing information.  Not every pair of
  347.       neighboring switches become adjacent.
  348.  
  349.    Link state advertisement
  350.  
  351.       Describes the local state of a switch or a link.  Each link state
  352.       advertisement is flooded throughout the switch fabric.  The
  353.       collected link state advertisements of all switches and links form
  354.       the protocol's topological database.
  355.  
  356.    Designated switch
  357.  
  358.       Each multi-access network link has a designated switch.  The
  359.       designated switch generates a link state advertisement for the
  360.       link and has other special responsibilities in the running of the
  361.       protocol.
  362.  
  363.       The use of a designated switch permits a reduction in the number
  364.       of adjacencies required on multi-access links.  This in turn
  365.       reduces the amount of routing protocol traffic and the size of the
  366.       topological database.
  367.  
  368.       The designated switch is selected during the discovery process.  A
  369.       designated switch is not selected for a point-to-point network
  370.       link.
  371.  
  372.    Backup designated switch
  373.  
  374.       Each multi-access network link has a backup designated switch.
  375.       The backup designated switch maintains adjacencies with the same
  376.       switches on the link as the designated switch.  This optimizes the
  377.       failover time when the backup designated switch must take over for
  378.       the (failed) designated switch.
  379.  
  380.       The backup designated switch is selected during the Discovery
  381.       process.  A backup designated switch is not selected for a point-
  382.       to-point network link.
  383.  
  384. 2.2 Differences Between VLSP and OSPF
  385.  
  386.    The VLS protocol is derived from the OSPF link-state routing protocol
  387.    described in [RFC2328].
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394. Kane                         Informational                      [Page 7]
  395.  
  396. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  397.  
  398.  
  399. 2.2.1 Operation at the Physical Layer
  400.  
  401.    The primary differences between the VLS and OSPF protocols stem from
  402.    the fact that OSPF runs over the IP layer, while VLSP runs at the
  403.    physical MAC layer.  This difference has the following repercussions:
  404.  
  405.    o  VLSP does not support features (such as fragmentation) that are
  406.       typically provided by network layer service providers.
  407.  
  408.    o  Due to the unrelated nature of MAC address assignments, VLSP
  409.       provides no summarization of the address space (such as, classical
  410.       IP subnet information) or level 2 routing (such as,
  411.  
  412.       IS-IS Phase V DECnet).  Thus, VLSP does not support grouping
  413.       switches into areas.  All switches exist in a single area.  Since
  414.       a single domain exists within any switch fabric, there is no need
  415.       for VLSP to provide interdomain reachability.
  416.  
  417.    o  As mentioned in Section 10.1.1, ISMP uses a single well-known
  418.       multicast address for all packets.  However, parts of the VLS
  419.       protocol (as derived from OSPF) are dependent on certain network
  420.       layer addresses -- in particular, the AllSPFSwitches and
  421.       AllDSwitches multicast addresses that drive the distribution of
  422.       link state advertisements throughout the switch fabric.  In order
  423.       to facilitate the implementation of the protocol at the physical
  424.       MAC layer, network layer address information is encapsulated in
  425.       the protocol packets (see Section 10.3).  This information is
  426.       unbundled and packets are then processed as if they had been sent
  427.       or received on that multicast address.
  428.  
  429. 2.2.2 All Links Treated as Point-to-Point
  430.  
  431.    When the switch first comes on line, VLSP assumes all network links
  432.    are point-to-point and no more than one neighboring switch will be
  433.    discovered on any one port.  Therefore, at startup, VLSP does not
  434.    send its own Hello packets over its network ports, but instead,
  435.    relies on the VlanHello protocol [IDhello] for the discovery of its
  436.    neighbor switches.  If a second neighbor is detected on a link, the
  437.    link is then deemed multi-access and the interface type is changed to
  438.    broadcast.  At that point, VLSP exchanges its own Hello packets with
  439.    the switches on the link in order to select a designated switch and
  440.    designated backup switch for the link.
  441.  
  442.    This method eliminates unnecessary duplication of message traffic and
  443.    processing, thereby increasing the overall efficiency of the switch
  444.    fabric.
  445.  
  446.  
  447.  
  448.  
  449.  
  450. Kane                         Informational                      [Page 8]
  451.  
  452. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  453.  
  454.  
  455.    Note:  Previous versions of VLSP treated all links as if they were
  456.    broadcast (multi-access).  Thus, if VLSP determines that a neighbor
  457.    switch is running an older version of the protocol software (see
  458.    Section 6.1), it will change the interface type to broadcast and
  459.    begin exchanging Hello packets with the single neighbor switch.
  460.  
  461. 2.2.3 Routing Path Information
  462.  
  463.    Instead of providing the next hop to a destination, VLSP calculates
  464.    and maintains complete end-to-end path information. On request, a
  465.    list of individual port identifiers is generated describing a
  466.    complete path from the source switch to the destination switch.  If
  467.    multiple equal-cost routes exist to a destination switch, up to three
  468.    paths are calculated and returned.
  469.  
  470. 2.2.4 Configurable Parameters
  471.  
  472.    OSPF supports (and requires) configurable parameters.  In fact, even
  473.    the default OSPF configuration requires that IP address assignments
  474.    be specified.  On the other hand, no configuration information is
  475.    ever required for the VLS protocol.  Switches are uniquely identified
  476.    by their base MAC addresses and ports are uniquely identified by the
  477.    base MAC address of the switch and a port number.
  478.  
  479.    While a developer is free to implement configurable parameters for
  480.    the VLS protocol, the current version of VLSP supports configurable
  481.    path metrics only.  Note that this has the following repercussions:
  482.  
  483.    o  All switches are assigned a switch priority of 1.  This forces the
  484.       selection of the designated switch to be based solely on base MAC
  485.       address.
  486.  
  487.    o  Authentication is not supported.
  488.  
  489. 2.2.5 Features Not supported
  490.  
  491.    In addition to those features mentioned in the previous sections, the
  492.    following OSPF features are not supported by the current version of
  493.    VLSP:
  494.  
  495.    o  Periodic refresh of link state advertisements.  (This optimizes
  496.       performance by eliminating unnecessary traffic between the
  497.       switches.)
  498.  
  499.    o  Routing based on non-zero type of service (TOS).
  500.  
  501.    o  Use of external routing information for destinations outside the
  502.       switch fabric.
  503.  
  504.  
  505.  
  506. Kane                         Informational                      [Page 9]
  507.  
  508. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  509.  
  510.  
  511. 2.3 Functional Summary
  512.  
  513.    There are essentially four operational stages of the VLS protocol.
  514.  
  515.    o  Discovery Process The discovery process involves two steps:
  516.  
  517.       o  Neighboring switches are detected by the VlanHello protocol
  518.          [IDhello] which then notifies VLSP of the neighbor.
  519.  
  520.       o  If more than one neighbor switch is detected on a single port,
  521.          the link is determined to be multi-access.  VLSP then sends its
  522.          own Hello packets over the link in order to discover the full
  523.          set of neighbors on the link and select a designated switch and
  524.          designated backup switch for the link.  Note that this
  525.          selection process is unnecessary on point-to-point links.
  526.  
  527.       The discovery process is described in more detail in Section 6.
  528.  
  529.    o  Synchronizing the Databases
  530.  
  531.       Adjacencies are used to simplify and speed up the process of
  532.       synchronizing the topological database (also known as the link
  533.       state database) maintained by each switch in the fabric.  Each
  534.       switch is only required to synchronize its database with those
  535.       neighbors to which it is adjacent. This reduces the amount of
  536.       routing protocol traffic across the fabric, particularly for
  537.       multi-access links with multiple switches.
  538.  
  539.       The process of synchronizing the databases is described in more
  540.       detail in Section 7.
  541.  
  542.    o  Maintaining the Databases
  543.  
  544.       Each switch advertises its state (also known as its link state)
  545.       any time its link state changes.  Link state advertisements are
  546.       distributed throughout the switch fabric using a reliable flooding
  547.       algorithm that ensures that all switches in the fabric are
  548.       notified of any link state changes.
  549.  
  550.       The process of maintaining the databases is described in more
  551.       detail in Section 8.
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562. Kane                         Informational                     [Page 10]
  563.  
  564. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  565.  
  566.  
  567.    o  Calculating the Best Paths
  568.  
  569.       The link state database consists of the collection of link state
  570.       advertisements received from each switch.  Each switch uses its
  571.       link state database to calculate a set of best paths, using itself
  572.       as root, to all other switches in the fabric.
  573.  
  574.       The process of recalculating the set of best paths is described in
  575.       more detail in Section 9.
  576.  
  577. 2.4 Protocol Packets
  578.  
  579.    In addition to the frame header and the ISMP packet header described
  580.    in Section 10.1, all VLS protocol packets share a common protocol
  581.    header, described in Section 10.4.
  582.  
  583.    The VLSP packet types are listed below in Table 1.  Their formats are
  584.    described in Section 10.6.
  585.  
  586.       Type   Packet Name            Protocol Function
  587.  
  588.       1      Hello                  Select DS and Backup DS
  589.       2      Database Description   Summarize database contents
  590.       3      Link State Request     Database download
  591.       4      Link State Update      Database update
  592.       5      Link State Ack         Flooding acknowledgment
  593.  
  594.                   Table 1: VLSP Packet Types
  595.  
  596.    The Hello packets are used to select the designated switch and the
  597.    backup designated switch on multi-access links.  The Database
  598.    Description and Link State Request packets are used to form
  599.    adjacencies.  Link State Update and Link State Acknowledgment packets
  600.    are used to update the topological database.
  601.  
  602.    Each Link State Update packet carries a set of link state
  603.    advertisements.  A single Link State Update packet may contain the
  604.    link state advertisements of several switches.  There are two
  605.    different types of link state advertisement, as shown below in Table
  606.    2.
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618. Kane                         Informational                     [Page 11]
  619.  
  620. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  621.  
  622.  
  623.          LS     Advertisement    Advertisement Description
  624.          Type   Name
  625.  
  626.          1      Switch link      Originated by all switches. This
  627.                 advertisements   advertisement describes the collected
  628.                                  states of the switch's interfaces.
  629.  
  630.          2      Network link     Originated by the designated switch.
  631.                 advertisements   This advertisement contains the list
  632.                                  of switches connected to the network
  633.                                  link.
  634.  
  635.                   Table 2: VLSP Link State Advertisements
  636.  
  637. 2.5 Protocol Data Structures
  638.  
  639.    The VLS protocol is described in this specification in terms of its
  640.    operation on various protocol data structures.  Table 3 lists the
  641.    primary VLSP data structures, along with the section in which they
  642.    are described in detail.
  643.  
  644.          Structure Name                        Description
  645.  
  646.          Interface Data Structure              Section 3
  647.          Neighbor Data Structure               Section 4
  648.          Area Data Structure                   Section 5
  649.  
  650.                      Table 3: VLSP Data Structures
  651.  
  652. 2.6 Basic Implementation Requirements
  653.  
  654.    An implementation of the VLS protocol requires the following pieces
  655.    of system support:
  656.  
  657.    Timers
  658.  
  659.       Two types of timer are required.  The first type, known as a one-
  660.       shot timer, expires once and triggers an event.  The second type,
  661.       known as an interval timer, expires at preset intervals.  Interval
  662.       timers are used to trigger events at periodic intervals.  The
  663.       granularity of both types of timers is one second.
  664.  
  665.       Interval timers should be implemented in such a way as to avoid
  666.       drift.  In some switch implementations, packet processing can
  667.       affect timer execution.  For example, on a multi-access link with
  668.       multiple switches, regular broadcasts can lead to undesirable
  669.       synchronization of routing packets unless the interval timers have
  670.       been implemented to avoid drift.  If it is not possible to
  671.  
  672.  
  673.  
  674. Kane                         Informational                     [Page 12]
  675.  
  676. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  677.  
  678.  
  679.       implement drift-free timers, small random amounts of time should
  680.       be added to or subtracted from the timer interval at each firing.
  681.  
  682.    List manipulation primitives
  683.  
  684.       Much of the functionality of VLSP is described here in terms of
  685.       its operation on lists of link state advertisements.  Any
  686.       particular advertisement may be on many such lists. Implementation
  687.       of VLSP must be able to manipulate these lists, adding and
  688.       deleting constituent advertisements as necessary.
  689.  
  690.    Tasking support
  691.  
  692.       Certain procedures described in this specification invoke other
  693.       procedures.  At times, these other procedures should be executed
  694.       in-line -- that is, before the current procedure has finished.
  695.       This is indicated in the text by instructions to "execute" a
  696.       procedure.  At other times, the other procedures are to be
  697.       executed only when the current procedure has finished.  This is
  698.       indicated by instructions to "schedule" a task.  Implementation of
  699.       VLSP must provide these two types of tasking support.
  700.  
  701. 2.7 Organization of the Remainder of This Document
  702.  
  703.    The remainder of this document is organized as follows:
  704.  
  705.    o  Section 3 through Section 5 describe the primary data structures
  706.       used by the protocol.  Note that this specification is presented
  707.       in terms of these data structures in order to make explanations
  708.       more precise.  Implementations of the protocol must support the
  709.       functionality described, but need not use the exact data
  710.       structures that appear in this specification.
  711.  
  712.    o  Section 6 through Section 9 describe the four operational stages
  713.       of the protocol:  the discovery process, synchronizing the
  714.       databases, maintaining the databases, and calculating the set of
  715.       best paths.
  716.  
  717.    o  Section 10 describes the processing of VLSP packets and presents
  718.       detailed descriptions of their formats.
  719.  
  720.    o  Section 11 presents detailed descriptions of link state
  721.       advertisements.
  722.  
  723.    o  Section 12 summarizes the protocol parameters.
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. Kane                         Informational                     [Page 13]
  731.  
  732. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  733.  
  734.  
  735. 3. Interface Data Structure
  736.  
  737.    The port over which a switch accesses a network link is known as the
  738.    link interface.  Each switch maintains a separate interface data
  739.    structure for each network link.
  740.  
  741.    The following data items are associated with each interface:
  742.  
  743.    Type
  744.  
  745.       The type of network to which the interface is attached -- point-
  746.       to-point or broadcast (multi-access).  This data item is
  747.       initialized to point-to-point when the interface becomes
  748.       operational.  If a second neighbor is detected on the link after
  749.       the first neighbor has been discovered, the link interface type is
  750.       changed to broadcast.  The type remains as broadcast until the
  751.       interface is declared down, at which time the type reverts to
  752.       point-to-point.
  753.  
  754.    Note:  Previous versions of VLSP treated all links as if they were
  755.    multi-access.  Thus, if VLSP determines that a neighbor switch is
  756.    running an older version of the protocol software (see Section 6.1),
  757.    it will change the interface type to broadcast.
  758.  
  759.    State
  760.  
  761.       The functional level of the interface.  The state of the interface
  762.       is included in all switch link advertisements generated by the
  763.       switch, and is also used to determine whether full adjacencies are
  764.       allowed on the interface.  See Section 3.1 for a complete
  765.       description of interface states.
  766.  
  767.    Interface identifier
  768.  
  769.       A 10-octet value that uniquely identifies the interface. This
  770.       value consists of the 6-octet base MAC address of the neighbor
  771.       switch, followed by the 4-octet local port number of the
  772.       interface.
  773.  
  774.    Area ID
  775.  
  776.       A 4-octet value identifying the area.  Since VLSP does not support
  777.       multiple areas, the value here is always zero.
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786. Kane                         Informational                     [Page 14]
  787.  
  788. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  789.  
  790.  
  791.    HelloInterval
  792.  
  793.       The interval, in seconds, at which the switch sends VLSP Hello
  794.       packets over the interface.  This parameter is not used on point-
  795.       to-point links.
  796.  
  797.    SwitchDeadInterval
  798.  
  799.       The length of time, in seconds, that neighboring switches will
  800.       wait before declaring the local switch dNeighboring switches
  801.  
  802.       A list of the neighboring switches attached to this network link.
  803.       This list is created during the discovery process. Adjacencies are
  804.       formed to one or more of these neighbors. The set of adjacent
  805.       neighbors can be determined by examining the states of the
  806.       neighboring switches as shown in their link state advertisements.
  807.  
  808.    Designated switch
  809.  
  810.       The designated switch selected for the multi-access network link.
  811.       (A designated switch is not selected for a point-to-point link.)
  812.       This data item is initialized to zero when the switch comes on-
  813.       line, indicating that no designated switch has been chosen for the
  814.       link.
  815.  
  816.    Backup designated switch
  817.  
  818.       The backup designated switch selected for the multi-access network
  819.       link.  (A backup designated switch is not selected for a point-
  820.       to-point link.)  This data item is initialized to zero when the
  821.       switch comes on-line, indicating that no backup designated switch
  822.       has been chosen for the link.
  823.  
  824.    Interface output cost(s)
  825.  
  826.       The cost of sending a packet over the interface.  The link cost is
  827.       expressed in the link state metric and must be greater than zero.
  828.  
  829.    RxmtInterval
  830.  
  831.       The number of seconds between link state advertisement
  832.       retransmissions, for adjacencies belonging to this interface. This
  833.       value is also used to time the retransmission of Database
  834.       Description and Link State Request packets.
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842. Kane                         Informational                     [Page 15]
  843.  
  844. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  845.  
  846.  
  847. 3.1 Interface States
  848.  
  849.    This section describes the various states of a switch interface. The
  850.    states are listed in order of progressing functionality. For example,
  851.    the inoperative state is listed first, followed by a list of the
  852.    intermediate states through which the interface passes before
  853.    attaining the final, fully functional state.  The specification makes
  854.    use of this ordering by references such as "those interfaces in state
  855.    greater than X".
  856.  
  857.    Figure 1 represents the interface state machine, showing the
  858.    progression of interface state changes.  The arrows on the graph
  859.    represent the events causing each state change.  These events are
  860.    described in Section 3.2.  The interface state machine is described
  861.    in detail in Section 3.3.
  862.  
  863.    Down
  864.  
  865.       This is the initial state of the interface.  In this state, the
  866.       interface is unusable, and no protocol traffic is sent or received
  867.       on the interface.  In this state, interface parameters are set to
  868.       their initial values, all interface timers are disabled, and no
  869.       adjacencies are associated with the interface.
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898. Kane                         Informational                     [Page 16]
  899.  
  900. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  901.  
  902.  
  903.        +-------+
  904.        |  any  |  Interface   +----------+  Unloop Ind  +----------+
  905.        | state | -----------> |   Down   | <----------- | Loopback |
  906.        +-------+    Down      +----------+              +----------+
  907.                                    |                         ^
  908.                                    | Interface Up            |
  909.            +-------+  [pt-to-pt]   |                         |
  910.            | Point |<------------type?              Loop Ind |
  911.            |  to   |               |                         |
  912.            | Point |               | [broadcast]             |
  913.            +-------+               V                     +-------+
  914.                              +-----------+               |  any  |
  915.                              |  Waiting  |               | state |
  916.                              +-----------+               +-------+
  917.                                    |
  918.                        Backup Seen |
  919.                                    | Wait Timer
  920.                                    |
  921.                                    |
  922.       +----------+    Neighbor     V     Neighbor    +----------+
  923.       |    DS    | <------------> [ ] <------------> | DS Other |
  924.       +----------+     Change      ^      Change     +----------+
  925.                                    |
  926.                                    |
  927.                    Neighbor Change |
  928.                                    |
  929.                                    V
  930.                               +----------+
  931.                               |  Backup  |
  932.                               +----------+
  933.  
  934.                    Figure 1:  Interface State Machine
  935.  
  936.  
  937.    Loopback
  938.  
  939.       In this state, the switch interface is looped back, either in
  940.       hardware or in software.  The interface is unavailable for regular
  941.       data traffic.
  942.  
  943.    Point-to-Point
  944.  
  945.       In this state, the interface is operational and is connected to a
  946.       physical point-to-point link.  On entering this state, the switch
  947.       attempts to form an adjacency with the neighboring switch.
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954. Kane                         Informational                     [Page 17]
  955.  
  956. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  957.  
  958.  
  959.    Waiting
  960.  
  961.       In this state, the switch is attempting to identify the backup
  962.       designated switch for the link by monitoring the Hello packets it
  963.       receives.  The switch does not attempt to select a designated
  964.       switch or a backup designated switch until it changes out of this
  965.       state, thereby preventing unnecessary changes of the designated
  966.       switch and its backup.
  967.  
  968.    DS Other
  969.  
  970.       In this state, the interface is operational and is connected to a
  971.       multi-access broadcast link on which other switches have been
  972.       selected as the designated switch and the backup designated
  973.       switch.   On entering this state, the switch attempts to form
  974.       adjacencies with both the designated switch and the backup
  975.       designated switch.
  976.  
  977.    Backup
  978.  
  979.       In this state, the switch itself is the backup designated switch
  980.       on the attached multi-access broadcast link.  It will be promoted
  981.       to designated switch if the current designated switch fails.  The
  982.       switch establishes adjacencies with all other switches attached to
  983.       the link.  (See Section 6.3 for more information on the functions
  984.       performed by the backup designated switch.)
  985.  
  986.    DS
  987.  
  988.       In this state, this switch itself is the designated switch on the
  989.       attached multi-access broadcast link.  The switch establishes
  990.       adjacencies with all other switches attached to the link.  The
  991.       switch is responsible for originating network link advertisements
  992.       for the link, containing link information for all switches
  993.       attached to the link, including the designated switch itself.
  994.       (See Section 6.3 for more information on the functions performed
  995.       by the designated switch.)
  996.  
  997. 3.2 Events Causing Interface State Changes
  998.  
  999.    The state of an interface changes due to an interface event.  This
  1000.    section describes these events.
  1001.  
  1002.    Interface events are shown as arrows in Figure 1, the graphic
  1003.    representation of the interface state machine.  For more information
  1004.    on the interface state machine, see Section 3.3.
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010. Kane                         Informational                     [Page 18]
  1011.  
  1012. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1013.  
  1014.  
  1015.    Interface Up
  1016.  
  1017.       This event is generated by the VlanHello protocol [IDhello] when
  1018.       it discovers a neighbor switch on the interface.  The interface is
  1019.       now operational.  This event causes the interface to change out of
  1020.       the Down state.  The state it enters is determined by the
  1021.       interface type.  If the interface type is broadcast (multi-
  1022.       access), this event also causes the switch to begin sending
  1023.       periodic Hello packets out over the interface.
  1024.  
  1025.    Wait Timer
  1026.  
  1027.       This event is generated when the one-shot Wait timer expires,
  1028.       triggering the end of the required waiting period before the
  1029.       switch can begin the process of selecting a designated switch and
  1030.       a backup designated switch on a multi-access link.
  1031.  
  1032.    Backup Seen
  1033.  
  1034.       This event is generated when the switch has detected the existence
  1035.       or non-existence of a backup designated switch for the link, as
  1036.       determined in one of the following two ways:
  1037.  
  1038.       o  A Hello packet has been received from a neighbor that claims to
  1039.          be the backup designated switch.
  1040.  
  1041.       o  A Hello packet has been received from a neighbor that claims to
  1042.          be the designated switch.  In addition, the packet indicated
  1043.          that there is no backup.
  1044.  
  1045.    In either case, the interface must have bidirectional communication
  1046.    with its neighbor -- that is, the local switch must be listed in the
  1047.    neighbor's Hello packet.
  1048.  
  1049.    This event signals the end of the Waiting state.
  1050.  
  1051.    Neighbor change
  1052.  
  1053.       This event is generated when there has been one of the following
  1054.       changes in the set of bidirectional neighbors associated with the
  1055.       interface.  (See Section 4.1 for information on neighbor states.)
  1056.  
  1057.       o  Bidirectional communication has been established with a
  1058.          neighbor -- the state of the neighbor has changed to 2-Way or
  1059.          higher.
  1060.  
  1061.       o  Bidirectional communication with a neighbor has been lost --
  1062.          the state of the neighbor has changed to Init or lower.
  1063.  
  1064.  
  1065.  
  1066. Kane                         Informational                     [Page 19]
  1067.  
  1068. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1069.  
  1070.  
  1071.       o  A bidirectional neighbor has just declared itself to be either
  1072.          the designated switch or the backup designated switch, as
  1073.          detected by examination of that neighbor's Hello packets.
  1074.  
  1075.       o  A bidirectional neighbor is no longer declaring itself to be
  1076.          either the designated switch or the backup designated switch,
  1077.          as detected by examination of that neighbor's Hello packets.
  1078.  
  1079.       o  The advertised switch priority of a bidirectional neighbor has
  1080.          changed, as detected by examination of that neighbor's Hello
  1081.          packets.
  1082.  
  1083.       When this event occurs, the designated switch and the backup
  1084.       designated switch must be reselected.
  1085.  
  1086.       Loop Ind
  1087.  
  1088.          This event is generated when an interface enters the Loopback
  1089.          state.  This event can be generated by either the network
  1090.          management service or by the lower-level protocols.
  1091.  
  1092.       Unloop Ind
  1093.  
  1094.          This event is generated when an interface leaves the Loopback
  1095.          state.  This event can be generated by either the network
  1096.          management service or by the lower-level protocols.
  1097.  
  1098.       Interface Down
  1099.  
  1100.          This event is generated under the following two circumstances:
  1101.  
  1102.          o  The VlanHello [IDhello] protocol has determined that the
  1103.             interface is no longer functional.
  1104.  
  1105.          o  The neighbor state machine has detected a second neighboring
  1106.             switch on a link presumed to be of type point-to-point. In
  1107.             addition to generating the Interface Down event, the
  1108.             neighbor state machine changes the interface type to
  1109.             broadcast.
  1110.  
  1111.       In both instances, this event forces the interface state to Down.
  1112.       However, when the event is generated by the neighbor state
  1113.       machine, it is immediately followed by an Interface Up event.
  1114.       (See Section 4.3.)
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122. Kane                         Informational                     [Page 20]
  1123.  
  1124. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1125.  
  1126.  
  1127. 3.3 Interface State Machine
  1128.  
  1129.    This section presents a detailed description of the interface state
  1130.    machine.
  1131.  
  1132.    Interface states (see Section 3.1) change as the result of various
  1133.    events (see Section 3.2).  However, the effect of each event can
  1134.    vary, depending on the current state of the interface. For this
  1135.    reason, the state machine described in this section is organized
  1136.    according to the current interface state and the occurring event.
  1137.    For each state/event pair, the new interface state is listed, along
  1138.    with a description of the required processing.
  1139.  
  1140.    Note that when the state of an interface changes, it may be necessary
  1141.    to originate a new switch link advertisement.  See Section 8.1 for
  1142.    more information.
  1143.  
  1144.    Some of the processing described here includes generating events for
  1145.    the neighbor state machine.  For example, when an interface becomes
  1146.    inoperative, all neighbor connections associated with the interface
  1147.    must be destroyed.  For more information on the neighbor state
  1148.    machine, see Section 4.3.
  1149.  
  1150.    State(s):  Down
  1151.    Event:  Interface Up
  1152.    New state:  Depends on action routine
  1153.    Action:
  1154.       If the interface is a point-to-point link, set the interface state
  1155.       to Point-to-Point.  Otherwise, start the Hello interval timer,
  1156.       enabling the periodic sending of Hello packets over the interface.
  1157.       If the switch is not eligible to become the designated switch,
  1158.       change the interface state to DS Other. Otherwise, set the
  1159.       interface state to Waiting and start the one-shot wait timer.
  1160.       Create a new neighbor data structure for the neighbor switch,
  1161.       initialize all neighbor parameters and set the stateof the
  1162.       neighbor to Down.
  1163.  
  1164.    State(s):  Waiting
  1165.    Event:  Backup Seen
  1166.    New state:  Depends on action routine
  1167.    Action:
  1168.       Select the designated switch and backup designated switch for the
  1169.       attached link, as described in Section 6.3.1.  As a result of this
  1170.       selection, set the new state of the interface to either DS Other,
  1171.       Backup or DS.
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178. Kane                         Informational                     [Page 21]
  1179.  
  1180. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1181.  
  1182.  
  1183.    State(s):  Waiting
  1184.    Event:  Wait Timer
  1185.    New state:  Depends on action routine
  1186.    Action:
  1187.       Select the designated switch and backup designated switch for the
  1188.       attached link, as described in Section 6.3.1.  As a result of this
  1189.       selection, set the new state of the interface to either DS Other,
  1190.       Backup or DS.
  1191.  
  1192.    State(s):  DS Other, Backup or DS
  1193.    Event:  Neighbor Change
  1194.    New state:  Depends on action routine
  1195.    Action:
  1196.       Reselect the designated switch and backup designated switch for
  1197.       the attached link, as described in Section 6.3.1.  As a result of
  1198.       this selection, set the new state of the interface to either DS
  1199.       Other, Backup or DS.
  1200.  
  1201.    State(s):  Any State
  1202.    Event:  Interface Down
  1203.    New state:  Down
  1204.    Action:
  1205.       Reset all variables in the interface data structure and disable
  1206.       all timers.  In addition, destroy all neighbor connections
  1207.       associated with the interface by generating the KillNbr event on
  1208.       all neighbors listed in the interface data structure.
  1209.  
  1210.    State(s):  Any State
  1211.    Event:  Loop Ind
  1212.    New state:  Loopback
  1213.    Action:
  1214.       Reset all variables in the interface data structure and disable
  1215.       all timers.  In addition, destroy all neighbor connections
  1216.       associated with the interface by generating the KillNbr event on
  1217.       all neighbors listed in the interface data structure.
  1218.  
  1219.    State(s):  Loopback
  1220.    Event:  Unloop Ind
  1221.    New state:  Down
  1222.    Action:
  1223.       No action is necessary beyond changing the interface state to Down
  1224.       because the interface was reset on entering the Loopback state.
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234. Kane                         Informational                     [Page 22]
  1235.  
  1236. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1237.  
  1238.  
  1239. 4. Neighbor Data Structure
  1240.  
  1241.    Each switch conducts a conversation with its neighboring switches and
  1242.    each conversation is described by a neighbor data structure.  A
  1243.    conversation is associated with a switch interface, and is identified
  1244.    by the neighboring switch ID.
  1245.  
  1246.    Note that if two switches have multiple attached links in common,
  1247.    multiple conversations ensue, each described by a unique neighbor
  1248.    data structure.  Each separate conversation is treated as a separate
  1249.    neighbor.
  1250.  
  1251.    The neighbor data structure contains all information relevant to any
  1252.    adjacency formed between the two neighbors.  Remember, however, that
  1253.    not all neighbors become adjacent.  An adjacency can be thought of as
  1254.    a highly developed conversation between two switches.
  1255.  
  1256.    State
  1257.  
  1258.       The functional level of the neighbor conversation.  See Section
  1259.       4.1 for a complete description of neighbor states.
  1260.  
  1261.    Inactivity timer
  1262.  
  1263.       A one-shot timer used to determine when to declare the neighbor
  1264.       down if no Hello packet is received from this (multi-access)
  1265.       neighbor.  The length of the timer is SwitchDeadInterval seconds,
  1266.       as contained in the neighbor's Hello packet.  This timer is not
  1267.       used on point-to-point links.
  1268.  
  1269.    Master/slave flag
  1270.  
  1271.       A flag indicating whether the local switch is to act as the master
  1272.       or the slave in the database exchange process (see Section 7.2).
  1273.       The master/slave relationship is negotiated when the conversation
  1274.       changes to the ExStart state.
  1275.  
  1276.    Sequence number
  1277.  
  1278.       A 4-octet number identifying individual Database Description
  1279.       packets. When the neighbor state ExStart is entered and the
  1280.       database exchange process is started, the sequence number is set
  1281.       to a value not previously seen by the neighboring switch. (One
  1282.       possible scheme is to use the switch's time of day counter.)  The
  1283.       sequence number is then incremented by the master with each new
  1284.       Database Description packet sent.  See Section 7.2 for more
  1285.       information on the database exchange process.
  1286.  
  1287.  
  1288.  
  1289.  
  1290. Kane                         Informational                     [Page 23]
  1291.  
  1292. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1293.  
  1294.  
  1295.    Neighbor ID
  1296.  
  1297.       The switch ID of the neighboring switch, as discovered by the
  1298.       VlanHello protocol [IDhello] or contained in the neighbor's Hello
  1299.       packets.
  1300.  
  1301.    Neighbor priority
  1302.  
  1303.       The switch priority of the neighboring switch, as contained in the
  1304.       neighbor's Hello packets.  Switch priorities are used when
  1305.       selecting the designated switch for the attached multi-access
  1306.       link.  Priority is not used on point-to-point links.
  1307.  
  1308.    Interface identifier
  1309.  
  1310.       A 10-octet value that uniquely identifies the interface over which
  1311.       this conversation is being held.  This value consists of the 6-
  1312.       octet base MAC address of the neighbor switch, followed by the 4-
  1313.       octet local port number of the interface.
  1314.  
  1315.    Neighbor's designated switch
  1316.  
  1317.       The switch ID identifying the neighbor's idea of the designated
  1318.       switch, as contained in the neighbor's Hello packets.  This value
  1319.       is used in the local selection of the designated switch.  It is
  1320.       not used on point-to-point links.
  1321.  
  1322.    Neighbor's backup designated switch
  1323.  
  1324.       The switch ID identifying the neighbor's idea of the backup
  1325.       designated switch, as contained in the neighbor's Hello packets.
  1326.       This value is used in the local selection of the backup designated
  1327.       switch.  It is not used on point-to-point links.
  1328.  
  1329.    Link state retransmission list
  1330.  
  1331.       The list of link state advertisements that have been forwarded
  1332.       over but not acknowledged on this adjacency.  The local switch
  1333.       retransmits these link state advertisements at periodic intervals
  1334.       until they are acknowledged or until the adjacency is destroyed.
  1335.       (For more information on retransmitting link state advertisements,
  1336.       see Section 8.2.5.)
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346. Kane                         Informational                     [Page 24]
  1347.  
  1348. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1349.  
  1350.  
  1351.    Database summary list
  1352.  
  1353.       The set of link state advertisement headers that summarize the
  1354.       local link state database.  When the conversation changes to the
  1355.       Exchange state, this list is sent to the neighbor via Database
  1356.       Description packets.  (For more information on the synchronization
  1357.       of databases, see Section 7.)
  1358.  
  1359.    Link state request list
  1360.  
  1361.       The list of link state advertisements that must be received in
  1362.       order to synchronize with the neighbor switch's link state
  1363.       database.  This list is created as Database Description packets
  1364.       are received, and is then sent to the neighbor in Link State
  1365.       Request packets.  (For more information on the synchronization of
  1366.       databases, see Section 7.)
  1367.  
  1368. 4.1 Neighbor States
  1369.  
  1370.    This section describes the various states of a conversation with a
  1371.    neighbor switch.  The states are listed in order of progressing
  1372.    functionality.  For example, the inoperative state is listed first,
  1373.    followed by a list of the intermediate states through which the
  1374.    conversation passes before attaining the final, fully functional
  1375.    state.  The specification makes use of this ordering by references
  1376.    such as "those neighbors/adjacencies in state greater than X".
  1377.  
  1378.    Figure 2 represents the neighbor state machine.  The arrows on the
  1379.    graph represent the events causing each state change.  These events
  1380.    are described in Section 4.2.  The neighbor state machine is
  1381.    described in detail in Section 4.3.
  1382.  
  1383.    Down
  1384.  
  1385.       This is the initial state of a neighbor conversation.
  1386.  
  1387.    Init
  1388.  
  1389.       In this state, the neighbor has been discovered, but bidirectional
  1390.       communication has not yet been established. All neighbors in this
  1391.       state or higher are listed in the VLS Hello packets sent by the
  1392.       local switch over the associated (multi-access) interface.
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402. Kane                         Informational                     [Page 25]
  1403.  
  1404. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1405.  
  1406.  
  1407.           +----------+     KillNbr, LLDown,   +-----------+
  1408.           |   Down   | <--------------------- | any state |
  1409.           +----------+   or Inactivity Timer  +-----------+
  1410.                |
  1411.          Hello |
  1412.           Rcvd |
  1413.                |
  1414.                V
  1415.    +-----< [pt-to-pt?]
  1416.    | yes       |
  1417.    |           | no
  1418.    |           V
  1419.    |      +----------+   1-Way   +----------+
  1420.    |      |   Init   | <-------- | >= 2-way |
  1421.    |      +----------+           +----------+
  1422.    |           |
  1423.    |     2-Way |
  1424.    |      Rcvd |                  +-------+   AdjOK? +------------+
  1425.    |           +----------------> | 2-Way | <------- | >= ExStart |
  1426.    |           | (no adjacency)   +-------+     no   +------------+
  1427.    |           |
  1428.    |           V
  1429.    |      +---------+   Seq Number Mismatch  +-------------+
  1430.    +----> | ExStart | <--------------------- | >= Exchange |
  1431.           +---------+       or BadLSReq      +-------------+
  1432.                |
  1433.    Negotiation |
  1434.        Done    |
  1435.                V
  1436.           +----------+
  1437.           | Exchange |
  1438.           +----------+
  1439.                |
  1440.       Exchange |                        +--------+
  1441.         Done   +----------------------> |  Full  |
  1442.                | (request list empty)   +--------+
  1443.                |                             ^
  1444.                V                             |
  1445.           +---------+      Loading Done      |
  1446.           | Loading | ----------------------->
  1447.           +---------+
  1448.  
  1449.                   Figure 2: Neighbor State Machine
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458. Kane                         Informational                     [Page 26]
  1459.  
  1460. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1461.  
  1462.  
  1463.    2-Way
  1464.  
  1465.       In this state, communication between the two switches is
  1466.       bidirectional.  This is the most advanced state short of beginning
  1467.       to establish an adjacency.  On a multi-access link, the designated
  1468.       switch and the backup designated switch are selected from the set
  1469.       of neighbors in state 2-Way or greater.
  1470.  
  1471.    ExStart
  1472.  
  1473.       This state indicates that the two switches have begun to establish
  1474.       an adjacency by determining which switch is the master, as well as
  1475.       the initial sequence number for Database Descriptor packets.
  1476.       Neighbor conversations in this state or greater are called
  1477.       adjacencies.
  1478.  
  1479.    Exchange
  1480.  
  1481.       In this state, the switches are exchanging Database Description
  1482.       packets.  (See Section 7.2 for a complete description of this
  1483.       process.)  All adjacencies in the Exchange state or greater are
  1484.       used by the distribution procedure (see Section 8.2), and are
  1485.       capable of transmitting and receiving all types of VLSP routing
  1486.       packets.
  1487.  
  1488.    Loading
  1489.  
  1490.       In this state, the local switch is sending Link State Request
  1491.       packets to the neighbor asking for the more recent advertisements
  1492.       that were discovered in the Exchange state.
  1493.  
  1494.    Full
  1495.  
  1496.       In this state, the two switches are fully adjacent.  These
  1497.       adjacencies will now appear in switch link and network link
  1498.       advertisements generated for the link.
  1499.  
  1500. 4.2 Events Causing Neighbor State Changes
  1501.  
  1502.    The state of a neighbor conversation changes due to neighbor events.
  1503.    This section describes these events.
  1504.  
  1505.    Neighbor events are shown as arrows in Figure 2, the graphic
  1506.    representation of the neighbor state machine.  For more information
  1507.    on the neighbor state machine, see Section 4.3.
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514. Kane                         Informational                     [Page 27]
  1515.  
  1516. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1517.  
  1518.  
  1519.    Hello Received
  1520.  
  1521.       This event is generated when a Hello packet has been received from
  1522.       a neighbor.
  1523.  
  1524.    2-Way Received
  1525.  
  1526.       This event is generated when the local switch sees its own switch
  1527.       ID listed in the neighbor's Hello packet, indicating that
  1528.       bidirectional communication has been established between the two
  1529.       switches.
  1530.  
  1531.    Negotiation Done
  1532.  
  1533.       This event is generated when the master/slave relationship has
  1534.       been successfully negotiated and initial packet sequence numbers
  1535.       have been exchanged.  This event signals the start of the database
  1536.       exchange process (see Section 7.2).
  1537.  
  1538.    Exchange Done
  1539.  
  1540.       This event is generated when the database exchange process is
  1541.       complete and both switches have successfully transmitted a full
  1542.       sequence of Database Description packets.  (For more information
  1543.       on the database exchange process, see Section 7.2.)
  1544.  
  1545.    BadLSReq
  1546.  
  1547.       This event is generated when a Link State Request has been
  1548.       received for a link state advertisement that is not contained in
  1549.       the database.  This event indicates an error in the
  1550.       synchronization process.
  1551.  
  1552.    Loading Done
  1553.  
  1554.       This event is generated when all Link State Updates have been
  1555.       received for all out-of-date portions of the database.  (See
  1556.       Section 7.3.)
  1557.  
  1558.    AdjOK?
  1559.  
  1560.       This event is generated when a decision must be made as to whether
  1561.       an adjacency will be established or maintained with the neighbor.
  1562.       This event will initiate some adjacencies and destroy others.
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570. Kane                         Informational                     [Page 28]
  1571.  
  1572. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1573.  
  1574.  
  1575.    Seq Number Mismatch
  1576.  
  1577.       This event is generated when a Database Description packet has
  1578.       been received with any of the following conditions:
  1579.  
  1580.       o  The packet contains an unexpected sequence number.
  1581.       o  The packet (unexpectedly) has the Init bit set.
  1582.       o  The packet has a different Options field than was
  1583.          previously seen.
  1584.  
  1585.       These conditions all indicate that an error has occurred during
  1586.       the establishment of the adjacency.
  1587.  
  1588.    1-Way
  1589.  
  1590.       This event is generated when bidirectional communication with the
  1591.       neighbor has been lost.  That is, a Hello packet has been received
  1592.       from the neighbor in which the local switch is not listed.
  1593.  
  1594.    KillNbr
  1595.  
  1596.       This event is generated when further communication with the
  1597.       neighbor is impossible.
  1598.  
  1599.    Inactivity Timer
  1600.  
  1601.       This event is generated when the inactivity timer has expired,
  1602.       indicating that no Hello packets have been received from the
  1603.       neighbor in SwitchDeadInterval seconds.  This timer is used only
  1604.       on broadcast (multi-access) links.
  1605.  
  1606.    LLDown
  1607.  
  1608.       This event is generated by the lower-level switch discovery
  1609.       protocols and indicates that the neighbor is now unreachable.
  1610.  
  1611. 4.3 Neighbor State Machine
  1612.  
  1613.    This section presents a detailed description of the neighbor state
  1614.    machine.
  1615.  
  1616.    Neighbor states (see Section 4.1) change as the result of various
  1617.    events (see Section 4.2).  However, the effect of each event can
  1618.    vary, depending on the current state of the conversation with the
  1619.    neighbor.  For this reason, the state machine described in this
  1620.    section is organized according to the current neighbor state and the
  1621.    occurring event.  For each state/event pair, the new neighbor state
  1622.    is listed, along with a description of the required processing.
  1623.  
  1624.  
  1625.  
  1626. Kane                         Informational                     [Page 29]
  1627.  
  1628. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1629.  
  1630.  
  1631.    Note that when the neighbor state changes as a result of an interface
  1632.    Neighbor Change event (see Section 3.2), it may be necessary to rerun
  1633.    the designated switch selection algorithm. In addition, if the
  1634.    interface associated with the neighbor conversation is in the DS
  1635.    state (that is, the local switch is the designated switch), changes
  1636.    in the neighbor state may cause a new network link advertisement to
  1637.    be originated (see Section 8.1).
  1638.  
  1639.    When the neighbor state machine must invoke the interface state
  1640.    machine, it is invoked as a scheduled task.  This simplifies
  1641.    processing, by ensuring that neither state machine executes
  1642.    recursively.
  1643.  
  1644.    State(s):  Down
  1645.    Event:  Hello Received
  1646.    New state:  Depends on the interface type
  1647.    Action:
  1648.       If the interface type of the associated link is point-to-point,
  1649.       change the neighbor state to ExStart.  Otherwise, change the
  1650.       neighbor state to Init and start the inactivity timer for the
  1651.       neighbor.  If the timer expires before another Hello packet is
  1652.       received, the neighbor switch is declared dead.
  1653.  
  1654.    State(s):  Init or greater
  1655.    Event:  Hello Received
  1656.    New state:  No state change
  1657.    Action:
  1658.       If the interface type of the associated link is point-to-point,
  1659.       determine whether this notification is for a different neighbor
  1660.       than the one previously seen. If so, generate an Interface Down
  1661.       event for the associated interface, reset the interface type to
  1662.       broadcast and generate an Interface Up event.
  1663.  
  1664.    Note:  This procedure of generating an Interface Down event and
  1665.    changing the interface type to broadcast is also executed if the
  1666.    neighbor for whom the notification was received is running an older
  1667.    version of the protocol software (see Section 6.1).  In previous
  1668.    versions of the protocol, all interfaces were treated as if they were
  1669.    broadcast.
  1670.  
  1671.       If the interface type is broadcast, reset the inactivity timer for
  1672.       the neighbor.
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682. Kane                         Informational                     [Page 30]
  1683.  
  1684. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1685.  
  1686.  
  1687.    State(s):  Init
  1688.    Event:  2-Way Received
  1689.    New state:  Depends on action routine
  1690.    Action:
  1691.       Determine whether an adjacency will be formed with the neighbor
  1692.       (see Section 6.4).  If no adjacency is to be formed, change the
  1693.       neighbor state to 2-Way.
  1694.  
  1695.       Otherwise, change the neighbor state to ExStart.  Initialize the
  1696.       sequence number for this neighbor and declare the local switch to
  1697.       be master for the database exchange process.  (See Section 7.2.)
  1698.  
  1699.    State(s):  ExStart
  1700.    Event:  Negotiation Done
  1701.    New state:  Exchange
  1702.    Action:
  1703.       The Negotiation Done event signals the start of the database
  1704.       exchange process.  See Section 7.2 for a detailed description of
  1705.       this process.
  1706.  
  1707.    State(s):  Exchange
  1708.    Event:  Exchange Done
  1709.    New state:  Depends on action routine
  1710.    Action:
  1711.       If the neighbor Link state request list is empty, change the
  1712.       neighbor state to Full.  This is the adjacency's final state.
  1713.  
  1714.       Otherwise, change the neighbor state to Loading.  Begin sending
  1715.       Link State Request packets to the neighbor requesting the most
  1716.       recent link state advertisements, as discovered during the
  1717.       database exchange process.  (See Section 7.2.) These
  1718.       advertisements are listed in the link state request list
  1719.       associated with the neighbor.
  1720.  
  1721.    State(s):  Loading
  1722.    Event:  Loading Done
  1723.    New state:  Full
  1724.    Action:
  1725.       No action is required beyond changing the neighbor state to Full.
  1726.       This is the adjacency's final state.
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738. Kane                         Informational                     [Page 31]
  1739.  
  1740. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1741.  
  1742.  
  1743.    State(s):  2-Way
  1744.    Event:  AdjOK?
  1745.    New state:  Depends on action routine
  1746.    Action:
  1747.       If no adjacency is to be formed with the neighboring switch (see
  1748.       Section 6.4), retain the neighbor state at 2-Way. Otherwise,
  1749.       change the neighbor state to ExStart.  Initialize the sequence
  1750.       number for this neighbor and declare the local switch to be master
  1751.       for the database exchange process.  (See Section 7.2.)
  1752.  
  1753.    State(s):  ExStart or greater
  1754.    Event:  AdjOK?
  1755.    New state:  Depends on action routine
  1756.    Action:
  1757.       If an adjacency should still be formed with the neighboring switch
  1758.       (see Section 6.4), no state change and no further action is
  1759.       necessary.  Otherwise, tear down the (possibly partially formed)
  1760.       adjacency.  Clear the link state retransmission list, database
  1761.       summary list and link state request list and change the neighbor
  1762.       state to 2-Way.
  1763.  
  1764.    State(s):  Exchange or greater
  1765.    Event:  Seq Number Mismatch
  1766.    New state:  ExStart
  1767.    Action:
  1768.       Tear down the (possibly partially formed) adjacency.  Clear the
  1769.       link state retransmission list, database summary list and link
  1770.       state request list.  Change the neighbor state to ExStart and make
  1771.       another attempt to establish the adjacency.
  1772.  
  1773.    State(s):  Exchange or greater
  1774.    Event:  BadLSReq
  1775.    New state:  ExStart
  1776.    Action:
  1777.       Tear down the (possibly partially formed) adjacency.  Clear the
  1778.       link state retransmission list, database summary list and link
  1779.       state request list.  Change the neighbor state to ExStart and make
  1780.       another attempt to establish the adjacency.
  1781.  
  1782.    State(s):  Any state
  1783.    Event:  KillNbr
  1784.    New state:  Down
  1785.    Action:
  1786.       Terminate the neighbor conversation.  Disable the inactivity timer
  1787.       and clear the link state retransmission list, database summary
  1788.       list and link state request list.
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794. Kane                         Informational                     [Page 32]
  1795.  
  1796. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1797.  
  1798.  
  1799.    State(s):  Any state
  1800.    Event:  LLDown
  1801.    New state:  Down
  1802.    Action:
  1803.       Terminate the neighbor conversation.  Disable the inactivity timer
  1804.       and clear the link state retransmission list, database summary
  1805.       list and link state request list.
  1806.  
  1807.    State(s):  Any state
  1808.    Event:  Inactivity Timer
  1809.    New state:  Down
  1810.    Action:
  1811.       Terminate the neighbor conversation.  Disable the inactivity timer
  1812.       and clear the link state retransmission list, database summary
  1813.       list and link state request list.
  1814.  
  1815.    State(s):  2-Way or greater
  1816.    Event:  1-Way Received
  1817.    New state:  Init
  1818.    Action:
  1819.       Tear down the adjacency between the switches, if any.  Clear the
  1820.       link state retransmission list, database summary list and link
  1821.       state request list.
  1822.  
  1823.    State(s):  2-Way or greater
  1824.    Event:  2-Way received
  1825.    New state:  No state change
  1826.    Action:
  1827.       No action required.
  1828.  
  1829.    State(s):  Init
  1830.    Event:  1-Way received
  1831.    New state:  No state change
  1832.    Action:
  1833.             No action required.
  1834.  
  1835. 5. Area Data Structure
  1836.  
  1837.    The area data structure contains all the information needed to run
  1838.    the basic routing algorithm.  One of its components is the link state
  1839.    database -- the collection of all switch link and network link
  1840.    advertisements generated by the switches.
  1841.  
  1842.    The area data structure contains the following items:
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850. Kane                         Informational                     [Page 33]
  1851.  
  1852. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1853.  
  1854.  
  1855.    Area ID
  1856.  
  1857.       A 4-octet value identifying the area.  Since VLSP does not support
  1858.       multiple areas, the value here is always zero.
  1859.  
  1860.    Associated switch interfaces
  1861.  
  1862.       A list of interface IDs of the local switch interfaces connected
  1863.       to network links.
  1864.  
  1865.    Link state database
  1866.  
  1867.       The collection of all current link state advertisements for the
  1868.       switch fabric.  This collection consists of the following:
  1869.  
  1870.    Switch link advertisements
  1871.  
  1872.       A list of the switch link advertisements for all switches in the
  1873.       fabric.  Switch link advertisements describe the state of each
  1874.       switch's interfaces.
  1875.  
  1876.    Network link advertisements
  1877.  
  1878.       A list of the network link advertisements for all multi-access
  1879.       network links in the switch fabric.  Network link advertisements
  1880.       describe the set of switches currently connected to each link.
  1881.  
  1882.    Best path(s)
  1883.  
  1884.       A set of end-to-end hop descriptions for all equal-cost best paths
  1885.       from the local switch to every other switch in the fabric.  Each
  1886.       hop is specified by the interface ID of the next link in the path.
  1887.       Best paths are derived from the collected switch link and network
  1888.       link advertisements using the Dijkstra algorithm. [Perlman]
  1889.  
  1890. 5.1 Adding and Deleting Link State Advertisements
  1891.  
  1892.    The link state database within the area data structure must contain,
  1893.    at most, a single instance of each link state advertisement.  To keep
  1894.    the database current, a switch adds link state advertisements to the
  1895.    database under the following conditions:
  1896.  
  1897.    o  When a link state advertisement is received during the
  1898.       distribution process
  1899.  
  1900.       o  When the switch itself generates a link state advertisement
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906. Kane                         Informational                     [Page 34]
  1907.  
  1908. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1909.  
  1910.  
  1911.    (See Section 8.2.4 for information on installing link state
  1912.    advertisements.)
  1913.  
  1914.    Likewise, a switch deletes link state advertisements from the
  1915.    database under the following conditions:
  1916.  
  1917.    o  When a link state advertisement has been superseded by a newer
  1918.       instance during the flooding process
  1919.  
  1920.    o  When the switch generates a newer instance of one of its self-
  1921.       originated advertisements
  1922.  
  1923.    Note that when an advertisement is deleted from the link state
  1924.    database, it must also be removed from the link state retransmission
  1925.    list of all neighboring switches.
  1926.  
  1927. 5.2 Accessing Link State Advertisements
  1928.  
  1929.    An implementation of the VLS protocol must provide access to
  1930.    individual link state advertisements, based on the advertisement's
  1931.    type, link state identifier, and advertising switch [1].  This lookup
  1932.    function is invoked during the link state distribution procedure and
  1933.    during calculation of the set of best paths.  In addition, a switch
  1934.    can use the function to determine whether it has originated a
  1935.    particular link state advertisement, and if so, with what sequence
  1936.    number.
  1937.  
  1938. 5.3 Best Path Lookup
  1939.  
  1940.    An implementation of the VLS protocol must provide access to multiple
  1941.    equal-cost best paths, based on the base MAC addresses of the source
  1942.    and destination switches.  This lookup function should return up to
  1943.    three equal-cost paths.  Paths should be returned as lists of end-
  1944.    to-end hop information, with each hop specified as a interface ID of
  1945.    the next link in the path -- the 6-octet base MAC address of the next
  1946.    switch and the 4-octet local port number of the link interface.
  1947.  
  1948. 6. Discovery Process
  1949.  
  1950.    The first operational stage of the VLS protocol is the discovery
  1951.    process.  During this stage, each switch dynamically detects its
  1952.    neighboring switches and establishes a relationship with each of
  1953.    these neighbors.  This process has the following component steps:
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962. Kane                         Informational                     [Page 35]
  1963.  
  1964. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  1965.  
  1966.  
  1967.    o  Neighboring switches are detected on each functioning network
  1968.       interface.
  1969.  
  1970.    o  Bidirectional communication is established with each neighbor
  1971.       switch.
  1972.  
  1973.    o  A designated switch and backup designated switch are selected for
  1974.       each multi-access network link.
  1975.  
  1976.    o  An adjacent relationship is established with selected neighbors on
  1977.       each link.
  1978.  
  1979. 6.1 Neighbor Discovery
  1980.  
  1981.    When the switch first comes on line, VLSP assumes all network links
  1982.    are point-to-point and no more than one neighboring switch will be
  1983.    discovered on any one port.  Therefore, at startup, VLSP relies on
  1984.    the VlanHello protocol [IDhello] for the discovery of its neighbor
  1985.    switches.
  1986.  
  1987.    As each neighbor is detected, VlanHello triggers a Found Neighbor
  1988.    event, notifying VLSP that a new neighbor has been discovered.  (See
  1989.    [IDhello] for a description of the Found Neighbor event and the
  1990.    information passed.)  VLSP enters the neighbor switch ID in the list
  1991.    of known neighbors and creates a new neighbor data structure with a
  1992.    neighbor status of Down.  A Hello Received neighbor event is then
  1993.    generated, which changes the neighbor state to ExStart.
  1994.  
  1995.    There are two circumstances under which VLSP will change the type of
  1996.    an interface to broadcast:
  1997.  
  1998.    o  If VLSP receives a subsequent notification from VlanHello,
  1999.       specifying a second (different) neighbor switch on the port., the
  2000.       interface is then known to be multi-access.  VLSP generates an
  2001.       Interface Down event for the interface, resets the interface type
  2002.       to broadcast, and then generates an Interface Up event.
  2003.  
  2004.    o  If the functional level of the neighbor switch is less than 2, the
  2005.       neighbor is running a previous version of the VLSP software in
  2006.       which all links were treated as broadcast links. VLSP immediately
  2007.       changes the interface type to broadcast and generates an Interface
  2008.       Up event.
  2009.  
  2010.       In both cases, VLSP assumes control of communication over the
  2011.       interface by exchanging its own VLSP Hello packets with the
  2012.       neighbors on the link.
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018. Kane                         Informational                     [Page 36]
  2019.  
  2020. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2021.  
  2022.  
  2023.    Note:  These Hello packets are in addition to the Interswitch
  2024.    Keepalive messages sent by VlanHello.  VlanHello still continues to
  2025.    monitor the condition of the interface and notifies VLSP of any
  2026.    change.
  2027.  
  2028.    Each Hello packet contains the following data used during the
  2029.    discovery process on multi-access links:
  2030.  
  2031.    o  The switch ID and priority of the sending switch
  2032.  
  2033.    o  Values specifying the interval timers to be used for sending Hello
  2034.       packets and deciding whether to declare a neighbor switch Down.
  2035.  
  2036.    o  The switch ID of the designated switch and the backup designated
  2037.       switch for the link, as understood by the sending switch
  2038.  
  2039.    o  A list of switch IDs of all neighboring switches seen so far on
  2040.       the link
  2041.  
  2042.    For a detailed description of the Hello packet format, see Section
  2043.    10.6.1.
  2044.  
  2045.    When VLSP receives a Hello packet (on a broadcast link), it first
  2046.    attempts to identify the sending switch by matching its switch ID to
  2047.    one of the known neighbors listed in the interface data structure.
  2048.    If this is the first Hello packet received from the switch, the
  2049.    switch ID is entered in the list of known neighbors and a new
  2050.    neighbor data structure is created with a neighbor status of Down.
  2051.  
  2052.    At this point, the remainder of the Hello packet is examined and the
  2053.    appropriate interface and neighbor events are generated.  In all
  2054.    cases, a neighbor Hello Received event is generated.  Other events
  2055.    may also be generated, triggering further steps in the discovery
  2056.    process or other actions, as appropriate.
  2057.  
  2058.    For a detailed description of the interface state machine, see
  2059.    Section 3.3.  For a detailed description of the neighbor state
  2060.    machine, see Section 4.3.
  2061.  
  2062. 6.2 Bidirectional Communication
  2063.  
  2064.    Before a conversation can proceed with a neighbor switch,
  2065.    bidirectional communication must be established with that neighbor.
  2066.    Bidirectional communication is detected in one of two ways:
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074. Kane                         Informational                     [Page 37]
  2075.  
  2076. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2077.  
  2078.  
  2079.    o  On a point-to-point link, the VlanHello protocol sees its own
  2080.       switch ID listed in an Interswitch Keepalive message it has
  2081.       received from the neighbor.
  2082.  
  2083.    o  On a multi-access link, VLSP sees its own switch ID listed in a
  2084.       VLSP Hello packet it has received from the neighbor.
  2085.  
  2086.    In either case, a neighbor 2-Way Received neighbor event is
  2087.    generated.
  2088.  
  2089.    Once bidirectional communication has been established with a
  2090.    neighbor, the local switch determines whether an adjacency will be
  2091.    formed with the neighbor.  However, if the link is a multi-access
  2092.    link, a designated switch and a backup designated switch must first
  2093.    be selected for the link.  The next section contains a description of
  2094.    the designated switch, the backup designated switch, and the
  2095.    selection process.
  2096.  
  2097. 6.3 Designated Switch
  2098.  
  2099.    Every multi-access network link has a designated switch.  The
  2100.    designated switch performs the following functions for the routing
  2101.    protocol:
  2102.  
  2103.    o  The designated switch originates a network link advertisement on
  2104.       behalf of the link, listing the set of switches (including the
  2105.       designated switch itself) currently attached to the link. For a
  2106.       detailed description of network link advertisements, see Section
  2107.       11.3.
  2108.  
  2109.    o  The designated switch becomes adjacent to all other switches on
  2110.       the link.  Since the link state databases are synchronized across
  2111.       adjacencies, the designated switch plays a central part in the
  2112.       synchronization process.  For a description of the synchronization
  2113.       process, see Section 7.
  2114.  
  2115.    Each multi-access network link also has a backup designated switch.
  2116.    The primary function of the backup designated switch is to act as a
  2117.    standby for the designated switch.  If the current designated switch
  2118.    fails, the backup designated switch becomes the designated switch.
  2119.  
  2120.    To facilitate this transition, the backup designated switch forms an
  2121.    adjacency with every other switch on the link.  Thus, when the backup
  2122.    designated switch must take over for the designated switch, its link
  2123.    state database is already synchronized with the databases of all
  2124.    other switches on the link.
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130. Kane                         Informational                     [Page 38]
  2131.  
  2132. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2133.  
  2134.  
  2135.    Note:  Point-to-point network links have neither a designated switch
  2136.    or a backup designated switch.
  2137.  
  2138. 6.3.1 Selecting the Designated Switch
  2139.  
  2140.    When a multi-access link interface first becomes functional, the
  2141.    switch sets a one-shot Wait timer (with a value of SwitchDeadInterval
  2142.    seconds) for the interface.  The purpose of this timer is to ensure
  2143.    that all switches attached to the link have a chance to establish
  2144.    bidirectional communication before the designated switch and backup
  2145.    designated switch are selected for the link.
  2146.  
  2147.    When the Wait timer is set, the interface enters the Waiting state.
  2148.    During this state, the switch exchanges Hello packets with its
  2149.    neighbors attempting to establish bidirectional communication.  The
  2150.    interface leaves the Waiting state under one of the following
  2151.    conditions:
  2152.  
  2153.    o  The Wait timer expires.
  2154.  
  2155.    o  A Hello packet is received indicating that a designated switch or
  2156.       a backup designated switch has already been specified for the
  2157.       interface.
  2158.  
  2159.    At this point, if the switch sees that a designated switch has
  2160.    already been selected for the link, the switch accepts that
  2161.    designated switch, regardless of its own switch priority and MAC
  2162.    address.  This situation typically means the switch has come up late
  2163.    on a fully functioning link.  Although this makes it harder to
  2164.    predict the identity of the designated switch on a particular link,
  2165.    it ensures that the designated switch does not change needlessly,
  2166.    necessitating a resynchronization of the databases.
  2167.  
  2168.    If no designated switch is currently specified for the link, the
  2169.    switch begins the actual selection process.  Note that this selection
  2170.    algorithm operates only on a list of neighbor switches that are
  2171.    eligible to become the designated switch.  A neighbor is eligible to
  2172.    be the designated switch if it has a switch priority greater than
  2173.    zero and its neighbor state is 2-Way or greater.  The local switch
  2174.    includes itself on the list of eligible switches as long as it has a
  2175.    switch priority greater than zero.
  2176.  
  2177.    The selection process includes the following steps:
  2178.  
  2179.    1. The current values of the link's designated switch and backup
  2180.       designated switch are saved for use in step 6.
  2181.  
  2182.    2. The new backup designated switch is selected as follows:
  2183.  
  2184.  
  2185.  
  2186. Kane                         Informational                     [Page 39]
  2187.  
  2188. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2189.  
  2190.  
  2191.       a) Eliminate from consideration those switches that have declared
  2192.          themselves to be the designated switch.
  2193.  
  2194.       b) If one or more of the remaining switches have declared
  2195.          themselves to be the backup designated switch, eliminate from
  2196.          consideration all other switches.
  2197.  
  2198.       c) From the remaining list of eligible switches, select the switch
  2199.          having the highest switch priority as the backup designated
  2200.          switch.  If multiple switches have the same (highest) priority,
  2201.          select the switch with the highest switch ID as the backup
  2202.          designated switch.
  2203.  
  2204.    3. The new designated switch is selected as follows:
  2205.  
  2206.       a) If one or more of the switches have declared themselves to be
  2207.          the designated switch, eliminate from consideration all other
  2208.          switches.
  2209.  
  2210.       b) From the remaining list of eligible switches, select the switch
  2211.          having the highest switch priority as the designated switch.
  2212.          If multiple switches have the same (highest) priority, select
  2213.          the switch with the highest switch ID as the designated switch.
  2214.  
  2215.    4. If the local switch has been newly selected as either the
  2216.       designated switch or the backup designated switch, or is now no
  2217.       longer the designated switch or the backup designated switch,
  2218.       repeat steps 2 and 3, above, and then proceed to step 5.
  2219.  
  2220.       If the local switch is now the designated switch, it will
  2221.       eliminate itself from consideration at step 2a when the selection
  2222.       of the backup designated switch is repeated. Likewise, if the
  2223.       local switch is now the backup designated switch, it will
  2224.       eliminate itself from consideration at step 3a when the selection
  2225.       of the designated switch is repeated. This ensures that no switch
  2226.       will select itself as both backup designated switch and designated
  2227.       switch [2].
  2228.  
  2229.    5. Set the interface state to the appropriate value, as follows:
  2230.  
  2231.    o  If the local switch is now the designated switch, set the
  2232.       interface state to DS.
  2233.  
  2234.    o  If the local switch is now the backup designated switch, set the
  2235.       interface state to Backup.
  2236.  
  2237.    o  Otherwise, set the interface state to DS Other.
  2238.  
  2239.  
  2240.  
  2241.  
  2242. Kane                         Informational                     [Page 40]
  2243.  
  2244. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2245.  
  2246.  
  2247.    6. If either the designated switch or backup designated switch has
  2248.       now changed, the set of adjacencies associated with this link must
  2249.       be modified.  Some adjacencies may need to be formed, while others
  2250.       may need to be broken.  Generate the neighbor AdjOK? event for all
  2251.       neighbors with a state of 2-Way or higher to trigger a
  2252.       reexamination of adjacency eligibility.
  2253.  
  2254.    Caution:  If VLSP is implemented with configurable parameters, care
  2255.    must be exercised in specifying the switch priorities.  Note that if
  2256.    the local switch is not itself eligible to become the designated
  2257.    switch (i.e., it has a switch priority of 0), it is possible that
  2258.    neither a backup designated switch nor a designated switch will be
  2259.    selected by the above procedure.  Note also that if the local switch
  2260.    is the only attached switch that is eligible to become the designated
  2261.    switch, it will select itself as designated switch and there will be
  2262.    no backup designated switch for the link.  For this reason, it is
  2263.    advisable to specify a default switch priority of 1 for all switches.
  2264.  
  2265. 6.4 Adjacencies
  2266.  
  2267.    VLSP creates adjacencies between neighboring switches for the purpose
  2268.    of exchanging routing information.  Not every two neighboring
  2269.    switches will become adjacent.  On a multi-access link, an adjacency
  2270.    is only formed between two switches if one of them is either the
  2271.    designated switch or the backup designated switch.
  2272.  
  2273.    Note that an adjacency is bound to the network link that the two
  2274.    switches have in common.  Therefore, if two switches have multiple
  2275.    links in common, they may also have multiple adjacencies between
  2276.    them.
  2277.  
  2278.    The decision to form an adjacency occurs in two places in the
  2279.    neighbor state machine:
  2280.  
  2281.    o  When bidirectional communication is initially established with the
  2282.       neighbor.
  2283.  
  2284.    o  When the designated switch  or backup designated switch on the
  2285.       attached link changes.
  2286.  
  2287.    The rules for establishing an adjacency between two neighboring
  2288.    switches are as follows:
  2289.  
  2290.    o  On a point-to-point link, the two neighboring switches always
  2291.       establish an adjacency.
  2292.  
  2293.    o  On a multi-access link, an adjacency is established with the
  2294.       neighboring switch under one of the following conditions:
  2295.  
  2296.  
  2297.  
  2298. Kane                         Informational                     [Page 41]
  2299.  
  2300. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2301.  
  2302.  
  2303.       o  The local switch itself is the designated switch.
  2304.       o  The local switch itself is the backup designated switch.
  2305.       o  The neighboring switch is the designated switch.
  2306.       o  The neighboring switch is the backup designated switch.
  2307.  
  2308.    If no adjacency is formed between two neighboring switches, the state
  2309.    of the neighbor conversation remains set to 2-Way.
  2310.  
  2311. 7. Synchronizing the Databases
  2312.  
  2313.    In an SPF-based routing algorithm, it is important for the link state
  2314.    databases of all switches to stay synchronized.  VLSP simplifies this
  2315.    process by requiring only adjacent switches to remain synchronized.
  2316.  
  2317.    The synchronization process begins when the switches attempt to bring
  2318.    up the adjacency.  Each switch in the adjacency describes its
  2319.    database by sending a sequence of Database Description packets to its
  2320.    neighbor.  Each Database Description packet describes a set of link
  2321.    state advertisements belonging to the database.  When the neighbor
  2322.    sees a link state advertisement that is more recent than its own
  2323.    database copy, it makes a note to request this newer advertisement.
  2324.  
  2325.    During this exchange of Database Description packets (known as the
  2326.    database exchange process), the two switches form a master/slave
  2327.    relationship.  Database Description packets sent by the master are
  2328.    known as polls, and each poll contains a sequence number.  Polls are
  2329.    acknowledged by the slave by echoing the sequence number in the
  2330.    Database Description response packet.
  2331.  
  2332.    When all Database Description packets have been sent and
  2333.    acknowledged, the database exchange process is completed.  At this
  2334.    point, each switch in the exchange has a list of link state
  2335.    advertisements for which its neighbor has more recent instances.
  2336.    These advertisements are requested using Link State Request packets.
  2337.  
  2338.    Once the database exchange process has completed and all Link State
  2339.    Requests have been satisfied, the databases are deemed synchronized
  2340.    and the neighbor states of the two switches are set to Full,
  2341.    indicating that the adjacency is fully functional. Fully functional
  2342.    adjacencies are advertised in the link state advertisements of the
  2343.    two switches [3].
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354. Kane                         Informational                     [Page 42]
  2355.  
  2356. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2357.  
  2358.  
  2359. 7.1 Link State Advertisements
  2360.  
  2361.    Link state advertisements form the core of the database from which a
  2362.    switch calculates the set of best paths to the other switches in the
  2363.    fabric.
  2364.  
  2365.    Each link state advertisement begins with a standard header. This
  2366.    header contains three data items that uniquely identify the link
  2367.    state advertisement.
  2368.  
  2369.    o  The link state type.  Possible values are as follows:
  2370.  
  2371.       1   Switch link advertisement -- describes the collected states of
  2372.          the switch's interfaces.
  2373.  
  2374.       2   Network link advertisement -- describes the set of switches
  2375.          attached to the network link.
  2376.  
  2377.    o  The link state ID, defined as follows:
  2378.  
  2379.       o  For a switch link advertisement -- the switch ID of the
  2380.          originating switch
  2381.  
  2382.       o  For a network link advertisement -- the switch ID of the
  2383.          designated switch for the link
  2384.  
  2385.    o  The switch ID of the advertising switch -- the switch that
  2386.       generated the advertisement
  2387.  
  2388.    The link state advertisement header also contains three data items
  2389.    that are used to determine which instance of a particular link state
  2390.    advertisement is the most current.  (See Section 7.1.1 for a
  2391.    description of how to determine which instance of a link state
  2392.    advertisement is the most current.)
  2393.  
  2394.    o  The link state sequence number
  2395.  
  2396.    o  The link state age, stored in seconds
  2397.  
  2398.    o  The link state checksum, a 16-bit unsigned value calculated for
  2399.       the entire contents of the link state advertisement, with the
  2400.       exception of the age field
  2401.  
  2402.    The remainder of each link state advertisement contains data specific
  2403.    to the type of the advertisement.  See Section 11 for a detailed
  2404.    description of the link state header, as well as the format of a
  2405.    switch link or network link advertisement.
  2406.  
  2407.  
  2408.  
  2409.  
  2410. Kane                         Informational                     [Page 43]
  2411.  
  2412. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2413.  
  2414.  
  2415. 7.1.1 Determining Which Link State Advertisement Is Newer
  2416.  
  2417.    At various times while synchronizing or updating the link state
  2418.    database, a switch must determine which instance of a particular link
  2419.    state advertisement is the most current.  This decision is made as
  2420.    follows:
  2421.  
  2422.    o  The advertisement having the greater sequence number is the most
  2423.       current.
  2424.  
  2425.    o  If both instances have the same sequence number, then:
  2426.  
  2427.       o  If the two instances have different checksum values, then the
  2428.          instance having the larger checksum is considered the most
  2429.          current [4].
  2430.  
  2431.    o  If both instances have the same sequence number and the same
  2432.       checksum value, then:
  2433.  
  2434.       o  If one (and only one) of the instances is of age MaxAge, then
  2435.          the instance of age MaxAge is considered the most current [5].
  2436.  
  2437.       o  Else, if the ages of the two instances differ by more than
  2438.          MaxAgeDiff, the instance having the smaller (younger) age is
  2439.          considered the most current [6].
  2440.  
  2441.       o  Else, the two instances are considered identical.
  2442.  
  2443. 7.2 Database Exchange Process
  2444.  
  2445.    There are two stages to the database exchange process:
  2446.  
  2447.    o  Negotiating the master/slave relationship
  2448.    o  Exchanging database summary information
  2449.  
  2450. 7.2.1 Database Description Packets
  2451.  
  2452.    Database Description packets are used to describe a switch's link
  2453.    state database during the database exchange process.  Each Database
  2454.    Description packet contains a list of headers of the link state
  2455.    advertisements currently stored in the sending switch's database.
  2456.    (See Section 11.1 for a description of a link state advertisement
  2457.    header.)
  2458.  
  2459.    In addition to the link state headers, each Database Description
  2460.    packet contains the following data items:
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466. Kane                         Informational                     [Page 44]
  2467.  
  2468. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2469.  
  2470.  
  2471.    o  A flag (the M-bit) indicating whether or not more packets are to
  2472.       follow.  Depending on the size of the local database and the
  2473.       maximum size of the packet, the list of headers in any particular
  2474.       Database Description packet may be only a partial list of the
  2475.       total database.  When the M-bit is set, the list of headers is
  2476.       only a partial list and more headers are to follow in subsequent
  2477.       packets.
  2478.  
  2479.    o  A flag (the I-bit) indicating whether or not this is the first
  2480.       Database Description packet sent for this execution of the
  2481.       database exchange process.
  2482.  
  2483.    o  A flag (the MS-bit) indicating whether the sending switch thinks
  2484.       it is the master or the slave in the database exchange process.
  2485.       If the flag is set, the switch thinks it is the master.
  2486.  
  2487.    o  A 4-octet sequence number for the packet.
  2488.  
  2489.    While the switches are negotiating the master/slave relationship,
  2490.    they exchange "empty" Database Description packets.  That is, packets
  2491.    that contain no link summary information.  Instead, the flags and
  2492.    sequence number constitute the information required for the
  2493.    negotiation process.
  2494.  
  2495.    See Section 10.6.2 for a more detailed description of a Database
  2496.    Description packet.
  2497.  
  2498. 7.2.2 Negotiating the Master/Slave Relationship
  2499.  
  2500.    Before two switches can begin the actual exchange of database
  2501.    information, they must decide between themselves who will be the
  2502.    master in the exchange process and who will be the slave.  They must
  2503.    also agree on the starting sequence number for the Database
  2504.    Description packets.
  2505.  
  2506.    Once a switch has decided to form an adjacency with a neighboring
  2507.    switch, it sets the neighbor state to ExStart and begins sending
  2508.    empty Database Description packets to its neighbor.  These packets
  2509.    contain the starting sequence number the switch plans to use in the
  2510.    exchange process.  Also, the I-bit and M-bit flags are set, as well
  2511.    as the MS-bit.  Thus, each switch in the exchange begins by believing
  2512.    it will be the master.
  2513.  
  2514.    Empty Database Description packets are retransmitted every
  2515.    RxmtInterval seconds until the neighbor responds.
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522. Kane                         Informational                     [Page 45]
  2523.  
  2524. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2525.  
  2526.  
  2527.    When a switch receives an empty Database Description packet from its
  2528.    neighbor, it determines which switch will be the master by comparing
  2529.    the switch IDs.  The switch with the highest switch ID becomes the
  2530.    master of the exchange.  Based on this determination, the switch
  2531.    proceeds as follows:
  2532.  
  2533.    o  If the switch is to be the slave of the database exchange process,
  2534.       it acknowledges that it is the slave by sending another empty
  2535.       Database Description packet to the master. This packet contains
  2536.       the master's sequence number and has the MS-bit and the I-bit
  2537.       cleared.
  2538.  
  2539.    o  The switch then generates a neighbor event of Negotiation Done to
  2540.       change its neighbor state to Exchange and waits for the first
  2541.       non-empty Database Description packet from the master.
  2542.  
  2543.    o  If the switch is to be the master of the database exchange, it
  2544.       waits to receive an acknowledgment from its neighbor -- that is,
  2545.       an empty Database Description packet with the MS-bit and I-bit
  2546.       cleared and containing the sequence number it (the master)
  2547.       previously sent.
  2548.  
  2549.    o  When it receives the acknowledgment, it generates a neighbor event
  2550.       of Negotiation Done to change its neighbor state to Exchange and
  2551.       begin the actual exchange of Database Description packets.
  2552.  
  2553.    Note that during the negotiation process, the receipt of an
  2554.    inconsistent packet will result in a neighbor event of Seq Number
  2555.    Mismatch, terminating the process.  See Section 4.3 for more
  2556.    information.
  2557.  
  2558. 7.2.3 Exchanging Database Description Packets
  2559.  
  2560.    Once the neighbor state changes to Exchange, the switches begin the
  2561.    exchange of Database Description packets containing link state
  2562.    summary data.  The process proceeds as follows:
  2563.  
  2564.    1. The master sends a packet containing a list of link state headers.
  2565.       If the packet contains only a portion of the unexchanged database
  2566.       -- that is, more Database Description packets are to follow -- the
  2567.       packet has the M-bit set.  The MS-bit is set and the I-bit is
  2568.       clear.
  2569.  
  2570.       If the slave does not acknowledge the packet within RxmtInterval
  2571.       seconds, the master retransmits the packet.
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578. Kane                         Informational                     [Page 46]
  2579.  
  2580. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2581.  
  2582.  
  2583.    2. When the slave receives a packet, it first checks the sequence
  2584.       number to see if the packet is a duplicate.  If so, it simply
  2585.       acknowledges the packet by clearing the MS-bit and returning the
  2586.       packet to the master.  (Note that the slave acknowledges all
  2587.       Database Description packets that it receives, even those that are
  2588.       duplicates.)
  2589.  
  2590.       Otherwise, the slave processes the packet by doing the following:
  2591.  
  2592.       o  For each link state header listed in the packet, the slave
  2593.          searches its own link state database to determine whether it
  2594.          has an instance of the advertisement.
  2595.  
  2596.       o  If the slave does not have an instance of the link state
  2597.          advertisement, or if the instance it does have is older than
  2598.          the instance listed in the packet, it creates an entry in its
  2599.          link state request list in the neighbor data structure.  See
  2600.          Section 7.1.1 for a description of how to determine which
  2601.          instance of a link state advertisement is the newest.
  2602.  
  2603.       o  When the slave has examined all headers, it acknowledges the
  2604.          packet by turning the MS-bit off and returning the packet to
  2605.          the master.
  2606.  
  2607.  
  2608.    3. When the master receives the first acknowledgment for a particular
  2609.       Database Description packet, it processes the acknowledgment as
  2610.       follows:
  2611.  
  2612.       o  For each link state header listed in the packet, the master
  2613.          checks to see if the slave has indicated it has an instance of
  2614.          the link state advertisement that is newer than the instance
  2615.          the master has in its own database.  If so, the master creates
  2616.          an entry in its link state request list in the neighbor data
  2617.          structure.
  2618.  
  2619.       o  The master then increments the sequence number and sends
  2620.          another packet containing the next set of link state summary
  2621.          information, if any.
  2622.  
  2623.       Subsequent acknowledgments for the Database Description packet
  2624.       (those with the same sequence number) are discarded.
  2625.  
  2626.       When the master sends the last portion of its database summary
  2627.       information, it clears the M-bit in the packet to indicate that no
  2628.       more packets are to be sent.
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634. Kane                         Informational                     [Page 47]
  2635.  
  2636. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2637.  
  2638.  
  2639.    4. When the slave receives a Database Description packet with the M-
  2640.       bit clear, it processes the packet, as described above in step 2.
  2641.       After it has completed processing and has acknowledged the packet
  2642.       to the master, it generates an Exchange Done neighbor event and
  2643.       its neighbor state changes to Loading.
  2644.  
  2645.       The database exchange process is now complete for the slave, and
  2646.       it begins the process of requesting those link state
  2647.       advertisements for which the master has more current instances
  2648.       (see Section 7.3).
  2649.  
  2650.    5. When the master receives an acknowledgment for the final Database
  2651.       Description packet, it processes the acknowledgment as described
  2652.       above in step 3.  Then it generates an Exchange Done neighbor
  2653.       event and its neighbor state changes to Loading.
  2654.  
  2655.       The database exchange process is now complete for the master, and
  2656.       it begins the process of requesting those link state
  2657.       advertisements for which the slave has more current instances (see
  2658.       Section 7.3).
  2659.  
  2660.    Note that during this exchange, the receipt of an inconsistent packet
  2661.    will result in a neighbor event of Seq Number Mismatch, terminating
  2662.    the process.  See Section 4.3 for more information.
  2663.  
  2664. 7.3 Updating the Database
  2665.  
  2666.    When either switch completes the database exchange process and its
  2667.    neighbor state changes to Loading, it has a list of link state
  2668.    advertisements for which the neighboring switch has a more recent
  2669.    instance.  This list is stored in the neighbor data structure as the
  2670.    link state request list.
  2671.  
  2672.    To complete the synchronization of its database with that of its
  2673.    neighbor, the switch must obtain the most current instances of those
  2674.    link state advertisements.
  2675.  
  2676.    The switch requests these advertisements by sending its neighbor a
  2677.    Link State Request packet containing the description of one or more
  2678.    link state advertisement, as defined by the advertisement's type,
  2679.    link state ID, and advertising switch.  (For a detailed description
  2680.    of the Link State Request packet, see Section 10.6.3.)  The switch
  2681.    continues to retransmit this packet every RxmtInterval seconds until
  2682.    it receives a reply from the neighbor.
  2683.  
  2684.  
  2685.  
  2686.  
  2687.  
  2688.  
  2689.  
  2690. Kane                         Informational                     [Page 48]
  2691.  
  2692. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2693.  
  2694.  
  2695.    When the neighbor switch receives the Link State Request packet, it
  2696.    responds with a Link State Update packet containing its most current
  2697.    instance of each of the requested advertisements.  (Note that the
  2698.    neighboring switch can be in any of the Exchange, Loading or Full
  2699.    neighbor states when it responds to a Link State Request packet.)
  2700.  
  2701.    If the neighbor cannot locate a particular link state advertisement
  2702.    in its database, something has gone wrong with the synchronization
  2703.    process.  The switch generates a BadLSReq neighbor event and the
  2704.    partially formed adjacency is torn down. See Section 4.3 for more
  2705.    information.
  2706.  
  2707.    Depending on the size of the link state request list, it may take
  2708.    more than one Link State Request packet to obtain all the necessary
  2709.    advertisements.  Note, however, that there must at most one Link
  2710.    State Request packet outstanding at any one time.
  2711.  
  2712. 7.4 An Example
  2713.  
  2714.    Figure 3 shows an example of an adjacency being formed between two
  2715.    switches -- S1 and S2 -- connected to a network link.  S2 is the
  2716.    designated switch for the link and has a higher switch ID than S1.
  2717.  
  2718.    The neighbor state changes that each switch goes through are listed
  2719.    on the sides of the figure.
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746. Kane                         Informational                     [Page 49]
  2747.  
  2748. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2749.  
  2750.  
  2751.    +--------+                                     +--------+
  2752.    | Switch |                                     | Switch |
  2753.    |   S1   |                                     |   S2   |
  2754.    +--------+                                     +--------+
  2755.       Down                                           Down
  2756.                      Hello (DS=0, seen=0)
  2757.             ------------------------------------->
  2758.                                                      Init
  2759.                   Hello (DS=S2, seen=...,S1)
  2760.             <-------------------------------------
  2761.    ExStart
  2762.              DB Description (Seq=x, I, M, Master)
  2763.             ------------------------------------->
  2764.                                                      ExStart
  2765.              DB Description (Seq=y, I, M, Master)
  2766.             <-------------------------------------
  2767.    xchange
  2768.                DB Description (Seq=y, M, Slave)
  2769.             ------------------------------------->
  2770.                                                      Exchange
  2771.              DB Description (Seq=y+1, M, Master)
  2772.             <-------------------------------------
  2773.               DB Description (Seq=y+1, M, Slave)
  2774.             ------------------------------------->
  2775.                               .
  2776.                               .
  2777.                               .
  2778.  
  2779.                DB Description (Seq=y+n, Master)
  2780.             <-------------------------------------
  2781.                 DB Description (Seq=y+n, Slave)
  2782.             ------------------------------------->
  2783.    Loading                                           Full
  2784.                        Link State Request
  2785.             <-------------------------------------
  2786.                        Link State Update
  2787.             ------------------------------------->
  2788.                               .
  2789.                               .
  2790.                               .
  2791.  
  2792.                        Link State Request
  2793.             <-------------------------------------
  2794.                        Link State Update
  2795.             ------------------------------------->
  2796.     Full
  2797.  
  2798.          Figure 3: An Example of Bringing Up an Adjacency
  2799.  
  2800.  
  2801.  
  2802. Kane                         Informational                     [Page 50]
  2803.  
  2804. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2805.  
  2806.  
  2807.  
  2808.  
  2809.    At the top of Figure 3, S1's interface to the link becomes
  2810.    operational, and S1 begins sending Hello packets over the interface.
  2811.    At this point, S1 does not yet know the identity of the designated
  2812.    switch or of any other neighboring switches.  S2 receives the Hello
  2813.    packet from S1 and changes its neighbor state to Init.  In its next
  2814.    Hello packet, S2 indicates that it is itself the designated switch
  2815.    and that it has received a Hello packet from S1.  S1 receives the
  2816.    Hello packet and changes its state to ExStart, starting the process
  2817.    of bringing up the adjacency.
  2818.  
  2819.    S1 begins by asserting itself as the master.  When it sees that S2 is
  2820.    indeed the master (because of S2's higher switch ID), S1 changes to
  2821.    slave and adopts S2's sequence number.  Database Description packets
  2822.    are then exchanged, with polls coming from the master (S2) and
  2823.    acknowledgments from the slave (S1).  This sequence of Database
  2824.    Description packets ends when both the poll and associated
  2825.    acknowledgment have the M-bit off.
  2826.  
  2827.    In this example, it is assumed that S2 has a completely up-to-date
  2828.    database and immediately changes to the Full state. S1 will change to
  2829.    the Full state after updating its database by sending Link State
  2830.    Request packets and receiving Link State Update packets in response.
  2831.  
  2832.    Note that in this example, S1 has waited until all Database
  2833.    Description packets have been received from S2 before sending any
  2834.    Link State Request packets.  However, this need not be the case.  S1
  2835.    could interleave the sending of Link State Request packets with the
  2836.    reception of Database Description packets.
  2837.  
  2838. 8. Maintaining the Databases
  2839.  
  2840.    Each switch advertises its state (also known as its link state) by
  2841.    originating switch link advertisements.  In addition, the designated
  2842.    switch on each network link advertises the state of the link by
  2843.    originating network link advertisements.
  2844.  
  2845.    As described in Section 7.1, link state advertisements are uniquely
  2846.    identified by their type, link state ID, and advertising switch.
  2847.  
  2848.    Link state advertisements are distributed throughout the switch
  2849.    fabric using a reliable flooding algorithm that ensures that all
  2850.    switches in the fabric are notified of any link state changes.
  2851.  
  2852.  
  2853.  
  2854.  
  2855.  
  2856.  
  2857.  
  2858. Kane                         Informational                     [Page 51]
  2859.  
  2860. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2861.  
  2862.  
  2863. 8.1 Originating Link State Advertisements
  2864.  
  2865.    A new instance of each link state advertisement is originated any
  2866.    time the state of the switch or link changes.  When a new instance of
  2867.    a link state advertisement is originated, its sequence number is
  2868.    incremented, its age is set to zero, and its checksum is calculated.
  2869.    The advertisement is then installed into the local link state
  2870.    database and forwarded out all fully operational interfaces (that is,
  2871.    those interfaces with a state greater than Waiting) for distribution
  2872.    throughout the switch fabric.  See Section 8.2.4 for a description of
  2873.    the installation of the advertisement into the link state database
  2874.    and Section 8.2.5 for a description of how advertisements are
  2875.    forwarded.
  2876.  
  2877.    A switch originates a new instance of a link state advertisement as a
  2878.    result of the following events:
  2879.  
  2880.    o  The state of one of the switch's interfaces changes such that the
  2881.       contents of the associated switch link advertisement changes.
  2882.  
  2883.    o  The designated switch on any of the switch's attached network
  2884.       links changes.  The switch originates a new switch link
  2885.       advertisement.  Also, if the switch itself is now the designated
  2886.       switch, it originates a new network link advertisement for the
  2887.       link.
  2888.  
  2889.    o  One of the switch's neighbor states changes to or from Full. If
  2890.       this changes the contents of the associated switch link
  2891.       advertisement, a new instance is generated.  Also, if the switch
  2892.       is the designated switch for the attached network link, it
  2893.       originates a new network link advertisement for the link.
  2894.  
  2895.    Two instances of the same link state advertisement must not be
  2896.    originated within the time period MinLSInterval.  Note that this may
  2897.    require that the generation of the second instance to be delayed up
  2898.    to MinLSInterval seconds.
  2899.  
  2900. 8.1.1 Switch Link Advertisements
  2901.  
  2902.    A switch link advertisement describes the collected states of all
  2903.    functioning links attached to the originating switch -- that is, all
  2904.    attached links with an interface state greater than Down.  A switch
  2905.    originates an empty switch link advertisement when it first becomes
  2906.    functional.  It then generates a new instance of the advertisement
  2907.    each time one of its interfaces reaches a fully functioning state
  2908.    (Point-to-Point or better).
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914. Kane                         Informational                     [Page 52]
  2915.  
  2916. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2917.  
  2918.  
  2919.    Each link in the advertisement is assigned a type, based on the state
  2920.    of interface, as shown in Table 4.
  2921.  
  2922.             Interface state     Link type     Description
  2923.  
  2924.             Point-to-Point      1             Point-to-point link
  2925.             DS Other*           2             Multi-access link
  2926.             Backup*             2             Multi-access link
  2927.             DS**                2             Multi-access link
  2928.  
  2929.               *If a full adjacency has been formed with the designated
  2930.                switch.
  2931.  
  2932.              **If a full adjacency has been formed with at least one
  2933.                other switch on the link.
  2934.  
  2935.                Table 4: Link Types in a Switch Link Advertisement
  2936.  
  2937.    Each link in the advertisement is also assigned a link identifier
  2938.    based on its link type.  In general, this value identifies another
  2939.    switch that also originates advertisements for the link, thereby
  2940.    providing a key for accessing other link state advertisements for the
  2941.    link.  The relationship between link type and ID is shown in Table 5.
  2942.  
  2943.  
  2944.              Type  Description           Link ID
  2945.  
  2946.             1     Point-to-point link   Switch ID of neighbor switch
  2947.             2     Multi-access link     Switch ID of designated switch
  2948.  
  2949.                Table 5: Link IDs in a Switch Link Advertisement
  2950.  
  2951.  
  2952.    In addition to a type and an identifier, the description of each link
  2953.    specifies the interface ID of the associated network link.
  2954.  
  2955.    Finally, each link description includes the cost of sending a packet
  2956.    over the link.  This output cost is expressed in the link state
  2957.    metric and must be greater than zero.
  2958.  
  2959.    To illustrate the format of a switch link advertisement, consider the
  2960.    switch fabric shown in Figure 4.
  2961.  
  2962.    In this example, switch SW1 has 5 neighboring switches (shown as
  2963.    boxes) distributed over 3 network links (shown as lines).  The base
  2964.    MAC address of each switch is also shown adjacent to each box.  On
  2965.    switch SW1, ports 01 and 02 attach to point-to-point network links,
  2966.  
  2967.  
  2968.  
  2969.  
  2970. Kane                         Informational                     [Page 53]
  2971.  
  2972. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  2973.  
  2974.  
  2975.    while port 03 attaches to a multi-access network link with three
  2976.    attached switches.  The interface state of each port is shown next to
  2977.    the line representing the corresponding link.
  2978.  
  2979.  
  2980.                             00-00-1d-22-23-c5
  2981.                                 +-------+
  2982.                                 |  SW2  |
  2983.                                 +-------+
  2984.                                     |
  2985.                                     | Point-to-Point
  2986.                                     |
  2987.                                     | 01
  2988.        +-------+    Loopback    +-------+
  2989.        |  SW3  |----------------|  SW1  | 00-00-1d-1f-05-81
  2990.        +-------+             02 +-------+
  2991.    00-00-1d-17-35-a4                | 03
  2992.                                     |
  2993.                                     | DS Other
  2994.                                     |
  2995.                +--------------------+--------------------+
  2996.                |                    |                    |
  2997.                | DS Other           | Backup             | DS
  2998.                |                    |                    |
  2999.            +-------+            +-------+            +-------+
  3000.            |  SW4  |            |  SW5  |            |  SW6  |
  3001.            +-------+            +-------+            +-------+
  3002.         00-00-1d-4a-26-b3    00-00-1d-4a-27-1c    00-00-1d-7e-84-2e
  3003.  
  3004.  
  3005.                     Figure 4: Sample Switch Fabric
  3006.  
  3007.    The switch link advertisement generated by switch SW1 would contain
  3008.    the following data items:
  3009.  
  3010.       ; switch link advertisement for switch SW1
  3011.  
  3012.       LS age = 0               ; always true on origination
  3013.       Options = (T-bit|E-bit)  ; options
  3014.       LS type = 1              ; this is a switch link advert
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026. Kane                         Informational                     [Page 54]
  3027.  
  3028. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3029.  
  3030.  
  3031.                                ; SW1's switch ID
  3032.       Link State ID = 00-00-1d-1f-05-81-00-00-00-00
  3033.       Advertising switch = 00-00-1d-1f-05-81-00-00-00-00
  3034.       # links = 2
  3035.  
  3036.          ; link on interface port 1
  3037.          Link ID = 00-00-1d-22-23-c5-00-00-00-00    ; switch ID
  3038.  
  3039.          Link Data = 00-00-1d-1f-05-81-00-00-00-01  ; interface ID
  3040.          Type = 1                                   ; pt-to-pt link
  3041.          # other metrics = 0                        ; TOS 0 only
  3042.          TOS 0 metric = 1
  3043.  
  3044.          ; link on interface port 2 is not fully functional
  3045.  
  3046.          ; link on interface port 3
  3047.          Link ID = 00-00-1d-7e-84-2e-00-00-00-00    ; switch ID of DS
  3048.          Link Data = 00-00-1d-1f-05-81-00-00-00-03  ; interface ID
  3049.          Type = 2                                   ; multi-access
  3050.          # other metrics = 0                        ; TOS 0 only
  3051.          TOS 0 metric = 2
  3052.  
  3053.    (See Section 11.2 for a detailed description of the format of a
  3054.    switch link advertisement.)
  3055.  
  3056. 8.1.2 Network Link Advertisements
  3057.  
  3058.    Network link advertisements are used to describe the switches
  3059.    attached to each multi-access network link.
  3060.  
  3061.    Note:  Network link advertisements are not generated for point-to-
  3062.    point links.
  3063.  
  3064.    A network link advertisement is originated by the designated switch
  3065.    for the associated multi-access link once the switch has established
  3066.    a full adjacency with at least one other switch on the link.  Each
  3067.    advertisement lists the switch IDs of those switches that are fully
  3068.    adjacent to the designated switch.  The designated switch includes
  3069.    itself in this list.
  3070.  
  3071.    To illustrate the format of a network link advertisement, consider
  3072.    again the switch fabric shown in Figure 4.  In this example, network
  3073.    link advertisements will be generated only by switch SW6, the
  3074.    designated switch of the multi-access network link between switches
  3075.    SW1 and switches SW4, SW5, and SW6.
  3076.  
  3077.    The network link advertisement generated by switch SW6 would contain
  3078.    the following data items:
  3079.  
  3080.  
  3081.  
  3082. Kane                         Informational                     [Page 55]
  3083.  
  3084. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3085.  
  3086.  
  3087.       ; network link advertisement for switch SW6
  3088.  
  3089.       LS age = 0               ; always true on origination
  3090.       Options = (T-bit|E-bit)  ; options
  3091.       LS type = 2              ; this is a network link advert
  3092.  
  3093.                                  ; SW6's switch ID
  3094.       Link State ID = 00-00-1d-73-84-2e-00-00-00-00
  3095.       Advertising switch = 00-00-1d-73-84-2e-00-00-00-00
  3096.  
  3097.          Attached switch = 00-00-1d-7e-84-2e-00-00-00-00
  3098.          Attached switch = 00-00-1d-4a-26-b3-00-00-00-00
  3099.          Attached switch = 00-00-1d-1f-05-81-00-00-00-00
  3100.          Attached switch = 00-00-1d-4a-27-1c-00-00-00-00
  3101.  
  3102.       (See Section 11.3 for a detailed description of the format of a
  3103.       network link advertisement.)
  3104.  
  3105. 8.2 Distributing Link State Advertisements
  3106.  
  3107.    Link state advertisements are distributed throughout the switch
  3108.    fabric encapsulated within Link State Update packets.  A single Link
  3109.    State Update packet may contain several distinct advertisements.
  3110.  
  3111.    To make the distribution process reliable, each advertisement must be
  3112.    explicitly acknowledged in a Link State Acknowledgment packet.  Note,
  3113.    however, that multiple acknowledgments can be grouped together into a
  3114.    single Link State Acknowledgment packet. A sending switch retransmits
  3115.    unacknowledged Link State Update packets at regular intervals until
  3116.    they are acknowledged.
  3117.  
  3118.    The remainder of this section is structured as follows:
  3119.  
  3120.    o  Section 8.2.1 presents an overview of the distribution process.
  3121.  
  3122.    o  Section 8.2.2 describes how an incoming Link State Update packet
  3123.       is processed.
  3124.  
  3125.    o  Section 8.2.3 describes how a Link State Packet is forwarded --
  3126.       both by the originating switch and an intermediate receiving
  3127.       switch.
  3128.  
  3129.    o  Section 8.2.4 describes how advertisements are installed into the
  3130.       local database.
  3131.  
  3132.    o  Section 8.2.5 describes the retransmission of unacknowledged
  3133.       advertisements.
  3134.  
  3135.  
  3136.  
  3137.  
  3138. Kane                         Informational                     [Page 56]
  3139.  
  3140. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3141.  
  3142.  
  3143.     o  Section 8.2.6 describes how advertisements are acknowledged.
  3144.  
  3145. 8.2.1 Overview
  3146.  
  3147.    The philosophy behind the distribution of link state advertisements
  3148.    is based on the concept of adjacencies -- that is, each switch is
  3149.    only required to remain synchronized with its adjacent neighbors.
  3150.  
  3151.    When a switch originates a new instance of a link state
  3152.    advertisement, it formats the advertisement into a Link State Update
  3153.    packet and floods the packet out each fully operational interface --
  3154.    that is, each interface with a state greater than Waiting.  However,
  3155.    only those neighbors that are adjacent to the sending switch need to
  3156.    process the packet.
  3157.  
  3158.    The sending switch indicates which of its neighbor switches should
  3159.    process the advertisement by specifying a particular multicast
  3160.    destination in the network layer address information (see Section
  3161.    10.3).  The sending switch sets the value of the network layer
  3162.    destination switch ID field according to the state of the interface
  3163.    over which the packet is sent:
  3164.  
  3165.    o  If the interface state is Point-to-Point, DS, or Backup, the
  3166.       switch is adjacent to all other switches on the link and all
  3167.       neighboring switches must process the packet.  Therefore, the
  3168.       destination field is set to the multicast switch ID
  3169.       AllSPFSwitches.
  3170.  
  3171.    o  If the interface state is DS Other, the switch is only adjacent to
  3172.       the designated switch and the backup designated switch and only
  3173.       those two neighboring switches must process the packet.
  3174.       Therefore, the destination field is set to the multicast switch ID
  3175.       AllDSwitches.
  3176.  
  3177.    A similar logic is used when a switch receives a Link State Update
  3178.    packet containing a new instance of a link state advertisement.
  3179.    After processing and acknowledging the packet, the receiving switch
  3180.    forwards the Link State Update packet as
  3181.  
  3182.    o  On the interface over which the original Link State Update packet
  3183.       was received:
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194. Kane                         Informational                     [Page 57]
  3195.  
  3196. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3197.  
  3198.  
  3199.       o  If the receiving switch is the designated switch for the
  3200.          attached network link, the packet is forwarded to all other
  3201.          switches on the link.  (The destination field is set to
  3202.          AllSPFSwitches.)  The originating switch will recognize that it
  3203.          was the advertisement originator and discard the packet.
  3204.  
  3205.       o  If the receiving switch is not the designated switch for the
  3206.          attached network link, the packet is not sent back out the
  3207.          interface over which it was received.
  3208.  
  3209.    o  On all other interfaces:
  3210.  
  3211.       o  If the receiving switch is the designated switch for the
  3212.          attached network link, the packet is forwarded to all switches
  3213.          on the link.  (The destination field is set to AllSPFSwitches.)
  3214.  
  3215.       o  If the receiving switch is neither the designated switch or the
  3216.          backup designated switch for the attached network link, the
  3217.          packet is forwarded only to the designated switch and the
  3218.          backup designated switch.  (The destination field is set to
  3219.          AllDSwitches.)
  3220.  
  3221.    Each Link State Update packet is forwarded and processed in this
  3222.    fashion until all switches in the fabric have received notification
  3223.    of the new instance of the link state advertisement.
  3224.  
  3225. 8.2.2 Processing an Incoming Link State Update Packet
  3226.  
  3227.    When the a Link State Update packet is received, it is first
  3228.    subjected to a number of consistency checks.  In particular, the Link
  3229.    State Update packet is associated with a specific neighbor. If the
  3230.    state of that neighbor is less than Exchange, the entire Link State
  3231.    Update packet is discarded.
  3232.  
  3233.    Each link state advertisement contained in the packet is processed as
  3234.    follows:
  3235.  
  3236.    1. Validate the advertisement's link state checksum and type. If the
  3237.       checksum is invalid or the type is unknown, discard the
  3238.       advertisement without acknowledging it.
  3239.  
  3240.    2. If the advertisement's age is equal to MaxAge and there is
  3241.       currently no instance of the advertisement in the local link state
  3242.       database, then do the following:
  3243.  
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.  
  3250. Kane                         Informational                     [Page 58]
  3251.  
  3252. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3253.  
  3254.  
  3255.       a) Acknowledge the advertisement by sending a Link State
  3256.          Acknowledgment packet to the sending neighbor (see Section
  3257.          8.2.6).
  3258.  
  3259.       b) Purge all outstanding requests for equal or previous instances
  3260.          of the advertisement from the sending neighbor's Link State
  3261.          Request list.
  3262.  
  3263.       c) If the neighbor is Exchange or Loading, install the
  3264.          advertisement in the link state database (see Section 8.2.4).
  3265.          Otherwise, discard the advertisement.
  3266.  
  3267.    3. If the advertisement's age is equal to MaxAge and there is an
  3268.       instance of the advertisement in the local link state database,
  3269.       then do the following:
  3270.  
  3271.       a) If the advertisement is listed in the link state retransmission
  3272.          list of any neighbor, remove the advertisement from the
  3273.          retransmission list(s) and delete the database copy of the
  3274.          advertisement.
  3275.  
  3276.       b) Discard the received (MaxAge) advertisement without
  3277.          acknowledging it.
  3278.  
  3279.    4. If the advertisement's age is less than MaxAge, attempt to locate
  3280.       an instance of the advertisement in the local link state database.
  3281.       If there is no database copy of this advertisement, or the
  3282.       received advertisement is more recent than the database copy (see
  3283.       Section 7.1.1), do the following:
  3284.  
  3285.       a) If there is already a database copy, and if the database copy
  3286.          was installed less than MinLSInterval seconds ago, discard the
  3287.          new advertisement without acknowledging it.
  3288.  
  3289.       b) Otherwise, forward the new advertisement out some subset of the
  3290.          local interfaces (see Section 8.2.3).  Note whether the
  3291.          advertisement was sent back out the receiving interface for
  3292.          later use by the acknowledgment process.
  3293.  
  3294.       c) Remove the current database copy from the Link state
  3295.          retransmission lists of all neighbors.
  3296.  
  3297.       d) Install the new advertisement in the link state database,
  3298.          replacing the current database copy.  (Note that this may cause
  3299.          the calculation of the set of best paths to be scheduled.  See
  3300.          Section 9.)  Timestamp the new advertisement with the time that
  3301.          it was received to prevent installation of another instance
  3302.          within MinLSInterval seconds.
  3303.  
  3304.  
  3305.  
  3306. Kane                         Informational                     [Page 59]
  3307.  
  3308. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3309.  
  3310.  
  3311.       e) Acknowledge the advertisement, if necessary, by sending a Link
  3312.          State Acknowledgment packet back out the receiving interface.
  3313.          (See Section 8.2.6.)
  3314.  
  3315.       f) If the link state advertisement was initially advertised by the
  3316.          local switch itself, advance the advertisement sequence number
  3317.          and issue a new instance of the advertisement. (Receipt of a
  3318.          newer instance of an advertisement means that the local copy of
  3319.          the advertisement is left over from before the last time the
  3320.          switch was restarted.)
  3321.  
  3322.    5. If the received advertisement is the same instance as the database
  3323.       copy (as determined by the algorithm described in Section 7.1.1),
  3324.       do the following:
  3325.  
  3326.       a) If the advertisement is listed in the neighbor's link state
  3327.          retransmission list, the local switch is expecting an
  3328.          acknowledgment for this advertisement.  Treat the received
  3329.          advertisement as an implied acknowledgment, and remove the
  3330.          advertisement from the link state retransmission list. Note
  3331.          this implied acknowledgment for later use by the acknowledgment
  3332.          process (Section 8.2.6).
  3333.  
  3334.       b) Acknowledge the advertisement, if necessary, by sending a Link
  3335.          State Acknowledgment packet back out the receiving interface.
  3336.          (See Section 8.2.6.)
  3337.  
  3338.    If the database copy of the advertisement is more recent than the
  3339.       instance just received, do the following:
  3340.  
  3341.       a) Determine whether the instance is listed in the neighbor link
  3342.          state request list.  If so, an error has occurred in the
  3343.          database exchange process.  Restart the database exchange
  3344.          process by generating a neighbor BadLSReq event for the sending
  3345.          neighbor and terminate processing of the Link State Update
  3346.          packet.
  3347.  
  3348.       b) Otherwise, generate an unusual event to network management and
  3349.          discard the advertisement.
  3350.  
  3351. 8.2.3 Forwarding Link State Advertisements
  3352.  
  3353.    When a new instance of an advertisement is originated or after an
  3354.    incoming advertisement has been processed, the switch must decide
  3355.    over which interfaces and to which neighbors the advertisement will
  3356.    be forwarded.  In some instances, the switch may decide not to
  3357.    forward the advertisement over a particular interface because it is
  3358.    able to determine that the neighbors on that attached link have or
  3359.  
  3360.  
  3361.  
  3362. Kane                         Informational                     [Page 60]
  3363.  
  3364. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3365.  
  3366.  
  3367.    will receive the advertisement from another switch on the link.
  3368.  
  3369.    The decision of whether to forward an advertisement over each of the
  3370.    switch's interfaces is made as follows:
  3371.  
  3372.    1. Each neighboring switch attached to the interface is examined to
  3373.       determine whether it should receive and process the new
  3374.       advertisement.  For each neighbor, the following steps are
  3375.       executed:
  3376.  
  3377.       a) If the neighbor state is less than Exchange, the neighbor need
  3378.          not receive or process the new advertisement.
  3379.  
  3380.       b) If the neighbor state is Exchange or Loading, examine the link
  3381.          state request list associated with the neighbor.  If an
  3382.          instance of the new advertisement is on the list, the
  3383.          neighboring switch already has an instance of the
  3384.          advertisement.  Compare the new advertisement to the neighbor's
  3385.          copy:
  3386.  
  3387.          o  If the new advertisement is less recent, the neighbor need
  3388.             not receive or process the new advertisement.
  3389.  
  3390.          o  If the two copies are the same instance, delete the
  3391.             advertisement from the link state request list.  The
  3392.             neighbor need not receive or process the new advertisement
  3393.             [7].
  3394.  
  3395.          o  Otherwise, the new advertisement is more recent.  Delete the
  3396.             advertisement from the link state request list.  The
  3397.             neighbor may need to receive and process the new
  3398.             advertisement.
  3399.  
  3400.       c) If the new advertisement was received from this neighbor, the
  3401.          neighbor need not receive or process the advertisement.
  3402.  
  3403.       d) Add the new advertisement to the link state retransmission list
  3404.          for the neighbor.
  3405.  
  3406.    2. The switch must now decide whether to forward the new
  3407.       advertisement out the interface.
  3408.  
  3409.       a) If the link state advertisement was not added to any of the
  3410.          link state retransmission lists for neighbors attached to the
  3411.          interface, there is no need to forward the advertisement out
  3412.          the interface.
  3413.  
  3414.  
  3415.  
  3416.  
  3417.  
  3418. Kane                         Informational                     [Page 61]
  3419.  
  3420. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3421.  
  3422.  
  3423.       b) If the new advertisement was received on this interface, and it
  3424.          was received from either the designated switch or the backup
  3425.          designated switch, there is no need to forward the
  3426.          advertisement out the interface.  Chances are all neighbors on
  3427.          the attached network link have also received the advertisement
  3428.          already.
  3429.  
  3430.       c) If the new advertisement was received on this interface and the
  3431.          state of the interface is Point-to-Point, there is no need to
  3432.          forward the advertisement since the received advertisement was
  3433.          originated by the neighbor switch.
  3434.  
  3435.       d) If the new advertisement was received on this interface, and
  3436.          the interface state is Backup -- that is, the switch itself is
  3437.          the backup designated switch -- there is no need to forward the
  3438.          advertisement out the interface.  The designated switch will
  3439.          distribute advertisements on the attached network link.
  3440.  
  3441.       e) Otherwise, the advertisement must be forwarded out the
  3442.          interface.
  3443.  
  3444.       To forward a link state advertisement, the switch first increments
  3445.       the advertisement's age by InfTransDelay seconds to account for
  3446.       the transmission time over the link.  The switch then copies the
  3447.       advertisement into a Link State Update packet
  3448.  
  3449.       Forwarded advertisements are sent to all adjacent switches
  3450.       associated with the interface.  If the interface state is Point-
  3451.       to-Point, DS, or Backup, the destination switch ID field of the
  3452.       network layer address information is set to the multicast switch
  3453.       ID AllSPFSwitches.  If the interface state is DS Other, the
  3454.       destination switch ID field is set to the multicast switch ID
  3455.       AllDSwitches.
  3456.  
  3457. 8.2.4 Installing Link State Advertisements in the Database
  3458.  
  3459.    When a new link state advertisement is installed into the link state
  3460.    database, as the result of either originating or receiving a new
  3461.    instance of an advertisement, the switch must determine whether the
  3462.    best paths need to be recalculated.  To make this determination, do
  3463.    the following:
  3464.  
  3465.    1. Compare the contents of the new instance with the contents of the
  3466.       old instance (assuming the older instance is available). Note that
  3467.       this comparison does not include any data from the link state
  3468.       header.  Differences in fields within the header (such as the
  3469.       sequence number and checksum, which are guaranteed to be different
  3470.       in different instances of an advertisement) are of no consequence
  3471.  
  3472.  
  3473.  
  3474. Kane                         Informational                     [Page 62]
  3475.  
  3476. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3477.  
  3478.  
  3479.       when deciding whether or not to recalculate the set of best paths.
  3480.  
  3481.    2. If there are no differences in the contents of the two
  3482.       advertisement instances, there is no need to recalculate the set
  3483.       of best paths.
  3484.  
  3485.    3. Otherwise, the set of best paths must be recalculated.
  3486.  
  3487.    Note also that the older instance of the advertisement must be
  3488.    removed from the link state database when the new advertisement is
  3489.    installed.  The older instance must also be removed from the link
  3490.    state retransmission lists of all neighbors.
  3491.  
  3492. 8.2.5 Retransmitting Link State Advertisements
  3493.  
  3494.    When a switch sends a link state advertisement to an adjacent
  3495.    neighbor, it records the advertisement in the neighbor's link state
  3496.    retransmission list.  To ensure the reliability of the distribution
  3497.    process, the switch continues to periodically retransmit the
  3498.    advertisements specified in the list until they are acknowledged.
  3499.  
  3500.    The interval timer used to trigger retransmission of the
  3501.    advertisements is set to RxmtInterval seconds, as found in the
  3502.    interface data structure. Note that if this value is too low,
  3503.    needless retransmissions will ensue.  If the value is too high, the
  3504.    speed with which the databases synchronize across adjacencies may be
  3505.    affected if there are lost packets.
  3506.  
  3507.    When the interval timer expires, entries in the retransmission list
  3508.    are formatted into one or more Link State Update packets. (Remember
  3509.    that multiple advertisements can fit into a single Link State Update
  3510.    packet.)  The age field of each advertisement is incremented by
  3511.    InfTransDelay, as found in the interface data structure, before the
  3512.    advertisement is copied into the outgoing packet.
  3513.  
  3514.    Link State Update packets containing retransmitted advertisements are
  3515.    always sent directly to the adjacent switch. That is, the destination
  3516.    field of the network layer addressing information is set to the
  3517.    switch ID of the neighboring switch.
  3518.  
  3519.    If the adjacent switch goes down, retransmissions will continue until
  3520.    the switch failure is detected and the adjacency is torn down by the
  3521.    VLSP discovery process.  When the adjacency is torn down, the link
  3522.    state retransmission list is cleared.
  3523.  
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530. Kane                         Informational                     [Page 63]
  3531.  
  3532. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3533.  
  3534.  
  3535. 8.2.6 Acknowledging Link State Advertisements
  3536.  
  3537.    Each link state advertisement received by a switch must be
  3538.    acknowledged.  In most cases, this is done by sending a Link State
  3539.    Acknowledgment packet.  However, acknowledgments can also be done
  3540.    implicitly by sending Link State Update packets (see step 4a of
  3541.    Section 8.2.2).
  3542.  
  3543.    Multiple acknowledgments can be grouped together into a single Link
  3544.    State Acknowledgment packet.
  3545.  
  3546.    Sending an acknowledgment
  3547.  
  3548.       Link State Acknowledgment packets are sent back out the interface
  3549.       over which the advertisement was received.  The packet can be sent
  3550.       immediately to the sending neighbor, or it can be delayed and sent
  3551.       when an interval timer expires.
  3552.  
  3553.       o  Sending delayed acknowledgments facilitates the formatting of
  3554.          multiple acknowledgments into a single packet.  This enables a
  3555.          single packet to send acknowledgments to several neighbors at
  3556.          once by using a multicast switch ID in the destination field of
  3557.          the network layer addressing information (see below).  Delaying
  3558.          acknowledgments also randomizes the acknowledgment packets sent
  3559.          by the multiple switches attached to a multi-access network
  3560.          link.
  3561.  
  3562.          Note that the interval used to time delayed acknowledgments
  3563.          must be short (less than RxmtInterval) or needless
  3564.          retransmissions will ensue.
  3565.  
  3566.          Delayed acknowledgments are sent to all adjacent switches
  3567.          associated with the interface.  If the interface state is
  3568.          Point-to-Point, DS, or Backup, the destination field of the
  3569.          network layer addressing information is set to the multicast
  3570.          switch ID AllSPFSwitches.  If the interface state is DS Other,
  3571.          the destination field is set to the multicast switch ID
  3572.          AllDSwitches.
  3573.  
  3574.       o  Immediate acknowledgments are sent directly to a specific
  3575.          neighbor in response to the receipt of duplicate link state
  3576.          advertisements.  These acknowledgments are sent immediately
  3577.          when the duplicate is received.
  3578.  
  3579.       The method used to send a Link State Acknowledgment packet --
  3580.       either delayed or immediate -- depends on the circumstances
  3581.       surrounding the receipt of the advertisement, as shown in Table 6.
  3582.       Note that switches with an interface state of Backup send
  3583.  
  3584.  
  3585.  
  3586. Kane                         Informational                     [Page 64]
  3587.  
  3588. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3589.  
  3590.  
  3591.       acknowledgments differently than other switches because they play
  3592.       a slightly different role in the distribution process (see Section
  3593.       8.2.3).
  3594.  
  3595.                                   Action taken in state
  3596.       Circumstances           Backup               Other states
  3597.  
  3598.       Advertisement was       No ack sent          No ack sent
  3599.       forwarded back out
  3600.       receiving interface
  3601.  
  3602.       Advertisement is        Delayed ack sent     Delayed ack
  3603.       more recent than        if advertisement     sent
  3604.       database copy, but      received from DS,
  3605.       was not forwarded       else do nothing
  3606.       back out receiving
  3607.       interface
  3608.  
  3609.       Advertisement was a     Delayed ack sent     No ack sent
  3610.       duplicate treated       if advertisement
  3611.       as an implied acknow-   received from DS,
  3612.       ledgment (step 4a of    else do nothing
  3613.       Section 8.2.2)
  3614.  
  3615.       Advertisement was a     Immediate ack        Immediate ack
  3616.       duplicate not treated   sent                 sent
  3617.       as an implied acknow-
  3618.       ledgment
  3619.  
  3620.       Advertisement age       Immediate ack        Immediate ack
  3621.       equal to MaxAge and     sent                 sent
  3622.       no current instance
  3623.       found in database
  3624.  
  3625.                Table 6: Sending Link State Acknowledgments
  3626.  
  3627.    Receiving an acknowledgment
  3628.  
  3629.       When the a Link State Acknowledgment packet is received, it is
  3630.       first subjected to a number of consistency checks.  In particular,
  3631.       the packet is associated with a specific neighbor. If the state of
  3632.       that neighbor is less than Exchange, the entire Link State
  3633.       Acknowledgment packet is discarded.
  3634.  
  3635.       Each acknowledgment contained in the packet is processed as
  3636.       follows:
  3637.  
  3638.  
  3639.  
  3640.  
  3641.  
  3642. Kane                         Informational                     [Page 65]
  3643.  
  3644. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3645.  
  3646.  
  3647.       o  If the advertisement being acknowledged has an instance in the
  3648.          link state retransmission list for the sending neighbor, do the
  3649.          following:
  3650.  
  3651.          o  If the acknowledgment is for the same instance as that
  3652.             specified in the list (as determined by the procedure
  3653.             described in Section 7.1.1), remove the instance from the
  3654.             retransmission list.
  3655.  
  3656.          o  Otherwise, log the acknowledgment as questionable.
  3657.  
  3658. 8.3 Aging the Link State Database
  3659.  
  3660.    Each link state advertisement has an age field, containing the
  3661.    advertisement's age, expressed in seconds.  When the advertisement is
  3662.    copied into a Link State Update packet for forwarding out a
  3663.    particular interface, the age is incremented by InfTransDelay seconds
  3664.    to account for the transmission time over the link.  An
  3665.    advertisement's age is never incremented past the value MaxAge.
  3666.    Advertisements with an age of MaxAge are not used to calculate best
  3667.    paths.
  3668.  
  3669.    If a link state advertisement's age reaches MaxAge, the switch
  3670.    flushes the advertisement from the switch fabric by doing the
  3671.    following:
  3672.  
  3673.    o  Originate a new instance of the advertisement with the age field
  3674.       set to MaxAge.  The distribution process will eventually result in
  3675.       the advertisement being removed from the retransmission lists of
  3676.       all switches in the fabric.
  3677.  
  3678.    o  Once the advertisement is no longer contained in the link state
  3679.       retransmission list of any neighbor and no neighbor is in a state
  3680.       of Exchange or Loading, remove  the advertisement from the local
  3681.       link state database.
  3682.  
  3683. 8.3.1 Premature Aging of Advertisements
  3684.  
  3685.    A link state advertisement can be prematurely flushed from the switch
  3686.    fabric by forcing its age to MaxAge and redistributing the
  3687.    advertisement.
  3688.  
  3689.    A switch that was previously the designated switch for a multi-access
  3690.    network link but has lost that status due to a failover to the backup
  3691.    designated switch prematurely ages the network link advertisements it
  3692.    originated for the link.
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698. Kane                         Informational                     [Page 66]
  3699.  
  3700. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3701.  
  3702.  
  3703.    Premature aging also occurs when an advertisement's sequence number
  3704.    must wrap -- that is, when the current advertisement instance has a
  3705.    sequence number of 0x7fffffff.  In this circumstance, the
  3706.    advertisement is prematurely aged so that the next instance of the
  3707.    advertisement can be originated with a sequence number of 0x80000001
  3708.    and be recognized as the most recent instance.
  3709.  
  3710.    A switch may only prematurely age those link state advertisements for
  3711.    which it is the advertising switch.
  3712.  
  3713. 9. Calculating the Best Paths
  3714.  
  3715.    Once an adjacency has been formed and the two switches have
  3716.    synchronized their databases, each switch in the adjacency calculates
  3717.    the best path(s) to all other switches in the fabric, using itself as
  3718.    the root of each path.  In this context, "best" path means that path
  3719.    with the lowest total cost metric across all hops.  If there are
  3720.    multiple paths with the same (lowest) total cost metric, they are all
  3721.    calculated.  Best paths are stored in the area data structure.
  3722.  
  3723.    Paths are calculated using the well-known Dijkstra algorithm. For a
  3724.    detailed description of this algorithm, the reader is referred to
  3725.    [Perlman], or any of a number of standard textbooks dealing with
  3726.    network routing.
  3727.  
  3728.    Note that whenever there is a change in an adjacency relationship, or
  3729.    any change that alters the topology of the switch fabric, the set of
  3730.    best paths must be recalculated.
  3731.  
  3732. 10. Protocol Packets
  3733.  
  3734.    This section describes VLS protocol packets and link state
  3735.    advertisements.
  3736.  
  3737.  
  3738.  
  3739.  
  3740.  
  3741.  
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754. Kane                         Informational                     [Page 67]
  3755.  
  3756. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3757.  
  3758.  
  3759.    There are five distinct VLSP packet types, as listed in Table 7.
  3760.  
  3761.      Type  Packet Name       Function              Description
  3762.  
  3763.      1     Hello             Select DS/Backup DS   Section 10.6.1
  3764.      2     Database          Summarize database
  3765.              Description     contents              Section 10.6.2
  3766.      3     LS Request        Database download     Section 10.6.3
  3767.      4     LS Update         Database update       Section 10.6.4
  3768.      5     LS Ack            Flooding acknow-
  3769.                              ledgment              Section 10.6.5
  3770.  
  3771.                       Table 7: VLSP Packet Types
  3772.  
  3773.  
  3774.    All VLSP packets are encapsulated within a standard ISMP packet, with
  3775.    the VLS packet carried in the ISMP message body.  The ISMP packet is
  3776.    described in Section 10.1.
  3777.  
  3778.    Since it is important that the link state databases remain
  3779.    synchronized throughout the switch fabric, processing of both
  3780.    incoming and outgoing routing protocol packets should take priority
  3781.    over ordinary data packets.  Section 10.2 describes packet
  3782.    processing.
  3783.  
  3784.    All VLSP packets begin with network layer addressing information,
  3785.    described in Section 10.3, followed by a standard header, described
  3786.    in Section 10.4.
  3787.  
  3788.    With the exception of Hello packets, all VLSP packets deal with lists
  3789.    of link state advertisements.  The format of a link state
  3790.    advertisement is described in Section 11.
  3791.  
  3792. 10.1 ISMP Packet Format
  3793.  
  3794.    All VLSP packets are encapsulated within a standard ISMP packet. ISMP
  3795.    packets are of variable length and have the following general
  3796.    structure:
  3797.  
  3798.    o  Frame header
  3799.    o  ISMP packet header
  3800.    o  ISMP message body
  3801.  
  3802.  
  3803.  
  3804.  
  3805.  
  3806.  
  3807.  
  3808.  
  3809.  
  3810. Kane                         Informational                     [Page 68]
  3811.  
  3812. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3813.  
  3814.  
  3815. 10.1.1 Frame Header
  3816.  
  3817.    ISMP packets are encapsulated within an IEEE 802-compliant frame
  3818.    using a standard header as shown below:
  3819.  
  3820.        0                   1                   2                   3
  3821.        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
  3822.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3823.    00 |                                                               |
  3824.       +      Destination address      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3825.    04 |                               |                               |
  3826.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+        Source address         +
  3827.    08 |                                                               |
  3828.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3829.    12 |             Type              |                               |
  3830.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
  3831.    16 |                                                               |
  3832.       +                                                               +
  3833.       :                                                               :
  3834.  
  3835.    Destination address
  3836.  
  3837.       This 6-octet field contains the Media Access Control (MAC) address
  3838.       of the multicast channel over which all switches in the fabric
  3839.       receive ISMP packets.  The destination address of all ISMP packets
  3840.       contain a value of 01-00-1D-00-00-00.
  3841.  
  3842.    Source address
  3843.  
  3844.       This 6-octet field contains the physical (MAC) address of the
  3845.       switch originating the ISMP packet.
  3846.  
  3847.    Type
  3848.  
  3849.       This 2-octet field identifies the type of data carried within the
  3850.       frame.  The type field of ISMP packets contains the value 0x81FD.
  3851.  
  3852.  
  3853.  
  3854.  
  3855.  
  3856.  
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.  
  3866. Kane                         Informational                     [Page 69]
  3867.  
  3868. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3869.  
  3870.  
  3871. 10.1.2 ISMP Packet Header
  3872.  
  3873.    The ISMP packet header consists of 6 octets, as shown below:
  3874.  
  3875.        0                   1                   2                   3
  3876.        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
  3877.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3878.    00 |///////////////////////////////////////////////////////////////|
  3879.       ://////// Frame header /////////////////////////////////////////:
  3880.       +//////// (14 octets)  /////////+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3881.    12 |///////////////////////////////|            Version            |
  3882.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3883.    16 |       ISMP message type       |        Sequence number        |
  3884.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3885.    20 |                                                               |
  3886.       +                                                               +
  3887.       :                                                               :
  3888.  
  3889.  
  3890.    Frame header
  3891.  
  3892.       This 14-octet field contains the frame header.
  3893.  
  3894.       Version
  3895.  
  3896.       This 2-octet field contains the version number of the InterSwitch
  3897.       Message Protocol to which this ISMP packet adheres.  This document
  3898.       describes ISMP Version 2.0.           ISMP message type
  3899.  
  3900.       This 2-octet field contains a value indicating which type of ISMP
  3901.       message is contained within the message body.  Valid values are as
  3902.       follows:
  3903.  
  3904.          1    (reserved)
  3905.          2    Interswitch Keepalive messages
  3906.          3    Interswitch Link State messages
  3907.          4    Interswitch Spanning Tree BPDU messages and
  3908.               Interswitch Remote Blocking messages
  3909.          5    Interswitch Resolve and New User messages
  3910.          6    (reserved)
  3911.          7    Tag-Based Flood messages
  3912.          8    Interswitch Tap messages
  3913.  
  3914.       All VLS protocol messages have an ISMP message type of 3.
  3915.  
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  
  3921.  
  3922. Kane                         Informational                     [Page 70]
  3923.  
  3924. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3925.  
  3926.  
  3927.    Sequence number
  3928.  
  3929.       This 2-octet field contains an internally generated sequence
  3930.       number used by the various protocol handlers for internal
  3931.       synchronization of messages.
  3932.  
  3933. 10.1.3 ISMP Message Body
  3934.  
  3935.    The ISMP message body is a variable-length field containing the
  3936.    actual data of the ISMP message.  The length and content of this
  3937.    field are determined by the value found in the message type field.
  3938.    VLSP packets are contained in the ISMP message body.
  3939.  
  3940. 10.2 VLSP Packet Processing
  3941.  
  3942.    Note that with the exception of Hello packets, VLSP packets are sent
  3943.    only between adjacent neighbors.  Therefore, all packets travel a
  3944.    single hop.
  3945.  
  3946.    VLSP does not support fragmentation and reassembly of packets.
  3947.    Therefore, packets containing lists of link state advertisements or
  3948.    advertisement headers must be formatted such that they contain only
  3949.    as many advertisements or headers as will fit within the size
  3950.    constraints of a standard ethernet frame.
  3951.  
  3952.    When a protocol packet is received by a switch, it must first pass
  3953.    the following criteria before being accepted for further processing:
  3954.  
  3955.    o  The checksum number must be correct.
  3956.  
  3957.    o  The destination switch ID (as found in the network layer address
  3958.       information) must be the switch ID of the receiving switch, or one
  3959.       of the multicast switch IDs AllSPFSwitches or AllDSwitches.
  3960.  
  3961.       If the destination switch ID is the multicast switch ID
  3962.       AllDSwitches, the state of the receiving interface must be Point-
  3963.       to-Point, DS, or Backup.
  3964.  
  3965.    o  The source switch ID (as found in the network layer address
  3966.       information) must not be that of the receiving switch.  (That is,
  3967.       locally originated packets should be discarded.)
  3968.  
  3969.    At this point, if the packet is a Hello packet, it is accepted for
  3970.    further processing.
  3971.  
  3972.  
  3973.  
  3974.  
  3975.  
  3976.  
  3977.  
  3978. Kane                         Informational                     [Page 71]
  3979.  
  3980. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  3981.  
  3982.  
  3983.    Since all other packet types are only sent between adjacent
  3984.    neighbors, the packet must have been sent by one of the switch's
  3985.    active neighbors.  If the source switch ID matches the switch ID of
  3986.    one of the receiving switch's active neighbors (as stored in the
  3987.    interface data structure associated with the inport interface), the
  3988.    packet is accepted for further processing.  Otherwise, the packet is
  3989.    discarded.
  3990.  
  3991. 10.3 Network Layer Address Information
  3992.  
  3993.    As mentioned in Section 2.2.1, portions of the VLS protocol (as
  3994.    derived from OSPF) are dependent on certain network layer addresses
  3995.    -- in particular, the AllSPFSwitches and AllDSwitches multicast
  3996.    addresses that drive the distribution of link state advertisements
  3997.    throughout the switch fabric.  In order to facilitate the
  3998.    implementation of the protocol at the physical MAC layer, network
  3999.    layer address information is encapsulated in the VSLP packets.  This
  4000.    information immediately follows the ISMP frame and packet header and
  4001.    immediately precedes the VLSP packet header, as shown below:
  4002.  
  4003.        0                   1                   2                   3
  4004.        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
  4005.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4006.       |                                                               |
  4007.       :                  frame header / ISMP header                   :
  4008.       |                                                               |
  4009.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4010.    00 |                                                               |
  4011.       :                      Unused (20 octets)                       :
  4012.       |                                                               |
  4013.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4014.    20 |                                                               |
  4015.       +                       Source switch ID                        +
  4016.    24 |                                                               |
  4017.       +                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4018.    28 |                               |                               |
  4019.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
  4020.    32 |                                                               |
  4021.       +                     Destination switch ID                     +
  4022.    36 |                                                               |
  4023.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4024.    40 |                                                               |
  4025.       :                          VLSP header                          :
  4026.       |                                                               |
  4027.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4028.  
  4029.  
  4030.  
  4031.  
  4032.  
  4033.  
  4034. Kane                         Informational                     [Page 72]
  4035.  
  4036. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4037.  
  4038.  
  4039.    Source switch ID
  4040.  
  4041.       This 10-octet field contains the switch ID of the sending switch.
  4042.  
  4043.    Destination switch ID
  4044.  
  4045.       This 10-octet field contains the switch ID of the packet
  4046.       destination.  The value here is set as follows:
  4047.  
  4048.       o  Hello packets are addressed to the multicast switch ID
  4049.          AllSPFSwitches.
  4050.  
  4051.       o  The designated switch and the backup designated switch address
  4052.          initial Link State Update packets and Link State Acknowledgment
  4053.          packets to the multicast switch ID AllSPFSwitches.
  4054.  
  4055.       o  All other switches address initial Link State Update packets
  4056.          and Link State Acknowledgment packets to the multicast switch
  4057.          ID AllDSwitches.
  4058.  
  4059.       o  Retransmissions of Link State Update packets are always
  4060.          addressed directly to the nonresponding switch.
  4061.  
  4062.       o  Database Description packets and Link State Request are always
  4063.          addressed directly to the other switch participating in the
  4064.          database exchange process.
  4065.  
  4066.    VLSP header
  4067.  
  4068.       This 30-octet field contains the VLSP standard header.  See
  4069.       Section 10.4.
  4070.  
  4071. 10.4 VLSP Packet Header
  4072.  
  4073.    Every VLSP packet starts with a common 30-octet header.  This header,
  4074.    along with the data found in the network layer address information,
  4075.    contains all the data necessary to determine whether the packet
  4076.    should be accepted for further processing. (See Section 10.1.)
  4077.  
  4078.    The format of the VLSP header is shown below.  Note that the header
  4079.    starts at offset 36 of the ISMP message body, following the network
  4080.    layer address information.
  4081.  
  4082.  
  4083.  
  4084.  
  4085.  
  4086.  
  4087.  
  4088.  
  4089.  
  4090. Kane                         Informational                     [Page 73]
  4091.  
  4092. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4093.  
  4094.  
  4095.         0                   1                   2                   3
  4096.        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
  4097.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4098.       |                                                               |
  4099.       :                  frame header / ISMP header                   :
  4100.       |                                                               |
  4101.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4102.    00 |                                                               |
  4103.       :               Network layer address information               :
  4104.       |                                                               |
  4105.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4106.    40 |    (unused)   |     Type      |         Packet length         |
  4107.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4108.    44 |                                                               |
  4109.       +                       Source switch ID                        +
  4110.    48 |                                                               |
  4111.       +                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4112.    52 |                               |         Area ID . . .         |
  4113.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4114.    56 |         Area ID . . .         |           Checksum            |
  4115.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4116.    60 |            Autype             |                               |
  4117.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+        Authentication         +
  4118.    64 |                                                               |
  4119.       +                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4120.    68 |                               |
  4121.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4122.  
  4123.  
  4124.    Type
  4125.  
  4126.       This 1-octet field contains the packet type.  Possible values are
  4127.       as follows:
  4128.  
  4129.          1   Hello
  4130.          2   Database Description
  4131.          3   Link State Request
  4132.          4   Link State Update
  4133.          5   Link State Acknowledgment
  4134.  
  4135.    Packet length
  4136.  
  4137.       This 2-octet field contains the length of the protocol packet, in
  4138.       bytes, calculated from the start of the VLSP header, at offset 20
  4139.       of the ISMP message body.  If the packet length is not an integral
  4140.       number of 16-bit words, the packet is padded with an octet of zero
  4141.       (see the description of the checksum field, below).
  4142.  
  4143.  
  4144.  
  4145.  
  4146. Kane                         Informational                     [Page 74]
  4147.  
  4148. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4149.  
  4150.  
  4151.    Switch ID
  4152.  
  4153.       This 10-octet field contains the switch ID of the sending switch.
  4154.  
  4155.    Area ID
  4156.  
  4157.       This 4-octet field contains the area identifier.  Since VLSP does
  4158.       not support multiple areas, the value here is always zero.
  4159.  
  4160.    Checksum
  4161.  
  4162.       This 2-octet field contains the packet checksum value.  The
  4163.       checksum is calculated as the 16-bit one's complement of the one's
  4164.       complement sum of all the 16-bit words in the packet, beginning
  4165.       with the VLSP header, excluding the authentication field.  If the
  4166.       packet length is not an integral number of 16-bit words, the
  4167.       packet is padded with an octet of zero before calculating the
  4168.       checksum.
  4169.  
  4170.    AuType
  4171.  
  4172.       This 2-octet field identifies the authentication scheme to be used
  4173.       for the packet.  Since authentication is not supported by this
  4174.       version of VLSP, this field contains zero.
  4175.  
  4176.    Authentication
  4177.  
  4178.       This 8-octet field is reserved for use by the authentication
  4179.       scheme.  Since authentication is not supported by this version of
  4180.       VLSP, this field contains zeroes.
  4181.  
  4182. 10.5 Options Field
  4183.  
  4184.    Hello packets and Database Description packets, as well as link state
  4185.    advertisements, contain a 1-octet options field.  Using this field, a
  4186.    switch can communicate its optional capabilities to other VLSP
  4187.    switches.  The receiving switch can then choose whether or not to
  4188.    support those optional capabilities.  Thus, switches of differing
  4189.    capabilities potentially can be mixed within a single VLSP routing
  4190.    domain.
  4191.  
  4192.    Two optional capabilities are currently defined in the options field:
  4193.    routing based on Type of Service (TOS) and support for external
  4194.    routing beyond the local switch fabric.  These two capabilities are
  4195.    specified in the options field as shown below.
  4196.  
  4197.  
  4198.  
  4199.  
  4200.  
  4201.  
  4202. Kane                         Informational                     [Page 75]
  4203.  
  4204. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4205.  
  4206.  
  4207.                              +-+-+-+-+-+-+-+-+
  4208.                              |0|0|0|0|0|0|E|T|
  4209.                              +-+-+-+-+-+-+-+-+
  4210.  
  4211.                              The options field
  4212.  
  4213.    T-bit
  4214.  
  4215.       The T-bit specifies the switch's Type of Service (TOS) capability.
  4216.       If the T-bit is set, the switch supports routing based on nonzero
  4217.       types of service.
  4218.  
  4219.    E-bit
  4220.  
  4221.       The E-bit specifies the switch's external routing capability. If
  4222.       the E-bit is set, the switch supports external routing.
  4223.  
  4224.    Note:  The current version of VLSP supports neither of these
  4225.    capabilities.  Therefore, both the T-bit and the E-bit are clear and
  4226.    the options field contains a value of zero.
  4227.  
  4228. 10.6 Packet Formats
  4229.  
  4230.    This section contains detailed descriptions of the five VLS protocol
  4231.    packets.
  4232.  
  4233. 10.6.1 Hello Packets
  4234.  
  4235.    Hello packets are sent periodically over multi-access switch
  4236.    interfaces in order to discover and maintain neighbor relationships.
  4237.  
  4238.    Note:  Hello packets are not sent over point-to-point network links.
  4239.    For point-to-point links, the VLS protocol relies on the VlanHello
  4240.    protocol [IDhello] to notify it of neighboring switches.
  4241.  
  4242.    Since all switches connected to a common network link must agree on
  4243.    certain interface parameters, these parameters are included in each
  4244.    Hello packet.  A switch receiving a Hello packet that contains
  4245.    parameters inconsistent with its own view of the interface will not
  4246.    establish a neighbor relationship with the sending switch.
  4247.  
  4248.    The format of a Hello packet is shown below.
  4249.  
  4250.  
  4251.  
  4252.  
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258. Kane                         Informational                     [Page 76]
  4259.  
  4260. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4261.  
  4262.  
  4263.         0                   1                   2                   3
  4264.         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
  4265.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4266.     00 |                                                               |
  4267.        :              Network layer addressing / VLSP header           :
  4268.        |                                                               |
  4269.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4270.     70 |                      (unused -- must be 0)                    |
  4271.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4272.     74 |         HelloInt              |    Options    |   Priority    |
  4273.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4274.     78 |                            DeadInt                            |
  4275.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4276.     82 |                                                               |
  4277.        +                      Designated switch ID                     +
  4278.     86 |                                                               |
  4279.        +                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4280.     90 |                               |                               |
  4281.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
  4282.     94 |                                                               |
  4283.        +                   Backup designated switch ID                 +
  4284.     98 |                                                               |
  4285.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4286.    102 |                                                               |
  4287.        +                                                               +
  4288.        :                          Neighbor list                        :
  4289.        +                                                               +
  4290.        |                                                               |
  4291.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4292.  
  4293.    Network layer addressing / VLSP header
  4294.  
  4295.       This 70-octet field contains the network layer addressing
  4296.       information and the standard VLS protocol packet header.  The
  4297.       packet header type field contains a value of 1.
  4298.  
  4299.    HelloInt
  4300.  
  4301.       This 2-octet field contains the interval, in seconds, at which
  4302.       this switch sends Hello packets.
  4303.  
  4304.    Options
  4305.  
  4306.       This 1-octet field contains the optional capabilities supported by
  4307.       the switch, as described in Section 10.5.
  4308.  
  4309.  
  4310.  
  4311.  
  4312.  
  4313.  
  4314. Kane                         Informational                     [Page 77]
  4315.  
  4316. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4317.  
  4318.  
  4319.    Priority
  4320.  
  4321.       This 1-octet field contains the switch priority used in selecting
  4322.       the designated switch and backup designated switch (see Section
  4323.       6.3.1).  If the value here is zero, the switch is ineligible to
  4324.       become the designated switch or the backup designated switch.
  4325.  
  4326.    DeadInt
  4327.  
  4328.       This 4-octet field contains the length of time, in seconds, that
  4329.       neighboring switches will wait before declaring the interface down
  4330.       once they stop receiving Hello packets over the interface.  The
  4331.       value here is equal to the value of SwitchDeadInterval, as found
  4332.       in the interface data structure.
  4333.  
  4334.    Designated switch
  4335.  
  4336.       This 10-octet field contains the switch ID of the designated
  4337.       switch for this network link, as currently understood by the
  4338.       sending switch.  This value is set to zero if the designated
  4339.       switch selection process has not yet begun.
  4340.  
  4341.    Backup designated switch
  4342.  
  4343.       This 10-octet field contains the switch ID of the backup
  4344.       designated switch for the network link, as currently understood by
  4345.       the sending switch.  This value is set to zero if the backup
  4346.       designated switch selection process has not yet begun.
  4347.  
  4348.    Neighbor list
  4349.  
  4350.       This variable-length field contains a list of switch IDs of each
  4351.       switch from which the sending switch has received a valid Hello
  4352.       packet within the last SwitchDeadInterval seconds.
  4353.  
  4354. 10.6.2 Database Description Packets
  4355.  
  4356.    Database Description packets are exchanged while an adjacency is
  4357.    being formed between two neighboring switches and are used to
  4358.    describe the contents of the topological database.  For a complete
  4359.    description of the database exchange process, see Section 7.2.
  4360.  
  4361.    The format of a Database Description packet is shown below.
  4362.  
  4363.  
  4364.  
  4365.  
  4366.  
  4367.  
  4368.  
  4369.  
  4370. Kane                         Informational                     [Page 78]
  4371.  
  4372. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4373.  
  4374.  
  4375.        0                   1                   2                   3
  4376.        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
  4377.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4378.    00 |                                                               |
  4379.       :              Network layer addressing / VLSP header           :
  4380.       |                                                               |
  4381.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4382.    70 |     (unused -- must be 0)     |    Options    |     Flags     |
  4383.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4384.    74 |                        Sequence number                        |
  4385.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4386.    78 |                                                               |
  4387.       +                                                               +
  4388.       :                 Link state advertisement headers              :
  4389.       +                                                               +
  4390.       |                                                               |
  4391.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4392.  
  4393.  
  4394.    Network layer addressing / VLSP header
  4395.  
  4396.       This 70-octet field contains the network layer addressing
  4397.       information and the standard VLS protocol packet header.  The
  4398.       packet header type field contains a value of 2.
  4399.  
  4400.    Options
  4401.  
  4402.       This 1-octet field contains the optional capabilities supported by
  4403.       the switch, as described in Section 10.5.
  4404.  
  4405.    Flags
  4406.  
  4407.       This 1-octet field contains a set of bit flags that are used to
  4408.       coordinate the database exchange process.  The format of this
  4409.       octet is as follows:
  4410.  
  4411.                           +-+-+-+-+-+-+-+-+
  4412.                           |0|0|0|0|0|I|M|MS
  4413.                           +-+-+-+-+-+-+-+-+
  4414.  
  4415.    I-bit (Init)
  4416.  
  4417.       The I-bit is used to signal the start of the exchange.  It is set
  4418.       while the two switches negotiate the master/slave relationship and
  4419.       the starting sequence number.
  4420.  
  4421.  
  4422.  
  4423.  
  4424.  
  4425.  
  4426. Kane                         Informational                     [Page 79]
  4427.  
  4428. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4429.  
  4430.  
  4431.    M-bit (More)
  4432.  
  4433.       The M-bit is set to indicate that more Database Description
  4434.       packets to follow.
  4435.  
  4436.    MS-bit (Master/Slave)
  4437.  
  4438.       The MS-bit is used to indicate which switch is the master of the
  4439.       exchange.  If the bit is set, the sending switch is the master
  4440.       during the database exchange process.  If the bit is clear, the
  4441.       switch is the slave.
  4442.  
  4443.    Sequence number
  4444.  
  4445.       This 4-octet field is used to sequence the Database Description
  4446.       packets during the database exchange process.  The two switches
  4447.       involved in the exchange process agree on the initial value of the
  4448.       sequence number during the master/slave negotiation.  The number
  4449.       is then incremented for each Database Description packet in the
  4450.       exchange.
  4451.  
  4452.       To acknowledge each Database Description packet sent by the
  4453.       master, the slave sends a Database Description packet that echoes
  4454.       the sequence number of the packet being acknowledged.
  4455.  
  4456.    Link state advertisement headers
  4457.  
  4458.       This variable-length field contains a list of link state headers
  4459.       that describe a portion of the master's topological database.
  4460.       Each header uniquely identifies a link state advertisement and its
  4461.       current instance.  (See Section 11.1 for a detailed description of
  4462.       a link state advertisement header.)  The number of headers
  4463.       included in the list is calculated implicitly from the length of
  4464.       the packet, as stored in the VLSP packet header (see Section
  4465.       10.4).
  4466.  
  4467. 10.6.3 Link State Request Packets
  4468.  
  4469.    Link State Request packets are used to request those pieces of the
  4470.    neighbor's database that the sending switch has discovered (during
  4471.    the database exchange process) are more up-to-date than instances in
  4472.    its own database.  Link State Request packets are sent as the last
  4473.    step in bringing up an adjacency.  (See Section 7.3.)
  4474.  
  4475.    The format of a Link State Request packet is shown below.
  4476.  
  4477.  
  4478.  
  4479.  
  4480.  
  4481.  
  4482. Kane                         Informational                     [Page 80]
  4483.  
  4484. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4485.  
  4486.  
  4487.        0                   1                   2                   3
  4488.        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
  4489.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4490.    00 |                                                               |
  4491.       :              Network layer addressing / VLSP header           :
  4492.       |                                                               |
  4493.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4494.    70 |                        Link state type                        |
  4495.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4496.    74 |                                                               |
  4497.       +                         Link state ID                         +
  4498.    88 |                                                               |
  4499.       +                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4500.    82 |                               |                               |
  4501.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
  4502.    86 |                                                               |
  4503.       +                      Advertising switch ID                    +
  4504.    90 |                                                               |
  4505.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4506.    94 |                                                               |
  4507.       :                            . . .                              :
  4508.       |                                                               |
  4509.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4510.  
  4511.  
  4512.    Network layer addressing / VLSP header
  4513.  
  4514.       This 70-octet field contains the network layer addressing
  4515.       information and the standard VLS protocol packet header.  The
  4516.       packet header type field contains a value of 3.
  4517.  
  4518.    Link state type
  4519.  
  4520.       This 4-octet field contains the link state type of the requested
  4521.       link state advertisement, as stored in the advertisement header.
  4522.  
  4523.    Link state ID
  4524.  
  4525.       This 10-octet field contains the link state ID of the requested
  4526.       link state advertisement, as stored in the advertisement header.
  4527.  
  4528.    Advertising switch
  4529.  
  4530.       This 10-octet field contains the switch ID of advertising switch
  4531.       for the requested link state advertisement, as stored in the
  4532.       advertisement header.
  4533.  
  4534.  
  4535.  
  4536.  
  4537.  
  4538. Kane                         Informational                     [Page 81]
  4539.  
  4540. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4541.  
  4542.  
  4543.       Note that the last three fields uniquely identify the
  4544.       advertisement, but not its instance.  The receiving switch will
  4545.       respond with its most recent instance of the specified
  4546.       advertisement.
  4547.  
  4548.       Multiple link state advertisements can be requested in a single
  4549.       Link State Request packet by repeating the link state type, ID,
  4550.       and advertising switch for each requested advertisement.  The
  4551.       number of advertisements requested is calculated implicitly from
  4552.       the length of the packet, as stored in the VLSP packet header.
  4553.  
  4554. 10.6.4 Link State Update Packets
  4555.  
  4556.    Link State Update packets are used to respond to a Link State Request
  4557.    packet or to advertise a new instance of one or more link state
  4558.    advertisements.  Link State Update packets are acknowledged with Link
  4559.    State Acknowledgment packets.  For more information on the use of
  4560.    Link State Update packets, see Section 7 and Section 8.
  4561.  
  4562.    The format of a Link State Update packet is shown below.
  4563.  
  4564.        0                   1                   2                   3
  4565.        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
  4566.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4567.    00 |                                                               |
  4568.       :              Network layer addressing / VLSP header           :
  4569.       |                                                               |
  4570.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4571.    70 |                        # advertisements                       |
  4572.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4573.    74 |                                                               |
  4574.       +                                                               +
  4575.       :                    Link state advertisements                  :
  4576.       +                                                               +
  4577.       |                                                               |
  4578.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4579.  
  4580.    Network layer addressing / VLSP header
  4581.  
  4582.       This 70-octet field contains the network layer addressing
  4583.       information and the standard VLS protocol packet header.  The
  4584.       packet header type field contains a value of 4.
  4585.  
  4586.    # advertisements
  4587.  
  4588.       This 4-octet field contains the number of link state
  4589.       advertisements included in the packet.
  4590.  
  4591.  
  4592.  
  4593.  
  4594. Kane                         Informational                     [Page 82]
  4595.  
  4596. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4597.  
  4598.  
  4599.    Link state advertisements
  4600.  
  4601.       This variable-length field contains a list of link state
  4602.       advertisements.  For a detailed description of the different types
  4603.       of link state advertisements, see Section 11.
  4604.  
  4605. 10.6.5 Link State Acknowledgment Packets
  4606.  
  4607.    Link State Acknowledgment Packets are used to explicitly acknowledge
  4608.    one or more Link State Update packets, thereby making the
  4609.    distribution of link state advertisements reliable.  (See Section
  4610.    8.2.6.)
  4611.  
  4612.    The format of a Link State Acknowledgment packet is shown below.
  4613.  
  4614.        0                   1                   2                   3
  4615.        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
  4616.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4617.    00 |                                                               |
  4618.       :              Network layer addressing / VLSP header           :
  4619.       |                                                               |
  4620.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4621.    70 |                                                               |
  4622.       +                                                               +
  4623.       :                 Link state advertisement headers              :
  4624.       +                                                               +
  4625.       |                                                               |
  4626.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4627.  
  4628.    Network layer addressing / VLSP header
  4629.  
  4630.       This 70-octet field contains the network layer addressing
  4631.       information and the standard VLS protocol packet header.  The
  4632.       packet header type field contains a value of 5.
  4633.  
  4634.    Link state advertisement headers
  4635.  
  4636.       This variable-length field contains a list of link state headers
  4637.       that are being acknowledged by this packet.  Each header uniquely
  4638.       identifies a link state advertisement and its current instance.
  4639.       (See Section 11.1 for a detailed description of a link state
  4640.       advertisement header.)  The number of headers included in the list
  4641.       is calculated implicitly from the length of the packet, as stored
  4642.       in the VLSP packet header (see Section 10.4).
  4643.  
  4644.  
  4645.  
  4646.  
  4647.  
  4648.  
  4649.  
  4650. Kane                         Informational                     [Page 83]
  4651.  
  4652. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4653.  
  4654.  
  4655. 11. Link State Advertisement Formats
  4656.  
  4657.    Link state advertisements are used to describe various pieces of the
  4658.    routing topology within the switch fabric.  Each switch in the fabric
  4659.    maintains a complete set of all link state advertisements generated
  4660.    throughout the fabric.  (Section 8.1 describes the circumstances
  4661.    under which a link state advertisement is originated.  Section 8.2
  4662.    describes how advertisements are distributed throughout the switch
  4663.    fabric.) This collection of advertisements, known as the link state
  4664.    (or topological) database, is used to calculate a set of best paths
  4665.    to all other switches in the fabric.
  4666.  
  4667.    There are two types of link state advertisement, as listed in Table
  4668.    8.
  4669.  
  4670.         Type   Name            Function             Description
  4671.  
  4672.         1      Switch link     Lists all network    Section 11.2
  4673.                advertisement   linksattached to
  4674.                                a switch
  4675.  
  4676.         2      Network link    Lists all adjacen-   Section 11.3
  4677.                advertisement   cies on a network
  4678.                                link
  4679.  
  4680.                 Table 8: Link State Advertisement Types
  4681.  
  4682.    Each link state advertisement begins with a standard header,
  4683.    described in Section 11.1.
  4684.  
  4685. 11.1 Link State Advertisement Headers
  4686.  
  4687.    All link state advertisements begin with a common 32-octet header.
  4688.    This header contains information that uniquely identifies the
  4689.    advertisement -- its type, link state ID, and the switch ID of its
  4690.    advertising switch.  Also, since multiple instances of a link state
  4691.    advertisement can exist concurrently in the switch fabric, the header
  4692.    contains information that permits a switch to determine which
  4693.    instance is the most recent -- the age, sequence number and checksum.
  4694.  
  4695.    The format of the link state advertisement header is shown below.
  4696.  
  4697.  
  4698.  
  4699.  
  4700.  
  4701.  
  4702.  
  4703.  
  4704.  
  4705.  
  4706. Kane                         Informational                     [Page 84]
  4707.  
  4708. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4709.  
  4710.  
  4711.        0                   1                   2                   3
  4712.        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
  4713.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4714.    00 |              Age              |    Options    |    LS Type    |
  4715.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4716.    04 |                                                               |
  4717.       +                         Link state ID                         +
  4718.    08 |                                                               |
  4719.       +                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4720.    12 |                               |                               |
  4721.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
  4722.    16 |                                                               |
  4723.       +                      Advertising switch ID                    +
  4724.    20 |                                                               |
  4725.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4726.    24 |                         Sequence number                       |
  4727.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4728.    28 |           Checksum            |             Length            |
  4729.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4730.  
  4731.  
  4732.    Age
  4733.  
  4734.       This 2-octet field contains the time, in seconds, since this
  4735.       instance of the link state advertisement was originated.
  4736.  
  4737.    Options
  4738.  
  4739.       This 1-octet field contains the optional capabilities supported by
  4740.       the advertising switch, as described in Section 10.5.
  4741.  
  4742.    LS type
  4743.  
  4744.       This 1-octet field contains the type of the link state
  4745.       advertisement.  Possible values are:
  4746.  
  4747.          1   Switch link advertisement
  4748.          2   Network link advertisement
  4749.  
  4750.    Link state ID
  4751.  
  4752.       This 10-octet field identifies the switch that originates
  4753.       advertisements for the link.  The content of this field depends on
  4754.       the advertisement's type.
  4755.  
  4756.       o  For a switch link advertisement, this field contains the switch
  4757.          ID of the originating switch
  4758.  
  4759.  
  4760.  
  4761.  
  4762. Kane                         Informational                     [Page 85]
  4763.  
  4764. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4765.  
  4766.  
  4767.          o  For a network link advertisement, this field contains the
  4768.          switch ID of the designated switch for the link
  4769.  
  4770.    Note:  In VLSP, the link state ID of an advertisement is always the
  4771.    same as the advertising switch.  This level of redundancy results
  4772.    from the fact that OSPF uses additional types of link state
  4773.    advertisements for which the originating switch is not the
  4774.    advertising switch.
  4775.  
  4776.    Advertising switch
  4777.  
  4778.       This 10-octet field contains the switch ID of the switch that
  4779.       originated the link state advertisement.
  4780.  
  4781.    Sequence number
  4782.  
  4783.       This 4-octet field is used to sequence the instances of a
  4784.       particular link state advertisement.  The number is incremented
  4785.       for each new instance.
  4786.  
  4787.    Checksum
  4788.  
  4789.       This 2-octet field contains the checksum of the complete contents
  4790.       of the link state advertisement, excluding the age field.  The
  4791.       checksum used is commonly referred to as the Fletcher checksum and
  4792.       is documented in [RFC905].  Note that since this checksum is
  4793.       calculated for each separate advertisement, a protocol packet
  4794.       containing lists of advertisements or advertisement headers will
  4795.       contain multiple checksum values.
  4796.  
  4797.    Length
  4798.  
  4799.       This 2-octet field contains the total length, in octets, of the
  4800.       link state advertisement, including the header.
  4801.  
  4802. 11.2 Switch Link Advertisements
  4803.  
  4804.    A switch link advertisement is used to describe all functioning
  4805.    network links of a switch, including the cost of using each link.
  4806.  
  4807.    Each functioning switch in the fabric originates one, and only one,
  4808.    switch link advertisement -- all of the switch's links must be
  4809.    described in a single advertisement.  A switch originates its first
  4810.    switch link advertisement (containing no links) when it first becomes
  4811.    functional.  It then originates a new instance of the advertisement
  4812.    each time any of its neighbor states changes such that the contents
  4813.    of the advertisement changes.   See Section 8.1 for details on
  4814.    originating a switch link advertisement.
  4815.  
  4816.  
  4817.  
  4818. Kane                         Informational                     [Page 86]
  4819.  
  4820. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4821.  
  4822.  
  4823.    The format of a switch link advertisement is shown below.
  4824.  
  4825.        0                   1                   2                   3
  4826.        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
  4827.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4828.    00 |                                                               |
  4829.       :                       Link state header                       :
  4830.       |                                                               |
  4831.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4832.    32 |      (unused -- must be 0)    |            # links            |
  4833.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4834.    36 |                                                               |
  4835.       +                            Link ID                            +
  4836.    40 |                                                               |
  4837.       +                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4838.    44 |                               |                               |
  4839.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
  4840.    48 |                                                               |
  4841.       +                           Link data                           +
  4842.    52 |                                                               |
  4843.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4844.    56 |   Link type   |     # TOS     |         TOS 0 metric          |
  4845.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4846.    60 |                                                               |
  4847.       :                            . . .                              :
  4848.       |                                                               |
  4849.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4850.  
  4851.    Link state header
  4852.  
  4853.       This 32-octet field contains the standard link state advertisement
  4854.       header.  The type field contains a 1, and the link state ID field
  4855.       contains the switch ID of the advertising switch.
  4856.  
  4857.    # links
  4858.  
  4859.       This 2-octet field contains the number of links described by this
  4860.       advertisement.  This value must be equal to the total number of
  4861.       functioning network links attached to the switch.
  4862.  
  4863.  
  4864.  
  4865.  
  4866.  
  4867.  
  4868.  
  4869.  
  4870.  
  4871.  
  4872.  
  4873.  
  4874. Kane                         Informational                     [Page 87]
  4875.  
  4876. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4877.  
  4878.  
  4879.    Link ID
  4880.  
  4881.       This 10-octet field identifies the other switch that originates
  4882.       link state advertisements for the link, providing a key for
  4883.       accessing other link state advertisements for the link.  The value
  4884.       here is based on the link type, as follows:
  4885.  
  4886.       o  For point-to-point links, this field contains the switch ID of
  4887.          the neighbor switch connected to the other end of the link.
  4888.  
  4889.       o  For multi-access links, this field contains the switch ID of
  4890.          the designated switch for the link.
  4891.  
  4892.    Link data
  4893.  
  4894.       This 10-octet field contains additional data necessary to
  4895.       calculate the set of best paths.  Typically, this field contains
  4896.       the interface ID of the link.
  4897.  
  4898.    Link type
  4899.  
  4900.       This 1-octet field contains the type of link being described.
  4901.       Possible values are as follows:
  4902.  
  4903.          1   Point-to-point link
  4904.          2   Multi-access link
  4905.  
  4906.    # TOS
  4907.  
  4908.       This 1-octet field contains the number of nonzero type of service
  4909.       metrics specified for the link.  Since the current version of VLSP
  4910.       does not support routing based on nonzero types of service, this
  4911.       field contains a value of zero.
  4912.  
  4913.    TOS 0 metric
  4914.  
  4915.       This 2-octet field contains the cost of using this link for the
  4916.       zero TOS.  This value is expressed in the link state metric and
  4917.       must be greater than zero.
  4918.  
  4919.    Note that the last five fields are repeated for all functioning
  4920.    network links attached to the advertising switch.  If the interface
  4921.    state of attached link changes, the switch must originate a new
  4922.    instance of the switch link advertisement.
  4923.  
  4924.  
  4925.  
  4926.  
  4927.  
  4928.  
  4929.  
  4930. Kane                         Informational                     [Page 88]
  4931.  
  4932. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4933.  
  4934.  
  4935. 11.3 Network Link Advertisements
  4936.  
  4937.    A network link advertisement is originated by the designated switch
  4938.    of each multi-access network link.  The advertisement describes all
  4939.    switches attached to the link that are currently fully adjacent to
  4940.    the designated switch, including the designated switch itself.  See
  4941.    Section 8.1 for details on originating a switch link advertisement.
  4942.  
  4943.    Network link advertisements are not generated for point-to-point
  4944.    network links.
  4945.  
  4946.    The format of a network link advertisement is show below.
  4947.  
  4948.        0                   1                   2                   3
  4949.        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
  4950.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4951.    00 |                                                               |
  4952.       :                       Link state header                       :
  4953.       |                                                               |
  4954.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4955.    32 |                           (unused)                            |
  4956.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4957.    36 |                                                               |
  4958.       +                                                               +
  4959.       :                          Switch list                          :
  4960.       +                                                               +
  4961.       |                                                               |
  4962.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4963.  
  4964.    Link state header
  4965.  
  4966.       This 32-octet field contains the standard link state advertisement
  4967.       header.  The type field contains a 2, and the link state ID field
  4968.       contains the switch ID of the designated switch.
  4969.  
  4970.    Switch list
  4971.  
  4972.       The switch IDs of all switches attached to the network link that
  4973.       are currently fully adjacent to the designated switch. The
  4974.       designated switch includes itself in this list.
  4975.  
  4976. 12. Protocol Parameters
  4977.  
  4978.    This section contains a compendium of the parameters used in the VLS
  4979.    protocol.
  4980.  
  4981.  
  4982.  
  4983.  
  4984.  
  4985.  
  4986. Kane                         Informational                     [Page 89]
  4987.  
  4988. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  4989.  
  4990.  
  4991. 12.1 Architectural Constants
  4992.  
  4993.    Several VLS protocol parameters have fixed architectural values. The
  4994.    name of each architectural constant follows, together with its value
  4995.    and a short description of its function.
  4996.  
  4997.    AllSPFSwitches
  4998.  
  4999.       The multicast switch ID to which Hello packets and certain other
  5000.       protocol packets are addressed, as specified in the destination
  5001.       switch ID field of the network layer address information (see
  5002.       Section 10.3).  The value of AllSPFSwitches is E0-00-00-05-00-00-
  5003.       00-00.
  5004.  
  5005.    AllDSwitches
  5006.  
  5007.       The multicast switch ID to which Link State Update packets and
  5008.       Link State Acknowledgment packets are addressed, as specified in
  5009.       the destination switch ID field of the network layer address
  5010.       information (see Section 10.3), when they are destined for the
  5011.       designated switch or the backup designated switch of a network
  5012.       link.  The value of AllDSwitches is E0-00-00-06-00-00-00-00.
  5013.  
  5014.    LSRefreshTime
  5015.  
  5016.       The interval at which the set of best paths recalculated if no
  5017.       other state changes have forced a recalculation.  The value of
  5018.       LSRefreshTime is set to 1800 seconds (30 minutes).
  5019.  
  5020.    MinLSInterval
  5021.  
  5022.       The minimum time between distinct originations of any particular
  5023.       link state advertisement.  The value of MinLSInterval is set to 5
  5024.       seconds.
  5025.  
  5026.    MaxAge
  5027.  
  5028.       The maximum age that a link state advertisement can attain. When
  5029.       an advertisement's age reaches MaxAge, it is redistributed
  5030.       throughout the switch fabric.  When the originating switch
  5031.       receives an acknowledgment for the advertisement, indicating that
  5032.       the advertisement has been removed from all neighbor Link state
  5033.       retransmission lists, the advertisement is removed from the
  5034.       originating switch's database.  Advertisements having age MaxAge
  5035.       are not used to calculate the set of best paths.  The value of
  5036.       MaxAge must be greater than LSRefreshTime.  The value of MaxAge is
  5037.       set to 3600 seconds (1 hour).
  5038.  
  5039.  
  5040.  
  5041.  
  5042. Kane                         Informational                     [Page 90]
  5043.  
  5044. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  5045.  
  5046.  
  5047.    MaxAgeDiff
  5048.  
  5049.       The maximum time disparity in ages that can occur for a single
  5050.       link state instance as it is distributed throughout the switch
  5051.       fabric.  Most of this time is accounted for by the time the
  5052.       advertisement sits on switch output queues (and therefore not
  5053.       aging) during the distribution process. The value of MaxAgeDiff is
  5054.       set to 900 seconds (15 minutes).
  5055.  
  5056.    LSInfinity
  5057.  
  5058.       The link state metric value indicating that the destination is
  5059.       unreachable.  It is defined to be a binary value of all ones.
  5060.  
  5061. 12.2 Configurable Parameters
  5062.  
  5063.    Many of the switch interface parameters used by VLSP may be made
  5064.    configurable if the implementer so desires.  These parameters are
  5065.    listed below.  Sample default values are given for some of the
  5066.    parameters.
  5067.  
  5068.    Note that some of these parameters specify properties of the
  5069.    individual interfaces and their attached network links.  These
  5070.    parameters must be consistent across all the switches attached to
  5071.    that link.
  5072.  
  5073.    Interface output cost(s)
  5074.  
  5075.       The cost of sending a packet over the interface, expressed in the
  5076.       link state metric.  This is advertised as the link cost for this
  5077.       interface in the switch's switch link advertisement. The interface
  5078.       output cost must always be greater than zero.
  5079.  
  5080.    RxmtInterval
  5081.  
  5082.       The number of seconds between link state advertisement
  5083.       retransmissions for adjacencies established on this interface.
  5084.       This value is also used when retransmitting Database Description
  5085.       packets and Link State Request packets. This value must be greater
  5086.       than the expected round-trip delay between any two switches on the
  5087.       attached link.  However, the value should be conservative or
  5088.       needless retransmissions will result.  A typical value for a local
  5089.       area network would be 5 seconds.
  5090.  
  5091.  
  5092.  
  5093.  
  5094.  
  5095.  
  5096.  
  5097.  
  5098. Kane                         Informational                     [Page 91]
  5099.  
  5100. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  5101.  
  5102.  
  5103.    InfTransDelay
  5104.  
  5105.       The estimated number of seconds it takes to transmit a Link State
  5106.       Update packet over this interface.  Link state advertisements
  5107.       contained in the Link State Update packet must have their age
  5108.       incremented by this amount before transmission.  This value must
  5109.       take into account the transmission and propagation delays for the
  5110.       interface and must be greater than zero.  A typical value for a
  5111.       local area network would be 1 second.
  5112.  
  5113.    Switch priority
  5114.  
  5115.       An 8-bit unsigned integer.  When two switches attached to the same
  5116.       network link contend for selection as the designated switch, the
  5117.       switch with the highest priority takes precedence.  If both
  5118.       switches have the same priority, the switch with the highest base
  5119.       MAC address becomes the designated switch.  A switch whose switch
  5120.       priority is set to zero is ineligible to become the designated
  5121.       switch on the attached link.
  5122.  
  5123.    HelloInterval
  5124.  
  5125.       The length of time, in seconds, between the Hello packets that the
  5126.       switch sends over the interface.  This value is advertised in the
  5127.       switch's Hello packets.  It must be the same for all switches
  5128.       attached to a common network link.  The smaller this value is set,
  5129.       the faster topological changes will be detected.  However, a
  5130.       smaller interval will also generate more routing traffic.  A
  5131.       typical value for a local area network would be 10 seconds.
  5132.  
  5133.    SwitchDeadInterval
  5134.  
  5135.       The length of time, in seconds, that neighboring switches will
  5136.       wait before declaring the interface down once they stop receiving
  5137.       Hello packets over the interface.  This value is advertised in the
  5138.       switch's Hello packets.  It must be the same for all switches
  5139.       attached to a common network link and should be some multiple of
  5140.       the HelloInterval parameter.  A typical value would be 4 times
  5141.       HelloInterval.
  5142.  
  5143.  
  5144.  
  5145.  
  5146.  
  5147.  
  5148.  
  5149.  
  5150.  
  5151.  
  5152.  
  5153.  
  5154. Kane                         Informational                     [Page 92]
  5155.  
  5156. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  5157.  
  5158.  
  5159. 13. End Notes
  5160.  
  5161.    [1] During calculation of the set of best paths, a network link
  5162.    advertisement must be located based solely on its link state ID.
  5163.    Note, however, that the lookup in this case is still well defined,
  5164.    since no two network advertisements can have the same link state ID.
  5165.  
  5166.    [2] It is instructive to see what happens when the designated switch
  5167.    for a network link fails.  Call the designated switch for the link S1
  5168.    and the backup designated switch S2.  If switch S1 fails (or its
  5169.    interface to the link goes down), the other switches on the link will
  5170.    detect S1's absence within SwitchDeadInterval seconds.  All switches
  5171.    may not detect this condition at precisely the same time.  The
  5172.    switches that detect S1's absence before S2 does will temporarily
  5173.    select S2 as both designated switch and backup designated switch.
  5174.    When S2 detects that S1 is down, it will move itself to designated
  5175.    switch.  At this time, the remaining switch with the highest switch
  5176.    priority will be selected as the backup designated switch.
  5177.  
  5178.    [3] Note that it is possible for a switch to resynchronize any of its
  5179.    fully established adjacencies by setting the neighbor state back to
  5180.    ExStart.  This causes the switch on the other end of the adjacency to
  5181.    process a SeqNumberMismatch event and also revert to the ExStart
  5182.    state.
  5183.  
  5184.    [4] When two advertisements have different checksum values, they are
  5185.    assumed to be separate instances.  This can occur when a switch
  5186.    restarts and loses track of its previous sequence number. In this
  5187.    case, since the two advertisements have the same sequence number, it
  5188.    is not possible to determine which advertisement is actually newer.
  5189.    If the wrong advertisement is accepted as newer, the originating
  5190.    switch will originate another instance.
  5191.  
  5192.    [5] An instance of an advertisement is originated with an age of
  5193.    MaxAge only when it is to be flushed from the database.  This is done
  5194.    either when the advertisement has naturally aged to MaxAge, or (more
  5195.    typically) when the sequence number must wrap. Therefore, a received
  5196.    instance with an age of MaxAge must be processed as the most recent
  5197.    in order to flush it properly from the database.
  5198.  
  5199.    [6] MaxAgeDiff is an architectural constant that defines the maximum
  5200.    disparity in ages, in seconds, that can occur for a single link state
  5201.    instance as it is distributed throughout the switch fabric.  If two
  5202.    advertisements differ by more than this amount, they are assumed to
  5203.    be different instances of the same advertisement. This can occur when
  5204.    a switch restarts and loses track of its previous sequence number.
  5205.  
  5206.  
  5207.  
  5208.  
  5209.  
  5210. Kane                         Informational                     [Page 93]
  5211.  
  5212. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  5213.  
  5214.  
  5215.    [7] This is how the link state request list is emptied, causing the
  5216.    neighbor state to change to Full.
  5217.  
  5218. 14. Security Considerations
  5219.  
  5220.    Security concerns are not addressed in this document.
  5221.  
  5222. 15. References
  5223.  
  5224.    [Perlman]    Perlman, R.,  Interconnections: Bridges and Routers.
  5225.                 Addison-Wesley Publishing Company.  1992.
  5226.  
  5227.    [RFC905]     McKenzie, A., "ISO Transport Protocol specification ISO
  5228.                 DP 8073", RFC 905, April 1984.
  5229.  
  5230.    [RFC2328]    Moy, J., "OSPF Version 2", STD 54, RFC 2328, April 1998.
  5231.  
  5232.    [RFC1700]    Reynolds, J. and J. Postel, "Assigned Numbers", STD 2,
  5233.                 RFC 1700, October 1994.
  5234.  
  5235.    [IDsfvlan]   Ruffen, D., Len, T. and J. Yanacek, "Cabletron's
  5236.                 SecureFast VLAN Operational Model", RFC 2643, August
  5237.                 1999.
  5238.  
  5239.    [IDhello]    Hamilton, D. and D. Ruffen, "Cabletron's VlanHello
  5240.                 Protocol Specification", RFC 2641, August 1999.
  5241.  
  5242. 16. Author's Address
  5243.  
  5244.    Laura Kane
  5245.    Cabletron Systems, Inc.
  5246.    Post Office Box 5005
  5247.    Rochester, NH  03866-5005
  5248.  
  5249.    Phone:(603) 332-9400
  5250.    EMail:  lkane@ctron.com
  5251.  
  5252.  
  5253.  
  5254.  
  5255.  
  5256.  
  5257.  
  5258.  
  5259.  
  5260.  
  5261.  
  5262.  
  5263.  
  5264.  
  5265.  
  5266. Kane                         Informational                     [Page 94]
  5267.  
  5268. RFC 2642         Cabletron's VLS Protocol Specification      August 1999
  5269.  
  5270.  
  5271. 17.  Full Copyright Statement
  5272.  
  5273.    Copyright (C) The Internet Society (1999).  All Rights Reserved.
  5274.  
  5275.    This document and translations of it may be copied and furnished to
  5276.    others, and derivative works that comment on or otherwise explain it
  5277.    or assist in its implementation may be prepared, copied, published
  5278.    and distributed, in whole or in part, without restriction of any
  5279.    kind, provided that the above copyright notice and this paragraph are
  5280.    included on all such copies and derivative works.  However, this
  5281.    document itself may not be modified in any way, such as by removing
  5282.    the copyright notice or references to the Internet Society or other
  5283.    Internet organizations, except as needed for the purpose of
  5284.    developing Internet standards in which case the procedures for
  5285.    copyrights defined in the Internet Standards process must be
  5286.    followed, or as required to translate it into languages other than
  5287.    English.
  5288.  
  5289.    The limited permissions granted above are perpetual and will not be
  5290.    revoked by the Internet Society or its successors or assigns.
  5291.  
  5292.    This document and the information contained herein is provided on an
  5293.    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  5294.    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  5295.    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
  5296.    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  5297.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  5298.  
  5299. Acknowledgement
  5300.  
  5301.    Funding for the RFC Editor function is currently provided by the
  5302.    Internet Society.
  5303.  
  5304.  
  5305.  
  5306.  
  5307.  
  5308.  
  5309.  
  5310.  
  5311.  
  5312.  
  5313.  
  5314.  
  5315.  
  5316.  
  5317.  
  5318.  
  5319.  
  5320.  
  5321.  
  5322. Kane                         Informational                     [Page 95]
  5323.  
  5324.