KR0161125B1 - Apparatus for detecting bad message in the switching system and method - Google Patents

Apparatus for detecting bad message in the switching system and method Download PDF

Info

Publication number
KR0161125B1
KR0161125B1 KR1019950020881A KR19950020881A KR0161125B1 KR 0161125 B1 KR0161125 B1 KR 0161125B1 KR 1019950020881 A KR1019950020881 A KR 1019950020881A KR 19950020881 A KR19950020881 A KR 19950020881A KR 0161125 B1 KR0161125 B1 KR 0161125B1
Authority
KR
South Korea
Prior art keywords
message
checksum value
read
damaged
disk
Prior art date
Application number
KR1019950020881A
Other languages
Korean (ko)
Other versions
KR970007626A (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 KR1019950020881A priority Critical patent/KR0161125B1/en
Publication of KR970007626A publication Critical patent/KR970007626A/en
Application granted granted Critical
Publication of KR0161125B1 publication Critical patent/KR0161125B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/26Arrangements for supervision, monitoring or testing with means for applying test signals or for measuring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/18Electrical details
    • H04Q1/20Testing circuits or apparatus; Circuits or apparatus for detecting, indicating, or signalling faults or troubles

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Detection And Correction Of Errors (AREA)
  • Debugging And Monitoring (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

본 발명은 전전자 교환기에 있어서 디스크와 마그네틱 테이프를 이용하여 각 가입자별로 발생되는 메세지를 수록하도록 처리할 때, 디스크에서 마그네틱 테이프로 전송되기 전에 손상된 메세지를 검출하기 위한 장치 및 방법을 제공하기 위한 것으로, 본 발명에 따른 장치는 각 메세지 발생장치로부터 일정단위로 전송되는 메세지가 수신되면, 종류별로 정해진 량에 도달할 때까지 콘테이너에 저장시킬 때, 정해진 량의 최종단에 저장된 메세지의 체크섬값이 함께 저장될 수 있도록 제어하고, 디스크에 저장된 데이타량이 마그네틱 테이프로 1회에 전송될 수 있는 량만큼 저장되었을 때, 디스크로부터 콘테이너에 설정되어 있던 정해진 량과 동일한 량의 메세지가 독출되도록 제어하여 손상여부를 검출할 수 있도록 제어하는 제어부; 제어부에 의해 제어되어 디스크로부터 소정량의 메세지가 독출되면, 독출된 메세지에 포함되어 있는 체크섬값을 제외한 메세지들의 체크섬값을 계산하고, 계산된 체크섬값과 독출된 체크섬값을 비교한 결과를 제어부로 전송하여 현재 독출된 메세지에 손상이 존재하는 지를 파악할 수 있도록 하는 체크섬값 계산 및 비교부; 제어부로부터 전송되는 신호에 의해 손상된 메세지에 관련된 정보를 출력할 수 있는 터미널을 포함하는 것을 특징으로 한다. 따라서 손상된 메세지가 마그네틱 테이프에 그대로 수록되는 것을 방지할 수 있고, 손상된 메세지가 존재하는 경우에 손상된 메세지에 대한 내역을 운용자에게 통보하여 신속한 조치를 취할 수 있다.The present invention is to provide an apparatus and method for detecting a damaged message before the transfer from the disk to the magnetic tape when processing to record the message generated for each subscriber by using the disk and the magnetic tape in the electronic switchboard When the device according to the present invention receives a message transmitted in a predetermined unit from each message generating device, when the message is stored in a container until a predetermined amount is reached for each type, the checksum value of the message stored at the end of the predetermined amount is included. When the amount of data stored on the disk is stored as much as the amount of data that can be transferred to the magnetic tape at once, it controls whether the message is read from the disk equal to the fixed amount set in the container. A control unit for controlling the detection; When a predetermined amount of messages are read from the disk by the control unit, a checksum value of the messages except for the checksum value included in the read message is calculated, and the result of comparing the calculated checksum value with the read checksum value is transferred to the control unit. A checksum calculation and comparison unit for determining whether there is corruption in a message currently read by transmitting; And a terminal capable of outputting information related to a message damaged by a signal transmitted from the control unit. Therefore, the damaged message can be prevented from being recorded on the magnetic tape as it is, and if the damaged message is present, the operator can be notified of the details of the damaged message and prompt action can be taken.

Description

전전자 교환기에 있어서 손상된 메세지 검출장치 및 방법Damaged Message Detection Apparatus and Method in Electronic Switching System

제1도는 종래의 전전자 교환기에 구비되는 메세지 발생장치와 메세지 수록처리장치의 블럭도.1 is a block diagram of a message generating device and a message containing processing device provided in a conventional all-electronic exchange.

제2도는 본 발명에 따른 손상된 메세지 검출장치를 구비한 전전자 교환기의 블럭도.2 is a block diagram of an electronic switch having a damaged message detection apparatus according to the present invention.

제3a,b도는 본 발명에 따른 손상된 메세지 검출방법의 흐름도.3a, b are flowcharts of a method for detecting a corrupted message according to the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

100a∼100n : 메세지 발생장치 200 : 메세지 수록처리장치100a to 100n: message generating device 200: message recording processing device

201 : 제어부 202 : 콘테이너201: control unit 202: container

203 : 메모리 큐 204 : 디스크203: memory queue 204: disk

206 : 마그네틱 테이프(MT) 205 : 체크섬값 계산 및 비교부206: magnetic tape (MT) 205: checksum value calculation and comparison unit

본 발명은 전전자 교환기에 있어서 메세지의 신뢰성 유지에 관한 것으로서, 특히 발생된 메세지가 보조기억장치인 하드디스크에 저장되어 있는 동안에 손상된 메세지를 검출할 수 있는 손상된 메세지 검출장치 및 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to maintaining the reliability of messages in electronic switchboards, and more particularly, to a damaged message detection device and method capable of detecting a damaged message while a generated message is stored in a hard disk, which is an auxiliary memory device.

종래의 전전기 교환기는 가입자당 발생되는 메세지(예를 들어 과금메세지를 들수 있다.)를 수록하기 위하여, 제1도에 도시된 바와 같이 메세지발생부(101a∼101n)와 메세지수집부(102a∼102n)로 구성된 메세지 발생장치(100a∼100n)를 가입자당 할당하고, 각 가입자로부터 발생된 메세지가 해당되는 메세지 발생장치(100a∼100n)에 일정량 수집될 때마다 수집된 메세지를 메세지 수록처리장치(120)로 전송한다.In the conventional electrical switchboard, the message generators 101a through 101n and the message collectors 102a through 1 as shown in FIG. 1 are used to store messages generated per subscriber (for example, billing messages). 102n) is assigned to each of the message generating apparatuses 100a to 100n per subscriber, and each time a message generated from each subscriber is collected by a certain amount to the corresponding message generating apparatuses 100a to 100n, the collected messages are stored. 120).

