JPH05250286A - Dynamic managing method for address space - Google Patents

Dynamic managing method for address space

Info

Publication number
JPH05250286A
JPH05250286A JP4045840A JP4584092A JPH05250286A JP H05250286 A JPH05250286 A JP H05250286A JP 4045840 A JP4045840 A JP 4045840A JP 4584092 A JP4584092 A JP 4584092A JP H05250286 A JPH05250286 A JP H05250286A
Authority
JP
Japan
Prior art keywords
address
management table
bit
address management
bits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP4045840A
Other languages
Japanese (ja)
Inventor
Toshihiko Okuma
敏彦 大熊
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4045840A priority Critical patent/JPH05250286A/en
Publication of JPH05250286A publication Critical patent/JPH05250286A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To perform retrieval at high speed by reducing memory resources. CONSTITUTION:This method is provided with a high-order address managing table 1 to statically manage addresses with the address of high-order 8 bits by dividing the address space of 16 bits, for example, by half when realizing plural sessions with the address of 16 bits by using one physical communication path between computers, and low-order address managing table 2 to dynamically manage the address space with the address of low-order 8 bits and although the high-order address managing table 1 is composed of a leading address (1) of the low-order address managing table 2 and a flag (F) (2) to display whether the low-order address managing table 2 is valid or invalid, and is made statically existent, the low-order address managing table 2 is composed of an information area address (3) to hold information required for forming the sessions and a header part (4) composed of bits to manage whether the information area address (3) is valid or invalid, and is made dynamically existent corresponding to the formation of the session (connection) with one physical communication path.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】近年のデータ通信においては、一
本の物理回線上に複数本のセションと呼ばれる論理的な
接続を行い、回線の効率的な利用,サービス性の向上が
図られている。
[Industrial field of use] In recent data communication, a logical connection called a plurality of sessions is made on a single physical line in order to efficiently use the line and improve serviceability. ..

【0002】特に、最近、該データ通信が行われる計算
機側でのインテリジェント端末の数が増加しており、上
記複数化の波は、従来の8ビットのアドレス空間では不
足し、16ビットのアドレス空間を要求するようになっ
てきている。
In particular, recently, the number of intelligent terminals on the computer side where the data communication is carried out is increasing, and the wave of pluralization is insufficient in the conventional 8-bit address space and the 16-bit address space. Are coming to demand.

【0003】このようなアドレス空間を管理しようとす
ると、膨大なメモリ空間を必要とすることから、該膨大
なメモリ資源を必要としないアドレス空間の管理方法が
必要とされる。
Since an enormous memory space is required to manage such an address space, a method for managing the address space that does not require the enormous memory resource is required.

【0004】[0004]

【従来の技術】図6は、従来のアドレス空間の管理方法
を説明する図であり、(a) はデータ処理システムの構成
例を示し、(b) は従来のアドレス空間の管理方法を示し
ている。
2. Description of the Related Art FIG. 6 is a diagram for explaining a conventional address space management method, in which (a) shows a configuration example of a data processing system and (b) shows a conventional address space management method. There is.

【0005】本発明の前提となるデータ処理システム
は、図6(a) に示したように、計算機1間を一本の物理
的な通信路を用いて接続したシステムで、その物理的な
通信路を、例えば、1バイトのアドレスを用いて、論理
的に複数のコネクション(接続)(セションという)を
実現する通信プロトコルを備えたものである。
The data processing system on which the present invention is based is a system in which computers 1 are connected using a single physical communication path as shown in FIG. The path is provided with a communication protocol that logically realizes a plurality of connections (called sessions) by using, for example, a 1-byte address.

