JP2010239293A - Packet communication apparatus, packet communication method and program - Google Patents

Packet communication apparatus, packet communication method and program Download PDF

Info

Publication number
JP2010239293A
JP2010239293A JP2009083295A JP2009083295A JP2010239293A JP 2010239293 A JP2010239293 A JP 2010239293A JP 2009083295 A JP2009083295 A JP 2009083295A JP 2009083295 A JP2009083295 A JP 2009083295A JP 2010239293 A JP2010239293 A JP 2010239293A
Authority
JP
Japan
Prior art keywords
packet
packet size
size
maximum
vlan
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
JP2009083295A
Other languages
Japanese (ja)
Inventor
Masakazu Sato
雅一 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2009083295A priority Critical patent/JP2010239293A/en
Publication of JP2010239293A publication Critical patent/JP2010239293A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To avoid transfer processing of a large-sized packet that is wrongly distributed. <P>SOLUTION: When a packet-receiving port 11 receives a VLAN packet from another apparatus, a packet-size monitoring unit 14 acquires the packet size of the VLAN packet received by the packet-receiving port 11 and a VLAN monitoring unit 13 acquires a VLAN ID, included in the header of the VLAN packet received by the packet-receiving port 11. Next, a packet-transfer processing unit 12 acquires from an MTU size setting unit 15 an MTU size, corresponding to the VLAN ID acquired by the VLAN monitoring unit 13; when the packet size acquired by the packet-size monitoring unit 14 is equal to or smaller than the MTU size acquired by the packet-transfer processing unit 12, a packet-transmitting port 16 transfers the VLAN packet received by the packet-receiving port 11. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、複数のネットワークに接続され、パケットの処理を行うパケット通信装置、パケット通信方法及びプログラムに関する。   The present invention relates to a packet communication apparatus, a packet communication method, and a program that are connected to a plurality of networks and process packets.

従来、ブロードキャストパケットによるネットワークの混雑の回避や、ネットワークの特定の部分へ運用ポリシーの適用のために、物理的な接続形態とは独立に、端末の仮想的なグループを設定するVLAN(Virtual Local Area Network:仮想構内通信網)という技術が用いられている。VLANによるグループの設定は、スイッチ等のパケット通信装置の内部でネットワークを複数のグループに分割することで行われる。
従来のパケット通信装置の例として、例えば特許文献1を参照すると良い。
Conventionally, a VLAN (Virtual Local Area) for setting a virtual group of terminals independently of a physical connection form in order to avoid network congestion due to broadcast packets and to apply an operation policy to a specific part of the network. Network: Virtual on-site communication network) technology is used. Setting of a group by VLAN is performed by dividing a network into a plurality of groups inside a packet communication device such as a switch.
As an example of a conventional packet communication device, for example, Patent Document 1 may be referred to.

図4は、従来のパケット通信装置の構成を示す概略ブロック図である。
従来のパケット通信装置80は、パケット受信ポート81、パケット転送処理部82、パケットサイズ監視部83、MTU(Maximum Transmission Unit:最大転送ユニット)サイズ設定部84、パケット送信ポート85を備える。
パケット受信ポート81は、他の装置から複数のVLANパケットを受信する。
パケット転送処理部82は、VLANパケットを転送するか廃棄するかの何れかの処理を行う。
パケットサイズ監視部83は、VLANパケットの受信パケットサイズを取得する。
MTUサイズ設定部84は、パケット通信装置80が1回の転送で送信できるデータの最大値を示すMTUサイズを記憶する。MTUサイズ設定部84が記憶するMTUサイズは、管理制御装置90等によって設定される。
パケット送信ポート85は、複数のVLANパケットを転送する。
FIG. 4 is a schematic block diagram showing a configuration of a conventional packet communication device.
The conventional packet communication device 80 includes a packet reception port 81, a packet transfer processing unit 82, a packet size monitoring unit 83, an MTU (Maximum Transmission Unit) size setting unit 84, and a packet transmission port 85.
The packet reception port 81 receives a plurality of VLAN packets from other devices.
The packet transfer processing unit 82 performs either processing of transferring or discarding the VLAN packet.
The packet size monitoring unit 83 acquires the received packet size of the VLAN packet.
The MTU size setting unit 84 stores an MTU size that indicates the maximum value of data that the packet communication apparatus 80 can transmit in one transfer. The MTU size stored in the MTU size setting unit 84 is set by the management control device 90 or the like.
The packet transmission port 85 transfers a plurality of VLAN packets.

次に、従来のパケット通信装置80の動作を説明する。
パケット受信ポート81がVLANパケットを受信すると、パケットサイズ監視部83は、VLANパケットのパケットサイズを取得する。パケットサイズ監視部83がパケットサイズを取得すると、パケット転送処理部82は、MTUサイズ設定部84からMTUサイズを取得し、取得したパケットサイズと比較する。パケット転送処理部82は、取得したパケットサイズがMTUサイズ以下である場合、パケット送信ポート85を介してパケットを転送し、取得したパケットサイズがMTUサイズより大きい場合、パケットを廃棄する。
Next, the operation of the conventional packet communication device 80 will be described.
When the packet reception port 81 receives a VLAN packet, the packet size monitoring unit 83 acquires the packet size of the VLAN packet. When the packet size monitoring unit 83 acquires the packet size, the packet transfer processing unit 82 acquires the MTU size from the MTU size setting unit 84 and compares it with the acquired packet size. The packet transfer processing unit 82 transfers the packet via the packet transmission port 85 when the acquired packet size is equal to or smaller than the MTU size, and discards the packet when the acquired packet size is larger than the MTU size.

従来のパケット通信装置80のMTUサイズ設定部は、1つのポートに対してMTUサイズを1つ記憶している。そのため、1つのポートに複数のVLANが割り当てられる場合、MTUサイズとして複数のVLANの最も大きいパケットサイズが転送可能となる値を設定しておく必要がある。   The MTU size setting unit of the conventional packet communication device 80 stores one MTU size for one port. Therefore, when a plurality of VLANs are assigned to one port, it is necessary to set a value that enables transfer of the largest packet size of the plurality of VLANs as the MTU size.

特開平5−153131号公報JP-A-5-153131

しかしながら、従来のパケット通信装置は、1つのポートに対して最も大きいパケットサイズが転送可能となるMTUサイズを1つだけ記憶しているため、正常時にあるサイズ以下のパケットしか流れないように設定されているVLANにおいて、サイズの大きいパケットが誤配送された場合、そのパケットを廃棄することができず、転送処理に時間がかかってしまうという問題があった。また、本来は廃棄すべきパケットを下流のネットワークに転送してしまうため、下流のネットワークにおいて帯域が無駄に使用され、ネットワークの遅延が発生してしまう可能性があった。
本発明は上記の点に鑑みてなされたものであり、その目的は、誤配送された大きいサイズのパケットの転送処理を回避するパケット通信装置、パケット通信方法及びプログラムを提供することにある。
However, since the conventional packet communication device stores only one MTU size that allows transfer of the largest packet size to one port, it is set so that only packets of a certain size or less can flow during normal operation. When a large packet is misdelivered in a VLAN, the packet cannot be discarded and the transfer process takes time. In addition, since packets that should be discarded are transferred to the downstream network, the bandwidth is wasted in the downstream network, which may cause network delay.
The present invention has been made in view of the above points, and an object of the present invention is to provide a packet communication device, a packet communication method, and a program that avoid a transfer process of a large size packet that has been misdelivered.

本発明は上記の課題を解決するためになされたものであり、複数のネットワークに接続され、パケットの処理を行うパケット通信装置であって、他の装置から前記パケットを受信する受信手段と、前記受信手段が受信したパケットのパケットサイズを取得するパケットサイズ取得手段と、前記受信手段が受信したパケットのヘッダに含まれるネットワーク識別子を取得するネットワーク識別子取得手段と、複数のネットワーク識別子に対して、当該ネットワーク識別子が示すネットワークにおいて転送を許可するパケットサイズの最大値を関連付けて記憶する最大パケットサイズ記憶手段と、前記最大パケットサイズ記憶手段が記憶する複数のネットワーク識別子に対するパケットサイズの最大値の中から、前記ネットワーク識別子取得手段が取得したネットワーク識別子に対応するパケットサイズの最大値を取得する最大パケットサイズ取得手段と、前記パケットサイズ取得手段が取得したパケットサイズが、前記最大パケットサイズ取得手段が取得したパケットサイズの最大値以下である場合に、前記受信手段が受信したパケットを転送する送信手段と、を備えることを特徴とする。   The present invention has been made to solve the above-described problems, and is a packet communication device that is connected to a plurality of networks and processes packets, and receiving means that receives the packet from another device; and A packet size acquisition unit that acquires a packet size of a packet received by the reception unit; a network identifier acquisition unit that acquires a network identifier included in a header of the packet received by the reception unit; and a plurality of network identifiers, Maximum packet size storage means that associates and stores the maximum packet size that is permitted to be transferred in the network indicated by the network identifier, and the maximum packet size for the plurality of network identifiers stored by the maximum packet size storage means, The network identifier acquisition means Maximum packet size acquisition means for acquiring the maximum packet size corresponding to the acquired network identifier, and the packet size acquired by the packet size acquisition means is less than or equal to the maximum packet size acquired by the maximum packet size acquisition means In some cases, the receiving means comprises transmitting means for transferring a packet received.

また、本発明は、複数のネットワークに接続され、パケットの処理を行い、複数のネットワーク識別子に対して、当該ネットワーク識別子が示すネットワークにおいて転送を許可するパケットサイズの最大値を関連付けて記憶する最大パケットサイズ記憶手段を備えるパケット通信装置を用いたパケット通信方法であって、受信手段は、他の装置から前記パケットを受信し、パケットサイズ取得手段は、前記受信手段が受信したパケットのパケットサイズを取得し、ネットワーク識別子取得手段は、前記受信手段が受信したパケットのヘッダに含まれる前記ネットワーク識別子を取得し、最大パケットサイズ取得手段は、前記最大パケットサイズ記憶手段が記憶する複数のネットワーク識別子に対するパケットサイズの最大値の中から、前記ネットワーク識別子取得手段が取得したネットワーク識別子に対応するパケットサイズの最大値を取得し、送信手段は、前記パケットサイズ取得手段が取得したパケットサイズが、前記最大パケットサイズ取得手段が取得したパケットサイズの最大値以下である場合に、前記受信手段が受信したパケットを転送する、ことを特徴とする。   The present invention also relates to a maximum packet that is connected to a plurality of networks, processes packets, and stores a plurality of network identifiers in association with a maximum value of a packet size permitted to be transferred in the network indicated by the network identifier. A packet communication method using a packet communication device including a size storage unit, wherein a reception unit receives the packet from another device, and a packet size acquisition unit acquires a packet size of the packet received by the reception unit The network identifier acquisition unit acquires the network identifier included in the header of the packet received by the reception unit, and the maximum packet size acquisition unit stores packet sizes for a plurality of network identifiers stored in the maximum packet size storage unit. From the maximum value of The network identifier obtained by the network identifier obtaining means acquires the maximum value of the packet size, and the transmitting means obtains the maximum packet size obtained by the maximum packet size obtaining means by the packet size obtained by the packet size obtaining means. When the value is equal to or less than the value, the reception unit transfers the received packet.

また、本発明は、複数のネットワークに接続され、パケットの処理を行い、複数のネットワーク識別子に対して、当該ネットワーク識別子が示すネットワークにおいて転送を許可するパケットサイズの最大値を関連付けて記憶する最大パケットサイズ記憶手段を備えるパケット通信装置を、他の装置から前記パケットを受信する受信手段、前記受信手段が受信したパケットのパケットサイズを取得するパケットサイズ取得手段、前記受信手段が受信したパケットのヘッダに含まれる前記ネットワーク識別子を取得するネットワーク識別子取得手段、前記最大パケットサイズ記憶手段が記憶する複数のネットワーク識別子に対するパケットサイズの最大値の中から、前記ネットワーク識別子取得手段が取得したネットワーク識別子に対応するパケットサイズの最大値を取得する最大パケットサイズ取得手段、前記パケットサイズ取得手段が取得したパケットサイズが、前記最大パケットサイズ取得手段が取得したパケットサイズの最大値以下である場合に、前記受信手段が受信したパケットを転送する送信手段、として動作させるためのプログラムである。   The present invention also relates to a maximum packet that is connected to a plurality of networks, processes packets, and stores a plurality of network identifiers in association with a maximum value of a packet size permitted to be transferred in the network indicated by the network identifier. A packet communication device comprising size storage means is received in a receiving means for receiving the packet from another device, a packet size obtaining means for obtaining the packet size of the packet received by the receiving means, and a header of the packet received by the receiving means. A network identifier acquisition means for acquiring the network identifier included, and a packet corresponding to the network identifier acquired by the network identifier acquisition means from among the maximum packet size for a plurality of network identifiers stored in the maximum packet size storage means. A maximum packet size acquisition unit for acquiring a maximum packet size, and the reception unit receives the packet size acquired by the packet size acquisition unit when the packet size acquired by the maximum packet size acquisition unit is less than or equal to the maximum value of the packet size acquired by the maximum packet size acquisition unit. This is a program for operating as a transmission means for transferring the transmitted packet.

本発明によれば、ネットワーク毎に転送を許可するパケットサイズの最大値を設定し、受信したパケットのパケットサイズが、送信先のネットワークにおけるパケットサイズの最大値以下である場合にのみ転送処理を行う。これにより、誤配送された大きいサイズのパケットにより、本来不要な転送処理が発生することを防止することができる。   According to the present invention, the maximum value of the packet size permitted to be transferred is set for each network, and the transfer process is performed only when the packet size of the received packet is equal to or smaller than the maximum value of the packet size in the destination network. . As a result, it is possible to prevent an originally unnecessary transfer process from occurring due to a large-sized packet that has been misdelivered.

本発明の一実施形態によるパケット通信装置の構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of the packet communication apparatus by one Embodiment of this invention. MTUサイズ設定部が記憶するMTUテーブルを示す図である。It is a figure which shows the MTU table which an MTU size setting part memorize | stores. パケット通信装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a packet communication apparatus. 従来のパケット通信装置の構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of the conventional packet communication apparatus.

以下、図面を参照しながら本発明の実施形態について詳しく説明する。
図1は、本発明の一実施形態によるパケット通信装置の構成を示す概略ブロック図である。
パケット通信装置10は、パケット受信ポート11(受信手段)、パケット転送処理部12(最大パケットサイズ取得手段、廃棄手段)、VLAN監視部13(ネットワーク識別子取得手段)、パケットサイズ監視部14(パケットサイズ取得手段)、MTUサイズ設定部15(最大パケットサイズ記憶部)、パケット送信ポート16(送信手段)を備える。
パケット受信ポート11は、他の装置から複数のVLANパケットを受信する。
パケット転送処理部12は、VLANパケットを転送するか廃棄するかの何れかの処理を行う。
VLAN監視部13は、VLANパケットのヘッダに含まれるVLAN ID(ネットワーク識別子)を取得する。VLAN IDは、VLANパケットの送信先のVLANを示す識別子である。
パケットサイズ監視部14は、VLANパケットの受信パケットサイズを取得する。
MTUサイズ設定部15は、パケット通信装置10を経由するVLANを示すVLAN IDと、VLANにおいて1回の転送で送信できるデータの最大値を示すMTUサイズとを関連付けて格納するMTUテーブルを記憶する。MTUサイズ設定部15が記憶する各VLANのMTUサイズは、管理制御装置20等によって設定される。
パケット送信ポート16は、複数のVLANパケットを転送する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a schematic block diagram showing the configuration of a packet communication apparatus according to an embodiment of the present invention.
The packet communication device 10 includes a packet reception port 11 (reception unit), a packet transfer processing unit 12 (maximum packet size acquisition unit, discard unit), a VLAN monitoring unit 13 (network identifier acquisition unit), and a packet size monitoring unit 14 (packet size). Acquisition unit), an MTU size setting unit 15 (maximum packet size storage unit), and a packet transmission port 16 (transmission unit).
The packet reception port 11 receives a plurality of VLAN packets from other devices.
The packet transfer processing unit 12 performs either processing of transferring or discarding the VLAN packet.
The VLAN monitoring unit 13 acquires a VLAN ID (network identifier) included in the header of the VLAN packet. The VLAN ID is an identifier indicating the VLAN to which the VLAN packet is transmitted.
The packet size monitoring unit 14 acquires the received packet size of the VLAN packet.
The MTU size setting unit 15 stores an MTU table that associates and stores a VLAN ID that indicates a VLAN that passes through the packet communication apparatus 10 and an MTU size that indicates the maximum value of data that can be transmitted by one transfer in the VLAN. The MTU size of each VLAN stored in the MTU size setting unit 15 is set by the management control device 20 or the like.
The packet transmission port 16 transfers a plurality of VLAN packets.

