JP2013051571A - 処理端末および処理方法 - Google Patents
処理端末および処理方法 Download PDFInfo
- Publication number
- JP2013051571A JP2013051571A JP2011188939A JP2011188939A JP2013051571A JP 2013051571 A JP2013051571 A JP 2013051571A JP 2011188939 A JP2011188939 A JP 2011188939A JP 2011188939 A JP2011188939 A JP 2011188939A JP 2013051571 A JP2013051571 A JP 2013051571A
- Authority
- JP
- Japan
- Prior art keywords
- server
- reconnection
- timing
- xmpp
- connection
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/121—Facilitating exception or error detection and recovery, e.g. fault, media or consumables depleted
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1236—Connection management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1287—Remote printer device, e.g. being remote from client or server via internet
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1288—Remote printer device, e.g. being remote from client or server in client-server-printer device configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/40—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1218—Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
- G06F3/122—Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to computing resources, e.g. memory, CPU
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1267—Job repository, e.g. non-scheduled jobs, delay printing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
【解決手段】サーバーと接続を確立して通信する通信手段と,前記通信によって前記サーバーから取得する情報に基づいて所定の処理を実行する処理手段と,前記接続の切断を検知する切断検知手段と,前記接続の切断が検知された場合,試行する間隔の期待値が所定の一定値となる条件を満たしたランダムな第一タイミングにおいて前記サーバーとの再接続を繰り返し試行する再接続手段と,を備える処理端末。
【選択図】図2
Description
本発明は,この問題を解決するために創作されたもので,サーバーと接続される複数の処理端末における再接続をサーバーの負荷を分散しながら早期に確立することを目的とする。
この場合,各処理端末においては,一定の間隔毎に1回の再試行が確実に実行されることになる。すなわち,複数の処理端末の試行機会がより一層平準化されることになる。なお、ランダムな第一タイミングにおいて試行する再接続の間隔の期待値が一定になる範囲であれば、再接続が各1回試行される期間と期間の間に、例えば交互に1秒と2秒の空白期間を挿入するなど、長さが一定でない短い期間を挿入しても良い。
この場合,第一タイミングの間隔自体がランダムなので,各処理端末における一定の間隔毎の再試行回数は一致しないものの,第一タイミングの間隔の期待値が所定の一定値であるため,各処理端末において再接続の試行が繰り返されると,複数の処理端末の試行機会が平準化されることになる。
この場合,切断から短期間の内に接続が可能な状態に遷移していれば,最初の第一タイミングが到来する前に接続を再確立することが可能となる。なお,サーバーの障害によって接続が切断されており,かつ,第二タイミングの到来前にサーバーが復旧していれば,第二タイミングにおいてはサーバーに再接続の試行が集中することになるが,障害発生から一定時間経過まではサーバーを起動しない運用を定めておけば,第二タイミングにおけるサーバーの負荷集中によって再度障害が発生することはない。そして,サーバー以外の障害によって接続が切断された場合には,再接続を試行する処理端末の台数が限定されるため,サーバーへの再接続の試行が集中することもない。
サーバーに接続される処理端末の台数に応じて,再接続の試行によるサーバーへの負荷集中の程度が決まる。したがって,接続され得る処理端末の台数に応じた第一タイミングの間隔の期待値を決める接続制御情報をサーバーに登録しておき,処理端末がサーバーから取得する接続制御情報に基づいて第一タイミングを設定すれば,第一タイミングの間隔を最適化することができる。なお,接続制御情報は,再接続の試行間隔の期待値を一義的に設定し得る情報であればどのような情報であっても良く,例えば,処理端末の出荷台数や,処理端末のサーバーへの登録台数や,処理端末のサーバーへの実際の接続台数等を接続制御情報として設定し得る。
1.構成
次に上述のプリンター3を処理装置として機能させる処理方法の第一実施例について説明する。図1に示す印刷システムにおいては,通信端末1からプリンター3に対応付けられた電子メールアドレス宛の電子メールが添付ファイルとともに送信されたとき,プリンター3において添付ファイルの印刷が即座に実行されることが望まれる。また,プリンター3が印刷要求を即時に取得するためにサーバー2をHTTPに基づいたメッセージを使ってポーリングすることはサーバー2の負荷とネットワークトラフィックの観点から望ましくない。そこで,プリンター3はXMPPに基づいた印刷要求をサーバー2から取得する。XMPPは,双方向にメッセージを送信できる所謂プッシュ型プロトコルであるため,プリンター3によるサーバー2のポーリングは不要となる。しかし,XMPPに基づいた常時接続が切断されると,通信端末1からプリンター3に対応付けられた電子メールアドレス宛の電子メールが送信されてからプリンター3において印刷が実行されるまでに遅延が生ずる。そこで本実施例においては,図2に示す手順でXMPPに基づいた常時接続を維持する。図2に示す処理は,主に,上述した接続制御モジュール332を実行するCPU31によって実行されるが,接続制御モジュール332とOS331が随所で協働することはいうまでもない。
一様乱数αの長さの時間が経過すると,CPU31はサーバー2とのXMPP接続の再接続を試行する(S115)。これにより,各プリンター3においては,ランダムな第一タイミングにおいてXMPP接続の再接続が試行されることになる。また,各プリンター3においては,長さβの時間毎に1回のXMPP再接続が試行されることになる。したがって,サーバー2と常時接続される複数のプリンター3におけるXMPP再接続機会は,サーバー2の負荷を分散しながら平準化される。[y1]
第1タイミングでの再接続の試行回数がγ回未満の場合,CPU31はステップS113からの一連の処理を再び実行する。これにより,毎回ランダムに設定される第一タイミングにおいて最大γ回だけXMPPの再接続が試行される。
プリンター3を処理装置として機能させる処理方法の第二実施例について説明する。第二実施例では,XMPP再接続を試行する第一タイミングの間隔自体がランダムに設定され,第一タイミングの間隔の期待値が予め設定されたβとなるように設定される。第一実施例で説明したステップS101からS112までの処理は第一実施例と同一であるため説明を省略し,以下,ステップS112以後の処理について具体的に説明することとする。
一様乱数ωの長さの時間が経過すると,CPU31はサーバー2とのXMPP接続の再接続を試行する(S125)。これにより,図5に示すように,ランダムな間隔ωを空けた第一タイミングにおいてXMPP接続の再接続が試行されることになる。本実施例では,第一タイミングの間隔自体がランダムに設定されるので,各プリンター3における一定の間隔毎の再試行回数は一致しないものの,第一タイミングの間隔の期待値をβとして第一タイミングが設定されるため,各プリンター3においてXMPP再接続の試行が繰り返されると,複数のプリンター3の試行機会が平準化されることになる。
第一タイミングにおけるXMPP再接続の試行回数がγ回未満の場合,CPU31はステップS123からの一連の処理を再び実行する。
尚,本発明の技術的範囲は,上述した実施例に限定されるものではなく,以下の1つ又は複数の変形例を組み合わせる等,本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。
また、βやαやωの単位は本発明の要旨を逸脱しない範囲内で任意に決定してもよく、例えば、秒であってもよいし、0.1秒であってもよいし、クロック周期であってもよい。
また,サーバー2は物理的に独立した複数のコンピューターによって構成されてもよいし,単一のコンピューターによって構成されても良い。
また,プリンター3とサーバー2との常時接続のための通信プロトコルについては,XMPP以外の通信プロトコルを用いても良い。例えば,SIP(Session Initiation Protocol)やSIMPLE(SIP for Instant Messaging and Presence Leveraging Extensions)といったXMPP以外のプッシュ型通信プロトコル(サーバーからクライアントに対する処理を実行するためにクライアントからの要求を必要としないプロトコル)を用いて送信しても良い。
また,プリンター以外の様々な情報機器を処理端末として本発明を適用できることはいうまでもない。
Claims (6)
- サーバーと接続を確立して通信する通信手段と,
前記通信によって前記サーバーから取得する情報に基づいて所定の処理を実行する処理手段と,
前記接続の切断を検知する切断検知手段と,
前記接続の切断が検知された場合,試行する間隔の期待値が所定の一定値となる条件を満たしたランダムな第一タイミングにおいて前記サーバーとの再接続を繰り返し試行する再接続手段と,
を備える処理端末。 - 前記再接続手段は,前記所定の一定値と長さが等しい期間毎にランダムなタイミングで到来する前記第一タイミングにおいて前記サーバーとの再接続を試行する,
請求項1に記載の処理端末。 - 前記再接続手段は,試行する間隔の期待値が所定の一定値となる条件を満たしたランダムな長さの間隔で到来する前記第一タイミングにおいて前記サーバーとの再接続を試行する,
請求項1に記載の処理端末。 - 前記再接続手段は,前記接続の切断が検知された後,最初の前記第一タイミングが到来する前の所定の第二タイミングにおいて,前記サーバーとの再接続を試行する,
請求項1から3のいずれか一項に記載の処理端末。 - 前記再接続手段は,前記サーバーから取得する接続制御情報に基づいて前記所定の一定値を設定する,
請求項1から4のいずれか一項に記載の処理端末。 - サーバーとの接続を確立して通信し,
前記通信によって前記サーバーから取得する情報に基づいて所定の処理を実行し,
前記接続の切断を検知し、
前記接続の切断が検知された場合,試行間隔の期待値が所定の一定値となる条件を満たしたランダムな第一タイミングにおいて前記サーバーとの再接続を繰り返し試行する、
ことを含む処理方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011188939A JP2013051571A (ja) | 2011-08-31 | 2011-08-31 | 処理端末および処理方法 |
US13/596,630 US20130054818A1 (en) | 2011-08-31 | 2012-08-28 | Processing terminal and processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011188939A JP2013051571A (ja) | 2011-08-31 | 2011-08-31 | 処理端末および処理方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013051571A true JP2013051571A (ja) | 2013-03-14 |
Family
ID=47745300
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011188939A Withdrawn JP2013051571A (ja) | 2011-08-31 | 2011-08-31 | 処理端末および処理方法 |
Country Status (2)
Country | Link |
---|---|
US (1) | US20130054818A1 (ja) |
JP (1) | JP2013051571A (ja) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014179017A (ja) * | 2013-03-15 | 2014-09-25 | Brother Ind Ltd | 中継装置、画像処理装置および通信システム |
JP2015104034A (ja) * | 2013-11-27 | 2015-06-04 | シャープ株式会社 | ネットワークシステム、常時接続方法、電子機器、サーバ、プログラム |
JP2016197469A (ja) * | 2016-08-24 | 2016-11-24 | ブラザー工業株式会社 | 中継サーバ及び通信装置 |
JP2017092681A (ja) * | 2015-11-09 | 2017-05-25 | セイコーエプソン株式会社 | ネットワークシステム、クライアント、及び、クライアントの制御方法 |
US10469608B2 (en) | 2013-03-15 | 2019-11-05 | Brother Kogyo Kabushiki Kaisha | Relay server system and communication apparatus |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102387069B (zh) * | 2011-10-08 | 2014-05-07 | 华为技术有限公司 | 客户端与服务端的连接方法及系统、客户端和服务端 |
CN104919435B (zh) * | 2013-01-30 | 2018-08-24 | 精工爱普生株式会社 | 控制系统、控制系统的控制方法以及控制装置 |
US20150149523A1 (en) * | 2013-11-27 | 2015-05-28 | Sharp Kabushiki Kaisha | Network system, constant connection method, communication method,electronic device, constant connection server, application server, and program |
US20150149524A1 (en) * | 2013-11-27 | 2015-05-28 | Sharp Kabushiki Kaisha | Network system, constant connection method, electronic device, server, and program |
CN105142235B (zh) * | 2015-08-13 | 2019-02-26 | 珠海格力电器股份有限公司 | 空调机组的通讯方法及装置 |
JP6387925B2 (ja) * | 2015-09-01 | 2018-09-12 | コニカミノルタ株式会社 | 画像処理システム、画像処理装置及びプログラム |
US10362147B2 (en) * | 2015-10-09 | 2019-07-23 | Seiko Epson Corporation | Network system and communication control method using calculated communication intervals |
JP7281071B2 (ja) * | 2019-02-15 | 2023-05-25 | 京セラドキュメントソリューションズ株式会社 | 電子機器、その制御方法及び制御プログラム |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4535466A (en) * | 1983-08-10 | 1985-08-13 | The United States Of America As Represented By The Secretary Of The Air Force | Random timer |
US5790536A (en) * | 1989-01-31 | 1998-08-04 | Norand Corporation | Hierarchical communication system providing intelligent data, program and processing migration |
US6714983B1 (en) * | 1989-04-14 | 2004-03-30 | Broadcom Corporation | Modular, portable data processing terminal for use in a communication network |
US5673252A (en) * | 1990-02-15 | 1997-09-30 | Itron, Inc. | Communications protocol for remote data generating stations |
JP2909165B2 (ja) * | 1990-07-27 | 1999-06-23 | 株式会社東芝 | 広帯域通信網、エンドユーザ端末、通信網、広帯域通信ノード、通信ノード、インターフェースアダプタ、マルチポイント接続インターフェース、マルチポイント接続制御装置及びアクセスユニット |
US5966636A (en) * | 1995-11-29 | 1999-10-12 | Motorola, Inc. | Method and apparatus for multiple access over randomized slots with collision detection in a cable telephony system |
US6810263B1 (en) * | 1999-12-22 | 2004-10-26 | Denso Corporation | Packet data reconnection timing control in mobile communication systems |
US7441041B2 (en) * | 2003-11-29 | 2008-10-21 | Microsoft Corporation | Network download regulation method and system |
JP4251207B2 (ja) * | 2006-04-28 | 2009-04-08 | ソニー株式会社 | サーバ装置、再接続制御方法、機器装置、再接続方法、プログラム、および記録媒体 |
JP5092877B2 (ja) * | 2008-04-30 | 2012-12-05 | ブラザー工業株式会社 | ツリー型放送システム、パケット送信方法、ノード装置、及びノード処理プログラム |
US8213915B1 (en) * | 2009-02-12 | 2012-07-03 | Sprint Communications Company, L.P. | HTTP session management |
-
2011
- 2011-08-31 JP JP2011188939A patent/JP2013051571A/ja not_active Withdrawn
-
2012
- 2012-08-28 US US13/596,630 patent/US20130054818A1/en not_active Abandoned
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014179017A (ja) * | 2013-03-15 | 2014-09-25 | Brother Ind Ltd | 中継装置、画像処理装置および通信システム |
US10469608B2 (en) | 2013-03-15 | 2019-11-05 | Brother Kogyo Kabushiki Kaisha | Relay server system and communication apparatus |
JP2015104034A (ja) * | 2013-11-27 | 2015-06-04 | シャープ株式会社 | ネットワークシステム、常時接続方法、電子機器、サーバ、プログラム |
JP2017092681A (ja) * | 2015-11-09 | 2017-05-25 | セイコーエプソン株式会社 | ネットワークシステム、クライアント、及び、クライアントの制御方法 |
JP2016197469A (ja) * | 2016-08-24 | 2016-11-24 | ブラザー工業株式会社 | 中継サーバ及び通信装置 |
Also Published As
Publication number | Publication date |
---|---|
US20130054818A1 (en) | 2013-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2013051571A (ja) | 処理端末および処理方法 | |
US7958247B2 (en) | HTTP push to simulate server-initiated sessions | |
EP3226481B1 (en) | Method for heartbeat packet processing by using proxy, apparatus, and communications system | |
CN107070689B (zh) | 减少使用网络保活消息时的错误警告的方法及装置 | |
US20140359117A1 (en) | Shared heartbeat service for managed devices | |
US9391864B2 (en) | Internet service control method, and relevant device and system | |
US9088603B2 (en) | File transfer method and device | |
US10594844B2 (en) | Method and system for wireless network bilateral accelerated transmission | |
US20160073443A1 (en) | Method and apparatus for energy-optimized data transmission using the opc ua protocol in radio networks | |
CN107508916B (zh) | 用于智能机器人的服务器链接管理方法 | |
US20140201376A1 (en) | Method and system for the handling of redundant long poll | |
WO2013159492A1 (zh) | 信息上报与下载的方法及系统 | |
US9261948B2 (en) | Image forming apparatus and control method for executing a proxy in response to a heartbeat | |
US10069671B2 (en) | Method and apparatus for processing abnormality of application proxy client | |
US9866644B2 (en) | Terminal, message distribution system, message distribution method, and computer-readable medium | |
KR101407597B1 (ko) | 망 부하 감소를 위한 푸시 서비스 제공 시스템 및 방법 | |
KR101224557B1 (ko) | 킵얼라이브 통신 시스템, 클라이언트, 및 통신방법 | |
EP3314970B1 (en) | Method and apparatus for managing uplink traffic from a client device in a communication network | |
JP2014146876A (ja) | メッセージ配信システムおよびメッセージ配信方法 | |
JP5537970B2 (ja) | Webサービス稼動監視システムおよびWebサービス稼動監視方法 | |
KR20130004845A (ko) | 킵얼라이브 통신 시스템 및 통신방법 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140711 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20150107 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150624 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150901 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20151022 |