[go: up one dir, main page]

JP2008199168A - Layer 2 switch device and layer 2 frame transmission method - Google Patents

Layer 2 switch device and layer 2 frame transmission method Download PDF

Info

Publication number
JP2008199168A
JP2008199168A JP2007030372A JP2007030372A JP2008199168A JP 2008199168 A JP2008199168 A JP 2008199168A JP 2007030372 A JP2007030372 A JP 2007030372A JP 2007030372 A JP2007030372 A JP 2007030372A JP 2008199168 A JP2008199168 A JP 2008199168A
Authority
JP
Japan
Prior art keywords
layer
priority
information
frame
acquired
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
JP2007030372A
Other languages
Japanese (ja)
Inventor
Masahito Endo
正仁 遠藤
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2007030372A priority Critical patent/JP2008199168A/en
Publication of JP2008199168A publication Critical patent/JP2008199168A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

【課題】同一レイヤ3セグメント内で送受信される通信データについて、レイヤ3レベルでの優先制御を行う。
【解決手段】レイヤ2スイッチ装置10aにおいて、複数のレイヤ2フレームを順次受信する受信部11と、受信部11により受信されるレイヤ2フレームから、レイヤ3通信制御に関する情報であるレイヤ3情報を取得するレイヤ3情報取得部121と、各レイヤ2フレームについて、レイヤ3情報取得部121により取得されるレイヤ3情報に基づいて、レイヤ3通信制御にかかる優先度であるレイヤ3優先度を取得する判別部12aと、判別部12aにより取得されるレイヤ3優先度に基づく順序で、各レイヤ2フレームを順次送信する転送部16と、を含むことを特徴とする。
【選択図】図2
Priority control at a layer 3 level is performed on communication data transmitted and received in the same layer 3 segment.
In a layer 2 switching apparatus 10a, a receiving unit 11 that sequentially receives a plurality of layer 2 frames, and layer 3 information that is information related to layer 3 communication control is acquired from the layer 2 frame received by the receiving unit 11. Layer 3 information acquisition unit 121 that performs the determination, and for each layer 2 frame, based on the layer 3 information acquired by the layer 3 information acquisition unit 121, the layer 3 priority that is the priority for the layer 3 communication control is determined Unit 12a and a transfer unit 16 that sequentially transmits each layer 2 frame in an order based on the layer 3 priority acquired by the determination unit 12a.
[Selection] Figure 2

Description

本発明はレイヤ2スイッチ装置及びレイヤ2フレーム送信方法に関する。   The present invention relates to a layer 2 switch device and a layer 2 frame transmission method.

近年、IP(Internet Protocol)ネットワークの利用用途は、例えば工業プラントに設置される各種センサ装置とその監視端末装置間の通信など、リアルタイム性が極めて重視される通信にも広がりをみせている。このような用途で用いられるIPネットワークには、通信経路上で発生する通信データの到達遅延の許容量が非常に小さいという特徴があり、通信データの到達遅延を短縮するための技術が求められる。   In recent years, applications of IP (Internet Protocol) networks have spread to communications in which real-time characteristics are extremely important, such as communications between various sensor devices installed in industrial plants and their monitoring terminal devices. An IP network used for such an application has a feature that an allowable amount of arrival delay of communication data generated on a communication path is very small, and a technique for reducing the arrival delay of communication data is required.

このような技術のひとつに、レイヤ3(OSI参照モデルのネットワークレイヤ)レベルでの優先制御技術が挙げられる。これは、上述したようなIPネットワークにおいても、必ずしも全ての通信データについて限界まで到達遅延を短縮しなければならないわけではなく、到達遅延短縮の必要性が高い通信データとそうでないものとがあるという点に着目した技術であり、レイヤ3のレベルで、通信データに優先度を付与するものである。具体的な例では、送信元IPアドレス又は宛先IPアドレスごとの優先度をレイヤ3ルーティング装置(ルータなど)に予め記憶させておくことや、レイヤ3ヘッダのTOS(Type Of Service)フィールド内に優先度を設定することにより、通信データに優先度を付与する。レイヤ3ルーティング装置は、通信データを受信すると、該通信データに付与された優先度を取得し、取得した優先度に応じた送信制御を行う。   One such technique is a priority control technique at the layer 3 (OSI reference model network layer) level. This is because even in the IP network as described above, it is not always necessary to reduce the arrival delay to the limit for all communication data, and there are communication data that is highly necessary to reduce the arrival delay and those that do not. This technique focuses attention on this point, and gives priority to communication data at the layer 3 level. In a specific example, the priority for each source IP address or destination IP address is stored in advance in a layer 3 routing device (router or the like), or prioritized in the TOS (Type Of Service) field of the layer 3 header. By setting the degree, priority is given to the communication data. When the layer 3 routing device receives the communication data, the layer 3 routing device acquires the priority assigned to the communication data, and performs transmission control according to the acquired priority.

ところで、特許文献1には、VLAN(Virtual Local Area Network)セグメントを跨って転送される通信データの到達遅延を短縮することのできる技術が開示されている。異なるVLANセグメントに属している複数の端末装置間で送受信される通信データは、各端末装置が同一レイヤ3セグメントに属している場合であっても、全てレイヤ3ルーティング装置を経由することになる。このため、レイヤ3ルーティング装置でのルーティング処理が必要となり、通信データの到達遅延が大きくなりがちである。特許文献1に開示される技術は、このような場合に、各端末装置間で送受信される通信データがレイヤ3ルーティング装置を経由しないで済むようにすることにより、VLANセグメントを跨って転送される通信データの到達遅延を短縮しようとするものである。   By the way, Patent Document 1 discloses a technique capable of reducing the arrival delay of communication data transferred across VLAN (Virtual Local Area Network) segments. Communication data transmitted and received between a plurality of terminal devices belonging to different VLAN segments are all routed through the layer 3 routing device even if each terminal device belongs to the same layer 3 segment. For this reason, routing processing in the layer 3 routing device is required, and communication data arrival delay tends to increase. In such a case, the technology disclosed in Patent Document 1 is such that communication data transmitted and received between the terminal devices is transferred across the VLAN segment by preventing the communication data from passing through the layer 3 routing device. It is intended to shorten the arrival delay of communication data.

具体的には、レイヤ3ルーティング装置と各端末装置の間にはレイヤ2(OSI参照モデルのデータリンクレイヤ)スイッチ装置(スイッチングハブなど)が設置されることがあり、これが利用される。このレイヤ2スイッチ装置は、端末装置とレイヤ3ルーティング装置の間で送受信される通信データのうちARP(Address Resolution Protocol)パケットを盗み見ることにより、端末装置のIPアドレスと同端末装置のMAC(Media Access Control)アドレスとの対応付けを取得し、記憶する。   Specifically, a layer 2 (OSI reference model data link layer) switch device (such as a switching hub) may be installed between the layer 3 routing device and each terminal device, and this is used. This layer 2 switch device steals and looks at the ARP (Address Resolution Protocol) packet in communication data transmitted and received between the terminal device and the layer 3 routing device, thereby determining the IP address of the terminal device and the MAC (Media Access) of the terminal device. Control) Acquires and stores the association with the address.

ここで、レイヤ2スイッチ装置は、ある端末装置のIPアドレスAと同端末装置のMACアドレスBとを対応付けて記憶したとする。レイヤ2スイッチ装置は、IPアドレスAを宛先とするレイヤ3パケット(ARPパケットやIPパケット)を含むレイヤ2フレームを受信するとまず、その宛先であるIPアドレスAを取得する。そして、取得したIPアドレスAと対応付けて記憶しているMACアドレスBを読み出し、該レイヤ2フレームを、レイヤ3ルーティング装置のMACアドレスではなく、読み出したMACアドレスBに対して転送する。これにより、上記レイヤ2フレームに含まれるレイヤ3パケットはレイヤ3ルーティング装置を経由することなく宛先に到達することになり、レイヤ3ルーティング装置でのルーティング処理が行われなくなる。すなわち、通信データの到達遅延を小さくすることが実現される。
特開2005−217715号公報
Here, it is assumed that the layer 2 switch device stores the IP address A of a certain terminal device and the MAC address B of the same terminal device in association with each other. When the layer 2 switching device receives a layer 2 frame including a layer 3 packet (ARP packet or IP packet) destined for the IP address A, the layer 2 switching device first acquires the IP address A that is the destination. Then, the MAC address B stored in association with the acquired IP address A is read, and the layer 2 frame is transferred to the read MAC address B instead of the MAC address of the layer 3 routing device. Thereby, the layer 3 packet included in the layer 2 frame reaches the destination without passing through the layer 3 routing device, and the routing process in the layer 3 routing device is not performed. That is, it is possible to reduce the arrival delay of communication data.
JP 2005-217715 A

上記特許文献1に記載の技術は、要するに、同一レイヤ3セグメント内で送受信可能ではあるけれども、異なるVLANセグメントに属しているために同一レイヤ3セグメント内での送受信が行われていなかった通信データを、同一レイヤ3セグメント内で送受信するようにしたことにより、通信データの到達遅延を短縮しているのであるが、通信データがレイヤ3ルーティング装置を経由しなくなってしまうので、上述したレイヤ3レベルでの優先制御技術が使えなくなり、その結果、到達遅延短縮の必要性が高い通信データについては、特許文献1に記載の技術を導入することにより却って到達遅延が大きくなってしまうという問題がある。   In short, the technology described in Patent Document 1 can transmit / receive communication data that has not been transmitted / received within the same layer 3 segment because it can be transmitted / received within the same layer 3 segment but belongs to a different VLAN segment. Since the transmission / reception within the same layer 3 segment reduces the arrival delay of the communication data, the communication data does not pass through the layer 3 routing device. As a result, there is a problem in that the arrival delay is increased by introducing the technique described in Patent Document 1 for communication data that is highly necessary to shorten the arrival delay.

このような問題は、特許文献1のようにVLANを用いる場合に限られるものではなく、そもそも同一レイヤ3セグメント内で送受信される通信データ全てについて、同様の問題が生じ得る。   Such a problem is not limited to the case of using VLAN as in Patent Document 1, and the same problem may occur for all communication data transmitted and received in the same layer 3 segment in the first place.

従って、本発明の課題の一つは、同一レイヤ3セグメント内で送受信される通信データについて、レイヤ3レベルでの優先制御を行うことを実現するレイヤ2スイッチ装置及びレイヤ2フレーム送信方法を提供することにある。   Accordingly, one of the problems of the present invention is to provide a layer 2 switch device and a layer 2 frame transmission method that realize priority control at the layer 3 level for communication data transmitted and received within the same layer 3 segment. There is.

上記課題を解決するための本発明にかかるレイヤ2スイッチ装置は、複数のレイヤ2フレームを順次受信する受信手段と、前記受信手段により受信されるレイヤ2フレームから、レイヤ3通信制御に関する情報であるレイヤ3情報を取得するレイヤ3情報取得手段と、前記各レイヤ2フレームについて、前記レイヤ3情報取得手段により取得されるレイヤ3情報に基づいて、レイヤ3通信制御にかかる優先度であるレイヤ3優先度を取得するレイヤ3優先度取得手段と、前記レイヤ3優先度取得手段により取得されるレイヤ3優先度に基づく順序で、前記各レイヤ2フレームを順次送信する送信手段と、を含むことを特徴とする。   The layer 2 switching device according to the present invention for solving the above-mentioned problem is information relating to layer 3 communication control from a receiving means for sequentially receiving a plurality of layer 2 frames and a layer 2 frame received by the receiving means. Layer 3 information acquisition means for acquiring layer 3 information, and for each layer 2 frame, based on the layer 3 information acquired by the layer 3 information acquisition means, layer 3 priority that is a priority for layer 3 communication control A layer 3 priority acquisition unit that acquires the degree, and a transmission unit that sequentially transmits the layer 2 frames in an order based on the layer 3 priority acquired by the layer 3 priority acquisition unit. And

これによれば、レイヤ2スイッチ装置がレイヤ3情報を取得し、さらに取得したレイヤ3情報に基づいてレイヤ3優先度(レイヤ3レベルでの優先度)を取得しているので、同一レイヤ3セグメント内で送受信されるレイヤ3パケットに含まれる通信データについて、レイヤ3レベルでの優先制御を行うことが実現される。   According to this, since the layer 2 switch device acquires the layer 3 information and further acquires the layer 3 priority (priority at the layer 3 level) based on the acquired layer 3 information, the same layer 3 segment It is possible to perform priority control at the layer 3 level for communication data included in layer 3 packets transmitted and received within the network.

また、上記レイヤ2スイッチ装置において、前記各レイヤ2フレームのレイヤ2ヘッダはIPマルチキャストアドレスの少なくとも一部を含み、前記レイヤ3情報取得手段が取得する前記レイヤ3情報は、前記受信手段により受信されるレイヤ2フレームのレイヤ2ヘッダに含まれる前記IPマルチキャストアドレスの少なくとも一部である、こととしてもよい。   In the layer 2 switching device, the layer 2 header of each layer 2 frame includes at least a part of an IP multicast address, and the layer 3 information acquired by the layer 3 information acquisition unit is received by the reception unit. Or at least part of the IP multicast address included in the layer 2 header of the layer 2 frame.

一般に、レイヤ3パケットがマルチキャスト送信されるものである場合、レイヤ2ヘッダ内の宛先MACアドレスには、レベル3情報のひとつであるIPマルチキャストアドレスの少なくとも一部(一例では32ビットのIPマルチキャストアドレスのうち、下位の23ビット。)が含まれる。上記レイヤ2スイッチ装置は、このIPマルチキャストアドレスの少なくとも一部を取得しているので、レイヤ3ヘッダを参照することなく、レイヤ3情報を取得することができる。   In general, when a layer 3 packet is transmitted by multicast, the destination MAC address in the layer 2 header includes at least a part of an IP multicast address that is one of level 3 information (in the example, a 32-bit IP multicast address). Of these, the lower 23 bits are included. Since the layer 2 switch device has acquired at least a part of this IP multicast address, it can acquire layer 3 information without referring to the layer 3 header.

また、上記レイヤ2スイッチ装置において、前記レイヤ3情報取得手段は、前記受信手段により受信されるレイヤ2フレームに含まれるレイヤ3パケットから、前記レイヤ3情報を取得する、こととしてもよい。   In the layer 2 switch device, the layer 3 information acquisition unit may acquire the layer 3 information from a layer 3 packet included in a layer 2 frame received by the reception unit.

これによれば、レイヤ2スイッチ装置は、レイヤ3ヘッダに含まれる送信元IPアドレスや、宛先IPアドレス、TOSフィールド内の情報などに基づいて、レイヤ3レベルでの優先制御を行うことができるようになる。   According to this, the layer 2 switching device can perform priority control at the layer 3 level based on the source IP address, the destination IP address, information in the TOS field, etc. included in the layer 3 header. become.

また、上記各レイヤ2スイッチ装置において、前記レイヤ3情報と、前記レイヤ3優先度と、を対応付けて記憶する記憶手段、を含み、前記レイヤ3優先度取得手段は、前記レイヤ3情報取得手段により取得されるレイヤ3情報と対応付けて前記記憶手段に記憶されるレイヤ3優先度を取得することにより、前記レイヤ3優先度を取得する、こととしてもよい。   Each of the layer 2 switching devices includes a storage unit that stores the layer 3 information and the layer 3 priority in association with each other, and the layer 3 priority acquisition unit includes the layer 3 information acquisition unit. The layer 3 priority may be acquired by acquiring the layer 3 priority stored in the storage unit in association with the layer 3 information acquired by the above.

これによれば、レイヤ2スイッチ装置は、記憶手段からレイヤ3優先度を取得することができるようになる。   According to this, the layer 2 switching device can acquire the layer 3 priority from the storage unit.

また、上記各レイヤ2スイッチ装置において、前記各レイヤ2フレームについて、レイヤ2通信制御にかかる優先度であるレイヤ2優先度を取得するレイヤ2優先度取得手段と、前記送信手段は、前記レイヤ2優先度取得手段により取得されるレイヤ2優先度と、前記レイヤ3優先度取得手段により取得されるレイヤ3優先度と、に基づく順序で、前記各レイヤ2フレームを順次送信する、こととしてもよい。   In each of the layer 2 switching devices, for each of the layer 2 frames, a layer 2 priority acquisition unit that acquires a layer 2 priority that is a priority for layer 2 communication control, and the transmission unit includes the layer 2 The layer 2 frames may be sequentially transmitted in an order based on the layer 2 priority acquired by the priority acquisition unit and the layer 3 priority acquired by the layer 3 priority acquisition unit. .

これによれば、レイヤ2レベルでの優先制御に併せて、レイヤ3レベルでの優先制御を行うようにすることができる。   According to this, priority control at the layer 3 level can be performed together with priority control at the layer 2 level.

また、本発明にかかるレイヤ2フレーム送信方法は、複数のレイヤ2フレームを順次受信する受信ステップと、前記受信ステップにおいて受信されるレイヤ2フレームから、レイヤ3通信制御に関する情報であるレイヤ3情報を取得するレイヤ3情報取得ステップと、前記各レイヤ2フレームについて、前記レイヤ3情報取得ステップにおいて取得されるレイヤ3情報に基づいて、レイヤ3通信制御にかかる優先度であるレイヤ3優先度を取得するレイヤ3優先度取得ステップと、前記レイヤ3優先度取得ステップにおいて取得されるレイヤ3優先度に基づく順序で、前記各レイヤ2フレームを順次送信する送信ステップと、を含むことを特徴とする。   The layer 2 frame transmission method according to the present invention includes a reception step of sequentially receiving a plurality of layer 2 frames, and layer 3 information that is information related to layer 3 communication control from the layer 2 frames received in the reception step. For the layer 3 information acquisition step to be acquired and for each of the layer 2 frames, the layer 3 priority that is the priority for the layer 3 communication control is acquired based on the layer 3 information acquired in the layer 3 information acquisition step. A layer 3 priority acquisition step; and a transmission step of sequentially transmitting each layer 2 frame in an order based on the layer 3 priority acquired in the layer 3 priority acquisition step.

本発明の実施の形態について、図面を参照しながら説明する。   Embodiments of the present invention will be described with reference to the drawings.

図1は、本実施の形態にかかるIPネットワークシステム1のシステム構成を示す図である。同図に示すように、IPネットワークシステム1はレイヤ2スイッチ装置10、レイヤ3ルーティング装置20、複数の端末装置30(図1では、端末装置30−1,端末装置30−2,及び端末装置30−3の3つを例示している。)を含んで構成される。   FIG. 1 is a diagram showing a system configuration of an IP network system 1 according to the present embodiment. As shown in FIG. 1, the IP network system 1 includes a layer 2 switch device 10, a layer 3 routing device 20, a plurality of terminal devices 30 (in FIG. 1, a terminal device 30-1, a terminal device 30-2, and a terminal device 30). -3 are illustrated))).

各端末装置30の例としては、工業プラントに設置される各種センサ装置や、工業用プラントの監視端末として用いられるコンピュータなどが挙げられる。また、レイヤ2スイッチ装置10には、ハブ、スイッチングハブ、イーサネット(登録商標)スイッチなど、レイヤ2の通信制御を行う装置が含まれる。レイヤ3ルーティング装置20には、ルータ、レイヤ3スイッチなど、レイヤ3の通信制御を行う装置が含まれる。   Examples of each terminal device 30 include various sensor devices installed in an industrial plant and a computer used as a monitoring terminal for an industrial plant. The layer 2 switch device 10 includes devices that perform layer 2 communication control, such as a hub, a switching hub, and an Ethernet (registered trademark) switch. The layer 3 routing device 20 includes devices that perform layer 3 communication control, such as routers and layer 3 switches.

レイヤ2スイッチ装置10は複数の通信ポートを有している。図1では、このうち通信ポートP1,通信ポートP2,通信ポートP3,及び通信ポートP4を示している。また、各端末装置30は通信ポートを1つずつ有しており、図1では、端末装置30−1,端末装置30−2,及び端末装置30−3の通信ポートを、それぞれ通信ポートP11,通信ポートP12,及び通信ポートP13としている。通信ポートP1と通信ポートP11、通信ポートP2と通信ポートP12、通信ポートP3と通信ポートP13、はそれぞれ所定のケーブルにより通信接続されている。また、通信ポートP4は、レイヤ3ルーティング装置20の通信ポートと接続されている。なお、図示していないが、レイヤ3ルーティング装置20も複数の通信ポートを有しており、そのうちのひとつはレイヤ2スイッチ装置10と接続され、他の各通信ポートはそれぞれ図示しない通信装置と接続されている。   The layer 2 switch device 10 has a plurality of communication ports. In FIG. 1, communication port P1, communication port P2, communication port P3, and communication port P4 are shown. Each terminal device 30 has one communication port, and in FIG. 1, the communication ports of the terminal device 30-1, the terminal device 30-2, and the terminal device 30-3 are designated as communication ports P11 and P11, respectively. The communication port is P12 and the communication port P13. The communication port P1 and the communication port P11, the communication port P2 and the communication port P12, and the communication port P3 and the communication port P13 are connected by a predetermined cable. The communication port P4 is connected to the communication port of the layer 3 routing device 20. Although not shown, the layer 3 routing device 20 also has a plurality of communication ports, one of which is connected to the layer 2 switch device 10, and each of the other communication ports is connected to a communication device (not shown). Has been.

上記各通信ポートにはレイヤ2のアドレスであるMACアドレスが予め付与されており、上記各装置は、自身の通信ポートに付与されたMACアドレスを記憶している。また、各端末装置30及びレイヤ3ルーティング装置20の各通信ポートにはレイヤ3のアドレスであるIPアドレス予め付与されており、上記各装置は、自身の通信ポートに付与されたIPアドレスも記憶している。   Each communication port is assigned a MAC address, which is a layer 2 address, in advance, and each device stores the MAC address assigned to its own communication port. In addition, each communication port of each terminal device 30 and the layer 3 routing device 20 is given in advance an IP address that is a layer 3 address, and each device also stores an IP address assigned to its own communication port. ing.