図2は、MTUサイズ設定部が記憶するMTUテーブルを示す図である。
MTUサイズ設定部15が記憶するMTUテーブルは、VLAN IDとMTUサイズとを関連付けて記憶する。図2に示すMTUテーブルは、VLAN IDが100のVLANのMTUサイズは64バイト、VLAN IDが150のVLANのMTUサイズは256バイトというように、VLAN ID毎に個別にMTUサイズが設定されている。また、個別にMTUサイズが設定されていないVLANは、共通のMTUサイズとして1500バイトが設定されている。
FIG. 2 is a diagram illustrating an MTU table stored in the MTU size setting unit.
The MTU table stored by the MTU size setting unit 15 stores the VLAN ID and the MTU size in association with each other. In the MTU table shown in FIG. 2, the MTU size is individually set for each VLAN ID, such that the MTU size of the VLAN with the VLAN ID 100 is 64 bytes and the MTU size of the VLAN with the VLAN ID 150 is 256 bytes. . Moreover, 1500 bytes are set as a common MTU size for VLANs for which the MTU size is not individually set.

そして、パケット通信装置10において、パケット受信ポート11が他の装置からVLANパケットを受信すると、パケットサイズ監視部14は、パケット受信ポート11が受信したVLANパケットのパケットサイズを取得し、VLAN監視部13は、パケット受信ポート11が受信したVLANパケットのヘッダに含まれるVLAN IDを取得する。次に、パケット転送処理部12は、VLAN監視部13が取得したVLAN IDに対応するMTUサイズをMTUサイズ設定部15から取得し、パケット送信ポート16は、パケットサイズ監視部14が取得したパケットサイズが、パケット転送処理部12が取得したMTUサイズ以下である場合に、パケット受信ポート11が受信したVLANパケットを転送する。
これにより、誤配送された大きいサイズのVLANパケットにより、本来不要な転送処理が発生することを防止することができる。
In the packet communication device 10, when the packet reception port 11 receives a VLAN packet from another device, the packet size monitoring unit 14 acquires the packet size of the VLAN packet received by the packet reception port 11, and the VLAN monitoring unit 13. Obtains the VLAN ID included in the header of the VLAN packet received by the packet reception port 11. Next, the packet transfer processing unit 12 acquires the MTU size corresponding to the VLAN ID acquired by the VLAN monitoring unit 13 from the MTU size setting unit 15, and the packet transmission port 16 receives the packet size acquired by the packet size monitoring unit 14. However, when the packet transfer processing unit 12 acquires a packet size equal to or smaller than the MTU size acquired by the packet transfer processing unit 12, the packet reception port 11 transfers the received VLAN packet.
As a result, it is possible to prevent an originally unnecessary transfer process from being generated due to a mis-delivered large-sized VLAN packet.

次に、パケット通信装置10の動作を説明する。
図3は、パケット通信装置の動作を示すフローチャートである。
まず、他の装置がパケット通信装置10にVLANパケットを送信すると、パケット受信ポート11は、VLANパケットを受信する(ステップS1)。パケット受信ポート11がVLANパケットを受信すると、VLAN監視部13は、受信したVLANパケットのヘッダに含まれるVLAN IDを取得する(ステップS2)。VLAN監視部13がVLAN IDを取得すると、パケットサイズ監視部14は、受信したVLANパケットのパケットサイズをパケットのヘッダから取得する(ステップS3)。
Next, the operation of the packet communication device 10 will be described.
FIG. 3 is a flowchart showing the operation of the packet communication apparatus.
First, when another device transmits a VLAN packet to the packet communication device 10, the packet reception port 11 receives the VLAN packet (step S1). When the packet reception port 11 receives the VLAN packet, the VLAN monitoring unit 13 acquires the VLAN ID included in the header of the received VLAN packet (step S2). When the VLAN monitoring unit 13 acquires the VLAN ID, the packet size monitoring unit 14 acquires the packet size of the received VLAN packet from the packet header (step S3).

パケットサイズ監視部14がパケットサイズを取得すると、パケット転送処理部12は、MTUサイズ設定部15が記憶するMTUテーブルに、個別のVLANに対するMTUサイズが設定されているか否かを判定する(ステップS4)。個別のVLANに対するMTUサイズが設定されているか否かは、MTUテーブルに複数のアカウントが登録されているか否かによって判定する。パケット転送処理部12は、MTUテーブルに個別のVLANに対するMTUサイズが設定されていると判定した場合(ステップS4:YES)、VLAN監視部13が取得したVLAN IDに対応するMTUサイズがMTUテーブルに設定されているか否かを判定する(ステップS5)。   When the packet size monitoring unit 14 acquires the packet size, the packet transfer processing unit 12 determines whether or not the MTU size for the individual VLAN is set in the MTU table stored in the MTU size setting unit 15 (step S4). ). Whether or not the MTU size for the individual VLAN is set is determined by whether or not a plurality of accounts are registered in the MTU table. If the packet transfer processing unit 12 determines that the MTU size for the individual VLAN is set in the MTU table (step S4: YES), the MTU size corresponding to the VLAN ID acquired by the VLAN monitoring unit 13 is displayed in the MTU table. It is determined whether it is set (step S5).

パケット転送処理部12は、VLAN監視部13が取得したVLAN IDに対応するMTUサイズがMTUテーブルに設定されていると判定した場合(ステップS5:YES)、MTUテーブルから、VLAN監視部13が取得したVLAN IDに個別に設定されたMTUサイズを取得する(ステップS6)。
他方、パケット転送処理部12は、MTUテーブルに個別のVLANに対するMTUサイズが設定されていないと判定した場合(ステップS4:NO)、またはVLAN監視部13が取得したVLAN IDに対応するMTUサイズが設定されていないと判定した場合(ステップS5:NO)、MTUテーブルから、共通MTUサイズを取得する(ステップS7)。
When the packet transfer processing unit 12 determines that the MTU size corresponding to the VLAN ID acquired by the VLAN monitoring unit 13 is set in the MTU table (step S5: YES), the VLAN monitoring unit 13 acquires from the MTU table. The MTU size individually set for the VLAN ID is acquired (step S6).
On the other hand, when the packet transfer processing unit 12 determines that the MTU size for the individual VLAN is not set in the MTU table (step S4: NO), or the MTU size corresponding to the VLAN ID acquired by the VLAN monitoring unit 13 is When it is determined that it is not set (step S5: NO), the common MTU size is acquired from the MTU table (step S7).

パケット転送処理部12は、ステップS6またはステップS7でMTUサイズを取得すると、パケットサイズ監視部14が取得したパケットサイズと取得したMTUサイズとを比較する(ステップS8)。
パケット転送処理部12が、受信したVLANパケットのパケットサイズがMTUサイズ以下であると判定した場合(ステップS8:YES)、パケット送信ポート16は、受信したVLANパケットを転送する(ステップS9)。
他方、パケット転送処理部12は、受信したVLANパケットのパケットサイズがMTUサイズより大きいと判定した場合(ステップS8:NO)、受信したVLANパケットを廃棄する(ステップS10)。
When the packet transfer processing unit 12 acquires the MTU size in step S6 or step S7, the packet transfer processing unit 12 compares the packet size acquired by the packet size monitoring unit 14 with the acquired MTU size (step S8).
When the packet transfer processing unit 12 determines that the packet size of the received VLAN packet is equal to or smaller than the MTU size (step S8: YES), the packet transmission port 16 transfers the received VLAN packet (step S9).
On the other hand, when it is determined that the packet size of the received VLAN packet is larger than the MTU size (step S8: NO), the packet transfer processing unit 12 discards the received VLAN packet (step S10).

次に、パケット通信装置10の動作の具体的な例を説明する。
まず、他の装置がパケット通信装置10にVLAN ID:100、パケットサイズ:300のVLANパケットを送信すると、パケット受信ポート11は、VLANパケットを受信する。次に、VLAN監視部13は、受信したVLANパケットのVLAN IDを取得し、パケットサイズ監視部14は、受信したVLANパケットのパケットサイズを取得する。
Next, a specific example of the operation of the packet communication device 10 will be described.
First, when another device transmits a VLAN packet of VLAN ID: 100 and packet size: 300 to the packet communication device 10, the packet reception port 11 receives the VLAN packet. Next, the VLAN monitoring unit 13 acquires the VLAN ID of the received VLAN packet, and the packet size monitoring unit 14 acquires the packet size of the received VLAN packet.

次に、パケット転送処理部12は、MTUサイズ設定部15が記憶するMTUテーブルに、個別のVLANに対するMTUサイズが設定されているか否かを判定する。
図2に示すように、MTUテーブルには個別のVLANに対するMTUサイズが設定されているため、パケット転送処理部12は、VLAN監視部13が取得したVLAN IDに対応するMTUサイズが設定されているか否かを判定する。
図2に示すように、VLAN ID:100がMTUテーブルに格納されているため、MTUテーブルから、VLAN監視部13が取得したVLAN ID:100のMTUサイズ:64を取得する。
Next, the packet transfer processing unit 12 determines whether or not the MTU size for the individual VLAN is set in the MTU table stored in the MTU size setting unit 15.
As shown in FIG. 2, since the MTU size for the individual VLAN is set in the MTU table, is the packet transfer processing unit 12 set the MTU size corresponding to the VLAN ID acquired by the VLAN monitoring unit 13? Determine whether or not.
As shown in FIG. 2, since VLAN ID: 100 is stored in the MTU table, the MTU size: 64 of VLAN ID: 100 acquired by the VLAN monitoring unit 13 is acquired from the MTU table.

パケット転送処理部12は、MTUサイズを取得すると、パケットサイズ監視部14が取得したパケットサイズと取得したMTUサイズとを比較する。このとき、受信したパケットのパケットサイズが300、MTUサイズが64であるため、パケット転送処理部12は、受信したパケットのパケットサイズがMTUサイズより大きいと判定し、受信したパケットを廃棄する。   When acquiring the MTU size, the packet transfer processing unit 12 compares the packet size acquired by the packet size monitoring unit 14 with the acquired MTU size. At this time, since the packet size of the received packet is 300 and the MTU size is 64, the packet transfer processing unit 12 determines that the packet size of the received packet is larger than the MTU size, and discards the received packet.

