JP2019087907A - Network system, connection information setting method, and connection information setting program - Google Patents

Network system, connection information setting method, and connection information setting program Download PDF

Info

Publication number
JP2019087907A
JP2019087907A JP2017215457A JP2017215457A JP2019087907A JP 2019087907 A JP2019087907 A JP 2019087907A JP 2017215457 A JP2017215457 A JP 2017215457A JP 2017215457 A JP2017215457 A JP 2017215457A JP 2019087907 A JP2019087907 A JP 2019087907A
Authority
JP
Japan
Prior art keywords
address
sequence
ipcp
client device
available
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.)
Granted
Application number
JP2017215457A
Other languages
Japanese (ja)
Other versions
JP6652260B2 (en
Inventor
達也 横井
Tatsuya Yokoi
達也 横井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Platforms Ltd
Original Assignee
NEC Platforms 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 NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2017215457A priority Critical patent/JP6652260B2/en
Publication of JP2019087907A publication Critical patent/JP2019087907A/en
Application granted granted Critical
Publication of JP6652260B2 publication Critical patent/JP6652260B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

To provide a network system capable of automatically setting connection information (IP address and subnet mask) on a LAN interface of a client device when the client device is connected to a PPPoE defined LAN.SOLUTION: A client device 10 operating according to the PPPoE protocol obtains a valid range of an available IP address by repeatedly executing an internet protocol control protocol (IPCP) sequence with a server apparatus 20 in which an available IP address is set and registered in advance, calculates a subnet mask on the basis of the acquired valid range of the IP address, selects any arbitrary IP address within the valid range of the IP address, and sets the IP address in a LAN interface 12 of the client device 10 as connection information.SELECTED DRAWING: Figure 1

Description

本発明は、ネットワークシステム、接続用情報設定方法および接続用情報設定プログラムに関し、特に、RFC2516規定のプロトコルであるPPPoE(Point-to-Point Protocol over Ethernet)規定に準拠したネットワークシステム、接続用情報設定方法および接続用情報設定プログラムに関する。   The present invention relates to a network system, a connection information setting method, and a connection information setting program, and in particular, a network system conforming to the PPPoE (Point-to-Point Protocol over Ethernet) standard which is a protocol defined by RFC 2516, connection information setting. The present invention relates to a method and an information setting program for connection.

PPPoE規定に準拠したネットワークシステム(LAN(Local Area Network)システム)を利用する際に、各クライアント装置は、該ネットワークシステムに接続するインタフェースとなるLANインタフェースに、それぞれを一意に特定することができ、他のクライアント装置とは重複しない接続用情報(IP(Internet Protocol)アドレスおよびサブネットマスク)を設定することが必要である。   When using a network system (LAN (Local Area Network) system) conforming to the PPPoE standard, each client device can uniquely identify each as a LAN interface serving as an interface connected to the network system, It is necessary to set connection information (IP (Internet Protocol) address and subnet mask) that do not overlap with other client devices.

つまり、例えば特許文献1の特開2005−55940号公報「ネットワーク機器自動設定装置、ネットワーク機器自動設定方法、プログラムおよび記録媒体」等においても記載されているように、現状のネットワークシステムにおいては、PPPoE規定に準拠したネットワークシステムにクライアント装置を接続する際に、当該クライアント装置のユーザは、ネットワークシステム使用契約時に事業者から指定されたサブネットマスクおよびIPアドレスを当該クライアント装置のLANインタフェースに手動で設定することが必要になっている。   That is, as described in, for example, Japanese Patent Application Laid-Open No. 2005-55940 "Network device automatic setting device, network device automatic setting method, program and recording medium" of Patent Document 1, PPPoE is currently used in the current network system. When connecting a client device to a network system compliant with the regulations, the user of the client device manually sets the subnet mask and IP address specified by the provider at the time of contract for using the network system in the LAN interface of the client device. Is needed.

特開2005−55940号公報JP 2005-55940 A

前述したように、本発明に関連する現状の技術においては、PPPoE規定に準拠のネットワークシステムにクライアント装置を接続する際に、クライアント装置のユーザは、接続用情報(サブネットマスクおよびIPアドレス)を当該クライアント装置のLANインタフェースに手動で設定する必要がある。このため、ユーザの負担の増加や人為的ミスによる接続用情報の設定誤りや、クライアント装置の設置時間の増加等の問題が発生している。このため、クライアント装置への接続用情報設定を自動化することが強く求められている。   As described above, in the present technology related to the present invention, when connecting a client device to a network system compliant with the PPPoE standard, the user of the client device is required to use connection information (subnet mask and IP address). You need to set it manually on the LAN interface of the client device. For this reason, problems such as an error in setting of connection information due to an increase in the burden on the user or human error, an increase in installation time of the client apparatus, and the like have occurred. For this reason, there is a strong demand to automate setting of information for connection to a client device.

(本発明の目的)
本発明は、かかる事情に鑑みてなされたものであり、クライアント装置をPPPoE規定のLANに接続する際に、該クライアント装置のLANインタフェースに、接続用情報(IPアドレスおよびサブネットマスク)を自動的に設定することが可能なネットワークシステム、接続用情報設定方法および接続用情報設定プログラムを提供することを、その目的としている。
(Object of the present invention)
The present invention has been made in view of such circumstances, and when connecting a client device to a LAN based on PPPoE, connection information (IP address and subnet mask) is automatically added to the LAN interface of the client device. An object of the present invention is to provide a network system that can be set, a connection information setting method, and a connection information setting program.

前述の課題を解決するため、本発明によるネットワークシステム、接続用情報設定方法および接続用情報設定プログラムは、主に、次のような特徴的な構成を採用している。   In order to solve the above-described problems, the network system, the connection information setting method and the connection information setting program according to the present invention mainly adopt the following characteristic configurations.

(1)本発明によるネットワークシステムは、
PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置と利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置とを含むネットワークシステムにおいて、
前記クライアント装置が、前記サーバ装置との間でIPCP(Internet Protocol Control Protocol)シーケンスを繰り返し実施することによって、利用可能なIPアドレスの有効範囲を取得し、取得した該IPアドレスの有効範囲に基づいてサブネットマスクを算出するとともに、該IPアドレスの有効範囲内のいずれか任意のIPアドレスを選択して、接続用情報として、当該クライアント装置に設定する手段を
有することを特徴とする。
(1) A network system according to the present invention
In a network system including a client device operating according to a PPPoE (Point-to-Point Protocol over Ethernet) protocol and a server device in which an available IP address is registered in advance.
The client device acquires an effective range of an available IP address by repeatedly executing an IPCP (Internet Protocol Control Protocol) sequence with the server device, and based on the acquired effective range of the IP address. The apparatus is characterized by comprising means for calculating a subnet mask and selecting any arbitrary IP address within the valid range of the IP address, and setting it as the connection information in the client apparatus.

(2)本発明による接続用情報設定方法は、
PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置と利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置とを含むネットワークシステムにおいて、前記クライアント装置に接続用情報を設定する接続用情報設定方法であって、
前記クライアント装置が、前記サーバ装置との間でIPCP(Internet Protocol Control Protocol)シーケンスを繰り返し実施することによって、利用可能なIPアドレスの有効範囲を取得し、取得した該IPアドレスの有効範囲に基づいてサブネットマスクを算出するとともに、該IPアドレスの有効範囲内のいずれか任意のIPアドレスを選択して、前記接続用情報として、当該クライアント装置に設定するステップを
有することを特徴とする。
(2) The connection information setting method according to the present invention
In a network system including a client device operating according to a PPPoE (Point-to-Point Protocol over Ethernet) protocol and a server device in which an available IP address is set and registered in advance, connection information is transmitted to the client device Connection information setting method to be set,
The client device acquires an effective range of an available IP address by repeatedly executing an IPCP (Internet Protocol Control Protocol) sequence with the server device, and based on the acquired effective range of the IP address. And calculating a subnet mask, selecting any IP address within the valid range of the IP address, and setting it as the connection information in the client apparatus.

(3)本発明による接続用情報設定プログラムは、
PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置と利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置とを含むネットワークシステムにおいて、前記クライアント装置に接続用情報を設定する処理をコンピュータによって実行する接続用情報設定プログラムであって、
前記クライアント装置が、前記サーバ装置との間でIPCP(Internet Protocol Control Protocol)シーケンスを繰り返し実施することによって、利用可能なIPアドレスの有効範囲を取得し、取得した該IPアドレスの有効範囲に基づいてサブネットマスクを算出するとともに、該IPアドレスの有効範囲内のいずれか任意のIPアドレスを選択して、前記接続用情報として、当該クライアント装置に設定する処理を
有することを特徴とする。
(3) The connection information setting program according to the present invention
In a network system including a client device operating according to a PPPoE (Point-to-Point Protocol over Ethernet) protocol and a server device in which an available IP address is set and registered in advance, connection information is transmitted to the client device A connection information setting program that causes a computer to execute setting processing, and
The client device acquires an effective range of an available IP address by repeatedly executing an IPCP (Internet Protocol Control Protocol) sequence with the server device, and based on the acquired effective range of the IP address. A process of calculating a subnet mask, selecting any IP address within the valid range of the IP address, and setting the IP address as the connection information in the client apparatus is characterized.

本発明のネットワークシステム、接続用情報設定方法および接続用情報設定プログラムによれば、以下のような効果を奏することができる。   According to the network system, the connection information setting method, and the connection information setting program of the present invention, the following effects can be obtained.

すなわち、本発明においては、PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置が、利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置との間でIPCP(Internet Protocol Control Protocol)シーケンスを繰り返し実施することによって、利用可能なIPアドレスの有効範囲を取得し、取得した該IPアドレスの有効範囲に基づいて、サブネットマスクを算出するとともに、利用するIPアドレスを選択して、接続用情報として、当該クライアント装置に設定する、という接続用情報自動設定方式を実現している。   That is, in the present invention, a client apparatus operating according to a PPPoE (Point-to-Point Protocol over Ethernet) protocol communicates with a server apparatus in which an available IP address is set and registered in advance. Protocol Control Protocol) Repeatedly executing the sequence, the effective range of the available IP address is acquired, the subnet mask is calculated based on the acquired effective range of the IP address, and the IP address to be used is selected. The connection information automatic setting method is implemented by setting the connection information in the client device.