【0006】この場合、一つの論理的な通信路が形成さ
れると、順方向,又は、ランダムな1バイトのアドレス
が発生し、該発生したアドレス(00 〜FF:16進数のアド
レス) の情報域に、該通信に必要な情報、例えば、優先
順位,通信速度,通信名称(相手システムの名称)等を
保持し、その情報域のアドレスを、該00〜FF番地(16
進) からなるアドレス管理テーブル 3に格納して管理す
る。
In this case, when one logical communication path is formed, a forward or random 1-byte address is generated, and information of the generated address (00 to FF: hexadecimal address) Information necessary for the communication, such as priority, communication speed, communication name (name of partner system), etc., is held in the area, and the address of the information area is set to the 00-FF address (16
The address management table 3 consisting of

【0007】従来のアドレス空間の管理は、上記のよう
に、せいぜい1バイト(256本)を管理すればよく、
本図 (b)に示したようにアドレス管理テーブル 3上で、
静的に、上記の如き情報を保持していても、メモリ資源
的にも問題はなかった。
In the conventional management of the address space, it is sufficient to manage at most 1 byte (256 lines) as described above.
As shown in (b) of this figure, on the address management table 3,
Even if the above information was statically held, there was no problem in terms of memory resources.

【0008】[0008]

【発明が解決しようとする課題】然しながら、前述のよ
うに、複数の通信路を実現するのに、2バイトのアドレ
ス空間(65536本のコネクション)を持つようにな
ると、従来のように、静的に情報を管理しようとする
と、仮に、そのアドレスと情報域アドレスのペアで1要
素6バイトとすると、384Kバイトの膨大なメモリ域
を必要とする問題があった。
However, as described above, if a 2-byte address space (65536 connections) is provided to realize a plurality of communication paths, it becomes static as in the conventional case. However, if the information and the address of the information area address are paired and each element has 6 bytes, a huge memory area of 384 Kbytes is required.

【0009】本発明は上記従来の欠点に鑑み、計算機 1
間を一本の物理的な通信路を用いて接続したシステム
で、その物理的な通信路上に複数個のセションを形成し
て通信を行うのに、該セションの持続性は、それほど長
くならないこと,又、該セション自体は動的であること
に着目して、該セションを識別するアドレス空間を動的
に管理する方法を提供することを目的とするものであ
る。
In view of the above-mentioned conventional drawbacks, the present invention is a computer 1
In a system in which two physical sessions are connected using a single physical communication path, multiple sessions are formed on the physical communication path for communication, but the persistence of the sessions is not so long. Another object of the present invention is to provide a method of dynamically managing an address space for identifying the session, focusing on the fact that the session itself is dynamic.

【0010】[0010]

【課題を解決するための手段】図1は、本発明の原理説
明図である。上記の問題点は下記の如くに構成したアド
レス空間の動的管理方法によって解決される。
FIG. 1 illustrates the principle of the present invention. The above problem is solved by the dynamic management method of the address space configured as follows.

【0011】計算機間を一つの通信回線を用いて接続す
るのに、nビットのアドレスで複数個のコネクション
(セション)を実現する際のアドレス空間の管理方法で
あって、該nビットのアドレス空間を上位のaビット
と,下位のbビット(a+b=n)に分割し、静的に存
在する上位のアドレス管理テーブル 1と, 動的に存在す
る下位のアドレス管理テーブル 2とで、該アドレス空間
を管理するようにし、該上位のアドレス管理テーブル 1
は、上記下位のアドレス管理テーブル 2の先頭アドレス
と, 該下位のアドレス管理テーブル 2の有効, 無効を
表示するフラグ(F) とで構成し、上記下位のアドレス
管理テーブル 2は、上記コネクション(セション)の情
報を保持する情報域のアドレスと、該情報域アドレス
の有効, 無効管理ビットからなるヘッダ部とで構成
し、上記コネクション(セション)の実現に際して、n
ビットのアドレスが与えられた時、上位のaビットで、
上記上位のアドレス管理テーブル 1を検索し、上記フラ
グ(F) が“オフ”であると、下位のアドレス管理テー
ブル 2の領域を獲得し、下位のbビットが指示する該当
の領域に、当該nビットのアドレスで通信を行うのに必
要な情報を保持する情報域のアドレスを格納して、上
記ヘッダ部の有効,無効管理ビットの、上記bビット
が指示する該当ビットを“オン”とし、上記上位のアド
レス管理テーブル 1の上記フラグ(F) を“オン”と
し、上記上位のアドレス管理テーブル 1の検索で、上記
フラグ(F) が“オン”であると、下位のbビットで、
上記下位のアドレス管理テーブル 2の上記下位のbビッ
トが指示する該当の領域に、上記情報域アドレスを格
納して、上記ヘッダ部の該bビットが指示する該当ビ
ットを“オン”とし、上記コネクション(セション)の
開放に際しては、上記nビットの上位のaビットで、上
記上位のアドレス管理テーブル 1を検索し、該aビット
が指示する該当領域の下位のアドレス管理テーブル 2の
アドレスに基づいて、該下位のアドレス管理テーブル 2
のヘッダ部を検索し、該bビットが指示する該当のビ
ットを“オフ”とし、該ヘッダ部の全“0”が検知さ
れたとき、該下位のアドレス管理テーブル 2を開放する
ように構成する。
A method for managing an address space when a plurality of connections (sessions) are realized with an n-bit address for connecting computers using one communication line. Is divided into a high-order a bit and a low-order b bit (a + b = n), and a statically existing high-order address management table 1 and a dynamically existing low-order address management table 2 Address management table 1
Is composed of the start address of the lower address management table 2 and a flag (F) indicating valid / invalid of the lower address management table 2, and the lower address management table 2 is connected to the connection (session). ), The address of the information area holding the information, and the header section consisting of the valid / invalid management bits of the information area address.
When a bit address is given, the upper a bits
When the upper address management table 1 is searched and the flag (F) is “OFF”, the area of the lower address management table 2 is acquired, and the corresponding area designated by the lower b bits is n The address of the information area holding the information necessary for communication with the bit address is stored, and the corresponding bit of the valid / invalid management bit of the header section indicated by the b bit is set to "ON", and If the flag (F) of the upper address management table 1 is set to "ON" and the flag (F) is "ON" in the search of the upper address management table 1, the lower b bits are
The information area address is stored in a corresponding area designated by the lower b bits of the lower address management table 2 and the relevant bit designated by the b bits of the header section is turned "on" to make the connection. When releasing the (session), the upper address management table 1 is searched with the upper a bits of the n bits, and based on the address of the lower address management table 2 of the corresponding area indicated by the a bits, The lower address management table 2
Is configured to open the lower address management table 2 when all the "0" s in the header part are detected by turning off the corresponding bit indicated by the b bit. ..

【0012】[0012]

【作用】即ち、本発明においては、計算機間を物理的な
一つの通信路を用いて接続するのに、例えば、16ビット
のアドレスで複数個のセションを形成する際、該16ビッ
トのアドレス空間を半分に分けて、上位8ビットのアド
レスで静的に管理する上位のアドレス管理テーブル 1
と, 下位8ビットのアドレスで動的に管理する下位のア
ドレス管理テーブル 2とを設け、上位のアドレス管理テ
ーブル 1は、上記下位のアドレス管理テーブル 2の先頭
アドレスと, 該下位のアドレス管理テーブル 2の有
効, 無効を表示するフラグ(F) とで構成して静的に存
在させるが、上記下位のアドレス管理テーブル 2は、セ
ションの形成に必要な情報を保持する情報域アドレス
と、該情報域アドレスの有効, 無効管理ビットからな
るヘッダ部とで構成し、上記物理的な一つの通信路上
でのセションの形成に対応して動的に存在させるように
する。
That is, according to the present invention, when connecting a computer using one physical communication path, for example, when forming a plurality of sessions with a 16-bit address, the 16-bit address space Upper address management table that divides into half and statically manages with the upper 8 bits address 1
And a lower address management table 2 that is dynamically managed by the lower 8 bit address. The upper address management table 1 includes the start address of the lower address management table 2 and the lower address management table 2 It is configured statically with a flag (F) indicating whether the session is valid or invalid, but the lower address management table 2 has an information area address that holds information necessary for forming a session and the information area It is composed of a header part consisting of valid / invalid management bits of an address, and is made to dynamically exist in response to the formation of a session on one physical communication path.

【0013】具体的には、上位のアドレス管理テーブル
1の各アドレスに対応して、有効な、下位のアドレス
が、少なくとも1つ存在するとき、即ち、上記下位のア
ドレス管理テーブル 2のヘッダ部の、上記下位アドレ
スに対応するビットが、少なくとも、1つ存在すると
き、下位のアドレス管理テーブル 2を形成し、該上位の
アドレスに対して、有効な下位のアドレスが1つも存在
しないときには、該下位のアドレス管理テーブル 2をメ
モリ上から開放する。
Specifically, the upper address management table
When there is at least one valid lower address corresponding to each address of 1, the bit corresponding to the lower address in the header part of the lower address management table 2 is at least 1 When there is one, the lower address management table 2 is formed, and when there is no valid lower address for the upper address, the lower address management table 2 is released from the memory.

【0014】従って、一つの物理上の通信路上に、実際
に存在するセションが動的であることから、該下位のア
ドレス管理テーブル 2は、該セションの存在に対応し
て、動的に生成, 開放が行われ、該通信路上の全セショ
ンのアドレス空間、例えば、16バイトアドレスである
と、前述のように、65536×6バイトのアドレス管
理空間に比較して、比較的少ないメモリ空間で、実際に
通信が行われているセションに対応した下位のアドレス
管理テーブルを形成して、該アドレス空間の管理を行う
ことができる。
Therefore, since the session actually existing on one physical communication path is dynamic, the lower address management table 2 is dynamically generated in response to the existence of the session. When the release is performed and the address space of all sessions on the communication path, for example, a 16-byte address, as described above, a relatively small memory space is actually used as compared with the address management space of 65536 × 6 bytes. It is possible to manage the address space by forming a lower address management table corresponding to the session in which communication is being performed.

【0015】[0015]

【実施例】以下本発明の実施例を図面によって詳述す
る。前述の図1は、本発明の原理説明図であり、図2〜
図5は、本発明の一実施例を示した図であって、図2は
下位のアドレス管理テーブルの作成処理を流れ図で示
し、図3は下位のアドレス管理テーブルの開放処理を流
れ図で示し、図4、図5は下位のアドレス管理テーブル
を生成するときの検索処理を模式的に示している。
Embodiments of the present invention will now be described in detail with reference to the drawings. The above-mentioned FIG. 1 is an explanatory view of the principle of the present invention.
FIG. 5 is a diagram showing an embodiment of the present invention, FIG. 2 is a flow chart showing a process of creating a lower address management table, and FIG. 3 is a flow chart showing a process of releasing a lower address management table. FIG. 4 and FIG. 5 schematically show the search process when generating the lower address management table.

【0016】本発明においては、計算機間の一つの通信
路上において、セションが生成され、対応するアドレス
が発生したとき、該発生したnビットのアドレス空間を
上位のaビットと,下位のbビット(a+b=n)に分
割し、静的に存在する上位のアドレス管理テーブル 1
と、下位のアドレス管理テーブル 2とを設け、該上位の
アドレス管理テーブル 1は、下位のアドレス管理テーブ
ル 2の先頭アドレスと, 該下位のアドレス管理テーブ
ルの有効, 無効を表示するフラグ(F) とで構成し、動
的に存在する下位のアドレス管理テーブル 2は、上記セ
ションの情報を保持する情報域のアドレスと、該情報
域アドレスの有効, 無効管理ビットのヘッダ部とで
構成し、上記セションの発生で、該nビットのアドレス
が与えられた時、上位のaビットで、上記上位のアドレ
ス管理テーブル 1を検索し、上記フラグ(F) が“オ
フ”であると、下位のアドレス管理テーブル 2の領域を
獲得し、下位のbビットが指示する該当の領域に、当該
nビットのアドレスで通信を行うのに必要な情報を保持
する情報域のアドレスを格納して、上記有効,無効管
理ビット (ヘッダ部) の該当ビットを“オン”とし、
上記上位のアドレス管理テーブル 1の上記フラグ(F)
を“オン”とし、上記フラグ(F) が“オン”である
と、下位のアドレス管理テーブル 2を検索し、上記下位
のbビットが指示する該当の領域に、情報域アドレス
を格納して、上記有効,無効管理ビット (ヘッダ部)
の該当ビットを“オン”とし、該nビットのアドレスが
開放されたとき、上記下位のアドレス管理テーブル 2の
ヘッダ部の該当のビットを“オフ”にして、該ヘッダ
部が全“0”となったことを検知したとき、該下位の
アドレス管理テーブル 2を開放する手段が、本発明を実
施するのに必要な手段である。尚、全図を通して同じ符
号は同じ対象物を示している。
According to the present invention, when a session is generated and a corresponding address is generated on one communication path between computers, the generated n-bit address space is defined by the upper a bits and the lower b bits ( a + b = n) and statically existing upper address management table 1
And a lower address management table 2 are provided. The upper address management table 1 includes a start address of the lower address management table 2 and a flag (F) indicating whether the lower address management table is valid or invalid. The lower-level address management table 2 that dynamically exists is composed of the address of the information area holding the information of the session and the header section of the valid / invalid management bit of the information area address. When the n-bit address is given, the upper address management table 1 is searched with the upper a bits, and if the flag (F) is “off”, the lower address management table is searched. The area 2 is acquired, and the address of the information area that holds the information necessary for communication at the address of the n bits is stored in the area indicated by the lower b bits and the above , The "on" the corresponding bit of invalid management bit (header portion),
The flag (F) in the upper address management table 1
Is set to "ON" and the flag (F) is set to "ON", the lower address management table 2 is searched and the information area address is stored in the corresponding area indicated by the lower b bits. Valid / invalid management bit (header)
When the n-bit address is released, the corresponding bit in the header section of the lower address management table 2 is set to "OFF", and the header section becomes all "0". A means for releasing the lower address management table 2 when it is detected is a means necessary for implementing the present invention. The same reference numerals denote the same objects throughout the drawings.