一方、他の装置がパケット通信装置10にVLAN ID:200、パケットサイズ:300のVLANパケットを送信すると、パケット受信ポート11は、VLANパケットを受信する。次に、VLAN監視部13は、受信したVLANパケットのVLAN IDを取得し、パケットサイズ監視部14は、受信したVLANパケットのパケットサイズを取得する。   On the other hand, when another device transmits a VLAN packet with VLAN ID: 200 and packet size: 300 to the packet communication device 10, the packet reception port 11 receives the VLAN packet. Next, the VLAN monitoring unit 13 acquires the VLAN ID of the received VLAN packet, and the packet size monitoring unit 14 acquires the packet size of the received VLAN packet.

次に、パケット転送処理部12は、MTUサイズ設定部15が記憶するMTUテーブルに、個別のVLANに対するMTUサイズが設定されているか否かを判定する。
図2に示すように、MTUテーブルには個別のVLANに対するMTUサイズが設定されているため、パケット転送処理部12は、VLAN監視部13が取得したVLAN IDに対応するMTUサイズが設定されているか否かを判定する。
図2に示すように、VLAN ID:200はMTUテーブルに格納されていないため、MTUテーブルから、共通のMTUサイズ:1500を取得する。
Next, the packet transfer processing unit 12 determines whether or not the MTU size for the individual VLAN is set in the MTU table stored in the MTU size setting unit 15.
As shown in FIG. 2, since the MTU size for the individual VLAN is set in the MTU table, is the packet transfer processing unit 12 set the MTU size corresponding to the VLAN ID acquired by the VLAN monitoring unit 13? Determine whether or not.
As shown in FIG. 2, since the VLAN ID: 200 is not stored in the MTU table, a common MTU size: 1500 is acquired from the MTU table.

パケット転送処理部12は、MTUサイズを取得すると、パケットサイズ監視部14が取得したパケットサイズと取得したMTUサイズとを比較する。このとき、受信したパケットのパケットサイズが300、MTUサイズが1500であるため、パケット転送処理部12は、受信したパケットのパケットサイズがMTUサイズ以下であると判定し、パケット送信ポート16は、受信したVLANパケットを転送する。   When acquiring the MTU size, the packet transfer processing unit 12 compares the packet size acquired by the packet size monitoring unit 14 with the acquired MTU size. At this time, since the packet size of the received packet is 300 and the MTU size is 1500, the packet transfer processing unit 12 determines that the packet size of the received packet is equal to or smaller than the MTU size, and the packet transmission port 16 receives the packet. Forwarded VLAN packets.

このように、本実施形態によれば、VLAN毎にMTUサイズを設定し、受信したVLANパケットのパケットサイズが、送信先のVLANにおけるMTUサイズ以下である場合にのみ転送処理を行う。これにより、誤配送された大きいサイズのVLANパケットにより、本来不要な転送処理が発生することを防止することができる。   Thus, according to the present embodiment, the MTU size is set for each VLAN, and the transfer process is performed only when the packet size of the received VLAN packet is equal to or smaller than the MTU size in the destination VLAN. As a result, it is possible to prevent an originally unnecessary transfer process from being generated due to a mis-delivered large-sized VLAN packet.

以上、図面を参照してこの発明の一実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。
例えば、本実施形態では、パケット転送処理部12が、受信したVLANパケットのパケットサイズがMTUサイズより大きいと判定した場合に、受信したVLANパケットを廃棄する例を説明したが、これに限られず、パケットサイズがMTUサイズより大きい場合に、受信したVLANパケットをパケットサイズがMTUサイズ以下となる複数のVLANパケットに分割し、パケット送信ポートが、分割したパケットを転送しても良い。
As described above, the embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to the above, and various design changes and the like can be made without departing from the scope of the present invention. It is possible to
For example, in the present embodiment, an example has been described in which the packet transfer processing unit 12 discards the received VLAN packet when it is determined that the packet size of the received VLAN packet is larger than the MTU size. When the packet size is larger than the MTU size, the received VLAN packet may be divided into a plurality of VLAN packets whose packet size is equal to or smaller than the MTU size, and the packet transmission port may transfer the divided packets.

上述のパケット通信装置10は内部に、コンピュータシステムを有している。そして、上述した各処理部の動作は、プログラムの形式でコンピュータ読み取り可能な記録媒体に記憶されており、このプログラムをコンピュータが読み出して実行することによって、上記処理が行われる。ここでコンピュータ読み取り可能な記録媒体とは、磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等をいう。また、このコンピュータプログラムを通信回線によってコンピュータに配信し、この配信を受けたコンピュータが当該プログラムを実行するようにしても良い。   The packet communication apparatus 10 described above has a computer system inside. The operation of each processing unit described above is stored in a computer-readable recording medium in the form of a program, and the above processing is performed by the computer reading and executing this program. Here, the computer-readable recording medium means a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, or the like. Alternatively, the computer program may be distributed to the computer via a communication line, and the computer that has received the distribution may execute the program.

また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。   The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.

10…パケット通信装置 11…パケット受信ポート 12…パケット転送処理部 13…VLAN監視部 14…パケットサイズ監視部 15…MTUサイズ設定部 16…パケット送信ポート   DESCRIPTION OF SYMBOLS 10 ... Packet communication apparatus 11 ... Packet reception port 12 ... Packet transfer process part 13 ... VLAN monitoring part 14 ... Packet size monitoring part 15 ... MTU size setting part 16 ... Packet transmission port

