JP6879129B2 - Relay device and relay program - Google Patents

Relay device and relay program Download PDF

Info

Publication number
JP6879129B2
JP6879129B2 JP2017166951A JP2017166951A JP6879129B2 JP 6879129 B2 JP6879129 B2 JP 6879129B2 JP 2017166951 A JP2017166951 A JP 2017166951A JP 2017166951 A JP2017166951 A JP 2017166951A JP 6879129 B2 JP6879129 B2 JP 6879129B2
Authority
JP
Japan
Prior art keywords
communication
communication path
transfer
received data
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017166951A
Other languages
Japanese (ja)
Other versions
JP2019047255A (en
Inventor
雅士 櫻井
雅士 櫻井
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2017166951A priority Critical patent/JP6879129B2/en
Publication of JP2019047255A publication Critical patent/JP2019047255A/en
Application granted granted Critical
Publication of JP6879129B2 publication Critical patent/JP6879129B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、無線通信と有線通信との間のデータ転送を中継する中継装置および中継プログラムに関する。 The present invention relates to a relay device and a relay program that relay data transfer between wireless communication and wired communication.

従来の無線AP(Access Point)は、CPU(Central Processing Unit)と、L2SW(Layer−2 SWitch)と、無線チップとを含んで構成されている。無線APのCPUには、無線LAN(Local Area Network)端末が接続される。また、無線APのL2SWには、有線LAN端末が接続される。 A conventional wireless AP (Access Point) includes a CPU (Central Processing Unit), an L2SW (Layer-2 SWitch), and a wireless chip. A wireless LAN (Local Area Network) terminal is connected to the CPU of the wireless AP. Further, a wired LAN terminal is connected to the L2SW of the wireless AP.

無線APにおいて、CPUとL2SWとは、1Gbps以下の転送レートでデータの転送を行うRGMII(Reduced Gigabit Media Independent Interface)で接続されている。また、L2SWと有線LAN端末との間は、1Gbps以下の転送レートでデータの転送が行われる。 In the wireless AP, the CPU and L2SW are connected by an RGMII (Reduced Gigabit Media Independent Interface) that transfers data at a transfer rate of 1 Gbps or less. Further, data is transferred between the L2SW and the wired LAN terminal at a transfer rate of 1 Gbps or less.

しかし、このような無線APでは、無線LAN端末から有線LAN端末への通信は、例え無線LAN端末とCPUとの間の転送レートが1Gbps以上であっても、CPUとL2SWとの間のRGMIIがボトルネックとなり、1Gbpsまでの転送レートになってしまう。 However, in such a wireless AP, in the communication from the wireless LAN terminal to the wired LAN terminal, even if the transfer rate between the wireless LAN terminal and the CPU is 1 Gbps or more, the RGMII between the CPU and the L2SW is used. It becomes a bottleneck and the transfer rate is up to 1 Gbps.

そこで、最近では、送信端末から受信端末への転送レートを向上させる種々の方法が提案されている(例えば、特許文献1および2参照)。特許文献1および2では、複数のインタフェースを同時に使用し、転送対象となるデータを分割して送信し、分割されたデータを受信側で結合させる。これにより、単一のインタフェースの転送レート以上の転送レートでデータを転送することができる。 Therefore, recently, various methods for improving the transfer rate from the transmitting terminal to the receiving terminal have been proposed (see, for example, Patent Documents 1 and 2). In Patent Documents 1 and 2, a plurality of interfaces are used at the same time, data to be transferred is divided and transmitted, and the divided data are combined on the receiving side. As a result, data can be transferred at a transfer rate higher than the transfer rate of a single interface.

特開2012−98885号公報Japanese Unexamined Patent Publication No. 2012-98885 特開2003−131815号公報Japanese Unexamined Patent Publication No. 2003-131815

しかしながら、特許文献1および2の技術は、送信端末から送信されるデータを、複数のインタフェースを用いて転送するため、処理が複雑であり、高性能のチップを用いる必要がある。 However, in the techniques of Patent Documents 1 and 2, since the data transmitted from the transmitting terminal is transferred using a plurality of interfaces, the processing is complicated and it is necessary to use a high-performance chip.

そこで、上記の課題を解決するために、安価な構成であっても、複数の送信端末からのデータを転送する際に、転送レートを向上させることができる中継装置および中継プログラムが望まれている。 Therefore, in order to solve the above problems, a relay device and a relay program capable of improving the transfer rate when transferring data from a plurality of transmission terminals are desired even if the configuration is inexpensive. ..

本発明に係る中継装置は、第1の送信端末および第2の送信端末からデータを受信し、受信データに含まれる宛先情報に従って、前記受信データを受信端末へ出力する中継装置であって、前記受信端末へ前記受信データを出力可能な複数の出力インタフェースと、前記受信データを第1の通信経路または第2の通信経路に出力する制御手段と、前記第1の通信経路および前記第2の通信経路で前記制御手段と接続され、前記第1の通信経路および前記第2の通信経路を介して入力された前記受信データを、前記宛先情報に従って前記複数の出力インタフェースのいずれかから出力する出力手段とを備え、前記制御手段は、前記第1の通信経路および前記第2の通信経路のうち通信量が少ない通信経路を選択し、前記第1の送信端末および前記第2の送信端末のうち通信量が多い送信端末からの受信データを、選択された前記通信経路から出力し、前記出力手段は、選択された前記通信経路を介して入力された前記受信データを、前記宛先情報に従って前記複数の出力インタフェースのいずれかから出力するものである。 The relay device according to the present invention is a relay device that receives data from a first transmission terminal and a second transmission terminal and outputs the received data to the receiving terminal according to the destination information included in the received data. A plurality of output interfaces capable of outputting the received data to the receiving terminal, a control means for outputting the received data to the first communication path or the second communication path, the first communication path, and the second communication. An output means that is connected to the control means by a route and outputs the received data input via the first communication path and the second communication path from any of the plurality of output interfaces according to the destination information. The control means selects a communication path having a small amount of communication from the first communication path and the second communication path, and communicates among the first transmission terminal and the second transmission terminal. The received data from the transmitting terminal having a large amount is output from the selected communication path, and the output means outputs the received data input via the selected communication path to the plurality of received data according to the destination information. It outputs from one of the output interfaces.

また、本発明に係る中継プログラムは、コンピュータに、第1の通信経路および第2の通信経路のうち、通信量が少ない通信経路の選択と、第1の送信端末および第2の送信端末のうち通信量が多い送信端末からの受信データの、選択された前記通信経路からの出力とを行うステップと、選択された前記通信経路を介して入力された受信データを、前記受信データに含まれる宛先情報に従って複数の出力インタフェースのいずれかから出力するステップとを実行させるものである。 Further, the relay program according to the present invention allows the computer to select a communication path having a small amount of communication among the first communication path and the second communication path, and among the first transmission terminal and the second transmission terminal. The step of outputting the received data from the transmitting terminal having a large amount of communication from the selected communication path and the reception data input via the selected communication path are the destinations included in the received data. It executes a step of outputting from one of a plurality of output interfaces according to information.

以上のように、本発明によれば、通信量の多い受信データが通信量の少ない通信経路から出力されるため、複数の送信端末からのデータを転送する際に、転送レートを向上させることができる。 As described above, according to the present invention, since the received data having a large amount of communication is output from the communication path having a small amount of communication, it is possible to improve the transfer rate when transferring the data from a plurality of transmitting terminals. it can.

従来の中継装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of the structure of the conventional relay device. 実施の形態1に係る中継装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of the structure of the relay device which concerns on Embodiment 1. FIG. 無線LAN端末情報の一例を示す概略図である。It is the schematic which shows an example of the wireless LAN terminal information. RGMIIの通信量情報の一例を示す概略図である。It is the schematic which shows an example of the traffic information of RGMII. 並列転送情報の一例を示す概略図である。It is the schematic which shows an example of the parallel transfer information. 図2のパケット転送部の構成の一例を示すブロック図である。It is a block diagram which shows an example of the structure of the packet transfer part of FIG. VLANグループの一例を示す概略図である。It is a schematic diagram which shows an example of a VLAN group. 無線LAN端末を送信端末とし、有線LAN端末を受信端末とした場合の通信経路の一例を示す概略図である。It is a schematic diagram which shows an example of the communication path in the case where a wireless LAN terminal is a transmitting terminal and a wired LAN terminal is a receiving terminal. 通信管理部による並列転送決定処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the parallel transfer decision processing by a communication management part. 通常転送によって無線LAN端末から有線LAN端末へパケットを送信する場合について説明するためのシーケンス図である。It is a sequence diagram for demonstrating the case of transmitting a packet from a wireless LAN terminal to a wired LAN terminal by normal transfer. 無線LAN端末から有線LAN端末へパケットを送信する際の並列転送情報の一例を示す概略図である。It is a schematic diagram which shows an example of the parallel transfer information at the time of transmitting a packet from a wireless LAN terminal to a wired LAN terminal. 並列転送によって無線LAN端末から有線LAN端末へパケットを送信する場合について説明するためのシーケンス図である。It is a sequence diagram for demonstrating the case of transmitting a packet from a wireless LAN terminal to a wired LAN terminal by parallel transfer.

実施の形態1.
以下、本実施の形態1に係る中継装置について説明する。
Embodiment 1.
Hereinafter, the relay device according to the first embodiment will be described.

(従来の中継装置100)
本実施の形態1に係る中継装置について説明する前に、従来の中継装置について説明する。図1は、従来の中継装置100の構成の一例を示すブロック図である。図1に示すように、中継装置100は、例えば無線APであり、複数の無線LAN端末200Aおよび200Bと、複数の有線LAN端末300Aおよび300Bとの間で行われるデータのやりとりを中継する。
(Conventional relay device 100)
Before explaining the relay device according to the first embodiment, the conventional relay device will be described. FIG. 1 is a block diagram showing an example of the configuration of the conventional relay device 100. As shown in FIG. 1, the relay device 100 is, for example, a wireless AP, and relays data exchange between a plurality of wireless LAN terminals 200A and 200B and a plurality of wired LAN terminals 300A and 300B.

中継装置100は、CPU110、L2SW120、無線チップ130Aおよび130Bで構成されている。中継装置100は、無線チップ130Aおよび130Bを介して無線LAN端末200Aおよび200Bが接続され、L2SW120を介して有線LAN端末300Aおよび300B、ならびにインターネット網400が接続されている。 The relay device 100 includes a CPU 110, an L2SW120, and wireless chips 130A and 130B. In the relay device 100, the wireless LAN terminals 200A and 200B are connected via the wireless chips 130A and 130B, and the wired LAN terminals 300A and 300B and the Internet network 400 are connected via the L2SW120.

CPU110とL2SW120とは、LAN用およびWAN(Wide Area Network)用のそれぞれに対して、転送レートの上限が1GbpsであるRGMIIで接続されている。また、L2SW120と、有線LAN端末300Aおよび300Bならびにインターネット網400との間は、転送レートの上限が1Gbpsである有線LANによって接続されている。 The CPU 110 and the L2SW 120 are connected to each of the LAN and WAN (Wide Area Network) by RGMII, which has an upper limit of the transfer rate of 1 Gbps. Further, the L2SW120 is connected to the wired LAN terminals 300A and 300B and the Internet network 400 by a wired LAN having an upper limit of the transfer rate of 1 Gbps.

一方、CPU10と無線チップ130Aおよび130Bとは、それぞれ転送レートが1Gbps以上となるPCIe(PCI Express)で接続されている。また、無線チップ130Aおよび130Bと無線LAN端末200Aおよび200Bとは、それぞれ転送レートが1Gbps以上となるIEEE802.11ac等の高速無線LAN規格を用いた無線LANで接続されている。 On the other hand, the CPU 10 and the wireless chips 130A and 130B are connected by PCIe (PCI Express) having a transfer rate of 1 Gbps or more, respectively. Further, the wireless chips 130A and 130B and the wireless LAN terminals 200A and 200B are connected by a wireless LAN using a high-speed wireless LAN standard such as IEEE802.11ac having a transfer rate of 1 Gbps or more, respectively.

L2SW120は、VLAN(Virtual LAN)機能を有し、LANのネットワークとWANのネットワークとは、PortBasedVLAN等によって異なるグループに分類されている。そのため、互いにやりとりされるデータは、CPU110を経由する。 The L2SW120 has a VLAN (Virtual LAN) function, and the LAN network and the WAN network are classified into different groups according to PortBasedVLAN and the like. Therefore, the data exchanged with each other goes through the CPU 110.

図1に示す従来の中継装置100では、無線LAN端末200Aと有線LAN端末300Aとの間で通信を行う場合に、CPU110とL2SW120との間の転送レートがボトルネックとなる。具体的には、例えば、無線LAN端末200AとCPU110との間の転送レートが1Gbps以上であっても、CPU110とL2SW120との間の最大転送レートが1Gbpsであるため、転送レートが1Gbpsまでとなる。 In the conventional relay device 100 shown in FIG. 1, the transfer rate between the CPU 110 and the L2SW 120 becomes a bottleneck when communicating between the wireless LAN terminal 200A and the wired LAN terminal 300A. Specifically, for example, even if the transfer rate between the wireless LAN terminal 200A and the CPU 110 is 1 Gbps or more, the maximum transfer rate between the CPU 110 and the L2SW 120 is 1 Gbps, so the transfer rate can be up to 1 Gbps. ..

また、無線LAN端末200Aおよび200Bから有線LAN端末300Aおよび300Bへデータを転送する場合に、転送レートの合計が1Gbpsを超えた場合にも、同様の理由で転送レートが1Gbpsまでとなる。 Further, when data is transferred from the wireless LAN terminals 200A and 200B to the wired LAN terminals 300A and 300B, even if the total transfer rate exceeds 1 Gbps, the transfer rate is up to 1 Gbps for the same reason.

[中継装置1の構成]
図2は、本実施の形態1に係る中継装置1の構成の一例を示すブロック図である。図2に示すように、中継装置1は、例えば無線APであり、送信端末である複数の無線LAN端末2Aおよび2Bと、複数の有線LAN端末3A〜3Cとの間で行われるデータのやりとりを中継する。
[Configuration of relay device 1]
FIG. 2 is a block diagram showing an example of the configuration of the relay device 1 according to the first embodiment. As shown in FIG. 2, the relay device 1 is, for example, a wireless AP, and exchanges data between a plurality of wireless LAN terminals 2A and 2B which are transmission terminals and a plurality of wired LAN terminals 3A to 3C. Relay.

中継装置1は、制御手段としてのCPU10、出力手段としてのL2SW20、無線チップ30Aおよび30Bで構成されている。中継装置1は、無線チップ30Aおよび30Bを介して無線LAN端末2Aおよび2Bが接続され、L2SW20を介して有線LAN端末3A〜3Cが接続されている。また、CPU10とL2SW20とは、第1および第2の通信経路によって接続されている。 The relay device 1 is composed of a CPU 10 as a control means, an L2SW20 as an output means, and wireless chips 30A and 30B. In the relay device 1, wireless LAN terminals 2A and 2B are connected via wireless chips 30A and 30B, and wired LAN terminals 3A to 3C are connected via L2SW20. Further, the CPU 10 and the L2SW20 are connected by the first and second communication paths.

(CPU10)
CPU10は、通信管理部11、パケット転送部12、RGMII13Aおよび13B、PCIe14Aおよび14b、ならびに制御インタフェース(以下、「制御I/F」と称する)15を備えている。
(CPU10)
The CPU 10 includes a communication management unit 11, a packet transfer unit 12, RGMII13A and 13B, PCIe14A and 14b, and a control interface (hereinafter, referred to as “control I / F”) 15.

通信管理部11は、無線チップ30Aおよび30Bに帰属される無線LAN端末2Aおよび2Bに関する情報を無線チップ30Aおよび30Bから取得し、送信端末情報としての無線LAN端末情報を生成する通信管理機能を有している。また、通信管理部11は、CPU10とL2SW20との間の通信量を管理し、RGMII13Aおよび13Bの通信量に基づき通信量情報を生成する。 The communication management unit 11 has a communication management function that acquires information about the wireless LAN terminals 2A and 2B belonging to the wireless chips 30A and 30B from the wireless chips 30A and 30B and generates wireless LAN terminal information as transmission terminal information. doing. Further, the communication management unit 11 manages the communication amount between the CPU 10 and the L2SW20, and generates communication amount information based on the communication amount of the RGMII 13A and 13B.

図3は、無線LAN端末情報の一例を示す概略図である。無線LAN端末情報は、中継装置1を介して通信を行っている無線LAN端末2Aおよび2Bのそれぞれの端末に関する情報である。図3に示すように、無線LAN端末情報には、MAC(Media Access Control)アドレス、リンク速度および現在の通信量を示す情報が含まれている。 FIG. 3 is a schematic view showing an example of wireless LAN terminal information. The wireless LAN terminal information is information about each terminal of the wireless LAN terminals 2A and 2B communicating via the relay device 1. As shown in FIG. 3, the wireless LAN terminal information includes information indicating a MAC (Media Access Control) address, a link speed, and a current communication volume.

MACアドレスは、無線LAN端末2Aまたは2Bに対して固有に割り当てられた端末のアドレスを示す。リンク速度は、中継装置1と無線LAN端末2Aまたは2Bとの間の速度を示す。現在の通信量は、無線LAN端末2Aまたは2Bから中継装置1に対するパケット量を示す。 The MAC address indicates the address of the terminal uniquely assigned to the wireless LAN terminal 2A or 2B. The link speed indicates the speed between the relay device 1 and the wireless LAN terminal 2A or 2B. The current communication volume indicates the packet volume from the wireless LAN terminal 2A or 2B to the relay device 1.

図4は、RGMII13Aおよび13Bの通信量情報の一例を示す概略図である。通信量情報は、RGMII13Aおよび13Bを用いてデータをL2SW20に転送する際の通信量を示す。
図4に示すように、通信量情報には、RGMII13Aを用いてデータをL2SW20へ通常転送する際の通信量と、RGMII13Bを用いてデータをL2SW20へ通常転送する際の通信量とを示す情報が含まれている。
FIG. 4 is a schematic view showing an example of traffic information of RGMII 13A and 13B. The communication volume information indicates the communication volume when transferring data to the L2SW20 using the RGMII 13A and 13B.
As shown in FIG. 4, the communication amount information includes information indicating the communication amount when the data is normally transferred to the L2SW20 using the RGMII13A and the communication amount when the data is normally transferred to the L2SW20 using the RGMII13B. include.

また、図4に示す通信量は、単位時間あたりにRGMII13Aおよび13Bが受信したデータの受信量を示し、予め設定された1Gbps等の転送許容量を超えることによって破棄されたデータ量を含まれている。 The communication volume shown in FIG. 4 indicates the amount of data received by the RGMII 13A and 13B per unit time, and includes the amount of data discarded due to exceeding a preset transfer allowance such as 1 Gbps. There is.

さらに、通信管理部11は、並列転送の可否を決定し、パケット転送部12に対して並列転送の可否を通知する並列転送決定処理を行う並列転送可否決定機能を有している。通信管理部11は、無線LAN端末情報および通信量情報に基づき、並列転送の可否を示す並列転送情報を生成する。そして、通信管理部11は、生成した並列転送情報をパケット転送部12に供給する。 Further, the communication management unit 11 has a parallel transfer possibility determination function that determines whether or not parallel transfer is possible and performs a parallel transfer determination process for notifying the packet transfer unit 12 of the possibility of parallel transfer. The communication management unit 11 generates parallel transfer information indicating whether or not parallel transfer is possible based on the wireless LAN terminal information and the communication amount information. Then, the communication management unit 11 supplies the generated parallel transfer information to the packet transfer unit 12.

図5は、並列転送情報の一例を示す概略図である。図5に示すように、並列転送情報には、並列転送可否および送信元MACアドレスが含まれている。並列転送可否は、並列転送決定処理によって決定された並列転送の実施の可否を示す情報である。送信元MACアドレスは、並列転送を実施する際に、無線LAN端末2Aおよび2Bのうち通信量が最も多い無線LAN端末のMACアドレスを示す情報である。 FIG. 5 is a schematic view showing an example of parallel transfer information. As shown in FIG. 5, the parallel transfer information includes the possibility of parallel transfer and the source MAC address. The parallel transfer availability is information indicating whether or not the parallel transfer is executed, which is determined by the parallel transfer determination process. The source MAC address is information indicating the MAC address of the wireless LAN terminal having the largest amount of communication among the wireless LAN terminals 2A and 2B when performing parallel transfer.

図2のパケット転送部12は、PCIe14Aおよび14Bを介してパケットを受信する。受信したパケットには、送信先の端末を示す宛先情報が含まれている。パケット転送部12は、通信管理部11から通知された並列転送情報に基づき、受信したパケットをL2SW20に転送する。 The packet transfer unit 12 of FIG. 2 receives a packet via the PCIe 14A and 14B. The received packet contains destination information indicating the destination terminal. The packet transfer unit 12 transfers the received packet to the L2SW 20 based on the parallel transfer information notified from the communication management unit 11.

図6は、図2のパケット転送部12の構成の一例を示すブロック図である。図6に示すように、パケット転送部12は、受信インタフェース(以下、「受信I/F」と称する)51、転送処理部52、送信インタフェース(以下、「送信I/F」と称する)53aおよび53b、ならびに記憶部54を有している。 FIG. 6 is a block diagram showing an example of the configuration of the packet transfer unit 12 of FIG. As shown in FIG. 6, the packet transfer unit 12 includes a reception interface (hereinafter referred to as “reception I / F”) 51, a transfer processing unit 52, a transmission interface (hereinafter referred to as “transmission I / F”) 53a, and It has 53b and a storage unit 54.

受信I/F51は、PCIe14Aおよび14Bを介してパケットを受信するためのインタフェースである。受信I/F51は、受信したパケットを転送処理部52に供給する。 The reception I / F 51 is an interface for receiving a packet via the PCIe 14A and 14B. The reception I / F 51 supplies the received packet to the transfer processing unit 52.

転送処理部52は、並列転送情報およびパケットの送信元MACアドレスに基づき、パケットの転送処理を行う。転送処理部52は、並列転送情報に基づき、受け取ったパケットの送信先を決定するとともにtagVLANを付与するか否かを判断し、送信I/F53aまたは53bに供給する。 The transfer processing unit 52 performs packet transfer processing based on the parallel transfer information and the packet source MAC address. Based on the parallel transfer information, the transfer processing unit 52 determines the transmission destination of the received packet, determines whether or not to add the tagVLAN, and supplies the received packet to the transmission I / F 53a or 53b.

送信I/F53aおよび53bは、転送処理部52から供給されたパケットを送信するためのインタフェースである。送信I/F53aおよび53bは、それぞれ、供給されたパケットをRGMII13Aおよび13Bに供給する。記憶部54は、通信管理部11から供給された並列転送情報を記憶する。記憶部54に記憶された並列転送情報は、転送処理部52の要求に基づき読み出される。 The transmission I / F 53a and 53b are interfaces for transmitting the packet supplied from the transfer processing unit 52. The transmission I / F 53a and 53b supply the supplied packets to the RGMII 13A and 13B, respectively. The storage unit 54 stores the parallel transfer information supplied from the communication management unit 11. The parallel transfer information stored in the storage unit 54 is read out based on the request of the transfer processing unit 52.

図2のRGMII13Aおよび13Bは、外部デバイスとのインタフェースである。RGMII13Aは、1Gbpsを転送レートの上限として、L2SW20のRGMII22Aと接続されている。RGMII13Bは、1Gbpsを転送レートの上限として、L2SW20のRGMII22Bと接続されている。RGMII13Aおよび13Bと、RGMII22Aおよび22Bとが接続されることにより、CPU10とL2SW20との間に通信経路が形成される。 RGMII13A and 13B in FIG. 2 are interfaces with external devices. The RGMII13A is connected to the RGMII22A of the L2SW20 with 1 Gbps as the upper limit of the transfer rate. The RGMII13B is connected to the RGMII22B of the L2SW20 with 1 Gbps as the upper limit of the transfer rate. By connecting the RGMII 13A and 13B and the RGMII 22A and 22B, a communication path is formed between the CPU 10 and the L2SW20.

PCIe14Aおよび14Bは、外部デバイスとのインタフェースである。PCIe14Aは、1Gbps以上の転送レートを有しており、無線チップ30AのPCIe31Aと接続されている。PCIe14Bは、1Gbps以上の転送レートを有しており、無線チップ30BのPCIe31Bと接続されている。 PCIe14A and 14B are interfaces with external devices. The PCIe14A has a transfer rate of 1 Gbps or more, and is connected to the PCIe31A of the wireless chip 30A. The PCIe14B has a transfer rate of 1 Gbps or more, and is connected to the PCIe31B of the wireless chip 30B.

制御I/F15は、L2SW20の設定を行うためのインタフェースであり、L2SW20の制御I/F24と接続されている。 The control I / F15 is an interface for setting the L2SW20, and is connected to the control I / F24 of the L2SW20.

(L2SW20)
L2SW20は、VLAN管理部21、RGMII22Aおよび22B、PHY23A〜23Cおよび制御インタフェース(以下、「制御I/F」と称する)24を備えている。
(L2SW20)
The L2SW20 includes a VLAN management unit 21, RGMII22A and 22B, PHY23A to 23C, and a control interface (hereinafter referred to as "control I / F") 24.

VLAN管理部21は、VLAN機能を実現するために設けられ、RGMII22Aおよび22BとPHY23A〜23CとによるVLANグループを管理する。VLAN管理部21は、VLANグループをPortBasedVLANおよびtagVLANによって管理する。なお、本実施の形態1におけるパケット転送処理では、PortBasedVLANよりもtagVLANが優先されるものとする。 The VLAN management unit 21 is provided to realize the VLAN function, and manages a VLAN group consisting of RGMII 22A and 22B and PHYs 23A to 23C. The VLAN management unit 21 manages the VLAN group by the PortBased VLAN and the tag VLAN. In the packet transfer process according to the first embodiment, tagVLAN is prioritized over PortBasedVLAN.

図7は、VLANグループの一例を示す概略図である。図7に示すように、本実施の形態1において、VLANグループは、LAN用VLAN、WAN用VLANおよび並列転送用VLANに分類される。 FIG. 7 is a schematic view showing an example of a VLAN group. As shown in FIG. 7, in the first embodiment, the VLAN group is classified into a LAN VLAN, a WAN VLAN, and a parallel transfer VLAN.

LAN用VLANのグループは、PortBasedVLANによって形成され、RGMII22A、PHY23Aおよび23Bが属している。WAN用VLANのグループは、PortBasedVLANによって形成され、RGMII22BおよびPHY23Cが属している。並列転送用VLANのグループは、tagVLANによって形成され、RGMII22B、PHY23Aおよび23Bが属している。また、並列転送用VLANのグループの種別がtagVLANであることを示すVIDとして、「101」を示すタグが用いられる。 The group of LAN for LAN is formed by PortBased VLAN, and RGMII22A, PHY23A and 23B belong to it. The WAN VLAN group is formed by PortBased VLAN and belongs to RGMII22B and PHY23C. The group of VLANs for parallel transfer is formed by tagVLAN, and RGMII22B, PHY23A and 23B belong to it. Further, a tag indicating "101" is used as a VID indicating that the type of the group of the parallel transfer VLAN is tag VLAN.

図2のRGMII22Aおよび22Bは、外部デバイスとのインタフェースである。RGMII22Aは、1Gbpsを転送レートの上限として、CPU10のRGMII13Aと接続されている。RGMII22Bは、1Gbpsを転送レートの上限として、CPU10のRGMII13Bと接続されている。 RGMII22A and 22B in FIG. 2 are interfaces with external devices. The RGMII22A is connected to the RGMII13A of the CPU 10 with 1 Gbps as the upper limit of the transfer rate. The RGMII22B is connected to the RGMII13B of the CPU 10 with 1 Gbps as the upper limit of the transfer rate.

PHY23A〜23Cは、外部デバイスとのインタフェースである。PHY23Aは、1Gbpsを転送レートの上限として、有線LAN端末3Aと接続されている。PHY23Bは、1Gbpsを転送レートの上限として、有線LAN端末3Bと接続されている。PHY23Cは、1Gbpsを転送レートの上限として、有線LAN端末3Cと接続されている。 PHY23A-23C are interfaces with external devices. The PHY23A is connected to the wired LAN terminal 3A with 1 Gbps as the upper limit of the transfer rate. The PHY23B is connected to the wired LAN terminal 3B with 1 Gbps as the upper limit of the transfer rate. The PHY23C is connected to the wired LAN terminal 3C with 1 Gbps as the upper limit of the transfer rate.

制御I/F24は、L2SW20の設定を行うためのインタフェースであり、CPU10の制御I/F15と接続されている。 The control I / F24 is an interface for setting the L2SW20, and is connected to the control I / F15 of the CPU 10.

(無線チップ30Aおよび30B)
無線チップ30Aは、PCIe31Aおよびアンテナ32Aを備えている。また、無線チップ30Bは、PCIe31Bおよびアンテナ32Bを備えている。
(Wireless chips 30A and 30B)
The wireless chip 30A includes a PCIe 31A and an antenna 32A. Further, the wireless chip 30B includes a PCIe 31B and an antenna 32B.

PCIe31Aおよび31Bは、外部デバイスとのインタフェースである。PCIe31Aは、1Gbps以上の転送レートを有しており、CPU10のPCIe14Aと接続されている。PCIe31Bは、1Gbps以上の転送レートを有しており、CPU10のPCIe14Bと接続されている。 PCIe31A and 31B are interfaces with external devices. The PCIe31A has a transfer rate of 1 Gbps or more, and is connected to the PCIe14A of the CPU 10. The PCIe31B has a transfer rate of 1 Gbps or more, and is connected to the PCIe14B of the CPU 10.

アンテナ32Aおよび32Bは、それぞれ無線LAN端末2Aおよび2Bと通信を行うために設けられている。無線チップ30Aは、アンテナ32Aを介し、1Gbps以上の転送レートである無線LANによって無線LAN端末2Aと接続されている。無線チップ30Bは、アンテナ32Bを介し、1Gbps以上の転送レートである無線LANによって無線LAN端末2Bと接続されている。 The antennas 32A and 32B are provided to communicate with the wireless LAN terminals 2A and 2B, respectively. The wireless chip 30A is connected to the wireless LAN terminal 2A via an antenna 32A by a wireless LAN having a transfer rate of 1 Gbps or more. The wireless chip 30B is connected to the wireless LAN terminal 2B via an antenna 32B by a wireless LAN having a transfer rate of 1 Gbps or more.

[無線LAN端末2Aおよび2Bと有線LAN端末3A〜3Cとの接続]
無線LAN端末2Aおよび2Bと有線LAN端末3A〜3Cとの接続形態について説明する。本実施の形態1に係る中継装置1において、有線LAN端末3A〜3Cのそれぞれは、L2SW20のPHY23A〜23Cに接続されている。また、無線LAN端末2Aおよび2Bのそれぞれは、無線チップ30Aおよび30Bに接続されている。
[Connection between wireless LAN terminals 2A and 2B and wired LAN terminals 3A to 3C]
The connection form between the wireless LAN terminals 2A and 2B and the wired LAN terminals 3A to 3C will be described. In the relay device 1 according to the first embodiment, each of the wired LAN terminals 3A to 3C is connected to the PHYs 23A to 23C of the L2SW20. Further, each of the wireless LAN terminals 2A and 2B is connected to the wireless chips 30A and 30B, respectively.

有線LAN端末3A〜3Cと無線LAN端末2Aおよび2Bとは、相互に通信できる状態となっている。また、有線LAN端末3Aおよび3Bと無線LAN端末2Aおよび2Bとは、同一のサブネットのIPアドレスを有しており、有線LAN端末3Cは、有線LAN端末3Aおよび3Bとは異なるサブネットのIPアドレスを有しているものとする。なお、有線LAN端末3Aおよび3Bと無線LAN端末2Aおよび2Bとの相互通信の場合は、CPU10を経由してブリッジ転送を行うものとする。 The wired LAN terminals 3A to 3C and the wireless LAN terminals 2A and 2B are in a state of being able to communicate with each other. Further, the wired LAN terminals 3A and 3B and the wireless LAN terminals 2A and 2B have the same subnet IP address, and the wired LAN terminal 3C has an IP address of a subnet different from the wired LAN terminals 3A and 3B. Suppose you have. In the case of mutual communication between the wired LAN terminals 3A and 3B and the wireless LAN terminals 2A and 2B, bridge transfer shall be performed via the CPU 10.

図8は、無線LAN端末2Aおよび2Bを送信端末とし、有線LAN端末3A〜3Cを受信端末とした場合の通信経路の一例を示す概略図である。図8において、送信端末は、パケットを送信する無線LAN端末2Aまたは2Bのいずれかを示す。受信端末は、パケットを受信する有線LAN端末3A〜3Cのいずれかを示す。種別は、転送方法を示し、通常転送または並列転送のいずれかを示す。 FIG. 8 is a schematic view showing an example of a communication path when the wireless LAN terminals 2A and 2B are the transmitting terminals and the wired LAN terminals 3A to 3C are the receiving terminals. In FIG. 8, the transmitting terminal shows either the wireless LAN terminal 2A or 2B for transmitting the packet. The receiving terminal indicates any of the wired LAN terminals 3A to 3C that receive the packet. The type indicates a transfer method, and indicates either normal transfer or parallel transfer.

経由#1〜経由#6は、パケットが経由するインタフェースを示す。具体的には、経由#1は、無線チップ30Aまたは30Bで受信したパケットが出力するインタフェースであるPCIe31Aまたは31Bのいずれかを示し、送信端末に応じて固定されている。経由#2は、パケットがCPU10に入力される際のインタフェースであるPCIe14Aまたは14Bのいずれかを示し、送信端末および経由#1に応じて固定されている。経由#3は、パケット転送部12であり、CPU10に入力されたパケットがパケット転送部12を経由することを示す。 Via # 1 to via # 6 indicate the interface through which the packet passes. Specifically, transit # 1 indicates either PCIe31A or 31B, which is an interface for outputting a packet received by the wireless chip 30A or 30B, and is fixed according to the transmitting terminal. Via # 2 indicates either PCIe14A or 14B, which is an interface when a packet is input to the CPU 10, and is fixed according to the transmitting terminal and transit # 1. The route # 3 is the packet transfer unit 12, and indicates that the packet input to the CPU 10 passes through the packet transfer unit 12.

経由#4は、パケットがCPU10から出力される際のインタフェースであるRGMII13Aまたは13Bのいずれかを示し、送信端末と転送種別とによって決定される。経由#5は、パケットがL2SW20に入力される際のインタフェースであるRGMII22Aまたは22Bのいずれかを示し、経由#4に応じて固定されている。経由#6は、パケットがL2SW20から出力される際のインタフェースであるPHY23A〜23Cのいずれかを示し、受信端末に応じて固定されている。 Via # 4 indicates either RGMII13A or 13B, which is an interface when the packet is output from the CPU 10, and is determined by the transmitting terminal and the transfer type. Via # 5 indicates either RGMII22A or 22B, which is an interface when a packet is input to L2SW20, and is fixed according to transit # 4. Via # 6 indicates any of PHY23A to 23C, which is an interface when a packet is output from L2SW20, and is fixed according to the receiving terminal.

[並列転送決定処理]
図9は、通信管理部11による並列転送決定処理の流れの一例を示すフローチャートである。以下、通信管理部11による並列転送決定処理について、図9を参照して説明する。
[Parallel transfer decision processing]
FIG. 9 is a flowchart showing an example of the flow of the parallel transfer determination process by the communication management unit 11. Hereinafter, the parallel transfer determination process by the communication management unit 11 will be described with reference to FIG.

ステップS1において、通信管理部11は、初期設定として並列転送の有無を決定する並列転送フラグを「無」に設定する。ステップS2において、通信管理部11は、中継装置1に接続された無線LAN端末2Aおよび2Bの無線LAN端末情報と、CPU10とL2SW20との間のRGMII13Aおよび13Bにおける通信量を示す通信量情報を取得する。 In step S1, the communication management unit 11 sets the parallel transfer flag for determining the presence / absence of parallel transfer to "none" as an initial setting. In step S2, the communication management unit 11 acquires the wireless LAN terminal information of the wireless LAN terminals 2A and 2B connected to the relay device 1 and the communication amount information indicating the communication amount in the RGMII13A and 13B between the CPU 10 and the L2SW20. To do.

ステップS3において、通信管理部11は、並列転送フラグが「無」であるか否かを判断する。判断の結果、並列転送フラグが「無」である場合(ステップS3;YES)には、処理がステップS4に移行する。ステップS4において、通信管理部11は、通信量情報を参照し、RGMII13Aの通信量が第1の閾値である「xxx」Mbps以上であり、かつ、RGMII13Bの通信量が第2の閾値である「yyy」Mbps未満であるか否かを判断する。 In step S3, the communication management unit 11 determines whether or not the parallel transfer flag is “absent”. As a result of the determination, when the parallel transfer flag is "none" (step S3; YES), the process proceeds to step S4. In step S4, the communication management unit 11 refers to the communication amount information, and the communication amount of the RGMII13A is equal to or more than the first threshold value of “xxx” Mbps, and the communication amount of the RGMII13B is the second threshold value. It is determined whether or not it is less than "yy" Mbps.

RGMII13Aの通信量が「xxx」Mbps以上であり、かつ、RGMII13Bの通信量が「yyy」Mbps未満である場合(ステップS4;YES)には、処理がステップS5に移行する。ステップS5において、通信管理部11は、並列転送を開始するため、無線LAN端末2Aおよび2Bのうち最も通信量が多い端末を選択する。そして、通信管理部11は、並列転送可否が「可」であり、最も通信量が多い端末のMACアドレスを送信元MACアドレスとした並列転送情報を生成し、パケット転送部12に通知する。 When the communication volume of the RGMII13A is "xxx" Mbps or more and the communication amount of the RGMII13B is less than "yyy" Mbps (step S4; YES), the process proceeds to step S5. In step S5, the communication management unit 11 selects the terminal having the largest amount of communication among the wireless LAN terminals 2A and 2B in order to start parallel transfer. Then, the communication management unit 11 generates parallel transfer information with the MAC address of the terminal having the largest amount of communication as the source MAC address, and notifies the packet transfer unit 12 whether or not parallel transfer is possible.

一方、RGMII13Aの通信量が「xxx」Mbps以上であり、かつ、RGMII13Bの通信量が「yyy」Mbps未満でない場合(ステップS4;NO)には、処理がステップS6に移行する。 On the other hand, when the communication amount of the RGMII13A is "xxx" Mbps or more and the communication amount of the RGMII13B is not less than "yyy" Mbps (step S4; NO), the process proceeds to step S6.

また、ステップS3において、並列転送フラグが「有」である場合(ステップS3;NO)には、処理がステップS7に移行する。ステップS7において、通信管理部11は、RGMII13Bの通信量が「yyy」Mbps未満であるか否かを判断する。 If the parallel transfer flag is "Yes" in step S3 (step S3; NO), the process proceeds to step S7. In step S7, the communication management unit 11 determines whether or not the communication volume of the RGMII13B is less than "yyy" Mbps.

RGMII13Bの通信量が「yyy」Mbps未満である場合(ステップS7;YES)、通信管理部11は、ステップS8において、並列転送を継続する。また、通信管理部11は、最も通信量が多い端末に変更があったときには、並列転送対象を更新するため、並列転送情報をパケット転送部12に通知する。そして、処理がステップS6に移行する。 When the communication volume of the RGMII13B is less than "yyy" Mbps (step S7; YES), the communication management unit 11 continues the parallel transfer in step S8. Further, the communication management unit 11 notifies the packet transfer unit 12 of the parallel transfer information in order to update the parallel transfer target when the terminal having the largest amount of communication is changed. Then, the process proceeds to step S6.

一方、RGMII13Bの通信量が「yyy」Mbps以上である場合(ステップS7;NO)、通信管理部11は、並列転送を解除する。また、通信管理部11は、並列転送可否を「否」とし、送信元MACアドレスの設定を「なし」とした並列転送情報を生成し、パケット転送部12に通知する。そして、処理がステップS6に移行する。 On the other hand, when the communication volume of the RGMII13B is "yy" Mbps or more (step S7; NO), the communication management unit 11 cancels the parallel transfer. Further, the communication management unit 11 generates parallel transfer information in which the parallel transfer enable / disable is set to "No" and the source MAC address is set to "None", and the packet transfer unit 12 is notified. Then, the process proceeds to step S6.

ステップS6において、通信管理部11は、設定時間が経過したか否かを判断する。設定時間が経過した場合(ステップS6;YES)には、処理がステップS2に戻り、ステップS2〜ステップS9までの処理が繰り返される。一方、設定時間が経過していない場合(ステップS6;NO)には、設定時間が経過するまでステップS6の処理が繰り返される。なお、図9に示す例における「xxx」および「yyy」の値は、閾値として予め設定されるものであるが、運用により設定を適宜変更することができる値とする。 In step S6, the communication management unit 11 determines whether or not the set time has elapsed. When the set time has elapsed (step S6; YES), the process returns to step S2, and the processes from step S2 to step S9 are repeated. On the other hand, when the set time has not elapsed (step S6; NO), the process of step S6 is repeated until the set time elapses. The values of "xxx" and "yyy" in the example shown in FIG. 9 are preset as threshold values, but the settings can be appropriately changed depending on the operation.

[パケット転送処理]
パケット転送部12によるパケット転送処理について説明する。パケット転送部12において、受信I/F51は、PCIe14Aまたは14Bからパケットを受信すると、受信したパケットを転送処理部52に供給する。
[Packet forwarding processing]
The packet transfer process by the packet transfer unit 12 will be described. In the packet transfer unit 12, when the reception I / F 51 receives a packet from the PCIe 14A or 14B, the reception I / F 51 supplies the received packet to the transfer processing unit 52.

転送処理部52は、受け取ったパケットに対する並列転送情報を記憶部54から読み出し、並列転送情報における並列転送の可否を示す情報が「可」であるか否かを判断する。並列転送の可否を示す情報が「可」である場合、転送処理部52は、受信したパケットの送信元MACアドレスと、並列転送情報に登録されている送信元MACアドレスとを比較する。比較の結果、2つの送信元MACアドレスが一致する場合、転送処理部52は、受信したパケットに対してtagVLANを付与し、パケットをRGMII22Bに接続された送信I/F53bに供給する。 The transfer processing unit 52 reads the parallel transfer information for the received packet from the storage unit 54, and determines whether or not the information indicating whether or not the parallel transfer is possible in the parallel transfer information is "OK". When the information indicating whether or not parallel transfer is possible is "OK", the transfer processing unit 52 compares the source MAC address of the received packet with the source MAC address registered in the parallel transfer information. As a result of comparison, when the two source MAC addresses match, the transfer processing unit 52 assigns a tagVLAN to the received packet and supplies the packet to the transmission I / F 53b connected to the RGMII22B.

一方、2つの送信元MACアドレスが一致しない場合、転送処理部52は、受信したパケットに対してtagVLANを付与せずに、パケットをRGMII22Aに接続された送信I/F53aに供給する。送信I/F53aまたは53bは、受信したパケットをそれぞれに接続されたRGMII22Aまたは22Bに供給する。 On the other hand, when the two source MAC addresses do not match, the transfer processing unit 52 supplies the received packet to the transmission I / F 53a connected to the RGMII22A without adding the tagVLAN. The transmission I / F 53a or 53b supplies the received packet to the RGMII 22A or 22B connected to each other.

なお、RGMII22Aまたは22Bからパケットを受信した場合、パケット転送部12は、受信したパケットに含まれる宛先MACアドレス、またはルーティング情報等に従い、指定された送信I/Fに対してパケットを送信するものとする。 When a packet is received from RGMII 22A or 22B, the packet transfer unit 12 shall transmit the packet to the specified transmission I / F according to the destination MAC address or routing information included in the received packet. To do.

このように、本実施の形態1では、RGMII13Aおよび13Bの通信量の状態と、無線LAN端末2Aおよび2Bの通信量とに基づき、送信パケットのうち通信量が多いパケットを転送する通信経路を、より通信量が少ない通信経路に変更する。これにより、通信量の多いパケットを確実に送信先へ転送することができ、複数の無線LAN端末からのデータを転送する場合でも、転送レートを向上させることができる。また、無線LAN端末2Aおよび2Bからの通信量の合計がRGMII13Aおよび13Bのうち一方の許容通信量を超えた場合でも、パケットが破棄されることなく有線LAN端末3A〜3Cへ転送することができる。 As described above, in the first embodiment, the communication path for transferring the packet having a large amount of communication among the transmission packets is set based on the state of the communication amount of the RGMII 13A and 13B and the communication amount of the wireless LAN terminals 2A and 2B. Change to a communication path with less traffic. As a result, packets with a large amount of communication can be reliably transferred to the destination, and the transfer rate can be improved even when data from a plurality of wireless LAN terminals is transferred. Further, even if the total amount of communication from the wireless LAN terminals 2A and 2B exceeds the allowable communication amount of one of the RGMII13A and 13B, the packet can be transferred to the wired LAN terminals 3A to 3C without being discarded. ..

[無線LAN端末2Aから有線LAN端末3Aへの通信例]
次に、無線LAN端末2Aから有線LAN端末3Aに対して通信を行う場合を例にとり、通常転送および並列転送を行う際のパケットの流れについて説明する。
[Communication example from wireless LAN terminal 2A to wired LAN terminal 3A]
Next, taking the case of communicating from the wireless LAN terminal 2A to the wired LAN terminal 3A as an example, the flow of packets when performing normal transfer and parallel transfer will be described.

(通常転送の場合)
図10は、通常転送によって無線LAN端末2Aから有線LAN端末3Aへパケットを送信する場合について説明するためのシーケンス図である。まず、無線LAN端末2Aは、有線LAN端末3AのMACアドレスを知るために、有線LAN端末3Aに対してARP(Address Resolution Protocol)を送信する(シーケンスSEQ1)。送信されたARPは、CPU10のパケット転送部12およびRGMII13A、L2SW20のRGMII22AおよびPHY23Aを介して有線LAN端末3Aに到達する(シーケンスSEQ2〜シーケンスSEQ5)。
(For normal transfer)
FIG. 10 is a sequence diagram for explaining a case where a packet is transmitted from the wireless LAN terminal 2A to the wired LAN terminal 3A by normal transfer. First, the wireless LAN terminal 2A transmits ARP (Address Resolution Protocol) to the wired LAN terminal 3A in order to know the MAC address of the wired LAN terminal 3A (sequence SEQ 1). The transmitted ARP reaches the wired LAN terminal 3A via the packet transfer unit 12 of the CPU 10 and the RGMII13A, the RGMII22A and the PHY23A of the L2SW20 (sequence SEQ2 to sequence SEQ5).

有線LAN端末3Aは、自装置宛のARPを受信すると、自装置のMACアドレスを記載し、ARP応答を返す(シーケンスSEQ6)。ARP応答は、PHY23A、RGMII22A、RGMII13Aおよびパケット転送部12を介して無線LAN端末2Aに到達する(シーケンスSEQ7〜シーケンスSEQ10)。 When the wired LAN terminal 3A receives the ARP addressed to its own device, it describes the MAC address of its own device and returns an ARP response (sequence SEQ 6). The ARP response reaches the wireless LAN terminal 2A via PHY23A, RGMII22A, RGMII13A and the packet transfer unit 12 (sequence SEQ 7 to sequence SEQ 10).

有線LAN端末3AのMACアドレスを学習した無線LAN端末2Aは、有線LAN端末3Aに向けてパケットを送信する(シーケンスSEQ11)。有線LAN端末3Aからのパケットを受信したパケット転送部12は、並列転送情報に含まれる並列転送の可否を示す情報が「否」であるため、tagVLANを付与せずにRGMII13Aに対してパケットを送信する(シーケンスSEQ12)。RGMII13Aに入力されたパケットは、PortBasedVLANに従い、RGMII22AおよびPHY23Aを介して有線LAN端末3Aに到達する(シーケンスSEQ13〜シーケンスSEQ15)。 The wireless LAN terminal 2A that has learned the MAC address of the wired LAN terminal 3A transmits a packet to the wired LAN terminal 3A (sequence SEQ 11). The packet transfer unit 12 that has received the packet from the wired LAN terminal 3A transmits the packet to the RGMII13A without adding the tagVLAN because the information including the parallel transfer information indicating whether or not the parallel transfer is possible is "No". (Sequence SEQ12). The packet input to the RGMII13A reaches the wired LAN terminal 3A via the RGMII22A and the PHY23A according to the PortBased WLAN (sequence SEQ 13 to sequence SEQ 15).

(並列転送の場合)
図11は、無線LAN端末2Aから有線LAN端末3Aへパケットを送信する際の並列転送情報の一例を示す概略図である。図12は、並列転送によって無線LAN端末2Aから有線LAN端末3Aへパケットを送信する場合について説明するためのシーケンス図である。
(For parallel transfer)
FIG. 11 is a schematic view showing an example of parallel transfer information when a packet is transmitted from the wireless LAN terminal 2A to the wired LAN terminal 3A. FIG. 12 is a sequence diagram for explaining a case where a packet is transmitted from the wireless LAN terminal 2A to the wired LAN terminal 3A by parallel transfer.

図11に示すパケット転送情報が登録されている場合には、まず、無線LAN端末2Aは、有線LAN端末3AのMACアドレスを知るために、有線LAN端末3Aに対してARPを送信する(シーケンスSEQ21)。送信されたARPは、CPU10のパケット転送部12およびRGMII13A、L2SW20のRGMII22AおよびPHY23Aを介して有線LAN端末3Aに到達する(シーケンスSEQ22〜シーケンスSEQ25)。 When the packet transfer information shown in FIG. 11 is registered, first, the wireless LAN terminal 2A transmits ARP to the wired LAN terminal 3A in order to know the MAC address of the wired LAN terminal 3A (sequence SEQ 21). ). The transmitted ARP reaches the wired LAN terminal 3A via the packet transfer unit 12 of the CPU 10 and the RGMII13A, the RGMII22A and the PHY23A of the L2SW20 (sequence SEQ22 to sequence SEQ25).

