JP2011237922A - Information processing apparatus and image forming apparatus - Google Patents

Information processing apparatus and image forming apparatus Download PDF

Info

Publication number
JP2011237922A
JP2011237922A JP2010107312A JP2010107312A JP2011237922A JP 2011237922 A JP2011237922 A JP 2011237922A JP 2010107312 A JP2010107312 A JP 2010107312A JP 2010107312 A JP2010107312 A JP 2010107312A JP 2011237922 A JP2011237922 A JP 2011237922A
Authority
JP
Japan
Prior art keywords
response
determination unit
packet
unit
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010107312A
Other languages
Japanese (ja)
Inventor
Kuniaki Fujisawa
邦昭 藤澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Data Corp filed Critical Oki Data Corp
Priority to JP2010107312A priority Critical patent/JP2011237922A/en
Publication of JP2011237922A publication Critical patent/JP2011237922A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an information processing apparatus which does not perform response processing for a received packet when having another ongoing, urgent processing so as to reduce the processing burden on a central processing unit, but performs response processing when receiving the same packet several times from the same source so as to prevent the source client device from erroneously assuming that any failure has occurred at the destination of the packet.SOLUTION: An information processing apparatus comprises: a type determination unit 1109 which receives a packet and determines a type of the packet; a state determination unit 1103 which determines an operational state of the apparatus; a response determination unit 1104 which determines whether or not response processing is to be executed in response to the packet, based on the type of the packet and the apparatus's operational state; and a response execution unit 1108 which executes response processing according to the result determined by the response determination unit 1104. The response determination unit 1104 determines to execute response processing when the number of packets of the same type received exceeds a predetermined threshold, even though it is difficult to execute the response processing because the apparatus's operational state is not normal.

Description

本発明は、ネットワーク接続機能を有する情報処理装置、及び画像形成装置に関するものである。   The present invention relates to an information processing apparatus having a network connection function and an image forming apparatus.

一般的に、単一の中央演算装置により動作する情報処理装置に対してLAN(Local Area Network)等のネットワークが接続された場合、その中央演算装置は、情報処理装置自体の機能を発揮させるための処理と、ネットワーク関連機能を発揮させるための処理とを並列させて処理を行っている。   In general, when a network such as a LAN (Local Area Network) is connected to an information processing apparatus that operates by a single central processing unit, the central processing unit serves to exhibit the functions of the information processing device itself. The process is performed in parallel with the process for exhibiting the network-related functions.

ところで、ネットワーク上には様々なパケットが流れており、ネットワークに接続された端末装置間において大量の情報のやり取りが行われている。ここで、例えば、ある端末装置からパケットがブロードキャストパケットとして転送されると、ネットワークに接続されたルータ以外の他の端末装置はこれを受信してしまうことがある。   By the way, various packets flow on the network, and a large amount of information is exchanged between terminal devices connected to the network. Here, for example, when a packet is transferred as a broadcast packet from a certain terminal device, other terminal devices other than the router connected to the network may receive the packet.

ここで、単一の中央演算装置により動作する情報処理装置においては、上記ブロードキャストパケットを一挙に大量に受信すると、中央演算装置による処理は、長時間受信パケット処理に費やされることになり、情報処理装置自体の機能の発揮に障害が発生する場合があった。   Here, in an information processing apparatus that operates by a single central processing unit, if a large number of broadcast packets are received at once, processing by the central processing unit is spent on long-time reception packet processing. In some cases, the function of the device itself may fail.

このような問題を解決するために、例えば、特許文献1には、中央演算装置による処理をネットワーク関連機能の処理に渡したくない緊急処理の間は、特定の種類のパケット受信を停止することによって、緊急処理を優先させる技術について記載がなされている。   In order to solve such a problem, for example, Patent Document 1 discloses that by stopping the reception of a specific type of packet during emergency processing in which processing by the central processing unit is not desired to be transferred to processing of network-related functions. The technology that prioritizes emergency processing is described.

特開平11−328068号公報JP-A-11-328068

しかしながら、上記特許文献1記載の技術では、パケット種類により受信制限が行われているため、同じ種類のパケットの受信は一律に制限されることになる。したがって、受信制限の対象となっているパケットを送信しているクライアント装置は、アクセス頻度や優先度に関わらず、送信先からの応答を一切得ることができないため、例えば、当該送信先はネットワークから切断されている、といった誤った認識をしてしまう恐れがある。   However, in the technique described in Patent Document 1, since reception restriction is performed depending on the packet type, reception of the same type of packet is uniformly restricted. Therefore, since the client device that is transmitting the packet subject to reception restriction cannot obtain any response from the transmission destination regardless of the access frequency or priority, for example, the transmission destination is from the network. There is a risk of misrecognizing that it is disconnected.

本発明は、このような実情に鑑みてなされたものであり、本発明の課題は、緊急処理の間は、受信したパケットに対する応答処理を行わないことで中央演算装置の処理にかかる負担を低減させるとともに、同一送信元から複数回送信されたパケットに関しては、応答処理を行うことで、送信元であるクライアント装置が送信先に異常が発生したと誤認識することを防止することができる情報処理装置、及び画像形成装置を提供することである。   The present invention has been made in view of such circumstances, and an object of the present invention is to reduce the burden on processing of the central processing unit by not performing response processing on received packets during emergency processing. Information processing that can prevent a client device that is a transmission source from misrecognizing that an abnormality has occurred in a transmission destination by performing response processing on a packet that is transmitted multiple times from the same transmission source An apparatus and an image forming apparatus are provided.

上記課題を解決するために、本発明にかかる情報処理装置は、パケットを受信し、当該パケットの種別を判定する種別判定部と、自機の動作状態を判定する状態判定部と、パケットの種別及び自機の動作状態に基づいて、パケットに応答する応答処理を実行するか否かを判定する応答判定部と、応答判定部による判定結果に基づいて、応答処理を実行する応答実行部とを備え、応答判定部は、自機の動作状態が応答処理に対応するのが困難な状態である非通常状態であって、同一種別のパケットを所定個数以上受信したときには、応答処理を実行すると判定することを特徴とする。   In order to solve the above problems, an information processing apparatus according to the present invention receives a packet, determines a type of the packet, a state determination unit that determines the operation state of the device, and a packet type And a response determination unit that determines whether or not to execute response processing in response to the packet based on the operation state of the own device, and a response execution unit that executes response processing based on a determination result by the response determination unit The response determination unit determines that the response processing is to be executed when the operation state of the own device is in a non-normal state in which it is difficult to respond to the response processing and a predetermined number of packets of the same type are received. It is characterized by doing.

また、本発明にかかる画像形成装置は、パケットを受信し、当該パケットの種別を判定する種別判定部と、受信したパケットに基づく画像を形成する画像形成部と、画像形成部を統括的に制御する制御部と、制御部の動作状態を判定する状態判定部と、パケットの種別及び制御部の動作状態に基づいて、パケットに応答する応答処理を実行するか否かを判定する応答判定部と、応答判定部による判定結果に基づいて、応答処理を実行する応答実行部とを備え、応答判定部は、制御部の動作状態が応答処理に対応するのが困難な状態である非通常状態であって、同一種別のパケットを所定個数以上受信したときには、応答処理を実行すると判定することを特徴とする。   In addition, the image forming apparatus according to the present invention receives a packet and comprehensively controls the type determining unit that determines the type of the packet, the image forming unit that forms an image based on the received packet, and the image forming unit. A control unit that determines the operation state of the control unit, a response determination unit that determines whether to execute a response process in response to the packet, based on the type of the packet and the operation state of the control unit, A response execution unit that executes response processing based on a determination result by the response determination unit, and the response determination unit is in a non-normal state in which the operation state of the control unit is difficult to respond to the response process. When a predetermined number or more of packets of the same type are received, it is determined that response processing is executed.

本発明によれば、緊急処理の間は、受信したパケットに対する応答処理を行わないことで中央演算装置の処理にかかる負担を低減させるとともに、同一送信元から複数回送信されたパケットに関しては、応答処理を行うことで、送信元であるクライアント装置が送信先に異常が発生したと誤認識することを防止することができる情報処理装置、及び画像形成装置を提供することができる。   According to the present invention, during emergency processing, response processing for a received packet is not performed, thereby reducing the burden on the processing of the central processing unit, and regarding packets transmitted from the same transmission source multiple times, By performing the processing, it is possible to provide an information processing apparatus and an image forming apparatus that can prevent a client apparatus that is a transmission source from erroneously recognizing that an abnormality has occurred in a transmission destination.

印刷装置の機能構成を説明するための機能ブロック図である。FIG. 3 is a functional block diagram for explaining a functional configuration of the printing apparatus. 受信履歴テーブルの一形態を説明する図である。It is a figure explaining one form of a reception history table. プロトコル制御部が実行する動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement which a protocol control part performs. 図3のステップS107において、応答判定部が実行する動作を説明するためのフローチャートである。4 is a flowchart for explaining an operation executed by a response determination unit in step S107 of FIG. 応答判定部の動作が終了した時点での受信履歴テーブルの構成例を説明する図である。It is a figure explaining the structural example of the reception history table at the time of the operation | movement of a response determination part being complete | finished. 応答判定部の動作が終了した時点での受信履歴テーブルの構成例を説明する図である。It is a figure explaining the structural example of the reception history table at the time of the operation | movement of a response determination part being complete | finished. 応答判定部の動作が終了した時点での受信履歴テーブルの構成例を説明する図である。It is a figure explaining the structural example of the reception history table at the time of the operation | movement of a response determination part being complete | finished. 図4のステップS202において、状態判断部が実行する動作を説明するためのフローチャートである。5 is a flowchart for explaining an operation executed by a state determination unit in step S202 of FIG. 印刷装置の機能構成を説明するための機能ブロック図である。FIG. 3 is a functional block diagram for explaining a functional configuration of the printing apparatus. 受信履歴テーブルの一形態を説明する図である。It is a figure explaining one form of a reception history table. 応答先テーブルの一形態を説明する図である。It is a figure explaining one form of a response destination table. プロトコル制御部が実行する動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement which a protocol control part performs. 図12のステップS407において、応答判定部が実行する動作を説明するためのフローチャートである。13 is a flowchart for explaining an operation performed by a response determination unit in step S407 of FIG. 図12のステップS407において、応答判定部が実行する動作を説明するためのフローチャートである。13 is a flowchart for explaining an operation performed by a response determination unit in step S407 of FIG. 応答判定部の動作が終了した時点での受信履歴テーブルの構成例を説明する図である。It is a figure explaining the structural example of the reception history table at the time of the operation | movement of a response determination part being complete | finished. 受信履歴テーブルの構成例を説明する図である。It is a figure explaining the structural example of a reception history table. 応答判定部の動作が終了した時点での受信履歴テーブルの構成例を説明する図である。It is a figure explaining the structural example of the reception history table at the time of the operation | movement of a response determination part being complete | finished. 応答判定部の動作が終了した時点での受信履歴テーブルの構成例を説明する図である。It is a figure explaining the structural example of the reception history table at the time of the operation | movement of a response determination part being complete | finished. 図13のステップS502において、状態判断部が実行する動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement which a state judgment part performs in step S502 of FIG.

以下、本発明の実施形態について図面を参照して説明する。なお、本発明は以下の記述に限定されるものではなく、本発明の要旨を逸脱しない範囲において適宜変更可能である。   Embodiments of the present invention will be described below with reference to the drawings. In addition, this invention is not limited to the following description, In the range which does not deviate from the summary of this invention, it can change suitably.

[第1の実施形態]
本実施形態の説明においては、情報処理装置であるとともに画像形成装置でもある印刷装置を本発明の好適な一例として説明する。また、本実施形態の説明において、パケットの通信に用いられる通信プロトコルは、SNMP(Simple Network Management Protocol)プロトコルを用いた形態について説明する。
[First embodiment]
In the description of this embodiment, a printing apparatus that is both an information processing apparatus and an image forming apparatus will be described as a preferred example of the present invention. In the description of the present embodiment, a mode in which the SNMP (Simple Network Management Protocol) protocol is used as the communication protocol used for packet communication will be described.

図1は、第1の実施形態にかかる印刷装置1100の機能構成を説明するための機能ブロック図である。印刷装置1100は、LAN1201を介したネットワーク接続を制御するネットワーク機能部1101と、ネットワーク関連機能以外の機能としての印刷機能等を担う印刷機能部1102とを備える。   FIG. 1 is a functional block diagram for explaining a functional configuration of a printing apparatus 1100 according to the first embodiment. The printing apparatus 1100 includes a network function unit 1101 that controls network connection via the LAN 1201 and a print function unit 1102 that performs a print function as a function other than the network-related functions.

ネットワーク機能部1101は、状態判定部1103と、応答判定部1104と、プロトコル制御部1105とを備え、LAN1201を介してネットワーク上の不特定のクライアント装置とのネットワーク通信を制御する。   The network function unit 1101 includes a state determination unit 1103, a response determination unit 1104, and a protocol control unit 1105, and controls network communication with unspecified client devices on the network via the LAN 1201.

ここで、状態判定部1103は、印刷ジョブの有無や印刷処理にかかる図示せぬ制御部としても機能する中央演算装置の使用時間等の情報を印刷機能部1102から取得し、印刷装置1100における処理の負荷状態を判定する。   Here, the state determination unit 1103 acquires information such as the presence / absence of a print job and the usage time of a central processing unit that also functions as a control unit (not shown) related to the printing process from the printing function unit 1102, and processes in the printing apparatus 1100 Determine the load state.

応答判定部1104は、印刷装置1100における処理の負荷状態を状態判定部1103から取得し、プロトコル制御部1105からの問い合わせに応じて、受信したパケットに対する応答処理を実行するか否かを判定する(以下、応答判定処理と称する)。なお、応答判定部1104は、印刷装置1100の起動からの経過時間を計時するとともに、受信履歴記憶部1107に時刻情報が記憶された時刻から現在時刻までの経過時間を算出する計時部1106と、応答判定処理の対象となるパケットの受信履歴を受信履歴テーブルとして記憶する受履歴記憶部1107とを備える。応答判定部1104は、応答判定処理において、受信履歴記憶部1107に記憶されている受信履歴を参照する一方で、プロトコル制御部1105から取得したパケットに含まれる情報を受信履歴記憶部1107に記憶させる。   The response determination unit 1104 acquires the processing load state in the printing apparatus 1100 from the state determination unit 1103, and determines whether or not to execute response processing for the received packet in response to an inquiry from the protocol control unit 1105 ( Hereinafter, this is referred to as response determination processing. Note that the response determination unit 1104 measures the elapsed time from the activation of the printing apparatus 1100, and calculates the elapsed time from the time when the time information is stored in the reception history storage unit 1107 to the current time. A reception history storage unit 1107 that stores a reception history of a packet to be subjected to a response determination process as a reception history table. The response determination unit 1104 refers to the reception history stored in the reception history storage unit 1107 in the response determination process, and stores the information included in the packet acquired from the protocol control unit 1105 in the reception history storage unit 1107. .

図2は、受信履歴記憶部1107が記憶する受信履歴テーブルの一形態を説明する図である。受信履歴テーブルは、応答判定部1104が応答判定処理を行ったパケットごとのエントリを有し、図2では、4つのエントリの記録状況を示している。各エントリは、パケット種別、送信元、前回受信時刻の各パケットに関する情報から構成されている。ここで、パケット種別には、受信したパケットのパケット種別情報が格納される。本実施形態においては、通信プロトコルとしてSNMPプロトコルを用いた形態について説明しているため、パケット種別として、「SNMP inform」、「SNMP Get」、又は「SNMP Set」といったSNMPプロトコルの種別情報が格納される。送信元には、パケットを送信したクライアント装置の送信元情報が格納される。通信プロトコルとしてSNMPプロトコルを用いた場合、送信元として、送信元IPアドレス情報が格納される。なお、例えば、MAC(Media Access Control)アドレス情報を送信元として格納させても本実施形態と同様な効果を得ることができる。前回受信時刻には、上記エントリが受信履歴テーブルに記録された時点の時刻情報が格納される。本実施形態においては、前回受信時刻として、計時部1106により取得された印刷装置1100の起動からの経過時間である時刻情報が格納される。なお、本実施形態においては、時刻情報としてmsecを単位とする数値を使用する形態について示している。   FIG. 2 is a diagram for explaining an example of the reception history table stored in the reception history storage unit 1107. The reception history table has an entry for each packet for which the response determination unit 1104 has performed a response determination process, and FIG. 2 shows the recording status of four entries. Each entry is made up of information on each packet, such as packet type, transmission source, and previous reception time. Here, the packet type stores the packet type information of the received packet. In this embodiment, since the form using the SNMP protocol is described as a communication protocol, the type information of the SNMP protocol such as “SNMP information”, “SNMP Get”, or “SNMP Set” is stored as the packet type. The The transmission source stores the transmission source information of the client device that transmitted the packet. When the SNMP protocol is used as the communication protocol, source IP address information is stored as the source. Note that, for example, even if MAC (Media Access Control) address information is stored as a transmission source, the same effect as in the present embodiment can be obtained. In the previous reception time, time information at the time when the entry is recorded in the reception history table is stored. In the present embodiment, time information that is an elapsed time from the activation of the printing apparatus 1100 acquired by the time measuring unit 1106 is stored as the previous reception time. In the present embodiment, a mode is shown in which a numerical value in units of msec is used as time information.

プロトコル制御部1105は、SNMPプロトコルをはじめとする各種プロトコルを制御するプロトコルスタックである。プロトコル制御部1105は、ネットワーク機能部1101が提供するプロトコル機能に対応して、同様の構成の機能ブロックが複数存在する。前述したように、本実施形態においては、ネットワークに接続されている装置の情報収集、監視のための通信プロトコルとして一般的なSNMPプロトコルを制御するプロトコル制御部1105をプロトコル制御部の一形態として説明する。   The protocol control unit 1105 is a protocol stack that controls various protocols including the SNMP protocol. The protocol control unit 1105 has a plurality of functional blocks having the same configuration corresponding to the protocol functions provided by the network function unit 1101. As described above, in this embodiment, the protocol control unit 1105 that controls a general SNMP protocol as a communication protocol for collecting and monitoring information of devices connected to the network is described as one form of the protocol control unit. To do.

図1に示すように、プロトコル制御部1105は、応答実行部1108と、種別判定部1109とを備える。応答実行部1108は、応答判定部1104の判定結果に基づき、受信したパケットの応答処理、又は廃棄処理を実行する。種別判定部1109は、LAN1201を介して受信したパケットの種類を判定し、受信したパケットが応答処理の判定対象となる種類のパケットであるか否かを判定する。そして、種別判定部1109は、受信したパケットの種別情報と当該パケットを送信した送信元情報とを抽出するとともに、応答判定部1104への問い合わせに併せて抽出した情報を通知する。   As shown in FIG. 1, the protocol control unit 1105 includes a response execution unit 1108 and a type determination unit 1109. The response execution unit 1108 executes response processing or discard processing for the received packet based on the determination result of the response determination unit 1104. The type determination unit 1109 determines the type of a packet received via the LAN 1201 and determines whether or not the received packet is a type of packet that is a determination target of response processing. Then, the type determination unit 1109 extracts the type information of the received packet and the transmission source information that transmitted the packet, and notifies the extracted information together with the inquiry to the response determination unit 1104.

印刷機能部1102は、図示せぬ画像形成部としての印刷手段を制御する他、印刷ジョブデータの解析、ユーザインタフェースの制御、印刷装置1100全体の状態管理など、ネットワーク関連機能以外の機能を制御する。また、印刷機能部1102は、状態判定部1103からの問い合わせに対して、印刷ジョブの有無や、印刷ジョブデータの解析処理にかかる中央演算装置の使用時間など、印刷装置1100における処理の負荷状態を判定するための情報を提供する。   The print function unit 1102 controls functions other than network-related functions such as print job data analysis, user interface control, and overall status management of the printing apparatus 1100 in addition to controlling printing means as an image forming unit (not shown). . In response to the inquiry from the state determination unit 1103, the print function unit 1102 indicates the processing load state in the printing apparatus 1100 such as the presence / absence of a print job and the usage time of the central processing unit for analysis processing of print job data. Provides information for determination.

なお、印刷装置1100は、上記以外にも、ネットワーク機能部1101や、印刷機能部1102等の機能発現にかかる制御プログラムを格納したり、受信履歴記憶部1107の記憶領域を構成する図示せぬROM(Read Only Memory)や、フラッシュメモリ等の記憶装置、中央演算装置のワーキングエリアとして機能するRAM(Read Only Memory)等の一次記憶装置、印刷装置1100の状態を表示するための、例えばLCD(Liquid Crystal Display)等の表示装置を備える表示部、管理者等からの指示を受付けるための、例えばタッチパネル等の入力手段を備える操作部、印刷装置1100の動作状態を監視するための、例えば、用紙位置検出センサ,温湿度センサ,濃度センサ等の各種センサ、印刷装置1100が備える各部材に電力を供給する電源等を備える。   In addition to the above, the printing apparatus 1100 stores a control program related to the function expression of the network function unit 1101 and the print function unit 1102, and a ROM (not shown) that configures a storage area of the reception history storage unit 1107. (Read Only Memory), a storage device such as a flash memory, a primary storage device such as a RAM (Read Only Memory) functioning as a working area of the central processing unit, an LCD (Liquid, for example) for displaying the status of the printing device 1100 A display unit having a display device such as a crystal display), an operation unit for receiving an instruction from an administrator or the like, for example, an input unit such as a touch panel, or for monitoring an operating state of the printing apparatus 1100, for example, a paper position Various sensors such as a detection sensor, a temperature / humidity sensor, a concentration sensor, and a power source that supplies power to each member included in the printing apparatus 1100 Equipped with a.

次に、このような構成を有する印刷装置1100の動作について以下に説明する。   Next, the operation of the printing apparatus 1100 having such a configuration will be described below.

まず、プロトコル制御部1105による動作について図3のフローチャートを用いて説明する。なお、プロトコル制御部1105による動作は、LAN1201を介してネットワークからパケットを受信することから開始される。ここで、説明の便宜上、受信したパケットを受信パケット1と称する。   First, the operation of the protocol control unit 1105 will be described using the flowchart of FIG. Note that the operation by the protocol control unit 1105 is started when a packet is received from the network via the LAN 1201. Here, for convenience of explanation, the received packet is referred to as a received packet 1.

ステップS101において、種別判定部1109は、受信パケット1から種別判定情報と送信元情報とを抽出する。ここで抽出されるパケットの種別判定情報は、通信プロトコルにより異なるが、SNMPプロトコルの場合、受信パケット1の宛先がブロードキャストアドレスか印刷装置1100固有のアドレス(ユニキャストアドレス)かの何れかであるか、及びSNMPのパケット種別を特定するためのコマンド種類(SNMP inform、SNMP Get、又はSNMP Set等)が抽出される。ここで、抽出された種別判定情報におけるコマンド種類にかかる情報を種別情報1、送信元情報を送信元情報1として説明する。   In step S <b> 101, the type determination unit 1109 extracts type determination information and transmission source information from the received packet 1. The packet type determination information extracted here differs depending on the communication protocol, but in the case of the SNMP protocol, whether the destination of the received packet 1 is either a broadcast address or an address (unicast address) unique to the printing apparatus 1100 , And a command type (such as SNMP information, SNMP Get, or SNMP Set) for specifying the SNMP packet type. Here, information relating to the command type in the extracted type determination information will be described as type information 1 and transmission source information will be described as transmission source information 1.

次に、種別判定部1109は、種別判定情報に基づき受信パケット1が受信制限の対象となる種別であるか否かを判定する(ステップS102)。なお、本実施形態においては、判定条件は予め設定されており、受信パケット1の宛先がブロードキャストアドレスである場合に受信制限の対象と判定するものとする。   Next, the type determination unit 1109 determines whether the received packet 1 is a type subject to reception restriction based on the type determination information (step S102). In this embodiment, determination conditions are set in advance, and it is determined that reception is restricted when the destination of the received packet 1 is a broadcast address.

ここで、受信パケット1の宛先がユニキャストアドレスであり、受信制限の対象外である場合(ステップS102 対象外)、種別判定部1109は、その旨を応答実行部1108に通知する。通知を受けた応答実行部1108は、受信パケット1の解析を行い(ステップS103)、当該解析結果に基づいて応答パケットを生成する(ステップS104)。次いで、応答実行部1108は、ステップS104において生成した応答パケットをLAN1201を介して送信し(ステップS105)、プロトコル制御部1105は待機状態へと戻る。なお、上記ステップS103からステップS105にかけての処理は、一般的なプロトコル制御の動作である。   Here, when the destination of the received packet 1 is a unicast address and is not subject to reception restriction (not subject to step S102), the type determination unit 1109 notifies the response execution unit 1108 to that effect. Upon receiving the notification, the response execution unit 1108 analyzes the received packet 1 (step S103), and generates a response packet based on the analysis result (step S104). Next, the response execution unit 1108 transmits the response packet generated in step S104 via the LAN 1201 (step S105), and the protocol control unit 1105 returns to the standby state. The processing from step S103 to step S105 is a general protocol control operation.

一方、受信パケット1の宛先がブロードキャストアドレスであり、受信制限の対象種類である場合(ステップS102 対象種類)、種別判定部1109は、抽出した種別情報1、送信元情報1を応答判定部1104に通知するとともに、応答判定の問い合わせを行う(ステップS106)。   On the other hand, when the destination of the received packet 1 is a broadcast address and is a target type subject to reception restriction (target type in step S102), the type determination unit 1109 sends the extracted type information 1 and transmission source information 1 to the response determination unit 1104. In addition to notifying, a response determination inquiry is made (step S106).

ここで、応答判定部1104から“応答する”との回答を得た場合(ステップS107 応答する)、種別判定部1109は、その旨を応答実行部1108に通知する。通知を受けた応答実行部1108は、ステップS103からステップS105にかけての処理を実行する。   When the response “response” is obtained from the response determination unit 1104 (response in step S107), the type determination unit 1109 notifies the response execution unit 1108 to that effect. Upon receiving the notification, the response execution unit 1108 executes the processing from step S103 to step S105.

一方、応答判定部1104から“応答しない”との回答を得た場合(ステップS107 応答しない)、種別判定部1109は受信パケット1を廃棄し(ステップS108)、プロトコル制御部1105は待機状態へと戻る。この場合、応答実行部1108によりステップS103からステップS105にかかる処理が実行されないため、中央演算装置の使用時間を削減することができる。   On the other hand, when the response “not responding” is obtained from the response determination unit 1104 (no response at step S107), the type determination unit 1109 discards the received packet 1 (step S108), and the protocol control unit 1105 enters the standby state. Return. In this case, since the processing from step S103 to step S105 is not executed by the response execution unit 1108, the usage time of the central processing unit can be reduced.

次に、図3のステップS107において、応答判定部1104が実行する動作について図4のフローチャートを用いて説明する。   Next, the operation executed by the response determination unit 1104 in step S107 of FIG. 3 will be described using the flowchart of FIG.

応答判定部1104による動作は、図3のステップS106において、種別判定部1109からの問い合わせを受けることから開始される。なお、このとき、応答判定部1104は、種別判定部1109からの応答判定の問い合わせを受けるとともに、種別情報1、送信元情報1を取得している。   The operation by the response determination unit 1104 is started by receiving an inquiry from the type determination unit 1109 in step S106 of FIG. At this time, the response determination unit 1104 receives a response determination inquiry from the type determination unit 1109 and acquires the type information 1 and the transmission source information 1.

応答判定部1104は、種別判定部1109からの問い合わせを受けると、状態判定部1103から印刷装置1100における処理の負荷状態を取得する(ステップS201)。   When the response determination unit 1104 receives an inquiry from the type determination unit 1109, the response determination unit 1104 acquires the processing load state in the printing apparatus 1100 from the state determination unit 1103 (step S201).

ここで、状態判定部1103から“高負荷状態”である旨の回答を得た場合(ステップS202 高負荷状態)、応答判定部1104は、受信履歴記憶部1107に記憶されている受信履歴テーブルを検索する。すなわち、応答判定部1104は、種別判定部1109から通知された種別情報1に合致するエントリを受信履歴テーブルのパケット種別から検索する(ステップS204)。   Here, when the response indicating that the state is the “high load state” is obtained from the state determination unit 1103 (step S202 high load state), the response determination unit 1104 displays the reception history table stored in the reception history storage unit 1107. Search for. That is, the response determination unit 1104 searches for an entry that matches the type information 1 notified from the type determination unit 1109 from the packet type in the reception history table (step S204).

受信履歴テーブルのエントリに種別情報1に該当するパケット種別が存在しない場合(ステップS205 履歴なし)、応答判定部1104による処理はステップS208に移行する。例えば、種別情報1−1として受信パケット1から抽出されたコマンド種類が、“SNMP Get−Next”であった場合、図2に示す受信履歴テーブルには、該当するエントリが存在しないため、応答判定部1104は履歴なしと判定し、ステップS208の処理に移行する。   When the packet type corresponding to the type information 1 does not exist in the entry of the reception history table (step S205, no history), the processing by the response determination unit 1104 proceeds to step S208. For example, if the command type extracted from the received packet 1 as the type information 1-1 is “SNMP Get-Next”, there is no corresponding entry in the reception history table shown in FIG. The unit 1104 determines that there is no history, and proceeds to the process of step S208.

受信履歴テーブルのエントリに種別情報1に該当するパケット種別が存在する場合(ステップS205 履歴有り)、応答判定部1104は、種別判定部1109から通知された送信元情報1に合致するエントリを受信履歴テーブルの送信元から検索する(ステップS206)。例えば、種別情報1−2として受信パケット1から抽出されたコマンド種類が、“SNMP Get”、送信元情報1−2として“192.168.100.150”であった場合、図2に示す受信履歴テーブルには、上記ステップS204において、該当するコマンド種類としてエントリ2、及びエントリ3が検索される。そして、ステップS206において、送信元情報1−2と合致するエントリとしてエントリ3が検索されることになる。   When there is a packet type corresponding to the type information 1 in the entry of the reception history table (step S205 with history), the response determination unit 1104 receives an entry that matches the transmission source information 1 notified from the type determination unit 1109 as a reception history. Search from the transmission source of the table (step S206). For example, when the command type extracted from the received packet 1 as the type information 1-2 is “SNMP Get” and the source information 1-2 is “192.168.100.150”, the reception shown in FIG. In the history table, entry 2 and entry 3 are searched as corresponding command types in step S204. In step S206, entry 3 is searched for as an entry that matches the source information 1-2.

受信履歴テーブルのエントリに送信元情報1に該当する送信元が存在しない場合(ステップS207 エントリなし)、応答判定部1104による処理はステップS208に移行する。例えば、種別情報1−3として受信パケット1から抽出されたコマンド種類が、“SNMP Get”、送信元情報1−3として“192.168.100.100”であった場合、エントリ2、及びエントリ3の何れとも合致しないので、応答判定部1104はエントリなしと判定し、ステップS208の処理に移行する。   If there is no transmission source corresponding to the transmission source information 1 in the entry of the reception history table (step S207, no entry), the processing by the response determination unit 1104 proceeds to step S208. For example, when the command type extracted from the received packet 1 as the type information 1-3 is “SNMP Get” and the source information 1-3 is “192.168.100.100”, the entry 2 and the entry Therefore, the response determination unit 1104 determines that there is no entry, and the process proceeds to step S208.

受信履歴テーブルのエントリに送信元情報1に該当する送信元が存在する場合(ステップS207 エントリあり)、応答判定部1104は、応答判定処理を行っている受信パケット1は、2回目以降の受信パケットであると判定する。例えば、種別情報1−2として受信パケット1から抽出されたコマンド種類が、“SNMP Get”、送信元情報1−2として“192.168.100.150”であって、エントリ3が検索された場合、応答判定部1104は、エントリ3の前回受信時刻の情報を受信履歴テーブルから取得し、前回受信からの経過時間を判定する。ここでは、計時部1106が、前回受信時刻と印刷装置1100の起動からの経過時間とを比較し、予め設定された閾値よりも大きいか否かで判定する。例えば、エントリ3を例にすると、前回受信時刻は“112025123”である。そして、例えば、閾値が010000000であるとし、現在時刻が“123025123”である場合、応答判定部1104は“範囲外”と判定し、ステップS212の処理に移行する。また、現在時刻が“114025123”である場合、応答判定部1104は“範囲内”と判定し、ステップS214の処理に移行する。なお、上記閾値は、受信履歴テーブルに受信した時刻が古いエントリが存在している場合を考慮したものであり、この閾値は、プロトコル仕様や受信履歴テーブルの記憶に使用するメモリ容量等を勘案して決定されるものとする。   When there is a transmission source corresponding to the transmission source information 1 in the entry of the reception history table (there is an entry in step S207), the response determination unit 1104 indicates that the reception packet 1 for which the response determination processing is being performed is the second and subsequent reception packets. It is determined that For example, the command type extracted from the received packet 1 as the type information 1-2 is “SNMP Get”, the source information 1-2 is “192.168.100.150”, and the entry 3 is searched. In this case, the response determination unit 1104 acquires information on the previous reception time of the entry 3 from the reception history table, and determines an elapsed time since the previous reception. Here, the timer unit 1106 compares the previous reception time with the elapsed time from the activation of the printing apparatus 1100, and determines whether it is greater than a preset threshold value. For example, taking entry 3 as an example, the previous reception time is “112025123”. For example, when the threshold value is 010000000 and the current time is “123025123”, the response determination unit 1104 determines “out of range”, and the process proceeds to step S212. If the current time is “114025123”, the response determination unit 1104 determines that the response is “within range”, and the process proceeds to step S214. Note that the above threshold value considers the case where an entry with an old reception time exists in the reception history table, and this threshold value takes into consideration the protocol specifications, the memory capacity used for storing the reception history table, and the like. Shall be determined.

よって、前回受信からの経過時間が閾値よりも小さい場合(ステップS211 範囲内)、応答判定部1104は、受信履歴テーブルからエントリ3を削除するとともに(ステップS214)、種別判定部1109に対して“応答する”と回答し(ステップS215)、待機状態へと戻る。この場合の一例として、種別情報1−2として受信パケット1から抽出されたコマンド種類が、“SNMP Get”、送信元情報1−2として“192.168.100.150”であって、経過時間が閾値よりも小さい場合における、応答判定部1104の動作が終了した時点での受信履歴テーブルの構成例を図5に示した。   Therefore, when the elapsed time from the previous reception is smaller than the threshold (within step S211 range), the response determination unit 1104 deletes entry 3 from the reception history table (step S214), and the type determination unit 1109 "Respond" (step S215) and return to the standby state. As an example in this case, the command type extracted from the received packet 1 as the type information 1-2 is “SNMP Get”, the source information 1-2 is “192.168.100.150”, and the elapsed time FIG. 5 shows a configuration example of the reception history table at the time when the operation of the response determination unit 1104 is completed when is smaller than the threshold.

一方、前回受信からの経過時間が閾値よりも大きい場合(ステップS211 範囲外)、応答判定部1104は、エントリ3は無効であると判定するので、エントリ3の前回受信時刻を更新するとともに(ステップS212)、種別判定部1109に対して“応答しない”と回答し(ステップS213)、待機状態へと戻る。この場合の一例として、種別情報1−2として受信パケット1から抽出されたコマンド種類が、“SNMP Get”、送信元情報1−2として“192.168.100.150”であって、経過時間が閾値よりも大きい場合における、応答判定部1104の動作が終了した時点での受信履歴テーブルの構成例を図6に示した。   On the other hand, when the elapsed time from the previous reception is larger than the threshold (outside the range of step S211), the response determination unit 1104 determines that entry 3 is invalid, and therefore updates the previous reception time of entry 3 (step In step S212, the response to the type determination unit 1109 is “no response” (step S213), and the process returns to the standby state. As an example in this case, the command type extracted from the received packet 1 as the type information 1-2 is “SNMP Get”, the source information 1-2 is “192.168.100.150”, and the elapsed time FIG. 6 shows a configuration example of the reception history table at the time when the operation of the response determination unit 1104 is completed when is larger than the threshold.

ところで、ステップS205、及びステップS207において、該当するエントリが検索されなかった場合、応答判定部1104は、受信パケット1は1回目の受信であると判定し、受信履歴テーブルに種別情報1と送信元情報1とを有する新規エントリを追加し(ステップS208)、計時部1106から現在時刻を取得して、前回受信時刻に格納させる(ステップS209)。そして、応答判定部1104は、種別判定部1109に対して“応答しない”と回答し(ステップS210)、待機状態に戻る。この場合の一例として、種別情報1−4として受信パケット1から抽出されたコマンド種類が、“SNMP Get−Next”、送信元情報1−4として“202.254.190.15”であった場合における、応答判定部1104の動作が終了した時点での受信履歴テーブルの構成例を図7に示した。   In step S205 and step S207, if the corresponding entry is not searched, the response determination unit 1104 determines that the received packet 1 is the first reception, and the type information 1 and the transmission source are included in the reception history table. A new entry having information 1 is added (step S208), the current time is acquired from the time measuring unit 1106, and stored in the previous reception time (step S209). Then, the response determination unit 1104 replies “no response” to the type determination unit 1109 (step S210), and returns to the standby state. As an example of this case, when the command type extracted from the received packet 1 as the type information 1-4 is “SNMP Get-Next” and the source information 1-4 is “202.254.190.15”. FIG. 7 shows a configuration example of the reception history table at the time when the operation of the response determination unit 1104 is completed.

最後に、図4のステップS202において、状態判断部1103が実行する動作について図8のフローチャートを用いて説明する。   Finally, the operation executed by the state determination unit 1103 in step S202 of FIG. 4 will be described using the flowchart of FIG.

状態判断部1103による動作は、図4のステップS201において、応答判定部1104からの印刷装置1100における処理の負荷状態の問い合わせを受けることにより開始される。   The operation by the state determination unit 1103 is started when an inquiry about the processing load state in the printing apparatus 1100 is received from the response determination unit 1104 in step S201 of FIG.

状態判定部1103は、応答判定部1104からの印刷装置1100における処理の負荷状態の問い合わせを受けると、印刷機能部1102から処理負荷に関する情報を取得する(ステップS301)。ここでは、状態判定部1103は、印刷機能部1102を介して処理中の印刷ジョブの有無、及び印刷ジョブデータ解析処理に使用されている中央演算装置の処理時間にかかる情報を取得するものとする。   When the status determination unit 1103 receives an inquiry about the processing load status in the printing apparatus 1100 from the response determination unit 1104, the status determination unit 1103 acquires information on the processing load from the printing function unit 1102 (step S301). Here, it is assumed that the state determination unit 1103 acquires information regarding the presence or absence of a print job being processed and the processing time of the central processing unit used for the print job data analysis process via the print function unit 1102. .

具体的には、状態判定部1103は、処理中の印刷ジョブが存在し、かつ印刷ジョブデータ解析処理に使用されている中央演算装置の使用時間が50%を超えている場合、すなわち、専ら印刷ジョブデータの解析処理が優先され、応答処理に対する対応が困難である非通常状態(ビジー状態)を“高負荷状態”、それ以外を“低負荷状態”と判定する(ステップS302)。なお、本実施形態においては、中央演算装置の使用時間が50%を超えている場合を判断基準としているが、当該判断基準は、印刷機能部1102の機能を考慮して決定されるものであり、例えば、中央演算装置への通電が制御される省電力状態としてのディープスリープ状態であり、応答処理に即応することが困難な状態を非通常状態と規定してもかまわない。   Specifically, the state determination unit 1103 prints when there is a print job being processed and the usage time of the central processing unit used for print job data analysis processing exceeds 50%, that is, printing is performed exclusively. An abnormal state (busy state) in which job data analysis processing is prioritized and it is difficult to respond to response processing is determined as a “high load state”, and other cases are determined as a “low load state” (step S302). In this embodiment, the case where the usage time of the central processing unit exceeds 50% is used as a determination criterion. However, the determination criterion is determined in consideration of the function of the printing function unit 1102. For example, a state that is a deep sleep state as a power saving state in which energization to the central processing unit is controlled, and a state in which it is difficult to immediately respond to a response process may be defined as an abnormal state.

そして、状態判定部1103は、ステップS302において判定した負荷状態を対応判定部1104に回答し(ステップS303)、待機状態に戻る。   Then, the state determination unit 1103 returns the load state determined in step S302 to the correspondence determination unit 1104 (step S303), and returns to the standby state.

以上のように、第1の実施形態によれば、例えば、印刷ジョブの処理中といった、印刷装置1100が高負荷状態であるときに、受信パケットに対する応答処理を行わないために、中央演算装置の処理時間を削減することができる。また、これに加えて、同一送信元からの複数回のパケットを受信した場合には、応答処理を行うため、ネットワーク上のクライアント装置が印刷装置1100に異常が発生したと誤認識することを防止することができる。   As described above, according to the first embodiment, when the printing apparatus 1100 is in a high load state, for example, during processing of a print job, a response process for a received packet is not performed. Processing time can be reduced. In addition, when a plurality of packets from the same transmission source are received, response processing is performed to prevent a client device on the network from misrecognizing that an abnormality has occurred in the printing apparatus 1100. can do.

[第2の実施形態]
第2の実施形態においては、第1の実施形態で示した効果に加え、受信したパケット数をカウントすることにより、クライアント装置から連続して複数回パケットを受信した場合に実行される応答処理の回数を最適化するとともに、印刷装置の負荷状態に対応して、段階的に応答先を制限することにより、重要なクライアント装置に対する応答処理を継続しながら、ネットワーク処理にかかる処理負担を軽減する形態について説明する。
[Second Embodiment]
In the second embodiment, in addition to the effects shown in the first embodiment, by counting the number of received packets, response processing executed when packets are continuously received from a client device a plurality of times. A form that reduces the processing load on network processing while optimizing the number of times and limiting response destinations in stages according to the load state of the printing device, while continuing response processing to important client devices Will be described.

図9は、第2の実施形態にかかる印刷装置2100の機能構成を説明するための機能ブロック図である。印刷装置2100は、LAN2201を介したネットワーク接続を制御するネットワーク機能部2101と、ネットワーク関連機能以外の機能としての印刷機能等を担う印刷機能部2102とを備える。   FIG. 9 is a functional block diagram for explaining a functional configuration of the printing apparatus 2100 according to the second embodiment. The printing apparatus 2100 includes a network function unit 2101 that controls network connection via the LAN 2201 and a print function unit 2102 that performs a print function as a function other than the network-related functions.

ネットワーク機能部2101は、状態判定部2103と、応答判定部2104と、プロトコル制御部2105とを備え、LAN2201を介してネットワーク上の不特定のクライアント装置とのネットワーク通信を制御する。   The network function unit 2101 includes a state determination unit 2103, a response determination unit 2104, and a protocol control unit 2105, and controls network communication with unspecified client devices on the network via the LAN 2201.

ここで、状態判定部2103は、印刷ジョブの有無や印刷処理にかかる図示せぬ制御部としても機能する中央演算装置の使用時間等の情報を印刷機能部2102から取得し、印刷装置2100における処理の負荷状態を“低負荷状態”、“中負荷状態”、“高負荷状態”の3段階で判定する。   Here, the state determination unit 2103 acquires information such as the presence / absence of a print job and the usage time of the central processing unit that also functions as a control unit (not shown) related to the printing process from the printing function unit 2102, and the processing in the printing apparatus 2100 Are determined in three stages: “low load state”, “medium load state”, and “high load state”.

応答判定部2104は、印刷装置2100における処理の負荷状態を状態判定部2103から取得し、プロトコル制御部2105からの問い合わせに応じて、受信したパケットに対する応答判定処理を実行するか否かを判定する。なお、応答判定部2104は、印刷装置2100の起動からの経過時間を計時するとともに、受信履歴記憶部2107に時刻情報が記憶された時刻から現在時刻までの経過時間を算出する計時部2106と、応答判定処理の対象となるパケットの受信履歴を受信履歴テーブルとして記憶する受履歴記憶部2107と、応答先記憶部2110とを備える。応答判定部2104は、応答判定処理において、受信履歴記憶部2107に記憶されている受信履歴を参照する一方で、プロトコル制御部2105から取得したパケットに含まれる情報を受信履歴記憶部2107に記憶させる。   The response determination unit 2104 acquires the processing load state in the printing apparatus 2100 from the state determination unit 2103, and determines whether or not to execute response determination processing for the received packet in response to an inquiry from the protocol control unit 2105. . The response determination unit 2104 measures the elapsed time from the activation of the printing apparatus 2100 and calculates the elapsed time from the time when the time information is stored in the reception history storage unit 2107 to the current time, A reception history storage unit 2107 that stores a reception history of a packet subjected to response determination processing as a reception history table, and a response destination storage unit 2110 are provided. In the response determination process, the response determination unit 2104 refers to the reception history stored in the reception history storage unit 2107, and stores the information included in the packet acquired from the protocol control unit 2105 in the reception history storage unit 2107. .

図10は、受信履歴記憶部2107が記憶する受信履歴テーブルの一形態を説明する図である。受信履歴テーブルは、応答判定部2104が応答判定処理を行ったパケットごとのエントリを有し、図10では、4つのエントリの記録状況を示している。各エントリは、パケット種別、送信元、初回受信時刻、及び受信カウンタの各パケットに関する情報から構成されている。ここで、パケット種別には、受信したパケットのパケット種別情報が格納される。本実施形態においては、通信プロトコルとしてSNMPプロトコルを用いた形態について説明しているため、パケット種別として、「SNMP inform」、「SNMP Get」、又は「SNMP Set」といったSNMPプロトコルの種別情報が格納される。送信元には、パケットを送信したクライアント装置の送信元情報が格納される。通信プロトコルとしてSNMPプロトコルを用いた場合、送信元として、送信元IPアドレス情報が格納される。なお、例えば、MAC(Media Access Control)アドレス情報を送信元として格納させても本実施形態と同様な効果を得ることができる。初回受信時刻には、上記エントリが新規に受信履歴テーブルに記録された時点の時刻情報が格納される。本実施形態においては、初回受信時刻として、計時部2106により取得された印刷装置2100の起動からの経過時間である時刻情報が格納される。なお、本実施形態においては、時刻情報としてmsecを単位とする数値を使用する形態について示している。受信カウンタは、各エントリに合致するパケットを何回受信したかを示すカウンタ値が格納される。   FIG. 10 is a diagram for explaining an example of a reception history table stored in the reception history storage unit 2107. The reception history table has an entry for each packet for which the response determination unit 2104 has performed a response determination process, and FIG. 10 shows the recording status of four entries. Each entry is made up of information regarding each packet of the packet type, the transmission source, the first reception time, and the reception counter. Here, the packet type stores the packet type information of the received packet. In this embodiment, since the form using the SNMP protocol is described as a communication protocol, the type information of the SNMP protocol such as “SNMP information”, “SNMP Get”, or “SNMP Set” is stored as the packet type. The The transmission source stores the transmission source information of the client device that transmitted the packet. When the SNMP protocol is used as the communication protocol, source IP address information is stored as the source. Note that, for example, even if MAC (Media Access Control) address information is stored as a transmission source, the same effect as in the present embodiment can be obtained. In the first reception time, time information at the time when the entry is newly recorded in the reception history table is stored. In the present embodiment, time information that is an elapsed time from the activation of the printing apparatus 2100 acquired by the timer unit 2106 is stored as the first reception time. In the present embodiment, a mode is shown in which a numerical value in units of msec is used as time information. The reception counter stores a counter value indicating how many times a packet matching each entry has been received.

宛先記憶部2110は、状態判定部2103が、印刷装置2100における処理の負荷を“高負荷状態”と判定した場合に、応答処理を実行する対象となる応答先を記憶する。図11は、本実施形態にかかる応答先記憶部2100に記憶される応答先テーブルの一形態を説明する図である。   The destination storage unit 2110 stores a response destination to be subjected to response processing when the state determination unit 2103 determines that the processing load in the printing apparatus 2100 is “high load state”. FIG. 11 is a diagram illustrating an example of a response destination table stored in the response destination storage unit 2100 according to the present embodiment.

なお、応答先テーブルの各エントリは、応答先の情報から構成され、当該応答先は応答処理の対象となる応答先を示す。本実施形態においては、応答先の情報として応答先のIPアドレスを記憶するものとする。そして、応答先テーブルは、予め印刷装置2100の管理者によって設定され応答先記憶部2110に記憶されるものとする。   Each entry in the response destination table includes response destination information, and the response destination indicates a response destination to be subjected to response processing. In this embodiment, it is assumed that the response destination IP address is stored as response destination information. The response destination table is set in advance by the administrator of the printing apparatus 2100 and stored in the response destination storage unit 2110.

プロトコル制御部2105は、SNMPプロトコルをはじめとする各種プロトコルを制御するプロトコルスタックである。プロトコル制御部2105は、ネットワーク機能部2101が提供するプロトコル機能に対応して、同様の構成の機能ブロックが複数存在する。前述したように、本実施形態においては、ネットワークに接続されている装置の情報収集、監視のための通信プロトコルとして一般的なSNMPプロトコルを制御するプロトコル制御部2105をプロトコル制御部の一形態として説明する。   The protocol control unit 2105 is a protocol stack that controls various protocols including the SNMP protocol. The protocol control unit 2105 has a plurality of functional blocks having the same configuration corresponding to the protocol functions provided by the network function unit 2101. As described above, in this embodiment, the protocol control unit 2105 that controls a general SNMP protocol as a communication protocol for collecting and monitoring information of devices connected to the network is described as one form of the protocol control unit. To do.

図9に示すように、プロトコル制御部2105は、応答実行部2108と、種別判定部2109とを備える。応答実行部2108は、応答判定部2104の判定結果に基づき、受信したパケットの応答処理、又は廃棄処理を実行する。種別判定部1109は、LAN2201を介して受信したパケットの種類を判定し、受信したパケットが応答処理の判定対象となる種類のパケットであるか否かを判定する。そして、種別判定部2109は、受信したパケットの種別情報と当該パケットを送信した送信元情報とを抽出するとともに、応答判定部2104への問い合わせに併せて抽出した情報を通知する。   As shown in FIG. 9, the protocol control unit 2105 includes a response execution unit 2108 and a type determination unit 2109. The response execution unit 2108 executes response processing or discard processing of the received packet based on the determination result of the response determination unit 2104. The type determination unit 1109 determines the type of a packet received via the LAN 2201, and determines whether or not the received packet is a type of packet that is a determination target of response processing. Then, the type determination unit 2109 extracts the type information of the received packet and the transmission source information that transmitted the packet, and notifies the extracted information together with the inquiry to the response determination unit 2104.

印刷機能部2102は、図示せぬ画像形成部としての印刷手段を制御する他、印刷ジョブデータの解析、ユーザインタフェースの制御、印刷装置2100全体の状態管理など、ネットワーク関連機能以外の機能を制御する。また、印刷機能部2102は、状態判定部2103からの問い合わせに対して、印刷ジョブの有無や、印刷ジョブデータの解析処理にかかる中央演算装置の使用時間など、印刷装置2100における処理の負荷状態を判定するための情報を提供する。   The print function unit 2102 controls functions other than network-related functions such as print job data analysis, user interface control, and overall status management of the printing apparatus 2100 in addition to controlling printing means as an image forming unit (not shown). . In response to the inquiry from the state determination unit 2103, the print function unit 2102 displays the processing load state in the printing apparatus 2100 such as the presence / absence of a print job and the usage time of the central processing unit for analysis processing of print job data. Provides information for determination.

なお、印刷装置2100は、上記以外にも、ネットワーク機能部2101や、印刷機能部2102等の機能発現にかかる制御プログラムを格納したり、受信履歴記憶部2107、応答先記憶部2100の記憶領域を構成する図示せぬROMや、フラッシュメモリ等の記憶装置、中央演算装置のワーキングエリアとして機能するRAM等の一次記憶装置、印刷装置2100の状態を表示するための、例えばLCD等の表示装置を備える表示部、管理者等からの指示を受付けるための、例えばタッチパネル等の入力手段を備える操作部、印刷装置2100の動作状態を監視するための、例えば、用紙位置検出センサ,温湿度センサ,濃度センサ等の各種センサ、印刷装置2100が備える各部材に電力を供給する電源等を備える。   In addition to the above, the printing apparatus 2100 stores control programs related to function expression such as the network function unit 2101 and the print function unit 2102, and stores the storage areas of the reception history storage unit 2107 and the response destination storage unit 2100. A non-illustrated ROM, a storage device such as a flash memory, a primary storage device such as a RAM that functions as a working area of the central processing unit, and a display device such as an LCD for displaying the status of the printing device 2100 are provided. For example, a sheet position detection sensor, a temperature / humidity sensor, a concentration sensor for monitoring an operation state of the display unit, an operation unit having an input unit such as a touch panel, etc. Etc., and a power source for supplying power to each member provided in the printing apparatus 2100.

次に、このような構成を有する印刷装置2100の動作について以下に説明する。   Next, the operation of the printing apparatus 2100 having such a configuration will be described below.

まず、プロトコル制御部2105による動作について図12のフローチャートを用いて説明する。なお、プロトコル制御部2105による動作は、LAN2201を介してネットワークからパケットを受信することから開始される。ここで、説明の便宜上、受信したパケットを受信パケット2と称する。   First, the operation of the protocol control unit 2105 will be described using the flowchart of FIG. Note that the operation by the protocol control unit 2105 starts when a packet is received from the network via the LAN 2201. Here, for convenience of explanation, the received packet is referred to as a received packet 2.

ステップS401において、種別判定部2109は、受信パケット2から種別判定情報と送信元情報とを抽出する。ここで抽出されるパケットの種別判定情報は、通信プロトコルにより異なるが、SNMPプロトコルの場合、受信パケット1の宛先がブロードキャストアドレスか印刷装置2100固有のアドレス(ユニキャストアドレス)かの何れかであるか、及びSNMPのパケット種別を特定するためのコマンド種類(SNMP inform、SNMP Get、又はSNMP Set等)が抽出される。ここで、抽出された種別判定情報におけるコマンド種類にかかる情報を種別情報2、送信元情報を送信元情報2として説明する。   In step S <b> 401, the type determination unit 2109 extracts type determination information and transmission source information from the received packet 2. The packet type determination information extracted here differs depending on the communication protocol, but in the case of the SNMP protocol, whether the destination of the received packet 1 is either a broadcast address or an address (unicast address) unique to the printing apparatus 2100 , And a command type (such as SNMP information, SNMP Get, or SNMP Set) for specifying the SNMP packet type. Here, information relating to the command type in the extracted type determination information will be described as type information 2 and transmission source information will be described as transmission source information 2.

次に、種別判定部2109は、種別判定情報に基づき受信パケット2が受信制限の対象となる種別であるか否かを判定する(ステップS402)。なお、本実施形態においては、判定条件は予め設定されており、受信パケット2の宛先がブロードキャストアドレスである場合に受信制限の対象と判定するものとする。   Next, the type determination unit 2109 determines whether the received packet 2 is a type subject to reception restriction based on the type determination information (step S402). In this embodiment, determination conditions are set in advance, and it is determined that reception is restricted when the destination of the received packet 2 is a broadcast address.

ここで、受信パケット2の宛先がユニキャストアドレスであり、受信制限の対象外である場合(ステップS402 対象外)、種別判定部2109は、その旨を応答実行部2108に通知する。通知を受けた応答実行部2108は、受信パケット2の解析を行い(ステップS403)、当該解析結果に基づいて応答パケットを生成する(ステップS404)。次いで、応答実行部2108は、ステップS404において生成した応答パケットをLAN2201を介して送信し(ステップS405)、プロトコル制御部2105は待機状態へと戻る。なお、上記ステップS403からステップS405にかけての処理は、一般的なプロトコル制御の動作である。   Here, when the destination of the received packet 2 is a unicast address and is not subject to reception restriction (not subject to step S402), the type determination unit 2109 notifies the response execution unit 2108 to that effect. Upon receiving the notification, the response execution unit 2108 analyzes the received packet 2 (step S403), and generates a response packet based on the analysis result (step S404). Next, the response execution unit 2108 transmits the response packet generated in step S404 via the LAN 2201 (step S405), and the protocol control unit 2105 returns to the standby state. The process from step S403 to step S405 is a general protocol control operation.

一方、受信パケット2の宛先がブロードキャストアドレスであり、受信制限の対象種類である場合(ステップS402 対象種類)、種別判定部2109は、抽出した種別情報2、送信元情報2を応答判定部2104に通知するとともに、応答判定の問い合わせを行う(ステップS406)。   On the other hand, when the destination of the received packet 2 is a broadcast address and is a target type subject to reception restriction (target type in step S402), the type determination unit 2109 sends the extracted type information 2 and transmission source information 2 to the response determination unit 2104. In addition to notifying, a response determination inquiry is made (step S406).

ここで、応答判定部2104から“応答する”との回答を得た場合(ステップS407 応答する)、種別判定部2109は、その旨を応答実行部2108に通知する。通知を受けた応答実行部2108は、ステップS403からステップ4105にかけての処理を実行する。   When the response “response” is obtained from the response determination unit 2104 (response in step S407), the type determination unit 2109 notifies the response execution unit 2108 to that effect. Upon receiving the notification, the response execution unit 2108 executes the processing from step S403 to step 4105.

一方、応答判定部2104から“応答しない”との回答を得た場合(ステップS407 応答しない)、種別判定部2109は受信パケット2を廃棄し(ステップS408)、プロトコル制御部2105は待機状態へと戻る。この場合、応答実行部2108によりステップS403からステップS405にかかる処理が実行されないため、中央演算装置の使用時間を削減することができる。   On the other hand, when the response “not responding” is obtained from the response determining unit 2104 (no response at step S407), the type determining unit 2109 discards the received packet 2 (step S408), and the protocol control unit 2105 enters the standby state. Return. In this case, since the response execution unit 2108 does not execute the processing from step S403 to step S405, the usage time of the central processing unit can be reduced.

次に、図12のステップS407において、応答判定部2104が実行する動作について図13、及び図14のフローチャートを用いて説明する。   Next, the operation executed by the response determination unit 2104 in step S407 of FIG. 12 will be described using the flowcharts of FIGS.

応答判定部2104による動作は、図12のステップS406において、種別判定部2109からの問い合わせを受けることから開始される。なお、このとき、応答判定部2104は、種別判定部2109からの応答判定の問い合わせを受けるとともに、種別情報2、送信元情報2を取得している。   The operation of the response determination unit 2104 is started by receiving an inquiry from the type determination unit 2109 in step S406 of FIG. At this time, the response determination unit 2104 receives a response determination inquiry from the type determination unit 2109 and acquires the type information 2 and the transmission source information 2.

応答判定部2104は、種別判定部2109からの問い合わせを受けると、状態判定部2103から印刷装置2100における処理の負荷状態を取得する(ステップS501)。   Upon receiving an inquiry from the type determination unit 2109, the response determination unit 2104 acquires the processing load state in the printing apparatus 2100 from the state determination unit 2103 (step S501).

ここで、状態判定部2103から“低負荷状態”である旨の回答を得た場合(ステップS502 低負荷状態)、応答判定部2104は、種別判定部1109に対して“応答する”と回答し(ステップS503)、待機状態へと戻る。   Here, when a response indicating that the state is the “low load state” is obtained from the state determination unit 2103 (step S502, a low load state), the response determination unit 2104 responds to the type determination unit 1109 as “respond”. (Step S503), the process returns to the standby state.

一方、状態判定部2103から“中負荷状態”である旨の回答を得た場合(ステップS502 中負荷状態)、応答判定部2104は、受信履歴記憶部2107に記憶されている受信履歴テーブルを検索する。すなわち、応答判定部2104は、種別判定部2109から通知された種別情報2に合致するエントリを受信履歴テーブルのパケット種別から検索する(ステップS504)。   On the other hand, when the response indicating that the state is “medium load state” is obtained from the state determination unit 2103 (step S502: medium load state), the response determination unit 2104 searches the reception history table stored in the reception history storage unit 2107. To do. That is, the response determination unit 2104 searches for an entry that matches the type information 2 notified from the type determination unit 2109 from the packet type in the reception history table (step S504).

受信履歴テーブルのエントリに種別情報2に該当するパケット種別が存在しない場合(ステップS505 履歴なし)、応答判定部2104による処理はステップS508に移行する。例えば、種別情報2−1として受信パケット2から抽出されたコマンド種類が、“SNMP Get−Next”であった場合、図10に示す受信履歴テーブルには、該当するエントリが存在しないため、応答判定部2104は履歴なしと判定し、ステップS508の処理に移行する。   When the packet type corresponding to the type information 2 does not exist in the entry of the reception history table (step S505, no history), the processing by the response determination unit 2104 proceeds to step S508. For example, if the command type extracted from the received packet 2 as the type information 2-1 is “SNMP Get-Next”, there is no corresponding entry in the reception history table shown in FIG. The unit 2104 determines that there is no history, and proceeds to the process of step S508.

受信履歴テーブルのエントリに種別情報2に該当するパケット種別が存在する場合(ステップS505 履歴有り)、応答判定部2104は、種別判定部2109から通知された送信元情報2に合致するエントリを受信履歴テーブルの送信元から検索する(ステップS506)。例えば、種別情報2−2として受信パケット2から抽出されたコマンド種類が、“SNMP Get”、送信元情報2−2として“192.168.100.150”であった場合、図10に示す受信履歴テーブルには、上記ステップS504において、該当するコマンド種類としてエントリ2、及びエントリ3が検索される。そして、ステップS506において、送信元情報2−2と合致するエントリとしてエントリ3が検索されることになる。   When there is a packet type corresponding to the type information 2 in the entry of the reception history table (step S505: history exists), the response determination unit 2104 receives an entry that matches the transmission source information 2 notified from the type determination unit 2109 as a reception history. A search is made from the transmission source of the table (step S506). For example, when the command type extracted from the received packet 2 as the type information 2-2 is “SNMP Get” and the source information 2-2 is “192.168.100.150”, the reception shown in FIG. In step S504, the history table is searched for entry 2 and entry 3 as corresponding command types. In step S506, entry 3 is searched for as an entry that matches source information 2-2.

受信履歴テーブルのエントリに送信元情報2に該当する送信元が存在しない場合(ステップS507 エントリなし)、応答判定部2104による処理はステップS508に移行する。例えば、種別情報2−3として受信パケット2から抽出されたコマンド種類が、“SNMP Get”、送信元情報2−3として“192.168.100.100”であった場合、エントリ2、及びエントリ3の何れとも合致しないので、応答判定部2104はエントリなしと判定し、ステップS508の処理に移行する。   If there is no transmission source corresponding to the transmission source information 2 in the entry of the reception history table (step S507: no entry), the processing by the response determination unit 2104 proceeds to step S508. For example, when the command type extracted from the received packet 2 as the type information 2-3 is “SNMP Get” and the source information 2-3 is “192.168.100.100”, the entry 2 and the entry Therefore, the response determination unit 2104 determines that there is no entry, and the process proceeds to step S508.

受信履歴テーブルのエントリに送信元情報2に該当する送信元が存在する場合(ステップS507 エントリあり)、応答判定部2104は、応答判定処理を行っている受信パケット2は、複数回目の受信パケットであると判定する。例えば、種別情報2−2として受信パケット2から抽出されたコマンド種類が、“SNMP Get”、送信元情報2−2として“192.168.100.150”であって、エントリ3が検索された場合、応答判定部2104は、エントリ3の初回受信時刻の情報を受信履歴テーブルから取得し、初回受信からの経過時間を判定する。ここでは、計時部2106が、初回受信時刻と印刷装置2100の起動からの経過時間とを比較し、予め設定された閾値よりも大きいか否かで判定する。例えば、エントリ3を例にすると、初回受信時刻は“112025123”である。そして、例えば、閾値が010000000であるとし、現在時刻が“123025123”である場合、応答判定部2104は“範囲外”と判定し、ステップS513の処理に移行する。また、現在時刻が“114025123”である場合、応答判定部2104は“範囲内”と判定し、ステップS516の処理に移行する。なお、上記閾値は、受信履歴テーブルに受信した時刻が古いエントリが存在している場合を考慮したものであり、この閾値は、プロトコル仕様や受信履歴テーブルの記憶に使用するメモリ容量等を勘案して決定されるものとする。   When there is a transmission source corresponding to the transmission source information 2 in the entry of the reception history table (there is an entry in step S507), the response determination unit 2104 indicates that the reception packet 2 for which the response determination processing is being performed is a plurality of reception packets. Judge that there is. For example, the command type extracted from the received packet 2 as the type information 2-2 is “SNMP Get”, the source information 2-2 is “192.168.100.150”, and the entry 3 is searched. In this case, the response determination unit 2104 acquires information on the first reception time of the entry 3 from the reception history table, and determines an elapsed time from the first reception. Here, the timer unit 2106 compares the first reception time with the elapsed time since the activation of the printing apparatus 2100, and determines whether or not the time is larger than a preset threshold value. For example, taking entry 3 as an example, the initial reception time is “112025123”. For example, when the threshold value is 010000000 and the current time is “123025123”, the response determination unit 2104 determines “out of range”, and the process proceeds to step S513. If the current time is “114025123”, the response determination unit 2104 determines that the response is “within range”, and the process proceeds to step S516. Note that the above threshold value considers the case where an entry with an old reception time exists in the reception history table, and this threshold value takes into consideration the protocol specifications, the memory capacity used for storing the reception history table, and the like. Shall be determined.

よって、前回受信からの経過時間が閾値よりも小さい場合(ステップS512 範囲内)、応答判定部2104は、ステップS506において、検索されたエントリ3の受信カウンタのカウンタ値がカウンタ制限値の範囲内であるか否かを判定する。ここで、カウンタ制限値は、同一種別のパケットを同一送信元から受信した場合に、何回目の受信に対して応答処理を行わせるかを定めるための制限値であり、クライアント装置の動作やプロトコル仕様、印刷機能部2102の機能等を考慮して適切な値が予め設定されている。   Therefore, when the elapsed time from the previous reception is smaller than the threshold value (within the range of step S512), the response determination unit 2104 determines in step S506 that the counter value of the reception counter of the searched entry 3 is within the counter limit value range. It is determined whether or not there is. Here, the counter limit value is a limit value for determining how many times the reception processing is performed when the same type of packet is received from the same transmission source. Appropriate values are set in advance in consideration of the specifications, functions of the print function unit 2102, and the like.

ここで、受信カウンタ値が予め設定されたカウンタ制限値の範囲外である場合(ステップS516 範囲外)、応答判定部2104は、受信履歴テーブルからエントリ3を削除するとともに(ステップS517)、種別判定部2109に対して“応答する”と回答し(ステップS518)、待機状態へと戻る。この場合の一例として、種別情報2−2として受信パケット2から抽出されたコマンド種類が、“SNMP Get”、送信元情報2−2として“192.168.100.150”であって、経過時間が閾値よりも小さく、且つ、カウンタ制限値が“3”である場合における、応答判定部2104の動作が終了した時点での受信履歴テーブルの構成例を図15に示した。   Here, when the reception counter value is outside the range of the preset counter limit value (step S516, out of range), the response determination unit 2104 deletes entry 3 from the reception history table (step S517) and determines the type. Reply “Respond” to the unit 2109 (step S518), and the process returns to the standby state. As an example in this case, the command type extracted from the received packet 2 as the type information 2-2 is “SNMP Get”, the source information 2-2 is “192.168.100.150”, and the elapsed time FIG. 15 shows a configuration example of the reception history table at the time when the operation of the response determination unit 2104 is completed when is smaller than the threshold and the counter limit value is “3”.

一方、受信カウンタ値が予め設定されたカウンタ制限値の範囲内である場合(ステップS516 範囲内)、応答判定部2104は、エントリ3の受信カウンタのカウンタ値を加算する(ステップS519)。例えば、図10におけるエントリ3の受信カウンタのカウンタ値は“2”である。ここで、カウンタ制限値が“4”である場合、エントリ3の受信カウンタのカウンタ値は、カウンタ制限値よりも小さいため、ステップS510においてカウンタ値の加算処理が実行される。この場合の受信履歴テーブルの構成例を図16に示した。   On the other hand, when the reception counter value is within the range of the preset counter limit value (within the range of step S516), the response determination unit 2104 adds the counter value of the reception counter of entry 3 (step S519). For example, the counter value of the reception counter of entry 3 in FIG. 10 is “2”. Here, when the counter limit value is “4”, the counter value of the reception counter of the entry 3 is smaller than the counter limit value, and thus the addition process of the counter value is executed in step S510. A configuration example of the reception history table in this case is shown in FIG.

そして、応答判定部2104は、種別判定部2109に対して“応答しない”と回答し(ステップS520)、待機状態へと戻る。   Then, the response determination unit 2104 replies “no response” to the type determination unit 2109 (step S520), and returns to the standby state.

ところで、初回受信からの経過時間が閾値よりも大きい場合(ステップS512 範囲外)、応答判定部2104は、エントリ3は無効であると判定するので、エントリ3の初回受信時刻を更新するとともに(ステップS513)、エントリ3の受信カウンタのカウンタ値を1に初期化する(ステップS514)。   By the way, when the elapsed time from the first reception is larger than the threshold (outside the range of step S512), the response determination unit 2104 determines that entry 3 is invalid, and therefore updates the first reception time of entry 3 (step S512). S513), the counter value of the reception counter of entry 3 is initialized to 1 (step S514).

そして、応答判定部2104は、種別判定部2109に対して“応答しない”と回答し(ステップS515)、待機状態へと戻る。この場合の一例として、種別情報2−2として受信パケット1から抽出されたコマンド種類が、“SNMP Get”、送信元情報2−2として“192.168.100.150”であって、経過時間が閾値よりも大きい場合における、応答判定部2104の動作が終了した時点での受信履歴テーブルの構成例を図17に示した。   Then, the response determination unit 2104 replies “no response” to the type determination unit 2109 (step S515), and returns to the standby state. As an example in this case, the command type extracted from the received packet 1 as the type information 2-2 is “SNMP Get”, the source information 2-2 is “192.168.100.150”, and the elapsed time FIG. 17 shows a configuration example of the reception history table at the time when the operation of the response determination unit 2104 is completed when is larger than the threshold.

ところで、ステップS505、及びステップS507において、該当するエントリが検索されなかった場合、応答判定部2104は、受信パケット2は1回目の受信であると判定し、受信履歴テーブルに種別情報2と送信元情報2とを有する新規エントリを追加し(ステップS508)、計時部1106から現在時刻を取得して、初回受信時刻に格納させる(ステップS509)。さらに、応答判定部2104は、受信カウンタのカウンタ値に1を格納させるとともに(ステップS510)、種別判定部2109に対して“応答しない”と回答し(ステップS511)、待機状態に戻る。この場合の一例として、種別情報2−4として受信パケット2から抽出されたコマンド種類が、“SNMP Get−Next”、送信元情報2−4として“202.254.190.15”であった場合における、応答判定部2104の動作が終了した時点での受信履歴テーブルの構成例を図18に示した。   In step S505 and step S507, if the corresponding entry is not searched, the response determination unit 2104 determines that the received packet 2 is received for the first time, and the type information 2 and the transmission source are included in the reception history table. A new entry having information 2 is added (step S508), the current time is acquired from the time measuring unit 1106, and stored in the first reception time (step S509). Further, the response determination unit 2104 stores 1 in the counter value of the reception counter (step S510), replies “no response” to the type determination unit 2109 (step S511), and returns to the standby state. As an example of this case, when the command type extracted from the received packet 2 as the type information 2-4 is “SNMP Get-Next”, and “202.254.190.15” as the source information 2-4 FIG. 18 shows a configuration example of the reception history table at the time when the operation of the response determination unit 2104 is completed.

一方、状態判定部2103から“高負荷状態”である旨の回答を得た場合(ステップS502 高負荷状態)、応答判定部2104は、応答先記憶部2110に記憶されている応答先テーブルを参照し、送信先情報2に一致するエントリを検索する(ステップS520)。   On the other hand, when the response indicating that the state is the “high load state” is obtained from the state determination unit 2103 (step S502: a high load state), the response determination unit 2104 refers to the response destination table stored in the response destination storage unit 2110. Then, an entry matching the transmission destination information 2 is searched (step S520).

ここで、送信先情報2に一致するエントリが応答先テーブルに存在しない場合(ステップS521 該当なし)、応答判定部2104は、種別判定部2109に対して“応答しない”と回答し(ステップS522)、待機状態に戻る。   Here, when there is no entry matching the transmission destination information 2 in the response destination table (not applicable in step S521), the response determination unit 2104 answers “no response” to the type determination unit 2109 (step S522). Return to the standby state.

一方、送信先情報2に一致するエントリが応答先テーブルに存在する場合(ステップS521 該当有り)、応答判定部2104による処理はステップS504に移行する。   On the other hand, if an entry that matches the destination information 2 exists in the response destination table (corresponding to step S521), the process by the response determination unit 2104 proceeds to step S504.

最後に、図13のステップS502において、状態判断部2103が実行する動作について図19のフローチャートを用いて説明する。   Finally, the operation executed by the state determination unit 2103 in step S502 of FIG. 13 will be described using the flowchart of FIG.

状態判断部2103による動作は、図13のステップS501において、応答判定部2104からの印刷装置2100における処理の負荷状態の問い合わせを受けることにより開始される。   The operation by the state determination unit 2103 is started when an inquiry about the processing load state in the printing apparatus 2100 is received from the response determination unit 2104 in step S501 of FIG.

状態判定部2103は、応答判定部2104からの印刷装置2100における処理の負荷状態の問い合わせを受けると、印刷機能部2102から処理負荷に関する情報を取得する(ステップS601)。ここでは、状態判定部2103は、印刷機能部2102を介して処理中の印刷ジョブの有無、及び印刷ジョブデータ解析処理に使用されている中央演算装置の処理時間にかかる情報を取得するものとする。   When the status determination unit 2103 receives an inquiry about the processing load status in the printing apparatus 2100 from the response determination unit 2104, the status determination unit 2103 acquires information on the processing load from the printing function unit 2102 (step S601). Here, it is assumed that the state determination unit 2103 acquires information regarding the presence or absence of a print job being processed and the processing time of the central processing unit used for the print job data analysis process via the print function unit 2102. .

具体的には、状態判定部2103は、処理中の印刷ジョブが存在し、かつ印刷ジョブデータ解析処理に使用されている中央演算装置の使用時間が80%を超えている場合は“高負荷状態”であると判定する。また、中央演算処理装置の使用時間が50%〜80%の場合、すなわち、専ら印刷ジョブデータの解析処理が優先され、応答処理に対する対応が困難である非通常状態(ビジー状態)を“中負荷状態”、それ以外を“低負荷状態”と判定する(ステップS602)。なお、本実施形態における判断基準は、印刷機能部2102の機能を考慮して決定されるものであり、例えば、中央演算装置への通電が制御される省電力状態としてのディープスリープ状態であり、応答処理に即応することが困難な状態を非通常状態と規定してもかまわない。。   Specifically, the state determination unit 2103 determines that the “high load state” is present when there is a print job being processed and the usage time of the central processing unit used for the print job data analysis processing exceeds 80%. ". Further, when the usage time of the central processing unit is 50% to 80%, that is, the print job data analysis process is given priority, and the non-normal state (busy state), which is difficult to respond to the response process, is designated as “medium load”. The state is determined as “low load state” (step S602). Note that the determination criterion in the present embodiment is determined in consideration of the function of the print function unit 2102, for example, a deep sleep state as a power saving state in which energization to the central processing unit is controlled, A state where it is difficult to immediately respond to the response process may be defined as an abnormal state. .

そして、状態判定部2103は、ステップS602において判定した負荷状態を対応判定部2104に回答し(ステップS603)、待機状態に戻る。   Then, the state determination unit 2103 returns the load state determined in step S602 to the correspondence determination unit 2104 (step S603), and returns to the standby state.

以上のように、第2の実施形態によれば、第1の実施形態の効果に加え、同一種別のパケットを同一送信元から複数回受信した場合の応答回数を定めることにより、印刷機能の処理優先度に最適な応答処理の負荷を定めることができる。また、同一種類のパケットに対して、複数回受信することに加え、当該パケットの送信元を判定することにより、さらなる応答処理の処理負荷を低減させることが可能である。したがって、印刷機能の処理負荷に応じて、段階的にネットワークの応答処理の負荷を削減せさることが可能な上、必要なクライアント装置に対しては、応答処理が行われるといった効果を得ることができる。   As described above, according to the second embodiment, in addition to the effects of the first embodiment, by determining the number of responses when a packet of the same type is received a plurality of times from the same transmission source, the printing function processing It is possible to determine the response processing load that is optimal for the priority. Further, in addition to receiving the same type of packet a plurality of times, it is possible to reduce the processing load of further response processing by determining the transmission source of the packet. Therefore, it is possible to reduce the response processing load of the network in a stepwise manner according to the processing load of the printing function, and to obtain an effect that the response processing is performed for a necessary client device. it can.

本実施形態の説明においては、印刷装置を一例として説明したが、本発明はこれに限定されず、例えば、MFP装置やスキャナ装置等のネットワーク機能を有する情報処理装置であれば適用可能である。   In the description of the present embodiment, the printing apparatus has been described as an example. However, the present invention is not limited to this, and can be applied to any information processing apparatus having a network function such as an MFP apparatus or a scanner apparatus.

本実施形態の説明においては、通信プロトコルとしてSNMPプロトコルを一例として説明したが、本発明はこれに限定さず、例えば、mDNS(Multicast Domain Name System)や、NetBIOS Name Service等のネットワーク上に接続されている装置の情報収集、監視に使用される通信プロトコルに対しても実現可能である。   In the description of the present embodiment, the SNMP protocol has been described as an example of the communication protocol. However, the present invention is not limited to this, and is connected to a network such as mDNS (Multicast Domain Name System) or NetBIOS Name Service. It can also be realized for a communication protocol used for collecting and monitoring information on a device.

本実施形態の説明においては、印刷装置における処理の負荷状態を判定する情報として、印刷ジョブの有無と、印刷ジョブデータの処理にかかる中央演算装置の使用時間を一例として説明したが、本発明はこれに限定されず、例えば、メモリ使用量、タスク数といった負荷状態を判定することが可能な情報であれば適用可能である。   In the description of the present embodiment, as information for determining the processing load state in the printing apparatus, the presence / absence of a print job and the usage time of the central processing unit for processing the print job data are described as examples. However, the present invention is not limited to this, and any information that can determine the load state such as the memory usage amount and the number of tasks is applicable.

本実施形態の説明においては、応答処理の判定を行うためのパケット受信回数を一律に設定しているが、本発明はこれに限定されず、パケット種別ごとに受信回数の閾値を変更するように構成することも可能である。   In the description of the present embodiment, the number of packet receptions for performing the response process determination is uniformly set. However, the present invention is not limited to this, and the threshold of the number of receptions is changed for each packet type. It is also possible to configure.

本実施形態の説明においては、高負荷状態であるか否かの判定に基づき、応答処理の判定を行っているが、本発明はこれに限定されず、例えば、省電力状態であるか否かの判定に基づき、応答処理の判定を行う構成としてもかまわない。   In the description of the present embodiment, the response process is determined based on the determination as to whether or not the load is high. However, the present invention is not limited to this, for example, whether or not it is in the power saving state. Based on this determination, the response processing may be determined.

本実施形態の説明においては、応答先テーブルとして1種類用意し、負荷状態を3段階で判定することにより応答処理の判定を行っているが、本発明はこれに限定されず、例えば、応答先テーブルを複数用意し、4段階以上の負荷状態で判判定することにより応答処理の判定を行う構成としてもかまわない。   In the description of the present embodiment, one type of response destination table is prepared and the response process is determined by determining the load state in three stages. However, the present invention is not limited to this, and for example, the response destination A configuration may be adopted in which a plurality of tables are prepared, and the response process is determined by determining in four or more load states.

1100、2100 印刷装置
1101、2101 ネットワーク機能部
1102、2102 印刷機能部
1103、2103 状態判定部
1104、2104 応答判定部
1105、2105 プロトコル制御部
1106、2106 計時部
1107、2107 受信履歴記憶部
1108、2108 応答実行部
1109、2109 種別判定部
1201、2201 LAN
2110 応答先記憶部
1100, 2100 Printing device 1101, 2101 Network function unit 1102, 2102 Print function unit 1103, 2103 Status determination unit 1104, 2104 Response determination unit 1105, 2105 Protocol control unit 1106, 2106 Timekeeping unit 1107, 2107 Reception history storage unit 1108, 2108 Response execution unit 1109, 2109 Type determination unit 1201, 2201 LAN
2110 Response destination storage unit

Claims (10)

パケットを受信し、当該パケットの種別を判定する種別判定部と、
自機の動作状態を判定する状態判定部と、
前記パケットの種別及び前記自機の動作状態に基づいて、前記パケットに応答する応答処理を実行するか否かを判定する応答判定部と、
前記応答判定部による判定結果に基づいて、前記応答処理を実行する応答実行部とを備え、
前記応答判定部は、自機の動作状態が前記応答処理に対応するのが困難な状態である非通常状態であって、同一種別のパケットを所定個数以上受信したときには、前記応答処理を実行すると判定すること
を特徴とする情報処理装置。
A type determination unit that receives a packet and determines the type of the packet;
A state determination unit for determining an operation state of the own machine;
A response determination unit that determines whether or not to execute a response process in response to the packet, based on the type of the packet and the operation state of the device;
A response execution unit that executes the response process based on a determination result by the response determination unit;
The response determination unit executes the response process when the operation state of the own apparatus is in a non-normal state in which it is difficult to correspond to the response process and when a predetermined number or more of the same type of packets are received. An information processing apparatus characterized by determining.
受信したパケットの種別毎の受信履歴を記憶する記憶部を備え、
前記応答判定部は、更に前記受信履歴に基づいて、前記応答処理を実行するか否かを判定すること
を特徴とする請求項1記載の情報処理装置。
A storage unit for storing a reception history for each type of received packet;
The information processing apparatus according to claim 1, wherein the response determination unit further determines whether or not to execute the response process based on the reception history.
前記応答判定部は、前記受信履歴が前記記憶部に記憶されてからの経過時間に基づいて、前記応答処理を実行するか否かを判定すること
を特徴とする請求項2記載の情報処理装置。
The information processing apparatus according to claim 2, wherein the response determination unit determines whether or not to execute the response process based on an elapsed time since the reception history is stored in the storage unit. .
前記受信履歴は、受信したパケットの送信元の送信元情報を含み、
前記応答判定部は、前記送信元が所定の条件を満たすときには、前記応答処理を実行すると判定すること
を特徴とする請求項2、又は請求項3記載の情報処理装置。
The reception history includes transmission source information of a transmission source of a received packet,
The information processing apparatus according to claim 2, wherein the response determination unit determines to execute the response process when the transmission source satisfies a predetermined condition.
前記非通常状態は、動作状態がビジー状態、又は省電力状態であること
を特徴とする請求項1乃至請求項4の何れか1項に記載の情報処理装置。
5. The information processing apparatus according to claim 1, wherein the abnormal state is a busy state or a power saving state in an operation state.
パケットを受信し、当該パケットの種別を判定する種別判定部と、
受信したパケットに基づく画像を形成する画像形成部と、
前記画像形成部を統括的に制御する制御部と、
前記制御部の動作状態を判定する状態判定部と、
前記パケットの種別及び前記制御部の動作状態に基づいて、前記パケットに応答する応答処理を実行するか否かを判定する応答判定部と、
前記応答判定部による判定結果に基づいて、前記応答処理を実行する応答実行部とを備え、
前記応答判定部は、制御部の動作状態が前記応答処理に対応するのが困難な状態である非通常状態であって、同一種別のパケットを所定個数以上受信したときには、前記応答処理を実行すると判定すること
を特徴とする画像形成装置。
A type determination unit that receives a packet and determines the type of the packet;
An image forming unit that forms an image based on the received packet;
A control unit that comprehensively controls the image forming unit;
A state determination unit for determining an operation state of the control unit;
A response determination unit that determines whether or not to execute a response process in response to the packet, based on the type of the packet and the operation state of the control unit;
A response execution unit that executes the response process based on a determination result by the response determination unit;
The response determination unit executes the response process when an operation state of the control unit is in a non-normal state in which it is difficult to correspond to the response process and when a predetermined number or more of the same type of packets are received. An image forming apparatus characterized by determining.
受信したパケットの種別毎の受信履歴を記憶する記憶部を備え、
前記応答判定部は、更に前記受信履歴に基づいて、前記応答処理を実行するか否かを判定すること
を特徴とする請求項6記載の画像形成装置。
A storage unit for storing a reception history for each type of received packet;
The image forming apparatus according to claim 6, wherein the response determination unit further determines whether to execute the response process based on the reception history.
前記応答判定部は、前記受信履歴が前記記憶部に記憶されてからの経過時間に基づいて、前記応答処理を実行するか否かを判定すること
を特徴とする請求項7記載の画像形成装置。
The image forming apparatus according to claim 7, wherein the response determination unit determines whether or not to execute the response process based on an elapsed time since the reception history is stored in the storage unit. .
前記受信履歴は、受信したパケットの送信元の送信元情報を含み、
前記応答判定部は、前記送信元が所定の条件を満たすときには、前記応答処理を実行すると判定すること
を特徴とする請求項7、又は請求項8記載の画像形成装置。
The reception history includes transmission source information of a transmission source of a received packet,
The image forming apparatus according to claim 7, wherein the response determination unit determines to execute the response process when the transmission source satisfies a predetermined condition.
前記非通常状態は、動作状態がビジー状態、又は省電力状態であること
を特徴とする請求項6乃至請求項9の何れか1項に記載の画像形成装置。
The image forming apparatus according to claim 6, wherein the operation state is a busy state or a power saving state in the non-normal state.
JP2010107312A 2010-05-07 2010-05-07 Information processing apparatus and image forming apparatus Pending JP2011237922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010107312A JP2011237922A (en) 2010-05-07 2010-05-07 Information processing apparatus and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010107312A JP2011237922A (en) 2010-05-07 2010-05-07 Information processing apparatus and image forming apparatus

Publications (1)

Publication Number Publication Date
JP2011237922A true JP2011237922A (en) 2011-11-24

Family

ID=45325847

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010107312A Pending JP2011237922A (en) 2010-05-07 2010-05-07 Information processing apparatus and image forming apparatus

Country Status (1)

Country Link
JP (1) JP2011237922A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7404818B2 (en) 2019-11-28 2023-12-26 株式会社リコー Equipment, mode switching method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7404818B2 (en) 2019-11-28 2023-12-26 株式会社リコー Equipment, mode switching method and program

Similar Documents

Publication Publication Date Title
US8898490B2 (en) Information processing apparatus, control method therefore, and storage medium
US8489908B2 (en) Information processing apparatus, power mode control method, and power mode control program product
US8610914B2 (en) Communication apparatus, communication method, computer readable medium and image forming apparatus
JP4966876B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, PRINT CONTROL PROGRAM
US8732497B2 (en) Data processing apparatus, method for controlling data processing apparatus, and storage medium storing program
EP2169995A1 (en) Radio network system and control node switching method
JP2010244464A (en) Information processing apparatus, network interface device, control method thereof, and program
US9563190B2 (en) Power management system, electronic apparatus, and computer-readable medium
JP4720520B2 (en) Printing device
JP5034828B2 (en) COMMUNICATION SYSTEM, RELAY DEVICE, AND PROGRAM
JP5717398B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND CONTROL PROGRAM
JP5796593B2 (en) Monitoring system, monitoring target device, monitoring method, and program
EP2940931A1 (en) Method and device for waking inactive link
JP2011237922A (en) Information processing apparatus and image forming apparatus
US20120047241A1 (en) Apparatus, system, and method of managing an image forming device, and medium storing control program
JP5735853B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD AND PROGRAM
JP2023116267A (en) Information processing apparatus, method for controlling information processing apparatus, and program
JP2010200046A (en) Power management system
JP2012212464A (en) Information processing device, power mode control method, power mode control program, and storage medium
JP7197986B2 (en) Information processing device, information processing method
JP5952802B2 (en) Response system and response method
JP6444174B2 (en) Image forming apparatus, image forming apparatus control method, and program
US20170171412A1 (en) Information processing device, information processing system, server and non-transitory recording medium
JP2013097478A (en) Network communication apparatus, electronic apparatus, and program
JP2012119984A (en) Communication equipment, communication method and program