JP2001268095A - Network device, parameter setting method for the network device and storage medium - Google Patents

Network device, parameter setting method for the network device and storage medium

Info

Publication number
JP2001268095A
JP2001268095A JP2000080430A JP2000080430A JP2001268095A JP 2001268095 A JP2001268095 A JP 2001268095A JP 2000080430 A JP2000080430 A JP 2000080430A JP 2000080430 A JP2000080430 A JP 2000080430A JP 2001268095 A JP2001268095 A JP 2001268095A
Authority
JP
Japan
Prior art keywords
data
address
network
network device
code
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.)
Withdrawn
Application number
JP2000080430A
Other languages
Japanese (ja)
Inventor
Masahito Ochiai
将人 落合
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2000080430A priority Critical patent/JP2001268095A/en
Publication of JP2001268095A publication Critical patent/JP2001268095A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To relieve a load of network traffic by the DHCP protocol by storing an IP address acquired from a network server and using it continuously. SOLUTION: A DHCP packet is interpreted and the DHCP packet is configured on the basis of the interpretation. Data transmission reception is made with the network server on the basis of the configured DHCP packet and a validity of data received from the network server is discriminated (S1201). When the validity is infinite (S120-Yes), the data are stored in a memory (S1202-Yes, S1205), and a parameter for reconnection is set on the basis of the stored data in the case of the reconnection to the network.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はネットワークに接続
されるネットワークデバイスとそのデバイスのパラメー
タ設定方法、及びその方法をコンピュータで実行するた
めのプログラムを記憶した記憶媒体に関するものであ
る。
[0001] 1. Field of the Invention [0002] The present invention relates to a network device connected to a network, a parameter setting method for the device, and a storage medium storing a program for executing the method on a computer.

【0002】[0002]

【従来の技術】近年、コンピュータを相互に接続したロ
ーカルネットワーク(LAN)が普及しており、このよ
うなLANは、ビルのフロアやビル全体、地域、あるい
はさらに大きいエリアにわたって構築することができ
る。このようなネットワークにはさらに相互に接続さ
れ、世界的規模のネットワークにも接続することができ
る。こうした相互接続された各LANには、多様なハー
ドウエア相互接続技術と、いくつものネットワークプロ
トコルを持つ場合がある。
2. Description of the Related Art In recent years, a local network (LAN) in which computers are interconnected has become widespread, and such a LAN can be built on a building floor, the whole building, an area, or a larger area. Such networks are further interconnected and can be connected to global networks. Each such interconnected LAN may have a variety of hardware interconnect technologies and a number of network protocols.

【0003】このようなLANにおいて、その代表的な
ネットワークプロトコルにTCP/IPがある。
In such a LAN, TCP / IP is a typical network protocol.

【0004】TCP/IPは階層化されたネットワーク
プロトコル群で、ネットワーク層にIP(Internet Pro
tocol)やICMP(Internet Control Message Protoc
ol)、ARP(Address Resolusion Protocol)など、
トランスポート層にTCP(Transmission Control Pro
tocol)、UDP(User Datagram Protocol)といっ
た、標準化されたプロトコル群から成り立っている。
(各プロトコルの詳細やIPアドレス体系については、
「詳解TCP.IP」W. Richard Stevens=著/井上尚
司=監訳・橘康雄=訳ソフトバンク(株)発行1997
年3月31日初版発行を参照のこと。)TCP/IPプ
ロトコルでネットワーク通信を行う場合、IPアドレス
といわれるネットワーク上の論理アドレスを一意に決め
る必要がある。IPアドレスは32ビット(4バイト)
で構成されており、一般的に8ビットずつに区切って1
50.61.146.100(0×963d9264)
のように表記する。
[0004] TCP / IP is a group of hierarchical network protocols.
tocol) and ICMP (Internet Control Message Protoc)
ol), ARP (Address Resolusion Protocol), etc.
TCP (Transmission Control Pro)
tocol) and UDP (User Datagram Protocol).
(For details of each protocol and IP address system,
"Detailed Explanation TCP.IP" W. Richard Stevens = Author / Naoji Inoue = Translation, Yasuo Tachibana = Translation Softbank Corp. 1997
See the first edition issued March 31, 2012. When performing network communication using the TCP / IP protocol, it is necessary to uniquely determine a logical address on the network called an IP address. IP address is 32 bits (4 bytes)
, And is generally divided into 8 bits.
50.61.146.100 (0x963d9264)
Notation as follows.

【0005】こうしたIPアドレスをネットワークデバ
イスに設定するため、ネットワークデバイス機器では、
様々な試みが為されている。一般的にネットワークに接
続するコンピュータ端末の場合には、キーボードからの
入力で、IPアドレスをコンピュータに設定することが
可能である。キーボードを持たないようなネットワーク
端末の場合や、IPアドレスを一括で管理したい場合に
は、一般的に、DHCP(Dynamic Host Configuration
Protocol)やBOOTP、RARPといわれるプロト
コルを用いて、ネットワークデバイスが電源投入時にネ
ットワーク上のサーバからIPアドレスを獲得し、設定
する方法が用いられてきた。
[0005] In order to set such an IP address in a network device, a network device device requires:
Various attempts have been made. Generally, in the case of a computer terminal connected to a network, it is possible to set an IP address in the computer by inputting from a keyboard. In the case of a network terminal that does not have a keyboard, or when it is desired to manage IP addresses collectively, a DHCP (Dynamic Host Configuration) is generally used.
Protocol), BOOTP, and RARP, a method has been used in which a network device acquires an IP address from a server on a network when the power is turned on and sets the IP address.

【0006】この中でも、最近ではDHCPがより一般
的に用いられ、普及してきている。
[0006] Among them, recently, DHCP has been more commonly used and spread.

【0007】DHCPとはRFC2131で定義されて
いるプロトコルで、BOOTPプロトコルを拡張したプ
ロトコルである。
[0007] DHCP is a protocol defined by RFC2131 and is an extension of the BOOTP protocol.

【0008】一般的に、DHCPのクライアントとなる
ネットワークデバイスは電源投入後、DHCPのDiscov
erパケットを送出し、サーバを検出する。ネットワーク
にDHCPサーバが存在する場合には、そのサーバがD
HCPのDiscoverの応答パケットを返送する。
In general, a network device serving as a DHCP client is turned on after the power is turned on.
Send er packet to detect server. If there is a DHCP server on the network,
The HCP Discover response packet is returned.

【0009】ネットワークデバイスは、返送してきたサ
ーバに対し、IPアドレスを要求するRequestパケット
を送出する。サーバはその要求に対して、サーバが管理
しているIPアドレス群の中から使用していないIPア
ドレスをネットワークデバイスに期限付きで貸し出す。
ネットワークデバイスは、使用期限(リースタイム)付
きのIPアドレスを使用して、動作することになる。使
用期限が迫ってきた場合には、再びサーバに対して、I
Pアドレスの仕様延長を要求するRequestパケットを送
出する。サーバは問題なければ、また、新たな期限付き
でそのIPアドレスを貸し出す。クライアントであるネ
ットワークデバイスが電源遮断などによって、使用期限
を過ぎてもRequestパケットを送出してこない場合に
は、そのクライアントが使用していたIPアドレスは再
び使用可能と判断し、未仕様のIPアドレスとして、サ
ーバに登録される。
[0009] The network device sends a request packet requesting an IP address to the server that has returned. In response to the request, the server lends an unused IP address from the group of IP addresses managed by the server to the network device with a time limit.
The network device operates using the IP address with the expiration date (lease time). When the expiration date is approaching, the server is again notified
A request packet requesting the extension of the specification of the P address is transmitted. If OK, the server will lend its IP address with a new expiration date. If the client network device does not send a Request packet even after the expiration date due to power-off or the like, the IP address used by the client is determined to be usable again, and an unspecified IP address Is registered in the server.

【0010】また、クライアントであるネットワークデ
バイスは、電源投入毎に、サーバにIPアドレスの問い
合わせを行い、上記の手続きを行ってIPアドレスを獲
得することが、DHCPプロトコルを用いたネットワー
クデバイスのIPアドレス解決方法の概略である。ま
た、このときのIPアドレスの使用期限も分単位から、
無期限まで変更が可能となっている。
Each time the power is turned on, the network device, which is a client, inquires of the server about the IP address, and obtains the IP address by performing the above procedure. It is an outline of a solution. In addition, the expiration date of the IP address at this time also starts from
Changes can be made indefinitely.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、上記従
来例では、サーバの設定で、IPアドレスの使用期限を
無期限としても、ネットワークデバイスの電源が切断さ
れてしまうと、次にネットワークデバイスが立ち上がっ
たときに、再び、IPアドレスを獲得するためサーバに
アクセスする必要があるという課題がある。つまり、D
HCPによる通信においてはブロードキャストパケット
を多発するので、トラフィックに負荷をかけてしまうこ
とになる。
However, in the above conventional example, if the power of the network device is cut off even if the expiration date of the IP address is set to be indefinite in the server setting, the network device is started up next. Sometimes, there is a problem that it is necessary to access the server again to obtain an IP address. That is, D
In the communication by the HCP, since a large number of broadcast packets are generated, a load is imposed on the traffic.

【0012】[0012]

【課題を解決するための手段】本発明は上記課題に鑑み
てなされたものであり、DHCPによるIPアドレス解
決を行う場合、そのIPアドレスの使用期限が無期限に
指定された場合には、指定されたIPアドレスを記憶
し、電源が遮断された場合には、DHCPプロトコルを
用いることなく、先に与えられ記憶しているIPアドレ
スで立ち上がるようなネットワークデバイス,そのネッ
トワークデバイスのパラメータ設定方法、及びその方法
をコンピュータで実行するためのプログラムコードを記
憶した記憶媒体を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and when performing IP address resolution by DHCP, if the expiration date of the IP address is specified indefinitely, the IP address is designated. A network device that stores the IP address provided and starts up with the previously given and stored IP address without using the DHCP protocol when the power is shut off, a parameter setting method for the network device, and It is an object of the present invention to provide a storage medium storing a program code for executing the method on a computer.

【0013】上記課題を解決し、その目的を達成するた
めに、本発明にかかるネットワークデバイス及びその方
法等は主として以下の構成からなることを特徴とする。
In order to solve the above problems and achieve the object, a network device and a method thereof according to the present invention are mainly characterized by the following configuration.

【0014】すなわち、ネットワークデバイスはDHC
Pパケットを解釈する解釈手段と、前記解釈手段の解釈
に基づき、DHCPパケットを構成する手段と、前記構
成されたDHCPパケットに基づき、ネットワークサー
バとの間でデータの送受を行なう送受手段と、前記送受
手段により、前記ネットワークサーバから受信したデー
タの使用可能期限を判断する判断手段と、前記判断手段
により、前記データの使用可能期限が無期限の場合は、
該データを記憶する記憶手段と、ネットワークへの再接
続の際、前記記憶手段によって記憶されたデータに基づ
き、再接続のためのパラメータを設定する設定手段と、
を備えることを特徴とする。
That is, the network device is a DHC
Interpreting means for interpreting the P packet, means for configuring a DHCP packet based on the interpretation of the interpreting means, transmitting and receiving means for transmitting and receiving data to and from a network server based on the configured DHCP packet, By sending / receiving means, a judging means for judging the expiration date of the data received from the network server, and by the judging means, when the expiration date of the data is indefinite,
Storage means for storing the data, and setting means for setting parameters for reconnection based on the data stored by the storage means when reconnecting to a network,
It is characterized by having.

【0015】また、ネットワークデバイスのパラメータ
設定方法は、DHCPパケットを解釈する解釈工程と、
前記解釈手段の解釈に基づき、DHCPパケットを構成
する工程と、前記構成されたDHCPパケットに基づ
き、ネットワークサーバとの間でデータの送受を行なう
送受工程と、前記送受工程により、前記ネットワークサ
ーバから受信したデータの使用可能期限を判断する判断
工程と、前記判断工程により、前記データの使用可能期
限が無期限の場合は、該データを記憶する記憶工程と、
ネットワークへの再接続の際、前記記憶されたデータに
基づき、再接続のためのパラメータを設定する設定工程
と、を備えることを特徴とする。
[0015] Also, the method for setting parameters of a network device includes an interpreting step of interpreting a DHCP packet;
A step of forming a DHCP packet based on the interpretation of the interpreting means, a step of transmitting / receiving data to / from a network server based on the configured DHCP packet, and a step of receiving / receiving data from the network server by the step of transmitting / receiving. A judging step of judging the expiration date of the data obtained, and, if the expiration date of the data is indefinite, a storing step of storing the data,
And setting a parameter for reconnection based on the stored data when reconnecting to the network.

【0016】また、ネットワークデバイスのパラメータ
設定方法をコンピュータにより実行するためのプログラ
ムコードを格納した記憶媒体であって、該プログラムコ
ードが、DHCPパケットを解釈する解釈工程のコード
と、前記解釈手段の解釈に基づき、DHCPパケットを
構成する工程のコードと、前記構成されたDHCPパケ
ットに基づき、ネットワークサーバとの間でデータの送
受を行なう送受工程のコードと、前記送受工程のコード
により、前記ネットワークサーバから受信したデータの
使用可能期限を判断する判断工程のコードと、前記判断
工程により、前記データの使用可能期限が無期限の場合
は、該データを記憶する工程のコードと、ネットワーク
への再接続の際、前記記憶されたデータに基づき、再接
続のためのパラメータを設定する設定工程のコードと、
を備えることを特徴とする。
Also, the present invention is a storage medium storing a program code for executing a parameter setting method of a network device by a computer, wherein the program code includes a code of an interpretation step for interpreting a DHCP packet and an interpretation of the interpretation means. A code of a step of configuring a DHCP packet, a code of a transmission / reception step of transmitting / receiving data to / from a network server based on the configured DHCP packet, and a code of the transmission / reception step. A code of a determining step of determining the expiration date of the received data, and, if the expiration date of the data is indefinite, by the determining step, a code of a step of storing the data; At this time, based on the stored data, And code setting step of setting the data,
It is characterized by having.

【0017】[0017]

【発明の実施の形態】以下、添付の図面を参照して本発
明の実施形態を詳細に説明する。図1は、本実施形態の
ネットワークデバイス装置として、ネットワークボード
をプリンタに接続した構成をあらわす概略図である。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. FIG. 1 is a schematic diagram showing a configuration in which a network board is connected to a printer as the network device of the present embodiment.

【0018】101はネットワークボードで、ローカル
エリアネットワーク(LAN)100に接続されるネッ
トワークデバイスである。
Reference numeral 101 denotes a network board, which is a network device connected to the local area network (LAN) 100.

【0019】LANへの接続はRF−45を持つ10B
ase−Tなどのインターフェースを介して接続されて
いる。パーソナルコンピュータ(PC)103もまたL
AN100に接続されており、PC103はLAN10
0を介してネットワークボード101と通信することが
可能である。PC103ではDHCPサーバプログラム
が動作しており、IPアドレスを管理している。ネット
ワークデバイス101等のDHCP要求パケットに応じ
て、PC103はDHCP応答パケットを返送する。
Connection to LAN is 10B with RF-45
They are connected via an interface such as case-T. The personal computer (PC) 103 is also L
PC 103 is connected to LAN 10
0 can communicate with the network board 101. In the PC 103, a DHCP server program is operating, and manages an IP address. In response to a DHCP request packet from the network device 101 or the like, the PC 103 returns a DHCP response packet.

【0020】通常、LAN100などのLAN網は、一
つの建物内の一つの階、または、連続した複数の階での
ユーザグループといった、幾分ローカルなグループに対
してサービスを提供する。例えば、ユーザが他の建物に
いる場合などでは、ユーザ間の距離に応じて、ワイドエ
リアネットワーク(WAN)を用いてもよい。WANは
基本的には、いくつかのLANを高速度サービス総合デ
ジタルネットワーク(ISDN)電話などの高速度デジ
タルラインで接続して形成された集合体である。
Typically, a LAN network such as LAN 100 provides services to a somewhat local group, such as a user group on one floor in a building or on multiple consecutive floors. For example, when the user is in another building, a wide area network (WAN) may be used according to the distance between the users. A WAN is basically an aggregation formed by connecting several LANs with a high-speed digital line such as an integrated high-speed service digital network (ISDN) telephone.

【0021】図2は、本実施形態におけるネットワーク
ボード101の内部構成の概略を表すブロック図であ
る。
FIG. 2 is a block diagram showing an outline of the internal configuration of the network board 101 in the present embodiment.

【0022】ネットワークボード101はCPU20
1、および、本実施形態のプログラムが格納されている
ROM202、RAM203、拡張I/F制御部20
4、各種設定パラメータを保存しておくNVRAM20
5、ネットワークと通信を行うネットワークI/F制御
部206、タイマ207これらが接続しているバス20
8からなる。
The network board 101 is a CPU 20
1, a ROM 202, a RAM 203, and an extended I / F control unit 20 storing the program of the present embodiment
4. NVRAM 20 for storing various setting parameters
5. Network I / F control unit 206 for communicating with the network, timer 207, bus 20 to which these are connected
Consists of eight.

【0023】ネットワークボード101は拡張I/F制
御部204を介して、プリンタ102接続している。拡
張I/F制御部204が制御可能であるデバイスであれ
ば、プリンタのみならず、ファクシミリ、コピア(登録
商標)などにも接続が可能で、様々なデバイスをネット
ワーク接続することができるものである。
The network board 101 is connected to the printer 102 via the extension I / F control unit 204. Any device that can be controlled by the extended I / F control unit 204 can be connected not only to a printer but also to a facsimile, a copier (registered trademark), or the like, and can connect various devices to a network. .

【0024】図3は本実施形態におけるネットワークボ
ード101のプログラム構成を示す概略図である。
FIG. 3 is a schematic diagram showing a program configuration of the network board 101 in the present embodiment.

【0025】301はプリンタI/Fドライバモジュー
ルで拡張I/F制御部204を制御して、プリンタとデ
ータの送受信を行うモジュールである。302は印刷プ
ロトコルモジュールでネットワーク上の汎用印刷プロト
コルをサポートするモジュールである。303はネット
ワークプロトコル通信モジュールで、ネットワークの通
信制御を行うモジュールである。304はネットワーク
ドライバモジュールでネットワークI/F制御部206
を制御し、実際にネットワーク上にパケットを送出、受
信するルーチンである。
Reference numeral 301 denotes a printer I / F driver module which controls the extended I / F control unit 204 to transmit and receive data to and from the printer. A print protocol module 302 supports a general-purpose print protocol on a network. Reference numeral 303 denotes a network protocol communication module which controls network communication. 304, a network driver module;
Is a routine for transmitting and receiving packets on the network.

【0026】印刷プロトコルモジュール302は、プロ
トコルで決められた印刷通信手順に従って、ネットワー
クプロトコル通信モジュール303を用いて、ネットワ
ークから印刷データを受信する。受信した印刷データ
は、プリンタI/Fドライバモジュール301を介して
プリンタ等のネットワークデバイス102に送出され
る。
The print protocol module 302 receives print data from the network using the network protocol communication module 303 according to a print communication procedure determined by the protocol. The received print data is sent to the network device 102 such as a printer via the printer I / F driver module 301.

【0027】305は本発明にかかる実装されているI
Pアドレス解決モジュールで、ネットワークボードの電
源が投入された際、一番最初に、ボードが動作するTC
PIPの設定パラメータ(本ボードのIPアドレスや、
サブネットマスク、ゲートウエイアドレス)をネットワ
ークプロトコル通信モジュールに設定する。
Reference numeral 305 denotes an I mounted according to the present invention.
In the P address resolution module, when the power of the network board is turned on, the TC
PIP setting parameters (IP address of this board,
Subnet mask, gateway address) are set in the network protocol communication module.

【0028】図4は本実施形態におけるネットワークプ
ロトコル通信モジュール303におけるTCP/IPプ
ロトコルのプログラム構成図である。
FIG. 4 is a program configuration diagram of the TCP / IP protocol in the network protocol communication module 303 in this embodiment.

【0029】401はソケットインターフェース管理モ
ジュールで、印刷プロトコルモジュール302や、IP
アドレス解決モジュール305にソケットといわれるイ
ンターフェースを提供している。本インターフェースを
用いることによって、印刷プロトコルモジュール(30
2)や、IPアドレス解決モジュール(305)は、T
CP/IPプロトコルで容易に通信することが可能とな
る。402はTCP管理モジュール、403はUDP管
理モジュールである。TCP管理モジュール402はT
CPプロトコルが実装されUDP管理モジュール403
にはUDPプロトコルが実装されている。TCP管理モ
ジュールやUDP管理モジュールは406のIPモジュ
ールを使って、通信を行う。404はICMP管理モジ
ュールで、ICMPプロトコルが実装されている。40
6はIPモジュールでIPプロトコルが実装されてい
る。407はARPモジュールでARPプロトコルが実
装されている。
Reference numeral 401 denotes a socket interface management module, which includes a print protocol module 302 and an IP
The address resolution module 305 provides an interface called a socket. By using this interface, the print protocol module (30
2) The IP address resolution module (305)
Communication can be easily performed using the CP / IP protocol. 402 is a TCP management module, and 403 is a UDP management module. The TCP management module 402
UDP management module 403 with CP protocol implemented
Implements the UDP protocol. The TCP management module and the UDP management module use the IP module 406 to perform communication. Reference numeral 404 denotes an ICMP management module on which an ICMP protocol is mounted. 40
Reference numeral 6 denotes an IP module on which an IP protocol is mounted. Reference numeral 407 denotes an ARP module on which the ARP protocol is mounted.

【0030】図5はDHCPメッセージのフレーム概要
を表す概念図である。
FIG. 5 is a conceptual diagram showing an outline of a DHCP message frame.

【0031】501はEthernet(登録商標)
Headerで次にIP Header502、さらにUDP
ヘッダ503、BOOTP/DHCP504と続き、フ
レームの終端にはCRC505が付加される。
Reference numeral 501 denotes Ethernet (registered trademark).
Next, Header, IP Header 502, and UDP
Following the header 503 and the BOOTP / DHCP 504, a CRC 505 is added to the end of the frame.

【0032】図6は本実施形態におけるEthernet Heade
r501の概略的な構成を示す図である。
FIG. 6 shows the Ethernet Heade in this embodiment.
It is a figure showing the schematic structure of r501.

【0033】本実施形態ではTCP/IPプロトコルを
EthernetIIフォーマットで送受信している。本図面は、
EthernetIIフォーマットの概略図で、601が宛先アド
レス、602が発信元アドレス、603がフレームタイ
プをあらわす。宛先アドレス601、発信元アドレス6
02には機器固有のMACアドレスが格納される。ここ
で言うMACアドレスとは、ネットワーク固有の物理ア
ドレスである。Ethernetの場合、6バイト長で先頭の3
バイトはベンダーコードとしてIEEE(Institute of
Electrical and Electronic Enginerrs、米国電気電子
学会)が管理/割り当てを行っている。残りの3バイト
は各ベンダが独自に(重複しないように)管理している
コードである。その結果、世界中で同じ物理アドレスを
持つネットワーク機器は存在せず、全て異なるアドレス
が割り当てられることになる。
In this embodiment, the TCP / IP protocol is
Sending and receiving in EthernetII format. This drawing
In the schematic diagram of the Ethernet II format, 601 indicates a destination address, 602 indicates a source address, and 603 indicates a frame type. Destination address 601, source address 6
02 stores a MAC address unique to the device. Here, the MAC address is a physical address unique to the network. In the case of Ethernet, the first 3
Bytes are used as IEEE (Institute of Institute)
Electrical and Electronic Enginerrs, the Institute of Electrical and Electronics Engineers). The remaining three bytes are codes managed by each vendor independently (to avoid duplication). As a result, there is no network device having the same physical address in the world, and different addresses are all assigned.

【0034】フレームタイプ603は、IPの場合には
0x0800、ARPの場合には0x0806と決めら
れている。
The frame type 603 is determined to be 0x0800 for IP and 0x0806 for ARP.

【0035】図7はIPヘッダの概略的な構成を示す図
である。
FIG. 7 is a diagram showing a schematic configuration of the IP header.

【0036】701はIPのバージョン、702はIP
ヘッダのレングス、703はサービスタイプ(Type Of
Service:TOS)、704は全データ長、705は識
別子、706はフラグフィールド、707は生存時間フ
ィールド、708はプロトコル識別、709はIPヘッ
ダのチェックサム、710は発信元のIPアドレス、7
11は宛先のIPアドレスである。
701 is the IP version, 702 is the IP version
The header length 703 is a service type (Type Of).
Service: TOS), 704 is the total data length, 705 is an identifier, 706 is a flag field, 707 is a lifetime field, 708 is a protocol identification, 709 is an IP header checksum, 710 is a source IP address, 7
11 is a destination IP address.

【0037】図8はUDPヘッダの概略的な構成を示す
図である。
FIG. 8 is a diagram showing a schematic configuration of a UDP header.

【0038】801は発信元のポート番号、802は宛
先ポート番号、803はUDPデータ長であり、804
はUDPチェックサムである。
801 is a source port number, 802 is a destination port number, 803 is a UDP data length, 804
Is a UDP checksum.

【0039】また、図9はDHCP(BOOTP)の概
略的な構成を示す図である。901はオプコードで、要
求、応答を判断する識別子、902はハードウエアタイ
プで、本実施形態では1が使われている。903はハー
ドウエアレングス長で、本実施形態では6、904はホ
ップカウント、914はトランザクションID、905
は秒数、906はクライアントIPアドレス、907は
ユーザーIPアドレスで、サーバによって与えられる。
908はサーバIPアドレス、909はゲートウエイI
Pアドレス、910はクライアントハードウエアアドレ
ス、911はサーバホスト名が格納される。912に
は、起動ファイル名が格納される。913にはベンダー
仕様情報が格納される。
FIG. 9 is a diagram showing a schematic configuration of DHCP (BOOTP). Reference numeral 901 denotes an opcode, an identifier for determining a request or response, and reference numeral 902 denotes a hardware type. In this embodiment, 1 is used. Reference numeral 903 denotes a hardware length length. In this embodiment, 6, 904 is a hop count, 914 is a transaction ID, 905.
Is the number of seconds, 906 is the client IP address, and 907 is the user IP address, given by the server.
908 is the server IP address, 909 is the gateway I
The P address, 910 stores the client hardware address, and 911 stores the server host name. In 912, a startup file name is stored. 913 stores vendor specification information.

【0040】図10は図9におけるベンダー仕様情報9
13の詳細である。
FIG. 10 shows the vendor specification information 9 in FIG.
13 is a detailed diagram.

【0041】このベンダー仕様情報には、様々な情報を
格納することができる。DHCPの場合には、まず最初
の4バイトに、Magic Cookieとよばれる4バイトのデー
タ(99.130.83.99)が格納される。それ以
降のデータにはそれぞれコード(Code)、レングス
(Len)、タイプ(Type)の順で、次々と格納さ
れていく。
Various information can be stored in the vendor specification information. In the case of DHCP, first, 4-byte data (99.130.83.99) called Magic Cookie is stored in the first 4 bytes. The subsequent data are stored one after another in the order of code (Code), length (Len), and type (Type).

【0042】DHCP Message Type(1
002)はDHCPメッセージの要求や応答を示すもの
で、そのコードは53byte、レングスとして1by
te、タイプには以下のいずれかが格納される。
[0042] DHCP Message Type (1
002) indicates a request or response to the DHCP message, and its code is 53 bytes, and the length is 1 byte.
One of the following is stored in te and type.

【0043】 (1)DHCP DISCOVER (2)DHCP OFFER (3)DHCP REQUEST (4)DECP DECLINE (5)DHCP ACK (6)DHCP NACK (7)DHCP RELEASE ClientID(1003)はクライアントを識別するため
のIDで、本実施形態ではコードを61byte、レン
グスを2byte、タイプを0001としている。
(1) DHCP DISCOVER (2) DHCP OFFER (3) DHCP REQUEST (4) DECP DECLINE (5) DHCP ACK (6) DHCP NACK (7) DHCP RELEASE Client ID (1003) is an ID for identifying a client. In the present embodiment, the code is 61 bytes, the length is 2 bytes, and the type is 0001.

【0044】ServerID(1004)はサーバが一意に
決めるサーバのIDで、そのコードは54byte、レ
ングスを4byte、タイプには4バイト分のIDが格
納されている。
The ServerID (1004) is a server ID uniquely determined by the server. The code stores 54 bytes, the length is 4 bytes, and the type stores a 4-byte ID.

【0045】RequestList(1005)はクライア
ントが必要とする情報のリストを示し、そのコードは5
5byte、レングスは3byte、タイプには必要と
する情報のコードが格納される。
RequestList (1005) indicates a list of information required by the client, and its code is 5
5 bytes, length is 3 bytes, and the type stores a code of necessary information.

【0046】本実施形態では、クライアントが必要とす
るデータはSubnetMask(1006),Gateway(100
7),Vender Specification(1008)である。
In the present embodiment, the data required by the client includes the subnet mask (1006) and the gateway (1006).
7), Vender Specification (1008).

【0047】SubnetMask(1006)はボードの設定パ
ラメータの一つであるサブネットマスク値で、そのコー
ドは1byte、レングスは4byte、タイプにはサ
ブネットマスク値が格納される。
SubnetMask (1006) is a subnet mask value which is one of the setting parameters of the board. The code is 1 byte, the length is 4 bytes, and the type stores the subnet mask value.

【0048】Gateway(1007)はボードの設定パラ
メータの一つであるゲートウエイアドレスで、そのコー
ドは3byte、レングスは4byte、タイプにはゲ
ートウエイアドレスが格納される。
Gateway (1007) is a gateway address which is one of the setting parameters of the board. The code is 3 bytes, the length is 4 bytes, and the type stores the gateway address.

【0049】Vender Specification(1008)はベン
ダー固有情報で、そのコードは43byte、レングス
は1byte、タイプには設定値が格納される。
The Vender Specification (1008) is vendor-specific information. Its code is 43 bytes, its length is 1 byte, and its type stores a set value.

【0050】本実施形態ではこの設定値に応じて、ボー
ドは電源立ち上毎にDHCPプロトコルを用いてIPア
ドレスを解決するかどうかを判断することになる。
In this embodiment, the board determines whether or not to resolve the IP address using the DHCP protocol every time the power is turned on in accordance with the set value.

【0051】LeaseTimeはIPアドレスの使用期限で、
そのコードは51byte、レングスは4byte、タ
イプにはその使用期限が格納される。
LeaseTime is the expiration date of the IP address.
The code stores 51 bytes, the length stores 4 bytes, and the type stores the expiration date.

【0052】図11、図12は、本実施形態における、
モジュールの処理の流れ図である。
FIGS. 11 and 12 show the present embodiment.
It is a flowchart of a process of a module.

【0053】以下、DHCPパケットの処理概要につい
て各モジュールの動作と処理の流れを説明する。
Hereinafter, the operation of each module and the flow of the processing will be described for the outline of the processing of the DHCP packet.

【0054】<送信処理>IPアドレス解決モジュール
(305)によって作成されたDHCP要求パケット
は、ネットワークプロトコル通信モジュール(303)
のソケットインターフェース管理モジュール(401)
を介して、UDP管理モジュール(403)に送られ
る。UDP管理モジュール(403)では発信元ポート
番号801(図8)にクライアントであることを示す
「68」を、宛先ポート番号802(図8)に、サーバ
向けであることを示す「67」をそれぞれ格納する。U
DP管理モジュール(403)は、UDPレングス長8
03をセットして、チェックサムを計算した後、804
で示される領域にデータを格納する。作成されたパケッ
トはIPモジュール(406)に送られる。
<Transmission processing> The DHCP request packet created by the IP address resolution module (305) is sent to the network protocol communication module (303).
Socket interface management module (401)
To the UDP management module (403). In the UDP management module (403), the source port number 801 (FIG. 8) indicates "68" indicating that the client is a client, and the destination port number 802 (FIG. 8) indicates "67" indicating that the client is for a server. Store. U
The DP management module (403) has a UDP length of 8
After calculating the checksum by setting 03, 804
The data is stored in the area indicated by. The created packet is sent to the IP module (406).

【0055】IPモジュール(406)では、UDP管
理モジュールが作成した送信パケットに加えて、図7に
図示したIPヘッダのパラメータをそれぞれセットす
る。DHCPプロトコルにおいては、クライアント側が
パケットを送信する場合には、発信元IPアドレス71
0(図7)として、0.0.0.0を、宛先IPアドレ
ス711(図7)として、255.255.255.2
55をセットする。作成されたパケットはネットワーク
ドライバモジュール(304)に送られる。
The IP module (406) sets the parameters of the IP header shown in FIG. 7 in addition to the transmission packet created by the UDP management module. In the DHCP protocol, when a client transmits a packet, a source IP address 71
0 (FIG. 7), 0.0.0.0, and 255.255.255.2 as the destination IP address 711 (FIG. 7).
Set 55. The created packet is sent to the network driver module (304).

【0056】ネットワークドライバモジュール(30
4)はIPモジュール(406)が作成した送信パケッ
トに加えて、図6に図示したEhternetヘッダのパラメー
タをそれぞれセットする。プロトコルタイプにはIPモ
ジュール(406)からの送信要求であることから、I
Pであることを示す0x0800をセットする。DHC
Pプロトコルにおいては、発信元アドレス602とし
て、自分のMACアドレスを、宛先アドレス(601)
として、0xffffffffffffをセットする。
The network driver module (30)
4) sets the parameters of the Ethernet header shown in FIG. 6 in addition to the transmission packet created by the IP module (406). Since the protocol type is a transmission request from the IP module (406),
0x0800 indicating P is set. DHC
In the P protocol, its own MAC address is set as the source address 602, and the destination address (601)
Is set to 0xffffffffffffff.

【0057】こうして作成されたDHCPパケットはネ
ットワークI/F制御部(206)を介して、ネットワ
ーク上に発信される。このとき、CRCコード(50
5)がパケットの最後に付加される。
The DHCP packet created in this way is transmitted on the network via the network I / F control unit (206). At this time, the CRC code (50
5) is added to the end of the packet.

【0058】<受信処理>図5に図示したイーサネット
(登録商標)フレームを、ネットワークI/F制御部
(206)を介して、ネットワークドライバモジュール
(304)が受信する。ネットワークドライバモジュー
ル(304)は、フレームのEthernet Header部(図6
に図示)を解析し、それが自MACアドレス向けのもの
かどうかを判断する。自MACアドレス向けでないもの
や、CRC(505)がエラーを起こしたフレームはこ
の時点で破棄される。自分のMACアドレス向けでない
ものでも宛先アドレスがブロードキャストアドレスや登
録されたマルチキャストアドレスの場合には、そのフレ
ームを取り込む。
<Reception Processing> The network driver module (304) receives the Ethernet (registered trademark) frame shown in FIG. 5 via the network I / F control unit (206). The network driver module (304) includes an Ethernet header part of the frame (FIG. 6).
Is analyzed, and it is determined whether or not it is for its own MAC address. Frames not intended for the own MAC address or frames in which the CRC (505) has caused an error are discarded at this point. If the destination address is a broadcast address or a registered multicast address even if the destination address is not for its own MAC address, the frame is fetched.

【0059】次にネットワークドライバモジュール(3
04)は、受信したフレームのタイプ(603)を判断
する。これが0x0800の場合にはそれ以降のバイト
ストリームをIPパケットと判断し、ネットワークプロ
トコル通信モジュール(303)内のIPモジュール
(406)にパケットを引き渡す。0x0806の場合
にはARPパケットと判断し、ARPモジュール(40
7)にパケットを引き渡す。
Next, the network driver module (3)
04) determines the type (603) of the received frame. If this is 0x0800, the subsequent byte stream is determined to be an IP packet, and the packet is delivered to the IP module (406) in the network protocol communication module (303). In the case of 0x0806, it is determined that the packet is an ARP packet, and the ARP module (40
7) Deliver the packet.

【0060】IPモジュール(406)では図7に図示
したIP Header部を解析する。ネットワークドライバ
モジュール(304)から受け取ったパケットにおい
て、宛先IPアドレスが自分のIPアドレスかどうかを
判断する。自分のIPアドレスでないものや、チェック
サムが正しい値でないパケットはこの時点で破棄され
る。自分のIPアドレスでないものでも、宛先IPアド
レスがブロードキャストアドレスや、登録されたマルチ
キャストアドレスの場合にはそのパケットを処理する。
The IP module (406) analyzes the IP header shown in FIG. In the packet received from the network driver module (304), it is determined whether the destination IP address is its own IP address. Any packet that is not its own IP address or that does not have the correct checksum is discarded at this point. Even if it is not its own IP address, if the destination IP address is a broadcast address or a registered multicast address, it processes the packet.

【0061】次にIPモジュール(406)は、プロト
コルの識別(708)を判断する。プロトコル識別(7
08)がTCPを指し示す場合には、パケットをTCP
管理モジュール(402)に引き渡す。UDPの場合に
は、UDP管理モジュール(403)へ、ICMPの場
合にはICMP管理モジュール(404)に引き渡す。
Next, the IP module (406) judges the identification of the protocol (708). Protocol identification (7
08) indicates TCP, the packet is
Deliver to the management module (402). In the case of UDP, it is delivered to the UDP management module (403), and in the case of ICMP, it is delivered to the ICMP management module (404).

【0062】UDP管理モジュール(403)はIPモ
ジュール(406)からパケットを受け取ると、図8に
図示したUDP Header部の解析を行う。UDP管理モ
ジュール403)はチェックサム(804)をチェック
し、これが不正な値の場合にはこのパケットを破棄す
る。
Upon receiving the packet from the IP module (406), the UDP management module (403) analyzes the UDP header shown in FIG. The UDP management module 403) checks the checksum (804), and discards this packet if this is an invalid value.

【0063】その後、UDP管理モジュール(403)
はUDPポート番号(802)を判断し、その宛先ポー
ト番号(802)が「68」のパケットをソケットイン
ターフェース管理モジュール(401)を介して、IP
アドレス解決モジュール(405)に引き渡す。
Thereafter, the UDP management module (403)
Determines the UDP port number (802) and sends the packet whose destination port number (802) is “68” to the IP through the socket interface management module (401).
The address is passed to the address resolution module (405).

【0064】IPアドレス解決モジュール(305)は
図9、図10に図示したDHCPパケットの解析と処理
を行う。
The IP address resolution module (305) analyzes and processes the DHCP packet shown in FIGS.

【0065】以下、フローチャートを用いて本実施形態
のIPアドレス解決モジュール(305)の処理の流れ
を説明する。
Hereinafter, the flow of processing of the IP address resolution module (305) of this embodiment will be described with reference to a flowchart.

【0066】電源が投入され、IPアドレス解決モジュ
ール(305)が起動すると、まず、IPアドレス解決
モジュール(305)はNVRAM(205)から、I
Pアドレス解決モードをリードしてくる(S110
1)。IPアドレス解決モードがDHCPモードでなか
った場合には(S1102−No)、IPアドレス解決モ
ジュール(305)は、さらにNVRAM(205)か
ら、各設定パラメータをリードする(S1103)。そ
して、それら設定パラメータ(IPアドレス、サブネッ
トマスク、ゲートウエイアドレス)でTCPIPの設定
を行い、通常通信を可能とする(S1104)。
When the power is turned on and the IP address resolution module (305) starts up, first, the IP address resolution module (305)
The P address resolution mode is read (S110
1). When the IP address resolution mode is not the DHCP mode (S1102-No), the IP address resolution module (305) further reads each setting parameter from the NVRAM (205) (S1103). Then, TCPIP is set using these setting parameters (IP address, subnet mask, gateway address), and normal communication is enabled (S1104).

【0067】IPアドレス解決モードがDHCPモード
であった場合(S1102-Yes)には、図9に図示のD
HCPパラメータに各設定を行う。オプコード(90
1)に要求コードを格納し、各パラメータを設定した
後、ベンダー仕様情報(913)として、DHCP M
essage Typeを「DHCP DISCOVE
R」として設定し、ClientIDを設定して、パケ
ットを構成する。パケットはソケットインターフェース
管理モジュール(401)を介して、先に説明した手順
でネットワークに送信される(S1105)。
If the IP address resolution mode is the DHCP mode (S1102-Yes), the D address shown in FIG.
Make various settings for HCP parameters. Opcode (90
After storing the request code in 1) and setting each parameter, DHCP M is used as the vendor specification information (913).
The message type is changed to "DHCP DISCOVE
R ", and a ClientID is set to form a packet. The packet is transmitted to the network via the socket interface management module (401) according to the procedure described above (S1105).

【0068】そして、DHCPサーバから、何らかの応
答が返されるまで、IPアドレス解決モジュール(30
5)はその応答を待つ(S1106)。
The IP address resolution module (30) waits until a response is returned from the DHCP server.
5) waits for the response (S1106).

【0069】DHCPサーバから応答が返された場合に
は、再び、図9に図示のDHCPパラメータに各設定を
行う。オプコード(901)に要求コードを格納し、各
パラメータを設定した後、ベンダー仕様情報として、D
HCP Message TypeをDHCP REQ
UESTで設定し、ClientID、Request
Listを設定して、サーバから返されたServer
IDを設定して、パケットを構成する。パケットはソケ
ットインターフェース管理モジュール401を介して、
先に説明した手順でネットワークに送信される(S11
07)。
When a response is returned from the DHCP server, each setting is again performed on the DHCP parameters shown in FIG. After storing the request code in the opcode (901) and setting each parameter, D
DHCP REQ for HCP Message Type
Set with UEST, ClientID, Request
Set List and Server returned from server
An ID is set to compose a packet. The packet is sent through the socket interface management module 401,
It is transmitted to the network according to the procedure described above (S11
07).

【0070】この要求に対する応答で、各設定パラメー
タを獲得することになる。
In response to this request, each set parameter is obtained.

【0071】IPアドレス解決モジュール(305)は
その応答が返されるまで待機する(S1108)。サー
バから応答が返されると、IPアドレス解決モジュール
はベンダー仕様情報内(913)のLeaseTime
を確認する(図12のS1201)。LeaseTim
eが0xFFFFFFFFの場合には、無期限の使用期
限を示すことになる。0xFFFFFFFFの場合に
は、次にベンダー仕様情報(913)の内容Vende
rSpecを確認する(S1202)。
The IP address resolution module (305) waits until the response is returned (S1108). When a response is returned from the server, the IP address resolution module determines the lease time in the vendor specification information (913).
Is confirmed (S1201 in FIG. 12). LeaseTim
When e is 0xFFFFFFFF, it indicates an indefinite expiration date. In the case of 0xFFFFFFFF, the content Vende of the vendor specification information (913) is next.
Confirm rSpec (S1202).

【0072】この設定値が0x01の場合、設定パラメ
ータをNVRAM(205)に格納する(S120
3)。
When the set value is 0x01, the set parameter is stored in the NVRAM (205) (S120).
3).

【0073】設定パラメータで、IPアドレスは(90
7)のユーザーIPアドレスから、サブネットマスクは
ベンダー仕様情報(913)のSabunetMask
から、ゲートウエイアドレスはベンダー仕様情報(91
3)のGatewayからそれぞれ読み取る。
In the setting parameter, the IP address is (90
From the user IP address of 7), the subnet mask is the SabunetMask of the vendor specification information (913).
From the gateway address, the vendor specification information (91
Read each from Gateway of 3).

【0074】これらの設定値で、TCPIPの設定を行
い(S1204)、IPアドレス解決モードをDHCP
使わないにセットし、これをNVRAM(205)に格
納する(S1205)。
With these settings, TCPIP is set (S1204), and the IP address resolution mode is set to DHCP.
It is set to not be used and stored in the NVRAM (205) (S1205).

【0075】これによって、次回、電源投入時には、N
VRAM(205)に格納された設定パラメータでTC
PIPを設定して、動作することになる。
Thus, at the next power-on, N
TC with setting parameters stored in VRAM (205)
The PIP will be set and it will operate.

【0076】LeaseTimeが0xFFFFFFF
Fでない場合や、VenderSpecが0x01でな
い場合には、パケット内から読み取った設定パラメータ
でTCPIPを設定した後(S1206)、リースタイ
マをタイマ207にセットして、DHCPの通常動作を
開始する。
When the lease time is 0xFFFFFFFF
If it is not F, or if VendorSpec is not 0x01, after setting TCPIP with the setting parameters read from the packet (S1206), the lease timer is set to the timer 207, and the normal operation of DHCP is started.

【0077】[0077]

【他の実施形態】なお、本発明は、複数の機器(例えば
ホストコンピュータ、インタフェイス機器、リーダ、プ
リンタなど)から構成されるシステムに適用しても、一
つの機器からなる装置(例えば、複写機、ファクシミリ
装置など)に適用してもよい。
[Other Embodiments] Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), an apparatus (for example, a copying machine) Machine, facsimile machine, etc.).

【0078】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体(または記録媒体)を、システムあるい
は装置に供給し、そのシステムあるいは装置のコンピュ
ータ(またはCPUやMPU)が記憶媒体に格納されたプログ
ラムコードを読み出し実行することによっても、達成さ
れることは言うまでもない。この場合、記憶媒体から読
み出されたプログラムコード自体が前述した実施形態の
機能を実現することになり、そのプログラムコードを記
憶した記憶媒体は本発明を構成することになる。また、
コンピュータが読み出したプログラムコードを実行する
ことにより、前述した実施形態の機能が実現されるだけ
でなく、そのプログラムコードの指示に基づき、コンピ
ュータ上で稼働しているオペレーティングシステム(OS)
などが実際の処理の一部または全部を行い、その処理に
よって前述した実施形態の機能が実現される場合も含ま
れることは言うまでもない。
Further, an object of the present invention is to supply a storage medium (or a recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or an apparatus, and a computer (a computer) of the system or the apparatus. It is needless to say that the present invention can also be achieved by a CPU or an MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. Also,
When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also the operating system (OS) running on the computer based on the instructions of the program code.
It goes without saying that a case where the functions of the above-described embodiments are implemented by performing some or all of the actual processing, and the processing performs the functions of the above-described embodiments.

【0079】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張カー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書込まれた後、そのプログラムコードの指示
に基づき、その機能拡張カードや機能拡張ユニットに備
わるCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written in a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the program code is read based on the instruction of the program code. Needless to say, the CPU included in the function expansion card or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0080】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明した(図11および/または
図12に示す)フローチャートに対応するプログラムコ
ードが格納されることになる。
When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the above-described flowcharts (shown in FIG. 11 and / or FIG. 12).

【0081】[0081]

【発明の効果】以上説明したように、本発明によれば、
IPアドレスの使用期限が無期限に指定された場合に
は、指定されたIPアドレスを記憶し、電源が遮断され
た場合にはDHCPプロトコルを用いることなく先に与
えられ記憶しているIPアドレスで立ち上がることが可
能となり、電源立ち上げ毎にサーバへ問い合わせること
なく、トラフィックに負荷を軽減することが実現でき
る。
As described above, according to the present invention,
If the expiration date of the IP address is specified indefinitely, the specified IP address is stored. If the power is cut off, the IP address previously given and stored without using the DHCP protocol is used. It is possible to start up, and it is possible to reduce the load on traffic without inquiring the server every time the power is turned on.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本実施形態のネットワークボードをプリンタに
接続した構成をあらわす概略図である。
FIG. 1 is a schematic diagram illustrating a configuration in which a network board according to an embodiment is connected to a printer.

【図2】本実施形態におけるネットワークボード101
の内部構成の概略を表すブロック図である。
FIG. 2 illustrates a network board 101 according to the embodiment.
FIG. 2 is a block diagram schematically illustrating an internal configuration of the ASIC.

【図3】本実施形態におけるネットワークボード101
のプログラム構成を示す概略図である。
FIG. 3 is a diagram showing a network board 101 according to the embodiment;
FIG. 2 is a schematic diagram showing a program configuration of FIG.

【図4】本実施形態におけるネットワークプロトコル通
信モジュールにおけるTCP/IPプロトコルのプログ
ラム構成図である。
FIG. 4 is a program configuration diagram of a TCP / IP protocol in a network protocol communication module according to the embodiment.

【図5】DHCPメッセージのフレーム概要を表す概念
図である。
FIG. 5 is a conceptual diagram illustrating a frame outline of a DHCP message.

【図6】本実施形態におけるEthernet Headerの概略図
である。
FIG. 6 is a schematic diagram of an Ethernet Header in the present embodiment.

【図7】IPヘッダの概略図である。FIG. 7 is a schematic diagram of an IP header.

【図8】UDPヘッダの概略図である。FIG. 8 is a schematic diagram of a UDP header.

【図9】DHCPパケットの概略図である。FIG. 9 is a schematic diagram of a DHCP packet.

【図10】ベンダー仕様情報の概略図である。FIG. 10 is a schematic diagram of vendor specification information.

【図11】IPアドレス解決モジュールの処理のフロー
チャートである。
FIG. 11 is a flowchart of processing of an IP address resolution module.

【図12】IPアドレス解決モジュールの処理のフロー
チャートである。
FIG. 12 is a flowchart of processing of an IP address resolution module.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 DHCPパケットを解釈する解釈手段
と、 前記解釈手段の解釈に基づき、DHCPパケットを構成
する手段と、 前記構成されたDHCPパケットに基づき、ネットワー
クサーバとの間でデータの送受を行なう送受手段と、 前記送受手段により、前記ネットワークサーバから受信
したデータの使用可能期限を判断する判断手段と、 前記判断手段により、前記データの使用可能期限が無期
限の場合は、該データを記憶する記憶手段と、 ネットワークへの再接続の際、前記記憶手段によって記
憶されたデータに基づき、再接続のためのパラメータを
設定する設定手段と、 を備えることを特徴とするネットワークデバイス。
1. An interpreting means for interpreting a DHCP packet, means for constructing a DHCP packet based on the interpretation of the interpreting means, and data transmission / reception with a network server based on the configured DHCP packet Sending / receiving means; determining means for determining the expiration date of the data received from the network server by the transmitting / receiving means; storing the data when the expiration date of the data is indefinite by the determining means. A network device, comprising: storage means; and setting means for setting a parameter for reconnection based on data stored by the storage means when reconnecting to a network.
【請求項2】 前記データは、IPアドレス、サブネッ
トマスク、ゲートウエイアドレスを含むことを特徴とす
る請求項1に記載のネットワークデバイス。
2. The network device according to claim 1, wherein the data includes an IP address, a subnet mask, and a gateway address.
【請求項3】 DHCPパケットを解釈する解釈工程
と、 前記解釈手段の解釈に基づき、DHCPパケットを構成
する工程と、 前記構成されたDHCPパケットに基づき、ネットワー
クサーバとの間でデータの送受を行なう送受工程と、 前記送受工程により、前記ネットワークサーバから受信
したデータの使用可能期限を判断する判断工程と、 前記判断工程により、前記データの使用可能期限が無期
限の場合は、該データを記憶する記憶工程と、 ネットワークへの再接続の際、前記記憶されたデータに
基づき、再接続のためのパラメータを設定する設定工程
と、 を備えることを特徴とするネットワークデバイスのパラ
メータ設定方法。
3. An interpreting step of interpreting a DHCP packet; a step of forming a DHCP packet based on the interpretation of the interpreting means; and transmitting and receiving data to and from a network server based on the configured DHCP packet. A transmitting / receiving step; a judging step of judging an expiration date of the data received from the network server in the transmitting / receiving step; and storing the data if the judging step shows that the expiration date of the data is indefinite. A parameter setting method for a network device, comprising: a storage step; and a setting step of setting a parameter for reconnection based on the stored data when reconnecting to a network.
【請求項4】 前記データは、IPアドレス、サブネッ
トマスク、ゲートウエイアドレスを含むことを特徴とす
る請求項3に記載のネットワークデバイスのパラメータ
設定方法。
4. The method according to claim 3, wherein the data includes an IP address, a subnet mask, and a gateway address.
【請求項5】 ネットワークデバイスのパラメータ設定
方法をコンピュータにより実行するためのプログラムコ
ードを格納した記憶媒体であって、該プログラムコード
が、 DHCPパケットを解釈する解釈工程のコードと、 前記解釈手段の解釈に基づき、DHCPパケットを構成
する工程のコードと、 前記構成されたDHCPパケットに基づき、ネットワー
クサーバとの間でデータの送受を行なう送受工程のコー
ドと、 前記送受工程のコードにより、前記ネットワークサーバ
から受信したデータの使用可能期限を判断する判断工程
のコードと、 前記判断工程により、前記データの使用可能期限が無期
限の場合は、該データを記憶する工程のコードと、 ネットワークへの再接続の際、前記記憶されたデータに
基づき、再接続のためのパラメータを設定する設定工程
のコードと、 を備えることを特徴とする記憶媒体。
5. A storage medium storing a program code for executing a parameter setting method of a network device by a computer, the program code comprising: a code of an interpretation step for interpreting a DHCP packet; and an interpretation of the interpretation means. A code of a step of configuring a DHCP packet, a code of a transmission / reception step of transmitting / receiving data to / from a network server based on the configured DHCP packet, and a code of the transmission / reception step. A code of a determining step of determining the expiration date of the received data; and, if the expiration date of the data is indefinite, the code of a step of storing the data is determined by the determining step. At this time, based on the stored data, And a setting process code for setting the data.
【請求項6】 前記データは、IPアドレス、サブネッ
トマスク、ゲートウエイアドレスを含むことを特徴とす
る請求項5に記載の記憶媒体。
6. The storage medium according to claim 5, wherein the data includes an IP address, a subnet mask, and a gateway address.
【請求項7】 前記設定手段は、電源投入時には、前記
記憶手段に記憶されているデータに基づいてネットワー
クに接続するためのパラメータを設定することを特徴と
する請求項1に記載のネットワークデバイス。
7. The network device according to claim 1, wherein the setting unit sets a parameter for connecting to a network based on data stored in the storage unit when the power is turned on.
【請求項8】 前記記憶手段は、不揮発性メモリである
ことを特徴とする請求項1に記載のネットワークデバイ
ス。
8. The network device according to claim 1, wherein said storage means is a nonvolatile memory.
【請求項9】 前記記憶手段は、ハードディスクである
ことを特徴とする請求項1に記載のネットワークデバイ
ス。
9. The network device according to claim 1, wherein said storage means is a hard disk.
JP2000080430A 2000-03-22 2000-03-22 Network device, parameter setting method for the network device and storage medium Withdrawn JP2001268095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000080430A JP2001268095A (en) 2000-03-22 2000-03-22 Network device, parameter setting method for the network device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000080430A JP2001268095A (en) 2000-03-22 2000-03-22 Network device, parameter setting method for the network device and storage medium

Publications (1)

Publication Number Publication Date
JP2001268095A true JP2001268095A (en) 2001-09-28

Family

ID=18597535

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000080430A Withdrawn JP2001268095A (en) 2000-03-22 2000-03-22 Network device, parameter setting method for the network device and storage medium

Country Status (1)

Country Link
JP (1) JP2001268095A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006173947A (en) * 2004-12-15 2006-06-29 Fuji Xerox Co Ltd Document processing system
WO2007074611A1 (en) * 2005-12-26 2007-07-05 Matsushita Electric Industrial Co., Ltd. Address managing method and communication device
JP2007202115A (en) * 2005-12-26 2007-08-09 Matsushita Electric Ind Co Ltd Address managing method and communication device
US7945649B2 (en) 2004-07-21 2011-05-17 Canon Kabushiki Kaisha Information processing device, information processing method, and computer-readable medium for setting a value used in network communications
US9467391B2 (en) 2009-02-02 2016-10-11 Telefonaktiebolaget Lm Ericsson (Publ) Controlling a packet flow from a user equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7945649B2 (en) 2004-07-21 2011-05-17 Canon Kabushiki Kaisha Information processing device, information processing method, and computer-readable medium for setting a value used in network communications
JP2006173947A (en) * 2004-12-15 2006-06-29 Fuji Xerox Co Ltd Document processing system
JP4635592B2 (en) * 2004-12-15 2011-02-23 富士ゼロックス株式会社 Document processing system
WO2007074611A1 (en) * 2005-12-26 2007-07-05 Matsushita Electric Industrial Co., Ltd. Address managing method and communication device
JP2007202115A (en) * 2005-12-26 2007-08-09 Matsushita Electric Ind Co Ltd Address managing method and communication device
JP4563988B2 (en) * 2005-12-26 2010-10-20 パナソニック株式会社 Address management method and communication device
US7949762B2 (en) 2005-12-26 2011-05-24 Panasonic Corporation Address managing method and communication apparatus
US9467391B2 (en) 2009-02-02 2016-10-11 Telefonaktiebolaget Lm Ericsson (Publ) Controlling a packet flow from a user equipment
US9974110B2 (en) 2009-02-02 2018-05-15 Telefonaktiebolaget Lm Ericsson (Publ) Controlling a packet flow from a user equipment

Similar Documents

Publication Publication Date Title
EP1943772B1 (en) Method and apparatus for waking up a sleeping system
US8368929B2 (en) Information processing apparatus, method, and program
TWI467959B (en) Method, apparatus, and processor readable media for dynamically configuring of ip for a terminal equipment attached to a wireless device, and the wireless device
JP4235460B2 (en) Network device management method, network device management program, and network control apparatus
US7373407B2 (en) Communications system for establishing PPP connections between IEEE 1394 terminals and IP networks
US20040246961A1 (en) Method and apparatus for transmitting wake-up packets over a network data processing system
US8725843B2 (en) Method and apparatus for adaptively configuring a router
US20080195688A1 (en) Information processing apparatus, information processing method, and computer program product
JP2002502188A (en) System and method for using a domain name to route data transmitted to a destination on a network
JP2011135586A (en) Hybrid wired radio communication device and communication method
US20040148388A1 (en) Protocol at layer two for discovering and configuring network devices
US7085808B2 (en) Method for distinguishing clients in a communication system, a communication system; and a communication device
US7945649B2 (en) Information processing device, information processing method, and computer-readable medium for setting a value used in network communications
JP2001268095A (en) Network device, parameter setting method for the network device and storage medium
JP2003162462A (en) Communication network system
JP3658206B2 (en) Network device control apparatus and method
US7085836B1 (en) System and method for automatic private IP address selection
JP2004180211A (en) Proxy network control unit
KR100581087B1 (en) Method for expanding address for internet protocol version 4 in internet edge router
Cisco Configuring IP
JP4976672B2 (en) Network device apparatus, data processing method, and computer program
JP2007213129A (en) PPPoE COMMUNICATION SYSTEM
JP2001154967A (en) Network device, network control method, computer readable recording medium for string control program and network device control program
JP2007251269A (en) Network device
CN114598619A (en) Secure data connection in low data rate networks

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070605