메세지 수록처리장치(120)는 제어부(121), 콘테이너(122), 메모리 큐(123), 디스크(124) 및 마그네틱 테이프(125, 이하 MT라 함)로 구성되어 n개의 메세지 발생장치(100a∼100n)로부터 일정 단위로 각각 전송되는 메세지에 대한 수록처리를 한다. 즉, n개의 메세지 발생장치(100a∼100n)로부터 일정 단위의 메세지가 각각 전송되면 제어부(121)로 전송된다. 제어부(121)는 메세지 발생장치(100a∼100n)로부터 전송된 메세지를 종류별로 구분하여 콘테이너(122)로 전송한다. 콘테이너(122)는 메세지 종류별로 정해진 수록량(예를 들어 1K바이트)만큼 수록하고, 정해진 수록량만큼 수록된 메세지는 메모리 큐(123)로 전송한다. 메모리 큐(123)는 콘테이너(122)로부터 전송된 일정량의 데이타를 일시적으로 저장하다고 있다가 디스크(124)가 아무런 작업도 수행하지 않을 때(또는 아이들한 상태일 때) 저장하고 있던 메세지를 디스크(124)로 전송하여 수록되도록 한다. 디스크(124)는 수록된 메세지가 1회에 MT(125)로 전송할 수 있는 량에 도달하면, 제어부(121)에 의해 제어되어 수록된 데이타를 MT(125)로 전송한다. 이와 같은 메세지 수록처리는 제어부(121)에 의해 총괄적으로 제어된다. 메세지가 수록된 MT(125)는 전전자 교환기에서 탈장되어 전산소로 옮겨져 분석된다.The message recording processing device 120 is composed of a control unit 121, a container 122, a memory queue 123, a disk 124, and a magnetic tape 125 (hereinafter referred to as MT). 100 n) is recorded for each message transmitted in a predetermined unit. That is, when a message of a predetermined unit is transmitted from the n message generating apparatuses 100a to 100n, the message is transmitted to the control unit 121. The control unit 121 classifies the messages transmitted from the message generating apparatuses 100a to 100n by type and transmits them to the container 122. The container 122 stores a predetermined amount (for example, 1K byte) for each message type, and transmits a message recorded for the predetermined amount to the memory queue 123. The memory queue 123 temporarily stores a certain amount of data transmitted from the container 122, and then stores a message stored in the disk 124 when the disk 124 performs no operation (or when idle). 124) to be stored. The disk 124 transmits the recorded data controlled by the control unit 121 to the MT 125 when the recorded message reaches an amount that can be transmitted to the MT 125 at one time. Such message recording processing is collectively controlled by the control unit 121. The MT 125 containing the message is hermetically removed from the electronic exchanger and transferred to the oxygen storage for analysis.

그러나 기존의 전전자 교환기는 수집된 메세지를 MT(125)에 수록하기까지 수록된 메세지에 대한 검증작업을 전혀 수행하지 않고 있어, 메세지가 디스크(124)에 저장되어 있는 동안에 시스템 불안정 등을 원인으로 하여 손상되는 경우에 손상된 메세지가 그대로 MT(125)에 수록되어 전산소로 옮겨지게 되는데, 전산소에서는 MT(125)에 존재하는 손상된 메세지에 대해서는 전혀 분석처리를 하지 못하는 실정이다.However, the existing electronic switch does not perform any verification on the stored messages until the collected messages are recorded on the MT 125, and the system is unstable while the messages are stored on the disk 124. In case of damage, the damaged message is stored in the MT 125 as it is, and transferred to the computer, which does not analyze the damaged message existing in the MT 125 at all.

따라서 본 발명은 전전자 교환기에 있어서 디스크에 수록된 메세지가 마그네틱 테이프에 수록되기 전에 손상여부를 검출하여 운용자에게 보고하는 손상된 메세지 검출장치 및 방법을 제공하는데 그 목적이 있다.Accordingly, an object of the present invention is to provide a damaged message detecting apparatus and method for detecting whether a message recorded on a disk is recorded on a magnetic tape and reporting it to an operator.