有線LAN端末3Aは、自装置宛のARPを受信すると、自装置のMACアドレスを記載し、ARP応答を返す(シーケンスSEQ26)。ARP応答は、PHY23A、RGMII22A、RGMII13Aおよびパケット転送部12を介して無線LAN端末2Aに到達する(シーケンスSEQ27〜シーケンスSEQ30)。 When the wired LAN terminal 3A receives the ARP addressed to its own device, it describes the MAC address of its own device and returns an ARP response (sequence SEQ 26). The ARP response reaches the wireless LAN terminal 2A via PHY23A, RGMII22A, RGMII13A and the packet transfer unit 12 (sequence SEQ 27 to sequence SEQ 30).

有線LAN端末3AのMACアドレスを学習した無線LAN端末2Aは、有線LAN端末3Aに向けてパケットを送信する(シーケンスSEQ31)。有線LAN端末3Aからのパケットを受信したパケット転送部12は、並列転送情報に含まれる並列転送の可否を示す情報が「可」であるため、tagVLAN(VID=101)を付与してRGMII13Bに対してパケットを送信する(シーケンスSEQ32)。RGMII13Bに入力されたパケットは、tagVLAN(VID=101)に従い、RGMII22BおよびPHY23Aを介して有線LAN端末3Aに到達する(シーケンスSEQ33〜シーケンスSEQ35)。 The wireless LAN terminal 2A that has learned the MAC address of the wired LAN terminal 3A transmits a packet to the wired LAN terminal 3A (sequence SEQ 31). Since the packet transfer unit 12 that has received the packet from the wired LAN terminal 3A is "possible" in the information indicating whether or not parallel transfer is possible included in the parallel transfer information, tagVLAN (VID = 101) is added to the RGMII13B. To send a packet (sequence SEQ 32). The packet input to the RGMII13B reaches the wired LAN terminal 3A via the RGMII22B and the PHY23A according to the tagVLAN (VID = 101) (sequence SEQ 33 to sequence SEQ 35).

以上のように、本実施の形態1に係る中継装置1は、CPU10により、通信量が少ないRGMIIが選択され、通信量が多い無線LAN端末からの受信データが、選択されたRGMIIから出力される。また、L2SW20により、選択されたRGMIIを介して入力された受信データが、宛先情報に従って複数のPHYのいずれかから出力される。これにより、通信量の多い受信データが通信量の少ないRGMIIから出力されるため、複数の送信端末からのデータを転送する場合でも、受信データを確実に出力することができ、転送レートを向上させることができる。 As described above, in the relay device 1 according to the first embodiment, the CPU 10 selects the RGMII having a small amount of communication, and the data received from the wireless LAN terminal having a large amount of communication is output from the selected RGMII. .. Further, the L2SW20 outputs the received data input via the selected RGMII from any of the plurality of PHYs according to the destination information. As a result, the received data with a large amount of communication is output from the RGMII with a small amount of communication, so that the received data can be reliably output even when the data from a plurality of transmitting terminals is transferred, and the transfer rate is improved. be able to.

以上、本実施の形態1について説明したが、本発明は、上述した実施の形態1に限定されるものではなく、本発明の要旨を逸脱しない範囲内で様々な変形や応用が可能である。例えば、実施の形態1では、CPU10とL2SW20との間のインタフェースとしてRGMIIを用いた場合を例にとって説明したが、これはこの例に限られない。無線LAN端末2Aおよび2Bと無線チップ30Aおよび30Bとの間の無線通信と、CPU10とL2SW20との間の有線通信との通信速度の関係が「無線通信>有線通信」という関係になるものであれば、どのような中継装置にも適用することができる。 Although the first embodiment has been described above, the present invention is not limited to the first embodiment described above, and various modifications and applications can be made without departing from the gist of the present invention. For example, in the first embodiment, the case where RGMII is used as the interface between the CPU 10 and the L2SW20 has been described as an example, but this is not limited to this example. The relationship between the communication speeds of the wireless communication between the wireless LAN terminals 2A and 2B and the wireless chips 30A and 30B and the wired communication between the CPU 10 and the L2SW20 may be "wireless communication> wired communication". For example, it can be applied to any relay device.

