KR0146998B1 - Method of message forming & sending in a distributed realtime dbms - Google Patents

Method of message forming & sending in a distributed realtime dbms

Info

Publication number
KR0146998B1
KR0146998B1 KR1019950039432A KR19950039432A KR0146998B1 KR 0146998 B1 KR0146998 B1 KR 0146998B1 KR 1019950039432 A KR1019950039432 A KR 1019950039432A KR 19950039432 A KR19950039432 A KR 19950039432A KR 0146998 B1 KR0146998 B1 KR 0146998B1
Authority
KR
South Korea
Prior art keywords
message
information
size
messages
field
Prior art date
Application number
KR1019950039432A
Other languages
Korean (ko)
Other versions
KR970031572A (en
Inventor
이승선
윤용익
조주현
Original Assignee
양승택
한국전자통신연구원
이준
한국전기통신공사
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 양승택, 한국전자통신연구원, 이준, 한국전기통신공사 filed Critical 양승택
Priority to KR1019950039432A priority Critical patent/KR0146998B1/en
Publication of KR970031572A publication Critical patent/KR970031572A/en
Application granted granted Critical
Publication of KR0146998B1 publication Critical patent/KR0146998B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3081ATM peripheral units, e.g. policing, insertion or extraction

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

본 발명은, 분산 실시간 시스템인 ATM 교환기에서 사용자의 질의 요구를 처리하는 DBMS내의 블럭이 IPC 전송 단위에 무관하게 메세지를 구성 및 전달 하는 방법을 제공하는데 그 목적이 있다. 상기 목적을 달성하기 위하여 본 발명은, IPC 전송 단위로 고정적인 크기 이내에 전체 메세지를 갯수 필드와, 메세지의 번호 필드와, 메세지 내 정보의 개수 필드와, 각 정보의 위치 필드와, 각 정보의 크기 필드와, 각 정보의 내용 필드를 구비하도록 메세지를 구성사는 제1단계와, 전달할 메세지의 번호를 저장하고 그 메세지 내에 포함될 정보들을 확정하여 그 수를 저장하고 첫 번째 정보를 준비한 후, 정보의 시작 위치 및 그 크기를 저장하는 제2단계와, 준비한 정보의 크기가 메세지 내의 남아 있는 기억 공간보다 작은 경우에는 데이터를 저장하고 더 저장해야 할 다음 정보가 존재할 경우 정보를 준비하는 제3단계와, 저장할 크기가 메세지 내의 남아 있는 기억 공간보다 큰 경우에는 그 기억 공간의 크기 만큼만을 메세지에 저장한 후 새로운 메세지를 위하여 기억 공간을 추가로 할당받아 해당 메세지의 번호를 저장하는 제4단계, 및 정보를 모두 저장한 후에는 준비된 메세지의 총 개수를 모두 메세지의 첫 필드에 저장하고, 최종적으로 준비된 메세지들을 수신 블록에 차례대로 전송하는 제5단계를 구비한다.An object of the present invention is to provide a method for constructing and delivering a message regardless of an IPC transmission unit by a block in a DBMS that processes a user's query request in an ATM switch which is a distributed real-time system. In order to achieve the above object, the present invention provides a number field, a number field of a message, a number field of information in a message, a location field of each information, and a size of each information within a fixed size in IPC transmission units. The message organizer to include a field and a content field of each information, the first step is to store the number of messages to be delivered, determine the information to be included in the message, store the number and prepare the first information, and then start the information. A second step of storing the location and the size thereof; a third step of storing the data if the size of the prepared information is smaller than the remaining storage space in the message; If the size is larger than the remaining storage space in the message, only the amount of storage space is stored in the message and a new message is created. The fourth step of storing the number of the message additionally allocated to the storage space, and after storing all the information, the total number of prepared messages is stored in the first field of the message, and finally the prepared messages are stored in the receiving block. And a fifth step of transmitting in sequence.

Description

분산 실시간 데이터 베이스 관리 시스템(DBMS)에서의 메세지 구성 및 전달방법.Method of message organization and delivery in distributed real-time database management system (DBMS).

제1도는 ATM 교환기 시스템의 분산 구조를 갖는 주기억장치 DBMS의 구조도,1 is a structural diagram of a main memory DBMS having a distributed structure of an ATM switch system;

제2도는 ATM 교환기 시스템 DBMS의 블록들간의 구성 및 메세지의 흐름을 나타낸 구조도,2 is a structural diagram showing a configuration and a message flow between blocks of an ATM switch system DBMS;

제3도는 메세지가 하나일 경우의 메세지의 구성을 나타낸 구조도,3 is a structural diagram showing the composition of a message when there is only one message;

제4도는 메세지가 두 개 이상일 경우의 각 메세지의 구성을 나타낸 구조도,4 is a structural diagram showing the composition of each message when there are two or more messages;

제5도는 DBMS내의 메세지를 전달하는 블록에서 메세지를 구성하고 전송하는 과정의 흐름도.5 is a flow chart of the process of constructing and sending a message in a block for delivering a message in a DBMS.

본 발명은 분산 실시간 처리 통신시스템의 데이터 베이스 관리 시스템(DBMS)에서의 메세지 구성 및 전달방법에 관한 것이다.The present invention relates to a message construction and delivery method in a database management system (DBMS) of a distributed real-time processing communication system.

종래의 교환기 DBMS(Database Management System)에서는 호처리, 운용, 보전, 과금 및 통계 기능을 수행하는 응용 프로그램들의 데이터 조작을 지원하는 과정에서, DBMS를 구성하는 각각의 블록들이 그 역할을 분담하여 기능을 수행한다. 그리고 각 블록들은 메세지를 시그널의 파라메터로 전달함으로써 상호간의 통신을 한다.In the conventional exchange DBMS (Database Management System), each block constituting the DBMS shares its role in supporting data manipulation of applications that perform call processing, operation, maintenance, billing, and statistics functions. Perform. Each block communicates with each other by passing messages as signal parameters.

시그널의 파라메터인 메세지의 크기는 IPC(Inter Processor Communication)의 전송 단위 이하여야 한다. 메세지로 전달된 정보들의 크기가 각각 고정적이라면, 메세지의 자료 구조는 각 정보들을 모두 포함한 하나의 고정적인 구조로 정의된다. 각 고정된 크기의 정보들을 모든 하나의 메세지 자료 구조의 크기가 IPC의 전송 단위를 넘는다면, 그 전송 단위 이하의 여러 자료 구조로 나누어 메세지를 정의한다. 반면에 전달될 정보 값들의 크기가 가변적이라면 각 정보의 크기는 정의된 최대 크기로 고정되어 앞서 설명한 것과 같은 방법으로 메세지를 구성한다. 그러나 하나의 정보 값이 IPC의 전송 단위보다 크다면 하나의 메세지내에 수용될 수 없으므로 오류를 발생시킨다.The size of the message, which is a parameter of the signal, should be less than or equal to the transmission unit of IPC (Inter Processor Communication). If the size of the information conveyed in the message is each fixed, the data structure of the message is defined as one fixed structure that contains all of the information. Each fixed size of information defines the message by dividing the size of every single message data structure into more than one IPC transport unit and then subdividing it into several data structures below that transport unit. On the other hand, if the size of information values to be transmitted is variable, the size of each information is fixed to a defined maximum size to compose a message in the same manner as described above. However, if one information value is larger than the IPC transmission unit, it cannot be accommodated in one message, causing an error.

예를 들어 사용자의 요구가 조건절(verification)과 변경절(to)을 모두 포함하고 원격 프로세서의 테이터베이스를 수정하는 것이라면, DBMS의 DBSG(Database Supporting Group)는 원격 프로세서의 DBSG로 명령어에 관계된 다양한 정보들, 조건절, 변경절, 그리고 요구된 릴레이션 내튜플의 자료 구조를 모두 전달해야 한다. 명령어에 관계된 다양한 정보들은 그 크기가 모두 고정적이다. 그러나 조건절과 변경절은 응용 프로그램에서의 명령어에 따라 가변의 크기를 갖는다. 또한 릴레이션 내 튜플의 자료 구조도 릴레이션에 따라 가변의 크기를 갖는다. 현재 이 세가지 가변 크기의 값을 갖는 자료 구조의 최대 크기는 각각 IPC의 전송 단위로 정의된다. 따라서 DBMS는 명령어에 관계된 정보들을 위한 메세지, 조건절을 위한 메세지, 변경절을 위한 메세지, 그리고 릴리이션 튜플 자료 구조를 위한 메세지를 전달하므로 도합 4번에 걸쳐 전달할 수밖에 없다.For example, if your request includes both verification and change clauses and modifies the database of the remote processor, the DBSG's Database Supporting Group (DBSG) is the DBSG of the remote processor. Fields, conditional clauses, modified clauses, and data structures of the required relational tuples. The various information related to the command is fixed in size. However, conditional clauses and change clauses vary in size depending on the instructions in the application. In addition, the data structure of the tuple in the relation also has a variable size depending on the relation. Currently, the maximum size of a data structure with these three variable size values is defined in units of IPC transmission. Therefore, the DBMS delivers a message for information related to a command, a message for a condition clause, a message for a change clause, and a message for a release tuple data structure.

그러나 가변 구조를 갖는 정보들을 실제로 전달될 내용의 크기가 그최대 크기에 훨씬 못미치는 경우가 대부분이므로, DBMS는 각 블록간의 통신을 위하여 상당한 수행 시간을 낭비하게 된다. 모든 정보들의 실제 내용의 합이 IPC 전송 단위를 넘지 않을 경우에는 모든 정보들을 포함하여 단 한번의 메세지 전송으로 통신할 수 있다. 그러나 현재의 DBMS에서는 각 가변 정보들을 최대 크기로 고정시키므로 4번이나 메세지를 전달하게 된다. 결과적으로 각 블록간의 통신을 위해 지연되는 시간은 DBMS 전체의 수행 시간 지연에 심각한 영향을 미치게 된다.However, in most cases, the size of the content to be delivered with the variable structure is much smaller than its maximum size, so the DBMS wastes considerable execution time for communication between blocks. If the sum of the actual contents of all the information does not exceed the IPC transmission unit, it can communicate in one message transmission including all the information. However, in the current DBMS, since each variable information is fixed to the maximum size, a message is transmitted four times. As a result, the delay time for communication between blocks has a significant impact on the execution time delay of the entire DBMS.

또한 메세지 모두가 IPC 전송 단위를 넘지 않도록 정의 되어 있으므로 시스템 및 OS(Operating Sustems)에 밀접한 관계를 갖을 수밖에 없다. 따라서 현재의 DBMS는 IPC 전송 단위가 다른 시스템에서는 호환되지 않는다. 즉, IPC 전송 단위 크기가 작은 교환기 시스템에서는 모든 메세지내에 포함되는 정보들을 다시 조사하여 메세지의 크기가 IPC의 전송 단위를 넘지 않도록 수정해야 하며, IPC 전송 단위가 더 큰 교환기 시스템에서는 메세지를 다시 정의하지 않더라도 시스템이 제공하는 통신능력에 훨씬 못미치는 결과를 DBMS가 감수해야 한다.In addition, since all messages are defined not to exceed the IPC transmission unit, they have a close relationship with the system and the operating systems (OS). Therefore, current DBMSs are not compatible with systems with different IPC transmission units. In other words, the exchange system with smaller IPC transmission unit size should reexamine the information contained in all messages and modify the message size so that it does not exceed the IPC transmission unit. In exchange system with larger IPC transmission unit, do not redefine the message. If not, the DBMS will have to pay much less than the communication capabilities provided by the system.

따라서, 시스템에 따라 가변적인 IPC 전송 단위에 대처할 수 있는 DBMS내의 메세지 전달 방법이 절실히 요구되었다.Therefore, there is an urgent need for a message delivery method in a DBMS that can cope with variable IPC transmission units depending on the system.

따라서, 상기 종래기술의 문제점을 해결하기 위하여 안출된 본 발명은, 분산 실시간 시스템인 ATM 교환기에서 사용자의 질의 요구를 처리하는 DBMS내의 각 블록이 IPC 전송 단위에 무관하게 메세지를 구성 및 전달하는 방법을 제공하는데 그 목적이 있다.Accordingly, the present invention devised to solve the problems of the prior art, a method in which each block in the DBMS that processes a user's query request in the ATM switch, which is a distributed real-time system, constructs and delivers a message regardless of IPC transmission units The purpose is to provide.

상기 목적을 달성하기 위하여, 본 발명은, IPC 전송 단위로 고정적인 크기 이내에 전체 메세지의 개수 필드와, 해당 메세지의 번호 필드와, 메세지 내 정보의 개수 필드와, 각 정보의 위치 필드와, 각 정보의 크기 필드와, 각 정보의 내용 필드를 구비하도록 메세지를 구성하는 제1단계와, 전달한 메세지의 번호를 저장하고 그 메세지 내에 포함될 정보들을 확정하여 그 수를 저장하고 첫 번째 정보를 준비한 후, 정보의 시작 위치 및 그 크기를 저장하는 제2단계와, 준비한 정보의 크기가 메세지 내의 남아있는 기억 공간보다 작은 경우에는 데이터를 저장하고 더 저장해야 할 다음 정보가 존재할 경우 정보를 준비하는 제3단계와, 저장할 정보의 크기가 메세지 내의 남아 있는 기억 공간보다 큰 경우에는 그 기억 공간의 크기 만큼만을 메세지에 저장한 후 새로운 메세지를 위하여 기억 공간을 추가로 할당받아 해당 메세지의 번호를 저장하는 제4단계, 및 정보를 모두 저장한 후에는 준비된 메세지의 총 개수를 모든 메세지의 첫 필드에 저장하고, 최종적으로 준비된 메세지들을 수신 블록에 차례대로 전송하는 제5단계를 구비한다.In order to achieve the above object, the present invention provides a number field of all messages, a number field of a corresponding message, a number field of information in a message, a location field of each information, and each information within a fixed size in IPC transmission units. A first step of composing a message to have a size field of, and a content field of each information; storing the number of delivered messages, determining the information to be included in the message, storing the number, and preparing the first information. A second step of storing the start position and the size of the step; and a third step of storing the data if the size of the prepared information is smaller than the remaining storage space in the message, and preparing the information if the next information to be stored further exists. If the size of the information to be stored is larger than the remaining storage space in the message, only the amount of storage space is stored in the message, A fourth step of storing an additional number of storage space for the message, and storing all the information, and storing the total number of prepared messages in the first field of all messages, and finally preparing the prepared messages. And a fifth step of sequentially transmitting to the receiving block.

이하, 첨부된 도면을 참조하여 본 발명의 일실시예를 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described an embodiment of the present invention;

제1도는 본 발명이 적용되는 ATM 교환기 시스템의 분산 구조를 갖는 주기억장치(Main Memory) DBMS의 구조도이다.1 is a structural diagram of a main memory DBMS having a distributed structure of an ATM switch system to which the present invention is applied.

본 발명이 적용되는 ATM 교환기는 ACS(ATM Central Switching Subsystem)(1)와 ALS(ATM Local Swtching Subsystem)(2)의 2개의 서브시스템을 구비한다. ACS(1)는 시스템을 운용하고 유지 및 관리하는 기능과 다양한 트래픽 정보, 통계 및 과금 정보를 유지하는 기능 등을 수행하며 OMP(Operation and Maintenance Processor)(3)를 구비하고 있다. ALS(2)는 일반 가입자의 접속 처리를 수행하는 프로세서로서 가입자 정합 회로와 함께 가입자 서비스 요구에 따른 접속 제어를 수행하며, 접속 수락 제어, 폭주 제어(congestion control)등의 트래픽 제어기능을 수행한다. ALS(2)는 가입자에 따라 다수로 설치되며 SCP(Subscriber Call Processor)(4)를 구비하고 있다.The ATM switch to which the present invention is applied has two subsystems: an ATM Central Switching Subsystem (ACS) 1 and an ATM Local Swtching Subsystem (ALS) 2. The ACS 1 performs a function of operating, maintaining, and managing a system, and maintaining various traffic information, statistics, and billing information, and is equipped with an operation and maintenance processor (OMP) 3. The ALS 2 is a processor that performs access processing of a general subscriber, performs access control according to a subscriber service request together with a subscriber matching circuit, and performs a traffic control function such as access admission control and congestion control. The ALS 2 is installed in large numbers depending on the subscriber and has a subscriber call processor (SCP) 4.

CSW(Central Switch)(5)는 각 ASW(Access Switch)(6)에 대한 스위치를 담당하고, ASW(6)는 ALS(2)내의 가입자 스위치를 담당하는데, OMP(3)는 CSW(5)의 한 포트에 그리고 SCP(4)는 ASW(6)의 한 포트에 각각 IMI(Inter Module Interface)링크를 통해 연결되어 메세지를 송수신한다. SCP들간의 통신은 ASW-CSW-ASW의 3단 구조이고 OMP와 SCP간의 통신은 CSW-ASW의 2단 구조이다.CSW (Central Switch) 5 is responsible for the switch for each ASW (Access Switch) 6, ASW (6) is responsible for the subscriber switch in the ALS (2), OMP (3) is CSW (5) The SCP (4) is connected to one port of the port and the SCP (4) is connected to one port of the ASW (6) via the Inter Module Interface (IMI) link to send and receive messages. Communication between SCPs is a three-stage structure of ASW-CSW-ASW and communication between OMP and SCP is a two-stage structure of CSW-ASW.

ATM DBMS는 여러 프로세서에 분산되어 있는 데이터를 관리하기 위하여 각 프로세서에 분산되어 존재하고 실시간 처리를 위해서 주기억장치에 상주하며 데이터를 검색 및 변경하는 기능, 원격 데이터 처리 기능, 중복 데이터 처리 기능, 데이터 백업 기능, 데이터 회복 기능, 동시성 제어 기능, 트랜잭션 관리 기능 등을 제공하고 있다.ATM DBMS is distributed to each processor to manage data distributed to multiple processors, resides in main memory for real time processing, retrieves and modifies data, remote data processing, duplicate data processing, data backup It provides features, data recovery, concurrency control, and transaction management.

위의 프로세서들 중 OMP(3)의 DBMS는 DBKG(Database Kernel Group), DBBG(Database Backup Group), DBSG(Database Supporting Group), DBTG(Database Transaction Group) 그리고 DBQG(Database Query Group)의 5개 블록을 구비하고, SCP(4)의 DBMS는 DBKG, DBSG와 DBTG 세 개의 블록을 구비한다. SCP와 비교하여 OMP만의 차이점은 디스크가 장착되어 있다는 점과 운용자로부터 입력을 받을 수 있는 기능을 수행한다는 점이다. 따라서 OMP만이 디스크의 접근을 수행하는 DBBG 블록과, 운용자 터미널과 ATM 교환기 시스템과의 인터페이스를 수행하는 DBQG 블록을 구비한다.Among the above processors, the DBMS of OMP (3) is divided into five blocks: Database Kernel Group (DBKG), Database Backup Group (DBBG), Database Supporting Group (DBSG), Database Transaction Group (DBTG), and Database Query Group (DBQG). The DBMS of SCP (4) is provided with three blocks: DBKG, DBSG and DBTG. The only difference between OMP and SCP is that it is equipped with a disk and performs the function of receiving input from the operator. Therefore, only OMP has a DBBG block for accessing the disk and a DBQG block for interfacing the operator terminal with the ATM switch system.

DBMS의 각 블록들은 응용 프로그램 또는 사용자로부터 직접 입력되는 요구들로부터 데이터를 조작하도록 하는 요청을 받아 수행하고 그 결과를 되돌려 주는 역할을 분담한다. DBKG는 처리 요구가 들어온 데이터의 검색 및 변경 내용에 따라 실제로 데이터베이스 내의 데이터를 검색 및 변경, 동시성 제어, 로그 생성 기능 등을 담당한다. DBSG는 응용프로그램 내에서 원격 데이터에 대한 검색 및 변경 요구를 처리하도록 DBKG에게 요구하는 기능과 원격 데이터 처리를 위해 타 프로세서의 DBMS간의 통신 기능을 수행하고, DBBG는 변경을 요구한 데이터가 디스크 백업을 필요로 할 경우 실제로 디스크에 있는 데이터베이스에 백업을 시키는 기능과 시스템 재시동시 데이터베이스를 회복하는 기능을 담당한다. DBTG는 트랜잭션 관리 기능을 수행하고, DBQG는 운용자 터미널 또는 PC 상에서 발생하는 온-라인(on-line)대화형 질의어 처리 기능을 수행한다.Each block in the DBMS is responsible for receiving the request to manipulate the data from requests entered directly from the application or the user and returning the results. The DBKG is responsible for retrieving and changing data in the database, concurrency control, and log generation function according to the retrieval and change of data that the processing request comes in. The DBSG performs the functions of requesting DBKG to handle retrieval and change requests for remote data within the application and the communication function between DBMSs of other processors for remote data processing. If necessary, it is responsible for backing up the database on disk and restoring the database on system restart. DBTG performs transaction management functions, and DBQG performs on-line interactive query processing functions that occur on an operator terminal or PC.

제2도는 분산 실시간 시스템인 ATM 교환기 시스템상에 구현된 메세지를 주고 받는 관련 블록간의 구성 및 메세지의 흐름을 나타낸 구조도이다.2 is a structural diagram showing the flow and configuration of messages between related blocks for sending and receiving messages implemented on an ATM exchange system, which is a distributed real-time system.

OMP(3)에서 DBSG는 프로시듀어 호출을 통하여 DBKG에 작업을 명령한다. 따라서 DBSG와 DBKG간에는 시그널을 통한 메세지 전달이 존재하지 않는다. DBSG는 OMP내의 DBKG를 제외한 다른 모든 블록과 시그널을 통해 메세지를 교환하면서 DBKG와 타 블록간의 인터페이스 역할을 수행한다. 또한 DBTG와 DBBG는 트랜잭션 처리시 발생하는 데이터 백업 및 회복을 위하여 상호간에 매세지를 교환한다. SCP(4)에서는 OMP에서와 마찬가지로 DSBG와 DBTG간의 메세지 전달이 존재한다. 타 프로세서에 존재하는 원격 릴레이션에 대한 질의 요구를 수행하기 위하여, 각 프로세서간에는 즉 OMP와 SCP 또는 SCP들간에는 DBSG를 통하여 통신을 수행한다.In OMP (3), the DBSG commands the DBKG to work through a procedure call. Therefore, there is no message passing between DBSG and DBKG. DBSG acts as an interface between DBKG and other blocks, exchanging messages through all other blocks and signals except DBKG in OMP. In addition, DBTG and DBBG exchange messages with each other for data backup and recovery during transaction processing. In SCP (4), there is a message transfer between DSBG and DBTG as in OMP. In order to perform a query request for a remote relation existing in another processor, communication between DBs is performed between each processor, that is, between OMP and SCP or SCPs.

제3도는 ATM 교환기 시스템의 DBMS를 구성하는 각 블록들이 서로 주고 받는 메세지의 구조도이다.3 is a structural diagram of messages exchanged between the blocks constituting the DBMS of the ATM exchange system.

본 발명에서 제안하는 메세지 구성 방법은 DBMS내의 각 구성 블록간에 주고 받는 메세지가 어떠한 정보들을 포함하는 관계없이 하나의 가변성을 갖는 자료 구조로 통합하는 것이다.The message construction method proposed by the present invention is to integrate a data structure having one variability regardless of what information the messages exchanged between the building blocks in the DBMS contain.

메세지의 크기는 IPC 전송 단위로 고정적이고, 메세지의 구성 필드는 전체 메세지의 갯수, 메세지의 번호, 메세지 내 정보의 갯수, 각 정보의 위치, 각 정보의 크기, 각 정보의 내용들이다. 각 정보의 내용들은 그 크기가 가변적일 수도 있으므로 메세지 내에서의 정보의 위치 및 크기 정보 필드를 이용하여 접근할 수 있다. 각 필드들의 크기의 합은 IPC 전송 단위를 넘지 않아야 한다.The size of the message is fixed in IPC transmission units, and the composition fields of the message are the total number of messages, the number of messages, the number of information in the message, the location of each information, the size of each information, and the contents of each information. Since the contents of each piece of information may be variable in size, they can be accessed using the location and size information fields of the information in the message. The sum of the sizes of each field should not exceed the IPC transmission unit.

제4도는 각 필드들의 크기의 합이 IPC 전송 단위를 넘는 경우의 메세지들의 구조도이다.4 is a structural diagram of messages when the sum of the sizes of each field exceeds the IPC transmission unit.

각 메세지들의 크기는 IPC 전송 단위로 고정적이다. 모든 메세지들을 메세지 번호에 의하여 순서대로 연결하면 제3도에서의 메세지와 그 구조가 거의 같다. 단 두 번째 이상의 메세지에는 전체 메세지들의 갯수와 해당 메세지의 번호 정보만을 더 추가하여 유지한다.The size of each message is fixed in IPC transmission units. If all messages are concatenated in order by message number, their structure is almost identical to that in Figure 3. In the second and above messages, only the total number of messages and the number of the message are added.

제5도는 DBMS의 메세지를 전달하는 블록에서 메세지를 전달하기 위하여 수행하는 작업의 과정을 나타낸 순서도이다.5 is a flowchart showing a process of performing a task for delivering a message in a block for delivering a message of a DBMS.

먼저 전달할 메세지의 번호를 저장하고(7) 그 메세지 내에 포함될 정보들을 확정하여 그 수를 저장한다(8). 첫 번째 정보를 준비(9)한 후, 정보의 시작 위치 및 그 크기를 저장한다(10)(11). 준비한 정보의 크기가 메세지 내의 남아 있는 기억 공간보다 작은 경우에는 데이터를 저장한다(12). 더 저장해야 할 다음 정보가 존재할 경우 준비하여(13) 정보에 관계된 지금까지의 작업을 반복한다. 저장할 정보의 크기가 메세지내의 남아 있는 기억 공간보다 큰 경우에는 그 기억 공간의 크기 만큼만을 메세지에 저장한 후(14), 새로운 메세지를 위하여 기억 공간을 추가로 할당받아(15) 해당 메세지의 번호를 저장한다(16). 새로운 메세지에 남은 정보의 크기를 비교하여 적절한 작업을 수행한다.First, the number of the message to be delivered is stored (7) and the information to be included in the message is determined and the number is stored (8). After preparing the first information (9), the starting position of the information and its size are stored (10) (11). If the size of the prepared information is smaller than the remaining storage space in the message, data is stored (12). If there is next information to be stored further, prepare (13) and repeat the previous work related to the information. If the size of the information to be stored is larger than the remaining storage space in the message, only the amount of storage space is stored in the message (14), and then additional storage space is allocated for the new message (15). Save (16). Perform the appropriate action by comparing the amount of information left in the new message.

상기의 처리 절차에 의하여 정보를 모두 저장한 후에는 준비된 메세지의 총 갯수를 모든 메세지의 첫 필드에 저장한다(17). 최종적으로 준비된 메세지들을 수신 블록에 차례대로 전송한다(18).After storing all the information by the above processing procedure, the total number of prepared messages is stored in the first field of all messages (17). Finally, the prepared messages are transmitted to the receiving block in order (18).

제5도의 과정을 거쳐 전송된 메세지들을 수신하는 블록에서는 우선적으로 도착한 메세지의 첫 필드인 수신해야 할 메세지들의 갯수를 본다. 그 메세지들의 갯수 만큼을 수신한 후, 메세지의 번호에 의하여 순서를 정하고 각 정보들을 읽게 된다.In the block for receiving messages transmitted through the process of FIG. 5, the number of messages to be received, which is the first field of the message that arrives first, is seen. After receiving the number of messages, they are ordered by the number of messages and the information is read.

상기와 같이 구성되는 메세지 구조와 그 전송 및 수신 방버은 ATM 교환기의 분산 실시간 DBMS에 적용되어 다음과 같은 효과를 초래한다.The message structure constructed as described above and its transmission and reception method are applied to a distributed real-time DBMS of an ATM switch, resulting in the following effects.

첫째, 가변 구조를 갖는 정보들의 실제 내용만을 메세지에 유지하므로, 전송해야 할 메세지의 수를 줄일 수 있어 각 블록간의 통신에 해당한 수행 시간의 절약을 초래할 수 있다. 결과적으로 각 블록간의 통신속도의 고속화를 지원하게 되므로 실시간의 빠른 처리 속도를 요하는 DBMS 전체의 수행 시간 단축에도 크게 기여하게 된다. 둘째, 메세지 각각의 크기가 IPC 전송 단위로 고정되어 있다 하더라도 그 내용의 구성 및 저장 방법은 IPC 전송 단위에 무관하므로, IPC 전송 단위가 다른 시스템과의 호환이 자유롭다. 셋째, 정보의 크기가 IPC 전송 단위보다 더 큰 경우, 본 발명에서 제시한 구조를 가진 메세지 여러 개에 나누어 유지할 수 있으므로, 어떤 종류의 데이터도 지원할 수 있다.First, since only actual contents of information having a variable structure are kept in a message, the number of messages to be transmitted can be reduced, resulting in a reduction in execution time corresponding to communication between blocks. As a result, since the communication speed between blocks is supported, it greatly contributes to shortening the execution time of the entire DBMS that requires fast real-time processing speed. Second, even if the size of each message is fixed in IPC transmission units, the composition and storage method of the contents are independent of the IPC transmission units, and thus the IPC transmission units are freely compatible with other systems. Third, when the size of the information is larger than the IPC transmission unit, since it can be divided into several messages having the structure proposed in the present invention, any kind of data can be supported.

따라서 DBMS는 어느 시스템이든 관계없이 호환될 뿐 아니라, 시스템이 지원하는 IPC 전송 단위의 용량을 최대로 이용하므로 DBMS내의 각 블록간의 통신 속도가 최적화되어 사용자의 질의 요구 수행 속도를 최대로 증대시킬 수 있다.Therefore, the DBMS is not only compatible with any system but also the maximum capacity of the IPC transmission unit supported by the system allows the communication speed between each block in the DBMS to be optimized, thus increasing the speed of executing the user's query request. .

Claims (3)

분산 실시간 처리 통신시스템의 데이터 베이스 관리 시스템(DBMS)에 적용되는 메세지 구성 및 전달방법에 있어서, IPC 전송 단위로 고정적인 크기 이내에 전체 메세지의 갯수 필드와, 메세지의 번호 필드와, 메세지 내 정보의 갯수 필드와, 각 정보의 위치 필드와, 각 정보의 크기 필드와, 각 정보의 내용 필드를 구비하도록 메세지를 구성하는 제1단계와, 전달한 메세지의 번호를 저장하고 그 메세지 내에 포함될 정보들을 확정하여 그 수를 저장하고 첫 번째 정보를 준비한 후, 정보의 시작 위치 및 그 크기를 저장하는 제2단계와, 준비한 정보의 크기가 메세지 내의 남아 있는 기억 공간보다 작은 경우에는 데이터를 저장하고 더 저장해야 할 다음 정보가 존재할 경우 정보를 준비하는 제3단계와, 저장할 정보의 크기가 메세지 내의 남아 있는 기억 공간보다 큰 경우에는 그 기억 공간의 크기 만큼만을 메세지에 저장한 후 새로운 메세지를 위하여 기억 공간을 추가로 할당받아 해당 메세지의 번호를 저장하는 제4단계, 및 정보를 모두 저장한 후에는 준비된 메세지의 총 갯수를 모든 메세지의 첫 필드에 저장하고, 최종적으로 준비된 메세지들을 수신 블록에 차례대로 전송하는 제5단계를 구비하는 것을 특징으로 하는 데이터 베이스 관리 시스템(DBMS)에서의 메세지 구성 및 전달 방법.A message construction and delivery method applied to a database management system (DBMS) of a distributed real-time processing communication system, wherein the number of total messages, the number of messages field, and the number of information in a message are within a fixed size in IPC transmission units. A first step in composing a message to have a field, a location field of each information, a size field of each information, and a content field of each information, storing the number of the delivered message and determining the information to be included in the message. After storing the number and preparing the first information, the second step of storing the starting position and the size of the information, and if the size of the prepared information is smaller than the remaining storage space in the message, then the data that needs to be stored and stored further The third step of preparing the information if it exists, and the size of the information to be stored is greater than the remaining storage space in the message. In this case, the fourth step of storing only the size of the storage space in the message and then allocating the storage space for a new message and storing the number of the message, and the total number of prepared messages after storing all the information And a fifth step of storing in the first field of every message and finally sending the finally prepared messages to the receiving block. 제1항에 있어서, 상기 제1단계는, 각 필드들의 크기의 합이 IPC 전송 단위를 넘지 않도록 구성하는 것을 특징으로 하는 데이터 베이스 관리 시스템(DBMS)에서의 메세지 구성 및 전달 방법.The method of claim 1, wherein the first step is configured such that the sum of the sizes of each field does not exceed an IPC transmission unit. 제2항에 있어서, 상기 제1단계는, 두 번째 이상의 메세지에는 전체 메세지들의 갯수와 해당 메세지의 번호 정보만을 추가하여 유지하도록 하는 것을 특징으로 하는 데이터베이스 관리 시스템(DBMS)에서의 메세지 구성 및 전달 방법.3. The method of claim 2, wherein the first step includes maintaining only the number of total messages and number information of the corresponding message in the second or more messages. .
KR1019950039432A 1995-11-02 1995-11-02 Method of message forming & sending in a distributed realtime dbms KR0146998B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950039432A KR0146998B1 (en) 1995-11-02 1995-11-02 Method of message forming & sending in a distributed realtime dbms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950039432A KR0146998B1 (en) 1995-11-02 1995-11-02 Method of message forming & sending in a distributed realtime dbms

Publications (2)

Publication Number Publication Date
KR970031572A KR970031572A (en) 1997-06-26
KR0146998B1 true KR0146998B1 (en) 1998-08-17

Family

ID=19432787

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950039432A KR0146998B1 (en) 1995-11-02 1995-11-02 Method of message forming & sending in a distributed realtime dbms

Country Status (1)

Country Link
KR (1) KR0146998B1 (en)

Also Published As

Publication number Publication date
KR970031572A (en) 1997-06-26

Similar Documents

Publication Publication Date Title
US6510429B1 (en) Message broker apparatus, method and computer program product
US5404488A (en) Realtime data feed engine for updating an application with the most currently received data from multiple data feeds
US5924097A (en) Balanced input/output task management for use in multiprocessor transaction processing system
EP0191036B1 (en) Database backup method
US7366738B2 (en) Method and system for object cache synchronization
EP1032175A2 (en) System and method for transferring partitioned data sets over multiple threads
US6119173A (en) System and method for communications and process management in a distributed telecommunications switch
CN101673217B (en) Method for realizing remote program call and system thereof
CN106294261A (en) A kind of server architecture of high-performance real-time response
KR0146998B1 (en) Method of message forming & sending in a distributed realtime dbms
KR100324978B1 (en) message broker apparatus, method and computer program product
JPH08147201A (en) Traffic data cache method
KR0175460B1 (en) Data Consistency Backup Method Using Client-Server Architecture in Distributed Real-Time Database Management System
KR100319742B1 (en) Replication method of distributed dbms
JPH09244893A (en) Batch transfer method of parallel computer system
KR100198440B1 (en) A method indexing technique and dynamic update-propagations in memory-resident object-oriented database systems
KR0168914B1 (en) Relation processing method of atm
KR100205022B1 (en) A fath indexing mechanism and index-join technique for memory-resident object-oriented database systems
JPH0728686A (en) Decentralized data base system
KR19990080408A (en) External main memory database management system of mobile communication exchange
Unger et al. Design for integration of a DBMS into a network environment
KR100199268B1 (en) T-tree index structure retrieval in dbms
JPH0765019A (en) Data base service method and service controller using same method
KR0123193B1 (en) Distribute real time data base output method
KR970006415B1 (en) Information process method

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20040401

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee