JP4755879B2 - PPPoE client apparatus and PPPoE session disconnection method - Google Patents

PPPoE client apparatus and PPPoE session disconnection method Download PDF

Info

Publication number
JP4755879B2
JP4755879B2 JP2005304461A JP2005304461A JP4755879B2 JP 4755879 B2 JP4755879 B2 JP 4755879B2 JP 2005304461 A JP2005304461 A JP 2005304461A JP 2005304461 A JP2005304461 A JP 2005304461A JP 4755879 B2 JP4755879 B2 JP 4755879B2
Authority
JP
Japan
Prior art keywords
pppoe
session
packet
lac
mac address
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
JP2005304461A
Other languages
Japanese (ja)
Other versions
JP2007116346A (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.)
Nippon Telegraph and Telephone East Corp
Original Assignee
Nippon Telegraph and Telephone East Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone East Corp filed Critical Nippon Telegraph and Telephone East Corp
Priority to JP2005304461A priority Critical patent/JP4755879B2/en
Publication of JP2007116346A publication Critical patent/JP2007116346A/en
Application granted granted Critical
Publication of JP4755879B2 publication Critical patent/JP4755879B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、PPPoE通信を行うことができるPPPoEクライアント装置及びそのPPPoEセッション切断方法に関する。   The present invention relates to a PPPoE client apparatus capable of performing PPPoE communication and a PPPoE session disconnection method thereof.

PPPoE(Point-to-Point Protocol over Ethernet(登録商標))は、データリンク層のプロトコルとして幅広く利用されているPPP(Point-to-Point Protocol)接続をEthernet(登録商標)上で実現する方式であり、RFC2516で規定されている(非特許文献1参照)。PPPoEはADSL(Asymmetric Digital Subscriber Line)やFTTH(Fiber To The Home)によるブロードバンドインターネット接続サービスにおいて、ユーザ端末と事業者の設備とを接続する方式として幅広く利用されている。   PPPoE (Point-to-Point Protocol over Ethernet (registered trademark)) is a method that realizes PPP (Point-to-Point Protocol) connection widely used as a data link layer protocol on Ethernet (registered trademark). Yes, specified in RFC2516 (see Non-Patent Document 1). PPPoE is widely used as a method for connecting user terminals and business facilities in broadband Internet connection services using ADSL (Asymmetric Digital Subscriber Line) and FTTH (Fiber To The Home).

PPPoEが広く利用される背景として、以下の2点が挙げられる。まず、PPPの認証方式を使用することにより、事業者もしくはサービスへの接続認証を行うことができる点である。そして2つ目は、事業者に設置したLAC(L2TP Access Concentrator)、LNS(L2TP Network Server)といった装置により、クライアント(ユーザ)側がプロバイダ識別子を含むIDを使用して認証を行うことで、接続先プロバイダをダイナミックに切り替えて接続することができる点である。   The following two points can be cited as backgrounds in which PPPoE is widely used. First, by using a PPP authentication method, connection authentication to a provider or service can be performed. Second, the client (user) uses a device ID such as the LAC (L2TP Access Concentrator) or LNS (L2TP Network Server) installed at the operator to perform authentication using the ID including the provider identifier. The provider can be dynamically switched and connected.

ユーザと事業者(以下、プロバイダと区別するためアクセス事業者と呼称する)、プロバイダの接続形態の一例を図5を参照して説明する。図5(a)はPPPoEの接続形態を示す図、図5(b),(c),(d)はそれぞれPPPoEクライアント装置、LAC装置、LNS装置におけるプロトコルスタック図である。   An example of a connection form of a user, a provider (hereinafter referred to as an access provider for distinguishing from a provider), and a provider will be described with reference to FIG. FIG. 5A is a diagram showing a connection form of PPPoE, and FIGS. 5B, 5C, and 5D are protocol stack diagrams in the PPPoE client device, the LAC device, and the LNS device, respectively.

図5(a)において、ユーザ宅内のPPPoEクライアント装置1は、アクセス事業者のビルに設置されたLAC装置3へADSL、FTTH等のアクセス回線2を介してブリッジ接続されている。ここで、PPPoEクライアント装置1は、PC上のアプリケーションソフト又はブロードバンドルータ等のPPPoEを終端する装置である。   In FIG. 5A, a PPPoE client device 1 in a user's home is bridge-connected to an LAC device 3 installed in an access provider's building via an access line 2 such as ADSL or FTTH. Here, the PPPoE client device 1 is a device that terminates PPPoE such as application software on a PC or a broadband router.

図5(b)に示すように、PPPoEクライアント装置1では、MAC(Ethernet(登録商標))層とIP層との間にPPP層が挿入され、PPPoEクライアント装置1とLAC装置3との間でPPP通信が可能なようになっている。   As shown in FIG. 5B, in the PPPoE client device 1, a PPP layer is inserted between the MAC (Ethernet (registered trademark)) layer and the IP layer, and between the PPPoE client device 1 and the LAC device 3, PPP communication is possible.

