KR0179282B1 - Apparatus for detecting data collision and method thereof - Google Patents

Apparatus for detecting data collision and method thereof Download PDF

Info

Publication number
KR0179282B1
KR0179282B1 KR1019960031657A KR19960031657A KR0179282B1 KR 0179282 B1 KR0179282 B1 KR 0179282B1 KR 1019960031657 A KR1019960031657 A KR 1019960031657A KR 19960031657 A KR19960031657 A KR 19960031657A KR 0179282 B1 KR0179282 B1 KR 0179282B1
Authority
KR
South Korea
Prior art keywords
data
address
memory
unit
collision
Prior art date
Application number
KR1019960031657A
Other languages
Korean (ko)
Other versions
KR980013074A (en
Inventor
이동훈
Original Assignee
문정환
엘지반도체주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 문정환, 엘지반도체주식회사 filed Critical 문정환
Priority to KR1019960031657A priority Critical patent/KR0179282B1/en
Publication of KR980013074A publication Critical patent/KR980013074A/en
Application granted granted Critical
Publication of KR0179282B1 publication Critical patent/KR0179282B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/14Two-way operation using the same type of signal, i.e. duplex

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Computer Networks & Wireless Communication (AREA)

Abstract

본 발명은 데이터통신에 관한 것으로서 전이중 방식의 데이터통신에서 발생할 수 있는 데이터의 충돌을 검출하는데 적당한 데이터 충돌검출 장치 및 방법을 제공하기 위한 것이다.The present invention relates to data communications, and to provide a data collision detection apparatus and method suitable for detecting data collisions that may occur in full-duplex data communications.

이를위한 본 발명의 데이터 충돌검출 장치는 송신단에서 전송된 데이터에서 수신단의 주소를 분리하는 수신단 주소분리부와, 상기 송신단에서 전송된 데이터에서 송신단의 주소를 분리하는 송신단 주소분리부와, 상기 수신단 주소 분리부에서 출력된 수신단 주소를 저장하는 메모리부와, 상기 송신단에서 전송된 데이터의 종단을 검출하여 상기 메모리의 데이터를 클리어시키는 데이터 종단검출부와, 상기 메모리부의 데이터 쓰기 및 읽기의 순서를 제어하는 메모리 제어부와, 상기 메모리에 저장된 수신단 주소와 저장할 수신단 주소를 비교하는 제1비교부와, 상기 데이터 충돌시 제1비교부의 출력신호에 따라 쟈밍 패턴신호를 발생하는 쟈밍 패턴신호 발생부와, 상기 송신단 주소분리부의 데이터와 상기 메모리부에 저장된 데이터를 비교하고 상기 쟈밍 패턴신호의 출력여부를 결정하는 제2비교부를 포함하여 구성된다.The data collision detection apparatus of the present invention for this purpose is a receiving end address separating unit for separating the address of the receiving end from the data transmitted from the transmitting end, a transmitting end address separating unit for separating the address of the transmitting end from the data transmitted from the transmitting end, and the receiving end address A memory unit for storing a receiving end address output from the separating unit, a data end detecting unit for detecting the end of the data transmitted from the transmitting end and clearing the data in the memory, and a memory for controlling the order of data writing and reading of the memory unit A control unit, a first comparing unit comparing the receiving end address stored in the memory with a receiving end address; a jamming pattern signal generating unit generating a jamming pattern signal according to an output signal of the first comparing unit in case of data collision; and the transmitting end address. Comparing the data stored in the memory unit with the data stored in the memory unit; It is configured to include the second comparison unit for determining whether to output the Ming pattern signal.

Description

데이터 충돌검출 장치 및 방법Data collision detection device and method

본 발명은 데이터 통신에 관한 것으로 특히, 전이중 방식의 데이터 전송시 발생할 수 있는 데이터 충돌검출 장치 및 방법에 관한 것이다.The present invention relates to data communication, and more particularly, to an apparatus and method for detecting data collisions that may occur during full-duplex data transmission.

일반적으로 데이터 단말장치간의 정보전달을 시간적으로 어떻게 하느냐 하는 것을 통산방식이라 부르고 단방향(simplex), 반이중(half duplex), 전이중(full duplex) 등의 3종류가 있다.In general, how to transfer information between data terminal apparatuses in time is called a totalization method, and there are three types such as simplex, half duplex, and full duplex.

단방향의 경우는 한 방향만으로 통신을 하며 반대방향으로는 통신이 불가능한 경우를 말하고 반이중통신은 서로 반대방향으로 통신이 가능하되 시간적으로 중첩이 안되는 경우, 즉 한편으로 통신을 하고 있는 사이에는 반대편으로는 통신이 안 되고 그것이 끝난 다음에야 반대방향으로 통신을 할 수 있는 것, 그리고 전이중통신은 반이중통신과 비슷하나, 시간적으로 중첩이 가능한 경우, 즉 송신과 수신이 동시에 될 수 있는 방식을 말한다.One-way communication means communication in one direction only, and communication in the opposite direction is impossible. Half-duplex communication allows communication in opposite directions but does not overlap in time. It is not possible to communicate in the opposite direction after it is finished, and full-duplex communication is similar to half-duplex communication, but in the case of overlapping in time, that is, a method of transmitting and receiving at the same time.

이 여러 통신방식에 따라서 정보전달의 오차의 다소와 시간효율, 다시 말하여 어느 정도 고속으로 통신이 되느냐가 결정된다.According to these various communication methods, the error of information transmission and the time efficiency, that is, how fast the communication is determined.

데이터통신에 스이는 부호는 필요한 최소비트수의 2진신호(binary signal)로 구성되어 있기 때문에 리던던시(redundancy)부분이 없어서 부호를 구성하고 있는 2진 신호가 1 비트일지라도 전송도중에 잘못되면 수신측에서는 다른 부호로 알게 된다. 전송시스템에서 1 비트도 틀리지 않는다는 것은 기대할 수가 없는 것이기 때문에, 데이터통신 시스템에서는 전송오류에 대한 대책에 중요한 과제가 되고 있다.Since the code used for data communication consists of a binary signal with the minimum number of bits required, there is no redundancy, so even if the binary signal constituting the code is wrong during transmission, the receiving side is different. Know by sign. The fact that one bit is not wrong in a transmission system cannot be expected, and therefore, it has become an important problem in countering transmission errors in a data communication system.

단방향 전송의 경우 오류없이 수신되었나의 여부를 송신측에서는 알 수가 없는 것이기 때문에, 처음부터 충분히 고능력의 오류 정정부호를 사용한다거나 동일정보를 여러번 송신한다거나 하는방식을 써서 전송의 신뢰성을 높이게 되는데 어느 경우에 있어서나 전송효율은 크게 떨어지게 된다.In the case of unidirectional transmission, it is impossible for the sender to know whether or not it has been received without error. Therefore, the transmission reliability is improved by using a sufficiently high error correction code or transmitting the same information several times from the beginning. However, the transmission efficiency is greatly reduced.

반이중 및 전이중의 경우에있어서는 반대방향으로부터의 정보를 얻을 수 있기 때문에 송신하여야 할 정보를 어떠한 크기의 블록단위로 구분하여 그 블록에 비교적 간단한 오류 검출부호를 추가하여 송출하고 수신측에서 만일 받은 블록에 오류가 들어 있음이 드러난 블록만을 다시 보내게 하는 등 대책을 새울 수가 있기 때문에 전송의 신뢰도를 향상하면서 효율도 향상할 수 있고 특히 전이중방식의 경우는 송신측에서는 송신을 계속하면서도 선행블록의 정확한 수신여부의 정보를 얻을 수 있고 양방향에 한꺼번에 대량의 데이터를 전송할 수 있기 때문에 가장 높은 전송효율이 얻어진다.In the case of half- and full-duplex, since information from the opposite direction can be obtained, the information to be transmitted is divided into blocks of any size, and a relatively simple error detection code is added to the block and transmitted. The countermeasures can be taken, such as resending only the blocks that are found to contain errors. Therefore, the reliability of the transmission can be improved and the efficiency can be improved. The highest transmission efficiency is obtained because information can be obtained and large amounts of data can be transmitted in both directions.

이하 첨부된 도면을 참조하여 종래 데이터 충돌검출 방법을 설명하면 다음과 같다.Referring to the accompanying drawings, a conventional data collision detection method will be described below.

제1도는 데이터의 전송매체를 TP(Twist Pair)로 하는 네트워크의 최소단위를 보여주는 도면이다.FIG. 1 is a diagram showing the minimum unit of a network in which data transmission medium is TP (Twist Pair).

제1도에 도시한 바와같이 복수개의 단말기기들 상호간의 데이터를 전송하는데 필요한 HUB는 단순히 데이터를 리피팅(repeating)을 하는것이므로 하나의 단말기기에서 데이터를 송신하게 되면 HUB는 단말기기에서 송신된 데이터를 다른 모든 단말기기에 송신한다.As shown in FIG. 1, since a HUB necessary for transmitting data between a plurality of terminal devices simply repeats data, when a data is transmitted from one terminal device, the HUB is transmitted from the terminal device. Send data to all other terminal devices.

따라서 각 단말기기에서는 데이터를 송신하고 있을 때 수신측에 데이터가 존재하면 데이터의 충돌로 인식한다.Therefore, when each terminal device is transmitting data, if data exists on the receiving side, it recognizes that the data is a collision.

제2도는 종래의 전이중 방식을 사용하는 스위칭 HUB 를 나타낸 도면이다.2 is a diagram illustrating a switching HUB using a conventional full-duplex method.

제2도에 따른 시스템의 구성은 제1도의 구성과 동일하나 단말기기 각각이 송ㆍ수신을 동시에 수행할 수 있는 기능을 가지고 있어서 반이중 방식과 같은 충돌 검출방식으로는 충돌을 검출할 수 없을 뿐만 아니라 충돌이라는 개념이 없다.The configuration of the system according to FIG. 2 is the same as that of FIG. 1, but each terminal device has a function of simultaneously performing transmission and reception, so that a collision detection method such as a half-duplex method cannot detect a collision. There is no concept of conflict.

제3도는 제2도에 따른 진리표를 나타낸 것이다.3 shows the truth table according to FIG.

제3도에 도시한 바와같이 전이중 방식은 반이중 방식에 비해 데이터전송이 이루어지는 경우가 높아 네트워크 전체의 데이터전송 밴드폭(bandwidth)은 상당히 높다.As shown in FIG. 3, the full-duplex scheme has a higher data transfer rate than the half-duplex scheme, and thus the bandwidth of the entire data transmission network is considerably high.

그러나 두 개의 단말기기가 동시에 동일한 단말기기로 데이터를 전송할 때 그 데이터는 충돌을 일으키게 되고 단말기기는 이에 대한 대비가 없다.However, when two terminal devices simultaneously transmit data to the same terminal device, the data may cause a collision, and the terminal device may not prepare for this.

따라서 충돌이 일어나게 되면 수신축에서는 수신된 데이터의 손실여부를 검출하여 다시 재 전송을 요구 하게된다.Therefore, when a collision occurs, the receiving axis detects the loss of received data and requests retransmission.

여기서 재 전송의 의미는 충돌이 일어난 데이터를 받은 수신단에 재 전송을 요구하는 데이터를 송신 하는 것이다.In this case, retransmission means transmitting data requesting retransmission to a receiving end that received the collided data.

이때 재 전송을 의미하는 데이터도 데이터 충돌이 발생할 가능성이 있으므로 네트워크 전체는 재 전송의 악 순환을 거듭할 수도 있다.At this time, the data that means retransmission may also cause data collision, so the entire network may be in a bad cycle of retransmission.

예를들어 단말기기 A 가 단말기기 B 로 데이터를 보내기 위하여 데이터를 전송하면 스위칭 HUB 는 단말기기 A 가 전송한 데이터를 분석하여 그 데이터가 단말기기 B 로 전송하고자 하는 데이터임을 알아내고 스위칭 HUB 는 단말기기 A 로부터 전송된 데이터를 단말기기 B 로 전송한다.For example, when the terminal device A transmits data to send the data to the terminal device B, the switching HUB analyzes the data transmitted by the terminal device A and finds out that the data is the data to be transmitted to the terminal device B. The data transmitted from the device A is transmitted to the terminal device B.

이때 단말기기 C 가 단말기기 A 로 동시에 데이터를 전송하면 스위칭 HUB 는 단말기기 C 로부터 전송된 데이터를 받아서 단말기기 A 에게 그 데이터를 전송한다.At this time, if the terminal device C simultaneously transmits data to the terminal device A, the switching HUB receives the data transmitted from the terminal device C and transmits the data to the terminal device A.

이와 비교하여 반이중 방식의 경우 단말기기 A 가 단말기기 B 로 데이터를 전송도중 동시에 단말기기 C 에서 단말기기 A 로 데이터를 전송하면 상기 데이터들 상호간에 충돌이 발생한다.In contrast, in the case of the half-duplex method, when the terminal device A transmits data from the terminal device C to the terminal device A while transmitting data to the terminal device B, a collision occurs between the data.

따라서 각 단말기기에서는 데이터를 다시 전송하게 되므로 네트워크 전체의 데이터 전송 밴드폭이 작아지게 된다.Therefore, since each terminal device transmits data again, the data transmission bandwidth of the entire network is reduced.

상기와 같은 종래 데이터 충돌검출 방법은 다음과 같은 문제점이 있었다.The conventional data collision detection method as described above has the following problems.

즉, 전이중 방식의 경우 데이터의 충돌이 발생할 경우 수신측이 재 전송을 요구하게 되면 네트워크의 효율이 낮아지고 재 전송 요구 데이터가 또다시 충돌이 발생하면 재 전송의 악 순환이 거듭되어 네트워크의 효율이 급격히 저하된다.That is, in case of full-duplex method, if the receiver requests retransmission when data collision occurs, the efficiency of the network becomes low, and if the retransmission request data collides again, the bad cycle of retransmission repeats and the network efficiency is reduced. Drops sharply.

본 발명은 상기의 문제점을 해결하기 위해 안출한 것으로서 전이중 방식의 스위칭 HUB 시스템에서의 충돌검출이 가능하도록 하여 데이터의 충돌시 발생할 수 있는 네트워크의 효율을 향상시키는데 적당한 데이터 충돌검출 장치 및 방법을 제공하는데 그 목적이 있다.The present invention has been made to solve the above problems, to provide a collision detection apparatus and method suitable for improving the efficiency of the network that can occur when data collision by enabling collision detection in a full-duplex switching HUB system The purpose is.

제1도는 데이터의 전송매체를 TP(Twist Pair)로 하는 네트워크의 최소단위를 보여주는 도면.1 is a diagram showing a minimum unit of a network in which data transmission medium is TP (Twist Pair).

제2도는 종래의 전이중 방식을 사용하는 스위칭 HUB 를 나타낸 도면.2 shows a switching HUB using a conventional full duplex scheme.

제3도는 본 발명의 데이터 충돌검출 장치의 구성블록도.3 is a block diagram of a data collision detection apparatus of the present invention.

제4도는 데이터 충돌후 데이터의 재 전송과정에 따른 구성도.4 is a diagram illustrating a retransmission process of data after a data collision.

제5도는 이더넷 방식의 패킷 구성도.5 is a packet configuration diagram of the Ethernet method.

제6도는 본 발명의 데이터 충돌검출 방법을 나타낸 플로우챠트.6 is a flowchart showing a data collision detection method of the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

31 : DA 분리부 32 : 메모리부31: DA separation unit 32: memory unit

33 : 제1카운터부 34 : 제2카운터부33: first counter part 34: second counter part

35 : SA 분리부 36 : 데이터 종단검출부35: SA separation unit 36: data end detection unit

37 : 제1비교부 38 : 제2비교부37: first comparison 38: second comparison

39 : 쟈밍 패턴 발생부 41 : 쟈밍 패턴 디펙터39: jamming pattern generator 41: jamming pattern defector

42 : 백-오프 타이머42: back-off timer

상기의 목적을 달성하기 위한 본 발명의 데이터 충돌검출 장치는 송신단에서 전송된 데이터에서 수신단의 주소를 분리하는 수신단 주소분리부와, 상기 송신단에서 전송된 데이터에서 송신단의 주소를 분리하는 송신단 주소분리부와, 상기 수신단 주소 분리부에서 출력된 수신단 주소를 저장하는 메모리부와, 상기 송신단에서 전송된 데이터의 종단을 검출하여 상기 메모리의 데이터를 클리어시키는 데이터 종단검출부와, 상기 메모리부의 데이터 쓰기 및 읽기의 순서를 제어하는 메모리 제어부와, 상기 메모리에 저장된 수신단 주소와 저장할 수신단 주소를 비교하는 제1비교부와, 상기 데이터 충돌시 제1비교부의 출력신호에 따라 쟈밍 패턴신호를 발생하는 쟈밍 패턴신호 발생부와, 상기 송신단 주소분리부의 데이터와 상기 메모리부에 저장된 데이터를 비교하고 상기 쟈밍 패턴신호의 출력여부를 결정하는 제2비교부를 포함하여 구성되고 본 발명의 데이터 충돌검출 방법은 송신단에서 전송된 데이터에서 수신단의 주소를 분리하는 단계, 수신단의 주소를 메모리에 저장전에 현재 메모리에 저장된 데이터와 저장할 데이터가 동일한지 여부를 판단하는 단계, 상기 판단결과 서로 동일하지 않으면 수신단의 주소를 메모리부에 저장하고 그렇지 않으면 데이터 충돌신호를 발생하고 데이터를 송신한 단말에서 다른 데이터를 수신하고 있는지를 판단하는 단계, 다른 데이터를 수신하고 있으면 일정시간 대기하고 그렇지 않으면 쟈밍 패턴신호를 송신단에 출력하는 단계, 스위칭 HUB에서 데이터의 충돌발생을 송신단에 통보하는 단계를 포함하여 이루어진다.The data collision detection apparatus of the present invention for achieving the above object is a receiver address separator for separating the address of the receiver from the data transmitted from the transmitter, and a transmitter address separator for separating the address of the transmitter from the data transmitted from the transmitter And a memory unit for storing the receiving end address outputted from the receiving end address separating unit, a data end detecting unit detecting the end of data transmitted from the transmitting end and clearing the data in the memory; A memory control unit for controlling an order, a first comparison unit for comparing a receiving end address stored in the memory and a receiving end address stored in the memory, and a jamming pattern signal generating unit generating a jamming pattern signal according to an output signal of the first comparing unit in case of data collision And data stored in the transmitter address separator and the memory. The data collision detection method of the present invention comprises the step of separating the address of the receiver from the data transmitted from the transmitter, storing the address of the receiver in the memory. Determining whether the data currently stored in the memory and the data to be stored are the same; if the result of the determination is not the same, the address of the receiving end is stored in the memory unit; Determining whether or not to receive, and if the other data is received, waiting for a predetermined time, otherwise outputting the jamming pattern signal to the transmitting end, and notifying the transmitting end of the collision of data in the switching HUB.

이하 첨부된 도면을 참조하여 본 발명의 데이터 충돌검출 장치 및 방법을 설명하면 다음과 같다.Hereinafter, an apparatus and method for detecting data collision according to the present invention will be described with reference to the accompanying drawings.

제3도는 본 발명의 데이터 충돌검출 장치의 구성블록도이다.3 is a block diagram of a data collision detection apparatus of the present invention.

먼저, 제3도에 도시한 바와같이 단말기기로부터 전송된 데이터에서 수신단의 주소를 분리하는 DA분리부(31)와, 상기 단말기기로부터 전송된 데이터에서 수신단의 주소를 임시저장하는 N개의 어드레스를 갖는 메모리부(32)와, 상기 메모리부(32)에 데이터를 기입(Write)할 순서를 결정하는 제1카운터부(33)와, 상기 메모리부(32)에 저장된 데이터를 읽어낼 순서를 결정하는 제2카운터부(34)와, 상기 단말기기로부터 전송된 데이터에서 송신단의 주소를 분리하는 SA분리부(35)와, 상기 단말기기로부터 전송된 데이터의 끝을 검출하는 데이터 종단검출부(36)와, 상기 DA분리부(31)에서 분리된 수신단의 주소와 현재 상기 메모리부(32)에 저장된 수신단의 주소를 비교하는 제1비교부(37)와, 상기 SA분리부(35)에서 분리된 송신단의 주소와 현재 메모리부(32)에 저장된 송신단의 주소를 비교하는 제2비교부(38)와, 데이터 충돌시 32비트 모두 1인 데이터를 발생하는 쟈밍 패턴 제너레이터부(39)를 포함하여 구성된다.First, as shown in FIG. 3, a DA separating unit 31 for separating an address of a receiving end from data transmitted from a terminal device and N addresses for temporarily storing an address of a receiving end from data transmitted from the terminal device are shown. A memory unit 32 having a memory, a first counter unit 33 for determining an order of writing data into the memory unit 32, and a sequence for reading data stored in the memory unit 32; A second counter 34 to separate the SA separator 35 to separate the address of the transmitting end from the data transmitted from the terminal device, and a data end detector 36 to detect the end of the data transmitted from the terminal device. And a first comparator 37 for comparing the address of the receiver separated in the DA separator 31 with the address of the receiver currently stored in the memory 32, and separated from the SA separator 35. Sender's address and the sender's address currently stored in memory 32 And a second comparator 38 for comparing addresses, and a jamming pattern generator 39 for generating data having a value of all 32 bits when a data collision occurs.

여기서 상기 쟈밍 패턴 제너레이터부(39)는 상기 제2비교부(38)의 출력이 반전된 신호와 상기 쟈밍 패턴 제너레이터부(39)의 출력을 논리연산하는 앤드게이트(40)의 일측단자에 연결된다.Here, the jamming pattern generator 39 is connected to one side terminal of the AND gate 40 that logically computes the signal of which the output of the second comparator 38 is inverted and the output of the jamming pattern generator 39. .

상기와 같이 구성된 본 발명의 데이터 충돌검출 장치의 동작설명은 다음과 같다.The operation description of the data collision detection apparatus of the present invention configured as described above is as follows.

제3도에 도시한 바와같이 DA분리부(31)는 단말기기로부터 전송되어온 패킷 형태의 데이터에서 수신단의 주소만을 분리한다. 그리고 그 출력단은 어드레스가 N개인 6바이트의 메모리부(32)와 연결된다.As shown in FIG. 3, the DA separator 31 separates only the address of the receiver from the packet data transmitted from the terminal device. The output terminal is connected to a six-byte memory section 32 having N addresses.

따라서 상기 메모리부(32)는 상기 DA분리부(31)에 의해 분리된 수신단의 주소를 저장한다.Therefore, the memory unit 32 stores the address of the receiving end separated by the DA separating unit 31.

이때 상기 제1비교부(37)는 상기 DA분리부(31)에서 출력하는 데이터와 현재 상기 메모리부(32)에 저장된 데이터를 비교하여 데이터의 충돌여부를 알려준다.In this case, the first comparator 37 compares the data output from the DA separator 31 with the data currently stored in the memory 32 to inform whether data collides with each other.

여기서 상기 메모리부(32)에 저장된 데이터라함은 현재 데이터를 수신하고 있는 단말의 주소를 말한다.Here, the data stored in the memory unit 32 refers to the address of the terminal currently receiving the data.

이와같은 비교과정이 없으면 현재 데이터를 수신하고 있는 단말에 또 다른 데이터를 보내게 되고 이는 데이터의 충돌을 야기시킨다.If there is no such comparison process, another data is sent to the terminal receiving the current data, which causes a data collision.

따라서 현재 데이터를 수신하고 있는 수신단의 주소와 상기 DA 분리부(31)에서 출력하는 수신단의 주소가 동일한지의 여부를 상기 제1비교부(37)를 통해 알 수 있다.Accordingly, the first comparator 37 may determine whether the address of the receiver currently receiving data and the address of the receiver output from the DA separator 31 are the same.

이때 상기 메모리부(32)에 저장된 데이터가 현재 수신되고 있는 단말의 주소를 가리키게 할려면 데이터의 수신이 완료된 후에 상기 메모리부(32)에 저장된 데이터는 모두 클리어 되어야 한다.In this case, in order for the data stored in the memory 32 to point to the address of the terminal currently being received, all data stored in the memory 32 must be cleared after the reception of the data is completed.

상기 클리어시키는 것은 상기 데이터 종단검출부(36)에서 담당한다.The data end detection unit 36 is responsible for the clearing.

즉, 상기 데이터 종단검출부(36)는 단말기기로부터 전송되어오는 데이터의 종단부를 검출하여 데이터의 종단이 검출되었으면 데이터의 수신이 완료되었음을 인식하여 상기 메모리부(32)에 저장된 데이터를 클리어시킨다.That is, the data end detection unit 36 detects the end of the data transmitted from the terminal device, and if the end of the data is detected, recognizes that data reception is completed and clears the data stored in the memory unit 32.

이와같이 상기 메모리부(32)에 데이터를 저장하거나 또는 읽어내는 시점의 결정은 상기 제1카운터부(33)와 제2카운터부(34)가 담당한다.In this manner, the first counter unit 33 and the second counter unit 34 are responsible for determining the time point at which the data is stored or read in the memory unit 32.

여기서 상기 제1비교부(37)의 비교결과 데이터의 충돌이 발생한 경우에는 충돌이 발생하였다는 충돌신호를 출력하고 동시에 상기 쟈밍 패턴 제너레이터부(39)로 출력한다.In this case, when a data collision occurs as a result of the comparison of the first comparison unit 37, a collision signal indicating that a collision has occurred is output and simultaneously output to the jamming pattern generator 39.

이때 상기 제2비교부(38)는 데이터의 충돌이 발생하였을 경우, 상기 쟈밍 패턴 제너레이터부(39)에서 출력하는 데이터를 상기 단말기기의 송신단에 어느시점에 출력할 것인가를 결정한다.In this case, when data collision occurs, the second comparator 38 determines when to output the data output from the jamming pattern generator 39 to the transmitting end of the terminal device.

이는 데이터 충돌시 발생하는 쟈밍 패턴 제너레이터부(39)의 데이터를 상기 단말기기의 송신단에 보내야 하므로 현재 충돌이 발생한 송신단이 데이터를 수신하고 있는지의 여부를 판단해야 하기 때문이다.This is because the data of the jamming pattern generator 39 generated at the time of the data collision must be sent to the transmitting end of the terminal device. Therefore, it is necessary to determine whether the transmitting end having the current collision has received the data.

즉, 데이터의 충돌이 발생하였을 경우, 제2비교부(38)는 상기 SA분리부(35)에서 출력하는 송신단의 주소와 상기 메모리부(32)에 저장된 데이터 값을 비교하여 동일한 데이터가 존재하지 않을 경우 상기 쟈밍 패턴 제너레이터부(39)의 출력신호가 송신단으로 출력되도록 한다.That is, when a collision of data occurs, the second comparator 38 compares the address of the transmitter output from the SA separator 35 with the data value stored in the memory 32 so that the same data does not exist. If not, the output signal of the jamming pattern generator 39 is output to the transmitting end.

다시말해서, 상기 쟈밍 패턴 제너레이터부(39)는 현재 데이터의 충돌이 발생한 송신단이 데이터를 수신하고 있지 않을 때에는 상기 쟈밍 패턴 제너레이터부(39)와 연결된 앤드게이트(40)의 일측단자에 신호를 인가하여 상기 쟈밍 패턴 제너레이터부(39)의 출력신호와 논리연산하여 송신단으로 출력한다.In other words, the jamming pattern generator 39 applies a signal to one terminal of the AND gate 40 connected to the jamming pattern generator 39 when the transmitting end of the current data collision is not receiving data. Logic operation is performed on the output signal of the jamming pattern generator 39 to output to the transmitting end.

따라서 스위칭 HUB 는 데이터의 충돌여부를 검출하여 충돌한 단말기기에서 충돌신호를 알려준다.Therefore, the switching HUB detects the collision of data and informs the collision signal of the terminal device which collided.

한편 제4도는 데이터 충돌후 데이터의 재 전송과정에 따른 구성도이다.4 is a diagram illustrating a retransmission process of data after a data collision.

제4도에 도시한 바와같이 32비트 모두 1인 데이터를 검출하는 쟈밍 패턴 디택터(Jamming Pattern Detector)(41)와, 데이터의 재 충돌 방지를 위한 백-오프 타이머(42)를 포함하여 구성된다.As shown in FIG. 4, a jamming pattern detector 41 for detecting data of all 32 bits is included, and a back-off timer 42 for preventing collision of data is included. .

여기서 상기 쟈밍 패턴 디택터(41)는 단말기기에서 쟈밍 패턴을 검출하면 상기 백-오프 타이머(42)를 인에이블 시킨다.Here, the jamming pattern detector 41 enables the back-off timer 42 when the jamming pattern is detected by the terminal device.

따라서 상기 백-오프 타이머(42)는 항상 일정한 길이 만큼의 딜레이가 되면 데이터의 재 충돌의 가능성이 있으므로 랜덤한 시간 이후에 데이터의 재 전송이 이루어지도록 한다.Therefore, the back-off timer 42 always retransmits the data after a random time since there is a possibility of re-collision of data when a delay of a certain length is achieved.

또한 제5도는 이더넷(ethernet)방식의 패킷의 구성도를 나타내었다.5 is a block diagram of an Ethernet packet.

즉, 제5도에 도시한 바와같이 프리앰블비트(62 bit)와, SFD(Start Frame Delimiter)는 프레임의 시작을 알려준다. DA(Destination Address)는 수신단의 주소를 나타내고, SA(Source Address)는 송신단의 주소를 나타낸다. 그리고 전송되는 데이터의 길이를 나타내는 영역과 전송할 데이터가 실려있는 영역과 에러검출을 위한 코드로 사용되는 FCS(Frame Check Sequence)영역으로 구분된다.That is, as shown in FIG. 5, the preamble bit (62 bit) and the start frame delimiter (SFD) inform the start of the frame. DA (Destination Address) represents the address of the receiver, and SA (Source Address) represents the address of the transmitter. It is divided into an area indicating the length of data to be transmitted, an area containing data to be transmitted, and an FCS (Frame Check Sequence) area used as a code for error detection.

제6도는 본 발명의 데이터 충돌검출 방법을 나타낸 플로우챠트이다.6 is a flowchart showing a data collision detection method of the present invention.

본 발명의 데이터 충돌검출 방법은 제6도에 도시한 바와같이 먼저, 데이터 송신단말기기에서 데이터를 송신(101)하면 DA 분리부에서 상기 데이터를 수신할 수신단말기기의 주소만을 분리(102)한다.In the data collision detection method of the present invention, as shown in FIG. 6, first, when data is transmitted from the data transmitting terminal device (101), only the address of the receiving terminal device receiving the data is separated (102) by the DA separating unit. .

이어 상기 수신단의 주소를 메모리부에 저장하는데 우선 저장하기 이전에 상기 메모리부에 저장 할 수신단말기기의 주소와 현재 메모리부에 저장된 수신단말기기의 주소를 비교(103)한다.Subsequently, the address of the receiving terminal is stored in the memory unit. Before the storing, the address of the receiving terminal device to be stored in the memory unit and the address of the receiving terminal device currently stored in the memory unit are compared (103).

상기 비교결과 서로의 주소가 동일하면 데이터의 충돌임을 감지하고 충돌신호를 발생(104)한다.As a result of the comparison, if the addresses are the same, a collision of data is detected and a collision signal is generated (104).

충돌신호가 발생되면 상기 데이터를 송신한 송신단말기기에서 다른 데이터를 수신하고 있는지의 여부를 판단(105)하여 상기 송신단말기기가 다른 데이터를 수신하고 있지 않으면 쟈밍 패턴을 송신단에 출력(106)한다.When a collision signal is generated, it is judged whether or not the transmitting terminal device which has transmitted the data is receiving other data (105). If the transmitting terminal device does not receive other data, it outputs a jamming pattern to the transmitting terminal (106).

따라서 스위칭 HUB 는 충돌여부를 검출하여 송신단말기기에서 충돌발생임을 통보(107)한다.Accordingly, the switching HUB detects the collision and notifies the transmitting terminal apparatus of the collision (107).

이어 송신단말기기는 쟈밍 패턴을 검출(108)한 후 백-오프 타이머를 인에이블(109)시킨다.The transmitting terminal device then detects 108 the jamming pattern and then enables 109 the back-off timer.

그리고 일정시간후에 데이터를 재 송신(110)한다. 이때 상기와 마찬가지로 현재 메모리부에 저장된 수신단말기기의 주소와 메모리부에 저장 할 수신단말기기의 주소를 비교한 다음(103) 서로 동일하지 않으면 메모리에 저장(111)한다.After a predetermined time, the data is retransmitted (110). At this time, as described above, the address of the receiving terminal device currently stored in the memory unit is compared with the address of the receiving terminal device to be stored in the memory unit (103).

이상 상술한 바와같이 본 발명의 데이터 충돌검출 장치 및 방법은 다음과 같은 효과가 있다.As described above, the data collision detection apparatus and method of the present invention have the following effects.

즉, 전이중 방식의 스위칭 HUB 시스템에서 데이터의 충돌여부의 검출이 가능하므로 데이터 충돌시 발생할 수 있는 네트워크의 효율을 향상시키는 효과가 있다.That is, in the full-duplex switching HUB system, it is possible to detect whether data collides, thereby improving the efficiency of a network that may occur during data collision.

Claims (5)

송신단에서 전송된 데이터에서 수신단의 주소를 분리하는 수신단 주소분리부와, 상기 송신단에서 전송된 데이터에서 송신단의 주소를 분리하는 송신단 주소분리부와, 상기 수신단 주소 분리부에서 출력된 수신단 주소를 저장하는 메모리부와, 상기 송신단에서 전송된 데이터의 종단을 검출하여 상기 메모리의 데이터를 클리어시키는 데이터 종단검출부와, 상기 메모리부의 데이터 쓰기 및 읽기의 순서를 제어하는 메모리 제어부와, 상기 메모리에 저장된 수신단 주소와 저장할 수신단 주소를 비교하는 제1비교부와, 상기 데이터 충돌시 제1비교부의 출력신호에 따라 쟈밍 패턴신호를 발생하는 쟈밍 패턴신호 발생부와, 상기 송신단 주소분리부의 데이터와 상기 메모리부에 저장된 데이터를 비교하고 상기 쟈밍 패턴신호의 출력여부를 결정하는 제2비교부를 포함하여 구성됨을 특징으로 하는 데이터 충돌검출 장치.A receiver address separator for separating an address of a receiver from data transmitted from a transmitter, a transmitter address separator for separating an address of a transmitter from data transmitted from the transmitter, and a receiver address outputted from the receiver address separator A memory end, a data end detection unit for detecting end of data transmitted from the transmitting end and clearing the data in the memory, a memory control unit controlling the order of data writing and reading of the memory unit, a receiving end address stored in the memory; A first comparator for comparing a receiver address to be stored, a jamming pattern signal generator for generating a jamming pattern signal according to an output signal of the first comparator in case of a data collision, data of the transmitter address separator and data stored in the memory part Comparison and determining a second output of the jamming pattern signal; Data collision detection device comprising a unit. 제1항에 있어서, 상기 메모리 제어부는 읽기 및 쓰기에 따라 카운터로 구성함을 특징으로 하는 데이터 충돌검출 장치.The apparatus of claim 1, wherein the memory controller is configured as a counter according to reading and writing. 제1항에 있어서, 상기 송신단에서 전송된 데이터는 패킷 형태로 전송됨을 특징으로 하는 데이터 충돌검출 장치.The apparatus of claim 1, wherein the data transmitted from the transmitter is transmitted in the form of a packet. 송신단에서 전송된 데이터에서 수신단의 주소를 분리하는 단계, 수신단의 주소를 메모리에 저장전에 현재 메모리에 저장된 데이터와 저장할 데이터가 동일한지 여부를 판단하는 단계, 상기 판단결과 서로 동일하지 않으면 수신단의 주소를 메모리부에 저장하고 그렇지 않으면 데이터 충돌신호를 발생하고 데이터를 송신한 단말에서 다른 데이터를 수신하고 있는지를 판단하는 단계, 다른 데이터를 수신하고 있으면 일정시간 대기하고 그렇지 않으면 쟈밍 패턴신호를 송신단에 출력하는 단계, 스위칭 HUB에서 데이터의 충돌발생을 송신단에 통보하는 단계를 포함하여 이루어짐을 특징으로 하는 데이터 충돌검출 방법.Separating the address of the receiver from the data transmitted by the transmitter; determining whether the data currently stored in the memory and the data to be stored are identical before storing the address of the receiver in the memory; Storing data in the memory unit, otherwise generating a data collision signal, and determining whether other data is being received by the terminal that has transmitted the data, waiting for a predetermined time if other data is being received, or otherwise outputting a jamming pattern signal to the transmitting terminal. And informing the transmitting end of the collision of data in the switching HUB. 제4항에 있어서, 상기 스위칭 HUB에서 충돌발생을 송신단에 통보하면 상기 송신단은 쟈밍 패턴신호를 검출하여 백-오프 타이머를 인에이블 시키는 단계, 일정시간후 데이터를 재 송신하는 단계를 더 포함하여 이루어짐을 특징으로 하는 데이터 충돌검출 방법.5. The method of claim 4, wherein the transmitting end detects a jamming pattern signal and enables a back-off timer when notifying the transmitting end of the collision in the switching HUB, and retransmitting data after a predetermined time. Data collision detection method characterized in that.
KR1019960031657A 1996-07-31 1996-07-31 Apparatus for detecting data collision and method thereof KR0179282B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960031657A KR0179282B1 (en) 1996-07-31 1996-07-31 Apparatus for detecting data collision and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960031657A KR0179282B1 (en) 1996-07-31 1996-07-31 Apparatus for detecting data collision and method thereof

Publications (2)

Publication Number Publication Date
KR980013074A KR980013074A (en) 1998-04-30
KR0179282B1 true KR0179282B1 (en) 1999-05-15

Family

ID=19468269

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960031657A KR0179282B1 (en) 1996-07-31 1996-07-31 Apparatus for detecting data collision and method thereof

Country Status (1)

Country Link
KR (1) KR0179282B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100644582B1 (en) * 1999-10-30 2006-11-13 삼성전자주식회사 Collision protection protocol using backoff algorithm in consideration of the communication priority
KR100450768B1 (en) * 2002-10-29 2004-10-01 한국전자통신연구원 Collision detector on home PNA and method thereof

Also Published As

Publication number Publication date
KR980013074A (en) 1998-04-30

Similar Documents

Publication Publication Date Title
CA1249886A (en) Method of duplex data transmission using a send-and- wait protocol
EP0422914B1 (en) Station-to-station full duplex communication in a communications network
US4623886A (en) Prioritized data packet communication
US4568930A (en) Multinodal data communication network
US5768301A (en) Apparatus and method for detecting and correcting pair swap, and implementing a link integrity function in a packet-based data communications system
EP0147644B1 (en) Token ring with secondary transmit opportunities
CA2194619C (en) Communication system where the receiving station requests retransmission of an erroneous portion of a data signal
US4809268A (en) Multipoint data communication with a supervisory system for detecting a malfunctioning remote station
US4584679A (en) Tack-on acknowledgement in computer networks
US5715257A (en) System for re-transmission in data communication
US4536877A (en) Tack-on acknowledgment in computer networks
JPS6333942A (en) Collision detector
US20090080462A1 (en) System and Method for Transferring Data Packets Through a Communication System
US6963580B2 (en) Method and apparatus for controlling access to a communication channel
US5267238A (en) Network interface units and communication system using network interface unit
US6404753B1 (en) Method and apparatus for controlling access to a communication channel
KR0179282B1 (en) Apparatus for detecting data collision and method thereof
US7881328B2 (en) Method and apparatus for controlling access to a communication channel
US4516248A (en) Variable threshold receiver
US4612653A (en) Delay modulation phase coding
JPH027641A (en) Data transmission control system
US5228034A (en) Ring communication network station
KROEGER et al. An SAE high speed ring bus overview
JP2001036580A (en) Method for discriminating end of packet, packet transmitter and packet receiver
JPH07123076A (en) Error correction system

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20051021

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee