METHOD AND APPARATUS FOR DETECTING COLLISIONS ON A NETWORK

Abstract: A method for detecting a collision between signal transmissions on a carrier medium in a network, comprising the steps of : transmitting a first access identifier from a transmitter of network station (144), receiving a second access identifier at a receiver of the network station (146), determining whether the temporal location of the pulse within the second access identifier corresponds to the temporal location of the pulse within the first access identifier (148), if yes, transmitting message packet (152), and if not, transmitting jamming signal (158).

Description: METHOD AND APPARATUS FOR DETECTING COLLISIONS ON A NETWORK FIELD OF THE INVENTION The present invention relates generally to the field of data networking. More specifically, the present invention relates to the detection of collisions between transmitted signals on a network. BACKGROUND Ethernet networks implement a Carrier Sense, Multiple Access/Collision Detect (CSMA/CD) protocol to ensure that only one node (or station) of the relevant Ethernet network is propagating a signal over a carrier medium of the network at any given time. As implied by the "Carrier Sense" aspect of this protocol, prior to or during signal transmission, a station checks or listens on the relevant carrier medium to determine whether another station is transmitting. Merely for example, an inquiring station may sense a voltage on a network line, and then assume that another station is transmitting. In view of the distances between stations on a network and finite signal propagation times, it often occurs that a station wishing to transmit will sample the relevant carrier medium, and sense no traffic thereon, even though another station may have begun transmitting. Accordingly, two stations will simultaneously transmit, resulting in a collision of transmitted signals. The delay in detection of transmission of a signal over the carrier medium because of the spacing of stations thereon has resulted in a so-called "slot time" being defined as a function of the time required for the transmission of a signal by a first station, the possible "Carrier Sense" detection of this signal by a second station of the network, and the return of a collision detect signal by the second station to the first station. It will be appreciated that the possibility of colliding transmission signals occurs during this slot time. In Ethernet networks where the carrier medium comprises a regular and well- designed wiring system, constructed using a high-quality cable, the detection of collisions may be performed by detecting voltage swings on the carrier medium that exceed the voltage that can be generated by one transmitter alone. However, where the carrier medium of the network displays a number of undefined characteristics, the above collision detection methodologies may be unreliable. For example, where the carrier medium comprises existing telephone wiring within a residence (e.g., Plain Old Telephone Service (POTS) wiring), the wiring may comprise unshielded, twisted-pair (UTP) telephone cable and may be either Category One or Category Two cable as defined by the EIA/TIA 568 specification. Accordingly, the wiring may be susceptible to noise. Further, the use of residential telephone wiring as the carrier medium for the network poses a number of problems as the transmission of data signals must occur over an arbitrary, unterminated wiring system with unknown electrical characteristics. This results in impedance mismatches, and the lack of termination contributes significantly to the persistence of reflections of signals and to unpredictable peaks and valleys in frequency response within a band of interest. The power-splitting effect of star configurations, which are commonly implemented in residential wiring, increases these problems. SUMMARY OF THE INVENTION According to a first aspect of the invention, there is provided a method of detecting a collision between transmissions on a carrier medium within a network. The method commences with the transmission of an identifier from the transmitter of a network device. This transmitted identifier has a predetermined duration, and includes a pulse having a temporal location which is specific to the transmitted identifier. A further identifier is received at a receiver of the network device. The received identifier similarly has a predetermined duration and includes a pulse at a temporal location. A determination is then made as to whether the temporal location of the pulse within the received identifier corresponds to the temporal location of the pulse within the transmitted identifier. If the temporal locations of these pulses do not correspond, a collision is detected on the network. According to a second aspect of the invention, there is provided apparatus for detecting a collision between transmissions on the carrier medium of the network. The apparatus comprises a transmitter, which is coupled to transmit a first identifier over the carrier medium, and a receiver, which is coupled to receive a second identifier. The apparatus also includes a logic circuit, which is coupled to the receiver, that determines whether the temporal location of the pulse within the second identifier corresponds to the temporal location of the pulse within the first identifier. If not, the logic circuit then detects a collision on the network. The invention extends to a network adapter, a Network Interface Card (NIC) and a transceiver incorporating the above apparatus. Other features of the present invention will be apparent from the accompanying drawings and from the detailed description which follows. BRIEF DESCRIPTION OF THE DRAWINGS The present invention is illustrated by way of example, and not limitation, in the figures of the accompanying drawings in which like references indicate similar elements. Figures la and lb illustrate respective Local Area Networks (LANs) within which the present invention may be implemented. Figure 2 is a block diagram of a network station including a modem within which the present invention may be implemented. Figure 3 is a block diagram of a modem, according to one embodiment of the present invention, for providing a connection between an Ethernet controller and POTS wiring. Figure 4 is a block diagram illustrating a lOBaseT-to-POTS adapter, according to one embodiment of the present invention, including the modem illustrated Figure 3. Figure 5 is a diagrammatic representation of a signal transmitted from the modem of Figure 3 and encoding an access identifier and packet data. Figure 6 illustrates a signal waveform resulting from the propagation of a pulse over the POTS wiring illustrated in Figure la. Figure 7 is a flow chart illustrating a method, according to one embodiment of the present invention, of generating an access identifier for a node within a network. Figure 8 is a flow chart illustrating a method, according to one embodiment of the present invention, of detecting a collision between signal transmissions on a carrier medium in a network. Figure 9 illustrates signal transmissions from two respective nodes of a network, and illustrates the detection of a collision utilizing these signals. Figures 10a and 10b are a schematic representation of one embodiment, according to the present invention, of the modem shown in Figure 3. Figure 11 is a schematic representation of a master state machine included within the modem illustrated in Figures 10a and 10b. Figure 12 is a state diagram illustrating the various operational states of the modem shown in Figures 10a and 10b. Figures 13, 14a and 14b are schematic representations of three state machines which comprise a Media Access Controller (MAC) included within the modem shown in Figures 10a and 10b. DETAILED DESCRIPTION A method and apparatus for detecting a collision between signals transmitted over a network are described. In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be evident, however, to one skilled in the art that the present invention may be practiced without these specific details. Apparatus-Overview Figures la and lb each illustrate a respective Local Area Network (LAN) 10 and 12 which may be implemented utilizing arbitrary topology POTS wiring 14, such as UTP wiring, within a residential building 16. The wiring 14 fans out from a central connection point 18, through which the wiring 14 connected to a central office, to numerous phone jacks 20 located throughout the building 16. A number of LAN devices (also termed "stations" or "nodes"), such as computers 22, modems 24 or printers 26, may be coupled to the wiring 14 via the jacks 20. Regular telephones 28 are also shown to be coupled to the wiring 14 via respective jacks 20. A number of branches of the wiring 14 may furthermore terminate in a jack 20 into which a LAN device or telephone is not connected, and are accordingly unterminated. As will be appreciated from Figure la, the wiring 14 interconnecting the LAN devices has an irregular topology, and includes a number of unterminated branches. Impedance mismatches, the arbitrary topology, and the lack of termination within the LANs 10 and 12 result in the reflection of signals and unpredictable frequency responses within these LANs 10 and 12. Further, the star 4 B configuration illustrated in Figure la serves to attenuate the levels of signal features whose duration is short compared to the propagation delay of the wire branches. Turning now to Figure 2, there is illustrated a network station 30 coupled to a LAN via uncharacterized, arbitrary topology wiring, such as the POTS wiring 14 illustrated in Figures la and b. While network station 30 is described below as implementing the Ethernet protocol, it will be appreciated that the teachings of the present invention can also be applied to other well-known networking protocols. Merely for example, the teachings of the present invention could be extended to any network implementing BISYNC or HDLC framing, Collision Detecting, Collision Avoiding, TDMA, and Polled or Token Passing access methods. An overview of the various components of the network station 30 will now be provided. The station 30 comprises a network device 36 and an adapter 35. The adapter 35 includes a modem 32 that serves to adapt a communications controller 34 of the network device 36 (such as a computer) for communication over the arbitrary POTS wiring 14. In the illustrated embodiment, the communications controller 34 is an Ethernet communications controller operating according to the IEEE 802.3 standard. In an alternative embodiment, the communications controller may simply be a serial data interface or microprocessor, and the modem 32 may incorporate a Media Access Controller (MAC) 70 that interfaces a data stream from the controller 34 to circuitry within the modem 32 via an interface such as the General Purpose Serial Interface (GPSI) 60 described below. The modem 32 provides medium interface, signal encoding and decoding (ENDEC), clock recovery and collision detection functions. To accommodate a variable bit rate encoding/decoding scheme, and to control the flow the data between the network device 36 and the wiring 14, the modem 32 controls the clocking of data to and from the communications controller 34. The modem 32 may further support Carrier Sense Multiple Access/Collision Detection (CSMA/CD) based Media Access Control (MAC) layers and accordingly provides carrier detect and collision indication signals, as is explained in further detail below. The modem 32 is furthermore shown to be coupled to a microprocessor system 38 of the network device 36 via a management interface, which allows the modem 32 to be controlled by software executing within the microprocessor system 38. The adapter 35 further incorporates a coupler module 40 by which the network station 30 is coupled to the jack 20 and POTS wiring 14. The coupler module 40 includes a pair of RJ-11 ports through which the wall jack 20 and the telephone 28 are coupled to the network device 36. The coupler module 40 is furthermore connected to the modem 32 via a transmit/receive connection 42. A filter (not shown) is incorporated within the coupler module 40, and acts as a bandpass with a lower cutoff frequency of around 400 kHz and upper cutoff frequency around 4 Mhz. The filter is AC coupled to the wiring 14 to prevent interference with POTS operations. Further details of the coupler module 40 are not pertinent to an understanding of the present invention. Referring now to the network device 36, the communications controller 34 is typically responsible for Link-Layer protocol functions, such as framing, error detection, address recognition and media access. The microprocessor system 38 is responsible for the execution of software which controls the controller 34 and the modem 32. The microprocessor system 38 is furthermore shown to be coupled to the communications controller 34 via a data bus 44, and the communications controller 34 is similarly coupled to the modem 32. The adapter 35 thus allows a network device 36 including a communications controller 34, such as an Ethernet controller, to be coupled to a LAN implemented using POTS wiring 14, and serves to encode data transmitted from the network device 36 onto the LAN into a format suitable for propagation over the wiring 14. Similarly, the adapter 35 decodes signals received via the POTS wiring 14 into a format suitable for reception by the controller 34. While the adapter 35 is shown in Figure 2 to reside outside the network device 36, it will be appreciated that the adapter 35 could in fact be incorporated within the network device as, for example, part of a Network Interface Card (NIC). Alternatively, the adapter 35 may comprise a stand alone unit which is coupled between a serial port of the network device 36 and the wall jack 20. Figure 3 is a block diagram providing a more detailed view of the components of the modem 32. Specifically, the modem 32 comprises an encoder/decoder (ENDEC) 46 which is responsible for encoding a bit sequence as a symbol for transmission over a carrier medium such as the POTS wiring 14. Similarly, the ENDEC 46 is responsible for decoding a symbol received from the wiring 14 to generate a bit sequence. The encoding and decoding operations performed by the ENDEC 46 will be described in further detail below. The ENDEC 46 furthermore supplies both transmit and receive clocks to the communications controller 34 or, in an alternative embodiment, to a MAC within the modem 32. Overall operation of the ENDEC 46 is under the control of an access sequencer 48. The access sequencer 48 selects a general mode of operation for the ENDEC 46 and for the modem 32 as a whole, and controls the flow of data between the modem's subsystems and interfaces. The access sequencer 48 is also responsible for implementing collision detection within the modem 32. The modem 32 further includes receiver/transmitter circuitry 50, which is responsible for the reception and transmission of symbols encoding bit sequences. In one embodiment of the invention, such symbols are delimited by electrical pulses, in which case a transmitter 50a receives symbol and polarity information, synchronized to a master clock, from the ENDEC 46. In one embodiment, the symbol information received at the transmitter 50a from the ENDEC 46 represents the variable-duration (or encoding) portion of a composite symbol to be propagated from the transmitter 50a. The transmitter 50a appends a fixed-duration (or buffer) portion to the variable-duration portion to generate the composite symbol. The transmitter 50a then generates symbol delimiters, which determine the time duration and polarity of the composite symbol, in the form of pulse doublets. Each pulse doublet comprises first and second portions of approximately equal duration and opposite polarity, and has a fixed pulse width. The polarity of each pulse doublet is determined by information received from the ENDEC 46. As each pulse doublet comprises two equal portions of equal duration and opposite polarity, no Direct Current (DC) component is generated on the wiring 14 when the pulse doublet is transmitted thereon. Compliance with FCC Part 68 requires that the voltage levels of each pulse doublet be substantially less than would be generated when driving the coupler module 40 at Transistor-Transistor Logic (TTL) levels. A reduction in the voltage levels of each pulse may be accomplished by incorporating a series of resistors, or step-down windings, in a coupling transformer within the circuitry 50. In one embodiment, each pulse doublet comprises a single cycle of a 2 mHz sine wave. The circuitry 50 also includes a receiver 50b, which comprises gain elements, comparators and digital control circuitry. The receiver 50b produces an output pulse, coincident with a first peak (i.e. the inflection point) of a complex waveform received by the wall jack 20 off the wiring 14. The complex waveform may be highly attenuated and distorted as a result of being propagated through a residential POTS wiring 14, and reflections can result in a peak amplitude occurring sometime after arrival of the incident energy. Without line terminations and with complex topologies, pulse energy can continue for many microseconds, decaying gradually. Referring again to Figure 3, the modem 32 also includes system interfaces in the form of a General Purpose Serial Interface (GPSI) 60 and a management interface 62. The GPSI 60 allows the modem 32 to control the clocking of data into and out of the communications controller 34. Table 1 below provides the details of the GPSI 60 signal lines: TABLE 1 The management interface 2 is a simple -wire serial interface for setting and reading management configuration information. A microprocessor within the communications controller 34 uses the interface 62 to establish the speed of operation, and to set the access sequencer's 48 mode of operation. In one embodiment the communications controller 34 is an Ethernet controller, and the management parameters for the modem 32 are stored in a serial EEPROM, and loaded automatically every time the controller 34 is reset or initialized. Table 2 below details the relevant signal pins and management configuration data: TABLE 2 The receiver 50b further includes an Analog Front End (AFE) circuit 50c and a Phase-lock loop (PLL) circuit 50d. The AFE 50c shapes transmit pulses, and locates incident peaks of received waveforms (pulses). Figure 4 illustrates the modem 32 included within an adapter 64 which allows a computer 22 including a lOBaseT Ethernet communications controller 34 to communicate over a LAN implemented using POTS wiring 14. The adapter 64 includes a filter/coupler module 66, a lOBaseT Media Access Unit (MAU), an ENDEC 68, an Ethernet MAC Controller 70, a buffer manager 72, and a Static Random Access Memory (SRAM) 74. The adapter 64 acts as a non-filtering bridge, and receives packets from either interface, buffers such packets temporarily, and transmits them to the opposite interface as soon as possible. Specifically, the buffer manager 72 uses the SRAM 74 to emulate two large First In, First Out (FIFO) memories buffering packets being transferred between lOBaseT and the POTS wiring 14. In one embodiment, the adapter 64 does not have a MAC LAN address. The adapter 64 further includes a RJ-45 connector 76 for lOBaseT access, and two RJ-11 connectors 78. A speed selector 80 allows a user to configure the transmission speed of the adapter, and the adapter 64 further includes an array of diagnostic Light Emitting Diodes (LEDs) 82. Access Identifiers The present invention proposes implementing a collision detection protocol over a network, such as those illustrated in Figures la and lb, which has an arbitrary topology, and unterminated branches. In one exemplary embodiment, a network 10 implements the Ethernet protocol and thus a CSMA/CD mechanism is invoked for every transmission over the network 10. In such a network 10, each networks station 30 includes an Ethernet communications controller 34, which provides the CSMA/CD mechanism. However, as detailed above, an arbitrary topology renders traditional collision detection methodologies unreliable. Specifically, the occurrence of reflections and noise on a network using POTS wiring as a carrier medium render traditional "carrier sense" methodologies and techniques unreliable. Accordingly, the present invention proposes that the adapter 64, as shown in Figure 4, provide a "front-end" for the communications controller 34 which allows the detection of collisions in a manner which compensates for the unpredictability and arbitrary nature of a carrier medium. Merely for example, assuming that a maximum node separation of 500 feet is specified in the network 10, a "slot time" of no more than 2 microseconds may exist. The term "slot time" comprises twice the propagation delay between nodes, and indicates the maximum amount of time required by a node to capture the carrier medium. In order to facilitate the detection of signals transmitted by multiple stations within such a slot time, the present invention proposes assigning a unique access identifier 100 to each station. This access identifier encodes a unique identifier, and is transmitted from each station prior to the transmission of a data packet 102. Referring now to Figures 3 and 5, a data packet transmission commences when the communication controller 34 indicates to the modem 32 a desire to transmit by raising a transmission enable (TENA) signal. If the carrier medium is detected as being available (e.g., no transmitted pulses from other nodes have been seen on the POTS wiring for N microseconds), the access sequencer 48 causes the transmitter 50a to transmit the access identifier 100, which is unique to the network station 10. The access identifier 100 is substituted for a portion of a preamble transmission, which is conventionally transmitted from an Ethernet MAC controller at the beginning of a packet. The access identifier 100 encodes a unique 8-bit access identification number, which is encoded two bits at a time using, as shown in Figure 5, four identifier portions 104b-e of a signal 105. For the purposes of the specification, it is convenient to define a time unit in terms of which time intervals and temporal locations can be expressed. To this end, a time unit arbitrary termed a TIC is defined as comprising 0.1167 microseconds. As shown in Figure 5, in one exemplary embodiment, the access identifier 100 comprises (six) 6 intervals 103a-103f. The first interval 103a is bounded by two electrical pulses which are 128 TICs apart. The next 4 intervals 103b-103e each comprise a buffer or "dead time" portion 106 and an identifier portion 104. Each buffer portion 106 is twice the duration of an Intersymbol Blanking Interval (ISBI) which comprises 20 TICs. The ISBI is further defined and explained in co- pending application Serial No. 08/925,205, entitled "METHOD AND APPARATUS FOR ENCODING AND DECODING A BIT SEQUENCE FOR TRANSMISSION OVER POTS WIRING", filed 08 September 1997, and assigned to the assignee of the present application. The two bits encoded in each identifier portion 104 are encoded in the temporal location of a pulse within that identifier portion 104. For example, a pulse transmitted in the 66th TIC of an interval 103 encodes the bit sequence "00". Similarly, the bit sequences "01", "10", and "11", are encoded by pulses transmitted in the 86th, 106th and 126th TICs within an interval 103. For example, the identifier portion 104b includes a pulse transmitted in the 106th TIC of the interval 103b, and thus encodes the bit sequence "10". The last interval 103f comprises a "silence gap" and contains no pulses. This silence gap is used for the detection of a "jam" pattern, as will be described below, and it is during this silence gap that all receivers 50b attain maximum sensitivity. 12 HEET RULE2&) The respective buffer portions 106 are required to separate the pulses included within the identifier portions 104 by a predetermined time duration so as to allow for proper detection thereof by a receiver 50b. To this end, reference made to Figure 6, which shows a waveform 110 of a signal received at a receiver 50b in response to the transmission of a pulse over a carrier medium, such as the POTS wiring 14. The waveform 110 includes a primary pulse 112 having an incident peak 114, followed by a series of decaying reflections. It will be appreciated that, in order to properly identify an access identifier 100 received as a receiver 50b, it is important that the true incident peak 114 be detected. As also shown in Figure 6, it is conceivable that the reflections can result in a peak amplitude occurring sometime after the arrival of the incident energy. In order to allow the receiver 50b to determine the precise time of arrival of a first incident peak, sensitivity of the receiver 50b should be lessened, or the receiver 50b disabled, after detection of the incident peak. Accordingly, in one embodiment, the main receiver signal path comprises an amplifier followed by a differentiator (not shown). The amplifier may be necessary to compensate for the lower transmit levels required for compliance with FCC Part 68, and gain is accordingly fixed at about 15dB. The output of the amplifier is fed to the differentiator whose output changes polarity whenever the input waveform's slope changes sign. The output of the differentiator is gated by both time and amplitude processing circuits within the receiver 50b. To further qualify the output of the differentiator, two (2) comparators and a threshold voltage generating circuit (not shown) detect the polarity of an incoming pulse. The comparators take as inputs the amplified waveform and a threshold voltage generated by the threshold voltage generating circuit. The comparators each receive an opposite phase of the amplified input waveform so that one comparator's output is active when the waveform exceeds the threshold voltage in a positive direction, and the other comparator's output is active when the waveform exceeds the threshold voltage in a negative direction. The threshold voltage generated by the threshold voltage generating circuit tracks the amplitude the incident peak, and is allowed to decay exponentially as shown in Figure 5 and in a manner that roughly models the expected lowered amplitude responses of the received reflection pulses. A bias ensures that the threshold voltage can only sink to a minimum value representing the maximum sensitivity of the receiver 50b. Regarding the initial setting of the threshold voltage, when a new waveform arrives at the receiver 50b, the amplified line voltage arises above, or falls below, the threshold voltage and causes one of the two comparators to again become active. This then sets the latch which remembers the polarity of the incident waveform, and disables the output of the other comparator until the receiver 50b is re-armed. The setting of the latch causes the threshold voltage to be driven to the peak voltage of the incident wave. The latch also arms an edge detector circuit (not shown) which is looking for a transition from the peak detector, indicating the arrival of a first incident peak. While waiting for the next pulse, the threshold voltage generating circuit output is in a high impedance state, allowing a capacitor to hold this threshold voltage. A bleed resistor causes this voltage to drain off, effectively increasing the sensitivity of the receiver 50b with the passing of time. A further impediment to detecting pulses transmitted over an arbitrary topology carrier medium may result from the AGC action of the receiver 50b, which creates difficulties in the simultaneous transmission and reception of signals. For the above reasons, the present invention proposes encoding identifiers using pulses separated by a minimum period comprising with the "dead time" buffer portion 106 of an interval 103. Specifically, each of the buffer portions 106 is of sufficient duration so as to allow the reflections of an incident pulse to decay below the above discussed threshold voltage, as illustrated Figure 6. Turning now to Figure 7, there is illustrated a method 120 of automatically allocating an unique access identifier to each of the stations (or nodes) of the network 10. The method 120 is performed by each of the nodes included within such a network 10. After start step 122, the method 120 requires initializing the node with a predetermined access identifier at step 124. Specifically, each node maintains a pre-assigned access identifier within an internal register. At step 126, the node transmits this access identifier over the network 10 for detection by all other nodes of the network 10. At step 128, the node receives access identifiers propagated over the network 10 by other nodes, and then decodes these access identifiers to reveal identifier numbers encoded therein. At decision box 130, the node compares the number encoded into the access identifier with which it was initialized to the numbers decoded from the access identifiers received from other nodes in the network 10. If it is determined that any one of the access identifiers received from another node is identical to the access identifier with which is was initialized, the node generates a new, random 8-bit number from which is generated a new access identifier at step 132. The method loops from step 132 back to step 124, wherein the node is again initialized with this newly- generated identifier. Alternatively, should it be determined at decision box 130 that the internally-stored identifier number is unique on the network, the access identifier is maintained in step 134. The method 120 the loops back to step 126. Accordingly, during the course of normal network activity, nodes within the network will randomly change their access identifiers until all are unique. It will be appreciated that the access identifiers discussed above are required only for the purposes of collision detection among transmissions occurring from two nodes within the slot time. Collision Detection One exemplary embodiment of the present invention implements both transmit mode and receive mode collision detection, as required for operation of an Ethernet network over twisted-pair wiring. Specifically, transmit mode collision detection is performed by the nodes transmitting signals, whereas receive mode collision detection is performed by non-transmitting nodes of the network. Receive mode collision detection is also required for detection of collision across various segments, connected by repeaters, of the network. It will also be appreciated that the present invention may optionally be implemented in a network supporting only transmit mode collision detection. Referring now to Figure 8, there is illustrated a method 140, accordingly to one embodiment of the present invention, of detecting collisions between transmission signals on a carrier medium in a network. The method 140 is performed by each individual node of a network prior to transmission of a message package. The method 140 commences at step 142, and then proceeds to step 144, where a first access identifier is propagated from the transmitter 50a of the modem 32 of a first node onto the wiring 14, and then "looped back" and received at the receiver 50b of the transmitting modem 32. At step 146, a second node transmits a second access identifier on the wiring 14, within a predetermined slot time, the second access identifier then being received at the receiver 50b of the first node. In one embodiment of the invention, the slot time is defined to be 2 microseconds. It is unlikely that an access identifier will be received at the receiver 50b after the expiration of the slot time, as other nodes would by this time have detected that the subject node is transmitting The respective first and second access identifiers each have a predetermined duration, and include a number of pulses which encode a numeric identifier, as detailed above. Accordingly, it will be appreciated that pulses of the second access identifier will be received at the receiver 50b of the first node together with the pulses of the "looped back" first access identifier. The pulses of the first and second identifiers will be perceived by the receiver 50b as being interspersed, and to comprise a single "received" access identifier. At decision box 148, a determination is made as to whether the temporal locations of the pulses within the transmitted and received access identifiers correspond. If the temporal locations of the pulses within the respective transmitted and received access identifiers do correspond (i.e., the pulses of the second access identifier are not interspersed with those of the first access identifier), the method proceeds to step 150, at which a "no collision" occurrence is detected as this indicates that only the first access identifier was received and that no second access identifier was transmitted. The subject node then proceeds to transmit the message packet at step 152, and the method terminates at step 154. On the other hand, should it be determined at decision box 148 that the temporal locations of pulses within the transmitted and received identifiers do not correspond (i.e., pulses from the second access identifier are interspersed with those from the first access identifier), the method proceeds to step 156, at which a "collision" occurrence is detected. Thereafter, the method proceeds to step 158, wherein the subject node transmits a jamming signal so as to facilitate receive mode collision detection by idle nodes of the network. The jamming signal is transmitted by the transmitter 50a until signaled by the communications controller 34 to cease transmission of this signal. The method 140 will now be further described with reference to Figure 9, which provides an illustrative example of a collision between respective signals 160 and 162 transmitted by two nodes, namely Node 1 and Node 2, within a network. Node 1 begins transmission of the signal 160 by propagation of an access identifier 100 identifying Node 1. Within a predetermined slot time, Node 2 similarly begins transmission of the signal 162 by propagation of an access identifier 100 identifying Node 2. As shown, the identifier portions 104 of the first and second intervals 103 of signals 160 and 162 are identical, and accordingly no collision is detected by Node 1 on receipt of these first or second intervals 103. However, it will be noted that the respective third intervals 103 of the signals 160 and 162 differ, in that the temporal locations of the pulses included within the identifier portions 104 differ. Accordingly, on reception of the third interval 103 of signal 162, Node 1 detects a collision as the pulse of this third interval 103 is located, for example, in the 66th TIC, whereas the pulse of the third interval 103 of signal 160 is located in the 126th TIC. It will be noted that the buffer portion 106 included within each interval 103 provides time for the ringing from the previous pulse to completely die out before the next pulse is sent. Node 2 does not detect a collision on receipt of pulse 168, as the "dead time" or blanking interval (comprising twice the ISBI) has not as yet expired and the receiver is not sensitive (or is switched OFF) during the blanking interval. Accordingly, a collision is detected when a signal pulse is received from another node during a period of receiver sensitivity (i.e., immediately prior to transmitting the next symbol of an access identifier). After Node 1 detects the collision, a jamming signal 170, comprising a continuous and evenly-spaced sequence of pulses, is transmitted from the transmitter 50a of Node 1. The first pulse 172 of the jamming signal 170 causes Node 2 to detect a collision, as the receiver 50b thereof is again re-enabled after the blanking interval. After detection of the collision, Node 2 similarly begins to transmit a jamming signal 170. The jamming signals 170 allow non-transmitting (or passive) nodes within the network 10 to detect the collision when they receive pulses during the interval 103f (i.e., the "silence gap"), which is silent in the absence of a collision. Exemplary Embodiment Figures 10a-14b illustrate an exemplary embodiment of the modem 32 implemented using Field Programmable Gate Arrays (FPGAs). The access sequencer 48 is shown to comprise a Master State Machine (MSTM) 48a and a Media Access Controller (MAC) 48b. Referring now specifically to Figures 11 and 12, the basic function of the MSTM 48a is to control the flow of data between the wire 14 and an Ethernet communications controller 34. The MSTM 48a 17 E2B receives the number of inputs 180 from encoder 46a, decoders 46b, receiver 50a and the transmitter 50b, and outputs a master state signal (MS[7:0]) 182, which indicates one of eight operational states illustrated in Figure 12 , to other functional units of the modem 32. Referring to the state diagram shown in Figure 12 , when the modem is in an idle state (IDLE) 184, the modem waits for the Ethernet communications controller 34 to being packet transmission or for a packet to be received off the wire 14. Should the controller 34 begin packet transmission, the modem 32 enters a transmit access identifier (TX_AID) state 186, in which the MAC 48b causes an access identifier, as detailed above, to be transmitted over the wiring 14. If a collision is sensed, then a transmit jam (TX_JAM) state 188 is entered. In the state 188, the MAC 48b sends the above described jamming signal 170, until the Ethernet controller 34 stops transmitting. Once the MAC 48b terminates transmission of the jam signal 170 and the wire is clear, the modem enters an interframe gap (IFG) state 190. In the IFG state 190, the GPSI 60 runs the Ethernet communications controller 34 at a relatively high clock speed, so as to shrink a minimum interframe gap seen on the wire 14. This has the advantage of saving time which is used by the access identifier transmission. Returning to state 186, if no collision is detected, then the modem 32 enters the transmit packet (TX_PKT) state 192. In state 192, the modem transmits a message packet, and remains in this state until no carrier is sensed in the wire, meaning that the last bit of the message packet has been found and encoded, and that all looped back symbols have cleared the receiver 50b. The modem 32 then moves from state 192 to the IFG state 190. The receive access identifier (RC_AID) state 194 is entered into when an incoming packet is detected. For example, an incoming packet may be detected by detecting two pulses 14.93 microseconds apart. If a jamming signal 170 is detected during the above described silence interval of the access identifier, a receive jam (RC_JAM) state 196 is entered. The modem 32 remains in the receive jam state 196 until the wire 14 is quiet. Thereafter, the IFG state 190 is entered. Alternatively, when in the receive access identifier state 194, should the Ethernet communications controller 34 begin to transmit, the transmit jam state 188 is entered. Alternatively, should a collision not be signaled by the MAC 48b when in the receive access identifier state 194, the modem enters a receive packet (RC_PKT) state 198. When in the receive packet state 198, an incoming packet is decoded and sent to the Ethernet communications controller 34. The modem 32 then progresses from state 198 to the IFG state 190 when no more pulses are detected on the wire 14. Referring now to Figures 13, 14a and 14b, the MAC 48b includes a MAC control state machine 200, a transmit access identifier state machine 202 and a check access identifier state machine 204. The MAC control state machine 200 acts as an intermediary between, and controller for, the state machines 202 and 204. The state machine 200 further receives the inputs 206, including the inputs 206a from the check access identifier state machine 204, and generates the outputs 208, including the outputs 208a to the transmit access identifier state machine 202 and the outputs 208b to the master state machine 48 a. Further details regarding the inputs 206 and the outputs 208 of the MAC control state machine 200 are provided below in Tables 3 and 4. TABLE 3 19 TABLE 4 The PICK signal mentioned above is used when the MAC 48b senses a transmission by another node using the same access identifier. Assertion of the PICK signal causes a new and substitute access identifier to be generated by a pseudo-random number generator. The transmit access identify state machine 202 is coupled to receive the inputs 212, and to output the signal MT_PULSE 214, which propagates pulses encoding the access identifier on the wiring 14. Specifically, the output signal 214 comprises in part the access identifier 100, in the form of series of pulses which are spaced far enough apart so that two nodes transmitting at the same time, but with different access identifiers, can detect one another as described above. The access identifier 100 included in the output signal 214 is encoded as described above with reference to Figure 5. The check access identifier state machine 204 is coupled to receive the input signals 216, which include RD_PULSE signal 216a. The RD_PULSE signal 126a may include a series of pulses, received at the receiver 50b which encode an access identifier 100. The state machine 204 provides the outputs 218 to the MAC control state machine 200, as described above. Thus, a method and apparatus for detecting collisions between signals on a network have been described. Although the present invention has been described with reference to specific exemplary embodiments, it will be evident that various modifications and changes may be made to these embodiments without departing from the broader scope and spirit of the invention. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense.

