JP2006270680A - Layer two switch device - Google Patents

Layer two switch device Download PDF

Info

Publication number
JP2006270680A
JP2006270680A JP2005087728A JP2005087728A JP2006270680A JP 2006270680 A JP2006270680 A JP 2006270680A JP 2005087728 A JP2005087728 A JP 2005087728A JP 2005087728 A JP2005087728 A JP 2005087728A JP 2006270680 A JP2006270680 A JP 2006270680A
Authority
JP
Japan
Prior art keywords
packet
broadband access
access server
address
bas
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
JP2005087728A
Other languages
Japanese (ja)
Inventor
Katsumi Kobayashi
克己 小林
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.)
Tokyo Electric Power Company Holdings Inc
Original Assignee
Tokyo Electric Power Co Inc
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 Tokyo Electric Power Co Inc filed Critical Tokyo Electric Power Co Inc
Priority to JP2005087728A priority Critical patent/JP2006270680A/en
Publication of JP2006270680A publication Critical patent/JP2006270680A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a layer two switch device for rewriting the destination address into the MAC address of a predetermined broad band access server for transmission upon receiving a PADI packet. <P>SOLUTION: The two layer switch device 3 equipped with at least two connection ports 35 for transmitting a layer two level packet received by any of the connection ports 35 from at least one of the residual connection parts 35 is provided with a packet processing part 31 for controlling the transmission/reception of a packet, an address database 33 for storing the MAC address of a communicatively connected broad band access server (BAS4) and distribution policy information 34 in which the selection policy of the BAS4 is stored. Then, when the packet is a PADI packet, the packet processing part 31 selects one BAS4 from the address database 33 based on the distribution policy information 34, and rewrites the destination address of the packet into the MAC address of the selected BAS4 for transmission. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、レイヤ2レベルのパケットの送受信を行うレイヤ2スイッチ装置に関する。   The present invention relates to a layer 2 switch apparatus that transmits and receives layer 2 level packets.

一般にブロードバンドネットワークにおけるアクセス方式には、イーサネット(登録商標)上でPPP(ポイント・ツー・ポイントプロトコル)の認証機能を利用可能なPPPoE(「PPP over Ethernet」の略であり、RFC2516に定義されている)を用いている。   In general, an access method in a broadband network is PPPoE (abbreviation of “PPP over Ethernet”) that can use a PPP (point-to-point protocol) authentication function on Ethernet (registered trademark), and is defined in RFC2516. ) Is used.

図6にPPPoEを用いたネットワークの構成を示す。通常、ブロードバンドネットワークの加入者の端末(コンピュータ)1には、PPPoEソフトウェア1aがインストールされており、この端末1は、DSLモデム2を介して通信事業者の集線装置(レイヤ2スイッチ装置3)に接続されている。このレイヤ2スイッチ装置3は加入者を管理するシステムであるブロードバンドアクセスサーバ(BAS)4に接続され、さらに、このBAS4を介して、インターネットサービスプロバイダ(ISP)のシステム5やインターネット6に接続している。   FIG. 6 shows a network configuration using PPPoE. Usually, PPPoE software 1a is installed in a terminal (computer) 1 of a subscriber of a broadband network, and this terminal 1 is connected to a communication company's concentrator (layer 2 switch device 3) via a DSL modem 2. It is connected. This layer 2 switch device 3 is connected to a broadband access server (BAS) 4 which is a system for managing subscribers, and further connected to a system 5 of the Internet service provider (ISP) and the Internet 6 via this BAS 4. Yes.

BAS4は、PPPoEを用いて加入者端末1と通信を行い、この加入者の認証を行うと同時に、この加入者が指定するISPのシステム5への接続等を行う。そのため、BAS4に障害が発生したりメインテナンスのために停止したりすると、加入者はネットワークを利用することができなくなるため、通信事業者は、継続したサービスを加入者に提供可能なように、ブロードキャストドメイン内にBAS4を複数台設置して信頼性を確保している。端末1が複数のBAS4から1台を選択する処理もPPPoEを用いて行われる(例えば、特許文献1参照)。   The BAS 4 communicates with the subscriber terminal 1 using PPPoE, authenticates the subscriber, and simultaneously connects to the ISP system 5 designated by the subscriber. Therefore, if a failure occurs in BAS4 or if it is stopped for maintenance, the subscriber will not be able to use the network. Therefore, the telecommunications carrier broadcasts so that the continued service can be provided to the subscriber. Multiple BAS4 units are installed in the domain to ensure reliability. The process in which the terminal 1 selects one from the plurality of BASs 4 is also performed using PPPoE (see, for example, Patent Document 1).

特開2003−198580号公報JP 2003-198580 A

しかしながら、PPPoEを用いてBAS4を選択する場合、どのBAS4を選択するかは端末1(PPPoEソフトウェア1a)の処理に依存することになり、通信事業者はこれを制御することができない。そのため、負荷分散のために複数のBAS4に均等にセッションを振り分けることができないという課題や、メインテナンス等に備えて、所定のBAS4(メインテナンスの対象でないBAS4)にセッションを集中させることができないという課題があった。   However, when selecting BAS4 using PPPoE, which BAS4 is selected depends on the processing of the terminal 1 (PPPoE software 1a), and the communication carrier cannot control it. Therefore, there is a problem that sessions cannot be equally distributed to a plurality of BASs 4 for load balancing, or a problem that sessions cannot be concentrated on a predetermined BAS 4 (a BAS 4 that is not subject to maintenance) in preparation for maintenance or the like. there were.

端末1に実装されたPPPoEソフトウェア1aにおいて、接続するBAS4を明示的に指定させる方法もあるが、そのような設定をできるソフトウェア1aは特殊なものであり、また、BAS4のアドレス(MACアドレス)を指定できたとしても加入者への通知手段や手入力による設定等が必要となり現実的でない。   There is a method of explicitly specifying the BAS 4 to be connected in the PPPoE software 1a installed in the terminal 1, but the software 1a capable of such setting is a special one, and the address (MAC address) of the BAS 4 is set. Even if it can be specified, a means for notifying the subscriber, setting by manual input, and the like are required, which is not realistic.

本発明はこのような課題に鑑みてなされたものであり、PADIパケットを受信したときにその宛先アドレスを所定のブロードバンドアクセスサーバのMACアドレスに書き換えて送信するレイヤ2スイッチ装置を提供することを目的とする。   The present invention has been made in view of such a problem, and an object of the present invention is to provide a layer 2 switch device that, when receiving a PADI packet, rewrites the destination address to the MAC address of a predetermined broadband access server and transmits it. And

前記課題を解決するために、本発明に係るレイヤ2スイッチ装置は、少なくとも2以上の接続ポートを有し、この接続ポートのいずれかが受信したレイヤ2レベルのパケットを、残りの接続ポートの少なくとも1つから送信するものであり、パケットの送受信を制御するパケット処理手段(例えば、実施形態におけるパケット処理部31)と、通信可能なブロードバンドアクセスサーバのMACアドレスが記憶されたアドレスデータベースと、ブロードバンドアクセスサーバの選択ポリシーが記憶された振り分けポリシー情報とを有して構成される。そして、パケット処理手段が、受信したパケットがPADIパケットであるときに、振り分けポリシー情報に基づいてアドレスデータベースから1台のブロードバンドアクセスサーバを選択し、パケットの宛先アドレスを、選択されたブロードバンドアクセスサーバのMACアドレスに書き換えて送信するように構成される。   In order to solve the above-described problem, a layer 2 switch device according to the present invention has at least two or more connection ports, and any of the connection ports receives a layer 2 level packet received from at least the remaining connection ports. Packet processing means (for example, the packet processing unit 31 in the embodiment) that controls transmission / reception of packets, an address database that stores MAC addresses of broadband access servers capable of communication, and broadband access And distribution policy information in which a server selection policy is stored. Then, when the received packet is a PADI packet, the packet processing means selects one broadband access server from the address database based on the distribution policy information, and sets the destination address of the packet to the selected broadband access server. It is configured to rewrite to a MAC address for transmission.

このとき、パケット処理手段が、パケットのイーサタイプが0x8863であり、且つ、宛先アドレスがブロードキャストアドレスであるときに、受信したパケットがPADIパケットであると判断するように構成されることが好ましい。   At this time, it is preferable that the packet processing means is configured to determine that the received packet is a PADI packet when the ether type of the packet is 0x8863 and the destination address is a broadcast address.

また、ブロードバンドアクセスサーバを監視するBAS監視手段(例えば、実施形態におけるBAS監視部32)を有し、このBAS監視手段が、アドレスデータベースに記憶されているブロードバンドアクセスサーバのMACアドレスを宛先アドレスに設定したPADIパケットを送信し、このPADIパケットに対してPADOパケットが返信されたブロードバンドアクセスサーバの状態を正常としてアドレスデータベースに記憶し、パケット処理手段が、状態が正常であるブロードバンドアクセスサーバを選択して、パケットの宛先アドレスを書き換えるように構成されることが好ましい。あるいは、BAS監視手段が、宛先アドレスにブロードキャストアドレスが設定されたPADIパケットを送信し、このPADIパケットに対してPADOパケットが返信されたブロードバンドアクセスサーバの状態を正常としてアドレスデータベースに記憶し、パケット処理手段が、状態が正常であるブロードバンドアクセスサーバを選択して、パケットの宛先アドレスを書き換えるように構成されることが好ましい。   In addition, it has BAS monitoring means for monitoring the broadband access server (for example, the BAS monitoring unit 32 in the embodiment), and this BAS monitoring means sets the MAC address of the broadband access server stored in the address database as the destination address. The PAD packet is transmitted, and the state of the broadband access server to which the PADO packet is returned in response to this PADI packet is stored in the address database as normal, and the packet processing means selects the broadband access server that is in the normal state. The packet is preferably configured to rewrite the destination address of the packet. Alternatively, the BAS monitoring means transmits a PADI packet with a broadcast address set as the destination address, stores the state of the broadband access server to which the PADO packet is returned in response to this PADI packet as normal, and stores it in the address database. Preferably, the means is configured to select a broadband access server in a normal state and rewrite the destination address of the packet.

さらに、パケット処理手段が、ブロードバンドアクセスサーバに割り当てられた端末数を記憶するように構成され、振り分けポリシー情報が、この端末数の最も少ないブロードバンドアクセスサーバを選択して、パケットの宛先アドレスを書き換えるように設定されていることが好ましい。   Further, the packet processing means is configured to store the number of terminals assigned to the broadband access server, and the distribution policy information selects the broadband access server having the smallest number of terminals and rewrites the packet destination address. It is preferable that it is set to.

あるいは、パケット処理手段が、宛先アドレスの書き換えの対象としないブロードバンドアクセスサーバを記憶するように構成され、振り分けポリシー情報が、書き換えの対象としないブロードバンドアクセスサーバを除外してブロードバンドアクセスサーバを選択して、パケットの宛先アドレスを書き換えるように設定されることが好ましい。   Alternatively, the packet processing means is configured to store a broadband access server that is not subject to rewriting of the destination address, and the distribution policy information selects a broadband access server excluding the broadband access server that is not subject to rewriting. The destination address of the packet is preferably set to be rewritten.

本発明に係るレイヤ2スイッチ装置を以上のように構成すると、PPPoEで接続をしようとする端末等やブロードバンドアクセスサーバに影響を与えることなしに、このレイヤ2スイッチ装置でPADIパケットの宛先アドレスを書き換えて、選択されるブロードバンドアクセスサーバを制御することができ、加入者に複数のブロードバンドアクセスサーバを提供して信頼性を確保しつつ、システム健全時における柔軟な運用を可能とすることができる。このとき、パケットのイーサタイプと宛先アドレスを調べることによりこのレイヤ2スイッチ装置3で送受信されるパケットの中からPADIパケットを識別することができる。   When the layer 2 switching device according to the present invention is configured as described above, the destination address of the PADI packet can be rewritten by this layer 2 switching device without affecting the terminal or the broadband access server to be connected by PPPoE. Thus, the selected broadband access server can be controlled, and a plurality of broadband access servers can be provided to the subscriber to ensure reliability while enabling flexible operation when the system is healthy. At this time, the PADI packet can be identified from the packets transmitted and received by the layer 2 switching device 3 by examining the ether type and the destination address of the packet.

また、このレイヤ2スイッチ装置からPADIパケットを送信し、PADOパケットが返信されたブロードバンドアクセスサーバの状態を正常として監視することにより、障害が発生したり停止したりしているブロードバンドアクセスサーバを宛先アドレスの書き換え対象から除外することができ、信頼性を向上させることができる。   In addition, by sending a PADI packet from this layer 2 switch device and monitoring the status of the broadband access server to which the PADO packet is returned as normal, the broadband access server in which a failure has occurred or stopped is designated as the destination address. Can be excluded from the target of rewriting, and reliability can be improved.

さらに、ブロードバンドアクセスサーバ毎に宛先アドレスを書き換えて割り当てた端末数を記憶しておき、割り当てられた端末数の最も少ないブロードバンドアクセスサーバを割り当てるように構成することにより、負荷分散を行うことができる。あるいは、宛先アドレスの書き換え対象としないブロードバンドアクセスサーバを記憶して割り当てないようにすることにより、メインテナンス等が計画されているブロードバンドアクセスサーバを宛先アドレスの書き換え対象としないようにすることができる。   Furthermore, load distribution can be performed by storing the number of terminals assigned by rewriting the destination address for each broadband access server and allocating the broadband access server having the smallest number of assigned terminals. Alternatively, by storing and not allocating a broadband access server that is not subject to rewriting of the destination address, it is possible to prevent the broadband access server planned for maintenance or the like from being rewritten as the destination address.

以下、本発明の好ましい実施形態について図面を参照して説明する。まず、簡単にPPPoEを用いて、端末1が複数のBAS4から1台を選定して通信を開始する処理について図1を用いて説明する。なお、PPPoEにおいては、BAS4を探してセッションを確立するステージ(ディスカバリーステージ)と、確立したセッションによりインターネット6等と通信を行うステージ(PPPセッションステージ)とがあるが、ここでは、ディスカバリーステージについてのみ説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. First, a process in which the terminal 1 selects one of a plurality of BASs 4 and starts communication using PPPoE will be described with reference to FIG. In PPPoE, there are a stage for establishing a session by searching for BAS 4 (discovery stage) and a stage for communicating with the Internet 6 and the like through the established session (PPP session stage), but here only for the discovery stage explain.

端末1がネットワークに接続する場合、最初に、PADI(PPPoE Active Discovery Initiation)パケットを送信する。このPADIパケットは、そのイーサネットフレームの宛先アドレスに、イーサネットブロードキャストアドレスが設定されている。そのため、このPADIパケットを受信したレイヤ2スイッチ装置3は、このレイヤ2スイッチ装置3のこの端末1が接続されているポートを除くポートからPADIパケットを複製して送信する。   When the terminal 1 is connected to the network, first, a PADI (PPPoE Active Discovery Initiation) packet is transmitted. In this PADI packet, an Ethernet broadcast address is set as a destination address of the Ethernet frame. Therefore, the layer 2 switch device 3 that has received the PADI packet duplicates and transmits the PADI packet from the ports of the layer 2 switch device 3 other than the port to which the terminal 1 is connected.

PADIパケットを受信したBAS4(第1BAS4a,第2BAS4b)は、それぞれ、PADO(PPPoE Active Discovery Offer)パケットを端末1に送信する。このとき、PADOパケットの宛先アドレスには、PADIパケットを送信した端末1のMACアドレスが設定されている(すなわち、ユニキャストアドレスが設定される)。そして、このPADOパケットを受信した端末1は、これらのPADOパケットから1台のBAS4を選択し、そのBAS4にPADR(PPPoE Active Discovery Request)パケットを送信する。なお、図1においては、第1BAS4aが選択された場合を示している。このPADRパケットの宛先アドレスもユニキャストアドレスであって、第1BAS4aのMACアドレスが設定される。最後に、このPADRパケットを受け取った第1BAS4aがPADS(PPPoE Active Discovery Session-confirmation)パケットを端末1に送信して、ディスカバリーステージを終了し、このPADSパケットを受け取った端末1は、PPPセッションステージに移行する。このPADSパケットの宛先アドレスもユニキャストであって、端末1のMACアドレスが設定される。   The BAS 4 (first BAS 4a and second BAS 4b) that has received the PADI packet transmits a PADO (PPPoE Active Discovery Offer) packet to the terminal 1, respectively. At this time, the MAC address of the terminal 1 that has transmitted the PADI packet is set as the destination address of the PADO packet (that is, a unicast address is set). The terminal 1 receiving this PADO packet selects one BAS 4 from these PADO packets, and transmits a PADR (PPPoE Active Discovery Request) packet to the BAS 4. FIG. 1 shows a case where the first BAS 4a is selected. The destination address of this PADR packet is also a unicast address, and the MAC address of the first BAS 4a is set. Finally, the first BAS 4a that has received this PAD packet transmits a PADS (PPPoE Active Discovery Session-confirmation) packet to the terminal 1, ends the discovery stage, and the terminal 1 that has received this PADS packet enters the PPP session stage. Transition. The destination address of this PADS packet is also unicast, and the MAC address of the terminal 1 is set.

なお、図示しないが、PPPoEセッションを終了する場合に、PADT(PPPoE Active Discovery Terminate)パケットが送信されるが、このパケットの宛先アドレスもユニキャストアドレスである。   Although not shown, when the PPPoE session is terminated, a PADT (PPPoE Active Discovery Terminate) packet is transmitted. The destination address of this packet is also a unicast address.

それでは、PPPoEにおけるディスカバリーステージにおいて、接続するBAS4を端末1に関係なく通信事業者が制御するためのレイヤ2スイッチ装置3について説明する。このレイヤ2スイッチ装置3は、端末1からPADIパケット(ブロードキャストパケット)を受信したときに、所定のBAS4にだけそのパケットを送信するものである。このレイヤ2スイッチ装置3は、図2に示すように、複数のポート35(35a〜35c)を有しており、これらのポート35に接続された端末1やBAS4(4a,4b)との間で送受信されるパケットを相互に転送するパケット処理部31と、BAS4を監視して、パケット処理部31により端末1から受信したPADIパケットに割り当てるBAS4を制御するBAS監視部32とから構成される。   Now, a description will be given of the layer 2 switch device 3 for the communication carrier to control the BAS 4 to be connected regardless of the terminal 1 in the discovery stage in PPPoE. When receiving a PADI packet (broadcast packet) from the terminal 1, the layer 2 switching device 3 transmits the packet only to a predetermined BAS 4. As shown in FIG. 2, the layer 2 switching device 3 has a plurality of ports 35 (35a to 35c), and is connected to the terminals 1 and BAS 4 (4a, 4b) connected to these ports 35. A packet processing unit 31 that forwards and receives packets transmitted and received by the BAS 4 and a BAS monitoring unit 32 that monitors the BAS 4 and controls the BAS 4 assigned to the PADI packet received from the terminal 1 by the packet processing unit 31.

パケット処理部31は、端末1から送信されたパケットの宛先アドレスがユニキャストアドレスのときは、そのユニキャストアドレスに対応するポート35(35bまたは35c)からそのパケットを送信し、ブロードキャストアドレスのときはそのパケットを複製して所定のポート(この場合、BAS4が接続されているポート35b,35c)から送信する。また、レイヤ2スイッチ装置3は、このレイヤ2スイッチ装置3と通信可能な(同一のブロードキャストドメイン内にある)BAS4のMACアドレスが記憶されたアドレスデータベース33と、端末1からPADIパケットを受信したときに、どのBAS4にそのPADIパケットを送信するかを決定するための振り分けポリシー情報34とを有している。   When the destination address of the packet transmitted from the terminal 1 is a unicast address, the packet processing unit 31 transmits the packet from the port 35 (35b or 35c) corresponding to the unicast address. The packet is duplicated and transmitted from a predetermined port (in this case, ports 35b and 35c to which BAS4 is connected). Further, when the layer 2 switch device 3 receives the PADI packet from the terminal 1 and the address database 33 in which the MAC address of the BAS 4 communicable with the layer 2 switch device 3 (within the same broadcast domain) is stored. And distribution policy information 34 for determining which BAS 4 the PADI packet is transmitted to.

