KR19990060636A - How to manage state of exchange - Google Patents

How to manage state of exchange Download PDF

Info

Publication number
KR19990060636A
KR19990060636A KR1019970080878A KR19970080878A KR19990060636A KR 19990060636 A KR19990060636 A KR 19990060636A KR 1019970080878 A KR1019970080878 A KR 1019970080878A KR 19970080878 A KR19970080878 A KR 19970080878A KR 19990060636 A KR19990060636 A KR 19990060636A
Authority
KR
South Korea
Prior art keywords
message
processing
thread
state
exchange
Prior art date
Application number
KR1019970080878A
Other languages
Korean (ko)
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 KR1019970080878A priority Critical patent/KR19990060636A/en
Publication of KR19990060636A publication Critical patent/KR19990060636A/en

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

교환기의 상태 관리 방법이, 티씨에이피의 메인 쓰레드가 호처리부 및 아이피씨 서버를 폴링하여 메세지 유무를 판단하며 메세지가 있을 시 해당 메세지를 처리하고 통신 경로의 이상 유무를 검사하여 경로를 형성하는 과정과, 티씨에이피가 프로세서 상태 처리 메세지 발생시 쓰레드를 생성하며, 생성 쓰레드가 호처리부 및 아이피씨 서버와 통신 경로를 연결하고, 메세지 형태를 판별하여 해당 기능을 호출하여 처리하고 메세지가 없으면 대기하는 과정으로 이루어진다.The state management method of the exchange includes a process in which the main thread of the TPC polls the call processing unit and the IP server to determine whether there is a message, processes the message when there is a message, and checks whether there is an abnormality in the communication path and forms a path. The TPC creates a thread when a processor status processing message occurs, and the generating thread connects the communication path with the call processor and the IP server, determines the message type, calls the corresponding function, processes the message, and waits if there is no message. .

Description

교환기의 상태 관리 방법How to manage the state of the exchange

본 발명은 교환기의 상태 관리 방법에 관한 것으로, 특히 프로토콜 처리와 상태 처리부를 다른 쓰레드에서 처리하여 프로토콜 처리 능력을 향상시킬 수 있는 방법에 관한 것이다.The present invention relates to a state management method of an exchange, and more particularly, to a method capable of improving protocol processing capability by processing protocol processing and state processing units in different threads.

도 1은 종래의 교환기에서 프로토콜 기능을 처리하는 구성을 도시하고 있다.1 shows a configuration for processing protocol functions in a conventional exchange.

상기 도 1을 참조하면, 교환기 시스템에서 AIN 기능 중 SSF 기능을 담당하는 AIP(Advanced Intelligent Processor)에는 지능망 프로토콜 처리를 위하여 TCAP115가 실장된다. 상기 TCAP115는 상위 프로세스 관리부와 UNIX 도메인 소켓(domain socket)을 이용하여 상태 메세지를 전달받고, 이에 따라 메세지의 전송 여부 등을 결정한다.Referring to FIG. 1, a TCAP115 is mounted in an Advanced Intelligent Processor (AIP) that is responsible for SSF function among AIN functions in an exchange system for intelligent network protocol processing. The TCAP115 receives a status message by using an upper process manager and a UNIX domain socket, and thus determines whether to transmit the message.

상기 TCAP115를 실장하는 가장 큰 목적은 지능 망 프로토콜 INAP을 처리하기 위한 것이다. 종래에는 상기 도 1에 도시된 바와 같이 상위 프로토콜에 관련된 호처리부(call handling process)111로 출력되는 메세지와, 프로세스 상태 관리를 담당하는 다른 프로세스에서의 상태 관련 메세지, 그리고 IPC 서버(Inter Processor Communication Server)117fh 부터의 신호(signal)를 단일 쓰레드(thread)에서 폴링(polling)하는 구조로 이루어진다.The biggest purpose of implementing the TCAP115 is to process the intelligent network protocol INAP. Conventionally, as shown in FIG. 1, a message output to a call handling process 111 related to a higher protocol, a status related message from another process in charge of process state management, and an IPC server (Inter Processor Communication Server) It consists of polling a signal from 117fh in a single thread.