各端末装置30は、送信対象の通信データを取得し、その宛先となる端末装置30の通信ポートに付与されたIPアドレス(宛先IPアドレス)と、自身の通信ポートに付与されたIPアドレス(送信元IPアドレス)と、レイヤ3優先度(保証してほしいサービス品質(EF:Expedited Forwarding、AF:Assured Forwarding、CF:Class Selector、ベストエフォートなど)を示す情報。以下では、この情報をDSCP(Diffserv Code Point)という。)を示す情報を含むTOSフィールドと、を含むレイヤ3ヘッダを付加することで、レイヤ3ヘッダを含むレイヤ3パケットを生成する。各端末装置30はさらに、このレイヤ3パケットに、通信データの宛先となる端末装置30の通信ポートに付与されたMACアドレス(宛先MACアドレス)と、自身の通信ポートに付与されたMACアドレス(送信元MACアドレス)と、を含むレイヤ2ヘッダを付加し、レイヤ3パケット及びレイヤ2ヘッダを含むレイヤ2フレームを生成する。そして、こうして生成したレイヤ2フレームを、自身の通信ポートから送信する。   Each terminal device 30 acquires communication data to be transmitted, and an IP address (destination IP address) assigned to the communication port of the terminal device 30 that is the destination and an IP address (transmission) assigned to its own communication port. Source IP address) and layer 3 priority (service quality to be guaranteed (EF: Expedited Forwarding, AF: Assured Forwarding, CF: Class Selector, Best Effort etc.). A layer 3 header including a layer 3 header is generated by adding a layer 3 header including a TOS field including information indicating (Code Point). Each terminal device 30 further adds a MAC address (destination MAC address) assigned to the communication port of the terminal device 30 that is the destination of communication data and a MAC address (transmission) assigned to its own communication port to this layer 3 packet. A layer 2 header including the original MAC address is added to generate a layer 2 frame including a layer 3 packet and a layer 2 header. The layer 2 frame thus generated is transmitted from its own communication port.

なお、各端末装置30がレイヤ3ヘッダに含める宛先IPアドレスは、操作者によって入力されるか、又は図示しないDNS(Domain Name System)サーバ装置から受信されるものである。また、各端末装置30がレイヤ2ヘッダに含める宛先MACアドレスは、ARPにより取得されるものである。すなわち、各端末装置30は予め、ARPパケットと呼ばれるパケットを用いて他の端末装置30のIPアドレス及びMACアドレスを取得し、これらを対応付けて記憶しており、各端末装置30は、レイヤ2ヘッダに含める宛先MACアドレスを、レイヤ3ヘッダに含める宛先IPアドレスと対応付けて記憶しているMACアドレスとする。   The destination IP address included in the layer 3 header of each terminal device 30 is input by an operator or received from a DNS (Domain Name System) server device (not shown). Further, the destination MAC address included in the layer 2 header by each terminal device 30 is acquired by ARP. That is, each terminal device 30 acquires in advance the IP address and MAC address of another terminal device 30 using a packet called an ARP packet, and stores these in association with each other. The destination MAC address included in the header is the MAC address stored in association with the destination IP address included in the layer 3 header.

レイヤ2スイッチ装置10は、各端末装置30が以上のようにして送信したレイヤ2フレームを受信する。そして、該レイヤ2フレームが受信された通信ポートと、該レイヤ2フレームのレイヤ2ヘッダに含まれる送信元MACアドレスと、を対応付けて記憶する。レイヤ2スイッチ装置10は、この処理を常時行うことにより、自身の各通信ポートと、その先に接続されている端末装置30等のMACアドレスと、を対応付けて記憶する。   The layer 2 switch device 10 receives the layer 2 frame transmitted by each terminal device 30 as described above. Then, the communication port from which the layer 2 frame is received and the transmission source MAC address included in the layer 2 header of the layer 2 frame are stored in association with each other. The layer 2 switch device 10 stores this communication port in association with each communication port of itself and the MAC address of the terminal device 30 or the like connected to the destination by constantly performing this process.

また、レイヤ2スイッチ装置10は、各端末装置30からレイヤ2フレームを受信すると、そのレイヤ2ヘッダに含まれる宛先MACアドレスを取得し、該宛先MACアドレスと対応付けて記憶している通信ポートから、受信したレイヤ2フレームを送信する。なお、該宛先MACアドレスと対応付けて記憶している通信ポートがない場合には、全ての通信ポートから、受信したレイヤ2フレームを送信することとしてもよい。   Further, when receiving the layer 2 frame from each terminal device 30, the layer 2 switch device 10 acquires the destination MAC address included in the layer 2 header, and from the communication port stored in association with the destination MAC address. The received layer 2 frame is transmitted. When there is no communication port stored in association with the destination MAC address, the received layer 2 frame may be transmitted from all communication ports.

レイヤ2スイッチ装置10は、以上のようにしてレイヤ2フレームを送信する際、該レイヤ2フレームからレイヤ3通信制御に関する情報であるレイヤ3情報(送信元IPアドレス、宛先IPアドレス、DSCP、後述するIPマルチキャストアドレスの一部など)を取得する。そして、取得したレイヤ3情報に基づいて、レイヤ3通信制御にかかる優先度であるレイヤ3優先度を取得し、取得した優先度に基づいてさらに、所定の優先制御処理を行う。この点については後に詳述する。   When the layer 2 switching device 10 transmits a layer 2 frame as described above, layer 3 information (source IP address, destination IP address, DSCP, which will be described later) is information related to layer 3 communication control from the layer 2 frame. To obtain a part of an IP multicast address). And based on the acquired layer 3 information, the layer 3 priority which is a priority concerning layer 3 communication control is acquired, and a predetermined priority control process is further performed based on the acquired priority. This point will be described in detail later.

各端末装置30は、自身の通信ポートにレイヤ2フレームが到着すると、そのレイヤ2ヘッダに含まれる宛先MACアドレスを取得し、該レイヤ2フレームが到着した通信ポートに付与されているMACアドレスであるか否かを判定する。判定の結果、該レイヤ2フレームが到着した通信ポートに付与されているMACアドレスであると判定された場合に、該レイヤ2フレームを受信し、受信したレイヤ2フレームに含まれる通信データに基づく処理を行う。   Each terminal device 30 obtains a destination MAC address included in the layer 2 header when a layer 2 frame arrives at its communication port, and is a MAC address assigned to the communication port at which the layer 2 frame arrives. It is determined whether or not. As a result of the determination, when it is determined that the MAC address assigned to the communication port where the layer 2 frame has arrived, the layer 2 frame is received, and processing based on communication data included in the received layer 2 frame I do.

レイヤ3ルーティング装置20は、自身の各通信ポートと、ネットワークアドレス及びサブネットマスクと、を対応付けるルーティングテーブルを記憶している。レイヤ3ルーティング装置20は、自身の通信ポートにレイヤ2フレームが到着するとまず、そのレイヤ2ヘッダに含まれるレイヤ3パケットを取得する。次に、ルーティングテーブルとレイヤ3パケットのレイヤ3ヘッダに含まれる宛先IPアドレスと、から宛先ネットワークアドレスを決定する。そして、決定した宛先ネットワークアドレスと対応付けて記憶される通信ポートをルーティングテーブルから読み出し、該通信ポートから上記レイヤ2フレームを送信する。   The layer 3 routing device 20 stores a routing table that associates each communication port with a network address and a subnet mask. When a layer 2 frame arrives at its communication port, the layer 3 routing device 20 first acquires a layer 3 packet included in the layer 2 header. Next, the destination network address is determined from the routing table and the destination IP address included in the layer 3 header of the layer 3 packet. The communication port stored in association with the determined destination network address is read from the routing table, and the layer 2 frame is transmitted from the communication port.

なお、この場合において、レイヤ3ルーティング装置20も端末装置30同様、ARPを用いて宛先MACアドレスを決定しており、決定した宛先MACアドレスによりレイヤ2ヘッダを書き換えたレイヤ2フレームを送信する。   In this case, similarly to the terminal device 30, the layer 3 routing device 20 also determines the destination MAC address using ARP, and transmits a layer 2 frame in which the layer 2 header is rewritten with the determined destination MAC address.

以下、レイヤ2スイッチ装置10が行う優先制御処理の具体的な実施の形態1及び2について、詳細に説明する。なお、以下の説明では、端末装置30−1と端末装置30−2とが、いずれも端末装置30−2に対してレイヤ2フレームを送信する場合を例に取って説明する。   Hereinafter, specific embodiments 1 and 2 of the priority control process performed by the layer 2 switch device 10 will be described in detail. In the following description, a case where both the terminal device 30-1 and the terminal device 30-2 transmit a layer 2 frame to the terminal device 30-2 will be described as an example.

[実施の形態1]
図2は、実施の形態1にかかるレイヤ2スイッチ装置10aの機能ブロックを示す図である。同図に示すように、レイヤ2スイッチ装置10aは受信部11、判別部12a、記憶部13、送出ポート取得部14、保持部15a、転送部16を含んで構成されており、さらに、判別部12aはその内部にレイヤ3情報取得部121を含んで構成される。なお、保持部15a及び転送部16は通信ポートごとに設けられており、図2には端末装置30−2に接続されている通信ポートにかかるものだけを表示している。
[Embodiment 1]
FIG. 2 is a diagram of functional blocks of the layer 2 switch device 10a according to the first embodiment. As shown in the figure, the layer 2 switch device 10a includes a receiving unit 11, a determining unit 12a, a storage unit 13, a sending port acquiring unit 14, a holding unit 15a, and a transferring unit 16, and further includes a determining unit. 12a includes a layer 3 information acquisition unit 121 therein. In addition, the holding | maintenance part 15a and the transfer part 16 are provided for every communication port, and only the thing concerning the communication port connected to the terminal device 30-2 is displayed in FIG.

受信部11は、それぞれレイヤ3パケット及びレイヤ2ヘッダを含む複数のレイヤ2フレームを順次受信する。ここでは特に、端末装置30−1及び端末装置30−2がそれぞれ送信したレイヤ2フレームを順次受信する。   The receiving unit 11 sequentially receives a plurality of layer 2 frames each including a layer 3 packet and a layer 2 header. Here, in particular, the layer 2 frames respectively transmitted by the terminal device 30-1 and the terminal device 30-2 are sequentially received.

送出ポート取得部14は、ARPにより各レイヤ2フレームの宛先MACアドレス(ここでは端末装置30−2に付与されているMACアドレスとなる。)と、各レイヤ2フレームを転送すべき通信ポート(ここでは端末装置30−2に接続されている通信ポートとなる。)と、を取得する。そして、各レイヤ2フレームを、当該レイヤ2フレームについて取得した通信ポートについて設けられている保持部15aに出力する。また、送出ポート取得部14は、取得した各レイヤ2フレームの宛先MACアドレスを、各レイヤ2フレームに対応付けて転送部16に出力する。   The transmission port acquisition unit 14 uses the ARP to specify the destination MAC address of each layer 2 frame (here, the MAC address assigned to the terminal device 30-2) and the communication port to which each layer 2 frame is to be transferred (here. Then, it becomes a communication port connected to the terminal device 30-2). And each layer 2 frame is output to the holding | maintenance part 15a provided about the communication port acquired about the said layer 2 frame. Further, the transmission port acquisition unit 14 outputs the acquired destination MAC address of each layer 2 frame to the transfer unit 16 in association with each layer 2 frame.

レイヤ3情報取得部121は、受信部11により受信されるレイヤ2フレームから、レイヤ3通信制御に関する情報であるレイヤ3情報を取得する。具体的には、送信元IPアドレス、宛先IPアドレス、DSCP、後述するIPマルチキャストアドレスの一部などを、レイヤ3情報として取得する。レイヤ3情報取得部121が具体的にどの情報をレイヤ3情報として取得するかは、予め決めておけばよい。以下、レイヤ3情報取得部121の処理について、詳細に説明する。   The layer 3 information acquisition unit 121 acquires layer 3 information, which is information related to layer 3 communication control, from the layer 2 frame received by the reception unit 11. Specifically, a source IP address, a destination IP address, DSCP, a part of an IP multicast address described later, and the like are acquired as layer 3 information. What information the layer 3 information acquisition unit 121 specifically acquires as layer 3 information may be determined in advance. Hereinafter, the process of the layer 3 information acquisition unit 121 will be described in detail.

