[go: up one dir, main page]

CN103944817A - Message transferring method, message transferring device and terminal device in online system - Google Patents

Message transferring method, message transferring device and terminal device in online system Download PDF

Info

Publication number
CN103944817A
CN103944817A CN201310024303.2A CN201310024303A CN103944817A CN 103944817 A CN103944817 A CN 103944817A CN 201310024303 A CN201310024303 A CN 201310024303A CN 103944817 A CN103944817 A CN 103944817A
Authority
CN
China
Prior art keywords
message
error correction
sent
territory
error
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310024303.2A
Other languages
Chinese (zh)
Inventor
白玫
徐静雯
徐燕军
徐志忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201310024303.2A priority Critical patent/CN103944817A/en
Publication of CN103944817A publication Critical patent/CN103944817A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种用在联机系统中的报文转接方法,所述方法包括:确定待发送报文是否具有不符合所述联机系统所遵照的通信规范的报文域;对具有不符合所述通信规范的报文域的待发送报文执行纠错进程以生成经纠错的待发送报文;以及向所述待发送报文的接收方传送所述经纠错的待发送报文。另一方面,本发明还提供了相应的报文转接设备。又一方面,本发明还提供了一种联机系统中的终端设备。

The present invention provides a message transfer method used in an online system, the method includes: determining whether a message to be sent has a message field that does not conform to the communication specification that the online system complies with; Performing an error correction process on the message to be sent in the message field of the communication specification to generate an error-corrected message to be sent; and transmitting the error-corrected message to be sent to the receiver of the message to be sent . On the other hand, the present invention also provides a corresponding message switching device. In yet another aspect, the present invention also provides a terminal device in an online system.

Description

一种联机系统中的报文转接方法、转接设备以及终端设备Message transfer method, transfer device and terminal device in an online system

技术领域 technical field

本发明一般地涉及数据传输技术领域,并且具体地涉及一种联机系统中的报文转接方法、转接设备以及终端设备。 The present invention generally relates to the technical field of data transmission, and in particular relates to a message transfer method, transfer device and terminal device in an online system.

背景技术 Background technique

随着网络技术应用的越来越广泛,人们很多的日常工作和生活需求都通过联网来实现。报文可以被认为是网络传输的基本单位,每个网络通信结点可以把要发送的信息组织成一个数据包,即报文以进行传输。在信息交换网络中传输的数据报文通常依据具体的通信协议来构建,诸如TCP/IP协议或者其他涉及特定用途的数据传输协议或规范。这些协议和规范通常确定了报文的长度、报文域划分、报文域定义等建立有效通信所必需的内容。 With the application of network technology more and more widely, many of people's daily work and life needs are realized through networking. A message can be considered as the basic unit of network transmission, and each network communication node can organize the information to be sent into a data packet, that is, a message for transmission. The data packets transmitted in the information exchange network are usually constructed according to a specific communication protocol, such as the TCP/IP protocol or other data transmission protocols or specifications related to specific purposes. These protocols and specifications usually determine the length of the message, message field division, message field definition and other necessary content to establish effective communication.

在一些网络结构中,报文传输可能需要转接,而不是点对点的进行。例如,在星型网络结构中存在中央节点,又称中央转接站,其他各个网络设备都与该中央节点直接相连,端用户之间的通信必须经过中心站。网络技术在银行跨行交易系统中的应用即采用这样的星型拓扑结构,所有的商户终端以及各个银行的后台处理系统都连接到一个跨行转接系统,由该跨行转接系统将来自商户终端或银行系统的交易请求报文分送至相应的目的地,使得消费者可以随意使用任何银行发行的消费卡在商户终端上进行支付并且使得银行间的跨行业务得以普及。上述跨行转接过程如图1所示。 In some network architectures, message transmission may require handoffs rather than point-to-point. For example, there is a central node in the star network structure, also known as the central switching station, and all other network devices are directly connected to the central node, and the communication between end users must pass through the central station. The application of network technology in the bank's inter-bank transaction system adopts such a star topology. All merchant terminals and the background processing systems of each bank are connected to an inter-bank transfer system. The transaction request message of the banking system is distributed to the corresponding destination, so that consumers can freely use the consumer card issued by any bank to pay on the merchant terminal and popularize inter-bank business. The above-mentioned inter-bank transfer process is shown in FIG. 1 .

在网络中传输的通常由多个报文域构成,每个报文域定义在请求和应答过程中需要出现的数据元。这些数据元往往数量众多,并且每个数据元对于特定应用均有对值属性和值范围的精细规定。如果对这些规定不熟悉或理解有偏差,往往容易导致系统开发失误,进而使得网络通信失败。特别在诸如银行跨行交易系统的星型结构网络中,一般只能在发现通信失败之后,通过在端用户之间互查来定位原因,并需通过对整个系统进行改造才能解决问题,这不仅耗费大量的人力、物力、财力,而且改造周期较长,使得系统的工作效率长期无法提高。 The transmission in the network usually consists of multiple message fields, and each message field defines the data elements that need to appear in the request and response process. There are often a large number of these data elements, and each data element has finely specified value attributes and value ranges for specific applications. If you are not familiar with these regulations or have a biased understanding, it is often easy to lead to system development errors, which in turn cause network communication failures. Especially in a star-structured network such as a bank's inter-bank transaction system, the cause can only be located by checking each other between end users after a communication failure is found, and the problem can only be solved by remodeling the entire system, which not only consumes A large amount of manpower, material resources, and financial resources, and a long transformation cycle, make the system's work efficiency unable to improve for a long time.

这样的问题在一些实现特定用途的联网系统开发中非常常见。为了避免报文构建错误而导致系统失效,目前虽然已经设置了纠错机制,例如通过与数据库中存储的历史经验值进行比对等等,但都无法实现对联机系统中的报文错误进行实时纠错。 Such problems are very common in the development of some special-purpose networking systems. In order to avoid system failure due to message construction errors, although an error correction mechanism has been set up at present, such as comparing with historical experience values stored in the database, etc., it is impossible to realize real-time monitoring of message errors in the online system. Error correction.

发明内容 Contents of the invention

本发明的目的是提供一种能够进行基于报文域的实时纠错的报文传输转接方法和转接设备,由此提高许多需要进行报文传输转接的联机系统的工作效率。 The purpose of the present invention is to provide a message transmission and switching method and switching equipment capable of real-time error correction based on the message field, thereby improving the working efficiency of many online systems that need to perform message transmission and switching.

为实现上述目的,本发明提供了一种用在联机系统中的报文转接方法,其特征在于,所述方法包括:确定待发送报文是否具有不符合所述联机系统所遵照的通信规范的报文域;对具有不符合所述通信规范的报文域的待发送报文执行纠错进程以生成经纠错的待发送报文;以及向所述待发送报文的接收方传送所述经纠错的待发送报文。 In order to achieve the above object, the present invention provides a message transfer method used in an online system, characterized in that the method includes: determining whether the message to be sent does not conform to the communication specification complied with by the online system the message field of the message; perform an error correction process on the message to be sent with the message field that does not conform to the communication specification to generate an error-corrected message to be sent; and transmit the message to the receiver of the message to be sent. Describe the error-corrected message to be sent.

根据本发明的一些实施例,所述纠错进程包括以下步骤:基于与不合规报文域关联的信息生成纠错请求报文;向所述待发送报文的发送方传送所述纠错请求报文;以及响应于来自所述发送方的纠错请求应答而生成经纠错的待发送报文。 According to some embodiments of the present invention, the error correction process includes the following steps: generating an error correction request message based on the information associated with the non-compliant message field; transmitting the error correction request message to the sender of the message to be sent a request message; and generating an error-corrected message to be sent in response to the error correction request reply from the sender.

根据本发明的一些实施例,确定待发送报文是否具有不符合所述通信规范的报文域的步骤包括:对待发送报文执行报文解包进程;以及按照所述通信规范对解包获得的各个报文域进行合规性检查。 According to some embodiments of the present invention, the step of determining whether the message to be sent has a message field that does not conform to the communication specification includes: performing a message unpacking process on the message to be sent; Compliance checks for each message field.

根据本发明的一些实施例,所述方法还包括在向所述接收方传送所述经纠错的待发送报文之前以与待发送报文相同的方式确定所述经纠错的待发送报文是否具有不符合所述通信规范的报文域。 According to some embodiments of the present invention, the method further includes determining that the error-corrected message to be sent is determined in the same manner as the message to be sent before transmitting the message to be sent with error correction to the receiver. Whether the text has a message field that does not conform to the communication specification.

根据本发明的一些实施例,所述方法还包括为具有不符合所述通信规范的报文域的经纠错的待发送报文记录纠错日志并且依据不合规报文域的错误关键性来确定是否向所述接收方传送所述经纠错的待发送报文。 According to some embodiments of the present invention, the method further includes recording an error correction log for the error-corrected message to be sent with a message field that does not conform to the communication specification and according to the error criticality of the non-compliant message field to determine whether to transmit the error-corrected message to be sent to the receiver.

根据本发明的一些实施例,所述方法还包括为具有不符合所述通信规范的报文域的待发送报文设定指示其进入纠错进程的标志。 According to some embodiments of the present invention, the method further includes setting a flag indicating that it enters an error correction process for a message to be sent that has a message field that does not conform to the communication specification.

根据本发明的一些实施例,所述纠错请求报文至少包括所述待发送报文、出错报文域标识以及出错原因代码。 According to some embodiments of the present invention, the error correction request message at least includes the message to be sent, an error message field identifier, and an error cause code.

根据本发明的一些实施例,所述出错原因包括报文少域、报文多域、域属性错误以及域取值错误。 According to some embodiments of the present invention, the error reasons include a message with few domains, a message with multiple domains, wrong domain attributes, and wrong domain values.

根据本发明的一些实施例,所述联机系统为银行的跨行交易系统。 According to some embodiments of the present invention, the online system is an inter-bank transaction system of a bank.

另一方面,本发明还提供了一种联机系统中的报文转接设备,所述设备包括:检查单元,其被构造用于确定待发送报文是否具有不符合所述联机系统所遵照的通信规范的报文域;纠错单元,其被构造用于对具有不符合所述通信规范的报文域的待发送报文执行纠错进程以生成经纠错的待发送报文;以及发送单元,其被构造为向所述待发送报文的接收方传送所述经纠错的待发送报文。 On the other hand, the present invention also provides a message transfer device in an online system, the device includes: a checking unit configured to determine whether a message to be sent has a A message domain of the communication specification; an error correction unit configured to perform an error correction process on a message to be sent having a message domain that does not conform to the communication specification to generate an error-corrected message to be sent; and sending A unit configured to transmit the error-corrected message to be sent to a receiver of the message to be sent.

又一方面,本发明还提供了一种联机系统中的终端设备,所述联机系统包括报文转接设备,所述报文转接设备被用于将来自所述终端设备的报文转送至所述报文在所述联机系统中的接收方。所述终端设备包括纠错单元和发送单元,其中所述纠错单元被构造用于响应于来自所述报文转接设备的纠错请求报文而为先前发送的报文生成更正报文;并且所述发送单元被构造用于向所述报文转接设备发送包含所述更正报文的纠错应答;所述先前发送的报文具有不符合所述联机系统所遵照的通信规范的报文域,并且所述纠错请求报文包括与不合规报文域关联的信息。 In yet another aspect, the present invention also provides a terminal device in an on-line system, the on-line system includes a message transfer device, and the message transfer device is used to transfer the message from the terminal device to The receiver of the message in the online system. The terminal device includes an error correction unit and a sending unit, wherein the error correction unit is configured to generate a correction message for a previously sent message in response to an error correction request message from the message transfer device; And the sending unit is configured to send an error correction response containing the corrected message to the message transfer device; the previously sent message has a message that does not comply with the communication specification that the online system complies with. text field, and the error correction request message includes information associated with the non-compliant message field.

根据本发明的一些实施例,所述纠错单元被构造用于对有纠错记录的不合规报文域直接基于所述纠错记录生成更正报文,而对无纠错记录的不合规报文域采用默认设定或实时通知人工处理。 According to some embodiments of the present invention, the error correction unit is configured to generate a correction message directly based on the error correction record for a non-compliant message field with an error correction record, and to generate a correction message for a non-compliant message field without an error correction record. The default settings or real-time notifications are manually processed for the regulation message fields.

通过本发明所提供的方法和设备能够大大减少联机系统中由于报文本身构建错误所引起的通信失败,避免了重新改造系统的麻烦,并且大大提高了系统的工作效率。对于诸如银行联机交易系统中的跨行转接过程而言,采用本发明所提供的方法和设备能够显著地提高交易成功率。举例来说,当在诸如银行的跨行交易转接系统中应用本发明所提供的方法和设备时,能够大大提高因报文域错误而导致的失败交易的成功率,由此为银行联机交易系统带来了很大的益处,使之不会因为个别报文域的错误设计而需要对整个系统进行改造,更好地优化了跨行转接系统的服务。 The method and equipment provided by the invention can greatly reduce the communication failure caused by the error in the construction of the message itself in the online system, avoid the trouble of remodeling the system, and greatly improve the working efficiency of the system. For example, for the inter-bank transfer process in the bank online transaction system, the adoption of the method and device provided by the present invention can significantly improve the transaction success rate. For example, when the method and equipment provided by the present invention are applied in an inter-bank transaction transfer system such as a bank, the success rate of failed transactions caused by message field errors can be greatly improved, thus providing a new way for the bank's online transaction system It has brought great benefits, so that the entire system will not need to be modified due to the wrong design of individual message fields, and the service of the inter-bank transfer system is better optimized.

附图说明 Description of drawings

本发明的前述和其他目标、特征和优点根据下面对本发明的实施例的更具体的说明将是显而易见的,这些实施例在附图中被示意。 The foregoing and other objects, features and advantages of the invention will be apparent from the following more particular description of embodiments of the invention, illustrated in the accompanying drawings.

图1示出了可在其中应用本发明的银行联机交易系统中的跨行转接流程。 Fig. 1 shows the inter-bank transfer process in the bank online transaction system in which the present invention can be applied.

图2示出了根据本发明的一个实施例的报文转接设备的示意性结构。 Fig. 2 shows a schematic structure of a message switching device according to an embodiment of the present invention.

图3a和3b分别示出了根据本发明的一个实施例的联机系统中的终端设备的示意性结构及其操作流程。 Figures 3a and 3b respectively show the schematic structure and operation flow of a terminal device in an online system according to an embodiment of the present invention.

图4示出了根据本发明的一个实施例的报文转接方法的流程。 Fig. 4 shows the flow of a message forwarding method according to an embodiment of the present invention.

图5a和5b分别示意性地示出了本发明在银行的跨行交易系统中的应用。 Figures 5a and 5b schematically show the application of the present invention in the bank's inter-bank transaction system.

具体实施方式 Detailed ways

以下结合附图和具体实施方式进一步详细说明本发明。需要说明的是,附图中的各结构只是示意性说明,用以使本领域普通技术人员最佳地理解本发明的原理,其不一定按比例绘制。 The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the various structures in the drawings are only schematic illustrations, to enable those skilled in the art to best understand the principle of the present invention, and they are not necessarily drawn to scale.

本发明所提供的方法或设备适用于联机系统中的报文传输,尤其适用于在报文传输过程中需要进行转接的情况,诸如具有星型结构网络的联机系统。以银行的跨行交易系统为例,本发明所提供的报文转接方法和设备特别适用于其中的跨行交易转接设备,来自交易终端或各银行处理系统的交易请求均需要经由该转接设备而到达目的地。相应地,也可以在该跨行交易系统中的交易终端或各银行处理系统中并入本发明所提供的终端设备的特征。 The method or device provided by the present invention is suitable for message transmission in an online system, and is especially suitable for a situation where switching is required during message transmission, such as an online system with a star network. Taking the bank's inter-bank transaction system as an example, the message transfer method and device provided by the present invention are especially suitable for the inter-bank transaction transfer device, and the transaction requests from the transaction terminal or each bank processing system need to pass through the transfer device And reach the destination. Correspondingly, the features of the terminal equipment provided by the present invention can also be incorporated into the transaction terminal in the cross-bank transaction system or the processing systems of each bank.

图2示出了根据本发明的一个实施例的报文转接设备的示意性结构。如图2所示,报文转接设备100可以包括检查单元101、纠错单元102以及发送单元103。 Fig. 2 shows a schematic structure of a message switching device according to an embodiment of the present invention. As shown in FIG. 2 , the packet switching device 100 may include a checking unit 101 , an error correction unit 102 and a sending unit 103 .

一般地,报文转接设备100在联机系统中起信息中转的作用,将来自联系系统中的终端节点的报文转送至目的地节点或其他中转设备。本发明所提供的方法和设备将更优选地适用于报文转接设备与作为报文发送方的终端节点能够直接进行信息交互的情形,但这不一定是必须的。 Generally, the message transfer device 100 plays the role of information transfer in the online system, and transfers the message from the terminal node in the contact system to the destination node or other transfer devices. The method and device provided by the present invention are more preferably applicable to the situation where the message transfer device and the terminal node as the sender of the message can directly exchange information, but this is not necessarily necessary.

在图2所示的实施例中,检查单元101可以被构造用于确定待发送报文是否具有不符合联机系统所遵照的通信规范的报文域。这里,联机系统可以例如是银行的跨行转接交易系统,在其中传送的通信报文必须遵照特定的通信规范来构建。在本发明的一些实施例中,确定待发送的报文是否符合规范可以大体上包括两部分。首先,可以按照一般的报文转发流程对待发送报文执行报文解包进程。在解包过程中就有可能发现异常的报文域构造,例如出现按照规范应具有10个字节长度的报文域仅具有8个字节,诸如此类的问题。其次,无论是否在解包过程中出现异常报文域构造,都进一步按照规范对解包获得的各个报文域进行合规性检查,包括检查该报文是否包括了在规范中所要求的所有报文域,即是否存在多域或少域问题,以及对每个报文域的长度、内容、域取值是否符合规范进行检查。一旦发现不合规的报文域,则检查单元101可以被构造为将该待发送报文以及与不合规的报文域相关的信息传送至纠错单元102,而不是如常规的报文转接流程那样直接拒绝有错的报文或者直接向外发送仅通过解包的报文。 In the embodiment shown in FIG. 2 , the checking unit 101 may be configured to determine whether the message to be sent has a message field that does not conform to the communication specification complied with by the online system. Here, the online system can be, for example, a bank's inter-bank transfer transaction system, in which communication messages must be constructed in accordance with specific communication specifications. In some embodiments of the present invention, determining whether the message to be sent conforms to the specification may generally include two parts. First, a message unpacking process may be performed on the sent message according to the general message forwarding process. During the unpacking process, it is possible to find an abnormal message field structure, for example, a message field that should have a length of 10 bytes according to the specification only has 8 bytes, and the like. Secondly, regardless of whether there is an abnormal message field structure during the unpacking process, the compliance check of each message field obtained by unpacking is further carried out according to the specification, including checking whether the message includes all the fields required in the specification. Message field, that is, whether there is a problem of multiple fields or few fields, and check whether the length, content, and field value of each message field meet the specifications. Once a non-compliant message field is found, the inspection unit 101 can be configured to transmit the message to be sent and the information related to the non-compliant message field to the error correction unit 102 instead of the conventional message field As in the transfer process, it directly rejects the wrong message or directly sends out the message that only passes the unpacking.

纠错单元102可以被构造用于对具有不符合通信规范的报文域的待发送报文执行纠错进程以生成经纠错的待发送报文。在本发明的一些实施例中,纠错进程可以包括:基于与不合规报文域关联的信息生成纠错请求报文,调用发送单元103向待发送报文的发送方传送该纠错请求报文,并且响应于来自报文发送方的纠错请求应答而生成经纠错的待发送报文。举例来说,该纠错请求报文可以包括待发送报文、出错报文域标识以及出错原因代码,其中待发送报文即为原始接收的报文本身,出错报文域标识用于指示待发送报文中哪些报文域不符合规范,而出错原因代码用于指示报文域所存在的问题,诸如报文域缺失、出现多余的报文域、报文域长度或取值类型错误以及报文域取值超范围等错误。 The error correction unit 102 may be configured to perform an error correction process on a message to be sent having a message field that does not comply with a communication specification to generate an error-corrected message to be sent. In some embodiments of the present invention, the error correction process may include: generating an error correction request message based on the information associated with the non-compliant message field, calling the sending unit 103 to transmit the error correction request to the sender of the message to be sent message, and generates an error-corrected message to be sent in response to an error correction request reply from the message sender. For example, the error correction request message may include a message to be sent, an error message field identifier, and an error cause code, wherein the message to be sent is the originally received message itself, and the error message field identifier is used to indicate the message to be sent. Which message fields in the sent message do not conform to the specification, and the error reason code is used to indicate the problems existing in the message field, such as missing message fields, redundant message fields, wrong length or value type of message fields, and Errors such as message field value out of range.

在应用本发明的联机系统中,报文发送方终端设备将被构造为响应纠错单元102生成的纠错请求而返回纠错应答。在图3a中示出了根据本发明的一个实施例的报文发送方终端设备的示意性结构,并且在图3b中示出了其在收到纠错请求之后的操作流程。图3a中所示的终端设备构造可以被并入联机系统中任何要经由报文转接设备100向外发送报文的节点终端。 In the online system applying the present invention, the message sender terminal device will be configured to return an error correction response in response to the error correction request generated by the error correction unit 102 . Fig. 3a shows a schematic structure of a message sender terminal device according to an embodiment of the present invention, and Fig. 3b shows its operation flow after receiving an error correction request. The terminal device structure shown in FIG. 3 a can be incorporated into any node terminal in the online system that wants to send messages via the message switching device 100 .

如图3b所示,终端设备300从报文转接设备100接收纠错请求报文,并且可以按照一般接收报文的流程对其进行解包(未在图中示出)。进而,该纠错请求报文的内容可以被传送至纠错单元301,其可以被构造用于响应纠错请求报文而为先前发送的有错的报文生成更正报文。按照图3b所示的实施例,在纠错单元301中,可以首先判断需要纠错的不合规报文域是否有历史记录。对于有纠错记录的不合规报文域,可以直接基于纠错记录来生成更正报文;而对于无纠错记录的不合规报文域,则可以采用默认设定或实时通知人工处理,并且可以对应地生成纠错历史记录。最后,可以调用发送单元302将带有该更正报文的纠错应答返回至报文转接设备100。 As shown in Fig. 3b, the terminal device 300 receives the error correction request message from the message transfer device 100, and may unpack it according to the general process of receiving a message (not shown in the figure). Furthermore, the content of the error correction request message can be sent to the error correction unit 301, which can be configured to generate a correction message for a previously sent error message in response to the error correction request message. According to the embodiment shown in FIG. 3 b , in the error correction unit 301 , it may first be determined whether there is a history record in the non-compliant message field that needs error correction. For non-compliant message fields with error correction records, correction messages can be generated directly based on error correction records; for non-compliant message fields without error correction records, default settings or real-time notifications can be used for manual processing , and the error correction history can be generated correspondingly. Finally, the sending unit 302 may be called to return the error correction response with the corrected message to the message switching device 100 .

响应于来自报文发送方设备的纠错请求应答,报文转接设备100中的纠错单元102一般地将生成经纠错的待发送报文并且通过发送单元103将其发送至待发送报文的接收方。 In response to the error correction request response from the message sender device, the error correction unit 102 in the message switching device 100 will generally generate an error-corrected message to be sent and send it to the message to be sent through the sending unit 103. recipient of the text.

在本发明的一些实施例中,纠错单元102可以首先从纠错应答内容中提取待发送报文的更正版本,对其进行业务匹配检查。进而,纠错单元可以定位发送方返回的更正报文中的经修正的报文域以及对应的修正值。将经修正的报文域与纠错请求中指出的不合规报文域进行对照,如果不合规报文域被修正,则纠错单元102可以将来自发送方的更正报文转送至发送单元103以发送至原待发送报文的接收方。在一些实施例中,纠错单元102还可以将这个更正报文转送至检查单元101再次进行检查,即确定修正是否成功。另一方面,如果发现原待发送报文中的不合规报文域没有被发送方修正,则纠错单元102将进行记录并且经由其他处理单元在后续流程中告知发送方设备。 In some embodiments of the present invention, the error correction unit 102 may first extract the corrected version of the message to be sent from the content of the error correction response, and perform a service matching check on it. Furthermore, the error correction unit can locate the corrected message field and the corresponding correction value in the correction message returned by the sender. The corrected message field is compared with the non-compliant message field indicated in the error correction request, and if the non-compliant message field is corrected, the error correction unit 102 can forward the corrected message from the sender to the sender The unit 103 is to send to the recipient of the original message to be sent. In some embodiments, the error correction unit 102 may also forward the correction message to the checking unit 101 for checking again, that is, to determine whether the correction is successful. On the other hand, if it is found that the non-compliant message field in the original message to be sent has not been corrected by the sender, the error correction unit 102 will make a record and notify the sender device in the subsequent process through other processing units.

在需要进行报文转接的联机系统中,通过在报文转接设备中增加进行报文域检查和实时纠错的单元,根据通信规范基于报文域对所要转送的报文进行相关检查。在出现报文域属性(例如长度、取值类型)、取值、多域、少域等相关错误时,则进入纠错单元。通过联机发送纠错请求报文的方式,由报文发送方的入网机构实时对报文域纠错内容进行确认和授权,并返回修正后的报文以由报文转接设备转送,由此报文的接收方将更有可能收到报文域配置正确的信息,进而使得联机系统的工作效率提高。 In the online system that needs to perform message transfer, by adding a unit for message field inspection and real-time error correction in the message transfer device, the relevant checks are performed on the message to be transferred based on the message field according to the communication specification. When there are errors related to message field attributes (such as length, value type), value, multiple fields, and few fields, it will enter the error correction unit. By sending an error correction request message online, the network access organization of the message sender will confirm and authorize the error correction content in the message field in real time, and return the corrected message to be forwarded by the message transfer device. The receiver of the message will be more likely to receive the information that the message field is configured correctly, thereby improving the working efficiency of the online system.

本领域的技术人员应理解的是,图2和图3a中的单元划分仅是示意性的,而本发明所提供的报文转接设备100可以任何方式来实现,只要其能够实现上述各个单元的功能。 Those skilled in the art should understand that the unit division in Figure 2 and Figure 3a is only schematic, and the message switching device 100 provided by the present invention can be implemented in any way, as long as it can realize the above-mentioned units function.

图4示出了根据本发明的一个实施例的报文转接方法的流程。如图3所示,当如本发明所提供的报文转接设备收到来自联机系统中的某个终端的报文时,首先按照常规对该待发送报文进行解包,其中可以包括安全校验等其他常规处理。如在上文中所描述的那样,可能在解包的过程中发现报文域中存在的错误,例如多域、少域、报文域长度错误等。在解包完成之后,无论是否在解包过程中发现报文域错误,图4所示的流程都将进一步对该报文中是否存在不符合规范的报文域进行确定,即确定该报文中的每个报文域是否都符合所规定的设置,例如报文域长度、取值类型、取值范围等等。 Fig. 4 shows the flow of a message forwarding method according to an embodiment of the present invention. As shown in Figure 3, when the message switching device provided by the present invention receives a message from a certain terminal in the online system, it first unpacks the message to be sent according to the routine, which may include security Calibration and other routine processing. As described above, errors in the message field may be found during the unpacking process, such as multiple fields, few fields, wrong length of the message field, and the like. After the unpacking is completed, regardless of whether a message field error is found during the unpacking process, the process shown in Figure 4 will further determine whether there is a message field that does not meet the specification in the message, that is, determine that the message Whether each message field in conforms to the specified settings, such as message field length, value type, value range, etc.

接着,在待发送报文具有不合规报文域的情况下,执行在上文中结合图2和图3a-3b所描述的纠错进程,由此得到经纠错的待发送报文。在图4所示的实施例中,还可以进一步对该经纠错的待发送报文进行检查,以确定其中是否仍然存在不符合规范的报文域。该检查的过程可以与判断原始的待发送报文是否具有不合规报文域的过程一致,包括对该经纠错的待发送报文进行解包,并且对解包得到的各个报文域进行合规性检查。在图2所示的实施例中,对经纠错的待发送报文的检查可以同样地由检查单元101来完成。 Next, in the case that the message to be sent has a non-compliant message field, the error correction process described above in conjunction with Fig. 2 and Figs. 3a-3b is performed, thereby obtaining a message to be sent after error correction. In the embodiment shown in FIG. 4 , the error-corrected message to be sent may be further checked to determine whether there is still a message field that does not conform to the specification. The checking process can be consistent with the process of judging whether the original message to be sent has a non-compliant message field, including unpacking the error-corrected message to be sent, and unpacking each message field obtained by unpacking Conduct a compliance check. In the embodiment shown in FIG. 2 , the checking of the error-corrected message to be sent can also be completed by the checking unit 101 .

在实践中,可以在原始待发送报文被检查出具有不合规报文域时为其设定指示该报文进入纠错进程的标志,例如通过将原始报文中的某个冗余位设为“1”来表示该报文已经历纠错进程,或者通过在原始报文中增加一个标志位并且将其设为“1”来表示该报文已经历纠错进程。该标志可以被一直保留在经纠错的待发送报文中,作为区分来自检查单元101的、具有不合规报文域的报文是来自发送方的原始待发送报文还是经纠错的待发送报文的依据。 In practice, when the original message to be sent is found to have a non-compliant message field, a flag indicating that the message enters the error correction process can be set, for example, by setting a certain redundant bit in the original message to Set to "1" to indicate that the message has undergone an error correction process, or by adding a flag bit to the original message and setting it to "1" to indicate that the message has undergone an error correction process. This flag can always be kept in the error-corrected message to be sent, as to distinguish whether the message from the checking unit 101 with the non-compliant message field is from the sender's original message to be sent or the error-corrected message The basis for the message to be sent.

当经纠错的待发送报文被确定为没有不合规报文域时,其将被直接发送至原始报文的接收方。相反地,当经纠错的待发送报文仍然具有不合规报文域时,将不再对其执行纠错进程。按照图4所示的实施例,可以为具有不合规报文域的更正报文记录纠错日志并且经由其他处理单元在后续流程中告知发送方设备,以便于进行错误统计和后续的系统修正。进一步地,还可以依据不合规报文域的错误关键性来确定是否仍然向接收方发送该经纠错的报文。举例来说,如果不合规报文域的错误不影响转接设备上的业务处理,,则转接设备可以认为该错误的关键性较低,因此仍然可以选择继续转送该经纠错的报文,否则可以向报文发送方回复失败应答。以银行的跨行交易系统为例,如果不合规报文的错误不影响在跨行转接设备上进行转接清算,则跨行转接设备仍可以继续将该经纠错的报文转送至报文接收方。 When the error-corrected message to be sent is determined to have no non-compliant message field, it will be directly sent to the receiver of the original message. On the contrary, when the error-corrected message to be sent still has a non-compliant message field, no error correction process will be performed on it. According to the embodiment shown in Figure 4, an error correction log can be recorded for the corrected message with a non-compliant message field, and the sender device can be notified in the subsequent process through other processing units, so as to facilitate error statistics and subsequent system correction . Further, it may also be determined whether to still send the error-corrected message to the receiver according to the error criticality of the non-compliant message field. For example, if the error in the non-compliant message field does not affect the business processing on the transfer device, the transfer device may consider the error to be less critical, so it can still choose to continue forwarding the error-corrected message. Otherwise, it can reply a failure response to the sender of the message. Taking the bank's inter-bank transaction system as an example, if the error of the non-compliant message does not affect the transfer and settlement on the inter-bank transfer device, the inter-bank transfer device can still continue to transfer the error-corrected message to the message receiver.

图5a和5b分别示意性地示出了本发明在银行的跨行交易系统中的应用。在对联机交易报文进行跨行转接处理时,如果能够从交易报文域的角度对交易报文的报文域进行实时纠错,则可以达到提高交易成功率的目的。以消费交易为例,在图5a中示出了在交易请求报文不符合规范的情况下,交易发送方、跨行转接系统与交易接收方之间的带有实时纠错的报文通信流程。在图5b中示出了在交易应答报文不符合规范的情况下,交易发送方、跨行转接系统与交易接收方之间的带有实时纠错的报文通信流程。 Figures 5a and 5b schematically show the application of the present invention in the bank's inter-bank transaction system, respectively. When performing cross-bank transfer processing on online transaction messages, if real-time error correction can be performed on the message field of the transaction message from the perspective of the transaction message field, the goal of improving the transaction success rate can be achieved. Taking consumer transactions as an example, Figure 5a shows the message communication process with real-time error correction between the transaction sender, the inter-bank transfer system and the transaction receiver when the transaction request message does not meet the specifications . Figure 5b shows the message communication process with real-time error correction between the transaction sender, the inter-bank switching system and the transaction receiver when the transaction response message does not meet the specifications.

在图5a的情况中,跨行转接设备可以被构造为具有图2所示的结构并且能够执行例如图3所示的流程。当检查到来自交易发送方的消费交易请求报文中具有不合规的报文域时,跨行转接设备向交易发送方发出纠错请求,即发送纠错请求报文。相应地,交易发送方可以被构造为具有图4a所示的结构,并且依据图4b所示的流程向跨行转接设备返回纠错应答。进而,跨行转接设备可以例如依据图3所示的流程生成经纠错的消费交易请求并且将其转送至交易接收方。在来自交易接收方的消费交易应答符合规范的情况下,该应答报文可以通过跨行转接设备直接转送至交易发送方,而无需执行纠错进程。 In the case of FIG. 5 a , the cross-row switching device may be configured to have the structure shown in FIG. 2 and be able to execute, for example, the flow shown in FIG. 3 . When it is detected that there are non-compliant message fields in the consumption transaction request message from the transaction sender, the inter-bank switching device sends an error correction request to the transaction sender, that is, sends an error correction request message. Correspondingly, the transaction sender can be configured to have the structure shown in FIG. 4a, and return an error correction response to the inter-bank transfer device according to the flow shown in FIG. 4b. Furthermore, the inter-bank switching device can, for example, generate an error-corrected consumption transaction request according to the flow shown in FIG. 3 and forward it to the transaction receiver. In the case that the consumption transaction response from the transaction receiver meets the specifications, the response message can be directly transferred to the transaction sender through the inter-bank transfer device without performing an error correction process.

图5b的情况与图5a相似,区别在于跨行转接设备检查出来自交易接收方的消费交易应答报文具有不合规的报文域,因此在跨行转接设备与交易接收方之间将存在纠错请求与应答过程。 The situation in Figure 5b is similar to that in Figure 5a, except that the inter-bank transfer device detects that the consumption transaction response message from the transaction receiver has an illegal message field, so there will be an Error correction request and response process.

在图5a和图5b所示的跨行转接通信流程中,一旦跨行转接设备发现终端的不合规交易,不会像以往一样直接拒绝交易,而是通过纠错系统的纠错,一方面更正了经报文发送方实时确认和授权的错误信息,另一方面对于没有通过实时确认和授权的错误,可以进行记录,后续向银行系统反馈,而不用耗费大量的精力去频繁改造系统,这样就能在很短的周期内快速提高跨行交易的成功率。 In the inter-bank transfer communication process shown in Figure 5a and Figure 5b, once the inter-bank transfer device finds a non-compliant transaction at the terminal, it will not directly reject the transaction as before, but will correct the error through the error correction system. On the one hand Corrected the error information that has been confirmed and authorized by the message sender in real time. On the other hand, for errors that have not passed real-time confirmation and authorization, it can be recorded and subsequently fed back to the banking system without spending a lot of energy to frequently transform the system. In this way It can quickly improve the success rate of cross-bank transactions in a short period of time.

以上列举了若干具体实施例来详细阐明本发明,这些个例仅供说明本发明的原理及其实施方式之用,而非对本发明的限制,在不脱离本发明的精神和范围的情况下,本领域的普通技术人员还可以做出各种变形和改进。因此所有等同的技术方案均应属于本发明的范畴并为本发明的各项权利要求所限定。 Above enumerated several specific embodiments to illustrate the present invention in detail, these individual examples are only for the usefulness of explaining the principle of the present invention and implementation thereof, rather than limitation of the present invention, under the situation of not departing from the spirit and scope of the present invention, Various modifications and improvements can also be made by those skilled in the art. Therefore, all equivalent technical solutions shall belong to the category of the present invention and be limited by the claims of the present invention.

Claims (23)

1. be used in the message switch method in on-line system, it is characterized in that, described method comprises:
Determine message to be sent whether have do not meet described on-line system in accordance with the message territory of communication specification;
Carry out error correction process to generate the message to be sent through error correction to thering is the message to be sent in the message territory that does not meet described communication specification; And
Transmit the described message to be sent through error correction to the recipient of described message to be sent.
2. the method for claim 1, is characterized in that, described error correction process comprises the following steps:
Based on the Information generation error correction request message associated with not conforming to rule message territory;
Transmit described error correction request message to the transmit leg of described message to be sent; And
Generate the message to be sent through error correction in response to replying from the error correction request of described transmit leg.
3. the method for claim 1, is characterized in that, determines that the step whether message to be sent has a message territory that does not meet described communication specification comprises:
Message to be sent is carried out to message and unpack process; And
According to described communication specification, compliance inspection is carried out in each message territory that unpacks acquisition.
4. method as claimed in claim 3, it is characterized in that, described method was also included in before described recipient transmits the described message to be sent through error correction determines in the mode identical with message to be sent whether the described message to be sent through error correction has the message territory that does not meet described communication specification.
5. method as claimed in claim 4, it is characterized in that, described method is also included as to be had the message accounting error correction daily record to be sent through error correction in the message territory that does not meet described communication specification and determines whether to transmit the described message to be sent through error correction to described recipient according to not conforming to the error-critical of advising message territory.
6. the method for claim 1, is characterized in that, described method is also included as the message to be sent with the message territory that does not meet described communication specification and sets instruction it enters the mark of error correction process.
7. method as claimed in claim 2, is characterized in that, described error correction request message at least comprises described message to be sent, error message domain identifier and the reason-code of makeing mistakes.
8. method as claimed in claim 7, is characterized in that, described in the reason of makeing mistakes comprise the few territory of message, message multiple domain, Domain Properties mistake and territory value mistake.
9. the method as described in any one in claim 1-8, is characterized in that, the inter-bank transaction system that described on-line system is bank.
10. the message switch equipment in on-line system, is characterized in that, described equipment comprises:
Inspection unit, its be configured to determine message to be sent whether have do not meet described on-line system in accordance with the message territory of communication specification;
Error correction unit, its message to be sent being configured to having the message territory that does not meet described communication specification is carried out error correction process to generate the message to be sent through error correction; And
Transmitting element, it is constructed to transmit the described message to be sent through error correction to the recipient of described message to be sent.
11. equipment as claimed in claim 10, is characterized in that, described error correction process comprises the following steps:
Based on the Information generation error correction request message associated with not conforming to rule message territory;
Call described transmitting element and transmit described error correction request message to the transmit leg of described message to be sent; And
Generate the message to be sent through error correction in response to replying from the error correction request of described transmit leg.
12. equipment as claimed in claim 10, it is characterized in that, described inspection unit is configured to that message to be sent is carried out to message and unpacks process and according to described communication specification, compliance inspection is carried out in each message territory that unpacks acquisition, determines thus whether message to be sent has the message territory that does not meet described communication specification.
13. equipment as claimed in claim 11, it is characterized in that, described inspection unit is also configured to determine through the message to be sent of error correction and in the mode identical with message to be sent whether the described message to be sent through error correction has the message territory that does not meet described communication specification from described error correction unit reception is described.
14. equipment as claimed in claim 13, it is characterized in that, described equipment also comprises control unit, and described control unit is configured to the message accounting error correction daily record to be sent through error correction for having the message territory that does not meet described communication specification and determines whether to transmit the described message to be sent through error correction to described recipient according to not conforming to the error-critical of advising message territory.
15. equipment as claimed in claim 14, is characterized in that, the message setting to be sent that described control unit is also configured to as having the message territory that does not meet described communication specification indicates it to enter the mark of error correction process.
16. equipment as claimed in claim 11, is characterized in that, described error correction request message at least comprises described message to be sent, error message domain identifier and the reason-code of makeing mistakes.
17. equipment as claimed in claim 13, is characterized in that, described in the reason of makeing mistakes comprise the few territory of message, message multiple domain, Domain Properties mistake and territory value mistake.
18. equipment as described in any one in claim 11-17, is characterized in that the inter-bank transaction system that described on-line system is bank.
Terminal equipment in 19. 1 kinds of on-line systems, described on-line system comprises message switch equipment, described message switch equipment is used to transfer to the recipient of described message in described on-line system from the message of described terminal equipment, it is characterized in that, described terminal equipment comprises error correction unit and transmitting element, wherein
It is that the message previously sending generates corrigendum message that described error correction unit is configured in response to the error correction request message from described message switch equipment; And described transmitting element is configured to send to described message switch equipment the error correction that comprises described corrigendum message and replys;
The message of described previous transmission have do not meet described on-line system in accordance with the message territory of communication specification, and described error correction request message comprises and does not conform to the associated information in rule message territory.
20. terminal equipments as claimed in claim 19, it is characterized in that, the rule message territory that do not conform to that described error correction unit is configured to there being error correction record directly generates corrigendum message based on described error correction record, and the rule message territory that do not conform to without error correction record is adopted to default setting or real-time informing artificial treatment.
21. terminal equipments as claimed in claim 19, is characterized in that, described error correction request message at least comprises described message to be sent, error message domain identifier and the reason-code of makeing mistakes.
22. terminal equipments as claimed in claim 21, is characterized in that, described in the reason of makeing mistakes comprise the few territory of message, message multiple domain, Domain Properties mistake and territory value mistake.
23. terminal equipments as described in claim 19-22, is characterized in that the inter-bank transaction system that described on-line system is bank.
CN201310024303.2A 2013-01-23 2013-01-23 Message transferring method, message transferring device and terminal device in online system Pending CN103944817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310024303.2A CN103944817A (en) 2013-01-23 2013-01-23 Message transferring method, message transferring device and terminal device in online system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310024303.2A CN103944817A (en) 2013-01-23 2013-01-23 Message transferring method, message transferring device and terminal device in online system

Publications (1)

Publication Number Publication Date
CN103944817A true CN103944817A (en) 2014-07-23

Family

ID=51192307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310024303.2A Pending CN103944817A (en) 2013-01-23 2013-01-23 Message transferring method, message transferring device and terminal device in online system

Country Status (1)

Country Link
CN (1) CN103944817A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110228508A (en) * 2019-06-12 2019-09-13 中国神华能源股份有限公司 Train crosses vehicle message method for detecting abnormality and detection device
WO2020155483A1 (en) * 2019-01-31 2020-08-06 平安科技(深圳)有限公司 Method and apparatus for adapting http request message header, and computer device
CN112055016A (en) * 2020-09-02 2020-12-08 中国建设银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN113783860A (en) * 2021-09-01 2021-12-10 建信金融科技有限责任公司 Message processing method, device and equipment based on visual configuration

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197783A (en) * 2007-12-28 2008-06-11 华为技术有限公司 A method and converter for transmitting data message
CN101309125A (en) * 2008-07-10 2008-11-19 浙江大学 Multi-channel concurrent access multimedia data transmission method
CN101656603A (en) * 2009-09-15 2010-02-24 中国人民解放军国防科学技术大学 Method, device and system for transmitting data by adopting retransmission and coding negotiation
CN101808362A (en) * 2009-02-13 2010-08-18 上海贝尔股份有限公司 Method and device for adjusting sleep mode of mobile station
CN102104463A (en) * 2009-12-22 2011-06-22 中兴通讯股份有限公司 Data message request retransmission method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197783A (en) * 2007-12-28 2008-06-11 华为技术有限公司 A method and converter for transmitting data message
CN101309125A (en) * 2008-07-10 2008-11-19 浙江大学 Multi-channel concurrent access multimedia data transmission method
CN101808362A (en) * 2009-02-13 2010-08-18 上海贝尔股份有限公司 Method and device for adjusting sleep mode of mobile station
CN101656603A (en) * 2009-09-15 2010-02-24 中国人民解放军国防科学技术大学 Method, device and system for transmitting data by adopting retransmission and coding negotiation
CN102104463A (en) * 2009-12-22 2011-06-22 中兴通讯股份有限公司 Data message request retransmission method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
闫小甲: "反洗钱系统总结", 《闫小甲的博客》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020155483A1 (en) * 2019-01-31 2020-08-06 平安科技(深圳)有限公司 Method and apparatus for adapting http request message header, and computer device
CN110228508A (en) * 2019-06-12 2019-09-13 中国神华能源股份有限公司 Train crosses vehicle message method for detecting abnormality and detection device
CN110228508B (en) * 2019-06-12 2021-10-12 中国神华能源股份有限公司 Train passing message abnormity detection method and detection device
CN112055016A (en) * 2020-09-02 2020-12-08 中国建设银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN112055016B (en) * 2020-09-02 2023-02-28 中国建设银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN113783860A (en) * 2021-09-01 2021-12-10 建信金融科技有限责任公司 Message processing method, device and equipment based on visual configuration
CN113783860B (en) * 2021-09-01 2023-11-28 建信金融科技有限责任公司 Message processing method, device, equipment and storage medium based on visual configuration

Similar Documents

Publication Publication Date Title
EP3734913A1 (en) Communication method and communication apparatus
CN107240001B (en) A digital asset transaction method and system
KR102167613B1 (en) Message push method and device
US11393032B2 (en) Systems and methods for providing real-time pre-trade risk assessment
CN110830442A (en) Message processing method, device and gateway
CN103905504A (en) Information pushing method and system
US20250016130A1 (en) Techniques to provide streaming data resiliency utilizing a distributed message queue system
CN104376491A (en) Virtual resource monitoring method, device and system
CN103944817A (en) Message transferring method, message transferring device and terminal device in online system
CN101188618B (en) Method, system, server and terminal for canceling push message
CN103546368A (en) Data transmission method, device, instant messaging method and system
CN108092921A (en) A data exchange system and method
CN104602180A (en) Method for creating subscription resource system and creating subscription resources
CN104751323A (en) Method for transferring electronic account data and related device and related system
CN104994074B (en) A kind of implementation method of the health examination machine communication server
CN104022948B (en) TypeX message transfer systems and method
CN103329155B (en) Relay, ATM system, information trunking method and program
CN113473243B (en) Data processing method and apparatus thereof
CN103685249A (en) Method for application registration, terminals and server
CN116112197B (en) Authentication information transmission method, authentication information transmission system, storage medium and device
CN114253865A (en) Financial system client testing method and device and electronic equipment
US12199889B2 (en) Unidirectional gateway mediated delivery of data messages
CN109165855B (en) Financial business application data model system and control method thereof
CN105897878A (en) Data link layer initialization method and data link layer initialization device
CN112118273B (en) Data interaction method, system and first client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140723