JP2002124979A - Method for controlling communication path and its device - Google Patents

Method for controlling communication path and its device

Info

Publication number
JP2002124979A
JP2002124979A JP2000315588A JP2000315588A JP2002124979A JP 2002124979 A JP2002124979 A JP 2002124979A JP 2000315588 A JP2000315588 A JP 2000315588A JP 2000315588 A JP2000315588 A JP 2000315588A JP 2002124979 A JP2002124979 A JP 2002124979A
Authority
JP
Japan
Prior art keywords
packet
address
entry
control table
interface
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
JP2000315588A
Other languages
Japanese (ja)
Inventor
Kazuo Mogi
一男 茂木
Mutsuo Sano
睦夫 佐野
Noboru Sonehara
曽根原  登
Kazuhiko Okada
和比古 岡田
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2000315588A priority Critical patent/JP2002124979A/en
Publication of JP2002124979A publication Critical patent/JP2002124979A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a communication path control method and device capable of applying the control of the same path control table to a plurality of IP address groups continuing in a specific digit area. SOLUTION: When a multi-cast address IP packet arrives at a path controller, the IP packet is temporarily stored in a register. When a destination address and a transmission origin address are expressed in binary numbers, those addresses are compared only when the values of digits corresponding to a bit mask in a path control table constituted of the transmission origin address, a bit mask, a multi-cast address, and an entry having interfaces are specific. The two addresses are judged to match regardless of the values of those addresses in the other case. When any entry matching both the transmission origin address and multi-cast address of the arriving IP packet is present in the path control table, the IP packet is outputted to all the interfaces on the entry. When any matching entry is not present, the IP packet is abandoned.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、通信経路制御方法
及び装置に係り、特に、IPネットワークにおけるマル
チキャスト通信に対する通信経路制御方法及び装置に関
する。
The present invention relates to a communication path control method and apparatus, and more particularly, to a communication path control method and apparatus for multicast communication in an IP network.

【0002】[0002]

【従来の技術】従来の典型的なIPマルチキャスト経路
制御装置について説明する。
2. Description of the Related Art A conventional typical IP multicast route control device will be described.

【0003】図7は、従来のIPマルチキャスト経路制
御装置の構成を示す。
FIG. 7 shows a configuration of a conventional IP multicast route control device.

【0004】同図では、到着したIPパケットの送出を
制御する経路選択器1と、その中にあって到着したIP
パケットを一時的に保持するレジスタ2と、到着したI
Pパケットのアドレスと記憶されている経路制御テーブ
ルのエントリとの比較を行う比較演算器3と、その比較
演算の結果に従ってIPパケットの送出を制御するパケ
ット送出制御器7と、経路制御テーブル80を保持する
記憶装置8と、IPパケットの入出力を行うインタフェ
ース9、10、11とが設けられている。
In FIG. 1, a route selector 1 for controlling the transmission of an arriving IP packet and an arriving IP
A register 2 for temporarily holding a packet;
The comparison operation unit 3 that compares the address of the P packet with the stored entry of the routing control table, the packet transmission controller 7 that controls the transmission of the IP packet according to the result of the comparison operation, and the routing control table 80 A storage device 8 for holding the data and interfaces 9, 10, and 11 for inputting and outputting IP packets are provided.

【0005】同図の構成の経路制御装置を動作させるに
は、まず、経路制御テーブル80を構成する。経路制御
テーブル80の内容は、論理的に次のような構成の複数
のエントリよりなる。
In order to operate the route control device having the configuration shown in FIG. 1, first, a route control table 80 is constructed. The contents of the routing control table 80 are logically composed of a plurality of entries having the following configuration.

【0006】 この構成において、インタフェースは、状況に応じて0
個以上の複数の値を持つ。また、発信元アドレスには、
“任意”を示す値が許される。このような経路制御テー
ブル80の構成は、経路制御装置がIPパケットの転送
動作を開始するに先立って行う。
[0006] In this configuration, the interface is set to 0 depending on the situation.
It has more than one value. Also, the source address is
Values indicating "any" are allowed. The configuration of the routing control table 80 is performed before the routing controller starts the IP packet transfer operation.

【0007】この状態において、任意のインタフェー
ス、例えば、インタフェース9にマルチキャストアドレ
スを宛先アドレスに持つIPパケットが到着すると、そ
のIPパケットはレジスタ2に一時的に記憶され、宛
先、発信元アドレスの各アドレスが経路制御テーブル8
0におけるそれぞれのエントリと比較演算器3において
比較される。
In this state, when an IP packet having a multicast address as a destination address arrives at an arbitrary interface, for example, the interface 9, the IP packet is temporarily stored in the register 2, and each address of the destination and the source address is stored. Is the routing control table 8
Each entry at 0 is compared in the comparison operator 3.

【0008】この比較演算は、例えば、図8のような構
成の装置によって行われる。同図は、比較を行う2つの
アドレスを収容するレジスタ14、15と、レジスタの
それぞれの桁毎に比較を行う演算器12と、演算結果を
収容するレジスタ16より構成されている。
This comparison operation is performed by, for example, an apparatus having a configuration as shown in FIG. The figure includes registers 14 and 15 that store two addresses to be compared, an arithmetic unit 12 that performs a comparison for each digit of the register, and a register 16 that stores the operation result.

【0009】この構成において2つのアドレスを2進数
表現してレジスタ14、15に収容し、それぞれの桁の
排他的論理和を演算器12で演算する。その結果をレジ
スタ16に収容し、すべての桁において演算結果が0と
なった場合は、2つのアドレスが一致していると判断す
る。なお、経路制御テーブル80のエントリにおいて発
信元アドレスの値が“任意”となっていた場合は、比較
演算器3は、図8におけるような比較演算を行うことな
く、到着したIPパケットと経路制御テーブル80のエ
ントリの2つの発信元アドレスは一致していると判断す
る。
In this configuration, two addresses are represented in binary numbers and stored in registers 14 and 15, and the exclusive OR of each digit is calculated by a calculator 12. The result is stored in the register 16, and when the operation result becomes 0 in all the digits, it is determined that the two addresses match. When the value of the source address is “arbitrary” in the entry of the routing control table 80, the comparison calculator 3 does not perform the comparison calculation as shown in FIG. It is determined that the two source addresses of the entries in the table 80 match.

【0010】到着したIPパケットの発信元アドレス、
マルチキャストアドレスそれぞれについて、両方とも一
致するエントリが経路制御テーブル80にあった場合、
入力パケットはパケット送出制御器7により、一致した
エントリに記載されているインタフェースすべてに対し
て、入力されたIPパケットを出力する。一致するエン
トリがなかった場合、または、エントリにインタフェー
スがなかった場合は、入力されたIPパケットは、パケ
ット送出制御器7により破棄する。
Source address of the arriving IP packet,
If there is an entry in the routing control table 80 that matches both for each multicast address,
For the input packet, the packet transmission controller 7 outputs the input IP packet to all interfaces described in the matched entry. If there is no matching entry, or if there is no interface in the entry, the input IP packet is discarded by the packet transmission controller 7.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、上記従
来の方式においては、特定の桁領域において連続してい
る複数のIPアドレス群に対して、同一の経路制御テー
ブルの制御を適用することができないという問題があ
る。ここで、特定の桁領域において連続している複数の
IPアドレスを以下に定義する。即ち、特定の桁領域と
は、数値を2進数表示した場合にお互いに隣接している
特定の領域の桁であり、連続している複数のIPアドレ
ス群とは、その領域の桁における最小値から最大値まで
のすべての値をとり、他の桁の値は同一となっているよ
うなIPアドレス群を指す。例えば、 224.0.0.3, 224.1.0.3, 224.2.0.3, 224.3.0.3 の4つのアドレスはこの例である。即ち、この例におい
ては、アドレスを2進表示した場合に、以下のようにな
る。 11100000.00000000.00000000.00000011 11100000.00000001.00000000.00000011 11100000.00000011.00000000.00000011 11100000.00000011.00000000.00000011 MSB(Most Significant Bit: 最上位の桁のビット)
から15番目と16番目の2つの桁がお互いに隣接して
いる特定の領域の桁であり、このアドレス群においてこ
の領域の桁は0から3の範囲の値を持っている。そして
他の桁は全く同じ値を持っている。
However, in the above-mentioned conventional method, it is impossible to apply the same control of the routing table to a plurality of IP address groups that are continuous in a specific digit area. There's a problem. Here, a plurality of consecutive IP addresses in a specific digit area are defined below. That is, a specific digit area is a digit of a specific area adjacent to each other when a numerical value is expressed in a binary number, and a plurality of continuous IP address groups is a minimum value in the digit of the area. To the maximum value, and the other digits indicate the same IP address group. For example, four addresses of 224.0.0.3, 224.1.0.3, 224.2.0.3, and 224.3.0.3 are this example. That is, in this example, when the address is displayed in binary, the following is performed. 11100000.00000000.00000000.00000011 11100000.00000001.00000000.00000011 11100000.00000011.00000000.00000011 11100000.00000011.00000000.00000011 MSB (Most Significant Bit: Most significant bit)
The 15th and 16th digits are the digits of a specific area adjacent to each other, and in this address group, the digits of this area have values ranging from 0 to 3. And the other digits have exactly the same value.

【0012】上記従来の方式においては、このようなア
ドレス群に対して同一の制御を行おうとする場合でも、
それぞれ独立したエントリを保持するしかなく、例え
ば、上記の例においては4つのエントリが必要となる。
従って、このような経路制御を多数行おうとすると、経
路制御テーブルが膨大になるという問題が発生する。
In the above conventional method, even when the same control is to be performed on such an address group,
There is no other choice but to hold independent entries. For example, in the above example, four entries are required.
Therefore, when a large number of such route controls are performed, a problem occurs in that the route control table becomes enormous.

【0013】本発明は、上記の点に鑑みなされたもの
で、特定の桁領域において連続している複数のIPアド
レス群に対して、同一の経路制御テーブルの制御を適用
することが可能な通信経路制御方法及び装置を提供する
ことを目的とする。
The present invention has been made in view of the above points, and has been made in view of the above points. A communication capable of applying the same control of the routing table to a plurality of consecutive IP address groups in a specific digit area. It is an object to provide a route control method and device.

【0014】[0014]

【課題を解決するための手段】図1は、本発明の原理を
説明するための図である。
FIG. 1 is a diagram for explaining the principle of the present invention.