PPPoEクライアント装置1から開始されるPPPoEセッションは、LAC装置3において終端され、LAC装置3はPPPの認証を行う。LAC装置3においてPPPパケットは、プロバイダ識別子により接続先プロバイダ毎に集約される。   The PPPoE session started from the PPPoE client device 1 is terminated in the LAC device 3, and the LAC device 3 performs PPP authentication. In the LAC device 3, the PPP packets are aggregated for each connection destination provider by the provider identifier.

そして、図5(c)に示すように、LAC装置3では、PPP層の下にL2TP層が挿入される。L2TPは、PPP通信をトンネリングするためのデータリンク層のプロトコルである。また、図5(d)に示すように、LNS装置5のPPP層の下にもL2TP層があり、LAC装置3は、アクセス事業者とプロバイダ6A,6Bとの間の相互接続点に設置されたLNS装置5へL2TP(Layer2 Tunneling Protocol)によりトンネリング接続される。   As shown in FIG. 5C, in the LAC device 3, the L2TP layer is inserted under the PPP layer. L2TP is a data link layer protocol for tunneling PPP communications. Further, as shown in FIG. 5 (d), there is an L2TP layer below the PPP layer of the LNS device 5, and the LAC device 3 is installed at an interconnection point between the access provider and the providers 6A and 6B. The LNS device 5 is connected by tunneling using L2TP (Layer 2 Tunneling Protocol).

最後に、LNS装置5においてプロバイダ識別子に応じて接続先プロバイダの振り分けが行われ、PPPカプセリングを解除してIPパケットがプロバイダ6A,6Bへ転送される。   Finally, in the LNS device 5, the connection destination providers are sorted according to the provider identifier, the PPP encapsulation is released, and the IP packet is transferred to the providers 6A and 6B.

次に、PPPoEクライアント装置1とLAC装置3との間のPPPoEセッション接続手順を説明する。図6はPPPoEセッション接続手順を示すシーケンス図である。   Next, a PPPoE session connection procedure between the PPPoE client device 1 and the LAC device 3 will be described. FIG. 6 is a sequence diagram showing a PPPoE session connection procedure.

PPPoEセッションを開始するにあたり、まずステップS10では、PPPoEクライアント装置1は、LAC装置3を探索するために網側に対しPADI(PPPoE Active Discovery Initiation)パケットをブロードキャストパケットとして送信する。   In starting a PPPoE session, first, in step S10, the PPPoE client apparatus 1 transmits a PADI (PPPoE Active Discovery Initiation) packet as a broadcast packet to the network side in order to search for the LAC apparatus 3.

次に、ステップS20では、PADIパケットを受信したLAC装置3は、PADIパケットに対する応答パケットとしてPADO(PPPoE Active Discovery Offer)パケットをPPPoEクライアント装置1に対して返信する。   Next, in step S20, the LAC device 3 that has received the PADI packet returns a PADO (PPPoE Active Discovery Offer) packet to the PPPoE client device 1 as a response packet to the PADI packet.

続いて、ステップS30では、PPPoEクライアント装置1は、PADOパケットを返信したLAC装置3宛にユニキャストでPADR(PPPoE Active Discovery Request)パケットを送信し、セッションIDの発行をリクエストする。   Subsequently, in step S30, the PPPoE client apparatus 1 transmits a PADR (PPPoE Active Discovery Request) packet by unicast to the LAC apparatus 3 that has returned the PADO packet, and requests to issue a session ID.

次いで、ステップS40では、LAC装置3は、セッションIDを含むPADS(PPPoE Active Discovery Session Confirmation)パケットを送信する。そして、このPADSパケットをPPPoEクライアント装置1が受信した時点でPPPoEのセッションが確立する。   Next, in step S40, the LAC device 3 transmits a PADS (PPPoE Active Discovery Session Confirmation) packet including the session ID. When the PPPoE client apparatus 1 receives this PADS packet, a PPPoE session is established.

その後、ステップS50では、PPPoEクライアント装置1とLAC装置3は、PPPによる通信を行う。以降、同一のPPPoEセッションはセッションIDによって管理される。   Thereafter, in step S50, the PPPoE client device 1 and the LAC device 3 perform communication by PPP. Thereafter, the same PPPoE session is managed by the session ID.

そして、PPPoEセッションを終了する際には、ステップS60において、PPPoEクライアント装置1、LAC装置3のいずれかからPPPoEセッション終了を要求するPADT(PPPoE Active Discovery Session Terminate)パケットを送信し、PPPoEセッションを終了する。   When ending the PPPoE session, in step S60, a PPPoE Active Discovery Session Terminate (PADT) packet requesting PPPoE session termination is transmitted from either the PPPoE client device 1 or the LAC device 3, and the PPPoE session is terminated. To do.

ところで、アクセス事業者は、ユーザが無制限にPPPoEセッションの接続を行うことを許容するとLAC機器の設備コストに影響するため、通常1つのアクセス回線契約に対して同時に利用可能なPPPoEセッション数の上限値を設定している。   By the way, if an access provider allows a user to connect an unlimited number of PPPoE sessions, it will affect the equipment cost of the LAC device. Therefore, normally, the upper limit value of the number of PPPoE sessions that can be used simultaneously for one access line contract. Is set.

また、同時に無効なPPPoEセッションを開放するため、LAC装置3はPPPoEクライアント装置1に対し、一定時間(T)間隔で接続性確認のためのLCP Echo requestパケットを送信し、n回連続してPPPoEクライアント装置1からLCP Echo Replyがない場合、即ちn×T時間経過後には、LAC装置3はPPPoEクライアント装置1に対し、PADTパケットを送信し、PPPoEセッションを終了することが一般的に行われている。
IETF RFC2516“A Method for Transmitting PPP Over Ethernet(登録商標)(PPPoE) ”、1999年2月
At the same time, in order to release an invalid PPPoE session, the LAC device 3 transmits an LCP Echo request packet for confirming connectivity to the PPPoE client device 1 at a constant time (T) interval, and continues PPPoE n times in succession. When there is no LCP Echo Reply from the client device 1, that is, after elapse of n × T time, the LAC device 3 generally transmits a PADT packet to the PPPoE client device 1 to end the PPPoE session. Yes.
IETF RFC2516 “A Method for Transmitting PPP Over Ethernet (registered trademark) (PPPoE)”, February 1999

しかし、ブロードバンドルータ等のPPPoEクライアント装置がPPPoE接続を行っている際に、停電等の事象が発生し、PPPoEセッションを正常に終了することなくPPPoEクライアント装置の電源が切断された場合に、次のような問題が発生する。   However, when a PPPoE client device such as a broadband router is making a PPPoE connection, an event such as a power failure occurs, and the PPPoE client device is turned off without successfully terminating the PPPoE session. Such a problem occurs.

一般的にPPPoEクライアント装置は、不揮発性メモリ等にセッションIDを保持していないため、電源起動後新たにPPPoEセッションを開始する必要がある。ここで、電源が切断される前にアクセス事業者から許可される最大のセッション数でPPPoE接続していた場合、アクセス事業者のLAC装置において以前のPPPoEセッションが持ちきりとなっていて、前述の通り一定時間(n×T時間)経過しないとPPPoEセッションが開放されない。このため、新たにPPPoEセッションを開始するのに長時間を要するという問題があった。   Generally, since a PPPoE client device does not hold a session ID in a nonvolatile memory or the like, it is necessary to newly start a PPPoE session after the power is turned on. Here, when the PPPoE connection is established with the maximum number of sessions permitted by the access provider before the power is turned off, the previous PPPoE session is held in the access provider's LAC device, as described above. The PPPoE session is not released until a certain time (n × T time) has elapsed. For this reason, there is a problem that it takes a long time to start a new PPPoE session.

本発明は上記に鑑みてなされたもので、アクセス事業者から許可される最大のセッション数でPPPoE接続している状態でPPPoEセッションを正常に終了することなくPPPoEクライアント装置の電源が切断された場合に、電源起動後に新規のPPPoEのセッションを開始するまでの時間を短縮するPPPoEクライアント装置及びPPPoEセッション切断方法を提供することを目的とする。   The present invention has been made in view of the above, and when the PPPoE client apparatus is turned off without normally terminating the PPPoE session in the state in which the PPPoE connection is established with the maximum number of sessions permitted by the access provider. Another object of the present invention is to provide a PPPoE client device and a PPPoE session disconnection method that reduce the time required to start a new PPPoE session after power is turned on.

上記目的を達成するため、請求項1記載の発明は、集中したアクセスを接続先ごとに振り分けるLAC装置との間でPPPoEセッションの確立を行うPPPoEクライアント装置において、自装置の電源起動後に前記LAC装置から自装置に送信される接続性確認のパケットから、前記LAC装置のMACアドレスと自装置の電源切断前に使用していたPPPoEセッションのセッションIDとを取得するデータ取得手段と、このデータ取得手段で取得した前記LAC装置のMACアドレスを宛先MACアドレスとし、自装置のMACアドレスを送信元MACアドレスとし、前記データ取得手段で取得したセッションIDを自セッションIDとして含む終了要求のパケットを生成するパケット生成手段と、このパケット生成手段で生成した前記終了要求のパケットを前記LAC装置へ送信する送信手段とを備えることを特徴とする。   In order to achieve the above object, the invention according to claim 1 is a PPPoE client device that establishes a PPPoE session with a LAC device that distributes concentrated access for each connection destination. Data acquisition means for acquiring the MAC address of the LAC device and the session ID of the PPPoE session used before the power supply of the own device from the connectivity confirmation packet transmitted from the device to the own device; A packet for generating a termination request packet including the MAC address of the LAC device acquired in step 1 as a destination MAC address, the MAC address of the local device as a source MAC address, and the session ID acquired by the data acquisition unit as the local session ID Generated by the generating means and the packet generating means A packet of serial end request, characterized in that it comprises transmitting means for transmitting to the LAC device.

請求項2記載の発明は、集中したアクセスを接続先ごとに振り分けるLAC装置との間でPPPoEセッションの確立を行うPPPoEクライアント装置のPPPoEセッション切断方法において、前記PPPoEクライアント装置の電源起動後に、前記LAC装置から前記PPPoEクライアント装置に送信される接続性確認のパケットから前記LAC装置のMACアドレスと、前記PPPoEクライアント装置の電源切断前に使用していたPPPoEセッションのセッションIDとを取得するデータ取得ステップと、このデータ取得ステップで取得した前記LAC装置のMACアドレスを宛先MACアドレスとし、前記PPPoEクライアント装置のMACアドレスを送信元MACアドレスとし、前記データ取得ステップで取得したセッションIDを自セッションIDとして含む終了要求のパケットを生成するパケット生成ステップと、このパケット生成ステップで生成した前記終了要求のパケットを前記LAC装置へ送信する送信ステップとを有することを特徴とする。   The invention according to claim 2 is a PPPoE session disconnection method of a PPPoE client apparatus that establishes a PPPoE session with a LAC apparatus that distributes concentrated access for each connection destination, and after the PPPoE client apparatus is powered on, the LAC A data acquisition step of acquiring a MAC address of the LAC device and a session ID of a PPPoE session used before powering off the PPPoE client device from a connectivity confirmation packet transmitted from the device to the PPPoE client device; The MAC address of the LAC device acquired in this data acquisition step is the destination MAC address, the MAC address of the PPPoE client device is the source MAC address, and the set acquired in the data acquisition step is used. A packet generation step of generating a termination request packet including the session ID as its own session ID, and a transmission step of transmitting the termination request packet generated in the packet generation step to the LAC device. .

本発明によれば、PPPoEクライアント装置の電源起動後に、LAC装置からPPPoEクライアント装置に送信される接続性確認のパケットからLAC装置のMACアドレスと、PPPoEクライアント装置の電源切断前に使用していたPPPoEセッションのセッションIDとを取得し、LAC装置のMACアドレスを宛先MACアドレスとし、PPPoEクライアント装置のMACアドレスを送信元MACアドレスとし、接続性確認のパケットから取得したセッションIDを自セッションIDとして含む終了要求のパケットを生成し、この終了要求のパケットをLAC装置へ送信するので、アクセス事業者から許可される最大のセッション数でPPPoE接続している状態でPPPoEセッションを正常に終了することなく電源が切断された場合に、電源起動後に新規のPPPoEのセッションを開始するまでの時間を短縮することができる。   According to the present invention, after the PPPoE client device is powered on, the MAC address of the LAC device and the PPPoE used before the PPPoE client device is turned off from the connectivity confirmation packet transmitted from the LAC device to the PPPoE client device. The session ID of the session is acquired, the MAC address of the LAC device is set as the destination MAC address, the MAC address of the PPPoE client device is set as the source MAC address, and the session ID acquired from the connectivity check packet is included as the own session ID. Since the request packet is generated and the termination request packet is transmitted to the LAC device, the power supply can be turned on without normally terminating the PPPoE session in the state where the PPPoE connection is established with the maximum number of sessions permitted by the access carrier. Cut off If it is, it is possible to shorten the time to start a new PPPoE session after power-up.

以下、本発明のPPPoEクライアント装置及びPPPoEセッション切断方法を実施するための最良の形態について、図面を参照して説明する。図1は本発明の実施の形態のPPPoEクライアント装置を示すブロック図である。   The best mode for carrying out the PPPoE client apparatus and PPPoE session disconnection method of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a PPPoE client apparatus according to an embodiment of the present invention.

図1に示すように本実施の形態のPPPoEクライアント装置1は、制御部11と、WANポート12とを備える。WANポート12は、アクセス回線2を介してLAC装置3に接続され、LAC装置3から送信されるパケットを制御部11に出力する。   As shown in FIG. 1, the PPPoE client device 1 according to the present embodiment includes a control unit 11 and a WAN port 12. The WAN port 12 is connected to the LAC device 3 via the access line 2 and outputs a packet transmitted from the LAC device 3 to the control unit 11.

制御部11は、LAC装置3から送信されるパケットをモニタするパケットモニタリング部111と、パケットを識別するパケット識別部112と、PPPoEクライアント装置1のMACアドレスを宛先アドレスとするLCP Echo RequestパケットからLAC装置3のMACアドレスとPPPoEセッションのセッションIDを取得するデータ取得部113と、LAC装置3に送信するパケットを生成するパケット生成部114と、パケット生成部114で生成されたパケットを送信し、LAC装置3から送信されるパケットを受信する送受信部115とを備える。   The control unit 11 includes a packet monitoring unit 111 that monitors a packet transmitted from the LAC device 3, a packet identifying unit 112 that identifies the packet, and an LAC from an LCP Echo Request packet that has the MAC address of the PPPoE client device 1 as a destination address. The data acquisition unit 113 that acquires the MAC address of the device 3 and the session ID of the PPPoE session, the packet generation unit 114 that generates a packet to be transmitted to the LAC device 3, the packet generated by the packet generation unit 114, and the LAC And a transmission / reception unit 115 that receives a packet transmitted from the device 3.

次に、本実施の形態のPPPoEクライアント装置の動作及びPPPoEセッション切断方法を説明する。   Next, the operation of the PPPoE client apparatus of this embodiment and the PPPoE session disconnection method will be described.

本実施の形態のPPPoEセッション切断方法は、PPPoEクライアント装置1がPPPoEセッションを正常に終了することなくPPPoEクライアント装置1の電源が切断された場合に、電源切断前に使用していたPPPoEセッションを、電源起動後にPPPoEクライアント装置1において直ちに開放する方法である。   The PPPoE session disconnection method according to the present embodiment uses the PPPoE session used before the power is turned off when the PPPoE client device 1 is turned off without the PPPoE client device 1 normally ending the PPPoE session. In this method, the PPPoE client device 1 immediately opens after the power is turned on.

図2は図1に示すPPPoEクライアント装置とLAC装置の間のPPPoEセッションを切断する手順を示すシーケンス図である。   FIG. 2 is a sequence diagram showing a procedure for disconnecting the PPPoE session between the PPPoE client apparatus and the LAC apparatus shown in FIG.

まず、ステップS110においてPPPoEクライアント装置1の電源を起動すると、ステップS120では、パケットモニタリング部111は、電源起動後アクセス回線2を介してLAC装置3から着信するパケットをモニタする。そして、パケット識別部112は、着信するパケットのなかにPPPoEクライアント装置1のMACアドレスを宛先アドレスとするLCP Echo Requestパケットがあるかどうかを判断する。   First, when the power supply of the PPPoE client apparatus 1 is activated in step S110, in step S120, the packet monitoring unit 111 monitors packets received from the LAC apparatus 3 via the access line 2 after power activation. Then, the packet identification unit 112 determines whether there is an LCP Echo Request packet having the destination address as the MAC address of the PPPoE client apparatus 1 in the incoming packet.

図3はLCP Echo Requestパケットを示す図である。図3に示すようにLCP Echo Requestパケットは、Ethernet(登録商標)ヘッダ、PPPoEヘッダ、PPPoEペイロード及びフレームチェックシーケンスからなる。Ethernet(登録商標)ヘッダは、宛先MACアドレス、送信元MACアドレス、イーサタイプからなる。また、PPPoEヘッダは、バージョン、タイプ、コード、PPPoEセッションのセッションID、PPPoEペイロードのデータ長の各情報からなる。また、PPPoEペイロードは、PPPプロトコル、LCP Echo Requestのデータからなる。   FIG. 3 is a diagram showing an LCP Echo Request packet. As shown in FIG. 3, the LCP Echo Request packet includes an Ethernet (registered trademark) header, a PPPoE header, a PPPoE payload, and a frame check sequence. The Ethernet (registered trademark) header includes a destination MAC address, a source MAC address, and an ether type. The PPPoE header includes information on version, type, code, session ID of PPPoE session, and data length of PPPoE payload. The PPPoE payload is composed of PPP protocol and LCP Echo Request data.

そして、ステップS130においてLAC装置3からLCP Echo Requestパケットが送信され、パケット識別部112がPPPoEクライアント装置1のMACアドレスを宛先MACアドレスとするLCP Echo Requestパケットであると判断すると、ステップS140では、データ取得部113は、LCP Echo RequestパケットのEthernet(登録商標)ヘッダの送信元MACアドレスからLAC装置3のMACアドレスを読み取る。また、データ取得部113は、PPPoEヘッダのセッションIDから、電源切断前に使用していたPPPoEセッションのセッションIDを読み取る。複数のセッションを使用していた場合はセッションIDは複数となる。   Then, when the LCP Echo Request packet is transmitted from the LAC device 3 in step S130 and the packet identifying unit 112 determines that the packet is the LCP Echo Request packet having the MAC address of the PPPoE client device 1 as the destination MAC address, in step S140, the data The acquisition unit 113 reads the MAC address of the LAC device 3 from the transmission source MAC address of the Ethernet (registered trademark) header of the LCP Echo Request packet. Further, the data acquisition unit 113 reads the session ID of the PPPoE session that was used before power-off from the session ID of the PPPoE header. When a plurality of sessions are used, there are a plurality of session IDs.

次に、ステップS150では、パケット生成部114は、データ取得部113で取得したLAC装置3のMACアドレス、セッションIDを用いて、PADTパケットを生成する。   Next, in step S150, the packet generation unit 114 generates a PADT packet using the MAC address and session ID of the LAC device 3 acquired by the data acquisition unit 113.

図4はPADTパケットを示す図である。図4に示すようにPADTパケットは、Ethernet(登録商標)ヘッダ、PPPoEヘッダ、PPPoEペイロード及びフレームチェックシーケンスからなる。Ethernet(登録商標)ヘッダは、宛先MACアドレス、送信元MACアドレス、イーサタイプからなる。また、PPPoEヘッダは、バージョン、タイプ、コード、PPPoEセッションのセッションID、PPPoEペイロードのデータ長の各情報からなる。   FIG. 4 is a diagram showing a PADT packet. As shown in FIG. 4, the PADT packet includes an Ethernet (registered trademark) header, a PPPoE header, a PPPoE payload, and a frame check sequence. The Ethernet (registered trademark) header includes a destination MAC address, a source MAC address, and an ether type. The PPPoE header includes information on version, type, code, session ID of PPPoE session, and data length of PPPoE payload.

ステップS150では、宛先MACアドレスとしてLAC装置3のMACアドレスを記載し、送信元MACアドレスとしてPPPoEクライアント装置1のMACアドレスを記載し、セッションIDとして電源切断前に使用していたPPPoEセッションのセッションIDを記載したPADTパケットを生成する。   In step S150, the MAC address of the LAC device 3 is described as the destination MAC address, the MAC address of the PPPoE client device 1 is described as the source MAC address, and the session ID of the PPPoE session used before the power is turned off as the session ID Is generated.

そして、ステップS160では、送受信部115は、このパケット生成部114で生成したPADTパケットをLAC装置3に対して送信する。   In step S160, the transmission / reception unit 115 transmits the PADT packet generated by the packet generation unit 114 to the LAC device 3.

その後、ステップS170において、パケットモニタリング部111は、LAC装置3から着信するパケットをモニタする。そして、パケット識別部112は、着信するパケットのなかにパケット生成部114で生成したPADTパケットと同一のセッションIDのPADTパケットがあるかどうかを判断する。   Thereafter, in step S <b> 170, the packet monitoring unit 111 monitors packets that arrive from the LAC device 3. Then, the packet identification unit 112 determines whether there is a PADT packet having the same session ID as the PADT packet generated by the packet generation unit 114 among the incoming packets.

そして、ステップS180において、PADTパケットがLAC装置3から送信され、パケット識別部112が、このPADTパケットがパケット生成部114で生成したPADTパケットと同一のセッションIDのPADTパケットであると判断すると、PPPoEセッションが開放されたことが確認される。   In step S180, when the PADT packet is transmitted from the LAC device 3, and the packet identification unit 112 determines that the PADT packet is a PADT packet having the same session ID as the PADT packet generated by the packet generation unit 114, PPPoE It is confirmed that the session has been released.

この後、図6に示した手順に従ってPPPoEセッションを開始することができる。   Thereafter, the PPPoE session can be started according to the procedure shown in FIG.

このように本実施の形態のPPPoEクライアント装置及びPPPoEセッション切断方法によれば、PPPoEクライアント装置1の電源起動後に、LAC装置3からPPPoEクライアント装置1に送信されるLCP Echo RequestパケットからLAC装置3のMACアドレスと、PPPoEクライアント装置1の電源切断前に使用していたPPPoEセッションのセッションIDとを取得し、LAC装置3のMACアドレスを宛先MACアドレスとし、PPPoEクライアント装置1のMACアドレスを送信元MACアドレスとし、LCP Echo Requestパケットから取得したセッションIDを自身のセッションIDとして含むPADTパケットを生成し、このPADTパケットをLAC装置3へ送信するので、電源起動時にLAC装置3が持ちきりになっているPPPoEセッションが存在する場合に、少なくともT時間以内にLCP Echo Requestパケットを受信することが可能であり、従来のようにLAC装置3がセッションを開放するまで待つ必要がないため、新規にPPPoEセッションを開始するための時間を著しく短縮することができる。   As described above, according to the PPPoE client apparatus and the PPPoE session disconnection method of the present embodiment, after the power supply of the PPPoE client apparatus 1 is started, the LAC apparatus 3 starts from the LCP Echo Request packet transmitted from the LAC apparatus 3 to the PPPoE client apparatus 1. The MAC address and the session ID of the PPPoE session used before powering off the PPPoE client device 1 are acquired, the MAC address of the LAC device 3 is set as the destination MAC address, and the MAC address of the PPPoE client device 1 is set as the source MAC. Since a PADT packet including the session ID acquired from the LCP Echo Request packet as its own session ID is generated and transmitted to the LAC device 3, the LAC device 3 possesses it when the power is turned on. Since it is possible to receive an LCP Echo Request packet within at least T time and there is no need to wait until the LAC device 3 releases the session as in the prior art, The time for starting a new PPPoE session can be significantly reduced.

なお、本発明は、PPPoE接続時にPPPoEクライアント装置に動作異常が発生し、PPPoEクライアント装置をリブートする必要が生じた場合にも有効である。   It should be noted that the present invention is also effective when an operation error occurs in the PPPoE client device during PPPoE connection and it is necessary to reboot the PPPoE client device.

本発明の実施の形態のPPPoEクライアント装置を示すブロック図である。It is a block diagram which shows the PPPoE client apparatus of embodiment of this invention. 図1に示すPPPoEクライアント装置とLAC装置の間のPPPoEセッションを切断する手順を示すシーケンス図である。It is a sequence diagram which shows the procedure which disconnects the PPPoE session between the PPPoE client apparatus and LAC apparatus shown in FIG. LCP Echo Requestパケットを示す図である。It is a figure which shows a LCP Echo Request packet. PADTパケットを示す図である。It is a figure which shows a PADT packet. (a)はPPPoEの接続形態を示す図、(b)はPPPoEクライアント装置におけるプロトコルスタック図、(c)はLAC装置におけるプロトコルスタック図、(d)はLNS装置におけるプロトコルスタック図である。(A) is a diagram showing a connection form of PPPoE, (b) is a protocol stack diagram in the PPPoE client device, (c) is a protocol stack diagram in the LAC device, and (d) is a protocol stack diagram in the LNS device. PPPoEセッション接続手順を示すシーケンス図である。It is a sequence diagram which shows a PPPoE session connection procedure.

符号の説明Explanation of symbols

1 PPPoEクライアント装置
2 アクセス回線
3 LAC装置
5 LNS装置
6A,6B プロバイダ
11 制御部
12 WANポート
111 パケットモニタリング部
112 パケット識別部
113 データ取得部
114 パケット生成部
115 送受信部
DESCRIPTION OF SYMBOLS 1 PPPoE client apparatus 2 Access line 3 LAC apparatus 5 LNS apparatus 6A, 6B Provider 11 Control part 12 WAN port 111 Packet monitoring part 112 Packet identification part 113 Data acquisition part 114 Packet generation part 115 Transmission / reception part

Claims (2)

集中したアクセスを接続先ごとに振り分けるLAC装置との間でPPPoEセッションの確立を行うPPPoEクライアント装置において、
自装置の電源起動後に前記LAC装置から自装置に送信される接続性確認のパケットから、前記LAC装置のMACアドレスと自装置の電源切断前に使用していたPPPoEセッションのセッションIDとを取得するデータ取得手段と、
このデータ取得手段で取得した前記LAC装置のMACアドレスを宛先MACアドレスとし、自装置のMACアドレスを送信元MACアドレスとし、前記データ取得手段で取得したセッションIDを自セッションIDとして含む終了要求のパケットを生成するパケット生成手段と、
このパケット生成手段で生成した前記終了要求のパケットを前記LAC装置へ送信する送信手段と
を備えることを特徴とするPPPoEクライアント装置。
In a PPPoE client device that establishes a PPPoE session with a LAC device that distributes concentrated access for each connection destination,
Obtain the MAC address of the LAC device and the session ID of the PPPoE session that was used before turning off the power of the device from the connectivity confirmation packet sent from the LAC device to the device after the power of the device is turned on. Data acquisition means;
End request packet including the MAC address of the LAC device acquired by the data acquisition unit as a destination MAC address, the MAC address of the local device as a source MAC address, and the session ID acquired by the data acquisition unit as the local session ID Packet generating means for generating
A PPPoE client device comprising: a transmission unit configured to transmit the termination request packet generated by the packet generation unit to the LAC device.
集中したアクセスを接続先ごとに振り分けるLAC装置との間でPPPoEセッションの確立を行うPPPoEクライアント装置のPPPoEセッション切断方法において、
前記PPPoEクライアント装置の電源起動後に、前記LAC装置から前記PPPoEクライアント装置に送信される接続性確認のパケットから前記LAC装置のMACアドレスと、前記PPPoEクライアント装置の電源切断前に使用していたPPPoEセッションのセッションIDとを取得するデータ取得ステップと、
このデータ取得ステップで取得した前記LAC装置のMACアドレスを宛先MACアドレスとし、前記PPPoEクライアント装置のMACアドレスを送信元MACアドレスとし、前記データ取得ステップで取得したセッションIDを自セッションIDとして含む終了要求のパケットを生成するパケット生成ステップと、
このパケット生成ステップで生成した前記終了要求のパケットを前記LAC装置へ送信する送信ステップと
を有することを特徴とするPPPoEセッション切断方法。
In a PPPoE session disconnection method of a PPPoE client device that establishes a PPPoE session with a LAC device that distributes concentrated access for each connection destination,
After powering on the PPPoE client device, the MAC address of the LAC device from the connectivity confirmation packet sent from the LAC device to the PPPoE client device and the PPPoE session used before powering off the PPPoE client device A data acquisition step of acquiring the session ID of
Termination request including the MAC address of the LAC device acquired in this data acquisition step as a destination MAC address, the MAC address of the PPPoE client device as a source MAC address, and the session ID acquired in the data acquisition step as its own session ID A packet generation step for generating a packet of
A PPPoE session disconnection method, comprising: a transmission step of transmitting the termination request packet generated in the packet generation step to the LAC device.
JP2005304461A 2005-10-19 2005-10-19 PPPoE client apparatus and PPPoE session disconnection method Active JP4755879B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005304461A JP4755879B2 (en) 2005-10-19 2005-10-19 PPPoE client apparatus and PPPoE session disconnection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005304461A JP4755879B2 (en) 2005-10-19 2005-10-19 PPPoE client apparatus and PPPoE session disconnection method

Publications (2)

Publication Number Publication Date
JP2007116346A JP2007116346A (en) 2007-05-10
JP4755879B2 true JP4755879B2 (en) 2011-08-24

Family

ID=38098153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005304461A Active JP4755879B2 (en) 2005-10-19 2005-10-19 PPPoE client apparatus and PPPoE session disconnection method

Country Status (1)

Country Link
JP (1) JP4755879B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3628315B2 (en) * 2002-09-10 2005-03-09 日本電信電話株式会社 COMMUNICATION CONTROL METHOD, COMMUNICATION CONTROL PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP4817797B2 (en) * 2005-10-19 2011-11-16 東日本電信電話株式会社 PPPoE bridge device and PPPoE session disconnection method

Also Published As

Publication number Publication date
JP2007116346A (en) 2007-05-10

Similar Documents

Publication Publication Date Title
US7733859B2 (en) Apparatus and method for packet forwarding in layer 2 network
JP5144444B2 (en) Method for establishing an IPOA channel based default maintenance channel
US6061650A (en) Method and apparatus for transparently providing mobile network functionality
US7039049B1 (en) Method and apparatus for PPPoE bridging in a routing CMTS
CN101527677B (en) Data packet forwarding apparatus
US6112245A (en) Session establishment for static links in Point-to-Point Protocol sessions
US20030174714A1 (en) Zero-installation PPP-Bridge setup for lan-to-wan connectivity
US20080046974A1 (en) Method and System Enabling a Client to Access Services Provided by a Service Provider
JP2000022759A (en) Dynamic network configuration for unidirectional adaptor using agent in communication with resource server through configured feedback path
US20110202670A1 (en) Method, device and system for identifying ip session
WO2016192608A2 (en) Authentication method, authentication system and associated device
JP2007221533A (en) Ppp gateway device
WO2017088101A1 (en) Network access information acquiring method, and router
JP4425923B2 (en) Access service network system, access device, and access service providing method
EP1791322B1 (en) A method and system for automatically distributing the service to the ppp access terminal
US20050157722A1 (en) Access user management system and access user management apparatus
US20080086549A1 (en) Ppp access terminal, access service device and a method for getting an address of a provider server by the terminal
CN106131177B (en) Message processing method and device
JP4817797B2 (en) PPPoE bridge device and PPPoE session disconnection method
WO2009074072A1 (en) Method, network system and network equipment of dynamic strategy conversion
KR100590875B1 (en) xDSL modem and system including DHCP spoofing server, and PPPoE method for connecting internet using the same
JP3757863B2 (en) Access network equipment
JP2009267987A (en) Station-side apparatus, pon system and home gateway device
JP4755879B2 (en) PPPoE client apparatus and PPPoE session disconnection method
US20080259932A1 (en) Method and System for Facilitating a First and Second Protocol Between a Data Processing System and an ISP

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081006

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110425

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: 20110524

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110530

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4755879

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250