그러나 상기와 같은 상태 관리 구조는 매번 각각의 통신점을 폴링하여 메세지의 존재 여부를 결정한 후 처리하여야 하며, 또한 지능망 서비스와 직접적으로 관련이 없는 상태 관리부113의 메세지를 처리하는 동안 지능망 프로토콜 처리에 지연을 야기하는 문제점이 있었다.However, such a state management structure should poll each communication point every time to determine the existence of a message and process it, and also delay the processing of the intelligent network protocol while processing the message of the state management unit 113 which is not directly related to the intelligent network service. There was a problem causing.

따라서 본 발명의 목적은 교환기에서 메세지 처리시 프로세스 상태를 위한 쓰레드를 생성하여 상태 관련 메세지 처리를 전담하고, 메인 쓰레드에서 지능망 프로토콜 처리를 전담하여 프로토콜 처리 능력을 향상시킬 수 있는 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for creating a thread for a process state when processing a message in an exchange, and dedicated to processing a state-related message, and for enhancing a protocol processing capability by being dedicated to processing an intelligent network protocol in a main thread.

상기 목적을 달성하기 위한 본 발명의 실시예에 따른 교환기의 상태 관리 방법이, 티씨에이피의 메인 쓰레드가 호처리부 및 아이피씨 서버를 폴링하여 메세지 유무를 판단하며 메세지가 있을 시 해당 메세지를 처리하고 통신 경로의 이상 유무를 검사하여 경로를 형성하는 과정과,상기 티씨에이피가 프로세서 상태 처리 메세지 발생시 쓰레드를 생성하며, 상기 생성 쓰레드가 상기 호처리부 및 아이피씨 서버와 통신 경로를 연결하고, 메세지 형태를 판별하여 해당 기능을 호출하여 처리하고 메세지가 없으면 대기하는 과정으로 이루어짐을 특징으로 한다.In the state management method of the exchange according to an embodiment of the present invention for achieving the above object, the main thread of the TPC polls the call processing unit and the IP server to determine the presence of a message, and if there is a message to process the corresponding message and communication Forming a path by checking a path for abnormality, and generating a thread when the TPC generates a processor state processing message, and the generating thread connects a communication path with the call processor and the IP server to determine a message type. Call the function to process and wait if there is no message.

도 1은 종래의 교환기에서 상태 관리를 처리하는 구성을 도시하는 도면1 is a diagram showing a configuration for processing state management in a conventional exchange

도 2는 본 발명의 실시예에 따라 교환기의 상태 관리를 처리하는 구성을 도시하는 도면2 is a diagram illustrating a configuration for processing state management of an exchange according to an embodiment of the present invention.

본 발명의 실시예에 따르면, 교환기에서 SSF 기능을 담당하는 AIP에 실장된 TCAP는 지능망 프로토콜을 지원하고, 또한 상위 관리 프로세스와의 소켓 통신을 통하여 상태 관리를 수행한다. 따라서 본 발명의 실시예에 따른 프로토콜 및 상태 처리 방법은 프로토콜 처리와 상태 처리를 다른 쓰레드에서 처리하도록 변경하여 프로토콜 처리 능력을 향상시킨다.According to an embodiment of the present invention, the TCAP mounted in the AIP in charge of the SSF function in the exchange supports the intelligent network protocol and also performs state management through socket communication with a higher management process. Therefore, the protocol and state processing method according to the embodiment of the present invention improves protocol processing capability by changing protocol processing and state processing to be processed by another thread.