【0015】本発明(請求項1)は、IPネットワーク
の経路制御装置におけるマルチキャストアドレスを宛先
アドレスに持つIPパケットに対する通信経路制御方法
において、経路制御装置のインタフェースに、マルチキ
ャストアドレスを宛先アドレスに持つIPパケットが到
着すると(ステップ1)、該IPパケットをレジスタに
一時的に記憶し(ステップ2)、発信元アドレス、ビッ
トマスク、マルチキャストアドレス、インタフェースを
有するエントリからなる経路制御テーブルにおけるビッ
トマスクの対応する桁の値が、宛先アドレス及び発信元
のアドレスを2進数表現した場合にお互いに隣接してい
る特定桁領域の桁についてのみ比較を行い、そうでない
桁については、2つのアドレスの値にかかわらず一致し
ているものとし(ステップ3)、到着したIPパケット
の発信元アドレス、マルチキャストアドレスそれぞれに
ついて、両方とも一致するエントリが経路制御テーブル
にあった場合に(ステップ4、Yes)、該到着したI
Pパケットは該エントリに記載されているインタフェー
ス全てに対して出力し(ステップ5)、一致するエント
リがない、または、エントリにインタフェースがない場
合には(ステップ4、No)、該到着したIPパケット
を破棄する(ステップ6)。
According to a first aspect of the present invention, there is provided a communication path control method for an IP packet having a multicast address as a destination address in an IP network path control apparatus. When a packet arrives (step 1), the IP packet is temporarily stored in a register (step 2), and the IP mask corresponds to the bit mask in the routing table consisting of an entry having a source address, a bit mask, a multicast address, and an interface. When the value of a digit is a binary representation of the destination address and the source address, only the digits of the specific digit area adjacent to each other are compared, and for the digits that are not, regardless of the values of the two addresses Match ( Step 3), the source address of IP packets arriving for each multicast address, if the entry both match was in the routing control table (Step 4, Yes), and the arrival I
The P packet is output to all the interfaces described in the entry (step 5). If there is no matching entry or if there is no interface in the entry (step 4, No), the arriving IP packet Is discarded (step 6).

【0016】図2は、本発明の原理構成図である。FIG. 2 is a diagram showing the principle of the present invention.

【0017】本発明(請求項2)は、IPネットワーク
の経路制御装置におけるマルチキャストアドレスを宛先
アドレスに持つIPパケットに対する通信経路制御装置
であって、経路制御装置のインタフェースに、マルチキ
ャストアドレスを宛先アドレスに持つIPパケットが到
着すると、該IPパケットを一時的に記憶するレジスタ
2と、発信元アドレス、ビットマスク、マルチキャスト
アドレス、インタフェースを有するエントリかならる経
路制御テーブル81と、経路制御テーブル81における
ビットマスクの対応する桁の値が、IPパケットの宛先
アドレス及び発信元のアドレスを2進数表現した場合に
お互いに隣接している特定桁領域の桁についてのみ比較
を行い、そうでない桁については、2つのアドレスの値
にかかわらず一致しているものとする比較手段3と、到
着したIPパケットの発信元アドレス、マルチキャスト
アドレスそれぞれについて、両方とも一致するエントリ
が経路制御テーブル81にあった場合に、該到着したI
Pパケットは該エントリに記載されているインタフェー
ス全てに対して出力し、一致するエントリがない、また
は、エントリにインタフェースがない場合には、該到着
したIPパケットを破棄するパケット送出制御手段7と
を有する。
The present invention (claim 2) is a communication route control device for an IP packet having a multicast address as a destination address in a route control device of an IP network, wherein an interface of the route control device has a multicast address as a destination address. When an IP packet having the packet arrives, a register 2 for temporarily storing the IP packet, a source address, a bit mask, a multicast address, a routing control table 81 consisting of an entry having an interface, and a bit mask in the routing control table 81 When the value of the corresponding digit of the destination address and the source address of the IP packet are expressed in binary notation, the comparison is made only for the digits of the specific digit area adjacent to each other. Matches regardless of address value And comparison means 3, shall have the source address of IP packets arriving for each multicast address, if the entry both match was in the routing control table 81, and the arrived I
The P packet is output to all interfaces described in the entry, and if there is no matching entry, or if there is no interface in the entry, the packet transmission control means 7 for discarding the arriving IP packet Have.

【0018】上記のように、本発明では、経路制御テー
ブルのビットマスクの値によってそれがある値をとって
いる桁については、2つのアドレス(宛先アドレス・マ
ルチキャストアドレス)は一致しているものと判断する
ため、アドレスを2進表現した場合に特定の桁領域にお
いて連続している複数のIPアドレス群に対して、同一
の経路制御テーブルの制御を適用することが可能とな
る。
As described above, according to the present invention, two digits (destination address / multicast address) coincide with each other for a digit having a certain value according to the value of the bit mask of the routing table. For this purpose, it is possible to apply the same routing control table control to a plurality of IP address groups that are continuous in a specific digit area when the address is expressed in binary.

【0019】[0019]

【発明の実施の形態】本発明においては、経路制御テー
ブルのエントリにIPアドレスに対するビットマスクの
情報を持ち、比較演算器においてこのビットマスクを考
慮したアドレス比較動作を行うように構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In the present invention, an entry of a routing control table has information on a bit mask for an IP address, and a comparison operation unit performs an address comparison operation in consideration of the bit mask.

【0020】図3は、本発明の通信経路制御装置の基本
構成を示す。
FIG. 3 shows the basic configuration of the communication path control device of the present invention.

【0021】同図に示す構成は、到着したIPパケット
の送出を制御する経路選択器1と、その中にあって到着
したIPパケットを一時的に保持するレジスタ2と、到
着したIPパケットのアドレスと記憶されている経路制
御テーブルのエントリの比較を行う比較演算器3と、そ
の比較演算の結果に従ってIPパケットの送出を制御す
るパケット送出制御器7と、経路制御テーブル81を保
持する記憶装置8と、IPパケットの入出力を行うイン
タフェース9、10、11とが設けられている。
The configuration shown in FIG. 1 includes a path selector 1 for controlling the transmission of an arriving IP packet, a register 2 therein for temporarily storing the arriving IP packet, and an address of the arriving IP packet. , A comparison operation unit 3 for comparing the entries of the routing control table stored therein, a packet transmission control unit 7 for controlling the transmission of the IP packet according to the result of the comparison operation, and a storage device 8 for holding the routing control table 81 And interfaces 9, 10, and 11 for inputting and outputting IP packets.

【0022】上記の構成の通信経路制御装置を動作させ
るには、まず、経路制御テーブル81を構成する。経路
制御テーブル81の内容は、論理的には次のような構成
の複数のエントリよりなる。
In order to operate the communication path control device having the above configuration, first, the path control table 81 is configured. The contents of the routing control table 81 are logically composed of a plurality of entries having the following configuration.

【0023】 上記の構成において、インタフェースは、状況に応じて
2個以上の複数の値を持つ。また、発信元アドレスには
“任意”を示す値が許される。このような経路制御テー
ブル81の構成は、通信経路制御装置1がIPパケット
の転送動作を開始するに先立って行う。
[0023] In the above configuration, the interface has two or more values depending on the situation. Also, a value indicating “arbitrary” is allowed for the source address. The configuration of the routing control table 81 is performed before the communication routing controller 1 starts the IP packet transfer operation.

【0024】この状態において任意のインタフェース、
例えば、インタフェース9にマルチキャストアドレスを
宛先アドレスに持つIPパケットが到着すると、そのI
Pパケットはレジスタ2に一時的に記憶され、宛先、発
信元アドレスの各アドレスが経路制御テーブル81にお
けるそれぞれのエントリと比較演算器3において比較さ
れる。
In this state, any interface
For example, when an IP packet having a multicast address as a destination address arrives at the interface 9, the IP
The P packet is temporarily stored in the register 2, and each address of the destination and the source address is compared with each entry in the routing control table 81 by the comparison calculator 3.

【0025】本発明の構成においては、アドレスの比較
は、これを2進表現した倍に、経路制御テーブル81に
おけるビットマスクの対応する桁の値が、ある特定の値
をとっている桁についてのみ行い、そうでない桁につい
ては、2つのアドレスの値にかかわらず一致しているも
のとするように行われる。なお、経路制御テーブル81
のエントリにおいて発信元アドレスの値が“任意”とな
っている場合は、比較演算器3は到着したIPパケット
と経路制御テーブル81のエントリの2つの発信元アド
レスは一致していると判断する。
In the configuration of the present invention, the comparison of the address is performed only for the digit whose corresponding digit of the bit mask in the routing control table 81 has a certain specific value. The other digits are determined to be the same regardless of the values of the two addresses. The routing control table 81
If the value of the source address is “arbitrary” in the entry of “1”, the comparison operation unit 3 determines that the arriving IP packet and the two source addresses of the entry of the routing control table 81 match.

【0026】到着したIPパケットの発信元アドレス、
マルチキャストアドレスそれぞれについて、両方とも一
致するエントリが経路制御テーブル18にあった場合、
入力パケットは、パケット送出制御器7により、一致し
たエントリに記載されているインターフェースすべてに
対して出力される。また、一致するエントリがなかった
場合、または、エントリにインタフェースがなかった場
合は、入力されたIPパケットは、パケット送出制御器
7により破棄される。
Source address of the arriving IP packet,
If there is an entry in the routing control table 18 that matches both for each multicast address,
The input packet is output by the packet transmission controller 7 to all interfaces described in the matching entry. When there is no matching entry or when there is no interface in the entry, the input IP packet is discarded by the packet transmission controller 7.

【0027】このように図3に示す構成においては、ビ
ットマスクの値によってそれがある値をとっている桁に
ついては、2つのアドレスは一致しているものと判断す
るため、アドレスを2進表現した場合に特定の桁領域に
おいて連続している複数のIPアドレス群に対して、同
一の経路制御テーブル18の制御を適用することが可能
になり、経路制御テーブル81を大幅に集約することが
できる。
As described above, in the configuration shown in FIG. 3, for a digit having a certain value according to the value of the bit mask, it is determined that the two addresses match, so the addresses are represented in binary. In this case, the same control of the routing table 18 can be applied to a plurality of IP address groups that are continuous in a specific digit area, and the routing control table 81 can be significantly consolidated. .

【0028】[0028]

【実施例】以下、図面と共に本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0029】図4は、本発明の一実施例の通信経路装置
の構成を示す。
FIG. 4 shows the configuration of a communication path device according to one embodiment of the present invention.

【0030】同図に示す通信経路装置は、到着したIP
パケットの送出を制御する経路選択器1と、その中にあ
って到着したIPパケットを一時的に保持するレジスタ
2と、到着したIPパケットのアドレスと記憶されてい
る経路制御テーブルのエントリの比較を行う比較演算器
3と、その中にあってビットマスクを考慮して2つの数
値の比較を行うマスク付き比較演算器31、32、比較
演算器31、32のそれぞれの演算結果の論理積を演算
する論理積演算器33と、その比較演算の結果に従って
IPパケットの送出を制御するパケット送出制御器7、
経路制御テーブル81を保持する記憶装置8と、IPパ
ケットの入出力を行うインターフェース9、10、11
から構成される。
The communication path device shown in FIG.
A path selector 1 for controlling the transmission of a packet, a register 2 for temporarily storing an arriving IP packet therein, and a comparison between an address of the arriving IP packet and an entry of a stored path control table. The logical AND of the respective arithmetic operation results of the comparison arithmetic unit 3 to be performed, the masked comparison arithmetic units 31 and 32 for comparing two numerical values in consideration of the bit mask therein, and the comparison arithmetic units 31 and 32 A logical product operator 33, and a packet transmission controller 7, which controls transmission of IP packets according to the result of the comparison operation,
A storage device 8 for holding a routing control table 81, and interfaces 9, 10, 11 for inputting and outputting IP packets
Consists of

【0031】図5は、本発明の一実施例の比較演算処理
を説明するための図であり、比較演算器3のマスク付き
比較演算器31、32の中にあって2つのアドレスの一
致を判断する部分の構成を示す。この構成においては、
比較を行う2つのアドレスを収容するアドレスレジスタ
24、25、ビットマスクを収容するレジスタ26、ア
ドレスレジスタ24、25のそれぞれの桁毎に比較を行
う排他的論理和演算器12、アドレス比較演算結果とビ
ットマスクとの演算を行う論理積演算器13と、演算結
果を収容する出力レジスタ27が設置されている。
FIG. 5 is a diagram for explaining the comparison operation processing of one embodiment of the present invention. In the comparison operation units 31 and 32 with the mask of the comparison operation unit 3, the coincidence of two addresses is determined. The configuration of the part to be determined is shown. In this configuration,
The address registers 24 and 25 for storing two addresses to be compared, the register 26 for storing a bit mask, the exclusive OR operator 12 for comparing each digit of the address registers 24 and 25, the address comparison operation result and A logical product operator 13 for performing an operation with a bit mask and an output register 27 for storing the operation result are provided.

【0032】図4に示す通信経路制御装置を動作させる
には、まず、経路制御テーブル81を構成する。経路制
御テーブル81の内容は、論理的に次のような構成の複
数のエントリよりなる。
In order to operate the communication path control device shown in FIG. 4, first, a path control table 81 is constructed. The contents of the routing control table 81 are logically composed of a plurality of entries having the following configuration.

【0033】 この構成において、インタフェースは、状況に応じて2
個以上の複数の値を持つ。また、発信元アドレスには、
“任意”を示す値が許される。このような経路制御テー
ブル81の構成は、通信経路制御装置がIPパケットの
転送動作を開始するに先立って行う。
[0033] In this configuration, the interface is 2 depending on the situation.
It has more than one value. Also, the source address is
Values indicating "any" are allowed. The configuration of the routing control table 81 is performed before the communication routing controller starts the IP packet transfer operation.

【0034】図6は、本発明の一実施例の経路制御のフ
ローチャートである。
FIG. 6 is a flowchart of the route control according to one embodiment of the present invention.

【0035】ステップ101) IPパケットが到着す
る。
Step 101) An IP packet arrives.

【0036】ステップ102) 到着したIPパケット
を一時的にレジスタに格納しておく。
Step 102) The arriving IP packet is temporarily stored in a register.

【0037】ステップ103) IPパケットの宛先、
発信元アドレスを2進数表現したものと、経路制御テー
ブルの対応する桁を比較し、一致している場合には、ス
テップ105に移行し、そうでない場合には、ステップ
104に移行する。
Step 103) Destination of IP packet,
The binary representation of the source address is compared with the corresponding digit in the routing table. If they match, the process proceeds to step 105; otherwise, the process proceeds to step 104.

【0038】ステップ104) 不一致だった桁と経路
制御テーブルのビットマスクの対応する桁を比較し、一
致する場合には、ステップ105に移行し、そうでない
場合にはステップ106に移行する。
Step 104) The mismatched digit is compared with the corresponding digit in the bit mask of the routing control table. If they match, the process proceeds to step 105; otherwise, the process proceeds to step 106.

【0039】ステップ105) 経路制御テーブルのエ
ントリに記載されているインタフェースい出力する。
Step 105) Output the interface described in the entry of the routing control table.

【0040】ステップ106) IPパケットを破棄す
る。
Step 106) Discard the IP packet.

【0041】この状態において、任意のインタフェース
からマルチキャストアドレスを宛先アドレスに持つIP
パケットが到着すると、そのIPパケットの宛先、発信
元アドレスの各アドレスは経路制御テーブル81におけ
るそれぞれのエントリと比較される。
In this state, an IP having a multicast address as a destination address from an arbitrary interface
When a packet arrives, the destination and source addresses of the IP packet are compared with their respective entries in the routing control table 81.

【0042】比較演算器31、32では、まず、2つの
アドレス(宛先アドレス、発信元アドレス)、ビットマ
スクをそれぞれ2進数表現し、各桁の値をそれぞれレジ
スタ24、25、26に収容する。次に、2つのレジス
タ24、25の相当する桁に対する排他的論理和を排他
的論理和演算器12で演算する。さらに、論理積演算器
13がこの比較結果である演算器12の出力と、レジス
タ26のビットマスクの論理積をそれぞれの桁に対して
演算、その結果を出力レジスタ27に収容する。出力レ
ジスタ27におけるこの演算結果がすべての桁において
0となった場合、比較演算器31、32は、2つのアド
レスが一致していると判断する。なお、経路制御テーブ
ル81のエントリにおいて、発信元アドレスの値が“任
意”となっていた場合は、比較演算器3は、図7におけ
るような比較演算を行うことなく、到着したIPパケッ
トと経路制御テーブル81のエントリの2つの発信元ア
ドレスは一致していると判断する。
In the comparators 31 and 32, first, two addresses (destination address and source address) and a bit mask are respectively represented in binary numbers, and the values of respective digits are stored in registers 24, 25 and 26, respectively. Next, the exclusive OR of the corresponding digits of the two registers 24 and 25 is calculated by the exclusive OR calculator 12. Further, the logical product operator 13 calculates the logical product of the output of the calculator 12 as the comparison result and the bit mask of the register 26 for each digit, and stores the result in the output register 27. When the result of this operation in the output register 27 is 0 in all digits, the comparison operators 31 and 32 determine that the two addresses match. When the value of the source address is “arbitrary” in the entry of the routing control table 81, the comparison calculator 3 does not perform the comparison calculation as shown in FIG. It is determined that the two source addresses in the entry of the control table 81 match.

【0043】到着したIPパケットの発信元アドレス、
マルチキャストアドレスそれぞれについて、両方とも一
致するエントリあ経路制御テーブル81にあった場合、
その結果を論理積演算器33で演算し、経路制御テーブ
ル81のエントリに記載されているインタフェースすべ
てに対して、入力されたIPパケットを出力する。一致
するエントリがなかった場合、または、エントリにイン
タフェースがなかった場合、入力されたIPパケットは
パケット送出制御器7により破棄する。
Source address of the arriving IP packet,
For each multicast address, if there is an entry that matches both in the routing control table 81,
The result is calculated by the logical product calculator 33, and the input IP packet is output to all the interfaces described in the entries of the routing control table 81. If there is no matching entry, or if there is no interface in the entry, the input IP packet is discarded by the packet transmission controller 7.

【0044】例えば、マルチキャストアドレスが 224.0.2.3 であって、それに対するビットマスクが、 225.0.225.225 であるようなエントリが経路制御テーブル81に存在す
る場合、このエントリ1個に対してマルチキャストアド
レスが 224.0.2.3 から 224.225.2.3 であるような連続するすべての入力IPパケットが一致
し、そこに記述されたインタフェースに対して出力され
る。
For example, if an entry whose multicast address is 224.0.2.3 and its bit mask is 225.0.225.225 exists in the routing table 81, this entry 1 All consecutive input IP packets whose multicast address is from 224.0.2.3 to 224.2225.2.3 for each match and are output to the interface described there.

【0045】これは、上記の一群のマルチキャストアド
レスに対して共通の経路制御テーブルの値を適用した事
を意味し、即ち、この構成においては、経路制御テーブ
ル81に予め記憶されたビットマスクとレジスタ26、
論理積演算器13の作用により、連続するマルチキャス
トアドレスに関して共通の経路制御テーブルが適用可能
になる。これは、従来の経路制御装置の構成では期待で
きないものである。従来の構成では、経路制御テーブル
の構成や経路選択演算器の構成が、IPパケットと経路
制御テーブルのエントリのアドレスの比較が両者が全ビ
ットにおいて完全に一致するか否かの判断についてしか
できないようになっている。従って、上記の実施例にお
いては、255個の独立したエントリが経路制御テーブ
ルに必要となる。
This means that the value of the common routing control table is applied to the group of multicast addresses. That is, in this configuration, the bit mask and the register previously stored in the routing control table 81 are used. 26,
By the operation of the logical product operator 13, a common routing control table can be applied to successive multicast addresses. This cannot be expected with the configuration of the conventional route control device. In the conventional configuration, the configuration of the route control table and the configuration of the route selection arithmetic unit are such that the comparison between the IP packet and the address of the entry in the route control table can only be performed to determine whether or not both bits completely match. It has become. Therefore, in the above embodiment, 255 independent entries are required in the routing table.

【0046】また、上記の実施例では、図4の構成に基
づいて説明したが、経路選択器1の動作をプログラムと
して構築し、通信経路装置として利用されるコンピュー
タのディスク装置や、フロッピー(登録商標)ディス
ク、CD−ROM等の可搬記憶媒体に格納しておき、本
発明を実施する際にインストールすることにより、容易
に本発明を実現できる。
Although the above embodiment has been described based on the configuration of FIG. 4, the operation of the path selector 1 is constructed as a program, and a disk unit of a computer used as a communication path unit or a floppy (registered) The present invention can be easily realized by storing it in a portable storage medium such as a trademark (trademark) disk, a CD-ROM, or the like and installing it when implementing the present invention.

【0047】なお、本発明は、上記の実施例に限定され
ることなく、特許請求の範囲内において、種々変更・応
用が可能である。
The present invention is not limited to the above embodiment, but can be variously modified and applied within the scope of the claims.

【0048】[0048]

【発明の効果】上述のように、本発明によれば、経路制
御テーブルのエントリにおいて、ビットマスク値を指定
可能とし、経路選択演算器におけるレジスタと演算器に
より、このビットマスクを用いた経路選択演算を行うこ
とにより、連続するマルチキャストアドレスに関して共
有の経路制御テーブルを適用することによって、複数の
経路制御テーブルのエントリを集約することを可能と
し、少数のエントリによって従来と同様の経路制御が実
現できる。
As described above, according to the present invention, a bit mask value can be specified in the entry of the path control table, and the path selection using the bit mask is performed by the register and the operation unit in the path selection operation unit. By performing the operation, it is possible to aggregate a plurality of routing control table entries by applying a common routing control table with respect to consecutive multicast addresses, and it is possible to realize the same routing control as before by using a small number of entries. .

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

【図1】本発明の原理を説明するための図である。FIG. 1 is a diagram for explaining the principle of the present invention.

【図2】本発明の原理構成図である。FIG. 2 is a principle configuration diagram of the present invention.

【図3】本発明の通信経路制御装置の基本構成図であ
る。
FIG. 3 is a basic configuration diagram of a communication path control device of the present invention.

【図4】本発明の一実施例の通信経路制御装置の構成図
である。
FIG. 4 is a configuration diagram of a communication path control device according to an embodiment of the present invention.

【図5】本発明の一実施例の比較演算処理を説明するた
めの図である。
FIG. 5 is a diagram illustrating a comparison operation process according to an embodiment of the present invention.

【図6】本発明の一実施例の経路制御方法のフローチャ
ートである。
FIG. 6 is a flowchart of a route control method according to an embodiment of the present invention.

【図7】従来のIPマルチキャスト経路制御装置の構成
図である。
FIG. 7 is a configuration diagram of a conventional IP multicast route control device.

【図8】従来の典型的なマルチキャストIPパケット経
路制御装置における比較演算を行う機構を説明するため
の図である。
FIG. 8 is a diagram for explaining a mechanism for performing a comparison operation in a conventional typical multicast IP packet path control device.

【符号の説明】[Explanation of symbols]

1 経路選択器 2 レジスタ 3 比較手段、比較器、比較演算器 7 パケット送出制御装置 8 記憶装置 9,10,11 インタフェース 12 排他的論理和演算器 13 論理積演算器 24、25 アドレスレジスタ 26 ビットマスクレジスタ 27 出力レジスタ 31,32 マスク付き比較演算器 33 論理積演算器 81 経路制御テーブル REFERENCE SIGNS LIST 1 path selector 2 register 3 comparison means, comparator, comparison operation unit 7 packet transmission control device 8 storage device 9, 10, 11 interface 12 exclusive OR operation unit 13 AND operation unit 24, 25 address register 26 bit mask Register 27 Output register 31, 32 Comparison operation unit with mask 33 AND operation unit 81 Route control table