【0017】以下、図6(a) に示したデータ処理システ
ムを参照しながら、図1〜図5によって、本発明のアド
レス空間の動的管理方法を説明する。前述の図6(a) に
示したように 、本発明の前提となるデータ処理システ
ムは、計算機 1間を一つの物理的な通信路を用いて接続
した形態で、その物理的な通信路を、例えば、2バイト
アドレスを使用して、論理的に、複数のコネクション
(接続)(セション) を実現する通信プロトコルを備えた
ものである。
The address space dynamic management method of the present invention will be described below with reference to FIGS. 1 to 5 while referring to the data processing system shown in FIG. 6 (a). As shown in FIG. 6A, the data processing system on which the present invention is based presupposes that the physical communication paths are such that the computers 1 are connected using one physical communication path. For example, a communication protocol that logically realizes a plurality of connections (sessions) using a 2-byte address is provided.

【0018】このようなデータ処理システムの、例え
ば、発信側の計算機において、コネクション(セショ
ン)の要求が発生し、該コネクション(セション)を形
成する為の、例えば、16ビットのアドレスが、順方向,
又はランダムに生成さると、該当のアドレスに対応する
メモリ領域 (具体的には、下位のアドレス管理テーブル
2) に、該コネクション(セション)を行うときに必要
となる情報、例えば、優先順位, 通信速度, 通信の名称
(具体的には、例えば、相手システムの名称) 等を保持
する情報域のアドレスを記憶し、該通信が終了し、上
記コネクション(セション)が解放された時点におい
て、該情報を開放する。
In such a data processing system, for example, in a computer on the originating side, a request for a connection (session) is generated, and for example, a 16-bit address for forming the connection (session) is forwarded. ,
Or, if it is randomly generated, the memory area corresponding to the corresponding address (specifically, the lower address management table
In 2), information required when making the connection (session), for example, priority, communication speed, communication name
(Specifically, for example, the address of the information area holding the name of the partner system) is stored, and the information is released when the communication is terminated and the connection (session) is released.

【0019】図2,図3は、このときの下位のアドレス
管理テーブル 2の作成, 開放処理を流れ図で示したもの
である。上記の16ビットのアドレス空間を、本実施例に
おいては、例えば、上位の8ビットと,下位の8ビット
に分割 (一般的には、上位aビットと,下位bビットに
分割, 但し、a+b=n)し、上位のアドレスに対応し
て、図1に示したように、上位のアドレス管理テーブル
1を設け、該上位のアドレス管理テーブル 1の上記上位
アドレスが示す領域に、下位のアドレス管理テーブル 2
をリンクする為に、該下位のアドレス管理テーブル 2の
先頭のアドレスと、該下位のアドレス管理テーブル 2
が有効であるか否かを示すフラグ(F) とを設ける。
2 and 3 are flow charts showing the process of creating and releasing the lower address management table 2 at this time. In the present embodiment, for example, the above 16-bit address space is divided into upper 8 bits and lower 8 bits (generally divided into upper a bits and lower b bits, where a + b = n) and corresponding to the upper address, as shown in FIG. 1, the upper address management table
1 is provided, and the lower address management table 2 is placed in the area indicated by the upper address of the upper address management table 1.
In order to link the lower address management table 2 and the top address of the lower address management table 2,
A flag (F) indicating whether or not is valid is provided.

【0020】この上位のアドレス管理テーブル 1は、上
記セションの発生の有無に関わらず静的に存在させる。
該アドレス管理テーブル 1に格納するアドレス情報を、
例えば、4バイト情報とすると、該上位のアドレス管理
テーブル 1は、4×256(=1K)バイトの領域が必要とな
る。
This upper address management table 1 is made to exist statically regardless of whether or not the session has occurred.
The address information stored in the address management table 1 is
For example, if 4-byte information is used, the upper address management table 1 requires an area of 4 × 256 (= 1K) bytes.

【0021】該上位のアドレス管理テーブル 1にリンク
する下位のアドレス管理テーブル 2は、動的なもので、
先頭に、上記情報域のアドレスが有効かどうかをビッ
トマップ構成のヘッダ部を持つ構成とすると、そのビ
ットマップメモリ領域に、256 ビット(32 バイト) を必
要とするので、合計4×256 +32=1056 バイトの領域が
必要となるが、この下位のアドレス管理テーブル 2は、
前述のように、動的にしか存在しないように構成するこ
とで、メモリ資源の有効利用を図る。
The lower address management table 2 linked to the upper address management table 1 is dynamic.
If the header of the bitmap structure is used to determine whether the address in the above information area is valid at the beginning, 256 bits (32 bytes) are required for the bitmap memory area, so a total of 4 × 256 + 32 = An area of 1056 bytes is required, but this lower address management table 2
As described above, the memory resource is effectively used by configuring it to exist only dynamically.

【0022】即ち、上記の物理的な一つの通信路に、セ
ションが発生し、上位のアドレス管理テーブル 1の各ア
ドレスに対応して、有効な、下位のアドレスが、少なく
とも1つ存在するとき、即ち、上記下位のアドレス管理
テーブル 2のヘッダ部の、上記下位アドレスに対応す
るビットが、少なくとも、1つ存在するとき、下位のア
ドレス管理テーブル 2が生成されており、上記セション
が開放されて、該上位のアドレスに対して、有効な下位
のアドレスが1つも存在しないときには、該下位のアド
レス管理テーブル 2をメモリ上から開放することで、該
下位のアドレス管理テーブル 2を動的に管理することが
できる。
That is, when a session occurs in the above-mentioned one physical communication path and at least one valid lower address exists corresponding to each address in the upper address management table 1, That is, when there is at least one bit corresponding to the lower address in the header part of the lower address management table 2, the lower address management table 2 has been generated, the session is released, When there is no valid lower-order address for the higher-order address, the lower-order address management table 2 is dynamically managed by releasing the lower-order address management table 2 from the memory. You can