ここで、アドレスデータベース33には、予めこのレイヤ2スイッチ装置3と通信可能なBAS4のMACアドレスを通信事業者が設定するように構成しても良いし、BAS監視部32が、パケット処理部31を介してBAS4にPADIパケット(ブロードキャストパケット)を送信し、これを受信したBAS4から送信されるPADOパケットを受信して接続されているBAS4をスキャンすることにより、このPADOパケットに設定されたBAS4のMACアドレスをアドレスデータベース33に記憶するように構成しても良い。   Here, the address database 33 may be configured such that the communication carrier sets in advance the MAC address of the BAS 4 that can communicate with the layer 2 switch device 3, and the BAS monitoring unit 32 may be configured by the packet processing unit 31. By sending a PADI packet (broadcast packet) to the BAS 4 via the BAS 4, receiving the PADO packet transmitted from the BAS 4 that received it, and scanning the connected BAS 4, the BAS 4 set in this PADO packet The MAC address may be stored in the address database 33.

また、BAS4に障害が発生したり、メインテナンスにより停止されたりしていると、端末1が通信できなくなるため、BAS監視部32は、所定の時間間隔でBAS4の状態を監視するように構成されている。例えば、図3に示すように、BAS監視部32は、一定時間毎に、アドレスデータベース33に記憶されているBAS4の各々に対して各BAS4のMACアドレスを宛先アドレスとして(すなわちユニキャストパケットとして)PADIパケットを送信し、所定の時間内にPADOパケットが返信されたBAS4については、正常な状態であるとしてアドレスデータベース33に記憶し、所定の時間内にPADOパケットを受信することができない場合は、異常な状態であるとしてアドレスデータベース33に記憶する。なお、このときも、PADIパケットをブロードキャストパケットして送信し、所定の時間内にPADOパケットを返信したBAS4について正常な状態であるとしてアドレスデータベース33に記憶するように構成することも可能である。   Further, since the terminal 1 cannot communicate if a failure occurs in the BAS 4 or is stopped due to maintenance, the BAS monitoring unit 32 is configured to monitor the state of the BAS 4 at predetermined time intervals. Yes. For example, as shown in FIG. 3, the BAS monitoring unit 32 uses the MAC address of each BAS 4 as a destination address (ie, as a unicast packet) for each BAS 4 stored in the address database 33 at regular intervals. BAS4 that has transmitted a PADI packet and has returned a PADO packet within a predetermined time is stored in the address database 33 as being in a normal state, and if the PADO packet cannot be received within a predetermined time, It is stored in the address database 33 as being in an abnormal state. At this time, it is also possible to configure the BAS 4 that transmits the PADI packet as a broadcast packet and returns the PADO packet within a predetermined time and stores it in the address database 33 as being in a normal state.

上述のように、レイヤ2スイッチ装置3のパケット処理部31は、図4に示すとおり、ディスカバリーステージにおいて端末1から送信されてポート35aにより受信されたパケットを識別し、そのパケットがPADIパケットのときは、イーサネットフレームの宛先アドレスを、振り分けポリシー情報34に基づいてアドレスデータベース33から選択して置き換え、所定のポート35b,35cから送信するように構成されている(図4においては第1BAS4aが選択された場合を示している)。この処理について、図5を用いて説明する。   As described above, the packet processing unit 31 of the layer 2 switching device 3 identifies the packet transmitted from the terminal 1 and received by the port 35a in the discovery stage as shown in FIG. 4, and when the packet is a PADI packet Is configured so that the destination address of the Ethernet frame is selected and replaced from the address database 33 based on the distribution policy information 34 and transmitted from the predetermined ports 35b and 35c (in FIG. 4, the first BAS 4a is selected). Shows the case). This process will be described with reference to FIG.

パケット処理部31は、ポート35(例えば、ポート35a)からパケットを受信すると、そのパケットのイーサネットフレームを構成するイーサタイプが0x8863であるか否かを検査する(ステップS100)。上述のように、PPPoEにおいては、ディスカバリーステージとPPPセッションステージがあり、ディスカバリーステージのときはイーサタイプに0x8863が設定され、PPPセッションステージのときはイーサタイプに0x8864が設定されている。イーサタイプが0x8863でないときは、PADIパケットではないため、そのままポート35(35b,35c)からそのパケットを送信する(ステップS103)。   When the packet processing unit 31 receives a packet from the port 35 (for example, the port 35a), the packet processing unit 31 checks whether the ether type constituting the Ethernet frame of the packet is 0x8863 (step S100). As described above, in PPPoE, there are a discovery stage and a PPP session stage. In the discovery stage, 0x8863 is set in the ether type, and in the PPP session stage, 0x8864 is set in the ether type. When the ether type is not 0x8863, since it is not a PADI packet, the packet is transmitted as it is from the port 35 (35b, 35c) (step S103).

受信したパケットのイーサタイプが0x8863であった場合は(ステップS100)、次に、イーサネットフレームを構成する宛先アドレスがブロードキャストアドレスであるか否かを検査する(ステップS101)。イーサタイプ0x8863であるとき、すなわち、PPPoEにおけるディスカバリーステージであるときに送信されるパケット(PADI,PADO,PADR,PADS,PADT)のうち、宛先アドレスにブロードキャストアドレスが設定されるのはPADIパケットのときだけだからである。宛先アドレスがブロードキャストアドレスでない場合は、そのパケットをそのままポート35(35b,35c)から送信する(ステップS103)。   If the ether type of the received packet is 0x8863 (step S100), it is next checked whether the destination address constituting the Ethernet frame is a broadcast address (step S101). Among the packets (PADI, PADO, PADR, PADS, PADT) transmitted when the Ether type is 0x8863, that is, the discovery stage in PPPoE, the broadcast address is set as the destination address when the PADI packet is set. Because it is only. If the destination address is not a broadcast address, the packet is transmitted as it is from the port 35 (35b, 35c) (step S103).

受信したパケットの宛先アドレスがブロードキャストアドレスであった場合は(ステップS101)、パケット処理部31は、アドレスデータベース33に記憶されているBAS4のうち正常な状態にあるものから、振り分けポリシー情報34に従って一台のBAS4を選択し、そのMACアドレス(すなわち、ユニキャストアドレス)に、受信したパケットの宛先アドレスを書き換える(ステップS102)。   If the destination address of the received packet is a broadcast address (step S101), the packet processing unit 31 starts from one in the normal state among the BASs 4 stored in the address database 33 according to the distribution policy information 34. The base BAS 4 is selected, and the destination address of the received packet is rewritten to the MAC address (that is, the unicast address) (step S102).

なお、パケット処理部31は、PADSパケットを監視し、BAS4毎に接続されている端末数を記憶するように構成されている。具体的には、パケット処理部31は、PADSパケットを受信すると、BAS4のMACアドレス毎に、そのBAS4に接続されている端末数(PPPoEセッションIDの対応数)をカウントして記憶するように構成されている。また、パケット処理部31はPADTパケットを監視し、PPPoEセッションが終了した場合は、そのBAS4に接続されている端末数を減らすように構成される。同様に、一定時間以上通信がないPPPoEセッションに対しても接続されている端末数を減らすように構成される。   The packet processing unit 31 is configured to monitor the PADS packet and store the number of terminals connected to each BAS 4. Specifically, when receiving the PADS packet, the packet processing unit 31 is configured to count and store the number of terminals connected to the BAS4 (corresponding number of PPPoE session IDs) for each BAS4 MAC address. Has been. The packet processing unit 31 monitors the PADT packet and is configured to reduce the number of terminals connected to the BAS 4 when the PPPoE session ends. Similarly, it is configured to reduce the number of terminals connected to a PPPoE session that has not been communicated for a certain period of time.

ここで、振り分けポリシー情報34の設定内容としては、「パケット処理部31が記憶しているBAS4毎の端末数から、接続されている端末数の最も少ないBAS4を選択する」という振り分けポリシーに設定することができる。これにより、複数のBAS4に対してその負荷が均等になるように、端末1を振り分けることができる。あるいは、メインテナンスを行うBAS4があるような場合には、そのBAS4の情報を除外対象BASとしてパケット処理部31に記憶しておき、パケット処理部31が「その除外対象BASを選択対象から除外する」という振り分けポリシーに設定することができる。これにより、その設定以降は除外されたBAS4に接続される(宛先アドレスが書き換えられる)端末1は無くなり、メインテナンスのためにBAS4を停止しても加入者にメインテナンスの影響を与えないようにすることができる。   Here, the setting content of the distribution policy information 34 is set to a distribution policy of “select the BAS 4 with the smallest number of connected terminals from the number of terminals for each BAS 4 stored in the packet processing unit 31”. be able to. As a result, the terminals 1 can be distributed to the plurality of BASs 4 so that the loads are equalized. Alternatively, when there is a BAS 4 that performs maintenance, information on the BAS 4 is stored in the packet processing unit 31 as an exclusion target BAS, and the packet processing unit 31 “excludes the exclusion target BAS from the selection target”. Can be set to the distribution policy. As a result, after the setting, the terminal 1 connected to the excluded BAS 4 (the destination address is rewritten) disappears, and even if the BAS 4 is stopped for maintenance, the subscriber is not affected by the maintenance. Can do.

そして、以上のようにして宛先アドレスが書き換えられたパケットは、ポート35(35b,35c)から送信される(ステップS103)。なお、このアドレス置換処理(S102)において、宛先アドレス以外(例えば、送信元アドレス等)は書き換えを行わない。   The packet whose destination address has been rewritten as described above is transmitted from the port 35 (35b, 35c) (step S103). In this address replacement process (S102), rewriting is not performed except for the destination address (for example, the transmission source address).

以上のようにレイヤ2スイッチ装置3を構成すると、端末1(PPPoEソフトウェア1a)やBAS4は現状のものを利用した状態で、このレイヤ2スイッチ装置3により、利用されるBAS4の選択を制御することができるため、このBAS4に接続される端末1の台数を均等に振り分けて負荷分散を行うことや、メインテナンス等により停止するBAS4には端末1が接続されないようにすることができるため、加入者に複数のBAS4を提供して信頼性を確保しつつ、システム健全時における柔軟な運用を可能とすることができる。   When the layer 2 switch device 3 is configured as described above, the layer 1 switch device 3 controls the selection of the BAS 4 to be used while the terminal 1 (PPPoE software 1a) and the BAS 4 are in use. Therefore, it is possible to distribute the load by equally distributing the number of terminals 1 connected to the BAS 4 and to prevent the terminals 1 from being connected to the BAS 4 that is stopped due to maintenance or the like. A plurality of BASs 4 can be provided to ensure reliability while enabling flexible operation when the system is healthy.

ディスカバリーステージにおける端末とBASとの間のパケットのやり取りを示すダイアグラムである。It is a diagram which shows the exchange of the packet between a terminal and BAS in a discovery stage. 本発明に係るレイヤ2スイッチ装置の構成を示すブロック図である。It is a block diagram which shows the structure of the layer 2 switch apparatus which concerns on this invention. BASを監視するときのパケットのやり取りを示すダイアグラムである。It is a diagram which shows the exchange of a packet when BAS is monitored. PADIパケットを書き換えるときを示すダイアグラムである。It is a diagram which shows when a PADI packet is rewritten. 宛先アドレスの書き換え処理を示すフローチャートである。It is a flowchart which shows the rewriting process of a destination address. PPPoEを用いたネットワークの構成を示すブロック図である。It is a block diagram which shows the structure of the network using PPPoE.

符号の説明Explanation of symbols

3 レイヤ2スイッチ装置
4 BAS(ブロードバンドアクセスサーバ)
31 パケット処理部(パケット処理手段)
32 BAS監視部(BAS監視手段)
33 アドレスデータベース
34 振り分けポリシー情報
35 ポート
3 Layer 2 switch device 4 BAS (Broadband Access Server)
31 Packet processing unit (packet processing means)
32 BAS monitoring unit (BAS monitoring means)
33 Address database 34 Distribution policy information 35 Port

Claims (6)

少なくとも2以上の接続ポートを有し、前記接続ポートのいずれかが受信したレイヤ2レベルのパケットを、残りの前記接続ポートの少なくとも1つから送信するレイヤ2スイッチ装置であって、
前記パケットの送受信を制御するパケット処理手段と、
通信可能なブロードバンドアクセスサーバのMACアドレスが記憶されたアドレスデータベースと、
前記ブロードバンドアクセスサーバの選択ポリシーが記憶された振り分けポリシー情報とを有し、
前記パケット処理手段が、
受信した前記パケットがPADIパケットであるときに、
前記振り分けポリシー情報に基づいて前記アドレスデータベースから1台の前記ブロードバンドアクセスサーバを選択し、前記パケットの宛先アドレスを、選択された前記ブロードバンドアクセスサーバの前記MACアドレスに書き換えて送信するように構成されたことを特徴とするレイヤ2スイッチ装置。
A layer 2 switching device having at least two or more connection ports and transmitting a layer 2 level packet received by any of the connection ports from at least one of the remaining connection ports;
Packet processing means for controlling transmission and reception of the packet;
An address database in which MAC addresses of communicable broadband access servers are stored;
Distribution policy information in which a selection policy of the broadband access server is stored;
The packet processing means is
When the received packet is a PADI packet,
A single broadband access server is selected from the address database based on the distribution policy information, and the destination address of the packet is rewritten to the MAC address of the selected broadband access server and transmitted. A layer 2 switching device.
前記パケット処理手段が、
前記パケットのイーサタイプが0x8863であり、且つ、前記宛先アドレスがブロードキャストアドレスであるときに、受信した前記パケットがPADIパケットであると判断するように構成されたことを特徴とする請求項1に記載のレイヤ2スイッチ装置。
The packet processing means is
The configuration of claim 1, wherein the received packet is a PADI packet when the ether type of the packet is 0x8863 and the destination address is a broadcast address. Layer 2 switch device.
前記ブロードバンドアクセスサーバを監視するBAS監視手段を有し、
前記BAS監視手段が、前記アドレスデータベースに記憶されている前記ブロードバンドアクセスサーバの前記MACアドレスを前記宛先アドレスに設定したPADIパケットを送信し、前記PADIパケットに対してPADOパケットが返信された前記ブロードバンドアクセスサーバの状態を正常として前記アドレスデータベースに記憶し、
前記パケット処理手段が、前記状態が正常である前記ブロードバンドアクセスサーバを選択して、前記パケットの前記宛先アドレスを書き換えるように構成されたことを特徴とする請求項1または2に記載のレイヤ2スイッチ装置。
BAS monitoring means for monitoring the broadband access server,
The BAS monitoring means transmits a PADI packet in which the MAC address of the broadband access server stored in the address database is set as the destination address, and the broadband access in which a PADO packet is returned to the PADI packet Store the server status as normal in the address database,
3. The layer 2 switch according to claim 1, wherein the packet processing unit is configured to select the broadband access server in which the state is normal and rewrite the destination address of the packet. 4. apparatus.
前記ブロードバンドアクセスサーバを監視するBAS監視手段を有し、
前記BAS監視手段が、前記宛先アドレスにブロードキャストアドレスが設定されたPADIパケットを送信し、前記PADIパケットに対してPADOパケットが返信された前記ブロードバンドアクセスサーバの状態を正常として前記アドレスデータベースに記憶し、
前記パケット処理手段が、前記状態が正常である前記ブロードバンドアクセスサーバを選択して、前記パケットの前記宛先アドレスを書き換えるように構成されたことを特徴とする請求項1または2に記載のレイヤ2スイッチ装置。
BAS monitoring means for monitoring the broadband access server,
The BAS monitoring means transmits a PADI packet in which a broadcast address is set as the destination address, stores the state of the broadband access server to which the PADO packet is returned in response to the PADI packet as normal, and stores it in the address database.
3. The layer 2 switch according to claim 1, wherein the packet processing unit is configured to select the broadband access server in which the state is normal and rewrite the destination address of the packet. 4. apparatus.
前記パケット処理手段が、前記ブロードバンドアクセスサーバに割り当てられた端末数を記憶するように構成され、
前記振り分けポリシー情報が、前記端末数の最も少ない前記ブロードバンドアクセスサーバを選択して、前記パケットの前記宛先アドレスを書き換えるように設定されたことを特徴とする請求項1〜4のいずれかに記載のレイヤ2スイッチ装置。
The packet processing means is configured to store the number of terminals allocated to the broadband access server;
5. The distribution policy information according to claim 1, wherein the distribution policy information is set to select the broadband access server having the smallest number of terminals and rewrite the destination address of the packet. Layer 2 switch device.
前記パケット処理手段が、前記宛先アドレスの書き換えの対象としない前記ブロードバンドアクセスサーバを記憶するように構成され、
前記振り分けポリシー情報が、前記書き換えの対象としない前記ブロードバンドアクセスサーバを除外して前記ブロードバンドアクセスサーバを選択して、前記パケットの前記宛先アドレスを書き換えるように設定されたことを特徴とする請求項1〜4のいずれかに記載のレイヤ2スイッチ装置。
The packet processing means is configured to store the broadband access server that is not subject to rewriting of the destination address;
2. The distribution policy information is set so as to rewrite the destination address of the packet by selecting the broadband access server by excluding the broadband access server not to be rewritten. The layer 2 switch apparatus in any one of -4.
JP2005087728A 2005-03-25 2005-03-25 Layer two switch device Pending JP2006270680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005087728A JP2006270680A (en) 2005-03-25 2005-03-25 Layer two switch device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005087728A JP2006270680A (en) 2005-03-25 2005-03-25 Layer two switch device

Publications (1)

Publication Number Publication Date
JP2006270680A true JP2006270680A (en) 2006-10-05

Family

ID=37206142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005087728A Pending JP2006270680A (en) 2005-03-25 2005-03-25 Layer two switch device

Country Status (1)

Country Link
JP (1) JP2006270680A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009027438A (en) * 2007-07-19 2009-02-05 Hitachi Ltd Frame transfer apparatus
JP2009239786A (en) * 2008-03-28 2009-10-15 Saxa Inc Relay device
JP2009239787A (en) * 2008-03-28 2009-10-15 Saxa Inc Communication apparatus and relay device
WO2014208538A1 (en) * 2013-06-25 2014-12-31 日本電気株式会社 Communication system, apparatus, method and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009027438A (en) * 2007-07-19 2009-02-05 Hitachi Ltd Frame transfer apparatus
JP2009239786A (en) * 2008-03-28 2009-10-15 Saxa Inc Relay device
JP2009239787A (en) * 2008-03-28 2009-10-15 Saxa Inc Communication apparatus and relay device
WO2014208538A1 (en) * 2013-06-25 2014-12-31 日本電気株式会社 Communication system, apparatus, method and program
JPWO2014208538A1 (en) * 2013-06-25 2017-02-23 日本電気株式会社 Communication system, apparatus, method, and program

Similar Documents

Publication Publication Date Title
EP2351330B1 (en) Deterministic session load-balancing and redundancy of access servers in a computer network
JP5813885B2 (en) System and method for managing network protocol addressing in a controller
CN100477601C (en) Characteristic identifying message for link aggregation marker protocol
US8856357B2 (en) BGP peer prioritization in networks
US10367680B2 (en) Network relay apparatus, gateway redundancy system, program, and redundancy method
US8174965B2 (en) Service management in a network
WO2018148302A1 (en) System and method for next hop bgp routing in a network
CN101217448B (en) Method and system to realize gateway dynamic load sharing
JP2010510760A (en) Intelligent service quality management
US20140317296A1 (en) Allocating internet protocol (ip) addresses to nodes in communications networks which use integrated is-is
CN101562576B (en) Route distribution method and equipment thereof
EP2139189B1 (en) Method and system for performing keepalive monitoring on client sessions
JP2006270680A (en) Layer two switch device
JP2003348136A (en) Router setting method
JP5009257B2 (en) Relay device and relay method
EP2136506B1 (en) Keepalive monitoring method, system and apparatus of a subscriber session group
JP4709055B2 (en) IP telephony system and VoIP service providing method
JP2005064936A (en) PPPoE SESSION DISPERSING METHOD AND SYSTEM IN PLURALITY OF BRAS APPARATUS
Cisco Configuring Server Load Balancing
Cisco Configuring Data-Link Switching Plus+
US8732335B2 (en) Device communications over unnumbered interfaces
JP2006228243A (en) Server system
US20190200284A1 (en) User Management Device, BNG, and BNG User Internet Access Method and System
JP2011151587A (en) Communication system, monitoring device, method of controlling the same, and program
WO2022250750A1 (en) A multi-cloud active mesh network system and method