───────────────────────────────────────────────────── フロントページの続き (72)発明者 曽根原 登 東京都千代田区大手町二丁目3番1号 日 本電信電話株式会社内 (72)発明者 岡田 和比古 東京都千代田区大手町二丁目3番1号 日 本電信電話株式会社内 Fターム(参考) 5K030 GA03 HA08 HC01 KX28 LB05 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Noboru Sonehara 2-3-1 Otemachi, Chiyoda-ku, Tokyo Within Nippon Telegraph and Telephone Corporation (72) Inventor Kazuhiko Okada 2-3-3 Otemachi, Chiyoda-ku, Tokyo No. 1 Nippon Telegraph and Telephone Corporation F term (reference) 5K030 GA03 HA08 HC01 KX28 LB05

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 IPネットワークの経路制御装置におけ
るマルチキャストアドレスを宛先アドレスに持つIPパ
ケットに対する通信経路制御方法において、 経路制御装置のインタフェースに、マルチキャストアド
レスを宛先アドレスに持つIPパケットが到着すると、
該IPパケットをレジスタに一時的に記憶し、 発信元アドレス、ビットマスク、マルチキャストアドレ
ス、インタフェースを有するエントリからなる経路制御
テーブルにおけるビットマスクの対応する桁の値が、宛
先アドレス及び発信元のアドレスを2進数表現した場合
にお互いに隣接している特定桁領域の桁についてのみ比
較を行い、そうでない桁については、2つのアドレスの
値にかかわらず一致しているものとし、 前記到着したIPパケットの発信元アドレス、マルチキ
ャストアドレスそれぞれについて、両方とも一致するエ
ントリが前記経路制御テーブルにあった場合に、該到着
したIPパケットは該エントリに記載されているインタ
フェース全てに対して出力し、一致するエントリがな
い、または、エントリにインタフェースがない場合に
は、該到着したIPパケットを破棄することを特徴とす
る通信経路制御方法。
In a communication route control method for an IP packet having a multicast address as a destination address in a route control device of an IP network, when an IP packet having a multicast address as a destination address arrives at an interface of the route control device,
The IP packet is temporarily stored in a register, and the corresponding digit value of the bit mask in the routing table including the source address, the bit mask, the multicast address, and the entry having the interface indicates the destination address and the source address. In the case of binary representation, comparison is made only for the digits of the specific digit area adjacent to each other, and for the other digits, it is assumed that they match regardless of the values of the two addresses. If there is an entry in the routing table that matches both the source address and the multicast address, the arriving IP packet is output to all interfaces described in the entry, and the matching entry is Missing or no interface in entry If have a communication path control method characterized by discarding the IP packet the arrival.
【請求項2】 IPネットワークの経路制御装置におけ
るマルチキャストアドレスを宛先アドレスに持つIPパ
ケットに対する通信経路制御装置であって、 経路制御装置のインタフェースに、マルチキャストアド
レスを宛先アドレスに持つIPパケットが到着すると、
該IPパケットを一時的に記憶するレジスタと、 発信元アドレス、ビットマスク、マルチキャストアドレ
ス、インタフェースを有するエントリかならる経路制御
テーブルと、 前記経路制御テーブルにおけるビットマスクの対応する
桁の値が、前記IPパケットの宛先アドレス及び発信元
のアドレスを2進数表現した場合にお互いに隣接してい
る特定桁領域の桁についてのみ比較を行い、そうでない
桁については、2つのアドレスの値にかかわらず一致し
ているものとする比較手段と、 前記到着したIPパケットの発信元アドレス、マルチキ
ャストアドレスそれぞれについて、両方とも一致するエ
ントリが前記経路制御テーブルにあった場合に、該到着
したIPパケットは該エントリに記載されているインタ
フェース全てに対して出力し、一致するエントリがな
い、または、エントリにインタフェースがない場合に
は、該到着したIPパケットを破棄するパケット送出制
御手段とを有することを特徴とする通信経路制御装置。
2. A communication route control device for an IP packet having a multicast address as a destination address in a route control device of an IP network, wherein an IP packet having a multicast address as a destination address arrives at an interface of the route control device.
A register for temporarily storing the IP packet, a source address, a bit mask, a multicast address, a routing control table consisting of entries having an interface, and a value of a corresponding digit of the bit mask in the routing control table, When the destination address and the source address of the IP packet are expressed in binary notation, only the digits of the specific digit area adjacent to each other are compared, and the other digits are the same regardless of the values of the two addresses. Comparing means for determining that the source IP address and the multicast address of the arriving IP packet are the same, and if the routing control table has an entry that matches both, the arriving IP packet is described in the entry. Output to all interfaces No entry, or, if no interface in the entry, the communication path control apparatus characterized by having a discarding packet transmission control unit an IP packet the arrival.
JP2000315588A 2000-10-16 2000-10-16 Method for controlling communication path and its device Pending JP2002124979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000315588A JP2002124979A (en) 2000-10-16 2000-10-16 Method for controlling communication path and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000315588A JP2002124979A (en) 2000-10-16 2000-10-16 Method for controlling communication path and its device

Publications (1)

Publication Number Publication Date
JP2002124979A true JP2002124979A (en) 2002-04-26

Family

ID=18794669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000315588A Pending JP2002124979A (en) 2000-10-16 2000-10-16 Method for controlling communication path and its device

Country Status (1)

Country Link
JP (1) JP2002124979A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009141874A (en) * 2007-12-10 2009-06-25 Yokogawa Electric Corp Field network system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009141874A (en) * 2007-12-10 2009-06-25 Yokogawa Electric Corp Field network system

Similar Documents

Publication Publication Date Title
US7023797B2 (en) Flexible aggregation of output links
US6990099B1 (en) Multiple parallel packet routing lookup
US6654701B2 (en) Method and apparatus for measuring protocol performance in a data communication network
US7095742B2 (en) Packet processing unit
US6567404B1 (en) Multiprotocol packet recognition and switching
US7302519B2 (en) Distributed content addressable memory
US20030058860A1 (en) Destination address filtering
JPH08223182A (en) System and method of storage and take-out of routing information
US8176242B1 (en) Apparatus and method for improving CAM usage
US7529908B2 (en) Method and apparatus for unified exception handling with distributed exception identification
US7046663B1 (en) System and method for intercepting packets in a pipeline network processor
JP3520709B2 (en) Network address search method
JP2005130366A (en) Packet transfer path controller and control program
US6717951B2 (en) Method and apparatus for determining priority of network packets
JP2002124979A (en) Method for controlling communication path and its device
US7809008B2 (en) Methods and apparatus for routing packets
US6675291B1 (en) Hardware device for parallel processing of any instruction within a set of instructions
US7961732B2 (en) Method and hardware apparatus for implementing frame alteration commands
US7308468B2 (en) Pattern matching
JP3558151B2 (en) Data search circuit
CA2064957A1 (en) Method and apparatus for performing pattern search functions
US6769005B1 (en) Method and apparatus for priority resolution
JP3371059B2 (en) ATM cell sorting device
JP2009123050A (en) Information retrieving device and registration method of entry information to the same
JP2002124980A (en) Communication path control method and its device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040427

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040617

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041102