JP2019176521A - Communication device and control method - Google Patents

Communication device and control method Download PDF

Info

Publication number
JP2019176521A
JP2019176521A JP2019128278A JP2019128278A JP2019176521A JP 2019176521 A JP2019176521 A JP 2019176521A JP 2019128278 A JP2019128278 A JP 2019128278A JP 2019128278 A JP2019128278 A JP 2019128278A JP 2019176521 A JP2019176521 A JP 2019176521A
Authority
JP
Japan
Prior art keywords
transmission
communication device
interface
port
failure
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
JP2019128278A
Other languages
Japanese (ja)
Inventor
泰次郎 大和田
Taijiro Owada
泰次郎 大和田
清治 大谷
Seiji Otani
清治 大谷
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.)
JVCKenwood Corp
Original Assignee
JVCKenwood Corp
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 JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2019128278A priority Critical patent/JP2019176521A/en
Publication of JP2019176521A publication Critical patent/JP2019176521A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide a technique for suppressing communication stop of the whole communication system, even if a cable fails.SOLUTION: A communication device 20 transmits a frame, received at a reception side port 60, from a transmission side port 60. A first detector 68 detects linking-up at the transmission side port 60. When linking-up is detected, a second detector 70 detects approach to overflow in a transmission buffer 66 for storing the frame that must be transmitted by the transmission side port 60. When approach to overflow is detected, a control section 72 executes flow control via the reception side port 60, if transmission failure in the transmission side port 60 is not detected, and the control section does not execute flow control via the reception side port 60 if the transmission failure in the transmission side port 60 is detected.SELECTED DRAWING: Figure 2

Description

本発明は、通信技術に関し、特にフレームを転送する通信装置、制御方法に関する。   The present invention relates to a communication technique, and more particularly to a communication apparatus and a control method for transferring a frame.

レイヤ2スイッチは、LAN(Local Area Network)上のステーシ
ョンを相互に接続する。レイヤ2のデータリンク層において、ビットエラーやバッファ満
杯状態が発生した場合、受信装置側は異常な受信フレームを破棄するだけである。レイヤ
2スイッチは、フロー制御を行うことによって、バッファリソース不足によるフレーム損
失を回避可能である。フロー制御とは、送信装置側が受信装置側で受信可能なデータフレ
ームのレートよりも高い速度でデータフレームを送信してしまうのを防ぐ制御機構である
。フロー制御では、受信装置側から送信装置側に向かって送信のフィードバック制御を行
い、送信装置側の送信レートは、受信装置側のバッファの状況に応じて調整される(例え
ば、特許文献1参照)。
The layer 2 switch connects stations on a LAN (Local Area Network) to each other. When a bit error or a buffer full state occurs in the data link layer of layer 2, the receiving apparatus only discards an abnormal received frame. The layer 2 switch can avoid frame loss due to a shortage of buffer resources by performing flow control. Flow control is a control mechanism that prevents the transmission apparatus from transmitting data frames at a higher rate than the data frame rate that can be received by the reception apparatus. In the flow control, transmission feedback control is performed from the receiving device side to the transmitting device side, and the transmission rate on the transmitting device side is adjusted according to the buffer status on the receiving device side (see, for example, Patent Document 1). .

特開2004−289744号公報JP 2004-289744 A

通信システムは、例えば、複数のレイヤ2スイッチをピラミッド状に接続することによ
って形成される。そのような構成において、末端近くのレイヤ2スイッチのポートに接続
されたケーブルに障害が発生した場合に、当該レイヤ2スイッチがフロー制御を実行する
と、通信システム全体の通信が停止してしまうおそれがある。
The communication system is formed, for example, by connecting a plurality of layer 2 switches in a pyramid shape. In such a configuration, when a failure occurs in the cable connected to the port of the layer 2 switch near the end, if the layer 2 switch executes flow control, communication of the entire communication system may be stopped. is there.

本発明はこうした状況に鑑みてなされたものであり、その目的は、ケーブルに障害が発
生しても、通信システム全体の通信停止を抑制する技術を提供することである。
The present invention has been made in view of such circumstances, and an object of the present invention is to provide a technique for suppressing communication stoppage of the entire communication system even when a failure occurs in a cable.

上記課題を解決するために、本発明のある態様の通信装置は、第1インターフェイスに
おいて受信したフレームを第2インターフェイスから送信する通信装置であって、第2イ
ンターフェイスでのリンクアップを検出する第1検出部と、第1検出部がリンクアップを
検出した場合、第2インターフェイスが送信すべきフレームを蓄積するバッファにおける
オーバーフローへの接近を検出する第2検出部と、第2検出部がオーバーフローへの接近
を検出した場合、第1インターフェイスにおける受信カウンタの値と第2インターフェイ
スにおける送信カウンタの値との差異がしきい値以上であることによって、第2インター
フェイスにおける送信失敗が検出する制御部と、制御部が送信失敗を検出した場合、送信
失敗を検出した第2インターフェイスに接続したケーブルの障害発生を通知する表示部と
、を備える。
In order to solve the above problem, a communication apparatus according to an aspect of the present invention is a communication apparatus that transmits a frame received at a first interface from a second interface, and detects a link-up at the second interface. When the detection unit and the first detection unit detect a link up, the second detection unit detects an approach to overflow in a buffer that accumulates frames to be transmitted by the second interface, and the second detection unit A control unit that detects a transmission failure in the second interface when the difference between the value of the reception counter in the first interface and the value of the transmission counter in the second interface is greater than or equal to a threshold value when an approach is detected; When the transmission unit detects a transmission failure, the second interface that detected the transmission failure Comprising a display unit that notifies the failure of the cable connected to the chair, the.

本発明の別の態様は、制御方法である。この方法は、第1インターフェイスにおいて受
信したフレームを第2インターフェイスから送信する通信装置での制御方法であって、第
2インターフェイスでのリンクアップを検出するステップと、リンクアップを検出した場
合、第2インターフェイスが送信すべきフレームを蓄積するバッファにおけるオーバーフ
ローへの接近を検出するステップと、オーバーフローへの接近を検出した場合、第1イン
ターフェイスにおける受信カウンタの値と第2インターフェイスにおける送信カウンタの
値との差異がしきい値以上であることによって、第2インターフェイスにおける送信失敗
を検出するステップと、送信失敗を検出した場合、送信失敗を検出した第2インターフェ
イスに接続したケーブルの障害発生を通知するステップと、を備える。
Another aspect of the present invention is a control method. This method is a control method in a communication device that transmits a frame received at a first interface from a second interface, and includes a step of detecting a link up at the second interface, A step of detecting an approach to an overflow in a buffer for storing frames to be transmitted by an interface; and a difference between a value of a reception counter in the first interface and a value of a transmission counter in a second interface when an approach to the overflow is detected Detecting a transmission failure in the second interface due to the threshold being equal to or greater than a threshold; and, if detecting a transmission failure, notifying the occurrence of a failure in the cable connected to the second interface that has detected the transmission failure; Is provided.

なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、記録媒
体、コンピュータプログラムなどの間で変換したものもまた、本発明の態様として有効で
ある。
It should be noted that any combination of the above-described constituent elements and a conversion of the expression of the present invention between a method, an apparatus, a system, a recording medium, a computer program, etc. are also effective as an aspect of the present invention.

本発明によれば、ケーブルに障害が発生しても、通信システム全体の通信停止を抑制で
きる。
ADVANTAGE OF THE INVENTION According to this invention, even if a failure generate | occur | produces in a cable, the communication stop of the whole communication system can be suppressed.

本発明の実施例に係る通信システムの構成を示す図である。It is a figure which shows the structure of the communication system which concerns on the Example of this invention. 図1の通信装置の構成を示す図である。It is a figure which shows the structure of the communication apparatus of FIG. 図2の通信装置によるフロー制御の実行手順を示すフローチャートである。It is a flowchart which shows the execution procedure of the flow control by the communication apparatus of FIG.

本発明を具体的に説明する前に、まず概要を述べる。本発明の実施例は、複数の通信装
置がピラミッド状に接続されることによって形成される通信システムに関する。通信装置
は、例えば、レイヤ2スイッチ、スイッチングハブである。通信装置でのバッファオーバ
ーフローには、フロー制御が有効であるが、前述のごとく、フロー制御によって通信シス
テム全体の通信が停止してしまう場合がある。これに対応するために、本実施例における
通信装置は、バッファのオーバーフローへの接近を検出した場合、ケーブルに障害が発生
していなければ、フロー制御を実行するが、ケーブルに障害が発生していれば、フロー制
御を実行しない。
Before describing the present invention specifically, an outline will be given first. An embodiment of the present invention relates to a communication system formed by connecting a plurality of communication devices in a pyramid shape. The communication device is, for example, a layer 2 switch or a switching hub. Flow control is effective for buffer overflow in a communication device, but as described above, communication of the entire communication system may be stopped by flow control. In order to cope with this, when the communication device in the present embodiment detects an approach to the buffer overflow, the communication device executes flow control if there is no failure in the cable, but there is a failure in the cable. If so, flow control is not executed.

図1は、本発明の実施例に係る通信システム100の構成を示す。通信システム100
は、サーバ10、通信装置20と総称される第1通信装置20a、第2通信装置20b、
第3通信装置20c、第4通信装置20d、第5通信装置20e、第6通信装置20f、
第7通信装置20g、第8通信装置20h、第9通信装置20i、第10通信装置20j
、第11通信装置20k、第12通信装置20l、端末装置30と総称される第1端末装
置30a、第2端末装置30b、第3端末装置30c、第4端末装置30d、第5端末装
置30e、第6端末装置30f、第7端末装置30g、第8端末装置30h、第9端末装
置30i、第10端末装置30j、第11端末装置30k、第12端末装置30lを含む
FIG. 1 shows a configuration of a communication system 100 according to an embodiment of the present invention. Communication system 100
Are the first communication device 20a, the second communication device 20b, which are collectively referred to as the server 10 and the communication device 20,
The third communication device 20c, the fourth communication device 20d, the fifth communication device 20e, the sixth communication device 20f,
7th communication apparatus 20g, 8th communication apparatus 20h, 9th communication apparatus 20i, 10th communication apparatus 20j
, Eleventh communication device 20k, twelfth communication device 20l, first terminal device 30a, second terminal device 30b, third terminal device 30c, fourth terminal device 30d, fifth terminal device 30e, collectively referred to as terminal device 30, It includes a sixth terminal device 30f, a seventh terminal device 30g, an eighth terminal device 30h, a ninth terminal device 30i, a tenth terminal device 30j, an eleventh terminal device 30k, and a twelfth terminal device 30l.