まず、レイヤ3情報取得部121が、レイヤ2フレームに含まれるレイヤ3パケットからレイヤ3情報を取得する場合について説明する。レイヤ3パケットのレイヤ3ヘッダには、上述のように、送信元IPアドレス、宛先IPアドレス、DSCPが含まれており、レイヤ3情報取得部121は、受信部11により受信されたレイヤ2フレームに含まれるレイヤ3ヘッダを参照し、そのレイヤ3ヘッダから、送信元IPアドレス、宛先IPアドレス、DSCPのうち少なくとも1つを、レイヤ3情報として取得する。   First, a case where the layer 3 information acquisition unit 121 acquires layer 3 information from a layer 3 packet included in a layer 2 frame will be described. As described above, the layer 3 header of the layer 3 packet includes the transmission source IP address, the destination IP address, and the DSCP. The layer 3 information acquisition unit 121 adds the layer 3 frame received by the reception unit 11 to the layer 2 frame. With reference to the included layer 3 header, at least one of the transmission source IP address, the destination IP address, and the DSCP is acquired as layer 3 information from the layer 3 header.

次に、レイヤ3情報取得部121が、レイヤ2フレームのレイヤ2ヘッダからレイヤ3情報を取得する場合について説明する。これは、レイヤ2フレームに含まれるレイヤ3パケットがマルチキャスト送信にかかるものである場合である。この場合、マルチキャスト送信を行う端末装置30は、その中に含まれるレイヤ3ヘッダ内の宛先IPアドレスに、予めマルチキャスト用に予約された特定のアドレス空間内のIPアドレス(IPマルチキャストアドレス)を設定する。   Next, a case where the layer 3 information acquisition unit 121 acquires layer 3 information from the layer 2 header of the layer 2 frame will be described. This is a case where the layer 3 packet included in the layer 2 frame is related to multicast transmission. In this case, the terminal device 30 that performs multicast transmission sets an IP address (IP multicast address) in a specific address space reserved for multicast in advance as the destination IP address in the layer 3 header included therein. .

図3(a)は、IPv4におけるIPマルチキャストアドレスの例を示す図である。また、図3(c)は、IPv6におけるIPマルチキャストアドレスの例を示す図である。これらの図に示すように、IPマルチキャストアドレスは、当該IPアドレスがIPマルチキャストアドレスであることを示すマルチキャスト指示情報と、マルチキャストグループIDと、を含んで構成される。なお、IPv4においては、マルチキャスト指示情報は4ビットの情報(具体的には2進数で「1110」。)であり、マルチキャストグループIDは28ビットの情報である。また、IPv6においては、マルチキャスト指示情報は16ビットの情報(具体的には16進数で「FFXX」。ただし、「X」は任意の値である。)であり、マルチキャストグループIDは112ビットの情報である。   FIG. 3A is a diagram illustrating an example of an IP multicast address in IPv4. FIG. 3C shows an example of an IP multicast address in IPv6. As shown in these drawings, the IP multicast address includes multicast instruction information indicating that the IP address is an IP multicast address, and a multicast group ID. In IPv4, the multicast instruction information is 4-bit information (specifically, “1110” in binary number), and the multicast group ID is 28-bit information. In IPv6, the multicast instruction information is 16-bit information (specifically, “FFXX” in hexadecimal notation, where “X” is an arbitrary value), and the multicast group ID is 112-bit information. It is.

また、マルチキャスト送信を行う端末装置30は、レイヤ2ヘッダ内の宛先MACアドレスにも、予めマルチキャスト用に予約された特定のアドレス空間内のMACアドレス(MACマルチキャストアドレス)を設定する。   The terminal device 30 that performs multicast transmission also sets a MAC address (MAC multicast address) in a specific address space reserved for multicast in advance as the destination MAC address in the layer 2 header.

図3(b)は、IPv4におけるMACマルチキャストアドレスの例を示す図である。また、図3(d)は、IPv6におけるMACマルチキャストアドレスの例を示す図である。これらの図に示すように、MACマルチキャストアドレスは、当該MACアドレスがMACマルチキャストアドレスであることを示すマルチキャスト指示情報と、同じレイヤ2フレーム内のレイヤ3ヘッダに含まれるIPマルチキャストアドレスを構成するマルチキャストグループIDの一部と、を含んで構成される。なお、IPv4においては、マルチキャスト指示情報は24ビットの情報(具体的には16進数で「01:00:5E」。)であり、マルチキャストグループIDの一部は、該マルチキャストグループIDの下位23ビット分のコピーである。また、IPv6においては、マルチキャスト指示情報は24ビットの情報(具体的には16進数で「33:33:33」。)であり、マルチキャストグループIDの一部は、該マルチキャストグループIDの下位24ビット分のコピーである。   FIG. 3B is a diagram illustrating an example of a MAC multicast address in IPv4. FIG. 3D is a diagram illustrating an example of a MAC multicast address in IPv6. As shown in these figures, a MAC multicast address is a multicast group that constitutes an IP multicast address included in a layer 3 header in the same layer 2 frame as multicast instruction information indicating that the MAC address is a MAC multicast address. Part of the ID. In IPv4, the multicast instruction information is 24-bit information (specifically, “01: 00: 5E” in hexadecimal), and a part of the multicast group ID is the lower 23 bits of the multicast group ID. A copy of the minute. In IPv6, the multicast instruction information is 24-bit information (specifically, “33:33:33” in hexadecimal), and a part of the multicast group ID is the lower 24 bits of the multicast group ID. A copy of the minute.

レイヤ3情報取得部121は、レイヤ2フレームに含まれるレイヤ2ヘッダから、宛先MACアドレスを取り出し、まずその上位24ビットを参照する。そして、その値が、上記マルチキャスト指示情報に相当している場合、該宛先MACアドレスはMACマルチキャストアドレスであると判定し、その中に含まれるマルチキャストグループIDの一部を取得する。そして、該一部をレイヤ3情報とする。   The layer 3 information acquisition unit 121 extracts the destination MAC address from the layer 2 header included in the layer 2 frame, and first refers to the upper 24 bits. If the value corresponds to the multicast instruction information, it is determined that the destination MAC address is a MAC multicast address, and a part of the multicast group ID included therein is acquired. Then, this part is set as layer 3 information.

なお、以上のようにマルチキャストグループIDの一部(23ビット又は24ビット)をレイヤ3情報とする場合、マルチキャスト送信を行う各端末装置30が、上記一部が重複しないマルチキャストグループIDを用いるようにすることが望ましい。具体的な例では、各端末装置30は、マルチキャスト送信を行う際、予め記憶しているマルチキャストグループID群の中からマルチキャストグループIDを選択して使用するが、このマルチキャストグループID群に記憶しておくマルチキャストグループIDを、上記一部が互いに異なるもののみにしておくことが望ましい。   As described above, when a part (23 bits or 24 bits) of the multicast group ID is used as the layer 3 information, each terminal device 30 that performs multicast transmission uses a multicast group ID that does not overlap the part. It is desirable to do. In a specific example, each terminal device 30 selects and uses a multicast group ID from among previously stored multicast group ID groups when performing multicast transmission, but stores them in this multicast group ID group. It is desirable that only a part of the multicast group IDs are different from each other.

記憶部13は、上記のようにして取得されるレイヤ3情報と、レイヤ3通信制御にかかる優先度であるレイヤ3優先度と、を対応付けて記憶する。具体的には、送信元IPアドレス、宛先IPアドレス、マルチキャストグループIDの上記一部のうち少なくとも1つ又はこれらの組み合わせと、レイヤ3優先度と、を対応付けて記憶する。以下、具体的な例を挙げながら説明する。   The storage unit 13 stores the layer 3 information acquired as described above in association with the layer 3 priority that is the priority for the layer 3 communication control. Specifically, at least one of the above-mentioned part of the source IP address, the destination IP address, and the multicast group ID, or a combination thereof, and the layer 3 priority are stored in association with each other. Hereinafter, a specific example will be described.

1つ目の例は、記憶部13が、送信元IPアドレスと、レイヤ3優先度と、を対応付けて記憶する例である。この例では、表1に示すように、送信元IPアドレスごとに、「高」又は「低」のいずれかのレイヤ3優先度が記憶される。   In the first example, the storage unit 13 stores the transmission source IP address and the layer 3 priority in association with each other. In this example, as shown in Table 1, either “high” or “low” layer 3 priority is stored for each source IP address.

Figure 2008199168
Figure 2008199168

2つ目の例は、記憶部13が、宛先IPアドレスと、レイヤ3優先度と、を対応付けて記憶する例である。この例では、表2に示すように、宛先IPアドレスごとに、「高」又は「低」のいずれかのレイヤ3優先度が記憶される。   The second example is an example in which the storage unit 13 stores the destination IP address and the layer 3 priority in association with each other. In this example, as shown in Table 2, either “high” or “low” layer 3 priority is stored for each destination IP address.

Figure 2008199168
Figure 2008199168

3つ目の例は、記憶部13が、送信元IPアドレス及び宛先IPアドレスの組み合わせと、レイヤ3優先度と、を対応付けて記憶する例である。この例では、表3に示すように、送信元IPアドレス及び宛先IPアドレスの組み合わせごとに、「高」又は「低」のいずれかのレイヤ3優先度が記憶される。   The third example is an example in which the storage unit 13 stores the combination of the source IP address and the destination IP address and the layer 3 priority in association with each other. In this example, as shown in Table 3, for each combination of the source IP address and the destination IP address, either “high” or “low” layer 3 priority is stored.

Figure 2008199168
Figure 2008199168

4つ目の例は、記憶部13が、マルチキャストグループIDの上記一部と、レイヤ3優先度と、を対応付けて記憶する例である。この例では、表4に示すように、送信元IPアドレス及び宛先IPアドレスの組み合わせごとに、「高」又は「低」のいずれかのレイヤ3優先度が記憶される。なお、表4はIPv4の場合の例(上記一部が23ビットである例)である。   In the fourth example, the storage unit 13 stores the part of the multicast group ID and the layer 3 priority in association with each other. In this example, as shown in Table 4, for each combination of the source IP address and the destination IP address, either “high” or “low” layer 3 priority is stored. Table 4 is an example in the case of IPv4 (an example in which the above part is 23 bits).

Figure 2008199168
Figure 2008199168

5つ目の例は、記憶部13が、マルチキャストグループIDの上記一部を含むレイヤ3情報及びマルチキャストグループIDの上記一部を含まないレイヤ3情報のそれぞれと、レイヤ3優先度と、を対応付けて記憶する例である。この例では、表4に示すように、マルチキャストグループIDの上記一部を含むレイヤ3情報にレイヤ3優先度「高」が、マルチキャストグループIDの上記一部を含まないレイヤ3情報にレイヤ3優先度「低」が、それぞれ対応付けて記憶される。すなわち、この例は、マルチキャスト送信にかかる通信データの優先度が、ユニキャスト送信(1対1送信)にかかる通信データよりも高くなるようにした例である。   In the fifth example, the storage unit 13 associates each of layer 3 information including the part of the multicast group ID and layer 3 information not including the part of the multicast group ID with the layer 3 priority. It is an example of adding and storing. In this example, as shown in Table 4, layer 3 priority “high” is included in the layer 3 information including the part of the multicast group ID, and layer 3 priority is included in the layer 3 information not including the part of the multicast group ID. The degree “low” is stored in association with each other. That is, this example is an example in which the priority of communication data related to multicast transmission is higher than communication data related to unicast transmission (one-to-one transmission).

Figure 2008199168
Figure 2008199168

なお、以上説明した記憶部13の記憶内容は、図示しない入力手段を用いて、ユーザにより設定される。   The contents stored in the storage unit 13 described above are set by the user using an input unit (not shown).

判別部12aは、受信部11により受信される各レイヤ2フレームについて、レイヤ3情報取得部121により取得されるレイヤ3情報に基づいてレイヤ3優先度を取得するレイヤ3優先度取得手段として機能する。   The determination unit 12a functions as a layer 3 priority acquisition unit that acquires the layer 3 priority for each layer 2 frame received by the reception unit 11 based on the layer 3 information acquired by the layer 3 information acquisition unit 121. .