Claims: CLAIMS What is claimed is: 1 . A method of detecting a collision between signal transmissions on a carrier medium in a network, the method including the steps of: transmitting a first identifier from a transmitter of a network device, the first identifier having a predetermined duration and including a pulse at a temporal location within the first identifier specific thereto; receiving a second identifier at a receiver of the network device, the second identifier having a predetermined duration and including a pulse at a temporal location within the second identifier; determining whether the temporal location of the pulse within the second identifier corresponds to the temporal location of the pulse within the first identifier; and if not, then detecting a collision on the network. 2. The method of claim 1 wherein the first identifier includes a plurality of pulses, each having a temporal location with the first identifier specific to the first identifier, the method including the steps of determining whether the respective temporal locations of the pulses within the first identifier correspond to temporal locations of pulses included within the second identifier and, if not, then detecting a collision in the network. 3. The method of claim 1 including the step of transmitting a jamming signal upon the detection of a collision in the network, the jamming signal comprising a series of pulses spaced at regular intervals. 4. The method of claim 1 including the step of implementing a silence gap, in which no pulses are transmitted, after transmission of the first identifier and detecting a collision on the network if a pulse is received at the receiver during the silence gap. 5. The method of claim 1 including the step of including a buffer period between the transmission of the first identifier and transmission of a subsequent identifier so as to allow reflections on the carrier medium, generated by transmission of the pulse within the first identifier, to decay to a predetermined level before transmission of the subsequent identifier. 6. The method of claim 1 including the step of blocking the receiver's ability to detect a pulse greater than a specific amplitude after detection of the pulse within the second identifier. 7. The method of claim 6 including the step of decreasing the specific amplitude over a period equal to the buffer period. 8. Apparatus for detecting a collision between signal transmissions on a carrier medium in a network, the apparatus including: a transmitter coupled to transmit a first identifier over the carrier medium, the first identifier having a predetermined duration and including a pulse at a temporal location within the first identifier specific thereto; a receiver coupled to receive a second identifier transmitted over the carrier medium, the second identifier having a predetermined duration and including a pulse at a temporal location within the second identifier; and a logic circuit, coupled to the receiver, that determines whether the temporal location of the pulse within the second identifier corresponds to the temporal location of the pulse within the first identifier and, if not, that detects a collision on the network. 9. The apparatus of claim 8 wherein the first identifier includes a plurality of pulses, each having a temporal location within the first identifier specific to the first identifier, the logic circuit being configured to determine whether the respective temporal locations of the pulses within the first identifier correspond to temporal locations of pulses included within the second identifier and, if not, to detect a collision in the network. 10. The apparatus of claim 8 wherein the transmitter is configured to transmit a jamming signal upon detection of a collision in the network, the jamming signal comprising a series of pulses spaced at regular intervals. 1 1. The apparatus of claim 8 wherein the transmitter is configured to implement a silence gap, in which no pulses are transmitted, after transmission of the first identifier and the logic circuit is configured to detect a collision on the network if a pulse is received at the receiver during the silence gap. 12. The apparatus of claim 8 wherein the transmitter is configured to include a buffer period between the transmission of the first identifier and transmission of a subsequent identifier so as to allow reflections on the carrier medium, generated by transmission of the pulse within the first identifier, to decay to a predetermined level before transmission of the subsequent identifier. 13. The apparatus of claim 8 wherein the receiver is configured not to detect a pulse greater than a specific amplitude after detection of the pulse within the second identifier. 14. The apparatus of claim 13 including a threshold circuit coupled to the receiver and configured to decrease the specific amplitude over a period corresponding to the buffer period. 15. An adapter for providing a coupling between a network station and a carrier medium, the adapter including: a network station interface; a carrier medium interface; a transmitter, coupled to the carrier medium interface, configured to transmit a station identifier over the carrier medium, the station identifier being associated with the network station and including a pulse having a temporal location within the first identifier specific thereto; a receiver, coupled to the carrier medium interface, and configured to receive a further station identifier transmitted over the carrier medium, the further station identifier including a pulse at a temporal location; and a logic circuit, coupled to the receiver, configured to determine whether the temporal location of the pulse within the further station identifier corresponds to the temporal location of the pulse within the station identifier and, if not, to detect a collision on the network.

Inventors: JEFFRESS JEREMIAH, WEBBER HAROLD H JR, JEFFRESS, JEREMIAH, WEBBER, HAROLD, H., JR.
Applicants: TUT SYSTEMS INC, TUT SYSTEMS, INC.
Application year: 1998
Main classification: H03K7
IPC codes: H04L12