JPH10187567A - 通信システムのソケットバインディング方法 - Google Patents

通信システムのソケットバインディング方法

Info

Publication number
JPH10187567A
JPH10187567A JP9305493A JP30549397A JPH10187567A JP H10187567 A JPH10187567 A JP H10187567A JP 9305493 A JP9305493 A JP 9305493A JP 30549397 A JP30549397 A JP 30549397A JP H10187567 A JPH10187567 A JP H10187567A
Authority
JP
Japan
Prior art keywords
socket
server
client
communication
system call
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
JP9305493A
Other languages
English (en)
Inventor
Yeong-Gil Hwang
永吉 黄
Soo-Hyun Kim
秀▲ひょん▼ 金
Jong-Hoon Kim
鍾勳 金
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.)
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Samsung Electronics Co Ltd filed Critical Samsung Electronics Co Ltd
Publication of JPH10187567A publication Critical patent/JPH10187567A/ja
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/326Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the transport layer [OSI layer 4]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

(57)【要約】 (修正有) 【課題】 システム間の通信をソケット機能を用いて行
う場合、異常状態時にシステム資源の消耗や負荷の増加
を防止する方法を提供する。 【解決手段】 ソケット機能を用いたシステム間通信の
ソケットバインディング方法において、バインドシステ
ムコールが失敗して再試行する場合に、予め設定された
時間待機してから再試行することを特徴とする。

Description

【発明の詳細な説明】
【0001】
【発明の属する技術分野】本発明はシステム間の通信方
法に関する。
【0002】
【従来の技術】一般にシステム間の通信には、ネットワ
ークプログラムのようなプログラムが用いられる。ネッ
トワークプログラムでソケット機能を用いて通信を行う
場合、ソケットへの名前の付与が要求される。この要求
に応じてソケットに名前を付与する方法にはバインドシ
ステムコールがある。
【0003】図1は、バインドシステムコールによりネ
ットワーク通信を行うコンピュータシステムの接続状態
を示す図である。
【0004】同図では、サーバ10に多数のクライアン
ト12が接続されている。サーバ10は、クライアント
12からの要求によりジョブを処理するコンピュータで
あり、クライアント12は、サーバ10へジョブを処理
するための要求を行うコンピュータである。サーバ10
とクライアント12との通信には、ネットワークプログ
ラムが用いられ、このようなネットワークプログラムで
ソケット機能を用いて通信を行おうとする場合にはソケ
ットへの名前の付与が要求される。
【0005】図2及び図3は、ネットワークプログラム
でソケット機能を用いて通信を行う場合に、ソケットに
名前を付与する従来の方法を示す図であり、バインドシ
ステムコールを用いてソケットに名前を付与し(以
下、”ソケットバインディング”)動作を行うフローチ
ャートである。
【0006】まず、接続プロトコルのソケットバインデ
ィングのフローを図2を用いて説明する。
【0007】201、211段階でサーバ10及びクラ
イアント12は、ネットワークI/Oのための通信プロ
トコルのタイプを明示する。次に、202段階でサーバ
10は、名前の付けられていないソケットに名前を付け
る。203段階でサーバ10は、接続可能になったこと
をクライアント12に知らせ、204段階でクライアン
ト12からの接続を待つ。クライアント12が212段
階で指定したソケットデスクリプタを用いてサーバ10
に接続し、213段階で要求データを送信すると、サー
バ10は205段階で要求データを受信して要求データ
による処理を実行する。処理が終わるとサーバ10は、
206段階で実行結果を送信し、クライアント12は2
14段階で実行結果を受信する。
【0008】次に、非接続プロトコルのソケットバイン
ディングのフローを図3を用いて説明する。
【0009】301、311段階でサーバ10及びクラ
イアント12は、ネットワークI/Oのための通信プロ
トコルのタイプを明示する。次に、302、312段階
でサーバ10とクライアント12は、名前の付けられて
いないソケットに名前を付ける。312段階後、クライ
アント12は313段階で指定したソケットデスクリプ
タを用いて要求データを送信する。一方、サーバ10は
302段階後、303段階で指定したソケットデスクリ
プタを用いて要求データを受信する。これにより、サー
バ10は要求データによる処理を実行する。処理が終わ
ると、サーバ10は304段階で実行結果を送信し、ク
ライアント12は314段階で実行結果を受信する。
【0010】
【発明が解決するための課題】従来は、システム間の通
信にソケット機能を用いた通信は、図2及び図3に示す
ようなフローチャートで表せる。このとき、ソケットバ
インディングが失敗すると、再びバインディングを試み
るが、このような試行がシステムによる遅延時間以内に
連続的にあると、遅延時間が経つまでシステムコールの
エラーが発生する。よって、システムの異常状態でシス
テムコールを連続して試みる従来のソケットバインディ
ング方法は、システム資源を浪費して負荷を増加させる
問題がある。
【0011】本発明の目的は、システム間の通信をソケ
ット機能を用いて行う場合、異常状態の時に、システム
資源の消耗や負荷の増加を防止する方法を提供すること
にある。
【0012】
【課題を解決するための手段】このような目的を達成す
るために本発明のソケットバインディング方法は、ソケ
ット機能を用いたシステム間通信のソケットバインディ
ング方法において、バインドシステムコールが失敗して
再試行する場合に、予め設定された時間待機してから再
試行することを特徴とする。設定時間はシステム自体の
遅延時間による時間である。
【0013】
【発明の実施の形態】以下、本発明の実施形態を添付図
面を参照して詳細に説明する。図4は、本発明の接続プ
ロトコルのソケットバインディングに対するフローチャ
ート、図5は本発明の非接続プロトコルのソケットバイ
ンディングに対するフローチャートである。
【0014】本発明によるソケットバインディングによ
るフローの特徴は、図4の403段階及び404段階と
図5の503段階及び504段階から分かるように、バ
インドシステムコールが失敗して再試行する場合、直ち
に再試行を行うのではなく、予め設定された時間が経過
した時に再試行を行うことを特徴とする。このときの設
定時間はシステム自体の遅延時間(バインドシステムコ
ール失敗によるソケットクローズ)による時間に設定す
ることができる。
【0015】まず、接続プロトコルのソケットバインデ
ィングのフローを説明する。
【0016】401、411段階でサーバ10及びクラ
イアント12は、ネットワークI/Oのための通信プロ
トコルのタイプを明示する。次に、402段階でサーバ
10は名前の付けられていないソケットに名前を付け、
403段階でバインドシステムコールが成功したかを確
認する。バインドシステムコールが成功した場合は40
5段階に進み、失敗した場合には404段階に進んで、
予め設定された時間だけ待機した後、402段階に戻り
バインドシステムコールを再試行する。ここで、設定時
間はシステム自体による遅延時間である。
【0017】バインドシステムコールが成功すると、4
05段階でサーバ10は、接続可能になったことをクラ
イアント12に知らせ、406段階でクライアント12
からの接続を待つ。クライアント12が412段階で指
定したソケットデスクリプタを用いてサーバ10に接続
し、413段階で要求データを送信すると、サーバ10
は407段階で要求データを受信して要求データによる
処理を実行する。処理が終わるとサーバ10は、408
段階で実行結果を送信し、クライアント12は414段
階で実行結果を受信する。
【0018】次に、非接続プロトコルのソケットバイン
ディングのフローを説明する。
【0019】501、511段階でサーバ10及びクラ
イアント12は、ネットワークI/Oのための通信プロ
トコルのタイプを明示する。次に、502、512段階
でサーバ10とクライアント12は名前の付けられてい
ないソケットに名前を付け、503、513段階でそれ
ぞれバインドシステムコールが成功したかを確認する。
バインドシステムコールが成功した場合、サーバ10及
びクライアント12はそれぞれ505、515段階に進
み、失敗した場合にはそれぞれ504、514段階に進
んで、予め設定された時間だけ待機した後、502、5
12段階に戻りバインドシステムコールを再試行する。
ここで、設定時間はシステム自体による遅延時間であ
る。
【0020】513段階でバインドシステムコールが成
功した場合、クライアント12は515段階で指定した
ソケットデスクリプタを用いて要求データを送信する。
一方、503段階でバインドシステムコールが成功した
場合、サーバ10は505段階で指定したソケットデス
クリプタを用いて要求データを受信する。クライアント
12から要求データを受信すると、サーバ10は要求デ
ータによる処理を実行する。処理が終わるとサーバ10
は、506段階で実行結果を送信し、クライアント12
は516段階で実行結果を受信する。
【0021】
【発明の効果】本発明により、異常状態時における再試
行によってシステム資源の浪費やそれによる負荷の増加
を防止することができる。
【図面の簡単な説明】
【図1】一般的なコンピュータシステムの構成図。
【図2】従来の接続プロトコルのフローチャート。
【図3】従来の非接続プロトコルのフローチャート。
【図4】本発明の接続プロトコルのフローチャート。
【図5】本発明の非接続プロトコルのフローチャート。
【符号の説明】
10 サーバ 12 クライアント

Claims (2)

    【特許請求の範囲】
  1. 【請求項1】 ソケット機能を用いたシステム間通信の
    ソケットバインディング方法において、 バインドシステムコールが失敗して再試行する場合に、
    予め設定された時間待機してから再試行することを特徴
    とするソケットバインディング方法。
  2. 【請求項2】 設定時間はシステム自体の遅延時間によ
    る時間である請求項1記載のソケットバインディング方
    法。
JP9305493A 1996-11-07 1997-11-07 通信システムのソケットバインディング方法 Pending JPH10187567A (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1019960052637A KR19980034552A (ko) 1996-11-07 1996-11-07 소켓기능을 이용한 통신시스템의 소켓바인딩 방법
KR1996P52637 1996-11-07

Publications (1)

Publication Number Publication Date
JPH10187567A true JPH10187567A (ja) 1998-07-21

Family

ID=19481095

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9305493A Pending JPH10187567A (ja) 1996-11-07 1997-11-07 通信システムのソケットバインディング方法

Country Status (8)

Country Link
US (1) US5941950A (ja)
JP (1) JPH10187567A (ja)
KR (1) KR19980034552A (ja)
CN (1) CN1099183C (ja)
DE (1) DE19748009B4 (ja)
FR (1) FR2755560B1 (ja)
GB (1) GB2319151A (ja)
RU (1) RU2171491C2 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100451786B1 (ko) * 2000-11-30 2004-10-08 엘지전자 주식회사 이동통신 시스템의 소켓 자동 관리 방법

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6192389B1 (en) * 1997-03-28 2001-02-20 International Business Machines Corporation Method and apparatus for transferring file descriptors in a multiprocess, multithreaded client/server system
US6216163B1 (en) * 1997-04-14 2001-04-10 Lucent Technologies Inc. Method and apparatus providing for automatically restarting a client-server connection in a distributed network
US6487581B1 (en) * 1999-05-24 2002-11-26 Hewlett-Packard Company Apparatus and method for a multi-client event server
US6529965B1 (en) * 2000-05-09 2003-03-04 3Com Corporation Method of detecting TCP/IP bindings of installed network interface cards present in a computer system
US8566849B2 (en) * 2000-12-14 2013-10-22 Borland Software Corporation Name service object clustering
US6922727B2 (en) * 2001-06-26 2005-07-26 International Business Machines Corporation Method and system for managing parallel data transfer through multiple sockets to provide scalability to a computer network
US6895590B2 (en) 2001-09-26 2005-05-17 Intel Corporation Method and system enabling both legacy and new applications to access an InfiniBand fabric via a socket API
US7254739B2 (en) 2003-11-19 2007-08-07 International Business Machines Corporation Error recovery in a client/server application using two independent sockets for communication
US20060050717A1 (en) * 2004-09-09 2006-03-09 International Business Machines Corporation Reducing delays associated with port binding
JP2007114879A (ja) * 2005-10-18 2007-05-10 Ricoh Co Ltd 構造化文書、端末装置、構造化文書の作成プログラム及び構造化文書の作成装置
WO2008070217A2 (en) * 2006-08-09 2008-06-12 Qualcomm Incorporated Apparatus and method for supporting broadcast/multicast ip packets through a simplified sockets interface
US8037039B2 (en) * 2007-04-20 2011-10-11 Microsoft Corporation Runtime class database operation
CN102130944B (zh) * 2010-12-30 2013-05-15 中国民航信息网络股份有限公司 一种对自助柜机和自助系统的监控管理方法
CN102404858B (zh) * 2011-11-25 2014-04-02 华为技术有限公司 一种无线资源优化方法、装置及系统

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2232855B (en) * 1989-06-07 1993-10-20 Secr Defence Computer network access control system
US5182554A (en) * 1990-12-18 1993-01-26 International Business Machines Corporation Third party evavesdropping for bus control
US5572642A (en) * 1991-05-16 1996-11-05 Baba Laboratory Inc. Data input display system for preparing and editing structural data
RU2006931C1 (ru) * 1991-06-24 1994-01-30 Научно-производственное объединение "Тайфун" Система коммутации процессоров
GB2259387B (en) * 1991-09-07 1994-11-02 Motorola Israel Ltd Communications apparatus
US5313655A (en) * 1992-01-30 1994-05-17 Motorola, Inc. Method for reducing control channel activity for limited audience communications
US5537417A (en) * 1993-01-29 1996-07-16 International Business Machines Corporation Kernel socket structure for concurrent multiple protocol access
US5446730A (en) * 1993-09-20 1995-08-29 Motorola, Inc. Method for dynamic connection management in integrated communication networks
US5631897A (en) * 1993-10-01 1997-05-20 Nec America, Inc. Apparatus and method for incorporating a large number of destinations over circuit-switched wide area network connections
GB2282902B (en) * 1993-10-12 1997-12-24 Nailish Limited A distributed data processing system
US5491820A (en) * 1994-11-10 1996-02-13 At&T Corporation Distributed, intermittently connected, object-oriented database and management system
US5758084A (en) * 1995-02-27 1998-05-26 Hewlett-Packard Company Apparatus for parallel client/server communication having data structures which stored values indicative of connection state and advancing the connection state of established connections
US5774479A (en) * 1995-03-30 1998-06-30 Motorola, Inc. Method and system for remote procedure call via an unreliable communication channel using multiple retransmission timers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100451786B1 (ko) * 2000-11-30 2004-10-08 엘지전자 주식회사 이동통신 시스템의 소켓 자동 관리 방법

Also Published As

Publication number Publication date
FR2755560A1 (fr) 1998-05-07
RU2171491C2 (ru) 2001-07-27
DE19748009A1 (de) 1998-05-14
KR19980034552A (ko) 1998-08-05
DE19748009B4 (de) 2008-09-25
CN1182240A (zh) 1998-05-20
CN1099183C (zh) 2003-01-15
GB2319151A (en) 1998-05-13
FR2755560B1 (fr) 2000-12-29
US5941950A (en) 1999-08-24
GB9723131D0 (en) 1998-01-07

Similar Documents

Publication Publication Date Title
JPH10187567A (ja) 通信システムのソケットバインディング方法
US9049070B2 (en) Dynamic client/server session recovery in a heterogenous computer network
US6976080B1 (en) Multiple-protocol communication subsystem controller
US5828569A (en) Method and apparatus for maintaining network connections across a voluntary process switchover
KR100343517B1 (ko) 확장프로그램간통신서버
EP0798893A1 (en) End-to-end session recovery
EP1099164A1 (en) Methods and apparatus for processing administrative requests of a distributed network application executing in a clustered computing environment
JPH02310665A (ja) 分散トランザクション処理システム
JPH1069446A (ja) ホスト間の接続を維持する方法
CN105100232A (zh) 一种不中断服务的服务端程序平滑升级的方法
JPH11161529A5 (ja)
CN100488131C (zh) 与多个客户端进行数据处理用系统服务器及数据处理方法
JPH07168774A (ja) 無接続セッション指向プロトコルの第1メッセージの生成システム及び方法
JP2003500979A (ja) ファイバチャネルネットワークにおけるストリーミングデバイスへのマルチイニシエーターサポートのための方法およびシステム
US6697895B1 (en) Network attached tape storage system
JPH0213158A (ja) メツセージ伝送方法
JP2003242050A (ja) サーバ・クライアント間データ転送方法およそのサーバクライアントシステム
US7296073B1 (en) Mechanism to survive server failures when using the CIFS protocol
JP4415391B2 (ja) データをネットワークに送信する方法及び装置並びにデータをネットワークから受信する方法及び装置
JP2006185229A (ja) オンライン同期処理方法及び装置
JP7831599B2 (ja) クラウドシステム
JPH02260055A (ja) コンピュータ間ファイル転送方式
KR101174141B1 (ko) 금융단말기의 단말제어기 접속방법
KR100487120B1 (ko) 코바 기반의 클라이언트와 서버간 통신시 호 연결의 자동복구 시스템 및 방법
JPH02122362A (ja) 分散データ管理システム