具体的には、レイヤ3情報取得部121が記憶部13に記憶されるレイヤ3情報を取得する場合、判別部12aは、レイヤ3情報取得部121により取得されるレイヤ3情報と対応付けて記憶部13に記憶されるレイヤ3優先度を取得することにより、レイヤ3優先度を取得する。   Specifically, when the layer 3 information acquisition unit 121 acquires the layer 3 information stored in the storage unit 13, the determination unit 12 a stores the layer 3 information in association with the layer 3 information acquired by the layer 3 information acquisition unit 121. The layer 3 priority is acquired by acquiring the layer 3 priority stored in the unit 13.

すなわち、レイヤ3情報取得部121が送信元IPアドレスをレイヤ3情報として取得する場合、判別部12aは、記憶部13から該送信元IPアドレスと対応付けて記憶されるレイヤ3優先度(表1)を取得する。また、レイヤ3情報取得部121が宛先IPアドレスをレイヤ3情報として取得する場合、判別部12aは、記憶部13から該宛先IPアドレスと対応付けて記憶されるレイヤ3優先度(表2)を取得する。また、レイヤ3情報取得部121が送信元IPアドレス及び宛先IPアドレスをレイヤ3情報として取得する場合、判別部12aは、記憶部13から該送信元IPアドレス及び該宛先IPアドレスの組み合わせと対応付けて記憶されるレイヤ3優先度(表3)を取得する。さらに、レイヤ3情報取得部121がマルチキャストグループIDの上記一部をレイヤ3情報として取得する場合、判別部12aは、記憶部13から該一部と対応付けて記憶されるレイヤ3優先度(表4)を取得する。また、レイヤ3情報取得部121がマルチキャストグループIDの上記一部をレイヤ3情報として取得するように予め決められている場合において、レイヤ3情報取得部121により取得されるレイヤ3情報にマルチキャストグループIDの上記一部が含まれているか否かに応じ、判別部12aは、記憶部13からレイヤ3優先度(表5)を取得する。   That is, when the layer 3 information acquisition unit 121 acquires the transmission source IP address as the layer 3 information, the determination unit 12a stores the layer 3 priority (Table 1) stored in association with the transmission source IP address from the storage unit 13. ) To get. When the layer 3 information acquisition unit 121 acquires the destination IP address as layer 3 information, the determination unit 12a stores the layer 3 priority (Table 2) stored in association with the destination IP address from the storage unit 13. get. When the layer 3 information acquisition unit 121 acquires the transmission source IP address and the destination IP address as layer 3 information, the determination unit 12 a associates the combination of the transmission source IP address and the destination IP address from the storage unit 13 with each other. The layer 3 priority (Table 3) stored is acquired. Furthermore, when the layer 3 information acquisition unit 121 acquires the part of the multicast group ID as layer 3 information, the determination unit 12a stores the layer 3 priority (table) stored in association with the part from the storage unit 13. 4) is acquired. When the layer 3 information acquisition unit 121 is determined in advance to acquire the part of the multicast group ID as layer 3 information, the multicast group ID is added to the layer 3 information acquired by the layer 3 information acquisition unit 121. The determination unit 12a acquires the layer 3 priority (Table 5) from the storage unit 13 according to whether or not the above-mentioned part is included.

また、レイヤ3情報取得部121がDSCPを取得する場合、判別部12aは、DSCPにより示されるレイヤ3優先度(EF、AF、CF、ベストエフォートなど)を取得する。以下の説明では、簡単のためDSCPにより示されるレイヤ3優先度も「高」又は「低」のいずれかに分類されるとして説明する。   When the layer 3 information acquisition unit 121 acquires DSCP, the determination unit 12a acquires layer 3 priority (EF, AF, CF, best effort, etc.) indicated by DSCP. In the following description, for the sake of simplicity, it is assumed that the layer 3 priority indicated by the DSCP is also classified as either “high” or “low”.

なお、以上説明した判別部12aの処理はあくまで一例である。例えば表4と表5を組み合わせ、レイヤ3情報がマルチキャストグループIDの上記一部を含み、かつそのマルチキャストグループIDが「0.0.1」である場合に優先度「高」、レイヤ3情報がマルチキャストグループIDの上記一部を含み、かつそのマルチキャストグループIDが「127.0.1」である場合に優先度「中」、レイヤ3情報がマルチキャストグループIDの上記一部を含まない場合に優先度「低」というようにしてもよいし、他にも種々の実施例が考えられる。   Note that the processing of the determination unit 12a described above is merely an example. For example, when Table 4 and Table 5 are combined, the priority is “high” when the layer 3 information includes the part of the multicast group ID and the multicast group ID is “0.0.1,” and the layer 3 information is the multicast group. The priority is “medium” when the part of the ID is included and the multicast group ID is “127.0.1”, and the priority is “low” when the layer 3 information does not include the part of the multicast group ID. Various other embodiments may be considered.

保持部15aは、送出ポート取得部14から入力される各レイヤ2フレームに含まれるレイヤ3パケットを、レイヤ3優先度ごとに一時的に保持する。具体的には、保持部15aは上記レイヤ3優先度ごとの記憶領域を有しており、各レイヤ2フレームについて判別部12aにより取得されたレイヤ3優先度に対応する記憶領域に、該各レイヤ2フレームにそれぞれ含まれるレイヤ3パケットを一時的に記憶する。なお、各記憶領域には、FIFO(First In First Out:先入れ先出し)方式のキューを用いることが好適である。   The holding unit 15 a temporarily holds the layer 3 packet included in each layer 2 frame input from the transmission port acquisition unit 14 for each layer 3 priority. Specifically, the holding unit 15a has a storage area for each layer 3 priority, and each layer 2 frame has a storage area corresponding to the layer 3 priority acquired by the determination unit 12a. The layer 3 packet included in each of the two frames is temporarily stored. It is preferable to use a FIFO (First In First Out) type queue for each storage area.

転送部16は、保持部15aの各記憶領域に記憶される各レイヤ2フレームを、該各記憶領域に対応するレイヤ3優先度(判別部12aにより取得されたレイヤ3優先度)に基づく順序で、順次送信する。具体的には、保持部15aの各記憶領域から、各記憶領域に対応するレイヤ3優先度に応じて順次レイヤ3パケットを取り出す。そして、送出ポート取得部14から入力される宛先MACアドレスを宛先MACアドレスとして、自身に対応して設けられている通信ポート(ここでは端末装置30−2に接続している通信ポートとなる。)に付与されているMACアドレスを送信元MACアドレスとして、それぞれ含むレイヤ2ヘッダを付加し、レイヤ2フレームを生成する。転送部16は、こうして生成したレイヤ2フレームを上記通信ポートから送信する。   The transfer unit 16 processes each layer 2 frame stored in each storage area of the holding unit 15a in an order based on the layer 3 priority (layer 3 priority acquired by the determination unit 12a) corresponding to each storage area. , Send sequentially. Specifically, layer 3 packets are sequentially extracted from each storage area of the holding unit 15a according to the layer 3 priority corresponding to each storage area. Then, the destination MAC address input from the sending port acquisition unit 14 is used as the destination MAC address, and the communication port provided corresponding to itself (here, the communication port connected to the terminal device 30-2). A layer 2 header including the MAC address assigned to each as a source MAC address is added to generate a layer 2 frame. The transfer unit 16 transmits the layer 2 frame thus generated from the communication port.

転送部16による上記各記憶領域からのレイヤ3パケットの取り出しについて、例を挙げて詳しく説明する。   The extraction of the layer 3 packet from each storage area by the transfer unit 16 will be described in detail with an example.

一例では、転送部16は、まず、優先度「高」に対応して設けられる記憶領域(記憶領域M1とする。)にレイヤ3パケットが記憶されているか否かを判定する。そして、記憶されていると判定した場合、記憶領域M1に記憶されるレイヤ3パケットを取り出した上で、記憶領域M1にレイヤ3パケットが記憶されているか否かの判定処理から、同様の処理を繰り返す。一方、記憶されていないと判定した場合、転送部16は、優先度「低」に対応して設けられる記憶領域(記憶領域M2とする。)にレイヤ3パケットが記憶されているか否かを判定する。そして、記憶されていると判定した場合、記憶領域M2に記憶されるレイヤ3パケットを取り出し、記憶領域M1にレイヤ3パケットが記憶されているか否かの判定処理から、同様の処理を繰り返す。   In one example, the transfer unit 16 first determines whether or not a layer 3 packet is stored in a storage area (a storage area M1) provided corresponding to the priority “high”. If it is determined that the layer 3 packet is stored, the layer 3 packet stored in the storage area M1 is taken out, and the same process is performed from the determination process on whether or not the layer 3 packet is stored in the storage area M1. repeat. On the other hand, if it is determined that the layer 3 packet is not stored, the transfer unit 16 determines whether or not the layer 3 packet is stored in the storage area (referred to as storage area M2) provided corresponding to the priority “low”. To do. If it is determined that the layer 3 packet is stored, the layer 3 packet stored in the storage area M2 is taken out, and the same process is repeated from the determination process as to whether or not the layer 3 packet is stored in the storage area M1.

なお、上記例において、転送部16は、所定回数連続して記憶領域M1からレイヤ3パケットを取り出した場合、記憶領域M2に記憶されるレイヤ3パケットを取り出すための処理を行うこととしてもよい。こうすれば、優先度「低」のレイヤ2フレームも、適切な頻度で送信することができるようになる。   In the above example, the transfer unit 16 may perform processing for extracting the layer 3 packet stored in the storage area M2 when the layer 3 packet is extracted from the storage area M1 continuously a predetermined number of times. By doing this, it becomes possible to transmit the layer 2 frame with the priority “low” at an appropriate frequency.

次に、以上説明したレイヤ2スイッチ装置10aの処理を、該処理のフロー図を参照しながら再度より詳細に説明する。   Next, the processing of the layer 2 switch device 10a described above will be described again in more detail with reference to the flowchart of the processing.

図4は、レイヤ2スイッチ装置10aの処理フロー及び装置間の処理シーケンスを示す図である。同図では、まず、端末装置30−3がレイヤ3パケット及びレイヤ2ヘッダを含むレイヤ2フレームF2を端末装置30−2に対して送信する(S1)。   FIG. 4 is a diagram illustrating a processing flow of the layer 2 switch device 10a and a processing sequence between the devices. In the figure, first, the terminal device 30-3 transmits a layer 2 frame F2 including a layer 3 packet and a layer 2 header to the terminal device 30-2 (S1).

レイヤ2スイッチ装置10aの受信部11は、端末装置30−3が送信したレイヤ2フレームF2を受信し、レイヤ3情報取得部121及び送出ポート取得部14に渡す。レイヤ3情報取得部121は、渡されたレイヤ2フレームF2からレイヤ3情報を取得する(S2)。続いて、判別部12aは、取得されたレイヤ3情報に基づいてレイヤ3優先度を取得する(S3)。なお、ここではレイヤ3優先度「低」が取得されたとする。   The receiving unit 11 of the layer 2 switch device 10a receives the layer 2 frame F2 transmitted by the terminal device 30-3 and passes it to the layer 3 information acquisition unit 121 and the transmission port acquisition unit 14. The layer 3 information acquisition unit 121 acquires layer 3 information from the passed layer 2 frame F2 (S2). Subsequently, the determination unit 12a acquires the layer 3 priority based on the acquired layer 3 information (S3). Here, it is assumed that the layer 3 priority “low” is acquired.

