KR100590171B1 - Apparatus and method for processing of isdn message - Google Patents
Apparatus and method for processing of isdn message Download PDFInfo
- Publication number
- KR100590171B1 KR100590171B1 KR1020040030736A KR20040030736A KR100590171B1 KR 100590171 B1 KR100590171 B1 KR 100590171B1 KR 1020040030736 A KR1020040030736 A KR 1020040030736A KR 20040030736 A KR20040030736 A KR 20040030736A KR 100590171 B1 KR100590171 B1 KR 100590171B1
- Authority
- KR
- South Korea
- Prior art keywords
- message
- isdn
- event
- command
- queue
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9084—Reactions to storage capacity overflow
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/54—Loss aware scheduling
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Communication Control (AREA)
Abstract
본 발명은 가변 길이를 가지는 ISDN 메시지를 효율적으로 처리하기 위한 것으로, 시스템이 처리 가능한 용량을 넘어서는 양의 메시지가 입력됨으로써 발생하는 오버플로로 인한 메시지 소실을 방지하기 위하여 입력되는 메시지를 우선 저장하기 위한 버퍼를 더 구비하고, 처리 가능한 용량의 메시지만을 입력한다. The present invention is to efficiently process the ISDN message having a variable length, the system first to store the input message in order to prevent the loss of the message due to overflow caused by input of a message exceeding the capacity that can be processed A buffer is further provided, and only a message of a capacity that can be processed is input.
ISDN(Integrated Service Digital Network), ISDN 메시지, DPRAM(Dual Port Random Access Memory), 버퍼, 가변 크기 메시지Integrated Service Digital Network (ISDN), ISDN Messages, Dual Port Random Access Memory (DPRAM), Buffers, Variable Size Messages
Description
도 1은 ISDN 시스템 및 ISDN 시스템과 ISDN 메시지를 포함하는 통신을 수행하는 CO를 도시하는 도면.1 is a diagram illustrating a CO performing communication including an ISDN system and an ISDN system and an ISDN message.
도 2는 종래기술에 따른 ISDN 시스템의 하드웨어(H/W)와 디바이스 드라이버간의 ISDN 메시지 전송 장치를 도시하는 도면.2 is a diagram illustrating an apparatus for transmitting ISDN messages between hardware (H / W) and device drivers of an ISDN system according to the prior art.
도 3은 본 발명에 따른 ISDN 시스템의 H/W와 디바이스 드라이버간의 ISDN 메시지 전송 장치를 도시하는 도면.3 is a diagram illustrating an apparatus for transmitting ISDN messages between a H / W and a device driver in an ISDN system according to the present invention.
도 4는 본 발명에 따른 ISDN 메시지 전송 장치를 사용하는 ISDN 메시지 전송 방법에 따른 순서 흐름도.4 is a flowchart illustrating an ISDN message transmission method using an ISDN message transmission apparatus according to the present invention.
본 발명은 ISDN 시스템에서 사용되는 ISDN 메시지 전송 장치 및 방법에 관한 것으로, 특히 ISDN 시스템의 H/W와 디바이스 드라이버간의 ISDN 메시지 전송 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for transmitting ISDN messages used in an ISDN system, and more particularly, to an apparatus and method for transmitting ISDN messages between a device driver and a hardware driver of an ISDN system.
일반적으로 ISDN(Integrated Services Digital Network) 통신에서는 시스템들 간에서 송수신되는 데이터 외에도 통신 환경의 설정 등을 위해 사용되는 ISDN 메시지의 전송이 이루어져야 한다. 임의의, ISDN 인터페이스를 가지는 시스템(이하 "ISDN 시스템"이라 칭한다)은 통신의 대상이 되는 상대 시스템과 이 ISDN 메시지를 교환한다. 이 ISDN 메시지의 교환을 통해 ISDN 메시지는 초기 통신 환경 설정 과정을 수행할 수 있다. 또, 초기 환경 설정 과정을 통해 설정된 전송회선을 통해 상대 시스템과의 통신을 수행하는 도중에도 ISDN 메시지를 사용하여 설정 변경 등을 수행할 수 있을 것이다.In general, in ISDN (Integrated Services Digital Network) communication, in addition to the data transmitted and received between systems, the ISDN message used for setting the communication environment should be transmitted. Any system having an ISDN interface (hereinafter referred to as an "ISDN system") exchanges this ISDN message with a partner system to which communication is to be made. Through the exchange of ISDN messages, ISDN messages can perform the initial communication configuration process. In addition, a configuration change may be performed using an ISDN message during communication with a counterpart system through a transmission line configured through an initial configuration process.
도 1은 ISDN 시스템 및 ISDN 시스템과 ISDN 메시지를 포함하는 통신을 수행하는 CO를 도시하는 도면이다.1 is a diagram illustrating a CO performing communication including an ISDN system and an ISDN system and an ISDN message.
도 1은 ISDN 시스템과 CO(Central Office, 중앙국)(100)간의 연결을 도시하고 있다.1 illustrates a connection between an ISDN system and a central office (CO) 100.
도 1에 도시된 바와 같이 ISDN 시스템은 하드웨어(H/W)(110), 디바이스 드라이버(120) 및 상위의 장치들(도시하지 않음)로 구성될 수 있다. H/W(110) CO(100)로부터 ISDN 메시지 등의 데이터를 포함하는 신호를 수신하고 이를 상위의 디바이스 드라이버(120)에 전송한다.As shown in FIG. 1, an ISDN system may be composed of hardware (H / W) 110, a
디바이스 드라이버(120)는 일반적으로, 각 장치를 작동시키는 데 필요한 정확한 기계 언어와 각 장치의 특성에 대한 상세한 정보를 사용하여 응용 프로그램에 의해 요구되는 기능을 수행한다. 규격과 특성이 다른 다양한 주변 기기를 관리하 기 위하여 다양한 디바이스 드라이버(120)가 사용된다. 도 1에 도시된 디바이스 드라이버(120)는 특히 ISDN 통신을 위한 것이다. 이하 별도의 언급이 없는 한 "디바이스 드라이버"는 ISDN 통신을 위한 디바이스 드라이버를 의미한다.The
일반적으로 H/W(110)와 디바이스 드라이버(120)간의 ISDN 메시지 전송은 IPC(Inter Processor Communication, 프로세서간 통신)를 통해 이루어진다. 하기의 도 2를 참조하여 ISDN 시스템의 H/W(110)와 디바이스 드라이버(120)간의 ISDN 메시지 전송에 대해 설명한다.In general, ISDN message transmission between the H /
도 2는 종래기술에 따른 ISDN 시스템의 하드웨어(H/W)와 디바이스 드라이버간의 ISDN 메시지 전송 장치를 도시하는 도면이다.2 is a diagram illustrating an apparatus for transmitting ISDN messages between hardware (H / W) and device drivers of an ISDN system according to the related art.
도 2에 도시된 바와 같이, H/W(110)와 디바이스 드라이버(120)간의 ISDN 메시지 전송은 DPRAM(Dual Port Random Access Memory)으로 구현되는 메시지 큐(210)를 통해 이루어진다. DPRAM은 두 개의 주소라인을 가지고있기 때문에 두 개의 프로세서가 동시에 접근할 수 있다는 특성을 가진다.As shown in FIG. 2, ISDN message transmission between the H /
먼저, CO(100)로부터 수신되는 ISDN 메시지의 전송에 대해 기술한다. 한편, 이하 전송회선을 통해 CO(100)로부터 수신되는 ISDN 메시지를 "이벤트 메시지"라 칭하기로 한다.First, transmission of an ISDN message received from the
도 2에 도시된 바와 같이, H/W(110)는 CO(100)로부터 이벤트 메시지(201)를 수신하고, 수신된 이벤트 메시지(201)를 이벤트 메시지 큐(212)에 출력한다. 이벤트 메시지 큐(212)는 H/W(110)로부터 입력된 이벤트 메시지를 저장하였다가 디바이스 드라이버(120)의 이벤트 처리 모듈(220)에 출력한다. 이벤트 처리 모듈(220)은 이벤트 메시지 큐(212)로부터 입력된 이벤트 메시지를 해석하여 이벤트 메시지가 요구하는 이벤트를 수행한다. 이와 같은, 이벤트 처리 모듈(220)이 수행하는 이벤트 메시지의 해석 및 이벤트 수행 등을 이하 "이벤트 처리"라 칭하기로 한다.As shown in FIG. 2, H /
다음으로, CO(100)에 송신할 ISDN 메시지의 전송에 대해 기술한다. 한편, 이하 디바이스 드라이버(120)로부터 전송회선을 통해 CO(100)에 송신될 ISDN 메시지를 "커맨드 메시지"라 칭하기로 한다.Next, transmission of the ISDN message to be transmitted to the
도 2에 도시된 바와 같이, 디바이스 드라이버(120)는 상위로부터 커맨드 메시지(231)를 수신하고, 수신된 커맨드 메시지(231)를 커맨드 메시지 큐(214)에 출력한다. 커맨드 메시지 큐(214)는 디바이스 드라이버(120)로부터 입력된 커맨드 메시지를 저장하였다가 H/W(110)의 라인 시그널 처리 모듈(240)에 출력한다. 라인 시그널 처리 모듈(240)은 커맨드 메시지 큐(214)로부터 입력된 커맨드 메시지를 CO(100)에 송신하기 위하여 전송회선을 통해 송신할 수 있는 신호로 변환한다. 이와 같은, 라인 시그널 처리 모듈(240)이 수행하는 과정을 이하 "라인 시그널 처리"라 칭하기로 한다.As shown in FIG. 2, the
그런데, 이벤트 메시지 큐(212), 이벤트 처리 모듈(220), 커맨드 메시지 큐(214) 및 라인 시그널 처리 모듈(240)은 모두 처리 가능한 한계가 있다. 즉, 이벤트 처리 모듈(220) 및 라인 시그널 처리 모듈(240)은 처리 속도의 한계를 가지며, 이벤트 메시지 큐(212) 및 커맨드 메시지 큐(214)는 저장 가능한 용량의 한계를 가진다. 따라서 이벤트 메시지 큐(212) 및 커맨드 메시지 큐(214)는 각각 이벤트 처리 모듈(220) 및 라인 시그널 처리 모듈(240)이 입력된 ISDN 메시지를 처리하 고 다음의 ISDN 메시지를 처리할 수 있게 될 때까지 H/W(110) 및 디바이스 드라이버(120)로부터 입력된 ISDN 메시지를 저장하고 있어야 한다. 그러나 앞서 언급한 한계로 인하여 이벤트 메시지 큐(212) 및 커맨드 메시지 큐(214)에서는 저장 가능한 용량을 초과하는 ISDN 메시지가 입력되는 오버플로가 발생할 수 있다. 이와 같은 오버플로 발생을 ISDN 인터페이스 중의 PRI(Primary Rate Interface, 1차군 속도 인터페이스)를 예를 들어 설명하도록 한다.However, the event message queue 212, the
일반적으로 PRI는 1개의 링크에 30채널(CHannel)이 사용되고, ISDN 메시지의 길이는 최고 256바이트(Bytes)이다. 이에 비해 보드 즉, H/W(110)와 디바이스 드라이버(120)의 메시지 전송을 위한 메시지 큐로 사용하는 DPRAM(210)의 크기는 제한되어 있다. 그 결과, 동시에 호 설정이 진행되면 많은 양의 ISDN 메시지가 메시지 큐에 입력되어 오버플로가 발생할 가능성이 크다. 한편, 보드는 H/W가 아닌 F/W(FirmWare)로 구현될 수도 있다.In general, PRI uses 30 channels (CHannel) on one link, and the maximum length of ISDN message is 256 bytes. In contrast, the size of the DPRAM 210 used as a message queue for message transmission of the board, that is, the H /
오버플로가 발생하는 경우, 오버플로된 ISDN 메시지는 소실된다. 그러므로, ISDN 시스템에서는 이와 같은 문제점을 해결하기 위하여 오버플로가 발생하지 않도록 하는 ISDN 메시지 전송 장치 및 방법이 요구된다.If an overflow occurs, the overflowed ISDN message is lost. Therefore, in order to solve such a problem, an ISDN system requires an apparatus and a method for transmitting an ISDN message so that no overflow occurs.
한편, ISDN 메시지 전송 장치에서 메시지 큐로 사용되는 DPRAM(210)은 높은 가격으로 인하여 그 용량의 확장이 용이하지 않다. 따라서 DPRAM(210)의 용량 확장을 수반하지 않고 메시지 큐에서 발생하는 오버플로를 방지할 수 있는 ISDN 메시지 전송 장치 및 방법이 요구된다.On the other hand, the DPRAM 210 used as the message queue in the ISDN message transmission device is not easy to expand its capacity due to the high price. Accordingly, there is a need for an apparatus and method for transmitting ISDN messages that can prevent overflow that occurs in the message queue without involving capacity expansion of the DPRAM 210.
따라서, 본 발명의 목적은 오버플로가 발생하지 않는 ISDN 메시지 전송 장치 및 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide an apparatus and method for transmitting ISDN messages in which no overflow occurs.
본 발명의 다른 목적은 DPRAM의 확장 없이 오버플로가 발생하지 않도록 하는 ISDN 메시지 전송 장치 및 방법을 제공함에 있다.
Another object of the present invention is to provide an apparatus and a method for transmitting an ISDN message so that no overflow occurs without the expansion of the DPRAM.
본 발명은 메시지 큐의 전단에 추가 버퍼를 구비하고, 메시지 큐에 입력할 메시지를 우선 추가 버퍼에 저장한 후 메시지 큐가 처리 가능한 용량의 ISDN 메시지만을 메시지 큐에 입력함으로써 메시지 큐에서 오버플로가 발생하지 않도록 한다.The present invention includes an additional buffer at the front end of the message queue, overflows the message queue by first storing the message to be input to the message queue in the additional buffer, and then inputting only the ISDN message of the capacity that the message queue can process into the message queue. Do not do it.
본 발명이 제공하는, 전송회선으로부터 수신되는 ISDN 메시지를 처리하기 위한 장치는, 하드웨어부로부터 수신되는 ISDN 메시지인 이벤트 메시지를 저장하는 이벤트 메시지 버퍼링용 버퍼와, 상기 이벤트 메시지 버퍼링용 버퍼에 저장된 이벤트 메시지 중에서 자신이 저장 가능한 용량의 이벤트 메시지만을 입력받아 저장하는 이벤트 메시지 큐와, 상기 이벤트 메시지 큐에 저장된 이벤트 메시지를 입력받아 처리하는 이벤트 처리부를 포함하는 ISDN 메시지 처리 장치이다.An apparatus for processing an ISDN message received from a transmission line provided by the present invention includes an event message buffering buffer for storing an event message which is an ISDN message received from a hardware unit, and an event message stored in the event message buffering buffer. An ISDN message processing apparatus including an event message queue for receiving and storing only event messages having a capacity that can be stored therein, and an event processor for receiving and processing event messages stored in the event message queue.
한편, 디바이스 드라이버로부터 수신되는 ISDN 메시지를 처리하기 위한 본 발명의 장치는, 디바이스 드라이버로부터 수신되는 ISDN 메시지인 커맨드 메시지를 저장하는 커맨드 메시지 버퍼링용 버퍼와, 상기 커맨드 메시지 버퍼링용 버퍼에 저 장된 커맨드 메시지 중에서 자신이 저장 가능한 용량의 커맨드 메시지만을 입력받아 저장하는 커맨드 메시지 큐와, 상기 커맨드 메시지 큐에 저장된 커맨드 메시지를 입력받아 처리하는 라인 시그널 처리부를 포함하는 ISDN 메시지 처리 장치이다.Meanwhile, an apparatus of the present invention for processing an ISDN message received from a device driver includes a command message buffering buffer for storing a command message which is an ISDN message received from a device driver, and a command message stored in the command message buffering buffer. And a command message queue configured to receive only a command message having a capacity that can be stored therein, and a line signal processor configured to receive and process a command message stored in the command message queue.
또, 본 발명에 따른 ISDN 메시지를 처리하기 위한 방법은, ISDN 메시지를 수신하는 제 1과정과, 상기 수신된 ISDN 메시지를 버퍼에 저장하는 제 2과정과, ISDN 메시지 큐에 추가의 ISDN 메시지를 저장할 여분의 저장 공간이 있는지 판단하는 제 3과정과, 상기 ISDN 메시지 큐에 여분의 저장 공간이 있다고 판단되는 경우 상기 여분의 저장 공간의 크기를 측정하는 제 4과정과, 상기 버퍼로부터 측정된 크기에 해당하는 크기의 ISDN 메시지를 읽어서 상기 ISDN 메시지 큐에 저장하는 제 5과정을 포함하는 ISDN 메시지 처리 방법이다.In addition, a method for processing an ISDN message according to the present invention includes a first process of receiving an ISDN message, a second process of storing the received ISDN message in a buffer, and storing an additional ISDN message in an ISDN message queue. A third process of determining whether there is an extra storage space, a fourth process of measuring the size of the extra storage space when it is determined that there is extra storage space in the ISDN message queue, and a size measured from the buffer ISDN message processing method comprising the fifth step of reading the ISDN message of the size to be stored in the ISDN message queue.
이하 본 발명의 바람직한 실시예들을 첨부된 도면의 참조와 함께 상세히 설명한다. 본 발명을 설명함에 있어서, 관련된 공지기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단된 경우 그 상세한 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In describing the present invention, if it is determined that the detailed description of the related known function or configuration may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted.
먼저, 본 발명을 기술함에 있어서 사용되는 용어들에 대해 정의한다. 이하 기술하는 용어들에 대한 정의는 본 발명에서 사용되는 것으로, 별도의 언급이 없는 한 본 정의를 따르기로 한다.First, terms used in describing the present invention are defined. Definitions for the terms described below are used in the present invention, and unless otherwise stated, the present definitions will be used herein.
"ISDN 시스템"은 ISDN 인터페이스를 가지는 모든 시스템을 통칭한다."ISDN system" refers to all systems having an ISDN interface.
"디바이스 드라이버"는 ISDN 통신을 위한 디바이스 드라이버를 의미한다."Device driver" means a device driver for ISDN communication.
"이벤트 메시지"는 H/W가 전송회선을 통해 CO로부터 수신하는 ISDN 메시지를 의미한다."Event message" means an ISDN message that the H / W receives from the CO over the transmission line.
"이벤트 처리"는 이벤트 처리 모듈이 수행하는 이벤트 메시지의 해석 및 그에 따른 이벤트 수행 등을 의미한다."Event processing" means interpreting an event message performed by an event processing module and performing an event accordingly.
"커맨드 메시지"는 전송회선을 통해 CO에 송신될 ISDN 메시지를 의미한다."Command message" means an ISDN message to be sent to the CO via a transmission line.
"라인 시그널 처리"는 라인 시그널 처리 모듈이 수행하는, 커맨드 메시지를 전송회선을 통해 송신할 수 있도록 변환하는 과정을 칭한다."Line signal processing" refers to a process performed by the line signal processing module for converting a command message to be transmitted through a transmission line.
도 3은 본 발명에 따른 ISDN 시스템의 H/W와 디바이스 드라이버간의 ISDN 메시지 전송 장치를 도시하는 도면이다.3 is a diagram illustrating an apparatus for transmitting ISDN messages between a H / W and a device driver of an ISDN system according to the present invention.
도 3에 도시된 바와 같이, 본 발명에 따른 ISDN 메시지 전송 장치는 이벤트 메시지 버퍼링용 버퍼(300) 및 커맨드 메시지 버퍼링용 버퍼(310)를 포함한다. 본 발명에서는 H/W(110)로부터 디바이스 드라이버(120)에 전송할 이벤트 메시지(201) 및 디바이스 드라이버(120)로부터 H/W(110)에 전송할 커맨드 메시지(231)를 메시지 큐(210)에 저장하기 전에 각각 이벤트 메시지 버퍼링용 버퍼(300) 및 커맨드 메시지 버퍼링용 버퍼(310)에 먼저 저장한다.As shown in FIG. 3, the apparatus for transmitting ISDN messages according to the present invention includes an event
먼저 커맨드 메시지 버퍼링용 버퍼(310)를 사용하는 커맨드 메시지(231)의 전송에 대해 기술한다.First, the transmission of the
커맨드 메시지 버퍼링용 버퍼(310)는 디바이스 드라이버(120)로부터 H/W(110)에 전송되는 커맨드 메시지(231)에 대하여 커맨드 메시지 큐(214)의 오버플로우로 인한 커맨드 메시지(231)의 소실을 방지하기 위한 충분한 크기를 가진다. 커맨드 메시지(231)는 커맨드 메시지 버퍼링용 버퍼(310)에 저장되었다가 커맨드 메시지 큐(214)에 전송된다. 이때 커맨드 메시지 버퍼링용 버퍼(310)는 커맨드 메시지 큐(214)의 사용 가능한 크기를 체크하여 커맨드 메시지 큐(214)가 저장 가능한 크기의 커맨드 메시지(231)만을 커맨드 메시지 큐(214)에 전송한다.The command
한편, 이와 같은 커맨드 메시지 큐(214)의 사용 가능한 크기에 대한 체크는 커맨드 메시지 버퍼링용 버퍼(310)가 아닌 커맨드 메시지 큐(214)가 수행할 수도 있을 것이다. 이러한 경우에 커맨드 메시지 큐(214)는 자신이 추가의 커맨드 메시지(231)를 더 저장할 여분의 저장공간이 있는지 체크하고, 여분의 저장공간의 크기를 체크한 후, 여분의 저장공간에 해당하는 커맨드 메시지(231)를 더 전송할 것을 요청하는 제어신호를 커맨드 메시지 버퍼링용 버퍼(310)에 출력할 수 있을 것이다. 커맨드 메시지 큐(214)로부터 이와 같은 제어신호를 입력받은 커맨드 메시지 버퍼링용 버퍼(310)는 입력받은 제어신호가 지시하는 크기의 커맨드 메시지(231)를 커맨드 메시지 큐(214)에 전송한다. 여기서, 커맨드 메시지 버퍼링용 버퍼(310)로부터 커맨드 메시지 큐(212)로의 커맨드 메시지의 전송은 인터럽트(interrupt)나 타이머 잡(timer job)을 이용할 수 있다. 즉, 인터럽트(interrupt)나 타이머 잡(timer job)에서 일정 주기로 커맨드 메시지 버퍼링용 버퍼(310)에 저장된 커맨드 메시지를 커맨드 메시지 큐(214)에 전송한다.On the other hand, such a check on the usable size of the
이때, 커맨드 메시지 큐(214)에서는 커맨드 메시지(231)가 가변 크기로 처리하는데, 이는 커맨드 메시지 큐(214)의 효율적인 사용을 위해서이다. ISDN 메시지는 그 종류에 따라 메시지 크기가 틀린데, 최대 크기는 256바이트이다. 그런데, 커맨드 메시지 큐(214)가 커맨드 메시지의 처리 크기를 최대 크기인 256바이트로 설정하는 경우 짧은 커맨드 메시지의 경우 커맨드 메시지 큐(214)를 낭비하게 된다. 따라서 커맨드 메시지를 가변 크기로 처리하여 커맨드 메시지 큐(214)의 효율성을 높인다. 이때 메시지 형식은 PORT+SIZE+DATA의 형식으로 할 수 있다. 여기서, PORT는 커맨드 메시지를 송신할 포트에 대한 정보, SIZE는 커맨드 메시지의 크기, DATA는 실제 커맨드 메시지로 볼 수 있을 것이다.At this time, in the
다음으로, 이벤트 메시지 버퍼링용 버퍼(300)를 사용하는 이벤트 메시지(201)의 전송에 대해 기술한다.Next, the transmission of the
이벤트 메시지 버퍼링용 버퍼(300)는 H/W(110)로부터 디바이스 드라이버(120)에 전송되는 이벤트 메시지(201)에 대하여 이벤트 메시지 큐(212)의 오버플로우로 인한 이벤트 메시지(201)의 소실을 방지하기 위한 충분한 크기를 가진다. 이벤트 메시지(201)는 이벤트 메시지 버퍼링용 버퍼(300)에 저장되었다가 이벤트 메시지 큐(212)에 전송된다. 이때 이벤트 메시지 버퍼링용 버퍼(300)는 이벤트 메시지 큐(212)의 사용 가능한 크기를 체크하여 이벤트 메시지 큐(212)가 저장 가능한 크기의 이벤트 메시지(201)만을 이벤트 메시지 큐(212)에 전송한다.The event
한편, 이와 같은 이벤트 메시지 큐(212)의 사용 가능한 크기에 대한 체크는 이벤트 메시지 버퍼링용 버퍼(300)가 아닌 이벤트 메시지 큐(212)가 수행할 수도 있을 것이다. 이러한 경우에 이벤트 메시지 큐(212)는 자신이 추가의 이벤트 메시지(201)를 더 저장할 여분의 저장공간이 있는지 체크하고, 여분의 저장공간의 크기를 체크한 후, 여분의 저장공간에 해당하는 이벤트 메시지(201)를 더 전송할 것을 요청하는 제어신호를 이벤트 메시지 버퍼링용 버퍼(300)에 출력할 수 있을 것이다. 이벤트 메시지 큐(212)로부터 이와 같은 제어신호를 입력받은 이벤트 메시지 버퍼링용 버퍼(300)는 입력받은 제어신호가 지시하는 크기의 이벤트 메시지(201)를 이벤트 메시지 큐(212)에 전송한다. 여기서, 이벤트 메시지 버퍼링용 버퍼(300)로부터 이벤트 메시지 큐(212)로의 이벤트 메시지의 전송은 인터럽트(interrupt)나 타이머 잡(timer job)을 이용할 수 있다.Meanwhile, the event message queue 212 may be performed by the event message queue 212 instead of the event
이때, 이벤트 메시지 큐(212)의 효율적인 사용을 위하여 이벤트 메시지는 가변 크기로 처리된다.At this time, the event message is processed to a variable size for efficient use of the event message queue 212.
이와 같은 ISDN 메시지 전송 장치를 이용한 ISDN 메시지 전송의 과정에 대해 설명하면 다음과 같다.Referring to the process of ISDN message transmission using the ISDN message transmission device as follows.
먼저 커맨드 메시지(231)의 전송에 대해 기술한다.First, the transmission of the
(1) 디바이스 드라이버(120)는 커맨드 메시지(231)를 커맨드 메시지 버퍼링용 버퍼(310)에 저장한다. 이때 커맨드 메시지(231)는 PORT+SIZE+DATA의 형태로 커맨드 메시지 버퍼링용 버퍼(310)에 저장될 수 있다. (1) The
(2) 인터럽트 또는 타이머 잡을 사용하여 커맨드 메시지 버퍼링용 버퍼(310)에 저장된 커맨드 메시지를 커맨드 메시지 큐(214)에 전송하는데, 이때는 다음과 같은 과정들을 수행하게 된다.(2) The command message stored in the command
- 커맨드 메시지 큐(214)의 현재 사용 가능한 크기를 체크한다.Check the currently available size of
- 커맨드 메시지 버퍼링용 버퍼(310)에 저장된, 커맨드 메시지 큐(214)로 전송할 다음 커맨드 메시지가 현재 사용 가능한 커맨드 메시지 큐(214)의 크기보다 작으면 다음 커맨드 메시지의 크기를 체크한다. 이와 같은 커맨드 메시지의 크기 체크를 반복한다.If the next command message to be sent to the
- 커맨드 메시지 큐(214)의 현재 사용 가능한 크기보다 작은 커맨드 메시지를 커맨드 메시지 버퍼링용 버퍼(310)로부터 커맨드 메시지 큐(214)에 전송한다.Send a command message smaller than the currently available size of the
(3) 라인 시그널 처리 모듈(240)은 커맨드 메시지 큐(214)로부터 커맨드 메시지를 수신하여 처리한다.(3) The line
다음으로 이벤트 메시지(201)의 전송에 대해 기술한다.Next, transmission of the
(1) H/W(110)의 라인 시그널 처리 모듈(240)은 CO(100)로부터 수신한 이벤트 메시지(201)를 이벤트 메시지 버퍼링용 버퍼(300)에 저장한다.(1) The line
(2) 인터럽트 또는 타이머 잡을 사용하여 이벤트 메시지 버퍼링용 버퍼(300)에 저장된 이벤트 메시지를 이벤트 메시지 큐(212)에 전송하는데, 이때는 다음과 같은 과정들을 수행하게 된다.(2) The event message stored in the event
- 이벤트 메시지 큐(212)의 현재 사용 가능한 크기를 체크한다.Check the currently available size of event message queue 212.
- 이벤트 메시지 버퍼링용 버퍼(300)에 저장된, 이벤트 메시지 큐(212)로 전송할 다음 이벤트 메시지가 현재 사용 가능한 이벤트 메시지 큐(212)의 크기보다 작으면 다음 이벤트 메시지의 크기를 체크한다. 이와 같은 이벤트 메시지의 크기 체크를 반복한다.If the next event message to be sent to the event message queue 212, which is stored in the event
- 이벤트 메시지 큐(212)의 현재 사용 가능한 크기보다 작은 이벤트 메시지를 이벤트 메시지 버퍼링용 버퍼(300)로부터 이벤트 메시지 큐(212)에 전송한다.Send an event message smaller than the currently available size of the event message queue 212 from the event
(3) 이벤트 처리 모듈(220)은 이벤트 메시지 큐(212)로부터 이벤트 메시지를 수신하여 처리한다.(3) The
이와 같은 본 발명에 따른 방법을 순서 흐름도를 참조하여 설명한다.Such a method according to the present invention will be described with reference to a flow chart.
도 4는 본 발명에 따른 ISDN 메시지 전송 장치를 사용하는 ISDN 메시지 전송 방법에 따른 순서 흐름도이다.4 is a flowchart illustrating an ISDN message transmission method using an ISDN message transmission apparatus according to the present invention.
제 400단계에서 ISDN 메시지를 수신한다. 제 402단계에서는 제 400단계에서 수신한 ISDN 메시지를 버퍼에 저장한다. 제 404단계에서는 DPRAM 즉, 메시지 큐(210)가 다른 ISDN 메시지를 더 저장 가능한지를 판단한다. 메시지 큐(210)가 다른 ISDN 메시지를 더 저장 가능하다면, 제 406단계를 수행한다. 제 406단계에서는 메시지 큐(210)가 더 저장 가능한 크기를 체크하고, 그 크기만큼의 ISDN 메시지를 메시지 큐(210)에 전송한다.In step 400, an ISDN message is received. In
도 4에 도시된 순서 흐름도는 이벤트 메시지(201) 및 커맨드 메시지(231)의 전송에 모두 적용될 수 있다. 다만, 이벤트 메시지(201)의 전송 시에는 제 400단계에서 수신되는 ISDN 메시지는 이벤트 메시지이고, 제 402단계의 버퍼는 이벤트 메시지 버퍼링용 버퍼(300)이고, 제 404단계 및 제 406단계의 메시지 큐(210)는 이벤트 메시지 큐(212)에 해당한다. 또, 커맨드 메시지(231)의 전송 시에는 제 400단계에서 수신되는 ISDN 메시지는 커맨드 메시지이고, 제 402단계의 버퍼는 커맨드 메시지 버퍼링용 버퍼(310)이고, 제 404단계 및 제 406단계의 메시지 큐(210)는 커맨드 메시지 큐(214)에 해당한다.The flowchart shown in FIG. 4 may be applied to the transmission of both the
이와 같이 전송할 메시지를 버퍼에 먼저 저장하였다가 메시지 큐에 전송하는 본 발명을, ISDN 시스템만이 아닌, 메시지 전송 통로가 한정되어 있고 이를 여러 채널이 공유하는 시스템에 적용하면 동시에 많은 메시지가 발생할 경우에도 메시지 의 소실이 발생하는 것을 방지할 수 있다.The present invention of storing a message to be transmitted in a buffer first and then transmitting the message to a message queue is not limited to an ISDN system but also to a system shared by multiple channels, even when many messages are generated at the same time. The loss of a message can be prevented.
또, 메시지의 종류에 따라 메시지 길이가 다른 경우 메시지를 가변 길이로 처리하면 한정된 큐를 낭비 없이 효율적으로 사용할 수 있다.In addition, if the message length is different according to the type of message, processing the message with variable length enables efficient use of the limited queue without waste.
이와 같은 본 발명을 사용함으로써 ISDN 시스템에서 메시지 처리 시에 발생하는 오버플로우를 방지할 수 있게 된다. 이를 통해 ISDN 메시지의 소실이 없는, 효율적인 ISDN 메시지 전송이 가능해진다.By using the present invention as described above, it is possible to prevent an overflow that occurs during message processing in an ISDN system. This enables efficient ISDN message transmission without loss of ISDN messages.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040030736A KR100590171B1 (en) | 2004-04-30 | 2004-04-30 | Apparatus and method for processing of isdn message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040030736A KR100590171B1 (en) | 2004-04-30 | 2004-04-30 | Apparatus and method for processing of isdn message |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20050105017A KR20050105017A (en) | 2005-11-03 |
KR100590171B1 true KR100590171B1 (en) | 2006-06-14 |
Family
ID=37282457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020040030736A KR100590171B1 (en) | 2004-04-30 | 2004-04-30 | Apparatus and method for processing of isdn message |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100590171B1 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010064765A (en) * | 1999-12-18 | 2001-07-11 | 서평원 | Inter Processor Communication Control Method |
-
2004
- 2004-04-30 KR KR1020040030736A patent/KR100590171B1/en not_active IP Right Cessation
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010064765A (en) * | 1999-12-18 | 2001-07-11 | 서평원 | Inter Processor Communication Control Method |
Also Published As
Publication number | Publication date |
---|---|
KR20050105017A (en) | 2005-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6925512B2 (en) | Communication between two embedded processors | |
US6615282B1 (en) | Adaptive messaging | |
US6526068B2 (en) | Interface control of communication between a control processor and a digital signal processor | |
EP1124362A2 (en) | Apparatus for processing TCP/IP by hardware, and operating method therefor | |
CN116431079A (en) | Data reading and writing method and device, bandwidth conversion device and electronic equipment | |
CN1448018A (en) | Network transmitter with data frame priority management for data transmission | |
US20020004868A1 (en) | Parallel processing system in which use efficiency of CPU is improved and parallel processing method for the same | |
KR100590171B1 (en) | Apparatus and method for processing of isdn message | |
US7020149B1 (en) | Method for operating a switching system for data packets | |
CN110765044B (en) | Data packet transmission device and system | |
KR20010095103A (en) | An intelligent bus interconnect unit | |
CN111124987B (en) | PCIE-based data transmission control system and method | |
KR100677153B1 (en) | Method and apparatus for transferring data from input device | |
US7664921B2 (en) | Method for accessing shared memories and multiprocessor system using the method | |
JP3058010B2 (en) | Method and apparatus for communication between processors | |
KR940002722A (en) | Data transfer and synchronization method between CPUs in a system consisting of two CPUs | |
KR100469436B1 (en) | Data access circuit for multimedia device | |
JP4523303B2 (en) | Information processing board | |
CN116185922A (en) | Data transmission method, control equipment and computing equipment | |
KR100726676B1 (en) | Method for quick response data communication for mobile communication terminal and central processing unit | |
KR19990003017A (en) | How to Transfer ATM Line Card and Access Memory Data | |
CN111756650A (en) | Data processing method and device, operation chip and storage medium | |
KR20040102835A (en) | Method for communication of message queue in real time operating system | |
KR100419916B1 (en) | Multi port short message sending and calling service method and system therefor | |
EP1459191B1 (en) | Communication bus system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
LAPS | Lapse due to unpaid annual fee |