A collision detection technique for an optical passive star local area network using csma/cd

Abstract: The present invention relates to a collision detection technique for an optical Star LAN using CSMA/CD. The pre­ sent technique is implemented by preferably adding two or more fixed Hamming weight sequences (30), e.g., a fixed even or odd number of 1's in each unique cyclic error correct­ ing code word, to the preamble section of each packet of in­ formation to be transmitted. These collision detection seque­ nces have a length which is beyond the vulnerable time period of the CSMA/CD protocol (maximum round-trip prop­ agation delay for each packet) by at least one code word length in order to prevent any misdetection, or false detec­ tion, of a collision. Each receiver (20,21) in the listening period, looks for a code pattern with a fixed Hamming weight. When code patterns collide, the Hamming weight of the re­ sulting code word in the collision period will exceed the nom­ inal sequence weight (will include more 1's than the fixed Hamming weight) and a sequence weight violation is detec­ ted. Such detection is used to stop the transceivers (11) from transmitting over the LAN and restart the network in order to avoid further collisions and network chaos.

Description: Technical Field The present invention relates to a collision detection technique for an optical passive star local area network using CSMA/CD, which prevents misdetection or false detection of a collision. Description of the Prior Art Recent advances in automated offices and industrial facilities have increased the demand for Local Area Networks (LANs) of which optical LANs provide a high speed environment. Of the optical LANs, a star topology has been recommended for certain applications since it exploits the fiber optic technology to its fullest capability as point-to-point links. The centralized wiring topology is flexible and well suited to the design of an optical LAN that can accommodate various diverse requirements imposed by the office of the future and fully automated factory floors and hospital information systems. It is, however, believed that unique system approaches are necessary when fiber optic technology is employed in traditional LAN architectures that were originally developed for other communication media. For example, collision detection is fairly simple to implement in baseband coaxial carrier sense multiple access (CSMA) networks. In a coaxial bus system operating based on CSMA with collision detection (CSMA/CD), such as the well-known "Ethernet" system, collisions can be detected by, for example, Manchester encoding of transmitted data. As described in the article "Manchester Chip Eases The Design of Ethernet Systems" by H-M. Haung et al. in Electronic Design , Vol. 32, No. 15, July 16, 1984, at pages 221-228, this is basically a mapping of every on and off pulse to a dibit consisting of a one and a zero in a pre-assigned order. Then by monitoring the d.c. level variations due to collisions, one can easily detect a collision. This technique works well because the d.c. level attenuation is very small using coaxial cable over a span of less than one kilometer when transmitters have a uniform output level. In optical fiber systems, however, there may be large differences in the signal strength as seen by a given receiver, where variations are due to fiber losses, optical source outputs and network topology. Therefore, it is possible for a strong signal to mask out the weaker signal such that a receiving station cannot detect the occurrence of a collision. This problem is more pronounced on a bus topology. In CSMA, medium size traffic users sense the medium before they transmit. In other words, transmitters listen to the channel before they transmit. Once the channel is sensed idle, the call originator starts transmission. Collisions may occur if a station starts transmission within the maximum round trip end-to-end propagation delay, 2T max of all network stations. Therefore, the collision time window 2T max is much smaller than the packet length, and collisions can only occur within a 2T max length segment of a packet. If collisions are detected, the throughput of CSMA can increase since only a small fraction of a packet is destroyed in a collision. Once a collision is detected, the network is jammed and all stations are informed to stop transmission over the LAN. The article "Methods of Collision Detection In Fiber Optic CSMA/CD Networks" by J.W. Reedy et al, in IEEE Journal On Selected Areas In Communications, Vol. SAC-3, No. 6, November 1985 at pages 890-896 discusses seven methods for detecting collisions in fiber optic networks employing CSMA/CD. The focus of the article is on collision detection accuracy, dynamic range, simplicity and reliability. Some of these methods that use a passive Star coupler nearly meet the collision dynamic range or reliability standards of IEEE 802.3 as discussed at page 891 of this article. FR-A-2 539 935 discloses a collision detection method in which a cyclic redundancy code is calculated for the first N bits of a data message, where N bits corresponds to the 'collision gap', i.e. twice the round-trip delay for the network. The transmitting station recalculates the redundancy code when it receives the beginning of the message back, and detects a collision if the code is not the same as originally calculated. The problem remaining in the prior art is to provide a collision detection technique for use in optical networks employing CSMA/CD which can tolerate far wider dynamic range variations compared to the known methods and at the same time can be simple to implement and reliable. Summary of the Invention According to the invention there is provided a collision detection arrangement, a transceiver and a collision detection method as set out in the independent claims. Brief Description of the Drawing In the drawings: FIG.1 is a block diagram of an optical Lcal Area Network including an expanded block diagram of a transceiver in accordance with the present invention; FIG. 2 illustrates a portion of a collision detection sequence with full bit overlap between words; FIG. 3 illustrates a portion of a collision detection sequence with a fractional bit overlap between words; and FIG. 4 is a block diagram of an exemplary collision detector for use in FIG. 1. Detailed Description FIG. 1 is a block diagram of a Carrier Sense Multiple Access (CSMA) optical Local Area Network (LAN) wherein a terminal 10 transmits and receives communications from other terminals via a transceiver 11 which is coupled to a passive star coupler 12 interconnecting all transceivers. In accordance with the present invention, the transceivers 11 use a collision detection technique which operates based on a sequence weight violation (SWV) rule using sequences of predetermined fixed Hamming weight constructed from cyclic error correcting codes as will be explained in greater detail after describing the general arrangement of the LAN of FIG. 1 for a clearer understanding of the technique. In transceiver 11, packets of information to be transmitted over the LAN are sequentially received from terminal 10 in a transmitter and control logic circuit 13 which adds pertinent header, or preamble, information to each packet of information. The output signal from transmitter and control logic circuit 13 is then delivered to a light transmitting device such as, for example, a Light Emitting Diode (LED) 14, which converts the electrical signal from circuit 13 to a light-wave signal for transmission over a fiber 15 to passive Star coupler 12. The lightwave signals from all transceivers of the LAN are received by Star coupler 12 and distributed to all output ports and the associated output fibers 16 for delivery back to the transceivers 11 of the LAN. The signals propagating along a fiber 16 from each output port of Star coupler 12 are received by an Avalanche Photodiode (APD) 17 in the receiver portion of the associated transceiver 11. APD 17 functions to detect a lightwave signal arriving on fiber 16 and convert the lightwave signal into an electric waveform output signal which is delivered to an idle detector 18. Idle detector 18 functions to monitor the received signals at all times and determine whether the channel is active or idle at any instant of time. If idle detector 18 finds the channel is active, e.g., receiving optical power on the channel, detector 18 sends a disable signal to transmitter and control logic circuit 13 to prevent circuit 13 from transmitting signals to Star coupler 12 and thereby cause a collision. Idle detector can comprise any suitable circuit as, for example, an energy sensor. The received signal after passing through APD 17 is also received by both a timing circuit 19 and a receiver and control logic circuit 20. Timing circuit 19 functions to provide an output clock signal which provides bit and word timing for both the receiver and control logic circuit 20 and a collision detector arrangement 21. Timing circuit 19 can comprise any of the well-known timing circuits for taking a received waveform and providing synchronized bit and word output timing signals. Receiver and control logic circuit 20 functions to (a) transmit the pertinent header information to collision detector 21 via lead 22, (b) determine from address information whether the received packet is destined for terminal 10 of the LAN, and (c) send any remaining information such as, for example, the data contained in the packet of information to terminal 10 via lead 23 when the data within the packet is destined for terminal 10. Collision detector 21 generally functions to determine, from the packet header information which is received from receiver and control logic circuit 20, whether or not two or more packets of information have collided while propagating through Star coupler 12 during each packet vulnerable time period. The method which permits collision detector 21 to determine whether or not a collision has occurred in accordance with the present invention will be described in detail hereinafter. Once collision detector 21 determines that the received header information indicates that the received packet has not collided with another packet within the network, it transmits an enable signal to receiver and control logic circuit 20 over lead 24 to permit a destination check by receiver and control logic circuit 20 and data information in that packet to be sent to terminal 10 over lead 23 if the packet has been determined to be destined for terminal 10 by circuit 20. If, alternatively, collision detector 21 determines that the received packet of information comprises information of packets which have collided in the network, then collision detector 21 transmits a disable control signal to both receiver and control logic circuit 20, over lead 24, and transmitter and control logic circuit 13 over lead 25. Such disable, or jamming, control signal prevents receiver and control logic circuit 20 from transmitting received packet information to terminal 10 and prevents transmitter and control logic circuit 13 from transmitting the next packet to LED 14 for transmission to Star coupler 12. In other words, in case of a collision being detected, all transceivers of the LAN will detect such collision and each transceiver will be jammed or disabled. The transmitters thereof are effectively instructed to back off and retransmit after a random delay. If this were not done, the collisions would increase as the initial colliding transceivers tried to retransmit at another time thereby possibly colliding with more transceiver packets, etc. until the LAN was in chaos. The present invention uses a sequence weight violation (SWV) technique for collision detection in a CSMA optical LAN which is very robust and simple compared to the seven methods described in the article by J. W. Reedy in IEEE Journal On selected Areas In Communications, Vol. SAC-3, No. 6, November 1985, at pages 890-896. More particularly, the technique assigns a short sequence of, for example, 100 bits preferably comprising a few (at least two) repeated fixed Hamming weight code words from a cyclic error correcting code to every packet having an exemplary length of typically a few thousand bits. Each transceiver 11 of the LAN is assigned a unique short collision detection sequence which is placed near the beginning of the header information in every packet by the transmitter and control logic circuit 13 before the packet is transmitted from that transceiver. For purposes of explanation hereinafter, it will be assumed that the predetermined cyclic error correcting code used is that of a Golay code with a predetermined code word Hamming weight. It should be understood that any other suitable cyclic error correcting code can also be used by each transceiver, such as, for example, the Hamming or Bose-Chaudhuri-Hocquenhem (B.C.H.) codes. The sequences used by the transceivers 13 of the LAN are designed to have, for example, a given Hamming weight and a given minimum distance from one another. Since a collision can only occur within the maximum round trip end-to-end propagation delay, 2T max , then once this period is over, normal transmission by a station commences. The present collision detection sequence covers this interval plus the length of one code word as will be explained hereinafter. The remainder of the packet header comprises timing and address bits. It should be noted that the extra bits assigned to the collision detection sequence in the packet header only reduces the throughput by a negligible amount. The sequences are selected such that once collided, they result in a Hamming weight larger than the nominal weight of each assigned sequence. Therefore, by monitoring the packet header, a collision can be easily detected. This is done by counting the Hamming weight of the received sequence and comparing it to a collision weight threshold. If the threshold is exceeded, a collision is declared by collision detector 21 and the LAN is jammed. Otherwise the transceivers 11 continue transmissions. The principal concept concerning collision detector 21 based on a SWV technique is to let each transmitter 13 attach a unique collision detection sequence to each packet in the manner shown in FIGs. 2 and 3. The collision detection sequence in section 30 immediately follows the bit and word timing sequence in section 31 in the beginning of the header portion of a packet, and precedes the timing and address information in header portion 32. It will be assumed hereinafter that each bit is transmitted by means of on ("1") and off ("0") keying and that a non-return to zero (NRZ) format is used. The collision detection sequences should be chosen in such a way that a collision is easily detected and such that the probability of failure to detect a sequence is low. Since collisions can occur within a certain interval of relative time delay between two involved packets, the sequences must be such that collision detection works for any relative time shift between them. It is also preferable from the sequences that for any time shift between two packets, a collision involving a weak signal packet is identified when a minimum number of "1"-s are visible in the received "0"-s of a strong signal packet. Of course, if a colliding weak "1" overlaps a received strong "1", then the former is masked-out and cannot be detected. It is clear, therefore, that the collision detection sequence for a certain packet should be a mixture of "1"-s and "0"-s such that it is visible when it collides with a strong signal packet but also that it allows other weak colliding packets to be visible when they collide with the given sequence. In the latter case, the sequence must contain enough "0"-s so that enough of the colliding "1"-s are not masked-out. In accordance with the present invention, collision detection sequences are constructed using the theory of cyclic error-correcting codes. It will be assumed that collision detection sequences are used that consist of words from a linear cyclic error-correcting code of length N bit intervals and a minimum Hamming distance, d min . Then, in the collision detection portion 30 of the packet, the code word is repeated at least once. The collision detection sequence length should be such that L.NT (L repeated words) is larger than the largest relative time shift that can occur in any collision in the network, where T is the time period of one bit. The sequence length should be chosen such that the overlap within the collision detection window time equals at least the length of one code word. The following description is designed to provide an understanding of the problem of designing sequences suitable for collision detection and the theory of cyclic codes will be used to satisfy some of the previously described constraints. To illustrate what happens in a collision, the bit synchronous collision at an otherwise arbitrary relative time delay is illustrated in FIG. 2. Collisions can, of course happen at any relative time delay within an interval as illustrated in FIG. 3. For simplicity of analysis, the bit synchronous collision as shown in FIG. 2 will be described first. As shown in FIG. 2, it will be assumed that a collision between two packets occurs at a relative discrete bit time shift yielding full bit hits. Furthermore, it will be assumed that a word C in packet 2 in FIG. 2 is within the time interval of a word A and a word B of packet 1. Let word A be a code word of Hamming weight W o from a binary cyclic error-correcting code with code word length N and a minimum Hamming distance d min . Let (1) word B be identical to word A, (2) word D be identical to word C, and (3) word C be such that it belongs to the same cyclic code as word A and has the same Hamming weight W o but differs from word A and any cyclic permutation of word A. By definition, all cyclic permutations of any code word in a cyclic code is also a code word in the same code. By selecting the collision detection sequence according to the above rules, it is possible to guarantee a worst case separation between colliding sequences at any relative time delay. Since words A and C are words in the same cyclic code, it is known that word C and any cyclic shift of word A are different in at least d min positions. Thus, it becomes certain that word C and that portion of word A and B in packet 1 are different in at least d min positions for any delay difference in the specified time window since words A and B are identical words and the N bits covered by word C of packet 2, denoted hereinafter as A p , is always a cyclic permutation of word A. If there is no collision, the weight count over word A and B is 2W o . When a bit synchronous collision occurs involving full hits as shown in FIG. 2, the minimum number of "on" pulses, or "1"-s, contributed by the colliding packet sequence as designated W c is equal to where the brackets mean "the nearest integer smaller than or equal to". Thus the overall count of a bit synchronous collision is at least 2W o + W c . The derived value of W c follows from the fact that both word C and any cyclic permutation of word A, denoted A p , have a constant weight W o and that the number of positions where the words are different is at least d min . The positions in the two code words can be different in two ways, namely a "1" in word C and a "0" in A p , or a "0" in word C and a "1" in A p . Only the first type of difference contributes to the height count in collision detector 21. Due to symmetry in the constant weight code word case, there are equally many of each type of difference. For even minimum Hamming distance, the number is at least and for an odd Hamming distance, this number is at least yielding the expression for W c provided above. FIG. 3 illustrates the more general case where the time delay difference between packets 1 and 2 is not an integer multiple of a bit time interval, yielding fractional bit time bits. It must be realized that there are two types of fractional bit hits that contribute to the hit count in the collision detection, namely, a "1" in word C overlapping ΔT of a "0" in word A p and a "1" in word C overlapping the remaining part, T - ΔT, of a "0" in word A p . There are at least W C of each of these two types. Sometimes, the two fractional types of hits appear in the same word A p , making it a full hit rather than two fractional bit bits. For the general case, W C is based on the smallest distance between two code words involved in a hit. In general the distance is larger, and, furthermore, the bits in word D contribute to the count and improve the average performance. Suitable sequences can be selected by using the properties of well known cyclic error-correcting block codes. The length of the sequence is given by the maximum relative propagation time difference in a collision and the system bit rate. At the given sequence length of N bits, there are two somewhat contradictory requirements on the sequences. Obviously the largest possible minimum distance, d min , between sequences should be chosen. However, there should be a sufficiently large number of sequences (M) available in the LAN so that each user has its own unique, constant weight, sequence. To obtain the largest number of sequences, M, at a given d min , the best choice of sequence weight W₀ is in most cases close to [N/2]. For the present case, only one of the cyclic permutations of a given code word of weight W₀ is a useful sequence. The weight distribution of the cyclic code is A(j), j=0,1,...N, where A(j) is the number of code words of Hamming weight j. Thus the number of useful sequences of weight W₀ is lower bounded by As an example, the cyclic Golay code will be used to construct collision sequences. For this code, the code word length is N=23, the number of code words is 2¹² and the minimum Hamming distance is d min = 7. The weight distribution of this code is well known. Thus, e.g., A(8) = A(15) = 506, A(11) = A(12) = 1288 and A'(8) = A'(15) = 22, A'(11) = A'(12) = 56, respectively. The generator polynomial is g(x) = x¹¹ + x¹⁰ + x⁶ + x⁵ + x⁴ + x² + 1. (2) Two possible collision sequences of weight 8 are: 11000000000010100100111 10000000001111011010000. (3) From the example, it can be seen that the Hamming distance between the two sequences is 12 and that at least W C = 4 of the colliding 1's are overlapping zeros in the other sequence at any cyclic shift. By shifting one of the sequences cyclically, the distance varies and at some point it is 8. As shown in FIG. 4, collision detector 21 receives the collision detection sequence in portion 30 of the header from receiver and control logic circuit 20 in a counter 40. Counter 40 functions to use the timing signals from timing circuit 19 to count the 1's in the received collision detection sequence. At the conclusion of the collision detection sequence, the total count is transmitted to a comparator 41 which compares the count with a predetermined threshold level corresponding to a predetermined Hamming weight. As described previously, if the Hamming weight does not exceed the threshold, a collision is not detected and normal operation continues. If a collision is detected, then comparator transmits a disable signal to receiver and control logic circuit 20 and transmitter and control logic circuit 13. It is to be understood that the above-described embodiments are simply illustrative of the principles of the invention. Various other modifications and changes may be made by those skilled in the art which will embody the principles of the invention. For example, in many LAN's, Manchester coding is used as a standard. Furthermore, by using Manchester coding, the signal is DC-balanced independent of data sequences. The SWV rule and the sequences derived for the NRZ coding can also be used for the Manchester coding case. However, now, the weight count should be performed for "chips" rather than bits. In the Manchester code, each bit is transformed into two "chips", where, e.g., a "1" is represented by 01 and a "0" is represented by 10. It is immediately clear that the noiseless Hamming weight for the chip count in the full bit hit case is 2W c rather than W c for NRZ. Furthermore, in the case where only partial bit hits occur, there are at most 4W c incidences, of which some occur in the same bit and form full bit hits. It is also to be understood that LED 14 and APD 17 can be replaced by any other suitable device such as, for example, a laser or PIN diode, respectively. Additionally, the invention described alleviates the need for a centralized jamming signal transmission since the collisions are detected at every station reliably.

Claims: A collision detection arrangement for use in a receiver of a Carrier Sense Multiple Access Collision Detection (CSMA/CD) communication network transceiver, the arrangement comprising: an input terminal (16) for receiving a signal from the network including a packet of information which was originally transmitted including a preamble section (30,31,32) CHARACTERIZED IN THAT the preamble signal includes a collision detection sequence (30) consisting of two or more code words, all said code words having a predetermined Hamming weight, the length of the collision detection sequence being at least equal to a maximum round-trip propagation delay for the network plus one code word length, each transceiver of the network being assigned a separate collision detection sequence; and the arrangement further comprises Hamming weight detection means (40) responsive to a collision detection sequence received at the input terminal for determining the Hamming weight of the collision detection sequence and for generating an output signal representative of such weight; and means (41) responsive to the output signal from the determining and generating means for comparing the Hamming weight of the received collision detection sequence with a predetermined threshold Hamming weight and for generating an output signal indicative of a collision of packets of information when the Hamming weight determination exceeds the threshold Hamming weight. A collision detection arrangement according to claim 1 CHARACTERIZED IN THAT the collision detection sequence comprises a cyclic error correcting code word which is repeated at least once in the collision detection sequence. A collision detection arrangement according to claim 1 or 2 CHARACTERIZED IN THAT the collision detection sequence is disposed near the beginning of the preamble section. A transceiver for use in a Carrier Sense Multiple Access Collision Detection (CSMA/CD) communication network where the transceiver is associated with a separate user of the network, the transceiver comprising: a transmitter (13) for receiving signals from the associated user and being responsive to a control signal indicating an apparent idle period in the network for transmitting a packet of information; and a receiver (20) for receiving signals from the network; said packet including a preamble section (30,31,32); CHARACTERIZED IN THAT said preamble section includes a collision detection sequence (30) consisting of two or more code words, all said code words having a predetermined Hamming weight the length of the collision detection sequence being at least equal to a maximum round-trip propagation delay for the network plus one code word length, which sequence is unique for each transceiver of the communication network; and in that the receiver comprises: collision detection means (21) responsive to each received collision detection sequence for determining the Hamming weight of the collision detection sequence, and for generating a control signal indicative of a collision of two packets on the transmission medium for disabling both the transmitter and the receiver for a period of time when the Hamming weight exceeds a predetermined Hamming weight threshold value. A transceiver according to claim 4 CHARACTERIZED IN THAT the receiver further comprises: idle detection means (18) responsive to a received signal from the network for detecting when no packet of information is being received and for generating a control signal to the transmitter to initiate the transmission of a packet of information over the network; and means (20) for determining from the received signals if an included packet of information is destined for the associated user and for transmitting such packet information to the associated user. A transceiver according to claim 4 or 5 CHARACTERIZED IN THAT the collision detection means comprises: means (40) responsive to a received collision detection sequence for determining the Hamming weight of the sequence and for generating an output signal representative of such Hamming weight; and comparing means (41) responsive to the output signal from the determining and generating means for comparing the Hamming weight indication with a predetermined Hamming weight threshold value and for generating the control signal for disabling both the transmitter and the determining means of the receiver when the Hamming weight indication exceeds the Hamming weight threshold value. A transceiver according to any of claims 4 to 6 CHARACTERIZED IN THAT the collision detection sequence comprises a cyclic error correcting code word which is repeated at least once in the collision detection sequence. A transceiver according to any of claims 4 to 7 CHARACTERIZED IN THAT the collision detection sequence is disposed near the beginning of the preamble section. A method for detecting collisions in a Carrier Sense Multiple Access (CSMA) communication network, CHARACTERIZED IN THAT the method comprising the steps of: at each transceiver of the network, (a) transmitting a packet of information including a collision detection sequence (30) in a preamble section (30,31,32) of the packet when the transceiver determines that no other transceiver of the network appears to be instituting the transmission of a packet of information at that time, the collision detection sequence consisting of two or more code words, all said code words having a predetermined Hamming weight, the length of the collision detection sequence being at least equal to a maximum round-trip propagation delay for the network plus one code word length, the sequence being unique for each transceiver of the network; (b) determining the Hamming weight of the collision detection sequence included in the preamble section of each packet of information received from the network; (c) comparing the Hamming weight determined in step (b) with a predetermined Hamming weight threshold value corresponding to said predetermined Hamming weight; and (d) disabling the transceiver for a predetermined period of time if it has been determined in step (c) that the determined Hamming weight of step (b) exceeds the Hamming weight threshold value. The method according to claim 9 CHARACTERIZED IN THAT in performing step (a), the collision detection sequence which is transmitted comprises a cyclic error correcting code word which is repeated at least once within the sequence. The method according to claim 9 or claim 10 CHARACTERIZED IN THAT in performing step (a), the collision detection sequence which is transmitted is disposed near the beginning of the preamble section of each packet of information.

Inventors: KAVEHRAD MOHSEN, SUNDBERG CARL-ERIK, KAVEHRAD, MOHSEN, SUNDBERG, CARL-ERIK
Applicants: AMERICAN TELEPHONE & TELEGRAPH, AMERICAN TELEPHONE AND TELEGRAPH COMPANY
Application year: 1987
Main classification: H04L12
IPC codes: H04L12