保持部15aは、送出ポート取得部14から入力されるレイヤ2フレームF2に含まれるレイヤ3パケットを、判別部12aにより取得されたレイヤ3優先度「低」に対応する記憶領域(低優先度キュー)に保持する(S4)。   The holding unit 15a stores the layer 3 packet included in the layer 2 frame F2 input from the transmission port acquisition unit 14 in a storage area (low priority queue) corresponding to the layer 3 priority “low” acquired by the determination unit 12a. (S4).

ここで、端末装置30−1は、端末装置30−3がレイヤ2フレームF2を送信した直後に、レイヤ3パケット及びレイヤ2ヘッダを含むレイヤ2フレームF1を端末装置30−2に対して送信したとする(S5)。   Here, immediately after the terminal device 30-3 transmits the layer 2 frame F2, the terminal device 30-1 transmits the layer 2 frame F1 including the layer 3 packet and the layer 2 header to the terminal device 30-2. (S5).

レイヤ2スイッチ装置10aの受信部11は、端末装置30−1が送信したレイヤ2フレームF1を受信し、レイヤ3情報取得部121及び送出ポート取得部14に渡す。レイヤ3情報取得部121は、渡されたレイヤ2フレームF1からレイヤ3情報を取得する(S6)。続いて、判別部12aは、取得されたレイヤ3情報に基づいてレイヤ3優先度を取得する(S7)。なお、ここではレイヤ3優先度「高」が取得されたとする。   The receiving unit 11 of the layer 2 switch device 10a receives the layer 2 frame F1 transmitted by the terminal device 30-1, and passes it to the layer 3 information acquisition unit 121 and the transmission port acquisition unit 14. The layer 3 information acquisition unit 121 acquires layer 3 information from the passed layer 2 frame F1 (S6). Subsequently, the determination unit 12a acquires the layer 3 priority based on the acquired layer 3 information (S7). Here, it is assumed that the layer 3 priority “high” is acquired.

保持部15aは、送出ポート取得部14から入力されるレイヤ2フレームF1に含まれるレイヤ3パケットを、判別部12aにより取得されたレイヤ3優先度「高」に対応する記憶領域(高優先度キュー)に保持する(S8)。   The holding unit 15a stores the layer 3 packet included in the layer 2 frame F1 input from the transmission port acquisition unit 14 in a storage area (high priority queue) corresponding to the layer 3 priority “high” acquired by the determination unit 12a. (S8).

以上の処理が完了したところで、転送部16によるレイヤ3パケット取り出しタイミングが到来したとする。すると、取り出し時点では、低優先度キューと高優先度キューに1つずつレイヤ3パケットが記憶されており、転送部16は、まず高優先度キューに記憶されているものを取り出す。こうして取り出されるのは、レイヤ2フレームF1に含まれていたものである。転送部16は、取り出したレイヤ3パケットにレイヤ2ヘッダを付加することによりレイヤ2フレームF1’を生成し、端末装置30−2に対して送信する(S9)。次に、転送部16は、低優先度キューに記憶されているレイヤ3パケットを取り出す。こうして取り出されるのは、レイヤ2フレームF2に含まれていたものである。転送部16は、取り出したレイヤ3パケットにレイヤ2ヘッダを付加することによりレイヤ2フレームF2’を生成し、端末装置30−2に対して送信する(S10)。   It is assumed that the layer 3 packet extraction timing by the transfer unit 16 has arrived when the above processing is completed. Then, at the time of extraction, one layer 3 packet is stored in each of the low priority queue and the high priority queue, and the transfer unit 16 first extracts what is stored in the high priority queue. What is extracted in this way is what was included in the layer 2 frame F1. The transfer unit 16 adds a layer 2 header to the extracted layer 3 packet to generate a layer 2 frame F1 'and transmits it to the terminal device 30-2 (S9). Next, the transfer unit 16 takes out the layer 3 packet stored in the low priority queue. What is extracted in this way is what was included in the layer 2 frame F2. The transfer unit 16 generates a layer 2 frame F2 'by adding a layer 2 header to the extracted layer 3 packet, and transmits the layer 2 frame F2' to the terminal device 30-2 (S10).

以上説明したように、本実施の形態によれば、レイヤ2スイッチ装置10aがレイヤ3情報を取得し、さらに取得したレイヤ3情報に基づいてレイヤ3優先度(レイヤ3レベルでの優先度)を取得しているので、同一レイヤ3セグメント内で送受信されるレイヤ3パケットに含まれる通信データについて、レイヤ3レベルでの優先制御を行うことが実現される。その結果、重要度の高い通信データを優先的に処理できるようになる。   As described above, according to the present embodiment, the layer 2 switch apparatus 10a acquires layer 3 information, and further sets the layer 3 priority (priority at the layer 3 level) based on the acquired layer 3 information. Since it is acquired, priority control at the layer 3 level is realized for communication data included in a layer 3 packet transmitted and received within the same layer 3 segment. As a result, highly important communication data can be preferentially processed.

また、レイヤ2スイッチ装置10aは、IPマルチキャストアドレスの少なくとも一部を取得しているので、レイヤ3ヘッダを参照することなく、レイヤ3情報を取得することができる。   Moreover, since the layer 2 switch apparatus 10a has acquired at least a part of the IP multicast address, it can acquire the layer 3 information without referring to the layer 3 header.

さらに、レイヤ2スイッチ装置10aは、レイヤ3ヘッダに含まれる送信元IPアドレスや、宛先IPアドレス、TOSフィールド内の情報などに基づいて、レイヤ3レベルでの優先制御を行うことができるようになる。   Furthermore, the layer 2 switching device 10a can perform priority control at the layer 3 level based on the source IP address, the destination IP address, information in the TOS field, and the like included in the layer 3 header. .

また、上記優先制御を行うことにより、レイヤ2スイッチ装置10aは、帯域制御を行っていることになる。すなわち、優先度の高い通信データに広い帯域を割り当て、優先度の低い通信データに狭い帯域を割り当てているのと同様の効果を得ることができる。   Further, by performing the above priority control, the layer 2 switch apparatus 10a performs the band control. That is, it is possible to obtain the same effect as when a wide band is allocated to communication data with high priority and a narrow band is allocated to communication data with low priority.

また、送信元IPアドレスや、宛先IPアドレス、TOSフィールド内の情報などに基づいて上記優先制御を行う場合には、記憶部13の記憶内容に応じた優先制御を行うことになるため、端末装置30の設定に拠ることなく、IPネットワークシステム1全体として帯域を保証することができるようになる。   Further, when the above priority control is performed based on the source IP address, the destination IP address, information in the TOS field, etc., the priority control according to the storage contents of the storage unit 13 is performed. The bandwidth can be guaranteed for the entire IP network system 1 without depending on the setting of 30.

[実施の形態2]
図5は、実施の形態2にかかるレイヤ2スイッチ装置10bの機能ブロックを示す図である。同図に示すように、レイヤ2スイッチ装置10bは、レイヤ2スイッチ装置10aにおいて、判別部12aに代えて判別部12bを、保持部15aに代えて保持部15bを、それぞれ含むようにしたものである。以下、レイヤ2スイッチ装置10aとの相違点について説明する。
[Embodiment 2]
FIG. 5 is a diagram of functional blocks of the layer 2 switch device 10b according to the second embodiment. As shown in the figure, the layer 2 switch device 10b includes a determination unit 12b in place of the determination unit 12a and a holding unit 15b in place of the holding unit 15a in the layer 2 switch device 10a. is there. Hereinafter, differences from the layer 2 switch device 10a will be described.

判別部12bは、上述のレイヤ3優先度取得手段として機能するとともに、受信部11により受信されるレイヤ2フレームについて、レイヤ2通信制御にかかる優先度であるレイヤ2優先度を取得するレイヤ2優先度取得手段としても機能する。レイヤ2優先度は、元来レイヤ2スイッチ装置での優先制御のために用いられる優先度である。具体的な例を挙げると、IEEE(The Institute of Electrical and Electronics Engineers, Inc.)802.1pでは8段階のレイヤ2優先度を示す情報を含むCoS(Class of Service)フィールドをレイヤ2ヘッダに設けることが規定されており、判別部12bは、受信されるレイヤ2フレームのレイヤ2ヘッダのCoSフィールドから、その中に記述されているレイヤ2優先度を取得する。   The determination unit 12b functions as the above-described layer 3 priority acquisition unit, and acquires a layer 2 priority that is a priority related to layer 2 communication control for the layer 2 frame received by the reception unit 11. It also functions as a degree acquisition means. The layer 2 priority is a priority originally used for priority control in the layer 2 switching device. As a specific example, in IEEE (The Institute of Electrical and Electronics Engineers, Inc.) 802.1p, a CoS (Class of Service) field including information indicating eight levels of layer 2 priority is provided in the layer 2 header. The determination unit 12b acquires the layer 2 priority described therein from the CoS field of the layer 2 header of the received layer 2 frame.

次に、判別部12bは、以上のようにして取得したレイヤ2優先度及びレイヤ3優先度に基づき、総合優先度を決定する。表6は、レイヤ2優先度及びレイヤ3優先度の組み合わせと、総合優先度と、の関係の具体例を示している。この例では、レイヤ2優先度及びレイヤ3優先度は2段階であり、総合優先度は3段階となっている。記憶部13は、この例のようなレイヤ2優先度及びレイヤ3優先度の組み合わせ、総合優先度と、の関係を規定するテーブルを記憶しており、判別部12bは、このテーブルに基づいて総合優先度を決定する。   Next, the determination unit 12b determines the overall priority based on the layer 2 priority and the layer 3 priority acquired as described above. Table 6 shows a specific example of the relationship between the combination of the layer 2 priority and the layer 3 priority and the overall priority. In this example, the layer 2 priority and the layer 3 priority have two levels, and the total priority has three levels. The storage unit 13 stores a table that defines the relationship between the combination of the layer 2 priority and the layer 3 priority, and the overall priority as in this example, and the determination unit 12b performs the comprehensive based on this table. Determine the priority.

Figure 2008199168
Figure 2008199168

保持部15bは、送出ポート取得部14から入力される各レイヤ2フレームに含まれるレイヤ3パケットを、総合優先度ごとに一時的に保持する。具体的には、保持部15aは上記総合優先度ごとの記憶領域を有しており、各レイヤ2フレームについて判別部12aにより取得された総合優先度に対応する記憶領域に、該各レイヤ2フレームにそれぞれ含まれるレイヤ3パケットを一時的に記憶する。なお、各記憶領域には、FIFO方式のキューを用いることが好適である。   The holding unit 15b temporarily holds the layer 3 packet included in each layer 2 frame input from the transmission port acquisition unit 14 for each total priority. Specifically, the holding unit 15a has a storage area for each overall priority, and each layer 2 frame has a storage area corresponding to the overall priority acquired by the determination unit 12a for each layer 2 frame. Temporarily store the layer 3 packets respectively included in. It is preferable to use a FIFO queue for each storage area.

転送部16は、保持部15bの各記憶領域に記憶される各レイヤ2フレームを、該各記憶領域に対応する総合優先度(判別部12bにより取得された総合優先度)に基づく順序で、順次送信する。具体的には、保持部15bの各記憶領域から、各記憶領域に対応する総合優先度に応じて順次レイヤ3パケットを取り出す。そして、送出ポート取得部14から入力される宛先MACアドレスを宛先MACアドレスとして、送信する。具体的な送信方法については、実施の形態1に示したものと同様である。   The transfer unit 16 sequentially applies each layer 2 frame stored in each storage area of the holding unit 15b in the order based on the total priority (the total priority acquired by the determination unit 12b) corresponding to each storage area. Send. Specifically, layer 3 packets are sequentially extracted from each storage area of the holding unit 15b according to the overall priority corresponding to each storage area. Then, the destination MAC address input from the transmission port acquisition unit 14 is transmitted as the destination MAC address. A specific transmission method is the same as that shown in the first embodiment.