通信システム100は、複数の通信装置20がピラミッド状に接続されることによって
形成される。ピラミッド状に形成された通信システム100の頂点の部分には、サーバ1
0が配置される。また、サーバ10には、第1通信装置20a、第2通信装置20bが接
続される。さらに、第1通信装置20a、第2通信装置20bには、第3通信装置20c
〜第6通信装置20fが接続され、第3通信装置20c〜第6通信装置20fには、第7
通信装置20g〜第12通信装置20lが接続される。そのため、第7通信装置20g〜
第12通信装置20lは、「2」つの通信装置20を介してサーバ10に接続され、第3
通信装置20c〜第6通信装置20fは、「1」つの通信装置20を介してサーバ10に
接続される。一方、第1通信装置20a、第2通信装置20bは、サーバ10に直接接続
されているので、「0」の通信装置20を介してサーバ10に接続されているといえる。
The communication system 100 is formed by connecting a plurality of communication devices 20 in a pyramid shape. The apex portion of the communication system 100 formed in a pyramid shape includes a server 1
0 is placed. The server 10 is connected to a first communication device 20a and a second communication device 20b. Further, the first communication device 20a and the second communication device 20b include a third communication device 20c.
The sixth communication device 20f is connected to the third communication device 20c to the sixth communication device 20f.
The communication device 20g to the twelfth communication device 20l are connected. Therefore, the seventh communication device 20g ~
The twelfth communication device 20l is connected to the server 10 via “two” communication devices 20, and the third communication device 20l
The communication device 20 c to the sixth communication device 20 f are connected to the server 10 via “1” communication device 20. On the other hand, since the first communication device 20a and the second communication device 20b are directly connected to the server 10, it can be said that they are connected to the server 10 via the communication device 20 of “0”.

ここで、サーバ10との間に接続された通信装置20の数が同一の通信装置20は、同
一階層の通信装置20といえる。また、サーバ10との間に接続された通信装置20の数
が少ない階層ほど「上位」であり、通信装置20の数が多い階層ほど「下位」である。図
1の場合、第1通信装置20a、第2通信装置20bが、サーバ10の階層の次に上位の
階層に含まれ、第7通信装置20g〜第12通信装置20lが、最も下位の階層に含まれ
る。さらに、第7通信装置20g〜第12通信装置20lには、複数の端末装置30が接
続される。なお、ピラミッド状に接続された通信装置20の階層の数は、「3」に限定さ
れない。また、各階層に含まれた通信装置20の数は、図1と異なっていてもよい。さら
に、上位の階層に含まれた通信装置20に端末装置30が接続されてもよい。
Here, communication devices 20 having the same number of communication devices 20 connected to the server 10 can be said to be communication devices 20 in the same hierarchy. Further, a hierarchy having a smaller number of communication devices 20 connected to the server 10 is “upper”, and a hierarchy having a larger number of communication devices 20 is “lower”. In the case of FIG. 1, the first communication device 20 a and the second communication device 20 b are included in the upper layer next to the layer of the server 10, and the seventh communication device 20 g to the twelfth communication device 20 l are in the lowest layer. included. Furthermore, a plurality of terminal devices 30 are connected to the seventh communication device 20g to the twelfth communication device 20l. Note that the number of layers of the communication devices 20 connected in a pyramid shape is not limited to “3”. Further, the number of communication devices 20 included in each layer may be different from that in FIG. Furthermore, the terminal device 30 may be connected to the communication device 20 included in the higher hierarchy.

サーバ10は、データが含まれたフレームを送信する。データは任意のものでよく、フ
レームの最終的な宛先は、端末装置30である。また、送信は、ユニキャスト送信でもよ
く、マルチキャスト送信でもよく、ブロードキャスト送信でもよい。通信装置20は、前
述のごとく、レイヤ2スイッチ、スイッチングハブであり、フレームを転送する機能を有
する。また、通信装置20は、フロー制御を実行可能である。フロー制御は、2つのノー
ド間において高速な送信側が低速な受信側をオーバーランさせてしまうことを防止するよ
うデータレートを管理するプロセスであり、その一例がバックプレッシャである。バック
プレッシャとは、通信装置20内のバッファがオーバーフローになりそうになると、送信
元に衝突信号を意図的に送信し、送信元にフレームの送信を抑制させる方式である。端末
装置30は、ユーザ等によって操作させる電子機器であり、通信装置20を介してサーバ
10からのフレームを受信する。端末装置30は、受信したフレームに含まれたデータに
応じた処理を実行する。
The server 10 transmits a frame including data. The data may be arbitrary, and the final destination of the frame is the terminal device 30. The transmission may be unicast transmission, multicast transmission, or broadcast transmission. As described above, the communication device 20 is a layer 2 switch and a switching hub, and has a function of transferring a frame. The communication device 20 can execute flow control. Flow control is a process for managing a data rate so as to prevent a high-speed transmission side from overrunning a low-speed reception side between two nodes, and one example is back pressure. The back pressure is a method of intentionally transmitting a collision signal to the transmission source and suppressing transmission of the frame to the transmission source when the buffer in the communication device 20 is about to overflow. The terminal device 30 is an electronic device that is operated by a user or the like, and receives a frame from the server 10 via the communication device 20. The terminal device 30 executes a process according to the data included in the received frame.

このような通信システム100の構成において、サーバ10から通信装置20を介して
端末装置30にブロードキャストフレームを送信する場合を想定する。例えば、サーバ1
0は、ブロードキャストフレームを第1通信装置20aに送信し、第1通信装置20aは
、受信したブロードキャストフレームを第3通信装置20cに送信する。また、第3通信
装置20cは、受信したブロードキャストフレームを第7通信装置20gに送信し、第7
通信装置20gは、受信したブロードキャストフレームを第1端末装置30aに送信する
。第1端末装置30aにおいて処理能力が低下した場合、受信可能なデータレートが低下
する。
In such a configuration of the communication system 100, it is assumed that a broadcast frame is transmitted from the server 10 to the terminal device 30 via the communication device 20. For example, server 1
0 transmits a broadcast frame to the first communication device 20a, and the first communication device 20a transmits the received broadcast frame to the third communication device 20c. The third communication device 20c transmits the received broadcast frame to the seventh communication device 20g, and
The communication device 20g transmits the received broadcast frame to the first terminal device 30a. When the processing capability is reduced in the first terminal device 30a, the receivable data rate is reduced.

これにより、第7通信装置20gは、第3通信装置20cから、高速なデータレートで
ブロードキャストフレームを受信しているにもかかわらず、第1端末装置30aに、低速
なデータレートでしかブロードキャストフレームを送信できない。その結果、第7通信装
置20gの送信バッファがオーバーフローしそうになるので、第7通信装置20gは、第
3通信装置20cに対してバックプレッシャを実行して、第3通信装置20cのデータレ
ートを低下させる。その後、第1端末装置30aにおける処理能力の低下が回復すると、
第7通信装置20gは、第3通信装置20cに対するバックプレッシャを解除する。その
結果、もとのデータレートへの復帰が実現される。
As a result, the seventh communication device 20g receives the broadcast frame from the third communication device 20c only at a low data rate, even though the seventh communication device 20g receives the broadcast frame at a high data rate. Cannot send. As a result, the transmission buffer of the seventh communication device 20g is likely to overflow, so the seventh communication device 20g executes back pressure on the third communication device 20c to lower the data rate of the third communication device 20c. Let After that, when the decrease in processing capacity in the first terminal device 30a is recovered,
The seventh communication device 20g releases the back pressure for the third communication device 20c. As a result, the return to the original data rate is realized.

ここで、第7通信装置20gと第1端末装置30aの間のケーブルに障害、例えば短絡
が発生した場合も、第7通信装置20gの送信バッファがオーバーフローしそうになるの
で、第7通信装置20gは、第3通信装置20cに対してバックプレッシャを実行する。
なお、前述の第1端末装置30aの処理能力が低下した場合と異なって、ケーブルの障害
は回復しない。そのため、バックプレッシャの実行によって、第3通信装置20cの送信
バッファもオーバーフローしそうになり、第3通信装置20cは、第1通信装置20aに
対してバックプレッシャを実行する。このように、送信バッファのオーバーフローが上位
の階層まで伝播し、サーバ10がブロードキャストフレームを送信できなくなる。その結
果、通信システム100全体の通信が停止されてしまう。このような状況の発生を抑制す
るために、通信装置20は、下記の処理を実行する。
Here, even when a failure, for example, a short circuit occurs in the cable between the seventh communication device 20g and the first terminal device 30a, the transmission buffer of the seventh communication device 20g is likely to overflow, so the seventh communication device 20g The back pressure is executed on the third communication device 20c.
Unlike the case where the processing capability of the first terminal device 30a is reduced, the cable failure is not recovered. Therefore, the transmission buffer of the third communication device 20c is likely to overflow due to the execution of the back pressure, and the third communication device 20c executes the back pressure on the first communication device 20a. As described above, the overflow of the transmission buffer propagates to the upper layer, and the server 10 cannot transmit the broadcast frame. As a result, communication of the entire communication system 100 is stopped. In order to suppress the occurrence of such a situation, the communication device 20 executes the following processing.

図2は、通信装置20の構成を示す。通信装置20は、上位装置40、下位装置50と
総称される第1下位装置50a、第2下位装置50b、第3下位装置50c、第N−1下
位装置50n−1に接続される。通信装置20は、ポート60と総称される第1ポート6
0a、第2ポート60b、第3ポート60c、第4ポート60d、第Nポート60n、ス
イッチ部62、表示部64を含む。スイッチ部62は、送信バッファ66と総称される第
1送信バッファ66a、第2送信バッファ66b、第3送信バッファ66c、第4送信バ
ッファ66d、第N送信バッファ66n、第1検出部68、第2検出部70、制御部72
を含む。
FIG. 2 shows the configuration of the communication device 20. The communication device 20 is connected to a first lower device 50a, a second lower device 50b, a third lower device 50c, and an (N-1) th lower device 50n-1 collectively referred to as an upper device 40 and a lower device 50. The communication device 20 includes a first port 6 collectively referred to as a port 60.
0a, 2nd port 60b, 3rd port 60c, 4th port 60d, Nth port 60n, switch part 62, and display part 64 are included. The switch unit 62 includes a first transmission buffer 66a, a second transmission buffer 66b, a third transmission buffer 66c, a fourth transmission buffer 66d, an Nth transmission buffer 66n, a first detection unit 68, a second transmission buffer 66, and a second transmission buffer 66b. Detection unit 70, control unit 72
including.

上位装置40は、通信装置20よりも上位の階層に配置された他の通信装置20あるい
はサーバ10であり、下位装置50は、通信装置20よりも下位の階層に配置された他の
通信装置20あるいは端末装置30である。ポート60は、LANケーブルを接続可能で
あり、LANケーブルを介して上位装置40あるいは下位装置50を接続する。そのため
、ポート60は、外部の上位装置40あるいは下位装置50との間でフレームを入出力す
るためのインターフェイスであるといえる。また、各ポート60には、フレームを送信す
る際に使用される送信ピン(TDピン)と、フレームを受信する際に使用される受信ピン
(RDピン)が含まれる。
The higher-level device 40 is another communication device 20 or the server 10 arranged at a higher level than the communication device 20, and the lower-level device 50 is another communication device 20 arranged at a lower level than the communication device 20. Alternatively, the terminal device 30 is used. A LAN cable can be connected to the port 60, and the upper device 40 or the lower device 50 is connected via the LAN cable. Therefore, it can be said that the port 60 is an interface for inputting / outputting a frame to / from the external upper device 40 or the lower device 50. Each port 60 includes a transmission pin (TD pin) used when transmitting a frame and a reception pin (RD pin) used when receiving a frame.

スイッチ部62は、1つのポート60において入力したフレームの宛先MACアドレス
をもとに送信先のポート60を決定し、決定したポート60に当該フレームを転送する。
なお、ブロードキャストフレームの場合、スイッチ部62は、入力したポート60以外の
ポート60にブロードキャストフレームを転送する。例えば、第1ポート60aからブロ
ードキャストフレームを入力した場合、スイッチ部62は、第2ポート60bから第Nポ
ート60nにブロードキャストフレームを転送する。また、第4ポート60dからブロー
ドキャストフレームを入力した場合、スイッチ部62は、第1ポート60aから第3ポー
ト60c、第Nポート60nにブロードキャストフレームを転送する。ここで、転送する
際、転送すべきフレームは送信バッファ66に一旦蓄積される。送信バッファ66は、ポ
ート60と1対1で対応づけられて配置される。例えば、第1ポート60aに対応するよ
うに第1送信バッファ66aが設けられる。他の送信バッファ66も同様である。
The switch unit 62 determines the transmission destination port 60 based on the destination MAC address of the frame input at one port 60, and transfers the frame to the determined port 60.
In the case of a broadcast frame, the switch unit 62 transfers the broadcast frame to a port 60 other than the input port 60. For example, when a broadcast frame is input from the first port 60a, the switch unit 62 transfers the broadcast frame from the second port 60b to the Nth port 60n. When a broadcast frame is input from the fourth port 60d, the switch unit 62 transfers the broadcast frame from the first port 60a to the third port 60c and the Nth port 60n. Here, when transferring, the frame to be transferred is temporarily stored in the transmission buffer 66. The transmission buffer 66 is arranged in one-to-one correspondence with the port 60. For example, the first transmission buffer 66a is provided so as to correspond to the first port 60a. The same applies to the other transmission buffers 66.

第1検出部68は、各ポート60のリンクアップを検出する。これは、フレームの送信
に使用するポート60のリンクアップを検出することに相当する。例えば、リンクアップ
の検出は、RDピンにおいてリンクパルス信号を受信しているか否かで判定され、受信し
ていれば、リンクアップが検出される。第1検出部68は、ポート60毎にリンクアップ
を検出した場合、それを第2検出部70に通知する。
The first detection unit 68 detects link-up of each port 60. This corresponds to detecting the link up of the port 60 used for frame transmission. For example, the detection of link up is determined based on whether or not a link pulse signal is received at the RD pin. If it is received, link up is detected. When the first detection unit 68 detects a link-up for each port 60, the first detection unit 68 notifies the second detection unit 70 of it.

第2検出部70は、第1検出部68からの通知を受けつけた場合、リンクアップが検出
されたポート60に対応した送信バッファ66の空き容量を確認する。例えば、第2ポー
ト60bのリンクアップが検出された場合、第2検出部70は、第2送信バッファ66b
の空き容量を確認する。空き容量が第1しきい値よりも小さい場合、第2検出部70は、
当該送信バッファ66におけるオーバーフローへの接近を検出する。第2検出部70は、
送信バッファ66におけるオーバーフローへの接近を検出した場合、それを制御部72に
通知する。
When the second detection unit 70 receives the notification from the first detection unit 68, the second detection unit 70 checks the free capacity of the transmission buffer 66 corresponding to the port 60 in which the link up is detected. For example, when the link up of the second port 60b is detected, the second detection unit 70 sets the second transmission buffer 66b.
Check the free space of. When the free space is smaller than the first threshold, the second detection unit 70
An approach to overflow in the transmission buffer 66 is detected. The second detection unit 70
When an approach to overflow in the transmission buffer 66 is detected, this is notified to the control unit 72.

制御部72は、第2検出部70からの通知を受けつけた場合、オーバーフローへの接近
が検出された送信バッファ66に対応したポート60において送信失敗が検出されている
か否かを確認する。送信失敗を検出するために、制御部72は、送信カウンタと受信カウ
ンタとをポート60毎に備える。送信カウンタは、一定期間、例えば、100msecの
間に当該ポート60から送信したフレーム数を計数する。一方、受信カウンタは、同一の
一定期間に当該ポート60において受信したフレーム数を計数する。フレームとしてブロ
ードキャストフレームを対象にした場合、各通信装置20は、1つのポート60において
ブロードキャストフレームを受信すると、残りのポート60からブロードキャストフレー
ムを転送する。
When the control unit 72 receives the notification from the second detection unit 70, the control unit 72 checks whether or not a transmission failure is detected in the port 60 corresponding to the transmission buffer 66 in which the approach to the overflow is detected. In order to detect a transmission failure, the control unit 72 includes a transmission counter and a reception counter for each port 60. The transmission counter counts the number of frames transmitted from the port 60 during a certain period, for example, 100 msec. On the other hand, the reception counter counts the number of frames received at the port 60 during the same fixed period. When a broadcast frame is targeted as a frame, each communication device 20 transfers a broadcast frame from the remaining port 60 when it receives the broadcast frame at one port 60.

送信失敗の確認対象のポート60が第2ポート60bである場合、送信失敗が発生して
いなければ、第2ポート60b以外のポート60での受信カウンタの合計値と、第2ポー
ト60bでの送信カウンタの値が等しくなるべきである。このことを利用し、制御部72
は、送信失敗の確認対象のポート60以外のポート60(以下、「受信側のポート60」
という)での受信カウンタの合計値と、送信失敗の確認対象のポート60(以下、「送信
側のポート60」という)での送信カウンタの値との差異が第2しきい値よりも小さい場
合、送信側のポート60において送信失敗が非検出であると判定する。
When the port 60 for which transmission failure is to be confirmed is the second port 60b, if no transmission failure has occurred, the total value of the reception counters at the ports 60 other than the second port 60b and the transmission at the second port 60b The counter values should be equal. Using this, the control unit 72
Is a port 60 other than the port 60 subject to confirmation of transmission failure (hereinafter referred to as “reception-side port 60”).
And the difference between the total value of the reception counters at the port 60 for which transmission failure is to be confirmed (hereinafter referred to as “transmission side port 60”) is smaller than the second threshold value. Then, it is determined that the transmission failure is not detected in the port 60 on the transmission side.

一方、制御部72は、差異が第2しきい値以上である場合、特に、受信カウンタの合計
値が送信カウンタの値よりも大きい場合、送信側のポート60において送信失敗を検出す
る。ケーブルに短絡等の障害が発生している場合、送信側のポート60からブロードキャ
ストフレームを送信しても、障害箇所でブロードキャストフレームが反射するので、送信
が完了せず、送信カウンタの値が増加しないからである。なお、制御部72は、差異が第
2しきい値以上である場合、すぐに送信失敗を検出しなくてもよい。例えば、制御部72
は、所定の回数連続して、差異が第2しきい値以上である場合に、送信失敗を検出しても
よい。所定の回数の一例は、「4」である。
On the other hand, when the difference is greater than or equal to the second threshold, particularly when the total value of the reception counter is greater than the value of the transmission counter, the control unit 72 detects a transmission failure at the port 60 on the transmission side. When a failure such as a short circuit occurs in the cable, even if a broadcast frame is transmitted from the port 60 on the transmission side, the broadcast frame is reflected at the failure location, so transmission is not completed and the value of the transmission counter does not increase. Because. In addition, the control part 72 does not need to detect transmission failure immediately, when a difference is more than a 2nd threshold value. For example, the control unit 72
May detect a transmission failure when the difference is equal to or greater than a second threshold value for a predetermined number of times. An example of the predetermined number of times is “4”.

その後、制御部72は、送信側のポート60において送信失敗が非検出であると判定し
た場合、受信側のポート60を介して、バックプレッシャ等のフロー制御を実行する。な
お、フロー制御には公知の技術が使用されればよいので、ここでは説明を省略する。一方
、制御部72は、送信側のポート60において送信失敗が検出された場合、受信側のポー
ト60を介したフロー制御を非実行とする。この場合、制御部72は、送信側のポート6
0から送信すべきフレームを破棄する。ケーブルの障害が発生している場合、ケーブルを
交換しなければ、データレートは回復しない。そのため、フロー制御を実行しても、フロ
ー制御のためのフレームが無駄に受信側のポート60から送信されるだけになり、そのよ
うなフレームによって帯域が消費されてしまう。また、フロー制御をされた上位装置40
は、送信を待機した後、同フレームを再送処理するので、これも帯域の消費、上位装置4
0でのオーバーフロー、通信システム100全体の通信停止につながる。これらを抑制す
るために、送信側のポート60において送信失敗が検出された場合、つまりケーブルの障
害の発生を推定した場合、制御部72は、フロー制御を実行しない。
Thereafter, when it is determined that the transmission failure is not detected in the transmission-side port 60, the control unit 72 performs flow control such as back pressure via the reception-side port 60. In addition, since a well-known technique should just be used for flow control, description is abbreviate | omitted here. On the other hand, when a transmission failure is detected at the port 60 on the transmission side, the control unit 72 does not execute the flow control via the port 60 on the reception side. In this case, the control unit 72 sends the port 6 on the transmission side.
Discard the frame to be transmitted from 0. If a cable failure occurs, the data rate will not recover unless the cable is replaced. For this reason, even if flow control is executed, a frame for flow control is only transmitted from the receiving port 60 unnecessarily, and bandwidth is consumed by such a frame. In addition, the host apparatus 40 that has been subjected to flow control.
Since the same frame is retransmitted after waiting for transmission, this also consumes bandwidth, and the higher-level device 4
An overflow at 0 leads to a communication stop of the entire communication system 100. In order to suppress these, when a transmission failure is detected in the port 60 on the transmission side, that is, when the occurrence of a cable failure is estimated, the control unit 72 does not execute flow control.

さらに、制御部72は、受信側のポート60を介したフロー制御を非実行とした場合、
通信装置20を再起動させない限り、フロー制御の非実行を継続する。つまり、送信側の
ポート60に対するリンクアップの検出、オーバーフローへの接近の検出、送信失敗の検
出を実行せずに、制御部72は、フロー制御を実行しないままにする。前述のごとく、ケ
ーブルを交換しない限り、ケーブルの障害は復旧しないからである。なお、制御部72は
、第2検出部70からの通知に応じて、送信側のポート60、受信側のポート60を変更
しながら、前述の処理を実行する。
Further, when the control unit 72 does not execute the flow control via the port 60 on the receiving side,
Unless the communication device 20 is restarted, the non-execution of flow control is continued. In other words, the control unit 72 does not execute the flow control without executing the detection of the link up to the port 60 on the transmission side, the detection of the approach to the overflow, and the detection of the transmission failure. This is because the failure of the cable is not recovered unless the cable is replaced as described above. Note that the control unit 72 executes the above-described processing while changing the port 60 on the transmission side and the port 60 on the reception side according to the notification from the second detection unit 70.

表示部64は、制御部72が送信失敗を検出した場合、制御部72からの通知を受けつ
ける。表示部64は、複数のポート60のそれぞれに対応したLED(Light Em
itting Diode)を備え、通知において示されたポート60に対応したLED
を点灯あるいは点滅表示させる。これは、LEDによって示されたポート60に接続した
ケーブルにおいて短絡等の障害が発生していることを通知することに相当する。
The display unit 64 receives a notification from the control unit 72 when the control unit 72 detects a transmission failure. The display unit 64 includes LEDs (Light Em corresponding to the plurality of ports 60).
LED corresponding to port 60 indicated in the notification.
Lights up or blinks. This corresponds to notifying that a failure such as a short circuit has occurred in the cable connected to the port 60 indicated by the LED.

この構成は、ハードウエア的には、任意のコンピュータのCPU、メモリ、その他のL
SIで実現でき、ソフトウエア的にはメモリにロードされたプログラムなどによって実現
されるが、ここではそれらの連携によって実現される機能ブロックを描いている。したが
って、これらの機能ブロックがハードウエアのみ、ソフトウエアのみ、またはそれらの組
合せによっていろいろな形で実現できることは、当業者には理解されるところである。
In terms of hardware, this configuration is arbitrary computer CPU, memory, other L
Although it can be realized by SI and is realized by a program loaded in a memory or the like in terms of software, here, functional blocks realized by their cooperation are illustrated. Accordingly, those skilled in the art will understand that these functional blocks can be realized in various forms by hardware only, software only, or a combination thereof.

以上の構成による通信システム100の動作を説明する。図3は、通信装置20による
フロー制御の実行手順を示すフローチャートである。第1検出部68がポート60のリン
クアップを検出した場合(S10のY)、第2検出部70は、当該ポート60に対応した
送信バッファ66の空き容量を確認する(S12)。オーバーフローに接近し(S14の
Y)、送信失敗を検出しない場合(S16のN)、制御部72は、フロー制御を実行する
(S18)。一方、送信失敗を検出した場合(S16のY)、制御部72は、フロー制御
を実行しない(S20)。第1検出部68がポート60のリンクアップを検出しない場合
(S10のN)、あるいはオーバーフローに接近していない場合(S14のN)、処理は
終了される。
The operation of the communication system 100 configured as above will be described. FIG. 3 is a flowchart illustrating a flow control execution procedure performed by the communication device 20. When the first detection unit 68 detects the link up of the port 60 (Y in S10), the second detection unit 70 checks the free capacity of the transmission buffer 66 corresponding to the port 60 (S12). When the overflow approaches (Y in S14) and no transmission failure is detected (N in S16), the control unit 72 executes flow control (S18). On the other hand, when transmission failure is detected (Y of S16), the control part 72 does not perform flow control (S20). If the first detection unit 68 does not detect the link up of the port 60 (N in S10) or is not approaching the overflow (N in S14), the process is terminated.

本実施例によれば、オーバーフローへの接近を検出しても、送信失敗を検出すれば、フ
ロー制御を実行しないので、無駄なフレームの送信を停止できる。また、無駄なフレーム
の送信が停止されるので、ケーブルに障害が発生しても、通信システム全体の通信停止を
抑制できる。また、フロー制御の非実行を決定した場合、フロー制御の非実行を維持する
ので、リンクアップ、オーバーフローへの接近、送信失敗を判定するための処理を不要に
できる。また、これらの処理が不要になるので、処理量を抑制できる。また、ケーブルの
障害発生をLEDにて通知するので、ケーブルの交換を促すことができる。また、フロー
制御を実行しないので、上位装置における再送信の待機を回避できる。また、上位装置に
おける再送信の待機が回避されるので、上位装置におけるオーバーフローを抑制できる。
According to the present embodiment, even if an approach to overflow is detected, if a transmission failure is detected, flow control is not executed, so that useless frame transmission can be stopped. In addition, since transmission of useless frames is stopped, communication stop of the entire communication system can be suppressed even if a failure occurs in the cable. Further, when non-execution of flow control is determined, non-execution of flow control is maintained, so that processing for determining link-up, approach to overflow, and transmission failure can be made unnecessary. Moreover, since these processes are unnecessary, the processing amount can be suppressed. Moreover, since the failure of the cable is notified by the LED, the replacement of the cable can be prompted. In addition, since flow control is not executed, it is possible to avoid waiting for retransmission in the host device. In addition, since a standby for retransmission in the host device is avoided, overflow in the host device can be suppressed.

以上、本発明を実施例をもとに説明した。この実施例は例示であり、それらの各構成要
素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本
発明の範囲にあることは当業者に理解されるところである。
In the above, this invention was demonstrated based on the Example. This embodiment is an exemplification, and it will be understood by those skilled in the art that various modifications can be made to the combination of each component and each processing process, and such modifications are also within the scope of the present invention. .

10 サーバ、 20 通信装置、 30 端末装置、 40 上位装置、 50 下
位装置、 60 ポート、 62 スイッチ部、 64 表示部、 66 送信バッファ
、 68 第1検出部、 70 第2検出部、 72 制御部、 100 通信システム
10 server, 20 communication device, 30 terminal device, 40 upper device, 50 lower device, 60 port, 62 switch unit, 64 display unit, 66 transmission buffer, 68 first detection unit, 70 second detection unit, 72 control unit, 100 Communication system.

Claims (2)

第1インターフェイスにおいて受信したフレームを第2インターフェイスから送信する
通信装置であって、
前記第2インターフェイスでのリンクアップを検出する第1検出部と、
前記第1検出部がリンクアップを検出した場合、前記第2インターフェイスが送信すべ
きフレームを蓄積するバッファにおけるオーバーフローへの接近を検出する第2検出部と

前記第2検出部がオーバーフローへの接近を検出した場合、前記第1インターフェイス
における受信カウンタの値と前記第2インターフェイスにおける送信カウンタの値との差
異がしきい値以上であることによって、前記第2インターフェイスにおける送信失敗を検
出する制御部と、
前記制御部が送信失敗を検出した場合、送信失敗を検出した前記第2インターフェイス
に接続したケーブルの障害発生を通知する表示部と、
を備えることを特徴とする通信装置。
A communication device for transmitting a frame received at a first interface from a second interface,
A first detection unit for detecting link-up at the second interface;
A second detector for detecting an approach to an overflow in a buffer for accumulating frames to be transmitted by the second interface when the first detector detects a link up;
When the second detection unit detects an approach to overflow, the difference between the value of the reception counter at the first interface and the value of the transmission counter at the second interface is greater than or equal to a threshold value, A controller that detects a transmission failure on the interface;
When the control unit detects a transmission failure, a display unit that notifies the occurrence of a failure in the cable connected to the second interface that has detected the transmission failure;
A communication apparatus comprising:
第1インターフェイスにおいて受信したフレームを第2インターフェイスから送信する
通信装置での制御方法であって、
前記第2インターフェイスでのリンクアップを検出するステップと、
リンクアップを検出した場合、前記第2インターフェイスが送信すべきフレームを蓄積
するバッファにおけるオーバーフローへの接近を検出するステップと、
オーバーフローへの接近を検出した場合、前記第1インターフェイスにおける受信カウ
ンタの値と前記第2インターフェイスにおける送信カウンタの値との差異がしきい値以上
であることによって、前記第2インターフェイスにおける送信失敗を検出するステップと

送信失敗を検出した場合、送信失敗を検出した前記第2インターフェイスに接続したケ
ーブルの障害発生を通知するステップと、
を備えることを特徴とする制御方法。
A control method in a communication apparatus for transmitting a frame received at a first interface from a second interface,
Detecting link up at the second interface;
Detecting link up, detecting an approach to overflow in a buffer storing frames to be transmitted by the second interface;
When an approach to overflow is detected, a transmission failure in the second interface is detected when a difference between a reception counter value in the first interface and a transmission counter value in the second interface is equal to or greater than a threshold value. And steps to
If a transmission failure is detected, notifying the failure of the cable connected to the second interface that detected the transmission failure;
A control method comprising:
JP2019128278A 2019-07-10 2019-07-10 Communication device and control method Pending JP2019176521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019128278A JP2019176521A (en) 2019-07-10 2019-07-10 Communication device and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019128278A JP2019176521A (en) 2019-07-10 2019-07-10 Communication device and control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015180985A Division JP6558167B2 (en) 2015-09-14 2015-09-14 Communication device and control method

Publications (1)

Publication Number Publication Date
JP2019176521A true JP2019176521A (en) 2019-10-10

Family

ID=68167804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019128278A Pending JP2019176521A (en) 2019-07-10 2019-07-10 Communication device and control method

Country Status (1)

Country Link
JP (1) JP2019176521A (en)

Similar Documents

Publication Publication Date Title
US7260066B2 (en) Apparatus for link failure detection on high availability Ethernet backplane
US7835265B2 (en) High availability Ethernet backplane architecture
US7773526B2 (en) Network interface control program and network interface controller
KR101593168B1 (en) Physical one direction communication device and method thereof
US20030206527A1 (en) Transmitting data between multiple computer processors
US8509616B2 (en) Devices, systems and methods for run-time reassignment of a PHY to MAC devices interconnect
US7864668B2 (en) Communication apparatus and path switching method
US20040032827A1 (en) Method of flow control
CN103957155A (en) Message transmission method and device and interconnection interface
WO2011131081A1 (en) Method and apparatus for implementing redundancy serial bus
CN114448896B (en) Network optimization method and device
WO2017000096A1 (en) Link recovery method and network device
JP6558167B2 (en) Communication device and control method
JP2019176521A (en) Communication device and control method
JP5369748B2 (en) Communication device including optical interface device
CN101170516B (en) Status self-adapted method and device for non RPF interface
JP4462418B2 (en) Layer 2 switch switching circuit, base station apparatus, and layer 2 switch switching method
CN105591894B (en) A kind of method and apparatus that the veneer of distributed system improves data channel reliability between plate
CN114095462A (en) Fault tolerance method and system for SRIO communication system of radar processor
JP2008219551A (en) Transmission system, communication device, transmission control method, and program
CN100420187C (en) Network switching equipment and network service protection method
KR100823130B1 (en) Apparatus and method for managing network processor
JP2001297016A (en) Instruction execution system
JP6898742B2 (en) Processing device and packet processing method
JP2010226576A (en) Network, network communications apparatus, system switching method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190710

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200526

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200630

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20210202