도 2는 본 발명의 실시예에 따른 교환기의 프로토콜 및 상태 관리를 수행하는 구조를 도시하는 도면으로, TCAP226은 메인 쓰레드(main thread)와 프로세스 상태 관련 메세지 처리를 위한 쓰레드가 존재한다. 상기 TCAP226의 메인 쓰레드는 지능망 프로토콜에 관련된 메세지 처리를 전담한다. 즉, 상기 메인 쓰레드는 상위 어플리케이션으로 부터의 TC 메세지와 IPC 서버228로 부터의 N-UNITDATA 메세지 및 상태 관련 메세지 처리를 수행한다. 그리고 상기 TCAP226에서 상태 관련 메세지 처리를 위한 쓰레드는 상위 프로세스 상태 처리부224와 연동하여 TCAP226이 전체적인 시스템 상태를 알 수 있도록 한다.FIG. 2 is a diagram illustrating a structure for performing protocol and state management of an exchange according to an embodiment of the present invention. In the TCAP226, a main thread and a thread for processing a process state related message exist. The main thread of the TCAP226 is dedicated to message processing related to the intelligent network protocol. That is, the main thread processes TC messages from the upper application, N-UNITDATA messages from the IPC server 228, and status related messages. In addition, the thread for processing a state-related message in the TCAP226 interoperates with the upper process state processing unit 224 so that the TCAP226 knows the overall system state.

따라서 상기 도 2에 도시된 바와 같이 TCAP226의 메인 쓰레드는 상기 호처리부222 및 IPC 서버228에서 전송되는 메세지들을 처리하여 지능망 프로토콜에 관련된 메세지 처리만을 전담하며, 상태 처리 쓰레드는 프로세스 상태 처리부224에서 출력되는 메세지를 처리하여 전체적인 교환기 시스템의 상태를 알 수 있도록 한다.Accordingly, as shown in FIG. 2, the main thread of the TCAP226 processes messages transmitted from the call processing unit 222 and the IPC server 228 only to process messages related to the intelligent network protocol, and the state processing thread is output from the process state processing unit 224. Process the message so that you know the status of the entire exchange system.

상기 도 2를 참조하면, 본 발명의 실시예에 따르면, 상기 TCAP226은 프로토콜 처리를 위한 메인 쓰레드와, 프로세스 상태 관련 메세지 처리를 위한 쓰레드(상태처리 서브 쓰레드라 칭한다)로 구성되어 있다. 상기 생성된 상태처리 쓰레드는 프로세스 상태 처리부224와 UNIX 도메인 소켓을 이용하여 상태 관련 메세지 처리를 전담하도록 구성되어 있으며, 이런 상태 처리 메세지를 위한 쓰레드의 분리는 메인 쓰레드가 TCAP226의 고유 업무인 지능망 프로토콜 처리 능력을 증진한다. 상기 메인 쓰레드는 호처리부222의 폴링, IPC 서버228의 폴링 기능을 수행하며, 상태처리 쓰레드는 쓰레드를 생성하여 처리한다.Referring to FIG. 2, according to an embodiment of the present invention, the TCAP226 is composed of a main thread for protocol processing and a thread for processing a process status related message (called a status processing sub thread). The created state processing thread is configured to handle state-related message processing by using the process state processing unit 224 and UNIX domain sockets, and the separation of threads for such state processing messages is performed by the main thread as an intelligent task of TCAP226. Improve your skills. The main thread performs the polling function of the call processor 222 and the polling function of the IPC server 228. The state processing thread creates and processes a thread.