転送部16による上記各記憶領域からのレイヤ3パケットの取り出しについても実施の形態1で示したものと同様であるが、ここでは3段階の優先度(「最高」、「高」、「低」)を用いる場合の例を挙げて、再度詳しく説明しておく。   The extraction of the layer 3 packet from each of the storage areas by the transfer unit 16 is the same as that described in the first embodiment, but here, three levels of priority (“highest”, “high”, “low”) ) Will be described in detail again.

転送部16は、まず、優先度「最高」に対応して設けられる記憶領域(記憶領域N1とする。)にレイヤ3パケットが記憶されているか否かを判定する。そして、記憶されていると判定した場合、記憶領域N1に記憶されるレイヤ3パケットを取り出した上で、記憶領域N1にレイヤ3パケットが記憶されているか否かの判定処理から、同様の処理を繰り返す。一方、記憶されていないと判定した場合、転送部16は、優先度「高」に対応して設けられる記憶領域(記憶領域N2とする。)にレイヤ3パケットが記憶されているか否かを判定する。そして、記憶されていると判定した場合、記憶領域N2に記憶されるレイヤ3パケットを取り出し、記憶領域N1にレイヤ3パケットが記憶されているか否かの判定処理から、同様の処理を繰り返す。一方、記憶されていないと判定した場合、転送部16は、優先度「低」に対応して設けられる記憶領域(記憶領域N3とする。)にレイヤ3パケットが記憶されているか否かを判定する。そして、記憶されていると判定した場合、記憶領域N3に記憶されるレイヤ3パケットを取り出し、記憶領域N1にレイヤ3パケットが記憶されているか否かの判定処理から、同様の処理を繰り返す。   The transfer unit 16 first determines whether or not a layer 3 packet is stored in a storage area (a storage area N1) provided corresponding to the priority “highest”. If it is determined that the layer 3 packet is stored, the layer 3 packet stored in the storage area N1 is taken out, and the same process is performed from the determination process of whether or not the layer 3 packet is stored in the storage area N1. repeat. On the other hand, if it is determined that the layer 3 packet is not stored, the transfer unit 16 determines whether or not the layer 3 packet is stored in the storage area (referred to as storage area N2) provided corresponding to the priority “high”. To do. If it is determined that the layer 3 packet is stored, the layer 3 packet stored in the storage area N2 is taken out, and the same process is repeated from the determination process as to whether or not the layer 3 packet is stored in the storage area N1. On the other hand, if it is determined that the layer 3 packet is not stored, the transfer unit 16 determines whether or not the layer 3 packet is stored in the storage area (referred to as storage area N3) provided corresponding to the priority “low”. To do. If it is determined that the layer 3 packet is stored, the layer 3 packet stored in the storage area N3 is taken out, and the same process is repeated from the determination process as to whether or not the layer 3 packet is stored in the storage area N1.

なお、上記例において、転送部16は、所定回数連続して記憶領域N1からレイヤ3パケットを取り出した場合、記憶領域N2に記憶されるレイヤ3パケットを取り出すための処理を行うこととするとともに、所定回数連続して記憶領域N1又は記憶領域N2のいずれかからレイヤ3パケットを取り出した場合、記憶領域N3に記憶されるレイヤ3パケットを取り出すための処理を行うこととしてもよい。こうすれば、優先度「高」や優先度「低」のレイヤ2フレームも、適切な頻度で送信することができるようになる。   In the above example, the transfer unit 16 performs processing for extracting the layer 3 packet stored in the storage area N2 when the layer 3 packet is extracted from the storage area N1 continuously a predetermined number of times. When a layer 3 packet is extracted from either the storage area N1 or the storage area N2 for a predetermined number of times, a process for extracting the layer 3 packet stored in the storage area N3 may be performed. By doing this, it becomes possible to transmit layer 2 frames with high priority and low priority at an appropriate frequency.

次に、以上説明したレイヤ2スイッチ装置10bの処理を、該処理のフロー図を参照しながら再度より詳細に説明する。   Next, the process of the layer 2 switch device 10b described above will be described again in more detail with reference to the flowchart of the process.

図6は、レイヤ2スイッチ装置10bの処理フロー及び装置間の処理シーケンスを示す図である。同図では、まず、端末装置30−3がレイヤ3パケット及びレイヤ2ヘッダを含むレイヤ2フレームF2を端末装置30−2に対して送信する(S11)。   FIG. 6 is a diagram illustrating a processing flow of the layer 2 switching device 10b and a processing sequence between the devices. In the figure, first, the terminal device 30-3 transmits a layer 2 frame F2 including a layer 3 packet and a layer 2 header to the terminal device 30-2 (S11).

レイヤ2スイッチ装置10bの受信部11は、端末装置30−3が送信したレイヤ2フレームF2を受信し、レイヤ3情報取得部121及び送出ポート取得部14に渡す。レイヤ3情報取得部121は、渡されたレイヤ2フレームF2からレイヤ3情報を取得する(S12)。続いて、判別部12bは、取得されたレイヤ3情報に基づいてレイヤ3優先度を取得する(S13)。なお、ここではレイヤ3優先度「高」が取得されたとする。また、判別部12bは、レイヤ2フレームF2からレイヤ2優先度を取得する(S14)。なお、ここではレイヤ3優先度「低」が取得されたとする。表6を参照することにすると、この場合の総合優先度は、「高」となる。   The receiving unit 11 of the layer 2 switch device 10b receives the layer 2 frame F2 transmitted by the terminal device 30-3 and passes it to the layer 3 information acquisition unit 121 and the transmission port acquisition unit 14. The layer 3 information acquisition unit 121 acquires layer 3 information from the passed layer 2 frame F2 (S12). Subsequently, the determination unit 12b acquires the layer 3 priority based on the acquired layer 3 information (S13). Here, it is assumed that the layer 3 priority “high” is acquired. Further, the determination unit 12b acquires the layer 2 priority from the layer 2 frame F2 (S14). Here, it is assumed that the layer 3 priority “low” is acquired. Referring to Table 6, the total priority in this case is “high”.

保持部15bは、送出ポート取得部14から入力されるレイヤ2フレームF2に含まれるレイヤ3パケットを、判別部12bにより取得された総合優先度「高」に対応する記憶領域(高優先度キュー)に保持する(S15)。   The holding unit 15b stores the layer 3 packet included in the layer 2 frame F2 input from the transmission port acquisition unit 14 in a storage area (high priority queue) corresponding to the overall priority “high” acquired by the determination unit 12b. (S15).

ここで、端末装置30−1は、端末装置30−3がレイヤ2フレームF2を送信した直後に、レイヤ3パケット及びレイヤ2ヘッダを含むレイヤ2フレームF1を端末装置30−2に対して送信したとする(S16)。   Here, immediately after the terminal device 30-3 transmits the layer 2 frame F2, the terminal device 30-1 transmits the layer 2 frame F1 including the layer 3 packet and the layer 2 header to the terminal device 30-2. (S16).

レイヤ2スイッチ装置10bの受信部11は、端末装置30−1が送信したレイヤ2フレームF1を受信し、レイヤ3情報取得部121及び送出ポート取得部14に渡す。レイヤ3情報取得部121は、渡されたレイヤ2フレームF1からレイヤ3情報を取得する(S17)。続いて、判別部12bは、取得されたレイヤ3情報に基づいてレイヤ3優先度を取得する(S18)。なお、ここではレイヤ3優先度「高」が取得されたとする。また、判別部12bは、レイヤ2フレームF1からレイヤ2優先度を取得する(S19)。なお、ここではレイヤ3優先度「高」が取得されたとする。再度表6を参照すると、この場合の総合優先度は、「最高」となる。   The receiving unit 11 of the layer 2 switch device 10b receives the layer 2 frame F1 transmitted by the terminal device 30-1, and passes it to the layer 3 information acquisition unit 121 and the transmission port acquisition unit 14. The layer 3 information acquisition unit 121 acquires layer 3 information from the passed layer 2 frame F1 (S17). Subsequently, the determination unit 12b acquires the layer 3 priority based on the acquired layer 3 information (S18). Here, it is assumed that the layer 3 priority “high” is acquired. Further, the determination unit 12b acquires the layer 2 priority from the layer 2 frame F1 (S19). Here, it is assumed that the layer 3 priority “high” is acquired. Referring to Table 6 again, the overall priority in this case is “highest”.

保持部15bは、送出ポート取得部14から入力されるレイヤ2フレームF1に含まれるレイヤ3パケットを、判別部12bにより取得された総合優先度「最高」に対応する記憶領域(最高優先度キュー)に保持する(S20)。   The holding unit 15b stores a layer 3 packet included in the layer 2 frame F1 input from the transmission port acquisition unit 14 in a storage area (highest priority queue) corresponding to the overall priority “highest” acquired by the determination unit 12b. (S20).

以上の処理が完了したところで、転送部16によるレイヤ3パケット取り出しタイミングが到来したとする。すると、取り出し時点では、高優先度キューと最高優先度キューに1つずつレイヤ3パケットが記憶されており、転送部16は、まず最高優先度キューに記憶されているものを取り出す。こうして取り出されるのは、レイヤ2フレームF1に含まれていたものである。転送部16は、取り出したレイヤ3パケットにレイヤ2ヘッダを付加することによりレイヤ2フレームF1’を生成し、端末装置30−2に対して送信する(S21)。次に、転送部16は、高優先度キューに記憶されているレイヤ3パケットを取り出す。こうして取り出されるのは、レイヤ2フレームF2に含まれていたものである。転送部16は、取り出したレイヤ3パケットにレイヤ2ヘッダを付加することによりレイヤ2フレームF2’を生成し、端末装置30−2に対して送信する(S22)。   It is assumed that the layer 3 packet extraction timing by the transfer unit 16 has arrived when the above processing is completed. Then, at the time of extraction, one layer 3 packet is stored in each of the high priority queue and the highest priority queue, and the transfer unit 16 first extracts what is stored in the highest priority queue. What is extracted in this way is what was included in the layer 2 frame F1. The transfer unit 16 adds a layer 2 header to the extracted layer 3 packet to generate a layer 2 frame F1 'and transmits it to the terminal device 30-2 (S21). Next, the transfer unit 16 takes out the layer 3 packet stored in the high priority queue. What is extracted in this way is what was included in the layer 2 frame F2. The transfer unit 16 adds a layer 2 header to the extracted layer 3 packet to generate a layer 2 frame F2 'and transmits it to the terminal device 30-2 (S22).

以上説明したように、レイヤ2スイッチ装置10bによれば、レイヤ2レベルでの優先制御に併せて、レイヤ3レベルでの優先制御を行うようにすることができる。   As described above, according to the layer 2 switching device 10b, priority control at the layer 3 level can be performed together with priority control at the layer 2 level.

以上本発明の実施の形態について説明したが、本発明はこうした実施の形態に何等限定されるものではなく、本発明は、その要旨を逸脱しない範囲において、種々なる態様で実施され得ることは勿論である。   Although the embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and the present invention can of course be implemented in various modes without departing from the scope of the present invention. It is.

例えば、レイヤ2スイッチ装置10の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより、上記各処理を行ってもよい。
ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものであってもよい。また、この「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、フラッシュメモリ等の書き込み可能な不揮発性メモリ、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。
さらに、「コンピュータ読み取り可能な記録媒体」には、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
さらに、上記プログラムは、上述した各機能の一部を実現するためのものであってもよい。さらに、上述した各機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であってもよい。
For example, by recording a program for realizing the function of the layer 2 switch device 10 on a computer-readable recording medium, causing the computer system to read and execute the program recorded on the recording medium, each of the above processes May be performed.
Here, the “computer system” may include an OS and hardware such as peripheral devices. Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” means a flexible disk, a magneto-optical disk, a ROM, a writable nonvolatile memory such as a flash memory, a portable medium such as a CD-ROM, a hard disk built in a computer system, etc. This is a storage device.
Furthermore, the “computer-readable recording medium” includes a volatile memory (for example, DRAM (DRAM) in a computer system that becomes a server or a client when a program is transmitted through a network such as the Internet or a communication line such as a telephone line. Dynamic Random Access Memory)), etc., which hold programs for a certain period of time.
The program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
Further, the program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve each function mentioned above in combination with the program already recorded on the computer system, what is called a difference file (difference program) may be sufficient.

本発明の実施の形態にかかるIPネットワークシステムのシステム構成を示す図である。It is a figure which shows the system configuration | structure of the IP network system concerning embodiment of this invention. 本発明の実施の形態1にかかるレイヤ2スイッチ装置の機能ブロックを示す図である。It is a figure which shows the functional block of the layer 2 switch apparatus concerning Embodiment 1 of this invention. (a)は、IPv4におけるIPマルチキャストアドレスの例を示す図である。(b)は、IPv4におけるMACマルチキャストアドレスの例を示す図である。(c)は、IPv6におけるIPマルチキャストアドレスの例を示す図である。(d)は、IPv6におけるMACマルチキャストアドレスの例を示す図である。(A) is a figure which shows the example of the IP multicast address in IPv4. (B) is a figure which shows the example of the MAC multicast address in IPv4. (C) is a figure which shows the example of the IP multicast address in IPv6. (D) is a figure which shows the example of the MAC multicast address in IPv6. 本発明の実施の形態1にかかるレイヤ2スイッチ装置の処理フロー及び装置間の処理シーケンスを示す図である。It is a figure which shows the processing flow of the layer 2 switch apparatus concerning Embodiment 1 of this invention, and the process sequence between apparatuses. 本発明の実施の形態2にかかるレイヤ2スイッチ装置の機能ブロックを示す図である。It is a figure which shows the functional block of the layer 2 switch apparatus concerning Embodiment 2 of this invention. 本発明の実施の形態2にかかるレイヤ2スイッチ装置の処理フロー及び装置間の処理シーケンスを示す図である。It is a figure which shows the processing flow of the layer 2 switch apparatus concerning Embodiment 2 of this invention, and the processing sequence between apparatuses.

符号の説明Explanation of symbols

1 IPネットワークシステム、
10,10a,10b レイヤ2スイッチ装置、
11 受信部、
12a,12b 判別部、
13 記憶部、
14 送出ポート取得部、
15a,15b 保持部、
16 転送部、
20 レイヤ3ルーティング装置、
30 端末装置、
121 レイヤ3情報取得部。
1 IP network system,
10, 10a, 10b Layer 2 switch device,
11 Receiver,
12a, 12b discriminator,
13 storage unit,
14 Sending port acquisition unit,
15a, 15b holding part,
16 Transfer section,
20 Layer 3 routing device,
30 terminal device,
121 Layer 3 information acquisition unit.

Claims (6)

複数のレイヤ2フレームを順次受信する受信手段と、
前記受信手段により受信されるレイヤ2フレームから、レイヤ3通信制御に関する情報であるレイヤ3情報を取得するレイヤ3情報取得手段と、
前記各レイヤ2フレームについて、前記レイヤ3情報取得手段により取得されるレイヤ3情報に基づいて、レイヤ3通信制御にかかる優先度であるレイヤ3優先度を取得するレイヤ3優先度取得手段と、
前記レイヤ3優先度取得手段により取得されるレイヤ3優先度に基づく順序で、前記各レイヤ2フレームを順次送信する送信手段と、
を含むことを特徴とするレイヤ2スイッチ装置。
Receiving means for sequentially receiving a plurality of layer 2 frames;
Layer 3 information acquisition means for acquiring Layer 3 information, which is information related to Layer 3 communication control, from the Layer 2 frame received by the reception means;
For each layer 2 frame, based on the layer 3 information acquired by the layer 3 information acquisition unit, a layer 3 priority acquisition unit that acquires a layer 3 priority that is a priority for layer 3 communication control;
Transmitting means for sequentially transmitting each of the layer 2 frames in an order based on the layer 3 priority acquired by the layer 3 priority acquiring means;
A layer 2 switching device comprising:
請求項1に記載のレイヤ2スイッチ装置において、
前記各レイヤ2フレームのレイヤ2ヘッダはIPマルチキャストアドレスの少なくとも一部を含み、
前記レイヤ3情報取得手段が取得する前記レイヤ3情報は、前記受信手段により受信されるレイヤ2フレームのレイヤ2ヘッダに含まれる前記IPマルチキャストアドレスの少なくとも一部である、
ことを特徴とするレイヤ2スイッチ装置。
The layer 2 switch device according to claim 1, wherein
The layer 2 header of each layer 2 frame includes at least part of an IP multicast address;
The layer 3 information acquired by the layer 3 information acquisition unit is at least a part of the IP multicast address included in a layer 2 header of a layer 2 frame received by the reception unit.
A layer 2 switching device.
請求項1に記載のレイヤ2スイッチ装置において、
前記レイヤ3情報取得手段は、前記受信手段により受信されるレイヤ2フレームに含まれるレイヤ3パケットから、前記レイヤ3情報を取得する、
ことを特徴とするレイヤ2スイッチ装置。
The layer 2 switch device according to claim 1, wherein
The layer 3 information acquisition means acquires the layer 3 information from a layer 3 packet included in a layer 2 frame received by the reception means;
A layer 2 switching device.
請求項1から3までのいずれかに記載のレイヤ2スイッチ装置において、
前記レイヤ3情報と、前記レイヤ3優先度と、を対応付けて記憶する記憶手段、
を含み、
前記レイヤ3優先度取得手段は、前記レイヤ3情報取得手段により取得されるレイヤ3情報と対応付けて前記記憶手段に記憶されるレイヤ3優先度を取得することにより、前記レイヤ3優先度を取得する、
ことを特徴とするレイヤ2スイッチ装置。
In the layer 2 switch apparatus in any one of Claim 1 to 3,
Storage means for storing the layer 3 information and the layer 3 priority in association with each other;
Including
The layer 3 priority acquisition unit acquires the layer 3 priority by acquiring the layer 3 priority stored in the storage unit in association with the layer 3 information acquired by the layer 3 information acquisition unit. To
A layer 2 switching device.
請求項1から4までのいずれかに記載のレイヤ2スイッチ装置において、
前記各レイヤ2フレームについて、レイヤ2通信制御にかかる優先度であるレイヤ2優先度を取得するレイヤ2優先度取得手段と、
前記送信手段は、前記レイヤ2優先度取得手段により取得されるレイヤ2優先度と、前記レイヤ3優先度取得手段により取得されるレイヤ3優先度と、に基づく順序で、前記各レイヤ2フレームを順次送信する、
ことを特徴とするレイヤ2スイッチ装置。
In the layer 2 switch apparatus in any one of Claim 1 to 4,
Layer 2 priority acquisition means for acquiring a layer 2 priority that is a priority related to layer 2 communication control for each layer 2 frame;
The transmission means outputs the layer 2 frames in an order based on the layer 2 priority acquired by the layer 2 priority acquisition means and the layer 3 priority acquired by the layer 3 priority acquisition means. Send sequentially,
A layer 2 switching device.
複数のレイヤ2フレームを順次受信する受信ステップと、
前記受信ステップにおいて受信されるレイヤ2フレームから、レイヤ3通信制御に関する情報であるレイヤ3情報を取得するレイヤ3情報取得ステップと、
前記各レイヤ2フレームについて、前記レイヤ3情報取得ステップにおいて取得されるレイヤ3情報に基づいて、レイヤ3通信制御にかかる優先度であるレイヤ3優先度を取得するレイヤ3優先度取得ステップと、
前記レイヤ3優先度取得ステップにおいて取得されるレイヤ3優先度に基づく順序で、前記各レイヤ2フレームを順次送信する送信ステップと、
を含むことを特徴とするレイヤ2フレーム送信方法。
A receiving step of sequentially receiving a plurality of layer 2 frames;
A layer 3 information acquisition step of acquiring layer 3 information, which is information related to layer 3 communication control, from the layer 2 frame received in the reception step;
For each of the layer 2 frames, a layer 3 priority acquisition step for acquiring a layer 3 priority that is a priority for layer 3 communication control based on the layer 3 information acquired in the layer 3 information acquisition step;
A transmission step of sequentially transmitting each of the layer 2 frames in an order based on the layer 3 priority acquired in the layer 3 priority acquisition step;
A layer 2 frame transmission method comprising:
JP2007030372A 2007-02-09 2007-02-09 Layer 2 switch device and layer 2 frame transmission method Withdrawn JP2008199168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007030372A JP2008199168A (en) 2007-02-09 2007-02-09 Layer 2 switch device and layer 2 frame transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007030372A JP2008199168A (en) 2007-02-09 2007-02-09 Layer 2 switch device and layer 2 frame transmission method

Publications (1)

Publication Number Publication Date
JP2008199168A true JP2008199168A (en) 2008-08-28

Family

ID=39757745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007030372A Withdrawn JP2008199168A (en) 2007-02-09 2007-02-09 Layer 2 switch device and layer 2 frame transmission method

Country Status (1)

Country Link
JP (1) JP2008199168A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012129997A (en) * 2010-12-16 2012-07-05 Internatl Business Mach Corp <Ibm> Method and apparatus for adding qos level to packet, and computer program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012129997A (en) * 2010-12-16 2012-07-05 Internatl Business Mach Corp <Ibm> Method and apparatus for adding qos level to packet, and computer program

Similar Documents

Publication Publication Date Title
US11374848B2 (en) Explicit routing with network function encoding
EP3863237B1 (en) Packet forwarding method, packet transmission device, and packet reception device
RU2735725C1 (en) Method and device for processing and sending packets, pe node and node
US10728149B1 (en) Packet replication routing with destination address swap
US9634929B2 (en) Using context labels to scale MAC tables on computer network edge devices
US20200382406A1 (en) Routing table creation method, electronic device, and network
US10425327B2 (en) System and method for routing in software defined networks using a flow header
TWI277322B (en) Switch capable of controlling data packet transmission and related method
JP5880570B2 (en) Mapping server device, network system, packet transfer method and program
CN109861924A (en) Message sending and processing method and device, PE node, node
WO2022062506A1 (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN112491706B (en) Data message processing method and device, storage medium, and electronic device
CN114338495B (en) Business processing method and related equipment
JPWO2006093299A1 (en) Tunneling device, tunnel frame sorting method used therefor, and program therefor
Tiwari et al. The comprehensive review: Internet protocol (IP) address a primer for digital connectivity
CN113726653A (en) Message processing method and device
CN107135118B (en) Unicast communication method, gateway and VXLAN access equipment
US20150032898A1 (en) Method for establishing a virtual community network connection and a system for implementing said method
CN101668010A (en) Method and device for sharing multi-interface data stream load in WiMAX system
CN108667731A (en) A kind of processing and device based on BIER information
JP2008199168A (en) Layer 2 switch device and layer 2 frame transmission method
CN113840016B (en) Message processing method, device and computer readable storage medium
Cowley Network Protocols
Kumar et al. Computer Network-IP Address & Subnetting
JP2006514496A (en) Virtual private network interconnection method in disconnected mode

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100511