JP3869127B2 - Protocol processing method and protocol processing apparatus - Google Patents

Protocol processing method and protocol processing apparatus Download PDF

Info

Publication number
JP3869127B2
JP3869127B2 JP25765598A JP25765598A JP3869127B2 JP 3869127 B2 JP3869127 B2 JP 3869127B2 JP 25765598 A JP25765598 A JP 25765598A JP 25765598 A JP25765598 A JP 25765598A JP 3869127 B2 JP3869127 B2 JP 3869127B2
Authority
JP
Japan
Prior art keywords
processing
data
data identifier
identifier
protocol
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.)
Expired - Fee Related
Application number
JP25765598A
Other languages
Japanese (ja)
Other versions
JP2000078231A (en
Inventor
大輔 岡部
靖行 井上
浩二 若山
浩一 麻尾
正雄 中山
純一郎 柳
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.)
Hitachi Communication Technologies Ltd
Original Assignee
Hitachi Communication Technologies 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 Hitachi Communication Technologies Ltd filed Critical Hitachi Communication Technologies Ltd
Priority to JP25765598A priority Critical patent/JP3869127B2/en
Publication of JP2000078231A publication Critical patent/JP2000078231A/en
Application granted granted Critical
Publication of JP3869127B2 publication Critical patent/JP3869127B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、プロトコル処理方法及びプロトコル処理装置に係り、特に、上位レイヤのプロトコル制御情報に含まれるデータ識別子が特定のデータ識別子である場合に、そのデータ識別子に対応した処理を下位レイヤで実行するためのプロトコル処理方法及びプロトコル処理装置に関する。
【0002】
【従来の技術】
一般に、複数のシステムにおけるコミュニケーション体系は、層構造とプロトコルによって表現することができる。
【0003】
図13に、OSI参照モデルによる層構成とプロトコルの概要図を示す。図13において、システム1-1とシステム1-2は、レイヤ(1)、・・・、レイヤ(N−1)、レイヤ(N)、レイヤ(N+1)・・・という共通の層構造を有している。システム間のコミュニケーションは、層ごとの情報交換を基本にして遂行される。そのため、各々のシステムにおけるレイヤ(N)間の通信は、(N)プロトコル401を使用して行う。同様に、レイヤ(N+1)間の通信は、(N+1)プロトコル402を使用して行う。また、レイヤ(N+1)とレイヤ(N)の通信のような、同システム内のレイヤ間の通信は、サービスを使用して行われる。図13において、レイヤ(N+1)14-1に対してレイヤ(N)13-1は、(N)サービス500を使用して通信を行う。システム1-1とシステム1-2におけるレイヤ(N+1)間の通信は、レイヤ(N+1)以下のレイヤを経由し行われるため、レイヤ(N+1)間の通信ではレイヤ(N+1)以下のレイヤのサービスをすべて使用し、それぞれのレイヤではレイヤごとに規定されているプロトコルを使用する。このシステム間の通信機能の層構造については、例えば、田畑孝一「OSI 明日へのコンピュータネットワーク」日本規格協会(1987)等で述べられている。
【0004】
つぎに、図14に、OSI7層モデルの説明図を示す。終端システム1-3は、アプリケーション層17-3、プレゼンテーション層16-3、セション層15-3、トランスポート層14-3、ネットワーク層13-3、データリンク層12-3、物理層11-3の7層で構成されている。終端システム1-4も、同様に、7層から構成されている。中継システム2-1は、中継のみの機能を備えているため、ネットワーク層23-1、データリンク層22-1、物理層21-1の3層から構成されている。
【0005】
このようなモデルにおいても、レイヤ(N)間の通信は(N)プロトコルを使用するため、終端システム1-3と終端システム1-4のプレゼンテーション層の通信にはプレゼンテーション層プロトコル416を使用する。また、図14においては、中継システム2-1を介した通信を示しているため、ネットワーク層では、終端システム1-3と中継システム2-1の間でネットワーク層プロトコル413aを使用し、また、終端システム1-4と中継システム2-1の間でネットワーク層プロトコル413bを使用する。図14のモデルにおいて、終端システム1-3と終端システム1-4のアプリケーション層間通信は、通信経路310で示されるように、終端システム1-3のアプリケーション層以下のレイヤを全て通過したデータが、中継システム2-1の各層を経由して、終端システム1-4のアプリケーション層へ送信される。
【0006】
図15に、サービスデータ単位及びプロトコルデータ単位についての説明図を示す。隣接レイヤ間の通信に使用されるデータには、サービスデータ単位とプロトコルデータ単位の2種類がある。図15に示されたレイヤ(N)13-5で使用されるデータは、(N)プロトコルデータ単位21と呼ばれる。(N)プロトコルデータ単位21は、(N)プロトコル制御情報211と(N)サービスデータ単位212とを有する。レイヤ(N+1)14-5で使用されるデータは、(N+1)プロトコルデータ単位20と呼ばれ、(N+1)プロトコル制御情報201と(N+1)サービスデータ単位202とを有する。(N+1)プロトコルデータ単位20は、(N)プロトコルデータ単位21から(N)プロトコル制御情報211を除いた(N)サービスデータ単位212に相当する。
【0007】
図15に示す層構成において、レイヤ(N+1)14-5からレイヤ(N−1)12-5へデータを転送する場合、レイヤ(N)13-5は、レイヤ(N+1)14-5から受け取った(N)サービスデータ単位212に(N)プロトコル制御情報211を付加して(N)プロトコルデータ単位21を生成し、レイヤ(N−1)12-5へ転送するという動作を行う。このときレイヤ(N)13-5は、(N)サービスデータ単位212、すなわち(N+1)プロトコルデータ単位20の内容を意識することなく処理している。なお、図15では、各レイヤのプロトコル制御情報201,211,221等は、サービスデータ単位202,212,222等の前に位置してプロトコルデータ単位20,21,22等を形成しているが、プロトコル制御情報201,211,221等がサービスデータ単位202,212,222等の後ろに位置しプロトコルデータ単位20,21,22等を形成する場合もありうる。
【0008】
図16に、OSI7層モデルにおける通信形態の説明図を示す。図16は、一例として、終端システム1-6と終端システム1-7を有する2つの終端システムと、その間に位置して終端システム間のデータの中継を行う中継システム2-2とから構成される通信例を示している。
【0009】
図16において、例えば、終端システム1-6から送信されたデータ321は、ネットワーク層のプロトコル制御情報にデータ識別子を含んでいる。この際、中継システム2-2のネットワーク層23-2においては、このデータ識別子の内容を判断し、特定のデータ識別子であった場合、そのデータ識別子の内容に対応した処理を行う。例えば、対応した処理がデータの返送であった場合、終端システム1-6にデータ323が返送される。また、対応した処理がデータの廃棄であった場合は、データの廃棄を行う。特定のデータ識別子でない場合には、終端システム1-7に送信されるデータ322を送信する。なお、各データはそのデータが通過するレイヤの処理に関与している。
【0010】
図17に、従来における交換システムの構成図の一例を示す。この交換システムは、外部装置3-1、交換機4-1を備える。交換機4-1は、回線部60a-1及び60b-1、スイッチ部61-1、通信制御部62-1、装置制御部63-1を含む。
【0011】
外部装置3-1は、データ341を交換機4-1に向けて送信する。交換機4-1は、データ341を、回線部60b-1、スイッチ部61-1、通信制御部62-1における処理を介して装置制御部63-1へ転送する。装置制御部63-1では、転送されたデータのうち必要なものについて処理を行い、装置内制御信号343を用いて交換機4-1内の各部を制御する。また、装置制御部63-1は、転送されたデータの受信確認342を、回線部60b-1を介して、外部装置3-1へ向けて送信する。
【0012】
【発明が解決しようとする課題】
しかしながら、図16に示されたような従来のOSI7層モデルの構成では、データ識別子がネットワーク層23-2のプロトコル制御情報に含まれているため、中継システム2-2ではネットワーク層サービスまで実行しなければならない。すなわち、廃棄対象のデータ等のようにネットワーク層23-2での処理がほとんどないような場合でも、ネットワーク層までのサービスを行わなければならない。そのため、データリンク層22-2とネットワーク層23-2の間が、処理量及び負荷のボトルネックとなる可能性がある。
【0013】
また、例えば、図17に示されたような交換システムにおいて、送信データ341のうち装置制御部63-1では処理をしないデータがあった場合においても、装置制御部63-1で処理を行なうレイヤのプロトコル制御情報にデータを処理しないという指示があったときには、装置制御部63-1へデータを送信し、処理しないという指示を確認しなければならない。そのため、通信制御部62-1と装置制御部63-1の間に不必要な通信が発生し、やはり処理量及び負荷のボトルネックとなる可能性がある。
【0014】
本発明は、以上の点に鑑み、余分なプロトコル処理を削減し、レイヤ間の通信量を削減することを目的とする。
【0015】
また、本発明は、上位のレイヤのプロトコル制御情報を下位のレイヤで判別することにより、処理量及び負荷のボトルネックとなり得るような部分のトラヒックを軽減し、ネットワーク全体の性能を向上させることを目的とする。
【0016】
さらに、本発明は、通信制御部と装置制御部との間のデータ転送量を削減し、装置制御部にかかる負荷を削減することにより装置のスループットを向上させ、交換機全体の性能を向上させることを目的とする。
【0017】
【課題を解決するための手段】
本発明においては、特に、レイヤ(N)での処理においてレイヤ(N+1)以上のレイヤのプロトコル制御情報に含まれるデータ識別子を検索し、特定のデータ識別子であった場合には、その特定のデータ識別子に対応した処理を行い、一方、特定ではないデータ識別子の場合には、レイヤ(N)プロトコルの処理を実行・終了するようにした。
【0018】
本発明の第1の解決手段によると、
複数レイヤ中のレイヤ(N)における(Nは整数)プロトコル処理方法であって、
レイヤ(N+1)以上のレイヤについてのデータ識別子を検索する検索ステップと、
前記検索ステップにより検索されたデータ識別子が特定のデータ識別子か否かを判定する判定ステップと、
前記判定ステップで検索されたデータ識別子が特定のデータ識別子であると判定された場合は、当該特定のデータ識別子に対応した処理を行う対応処理ステップと、
一方、前記判定ステップで検索されたデータ識別子が特定のデータ識別子ではないと判定された場合は、レイヤ(N)プロトコル処理を実行するプロトコル処理ステップ
を備えたプロトコル処理方法を提供する。
【0019】
また、本発明の第2の解決手段によると、
複数レイヤ中のレイヤ(N)における(Nは整数)プロトコル処理装置であって、
下位装置から受信した受信データを格納するデータ処理用バッファと、
下位装置へ送信データを送信するための送信バッファと、
上位装置へ接続されたインタフェースと、
前記データ処理用バッファに格納された受信データから、レイヤ(N+1)以上のレイヤについてのデータ識別子を検索し、検索されたデータ識別子が特定のデータ識別子か否かを判定する対応処理判定部と、
前記対応処理判定部により検索されたデータ識別子が特定のデータ識別子であると判定された場合は、当該特定のデータ識別子に対応した処理を行う対応処理部と、
前記対応処理判定部により検索されたデータ識別子が特定のデータ識別子ではないと判定された場合は、レイヤ(N)プロトコル処理を実行するとともに、前記インターフェースを介して上位装置へデータを転送するプロトコル処理部
を備えたプロトコル処理装置を提供する。
【0020】
【発明の実施の形態】
図1に、本発明に係るプロトコル処理の概要についてのフローチャートを示す。本発明では、レイヤ(N)処理において、レイヤ(N+1)以上のデータ識別子を検索する検索ステップ101を行う。つぎに、ここで検索されたデータ識別子が特定のデータ識別子であるか否かを判定する判定ステップ102を実行する。なお、特定のデータ識別子については、後述する。判定ステップ102で、データ識別子が特定のデータ識別子であると判定された場合は、その特定のデータ識別子に対応した処理である対応処理ステップ104を行い、レイヤ(N)処理を終了する。一方、判定ステップ102で、データ識別子が特定のデータ識別子ではないと判定された場合には、レイヤ(N)プロトコル処理を実行するプロトコル処理ステップ103を行い、レイヤ(N)処理を終了する。
【0021】
なお、図1では、対応処理ステップ104を行った後、レイヤ(N)処理を終了しているが、対応処理ステップ104の後に、プロトコル処理ステップ103を行ってから、レイヤ(N)処理を終了してもよい。また、レイヤ(N)処理の最初にプロトコル処理ステップ103を行い、その後にレイヤ(N+1)以上のデータ識別子の検索ステップ101及び特定のデータ識別子の判定ステップ102を行ない、判定の結果によってレイヤ(N)の処理を終了若しくは対応処理104を経てレイヤ(N)の処理を終了という順序で各ステップを実行してもよい。
【0022】
図2に、本発明に係るプロトコル処理の適用に関するフローチャートの一例を示す。ここでは、特定のデータ識別子が、例えば、廃棄又は返送を示すものである場合を説明する。もちろん、データ識別子に対応した処理は廃棄と返送のみに限らず、データ識別子の含まれるプロトコル制御情報を扱うレイヤより上位のレイヤに影響がなければどのような処理を行うものでもよい。
【0023】
本発明のプロトコル処理方法では、レイヤ(N)の処理において、まず、レイヤ(N+1)以上のプロトコル制御情報に含まれるデータ識別子の検索を行う検索ステップ111を実行する。つぎに、検索されたデータ識別子が特定のデータ識別子であるかどうかの判断を行う判定ステップ112を実行する。ここで、特定のデータ識別子だと判断した場合、データ識別子に対応した処理である廃棄及び返送を行うため、データ識別子が廃棄と返送のどちらの処理の対象となる識別子であるかを判断する判断ステップ114を行う。ここで、対応処理が廃棄と判断された場合は、廃棄処理ステップ115を行う。また、対応処理が返送と判断された場合は、返送処理ステップ116を行う。一方、判定ステップ112で特定のデータ識別子ではないと判断された場合は、レイヤ(N)プロトコル処理ステップ113を行い、レイヤ(N)処理を終了する。
【0024】
なお、返送処理ステップ116には、例えば、受信したデータをそのまま返送する場合、受信したデータの一部を更新して返送する場合、受信したデータの一部を利用した異なるデータを返送する場合、受信したデータとは全く異なるデータを返送する場合などがある。さらに、発信元への返送に限らず、それと異なる宛先へ転送することも可能である。その際、転送先は、受信データ中の転送先又は予め決められた転送先等に適宜設定することができる。
【0025】
図2において判断に使用される特定のデータ識別子は、例えば、エラー識別子、プロトコル識別子、上位プロトコル識別子、プロトコルバージョン識別子、データのクラス識別子、データリンク識別子等の物理回線や論理回線を示す識別子、などを用いることができる。もちろん、特定のデータ識別子は、先に述べたものである必要はなく、プロトコルの処理内容、機能、データ種別、命令種別、応答種別、エラー種別、データの優先度、データ長、宛先アドレス、送信元アドレス、最大データ長、データ分割有無、生存時間、誤り検出符号などを示す識別子もしくはフィールドであってもよい。
【0026】
具体的な通信サービス例としては、例えば、特定のデータ識別子がデータ長であった場合、上位レイヤプロトコルで許容されないデータ長を持つデータが到着したときに、当該レイヤプロトコル処理で廃棄を行うことができる。他の具体的な通信サービス例としては、特定のデータ識別子が宛先アドレスの場合、呼処理において、下位装置において着信拒否をして接続を切断する対応処理を実行することができる。特定のデータ識別子が優先度である場合、一定の優先度以下の通信に対しては、データを廃棄して接続しないような対応処理を実行することができる。この際、発信側に、データが廃棄された旨の返送をすることもできる。また、特定のデータ識別子が誤り検出・エラーである場合、下位装置においてエラー処理を行い、送信データを廃棄したり、未処理又はエラーであること等を発信側に返送して表示する対応処理を実行することもできる。さらに、特定のデータ識別子が宛先アドレスである場合、受信したデータを送信元以外の宛先アドレスの端末に転送するサービスを行うこともできる。
【0027】
さらに、特定のデータ識別子に対応する処理は必ず同じ処理である必要はなく、システムやネットワークの状態等により対象とする特定のデータ識別子を変更したり、特定のデータ識別子を持つデータに対する処理内容を変えてもよい。具体的な通信サービス例としては、例えば、特定のデータ識別子がデータの優先度であった場合、システムの処理負荷が重い場合には優先度が低いデータ識別子を廃棄もしくは返送し、処理負荷が軽い場合には優先度が低いデータ識別子を持つデータでも他のデータと同様に処理を行うことができる。
【0028】
図3に、本発明におけるデータ識別子の検索についての説明図を示す。ここでは、一例として、(N)プロトコルデータ単位24及び(N+1)プロトコルデータ単位23が示される。ここで、レイヤ(N)の処理において検索対象となるデータ識別子2311は、レイヤ(N+1)のプロトコル制御情報231に含まれている。本発明では、このデータ識別子2311を、レイヤ(N)において検索する。
【0029】
検索の方法としては、例えば、レイヤ(N)のプロトコル制御情報241が固定長であった場合には、レイヤ(N)のプロトコル制御情報241の長さと、レイヤ(N+1)のプロトコル制御情報231の先頭からデータ識別子2311までの長さの合計を、レイヤ(N)のプロトコルの先頭から読み出し、レイヤ(N)におけるデータ識別子2411を検索する。また、レイヤ(N)のプロトコル制御情報241が、可変長且つレイヤ(N)のプロトコル制御情報241にプロトコル制御情報241の長さを含んでいた場合は、レイヤ(N)のプロトコル制御情報241の長さにレイヤ(N+1)のプロトコル制御情報231の先頭からデータ識別子2311までの長さの合計を、レイヤ(N)のプロトコルの先頭から読み出し、レイヤ(N)におけるデータ識別子2411を検索する。また、レイヤ(N+1)のプロトコル制御情報231が、レイヤ(N)のプロトコル制御情報241に現れない、特定のパターンで構成される領域を有している場合は、特定のパターンを検索し、検索した特定のパターンの位置からデータ識別子2311までの長さを指定して読み出すことによりデータ識別子2311を検索する。そのため、レイヤ(N)の処理において、レイヤ(N)プロトコルの先頭からレイヤ(N+1)に含まれる特定のパターンを検索し、特定のパターンの位置からデータ識別子2411までの長さを指定して読み出すことによりデータ識別子2411を読み出すことができる。
【0030】
また、図3では、各レイヤのプロトコル制御情報は、プロトコルデータ単位の先頭に位置しているが、必ずしも先頭に位置する必要はなく、プロトコルデータ単位の終端に位置してもよい。例えば、レイヤ(N)プロトコルのプロトコル制御情報241が、レイヤ(N)プロトコルの終端に位置していた場合、レイヤ(N+1)プロトコルのプロトコル制御情報231の先頭とレイヤ(N)のプロトコルデータ単位24の先頭が同じ位置になるため、レイヤ(N)の処理において、レイヤ(N+1)のプロトコル制御情報231の先頭からデータ識別子2311までの長さをレイヤ(N)プロトコルデータ単位24の先頭から読み出すことにより、データ識別子2411を検索することができる。
【0031】
つぎに、図4に、本発明に係るプロトコル処理を適用したOSI7層モデルにおける通信形態の説明図を示す。図4は、終端システム1-8及び終端システム1-9の2つの終端システムと、その間に位置して終端システム間のデータの中継を行う中継システム2-3から構成される通信例を示している。従来の技術では、例えば、ネットワーク層でデータ識別子を判断し処理を行っていたが、本発明を適用することでデータリンク層においてネットワーク層プロトコル制御情報に含まれるデータ識別子を検索することができる。
【0032】
図4において、終端システム1-8から送信されたデータ331は、ネットワーク層のプロトコル制御情報にデータ識別子を含んでおり、中継システム2-3のデータリンク層において、データ識別子の内容を判断する。そして、検索されたデータ識別子が特定のデータ識別子であった場合、データ識別子の内容に応じた対応処理を行う。例えば、対応処理がデータの返送であった場合、終端システム1-8へデータ333が返送される。また、対応処理がデータの廃棄であった場合は、データの廃棄を行う。特定のデータ識別子でない場合には、データリンク層サービスを行い、ネットワーク層へ転送し、従来の技術を用いた通信形態と同様に、終端システム1-9にデータ332を送信する。
【0033】
図4では、図16に比べて、データリンク層22-3とネットワーク層23-3のそれぞれのプロトコル処理が減少するとともに、データリンク層22-3とネットワーク層23-3の間の通信量が減少する。また、図4では、終端システム1-8に返送されるデータは従来より早く返送され、終端装置1-9に転送されるデータは、中継システム2-3のネットワーク層23-3の処理が減少するため、従来よりも早く送信される。よって、終端システム1-8及び終端システム1-9からは、中継システム2-3の処理能力が向上したように見え、ひいては、システム全体の処理能力が向上することになる。
【0034】
図5に、本発明に係るプロトコル処理装置に関連する交換システムの概要構成図の一例を示す。この交換システムは、外部装置3-2、交換機4-2を備える。交換機4-2は、回線部60a-2及び60b-2、スイッチ部61-2、通信制御部62-2、装置制御部63-2を含む。
【0035】
外部装置3-2は、データ351を交換機4-2に向けて送信する。交換機4-2は、データ351を、回線部60b-2及びスイッチ部61-2における処理を介して、通信制御部62-2へ転送する。通信制御部62-2では、送信されたデータ351について、装置制御部63-2で処理されるプロトコル制御情報に含まれるデータ識別子を検索する。そして、通信制御部62-2は、検索したデータ識別子が装置制御部63-2では不必要なデータのデータ識別子であった場合、装置制御部63-2には転送せず、通信制御部62-2において受信確認353を生成し、外部装置3-2へ受信確認355を送信する。また、通信制御部62-2は、検索したデータ識別子が装置制御部63-2で必要なデータのデータ識別子であった場合には、送信データ352として装置制御部63-2へ転送する。装置制御部63-2では転送されたデータの処理を行い、装置内制御信号356を用いて交換機4-2内の各部を制御する。また、装置制御部63-2は転送されたデータの受信確認354を通信制御装置62-2へ向けて送信する。
【0036】
なお、図5では、通信制御装置62-2がスイッチ61-2後置となっているが、装置制御装置63-2で処理されるプロトコル制御情報を検索できる位置であれば通信制御装置62-2の位置は特定されない。また、図5では、通信制御装置62-2は受信確認353を生成しているが、他のいかなる形式のデータを生成してもよく、また、データを生成する必要がなければしなくてもよい。通信制御装置62-2は、受信確認353を外部装置3-2に返送しているが、外部装置3-2に限らず他の装置に返送してもよく、返送する必要がなければ返送しなくてもよい。図5では、外部装置3-2からの送信データ355について本発明を適用した場合について示しているが、必ずしも外部装置3-2からの送信データ351である必要はなく、通信制御部62-2から装置制御部63-2へ送信するデータであれば、どこからのデータであってもよく、データの発生源をこれに特定するものではない。図5において、送信データ351の一部は、装置制御部63-2において処理され、交換機4-2内の各部を制御する装置内制御信号356となっているが、必ずしも制御信号である必要はなく、各種の信号とすることができる。
【0037】
なお、図5に示したように、本発明を交換システムに適用した場合、従来の方式に比べ特定のデータと他のデータの処理順序が異なり、その結果として外部装置3-2から送信された送信データ351に対する交換機4-2の受信確認355の順序が変わる場合があり得る。また、特定のデータ識別子に対しては、外部装置3-2が送信データ351を送信してから受信確認355を受信するのに要する時間が短くなる場合がある。また、本発明は、特定のデータ識別子であればそれに対応した処理を行うため、特定のデータ識別子が増えた場合、特定のデータ識別子に対応した処理が増加する。しかし、特定のデータ識別子に対応した処理を行なうことにより本来データ識別子を処理すべきレイヤでの処理を削減することができるため、システム全体としては処理量及び負荷が増加することはない。
【0038】
本発明においては、特定のデータ識別子であればそれに対応した処理を行うため、本来データ識別子を処理するレイヤ以上のプロトコル制御情報については関知しない。そのため、本来データ識別子を処理するレイヤ以上のプロトコル制御情報のデータ識別子以外のフィールドに未定義の値や定義域を満たさないデータが含まれていた場合でも、特定のデータ識別子と判断された場合は返送などの処理が行われることがある。例えば、図5において外部装置3-2が送信する送信データ351が特定のデータ識別子を持っていた場合、交換機4-2が受信確認を返送し、また、本来データ識別子を処理するレイヤ以上のプロトコル制御情報において不正な値が合った場合は、交換機4-2はそのデータを破棄し受信確認を返送しないシステムであったとする。このとき外部装置3-2から、特定のデータ識別子を持ち且つそのデータ識別子を処理するレイヤ以上のプロトコル制御情報において不正な値を含んでいるデータを受信すると、交換機4-2は、特定のデータ識別子を検出し、受信確認を返送する。
【0039】
図6に、本発明に係るプロトコル処理装置の構成図を示す。このプロトコル処理装置は、一例として、図5に示された交換システムにおける通信制御部62-2に相当するハードウェアの構成例である。
【0040】
通信制御部5は、スイッチインタフェース50、受信バッファ51a、送信バッファ51b、データ処理用バッファ52、レイヤ(N)プロトコル処理部53、装置制御部インタフェース54、対応処理判定テーブル55、プロセッサ56、バス57、データ識別子格納用バッファ58を備える。プロセッサ56は、装置内制御部561、対応処理判定部562、データ識別子対応処理部563を備える。さらに、データ識別子対応処理部563は、廃棄処理部563a及び返送処理部563bを含む。装置内制御部561は、通信制御部5についての全体の制御を司る。また、バス57は、各構成部間の通信を行うために使用される。
【0041】
通信制御部5における動作を以下に説明する。スイッチから受信したデータ380は、スイッチインタフェース50を介して受信バッファ51aに格納される。受信バッファ51aに格納されたデータは、対応処理判定を行うためデータ処理用バッファ52に格納される。さらに、プロセッサ56は、対応処理判定部562により、対応処理データ処理用バッファ52に格納されたデータについて対応処理判定を実行する。対応処理判定部562によって、特定のデータ識別子と判断された場合、データ識別子対応処理部563は、そのデータ識別子に対応した処理を実行する。例えば、対応処理判定部562によって廃棄処理と判断された場合は、廃棄処理部563aにおいて廃棄処理を実行する。また、対応処理判定562によって返送処理と判断された場合は、返送処理部563bにおいて返送データ381を返送する処理を行う。対応処理判定部562において、廃棄処理対象又は返送処理対象等の特定処理対象でないと判断された場合(通常データ等)、レイヤ(N)プロトコル処理部53においてレイヤ(N)プロトコル処理を行い、装置制御部インタフェース54を介して装置制御部へデータ382を転送する。なお、対応処理判定部562による対応処理判定には、対応処理判定テーブル55が使用される。このような、プロトコル処理装置のハードウェア構成により、以下図7〜図11に示される詳細フローチャートに従って、本発明に係るプロトコル処理方法を実現することができる。
【0042】
図7に、本発明に係るプロトコル処理について第1の実施の形態の詳細フローチャートを示す。
【0043】
レイヤ(N)処理では、まず、受信バッファ51aに格納されているレイヤ(N−1)から受信したデータを、レイヤ(N)でのデータ処理用バッファ52に格納する(ステップ121)。つぎに、データ処理用バッファ52に格納したデータの長さの取得を行う(ステップ122)。なお、受信データに関して、データ処理用バッファ52に格納せず、受信バッファ51a内部のデータに直接アクセスし、以降の処理を行っても構わない。つぎに、上述したように、データ識別子の位置に関する情報を適宜用いることにより、データ識別子を検索する。例えば、レイヤ(N)プロトコルのプロトコル制御情報の長さとレイヤ(N+1)プロトコルの先頭からデータ識別子までの長さとの合計を、データ処理用バッファ52に格納したデータの先頭から読み出す。読み出されたデータ識別子は、データ識別子格納用バッファ58に格納する(ステップ123)。データ識別子は、必ずしもデータ識別子格納用バッファ58に格納しなくてもよく、データ処理用バッファ52又は受信バッファ51a内部のデータをアクセスすることにより、以降の処理を行ってもよい。
【0044】
つぎに、読み出したデータ識別子について特定のデータ識別子か否かを判定する。ここで、図8に、対応処理判定テーブルの説明図を示す。対応処理判定テーブル70は、処理対象識別子テーブル700と識別子処理テーブル701を含む。対応処理判定テーブル70には、処理対象識別子テーブル700の特定のデータ識別子7000〜700nに対応して、各対応処理7010〜701nが、識別子処理テーブル701に記憶されている。
【0045】
処理判定ループ開始(ステップ124a)から処理判定ループ終了(ステップ124b)までが、iが1からnまでのループで処理される。この処理ループの中では、対応処理判定テーブル70の中に含まれる処理対象識別子テーブル700を使用して処理判定チェック(ステップ125)を行っている。処理判定チェック(ステップ125)は、データ識別子格納用バッファ58に保存してあるデータ識別子を処理対象識別子テーブル700の各特定のデータ識別子7000、7001、7002、・・・、700nと、p[0]、p[1]、・・・、p[n]の順に比較して、同じ値がある場合特定のデータ識別子であると判断し、特定のデータ識別子に対応した処理を行う。処理対象識別子テーブル700内の全ての要素との比較が終了し、同じ値がなかった場合は、処理判定ループを終了し(ステップ124b)、(N)プロトコル処理を行う(ステップ126)。
【0046】
図7における処理対象識別子テーブル700の要素数は、システムにおける処理対象データ数分備えることができる。処理対象識別子テーブル700内には、同値の要素は存在しないか、存在しても2個目以降の要素は判定対象にはならない。また、図7では、処理対象データのデータ識別子の値を要素とした処理対象識別子テーブル700を用いた比較を行っているが、必ずしも処理対象識別子テーブル700を使用する必要はない。例えば、テーブルをループ的に参照する手法を用いずに、比較による選択・分岐を連続して行ってもよい。図7における特定のデータ識別子に対応した処理は、対応処理判定テーブル70中の処理対象識別子テーブル700に対応した識別子処理テーブル701を使用して決定する。
【0047】
処理判定チェック(ステップ125)において、特定処理対象データであると判断した場合、対応処理チェックを行う(ステップ127)。対応処理チェック(ステップ127)では、処理判定チェックで特定のデータ識別子であると判断された処理対象識別子テーブル700の要素に対応した識別子別処理テーブル701の要素を参照し、対応処理を選択する。例えば、処理対象識別子テーブル700の要素であるp[2]7002で特定処理対象データであると判別した場合、識別子別処理テーブル701内のp[2]7002に対応する要素であるs[2]7012を参照し、s[2]が示す対応処理を行う。図7では識別子別処理テーブル702の要素の値として廃棄処理と返送処理を用意しているが、必ずしも廃棄処理と返送処理という組み合わせである必要はなく、システムで規定した処理を組み込んでもよい。また対応処理数は1種類以上あればよい。
【0048】
図7における対応処理のうち、対応処理チェック(ステップ127)で廃棄処理と判断した場合の処理を以下に示す。なお、図7の廃棄処理では、一例として、特定のデータ識別子を含むデータを廃棄し、受信確認メッセージの返送を行う処理とする。このとき返送する受信確認メッセージには、廃棄したデータのデータ識別子と同じデータ識別子を付与する。廃棄処理に入ると、まず、受信バッファ51aのリードポインタを特定のデータ識別子を含むデータの長さの分だけ進め(ステップ128)、レイヤ(N−1)より受信したデータを既に読み出したものとする。さらに、送信バッファ51bの現在のライトポインタの位置にあらかじめ用意してある受信確認メッセージの固定フォーマットを書込む(ステップ129)。また、処理対象となっている受信データの特定のデータ識別子を、送信データの所定の場所に書込む(ステップ130)。つぎに、送信バッファ51bのライトポインタを送信する受信確認メッセージの長さだけ進めて(ステップ131)、書込みを完了し、廃棄処理を完了する。
【0049】
また、図7における対応処理のうち、対応処理チェック(ステップ127)で返送処理と判断した場合の処理を以下に示す。なお、図7の返送処理では、一例として、特定のデータ識別子を含むデータをそのまま返送する処理を行っている。返送処理に入ると、まず、データ処理用バッファ52に格納されているデータを送信バッファ51bにコピーし(ステップ132)、受信したデータをそのまま返送する準備を行う。さらに、受信バッファ51aのリードポインタを特定のデータ識別子を含むデータの長さの分だけ進め(ステップ133)、レイヤ(N−1)より受信したデータを既に読み出したものとする。つぎに、送信バッファ51bのライトポインタを送信する特定のデータ識別子を含むデータの長さだけ進めて(ステップ134)、書込みを完了し、返送処理を終了する。
【0050】
図9に、本発明に係るプロトコル処理方法について第2の実施の形態の詳細フローチャートを示す。
【0051】
この図は、図7で示した本発明の第1の実施の形態の詳細フローチャートにおいて使用している対応処理判定テーブル70の代わりに、廃棄処理テーブル800と返送処理テーブル810を使用した場合のフローチャートを示す。図9では、データ識別子を取得し、データ識別子格納用バッファに格納する処理(ステップ143)までは、図7と同様である。なお、データ識別子は、必ずしもデータ識別子格納用バッファ58に格納しなくてもよく、データ処理用バッファ52又は受信バッファ51a内部のデータをアクセスすることにより、以降の処理を行ってもよい。図9では、一例として、データ識別子格納用バッファ58に保存してあるデータ識別子について、廃棄判定チェック(ステップ145)を行う廃棄判定ループ(ステップ144a〜144b)と、返送判定チェック(ステップ147)を行う返送判定ループ(ステップ146a〜146b)とを順番に実行する。
【0052】
ここで、図10に、廃棄処理テーブル及び返送処理テーブルの説明図を示す。廃棄処理テーブル800には、廃棄処理がなされる特定のデータ識別子8000〜800nが記憶されている。返送処理テーブル810には、返送処理がなされる特定のデータ識別子8100〜810nが記憶されている。
【0053】
廃棄判定ループ開始(ステップ144a)から廃棄判定ループ終了(ステップ144b)までのループにおいて、廃棄判定チェック(ステップ145)では、データ識別子格納用バッファに保存してあるデータ識別子を廃棄処理テーブル800の各要素8000、8001、8002、・・・、800nと比較して、同じ値であれば廃棄処理対象のデータ識別子であると判断し、廃棄処理を行う。廃棄処理の各処理方法は、図7に示した方法と同様である。また、比較結果が同じ値でない場合は、返送判定ループを実行する。返送判定ループ開始(ステップ146a)から返送判定ループ終了(ステップ146b)までのループにおいて、返送判定チェック(ステップ147)では、データ識別子格納用バッファ58に保存してあるデータ識別子を、返送処理テーブル810の各要素8100、8101、8102、・・・、810nと比較して、同じ値であれば返送処理対象のデータ識別子であると判断し、返送処理を行う。返送処理の各処理方法は、図7に示した方法と同様である。返送処理ループにおいても同じ値がない場合は、通常の(N)プロトコル処理を行う(ステップ148)。
【0054】
図11に、本発明に係るプロトコル処理方法について第3の実施の形態の詳細フローチャートを示す。
【0055】
図11は、図9で示した本発明の第2の実施の形態の詳細フローチャートにおける廃棄判定ループと返送判定ループを統合し、処理判定ループとした詳細フローチャートである。図11では、データ識別子を取得し、データ識別子格納用バッファ58に格納する処理(ステップ163)までは、図7又は図9と同様である。なお、データ識別子は、必ずしもデータ識別子格納用バッファ58に格納しなくてもよく、データ処理用バッファ52又は受信バッファ51a内部のデータをアクセスすることにより、以降の処理を行ってもよい。図11では、データ識別子格納用バッファ58に保存してあるデータ識別子について、廃棄判定チェック(ステップ165)と返送判定チェック(ステップ166)の両方を順番に行う処理判定ループ(ステップ164a〜164b)を実行する。
【0056】
ここで、図12に、廃棄処理テーブル及び返送処理テーブルの説明図を示す。廃棄処理テーブル900には、廃棄処理がなされる特定のデータ識別子9000〜900nが記憶されている。返送処理テーブル910には、返送処理がなされる特定のデータ識別子9100〜910nが記憶されている。
【0057】
処理判定ループ開始(ステップ164a)から処理判定ループ終了(ステップ164b)までのループ中では、データ識別子格納用バッファに保存してあるデータ識別子を、廃棄処理テーブル900の各要素9000、9001、9002、・・・、900nと返送処理テーブル910の各要素9100、9101、9102、・・・、910nを交互に比較する。すなわち、d[0]、r[0]、d[1]、r[1]、d[2]、r[2]、・・・というように、データを比較する。ここで、廃棄処理テーブル900の要素と同じ値であれば、廃棄処理対象のデータであると判断し、廃棄処理を行う。廃棄処理の各処理方法は、図7に示した方法と同様である。また、返送処理テーブル910の要素と同じ値であれば、返送処理対象のデータであると判断し返送処理を行う。返送処理の各処理方法も図7に示した方法と同様である。廃棄処理テーブルにも返送処理テーブルにも同じ値がなく処理判定ループが終了した場合は(ステップ164b)、通常の(N)プロトコル処理(ステップ167)を行う。
【0058】
なお、図7、図9及び図11では、廃棄処理が受信確認メッセージを返送する処理を含んでいる他、返送処理において受信したデータをそのまま返送している。しかし、必ずしもこのような処理である必要はなく、データ識別子の内容や、本発明を適用するシステムの構成によって廃棄処理では受信確認メッセージを返送せず廃棄のみ行ったりするような処理でもよい。また、返送処理では、例えば、受信データに特定の処理を行ったことを示す通知を付与し返送する、又は、受信データになんらかのフィルタをかけて返送するといったデータを加工して返送するような処理を実行してもよい。また、図7、図9及び図11では、受信バッファ51aと送信バッファ51bの管理をリードポインタとライトポインタによって行っているが、必ずしもこのような処理方法である必要はなく、適宜変更することができる。例えば、前のデータが残っている間は次のデータを書込むことができないようなメモリ構成であり、書込む際は必ずメモリの先頭から書込むというような場合は、ポインタによるメモリ制御は必要なく、メモリの先頭アドレスを指定するだけでよい。
【0059】
また、図9及び図11において、廃棄処理判定と返送処理判定はどちらを先に行ってもよい。また、これらの例では廃棄処理と返送処理を用意しているが、必ずしも廃棄処理と返送処理という組み合わせである必要はなく、システムで規定した処理を組み込んでもよい。
【0060】
さらに、特定のデータ識別子が、3つ以上の複数ある場合、処理判定ループ及び対応処理を複数設けることにより、本発明を適用することができる。
【0061】
【発明の効果】
本発明によると、以上のように、余分なプロトコル処理を削減し、レイヤ間の通信量を削減することができる。
【0062】
また、本発明によると、上位のレイヤのプロトコル制御情報を下位のレイヤで判別することにより、処理量及び負荷のボトルネックとなり得るような部分のトラヒックを軽減し、ネットワーク全体の性能を向上させることができる。
【0063】
さらに、本発明によると、図5に示すような通信制御部62-2と装置制御部63-2の間のデータ転送量を削減することができ、装置制御部63-2にかかる負荷を削減することができるため、装置のスループットを向上させ、交換機4-2の性能を向上させることが可能となる。また、外部装置3-2が送信した送信データ351に対する受信確認355が返送される時間が短いため、外部装置3-2から見た、交換機4-2の性能が向上したように見える。
【0064】
【図面の簡単な説明】
【図1】本発明に係るプロトコル処理の概要についてのフローチャート。
【図2】本発明に係るプロトコル処理の適用に関するフローチャート。
【図3】本発明におけるデータ識別子検索についての説明図。
【図4】本発明に係るプロトコル処理を適用したOSI7層モデルにおける通信形態の説明図。
【図5】本発明に係るプロトコル処理装置に関連する交換システムの概要構成図。
【図6】本発明に係るプロトコル処理装置の構成図。
【図7】本発明に係るプロトコル処理について第1の実施の形態の詳細フローチャート。
【図8】図8に、対応処理判定テーブルの説明図。
【図9】本発明に係るプロトコル処理について第2の実施の形態の詳細フローチャート。
【図10】廃棄処理テーブル及び返送処理テーブルの説明図。
【図11】本発明に係るプロトコル処理について第3の実施の形態の詳細フローチャート。
【図12】廃棄処理テーブル及び返送処理テーブルの説明図。
【図13】OSI参照モデルによる層構成とプロトコルの概要図。
【図14】OSI7層モデルの説明図。
【図15】サービスデータ単位及びプロトコルデータ単位についての説明図。
【図16】OSI7層モデルにおける通信形態の説明図。
【図17】従来における交換システムの構成図。
【符号の説明】
1-3,1-4,1-6,1-7,1-8,1-9 終端システム
2-1,2-2,2-3 交換システム
3-1,3-2 外部装置
4-1,4-2 交換機
5 通信制御部
50 スイッチインタフェース
51a 受信バッファ
51b 送信バッファ
52 データ処理用バッファ
53 レイヤ(N)プロトコル処理部
54 装置制御部インタフェース
55 対応処理判定テーブル
56 プロセッサ
57 バス
58 データ識別子格納用バッファ
561 装置内制御部
562 対応処理判定部
563 データ識別子対応処理部
563a 廃棄処理部
563b 返送処理部
62-1,62-2 通信制御部
63-1,63-2 装置制御部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a protocol processing method and a protocol processing apparatus, and in particular, when a data identifier included in protocol control information of an upper layer is a specific data identifier, processing corresponding to the data identifier is executed in a lower layer. The present invention relates to a protocol processing method and a protocol processing apparatus.
[0002]
[Prior art]
In general, a communication system in a plurality of systems can be expressed by a layer structure and a protocol.
[0003]
FIG. 13 shows a schematic diagram of the layer configuration and protocol according to the OSI reference model. 13, system 1-1 and system 1-2 have a common layer structure of layer (1),..., Layer (N−1), layer (N), layer (N + 1). is doing. Communication between systems is performed based on information exchange between layers. Therefore, communication between layers (N) in each system is performed using (N) protocol 401. Similarly, communication between layers (N + 1) is performed using (N + 1) protocol 402. Communication between layers in the system, such as communication between layer (N + 1) and layer (N), is performed using a service. In FIG. 13, the layer (N) 13-1 communicates with the layer (N + 1) 14-1 using the (N) service 500. Since communication between the layers (N + 1) in the system 1-1 and the system 1-2 is performed through the layers below the layer (N + 1), services in the layers below the layer (N + 1) are performed in the communication between the layers (N + 1). Are used, and each layer uses the protocol defined for each layer. The layer structure of the communication function between the systems is described in, for example, Koichi Tabata “Computer Network to OSI Tomorrow” Japanese Standards Association (1987).
[0004]
Next, FIG. 14 shows an explanatory diagram of the OSI 7 layer model. The termination system 1-3 includes an application layer 17-3, a presentation layer 16-3, a session layer 15-3, a transport layer 14-3, a network layer 13-3, a data link layer 12-3, and a physical layer 11-3. 7 layers. Similarly, the termination system 1-4 is composed of seven layers. Since the relay system 2-1 has a relay-only function, the relay system 2-1 includes three layers: a network layer 23-1, a data link layer 22-1, and a physical layer 21-1.
[0005]
Even in such a model, since communication between layers (N) uses the (N) protocol, the presentation layer protocol 416 is used for the communication between the end systems 1-3 and the end system 1-4. In FIG. 14, since communication via the relay system 2-1 is shown, the network layer uses the network layer protocol 413a between the termination system 1-3 and the relay system 2-1, A network layer protocol 413b is used between the end system 1-4 and the relay system 2-1. In the model of FIG. 14, the application layer communication between the termination system 1-3 and the termination system 1-4 is, as indicated by the communication path 310, the data that has passed through all the layers below the application layer of the termination system 1-3. The data is transmitted to the application layer of the end system 1-4 via each layer of the relay system 2-1.
[0006]
FIG. 15 is an explanatory diagram of service data units and protocol data units. There are two types of data used for communication between adjacent layers: a service data unit and a protocol data unit. Data used in the layer (N) 13-5 shown in FIG. 15 is referred to as (N) protocol data unit 21. The (N) protocol data unit 21 includes (N) protocol control information 211 and (N) service data unit 212. The data used in the layer (N + 1) 14-5 is called an (N + 1) protocol data unit 20, and has (N + 1) protocol control information 201 and (N + 1) service data unit 202. The (N + 1) protocol data unit 20 corresponds to the (N) service data unit 212 obtained by removing the (N) protocol control information 211 from the (N) protocol data unit 21.
[0007]
In the layer configuration shown in FIG. 15, when data is transferred from the layer (N + 1) 14-5 to the layer (N-1) 12-5, the layer (N) 13-5 is received from the layer (N + 1) 14-5. The (N) protocol control information 211 is added to the (N) service data unit 212 to generate the (N) protocol data unit 21 and transfer it to the layer (N-1) 12-5. At this time, the layer (N) 13-5 performs processing without being aware of the contents of the (N) service data unit 212, that is, the (N + 1) protocol data unit 20. In FIG. 15, the protocol control information 201, 211, 221 and the like of each layer is located in front of the service data units 202, 212, 222, etc., forming the protocol data units 20, 21, 22, etc., but the protocol control information 201, 211, 221 etc. There may be a case where the protocol data units 20, 21, 22, etc. are formed behind the data units 202, 212, 222, etc.
[0008]
FIG. 16 is an explanatory diagram of a communication form in the OSI 7 layer model. FIG. 16 includes, as an example, two termination systems having a termination system 1-6 and a termination system 1-7, and a relay system 2-2 that is located between them and relays data between the termination systems. An example of communication is shown.
[0009]
In FIG. 16, for example, data 321 transmitted from the termination system 1-6 includes a data identifier in the network layer protocol control information. At this time, the network layer 23-2 of the relay system 2-2 determines the content of the data identifier, and if it is a specific data identifier, performs processing corresponding to the content of the data identifier. For example, when the corresponding process is data return, the data 323 is returned to the end system 1-6. If the corresponding process is data discard, the data is discarded. If it is not a specific data identifier, the data 322 transmitted to the end system 1-7 is transmitted. Each data is involved in the processing of the layer through which the data passes.
[0010]
FIG. 17 shows an example of a configuration diagram of a conventional exchange system. This exchange system includes an external device 3-1 and an exchange 4-1. The exchange 4-1 includes line units 60a-1 and 60b-1, a switch unit 61-1, a communication control unit 62-1 and a device control unit 63-1.
[0011]
The external device 3-1 transmits data 341 to the exchange 4-1. The exchange 4-1 transfers the data 341 to the device control unit 63-1 through processing in the line unit 60b-1, the switch unit 61-1, and the communication control unit 62-1. The device control unit 63-1 processes necessary data among the transferred data, and controls each unit in the exchange 4-1 using the in-device control signal 343. In addition, the device control unit 63-1 transmits a reception confirmation 342 of the transferred data to the external device 3-1 via the line unit 60b-1.
[0012]
[Problems to be solved by the invention]
However, in the configuration of the conventional OSI 7 layer model as shown in FIG. 16, since the data identifier is included in the protocol control information of the network layer 23-2, the relay system 2-2 executes the network layer service. There must be. That is, even when there is almost no processing in the network layer 23-2 such as data to be discarded, the service up to the network layer must be performed. For this reason, there is a possibility that the amount of processing and load bottlenecks may occur between the data link layer 22-2 and the network layer 23-2.
[0013]
Further, for example, in the exchange system as shown in FIG. 17, even if there is data that is not processed by the device control unit 63-1 in the transmission data 341, the layer that is processed by the device control unit 63-1 When there is an instruction not to process data in the protocol control information, it is necessary to transmit the data to the device control unit 63-1, and confirm the instruction not to process. For this reason, unnecessary communication occurs between the communication control unit 62-1 and the device control unit 63-1, which may also become a bottleneck of the processing amount and load.
[0014]
In view of the above points, the present invention aims to reduce extra protocol processing and reduce the amount of communication between layers.
[0015]
In addition, the present invention reduces the traffic of a part that may become a bottleneck of the processing amount and load by determining the protocol control information of the upper layer in the lower layer, and improves the performance of the entire network. Objective.
[0016]
Furthermore, the present invention reduces the amount of data transferred between the communication control unit and the device control unit, improves the throughput of the device by reducing the load on the device control unit, and improves the performance of the entire exchange. With the goal.
[0017]
[Means for Solving the Problems]
In the present invention, in particular, in processing at the layer (N), a data identifier included in the protocol control information of the layer (N + 1) or higher layer is searched, and if it is a specific data identifier, the specific data The processing corresponding to the identifier is performed. On the other hand, when the data identifier is not specific, the processing of the layer (N) protocol is executed and terminated.
[0018]
According to the first solution of the present invention,
A protocol processing method (N is an integer) in a layer (N) of a plurality of layers,
A search step of searching for a data identifier for a layer greater than or equal to layer (N + 1);
A determination step of determining whether the data identifier searched by the search step is a specific data identifier;
If it is determined that the data identifier searched in the determination step is a specific data identifier, a corresponding processing step for performing processing corresponding to the specific data identifier;
On the other hand, if it is determined that the data identifier retrieved in the determination step is not a specific data identifier, a protocol processing step for executing layer (N) protocol processing
A protocol processing method is provided.
[0019]
According to the second solution of the present invention,
A protocol processing device (N is an integer) in a layer (N) in a plurality of layers,
A data processing buffer for storing received data received from a lower-level device;
A transmission buffer for transmitting transmission data to a lower-level device;
An interface connected to the host device;
A corresponding processing determination unit that searches the received data stored in the data processing buffer for a data identifier for a layer of layer (N + 1) or higher and determines whether the searched data identifier is a specific data identifier;
If it is determined that the data identifier searched by the corresponding processing determination unit is a specific data identifier, a corresponding processing unit that performs processing corresponding to the specific data identifier;
If the data identifier retrieved by the corresponding process determination unit is determined not to be a specific data identifier, a protocol process for executing layer (N) protocol processing and transferring data to the host device via the interface Part
A protocol processing device comprising:
[0020]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a flowchart showing an outline of protocol processing according to the present invention. In the present invention, in the layer (N) process, a search step 101 for searching for data identifiers of the layer (N + 1) or higher is performed. Next, a determination step 102 for determining whether or not the data identifier searched here is a specific data identifier is executed. The specific data identifier will be described later. If it is determined in the determination step 102 that the data identifier is a specific data identifier, the corresponding processing step 104 which is processing corresponding to the specific data identifier is performed, and the layer (N) processing is ended. On the other hand, when it is determined in the determination step 102 that the data identifier is not a specific data identifier, the protocol processing step 103 for executing the layer (N) protocol processing is performed, and the layer (N) processing is ended.
[0021]
In FIG. 1, the layer (N) process is terminated after the response processing step 104 is performed, but the layer (N) process is terminated after the protocol processing step 103 is performed after the response processing step 104. May be. Also, the protocol processing step 103 is performed at the beginning of the layer (N) processing, and then the search step 101 for data identifiers of the layer (N + 1) and higher and the determination step 102 for specific data identifiers are performed. The steps may be executed in the order of ending the processing of) or ending the processing of the layer (N) through the corresponding processing 104.
[0022]
FIG. 2 shows an example of a flowchart regarding application of protocol processing according to the present invention. Here, a case where the specific data identifier indicates, for example, discard or return will be described. Of course, the processing corresponding to the data identifier is not limited to discarding and returning, and any processing may be performed as long as it does not affect the layer higher than the layer handling the protocol control information including the data identifier.
[0023]
In the protocol processing method of the present invention, in the layer (N) processing, first, a search step 111 for searching for a data identifier included in protocol control information of the layer (N + 1) or higher is executed. Next, a determination step 112 for determining whether the retrieved data identifier is a specific data identifier is executed. Here, when it is determined that the data identifier is a specific data identifier, the determination is performed to determine whether the data identifier is an identifier to be discarded or returned in order to perform discard and return that are processing corresponding to the data identifier. Step 114 is performed. If it is determined that the corresponding process is discarded, a discard process step 115 is performed. On the other hand, if it is determined that the corresponding process is a return, a return processing step 116 is performed. On the other hand, if it is determined in the determination step 112 that the data identifier is not a specific data identifier, the layer (N) protocol processing step 113 is performed, and the layer (N) processing is terminated.
[0024]
In the return processing step 116, for example, when the received data is returned as it is, when a part of the received data is updated and returned, when different data using a part of the received data is returned, In some cases, data completely different from the received data is returned. Furthermore, it is possible not only to return to the transmission source but also to transfer to a different destination. At that time, the transfer destination can be appropriately set to a transfer destination in the received data or a predetermined transfer destination.
[0025]
The specific data identifier used for determination in FIG. 2 is, for example, an error identifier, a protocol identifier, an upper protocol identifier, a protocol version identifier, a data class identifier, an identifier indicating a physical line or logical line, such as a data link identifier, etc. Can be used. Of course, the specific data identifier does not need to be the one described above, the protocol processing contents, function, data type, command type, response type, error type, data priority, data length, destination address, transmission It may be an identifier or a field indicating the original address, maximum data length, presence / absence of data division, survival time, error detection code, and the like.
[0026]
As a specific communication service example, for example, when a specific data identifier has a data length, when data having a data length that is not permitted by the upper layer protocol arrives, discarding is performed in the layer protocol processing. it can. As another specific communication service example, when a specific data identifier is a destination address, in a call process, a corresponding process for rejecting an incoming call and disconnecting a connection in a lower apparatus can be executed. When a specific data identifier is a priority, it is possible to execute a handling process that discards data and does not connect to communications below a certain priority. At this time, it can be returned to the calling side that the data has been discarded. Also, if the specific data identifier is an error detection / error, the lower-level device performs error processing, discards the transmission data, or returns to the sending side to display that it is unprocessed or error, etc. It can also be executed. Further, when the specific data identifier is a destination address, a service for transferring received data to a terminal having a destination address other than the transmission source can be performed.
[0027]
Furthermore, the processing corresponding to a specific data identifier does not necessarily have to be the same processing, and the target specific data identifier is changed depending on the system or network status, or the processing content for data having a specific data identifier is changed. You may change it. As a specific communication service example, for example, when a specific data identifier is data priority, if the system processing load is heavy, the data identifier with low priority is discarded or returned, and the processing load is light In this case, even data having a low priority data identifier can be processed in the same manner as other data.
[0028]
FIG. 3 is an explanatory diagram for searching for a data identifier in the present invention. Here, as an example, (N) protocol data unit 24 and (N + 1) protocol data unit 23 are shown. Here, the data identifier 2311 to be searched in the processing of the layer (N) is included in the protocol control information 231 of the layer (N + 1). In the present invention, the data identifier 2311 is searched in the layer (N).
[0029]
As a search method, for example, when the protocol control information 241 of the layer (N) has a fixed length, the length of the protocol control information 241 of the layer (N) and the protocol control information 231 of the layer (N + 1) The total length from the beginning to the data identifier 2311 is read from the beginning of the layer (N) protocol, and the data identifier 2411 in the layer (N) is searched. If the layer (N) protocol control information 241 has a variable length and the layer (N) protocol control information 241 includes the length of the protocol control information 241, the layer (N) protocol control information 241 The total length from the beginning of the layer (N + 1) protocol control information 231 to the data identifier 2311 is read from the beginning of the layer (N) protocol, and the data identifier 2411 in the layer (N) is searched. Also, when the layer (N + 1) protocol control information 231 has an area composed of a specific pattern that does not appear in the layer (N) protocol control information 241, the specific pattern is searched and searched. The data identifier 2311 is searched by designating and reading the length from the position of the specific pattern to the data identifier 2311. Therefore, in layer (N) processing, a specific pattern included in layer (N + 1) is searched from the beginning of the layer (N) protocol, and the length from the position of the specific pattern to the data identifier 2411 is designated and read. Thus, the data identifier 2411 can be read.
[0030]
In FIG. 3, the protocol control information of each layer is located at the beginning of the protocol data unit, but it is not necessarily located at the beginning, and may be located at the end of the protocol data unit. For example, if the protocol control information 241 of the layer (N) protocol is located at the end of the layer (N) protocol, the beginning of the protocol control information 231 of the layer (N + 1) protocol and the protocol data unit 24 of the layer (N) Since the beginning of the layer (N) is the same position, the length from the beginning of the layer (N + 1) protocol control information 231 to the data identifier 2311 is read from the beginning of the layer (N) protocol data unit 24 in the layer (N) processing. Thus, the data identifier 2411 can be searched.
[0031]
Next, FIG. 4 shows an explanatory diagram of a communication form in the OSI 7 layer model to which the protocol processing according to the present invention is applied. FIG. 4 shows an example of communication composed of two termination systems 1-8 and 1-9, and a relay system 2-3 that is located between them and relays data between the termination systems. Yes. In the prior art, for example, the data identifier is determined and processed in the network layer. However, by applying the present invention, the data identifier included in the network layer protocol control information can be searched in the data link layer.
[0032]
In FIG. 4, the data 331 transmitted from the termination system 1-8 includes the data identifier in the network layer protocol control information, and the contents of the data identifier are determined in the data link layer of the relay system 2-3. If the retrieved data identifier is a specific data identifier, a corresponding process is performed according to the content of the data identifier. For example, if the corresponding process is data return, the data 333 is returned to the end system 1-8. If the corresponding process is data discard, the data is discarded. If the data identifier is not a specific data identifier, the data link layer service is performed, transferred to the network layer, and the data 332 is transmitted to the end system 1-9 in the same manner as in the communication mode using the conventional technology.
[0033]
In FIG. 4, compared with FIG. 16, the protocol processing of the data link layer 22-3 and the network layer 23-3 is reduced, and the traffic between the data link layer 22-3 and the network layer 23-3 is reduced. Decrease. Further, in FIG. 4, the data returned to the termination system 1-8 is returned earlier than before, and the data transferred to the termination device 1-9 reduces the processing of the network layer 23-3 of the relay system 2-3. Therefore, it is transmitted earlier than before. Therefore, from the end system 1-8 and the end system 1-9, it seems that the processing capacity of the relay system 2-3 is improved, and as a result, the processing capacity of the entire system is improved.
[0034]
FIG. 5 shows an example of a schematic configuration diagram of an exchange system related to the protocol processing apparatus according to the present invention. This exchange system includes an external device 3-2 and an exchange 4-2. The exchange 4-2 includes line units 60a-2 and 60b-2, a switch unit 61-2, a communication control unit 62-2, and a device control unit 63-2.
[0035]
The external device 3-2 transmits the data 351 to the exchange 4-2. The exchange 4-2 transfers the data 351 to the communication control unit 62-2 through processing in the line unit 60b-2 and the switch unit 61-2. The communication control unit 62-2 searches the transmitted data 351 for a data identifier included in the protocol control information processed by the device control unit 63-2. Then, if the retrieved data identifier is a data identifier of data unnecessary in the device control unit 63-2, the communication control unit 62-2 does not transfer the data identifier to the device control unit 63-2, The reception confirmation 353 is generated at -2, and the reception confirmation 355 is transmitted to the external device 3-2. Further, when the retrieved data identifier is a data identifier of data necessary for the device control unit 63-2, the communication control unit 62-2 transfers the data as transmission data 352 to the device control unit 63-2. The device control unit 63-2 processes the transferred data, and controls each unit in the exchange 4-2 using an in-device control signal 356. In addition, the device control unit 63-2 transmits a reception confirmation 354 of the transferred data to the communication control device 62-2.
[0036]
In FIG. 5, the communication control device 62-2 is placed after the switch 61-2. However, if the communication control device 62-2 is in a position where the protocol control information processed by the device control device 63-2 can be searched, The position of 2 is not specified. In FIG. 5, the communication control device 62-2 generates the reception confirmation 353. However, any other format of data may be generated, and the data need not be generated. Good. The communication control device 62-2 returns the reception confirmation 353 to the external device 3-2. However, the communication control device 62-2 may return it to other devices as well as the external device 3-2. It does not have to be. FIG. 5 shows the case where the present invention is applied to the transmission data 355 from the external device 3-2. However, the transmission data 351 from the external device 3-2 is not necessarily required, and the communication control unit 62-2 is not necessarily used. As long as the data is transmitted to the device control unit 63-2, the data may be from anywhere, and the source of the data is not specified. In FIG. 5, a part of the transmission data 351 is processed by the device control unit 63-2 and becomes an in-device control signal 356 for controlling each part in the exchange 4-2, but it is not necessarily required to be a control signal. And various signals can be used.
[0037]
As shown in FIG. 5, when the present invention is applied to an exchange system, the processing order of specific data and other data is different from that of the conventional method, and as a result, the data is transmitted from the external device 3-2. The order of the reception confirmation 355 of the exchange 4-2 with respect to the transmission data 351 may change. For a specific data identifier, the time required for the reception confirmation 355 to be received after the external device 3-2 transmits the transmission data 351 may be shortened. In addition, since the present invention performs processing corresponding to a specific data identifier, when the number of specific data identifiers increases, processing corresponding to the specific data identifier increases. However, since the processing corresponding to a specific data identifier can be performed to reduce processing in the layer that should originally process the data identifier, the processing amount and load of the entire system do not increase.
[0038]
In the present invention, if a specific data identifier is used, processing corresponding to the specific data identifier is executed. Therefore, even if a field other than the data identifier of the protocol control information of the layer that originally processes the data identifier contains data that does not satisfy an undefined value or domain, if it is determined to be a specific data identifier Processing such as return may be performed. For example, in FIG. 5, when the transmission data 351 transmitted by the external device 3-2 has a specific data identifier, the exchange 4-2 returns a reception confirmation, and a protocol higher than the layer that originally processes the data identifier. If an incorrect value is found in the control information, it is assumed that the exchange 4-2 is a system that discards the data and does not return a reception confirmation. At this time, when receiving data having a specific data identifier and including an illegal value in the protocol control information of the layer or higher that processes the data identifier from the external device 3-2, the exchange 4-2 Detect identifier and send back acknowledgment.
[0039]
FIG. 6 shows a configuration diagram of a protocol processing apparatus according to the present invention. As an example, this protocol processing device is a hardware configuration example corresponding to the communication control unit 62-2 in the switching system shown in FIG.
[0040]
The communication control unit 5 includes a switch interface 50, a reception buffer 51a, a transmission buffer 51b, a data processing buffer 52, a layer (N) protocol processing unit 53, a device control unit interface 54, a corresponding processing determination table 55, a processor 56, and a bus 57. A data identifier storage buffer 58 is provided. The processor 56 includes an in-device control unit 561, a correspondence processing determination unit 562, and a data identifier correspondence processing unit 563. Further, the data identifier correspondence processing unit 563 includes a discard processing unit 563a and a return processing unit 563b. The in-device control unit 561 controls the entire communication control unit 5. The bus 57 is used for communication between the components.
[0041]
The operation in the communication control unit 5 will be described below. Data 380 received from the switch is stored in the reception buffer 51a via the switch interface 50. The data stored in the reception buffer 51a is stored in the data processing buffer 52 in order to determine the corresponding processing. Furthermore, the processor 56 causes the corresponding process determination unit 562 to perform a corresponding process determination on the data stored in the corresponding process data processing buffer 52. When the correspondence processing determination unit 562 determines that the data identifier is a specific data identifier, the data identifier correspondence processing unit 563 executes processing corresponding to the data identifier. For example, when it is determined that the disposal process is determined by the corresponding process determination unit 562, the discard process unit 563a executes the discard process. When the response processing determination 562 determines that the return processing is to be performed, the return processing unit 563b performs processing for returning the return data 381. When the response processing determination unit 562 determines that the target is not a specific processing target such as a discard processing target or a return processing target (normal data, etc.), the layer (N) protocol processing unit 53 performs layer (N) protocol processing, and the device Data 382 is transferred to the device controller via the controller interface 54. Note that the response processing determination table 55 is used for the response processing determination by the response processing determination unit 562. With such a hardware configuration of the protocol processing apparatus, the protocol processing method according to the present invention can be realized according to the detailed flowcharts shown in FIGS.
[0042]
FIG. 7 shows a detailed flowchart of the first embodiment for the protocol processing according to the present invention.
[0043]
In the layer (N) process, first, the data received from the layer (N-1) stored in the reception buffer 51a is stored in the data processing buffer 52 in the layer (N) (step 121). Next, the length of the data stored in the data processing buffer 52 is acquired (step 122). The received data may not be stored in the data processing buffer 52, and the subsequent processing may be performed by directly accessing the data in the receiving buffer 51a. Next, as described above, the data identifier is searched by appropriately using information on the position of the data identifier. For example, the sum of the length of the protocol control information of the layer (N) protocol and the length from the top of the layer (N + 1) protocol to the data identifier is read from the top of the data stored in the data processing buffer 52. The read data identifier is stored in the data identifier storage buffer 58 (step 123). The data identifier does not necessarily have to be stored in the data identifier storage buffer 58, and subsequent processing may be performed by accessing the data in the data processing buffer 52 or the reception buffer 51a.
[0044]
Next, it is determined whether or not the read data identifier is a specific data identifier. Here, FIG. 8 is an explanatory diagram of the correspondence processing determination table. The corresponding process determination table 70 includes a process target identifier table 700 and an identifier process table 701. Corresponding processing determination table 70 stores corresponding processing 7010 to 701n corresponding to specific data identifiers 7000 to 700n in processing target identifier table 700 in identifier processing table 701.
[0045]
From the start of the process determination loop (step 124a) to the end of the process determination loop (step 124b), i is processed in a loop from 1 to n. In this processing loop, the processing determination check (step 125) is performed using the processing target identifier table 700 included in the corresponding processing determination table 70. In the processing determination check (step 125), the data identifier stored in the data identifier storage buffer 58 is converted into specific data identifiers 7000, 7001, 7002,. ], P [1],..., P [n], and if there is the same value, it is determined as a specific data identifier, and processing corresponding to the specific data identifier is performed. When the comparison with all the elements in the processing target identifier table 700 is completed and there is no same value, the processing determination loop is terminated (step 124b), and (N) protocol processing is performed (step 126).
[0046]
The number of elements in the processing target identifier table 700 in FIG. 7 can be as many as the processing target data in the system. In the processing target identifier table 700, there is no element with the same value, or even if it exists, the second and subsequent elements are not determined. In FIG. 7, the comparison is performed using the processing target identifier table 700 having the data identifier value of the processing target data as an element, but the processing target identifier table 700 is not necessarily used. For example, selection / branching by comparison may be continuously performed without using a method of referring to the table in a loop. The processing corresponding to the specific data identifier in FIG. 7 is determined using the identifier processing table 701 corresponding to the processing target identifier table 700 in the corresponding processing determination table 70.
[0047]
If it is determined in the process determination check (step 125) that the data is specific process target data, a corresponding process check is performed (step 127). In the corresponding process check (step 127), the corresponding process is selected by referring to the element in the identifier-specific process table 701 corresponding to the element in the process target identifier table 700 determined to be a specific data identifier in the process determination check. For example, when p [2] 7002 that is an element of the processing target identifier table 700 determines that the data is specific processing target data, s [2] that is an element corresponding to p [2] 7002 in the processing table 701 by identifier Referring to 7012, the corresponding process indicated by s [2] is performed. In FIG. 7, the discard process and the return process are prepared as the values of the elements of the identifier-specific process table 702, but the combination of the discard process and the return process is not necessarily required, and a process defined by the system may be incorporated. Moreover, the number of corresponding processes may be one or more.
[0048]
Of the corresponding processes in FIG. 7, a process when it is determined as a discard process in the corresponding process check (step 127) is shown below. In the discarding process in FIG. 7, as an example, data including a specific data identifier is discarded and a reception confirmation message is returned. The same data identifier as the data identifier of the discarded data is assigned to the reception confirmation message returned at this time. Upon entering the discarding process, first, the read pointer of the reception buffer 51a is advanced by the length of the data including the specific data identifier (step 128), and the data received from the layer (N-1) has already been read. To do. Further, a fixed format of the reception confirmation message prepared in advance is written at the position of the current write pointer in the transmission buffer 51b (step 129). Further, the specific data identifier of the reception data to be processed is written in a predetermined location of the transmission data (step 130). Next, the length of the reception confirmation message for transmitting the write pointer of the transmission buffer 51b is advanced (step 131), the writing is completed, and the discarding process is completed.
[0049]
Of the corresponding processes in FIG. 7, a process when it is determined as a return process in the corresponding process check (step 127) is shown below. In the return process of FIG. 7, as an example, a process of returning data including a specific data identifier as it is is performed. When the return processing is started, first, the data stored in the data processing buffer 52 is copied to the transmission buffer 51b (step 132), and the received data is prepared for return as it is. Further, assume that the read pointer of the reception buffer 51a is advanced by the length of the data including the specific data identifier (step 133), and the data received from the layer (N-1) has already been read. Next, the length of the data including the specific data identifier for transmitting the write pointer of the transmission buffer 51b is advanced (step 134), the writing is completed, and the return processing is terminated.
[0050]
FIG. 9 shows a detailed flowchart of the second embodiment of the protocol processing method according to the present invention.
[0051]
This figure is a flowchart in the case of using the discard process table 800 and the return process table 810 instead of the corresponding process determination table 70 used in the detailed flowchart of the first embodiment of the present invention shown in FIG. Indicates. In FIG. 9, the process up to the process of acquiring the data identifier and storing it in the data identifier storage buffer (step 143) is the same as in FIG. The data identifier does not necessarily have to be stored in the data identifier storage buffer 58, and subsequent processing may be performed by accessing the data in the data processing buffer 52 or the reception buffer 51a. In FIG. 9, as an example, a discard determination loop (steps 144a to 144b) for performing a discard determination check (step 145) and a return determination check (step 147) are performed on the data identifier stored in the data identifier storage buffer 58. The return determination loop to be performed (steps 146a to 146b) is executed in order.
[0052]
Here, FIG. 10 is an explanatory diagram of the discard processing table and the return processing table. The discard processing table 800 stores specific data identifiers 8000 to 800n to be discarded. In the return processing table 810, specific data identifiers 8100 to 810n to be returned are stored.
[0053]
In the loop from the start of the discard judgment loop (step 144a) to the end of the discard judgment loop (step 144b), in the discard judgment check (step 145), the data identifier stored in the data identifier storage buffer is stored in each discard processing table 800. Compared with the elements 8000, 8001, 8002,..., 800n, if the value is the same, it is determined that the data identifier is the target of the discard process and the discard process is performed. Each processing method of the discard processing is the same as the method shown in FIG. If the comparison results are not the same value, a return determination loop is executed. In the loop from the return determination loop start (step 146a) to the return determination loop end (step 146b), in the return determination check (step 147), the data identifier stored in the data identifier storage buffer 58 is returned to the return processing table 810. .., 810n, if it is the same value, it is determined that the data identifier is the object of the return process, and the return process is performed. Each processing method of the return processing is the same as the method shown in FIG. If there is no same value in the return processing loop, normal (N) protocol processing is performed (step 148).
[0054]
FIG. 11 shows a detailed flowchart of the third embodiment of the protocol processing method according to the present invention.
[0055]
FIG. 11 is a detailed flowchart in which the discard determination loop and the return determination loop in the detailed flowchart of the second embodiment of the present invention shown in FIG. 9 are integrated into a process determination loop. In FIG. 11, the process up to the process of acquiring the data identifier and storing it in the data identifier storage buffer 58 (step 163) is the same as in FIG. 7 or FIG. The data identifier does not necessarily have to be stored in the data identifier storage buffer 58, and subsequent processing may be performed by accessing the data in the data processing buffer 52 or the reception buffer 51a. In FIG. 11, a processing determination loop (steps 164a to 164b) for performing both the discard determination check (step 165) and the return determination check (step 166) in order for the data identifier stored in the data identifier storage buffer 58 is shown. Execute.
[0056]
Here, FIG. 12 is an explanatory diagram of the discard processing table and the return processing table. In the discard processing table 900, specific data identifiers 9000 to 900n to be discarded are stored. The return processing table 910 stores specific data identifiers 9100 to 910n to be returned.
[0057]
In the loop from the start of the process determination loop (step 164a) to the end of the process determination loop (step 164b), the data identifier stored in the data identifier storage buffer is converted into each element 9000, 9001, 9002, .., 900n and each element 9100, 9101, 9102,..., 910n of the return processing table 910 are alternately compared. That is, data is compared such as d [0], r [0], d [1], r [1], d [2], r [2],. Here, if the value is the same as the element of the discard process table 900, it is determined that the data is the target of the discard process, and the discard process is performed. Each processing method of the discard processing is the same as the method shown in FIG. If the value is the same as the element of the return processing table 910, it is determined that the data is the target of the return processing, and the return processing is performed. Each processing method of the return processing is the same as the method shown in FIG. When there is no same value in the discard processing table and the return processing table and the processing determination loop is completed (step 164b), normal (N) protocol processing (step 167) is performed.
[0058]
7, 9, and 11, the discard process includes a process of returning the reception confirmation message, and the data received in the return process is returned as it is. However, such a process is not necessarily required. Depending on the contents of the data identifier and the configuration of the system to which the present invention is applied, the discard process may be a process that does not return the reception confirmation message but only discards. In the return process, for example, a process is performed in which data indicating that a specific process has been performed on the received data is returned, or the received data is returned after being filtered. May be executed. In FIG. 7, FIG. 9, and FIG. 11, the reception buffer 51a and the transmission buffer 51b are managed by the read pointer and the write pointer. However, this processing method is not necessarily required and can be changed as appropriate. it can. For example, the memory configuration is such that the next data cannot be written while the previous data remains, and memory control by the pointer is necessary when writing from the beginning of the memory. Instead, it is only necessary to specify the start address of the memory.
[0059]
In FIGS. 9 and 11, either the discard process determination or the return process determination may be performed first. In these examples, a discard process and a return process are prepared, but the combination of the discard process and the return process is not necessarily required, and a process defined by the system may be incorporated.
[0060]
Furthermore, when there are three or more specific data identifiers, the present invention can be applied by providing a plurality of process determination loops and a plurality of corresponding processes.
[0061]
【The invention's effect】
According to the present invention, as described above, extra protocol processing can be reduced and the amount of communication between layers can be reduced.
[0062]
In addition, according to the present invention, the upper layer protocol control information is discriminated by the lower layer, thereby reducing the traffic that may become a bottleneck of the processing amount and load, and improving the performance of the entire network. Can do.
[0063]
Furthermore, according to the present invention, the data transfer amount between the communication control unit 62-2 and the device control unit 63-2 as shown in FIG. 5 can be reduced, and the load on the device control unit 63-2 is reduced. Therefore, the throughput of the apparatus can be improved and the performance of the exchange 4-2 can be improved. Further, since the time for returning the reception confirmation 355 for the transmission data 351 transmitted by the external device 3-2 is short, it seems that the performance of the exchange 4-2 is improved as viewed from the external device 3-2.
[0064]
[Brief description of the drawings]
FIG. 1 is a flowchart about an outline of protocol processing according to the present invention.
FIG. 2 is a flowchart regarding application of protocol processing according to the present invention.
FIG. 3 is an explanatory diagram of data identifier search in the present invention.
FIG. 4 is an explanatory diagram of a communication form in an OSI 7 layer model to which the protocol processing according to the present invention is applied.
FIG. 5 is a schematic configuration diagram of an exchange system related to a protocol processing apparatus according to the present invention.
FIG. 6 is a configuration diagram of a protocol processing apparatus according to the present invention.
FIG. 7 is a detailed flowchart of the first embodiment regarding protocol processing according to the present invention;
FIG. 8 is an explanatory diagram of a handling process determination table in FIG. 8;
FIG. 9 is a detailed flowchart of a second embodiment of protocol processing according to the present invention.
FIG. 10 is an explanatory diagram of a discard processing table and a return processing table.
FIG. 11 is a detailed flowchart of protocol processing according to the third embodiment of the present invention.
FIG. 12 is an explanatory diagram of a discard processing table and a return processing table.
FIG. 13 is a schematic diagram of a layer configuration and a protocol according to an OSI reference model.
FIG. 14 is an explanatory diagram of an OSI 7 layer model.
FIG. 15 is an explanatory diagram of a service data unit and a protocol data unit.
FIG. 16 is an explanatory diagram of a communication form in the OSI 7 layer model.
FIG. 17 is a configuration diagram of a conventional exchange system.
[Explanation of symbols]
1-3,1-4,1-6,1-7,1-8,1-9 Termination system
2-1,2-2,2-3 exchange system
3-1,3-2 External device
4-1,4-2 switch
5 Communication control unit
50 Switch interface
51a Receive buffer
51b Transmit buffer
52 Data processing buffer
53 Layer (N) protocol processor
54 Device controller interface
55 Supported processing judgment table
56 processors
57 Bus
58 Data identifier storage buffer
561 In-device controller
562 Corresponding processing judgment part
563 Data identifier correspondence processing part
563a Waste disposal department
563b Return processing section
62-1,62-2 Communication control unit
63-1,63-2 Device controller

Claims (15)

複数レイヤ中のレイヤ(N)における(Nは整数)プロトコル処理方法であって、
レイヤ(N+1)以上のレイヤについてのデータ識別子を検索する検索ステップと、
前記検索ステップにより検索されたデータ識別子が特定のデータ識別子か否かを判定する判定ステップと、
前記判定ステップで検索されたデータ識別子が特定のデータ識別子であると判定された場合は、当該特定のデータ識別子に対応した処理を行う対応処理ステップと、
一方、前記判定ステップで検索されたデータ識別子が特定のデータ識別子ではないと判定された場合は、レイヤ(N)プロトコル処理を実行するプロトコル処理ステップ
を備えたプロトコル処理方法。
A protocol processing method (N is an integer) in a layer (N) of a plurality of layers,
A search step of searching for a data identifier for a layer greater than or equal to layer (N + 1);
A determination step of determining whether the data identifier searched by the search step is a specific data identifier;
If it is determined that the data identifier searched in the determination step is a specific data identifier, a corresponding processing step for performing processing corresponding to the specific data identifier;
On the other hand, a protocol processing method comprising a protocol processing step of executing a layer (N) protocol process when it is determined that the data identifier searched in the determination step is not a specific data identifier.
前記検索ステップは、
レイヤ(N−1)から受信したデータをレイヤ(N)のデータ処理用バッファに格納するステップと、
データ処理用バッファに格納したデータから、(N)プロトコルサービスデータ単位中のレイヤ(N+1)以上のレイヤについてのデータ識別子を、その位置に関する情報に基づき取得するステップ
を備えたことを特徴とする請求項1に記載のプロトコル処理方法。
The search step includes
Storing data received from the layer (N-1) in a data processing buffer of the layer (N);
A step of acquiring, from data stored in a data processing buffer, a data identifier for a layer (N + 1) or higher in a (N) protocol service data unit based on information on the position. Item 4. The protocol processing method according to Item 1.
前記判定ステップは、
特定のデータ識別子要素とそれに対応する対応処理要素とが記憶された対応処理判定テーブルを参照し、
取得されたデータ識別子と対応処理判定テーブルの特定のデータ識別子要素とを比較して、同じ値であれば特定のデータ識別子であると判断し、
前記対応処理ステップは、
特定のデータ識別子要素と対応した対応処理要素に従い対応処理を行うことを特徴とする請求項1又は2に記載のプロトコル処理方法。
The determination step includes
With reference to the correspondence process determination table in which the specific data identifier element and the corresponding process element corresponding to the specific data identifier element are stored,
The acquired data identifier is compared with a specific data identifier element of the corresponding processing determination table, and if it is the same value, it is determined as a specific data identifier,
The corresponding processing step includes
3. The protocol processing method according to claim 1, wherein the corresponding processing is performed according to a corresponding processing element corresponding to a specific data identifier element.
前記判定ステップは、
第1の対応処理がなされる第1の特定のデータ識別子要素が記憶された第1の対応処理テーブルを参照し、
取得されたデータ識別子と第1の対応処理テーブルの第1の特定のデータ識別子要素とを比較して、同じ値であれば第1の特定のデータ識別子であると判断し、
前記対応処理ステップは、
第1の特定のデータ識別子に従い第1の対応処理を実行し、
つぎに、
前記判定ステップは、
第2の対応処理がなされる第2の特定のデータ識別子要素が記憶された第2の対応処理テーブルを参照し、
取得されたデータ識別子と第2の対応処理テーブルの第2の特定のデータ識別子要素とを比較して、同じ値であれば第2の特定のデータ識別子であると判断し、
前記対応処理ステップは、
第2の特定のデータ識別子に従い第2の対応処理を実行すること
を特徴とする請求項1又は2に記載のプロトコル処理方法。
The determination step includes
With reference to the first correspondence processing table storing the first specific data identifier element to be subjected to the first correspondence processing,
The acquired data identifier is compared with the first specific data identifier element of the first correspondence processing table, and if it is the same value, it is determined that it is the first specific data identifier,
The corresponding processing step includes
Performing a first handling process according to a first specific data identifier;
Next,
The determination step includes
With reference to the second correspondence processing table in which the second specific data identifier element to be subjected to the second correspondence processing is stored,
The acquired data identifier is compared with the second specific data identifier element of the second correspondence processing table, and if it is the same value, it is determined that it is the second specific data identifier,
The corresponding processing step includes
3. The protocol processing method according to claim 1, wherein the second corresponding process is executed in accordance with the second specific data identifier.
前記判定ステップは、
第1の対応処理がなされる第1の特定のデータ識別子要素が記憶された第1の対応処理テーブルを参照し、
取得されたデータ識別子と第1の対応処理テーブルの第1の特定のデータ識別子要素とを比較して、同じ値であれば第1の特定のデータ識別子であると判断し、
第2の対応処理がなされる第2の特定のデータ識別子要素が記憶された第2の対応処理テーブルを参照し、
取得されたデータ識別子と第2の対応処理テーブルの第2の特定のデータ識別子要素とを比較して、同じ値であれば第2の特定のデータ識別子であると判断し、
前記対応処理ステップは、
前記判定ステップにより判断された第1又は第2の特定のデータ識別子に対応する第1又は第2の対応処理を実行することを特徴とする請求項1又は2に記載のプロトコル処理方法。
The determination step includes
With reference to the first correspondence processing table storing the first specific data identifier element to be subjected to the first correspondence processing,
The acquired data identifier is compared with the first specific data identifier element of the first correspondence processing table, and if it is the same value, it is determined that it is the first specific data identifier,
With reference to the second correspondence processing table in which the second specific data identifier element to be subjected to the second correspondence processing is stored,
The acquired data identifier is compared with the second specific data identifier element of the second correspondence processing table, and if it is the same value, it is determined that it is the second specific data identifier,
The corresponding processing step includes
3. The protocol processing method according to claim 1, wherein the first or second correspondence processing corresponding to the first or second specific data identifier determined in the determination step is executed.
特定のデータ識別子に対応した処理が、受信データを廃棄する処理であり、
前記判定ステップで廃棄処理と判断された場合、前記対応処理ステップは、特定のデータ識別子を含むデータを廃棄し、受信確認メッセージの返送を行うことを特徴とする請求項1乃至5のいずれかに記載のプロトコル処理方法。
The process corresponding to the specific data identifier is a process of discarding the received data,
6. The method according to claim 1, wherein when the determination step determines that the processing is a discarding process, the handling processing step discards the data including the specific data identifier and returns a reception confirmation message. The protocol processing method as described.
特定のデータ識別子に対応した処理が、前記プロトコルデータを返送する処理又は転送する処理であり、
前記判定ステップで返送処理又は転送処理と判断された場合、前記対応処理ステップは、特定のデータ識別子を含むデータ若しくは他のデータを返送する処理又は転送する処理を行うことを特徴とする請求項1乃至6のいずれかにに記載のプロトコル処理方法。
The process corresponding to the specific data identifier is a process of returning or transferring the protocol data,
2. The process according to claim 1, wherein when the determination step determines that the process is a return process or a transfer process, the corresponding process step performs a process of returning or transferring data including a specific data identifier or other data. 7. The protocol processing method according to any one of items 1 to 6.
データを返送する処理を行なう際に、プロトコル制御情報に未処理又はエラーであることを示すフラグ又は識別子を付与することを特徴とする請求項7に記載のプロトコル処理方法。8. The protocol processing method according to claim 7, wherein a flag or an identifier indicating unprocessed or error is added to the protocol control information when performing the process of returning data. 特定のデータ識別子に対応した処理を行なうか否かを、システム又はプロトコル処理機能の状態により変更するようにしたことを特徴とする請求項1乃至8のいずれかに記載のプロトコル処理方法。9. The protocol processing method according to claim 1, wherein whether or not to perform processing corresponding to a specific data identifier is changed according to a state of a system or a protocol processing function. 前記データ識別子が、
エラー識別子、プロトコル識別子、上位プロトコル識別子、プロトコルバージョン識別子、データのクラス識別子、データリンク識別子等の物理回線や論理回線を示す識別子、又は、プロトコルの処理内容、機能、データ種別、命令種別、応答種別、エラー種別、データの優先度、データ長、宛先アドレス、送信元アドレス、最大データ長、データ分割有無、生存時間若しくは誤り検出符号などを示す識別子であることを特徴とする請求項1乃至9のいずれかに記載のプロトコル処理方法。
The data identifier is
Error identifier, protocol identifier, upper protocol identifier, protocol version identifier, data class identifier, identifier indicating physical line or logical line such as data link identifier, or protocol processing contents, function, data type, command type, response type 10. An identifier indicating error type, data priority, data length, destination address, transmission source address, maximum data length, presence / absence of data division, lifetime or error detection code, and the like. The protocol processing method according to any one of the above.
複数レイヤ中のレイヤ(N)における(Nは整数)プロトコル処理装置であって、
下位装置から受信した受信データを格納するデータ処理用バッファと、
下位装置へ送信データを送信するための送信バッファと、
上位装置へ接続されたインタフェースと、
前記データ処理用バッファに格納された受信データから、レイヤ(N+1)以上のレイヤについてのデータ識別子を検索し、検索されたデータ識別子が特定のデータ識別子か否かを判定する対応処理判定部と、
前記対応処理判定部により検索されたデータ識別子が特定のデータ識別子であると判定された場合は、当該特定のデータ識別子に対応した処理を行う対応処理部と、
前記対応処理判定部により検索されたデータ識別子が特定のデータ識別子ではないと判定された場合は、レイヤ(N)プロトコル処理を実行するとともに、前記インターフェースを介して上位装置へデータを転送するプロトコル処理部
を備えたプロトコル処理装置。
A protocol processing device (N is an integer) in a layer (N) in a plurality of layers,
A data processing buffer for storing received data received from a lower-level device;
A transmission buffer for transmitting transmission data to a lower-level device;
An interface connected to the host device;
A corresponding processing determination unit that searches the received data stored in the data processing buffer for a data identifier for a layer of layer (N + 1) or higher and determines whether the searched data identifier is a specific data identifier;
If it is determined that the data identifier searched by the corresponding processing determination unit is a specific data identifier, a corresponding processing unit that performs processing corresponding to the specific data identifier;
If the data identifier retrieved by the corresponding process determination unit is determined not to be a specific data identifier, a protocol process for executing layer (N) protocol processing and transferring data to the host device via the interface Protocol processing device comprising a unit.
前記対応処理部は、
前記対応処理判定部によって廃棄処理と判断された場合に、廃棄処理を実行する廃棄処理部と、
前記対応処理判定部によって返送処理又は転送処理と判断された場合に、データを返送する処理又は転送する処理を行う返送処理部とを備えたことを特徴とする請求項11に記載のプロトコル処理装置。
The correspondence processing unit
A disposal processing unit that executes the disposal processing when the corresponding processing determination unit determines that the disposal processing;
The protocol processing apparatus according to claim 11, further comprising: a return processing unit that performs a process of returning data or a process of transferring data when the response process determining unit determines that the process is a return process or a transfer process. .
特定のデータ識別子に対応して、対応処理要素が記憶されている対応処理判定テーブルをさらに備えたことを特徴とする請求項11乃至12のいずれかに記載のプロトコル処理装置。13. The protocol processing device according to claim 11, further comprising a correspondence processing determination table in which correspondence processing elements are stored in correspondence with specific data identifiers. 対応処理毎に、その対応処理がなされる特定のデータ識別子が記憶された対応処理テーブルをさらに備えたことを特徴とする請求項11乃至12のいずれかに記載のプロトコル処理装置。The protocol processing apparatus according to claim 11, further comprising a correspondence processing table storing a specific data identifier for which the correspondence processing is performed for each correspondence processing. 検索されたデータ識別子を記憶し、前記対応処理判定部により参照されるデータ識別子格納用バッファをさらに備えたことを特徴とする請求項11乃至14のいずれかに記載のプロトコル処理装置。The protocol processing apparatus according to claim 11, further comprising a data identifier storage buffer that stores the retrieved data identifier and is referred to by the corresponding process determination unit.
JP25765598A 1998-08-28 1998-08-28 Protocol processing method and protocol processing apparatus Expired - Fee Related JP3869127B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25765598A JP3869127B2 (en) 1998-08-28 1998-08-28 Protocol processing method and protocol processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25765598A JP3869127B2 (en) 1998-08-28 1998-08-28 Protocol processing method and protocol processing apparatus

Publications (2)

Publication Number Publication Date
JP2000078231A JP2000078231A (en) 2000-03-14
JP3869127B2 true JP3869127B2 (en) 2007-01-17

Family

ID=17309276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25765598A Expired - Fee Related JP3869127B2 (en) 1998-08-28 1998-08-28 Protocol processing method and protocol processing apparatus

Country Status (1)

Country Link
JP (1) JP3869127B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236674A1 (en) * 2002-06-19 2003-12-25 Henry Raymond C. Methods and systems for compression of stored audio

Also Published As

Publication number Publication date
JP2000078231A (en) 2000-03-14

Similar Documents

Publication Publication Date Title
JP4160642B2 (en) Network data transfer method
EP0758824B1 (en) Compact, adaptable, bridging/routing switch
US7032226B1 (en) Methods and apparatus for managing a buffer of events in the background
JP3449541B2 (en) Data packet transfer network and data packet transfer method
CN112887182A (en) Data transmission method, equipment and system
US9294342B2 (en) Network node apparatus system, apparatus, and method
JP3869127B2 (en) Protocol processing method and protocol processing apparatus
US7286559B2 (en) Technique for controlling selection of a peek adapter or a read adapter from multiple adapters connected to a high speed switch
CN111698142B (en) Message forwarding method and device, electronic equipment and storage medium
EP1384364B1 (en) Multiple buffers for removing unwanted header information from received data packets
JP4655733B2 (en) Receiving method and apparatus in ring-type duplex network
JP2535874B2 (en) Routing control method for packet switching network
CN114158067B (en) Method and device for data transmission in private network
JPH09289523A (en) Packet switching repeating system
JP3475899B2 (en) Data processing method of packet switch device receiver
JP2006211136A (en) Data processor and data processing method
KR100491976B1 (en) Method for transmitting system message in a high speed router
JPH0556084A (en) Data transmission method for communication controller
JPH0621925A (en) Communication control system for multiplex transmission line
JPH0964901A (en) Address learning system for switching hub
CN116208548A (en) Service function chain processing method, service switching function and storage medium
JPH0199347A (en) Temporary storage system for facsimile communication in electronic exchange
JPS62216449A (en) Routing system
CN113300921A (en) Information transmission method and equipment
JPH0210942A (en) Loop communication system

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20040130

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040203

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050406

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060907

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061003

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061012

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091020

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101020

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101020

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111020

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121020

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121020

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131020

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees