JPH0437345A - Lan communication system - Google Patents

Lan communication system

Info

Publication number
JPH0437345A
JPH0437345A JP14487890A JP14487890A JPH0437345A JP H0437345 A JPH0437345 A JP H0437345A JP 14487890 A JP14487890 A JP 14487890A JP 14487890 A JP14487890 A JP 14487890A JP H0437345 A JPH0437345 A JP H0437345A
Authority
JP
Japan
Prior art keywords
packet
flag
ack
transmission
ack packet
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP14487890A
Other languages
Japanese (ja)
Inventor
Atsushi Nakayama
敦史 中山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems Co Ltd
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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP14487890A priority Critical patent/JPH0437345A/en
Publication of JPH0437345A publication Critical patent/JPH0437345A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To devise the system such that a trailing flag TF and a leading flag LF are overlapped partly without a time gap and the interference from other node is prevented by setting the LF immediately and sending it when the end of transmission is detected by the TF. CONSTITUTION:When a length RLEN of a reception data is smaller than a reception buffer length LEN, a reception data is subjected to DMA transfer to a memory, and when the end of a packet is detected by a trailing flag TF of the packet, a leading flag LF of an ACK packet is set. After the preparation of transmission, an ACK packet format in which a data is made complete is set during that time. Thus, the flag TF of the detected message packet 4 and the flag LF of the ACK packet 5 are partly overlapped. When the transmission of the ACK packet is finished, the flag TF of the packet 4 is sent and the transmission of the ACK packet is finished to make prescribed communication complete.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、LAN (ローカル・エリア・ネットワーク
)のアクセス方式としてCS MA/A CK方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a CS MA/ACK system as an access system for a LAN (Local Area Network).

〔従来の技術〕[Conventional technology]

C3MA (キャリア・センス・マルチプル・アクセス
)方式では、バスネットワークにおいて接続された複数
個のノードは従属局・制御局の区別なく、すべて平等で
互いにネットワークが使用中でないことを確認した場合
に送信できる。
In the C3MA (Carrier Sense Multiple Access) method, multiple nodes connected in a bus network are all equal, regardless of whether they are dependent stations or control stations, and can transmit when they confirm that the network is not in use. .

C3MA方式の中では、C5MA/CD方式が広く採用
されている。これは発信局は送信を試みた後、衝突監視
をして、衝突が検出されたときに再送信する方式であり
、かなり複雑になる。別な低価格なLANとしてC3M
A/ACK方弐がパソコンネットワークに開発されてい
る。この方式は媒体上にパケットが送出されていないこ
とを確認してから、パケットを送出するが、パケットを
送出している最中には、伝送媒体をセンスしない。自己
の送出したパケットが正しく相手に届いたかどうかのf
I認は、主として相手から送られてくるACKパケ−/
 )を受信することでなされる。
Among the C3MA systems, the C5MA/CD system is widely adopted. In this method, the transmitting station attempts to transmit, then monitors for collisions, and retransmits when a collision is detected, which is quite complex. C3M as another low-cost LAN
A/ACK method 2 has been developed for computer networks. This method transmits the packet after confirming that no packet is being transmitted on the medium, but does not sense the transmission medium while the packet is being transmitted. f of whether or not the packet sent by oneself correctly arrived at the other party.
I-acknowledgment is mainly an ACK packet sent from the other party.
).

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

C3MA/ACK方式では、ノードは媒体上のパケット
を検出して、自己宛のパケット(パケットフォーマット
は第3図に示す)あれば、ACKパケットを、第2図に
示すフローチャートにしたがうて返送する。媒体上のパ
ケットを検出したとき、そのヘッダ情報を読取り(Sl
)、自己宛アドレスであれば(B2)、受信データ長R
LENが受信バッファ長LENより小さく受信可能であ
れば(B3)、B4に進みACKパケット送出に移る。
In the C3MA/ACK method, a node detects a packet on the medium, and if there is a packet addressed to itself (the packet format is shown in FIG. 3), it returns an ACK packet according to the flowchart shown in FIG. When a packet is detected on the medium, its header information is read (Sl
), if it is a self-addressed address (B2), the received data length R
If LEN is smaller than the reception buffer length LEN and reception is possible (B3), the process advances to B4 and the ACK packet is sent.

しかし受信可能でなければS12に進み、S13.S1
4に従い、NACパケットを送出する。
However, if reception is not possible, the process advances to S12, and S13. S1
4, the NAC packet is sent.

B4で、受信データをメモリへDMA転送(B4)し、
受信が終了(35)してから、送信準備(B6.S7)
をして、ACKパケットをフオマントによりセント(B
8)する。そして、送信を開始(B9)L、最終的にト
レーリングフラグ(SIO,5ll)を送信して終了す
る。
At B4, DMA transfer the received data to memory (B4),
After receiving ends (35), prepare for sending (B6.S7)
and converts the ACK packet into cents (B
8) Do. Then, transmission starts (B9)L, and finally a trailing flag (SIO, 5ll) is transmitted and the process ends.