상기 목적을 달성하기 위하여 본 발명에 따른 장치는, 전전자 교환기에서 가입자당 할당되는 메세지 발생장치로부터 제1소정단위로 메세지가 전송되면, 정해진 량의 메세지를 메모리 큐를 통해 디스크에 저장하고, 디스크에 저장된 메세지를 제2소정단위로 독출하여 마그네틱 테이프에 수록하도록 구성된 메세지 수록처리장치에 있어서, 메세지 종류별로 정해진 량만큼 저장하고, 정해진 량만큼 저장된, 메세지는 메모리 큐로 전송하도록 구성된 콘테이너; 정해진 량의 최종단에 정해진 량에 포함되는 메세지의 체크섬값이 함께 실려 저장될 수 있도록 임의의 메세지 발생장치로부터 제1소정단위로 전송되는 메세지에 대한 콘테이너로의 저장을 제어하고, 디스크에 수록된 메세지가 마그네틱 테이프로 전송되기 전에 디스크에 수록된 메세지에 대한 손상여부를 검출할 수 있도록 제어하는 제어부; 제어부에 의해 제어되어 디스크에 저장되어 있는 메세지를 정해진 량과 동일한 단위로 독출하고, 독출된 메세지중 체크섬값을 제외한 메세지들의 체크섬값을 계산하고, 계산된 체크섬값과 독출된 메세지에 실려 있던 체크섬값이 동일한지를 비교한 결과를 제어부로 전송하여 제어부가 디스크로부터 독출된 메세지에 대한 손상여부를 검출할 수 있도록 하는 체크섬값 계산 및 비교부; 손상된 메세지가 검출됨에 따라 제어부로부터 전송되는 손상된 메세지에 대한 내역을 운용자가 알수 있는 형태로 디스플레이하는 터미널을 포함하는 것을 특징으로 한다.In order to achieve the above object, the apparatus according to the present invention, when a message is transmitted in a first predetermined unit from the message generating apparatus allocated per subscriber in the electronic switchboard, and stores a predetermined amount of messages on the disk through the memory queue, A message recording processing device configured to read a message stored in a second predetermined unit and to record on a magnetic tape, the message recording processing device comprising: a container configured to store a predetermined amount for each message type and store the predetermined amount for a message to a memory queue; In order to store the checksum value of the message included in the predetermined quantity at the end of the predetermined quantity, it is stored in the container for the message transmitted from any message generating device to the first predetermined unit so that it can be stored together. A control unit for controlling whether a message on the disk is damaged before being transmitted to the magnetic tape; Controlled by the control unit, the message stored in the disk is read in the same unit as the predetermined amount, the checksum value of the messages except the checksum value is read out, the calculated checksum value and the checksum value contained in the read message A checksum value calculation and comparison unit which transmits a result of comparing the same to the control unit so that the control unit can detect whether a message read from the disk is damaged or not; And a terminal for displaying the details of the damaged message transmitted from the control unit in a form known to the operator as the damaged message is detected.

상기 목적을 달성하기 위하여 본 발명에 따른 방법은, 전전자 교환기에서 가입자당 할당되는 메세지 발생장치로부터 제1소정단위로 전송되는 메세지를 디스크를 거쳐 마그네틱 테이프에 수록하도록 구성된 메세지 수록처리장치에 있어서, 메세지 발생장치로부터 제1소정단위로 메세지가 전송되면, 메세지 종류별로 제2소정량에 도달할 때까지 저장하는 제1저장단계; 제1저장단계에서 저장된 모든 메세지의 체크섬값을 계산하는 제1체크섬값 계산단계; 제1체크섬값 계산단계에서 계산된 체크섬값이 제1저장단계에서 저장된 메세지의 종단에 실려 저장될 수 있도록 체크섬값에 대한 저장처리를 하는 제2저장단계; 제2저장단계에서 저장된 체크섬값과 제2소정량의 메세지를 디스크가 아이들한 상태일 때 디스크에 수록하는 제1수록단계; 디스크에 수록된 메세지의 량이 마그네틱 테이프로 1번에 전송할 수 있는 량에 도달하지 않으면, 제1저장단계부터 제1수록단계를 반복 수행하는 제1반복수행단계; 디스크에 수록된 메세지의 량이 마그네틱 테이프로 1번에 전송할 수 있는 량에 도달하면, 제1수록단계에서 수록된 단위와 동일한 단위의 데이타를 디스크로부터 독출하는 제1독출단계; 독출된 메세지중 체크섬값에 해당되는 메세지를 제외한 메세지에 대한 체크섬값을 계산하는 제2체크섬값 계산단계; 제2체크섬값 계산단계에서 계산된 체크섬값과 독출된 메세지에 포함되어 있는 체크섬값을 비교하는 단계; 비교단계 수행결과, 독출된 메세지에 포함되어 있던 체크섬값과 제2체크섬값 계산단계에서 계산된 제2체크섬값이 상이하면, 독출된 메세지가 손상된 것으로 인식하여 독출된 메세지의 내역정보와 손상을 알리는 메세지를 출력하는 단계; 비교단계 수행결과, 독출된 메세지에 포함되어 있던 체크섬값과 제2체크섬값이 동일하면, 독출된 메세지가 손상되지 않은 것으로 인식하고, 제1독출단계로 리턴하여 디스크로부터 메세지를 독출하는 제2독출단계; 디스크로부터 마그네틱 테이프로 1회에 전송될 수 있는 모든 메세지에 대한 손상여부를 체크할 때까지 제1독출단계부터 제2독출단계까지 반복 수행하는 제2반복 수행단계; 제2반복 수행단계를 통해 디스크에 수록되어 있는 1회에 전송될 수 있는 모든 메세지에 손상이 존재하지 않는 것으로 판단되면, 손상여부가 체크되었던 모든 메세지를 디스크로부터 마그네틱 테이프로 전송하는 단계를 포함하여 수행되는 것을 특징으로 한다.In order to achieve the above object, the method according to the present invention, in the message recording processing device configured to record a message transmitted to the first predetermined unit from the message generating device allocated per subscriber in the electronic switchboard via a disk on a magnetic tape, A first storing step of storing, when the message is transmitted from the message generating device in a first predetermined unit, until the second predetermined amount is reached for each message type; A first checksum value calculating step of calculating checksum values of all messages stored in the first storing step; A second storing step of storing the checksum value so that the checksum value calculated in the first checksum value calculating step is stored at the end of the message stored in the first storing step; A first recording step of recording the checksum value and the second predetermined amount of messages stored in the second storage step on the disk when the disk is idle; A first repeating step of repeating the first recording step from the first storage step if the amount of messages recorded on the disk does not reach an amount that can be transmitted at once with the magnetic tape; A first reading step of reading data from the disc in units equal to the units recorded in the first recording step when the amount of messages recorded on the disc reaches the amount that can be transmitted at once with the magnetic tape; A second checksum value calculating step of calculating a checksum value of the message except for the message corresponding to the checksum value among the read messages; Comparing the checksum value calculated in the second checksum value calculating step with the checksum value included in the read message; As a result of performing the comparison step, if the checksum value included in the read message and the second checksum value calculated in the second checksum value calculation step are different from each other, the read message is recognized as damaged and informs the history information and the damage of the read message. Outputting a message; As a result of performing the comparing step, if the checksum value and the second checksum value included in the read message are the same, the read message is recognized as intact and the second message is returned to the first read step to read the message from the disk. Reading step; Performing a second repetition step of repeating the first read step to the second read step until all the messages that can be transmitted from the disc to the magnetic tape are checked for damage; If it is determined that the damage does not exist in all the messages that can be transmitted at one time through the second repetition step, transmitting all messages that have been checked for damage from the disk to the magnetic tape. Characterized in that it is carried out.