Claims (5)

複数のネットワークに接続され、パケットの処理を行うパケット通信装置であって、
他の装置から前記パケットを受信する受信手段と、
前記受信手段が受信したパケットのパケットサイズを取得するパケットサイズ取得手段と、
前記受信手段が受信したパケットのヘッダに含まれるネットワーク識別子を取得するネットワーク識別子取得手段と、
複数のネットワーク識別子に対して、当該ネットワーク識別子が示すネットワークにおいて転送を許可するパケットサイズの最大値を関連付けて記憶する最大パケットサイズ記憶手段と、
前記最大パケットサイズ記憶手段が記憶する複数のネットワーク識別子に対するパケットサイズの最大値の中から、前記ネットワーク識別子取得手段が取得したネットワーク識別子に対応するパケットサイズの最大値を取得する最大パケットサイズ取得手段と、
前記パケットサイズ取得手段が取得したパケットサイズが、前記最大パケットサイズ取得手段が取得したパケットサイズの最大値以下である場合に、前記受信手段が受信したパケットを転送する送信手段と、
を備えることを特徴とするパケット通信装置。
A packet communication device connected to a plurality of networks and processing packets,
Receiving means for receiving the packet from another device;
Packet size acquisition means for acquiring the packet size of the packet received by the reception means;
Network identifier obtaining means for obtaining a network identifier included in a header of a packet received by the receiving means;
Maximum packet size storage means for storing a maximum number of packet sizes permitted to be transferred in a network indicated by the network identifier in association with a plurality of network identifiers;
Maximum packet size acquisition means for acquiring a maximum value of the packet size corresponding to the network identifier acquired by the network identifier acquisition means from among the maximum packet size values for a plurality of network identifiers stored by the maximum packet size storage means; ,
When the packet size acquired by the packet size acquisition unit is less than or equal to the maximum value of the packet size acquired by the maximum packet size acquisition unit, a transmission unit that transfers the packet received by the reception unit;
A packet communication device comprising:
前記パケットサイズ取得手段が取得したパケットサイズが、前記最大パケットサイズ取得手段が取得したパケットサイズの最大値より大きい場合に、前記受信手段が受信したパケットを廃棄する廃棄手段をさらに備えることを特徴とする請求項1に記載のパケット通信装置。   And a discarding unit for discarding the packet received by the receiving unit when the packet size acquired by the packet size acquiring unit is larger than a maximum value of the packet size acquired by the maximum packet size acquiring unit. The packet communication device according to claim 1. 前記パケットサイズ取得手段が取得したパケットサイズが、前記最大パケットサイズ取得手段が取得したパケットサイズの最大値より大きい場合に、前記受信手段が受信したパケットを、パケットサイズが前記最大値以下となる複数のパケットに分割する分割手段をさらに備え、
前記送信手段は、前記分割手段が分割したパケットを転送する、
ことを特徴とする請求項1に記載のパケット通信装置。
When the packet size acquired by the packet size acquisition unit is larger than the maximum value of the packet size acquired by the maximum packet size acquisition unit, the packet received by the reception unit is a plurality of packets whose packet size is equal to or less than the maximum value. Further comprising a dividing means for dividing the packet into
The transmitting means transfers the packet divided by the dividing means;
The packet communication device according to claim 1.
複数のネットワークに接続され、パケットの処理を行い、複数のネットワーク識別子に対して、当該ネットワーク識別子が示すネットワークにおいて転送を許可するパケットサイズの最大値を関連付けて記憶する最大パケットサイズ記憶手段を備えるパケット通信装置を用いたパケット通信方法であって、
受信手段は、他の装置から前記パケットを受信し、
パケットサイズ取得手段は、前記受信手段が受信したパケットのパケットサイズを取得し、
ネットワーク識別子取得手段は、前記受信手段が受信したパケットのヘッダに含まれる前記ネットワーク識別子を取得し、
最大パケットサイズ取得手段は、前記最大パケットサイズ記憶手段が記憶する複数のネットワーク識別子に対するパケットサイズの最大値の中から、前記ネットワーク識別子取得手段が取得したネットワーク識別子に対応するパケットサイズの最大値を取得し、
送信手段は、前記パケットサイズ取得手段が取得したパケットサイズが、前記最大パケットサイズ取得手段が取得したパケットサイズの最大値以下である場合に、前記受信手段が受信したパケットを転送する、
ことを特徴とするパケット通信方法。
A packet that is connected to a plurality of networks, processes packets, and includes a maximum packet size storage unit that stores a plurality of network identifiers in association with a maximum value of a packet size permitted to be transferred in the network indicated by the network identifier. A packet communication method using a communication device,
The receiving means receives the packet from another device,
The packet size acquisition means acquires the packet size of the packet received by the reception means,
The network identifier acquisition means acquires the network identifier included in the header of the packet received by the reception means,
The maximum packet size acquisition means acquires the maximum value of the packet size corresponding to the network identifier acquired by the network identifier acquisition means from the maximum packet size values for the plurality of network identifiers stored in the maximum packet size storage means. And
When the packet size acquired by the packet size acquisition unit is less than or equal to the maximum value of the packet size acquired by the maximum packet size acquisition unit, the transmission unit transfers the packet received by the reception unit.
And a packet communication method.
複数のネットワークに接続され、パケットの処理を行い、複数のネットワーク識別子に対して、当該ネットワーク識別子が示すネットワークにおいて転送を許可するパケットサイズの最大値を関連付けて記憶する最大パケットサイズ記憶手段を備えるパケット通信装置を、
他の装置から前記パケットを受信する受信手段、
前記受信手段が受信したパケットのパケットサイズを取得するパケットサイズ取得手段、
前記受信手段が受信したパケットのヘッダに含まれる前記ネットワーク識別子を取得するネットワーク識別子取得手段、
前記最大パケットサイズ記憶手段が記憶する複数のネットワーク識別子に対するパケットサイズの最大値の中から、前記ネットワーク識別子取得手段が取得したネットワーク識別子に対応するパケットサイズの最大値を取得する最大パケットサイズ取得手段、
前記パケットサイズ取得手段が取得したパケットサイズが、前記最大パケットサイズ取得手段が取得したパケットサイズの最大値以下である場合に、前記受信手段が受信したパケットを転送する送信手段、
として動作させるためのプログラム。
A packet that is connected to a plurality of networks, processes packets, and includes a maximum packet size storage unit that stores a plurality of network identifiers in association with a maximum value of a packet size permitted to be transferred in the network indicated by the network identifier. Communication device
Receiving means for receiving the packet from another device;
A packet size obtaining means for obtaining a packet size of the packet received by the receiving means;
Network identifier obtaining means for obtaining the network identifier included in a header of a packet received by the receiving means;
Maximum packet size acquisition means for acquiring a maximum value of packet size corresponding to the network identifier acquired by the network identifier acquisition means from among maximum values of packet sizes for a plurality of network identifiers stored by the maximum packet size storage means,
A transmitting means for transferring a packet received by the receiving means when the packet size acquired by the packet size acquiring means is equal to or less than a maximum value of the packet size acquired by the maximum packet size acquiring means;
Program to operate as.
JP2009083295A 2009-03-30 2009-03-30 Packet communication apparatus, packet communication method and program Pending JP2010239293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009083295A JP2010239293A (en) 2009-03-30 2009-03-30 Packet communication apparatus, packet communication method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009083295A JP2010239293A (en) 2009-03-30 2009-03-30 Packet communication apparatus, packet communication method and program

Publications (1)

Publication Number Publication Date
JP2010239293A true JP2010239293A (en) 2010-10-21

Family

ID=43093268

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009083295A Pending JP2010239293A (en) 2009-03-30 2009-03-30 Packet communication apparatus, packet communication method and program

Country Status (1)

Country Link
JP (1) JP2010239293A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012124035A1 (en) * 2011-03-11 2012-09-20 富士通株式会社 Communication device and communication method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05153131A (en) * 1991-12-02 1993-06-18 Mitsubishi Electric Corp Lan terminal equipment
JP2006253867A (en) * 2005-03-09 2006-09-21 Fujitsu Access Ltd Frame transmission system and method
JP2009065429A (en) * 2007-09-06 2009-03-26 Hitachi Communication Technologies Ltd Packet transfer apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05153131A (en) * 1991-12-02 1993-06-18 Mitsubishi Electric Corp Lan terminal equipment
JP2006253867A (en) * 2005-03-09 2006-09-21 Fujitsu Access Ltd Frame transmission system and method
JP2009065429A (en) * 2007-09-06 2009-03-26 Hitachi Communication Technologies Ltd Packet transfer apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012124035A1 (en) * 2011-03-11 2012-09-20 富士通株式会社 Communication device and communication method
JP5648737B2 (en) * 2011-03-11 2015-01-07 富士通株式会社 Communication apparatus and communication method
US9497126B2 (en) 2011-03-11 2016-11-15 Fujitsu Limited Communication device and communication method

Similar Documents

Publication Publication Date Title
KR102317523B1 (en) Packet control method and network device
CN111800351B (en) Congestion notification packet generation by a switch
JP5987920B2 (en) Communication system, control apparatus, and network topology management method
US8953631B2 (en) Interruption, at least in part, of frame transmission
US9565035B1 (en) Enhanced audio video bridging (AVB) methods and apparatus
US8451730B2 (en) Apparatus and method for implementing multiple high speed switching fabrics in an ethernet ring topology
WO2015172668A1 (en) Method and device for determining congestion window in network
JP5060572B2 (en) Data communication apparatus and method
US8838782B2 (en) Network protocol processing system and network protocol processing method
US8218440B2 (en) High speed transmission protocol
US9548929B2 (en) Frame transfer apparatus and frame transfer method
US9537764B2 (en) Communication apparatus, control apparatus, communication system, communication method, method for controlling communication apparatus, and program
US11271711B2 (en) Communication control device, communication control method, network switch, route control method, and communication system
JP2010226455A (en) Network communication apparatus
JP2010239293A (en) Packet communication apparatus, packet communication method and program
EP3324587B1 (en) Multicast method, multicast relay device and system
US20070171906A1 (en) Apparatus and method for extending functions from a high end device to other devices in a switching network
JP5410345B2 (en) Ring network, relay device, and bandwidth control method
JP4459767B2 (en) Communication method and communication node
JP2000049856A (en) Inter-network repeater
CN117880198A (en) Congestion management based on stream pruning

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100723

A621 Written request for application examination

Effective date: 20120113

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130301

A131 Notification of reasons for refusal

Effective date: 20130319

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Effective date: 20130709

Free format text: JAPANESE INTERMEDIATE CODE: A02