このフローチャートでは、ヘッダ情報を、CPU(図示
していないが、本方式を実現する回路に含まれている)
が解析し、ACKパケットを送信すべきか否か判断が終
わり、ACKパケットのブタをフォーマットによりセン
トする(B8)までtよ送信しない。そのため、たとえ
ば第4図に示すような3台のノードAl、B2.C3か
ら構成されるLANにおいて、ノードA1からノードB
2に送信したメツセージパケット4のデータ長が短い場
合は、第5図に示すように、そのメツセージパケット4
に対するACKパケット5の送信を始める前にメツセー
ジパケット4の受信が終了してしまい、メツセージパケ
ット4とACKパケット5との間が空いてしまう。
In this flowchart, the header information is sent to the CPU (not shown, but included in the circuit that implements this method).
does not transmit until it has analyzed and determined whether or not to transmit an ACK packet, and has sent the ACK packet according to the format (B8). Therefore, for example, three nodes Al, B2 . In a LAN consisting of C3, from node A1 to node B
If the data length of the message packet 4 sent to the message packet 2 is short, as shown in FIG.
The reception of the message packet 4 ends before the transmission of the ACK packet 5 for the message packet 5 starts, and there is a gap between the message packet 4 and the ACK packet 5.

この空き時間がある特定の時間よりも長いと、この空き
時間にノードC3がノードB2に対してメツセージパケ
ット4を送信すると、ノードB2はノードA1に対する
ACKパケット5を送信する前に、ノードC3からのメ
ツセージパケット4を受信してしまい、ノードA1はノ
ードB2からのACKパケット5を正しく受信できなく
なるという欠点がある。
If this free time is longer than a certain specific time, when node C3 sends a message packet 4 to node B2 during this free time, node B2 will send message packet 4 from node C3 to node B2 before sending ACK packet 5 to node A1. Message packet 4 is received from node B2, and node A1 is unable to correctly receive ACK packet 5 from node B2.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、上記の課題を解決するためになされたもので
、自己宛のメツセージパケットを受信した場合に、その
メツセージパケットのトレーリングフラグを認識した時
点で、直ちにアクノリフジパケットのリーディングフラ
グの送信を始めておいて、つづいてパケットを完成し送
信するようにしたものである。
The present invention has been made to solve the above problem, and when a message packet addressed to oneself is received, the leading flag of the acknowledge packet is immediately changed as soon as the trailing flag of the message packet is recognized. In this system, transmission is started, and then the packet is completed and transmitted.

〔作用〕[Effect]

実施例で後述する第1図のフローチャートに示すように
、受信パケットのトレーリングフラグ(TF)により送
信終了を検出した場合(B5)に、ACKパケントに記
入するデータの判断をしないで即座にリープインクフラ
グ(L F)をセラ)L (B6) 、送出する。した
がって送信パケットのTFとACKパケットのLFとが
一都電なり、すきまがなく、他のノードからの介入を防
ぐことができる。
As shown in the flowchart of FIG. 1, which will be described later in the embodiment, when the end of transmission is detected based on the trailing flag (TF) of the received packet (B5), a leap is immediately made without determining the data to be written in the ACK packet. The ink flag (LF) is sent out (B6). Therefore, the TF of the transmission packet and the LF of the ACK packet are in one line, so there is no gap and interference from other nodes can be prevented.

〔実施例〕〔Example〕

以下、本発明の−・実施例につき、第1図のフローチャ
ートにしたがって説明する。媒体上のパケットを検出す
ると、そのヘッダ情報を読取り(SL)、自己宛のパケ
ットであれば(B2)、受信データ長RLENが受信バ
ッファ長LENより小さく受信可能であれば(B3)、
34以下の経路にうつり、ACKパケットを送出する。
Embodiments of the present invention will be described below with reference to the flowchart of FIG. When a packet on the medium is detected, its header information is read (SL). If the packet is addressed to itself (B2), if the reception data length RLEN is smaller than the reception buffer length LEN and can be received (B3),
34 or less, and sends an ACK packet.

しかし受信可能でなければ(B3)、313以下に進み
、NACKパケットを送出する。
However, if reception is not possible (B3), the process proceeds to step 313 and thereafter, and a NACK packet is sent.

ここで、受信データ長RLENが受信パフファ長LEN
より小さいときには、受信データをメモリにDMA転送
しくB4)、パケットのトレーリングフラグ(TF)に
よりパケット終了を検出する(B5)と、従来例と異な
り、直ちにACKパケットのリープインクフラグ(LF
)をセットしくB6)、送信率[(37,B8)後、そ
れまでの間にデータが完成されたACKパケットフォー
マットをセント(B9)する。したがって第6図にみる
ように、検出したメツセージパケット4のトレーリング
フラグ(TF)とACKパケット5のリープインクフラ
グ(LF)は−都電なることになる。ACKパケットデ
ータの送信が終われば(S10)、メツセージパケット
4のトレーリングフラグ(TF)を送出(Sll、51
2)して、ACKパケット送信を終了する。
Here, the received data length RLEN is the received puffer length LEN.
If it is smaller than the previous example, the received data is DMA transferred to memory (B4), and the end of the packet is detected by the trailing flag (TF) of the packet (B5). Unlike the conventional example, the leap ink flag (LF) of the ACK packet is immediately
) is set (B6), and after the transmission rate [(37, B8), the ACK packet format in which the data has been completed up to that point is sent (B9). Therefore, as shown in FIG. 6, the trailing flag (TF) of the detected message packet 4 and the leap ink flag (LF) of the ACK packet 5 are -Toden. When the transmission of the ACK packet data is completed (S10), the trailing flag (TF) of message packet 4 is sent (Sll, 51).
2) and ends the ACK packet transmission.

〔発明の効果〕〔Effect of the invention〕

以上、説明したように、本発明によれば、メツセージパ
ケットに対する受信局のACKパケットの発信は、前者
のトレーリングフラグ(TF)に、後者のリープインク
フラグ(LF)が−都電なるように設定される。したが
って、発信局は目的とする受信局から正しくACKパケ
ットを受信し、所定の通信を行なうことができる。
As explained above, according to the present invention, when the receiving station sends an ACK packet in response to a message packet, the trailing flag (TF) of the former is set and the leap ink flag (LF) of the latter is set to -Toden. be done. Therefore, the originating station can correctly receive an ACK packet from the intended receiving station and perform predetermined communication.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例のフローチャート、第2図は
従来例のフローチャート、第3図はパケットフォーマッ
ト、第4図はA、B、Cの3局を例としてバスに結ばれ
たノードを示し、第5図は従来例のシステムでメツセー
ジパケットとACKパケットとのタイミング関係を示す
図、第6図は本実施例のシステムのメツセージパケット
とACKパケットとのタイミング関係を示す図である。 1.2.3− ノードA、B、C。 4−ノードA1からノードB2への メツセージパケット、 5−・ノードB2からのノードA1へのACKバケツ
Fig. 1 is a flowchart of an embodiment of the present invention, Fig. 2 is a flowchart of a conventional example, Fig. 3 is a packet format, and Fig. 4 is an example of nodes connected to a bus, with three stations A, B, and C. 5 is a diagram showing the timing relationship between message packets and ACK packets in the conventional system, and FIG. 6 is a diagram showing the timing relationship between message packets and ACK packets in the system of the present embodiment. 1.2.3- Nodes A, B, C. 4- Message packet from node A1 to node B2, 5- ACK bucket from node B2 to node A1

Claims (1)

【特許請求の範囲】[Claims] LANのCSMA/ACK方式として、自己宛のメッセ
ージパケットを受信した場合に、そのメッセージパケッ
トのトレーリングフラグを認識した時点で、直ちにアク
ノリッジパケットのリーディングフラグの送信を始めて
おいて、つづいてパケットを完成し送信することを特徴
とするLAN通信方式。
As a LAN CSMA/ACK method, when a message packet addressed to the self is received, as soon as the trailing flag of the message packet is recognized, the sending of the leading flag of the acknowledge packet is immediately started, and the packet is then completed. A LAN communication method characterized by transmission.
JP14487890A 1990-06-01 1990-06-01 Lan communication system Pending JPH0437345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14487890A JPH0437345A (en) 1990-06-01 1990-06-01 Lan communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14487890A JPH0437345A (en) 1990-06-01 1990-06-01 Lan communication system

Publications (1)

Publication Number Publication Date
JPH0437345A true JPH0437345A (en) 1992-02-07

Family

ID=15372483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14487890A Pending JPH0437345A (en) 1990-06-01 1990-06-01 Lan communication system

Country Status (1)

Country Link
JP (1) JPH0437345A (en)

Similar Documents

Publication Publication Date Title
CA2027230C (en) Station-to-station full duplex communication in a communications network
JP3248348B2 (en) Communication method and communication device
US5502724A (en) Communication medium access control protocol for wireless communication
JPH0290752A (en) Device and method for transferring data between plural data processors
EP1327328B1 (en) Method for linking several communication busses using wireless links
EP3490293B1 (en) Data receiving method, data sending method, receiving device and system
JPH0437345A (en) Lan communication system
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
JP2002064503A (en) Wireless packet relay method
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
Cisco LLC2 and SDLC Commands
JPH11275102A (en) Network system by power line, data transmission method and recording medium
US6594283B1 (en) Network communication device
JP3318362B2 (en) Inter-station packet loss avoidance system