而して、前記接続用情報(サブネットマスク、IPアドレスに関する情報)をクライアント装置に自動的に設定することができるので、前記接続用情報の設定に関する人為的ミスがなくなり、また、クライアント装置への前記接続用情報の設定に要する時間を短縮することができる。   Since the connection information (subnet mask, information on IP address) can be automatically set in the client device, there is no human error in setting the connection information, and there is no need for the client device. The time required to set the connection information can be shortened.

本発明に係るネットワークシステムのシステム構成の一例を模式的に示したシステム構成図である。It is a system configuration figure showing typically an example of system configuration of a network system concerning the present invention. 図1に示したネットワークシステムの動作の概要を説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the outline | summary of operation | movement of the network system shown in FIG. 図1に示したネットワークシステムの具体的な動作の一例である第1の動作例を説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the 1st operation example which is an example of a concrete operation | movement of the network system shown in FIG. 図1に示したネットワークシステムの具体的な動作の図3の第1の動作例とは異なる第2の動作例を説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the 2nd operation example different from the 1st operation example of FIG. 3 of the concrete operation | movement of the network system shown in FIG.

以下、本発明によるネットワークシステム、接続用情報設定方法および接続用情報設定プログラムの好適な実施形態について添付図を参照して説明する。なお、以下の説明においては、本発明によるネットワークシステムおよび接続用情報設定方法について説明するが、かかる接続用情報設定方法をコンピュータにより実行可能な接続用情報設定プログラムとして実施するようにしても良いし、あるいは、接続用情報設定プログラムをコンピュータにより読み取り可能な記録媒体に記録するようにしても良いことは言うまでもない。また、以下の各図面に付した図面参照符号は、理解を助けるための一例として各要素に便宜上付記したものであり、本発明を図示の態様に限定することを意図するものではないことも言うまでもない。   Hereinafter, preferred embodiments of a network system, a connection information setting method, and a connection information setting program according to the present invention will be described with reference to the attached drawings. In the following description, although the network system and the connection information setting method according to the present invention will be described, the connection information setting method may be implemented as a connection information setting program that can be executed by a computer. Alternatively, it goes without saying that the connection information setting program may be recorded on a computer readable recording medium. Further, reference numerals in the drawings attached to the following drawings are for convenience added to the respective elements as an example for aiding understanding, and it is needless to say that the present invention is not intended to be limited to the illustrated embodiment. Yes.

<本発明の特徴>
本発明の実施形態の説明に先立って、本発明の特徴についてその概要をまず説明する。本発明は、RFC2516規定のプロトコルであるPPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置の接続用情報(IPアドレスおよびサブネットマスク)に関する自動設定方式に関するものであり、PPPoE規定のLAN(Local Area Network)に接続しようとするクライアント装置が、利用可能なIPアドレスをあらかじめ登録しているサーバ装置との間でRFC1332規定のプロトコルであるIPCP(Internet Protocol Control Protocol)プロトコルに準拠したコマンド・応答の送受信を繰り返し実施することによって、サーバ装置が払い出すIPアドレスの範囲(以降、有効範囲と呼ぶ)を取得することを主要な特徴としている。また、該有効範囲から算出したサブネットマスク、および、該有効範囲内にあるいずれか任意のIPアドレスを接続先情報としてクライアント装置のLANインタフェースに自動的に設定することも主要な特徴の一つである。而して、現状において、クライアント装置のユーザが手動で設定していた場合のような人為的なミスを軽減することができるとともに、クライアント装置への接続用情報の設定に要する時間を短縮することができる。
<Features of the present invention>
Before describing the embodiments of the present invention, the features of the present invention will first be outlined. The present invention relates to an automatic setting method for connection information (IP address and subnet mask) of a client device operating according to the PPPoE (Point-to-Point Protocol over Ethernet) protocol which is a protocol defined by RFC 2516, A client device attempting to connect to a LAN (Local Area Network) specified by PPPoE, and an IPCP (Internet Protocol Control Protocol) protocol, which is a protocol defined by RFC1332, with a server device in which an available IP address is registered in advance The main feature is to obtain a range of IP addresses (hereinafter referred to as a valid range) to be issued by the server device by repeatedly performing transmission and reception of compliant commands and responses. Also, one of the main features is that the subnet mask calculated from the effective range and any arbitrary IP address within the effective range are automatically set in the LAN interface of the client apparatus as connection destination information. is there. Under the present circumstances, while being able to reduce an artificial mistake like when the user of a client apparatus was setting manually manually, shortening the time required for the setting of the information for a connection to a client apparatus Can.

<本発明の実施形態の構成例>
次に、本発明に係るネットワークシステムの構成例について図1を参照しながら説明する。図1は、本発明に係るネットワークシステムのシステム構成の一例を模式的に示したシステム構成図である。図1に示すように、本ネットワークシステムは、クライアント装置10、サーバ装置20および複数台(図1には3台の場合を示している)の端末30から構成されていて、クライアント装置10は、接続ポート11を介してサーバ装置20と接続されており、LANインタフェース12を介して3台の端末30が接続されている構成例を示している。
<Configuration Example of Embodiment of the Present Invention>
Next, a configuration example of a network system according to the present invention will be described with reference to FIG. FIG. 1 is a system configuration diagram schematically showing an example of a system configuration of a network system according to the present invention. As shown in FIG. 1, the present network system comprises a client device 10, a server device 20, and a plurality (three in FIG. 1) of terminals 30. The client device 10 comprises: An example of a configuration in which three terminals 30 are connected via the LAN interface 12 and connected to the server device 20 via the connection port 11 is shown.

クライアント装置10は、PPPoE規定のLANに接続しようとする際に、利用可能なIPアドレスをあらかじめ登録しているサーバ装置20にアクセスして、サーバ装置20において払い出されたIPアドレスの範囲を利用可能なIPアドレスの有効範囲として取得する有効範囲取得部13、および、接続用情報をLANインタフェース12に設定する接続用情報設定部14を少なくとも備えて構成される。すなわち、有効範囲取得部13は、サーバ装置20が払い出すIPアドレスの範囲を、サーバ装置20との間でIPCPシーケンスを繰り返すことによって取得して、利用可能なIPアドレスの有効範囲として取得する機能を有する。また、接続用情報設定部14は、有効範囲取得部13が取得したIPアドレスの有効範囲に基づいて算出したサブネットマスク、および、該IPアドレスの有効範囲内で任意に選択したいずれかのIPアドレスを接続用情報としてLANインタフェース12に設定する機能を有する。   The client device 10 accesses the server device 20 in which an available IP address is registered in advance when trying to connect to the LAN specified by the PPPoE, and uses the range of the IP address paid out by the server device 20. It comprises at least an effective range acquisition unit 13 which acquires the effective range of possible IP addresses, and a connection information setting unit 14 which sets connection information in the LAN interface 12. That is, the effective range acquisition unit 13 acquires the range of the IP address that the server device 20 delivers by repeating the IPCP sequence with the server device 20 and acquiring it as the effective range of the usable IP address. Have. Further, the connection information setting unit 14 calculates the subnet mask calculated based on the effective range of the IP address acquired by the effective range acquisition unit 13 and any IP address arbitrarily selected within the effective range of the IP address. Is set in the LAN interface 12 as connection information.