【0023】以下、図1,図2〜図5によって、該下位
のアドレス管理テーブル 2の発生,開放の動作を、流れ
図によって、より具体的に説明する。 処理ステップ 100:物理的な一つの通信路に、セション
が発生し、例えば、16ビットのアドレス(020816:16進
数の「0208番地」、以下略) が発生する。
The operation of generating and releasing the lower address management table 2 will be described more specifically below with reference to the flow charts of FIGS. 1 and 2 to 5. Process step 100: A session occurs on one physical communication path, and for example, a 16-bit address (0208 16 : "0208" in hexadecimal number, hereinafter omitted) occurs.

【0024】本実施例においては、前述のように、該発
生したアドレスを、上位の8ビット(0216)と,下位の8
ビット(0816)に分け、それぞれに、上位のアドレス管理
テーブル 1, 下位のアドレス管理テーブル 2を対応させ
る。
In this embodiment, as described above, the generated address is stored in the upper 8 bits (02 16 ) and the lower 8 bits.
It is divided into bits (08 16 ), and the upper address management table 1 and the lower address management table 2 are associated with each.

【0025】処理ステップ 101,102:有効な上位アドレ
ス(0216)、即ち、下位のアドレス管理テーブル 2を持つ
上位アドレスが、上位アドレス管理テーブル 1に存在す
るか否かを、フラグ(F) を見て認識する。若し、フラ
グ(F) が“オン”であると、該有効な下位のアドレス
管理テーブル 2が存在しているので、該当のアドレス領
域に格納されている、下位のアドレス管理テーブル 2の
先頭アドレスから、該下位のアドレス管理テーブル 2を
ポイントする。(図1参照) 若し、フラグ(F) が“オフ”であると、該有効な下位
のアドレス管理テーブル 2が存在しないことになるの
で、処理ステップ 105に移る。
Process Steps 101, 102: Whether or not a valid upper address (02 16 ), that is, an upper address having the lower address management table 2 exists in the upper address management table 1 is checked by checking the flag (F). recognize. If the flag (F) is “ON”, the valid lower address management table 2 exists, so the start address of the lower address management table 2 stored in the corresponding address area. Point to the lower address management table 2. (Refer to FIG. 1) If the flag (F) is "off", it means that the effective lower-order address management table 2 does not exist, so that the process proceeds to step 105.

【0026】処理ステップ 103:ポイントした下位のア
ドレス管理テーブル 2を検索して、下位アドレス(0816)
が指示する領域に、本通信に必要な情報 (前述の、優先
順位, 通信速度, 通信の名称等) が保持されている情報
域のアドレスを格納する。
Process step 103: The lower address management table 2 pointed to is searched to find the lower address (08 16 ).
The address of the information area in which the information required for this communication (priority order, communication speed, communication name, etc.) is stored in the area indicated by.

【0027】処理ステップ 104:下位のアドレス管理テ
ーブル 2のヘッダ部の、上記下位アドレス(0816)に対
応するビット位置のビットを“オン”とする。 処理ステップ 105:図示されていないメモリ領域上に、
下位のアドレス管理テーブル 2の領域を獲得し、その先
頭アドレスを、当該上位のアドレス管理テーブル 1の対
応する領域に格納して、該獲得した下位のアドレス管理
テーブル 2をポイントし、上記の処理ステップ 103,104
に移り、下位アドレス(0816)が指示する領域に、本通信
に必要な情報が保持されている情報域のアドレスを格
納し、該下位のアドレス管理テーブル 2のヘッダ部
の、上記下位アドレス(0816)に対応するビット位置のビ
ットを“オン”とする。
Process step 104: The bit at the bit position corresponding to the lower address (08 16 ) in the header portion of the lower address management table 2 is turned "on". Processing step 105: on a memory area not shown,
The area of the lower address management table 2 is acquired, the leading address is stored in the corresponding area of the higher address management table 1, and the acquired lower address management table 2 is pointed to, and the above processing steps are performed. 103,104
Then, the address of the information area in which the information required for this communication is held is stored in the area designated by the lower address (08 16 ), and the lower address ( 08 16 ) Turn on the bit at the bit position corresponding to.

【0028】図4,図5は、上記アドレス(020816)が発
生した場合の検索処理を模式的に示したものである。図
4は、上位のアドレス管理テーブル 1の、上記フラグ
(F) が“オン”の場合を示しており、該上位のアドレ
ス管理テーブル 1の該当の上位アドレス(0216)に対応す
る領域のフラグ(F) が“オン”になっていることを認
識した後、「下位のアドレス管理テーブルアドレスの
格納域」のアドレス情報から、該下位のアドレス管理テ
ーブル 2を求める。
FIG. 4 and FIG. 5 schematically show the search processing when the above-mentioned address (0208 16 ) occurs. FIG. 4 shows the above flags in the upper address management table 1.
(F) shows the case of "ON", and recognizes that the flag (F) of the area corresponding to the corresponding higher address (02 16 ) of the higher address management table 1 is "ON". After that, the lower-order address management table 2 is obtained from the address information of the "lower-order address management table address storage area".

【0029】次に、該下位のアドレス管理テーブル 2の
「32+08×4=64」の位置に、当該通信に必要な情報が格
納されている情報域のアドレスを格納し、上記ヘッダ
部の、上記下位アドレス(0816)に対応するビット位
置、具体的には、8ビット目を“オン”とする。
Next, the address of the information area in which the information required for the communication is stored is stored in the position "32 + 08 × 4 = 64" of the lower address management table 2, and The bit position corresponding to the lower address (08 16 ), specifically, the 8th bit is set to “ON”.