また、送信側と受信側とでの通信速度の関係が「送信側の通信速度>受信側の通信速度」となり、かつ、送信側から受信側への転送経路として迂回路となるバスを有する構成であれば、実施の形態1に係る中継装置を無線AP以外に適用することができる。具体的には、例えば、WAN側に10Gbps通信速度を有する1つのポートと、LAN側に1Gbpsの通信速度を有する4つのポートとを備え、L2SWとCPUとの間が複数のRGMIIで接続されたルータを中継装置として適用することができる。また、例えば、コネクタ形状が異なり、通信速度が「送信側の通信速度>受信側の通信速度」の関係となり、かつ、送信側から受信側への転送経路として迂回路となるバスを有するコンバータを中継装置として適用することができる。 In addition, the relationship between the communication speeds of the transmitting side and the receiving side is "communication speed of the transmitting side> communication speed of the receiving side", and there is a bus that serves as a detour as a transfer route from the transmitting side to the receiving side. If so, the relay device according to the first embodiment can be applied to other than the wireless AP. Specifically, for example, one port having a communication speed of 10 Gbps on the WAN side and four ports having a communication speed of 1 Gbps on the LAN side are provided, and the L2SW and the CPU are connected by a plurality of RGMIIs. The router can be applied as a relay device. Further, for example, a converter having a different connector shape, a communication speed having a relationship of "communication speed on the transmitting side> communication speed on the receiving side", and having a bus as a detour as a transfer path from the transmitting side to the receiving side. It can be applied as a relay device.

さらに、通常転送と並列転送とを区別する方法として、tagVLANを用いた場合の他に、例えば、CPUとL2SWとの間で取り決められた、指定のMACアドレスまたはIPアドレス等を用いた固有の方法で区別してもよい。さらにまた、実施の形態1では、RGMII13Aの通信量の輻輳をRGMII13Bで補う場合を例にとって説明したが、これに限られず、RGMII13Bの通信量の輻輳をRGMII13Aで補うようにしてもよい。 Further, as a method for distinguishing between normal transfer and parallel transfer, in addition to the case of using tagVLAN, for example, a unique method using a designated MAC address or IP address agreed between the CPU and L2SW. May be distinguished by. Furthermore, in the first embodiment, the case where the congestion of the traffic of the RGMII13A is compensated by the RGMII13B has been described as an example, but the present invention is not limited to this, and the congestion of the traffic of the RGMII13B may be compensated by the RGMII13A.

1、100 中継装置、2A、2B、200A、200B 無線LAN端末、3A、3B、3C、300A、300B 有線LAN端末、10、110 CPU、20、120 L2SW、30A、30B、130A、130B 無線チップ、11 通信管理部、12 パケット転送部、13A、13B、22A、22B RGMII、14A、14B、31A、31B PCIe、15、24 制御インタフェース、21 VLAN管理部、23A、23B、23C PHY、32A、32B アンテナ、51 受信インタフェース、52 転送処理部、53a、53b 送信インタフェース、54 記憶部、400 インターネット網。 1,100 relay device, 2A, 2B, 200A, 200B wireless LAN terminal, 3A, 3B, 3C, 300A, 300B wired LAN terminal, 10,110 CPU, 20,120 L2SW, 30A, 30B, 130A, 130B wireless chip, 11 Communication management unit, 12 Packet transfer unit, 13A, 13B, 22A, 22B RGMII, 14A, 14B, 31A, 31B PCIe, 15, 24 control interface, 21 WLAN management unit, 23A, 23B, 23C PHY, 32A, 32B antenna , 51 Receive interface, 52 Transfer processing unit, 53a, 53b Transmission interface, 54 Storage unit, 400 Ethernet network.

Claims (4)

第1の送信端末および第2の送信端末からデータを受信し、受信データに含まれる宛先情報に従って、前記受信データを受信端末へ出力する中継装置であって、
前記受信端末へ前記受信データを出力可能な複数の出力インタフェースと、
前記受信データを第1の通信経路または第2の通信経路に出力する制御手段と、
前記第1の通信経路および前記第2の通信経路で前記制御手段と接続され、前記第1の通信経路および前記第2の通信経路を介して入力された前記受信データを、前記宛先情報に従って前記複数の出力インタフェースのいずれかから出力する出力手段と
を備え、
前記制御手段は、
前記第1の通信経路および前記第2の通信経路のうち通信量が少ない通信経路を選択し、前記第1の送信端末および前記第2の送信端末のうち通信量が多い送信端末からの受信データを、選択された前記通信経路から出力し、
前記出力手段は、
選択された前記通信経路を介して入力された前記受信データを、前記宛先情報に従って前記複数の出力インタフェースのいずれかから出力する
ことを特徴とする中継装置。
A relay device that receives data from a first transmitting terminal and a second transmitting terminal and outputs the received data to the receiving terminal according to the destination information included in the received data.
A plurality of output interfaces capable of outputting the received data to the receiving terminal, and
A control means for outputting the received data to the first communication path or the second communication path, and
The received data connected to the control means through the first communication path and the second communication path and input via the first communication path and the second communication path is subjected to the reception data according to the destination information. Equipped with an output means to output from any of multiple output interfaces
The control means
Data received from a transmission terminal having a large amount of communication among the first transmission terminal and the second transmission terminal by selecting a communication path having a small amount of communication from the first communication path and the second communication path. Is output from the selected communication path,
The output means
A relay device characterized in that the received data input via the selected communication path is output from any of the plurality of output interfaces according to the destination information.
前記制御手段は、
前記第1の送信端末および前記第2の送信端末それぞれの通信量を含む送信端末情報と、前記第1の通信経路および前記第2の通信経路それぞれの通信量を示す通信量情報とを取得し、前記通信量情報に基づき前記通信量が少ない通信経路を選択し、前記送信端末情報に基づき前記通信量が多い送信端末を判断する通信管理部と、
前記通信量が多い送信端末からの前記受信データを、選択された前記通信経路から出力させる転送部と
を有する
ことを特徴とする請求項1に記載の中継装置。
The control means
The transmission terminal information including the communication amount of each of the first transmission terminal and the second transmission terminal and the communication amount information indicating the communication amount of each of the first communication path and the second communication path are acquired. , A communication management unit that selects a communication path with a small amount of communication based on the communication amount information and determines a transmission terminal with a large amount of communication based on the transmission terminal information.
The relay device according to claim 1, further comprising a transfer unit that outputs the received data from the transmitting terminal having a large amount of communication from the selected communication path.
前記通信管理部は、
前記第1の通信経路の通信量が第1の閾値を超え、前記第2の通信経路の通信量が第2の閾値未満である場合に、通信経路として前記第2の通信経路を選択し、
前記通信量が多い送信端末からの前記受信データに含まれる送信元を転送情報に登録し、
前記転送部は、
前記受信データの送信元と前記転送情報に登録された送信元とが一致した場合に、前記受信データに対してタグを付与し、選択された前記第2の通信経路から前記受信データを出力し、
前記出力手段は、
前記受信データに付与された前記タグの有無に応じて、前記複数の出力インタフェースのいずれから出力するのかを決定する管理部を有する
ことを特徴とする請求項2に記載の中継装置。
The communication management unit
When the communication volume of the first communication path exceeds the first threshold value and the communication volume of the second communication path is less than the second threshold value, the second communication path is selected as the communication path.
The source included in the received data from the transmitting terminal having a large amount of communication is registered in the transfer information, and the transfer information is registered.
The transfer unit
When the source of the received data and the source registered in the transfer information match, a tag is attached to the received data, and the received data is output from the selected second communication path. ,
The output means
The relay device according to claim 2, further comprising a management unit that determines which of the plurality of output interfaces outputs the data according to the presence or absence of the tag attached to the received data.
コンピュータに、
第1の通信経路および第2の通信経路のうち、通信量が少ない通信経路の選択と、第1の送信端末および第2の送信端末のうち通信量が多い送信端末からの受信データの、選択された前記通信経路からの出力とを行うステップと、
選択された前記通信経路を介して入力された受信データを、前記受信データに含まれる宛先情報に従って複数の出力インタフェースのいずれかから出力するステップと
を実行させる
ことを特徴とする中継プログラム。
On the computer
Selection of a communication path having a small amount of communication among the first communication path and the second communication path, and selection of data received from a transmission terminal having a large amount of communication among the first transmission terminal and the second transmission terminal. The step of performing the output from the said communication path and
A relay program comprising executing a step of outputting received data input via the selected communication path from any of a plurality of output interfaces according to destination information included in the received data.
JP2017166951A 2017-08-31 2017-08-31 Relay device and relay program Active JP6879129B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017166951A JP6879129B2 (en) 2017-08-31 2017-08-31 Relay device and relay program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017166951A JP6879129B2 (en) 2017-08-31 2017-08-31 Relay device and relay program

Publications (2)

Publication Number Publication Date
JP2019047255A JP2019047255A (en) 2019-03-22
JP6879129B2 true JP6879129B2 (en) 2021-06-02

Family

ID=65814735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017166951A Active JP6879129B2 (en) 2017-08-31 2017-08-31 Relay device and relay program

Country Status (1)

Country Link
JP (1) JP6879129B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689298B (en) * 2020-12-29 2024-04-16 上海旷通科技有限公司 LTE module remote control communication method and system suitable for IDU equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7965626B2 (en) * 2004-08-03 2011-06-21 Hewlett-Packard Development Company, L.P. System and method for transferring data on a data network using multiple paths
EP2599264A4 (en) * 2010-07-29 2016-05-18 Hewlett Packard Development Co A device and method for egress packet forwarding using mesh tagging
US9065749B2 (en) * 2011-11-21 2015-06-23 Qualcomm Incorporated Hybrid networking path selection and load balancing
JP6052026B2 (en) * 2013-03-29 2016-12-27 富士通株式会社 Route selection device, route selection method, and communication system
JP6217138B2 (en) * 2013-05-22 2017-10-25 富士通株式会社 Packet transfer apparatus and packet transfer method

Also Published As

Publication number Publication date
JP2019047255A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
JP6781266B2 (en) Virtual tunnel endpoint for load balancing considering congestion
US8995444B2 (en) Method and system for extending routing domain to non-routing end stations
EP2412129B1 (en) Redundant host connection in a routed network
US9143445B2 (en) Method and system for link aggregation across multiple switches
TWI461032B (en) Computer system and communication method in the computer system
US9497073B2 (en) Distributed link aggregation group (LAG) for a layer 2 fabric
US9923812B2 (en) Triple-tier anycast addressing
US20120163164A1 (en) Method and system for remote load balancing in high-availability networks
KR101613640B1 (en) Packet forwarding
EP2920926B1 (en) Virtual link aggregations across multiple fabric switches
CN106936704B (en) Multi-path switching using hop-by-hop VLAN classification
JP6064989B2 (en) Control device, communication system, node control method, and program
JP6879129B2 (en) Relay device and relay program
WO2015032260A1 (en) Route updating method and routing device
WO2017164068A1 (en) Transport network control device, communication system, transfer node control method, and program
JP5959489B2 (en) Layer 2 connection device
JP2007116443A (en) Method for transmitting control packet to multilink

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200513

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210315

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210330

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210412

R150 Certificate of patent or registration of utility model

Ref document number: 6879129

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150