<本発明の実施形態の動作の説明>
次に、図1に示したネットワークシステムの動作について、図2に示すシーケンスチャートを参照しながらその概要について説明する。図2は、図1に示したネットワークシステムの動作の概要を説明するためのシーケンスチャートであり、クライアント装置10がサーバ装置20から得た情報に基づいて、接続先情報を生成してクライアント装置10のLANインタフェース12に自動的に設定するまでの動作の流れの一例を示している。
<Description of Operation of Embodiment of the Present Invention>
Next, the operation of the network system shown in FIG. 1 will be outlined with reference to the sequence chart shown in FIG. FIG. 2 is a sequence chart for explaining the outline of the operation of the network system shown in FIG. 1. The client device 10 generates connection destination information based on the information obtained from the server device 20 by the client device 10. An example of the flow of operation up to automatic setting to the LAN interface 12 of FIG.

つまり、図2のシーケンスチャートにおいては、クライアント装置10は、PPPoE規定のLANに接続しようとする際に、利用可能なIPアドレスをあらかじめ登録しているサーバ装置20にアクセスして、クライアント装置10とサーバ装置20との間で、RFC1332規定のプロトコルであるIPCP(Internet Protocol Control Protocol)プロトコルに準拠したコマンド・応答の送受信を繰り返し実施する動作例を示しており、而して、クライアント装置10は、サーバ装置20が払い出すIPアドレスの範囲(以降、有効範囲と呼ぶ)を取得する動作例を示している。さらに、クライアント装置10は、取得した該有効範囲からサブネットマスクを算出し、かつ、該有効範囲内にある任意のIPアドレスを選択して、接続先情報として、クライアント装置10のLANインタフェース12に自動的に設定するまでの動作例も示している。   That is, in the sequence chart of FIG. 2, when trying to connect to the LAN specified by PPPoE, the client device 10 accesses the server device 20 in which an available IP address is registered in advance, and An operation example of repeatedly executing transmission / reception of a command / response compliant with an IPCP (Internet Protocol Control Protocol) protocol which is a protocol defined by RFC1332 with the server device 20 is shown. The example of operation which acquires the range (it calls an effective range hereafter) of the IP address which the server apparatus 20 delivers is shown. Furthermore, the client device 10 calculates a subnet mask from the acquired effective range, and selects an arbitrary IP address within the effective range to automatically connect the LAN interface 12 of the client device 10 as connection destination information. An operation example up to setting is also shown.

以下、図2のシーケンスチャートに沿って説明する。図2のシーケンスチャートにおいて、クライアント装置10は、まず、IPアドレスを取得するためのIPCPシーケンスを実施する。最初に、IPCPプロトコルに準拠したRequestパケット(IPアドレス‘0.0.0.0’を含む)とnak応答パケット(払い出し先頭IPアドレスを含む)とを交換することにより、サーバ装置20が払い出した有効範囲の先頭IPアドレスを取得する(シーケンスSeq1)。しかる後、クライアント装置10は、サーバ装置20からnakパケットまたはrejectパケットの応答パケットが返送されてくるまで、言い換えると、ackパケットが返送される限り、取得した先頭IPアドレスに‘1’ずつ順次加算したIPアドレス(以降、IPアドレスAと称する)を含むRequestパケットをサーバ装置20に送信する動作を繰り返す(シーケンスSeq2)。つまり、クライアント装置10は、サーバ装置20から返送されてくる応答パケットがackパケットの場合には、送信したIPアドレスAは使用可能な有効範囲内のIPアドレスと判定し、nakパケットやrejectパケットの場合には、送信したIPアドレスAは使用不可能なIPアドレスと判定する。   Hereinafter, description will be made along the sequence chart of FIG. In the sequence chart of FIG. 2, the client device 10 first implements an IPCP sequence for acquiring an IP address. First, the server device 20 was dispatched by exchanging a Request packet (including the IP address '0.0.0.0') compliant with the IPCP protocol and a nak response packet (including the delivery top IP address) The start IP address of the effective range is acquired (sequence Seq1). After that, until the client device 10 returns a response packet of an nak packet or reject packet from the server device 20, in other words, as long as an ack packet is returned, '1's are sequentially added to the acquired start IP address The operation of transmitting a Request packet including the acquired IP address (hereinafter referred to as IP address A) to the server device 20 is repeated (sequence Seq2). That is, when the response packet returned from the server device 20 is an ack packet, the client device 10 determines that the transmitted IP address A is an IP address within the usable effective range, and the nak packet or reject packet In this case, it is determined that the transmitted IP address A is an unusable IP address.

クライアント装置10の有効範囲取得部13は、シーケンスSeq1において先に取得した先頭IPアドレスから、IPCPシーケンスの繰り返しにおいて最後にackパケットの応答パケットを受信したRequestパケットに含まれていたIPアドレスAまでを、サーバ装置20が払い出したIPアドレスの有効範囲として取得する(シーケンスSeq3)。そして、クライアント装置10の接続用情報設定部14は、取得したIPアドレスの有効範囲に基づいて、接続用情報として、サブネットマスクを算出するとともに、該有効範囲内にある任意のIPアドレスを選択する(シーケンスSeq4)。しかる後、クライアント装置10の接続用情報設定部14は、シーケンスSeq4において接続用情報として算出したサブネットマスクと選択したIPアドレスとを、LANインタフェース12に設定する(シーケンスSeq5)。   The valid range acquiring unit 13 of the client device 10 is from the first IP address acquired earlier in the sequence Seq1 to the IP address A included in the Request packet that has finally received the response packet of the ack packet in repeating the IPCP sequence. , It acquires as a valid range of the IP address which the server apparatus 20 paid out (sequence Seq3). Then, the connection information setting unit 14 of the client device 10 calculates a subnet mask as connection information based on the acquired valid range of the IP address, and selects an arbitrary IP address within the valid range. (Sequence Seq4). Thereafter, the connection information setting unit 14 of the client device 10 sets the subnet mask calculated as the connection information in the sequence Seq4 and the selected IP address in the LAN interface 12 (sequence Seq5).

(本発明の実施形態の第1の動作例の説明)
次に、図1に示したネットワークシステムの具体的な動作について説明する。まず、図3に示すシーケンスチャートを参照しながら第1の動作例を説明する。図3は、図1に示したネットワークシステムの具体的な動作の一例である第1の動作例を説明するためのシーケンスチャートである。なお、図3においては、サーバ装置情報25に示すように、サーバ装置20が払い出すことが可能なIPアドレスの払い出し範囲が、‘10.0.1.1’〜 ‘10.0.1.6’までの6個のIPアドレスである場合を例示している。
(Description of a First Operation Example of the Embodiment of the Present Invention)
Next, the specific operation of the network system shown in FIG. 1 will be described. First, a first operation example will be described with reference to the sequence chart shown in FIG. FIG. 3 is a sequence chart for explaining a first operation example which is an example of a specific operation of the network system shown in FIG. In FIG. 3, as indicated by the server device information 25, the delivery range of the IP address that can be delivered by the server device 20 is '10 .0.1.1 'to '10 .0.1. The case of six IP addresses up to 6 'is illustrated.

図3のシーケンスチャートにおいて、クライアント装置10は、PPPoE規定のLANに接続しようとする際に、利用可能なIPアドレスをあらかじめ登録しているサーバ装置20にアクセスして、利用可能なIPアドレスを取得するためのIPCPシーケンスとして、まず、IPCPプロトコルに準拠したRequestパケット(IPアドレス‘all0’すなわち‘0.0.0.0’を含む)を、サーバ装置20に送信すると、該Requestパケットを受信したサーバ装置20は、サーバ装置情報25にあらかじめ登録されているIPアドレス払い出し範囲を参照して、該Requestパケットに含まれているIPアドレス‘0.0.0.0’が払い出し範囲外のIPアドレスであると判定する。   In the sequence chart of FIG. 3, when trying to connect to a LAN specified by PPPoE, the client device 10 accesses the server device 20 in which the available IP address is registered in advance, and acquires the available IP address. When a Request packet conforming to the IPCP protocol (including the IP address 'all0', ie, '0.0.0.0') is first transmitted to the server apparatus 20 as an IPCP sequence to execute the request, the Request packet is received The server device 20 refers to the IP address delivery range registered in advance in the server device information 25, and the IP address '0.0.0.0' included in the Request packet is out of the delivery range. It is determined that