【0030】図5は、上位のアドレス管理テーブル 1
の、上記フラグ(F) が“オフ”の場合を示しており、
該上位のアドレス管理テーブル 1の該当の上位アドレス
(0216)に対応する領域のフラグ(F) が“オフ”になっ
ていることを認識した後、図示されていないメモリ領域
上において、下位のアドレス管理テーブル 2の領域を獲
得し、獲得した領域の先頭アドレスを、当該上位のア
ドレス管理テーブル 1の該当のアドレス領域に格納し、
上記フラグ(F) を“オン”とする。
FIG. 5 shows the upper address management table 1
, The above flag (F) is “OFF”.
Corresponding upper address of the upper address management table 1
After recognizing that the flag (F) of the area corresponding to (02 16 ) is "OFF", the area of the lower address management table 2 is acquired and acquired in the memory area (not shown). Store the start address of the area in the corresponding address area of the upper address management table 1,
The above flag (F) is turned on.

【0031】そして、該獲得して生成した下位のアドレ
ス管理テーブル 2の「32+08×4=64」の位置に、当該通
信に必要な情報が格納されている情報域アドレスを格
納し、上記ヘッダ部の、上記下位アドレス(0816)に対
応するビット位置、具体的には、8ビット目を“オン”
とする。
Then, the information area address in which the information necessary for the communication is stored is stored in the position of "32 + 08 × 4 = 64" of the acquired lower address management table 2 and the header part is stored. , The bit position corresponding to the lower address (08 16 ) above, specifically, the 8th bit is “ON”
And

【0032】このようにして、該下位のアドレス管理テ
ーブル 2は、セションの発生に対応して、動的に生成さ
れ管理される。次に、図3により、上記通信が終了し
て、セションが開放されたときの、該下位のアドレス管
理テーブル 2の開放処理について説明する。
In this way, the lower address management table 2 is dynamically generated and managed in response to the occurrence of a session. Next, with reference to FIG. 3, a process of releasing the lower address management table 2 when the session is released after the communication is finished will be described.

【0033】処理ステップ 110:通信が終了して、セシ
ョンが開放され、アドレスが解放される。 処理ステップ 111:開放されたアドレス(020816)に対応
する上位のアドレス管理テーブル 1をサーチし、上位ア
ドレス(0216)を検索して、下位のアドレス管理テーブル
2を求め、該求めた下位のアドレス管理テーブル 2のヘ
ッダ部の、該下位アドレス(0816)に対応するビット位
置のビットを“オン”→“オフ”とする。
Process step 110: The communication is ended, the session is released, and the address is released. Process step 111: The upper address management table 1 corresponding to the released address (0208 16 ) is searched, the upper address (02 16 ) is searched, and the lower address management table is searched.
2 is obtained, and the bit at the bit position corresponding to the lower address (08 16 ) in the header portion of the obtained lower address management table 2 is changed from “on” to “off”.

【0034】処理ステップ 112,113:ヘッダ部が、全
“0”かどうかを見て、全“0”であると,最早、有効
な下位アドレスは存在しないことになるので、該下位の
アドレス管理テーブル 2を開放する。(図1参照) このように、本発明のアドレス空間の管理方法において
は、ヘッダ部の全“0”かの一度の判定で済む(即
ち、該下位のアドレス管理テーブル 2の全領域を検索す
る必要がない) ので、処理効率がよい。
Process steps 112 and 113: Check whether the header part is all "0". If all the header parts are "0", it means that there is no valid lower address any more. Therefore, the lower address management table 2 Open up. (See FIG. 1) As described above, in the address space management method of the present invention, it is sufficient to make a one-time determination of all “0” s in the header portion (that is, all areas of the lower address management table 2 are searched). (Not necessary), so processing efficiency is good.

【0035】上記の処理で、該ヘッダ部が全“0”で
ないと、未だ有効な下位アドレスが残っていて、該下位
のアドレス管理テーブル 2を開放することができないの
で、その儘で、該開放処理は終了する。
In the above processing, if the header portion is not all "0", there is still a valid lower address, and the lower address management table 2 cannot be released. The process ends.

【0036】処理ステップ 114:上記開放した下位のア
ドレス管理テーブル 2をポイントしていた、上位のアド
レス管理テーブル 1の、該上位アドレス(0216)に対応す
る領域のフラグ(F) を“オフ”として、該上位アドレ
ス(0216)には、最早、有効な下位アドレスが存在しない
ことを指示する。
Process step 114: The flag (F) of the area corresponding to the upper address (02 16 ) of the upper address management table 1 which points to the released lower address management table 2 is set to “off”. As a result, the upper address (02 16 ) is instructed that no valid lower address is present anymore.

【0037】このように、本発明は、上位のアドレス管
理テーブル 1の各アドレスに対応して、有効な、下位の
アドレスが、少なくとも1つ存在するとき、即ち、上記
下位のアドレス管理テーブル 2のヘッダ部の、上記下
位アドレスに対応するビットが、少なくとも、1つ存在
するとき、下位のアドレス管理テーブル 2が形成されて
おり、該上位のアドレスに対して、有効な下位のアドレ
スが1つも存在しないとき (即ち、上記ヘッダ部が全
“0”)には、該下位のアドレス管理テーブル2をメモ
リ上から開放するようにして、一つの物理上の通信路上
に、実際に存在するセションに対応して、該下位のアド
レス管理テーブルを動的に管理するようにしたところに
特徴がある。
As described above, according to the present invention, when there is at least one valid lower address corresponding to each address in the upper address management table 1, that is, in the lower address management table 2 described above. When there is at least one bit corresponding to the above lower address in the header section, the lower address management table 2 is formed, and there is at least one valid lower address for the higher address. If not (that is, all the above header parts are “0”), the lower address management table 2 is released from the memory to correspond to the session actually existing on one physical communication path. Then, the lower address management table is dynamically managed.

【0038】[0038]

【発明の効果】以上、詳細に説明したように、本発明の
アドレス空間の動的管理方法は、計算機間を一つの物理
的な通信路上において、複数個のセションが形成され、
対応するnビットのアドレスが発生したとき、該発生し
たnビットのアドレス空間を上位のaビットと,下位の
bビット(a+b=n)に分割し、静的に存在する上位
のアドレス管理テーブルは、下位のアドレス管理テーブ
ルの先頭アドレスと,該下位のアドレス管理テーブル
の有効, 無効を表示するフラグ(F) とで構成し、動的
に存在する下位のアドレス管理テーブルは、上記セショ
ンの情報を保持する情報域のアドレスと、該情報域ア
ドレスの有効, 無効管理ビットのヘッダ部とで構成
し、上記セションの発生でnビットのアドレスが与えら
れた時、上位のaビットで、上記上位のアドレス管理テ
ーブルを検索し、上記フラグ(F) が“オフ”である
と、下位のアドレス管理テーブル領域を獲得し、下位の
bビットが指示する該当の領域に、情報域アドレスを
格納して、上記有効,無効管理ビット (ヘッダ部) の
該当ビットを“オン”とし、上記上位のアドレス管理テ
ーブルの上記フラグ(F) を“オン”とし、上記フラグ
(F) が“オン”であると、下位のアドレス管理テーブ
ルを検索し、上記下位のbビットが指示する該当の領域
に、当該nビットのアドレスで通信を行うのに必要な情
報を保持する情報域のアドレスを格納して、上記有
効,無効管理ビット (ヘッダ部) の該当ビットを“オ
ン”とし、上記セションが解放されて該nビットのアド
レスが開放され、上記下位のアドレス管理テーブルのヘ
ッダ部の該当のビットを“オフ”にしたとき、該ヘッ
ダ部が全“0”となったことを検知すると、該下位の
アドレス管理テーブルを開放するようにして、アドレス
空間を管理するようにしたものであるので、アドレス空
間を経済的に管理することができると共に、アドレスを
上位バイトと,下位バイトに分けることにより、上位ア
ドレスの検索には、例えば、1/256 でヒットし、後は、
ヒットした上位アドレスに対応した下位アドレスに関す
る下位の256 要素のアドレス管理テーブルを、該下位バ
イトで検索すればよく、これは、2バイトを直接用いた
検索より高速に検索結果が得られる。特に、セションの
形成時に発生するアドレスがランダムであるときに顕著
である。又、下位のアドレス管理テーブルの開放時に
は、全要素の有効,無効をビットマップ形式が管理して
いるヘッダ部が、全“0”であることを判定すれば済
むので、処理効率がよいという効果がある。
As described above in detail, according to the dynamic management method of the address space of the present invention, a plurality of sessions are formed on one physical communication path between computers.
When the corresponding n-bit address is generated, the generated n-bit address space is divided into a higher-order a bit and a lower-order b bit (a + b = n), and the statically existing higher-order address management table is , The top address of the lower address management table and a flag (F) indicating valid / invalid of the lower address management table, and the dynamically existing lower address management table stores the information of the above session. It is composed of the address of the information area to be held and the header part of the valid / invalid management bit of the information area address. When an n-bit address is given by the occurrence of the session, the upper a bits and the upper When the address management table is searched and the flag (F) is "off", the lower address management table area is acquired, and the information is written in the corresponding area designated by the lower b bits. Area address is stored, the relevant bit of the valid / invalid management bit (header part) is turned on, the flag (F) of the upper address management table is turned on, and the above flag is set.
When (F) is “ON”, the lower address management table is searched, and the information necessary for communication at the n-bit address is held in the corresponding area indicated by the lower b bits. The address of the information area is stored, the relevant bit of the valid / invalid management bit (header section) is set to “ON”, the session is released, the n-bit address is released, and the lower address management table When the corresponding bits of the header part are turned off, when it is detected that all the header parts have become "0", the lower address management table is opened to manage the address space. Since the address space can be managed economically, and by dividing the address into the upper byte and the lower byte, for example, 1/256 can be searched for the upper address. Hit, after,
The address management table of the lower 256 elements relating to the lower address corresponding to the hit upper address may be searched with the lower byte, and the search result can be obtained faster than the search using 2 bytes directly. This is particularly noticeable when addresses generated at the time of forming a session are random. Further, when the lower address management table is opened, it is sufficient to determine that all the header parts that the bitmap format manages the validity and invalidity of all elements are all "0", so that the processing efficiency is good. There is.

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

【図1】本発明の原理説明図FIG. 1 is an explanatory diagram of the principle of the present invention.

【図2】本発明の一実施例を示した図(その1)FIG. 2 is a diagram showing an embodiment of the present invention (No. 1).

【図3】本発明の一実施例を示した図(その2)FIG. 3 is a diagram showing an embodiment of the present invention (part 2).

【図4】本発明の一実施例を示した図(その3)FIG. 4 is a diagram showing an embodiment of the present invention (part 3).

【図5】本発明の一実施例を示した図(その4)FIG. 5 is a diagram showing an embodiment of the present invention (No. 4).

【図6】従来のアドレス空間の管理方法を説明する図FIG. 6 is a diagram illustrating a conventional address space management method.

【符号の説明】[Explanation of symbols]

1 上位のアドレス管理テーブル 2 下位のアドレス管理テーブル 100 〜105,110 〜114 処理ステップ 下位のアドレス管理テーブルの先頭アドレス フラグ(F) 情報域アドレス ヘッダ部 1 Upper address management table 2 Lower address management table 100 to 105,110 to 114 Processing step Start address of lower address management table Flag (F) Information area address Header part

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】計算機間を一つの通信回線を用いて接続す
るのに、nビットのアドレスで複数個のコネクション
(セション)を実現する際のアドレス空間の管理方法で
あって、 該nビットのアドレス空間を上位のaビットと,下位の
bビット(a+b=n)に分割し、 静的に存在する上位のアドレス管理テーブル(1) と, 動
的に存在する下位のアドレス管理テーブル(2) とで、該
アドレス空間を管理するようにし、 該上位のアドレス管理テーブル(1) は、上記下位のアド
レス管理テーブル(2)の先頭アドレス () と, 該下位
のアドレス管理テーブルの有効, 無効を表示するフラグ
(F)() とで構成し、上記下位のアドレス管理テーブル
(2) は、上記コネクション (セション) の情報を保持す
る情報域のアドレス () と、該情報域アドレス ()
の有効, 無効管理ビットからなるヘッダ部 () とで構
成し、 上記コネクション(セション)の実現に際して、nビッ
トのアドレスが与えられた時、上位のaビットで、上記
上位のアドレス管理テーブル(1) を検索し、上記フラグ
(F)() が“オフ”であると、下位のアドレス管理テー
ブル(2) の領域を獲得し、下位のbビットが指示する該
当の領域に、当該nビットのアドレスで通信を行うのに
必要な情報を保持する情報域のアドレス () を格納し
て、上記ヘッダ部 () の有効,無効管理ビットの、上
記bビットが指示する該当ビットを“オン”とし、上記
上位のアドレス管理テーブル(1) の上記フラグ(F)()
を“オン”とし、 上記上位のアドレス管理テーブル(1) の検索で、上記フ
ラグ(F)() が“オン”であると、下位のbビットで、
上記下位のアドレス管理テーブル(2) の上記下位のbビ
ットが指示する該当の領域に、該情報域アドレス ()
を格納して、上記ヘッダ部 () の該bビットが指示す
る該当ビットを“オン”とし、 上記コネクション(セション)の開放に際しては、上記
nビットの上位のaビットで、上記上位のアドレス管理
テーブル(1) を検索し、該aビットが指示する該当領域
の下位のアドレス管理テーブル(2) のアドレスに基づい
て、該下位のアドレス管理テーブル(2) のヘッダ部
() を検索し、該bビットが指示する該当のビットを
“オフ”とし、該ヘッダ部 () の全“0”が検知され
たとき、該下位のアドレス管理テーブル(2) を開放する
ことを特徴とするアドレス空間の動的管理方法。
1. A method of managing an address space when a plurality of connections (sessions) are realized with an n-bit address for connecting computers using one communication line. The address space is divided into upper a bits and lower b bits (a + b = n), and statically existing upper address management table (1) and dynamically existing lower address management table (2) In order to manage the address space, the upper address management table (1) sets the start address () of the lower address management table (2) and the valid / invalid of the lower address management table. Flags to display
(F) () and consists of the lower address management table above
(2) is the address () of the information area that holds the information of the connection (session) and the address of the information area ()
Header part () consisting of valid and invalid management bits of the above. When realizing the above-mentioned connection (session), when an n-bit address is given, the higher-order a-bit is used and the higher-order address management table (1 ) Search for the above flag
When (F) () is "OFF", the area of the lower address management table (2) is acquired, and the area of the lower bit b is used to communicate with the corresponding n-bit address. The address () of the information area that holds the necessary information is stored, and the relevant bit indicated by the b bit of the valid / invalid management bits of the header section () is set to "ON", and the upper address management table is set. Flag (F) of (1) ()
Is set to “ON”, and when the flag (F) () is “ON” in the search of the upper address management table (1), the lower b bits are
In the corresponding area indicated by the lower b bits of the lower address management table (2), the information area address ()
Is stored, the corresponding bit designated by the b bit of the header section () is turned “on”, and when the connection (session) is released, the upper a bit of the n bit is used to manage the upper address. The table (1) is searched, and the header part of the lower address management table (2) is searched based on the address of the lower address management table (2) of the corresponding area indicated by the a bit.
(), Turn off the corresponding bit indicated by the b bit, and open the lower address management table (2) when all "0" s in the header part () are detected. A method of dynamically managing an address space characterized by.
JP4045840A 1992-03-04 1992-03-04 Dynamic managing method for address space Withdrawn JPH05250286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4045840A JPH05250286A (en) 1992-03-04 1992-03-04 Dynamic managing method for address space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4045840A JPH05250286A (en) 1992-03-04 1992-03-04 Dynamic managing method for address space

Publications (1)

Publication Number Publication Date
JPH05250286A true JPH05250286A (en) 1993-09-28

Family

ID=12730423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4045840A Withdrawn JPH05250286A (en) 1992-03-04 1992-03-04 Dynamic managing method for address space

Country Status (1)

Country Link
JP (1) JPH05250286A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06310792A (en) * 1993-04-22 1994-11-04 Nec Corp Optical amplifier

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06310792A (en) * 1993-04-22 1994-11-04 Nec Corp Optical amplifier

Similar Documents

Publication Publication Date Title
US7917509B2 (en) String search scheme in a distributed architecture
US6212183B1 (en) Multiple parallel packet routing lookup
US7058642B2 (en) Method and data structure for a low memory overhead database
US7913060B2 (en) Method and apparatus for physical width expansion of a longest prefix match lookup table
US7212529B2 (en) System for retrieving destination of a packet with plural headers
KR920001324A (en) How byte compare works in high performance processors and their processors
JPH077524A (en) Method for accessing of communication subscriber to address identifier
TW200301429A (en) A method of improving the lookup performance of tree-type knowledge base searches
US6683882B1 (en) Method and system for directing transmission of IPX control packets to influence reception of IPX data packets
JP2001326679A (en) Information unit, table retrieval device, table retrieval method, and recording medium
US6148305A (en) Data processing method for use with a coupling facility
JP3749445B2 (en) Data analysis method and apparatus
US7577670B2 (en) Method and apparatus for inferring address and subnet relationships
US20060274762A1 (en) Method and system for supporting efficient and cache-friendly TCP session lookup operations based on canonicalization tags
JPH05250286A (en) Dynamic managing method for address space
CN1312890C (en) Method for generating a trie having a reduced number of trie blocks
US6314099B1 (en) Address match determining device, communication control system, and address match determining method
US6507874B1 (en) System for efficient routing and translation of data
CN110737678A (en) data searching method, device, equipment and storage medium
US7308468B2 (en) Pattern matching
CN104778197B (en) A kind of data search method and device
US20050138293A1 (en) Configurable cache
JPH05204816A (en) High-efficiency access method to storage data in connecting table
JP3092524B2 (en) Routing system
JPH0696124A (en) Information retrieving device

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990518