상기 TCAP116의 프로세스가 시작되면, 상기 TCAP226이 상대하는 프로세스와의 통신을 위한 통신 경로를 연결한다. 여기서 상기 IPC 서버228과는 상기 IPC 서버228에서 제공하는 라이브러리(library)를 이용하여 통신 경로를 연결하고, 호 처리부222와 프로세스 상태처리부224와는 UNIX 도메인 소켓을 이용한다. 이런 통신 경로의 연결 순서는 중요하지 않으므로, 먼저 초기화하는 과정에서 쓰레드를 생성한다. thr_create(NULL,NULL,(void*(*)(void *)HBTThread,arg, THR_BOUND,tid)이렇게 프로세스 상태 메세지 처리를 위한 HBThread를 생성한 후, 지능망 프로토콜 처리부와 IPC서버의 통신 경로를 연결한다.When the process of the TCAP116 is started, the TCAP226 connects a communication path for communication with the corresponding process. Here, the IPC server 228 is connected to the communication path using a library provided by the IPC server 228, and the call processor 222 and the process state processor 224 use a UNIX domain socket. The order in which these communication paths are connected is not important, so we first create a thread during initialization. thr_create (NULL, NULL, (void * (*) (void *) HBTThread, arg, THR_BOUND, tid) After creating an HBThread for processing process status messages, connect the communication path between the intelligent network protocol processor and the IPC server.

상기 메인 쓰레드에서의 처리 구성은 다음과 수행된다.The processing configuration in the main thread is performed as follows.

read message from 지능망 프로토콜 처리부read message from intelligent network protocol processor

if message exitif message exit

processing messageprocessing message

elseelse

통신 경로의 이상 유무 검사Check for communication path abnormality

read message from IPC 서버read message from IPC server

if message existif message exist

processing messagprocessing messag

elseelse

통신 경로의 이상 유무 검사Check for communication path abnormality

그리고 상태 처리를 위한 HBThread는 다음과 같이 동작한다.And HBThread for state processing works as follows.

void HBThread(void* arg)void HBThread (void * arg)

{{

프로세스 상태 관리부와의 통신 경로를 연결(open_HeartBeat());Connecting a communication path with the process state management unit (open_HeartBeat ());

for(;;) 영속적인 thread를 구성for (;;) construct a persistent thread

read message from 프로세스 상태 관리부read message from process status management

if message is not existif message is not exist

sleep ; 프로세스의 과도한 CPU 점유를 막기 위하여sleep; To prevent excessive CPU occupancy of a process

else if 통신 path brokenelse if communication path broken

close file descriptorclose file descriptor

re-open 통신 path(open_HeartBeat());re-open communication path (open_HeartBeat ());

else /* 메세지 존재하는 경우 */else / * if the message exists * /

메세지 type을 판별Determine message type

메세지 type에 일치하는 function을 호출하여 메인 쓰레드가 상태를 인식할 수 있도록 updateUpdate the main thread to recognize the status by calling a function that matches the message type

상기와 같이 본 발명의 실시예에서는 TCAP226이 메세지를 프로세스 상태 처리를 위한 쓰레드를 생성하여 상태 관련 메세지 처리를 전담하고, 메인 쓰레드가 지능망 프로토콜 처리를 전담하여 프로토콜 처리 능력을 향상시킬 수 있다.As described above, in the embodiment of the present invention, the TCAP226 creates a thread for processing a process state, and is dedicated to processing status-related messages, and the main thread is dedicated to processing an intelligent network protocol to improve protocol processing capability.

상술한 바와 같이 본 발명의 실시예에 따르면, 지능망 프로토콜 처리를 위한 쓰레드와 프로세스 상태 관련 메세지 처리를 위한 쓰레드를 분리하여 지능망 프로토콜 처리 능력을 향상시켰으며, 상태 관련 처리부의 경로에 이상이 있을 경우라도 지능망 프로토콜 처리에 장애를 주지 않으므로써 안정적인 지능망 프로토콜 처리를 통한 안정적인 지능망 서비스를 지원할 수 있는 이점이 있다.As described above, according to the embodiment of the present invention, the intelligent network protocol processing capability is improved by separating the thread for processing the intelligent network protocol and the thread for processing the process state related message, even when there is an error in the path of the state related processing unit. There is an advantage that can support stable intelligent network service through stable intelligent network protocol processing without impeding the processing of intelligent network protocol.

Claims (1)

교환기의 상태 관리 방법에 있어서,In the state management method of the exchange, 티씨에이피의 메인 쓰레드가 호처리부 및 아이피씨 서버를 폴링하여 메세지 유무를 판단하며 메세지가 있을 시 해당 메세지를 처리하고 통신 경로의 이상 유무를 검사하여 경로를 형성하는 과정과,The process of the main thread of the TPC polls the call processing unit and the IP server to determine the presence of a message, if there is a message to process the message, and checks the communication path for abnormality to form a path, 티씨에이피가 프로세서 상태 처리 메세지 발생시 쓰레드를 생성하며, 상기 생성 쓰레드가 상기 호처리부 및 아이피씨 서버와 통신 경로를 연결하고, 메세지 형태를 판별하여 해당 기능을 호출하여 처리하고 메세지가 없으면 대기하는 과정으로 이루어짐을 특징으로 하는 교환기의 상태 관리 방법.TPC generates a thread when a processor status processing message occurs, and the generating thread connects a communication path with the call processor and the IP server, determines a message type, calls a corresponding function to process the message, and waits if there is no message. Method of status management of the exchange, characterized in that made.
KR1019970080878A 1997-12-31 1997-12-31 How to manage state of exchange KR19990060636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970080878A KR19990060636A (en) 1997-12-31 1997-12-31 How to manage state of exchange

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970080878A KR19990060636A (en) 1997-12-31 1997-12-31 How to manage state of exchange

Publications (1)

Publication Number Publication Date
KR19990060636A true KR19990060636A (en) 1999-07-26

Family

ID=66180763

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970080878A KR19990060636A (en) 1997-12-31 1997-12-31 How to manage state of exchange

Country Status (1)

Country Link
KR (1) KR19990060636A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100396031B1 (en) * 2000-12-30 2003-08-27 주식회사 하이닉스반도체 Method for diagnostic automatic in mobile switch center
KR100617306B1 (en) * 2004-12-20 2006-08-30 한국전자통신연구원 Apparatus for Duplication Control Using Base Interface in ATCA Platform and Method Therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100396031B1 (en) * 2000-12-30 2003-08-27 주식회사 하이닉스반도체 Method for diagnostic automatic in mobile switch center
KR100617306B1 (en) * 2004-12-20 2006-08-30 한국전자통신연구원 Apparatus for Duplication Control Using Base Interface in ATCA Platform and Method Therefor

Similar Documents

Publication Publication Date Title
USRE43361E1 (en) Telecommunications system having separate switch intelligence and switch fabric
US20020064267A1 (en) Telecommunications portal capable of interpreting messages from an external device
BG100473A (en) Telecommunication switchgear with programmable mains protocols and communication services
AU725747B2 (en) Intelligent network with distributed service control function
KR20000069647A (en) Internet-ss7 gateway
JPH0563821B2 (en)
WO2006110793A1 (en) Dynamic loading for signaling variants
US6477586B1 (en) Remote procedure calls in distributed systems
JPH04229798A (en) Method of processing call
US6341162B1 (en) Telecommunications intelligent network
US20040166855A1 (en) Method for iniative setting up the call by the server control point in the mobile intelligent network
KR100296257B1 (en) Method and apparatus for controlling distributed connection in telecommunication networks
KR19990060636A (en) How to manage state of exchange
EP0873029A1 (en) An SCP interface
EP1086594B1 (en) Programming call-processing application in a switching system
JPH0715527A (en) Telecommunication switch control
US6993124B2 (en) Control interface for linking a computer supported telephony application with a PBX switch utilizing CSTA protocols
US6151317A (en) Control type or service independent building block
JP2003256223A (en) Service control method and device in open api system
WO2012126212A1 (en) Communication apparatus and method for interface layer of radio frequency identification device
JPH11316726A (en) Terminal connection control method/system in communication processing system constituted of plural processes
US20030065701A1 (en) Multi-process web server architecture and method, apparatus and system capable of simultaneously handling both an unlimited number of connections and more than one request at a time
Maruyama Object-oriented switching software technology
CN111711620B (en) Method, device, equipment and storage medium for realizing bidirectional communication between applications
CA2212388C (en) Network communication services method and apparatus

Legal Events

Date Code Title Description
WITN Application deemed withdrawn, e.g. because no request for examination was filed or no examination fee was paid