したがって、サーバ装置20は、該Requestパケットに対する応答パケットとしてnakパケットを生成するとともに、払い出すことが可能な先頭のIPアドレスとして、サーバ装置情報25の払い出し範囲の最若番に登録されているIPアドレス‘10.0.1.1’を取り出して、該nakパケットに含む形式で、クライアント装置10に対して返送する。クライアント装置10は、サーバ装置20からのnakパケットを受信することにより、該nakパケットに含まれているIPアドレス‘10.0.1.1’を、サーバ装置20が払い出した最若番側の先頭IPアドレスとして取得して、クライアント装置情報15に示すように、IPアドレスの有効範囲の先頭IPアドレスとして保存する(シーケンスSeq11)。   Therefore, the server device 20 generates an nak packet as a response packet to the Request packet, and the IP registered as the smallest IP address in the delivery range of the server device information 25 as a leading IP address that can be delivered. The address '10 .0.1.1 'is taken out and sent back to the client apparatus 10 in the form included in the nak packet. By receiving the nak packet from the server device 20, the client device 10 receives the nak packet, and the IP address '10 .0.1.1 'included in the nak packet is sent to the youngest number side of the server device 20. It is acquired as the start IP address, and is stored as the start IP address of the valid range of the IP address as shown in the client device information 15 (sequence Seq11).

しかる後、クライアント装置10は、先頭IPアドレスとして保存したIPアドレスに‘1’を加算した‘10.0.1.2’のIPアドレスを含むRequestパケットをサーバ装置20に送信する。該Requestパケットを受信したサーバ装置20は、該Requestパケットに含まれているIPアドレス‘10.0.1.2’が払い出し範囲内のIPアドレスであると判定して、ackパケットを応答パケットとして返送する。したがって、クライアント装置10は、クライアント装置情報15に示すように、該Requestパケットに含めて送信した‘10.0.1.2’のIPアドレスを、有効範囲内のIPアドレスとして、保存する(シーケンスSeq12)。   After that, the client device 10 transmits, to the server device 20, a Request packet including the '10 .0.1.2 'IP address obtained by adding' 1 'to the IP address stored as the leading IP address. The server device 20 that has received the Request packet determines that the IP address '10 .0.1.2 'included in the Request packet is an IP address within the delivery range, and uses the ack packet as a response packet. I will return it. Therefore, as indicated by the client device information 15, the client device 10 stores the IP address of “10.0.1.2” included in the Request packet and transmitted as an IP address within the effective range (sequence Seq 12).

以降、クライアント装置10は、直前に送信したRequestパケットに含まれているIPアドレスに順次‘1’ずつ加算したIPアドレスを算出して、次のRequestパケットに含む形式で、サーバ装置20に対して送信するという動作を、サーバ装置20からnakパケットまたはrejectパケットの応答パケットを受信するまで繰り返す。その結果、クライアント装置情報15に示すように、有効範囲に含まれるIPアドレスとして、サーバ装置20が払い出すことが可能なIPアドレスの払い出し範囲としていた‘10.0.1.1’〜 ‘10.0.1.6’までの6個のIPアドレスが順次保存されることになる。   Thereafter, the client device 10 calculates an IP address obtained by sequentially adding '1' to each IP address included in the Request packet transmitted immediately before, and transmits the IP address to the server device 20 in a format included in the next Request packet. The operation of transmitting is repeated until a response packet of nak packet or reject packet is received from the server device 20. As a result, as shown in the client device information 15, as the IP address included in the effective range, the delivery range of the IP address that can be delivered by the server device 20 is '10 .0.1.1 'to '10. Six IP addresses up to .0.1.6 'will be stored sequentially.

つまり、図3のシーケンスSeq13に示すように、クライアント装置10が、直前に送信したRequestパケットに含まれているIPアドレス‘10.0.1.6’に‘1’を加算した‘10.0.1.7’のIPアドレスを含むRequestパケットをサーバ装置20に送信すると、該Requestパケットを受信したサーバ装置20は、該Requestパケットに含まれているIPアドレス‘10.0.1.7’が払い出し範囲外のIPアドレスであると判定して、nakパケットを応答パケットとして返送してくる(シーケンスSeq13)。したがって、クライアント装置10の有効範囲取得部13は、直前に送信したIPアドレス‘10.0.1.6’が有効範囲の最終のIPアドレスであると判定して、クライアント装置情報15に示すように、‘10.0.1.1’〜 ‘10.0.1.6’までの6個のIPアドレスを使用可能な有効範囲として取得する(シーケンスSeq14)。   That is, as shown in sequence Seq13 of FIG. 3, the client apparatus 10 adds' 1 'to IP address '10 .0.1.6' included in the Request packet transmitted immediately before '10 .0. When a Request packet including the IP address of .1.7 'is transmitted to the server device 20, the server device 20 that has received the Request packet receives the IP address '10 .0.1.7' included in the Request packet. Is determined to be an IP address outside the payout range, and an nak packet is returned as a response packet (sequence Seq13). Therefore, as shown in the client device information 15, the valid range acquisition unit 13 of the client device 10 determines that the IP address “10.0.1.6” transmitted immediately before is the final IP address of the valid range. Then, six IP addresses from '10 .0.1.1 'to '10 .0.1.6' are obtained as usable usable ranges (sequence Seq14).

そして、クライアント装置10の接続用情報設定部14は、取得したIPアドレスの有効範囲‘10.0.1.1’〜 ‘10.0.1.6’に基づいて、クライアント装置情報15に示すように、サブネットマスク‘255.255.255.248’(つまり、2進数表示で下位3ビットのみが‘0’で、それ以外の29ビットは全て‘1’)を算出して保存する。さらに、クライアント装置10の接続用情報設定部14は、有効範囲‘10.0.1.1’〜 ‘10.0.1.6’のいずれか任意のIPアドレス(例えば‘10.0.1.1’)を選択する(シーケンスSeq15)。しかる後、クライアント装置10の接続用情報設定部14は、シーケンスSeq15において算出したサブネットマスクと選択したIPアドレスとを、接続用情報として、LANインタフェース12に設定する(シーケンスSeq16)。   Then, the connection information setting unit 14 of the client device 10 displays in the client device information 15 based on the acquired valid range “10.0.1.1” to “10.0.1.6” of the acquired IP address. As such, the subnet mask '255.255.255.248' (that is, only the lower 3 bits in binary notation are '0', all other 29 bits are '1') is calculated and stored. Furthermore, the connection information setting unit 14 of the client device 10 may set any IP address within the valid range of “10.0.1.1” to “10.0.1.6” (for example, “10.0.1”. 1 ') is selected (sequence Seq15). Thereafter, the connection information setting unit 14 of the client device 10 sets the subnet mask calculated in the sequence Seq15 and the selected IP address in the LAN interface 12 as the connection information (sequence Seq16).

以上に説明したように、本第1の動作例においては、PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置10は、まず、利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置20との間で‘all0’のIPアドレスを用いたIPCP(Internet Protocol Control Protocol)シーケンスを行うことによって、有効なIPアドレスとして利用可能な先頭IPアドレスを取得した後、該先頭IPアドレスに‘1’ずつ順次加算したIPアドレスを用いたIPCPシーケンスを繰り返し実施することによって得られた、サーバ装置20が払い出すIPアドレスの範囲を、利用可能なIPアドレスの有効範囲として取得する。   As described above, in the first operation example, the client device 10 performing an operation conforming to the PPPoE (Point-to-Point Protocol over Ethernet) protocol first sets and registers an available IP address in advance. By performing an IPCP (Internet Protocol Control Protocol) sequence using an IP address of 'all0' with the server apparatus 20 in operation, the first IP address usable as a valid IP address is obtained, Acquire the IP address range to be paid out by the server device 20, which is obtained by repeatedly executing the IPCP sequence using the IP address obtained by sequentially adding '1' to the IP address, as the valid range of the usable IP address. .

さらに、クライアント装置10は、取得した該有効範囲に基づいて、サブネットマスクを算出するとともに、該有効範囲内のいずれかのIPアドレスを任意に選択する。そして、クライアント装置10は、算出したサブネットマスクと任意に選択したIPアドレスとを、接続用情報として、当該クライアント装置10のLANインタフェース12に設定する、という接続用情報自動設定方式を実現している。   Furthermore, the client device 10 calculates a subnet mask based on the acquired effective range, and arbitrarily selects any IP address within the effective range. The client device 10 implements a connection information automatic setting method in which the calculated subnet mask and an arbitrarily selected IP address are set as the connection information in the LAN interface 12 of the client device 10. .

(本発明の実施形態の第2の動作例の説明)
次に、図1に示したネットワークシステムの具体的な動作として第2の動作例について図4を参照しながら説明する。図4は、図1に示したネットワークシステムの具体的な動作の図3の第1の動作例とは異なる第2の動作例を説明するためのシーケンスチャートである。本第2の動作例においては、前記第1の動作例に比して、IPCPシーケンスの繰り返し回数を低減して、有効範囲における接続用情報(サブネットマスクおよびIPアドレス)を設定するまでの時間の短縮を図ることが可能になる動作例を示している。
(Description of Second Operation Example of the Embodiment of the Present Invention)
Next, as a specific operation of the network system shown in FIG. 1, a second operation example will be described with reference to FIG. FIG. 4 is a sequence chart for explaining a second operation example different from the first operation example of FIG. 3 of the specific operation of the network system shown in FIG. In the second operation example, the number of repetitions of the IPCP sequence is reduced compared to the first operation example, and the time for setting connection information (subnet mask and IP address) in the effective range is reduced. The example of operation which can aim at shortening is shown.

すなわち、本第2の動作例においては、第1の動作例とは異なり、IPCPシーケンスの繰り返し動作として、クライアント装置10は、有効範囲として最初に求めた先頭IPアドレスに‘1’ずつ順次加算したIPアドレスに関する使用可否をサーバ装置20に対して確認してIPアドレスの有効範囲をまず取得するという動作を行う代わりに、サブネットマスク算出用として利用可能なIPアドレスのホスト部の領域を求めるための動作をまず行う。具体的には、有効範囲として最初に求めた先頭IPアドレスの最下位ビットを‘1’に上書き設定した状態から該最下位ビットの‘1’を順次左方向に1ビットずつシフトしたIPアドレスに関する使用可否をサーバ装置20に対して確認するという動作を行う。なお、図4においては、サーバ装置情報25Aに示すように、サーバ装置20が払い出すことが可能なIPアドレスの払い出し範囲が、‘10.0.2.1’〜 ‘10.0.2.6’までの6個のIPアドレスである場合を例示している。   That is, in the second operation example, unlike the first operation example, the client device 10 sequentially adds '1' to the first IP address obtained as the effective range as the repetitive operation of the IPCP sequence. Instead of confirming the availability of the IP address with respect to the server device 20 and acquiring the effective range of the IP address first, it is for finding the host part area of the IP address that can be used for subnet mask calculation. Do the operation first. More specifically, it relates to an IP address obtained by sequentially shifting the least significant bit “1” to the left one bit at a time from the state where the least significant bit of the first IP address obtained first as a valid range is overwritten and set to “1”. The operation of confirming the availability to the server device 20 is performed. In FIG. 4, as indicated by the server device information 25A, the delivery range of the IP address that can be delivered by the server device 20 is '10 .0.2.1 'to '10 .0.2. The case of six IP addresses up to 6 'is illustrated.

図4のシーケンスチャートにおいて、クライアント装置10は、PPPoE規定のLANに接続しようとする際に、利用可能なIPアドレスをあらかじめ登録しているサーバ装置20にアクセスして、利用可能なIPアドレスを取得するためのIPCPシーケンスとして、まず、図3の場合と同様、IPCPプロトコルに準拠したRequestパケット(IPアドレス‘all0’すなわち‘0.0.0.0’を含む)を、サーバ装置20に送信した結果として、該サーバ装置20から応答パケットとして返送されてきたnakパケットに含まれているIPアドレス‘10.0.2.1’を、サーバ装置20が払い出した最若番側の先頭IPアドレスとして取得して、IPアドレスの有効範囲の先頭IPアドレスとして保存する(シーケンスSeq21)。   In the sequence chart of FIG. 4, when trying to connect to a LAN specified by PPPoE, the client device 10 accesses the server device 20 in which the available IP address is registered in advance, and acquires the available IP address. First, as in the case of FIG. 3, a Request packet (including the IP address 'all0', that is, '0.0.0.0') conforming to the IPCP protocol is transmitted to the server apparatus 20 as an IPCP sequence for As a result, the IP address '10 .0.2.1 'included in the nak packet returned as a response packet from the server device 20 is taken as the head IP address on the lowest number side which the server device 20 has paid out. Acquire and save as the first IP address in the valid range of the IP address (sequence Seq21) .

しかる後、クライアント装置10は、先頭IPアドレスとして保存したIPアドレスの最下位ビットを‘1’に上書きする(なお、本第2の動作例の場合、取得した先頭IPアドレスが‘10.0.2.1’であり、最下位ビットが偶々‘1’になっている)。そして、クライアント装置10は、該最下位ビットの‘1’を1ビット左方向にシフトさせた‘10.0.2.2’ のIPアドレス(つまりIPアドレスのホスト部の領域が下位2ビットの場合を意味するIPアドレス)を含むRequestパケットをサーバ装置20に送信する。該Requestパケットを受信したサーバ装置20は、該Requestパケットに含まれているIPアドレス‘10.0.2.2’が払い出し範囲内のIPアドレスであると判定して、ackパケットを応答パケットとして返送する。したがって、クライアント装置10は、該Requestパケットに含めて送信した‘10.0.2.2’のIPアドレスは、有効範囲内のIPアドレスとして、保存するとともに、該IPアドレスの下位2ビットは有効範囲のIPアドレスのホスト部の領域を形成することが可能であるものと判定する(シーケンスSeq22)。   After that, the client device 10 overwrites the least significant bit of the IP address stored as the leading IP address to “1” (in the case of the second operation example, the acquired leading IP address is “10.0. 0”. 2.1 ', and the least significant bit is even' 1 '). Then, the client device 10 shifts the least significant bit “1” to the left by one bit to the “10.0.2.2” IP address (that is, the area of the host portion of the IP address is the lower two bits). A Request packet including an IP address (meaning) is sent to the server device 20. The server device 20 that has received the Request packet determines that the IP address '10 .0.2.2 'included in the Request packet is an IP address within the delivery range, and uses the ack packet as a response packet. I will return it. Therefore, the client apparatus 10 stores the IP address of “10.0.2.2” included in the Request packet as an IP address within the valid range, and the lower 2 bits of the IP address are valid. It is determined that it is possible to form an area of the host unit of the range of IP addresses (sequence Seq22).

以降、クライアント装置10は、直前に送信したRequestパケットに含まれているIPアドレスの下位側に設定した‘1’を順次1ビットずつ左方向にシフトしたIPアドレスを算出して、次のRequestパケットに含む形式で、サーバ装置20に対して送信するという動作を、サーバ装置20からnakパケットまたはrejectパケットの応答パケットを受信するまで繰り返す。   Thereafter, the client device 10 calculates an IP address by shifting “1” set in the low order side of the IP address included in the Request packet transmitted immediately before to the left one bit sequentially in the next Request packet The operation of transmitting to the server device 20 is repeated until the response packet of the nak packet or the reject packet is received from the server device 20 in the format included in

つまり、まず、直前のシーケンスSeq22において送信したRequestパケットに含まれている‘10.0.2.2’のIPアドレスの下位側の第2ビット目に設定されている‘1’を左方向に1ビットシフトした‘10.0.2.4’のIPアドレス(つまりIPアドレスのホスト部の領域が下位3ビットの場合を意味するIPアドレス)を含むRequestパケットをサーバ装置20に送信する。該Requestパケットを受信したサーバ装置20は、該Requestパケットに含まれているIPアドレス‘10.0.2.4’が払い出し範囲内のIPアドレスであると判定して、ackパケットを応答パケットとして返送する。したがって、クライアント装置10は、該Requestパケットに含めて送信した‘10.0.2.4’のIPアドレスは、有効範囲内のIPアドレスとして、保存するとともに、該IPアドレスの下位3ビットは有効範囲のIPアドレスのホスト部の領域を形成することが可能であるものと判定する(シーケンスSeq23)。   That is, first, the '1' set in the second bit of the lower side of the '10 .0.2.2 'IP address included in the Request packet transmitted in the immediately preceding sequence Seq22 is shifted leftward A Request packet including the '10 .0.2.4 'IP address (that is, an IP address meaning that the area of the host portion of the IP address is the lower 3 bits) shifted by 1 bit is transmitted to the server device 20. The server device 20 that has received the Request packet determines that the IP address '10 .0.2.4 'included in the Request packet is an IP address within the delivery range, and uses the ack packet as a response packet. I will return it. Therefore, the client apparatus 10 stores the IP address of “10.0.2.4” included in the Request packet as an IP address within the valid range, and the lower 3 bits of the IP address are valid. It is determined that it is possible to form an area of the host unit of the range IP address (sequence Seq23).

しかる後、クライアント装置10は、さらにIPCPシーケンスを繰り返し、直前のシーケンスSeq23において送信したRequestパケットに含まれている‘10.0.2.4’のIPアドレスの下位側の第3ビット目に設定されている‘1’を左方向に1ビットシフトした‘10.0.2.8’のIPアドレス(つまりIPアドレスのホスト部の領域が下位4ビットの場合を意味するIPアドレス)を含むRequestパケットをサーバ装置20に送信する。該Requestパケットを受信したサーバ装置20は、今回の該Requestパケットに含まれているIPアドレス‘10.0.2.8’は払い出し範囲内のIPアドレスには含まれていなく、利用することができないIPアドレスであると判定して、nakパケットを応答パケットとして返送する。その結果、クライアント装置10は、IPアドレスの下位4ビットの場合は有効範囲のIPアドレスのホスト部の領域からは逸脱してしまうものと判定して、直前のシーケンスSeq23におけるIPアドレスの下位3ビットまでがホスト部の領域であると判定する(シーケンスSeq24)。   After that, the client device 10 further repeats the IPCP sequence, and sets the third bit of the lower side of the IP address of “10.0.2.4” included in the Request packet transmitted in the previous sequence Seq23. Request that includes the IP address of '10 .0.2.8 '(that is, the IP address that means when the area of the host part of the IP address is the lower 4 bits) shifted 1 bit of' 1 'to the left by 1 The packet is transmitted to the server device 20. The server device 20 that has received the Request packet can use the IP address '10 .0.2.8 'included in the Request packet this time because it is not included in the IP address within the delivery range. It is determined that the IP address can not be obtained, and the nak packet is returned as a response packet. As a result, in the case of the lower 4 bits of the IP address, the client device 10 determines that it deviates from the area of the host section of the IP address of the effective range, and the lower 3 bits of the IP address in the previous sequence Seq23 It is determined that up to the area of the host unit (sequence Seq24).

したがって、クライアント装置10の有効範囲取得部13は、IPアドレスの下位3ビットまでがホスト部の領域であるとの判定結果に基づいて、クライアント装置情報15Aのサブネットマスクに示すように、サブネットマスク‘255.255.255.248’(つまり、2進数表示で下位3ビットのみが‘0’で、それ以外の29ビットは全て‘1’)を算出して保存する。さらに、クライアント装置10の接続用情報設定部14は、クライアント装置情報15Aの有効範囲に示すように、有効範囲のIPアドレスを、最初に保存した先頭IPアドレス‘10.0.2.1’から有効範囲のIPアドレスとして最後に保存したIPアドレス‘10.0.2.4’までの4個のIPアドレスを、有効範囲のIPアドレスとして取得する。そして、クライアント装置10の接続用情報設定部14は、有効範囲‘10.0.2.1’〜 ‘10.0.2.4’のいずれか任意のIPアドレス(例えば‘10.0.2.1’)を選択する(シーケンスSeq25)。   Therefore, based on the determination result that the lower 3 bits of the IP address are the area of the host unit, the valid range acquisition unit 13 of the client device 10 displays the subnet mask 'as shown in the subnet mask of the client device information 15A. 255.255.255.248 (in other words, only the lower 3 bits in binary notation are '0', all other 29 bits are '1') and stored. Furthermore, as indicated by the valid range of the client device information 15A, the connection information setting unit 14 of the client device 10 starts with the first IP address '10 .0.2.1 'of the IP address of the valid range stored. The four IP addresses up to the IP address '10 .0.2.4 'last saved as the IP address of the effective range are acquired as the IP address of the effective range. Then, the connection information setting unit 14 of the client device 10 has any IP address in the valid range of “10.0.2.1” to “10.0.2.4” (for example, “10.0.2”. 1 ') is selected (sequence Seq 25).

ここで、図4のサーバ装置情報25Aに示すように、6個のIPアドレス払い出し範囲が設定されていた場合、図3に示した第1の動作例の場合には、サーバ装置20が払い出すことが可能な6個のIPアドレス全てを取得するまIPCPシーケンスを繰り返すので、利用可能な先頭IPアドレスを取得した後におけるIPCPシーケンスの繰り返し回数は6回になるが、図4に示した第2の動作例においては、利用可能な先頭IPアドレスを取得した後におけるIPCPシーケンスの繰り返し回数を、シーケンスSeq22,23,24の3回で終了させることができるが、第1の実施例に比し、半分の繰り返し回数に減少させることができる。つまり、第2の動作例におけるIPCPシーケンスの繰り返し回数は、サーバ装置20が払い出すことが可能なIPアドレスの個数が多くなればなるほど、第1の動作例の場合に比して、幾何級数的に減少させることができ、接続用情報(サブネットマスクおよびIPアドレス)を設定するまでの時間を大幅に短縮することができる。   Here, as shown in the server apparatus information 25A of FIG. 4, when six IP address delivery ranges are set, in the case of the first operation example shown in FIG. 3, the server apparatus 20 delivers. Since the IPCP sequence is repeated until all six possible IP addresses are acquired, the number of repetitions of the IPCP sequence after acquiring the available first IP address is six, but the second shown in FIG. In the operation example, the number of repetitions of the IPCP sequence after obtaining the available top IP address can be ended by three times of the sequences Seq22, 23, 24 compared to the first embodiment, It can be reduced to half the number of repetitions. That is, the number of repetitions of the IPCP sequence in the second operation example is geometrically exponential compared to that in the first operation example as the number of IP addresses that the server device 20 can issue is increased. The time to set connection information (subnet mask and IP address) can be greatly reduced.

図4の説明に戻って、シーケンスSeq25の動作が終了すると、クライアント装置10の接続用情報設定部14は、シーケンスSeq25において算出したサブネットマスクと選択したIPアドレスとを、接続用情報として、LANインタフェース12に設定する(シーケンスSeq26)。   Returning to the explanation of FIG. 4, when the operation of sequence Seq 25 is completed, the connection information setting unit 14 of the client device 10 uses the subnet mask calculated in sequence Seq 25 and the selected IP address as the connection information, It is set to 12 (sequence Seq26).

以上に説明したように、本第2の動作例においては、PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置10は、まず、利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置20との間で‘all0’のIPアドレスを用いたIPCP(Internet Protocol Control Protocol)シーケンスを行うことによって、有効なIPアドレスとして利用可能な先頭IPアドレスを取得した後、該先頭IPアドレスの最下位のビットに上書き設定した‘1’を左方向に1ビットずつ順次シフトしたIPアドレスを用いたIPCPシーケンスを繰り返し実施することによって得られた、サーバ装置20が払い出すIPアドレスの範囲に基づいて、利用可能なIPアドレスのホスト部分の領域(最下位のビットからのビット数)を取得する。   As described above, in the second operation example, the client device 10 that operates in accordance with the PPPoE (Point-to-Point Protocol over Ethernet) protocol first sets and registers available IP addresses in advance. By performing an IPCP (Internet Protocol Control Protocol) sequence using an IP address of 'all0' with the server apparatus 20 in operation, the first IP address usable as a valid IP address is obtained, The IP address to be issued by the server device 20 is obtained by repeatedly executing an IPCP sequence using an IP address that is sequentially shifted one bit at a time to the left by sequentially overwriting '1' set to overwrite the lowest bit of the IP address. Based on the range, the area of the host portion of the available IP address (from the least significant bit To get the Tsu quantity G).

そして、クライアント装置10は、取得した利用可能なIPアドレスのホスト部分の領域に基づいて、サブネットマスクを算出するとともに、さらに、最初に取得した先頭IPアドレスからサーバ装置20が払い出した最後のIPアドレスまでの範囲を、利用可能なIPアドレスの有効範囲として算出し、算出した該有効範囲内のいずれかのIPアドレスを任意に選択する。そして、クライアント装置10は、算出したサブネットマスクと任意に選択したIPアドレスとを、接続用情報として、当該クライアント装置10のLANインタフェース12に設定する、という接続用情報自動設定方式を実現している。   Then, the client device 10 calculates the subnet mask on the basis of the area of the acquired host portion of the available IP address, and further, the last IP address issued by the server device 20 from the first IP address acquired first. The range up to is calculated as the effective range of available IP addresses, and any IP address within the calculated effective range is arbitrarily selected. The client device 10 implements a connection information automatic setting method in which the calculated subnet mask and an arbitrarily selected IP address are set as the connection information in the LAN interface 12 of the client device 10. .

<本発明の実施形態の効果の説明>
以上に詳細に説明したように、本発明の実施形態においては、次のような効果を奏することができる。
<Description of the effect of the embodiment of the present invention>
As described above in detail, the following effects can be achieved in the embodiment of the present invention.

本実施形態においては、PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置10は、利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置20との間でIPCP(Internet Protocol Control Protocol)シーケンスを繰り返し実施することによって、利用可能なIPアドレスの有効範囲を取得し、取得した該IPアドレスの有効範囲に基づいて、サブネットマスクを算出するとともに、利用するIPアドレスを選択して、接続用情報として、当該クライアント装置10のLANインタフェース12に設定する、という接続用情報自動設定方式を実現している。   In the present embodiment, the client device 10 performing an operation conforming to the PPPoE (Point-to-Point Protocol over Ethernet) protocol performs IPCP with the server device 20 in which available IP addresses are set and registered in advance. By repeatedly executing the Internet Protocol Control Protocol) sequence, the effective range of the usable IP address is acquired, the subnet mask is calculated based on the acquired effective range of the IP address, and the IP address to be used is selected. Then, a connection information automatic setting method is implemented in which the LAN interface 12 of the client device 10 is set as the connection information.

而して、前記接続用情報(サブネットマスク、IPアドレスに関する情報)をクライアント装置10のLANインタフェース12に自動的に設定することができるので、前記接続用情報の設定に関する人為的ミスがなくなり、また、クライアント装置10への前記接続用情報の設定に要する時間を短縮することができる。   Since the connection information (subnet mask, information on IP address) can be automatically set in the LAN interface 12 of the client device 10, human error in setting the connection information is eliminated, and The time required for setting the connection information to the client device 10 can be shortened.

以上、本発明の好適な実施形態の構成を説明した。しかし、かかる実施形態は、本発明の単なる例示に過ぎず、何ら本発明を限定するものではないことに留意されたい。本発明の要旨を逸脱することなく、特定用途に応じて種々の変形変更が可能であることが、当業者には容易に理解できよう。   The configuration of the preferred embodiment of the present invention has been described above. However, it should be noted that such an embodiment is merely an example of the present invention and does not limit the present invention. It will be readily understood by those skilled in the art that various modifications and variations can be made according to a particular application without departing from the scope of the present invention.

10 クライアント装置
11 接続ポート
12 LANインタフェース
13 有効範囲取得部
14 接続用情報設定部
15 クライアント装置情報
15A クライアント装置情報
20 サーバ装置
25 サーバ装置情報
25A サーバ装置情報
30 端末
10 Client Device 11 Connection Port 12 LAN Interface 13 Valid Range Acquisition Unit 14 Connection Information Setting Unit 15 Client Device Information 15A Client Device Information 20 Server Device 25 Server Device Information 25A Server Device Information 30 Terminal

Claims (9)

PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置と利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置とを含むネットワークシステムにおいて、
前記クライアント装置が、前記サーバ装置との間でIPCP(Internet Protocol Control Protocol)シーケンスを繰り返し実施することによって、利用可能なIPアドレスの有効範囲を取得し、取得した該IPアドレスの有効範囲に基づいてサブネットマスクを算出するとともに、該IPアドレスの有効範囲内のいずれか任意のIPアドレスを選択して、接続用情報として、当該クライアント装置に設定する手段を
有することを特徴とするネットワークシステム。
In a network system including a client device operating according to a PPPoE (Point-to-Point Protocol over Ethernet) protocol and a server device in which an available IP address is registered in advance.
The client device acquires an effective range of an available IP address by repeatedly executing an IPCP (Internet Protocol Control Protocol) sequence with the server device, and based on the acquired effective range of the IP address. A network system comprising means for calculating a subnet mask and selecting any arbitrary IP address within the valid range of the IP address, and setting it as the connection information in the client device.
前記クライアント装置が、前記サーバ装置との間でIPCPシーケンスを繰り返し実施する際に、
まず、前記サーバ装置との間で‘all0’のIPアドレスを用いたIPCPシーケンスを行うことによって、利用可能な先頭IPアドレスを取得した後、該先頭IPアドレスに‘1’ずつ順次加算したIPアドレスを用いたIPCPシーケンスを繰り返し実施することによって得られた、前記サーバ装置が払い出すIPアドレスの範囲を、利用可能なIPアドレスの有効範囲として取得する
ことを特徴とする請求項1に記載のネットワークシステム。
When the client device repeatedly executes an IPCP sequence with the server device,
First, an IPCP sequence using an IP address of 'all0' is performed with the server apparatus to obtain an available start IP address, and then an IP address obtained by sequentially adding '1' to the start IP address. The network according to claim 1, characterized in that the range of the IP address issued by the server device, which is obtained by repeatedly performing the IPCP sequence using the IP address, is acquired as the effective range of the available IP address. system.
前記クライアント装置が、前記サーバ装置との間でIPCPシーケンスを繰り返し実施する際に、
まず、前記サーバ装置との間で‘all0’のIPアドレスを用いたIPCPシーケンスを行うことによって、利用可能な先頭IPアドレスを取得した後、該先頭IPアドレスの最下位のビットに上書き設定した‘1’を左方向に1ビットずつ順次シフトしたIPアドレスを用いたIPCPシーケンスを繰り返し実施することによって得られた、前記サーバ装置が払い出すIPアドレスの範囲に基づいて、利用可能なIPアドレスのホスト部分の領域を取得することにより、利用可能なIPアドレスの有効範囲を算出して取得する
ことを特徴とする請求項1に記載のネットワークシステム。
When the client device repeatedly executes an IPCP sequence with the server device,
First, after performing an IPCP sequence using an IP address of 'all0' with the server apparatus, an available start IP address is obtained, and then the least significant bit of the start IP address is overwritten and set. A host of available IP addresses based on a range of IP addresses to be issued by the server device, which is obtained by repetitively executing an IPCP sequence using an IP address in which 1 'is sequentially shifted to the left one bit at a time sequentially The network system according to claim 1, wherein the effective range of the available IP address is calculated and acquired by acquiring the area of the part.
PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置と利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置とを含むネットワークシステムにおいて、前記クライアント装置に接続用情報を設定する接続用情報設定方法であって、
前記クライアント装置が、前記サーバ装置との間でIPCP(Internet Protocol Control Protocol)シーケンスを繰り返し実施することによって、利用可能なIPアドレスの有効範囲を取得し、取得した該IPアドレスの有効範囲に基づいてサブネットマスクを算出するとともに、該IPアドレスの有効範囲内のいずれか任意のIPアドレスを選択して、前記接続用情報として、当該クライアント装置に設定するステップを
有することを特徴とする接続用情報設定方法。
In a network system including a client device operating according to a PPPoE (Point-to-Point Protocol over Ethernet) protocol and a server device in which an available IP address is set and registered in advance, connection information is transmitted to the client device Connection information setting method to be set,
The client device acquires an effective range of an available IP address by repeatedly executing an IPCP (Internet Protocol Control Protocol) sequence with the server device, and based on the acquired effective range of the IP address. Setting a connection information setting step of calculating a subnet mask and selecting any arbitrary IP address within the effective range of the IP address and setting it as the connection information in the client device Method.
前記クライアント装置が、前記サーバ装置との間でIPCPシーケンスを繰り返し実施する際に、
まず、前記サーバ装置との間で‘all0’のIPアドレスを用いたIPCPシーケンスを行うことによって、利用可能な先頭IPアドレスを取得した後、該先頭IPアドレスに‘1’ずつ順次加算したIPアドレスを用いたIPCPシーケンスを繰り返し実施することによって得られた、前記サーバ装置が払い出すIPアドレスの範囲を、利用可能なIPアドレスの有効範囲として取得する
ことを特徴とする請求項4に記載の接続用情報設定方法。
When the client device repeatedly executes an IPCP sequence with the server device,
First, an IPCP sequence using an IP address of 'all0' is performed with the server apparatus to obtain an available start IP address, and then an IP address obtained by sequentially adding '1' to the start IP address. The connection according to claim 4, characterized in that the range of the IP address issued by the server device, which is obtained by repeatedly executing the IPCP sequence using the IP address, is acquired as the effective range of the available IP address. Information setting method.
前記クライアント装置が、前記サーバ装置との間でIPCPシーケンスを繰り返し実施する際に、
まず、前記サーバ装置との間で‘all0’のIPアドレスを用いたIPCPシーケンスを行うことによって、利用可能な先頭IPアドレスを取得した後、該先頭IPアドレスの最下位のビットに上書き設定した‘1’を左方向に1ビットずつ順次シフトしたIPアドレスを用いたIPCPシーケンスを繰り返し実施することによって得られた、前記サーバ装置が払い出すIPアドレスの範囲に基づいて、利用可能なIPアドレスのホスト部分の領域を取得することにより、利用可能なIPアドレスの有効範囲を算出して取得する
ことを特徴とする請求項4に記載の接続用情報設定方法。
When the client device repeatedly executes an IPCP sequence with the server device,
First, after performing an IPCP sequence using an IP address of 'all0' with the server apparatus, an available start IP address is obtained, and then the least significant bit of the start IP address is overwritten and set. A host of available IP addresses based on a range of IP addresses to be issued by the server device, which is obtained by repetitively executing an IPCP sequence using an IP address in which 1 'is sequentially shifted to the left one bit at a time sequentially The connection information setting method according to claim 4, wherein the effective range of the usable IP address is calculated and acquired by acquiring the area of the part.
PPPoE(Point-to-Point Protocol over Ethernet)プロトコルに準拠した動作を行うクライアント装置と利用可能なIPアドレスをあらかじめ設定登録しているサーバ装置とを含むネットワークシステムにおいて、前記クライアント装置に接続用情報を設定する処理をコンピュータによって実行する接続用情報設定プログラムであって、
前記クライアント装置が、前記サーバ装置との間でIPCP(Internet Protocol Control Protocol)シーケンスを繰り返し実施することによって、利用可能なIPアドレスの有効範囲を取得し、取得した該IPアドレスの有効範囲に基づいてサブネットマスクを算出するとともに、該IPアドレスの有効範囲内のいずれか任意のIPアドレスを選択して、前記接続用情報として、当該クライアント装置に設定する処理を
有することを特徴とする接続用情報設定プログラム。
In a network system including a client device operating according to a PPPoE (Point-to-Point Protocol over Ethernet) protocol and a server device in which an available IP address is set and registered in advance, connection information is transmitted to the client device A connection information setting program that causes a computer to execute setting processing, and
The client device acquires an effective range of an available IP address by repeatedly executing an IPCP (Internet Protocol Control Protocol) sequence with the server device, and based on the acquired effective range of the IP address. A connection information setting process characterized by calculating a subnet mask and selecting any IP address within the valid range of the IP address and setting it as the connection information in the client apparatus. program.
前記クライアント装置が、前記サーバ装置との間でIPCPシーケンスを繰り返し実施する際に、
まず、前記サーバ装置との間で‘all0’のIPアドレスを用いたIPCPシーケンスを行うことによって、利用可能な先頭IPアドレスを取得した後、該先頭IPアドレスに‘1’ずつ順次加算したIPアドレスを用いたIPCPシーケンスを繰り返し実施することによって得られた、前記サーバ装置が払い出すIPアドレスの範囲を、利用可能なIPアドレスの有効範囲として取得する
ことを特徴とする請求項7に記載の接続用情報設定プログラム。
When the client device repeatedly executes an IPCP sequence with the server device,
First, an IPCP sequence using an IP address of 'all0' is performed with the server apparatus to obtain an available start IP address, and then an IP address obtained by sequentially adding '1' to the start IP address. The connection according to claim 7, characterized in that the range of the IP address issued by the server device obtained by repeatedly executing the IPCP sequence using is acquired as the effective range of the available IP address. Information setting program.
前記クライアント装置が、前記サーバ装置との間でIPCPシーケンスを繰り返し実施する際に、
まず、前記サーバ装置との間で‘all0’のIPアドレスを用いたIPCPシーケンスを行うことによって、利用可能な先頭IPアドレスを取得した後、該先頭IPアドレスの最下位のビットに上書き設定した‘1’を左方向に1ビットずつ順次シフトしたIPアドレスを用いたIPCPシーケンスを繰り返し実施することによって得られた、前記サーバ装置が払い出すIPアドレスの範囲に基づいて、利用可能なIPアドレスのホスト部分の領域を取得することにより、利用可能なIPアドレスの有効範囲を算出して取得する
ことを特徴とする請求項7に記載の接続用情報設定プログラム。
When the client device repeatedly executes an IPCP sequence with the server device,
First, after performing an IPCP sequence using an IP address of 'all0' with the server apparatus, an available start IP address is obtained, and then the least significant bit of the start IP address is overwritten and set. A host of available IP addresses based on a range of IP addresses to be issued by the server device, which is obtained by repetitively executing an IPCP sequence using an IP address in which 1 'is sequentially shifted to the left one bit at a time sequentially The connection information setting program according to claim 7, wherein the effective range of the usable IP address is calculated and acquired by acquiring the partial area.
JP2017215457A 2017-11-08 2017-11-08 Network system, connection information setting method, and connection information setting program Active JP6652260B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017215457A JP6652260B2 (en) 2017-11-08 2017-11-08 Network system, connection information setting method, and connection information setting program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017215457A JP6652260B2 (en) 2017-11-08 2017-11-08 Network system, connection information setting method, and connection information setting program

Publications (2)

Publication Number Publication Date
JP2019087907A true JP2019087907A (en) 2019-06-06
JP6652260B2 JP6652260B2 (en) 2020-02-19

Family

ID=66763452

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017215457A Active JP6652260B2 (en) 2017-11-08 2017-11-08 Network system, connection information setting method, and connection information setting program

Country Status (1)

Country Link
JP (1) JP6652260B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004193845A (en) * 2002-12-10 2004-07-08 Hitachi Communication Technologies Ltd Ip compatible adaptor
JP2005055940A (en) * 2003-08-01 2005-03-03 Nippon Telegr & Teleph Corp <Ntt> Network apparatus automatic setting device and method, program, and recording medium
JP2005252578A (en) * 2004-03-03 2005-09-15 Fuji Xerox Co Ltd Network device and method and program for setting network information
JP2008028989A (en) * 2006-05-30 2008-02-07 Matsushita Electric Ind Co Ltd Communication equipment, method and program for controlling communication equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004193845A (en) * 2002-12-10 2004-07-08 Hitachi Communication Technologies Ltd Ip compatible adaptor
JP2005055940A (en) * 2003-08-01 2005-03-03 Nippon Telegr & Teleph Corp <Ntt> Network apparatus automatic setting device and method, program, and recording medium
JP2005252578A (en) * 2004-03-03 2005-09-15 Fuji Xerox Co Ltd Network device and method and program for setting network information
JP2008028989A (en) * 2006-05-30 2008-02-07 Matsushita Electric Ind Co Ltd Communication equipment, method and program for controlling communication equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
福永 勇二 YUJI FUKUNAGA: "Windows NT基礎の基礎 第9回", アスキーNT 第3巻 第7号 ASCII NETWORK TECHNOLOGY, vol. 第3巻, JPN6019050286, 1 July 1998 (1998-07-01), JP, pages 216 - 219, ISSN: 0004181075 *

Also Published As

Publication number Publication date
JP6652260B2 (en) 2020-02-19

Similar Documents

Publication Publication Date Title
JP5091162B2 (en) Discover network nodes and routable addresses
JP5820041B2 (en) ID automatic setting method in UARTTRing communication
US9154744B2 (en) Automatic configuration of connection from camera to video management server
KR101701158B1 (en) Method and system of providing remote access for device within home network
CN108650467A (en) Control method, control system and the camera system of camera
GB2462160A (en) A distributed server system includes a table indicating communication relationships between various service programs
CN104079571A (en) Method and device for recognizing Android simulator
US10521170B2 (en) Image forming apparatus configured to facilitate monitoring in a combined push-and-pull print system. print control system, and print control method
JP5607355B2 (en) Information processing apparatus and information processing apparatus control method
US9385990B2 (en) Relay server and relay communication system
JP2019087907A (en) Network system, connection information setting method, and connection information setting program
US20050265257A1 (en) Networking apparatus and method
JP2007243825A (en) Controller to which programmable controller is applied
JP4612427B2 (en) Firmware and download system and method for communication terminal and program thereof
TWI309941B (en) Out-of-band state machine
CN109274993B (en) Data transmission method and device
CN105528550A (en) Information display control method and apparatus
WO2016119257A1 (en) Method and device for acquiring bandwidth information
JP2005258632A (en) Conduction confirmation method of network storage device, and host computer
US9634987B2 (en) Obtaining a MAC address from an external source
KR20170052262A (en) Dynamic commands processing apparatus and method thereof
US10785285B2 (en) File uploading and downloading method based on a smart device
JP6579935B2 (en) Management apparatus, method and program
JP7395028B2 (en) Wireless equipment and air conditioning systems
CN106790325B (en) Method and system for accessing network equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190306

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191216

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200116

R150 Certificate of patent or registration of utility model

Ref document number: 6652260

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150