이하, 첨부도면을 참조하여 본 발명에 따른 실시예의 동작을 상세하게 설명하기로 한다.Hereinafter, with reference to the accompanying drawings will be described in detail the operation of the embodiment according to the present invention.

제2도는 본 발명에 따른 손상된 메세지 검출장치를 구비한 전전자 교환기의 블럭도로서, 제1도에서와 동일한 역할을 하는 메세지 발생장치(100a∼100n), 메세지 발생장치(100a∼100n)로부터 일정 단위로 전송되는 메세지에 대한 손상여부를 검출하면서 수록처리를 하는 메세지 수록처리장치(200), 메세지 수록처리장치(200)로부터 출력되는 메세지를 디스플레이하기 위한 터미널(210)로 구성된다.2 is a block diagram of an electronic switch having a damaged message detecting apparatus according to the present invention, which is fixed from the message generating apparatuses 100a to 100n and the message generating apparatuses 100a to 100n serving as in FIG. The message containing processing device 200 for carrying out the recording process while detecting the damage to the message transmitted in units, and the terminal 210 for displaying the message output from the message containing processing device 200.

특히, 메세지 수록처리장치(200)는 n개의 메세지 발생장치(100a∼100n)로부터 각각 일정 단위로 메세지가 전송되면 제1도에서와 같이 종류별로 구분하여 콘테이너(202)로 전송되도록 처리함과 동시에 본 발명에 따라 디스크(204)에 수록되어 있는 메세지에 대한 손상여부를 검출할 수 있도록 제어하는 제어부(201), 제어부(201)를 통해 전송되는 메세지를 종류별로 정해진 량만큼 저장하는 콘테이너(202), 콘테이너(202)에서 출력되는 데이타를 일시적으로 저장하는 메모리 큐(203), 제어부(201)에 의해 제어되어 메모리 큐(203)로부터 전송되는 메세지를 수록하고 수록된 메세지를 출력하는 디스크(204), 디스크(204)로부터 상기 콘테이너(202)에 정해진 량과 동일한 량만큼의 메세지를 읽어 체크섬값을 계산하고 기저장되어 있던 체크섬값과 비교한 결과를 제어부(201)로 전송하는 체크섬값 계산 및 비교부(205), 디스크(204)로부터 전송하는 메세지를 수록하는 MT(206)로 구성된다.In particular, the message recording processing device 200, if the message is transmitted from the n number of generating devices (100a to 100n) in a predetermined unit, respectively, as shown in FIG. According to the present invention, the control unit 201 controls to detect whether the message contained in the disk 204 is damaged or not, and the container 202 stores a predetermined amount of messages transmitted by the control unit 201 for each type. A memory queue 203 for temporarily storing data output from the container 202, a disk 204 that is controlled by the control unit 201 and stores a message transmitted from the memory queue 203 and outputs the recorded message, The checksum value is read from the disk 204 by the same amount as the predetermined amount in the container 202, and the result of comparing the checksum value with the previously stored checksum value is transferred to the controller 201. Which consists of a checksum calculation and comparison unit (205), MT (206) for recording a message transmitted from the disk 204. The

제3a,b도는 본 발명에 따른 손상된 메세지 검출방법에 대한 흐름도이다.3a and b are flowcharts illustrating a method for detecting a corrupted message according to the present invention.

그러면 제2도와 제3도를 결부시켜 본 발명에 따른 실시예의 동작을 설명하기로 한다. 이하 동작은 설명의 편의를 위하여 한 종류의 메세지를 수록하는 경우에 대해서 한정하여 설명하기로 한다.Next, the operation of the embodiment according to the present invention will be described with reference to FIGS. 2 and 3. Hereinafter, the operation will be limited to the case where one type of message is recorded for convenience of description.

우선, 각 가입자별로 할당되어 있는 메세지 발생장치들(100a∼100n)로부터 일정 단위의 메세지가 인가되면, 메세지 수록처리장치(200)는 제어부(201)로 전송한다. 제어부(201)는 제301단계에서 변수 i, j, k를 0으로 셋팅한 후, 제302단계에서 임의의 메세지 발생장치(100)로부터 메세지가 수신되면, 제303단계로 진행되어 변수 i의 값을 1증가시킨다. 그 다음 제304단계로 진행되어 1증가된 i값을 콘테이너(202)에 종류별로 수록할 수 있는 데이타량의 최대치 M값과 비교한다. 예를 들어 콘테이너(202)에 종류별로 저장될 수 있는 데이타량이 1K바이트인 경우에, 상술한 최대치 M은 최종단의 4바이트를 뺀(1024-4) 1020바이트가 된다.First, when a message of a predetermined unit is applied from the message generating apparatuses 100a to 100n allocated to each subscriber, the message storing processing apparatus 200 transmits to the control unit 201. The controller 201 sets the variables i, j, k to 0 in step 301, and when a message is received from any message generating apparatus 100 in step 302, the controller 201 proceeds to step 303 to determine the value of the variable i. Increase by 1. The flow proceeds to step 304 and compares the increased i value with the maximum value M of the amount of data that can be stored in the container 202 for each type. For example, in the case where the amount of data that can be stored in the container 202 for each kind is 1K bytes, the above-mentioned maximum value M is 1020 bytes minus 4 bytes of the last stage (1024-4).

