JP2005184595A - Ring network system, and its communication control method - Google Patents

Ring network system, and its communication control method Download PDF

Info

Publication number
JP2005184595A
JP2005184595A JP2003424216A JP2003424216A JP2005184595A JP 2005184595 A JP2005184595 A JP 2005184595A JP 2003424216 A JP2003424216 A JP 2003424216A JP 2003424216 A JP2003424216 A JP 2003424216A JP 2005184595 A JP2005184595 A JP 2005184595A
Authority
JP
Japan
Prior art keywords
node
packet
address
mac address
terminal
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.)
Withdrawn
Application number
JP2003424216A
Other languages
Japanese (ja)
Inventor
Junichi Maeno
順一 前野
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2003424216A priority Critical patent/JP2005184595A/en
Publication of JP2005184595A publication Critical patent/JP2005184595A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an IP packet transmission ring network system in which a routing table can be generated at low cost. <P>SOLUTION: Each of nodes 1 comprising a ring network notifies another node 1 of address information in which a MAC address of a terminal connected to a present node and a node address are paired, using a multi-address packet periodically or if a new terminal is connected to the present node. If a packet is received from the other node 1, each of the nodes 1 stores address information provided by the packet, learns and stores relay counts. Each of the nodes 1 comprises a MAC address table M for storing MAC addresses of terminals obtained from address information and an azimuth table D for storing the learnt minimum relay counts as routing tables. By referring to the routing tables, an IP packet transmission path between terminals connected to nodes is set to transmit a packet. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、IPパケットを伝送するリングネットワークシステム、およびその通信制御方法に関する。   The present invention relates to a ring network system that transmits IP packets, and a communication control method thereof.

IP(Internet Protocol)通信によるネットワークの高速化に伴い、高信頼性のネットワークが要望されている。高信頼性のIP通信は、冗長性を持つリングトポロジーを持つネットワークとの親和性が高く、そのリングネットワークにはルータ機能を持つノードが接続されている。   A high-reliability network is demanded as the network speed increases by IP (Internet Protocol) communication. Highly reliable IP communication is highly compatible with a network having a redundant ring topology, and a node having a router function is connected to the ring network.

そのノードは、パケット毎の送信元や宛先のアドレス情報を解読してパケット伝送を制御し、自ノードに接続された端末装置の間のIP通信を制御する。   The node decodes the address information of the source and destination for each packet, controls packet transmission, and controls IP communication between terminal devices connected to the node.

図10は、リングトポロジーを用いたIP通信を行うリングネットワークの一例を示す図である。   FIG. 10 is a diagram illustrating an example of a ring network that performs IP communication using a ring topology.

図10において、リングネットワークは、リング状に接続された第1の経路41と、第2の経路42によって構成され、この第1の経路41および第2の経路42に接続されたノード1x(#1〜#N)から構成される。各ノード1x(#1〜#N)は、内部にルーティング・テーブルRを備え、ホスト2x、又はパーソナルコンピュータ3x等が端末として接続されている。   In FIG. 10, the ring network includes a first path 41 and a second path 42 connected in a ring shape, and a node 1x (# # connected to the first path 41 and the second path 42. 1 to #N). Each node 1x (# 1 to #N) includes a routing table R therein, and a host 2x or a personal computer 3x is connected as a terminal.

もし、ノード1x(#1)に接続されているパーソナルコンピュータ3xがノード1x(#3)のホスト2xにアクセスしようとする場合、パーソナルコンピュータ3xからノード1x(#1)にパケットを送信する。すると、ノード1x(#1)は、宛先端末であるホスト2xのMACアドレスをそのパケットから判読する。そして、そのMACアドレスによってルーティング・テーブルRを検索して、ホスト2xが接続されているノード1x(#3)を探し出す。   If the personal computer 3x connected to the node 1x (# 1) tries to access the host 2x of the node 1x (# 3), a packet is transmitted from the personal computer 3x to the node 1x (# 1). Then, the node 1x (# 1) reads the MAC address of the host 2x as the destination terminal from the packet. Then, the routing table R is searched by the MAC address to find the node 1x (# 3) to which the host 2x is connected.

そして、ノード1x(#3)とノード1x(#1)との間の通信経路を設定して、パーソナルコンピュータ3xとホスト2xとの間でパケットが送受信出来るようにする。   Then, a communication path between the node 1x (# 3) and the node 1x (# 1) is set so that packets can be transmitted and received between the personal computer 3x and the host 2x.

これを実現するために、各ノード1x(#1〜#N)のルーティング・テーブルRには、通信経路設定に必要な情報として、どのノードにどの端末が接続されているかのMACアドレス情報、およびパケットを伝送するノード間の経路情報が記憶、保持されている。   In order to realize this, the routing table R of each node 1x (# 1 to #N) includes MAC address information indicating which terminal is connected to which node as information necessary for communication path setting, and Path information between nodes transmitting packets is stored and held.

このルーティング・テーブルRを生成するのに「スタティック・ルーティング」と「ダイナミック・ルーティング」の2つの方法がある。   There are two methods for generating the routing table R: “static routing” and “dynamic routing”.

「スタティック・ルーティング」は、通信経路設定に必要な情報がオペレータの入力操作によって手動で設定される。従って、経路情報を交換するための処理やノード間のトラフィックは発生しないが、ノードまたは端末等に変更が有ると、その変更内容を修正するために膨大な作業時間が掛かる。   In “static routing”, information necessary for communication path setting is manually set by an operator's input operation. Therefore, processing for exchanging route information and traffic between nodes do not occur. However, if there is a change in a node or a terminal, it takes a lot of work time to correct the change.

「ダイナミック・ルーティング」は、経路情報を自動的に探し出して設定するルーティング・プロトコルにより、ルーティング・テーブルRの内容を設定する方法である(例えば、非特許文献1参照。)。   “Dynamic routing” is a method of setting the contents of the routing table R by a routing protocol that automatically finds and sets path information (see, for example, Non-Patent Document 1).

この方法は管理に要する手間が省けるが、各ノードにルーティング・プロトコルを搭載するため高価なものとなるばかりか、ノードのCPUの負荷が増える問題がある。   Although this method saves labor for management, it is not only expensive because a routing protocol is installed in each node, but also has the problem of increasing the load on the CPU of the node.

この様に、従来もリングネットワークでは、パケットを伝送する経路を設定するために参照するルーティング・テーブルを生成するのにコストが掛かる問題や、負荷を増大させる問題があった。
IETF(Internet Engineering Task Force)RFC(Request For Comments)1058。
As described above, conventionally, ring networks have a problem of costly generation of a routing table to be referred to for setting a route for transmitting a packet and a problem of increasing a load.
Internet Engineering Task Force (IETF) RFC 1058 (Request For Comments).

リングネットワークでルーティング・テーブルを生成する方法は、従来はルーティング・テーブルの管理の手間が膨大となる「スタティック・ルーティング」を用いるか、または、その管理の手間を軽減するために「ダイナミック・ルーティング」を用いるとノードのCPUのオーバーヘッド負担が大きくなりルーティング・テーブルの生成にコストがかかる問題があった。   The method of generating a routing table in a ring network has conventionally used “static routing”, which requires a great deal of labor to manage the routing table, or “dynamic routing” to reduce the labor of the management. However, there is a problem that the overhead burden on the CPU of the node is increased and the cost for generating the routing table is high.

本発明は、これらの問題を解決するためになされたもので、低コストで生成できるルーティング・テーブルを用いたリングネットワークシステム、およびその通信制御方法を提供することを目的とする。   The present invention has been made to solve these problems, and an object thereof is to provide a ring network system using a routing table that can be generated at low cost, and a communication control method thereof.

以上の目的を達成するために、本発明のリングネットワークシステムは、第1の方路でパケットを伝送する第1の伝送路と、前記第1の方路と反対の第2の方路でパケットを伝送する第2の伝送路とからなるリング伝送路と、前記第1及び第2の伝送路に接続される複数のノードと、前記複数のノード内に設けられ、前記各ノードのノードアドレスと前記各ノードに接続されている端末のMACアドレスとが対応して記憶されるMACアドレステーブルと、前記複数のノード内に設けられ、他のノードのノードアドレスに対応して、前記他のノードから前記第1の伝送路を用いて受信したリングパケットに含まれる中継カウント情報を更新した第1の中継カウント数、前記他のノードから前記第2の伝送路を用いて受信した前記リングパケットに含まれる中継カウント情報を更新した第2の中継カウント数、および自ノードから前記他のノードに送信する時に使用する前記第1又は第2の伝送路が記憶される方路テーブルとを具備することを特徴とする。   In order to achieve the above object, a ring network system of the present invention includes a first transmission path for transmitting a packet on a first path, and a packet on a second path opposite to the first path. A ring transmission line composed of a second transmission line for transmitting a plurality of nodes, a plurality of nodes connected to the first and second transmission lines, a node address of each node provided in the plurality of nodes, and A MAC address table in which MAC addresses of terminals connected to the respective nodes are stored correspondingly, and provided in the plurality of nodes, corresponding to node addresses of other nodes, from the other nodes A first relay count number obtained by updating relay count information included in a ring packet received using the first transmission path, and the ring packet received from the other node using the second transmission path. And a route table in which the first or second transmission path used when transmitting from the own node to the other node is stored. It is characterized by that.

また、本発明のリングネットワークシステムの通信制御方法は、第1の方路でパケットを伝送する第1の伝送路と、前記第1の方路と反対の第2の方路でパケットを伝送する第2の伝送路とからなるリング伝送路と、前記第1及び第2の伝送路に接続される複数のノードとからなるリングネットワークシステムの通信制御方法であって、前記複数の各ノードは、前記各ノードのノードアドレスと前記各ノードに接続されている端末のMACアドレスとが対応して記憶されるMACアドレステーブルと、他のノードのノードアドレスに対応して、前記他のノードから前記第1の伝送路を用いて受信したリングパケットに含まれる中継カウント情報を更新した第1の中継カウント数、前記他のノードから前記第2の伝送路を用いて受信した前記リングパケットに含まれる中継カウント情報を更新した第2の中継カウント数、および自ノードから前記他のノードに送信する時に使用する前記第1又は第2の伝送路が記憶される方路テーブルとを具備し、前記第1のノードに接続された第1の端末から第2のノードに接続された第2の端末へパケットを送信する場合、前記第1の端末からの送信パケットを受信した前記第1のノードは、前記送信パケットから送信先の前記第2の端末のMACアドレスを判読し、自ノードの前記MACアドレステーブルと照合して前記第2の端末が接続されている前記第2のノードのノードアドレスを取得し、前記第2のノードのノードアドレスと自ノードの前記方路テーブルを照合して前記第2のノードへ送信する前記第1又は第2の伝送路を設定し、宛先ノードアドレスに前記第2のノードのノードアドレスを設定すると共に、送信元ノードアドレスに前記第1のノードのノードアドレスを設定した情報を前記送信パケットに付加してカプセル化したリングパケットを生成し、前記設定された前記第1又は第2の伝送路に前記リングパケットを送信することを特徴とする。   In the ring network system communication control method according to the present invention, a packet is transmitted on a first transmission path for transmitting a packet on a first path and on a second path opposite to the first path. A ring network system communication control method comprising a ring transmission line composed of a second transmission line and a plurality of nodes connected to the first and second transmission lines, wherein each of the plurality of nodes includes: A MAC address table in which a node address of each node and a MAC address of a terminal connected to each node are stored correspondingly, and corresponding to a node address of another node, A first relay count number obtained by updating relay count information included in a ring packet received using one transmission path, and the second relay count received from the other node using the second transmission path. A second relay count number in which the relay count information included in the packet is updated, and a route table in which the first or second transmission path used for transmission from the own node to the other node is stored. When transmitting a packet from the first terminal connected to the first node to the second terminal connected to the second node, the first terminal that has received the transmission packet from the first terminal The node of the second node interprets the MAC address of the second terminal as the transmission destination from the transmission packet, compares it with the MAC address table of its own node, and connects the second node to which the second terminal is connected. Obtain a node address, collate the node address of the second node with the route table of its own node, set the first or second transmission path to be transmitted to the second node, and set the destination A node address of the second node is set as a node address, and a ring packet encapsulated by adding to the transmission packet information in which the node address of the first node is set as a source node address is generated, The ring packet is transmitted to the set first or second transmission path.

本発明によれば、リングネットワークのノードそれぞれが同じリングネットワーク上の各ノードに接続された端末のMACアドレスやノード間の最短経路を複雑なルーティング・プロトコルによることなく探し出して学習・記憶するので、リングネットワークのルーティング・テーブルを低コストで生成、運用できるリングネットワークシステムを提供することができる。   According to the present invention, each node of the ring network searches for and learns and stores the MAC address of the terminal connected to each node on the same ring network and the shortest path between the nodes without using a complicated routing protocol. It is possible to provide a ring network system capable of generating and operating a ring network routing table at low cost.

以下、図面を参照して本発明の実施例を説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明に係るリングネットワークシステムの実施例を示す構成図である。   FIG. 1 is a block diagram showing an embodiment of a ring network system according to the present invention.

図1において、リングネットワークシステム(以下、リングネットワークと呼ぶ。)は、リング状に接続された第1の伝送路2aと第2の伝送路2bと、この第1および第2の伝送路2a、2bに接続される複数のノード1(図では、#A〜#Cを図示する。)とから構成される。   In FIG. 1, a ring network system (hereinafter referred to as a ring network) includes a first transmission path 2a and a second transmission path 2b connected in a ring shape, and the first and second transmission paths 2a, And a plurality of nodes 1 (#A to #C are shown in the figure) connected to 2b.

第1の伝送路2aは時計方向に送信する伝送経路であり、第2の伝送路2bは反時計方向に送信する伝送経路である。以下の説明では、第1の伝送路2aの伝送方向を「方路R」、第2の伝送路2bの伝送方向を「方路L」と呼ぶ。   The first transmission path 2a is a transmission path that transmits in the clockwise direction, and the second transmission path 2b is a transmission path that transmits in the counterclockwise direction. In the following description, the transmission direction of the first transmission path 2a is referred to as “route R”, and the transmission direction of the second transmission path 2b is referred to as “path L”.

各ノード1(#A〜#C)は、内部にルーティング・テーブルであるMACアドレステーブルMと方路テーブルDを備えている。また、各ノード1(#A〜#C)には、端末P1〜端末P7としてホストやパーソナルコンピュータ等が接続されている。ここで、各ノード1(#A〜#C)へ接続されている端末P1〜P7に付与されている「P1」〜「P7」は、各端末のMACアドレスを示している。   Each node 1 (#A to #C) includes a MAC address table M and a route table D, which are routing tables. Each node 1 (#A to #C) is connected to a host, personal computer, or the like as terminals P1 to P7. Here, “P1” to “P7” assigned to the terminals P1 to P7 connected to each node 1 (#A to #C) indicate the MAC addresses of the respective terminals.

また、各ノード1(#A〜C)には、更に端末との間でパケットを送受信する端末インタフェース6と、第1および第2の伝送路2a、2bとの間でパケットを送受信するネットワークインタフェース5と、これらのインタフェースとバス接続されているCPU7と、CPU7で実行されるプログラムやMACアドレステーブルMなどを記憶する内部メモリ4などで構成されている。そしてCPU7は、内部メモリ4に記憶されるルーティング・テーブルMを検索しながら上記インタフェースの監視制御を行ってパケットの送受信制御を実行する。   Each node 1 (#A to C) further includes a terminal interface 6 that transmits and receives packets to and from the terminal, and a network interface that transmits and receives packets between the first and second transmission paths 2a and 2b. 5, a CPU 7 connected to these interfaces via a bus, an internal memory 4 for storing a program executed by the CPU 7, a MAC address table M, and the like. Then, the CPU 7 performs monitoring control of the interface while searching for the routing table M stored in the internal memory 4 and executes packet transmission / reception control.

第1および第2の伝送路2a、2bとネットワークインタフェース5、端末P1〜P7と端末インタフェース6の間の信号の物理的制御、および各インタフェースとCPU7との間の監視制御動作は、従来のリングネットワークと同様である。本発明は、ルーティング・テーブルとして具備したMACアドレステーブルMと方路テーブルDを参照してパケットの送受信制御を処理するものである。   The physical control of signals between the first and second transmission lines 2a, 2b and the network interface 5, the signals between the terminals P1 to P7 and the terminal interface 6, and the monitoring control operation between each interface and the CPU 7, Same as network. The present invention processes packet transmission / reception control with reference to the MAC address table M and the route table D provided as a routing table.

以下では、各ノード1(#A〜#C)がMACアドレステーブルMと方路テーブルDからパケット送受信制御に必要な情報を記憶又は探索する動作を説明する。   Hereinafter, an operation in which each node 1 (#A to #C) stores or searches information necessary for packet transmission / reception control from the MAC address table M and the route table D will be described.

図2は、実施例のリングネットワーク上で伝送されるIPパケットの構成を示す図である。   FIG. 2 is a diagram illustrating a configuration of an IP packet transmitted on the ring network according to the embodiment.

図2(a)は、ノード1(#A〜#C)と端末との間で送受信されるパケットの構成を示し、端末間パケットと呼ばれる。   FIG. 2A shows a configuration of a packet transmitted and received between the node 1 (#A to #C) and the terminal, and is called an inter-terminal packet.

図2(a)において、端末間パケットは、パケットの種別やその他の伝送制御に補助的な情報を示すオプションフィールドOp、宛先の端末MACアドレスを示す宛先MACアドレスフィールドDA(ここでは、各端末のMACアドレスは「P1」〜「P7」である。)、送信元の端末MACアドレスSAを示す送信元MACアドレスフィールドSA、およびメッセージ本体のメッセージフィールドmf等とからなる。   In FIG. 2A, an inter-terminal packet includes an option field Op indicating packet type and other information auxiliary to transmission control, and a destination MAC address field DA indicating a destination terminal MAC address (here, each terminal's packet). MAC addresses are “P1” to “P7”.), A source MAC address field SA indicating a source terminal MAC address SA, a message field mf of a message body, and the like.

また図2(b)は、端末間パケットをリングネットワーク上の第1の伝送路2a、又は第2の伝送路2bを介して伝送するときの、ノード1(#A)、(#B)、(#C)の間で送受信するパケットの構成を示している。このパケットをリングパケットと呼ぶ。   FIG. 2B illustrates a case where nodes 1 (#A), (#B), when transmitting a terminal-to-terminal packet via the first transmission path 2a or the second transmission path 2b on the ring network, The structure of the packet transmitted / received between (#C) is shown. This packet is called a ring packet.

リングパケットは、上記の端末間パケットにリング内の宛先ノードのノードアドレス(ここでは、ノードアドレスを「#A」〜「#C」とする。)が設定される宛先ノードアドレスフィールドDNと、リング内の送信元ノードの送信元ノードアドレスが設定される送信元ノードアドレスフィールドSNと、中継カウントフィールドTTLとからなるリングヘッダが追加された構成を有する端末間パケットをカプセル化したパケットである。   The ring packet includes a destination node address field DN in which the node addresses of the destination nodes in the ring (here, the node addresses are “#A” to “#C”) are set in the inter-terminal packet, and the ring packet. Is a packet that encapsulates a terminal-to-terminal packet having a configuration in which a ring header composed of a source node address field SN in which a source node address of a source node is set and a relay count field TTL is added.

ここで中継カウントフィールドTTLは、リングパケットがノード1(#A〜#C)を中継される毎に+1ずつ加算される中継の回数(カウント数)を示すフィールドである。   Here, the relay count field TTL is a field indicating the number of times of relaying (count number) that is incremented by +1 every time the ring packet is relayed through the node 1 (#A to #C).

図3は、各ノード1(#A〜C)に接続された端末のMACアドレスをリストにしたMACアドレステーブルMを示す。   FIG. 3 shows a MAC address table M that lists the MAC addresses of the terminals connected to each node 1 (#A to C).

例えば、ノード1(#A)の端末P1からノード1(#C)の端末P5へメッセージを送信したい場合、送信元ノード1(#A)は、このMACアドレステーブルMを参照してリングパケットの宛先ノードフィールドDNに宛先端末P5が接続された送信先ノード1(#C)のノードアドレス「#C」、送信元ノードフィールドSNに送信元ノード(#A)のノードアドレス「#A」がそれぞれ設定される。   For example, when a message is transmitted from the terminal P1 of the node 1 (#A) to the terminal P5 of the node 1 (#C), the transmission source node 1 (#A) refers to the MAC address table M to The node address “#C” of the destination node 1 (#C) connected to the destination terminal P5 in the destination node field DN, and the node address “#A” of the source node (#A) in the source node field SN, respectively. Is set.

また、図4は、各ノード1(#A〜#C)間におけるリングパケットを送信する方路を示す方路テーブルDである。   FIG. 4 is a route table D indicating a route for transmitting a ring packet between the nodes 1 (#A to #C).

方路テーブルDは、各ノード相互間を最小中継数で送信する方路を記憶するもので、各ノード毎に異なる情報が記憶される。例えば、図4(a)はノード1(#A)の方路テーブルDを示している。即ち、ノード1(#A)がノード1(#B)から「方路R」でパケットを受信するときは、受信したリングパケットから読み出した「方路Rの中継カウント数」に1回の中継で受信したことを記憶し、「方路L」でパケットを受信するときは「方路Lの中継カウント数」に2回の中継で受信したことを記憶する。   The route table D stores a route for transmitting between nodes with a minimum number of relays, and stores different information for each node. For example, FIG. 4A shows the route table D of the node 1 (#A). That is, when the node 1 (#A) receives a packet from the node 1 (#B) on the “route R”, the relay is performed once for the “route R relay count” read from the received ring packet. When the packet is received by “Route L”, the fact that it has been received by two relays is stored in “Relay count number of route L”.

図4(a)の「方路Lの中継数」は、ノード1(#C)にパケットを送信する時ノード1(#C)に到着するまでの中継数で、ここでは1回である。そして、ノード1(#A)からノード1(#B)に送信する方路を示す「送信方路」には、中継カウント数の多い方、即ち、送信する時には最小の中継数になる「方路L」が設定される。同様に、ノード1(#A)がノード1(#C)から「方路R」でパケットを受信するときは、「方路Rの中継カウント数」に2回の中継で受信したことを記憶し、「方路L」でパケットを受信するときは「方路Lの中継カウント数」に1回の中継で受信したことを記憶する。そして、ノード1(#A)からノード1(#C)に送信する方路を示す「送信方路」には、中継数が少ない方の「方路R」が設定される。また、図4(b)、図4(c)は、それぞれノード1(#B)、ノード1(#C)の方路テーブルDを示している。   The “number of relays on route L” in FIG. 4A is the number of relays until the node 1 (#C) arrives at the time of transmitting a packet to the node 1 (#C). The “transmission route” indicating the route to be transmitted from the node 1 (#A) to the node 1 (#B) has a larger relay count number, that is, the “relay route” having the smallest number of relays when transmitting. Road L "is set. Similarly, when the node 1 (#A) receives a packet from the node 1 (#C) on the “route R”, the fact that it has been received by two relays is stored in the “relay count number of the route R”. When a packet is received by “Route L”, the fact that it has been received by one relay is stored in “Relay count number of route L”. Then, the “route R” having the smaller number of relays is set in the “transmission route” indicating the route transmitted from the node 1 (#A) to the node 1 (#C). FIGS. 4B and 4C show route tables D of the node 1 (#B) and the node 1 (#C), respectively.

次に、本実施例の概略動作を図1乃至図5を参照して説明する。図5は、本実施例のリングネットワークシステムの動作を説明するフローチャートである。図5において、中央の2つのルーチンはノード1(#A)、左側のルーチンはノード1(#C)、右側のルーチンはノード1(#B)の動作を表す。   Next, the schematic operation of the present embodiment will be described with reference to FIGS. FIG. 5 is a flowchart for explaining the operation of the ring network system of this embodiment. In FIG. 5, the central two routines represent the operation of node 1 (#A), the left routine represents the operation of node 1 (#C), and the right routine represents the operation of node 1 (#B).

例えば、ノード1(#A)に接続された端末P1がノード1(#C)に接続された端末P6にパケットを送信する場合のリングネットワークの動作を以下に説明する。   For example, the operation of the ring network when the terminal P1 connected to the node 1 (#A) transmits a packet to the terminal P6 connected to the node 1 (#C) will be described below.

各ノード1(#A〜#C)のMACアドレステーブルMには、図3に示す各ノードのアドレス「#A」〜「#C」と、端末のMACアドレス「P1」〜「P6」が既に設定・記憶されているものとする。   In the MAC address table M of each node 1 (#A to #C), the addresses “#A” to “#C” of the nodes and the MAC addresses “P1” to “P6” of the terminals shown in FIG. It is assumed that it has been set and stored.

送信データとともにヘッダの送信元MACアドレスフィールドSAに送信元MACアドレス「P1」と、宛先MACアドレスフィールドDAに宛先MACアドレス「P6」とが設定された端末間パケットが端末P1から送信されノード1(#A)がこれを受信する(ステップs1)。ノード1(#A)は、その端末間パケットの宛先MACアドレスフィールドDAを判読して(ステップs2)、MACアドレステーブルMを検索する(ステップs3)。   An inter-terminal packet in which the source MAC address “P1” is set in the source MAC address field SA of the header and the destination MAC address “P6” is set in the destination MAC address field DA together with the transmission data is transmitted from the terminal P1 to the node 1 ( #A) receives this (step s1). The node 1 (#A) reads the destination MAC address field DA of the inter-terminal packet (step s2) and searches the MAC address table M (step s3).

そして、MACアドレステーブルMからMACアドレス「P6」の端末P6がノード1(#C)に接続されていることを検出する(ステップs4がYes)。   Then, it is detected from the MAC address table M that the terminal P6 with the MAC address “P6” is connected to the node 1 (#C) (Yes in step s4).

次に、ノード1(#A)は、当該パケットをノード1(#C)へ送信するため、2系統あるリングネットワークの第1の伝送路2a又は第2の伝送路2bのどちらを用いて伝送するかを方路テーブルDを参照して調べる。例えば、図4(a)の方路テーブルDを参照すると、ノード1(#A)からノード1(#C)へリングパケットを送信するには「方路R」(即ち、第1の伝送路2a)を使用すれば良いことが分かる(ステップs5)。   Next, in order to transmit the packet to the node 1 (#C), the node 1 (#A) transmits the packet using either the first transmission path 2a or the second transmission path 2b of the two ring networks. The route table D is checked to see if this is to be done. For example, referring to the route table D in FIG. 4A, in order to transmit a ring packet from the node 1 (#A) to the node 1 (#C), the “route R” (that is, the first transmission route) It can be seen that 2a) should be used (step s5).

そして、ヘッダ部の宛先ノードアドレスフィールドDNにノードアドレス「#C」を、また、送信元ノードアドレスフィールドSNにノードアドレス「#A」を付加したリングパケットを生成して、第1の伝送路2aから時計回りの「方路R」に送信する(ステップs6)。   Then, a ring packet in which the node address “#C” is added to the destination node address field DN of the header part and the node address “#A” is added to the source node address field SN is generated, and the first transmission path 2a To the clockwise “route R” (step s6).

ノード1(#C)は、第1の伝送路2aを介して送信された上記リングパケットを受信すると、ヘッダ部の宛先ノードアドレスフィールドDNからノードアドレス「#C」、又は後述の同報アドレス「ff」を判読して自ノード宛のパケットと判断する(ステップs7がYes)。また、宛先端末のMACアドレスフィールドDA「P6」を判読する(ステップs7−1)と、自ノードの端末P6のMACアドレス「P6」であると判断して(ステップs8のYes)、送信元ノードアドレス「#A」と送信元端末アドレス「P1」をペアにしてMACアドレステーブルMに記憶すると共に、当該端末P6(サーバ)へ復元した端末間パケットを送信する(ステップs9)。   When the node 1 (#C) receives the ring packet transmitted via the first transmission path 2a, the node address “#C” or a broadcast address “to be described later” is sent from the destination node address field DN of the header part. ff ”is read and determined as a packet addressed to the own node (Yes in step s7). Further, when the MAC address field DA “P6” of the destination terminal is read (step s7-1), it is determined that it is the MAC address “P6” of the terminal P6 of the own node (Yes in step s8), and the source node The address “#A” and the source terminal address “P1” are paired and stored in the MAC address table M, and the restored inter-terminal packet is transmitted to the terminal P6 (server) (step s9).

一方、ステップs4において、ノード1(#A)が端末P1から受信した端末間パケットにMACアドレステーブルMに記憶されていない宛先端末のMACアドレス(例えば、MACアドレス「P7」とする。)を判読したとする(ステップs4がNo)。   On the other hand, in step s4, the MAC address (for example, MAC address “P7”) of the destination terminal that is not stored in the MAC address table M in the inter-terminal packet received by the node 1 (#A) from the terminal P1 is read. (No in step s4).

この場合、ノード1(#A)は、MACアドレステーブルMに登録されていない端末がノード1(#B)、(#C)に接続されている可能性があると判断して、その探索と探索結果に基づく端末間パケットの送信を実行する。   In this case, the node 1 (#A) determines that there is a possibility that a terminal not registered in the MAC address table M is connected to the nodes 1 (#B) and (#C). The terminal-to-terminal packet transmission based on the search result is executed.

そこでまず、ノード1(#A)は、全てのノード1(#B)、(#C)に対して当該端末間パケットをカプセル化したリングパケットを同報モードで送信する。即ち、宛先ノードアドレスフィールドDNに同報のためのアドレス記号(ここでは、「ff」とする。)を設定し、また、送信元ノードアドレスフィールドSNにノードアドレス「#A」を設定したリングパケットを生成する。そして、第1の伝送路2a又は第2の伝送路2bのいずれかを介してそのリングパケットを送信する(ステップs10)。例えば、第2の伝送路2bを用いてリングパケットを送信した場合、最初にノード1(#B)がこれを受信する。   Therefore, first, the node 1 (#A) transmits a ring packet encapsulating the inter-terminal packet to all the nodes 1 (#B) and (#C) in the broadcast mode. That is, a ring packet in which an address symbol for broadcast (here, “ff”) is set in the destination node address field DN, and a node address “#A” is set in the source node address field SN. Is generated. Then, the ring packet is transmitted via either the first transmission path 2a or the second transmission path 2b (step s10). For example, when a ring packet is transmitted using the second transmission path 2b, the node 1 (#B) receives this first.

ノード1(#B)は、このリングパケットを受信すると宛先MACアドレスフィールドDAを判読し(ステップs11)する。その判読により、MACアドレス「P7」の端末宛てのメッセージであると認識するが、その端末P7は自ノード1(#B)に接続されていないことを判定する(ステップs12がNo)。したがって、ノード1(#B)は、送信元ノードアドレス「#A」と送信元端末アドレス「P1」をペアにしてMACアドレステーブルMに記憶するだけで端末間パケットを内部に取り込まずに、再び同報アドレスを設定した元のリングパケットにして第2の伝送路2bに送信する(ステップs13)。   When the node 1 (#B) receives this ring packet, it reads the destination MAC address field DA (step s11). Based on the interpretation, it is recognized that the message is addressed to the terminal having the MAC address “P7”, but it is determined that the terminal P7 is not connected to the own node 1 (#B) (No in step s12). Therefore, the node 1 (#B) only stores the source node address “#A” and the source terminal address “P1” as a pair in the MAC address table M without taking in the inter-terminal packet again, and again The original ring packet with the broadcast address set is transmitted to the second transmission line 2b (step s13).

ノード1(#C)は、第2の伝送路2bを介して送信されたノード1(#B)からのリングパケットを受信すると、同様に宛先MACアドレスフィールドDAを判読し(ステップs7)する。そして、判読したMACアドレス「P7」を持つ端末P7が自ノードに接続されていること判定する(ステップ8がYES)。よって、ノード1(#C)は端末間パケットを取り込み、送信元ノードアドレス「#A」と送信元端末アドレス「P1」をペアにしてMACアドレステーブルMに記憶すると共に、端末P7に送出する(ステップs9)。   When the node 1 (#C) receives the ring packet from the node 1 (#B) transmitted via the second transmission path 2b, the node 1 (#C) similarly reads the destination MAC address field DA (step s7). Then, it is determined that the terminal P7 having the read MAC address “P7” is connected to the own node (step 8 is YES). Therefore, the node 1 (#C) captures the inter-terminal packet, stores the source node address “#A” and the source terminal address “P1” as a pair in the MAC address table M, and sends it to the terminal P7 ( Step s9).

ステップs8で、ノード1(#C)にもMACアドレス「P7」を持つ端末P7が接続されていなければ、ノード1(#C)は、送信元ノードアドレス「#A」と送信元端末アドレス「P1」をペアにしてMACアドレステーブルMに記憶するだけで端末間パケットを取り込まずに再び同報アドレスを設定したリングパケットに組み立てて第2の伝送路2bに送信する(ステップs8−1)。   In step s8, if the terminal P7 having the MAC address “P7” is not connected to the node 1 (#C), the node 1 (#C) transmits the source node address “#A” and the source terminal address “ By simply storing “P1” as a pair in the MAC address table M, it is assembled into a ring packet in which the broadcast address is set again without taking in the inter-terminal packet, and transmitted to the second transmission path 2b (step s8-1).

また、ステップs12で、ノード1(#B)にMACアドレス「P7」を持つ端末P7が接続されている場合(ステップs12がYes)、ノード1(#B)は、送信元ノードアドレス「#A」と送信元端末アドレス「P1」をペアにしてMACアドレステーブルMに記憶すると共に、その端末P7に端末間パケットを送信する。   In addition, when the terminal P7 having the MAC address “P7” is connected to the node 1 (#B) in Step s12 (Yes in Step s12), the node 1 (#B) transmits the source node address “#A ”And the source terminal address“ P1 ”are stored in the MAC address table M as a pair, and the inter-terminal packet is transmitted to the terminal P7.

ノードの数が多い場合、この動作を同様に繰り返し実行し、同報アドレスで送信されたリングパケットが送信元のノード1(#A)に戻るまで、順番にリングパケットを受信し、MACアドレステーブルMへの記憶、次のノードへ送信する中継動作を繰り返す。   When the number of nodes is large, this operation is repeated in the same manner, and the ring packet is received in order until the ring packet transmitted with the broadcast address returns to the source node 1 (#A), and the MAC address table Repeat the storing operation to M and the relay operation to transmit to the next node.

以上の動作によって、宛先のMACアドレス「P7」を有する端末P7がノード1(#A)のMACアドレステーブルMに記憶されていない場合でも、ノード1(#A)から送信された端末間パケットを、ノード1(#C)に接続されている端末P7に送信することが出来る。   With the above operation, even if the terminal P7 having the destination MAC address “P7” is not stored in the MAC address table M of the node 1 (#A), the inter-terminal packet transmitted from the node 1 (#A) is Can be transmitted to the terminal P7 connected to the node 1 (#C).

なお、ステップs7がNo、即ち、同報でなく自ノード宛でないのパケットを受信した時は、ノード1(#C)は端末間パケットを取り込まずにそのまま第2の伝送路2bによって次のノードへ送信する(ステップs7−2)。同様に、ステップs11がNo、の同報でなく自ノード宛でないのパケットを受信した時は、ノード1(#B)は端末間パケットを取り込まずにそのまま受信した時と同じ方路の伝送路に送信する(ステップs11−2)。   When step s7 is No, that is, when a packet that is not broadcast and is not addressed to the own node is received, the node 1 (#C) does not take in the inter-terminal packet and continues to the next node through the second transmission path 2b. (Step s7-2). Similarly, when step s11 is not No and a packet that is not addressed to its own node is received, node 1 (#B) transmits the same route as when the packet is received without receiving the inter-terminal packet. (Step s11-2).

図6は、実施例のリングネットワークがリングパケットの中継動作手順とMACアドレステーブルMを生成する動作手順を示すフローチャートである。以下、図1乃至図4、及び図6を参照してMACアドレステーブルMを生成する動作を説明する。   FIG. 6 is a flowchart illustrating a procedure for relaying a ring packet and an operation procedure for generating the MAC address table M by the ring network according to the embodiment. Hereinafter, an operation of generating the MAC address table M will be described with reference to FIGS. 1 to 4 and FIG.

図6において、各ノード1(#A〜#C)は、自ノードに接続されている端末のMACアドレスをMACアドレステーブルMに学習記憶させる。   In FIG. 6, each node 1 (#A to #C) learns and stores the MAC address of the terminal connected to its own node in the MAC address table M.

例えば、ノード1(#C)が他ノードから第1の伝送路2aを介して送信されたメッセージのリングパケットを受信すると(ステップs61)、そのリングパケットの送信元ノードアドレスフィールドSNを判読する。そして、リングパケットの送信元ノードアドレスが自ノードアドレスで有れば(ステップs62がYes)、自ノードが送信したリングパケットであるので、そのまま廃棄する(ステップs60)。   For example, when the node 1 (#C) receives a ring packet of a message transmitted from another node via the first transmission path 2a (step s61), the source node address field SN of the ring packet is read. Then, if the source node address of the ring packet is the own node address (Yes in step s62), it is discarded as it is because it is a ring packet transmitted by the own node (step s60).

また、自ノードアドレスではないリングパケットであった場合(ステップs62がNo)、ノード1(#C)は中継カウントフィールドTTLの中継カウント数を+1加算する(ステップs63)。そして、加算した中継カウント数がリング内のノード合計数、もしくは予め設定された上限数(ここでは、「3」とする)を超えていない場合(ステップs64がNo)、リングパケットの送信元のノードアドレスフィールドDNに設定されているノードアドレス(例えば、ノードアドレス(#A)とする。)と送信元端末のMACアドレスフィールドに設定されているMACアドレス(例えば、MACアドレス「P1」とする。)を組にして、ノード1(#C)のMACアドレステーブルMに記憶する(ステップs65)。なお、ノード1(#C)のMACアドレステーブルMにそのアドレス情報の組が既に記憶されていた場合でも、MACアドレステーブルMに上書きして記憶内容を更新する。   If the ring packet is not a local node address (No in step s62), the node 1 (#C) adds +1 to the relay count number in the relay count field TTL (step s63). If the added relay count number does not exceed the total number of nodes in the ring or a preset upper limit number (here, “3”) (No in step s64), the transmission source of the ring packet It is assumed that the node address (for example, node address (#A)) set in the node address field DN and the MAC address (for example, MAC address “P1”) set in the MAC address field of the transmission source terminal. ) As a set and stored in the MAC address table M of the node 1 (#C) (step s65). Note that even when the set of address information is already stored in the MAC address table M of the node 1 (#C), the stored contents are updated by overwriting the MAC address table M.

また、ステップs64で、中継カウント数がリング内のノード合計数、もしくは予め設定された上限数を超えている場合(ステップs64がYes)、ノード1(#C)は受信したリングパケットを廃棄する(ステップs60)。   In step s64, if the relay count exceeds the total number of nodes in the ring or a preset upper limit (step s64 is Yes), node 1 (#C) discards the received ring packet. (Step s60).

次にノード1(#C)は、宛先ノードアドレスフィールドDNを判読して同報アドレス又は自ノードアドレスが設定されているかを判定する(ステップs66)。そして、例えば自ノードアドレスが設定されていれば、宛先端末のMACアドレスが自ノードに接続されている端末(例えば、端末P6のMACアドレス)に対するものであるかを判定する(ステップS67)。自ノードに接続された端末である場合、そのMACアドレス「P6」の端末P6に端末間パケットを送信する(ステップs68)。   Next, the node 1 (#C) reads the destination node address field DN and determines whether the broadcast address or its own node address is set (step s66). For example, if the own node address is set, it is determined whether the MAC address of the destination terminal is for a terminal connected to the own node (for example, the MAC address of the terminal P6) (step S67). If it is a terminal connected to the own node, the inter-terminal packet is transmitted to the terminal P6 having the MAC address “P6” (step s68).

そして、ノード1(#C)は以上の処理を終えると、当該リングパケットを第1の伝送路2aを介して次のリングノード(ここでは、ノード1(#B)。)へ送信する(ステップs69)。   When node 1 (#C) finishes the above processing, it transmits the ring packet to the next ring node (here, node 1 (#B)) via first transmission path 2a (step 1). s69).

また、ステップs66で受信したリングパケットの宛先ノードアドレスが、自ノード宛のアドレスでない場合(ステップs66がNo)、又はステップs67で自ノードに接続された端末に対するパケットでない場合(ステップs67がNo)、ノード1(#C)はそのリングパケットを第1の伝送路2aを介して次のノードに送信する(ステップs69)。   In addition, when the destination node address of the ring packet received in step s66 is not an address addressed to the own node (step s66 is No), or when the packet is not a packet for the terminal connected to the own node in step s67 (step s67 is No). The node 1 (#C) transmits the ring packet to the next node via the first transmission path 2a (step s69).

この様にリングパケットに設定されている送信元ノードアドレスと送信元端末のMACアドレスを各ノードが判読することによって、例えばノード1(#A)にMACアドレス「P1」の端末P1が接続されていることがノード1(#B、#C)で判読して、各ノードのMACアドレステーブルMにそれぞれ記憶される。   In this way, each node interprets the source node address set in the ring packet and the MAC address of the source terminal, so that, for example, the terminal P1 with the MAC address “P1” is connected to the node 1 (#A). Is read by the node 1 (#B, #C) and stored in the MAC address table M of each node.

各ノード1(#A〜#C)に接続されている端末のそれぞれのMACアドレスは、各ノード1(#A〜#C)の初期設定、又は、端末からのパケット受信により各MACアドレステーブルMに記憶されている。そして、例えば、初期設定後に端末が追加接続されて送信元端末のMACアドレス(例えば、MACアドレス「P7」)が各MACアドレステーブルMに記憶されていない場合があっても、追加接続された端末P7からIPパケットを送信する時に、ノードアドレスとMACアドレスのペア情報が各MACアドレステーブルMに記憶される。   Each MAC address of the terminal connected to each node 1 (#A to #C) is set in each MAC address table M by initial setting of each node 1 (#A to #C) or by packet reception from the terminal. Is remembered. For example, even if the terminal is additionally connected after the initial setting and the MAC address (eg, MAC address “P7”) of the source terminal is not stored in each MAC address table M, the additionally connected terminal When an IP packet is transmitted from P7, node address / MAC address pair information is stored in each MAC address table M.

しかし、上記の手順だけではノードに接続された端末(例えば、MACアドレス「P7」とする。)が受信専用の端末である場合には、各MACアドレステーブルMにMACアドレス「P7」が記憶させることが出来ない。   However, if the terminal connected to the node (for example, the MAC address “P7”) is a reception-only terminal only by the above procedure, the MAC address “P7” is stored in each MAC address table M. I can't.

そこで次に、ノードに追加接続された端末のMACアドレスを各MACアドレステーブルMに記憶させる方法について説明する。   Next, a method for storing the MAC address of the terminal additionally connected to the node in each MAC address table M will be described.

図7は、実施例のリングネットワークのMACアドレステーブルMに、例えばMACアドレス「P7」を持つ端末P7の登録情報を追加記憶する動作手順を示すフローチャートである。   FIG. 7 is a flowchart illustrating an operation procedure for additionally storing registration information of the terminal P7 having the MAC address “P7”, for example, in the MAC address table M of the ring network according to the embodiment.

図7において、例えば、ノード1(#C)は、MACアドレスを通知する方路探索情報を送信する時間(例えば、所定周期毎)に到達すると(ステップs70がYes)、宛先ノードアドレスフィールドDNに同報アドレス「ff」を設定し、オプションフィールドOpにMACアドレス情報を通知する方路探索情報で有ることを示す識別コード(例えば、「1111」)を設定し、送信元ノードアドレスフィールドSNに送信元ノードアドレス(「#C」)を設定し、宛先端末のMACアドレスフィールドDAには同報を示すアドレス(「ff」)を設定し、送信元端末のMACアドレスフィールドSAには追加された端末P7のMACアドレス「P7」を設定したリングパケットを生成する。そして、その生成したリングパケットを第1の伝送路2a又は第2の伝送路2bのいずれかを用いてリングネットワークに接続されている全てのノードに送信する(ステップs71)。   In FIG. 7, for example, when the node 1 (#C) reaches the time (for example, every predetermined period) for transmitting the route search information for notifying the MAC address (Yes in step s70), the node 1 (#C) enters the destination node address field DN A broadcast address “ff” is set, an identification code (for example, “1111”) indicating that it is route search information for notifying MAC address information is set in the option field Op, and transmitted to the source node address field SN The source node address (“#C”) is set, the address (“ff”) indicating the broadcast is set in the MAC address field DA of the destination terminal, and the added terminal is set in the MAC address field SA of the source terminal A ring packet in which the MAC address “P7” of P7 is set is generated. Then, the generated ring packet is transmitted to all the nodes connected to the ring network using either the first transmission path 2a or the second transmission path 2b (step s71).

そして、ノード1(#C)以外のノード1(#A)、(#B)は、このリングパケットを受信するとオプションフィールドOpから「1111」を判読することによって方路探索情報であることを認識し、その後、図6に示された手順の動作を実行する。   When nodes 1 (#A) and (#B) other than node 1 (#C) receive this ring packet, they recognize route search information by reading “1111” from the option field Op. Then, the operation of the procedure shown in FIG. 6 is executed.

その結果、ノード1(#A)、(#B)は自ノード内のMACアドレステーブルMにMACアドレス「P7」とノードアドレス「(#C)」のペア情報を記憶する。   As a result, the nodes 1 (#A) and (#B) store the pair information of the MAC address “P7” and the node address “(#C)” in the MAC address table M in the own node.

なお、この端末のMACアドレスを追加する方法は、一定の周期でなくてもノードに端末が追加接続された時に図7の手順を実行して、各MACアドレステーブルMに最新のMACアドレス情報が記憶される様にしてもよい。   Note that this method of adding the MAC address of the terminal executes the procedure shown in FIG. 7 when the terminal is additionally connected to the node even if the period is not fixed, so that the latest MAC address information is stored in each MAC address table M. You may make it memorize.

このように、各ノード1(#A〜#C)が自ノードに接続された端末のMACアドレスを通知するパケットを送信するので、受信専用の端末がノードに接続される場合であってもその端末のMACアドレスとノードアドレスのペア情報をリングネットワーク上の各ノードに通知することが出来る。   Thus, since each node 1 (#A to #C) transmits a packet notifying the MAC address of the terminal connected to its own node, even if a dedicated reception terminal is connected to the node The node MAC address / node address pair information can be notified to each node on the ring network.

さて、実施例ではリングネットワークの構成が変わった(増設等)場合や回線の障害が発生しネットワーク中継路の最短経路に変更があった場合、この情報を自動的に短い時間で認識するための手順を設けている。   Now, in the embodiment, when the configuration of the ring network changes (addition etc.) or when a line failure occurs and the shortest route of the network relay path is changed, this information is automatically recognized in a short time. There are procedures.

図8は、実施例のリングネットワークが構成変更を自動認識し方路テーブルDを生成する動作手順を示すフローチャートであって、この図8を用いて、特定のノードから上記方路探索情報(ルーティング情報)を搭載したリングパケットをリングネットワークに送信するときの動作を説明する。   FIG. 8 is a flowchart illustrating an operation procedure in which the ring network according to the embodiment automatically recognizes the configuration change and generates the route table D. The route search information (routing) is transmitted from a specific node using FIG. The operation when transmitting a ring packet carrying information) to the ring network will be described.

図8において、例えば、ノード1(#C)は方路探索情報の送信タイミングになると(ステップs80のYes)、中継カウント数フィールドTTLに「0」を設定し、宛先ノードアドレスフィールドDNに同報を示す識別コード「ff」を設定し、送信元ノードアドレスフィールドSNに送信元のノードアドレス「#C」を設定し、オプションフィールドOpに方路探索情報であることを示すコード「1111」を設定したリングパケットを生成する。なお、このリングパケットは、宛先MACアドレスフィールドDA、および送信元MACアドレスフィールドSAには、いずれも「00」が設定される。そして、このリングパケットを第1の伝送路2a及び第2の伝送路2bを介して同時に送信する(ステップs81)。なお、上記送信タイミングとは、予め設定された一定の周期時間、ノードが追加された後、もしくはノードが削減される前である。   In FIG. 8, for example, when it becomes the transmission timing of the route search information (Yes in step s80), the node 1 (#C) sets “0” in the relay count field TTL and broadcasts it in the destination node address field DN. Is set, the source node address “#C” is set in the source node address field SN, and the code “1111” indicating route search information is set in the option field Op. Generated ring packet. In this ring packet, “00” is set in both the destination MAC address field DA and the source MAC address field SA. Then, the ring packet is simultaneously transmitted via the first transmission path 2a and the second transmission path 2b (step s81). Note that the transmission timing is a predetermined period of time, after a node is added, or before a node is reduced.

図9は、方路探索情報(ルーティング情報)を搭載したリングパケットを受信したときのノードの動作を示すフローチャートである。   FIG. 9 is a flowchart showing the operation of the node when a ring packet carrying route search information (routing information) is received.

図9において、例えば、ノード1(#B)は、第1の伝送路2a(「方路R」)を介してノード1(#C)から送信された方路探索情報を搭載したリングパケットを受信すると(ステップs91)、そのオプションフィールドOpから「1111」を判読して方路探索情報(ルーティング情報)であることを判定する。   In FIG. 9, for example, the node 1 (#B) receives a ring packet carrying the route search information transmitted from the node 1 (#C) via the first transmission path 2a (“route R”). When it is received (step s91), “1111” is read from the option field Op to determine route search information (routing information).

ノード1(#B)は、そのリングパケットの送信元ノードアドレスフィールドSNから送信元ノードアドレスを判読して、自ノードが送信した同報リングパケットであれば(ステップs92がYes)、そのリングパケットを廃棄(ステップs99)する。また、そのリングパケットが他ノードから送信されたもので有れば(ステップs92がNo)、中継カウントフィールドTTLの中継カウント数を+1加算する(ステップs93)。   The node 1 (#B) interprets the source node address from the source node address field SN of the ring packet, and if it is a broadcast ring packet transmitted by its own node (Yes in step s92), the ring packet Is discarded (step s99). If the ring packet is transmitted from another node (No in step s92), the relay count number in the relay count field TTL is incremented by 1 (step s93).

そして、加算後の中継カウント数がリングネットワーク内のノード合計数、もしくは予め設定された上限数(ここでは「3」とする。)以上であった場合(ステップs94がYes)、ノード1(#B)はそのリングパケットを廃棄する(ステップs99)。   If the added relay count number is equal to or greater than the total number of nodes in the ring network or a preset upper limit number (here, “3”) (Yes in step s94), node 1 (# B) discards the ring packet (step s99).

一方、ステップs94で中継カウント数が上記の条件を超えていなければ、ノード1(#B)は自ノード内の方路テーブルDの当該リングパケットの送信ノードアドレスに対応する「方路Rの中継カウント数」に加算後の中継カウント数を設定する(ステップs95)。   On the other hand, if the relay count number does not exceed the above condition in step s94, the node 1 (#B) corresponds to the “route R relay” corresponding to the transmission node address of the ring packet in the route table D in its own node. The relay count number after addition is set to “count number” (step s95).

同様にして、ノード1(#B)は、第2の伝送路2b(「方路L」)を介してノード1(#C)から送信された方路探索情報を搭載したリングパケットを受信すると、ステップs91〜ステップs94の処理を実行する。そして、ノード1(#B)は自ノード内の方路テーブルDの当該リングパケットの送信ノードアドレスに対応する「方路Lの中継カウント数」に加算後の中継カウント数を設定する(ステップs95)。この第2の伝送路2bを介してリングパケットを受信した場合、ノード1(#A)を経由していることから「方路Lの中継カウント数」が「2」が設定される(ステップs95)。即ち、ノード1(#B)のメモリには図4(b)に示す方路テーブルDが作成される。   Similarly, when the node 1 (#B) receives the ring packet loaded with the route search information transmitted from the node 1 (#C) via the second transmission path 2b (“route L”). , Steps s91 to s94 are executed. Then, the node 1 (#B) sets the relay count number after addition to the “relay count number of the route L” corresponding to the transmission node address of the ring packet of the route table D in the own node (step s95). ). When a ring packet is received via the second transmission path 2b, since it is routed through the node 1 (#A), the “route L relay count” is set to “2” (step s95). ). That is, the route table D shown in FIG. 4B is created in the memory of the node 1 (#B).

こうして、ノード1(#B)はノード1(#C)とのデータ伝送に際し、2つの伝送路を介して受信した方路探索情報を搭載したリングパケットにより設定された「方路Rの中継カウント数(「1」)」と「方路Lの中継カウント数(「2」)」とを比較し、多い方の第2の伝送路2bをノード1(#C)に送信する方路として選択し、方路テーブルDの「送信方路」に「方路L」を設定する(ステップs96)。   Thus, the node 1 (#B), when transmitting data with the node 1 (#C), sets the “route R relay count set by the ring packet loaded with the route search information received via the two transmission paths. Number (“1”) ”and“ relay count number of route L (“2”) ”are compared, and the larger second transmission path 2b is selected as a path to be transmitted to node 1 (#C). Then, “route L” is set in “transmission route” of the route table D (step s96).

そして、この動作がリングネットワーク上の各ノード1(#A〜#C)で同報のリングパケットが送信元であるノード1(#C)にて受信されるまで、全てのノード1(#A〜#C)にて方路テーブルDが更新される。   Until this operation is received at each node 1 (#A to #C) on the ring network by the node 1 (#C) as the transmission source, all the nodes 1 (#A ~ # C), the route table D is updated.

この様にして、例えば、ノード1(#A)では端末MACアドレス「P7」の端末P7がノード1(#C)に接続されていることが分かると、方路テーブルDを参照して最短の送信伝送路である第1の伝送路2aの情報を得て、その第1の伝送路2aを介してノード1(#C)に端末間パケットを送信することができる。   In this way, for example, when it is found that the terminal P7 of the terminal MAC address “P7” is connected to the node 1 (#C) in the node 1 (#A), the shortest with reference to the route table D Information on the first transmission path 2a, which is a transmission transmission path, is obtained, and an inter-terminal packet can be transmitted to the node 1 (#C) via the first transmission path 2a.

以上、本発明のリングネットワークでは、リングネットワーク上の各ノードに接続された端末間の通信を行いながら、各ノードに設けられるMACアドレステーブルや方路テーブルなどのルーティング・テーブルに端末のMACアドレス、最短伝送路を記憶することができる。このルーティング・テーブルの生成や管理方法は、プロトコルヘッダを大きくすることなく、方路や端末のMACアドレス等の経路情報を学習するので、ルーティング・テーブルへの初期設定を最小にしても良く、リングネットワークを低コストで提供することが出来る。   As described above, in the ring network of the present invention, while performing communication between terminals connected to each node on the ring network, the MAC address of the terminal in the routing table such as a MAC address table or a route table provided in each node, The shortest transmission path can be stored. This routing table generation and management method learns route information such as route and terminal MAC address without enlarging the protocol header, so the initial setting in the routing table may be minimized, and the ring A network can be provided at low cost.

本発明の実施例に係るリングネットワークシステムの構成を示すブロック図。The block diagram which shows the structure of the ring network system which concerns on the Example of this invention. 本発明の実施例に係るリングネットワークシステム上で伝送されるIPパケットの構成を示す図。The figure which shows the structure of the IP packet transmitted on the ring network system which concerns on the Example of this invention. 本発明の実施例に係るリングネットワークシステムのMACアドレステーブルを示す図。The figure which shows the MAC address table of the ring network system which concerns on the Example of this invention. 本発明の実施例に係るリングネットワークシステムの方路テーブルを示す図。The figure which shows the route table of the ring network system which concerns on the Example of this invention. 本発明の実施例に係るリングネットワークシステムの動作を示すフローチャート。The flowchart which shows operation | movement of the ring network system based on the Example of this invention. 本発明の実施例に係るリングネットワークシステムのMACアドレステーブルを生成する動作を示すフローチャート。The flowchart which shows the operation | movement which produces | generates the MAC address table of the ring network system which concerns on the Example of this invention. 本発明の実施例に係るリングネットワークシステムのMACアドレステーブルにMACアドレスを追加する動作を示すフローチャート。The flowchart which shows the operation | movement which adds a MAC address to the MAC address table of the ring network system which concerns on the Example of this invention. 本発明の実施例に係るリングネットワークシステムの方路テーブルの生成動作を示すフローチャート。The flowchart which shows the production | generation operation | movement of the route table of the ring network system which concerns on the Example of this invention. 本発明の実施例に係るリングネットワークシステムの方路テーブルの生成動作を示すフローチャート。The flowchart which shows the production | generation operation | movement of the route table of the ring network system which concerns on the Example of this invention. 従来のリングネットワークシステムの構成を示すブロック図。The block diagram which shows the structure of the conventional ring network system.

符号の説明Explanation of symbols

1 ノード
2a 第1の伝送路(「方路R」)
2b 第2の伝送路(「方路L」)
4 内部メモリ
5 ネットワークインタフェース
6 端末
P1〜P7 端末のMACアドレス
DA 宛先の端末MACアドレスフィールド
SA 送信元の端末MACアドレスフィールド
DN 宛先ノードアドレスフィールド
SN 送信元ノードアドレスフィールド
TTL 中継カウント数フィールド
Op オプションフィールド
mf メッセージフィールド

1 Node 2a First transmission path ("Route R")
2b Second transmission line ("Route L")
4 Internal memory 5 Network interface 6 Terminal P1 to P7 Terminal MAC address DA Destination terminal MAC address field SA Source terminal MAC address field DN Destination node address field SN Source node address field TTL Relay count field Op Option field mf Message field

Claims (9)

第1の方路でパケットを伝送する第1の伝送路と、前記第1の方路と反対の第2の方路でパケットを伝送する第2の伝送路とからなるリング伝送路と、
前記第1及び第2の伝送路に接続される複数のノードと、
前記複数のノード内に設けられ、前記各ノードのノードアドレスと前記各ノードに接続されている端末のMACアドレスとが対応して記憶されるMACアドレステーブルと、
前記複数のノード内に設けられ、他のノードのノードアドレスに対応して、前記他のノードから前記第1の伝送路を用いて受信したリングパケットに含まれる中継カウント情報を更新した第1の中継カウント数、前記他のノードから前記第2の伝送路を用いて受信した前記リングパケットに含まれる中継カウント情報を更新した第2の中継カウント数、および自ノードから前記他のノードに送信する時に使用する前記第1又は第2の伝送路が記憶される方路テーブルと
を具備することを特徴とするリングネットワークシステムの通信制御方法。
A ring transmission path consisting of a first transmission path for transmitting packets in a first path and a second transmission path for transmitting packets in a second path opposite to the first path;
A plurality of nodes connected to the first and second transmission lines;
A MAC address table provided in the plurality of nodes, in which a node address of each node and a MAC address of a terminal connected to each node are stored correspondingly;
A first count provided in the plurality of nodes, wherein the relay count information included in the ring packet received from the other node using the first transmission path is updated corresponding to the node address of the other node. The relay count number, the second relay count number updated from the relay count information included in the ring packet received from the other node using the second transmission path, and the own node transmit to the other node A communication control method for a ring network system, comprising: a route table in which the first or second transmission path used at times is stored.
第1の方路でパケットを伝送する第1の伝送路と、前記第1の方路と反対の第2の方路でパケットを伝送する第2の伝送路とからなるリング伝送路と、
前記第1及び第2の伝送路に接続される複数のノードとからなるリングネットワークシステムの通信制御方法であって、
前記複数の各ノードは、
前記各ノードのノードアドレスと前記各ノードに接続されている端末のMACアドレスとが対応して記憶されるMACアドレステーブルと、
他のノードのノードアドレスに対応して、前記他のノードから前記第1の伝送路を用いて受信したリングパケットに含まれる中継カウント情報を更新した第1の中継カウント数、前記他のノードから前記第2の伝送路を用いて受信した前記リングパケットに含まれる中継カウント情報を更新した第2の中継カウント数、および自ノードから前記他のノードに送信する時に使用する前記第1又は第2の伝送路が記憶される方路テーブルとを具備し、
第1のノードに接続された第1の端末から第2のノードに接続された第2の端末へパケットを送信する場合、
前記第1の端末からの送信パケットを受信した前記第1のノードは、
前記送信パケットから送信先の前記第2の端末のMACアドレスを判読し、自ノードの前記MACアドレステーブルと照合して前記第2の端末が接続されている前記第2のノードのノードアドレスを取得し、
前記第2のノードのノードアドレスと自ノードの前記方路テーブルを照合して前記第2のノードへ送信する前記第1又は第2の伝送路を設定し、
宛先ノードアドレスに前記第2のノードのノードアドレスを設定すると共に、送信元ノードアドレスに前記第1のノードのノードアドレスを設定した情報を前記送信パケットに付加してカプセル化したリングパケットを生成し、
前記設定された前記第1又は第2の伝送路に前記リングパケットを送信する
ことを特徴とするリングネットワークシステムの通信制御方法。
A ring transmission path consisting of a first transmission path for transmitting packets in a first path and a second transmission path for transmitting packets in a second path opposite to the first path;
A ring network system communication control method comprising a plurality of nodes connected to the first and second transmission paths,
Each of the plurality of nodes is
A MAC address table in which a node address of each node and a MAC address of a terminal connected to each node are stored correspondingly;
Corresponding to the node address of the other node, the first relay count number updated from the other node and the relay count information included in the ring packet received from the other node using the first transmission path, from the other node The second relay count number updated in the relay count information included in the ring packet received using the second transmission path, and the first or second used when transmitting from the own node to the other node And a route table in which the transmission paths are stored,
When transmitting a packet from a first terminal connected to a first node to a second terminal connected to a second node,
The first node that receives the transmission packet from the first terminal is:
The MAC address of the second terminal of the transmission destination is read from the transmission packet, and the node address of the second node to which the second terminal is connected is obtained by comparing with the MAC address table of the own node. And
Check the node address of the second node and the route table of its own node to set the first or second transmission path to be transmitted to the second node,
A node packet of the second node is set as a destination node address, and a ring packet encapsulated by adding information in which the node address of the first node is set as a source node address to the transmission packet is generated. ,
A ring network system communication control method, wherein the ring packet is transmitted to the set first or second transmission path.
前記リングパケットを受信した前記各ノードは、
前記リングパケットから送信元の前記第1のノードのノードアドレスと、送信元の前記第1の端末のMACアドレスを判読し、
前記第1のノードのノードアドレスと前記第1の端末のMACアドレスとをペアにして自ノード内の前記MACアドレステーブルに記憶する
ことを特徴とする請求項2記載のリングネットワークシステムの通信制御方法。
Each of the nodes that have received the ring packet
From the ring packet, the node address of the first node of the transmission source and the MAC address of the first terminal of the transmission source are read,
3. The ring network system communication control method according to claim 2, wherein the node address of the first node and the MAC address of the first terminal are paired and stored in the MAC address table in the own node. .
前記第1のノードの前記MACアドレステーブルに前記第2の端末のMACアドレスが記憶されていない時は、
前記宛先ノードアドレスに同報アドレスを設定した同報リングパケットを生成して前記第1又は第2の伝送路へ送信する
ことを特徴とする請求項2記載のリングネットワークシステムの通信制御方法。
When the MAC address of the second terminal is not stored in the MAC address table of the first node,
The ring network system communication control method according to claim 2, wherein a broadcast ring packet in which a broadcast address is set as the destination node address is generated and transmitted to the first or second transmission path.
前記同報リングパケットを受信した前記各ノードは、
前記同報リングパケットから前記第2の端末のMACアドレスを判読し、
送信元の前記第1のノードのノードアドレスと送信元の前記第1の端末のMACアドレスとをペアにして自ノードの前記MACアドレステーブルに記憶し、
前記第2の端末を自ノードに接続していると判読した場合、受信したパケットを前記第2の端末に送信する
ことを特徴とする請求項4記載のリングネットワークシステムの通信制御方法。
Each node receiving the broadcast ring packet
Deciphering the MAC address of the second terminal from the broadcast ring packet;
The node address of the first node of the transmission source and the MAC address of the first terminal of the transmission source are paired and stored in the MAC address table of the own node,
5. The ring network system communication control method according to claim 4, wherein when it is determined that the second terminal is connected to its own node, the received packet is transmitted to the second terminal.
新たに端末が接続された前記ノードは、
宛先MACアドレスに同報アドレスを設定し、送信元MACアドレスに自ノードに接続されている端末のMACアドレスを設定し、前記新たに端末が接続されたことを通報する方路探索情報の識別子をヘッダ情報に設定した同報リングパケットを生成し、
前記同報リングパケットを前記第1又は第2の伝送路に送信する
ことを特徴とする請求項2記載のリングネットワークシステムの通信制御方法。
The node to which the terminal is newly connected is
The broadcast address is set as the destination MAC address, the MAC address of the terminal connected to the own node is set as the source MAC address, and the identifier of the route search information for reporting that the terminal is newly connected is set. Generate a broadcast ring packet set in the header information,
3. The ring network system communication control method according to claim 2, wherein the broadcast ring packet is transmitted to the first or second transmission path.
前記同報リングパケットを受信した前記各ノードは、
前記同報リングパケットの送信元ノードアドレスと送信元MACアドレスを判読し、
その判読した送信元ノードアドレスと送信元MACアドレスとを自ノードの前記MACアドレステーブルに記憶する
ことを特徴とする請求項6記載のリングネットワークシステムの通信制御方法。
Each node receiving the broadcast ring packet
Read the source node address and source MAC address of the broadcast ring packet,
7. The ring network system communication control method according to claim 6, wherein the read source node address and the source MAC address are stored in the MAC address table of the own node.
前記各ノードは所定の時間毎に、
宛先ノードアドレスに同報アドレスを設定し、送信元ノードアドレスに自ノードアドレスを設定し、中継カウント数に0を設定し、前記中継カウント数を調べる方路探索情報の識別子をヘッダ情報に設定した同報試験リングパケットを生成し、
前記同報リングパケットを前記第1及び第2の伝送路に送信する
ことを特徴とする請求項2記載のリングネットワークシステムの通信制御方法。
Each node has a predetermined time,
The broadcast address is set as the destination node address, the own node address is set as the source node address, the relay count number is set to 0, and the identifier of the route search information for checking the relay count number is set in the header information Generate a broadcast test ring packet,
3. The ring network system communication control method according to claim 2, wherein the broadcast ring packet is transmitted to the first and second transmission lines.
前記試験リングパケットを受信した前記各ノードは、
前記第1の伝送路から受信した前記試験リングパケットの送信元ノードアドレスと前記中継カウント数を判読し、前記中継カウント数を更新して自ノードの前記方路テーブルに記憶し、
前記第2の伝送路から受信した前記試験リングパケットの送信元ノードアドレスと前記中継カウント数を判読し、前記中継カウント数を更新して自ノードの前記方路テーブルに記憶し、
更新された前記2つの中継カウント数を比較して多い方の伝送路を送信元のノードとの伝送路として自ノードの前記方路テーブルに記憶し、
前記中継カウント数を更新した前記試験リングパケットを前記第1及び第2の伝送路に送信する
ことを特徴とする請求項8記載のリングネットワークシステムの通信制御方法。
Each of the nodes that received the test ring packet
Read the source node address of the test ring packet received from the first transmission path and the relay count number, update the relay count number and store it in the route table of its own node,
Read the source node address of the test ring packet received from the second transmission path and the relay count number, update the relay count number and store it in the route table of its own node,
Comparing the updated two relay counts, the larger transmission path is stored in the path table of the own node as a transmission path with the source node,
9. The communication control method for a ring network system according to claim 8, wherein the test ring packet with the relay count number updated is transmitted to the first and second transmission paths.
JP2003424216A 2003-12-22 2003-12-22 Ring network system, and its communication control method Withdrawn JP2005184595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003424216A JP2005184595A (en) 2003-12-22 2003-12-22 Ring network system, and its communication control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003424216A JP2005184595A (en) 2003-12-22 2003-12-22 Ring network system, and its communication control method

Publications (1)

Publication Number Publication Date
JP2005184595A true JP2005184595A (en) 2005-07-07

Family

ID=34784477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003424216A Withdrawn JP2005184595A (en) 2003-12-22 2003-12-22 Ring network system, and its communication control method

Country Status (1)

Country Link
JP (1) JP2005184595A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005354598A (en) * 2004-06-14 2005-12-22 Fujitsu Access Ltd Dual ring transmission apparatus
US8559453B2 (en) 2007-09-05 2013-10-15 Fujitsu Limited Routing apparatus
JP2017022455A (en) * 2015-07-07 2017-01-26 株式会社デンソー Relay device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005354598A (en) * 2004-06-14 2005-12-22 Fujitsu Access Ltd Dual ring transmission apparatus
US8559453B2 (en) 2007-09-05 2013-10-15 Fujitsu Limited Routing apparatus
JP2017022455A (en) * 2015-07-07 2017-01-26 株式会社デンソー Relay device

Similar Documents

Publication Publication Date Title
US7561581B2 (en) Method of allocating IP address and detecting duplication of IP address in an ad-hoc network environment
US7626957B2 (en) Home agent management apparatus and method
US7443787B2 (en) Cluster system, cluster member, and failure recovery method and program thereof
CN107547510B (en) Neighbor discovery protocol security table item processing method and device
JP6195014B2 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, RELAY DEVICE, AND COMMUNICATION PROGRAM
US9344352B2 (en) Transfer device, communication system, and roundabout path detecting method
JP5884892B2 (en) Network system, controller, and load balancing method
US10355976B2 (en) Methods, nodes and system for establishing independent network paths
CN104243320A (en) Method and device for optimizing network access paths
CN110581805A (en) Routing table updating method, device, switch and storage medium
CN111935763A (en) Method and network system for improving data transmission reliability in wireless grid network
JP6378121B2 (en) Gateway apparatus and communication method
US20110078181A1 (en) Communication device
JPH0626339B2 (en) Routing table learning method
US10129749B2 (en) Method and device for acquiring response message, method and device for routing response message, and system for acquiring response message and routing response message
CN111385195B (en) Information processing method, device and storage medium
JP2005184595A (en) Ring network system, and its communication control method
CN111526512A (en) Gateway bridging method, device, equipment and medium based on Wi-Fi data packet
JP2007181056A (en) Path selection method
US20100088764A1 (en) Relay device and relay method
CN103051541B (en) Message forwarding method, ASR and ISR in a kind of mark net
CN102655473A (en) Communication method, equipment and system
CN114745352B (en) Message forwarding method and device
JP2019024161A (en) Communication device and data transfer method
CN113014481B (en) Method, device, equipment and storage medium for transmitting link state notification

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050415

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20050606

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070921

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20071031