Abstract:
A method and apparatus for detecting invalid network topologies in a local area network (LAN). The stations comprising the LAN include single attachment stations (SAS), dual attachment stations (DAS), wire concentrators (WC), and DAS/WC combination stations. Adjacent stations exchange connection type information identifying a type of physical connection of the station sending the connection information. A station receiving the connection information determines whether the connection is valid for its physical connection type using a connection matrix. Invalid connections can result in a network topology where stations are physically connected, but are not logically connected, because the stations do not all form a primary ring. Invalid connections may be rejected and bypassed in each station. Alternately, a station detecting an invalid connection may reconfigure itself using an internal data switch. The actions of each station, taken together, achieve a globally designated primary ring.

Description:
This is a continuation of an application Ser. No. 224,038, filed 7/25/88, now abandoned. 
    
    
     BACKGROUND OF THE INVENTION 
     I. Field of the Invention 
     This invention relates to computer local area networks and in particular to a method and apparatus for enforcing valid network topologies. 
     II. Description of the Related Art 
     Local area networks (LANs) interconnect a collection of stations for the purpose of exchanging information over a communications channel. LANs that cover extended distances and/or are based on fiber optics may configure a &#34;ring&#34; from a number of individual point to point physical connections between the stations comprising the network to form the communication channel. Such rings are exemplified by the FDDI (Fiber Distributed Data Interface) proposed by American National Standards Institute (ANSI) and IEEE standard 802.5-1985 &#34;American National Standard for Token Ring Access Method,&#34; ANSI X3.139-1987, &#34;Fiber Distributed Data Interface Media Access Control (MAC),&#34; and ANSI X3.148-1988, &#34;Fiber Distributed Data Interface Physical Layer Protocol (PHY).&#34; 
     Double loop rings are often configured rather than single loop rings. In a double loop ring, each ring in fact consists of a primary and a secondary ring. The stations, or nodes, making up the LAN may be combinations of single attachment stations (SAS) 10 of FIG. 1A, having a single physical attachment point (which includes the media, or the hardware comprising the communication link to an adjacent station), dual attachment stations (DAS) 12 of FIG. 1B, having two attachment points, wire concentrators (WC) 14 of FIG. 1C, having many attachment points, and combination DAS/WC stations 16 of FIG. 1D having two attachment points on the DAS side and several attachment points on the WC side and internal connections (not shown) between the WC and the DAS. Each connection between two station attachment points is called a Physical Connection (PC) and has two physical links which carry signals in opposite directions and from which the LAN communications channel is configured. The communications channel may be configured as a physical loop with &#34;trees&#34; branching to stations not on the ring. In normal operation, the two rings are often formed into one ring, which will be called the primary ring. 
     An example of a LAN configured as a ring of trees of the above mentioned station types is shown by LAN 20 of FIG. 2. The two physical links of each PC are connected to other PC&#39;s to provide two rings, a primary ring 22 and a secondary ring 24. Use of two rings ensures tolerance to station or channel failure as explained by Rom et al. in &#34;A Reconfiguration Algorithm for a Double-Loop Token-Ring Local Area Network,&#34; IEEE Transactions on Computers, Vol 37, No. 2, February 1988. The network automatically reconfigures to eliminate the failed element and resume operation, as shown by LAN 50 of FIG. 3 where loopbacks 54 and 58 &#34;heal&#34; the ring and permit continued operation by the attached stations. 
     LAN stations may conform to the reference model Open Systems Interconnection (OSI) which calls for a layered station organization as proposed by the International Standards Organization and described by A. S. Tanenbaum in &#34;Computer Networks,&#34; Prentice Hall, Inc., 1981, pages 16-21. Each station contains a Physical (PHY), Data Link, Network, Transport, Session, Presentation, and Application layer. 
     PHY provides electrical and/or optical connections, encodes and decodes the signals for all higher layers, and essentially supports a communication channel from one station to another and transmits and receives data to and from the PHY of a connected station. 
     The data link layer contains Media Access Control (MAC) which controls access to the communications media or channel, and the transmission of data packets to and receipt of data packets from the MACs of other stations using individual (MAC) addresses. A data packet is a sequence of data bits on the communications channel which contain the information to be passed from station to station. Connection management (CMT) controls the internal interconnection of the PHY and MAC entities within a station, the external configuration (topology), and establishes the logical connection between adjacent stations. 
     A DAS is a station, which when its connections type &#34;A&#34; and &#34;B&#34; are connected to the connections type &#34;A&#34; and &#34;B&#34; of another DAS, provides a double loop ring, as shown in FIG. 2. The primary and secondary rings 22 and 24 comprise each of the double loops. A connection type &#34;M&#34; on a WC or DAS/WC forms a &#34;tree&#34; configuration when attached to the connection type &#34;A&#34; of another station, as shown in FIG. 4. Even though a connection type &#34;M&#34; has two physical links, each link forms a part of a single ring. Thus, a DAS/WC station forms a double loop ring with its connections type &#34;A&#34; and &#34;B&#34; and the branches of a tree with its connections type &#34;M.&#34; The SAS connects to each branch as a &#34;leaf&#34; of a tree. 
     Many ring topologies that can be created from SAS, DAS, WC and DAS/WC stations have the undesirable property that two stations may be physically cabled together, i.e., physically connected, but still be unable to exchange MAC layer data packets, as will be shown below. The stations are thus physically connected to each other, but not logically connected, because although the stations are wired together, the internal configuration of the stations prevents data packets from one station on one ring from being received by another station which is not configured on that ring. Thus, stations are considered to be &#34;PHY&#34; connected if and only if they are spanned by a physical cable path where all physical connections in the path are considered usable for data transfer. Stations are logically connected if and only if they can exchange MAC protocol data units (PDUs). 
     DAS and DAS/WC stations are intended to form double loop rings when attached to other DAS and DAS/WC stations via their connections type &#34;A&#34; and &#34;B.&#34; Current Station Management protocols, as described by ANSI subcommittee X3T9.5, &#34;FDDI Station Management (SMT)&#34; in document no. X3T9.5/84-49, 1 August, 1987, do not globally identify a primary or secondary ring and can result in topologies, such as the twisted ring topology of LAN 20 of FIG. 2, if the stations are inadvertently connected incorrectly. Stations connected to DAS/WC stations 28 and 32 are connected to the communications channel forming primary ring 22, but station 36 considers ring 24 to be the primary ring. Stations attached to DAS/WC 36 are therefore unable to communicate, i.e., are not logically connected with stations attached to DAS/WCs 28 and 32 which are configured on the primary ring. 
     WC or the WC portions of DAS/WC stations are commonly configured as trees, where a connection type &#34;M&#34; of a WC or DAS/WC connects to a connection type &#34;A&#34; of a DAS or DAS/WC. Stations connected as trees do not form double loop rings. Rather, a single ring is intended. LAN 100 of FIG. 4 is a tree comprising two DAS/WC stations which illustrates another illegal topology that can result from improperly connecting stations. SAS 110 is physically connected but not logically connected to the remaining SAS nodes. 
     For rings to be useful as LANs, the configuration of physical connections must occur automatically as connections are added to or removed from the ring. In the case of FDDI, this has led to the exclusive use of &#34;duplex physical connections&#34; which provide bidirectional communication between all stations in the ring. 
     Autoconfiguration protocols in use or proposed for ISO PHY and Data Link layers do not detect or correct illegal topologies. Rather, they assume that the network is a legal topology and then correct faults or failures in the LAN. 
     The spanning tree algorithm, which identifies and corrects (eliminates) illegal topologies, runs in the network layer, and is very complicated, but allows all connection types to be the same and still results in all possible topologies as legal by configuring all networks as trees. Implementation requires too much information to be exchanged by stations to allow the algorithm to run in the MAC layer or Physical layer. In traditional network layer solutions, stations must exchange information with other non-adjacent stations which results in a complex distributed &#34;N-party&#34; algorithm. 
     The objects and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objects and advantages of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out in the appended claims. 
     SUMMARY OF THE INVENTION 
     To achieve the objects of the invention, and in accordance with the purposes of the invention as embodied and broadly described herein, a method is provided for controlling the topology of a local area network (LAN) having a plurality of stations, each of the stations being any one of a single attachment station (SAS), a dual attachment station (DAS), a wire concentrator station (WC), a SAS/WC station, or a DAS/WC station, the plurality of stations each being interconnected by duplex point to point physical connections, the method comprising the steps of: exchanging station connection information over the physical connections only between adjacent stations; determining, in each of the stations, by analysis of said exchanged connection information, the validity of all connections to each of said adjacent stations according to a predetermined connection list; identifying, in each of the stations, valid and invalid connections according to said connection list; and performing, in each of the stations, actions relating to the interconnections of the station, based on the results of the identifying step for the station, the actions of all the stations achieving a globally designated primary ring. 
     A local area network is also provided having a self controlling topology comprising: a plurality of stations, each of said stations being any one of a single attachment stations (SAS), a dual attachment station (DAS), a wire concentrator station (WC), an SAS/WC station or a DAS/WC station; a plurality of duplex point to point physical connections interconnecting said stations; means, in each station, for exchanging station connection information, including connection type information for the physical connections, over said physical connections only between adjacent stations; means for determining, in each of the stations by analysis of said exchanged information, the validity of all connections to each of said adjacent stations according to a predetermined connection list; means, in each station, responsive to the determining means, for identifying valid and invalid connections according to said connection list; and means, in each station, responsive to the identifying means, for performing actions relating to the interconnection of the station, the actions of all the stations achieving a globally designated primary ring. 
     The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate a preferred embodiment of the invention and, together with the general description given above and the detailed description of the preferred embodiment given below, serve to explain the principles of the invention. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1A is a schematic representation of a local area network (LAN) single attachment station (SAS); 
     FIG. 1B is a schematic representation of a dual attachment station (DAS); 
     FIG. 1C is a schematic representation of a wire concentrator station (WC); 
     FIG. 1D is a schematic representation of a combination DAS and WC station (DAS/WC); 
     FIG. 2 is an electrical schematic diagram of a LAN configured as a ring of trees using the types of stations of FIGS. 1A-1D; 
     FIG. 3 is an electrical schematic diagram of the LAN of FIG. 2, reconfigured to &#34;heal&#34; a communications channel fault; 
     FIG. 4 is an electrical schematic diagram of a LAN improperly configured as tree of DAS/WC stations; 
     FIG. 5 is an electrical schematic diagram of a LAN configured as a ring of trees in a &#34;legal&#34; topology according to the teachings of the present invention; 
     FIG. 6 is an electrical schematic diagram of a LAN configured as a ring of trees in an &#34;illegal,&#34; non-deterministic topology according to the teachings of the present invention; 
     FIG. 7 is a block diagram of the Data Link and Physical layers of a station incorporating the teachings of the present invention; 
     FIG. 8 is a flow chart of the functions performed by a physical connection module (PCM) incorporating the teachings of the present invention; 
     FIG. 9A is an electrical schematic diagram of a single data path switch element; 
     FIG. 9B is a block diagram of several data path switch elements interconnected as shown in FIG. 7; 
     FIG. 10 is an electrical schematic diagram of a physical protocol entity (PPE); 
     FIG. 11 is a flow chart of the functions performed by a PCM having a physical connection type &#34;A,&#34; as part of step 328 of FIG. 8; 
     FIG. 12 is a flow chart of the functions performed by a PCM having a physical connection type &#34;B,&#34; as part of step 328 of FIG. 8; 
     FIG. 13 is a flow chart of the functions performed by a PCM having a physical connection type &#34;M,&#34; as part of step 328 of FIG. 8; 
     FIG. 14 is an electrical schematic diagram of a LAN having an illegal topology according to the present invention; 
     FIG. 15 is an electrical schematic diagram of the LAN of FIG. 14 reconfigured according to the teachings of the present invention to have a legal topology; and 
     FIG. 16 is a flow chart of the functions performed by a PCM having a physical connection type &#34;S,&#34; as part of step 328 of FIG. 8. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Reference will now be made in detail to the present preferred embodiment of the invention as illustrated in the accompanying drawings. 
     LAN 150 of FIG. 5, having a self controlling topology, is shown by way of example and not as a limitation as comprising combinations of SAS stations 154 1  -154 8 , WC stations, DAS stations and DAS/WC stations 156 1  -156 4  interconnected by duplex, point to point physical connections such as 160. This set of stations is necessary and sufficient to configure a double loop ring of trees topology and comprises a set of valid or &#34;legal&#34; station types. Other types of stations such as SAS/WC combination stations are not shown as they do not add new topology or behaviors over the given set. The DAS and WC stations are shown as combined as DAS/WC stations 156 1  -156 4 . Although the two station types are combined into a single station, their individual functions remain the same whether applied singly or in combination. 
     Any subset of the DAS/WC is considered a valid station type. For example, in FIGS. 1A to 1D, stations 12 and 14 are subsets of station 16. A station type is defined by its connection types and internal behavior. Connection types are specified for the purposes of topology control. Each station type of FIGS. 1A-1D has a letter assigned to the physical connection type associated with the station. SAS 10 has a connection type &#34;S,&#34; WC 14 has at least one connection type &#34;M,&#34; DAS 12 has two connections, types &#34;A&#34; and &#34;B,&#34; and DAS/WC 16 has the same &#34;A,&#34; &#34;B,&#34; and &#34;M&#34; connection types as the individual DAS and WC stations. 
     Connections type &#34;A&#34; and &#34;B&#34; are intended to form double loop rings when connected to other connections type &#34;A&#34; and &#34;B&#34; of other stations. DAS station 16 has connections type &#34;A&#34; and &#34;B&#34; for this purpose. Connections type &#34;M&#34; and &#34;S&#34; are intended to form a single logical ring on a physical branching topology of a tree. Concentrators have multiple connections type &#34;M&#34; for this purpose, and the connection type &#34;S&#34; and its SAS is considered to be a &#34;leaf&#34; on a tree. A concentrator may also be a node in a tree by use of a connection type &#34;M&#34; of one station to a connection type &#34;A&#34; of a second station. Alternatively, a connection type &#34;B&#34; may be used to connect to the node in a tree, but both a connection type &#34;A&#34; and a connection type &#34;B&#34; may not be used. A tree may have one data path up or down, but not two. Therefore the formation of trees is restricted to connections type &#34; A&#34; in the preferred embodiment. A tree is the connection of a connection type &#34;M&#34; of one station to a connection type &#34;A&#34; of another station. This is a separate, non-conflicting use of a connection type &#34;A&#34; in a WC, where the connection type &#34;A&#34; is not intended to attach to the double loop ring. 
     Not every possible topology comprising the four station types of FIGS. 1A-1D with the four connections type &#34;A,&#34; &#34;B,&#34;  &#34;M,&#34; and &#34;S&#34; is a legal topology, therefore a set of rules in the form of a validation list must be enforced concerning the connection types. The present invention provides control of a topology such that all connections which are offered by a user or installer for the LAN will have predictable and intuitively expected results, that is, adding a cable should never cause a reduction in the number of stations which can communicate, or the set of stations which communicate should never change because a distant station was powered off and then on. A topology which has this property is loosely defined as a &#34;legal&#34; topology. 
     The interconnections of the stations are determined to be either valid or invalid (also called legal or illegal) connections according to the following &#34;connection matrix.&#34; An invalid or illegal connection also results in an &#34;illegal&#34; topology. 
     
         ______________________________________&#34;OTHER        &#34;MY END&#34;END&#34;          A       B         M   S______________________________________A             I       V         V   IB             V       I         I   IM             RULE    I         I   VS             I       I         V   V______________________________________ V = VALID I = INVALID 
    
     Although LAN 150 comprises only 4 DAS/WC stations interconnected with each other and SAS stations to make a double loop ring LAN, any number of SAS, DAS, WC and DAS/WC stations may be interconnected providing the interconnections are valid according to the connection matrix. Application of the connection matrix to a topology results, among other things, in the global identification and enforcement of a primary ring. 
     In the preferred embodiment, a connection type &#34;A&#34; is defined to have the primary ring output. A requirement of a topology is to have a globally identified primary ring. This convention serves to resolve the symmetry in the dual ring. A connection type &#34;B&#34; is the PHY in a DAS that attaches to the primary ring input when attaching to the dual ring. Other conventions, such as where connections type &#34;A&#34; are the primary ring input may also be defined and enforced according to the invention with equal ease. It is a characteristic of connections type &#34;A&#34; and B that they form a double loop ring when connected to the connections type &#34;A&#34; and &#34;B&#34; of other DAS or DAS/WC stations. Connections type &#34;A&#34; and &#34;B&#34; in a DAS/WC are required to be adjacent to each other within the station, as will be discussed below. A connection type &#34;S&#34; is the PHY in a SAS. A connection type &#34;M&#34; is the PHY in a WC or DAS/WC that serves as a master to a connected station. 
     It is the characteristic of a connection type M to form a tree when connected to a connection type &#34;A&#34; or &#34;S&#34; of another station, but not both a connection type &#34;A&#34; and a connection type &#34;B&#34; otherwise a master/slave loop may exist, as will be discussed in more detail below. A tree is a single loop attachment rather than a double loop attachment to another station. 
     The connection types of the stations of FIGS. 1A-1D correspond to the column and row labels &#34;A B M S&#34; of the connection matrix. Looking at communications channel 160 of FIG. 5, one end is connected to a connection type &#34;B&#34; of DAS/WC station 156 1  and the other end is connected to a connection type &#34;A&#34; of DAS/WC station 156 2 . Arbitrarily picking station 156 1  as &#34;MY END&#34; and station 156 2  as the &#34;OTHER END,&#34; an &#34;A&#34; to &#34;B&#34; connection is marked with a V in the connection matrix. Therefore, it is a valid connection according to a preferred embodiment of the invention. 
     Looking now to communications link 164 between the connection type &#34;M&#34; of station 156 1  and the connection type &#34;S&#34; of station 154 2 , the connection matrix shows that an &#34;S&#34; to &#34;M&#34; or &#34;M&#34; to &#34;S&#34; connection is valid. Note that an &#34;S&#34; to &#34;S&#34; connection is also valid, but results in a network of only two SASs. 
     &#34;S&#34; to &#34;A&#34; and &#34;S&#34; to &#34;B&#34; connections are shown as invalid by the connection matrix; however, attaching an SAS to a connection type &#34;A&#34; or &#34;B&#34; will not result in an invalid topology, rather, it will prevent that connection type &#34;A&#34; or &#34;B&#34; from being attached as part of a dual ring. The &#34;S&#34; to &#34;A&#34; or &#34;B&#34; connections have, therefore, been made invalid as a matter of convenience to prevent DAS and DAS/WC stations from being inadvertently &#34;dead ended.&#34; 
     In all cases but one the connection matrix is symmetric, that is, a connection is valid or invalid regardless of which station is called &#34;MY END.&#34; The exception is the &#34;A&#34; to &#34;M&#34; connection which must follow the &#34;RULE.&#34; The Rule is: 
     &#34;My A&#34; may accept as valid a connection to an &#34;M&#34; if and only if &#34;My M&#34; or &#34;My B&#34; does not connect to an &#34;A&#34;. The rule prevents the formation of master/slave loops when stations are connected in a tree, as shown in FIG. 4. 
     Application of the connection matrix to LAN topologies requires that the LAN stations comprise only the four specified types: SAS, DAS, WC, and DAS/WC (including any subset of a DAS/WC), and will result in LAN configuration of the stations as a double loop ring of trees. 
     Previously, a legal topology was defined loosely by the expectations of a LAN user. For the purpose of describing the invention, a legal topology is now strictly defined to have the following necessary properties: 
     (1) Logical connectivity equals physical connectivity as previously defined. This is true for stations which choose to attach to the globally identified primary ring. 
     (2) The topology (and its representation) is deterministic for a given set of connections, that is, it must not be affected by reset or power-on sequences. (For example, LAN 200 of FIG. 6 is a non-deterministic topology, given that &#34;A&#34; to &#34;M&#34; and &#34;B&#34; to &#34;M&#34; connections are not allowed. If station 204 powers on first, then station 208 is connected to station 204. If station 212 powers on first, then station 208 is connected to station 212); 
     (3) Any subset of a legal topology must be a legal topology, that is, connectivity is lost if and only if physical connectivity is lost (a physical path may not be invalidated by the removal of another physical path); and 
     (4) There exists exactly one ring named &#34;primary&#34; which is globally unique within any physically connected set of stations. 
     A &#34;legal&#34; topology comprises only valid connections according to the connection matrix and has the property that all stations physically connected by the LAN are also logically connected to the LAN, that is, each station will be able to autoconfigure to send and receive MAC sublayer messages, also called frames or MAC PDUs, to and from all other stations connected to the ring. 
     FIG. 2 is an example of a conventional LAN having an &#34;illegal&#34; topology, that is, all stations are physically connected but some stations are not logically connected and thus from a user perspective, have invalid connections. The primary ring is not unique or globally identified, and the resulting configuration is a &#34;twisted loop.&#34; DAS/WC stations 28, 32 and 36 and their attached SASs (not shown) are physically connected and form a dual ring, 22 and 24, but the SASs attached to DAS/WC stations 28 and 32 are connected to primary ring 22, while the SASs of DAS/WC station 36 are connected to secondary ring 24 and they are not logically connected to the stations on the primary ring. One may wish to intentionally configure a LAN in the manner of LAN 20, that is, have some stations on the primary ring and other stations on the secondary ring, but without the benefit of the invention, there is no facility such that a system manager may command a station to autoconfigure to make a logical connection happen or not happen. With the benefit of the invention, by identifying specific double loop ring attachments of DAS and DAS/WC stations as connections type &#34;A&#34; and &#34;B,&#34; the primary ring can be globally identified and enforced to prevent inadvertently mis-connecting stations on either ring. 
     Applying the connection matrix to the stations of FIG. 2, the connection type &#34;A&#34; of station 36 to the connection type &#34;A&#34; of station 28 is identified as invalid and the cause of the non-unique primary ring. The &#34;B&#34; connection of station 32 to the &#34;B&#34; connection of station 36 is also an invalid connection according to the connection matrix. 
     LAN 100 of FIG. 4 is another example of an &#34;illegal&#34; topology. WC stations 114 and 118 are connected as for a tree, but with too many connections such that a physical (master/slave) loop occurs resulting in primary ring 106 and an unintended ring 108. Stations 114 and 118 are examples of WC stations that each have a connection type &#34;A&#34; so that the WC may form a master/slave tree configuration with another station. The WC station having a connection type &#34;A&#34; may also be considered to be a DAS/WC with an unused connection type &#34;B.&#34; SAS 110 is physically connected to station 118, but is logically connected to unintended ring 108, whereas the remaining SASs are logically connected to primary ring 106 and therefore cannot communicate with SAS 110. 
     Taking station 114 as &#34;MY END&#34; and applying the connection matrix shows that the M&#34; to &#34;A&#34; connection of station 114 to station 118 is invalid, as is the &#34;A&#34; to &#34;M&#34; connection of station 114 to station 118. By the rule, station 114 may not accept an &#34;A&#34; connection to a station 118 &#34;M&#34; connection because station 114 already has an &#34;M&#34; that connects to an &#34;A.&#34; The same rule applies to the &#34;M&#34; to &#34;A&#34; connection of station 114 to station 118. Thus the LAN has an &#34;illegal&#34; topology which would result in a lack of connectivity. 
     Application of the connection matrix to LANs having stations limited to the four station types of FIG. 1 with their four connection types, obviates the need to consider complex station interconnections and allows simple solutions to LAN topology. By working within these constraints, LAN topology control is achieved using multiple instances of distributed two-party algorithms that base decisions only on the exchange of local information. By restricting the set of configuration types and configuration rules, and requiring the configuration types of immediately adjacent stations to be learned or known for a physical connection, the global topology may be spanned by a single primary ring, and other previously discussed &#34;legality&#34; requirements are met. These restrictions eliminate the need to exchange large numbers of messages about and among non-adjacent stations such as are needed to apply the spanning tree algorithm. As a result, in a LAN incorporating the teachings of the present invention, topology management is done in the Physical layer using only four unique messages (line states) to signal connection types. Physical Connection Management (PCM) manages the physical connection which exists between one station&#39;s PHY and an adjacent station. PCM initializes the connection of the neighboring PHYs and manages PHY signaling. 
     In operation, application of the rules of the connection matrix to automatically control the topology of a LAN comprising combinations of the stations of FIG. 1 arranged in a ring of trees configuration is implemented in SCM. 
     In accordance with the invention, a method is provided for automatic controlling of LAN topology which begins during power up of a station by exchanging station connection information over the physical connections between immediately adjacent stations using messages that are easily transmitted using only PHY layer signaling. PHY layer signaling provides the advantage that individual MAC addresses are not required. In a preferred embodiment of the invention, shown by way of example and not as a limitation, the PHY of each station signals its connection type to an adjacent connected station using Physical layer symbols well-known in the art. The adjacent station accepts connections from other stations identified by only a limited set of Physical layer symbols, depending on its own connection type. 
     In the preferred embodiment, Physical layer symbols comprise combinations of line states. A line state is a sequence of more than 15 symbols. A master line state (MLS) is a series of alternating HALT and QUIET symbols. A halt line state (HLS) is a stream of HALT symbols. A quiet line state (QLS) is a series of QUIET line symbols. An idle line state (ILS) is a stream of IDLE line symbols, and an idle quiet line state (IQLS) is an alternating series of IDLE and QUIET symbols. 
     The line state messages sent or accepted by each connection type are shown in the connection type line state table, below. 
     
         ______________________________________CONNECTION TYPE   SENDS      ACCEPTS______________________________________A                 IQLS       MLS, HLSB                 HLS        IQLSM                 HLS        HLS, IQLSS                 HLS        HLS, MLS______________________________________ 
    
     Each connection type has a specified behavior, and this set of connection types allows construction of the most desirable topologies for the LAN. The symbols sent and accepted by the connection types of the line state table correspond to the valid connections permitted by the connection matrix, as will be described in more detail below. 
     The signaling method of the line state table for adjacent stations is one of many effective methods. Another method of signaling would be to send unique combinations of multiple line state sequences to indicate each connection type. Encoding could be used where one line state could represent a &#34;1&#34; and another line state could represent a &#34;0,&#34; and a series of line states could be sent to indicate multiple bits of information. ILS followed by MLS could be the &#34;1&#34; and ILS followed by HLS could be &#34;0.&#34; Unique combinations of &#34;bits&#34; could represent each connection type. The same messages may also be sent in MAC PDUs. 
     Looking at station 156 2  of FIG. 5, a connection type &#34;M&#34; 168 is connected to a connection type &#34;A&#34; 172 of station 156 4 . Connection type &#34;M&#34; 168 sends an &#34;M message&#34; to the immediately adjacent station to which it is connected, i.e., connection type &#34;A&#34; 172. Connection type &#34;A&#34; 172, according to the line state table, sends an &#34;A message&#34; and accepts an &#34;M message.&#34; Connection type &#34;M&#34; 168 accepts the &#34;A message.&#34; Therefore, the connection of connection type &#34;M&#34; 168 to connection type &#34;A&#34; 172 is a valid connection. 
     Turning to FIG. 7, the implementation of the connection matrix by each of the connection types, &#34;A,&#34; &#34;B,&#34; &#34;M&#34; and &#34;S&#34; will be discussed in detail. Data Link layer 254 and PHY 258 are schematically represented as part of a general model of LAN station 250 of FIG. 7 insofar as they apply to implementation of the connection matrix to automatically control the network topology. Station 250 contains n connection ports or physical attachment points, each having a specified connection type, and each port is represented by i, where i is an integer from 1 to n. Values of i greater than n represent internal MACs in station 250. 
     Station Configuration Module (SCM) 262 contains the hardware to implement the connection matrix for the station. The SCM is specific to the station type, and its operation for each of the allowable station types, i.e., DAS, DAS/WC, WC, and SAS, will be discussed in greater detail below. SCM 262 contains a number n of station configuration submodules (SCS) 264 1  -264 n , one for each connection, or media attachment connector of the station, and each SCS is configured to function as a specific connection type having behavior as specified for such connection type. Each SCS connects to a corresponding physical connection module or manager (PCM) 268 1  -268 n , thus establishing the topological behavior of each PHY attachment point. The PCM protocol establishes a shared state with another connected PCM which includes a connection status (either connected or disconnected), and a connection type (A, B, M, or S). Flowchart 300 of FIG. 8, to be discussed below, shows the protocol executed by each PCM to exchange connection types, establish a connection status, and accept, reject, or reconfigure connections. 
     The PCM protocols are multiple, concurrent processes which exchange information via defined interfaces. The interfaces between the boxes, or entities, in general station 250 of FIG. 7 are given names, and each interface may comprise one or more named signals. If the interface is a single signal, then the interface has the name of the signal. Signals may be of two types, either a control signal which means &#34;do something,&#34; or a status variable passing information. Interfaces are shown drawn with single lines, although the signals may comprise one or more parallel bits on a multiline bus. 
     Interface SC --  PCM(i) passes the necessary connection data back and forth between the SCS and the respective PCM. SC --  PCM(i) provides a control directive to either connect or disconnect with the adjacent station, a signal PC --  type(i), which signifies whether the connection to an adjacent station is determined by SCM to be valid or invalid, i.e., OK and Not --  OK, and a signal MY --  type(i) which identifies to PCM the respective connection as a connection type &#34;A,&#34; &#34;B,&#34; &#34;M,&#34; or &#34;S.&#34; SC --  PCM(i) also returns a status signal N --  type(i) from the PCM to the SCS, which is the adjacent station (neighbor) type. N --  type(i) is either &#34;A,&#34; &#34;B,&#34; &#34;M,&#34; &#34;S&#34; , or null, where null means &#34;don&#39;t know yet.&#34; Internal to SCM 262, SCSs 264 1  -264 n  pass signal MODE(i), which has values of Tree, Not --  tree, and Root, and the signal Loop --  warning, which has values of true and false, among themselves for the purpose of sharing local topology information within the SCM&#34; Signal MOVE(i) provides a true or false input to data path switch element i. Loop --  warning is a signal used for reconfiguring the network topology when a connection between a connection type &#34;M&#34; and a connection type &#34;A&#34; of an adjacent station is determined to be invalid. 
     Signal &#34;Policy,&#34; having values of disconnect and move, is input to station 250 of FIG. 7 by a higher layer authority, designer, or manager, shown as local management interface 280, for use in resolution of detected faults in a ring of trees. The options for the manager are to instruct SCM to disconnect invalid tree connections or to reconfigure the invalid tree connections, where possible, as discussed below. Although not shown in the preferred embodiment, the response to an invalid connection could also be to signal the connection as invalid to local management interface 280, but not disconnect the invalid connection. 
     Each PCM 268 1  -268 n  controls a data path switch (DPS) element i of DPS 278, where i is 1 to n+1. DPS elements 1 to n have physical attachment points to external cables (the communications media). DPS element n+1 connects internally to the station primary loop MAC and has no external connection point. Although not shown, DPS element n+2, located between elements n and n-1, could be used to connect a MAC to a secondary ring. Switch 360 of FIG. 9A is an example of a DPS element which is controlled by signals MOVE(i) and DPS --  enable, and which provides interface PC --  PPE(i) to a respective physical protocol entity (PPE) 272 1  -272 n . By controlling the internal configuration, SCM thus controls the externally viewed topology and the function of the PPE. MOVE(i) and DPS --  enable(i) are either true or false and switch the respective PCM into or out of the primary ring. As shown in FIG. 9A, when MOVE(i) is false, DPDT switch 366 is in the bypass position, and when MOVE(i) is true and DPS --  enable(i) is false, the false output of AND gate 364 sets DPDT switch 368 to the bypass position thereby reordering the attachment points. 
     DPS 278 of FIG. 7 is shown in greater detail by DPS 370 of FIG. 9B. Each DPS element 372 1  -372 N+1  is a DPS element similar to DPS 360 of FIG. 9A. DPS 370 is a correct configuration of a DPS of a reconfigurable DAS/WC station, shown generally by station 250 of FIG. 7. DPS elements 372 1  -372 N-2  are ports for connection points to the station as connections type &#34;M.&#34; DPS elements 372 N-1  and 372 N  are connection points for a connection type &#34;A&#34; and a connection type &#34;B,&#34; respectively. There may only be one connection type &#34;A&#34; and one connection type &#34;B&#34; in any one station. DPS element 372 N+1  connects to the MAC for the primary ring. Each DPS element is connected on an internal ring 374 that passes through each DPS element twice, connecting to each DPDT switch as shown in FIG. 9A. Ring 374 may be one or more bits wide. 
     DPS elements 372 1  to 372 N+1  are identical, regardless of the connection type or internal station entity to which they connect MOVE(i) for each DPS element greater than N-2 is set false, thus defining the internal topology of station 250. The order of DPS elements in a &#34;legal&#34; station, however, is important. DPS elements for connections type &#34;M&#34; must be adjacent to one another on ring 374. DPS element 372 N+1 , which connects to the station MAC for the primary ring, is connected between the DPS element 372 N-1  for the connection type &#34;A&#34; and DPS element 372 N-2  for the highest numbered connection type &#34;M.&#34; DPS element 372 N  (the highest numbered DPS element having a connection point external to the station) is connected immediately adjacent to DPS element 372 N-1  for the connection type &#34;A.&#34; A DPS element for a MAC for a secondary ring (not shown) would be connected between DPS element 372 N-1  for the connection type &#34;A&#34; and DPS element 372 N   for the connection type &#34;B.&#34; All subsets of DPS 370 are also &#34;legal&#34; data path switches. 
     Data flow within the DPS is from any of the connections type &#34;M&#34; (DPS elements 372 1  to 372 N-2 ) to the DPS element for the primary ring MAC (DPS element 372 N+1 ) to the DPS element for the connection type &#34;A&#34; (DPS element 372 N-1 ) to the DPS element for the secondary ring MAC (not shown) and then to the DPS element for the connection type &#34;B.&#34; Although each DPS element of DPS 370 is similar, the order of the elements on internal ring 374 governs proper operation of DPS 370. 
     A DPS has the property that a connection type &#34;M&#34; can be moved from a position electrically located in terms of data flow between two connections type &#34;M&#34; to a position, electrically located in terms of data flow, most distant from the output of the connection type &#34;A.&#34; Similarly, MOVE(i) can be used to swap the roles of connections type &#34;A&#34; and &#34;B&#34; or move a MAC to or from a primary or secondary ring. 
     Each PPE(i) of station 250 of FIG. 7, represented generally by PPE 390 of FIG. 10, encodes and decodes messages for transmission on the communications channel or media. Interface PC --  PPE(i) comprises control signals Transmit PDR(i) and LS --  request(i). Transmit --  PDR(i) is a true or false signal applied to multiplexer 394 of PPE 390 and determines whether signal LS --  request(i) or PHY --  data --  request(i) is encoded by encoder 396 and passed to the media. Multiplexer 394 of FIG. 10, under control of Transmit PDR(i), directs the transmission of LS --  request(i) or PHY --  data --  request(i) from PPE 390. Decoder 398 receives signals from the media and generates LS --  indicate(i) and PHY --  data --  indicate(i). 
     LS --  request(i) is the line state message sent to the adjacent station, and comprises the prior mentioned line states QLS, HLS, MLS, IQLS and ILS, or a combination of codes to signal connection type. PHY --  data --  request(i) is the data from the next PHY entity or from a higher layer of the station. Interface PC --  PPE(i) also provides status signal LS --  indicate(i), which is passed from a PPE to its respective PCM. LS --  indicate(i) is the line state or message representing its connection type received from the adjacent station. 
     Each PPE(i) has a PPE service interface, PPE service(i), which passes protocol data units transmitted to or received from the media. The ring is formed of point to point links, thus data is often passed directly between PPE&#39;s as determined by the DPS. Each station may have any number of MACs or no MACs. MAC 276 is connected to data path switch element n+1 because switch n+1 does not correspond to a physical attachment point for the media. 
     PHY --  data --  indicate(i) is the name of the data received by the PPE from the media, and as mentioned, PHY --  data --  request(i) is the name of the data output to the PPE towards the media. 
     Flowchart 300 of FIG. 8 shows the sequence of events performed by each PCM(i) to establish contact with a PCM(i) of an adjacent (connected neighbor or &#34;OTHER END&#34; as shown by the connection matrix) station and to validate the connection. 
     In accordance with the invention a method is provided for exchanging station connection information over the physical connections, or media, between adjacent stations Steps 304-324 of flowchart 300, provided by way of example and not as a limitation, show the steps performed by PCM(i) to exchange station connection information. 
     Initially, LS --  request(i) is set to QLS, Transmit --  PDR(i) is set to false, and N --  type(i) is set to null in step 304 DPS --  enable(i) is always set equal to Transmit --  PDR(i). After an initialization time T b , timer TLA is reset to zero, step 308, and LS --  request is sent to DLS, where DLS represents the set of line states or line state messages that identify the connection type, i.e., &#34;A,&#34; &#34;B,&#34; &#34;M,&#34; or &#34;S,&#34; of the PCM(i), which corresponds to MY --  type(i), step 312. The duration of T b  is chosen to be long enough to ensure that the adjacent station&#39;s PCM(i) has time to &#34;see&#34; the transmitted QLS, and thus ensuring the initialization of a new connection. 
     If LS --  indicate(i), the line state message from the adjacent connection, is a valid line state, as determined in step 316, N --  type(i) is set to the connection type corresponding to the signaled line state, step 320. The &#34;:=&#34; convention used in step 320 indicates that N --  type (i) is set equal to one of the values &#34;A,&#34; &#34;B,&#34; &#34;M,&#34; or &#34;S&#34; in the set DLS. MY --  type is signaled until time period T dmin  to ensure the connection type is received by the adjacent station. The duration of T dmin  is chosen to ensure that MY --  type(i) is signaled long enough to be received by the adjacent station&#39;s PCM(i). If N --  type(i) has been set, processing continues to determine if the connection is valid according to the allowable connections of the connection matrix, step 328. Depending on the connection type of the station doing the processing (MY --  type), step 328 implements the process depicted by the flowcharts of FIGS. 11 (MY --  type(i)=&#34;A&#34;), 12 (MY --  type(i)=&#34;B&#34;), 13 (MY --  type(i)=&#34;M&#34;), or 16 (MY --  type(i)=&#34;S&#34;), which will be discussed below. 
     If the N --  type(i) to MY --  type(i) connection is valid as decided in PCM according to the connection matrix, PC --  type(i) is OK, and Transmit --  PDR(i) is set to true to permit PPE(i) 390 to send data or an idle line state, step 332, indicating that the connection is accepted locally at &#34;MY&#34; end. If the connection is not valid, PCM(i) continues to look at LS --  indicate(i) in order to validate any corrected configuration. During operation, PCM(i) continues to monitor LS --  indicate(i), step 336, and if LS --  indicate(i) is not either an active or idle line state, the connection type for LS --  indicate(i) is compared to the prior value of N --  type(i), step 340. If the new and old connection types disagree, or no type is sent, the connection is again initialized starting at step 304. 
     In accordance with the invention a method is provided for determining, in each of the stations by analysis of exchanged information, the validity of the connection to each of the adjacent stations according to a predetermined validation list. As shown by way of example and not as a limitation, flowchart 400 of FIG. 11 presents the steps performed by a station having a connection of type &#34;A,&#34; i.e., MY --  type(i)=&#34;A,&#34; to validate according to the connection matrix the connection to an adjacent station having a connection type of N --  type(i). 
     Initially, in step 404, Loop warning is false and PC --  type(i) is Not --  ok. MODE(i) is Not --  tree, and MOVE(i) is false, step 408. N --  type(i) is ascertained by PCM. If N --  type(i) is null in step 412, connection is not yet established or connection has been broken and processing returns to step 408. If N --  type(i) is no longer null, then processing of the connection type can continue with step 416. According to the connection matrix, a MY --  type(i) of &#34;A&#34; may not connect to an N --  type(i) of &#34;A&#34; or &#34;S.&#34; Therefore, if N --  type(i) is &#34;A,&#34; PC --  type is set to Not --  ok (which controls concurrent PCM(i) processing as shown by flowchart 300 of FIG. 8), thereby rejecting the connection as invalid according to the connection matrix. Loop --  warning is set to false, and an illegal connection is signaled in step 420. Local management interface 280 of FIG. 7 is informed of the illegal connection and sets an audio or visual alarm. In the preferred embodiment, PCM(i), having a PC --  type(i)=Not --  ok signal in step 328 of FIG. 8, continues to attempt to validate the connection, effectively locking out LAN data transfer other than line states between the PCM(i) and the adjacent station. Although not incorporated in the preferred embodiment, it is also valid to set an alarm, as will be discussed below, and to continue using the connection until fixed by a system operator, rather than to isolate the invalid connection. 
     If N --  type(i) is not &#34;A,&#34; processing continues with step 428 of FIG. 11. According to the connection matrix, if MY --  type(i) is &#34;A&#34; and N --  type(i) is &#34;B,&#34; step 428, the connection is valid, PC --  type(i) is set to OK, Loop --  warning is set to false, step 432, and processing continues. If N --  type(i) is neither &#34;A,&#34; &#34;B,&#34; nor &#34;S,&#34; N --  type(i) is checked for type &#34;M,&#34; step 436. If N --  type(i) is not &#34;M,&#34; the validation process is started over. If N --  type(i) is &#34;M,&#34; the connection matrix requires application of the rule: MY --  type &#34;A&#34; may keep a connection to an N --  type &#34;M&#34; if and only if an &#34;M&#34; or a &#34;B of MY&#34; station does not connect to an N --  type &#34;A.&#34; 
     Application of the rule concerning trees begins in step 440, where the value of MODE(i) is checked for each SCS of &#34;MY&#34;  station. If MODE(i) is not tree or root, then PC --  type(i) is OK, step 444, and the connection is valid. MODE(i) is set to tree if MY --  type(i) is &#34;M&#34; and it is connected to an N --  type(i) of &#34;A,&#34; as shown in steps 616 and 620 of FIG. 13. MODE(i) is set to root in steps 520 and 524 of FIG. 12 if MY --  type(i) is &#34;B&#34; and N --  type(i) is &#34;A.&#34; 
     If any MODE(i) of the SCM is root in FIG. 11, step 448, then the connection is invalid, and in step 452, PC --  type(i) is set to Not --  ok, which rejects the connection, Loop --  warning is set to false, and an illegal connection is signaled to local management interface 280 of FIG. 7. Local management interface 280 indicates that the connection is invalid. If a MODE(1, . . ,n) in step 448 is tree, then the status of Policy, step 456, determines if the topology is to be reconfigured or whether the connection is to be considered invalid and rejected. Step 456 implements the policy set by the local station manager. If the policy is to disconnect N type(i) =M&#34; connections to connected to MY --  type(i)=&#34;A&#34; connections which are invalid under the rule because another MY --  type(i) &#34;M&#34; within &#34;MY&#34; station is connected to a N --  type(i) &#34;A,&#34; then step 452 of FIG. 11 is executed to set PC --  type(i) to Not --  ok, thereby rejecting the connection, set Loop --  warning to false, and to signal an illegal connection to local management interface 280 of FIG. 7, which indicates that the connection is invalid. If the policy is to reconfigure the topology to correct the global topology problem caused by MY --  type(i) connection type &#34;A&#34; to N --  type(i) connection type &#34;M,&#34; then step 460 is executed. 
     In step 460, if less than two of the MODE(i) signals are tree, i.e., zero or one MY --  type(i) connections type &#34;M&#34; are connected to an N --  type(i) connection type &#34;A,&#34; then Loop --  warning is set to true and PC --  type(i) is set to OK and the connection is accepted. Application of Loop --  warning to topology reconfiguration will be discussed below in regard to validation by a MY --  type(i) connection type &#34;M,&#34; which is shown by flowchart 600 of FIG. 13 and is shown electrically in FIGS. 14 and 15. Loop --  warning equal to &#34;true&#34; causes the DPS to move the connection having MODE(i)=&#34;tree.&#34; If more than one MODE(i)=&#34;tree,&#34; then the topology can t be resolved with local information and step 452 is executed rejecting the connection offered to the connection type &#34;A.&#34; 
     Turning now to the case of an SCS having MY --  type(i)=&#34;B,&#34; the functions performed in determining the validity of the connections to adjacent stations are shown by flowchart 500 of FIG. 12. Initially MODE(i) is Not --  tree and PC --  type(i) is Not --  ok, step 504, and MOVE(i) is false, step 508. 
     If N --  type(i) is null in step 512, meaning N --  type(i) has not yet been determined, PC --  type(i) is set to Not --  ok and MODE(i) is set to Not --  tree, step 516, and the process is repeated beginning at step 508. If N --  type(i) is &#34;A&#34; in step 520, the connection is valid according to the connection matrix, PC --  type(i) is set to OK, and MODE(i) is set to root for application of the rule by another MY --  type(i) connection type A of MY --  station, as discussed above in relation to flowchart 400 of FIG. 11. If N --  type(i) is &#34;B,&#34; &#34;M,&#34; or &#34;S&#34; in step 530, the connection is not valid according to the connection matrix. Therefore, PC --  type(i) is set to Not --  ok, which rejects the invalid connection, MODE(i) is set to Not --  tree, and an illegal connection in step 534 is signaled to local management interface 280 of FIG. 7 which identifies invalid connection. 
     Now addressing the case for an SCS having MY --  type(i)=&#34;M,&#34; the functions performed by PCM(i) in determining the validity of connections to adjacent stations is shown by flowchart 600 of FIG. 13. MODE(i) is initially set to Not --  tree, MOVE(i) is set to false, and PC --  type(i) is set to Not --  ok, step 604. If N --  type(i) is null in step 608, PC --  type(i) is set to Not --  ok, MODE(i) is set to Not --  tree, and MOVE(i) is set to false in step 612. If N --  type(i) is &#34;A&#34; in step 616, then the connection is valid according to the connection matrix, PC --  type(i) is set to OK and MODE(i) is set to tree in step 620. 
     At this point, if application of the rule in steps 440-464 of FIG. 11 determined that the topology need not be reconfigured, i.e., Loop --  warning is false, MOVE(i) is set to false and operation of PCM(i) continues. If the topology is to be reconfigured (as directed by an external policy decision), a method is provided to reconfigure connections that are invalid according to a validation list. As shown by way of example and not as a limitation, signals MOVE(i) and MODE(i), and Loop --  warning are used by PCM(i) as shown in steps 620-632 of flowchart 600 to shift the corresponding DPS element to reconfigure connections that are invalid according to the connection matrix. Accordingly, when Loop --  warning is set to true in step 464 of FIG. 11 and is detected in step 624 of FIG. 13, MOVE(i) is set to true in step 632, which alters the configuration of the respective data path switch element and the internal topology of this station. 
     An example of internal station reconfiguration and the effect on a LAN is shown by FIGS. 14 and 15. LAN 700, which is configured in the same manner and having the same connectivity problem as LAN 100 of FIG. 4, comprises two DAS/WC stations 704 and 708, each having a connection type &#34;A&#34; and a plurality of connections type &#34;M.&#34; The connection type &#34;A&#34; of each DAS/WC is connected to a connection type &#34;M&#34; of the adjacent DAS/WC. For simplicity, only the DPS of stations 704 and 708 are shown. No connections type &#34;B&#34; are needed for the example and are therefore not shown. Each DAS/WC contains four data path switch elements 712 1  -712 4  and 716 1  -716 4 . Each data path switch element is controlled by signals DPS --  enable(i) and MOVE(i) as shown by FIG. 9A. Each double pole double throw (DPDT) switch 366, 368 of data patch switch element 360 is shown positioned for a respective control signal for that switch of false. MOVE(i) and DPS --  enable(i) control DPDT switch 366 through AND gate 364. 
     Before reconfiguration, LAN connectivity is absent. Even though each SAS of LAN 700 is physically connected, SASs 720 1  and 720 4  are not logically connected to SASs 720 2  and 720 3  or primary loop 724. Application of the rule to connection type &#34;A&#34; 732 illustrates detection of an invalid connection of MY --  type(i) &#34;A&#34; to an N --  type(i) &#34;M&#34; because another connection type &#34;M,&#34; 736, of &#34;MY&#34; station is connected to a connection type &#34;A.&#34; Applying the rule to connection type &#34;A&#34; 740 of station 708 reveals the same type of invalid connection 
     After detection of the invalid connection, taking station 704 as &#34;MY&#34; station, and connection 736 as the MY --  type(i) connection type &#34;M&#34; under analysis, Loop --  warning is true in step 624 of FIG. 13 because it was set by SCS(i) connection type &#34;A&#34; in step 464 of FIG. 11. MOVE(i), where i now represents connection 736, is therefore set to true in step 632 of FIG. 13. Likewise, if station 708 is assumed to be &#34;MY&#34; station, MOVE(i) for 744 is set to true. As a result, data path switch elements 712 3  and 716 3  are reconfigured as shown in FIG. 15. The topology has successfully been reconfigured to place all four SASs 720 1  -720 4  in primary loop 724 by electrically moving the connection type &#34;M&#34; data path switch element in the &#34;OTHER&#34; station to the location most distant, from the viewpoint of data flow, from the connection type &#34;A&#34; output of the &#34;OTHER&#34; station. The &#34;location most distant&#34; is the location where data from the connection type &#34;M&#34;  data path switch element in the &#34;OTHER&#34; station must flow through all the connections type &#34;M&#34; of the &#34;OTHER&#34; station before reaching the connection type &#34;A&#34; output of the &#34;OTHER&#34; station. This reconfiguration function is applicable to a tree of arbitrary height 
     Returning to flowchart 600 of FIG. 13, if N --  type(i) is &#34;S&#34; rather than &#34;A&#34; in step 636, the connection is valid according to the connection matrix and PC --  type(i) is set to OK, MODE(i) is set to Not --  tree, and MOVE(i) is set to false in step 640. If N --  type(i) is &#34;B&#34; or &#34;M&#34; in step 644, the connection is invalid according to the connection matrix and, in step 648, PC --  type(i) is set to Not --  ok, MODE(i) is set to Not --  tree, MOVE(i) is set to false, the connection is rejected, and an illegal connection is signaled to local management interface 280 of FIG. 7. 
     The validation of the connections to the last remaining connection type, &#34;S,&#34; is performed by PCM(i) according to flowchart 800 of FIG. 16. Initially, in step 804, PC --  type(i) is set to Not --  ok. In step 808, MODE(i) is set to Not --  tree and MOVE(i) is set to false. In step 812, if N --  type(i) is null, PC --  type(i) is set to Not --  ok in step 816 and validation starts over at step 808. If N --  type(i) is &#34;M&#34; or &#34;S&#34; in step 820, the connection is valid according to the connection matrix. Therefore, PC --  type(i) is set to OK. If N --  type(i) is &#34;A&#34; or &#34;B&#34; in step 828, the connection is invalid and PC --  type(i) is set to Not --  ok. 
     The preferred connection matrix is shown by way of example and not as a limitation as just one of many possible connection matrices that would be useful to implement a LAN topology autoconfiguration. As previously mentioned, &#34;A&#34; to &#34;S&#34; and &#34;B&#34; to &#34;S&#34; connection types were declared invalid for convenience of configuring networks as double loop topologies, not because of logical connectivity problems. Likewise &#34;B&#34; to &#34;M&#34; connections could be declared valid by the rule, while &#34;A&#34; to &#34;M&#34; connections could be invalid or either can be accepted in absence of the other, provided preference is given to one type of connection to provide that the topology will be deterministic. 
     Additional advantages and modifications will readily occur to those skilled in the art. The invention in its broader aspects is, therefore, not limited to the specific details, representative apparatus and illustrative example shown and described. Accordingly, departures may be made from such details without departing from the spirit or scope of applicant&#39;s general inventive concept.