제304단계의 비교결과, 증가된 i값이 M보다 작으면 제어부(201)는 제305단계로 진행되어 수신한 메세지를 콘테이너(202)의 해당 영역에 저장한 뒤, 제302단계로 진행되어 해당 종류의 다음 메세지를 수신한다. 그러나 제304단계의 비교결과 증가된 i값이 M보다 크거나 같으면(i≥M), 제306단계로 진행되어 i를 0으로 세팅한 다음 제307단계로 진행되어 제어부(201)는 콘테이너(202)에 수록된 M량의 메세지를 독출하여 체크섬값을 계산한다. 그리고 제308단계로 진행되어 M량의 메세지가 저장된 최종단의 4바이트영역에 계산된 체크섬값이 실릴 수 있도록 콘테이너(202)에 저장시킨다. 예를 들어 상술한 M이 1020바이트인 경우에 1021바이트부터 1024바이트영역에 해당되는 1020바이트에 대해 계산된 체크섬값이 저장되도록 제어부(201)는 계산된 체크섬값을 콘테이너(202)로 전송한다.As a result of the comparison in step 304, if the increased i value is less than M, the controller 201 proceeds to step 305 and stores the received message in the corresponding area of the container 202, and then proceeds to step 302. Receive the next message of its kind. However, if the increased i value is greater than or equal to M (i≥M) as a result of the comparison in step 304, the control unit 201 proceeds to step 306, sets i to 0, and then proceeds to step 307. The checksum value is calculated by reading the message of M amount contained in the). In step 308, the checksum value is stored in the container 202 so that the calculated checksum value can be loaded in the 4-byte area of the final stage where the message of M amount is stored. For example, when M is 1020 bytes, the control unit 201 transmits the calculated checksum value to the container 202 so that the checksum value calculated for the 1020 byte corresponding to the 1021 byte to 1024 byte area is stored.

그 다음 제309단계로 진행되어 최종단에 체크섬값이 실려 있는 정해진 량의 메세지(M바이트+4바이트)를 콘테이너(202)로부터 독출하여 메모리 큐(203)에 저장시킨다. 그리고 제어부(201)는 제310단계로 진행되어 디스크(204)가 아무런 작업도 수행하지 않으면(또는 아이들한 상태이면), 메모리 큐(203)에 저장되어 있는 메세지를 디스크(204)에 수록한 다음 제311단계로 진행되어 j값을 1증가시킨다.In operation 309, a predetermined amount of messages (M bytes + 4 bytes) containing a checksum value at the final stage is read from the container 202 and stored in the memory queue 203. If the disk 204 does not perform any operation (or is idle), the controller 201 records a message stored in the memory queue 203 on the disk 204. In step 311, j is increased by one.

그리고 제어부(201)는 제312단계로 진행되어 증가된 j값을 MT(206)에 1회 수록할 수 있는 최대치 N과 비교하고, 비교결과 증가된 j가 N보다 작으면, 제302단계로 진행되어 상술한 과정을 반복 수행한다. 그러나 비교결과 증가된 j가 N보다 크거나 같으면(j≥N), 제어부(201)는 제313단계로 진행되어 디스크(204)에 저장되어 있는 메세지를 콘테이너(122)에 종류별로 저장될 수 있는 최대 저장용량과 동일한 용량만큼 읽어 체크섬값 계산 및 비교부(205)로 전송되도록 제어한다. 그리고 제314단계로 진행되어 체크섬값 계산 및 비교부(205)를 제어하여 디스크(204)로부터 읽혀진 메세지에 대한 체크섬값을 계산하도록 한다. 즉, 읽혀진 메세지가 상술한 예에서와 같이 1K바이트인 경우에 1020바이트까지가 실제 메세지에 해당되므로 체크섬값 계산 및 비교부(205)는 1020바이트까지 디스크(204)로부터 읽혀진 메세지에 대한 체크섬값을 계산한다. 그리고 계산된 값과 1021바이트부터 1024바이트사이에 실려 있는 해당되는 체크섬값을 비교하고 비교결과를 제어부(201)로 전송한다.The controller 201 proceeds to step 312 and compares the increased j value with the maximum value N that can be stored in the MT 206 once. If the increased j is smaller than N, the controller proceeds to step 302. The above process is repeated. However, if the increased j is greater than or equal to N (j≥N), the control unit 201 proceeds to step 313 to store messages stored in the disk 204 for each type in the container 122. The checksum value is calculated and compared to the maximum storage capacity and transmitted to the comparison unit 205. In operation 314, the checksum value calculating and comparing unit 205 is controlled to calculate a checksum value for the message read from the disk 204. That is, when the read message is 1K bytes as in the above example, up to 1020 bytes correspond to the actual message, so the checksum value calculating and comparing unit 205 calculates the checksum value for the message read from the disk 204 up to 1020 bytes. Calculate The calculated value is compared with a corresponding checksum value contained between 1021 bytes and 1024 bytes, and the comparison result is transmitted to the controller 201.

제어부(201)는 체크섬값 계산 및 비교부(205)로부터 전송된 비교결과가 계산된 체크섬값과 사전에 저장되어 있던 체크섬값이 서로 상이한 것으로 전송되면, 디스크(204)에 수록된 해당되는 1K바이트의 메세지가 손상된 것으로 인식하고, 제317단계로 진행된다. 제317단계에서 제어부(201)는 이전에 손상된 메세지가 발생된 시간과 현재 손상된 메세지가 발생된 시간을 고려하여 현재 손상된 것으로 인식된 1K바이트의 메세지가 24시간이내에 발생한 것인지를 판단한다. 이는 손상된 메세지가 자주 발생하는지 여부를 판단하기 위한 것이다.The control unit 201 calculates a checksum value and compares the checksum value calculated from the comparison unit 205 with the checksum value previously stored and the checksum value stored in advance. The message is recognized as damaged, and the flow proceeds to step 317. In step 317, the controller 201 determines whether the 1K byte message recognized as being damaged is generated within 24 hours in consideration of the time when the previously damaged message is generated and the time when the currently damaged message is generated. This is to determine whether a corrupted message frequently occurs.

제317단계의 판단결과, 24시간이내에 발생한 것으로 판단되면 제어부(201)는 제318단계로 진행되어 터미널(210)를 통해 알람을 발생함과 동시에 손상된 메세지가 저장된 디스크(204)의 위치, 디스크(204)에 저장된 체크섬값 및 1020바이트에 대해 계산된 체크섬값 등을 출력하고 제319단계로 진행되어 손상된 메세지가 발생한 시간을 저장한다.As a result of the determination in step 317, if it is determined that the error has occurred within 24 hours, the control unit 201 proceeds to step 318 and generates an alarm through the terminal 210 and at the same time the position of the disk 204 where the damaged message is stored, the disk ( The checksum value stored in step 204 and the checksum value calculated for 1020 bytes are output, and the flow proceeds to step 319 to store the time at which the corrupted message occurred.

그 다음 제어부(201)는 제320단계로 진행되어 변수 K값을 1증가시키고, 제321단계로 진행되어 증가된 K값과 상술한 제312단계에서 사용된 N값을 비교한다. 비교결과, 증가된 K값이 N보다 작으면 디스크(204)에서 MT(206)에 1회 수록될 수 있는 메세지량중 체크섬값이 체크되지 않은 메세지가 아직 존재하는 경우로 제313단계로 진행되어 상술한 1K바이트단위의 체크값 체크과정을 반복 수행한다.The control unit 201 proceeds to step 320 and increases the variable K value by one, and proceeds to step 321 to compare the increased K value with the N value used in step 312 described above. As a result of the comparison, if the increased K value is less than N, the message in which the checksum value is not checked among the message amounts that can be stored once in the MT 206 in the disk 204 is still present. The check value checking process in units of 1K bytes described above is repeatedly performed.

그러나 제321단계의 비교결과, 증가된 K가 N값보다 크거나 같으면(K≥N), 디스크(204)에서 MT(206)에 1회 수록될 수 있는 모든 메세지에 대한 체크섬값이 체크된 것으로 인식하여 제어부(201)는 제322단계로 진행되어 디스크(204)에 수록되어 있는 메세지가 MT(206)에 수록되도록 제어한 다음 제301단계로 리턴되어 i, j, k값을 초기화한다.However, as a result of the comparison in step 321, if the increased K is greater than or equal to N (K≥N), the checksum value for all messages that can be stored once in the MT 206 in the disk 204 is checked. Upon recognizing, the control unit 201 proceeds to step 322 to control the message stored in the disk 204 to be stored in the MT 206 and then returns to step 301 to initialize the i, j, and k values.

한편, 제316단계와 제317단계의 체크결과, 1K바이트의 해당 메세지의 손상이 24시간이내에 발생된 것이 아니면 제어부(201)는 제323단계로 진행되어 터미널(201)를 통해 오류(Fault) 메세지를 출력하고, 디스크(204)에 저장된 메세지의 위치, 디스크(204)에 저장된 체크섬값 및 1020바이트를 계산한 체크섬값을 출력한 다음 상술한 바와 같이 제319단계로 진행되어 발생한 시간을 저장하고, 제320단계로 진행되어 상술한 바와 같이 처리된다.On the other hand, as a result of checking in steps 316 and 317, if the damage of the corresponding message of 1K bytes does not occur within 24 hours, the control unit 201 proceeds to step 323 and receives a fault message through the terminal 201. Outputs the message, the location of the message stored in the disk 204, the checksum value stored in the disk 204 and the checksum value calculated by calculating 1020 bytes, and then proceeds to step 319 as described above to store the generated time. The process proceeds to step 320 and is processed as described above.

또한, 제316단계의 비교결과 계산된 체크섬값과 사전에 저장된 체크섬값이 동일하면, 디스크(204)로부터 읽혀진 해당되는 1K바이트의 메세지가 손상되지 않은 경우이므로 제어부(201)는 바로 제320단계로 진행되어 상술한 바와 같이 동작된다.In addition, if the checksum value calculated as a result of the comparison in step 316 and the checksum value stored in advance are the same, the corresponding 1K byte message read from the disk 204 is not damaged. The operation proceeds as described above.

상술한 바와 같이, 본 발명은 전전자 교환기에서 가입자별로 발생되는 메세지를 마그네틱 테이프에 수록할 때, 디스크에서 마그네틱 테이프로 수록되기 전에 디스크에 수록되어 있는 메세지를 체크섬값 비교방식을 이용하여 손상여부를 검증하고, 손상된 것으로 판단되는 경우에 손상된 메세지에 대한 내역을 운용자에게 통보하여, 운용자가 신속한 조치를 취할 수 있도록 하고, 손상된 메세지가 그대로 마그네틱 테이프에 수록되는 것을 방지할 수 있는 잇점이 있다. 또한, 시간을 기준으로 손상된 메세지의 발생 빈도도 운용자에게 알려줄 수 있는 효과가 있다.As described above, according to the present invention, when a message generated for each subscriber in the electronic switchboard is recorded on the magnetic tape, the message stored on the disk before being recorded from the disk to the magnetic tape is checked using a checksum comparison method. It is advantageous to verify and to notify the operator of the details of the damaged message if it is determined to be damaged, so that the operator can take prompt action, and prevent the damaged message from being recorded on the magnetic tape as it is. In addition, there is an effect that can inform the operator of the frequency of occurrence of a damaged message based on time.

Claims (4)

전전자 교환기에서 가입자당 할당되는 메세지 발생장치로부터 제1소정단위로 메세지가 전송되면, 정해진 량의 메세지를 메모리 큐를 통해 디스크에 저장하고, 상기 디스크에 저장된 메세지를 제2소정단위로 독출하여 마그네틱 테이프에 수록하도록 구성된 메세지 수록처리장치에 있어서, 메세지 종류별로 상기 정해진 량만큼 저장하고, 상기 정해진 량만큼 저장된 메세지는 상기 메모리 큐로 전송하도록 구성된 콘테이너; 상기 정해진 량의 최종단에 상기 정해진 량에 포함되는 메세지의 체크섬값이 함께 실려 저장될 수 있도록 임의의 상기 메세지 발생장치로부터 상기 제1소정단위로 전송되는 메세지에 대한 상기 콘테이너로의 저장을 제어하고, 상기 디스크에 수록된 메세지가 상기 마그네틱 테이프로 전송되기 전에 상기 디스크에 수록된 메세지에 대한 손상여부를 검출할 수 있도록 제어하는 제어부; 상기 제어부에 의해 제어되어 상기 디스크에 저장되어 있는 메세지를 상기 정해진 량과 동일한 단위로 독출하고, 독출된 메세지중 체크섬값을 제외한 메세지들의 체크섬값을 계산하고, 계산된 체크섬값과 독출된 메세지에 실려 있는 체크섬값이 동일한지를 비교한 결과를 상기 제어부로 전송하여 상기 제어부가 상기 디스크로부터 독출된 메세지에 대한 손상여부를 검출할 수 있도록 하는 체크섬값 계산 및 비교부; 손상된 메세지가 검출됨에 따라 상기 제어부로부터 전송되는 상기 손상된 메세지에 대한 내역을 운용자가 알수 있는 형태로 디스플레이하는 터미널을 포함하는 것을 특징으로 하는 전전자 교환기에 있어서 손상된 메세지 검출장치.When a message is transmitted in a first predetermined unit from a message generator allocated per subscriber in an electronic switchboard, a predetermined amount of messages are stored in a disk through a memory queue, and the message stored in the disk is read in a second predetermined unit in a magnetic manner. A message containing processing apparatus configured to record on a tape, comprising: a container configured to store the predetermined amount for each message type, and to transmit the stored message to the memory queue; To control the storage of the message transmitted from any message generating device to the first predetermined unit to the container so that the checksum value of the message included in the predetermined amount is stored together at the end of the predetermined amount. And a controller configured to detect whether a message recorded on the disk is damaged before the message recorded on the disk is transmitted to the magnetic tape. The message stored in the disk is controlled by the control unit in the same unit as the predetermined amount, the checksum value of the messages except the checksum value is read out, and the checksum value and the read message are included in the calculated message. A checksum calculation and comparison unit which transmits a result of comparing whether the checksum values are the same to the controller so that the controller can detect whether a message read from the disk is damaged or not; And a terminal for displaying details of the damaged message transmitted from the control unit in a form known to an operator as a damaged message is detected. 제1항에 있어서, 상기 제어부는 상기 체크섬값 계산 및 비교부로부터 전송된 비교결과에 의해 상기 디스크로부터 현재 독출된 메세지가 손상된 것으로 검출되면, 이전에 손상된 메세지가 발생되었던 시간과 현재 손상된 메세지가 발생된 시간을 참조하여 손상된 메세지의 발생빈도가 높은 경우에 상기 터미널을 통해 알람신호가 발생되도록 상기 터미널로 해당되는 제어신호를 출력하는 것을 특징으로 하는 전전자 교환기에 있어서 손상된 메세지 검출장치.The method of claim 1, wherein when the control unit detects that the message currently read from the disk is damaged by the checksum value calculation and the comparison result transmitted from the comparing unit, the time when the previously damaged message is generated and the currently damaged message is generated. And a control signal corresponding to the terminal so as to generate an alarm signal through the terminal when the frequency of occurrence of a damaged message is high with reference to a specified time. 전전자 교환기에서 가입자당 할당되는 메세지 발생장치로부터 제1소정단위로 전송되는 메세지를 디스크를 거쳐 마그네틱 테이프에 수록하도록 구성된 메세지 수록처리장치에 있어서, 상기 메세지 발생장치로부터 상기 제1소정단위로 메세지가 전송되면, 메세지 종류별로 제2소정량에 도달할 때까지 저장하는 제1저장단계; 상기 제1저장단계에서 저장된 모든 메세지의 체크섬값을 계산하는 제1체크섬값 계산단계; 상기 제1체크섬값 계산단계에서 계산된 체크섬값이 상기 제1저장단계에서 저장된 메세지의 종단에 실려 저장될 수 있도록 상기 체크섬값에 대한 저장처리를 하는 제2저장단계; 상기 제2저장단계에서 저장된 상기 체크섬값과 상기 제2소정량의 메세지를 상기 디스크가 아이들한 상태일 때 디스크에 수록하는 제1수록단계; 상기 디스크에 수록된 메세지의 량이 상기 마그네틱 테이프로 1번에 전송할 수 있는 량에 도달하지 않으면, 상기 제1저장단계부터 상기 제1수록단계를 반복 수행하는 제1반복수행단계; 상기 디스크에 수록된 메세지의 량이 상기 마그네틱 테이프로 1번에 전송할 수 있는 량에 도달하면, 상기 제1수록단계에서 수록된 단위와 동일한 단위의 데이타를 상기 디스크로부터 독출하는 제1독출단계; 상기 독출된 메세지중 체크섬값에 해당되는 메세지를 제외한 메세지에 대한 체크섬값을 계산하는 제2체크섬값 계산단계; 상기 제2체크섬값 계산단계에서 계산된 체크섬값과 상기 독출된 메세지에 포함되어 있는 체크섬값을 비교하는 단계; 상기 비교단계 수행결과, 상기 독출된 메세지에 포함되어 있던 체크섬값과 제2체크섬값 계산단계에서 계산된 제2체크섬값이 상이하면, 상기 독출된 메세지가 손상된 것으로 인식하여 상기 독출된 메세지의 내역정보와 손상을 알리는 메세지를 출력하는 단계; 상기 비교단계 수행결과, 상기 독출된 메세지에 포함되어 있던 체크섬값과 제2체크섬값이 동일하면, 상기 독출된 메세지가 손상되지 않은 것으로 인식하고, 상기 제1독출단계로 리턴하여 상기 디스크로부터 메세지를 독출하는 제2독출단계; 상기 디스크로부터 상기 마그네틱 테이프로 1회에 전송될 수 있는 모든 메세지에 대한 손상여부를 체크할 때까지 상기 제1독출단계부터 상기 제2독출단계까지 반복 수행하는 제2반복 수행단계; 상기 제2반복 수행단계를 통해 상기 디스크에 수록되어 있는 상기 1회에 전송될 수 있는 모든 메세지에 손상이 존재하지 않는 것으로 판단되면, 손상여부가 체크되었던 모든 메세지를 상기 디스크로부터 상기 마그네틱 테이프로 전송하는 단계를 포함하여 수행되는 것을 특징으로 하는 전전자 교환기에 있어서 손상 메세지 검출방법.A message recording processing device configured to record, on a magnetic tape, a message transmitted in a first predetermined unit from a message generator allocated per subscriber at an electronic switching system, wherein the message is sent from the message generating apparatus to the first predetermined unit. A first storing step of, if transmitted, storing each message type until reaching a second predetermined amount; A first checksum value calculating step of calculating checksum values of all messages stored in the first storing step; A second storing step of storing the checksum value so that the checksum value calculated in the first checksum value calculating step can be stored at the end of the message stored in the first storing step; A first recording step of recording the checksum value and the second predetermined amount of messages stored in the second storage step on a disc when the disc is idle; A first repeating step of repeating the first recording step from the first storage step if the amount of messages recorded on the disk does not reach an amount that can be transmitted to the magnetic tape at once; A first reading step of reading data from the disc in the same units as the units recorded in the first recording step when the amount of messages recorded on the disc reaches the amount that can be transmitted to the magnetic tape at once; A second checksum value calculating step of calculating a checksum value for a message excluding a message corresponding to a checksum value among the read messages; Comparing the checksum value calculated in the second checksum value calculating step with a checksum value included in the read message; As a result of performing the comparing step, if the checksum value included in the read message and the second checksum value calculated in the second checksum value calculation step are different, the read message is recognized as damaged and the detail information of the read message is determined. Outputting a message informing of damage; As a result of performing the comparing step, if the checksum value and the second checksum value included in the read message are the same, the read message is recognized as intact and returned to the first read step to return a message from the disc. A second reading step of reading out; A second repeating step of repeating the first reading step and the second reading step until all the messages that can be transmitted from the disk to the magnetic tape are checked for damage; If it is determined that there is no damage in all the messages that can be transmitted at one time through the second repeating step, all messages whose damage has been checked are transmitted from the disc to the magnetic tape. And a damage message detection method according to claim 1, wherein the damage exchange is performed. 제3항에 있어서, 상기 출력단계는 상기 비교단계에서 상기 제2체크섬값과 독출된 체크섬값이 상이하면, 이전에 손상된 메세지가 발생되었던 시간과 현재 손상된 메세지가 발생된 시간을 참조하여 손상된 메세지의 발생되는 빈도를 체크하고, 손상된 메세지가 자주 발생된 것으로 판단되면, 알람신호를 발생하는 단계; 및 상기 알람신호 발생단계 수행후, 현재 손상된 메세지가 발생된 시간을 저장하는 단계를 포함하여 수행되는 것을 특징으로 하는 전전자 교환기에 있어서 손상된 메세지 검출방법.The method of claim 3, wherein the outputting step is performed by referring to the time at which the previously damaged message was generated and the time at which the currently damaged message was generated when the second checksum value and the read checksum value were different in the comparing step. Checking the frequency of occurrence and generating an alarm signal if it is determined that a damaged message is frequently generated; And after the alarm signal generation step, storing the time at which the currently damaged message is generated.
KR1019950020881A 1995-07-15 1995-07-15 Apparatus for detecting bad message in the switching system and method KR0161125B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950020881A KR0161125B1 (en) 1995-07-15 1995-07-15 Apparatus for detecting bad message in the switching system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950020881A KR0161125B1 (en) 1995-07-15 1995-07-15 Apparatus for detecting bad message in the switching system and method

Publications (2)

Publication Number Publication Date
KR970007626A KR970007626A (en) 1997-02-21
KR0161125B1 true KR0161125B1 (en) 1999-01-15

Family

ID=19420716

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950020881A KR0161125B1 (en) 1995-07-15 1995-07-15 Apparatus for detecting bad message in the switching system and method

Country Status (1)

Country Link
KR (1) KR0161125B1 (en)

Also Published As

Publication number Publication date
KR970007626A (en) 1997-02-21

Similar Documents

Publication Publication Date Title
US2950464A (en) Error detection systems
US20100070213A1 (en) Method for Monitoring the Electrical Energy Quality in an Electrical Energy Supply System, Power Quality Field Device and Power Quality System
EP0339038B1 (en) Error-correction of stored television signals
CA1228167A (en) Diagnostic method and system of channel control unit
EP0225603B1 (en) Distributed processing system and method
CN114048520B (en) Detection system for cross-chip access control
KR0161125B1 (en) Apparatus for detecting bad message in the switching system and method
CN116930727B (en) Chip detection method based on circuit board
US4692298A (en) Analog process control system testing
US3803552A (en) Error detection and correction apparatus for use in a magnetic tape system
EP0070184A2 (en) A method of testing memory
US5497376A (en) Method and device for detecting and correcting errors in memory modules
US4802167A (en) Data monitor apparatus
GB1565489A (en) Method of and apparatus for locating faults in a centrally controlled electrical system
KR0182688B1 (en) Method and apparatus for analyzing and testing charging data in switching system
RU1802416C (en) Method of testing parameters of information transmission path
JP2770766B2 (en) ATM continuity test apparatus and method
KR100208263B1 (en) Apparatus for on-line test in switch
JP2878914B2 (en) Transmission quality measurement method
KR100319934B1 (en) Remote error detection system for elevator and control methof thereof
EP0403451A1 (en) A method and arrangement for detecting and localizing errors or faults in a multi-plane unit incorporated in a digital time switch
KR100260081B1 (en) Charging processor for a private switching system
KR200348447Y1 (en) Time division switch call furnace test device
JP3346424B2 (en) Terminal device with operation monitoring function
CN116471191A (en) Protocol data simulation method, system, equipment and storage medium

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
FPAY Annual fee payment

Payment date: 20020813

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee