WO2016058319A1 - Gt翻译方法、setp和计算机存储介质 - Google Patents

Gt翻译方法、setp和计算机存储介质 Download PDF

Info

Publication number
WO2016058319A1
WO2016058319A1 PCT/CN2015/074041 CN2015074041W WO2016058319A1 WO 2016058319 A1 WO2016058319 A1 WO 2016058319A1 CN 2015074041 W CN2015074041 W CN 2015074041W WO 2016058319 A1 WO2016058319 A1 WO 2016058319A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
sent
node
translation
source
Prior art date
Application number
PCT/CN2015/074041
Other languages
English (en)
French (fr)
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 中兴通讯股份有限公司
Publication of WO2016058319A1 publication Critical patent/WO2016058319A1/zh

Links

Images

Definitions

  • the present invention relates to message processing technologies in the field of communications, and in particular, to a Global Title (GT) translation and signaling point (SET) and computer storage medium.
  • GT Global Title
  • SET signaling point
  • GT translation refers to the Signaling System 7, SS7 protocol for protocol addressing and routing, and sends the message to be sent to the next node.
  • embodiments of the present invention are expected to provide a GT translation method, a SETP, and a computer storage medium, in an expectation to solve at least one of the above problems.
  • a first aspect of the embodiments of the present invention provides a GT translation method, where the method includes:
  • the first node determines a source of the message to be sent
  • the first translation rule is used to perform GT translation; when the message source indicates that the to-be-sent message is received from the second node.
  • the second translation rule is used for GT translation.
  • the first node determines a source of the message to be sent, including:
  • the first node includes an external communication interface
  • Determining, according to the obtaining path of the to-be-sent message, the source of the message to be sent including:
  • the to-be-sent message is a message received by the external communication interface, determining that the to-be-sent message is a message received from the second node; otherwise determining that the to-be-sent message is a message formed by the first node.
  • the first type of GT code carried in the to-be-sent message is the first type of GT code carried in the to-be-sent message
  • the first node determines a source of the message to be sent, including:
  • the first type of GT code is a GT code forming a source node of the to-be-sent message, or a GT code formed according to the GT code of the source node.
  • the method further includes:
  • the first translation rule is used to perform GT translation; when the message source indicates that the to-be-sent message is from the second node
  • the second translation rule is used for GT translation, including:
  • the message source identifier indicates that the to-be-sent message is a message formed by the first node itself, querying according to the message source identifier and selecting a first translation rule to perform GT translation; when the message source identifier indicates the When the message to be sent is a message received from the second node, the GT translation is performed according to the message source identifier and selecting the second translation rule.
  • the performing GT translation includes:
  • a second aspect of the embodiment of the present invention provides a SETP, where the SETP is a first node
  • the SETP includes:
  • Determining a unit configured to determine a source of the message to be sent
  • a translation unit configured to: when the message source indicates that the to-be-sent message is a message formed by the first node itself, perform GT translation by using a first translation rule; and when the message source indicates that the to-be-sent message is When the message is received from the second node, the second translation rule is used for GT translation.
  • the determining unit is configured to determine a source of the message to be sent according to the acquiring path of the to-be-sent message.
  • the first node includes an external communication interface
  • the determining unit is configured to: when the to-be-sent message is a message received by the external communication interface, determine that the to-be-sent message is a message received from a second node; when the to-be-sent message is not When the message is received by the external communication interface, the message to be sent is determined to be a message formed by the first node.
  • the first type of GT code carried in the to-be-sent message is the first type of GT code carried in the to-be-sent message
  • the determining unit is further configured to determine a source of the message to be sent according to the first type of GT code
  • the first type of GT code is a GT code that forms a source node of the message to be sent, or A GT code formed according to the GT code of the source node.
  • the SETP also includes:
  • a first forming unit configured to form a message source identifier according to the message source
  • the translation unit is configured to: when the message source identifier indicates that the message to be sent is a message formed by the first node itself, query and select a first translation rule according to the message source identifier to perform GT translation; When the message source identifier indicates that the to-be-sent message is a message received from the second node, querying according to the message source identifier and selecting a second translation rule to perform GT translation.
  • the translation unit is configured to extract identification information of the target node carried in the to-be-sent message; and perform the GT translation according to the identification information of the target node and the first translation rule or the second translation rule .
  • the third aspect of the embodiments of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used to execute at least one of the methods of the first aspect of the embodiments of the present invention. one.
  • the GT translation method, the SETP and the computer storage medium determine the translation rule according to the source of the message when performing the GT translation, so that when the message of the specified information source needs to be sent to the designated node for specific processing, it is convenient.
  • SETP sends a message from the specified information source to the specified node to specify the node for specific service processing.
  • FIG. 1 is a schematic flowchart of a GT translation according to an embodiment of the present invention
  • FIG. 2 is a second schematic flowchart of a GT translation according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a SETP according to an embodiment of the present invention.
  • FIG. 4 is a second schematic structural diagram of a SETP according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of GT translation and message forwarding according to an example of the present invention.
  • FIG. 6 is a second schematic diagram of GT translation and message forwarding according to an example of the present invention.
  • SETP can be used as a forwarding node to send messages to a target node, or as a source node to send messages to a target node.
  • GT translation using the existing SS7 protocol is based on the target node for GT translation, so that when performing GT translation, the SETP node will not distinguish whether it is a message to be forwarded or a message sent to the target node by itself.
  • the message to be forwarded needs to be specially processed by the designated signaling node, since the GT translation does not distinguish between the two types of messages, the above-mentioned node that is to be sent or to be forwarded does not pass the specified designated message may be directly forwarded. Go to the target node, and the specified node does not obtain the phenomenon of the message to be sent or to be forwarded.
  • the GT translation method, the SETP and the computer storage medium provided by the embodiments of the present invention when performing the GT translation, determine a translation rule according to a message source, so that when a message of a specified information source needs to be sent to a specified node for specific processing, A problem that facilitates SETP to send a message from a specified source of information to the specified node based on the GT translation result.
  • this embodiment provides a GT translation method, where the method includes:
  • Step S110 The first node determines a source of the message to be sent.
  • Step S121 When the message source indicates that the to-be-sent message is a message formed by the first node itself, the first translation rule is used to perform GT translation;
  • Step S122 When the message source indicates that the to-be-sent message is a message received from the second node, the GT translation is performed by using the second translation rule.
  • the first node is a SETP; the SETP is a forwarding node, and may also serve as a source node. When used as a forwarding node, it is used to receive messages from other nodes, and then translate the message to determine the next node forwarding, so as to forward the message to the target node. When the SETP is used as a source node, the SETP itself forms a transmission message, which is sent to the target node through other forwarding nodes.
  • the second node is a node other than the first node; the second node may be a source node that forms the to-be-sent message, or may be a relay before the first node to forward the to-be-waited The forwarding node that sent the message.
  • the first node or the SETP described in this embodiment determines the source of the message to be sent before performing the GT translation, and specifically includes distinguishing whether the message to be sent is a message formed by the first node itself, or Messages to be forwarded received by other nodes.
  • the message to be sent formed by the SETP itself may be different from the route that the to-be-sent message that needs to be forwarded from other nodes may need to pass; for example, the message to be sent formed by the SETP itself needs to be processed by the first type of designated node, and/or from The receiving, by the other node, the message to be sent needs to be processed by the specified node of the second type; wherein the first type of the specified node may be the same as or different from the specified node of the second type; Different from the specified node of the second type.
  • the message processing includes: adding part of the message content, deleting part of the message content, and/or message conversion and the like.
  • the method described in this embodiment is particularly applicable to more than one message to be sent, and the to-be-sent message of more than one may include at least two to-be-sent messages that are the same as the target node. This may be that the source of at least two of the messages to be sent that are identical to the target nodes may be different, some may come from the first node itself, and possibly from the second node. If the target nodes of the two messages to be sent are the same, if the GT translation is performed according to the target node by the conventional method, the path is selected.
  • the message that needs to be processed by the specified node will not be processed by the specified node, which will cause the specified processing to fail; or the message processed by the specified node does not need to enter the specified node for message processing. This may result in the problem of not selecting the most suitable transmission route, and thus the transmission delay and unnecessary processing of the message.
  • the method described in this embodiment can well avoid the above problem.
  • step S110 There are many specific implementation manners of the step S110, and at least the following manners are included:
  • the first type determining a source of the message to be sent according to the obtaining path of the to-be-sent message.
  • the to-be-sent message from the first node may be determined as a message formed by the first node itself; the to-be-sent message from the second node outside the first node is a message received from the second node;
  • the first node includes an external communication interface; and the step S110 includes: determining that the to-be-sent message is a message received from the second node when the to-be-sent message is a message received by the external communication interface. Otherwise, it is determined that the to-be-sent message is a message formed by the first node.
  • the to-be-sent message is a message formed by the first node by a function call, the message formed by the first node itself.
  • the first type of GT code carried in the to-be-sent message is the first type of GT code carried in the to-be-sent message
  • the first node determines a source of the message to be sent, including:
  • the GT code of the source node may be changed according to the GT translation rule. Therefore, the GT code of the first type may be the GT code of the source node of the message to be sent, and may also be based on The GT code formed by the GT code of the source node.
  • the first type of GT code is the corresponding GT code of the first node itself, it may be confirmed that the to-be-sent message forms a message for the first node itself, otherwise it is from the second node. Received message.
  • the method determines the source of the message, and is applicable to the to-be-sent message carrying the first type of GT code; wherein the first type of GT code represents the source of the to-be-sent message.
  • the source node of the message A (that is, the information to be sent) may be the node A, and the intermediate node B has arrived at the node C where it is currently located.
  • the first type of GT code carried by the message A may be It is the GT code of the intermediate node B; and the first type GT code carried by the intermediate message A is the GT code formed based on the GT code of its source node (node A).
  • the GT code in the message A may be negotiated between the GT code of the original node A, the intermediate node B and the node A, and the GT code is performed. Replacement.
  • the GT code formed based on the GT code of the source node may further be another GT code that identifies the source of the message to be sent, which is determined according to the GT code of the source node and the GT code generation policy of the message to be sent.
  • the method further includes:
  • Step S111 Form a message source identifier according to the source of the message
  • the step S120 includes:
  • the message source identifier indicates that the to-be-sent message is a message formed by the first node itself, querying according to the message source identifier and selecting a first translation rule to perform GT translation;
  • the message source identifier indicates that the to-be-sent message is a message received from the second node, querying according to the message source identifier and selecting a second translation rule to perform GT translation.
  • the message source identifier is used as an index to determine or query translation rules.
  • the performing GT translation includes:
  • the identification information of the target node is preferably a GT code of the target node.
  • the message needs to be forwarded to the target node, so the message usually carries the identification information of the target node.
  • the identification information of the target node Specifically, such as GT code or identification address, in order to implement addressing and routing of GT translation, it is necessary to address and route according to the identification information of the target node to determine the next hop node.
  • the method further includes:
  • the third node may be the target node or the next forwarding node.
  • the GT translation method in this embodiment determines the source of the message to be sent before performing GT translation, and performs GT translation according to the source of the message to implement whether to distinguish the message formed by the SETP, and finally realize Addressing and routing forward messages to implement specific processing of information from different sources in different application scenarios.
  • this embodiment provides a SETP, where the SETP is a first node.
  • the SETP includes:
  • the determining unit 110 is configured to determine a source of the message to be sent
  • the translating unit 120 is configured to: when the message source indicates that the to-be-sent message is a message formed by the first node itself, perform GT translation by using a first translation rule; and when the message source indicates the to-be-sent message For the message received from the second node, the second translation rule is used for GT translation.
  • the specific structure of the determining unit 110 and the translating unit 120 may include a storage medium and a processor; the storage medium and the processor are connected by a total; the storage medium stores executable instructions; the processing The function of the determining unit 110 and/or the translating unit 120 can be implemented by reading and running the executable instruction; the determining unit 110 and the translating unit 120 can respectively correspond to different processors and storage media, or The integration corresponds to the same processor or storage medium, and when corresponding to the same processor, the processor performs the functions of the determining unit 110 and the translating unit 120, respectively, by means of time division multiplexing or concurrent threads.
  • the processor may be an application processor AP, a central processing unit CPU, a microprocessor MCU,
  • the digital signal processor DSP can also be a processing function electronic component such as a programmable logic array PLC.
  • the storage medium corresponding to the translation unit is further configured to store the first translation rule and the second translation rule.
  • the determining unit 110 is configured to determine a source of the message to be sent according to the acquiring path of the to-be-sent message.
  • the first node includes an external communication interface
  • the determining unit 110 is configured to: when the message to be sent is a message received by using the external communication interface, determine that the to-be-sent message is from the second node. Receiving a message; when the to-be-sent message is not a message received by the external communication interface, determining that the to-be-sent message is a message formed by the first node.
  • the determining unit 110 is further configured to determine a source of the message to be sent according to the first type of GT code, where the first type of GT code is a GT code that forms a source node of the to-be-sent message. Or a GT code formed according to the GT code of the source node.
  • the determining unit 110 may include a comparison module, where the comparing module is configured to compare the first type of GT code with the GT code of the first node itself, and determine the to-be-sent message according to the comparison result. Whether is the message formed by the first node itself.
  • the specific structure of the comparison module may be a processor with a comparison function or one or more comparators.
  • the specific structure of the processor refer to the above part of the embodiment.
  • the structure of the comparator can be seen in the prior art, and will not be described in detail herein.
  • the SETP further includes:
  • the first forming unit 130 is configured to form a message source identifier according to the source of the message
  • the translation unit 120 is configured to: when the message source identifier indicates that the message to be sent is a message formed by the first node itself, query and select a first translation rule according to the message source identifier to perform GT translation; and When the message source identifier indicates that the to-be-sent message is a message received from the second node, querying according to the message source identifier and selecting a second translation rule Line GT translation.
  • the source identifier may be an index or basis for querying the first translation rule and the second translation rule.
  • the translation unit 120 is configured to extract identification information of the target node carried in the to-be-sent message; and perform the GT according to the identification information of the target node and the first translation rule or the second translation rule. translation.
  • the SETP described in this embodiment provides a hardware support for the method in the method embodiment, and can be used to implement any technical solution in the method embodiment, and has the advantages of simple structure.
  • the communication system includes SEP1, SEP2, and SETP; the SEP1 is a source node that sends a message, and the SETP can be forwarded or sent by itself.
  • SEPX is also included in Figure 6; the SEPx is another SETP.
  • the SETP includes a SEP portion and an STP portion; the SEP portion is used to form a message; the STP is used for GT translation, receiving a message, and transmitting a message.
  • the GT1 is the global number GT of the SEP1; the GT2 is the global number GT of the SEP2.
  • Shown in Figures 5 and 6 is a message that SETP needs to send a message with a different source and the target node is SEP2.
  • the dotted arrow 1 indicates that the message is transmitted by SP1, and the transmission path is forwarded to SEP2 via SETP; the message indicated by the dotted arrow 2 is sent to the transmission path of SEP2 by SETP, and GT2 is used for GT translation and transmission.
  • -> SEP2 translation rules (where GT2->SEP2 only indicates that the next signaling node is SEP2 according to GT2), and if SETP does not distinguish whether the message is formed by SETP itself or received from SEP1, then Whether it is SETP formation
  • the next message of the message formed by SEP1 is SEP2.
  • the dotted arrow 1 indicates that the message is transmitted by SP1, and the transmission path is forwarded to SEP2 via SETP; the message indicated by the dotted arrow 2 is sent to the transmission path of SEPx by SETP; when performing GT translation, the translation rule considers not only the target node Also consider the source of information (such as received from SEP1 or SETP).
  • the message to be sent is received from SEP1, it is received according to GT2+ -> SEP2; when the message to be sent is formed by SETP, it is sent according to GT2+. >SEPx; Obviously, if the message to be sent is received from SEP1, it is sent directly to SEP2; if it is formed by SETP, it is sent to SEPx first.
  • a communication carrier When a communication carrier needs to send a short message or a timely message from a certain node, it performs an upper layer service processing, such as adding certain information or deleting certain information, such as adding a carrier identification number and other message processing in the short message.
  • an upper layer service processing such as adding certain information or deleting certain information, such as adding a carrier identification number and other message processing in the short message.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used to execute at least one of the methods in the method embodiment, specifically 1. At least one of Figures 2, 5 and 6.
  • the computer storage medium may be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program code.
  • the computer storage medium is a non-transitory storage medium.

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种GT翻译方法及SETP,所述方法包括:第一节点确定待发送消息的消息来源;当所述消息来源表明所述待发送消息为所述第一节点自身形成的消息时,采用第一翻译规则进行GT翻译;及当所述消息来源表明所述待发送消息为从第二节点接收的消息时,采用第二翻译规则进行GT翻译。本发明还公开了一种计算机存储介质。

Description

GT翻译方法、SETP和计算机存储介质 技术领域
本发明涉及通信领域的消息处理技术,尤其涉及一种全局号(Global Title,GT)翻译及信令转接点(Signaling End/Transfer Point,SETP)和计算机存储介质。
背景技术
目前,GT翻译参照7号信令(Signaling System 7,SS7)协议进行协议寻址和选路,将待发送消息发送到下一节点。
在进行具体实现时发现,存在着在有时候待发送消息,直接无法经过指定节点就直接发送到了目标节点现象,这其中导致某些指定节点没有获取待该待发送消息的问题。
发明内容
有鉴于此,本发明实施例期望提供一种GT翻译方法、SETP和计算机存储介质,以期待解决上述问题至少其中之一。
本发明的技术方案是这样实现的:
本发明实施例第一方面提供一种GT翻译方法,所述方法包括:
第一节点确定待发送消息的消息来源;
当所述消息来源表明所述待发送消息为所述第一节点自身形成的消息时,采用第一翻译规则进行GT翻译;当所述消息来源表明所述待发送消息为从第二节点接收的消息时,采用第二翻译规则进行GT翻译。
基于上述方案,
所述第一节点确定待发送消息的消息来源,包括:
依据所述待发送消息的获取途径确定所述待发送消息的消息来源。
基于上述方案,
所述第一节点包括外部通信接口;
所述依据所述待发送消息的获取途径确定所述待发送消息的消息来源,包括:
当所述待发送消息为通过所述外部通信接口接收的消息时,确定所述待发送消息为从第二节点接收的消息;否则确定所述待发送消息为所述第一节点形成的消息。
基于上述方案,
所述待发送消息中携带的第一类GT码;
所述第一节点确定待发送消息的消息来源,包括:
依据所述第一类GT码,确定所述待发送消息的消息来源;
其中,所述第一类GT码为形成所述待发送消息的源节点的GT码,或依据所述源节点的GT码而形成的GT码。
基于上述方案,
所述方法还包括:
依据所述消息来源形成消息来源标识;
所述当所述消息来源表明所述待发送消息为所述第一节点自身形成的消息时,采用第一翻译规则进行GT翻译;当所述消息来源表明所述待发送消息为从第二节点接收的消息时,采用第二翻译规则进行GT翻译,包括:
当所述消息来源标识表明所述待发送消息为所述第一节点自身形成的消息时,依据所述消息来源标识查询并选择第一翻译规则进行GT翻译;当所述消息来源标识表明所述待发送消息为从第二节点接收的消息时,依据所述消息来源标识查询并选择第二翻译规则进行GT翻译。
基于上述方案,
所述进行GT翻译包括:
提取所述待发送消息中携带的目标节点的标识信息;
依据所述目标节点的标识信息及所述第一翻译规则或所述第二翻译规则进行所述GT翻译。
本发明实施例第二方面提供一种SETP,所述SETP为第一节点;
所述SETP包括:
确定单元,配置为确定待发送消息的消息来源;
翻译单元,配置为当所述消息来源表明所述待发送消息为所述第一节点自身形成的消息时,采用第一翻译规则进行GT翻译;及当所述消息来源表明所述待发送消息为从第二节点接收的消息时,采用第二翻译规则进行GT翻译。
基于上述方案,
所述确定单元,配置为依据所述待发送消息的获取途径确定所述待发送消息的消息来源。
基于上述方案,
所述第一节点包括外部通信接口;
所述确定单元,配置为当所述待发送消息为通过所述外部通信接口接收的消息时,确定所述待发送消息为从第二节点接收的消息;当所述待发送消息不是通过所述外部通信接口接收的消息时,确定所述待发送消息为所述第一节点形成的消息。
基于上述方案,
所述待发送消息中携带的第一类GT码;
所述确定单元,还配置为依据所述第一类GT码,确定所述待发送消息的消息来源;
其中,所述第一类GT码为形成所述待发送消息的源节点的GT码,或 依据所述源节点的GT码而形成的GT码。
基于上述方案,
所述SETP还包括:
第一形成单元,配置为依据所述消息来源形成消息来源标识;
所述翻译单元,配置为当所述消息来源标识表明所述待发送消息为所述第一节点自身形成的消息时,依据所述消息来源标识查询并选择第一翻译规则进行GT翻译;及当所述消息来源标识表明所述待发送消息为从第二节点接收的消息时,依据所述消息来源标识查询并选择第二翻译规则进行GT翻译。
基于上述方案,
所述翻译单元,配置为提取所述待发送消息中携带的目标节点的标识信息;及依据所述目标节点的标识信息及所述第一翻译规则或所述第二翻译规则进行所述GT翻译。
本发明实施例第三方面还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例第一方面所述方法的至少其中之一。
本发明实施例所述的GT翻译方法、SETP和计算机存储介质,在进行GT翻译时,依据消息来源确定翻译规则,这样实现当需要对指定信息来源的消息发送到指定节点进行特定处理时,方便SETP根据GT翻译结果将来自指定信息来源的消息发送到指定节点,以便指定节点进行特定业务处理。
附图说明
图1为本发明实施例所述的GT翻译的流程示意图之一;
图2为本发明实施例所述的GT翻译的流程示意图之二;
图3为本发明实施例所述的SETP的结构示意图之一;
图4为本发明实施例所述的SETP的结构示意图之二;
图5为本发明示例所述的GT翻译及消息转发示意图之一;
图6为本发明示例所述的GT翻译及消息转发示意图之二。
具体实施方式
以下结合说明书附图及具体实施例对本发明的技术方案做进一步的详细阐述;应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。
SETP为既可以作为转发节点向目标节点发送消息,也可以自行作为源节点向目标节点发送消息。通过研究发现:采用现有的SS7协议来进行GT翻译是根据目标节点进行GT翻译,这样在进行GT翻译时,SETP节点将不区分出是待转发的消息还是自行向目标节点发送的消息。这样的话,当待转发消息需要经过指定信令节点进行特殊处理时,由于GT翻译不区分这两种消息,就可能出现上述导致待发送或待转发消息没有经过指定通过的指定节点,就直接转发到目标节点,而导致所述指定节点没有获取到所述待发送或待转发消息的现象。
本发明实施例提供的GT翻译方法、SETP和计算机存储介质,在进行所述GT翻译时,将依据消息来源确定翻译规则,这样实现当需要对指定信息来源的消息发送到指定节点进行特定处理时,方便SETP根据GT翻译结果将来自指定信息来源的消息发送到所述指定节点的问题。
方法实施例:
如图1所示,本实施例提供一种GT翻译方法,所述方法包括:
步骤S110:第一节点确定待发送消息的消息来源;
步骤S121:当所述消息来源表明所述待发送消息为所述第一节点自身形成的消息时,采用第一翻译规则进行GT翻译;
步骤S122:当所述消息来源表明所述待发送消息为从第二节点接收的消息时,采用第二翻译规则进行GT翻译。
其中,所述第一节点为SETP;SETP为转发节点,也可以作为源节点。当作为转发节点时,用于从其他节点接收消息,再将消息进行翻译确定下一节点转发,进而以使消息转发到目标节点。当所述SETP作为源节点时,所述SETP本身形成发送消息,通过其他转发节点发送到目标节点。所述第二节点为所述第一节点之外的节点;所述第二节点可以是形成所述待发送消息的源节点,也可以是所述第一节点之前的一个中继转发所述待发送消息的转发节点。
本实施例所述的第一节点或所述SETP,在进行GT翻译之前,会确定待发送消息的消息来源,具体包括,区分待发消息是由所述第一节点自身形成的消息,还是从其他节点接收到的待转发的消息。
由于SETP自身形成的待发送消息,与从其他节点接收需要转发的待发送消息可能需要经过的路由不同;具体如,SETP自身形成的待发送消息需要经过第一类指定节点处理,和/或从其他节点接收需要待发送消息需要经过第二类指定节点处理;其中,所述第一类指定节点可以与所述第二类指定节点相同或也可以不同;可选为所述第一类指定节点与所述第二类指定节点不同。
两种信息来源不同的消息,以不同的翻译规则进行GT翻译,将可能选择不同的路由达到目标节点,从而能够保证消息经过其必须经过的指定节点,再由指定节点做相应的消息处理,所述消息处理包括:增加部分消息内容、删除部分消息内容和/或消息转换等消息处理。
本实施例所述的方法,尤其适用于待发送消息不止一条,且不止一条的所述待发送消息中可能包括目标节点相同的至少两条所述待发送消息。这是这些目标节点相同的至少两条所述待发送消息的消息来源可能不同,有的可能来自第一节点本身,还有可能来自第二节点。若两条待发送消息的目标节点是相同,若采用常规方法仅依据目标节点进行GT翻译来选择路 由,可能会选择完全一样的路由,进而导致其中需要经过指定节点处理的消息,没有经过指定节点处理,这将导致指定处理失败;或不需要经过指定节点处理的消息进入指定节点进行消息处理,这将可能导致没有选择出最合适的传输路由,进而传输延时以及对消息进行不必要处理等问题;而采用本实施例所述的方法,可以很好的规避上述问题。
所述步骤S110的具体实现方式有很多种,至少包括以下方式:
第一种:依据所述待发送消息的获取途径确定所述待发送消息的消息来源。
具体的来自所述第一节点内部的待发送消息,可以确定为所述第一节点自身形成的消息;来自第一节点外部的第二节点的待发送消息,为从第二节点接收的消息;如,所述第一节点包括外部通信接口;所述步骤S110包括:当所述待发送消息为通过所述外部通信接口接收的消息时,确定所述待发送消息为从第二节点接收的消息;否则确定所述待发送消息为所述第一节点形成的消息。
此外,若所述待发送消息是所述第一节点通过函数调用形成的消息则为所述第一节点本身形成的消息。
第二种:
所述待发送消息中携带的第一类GT码;
所述第一节点确定待发送消息的消息来源,包括:
依据所述第一类GT码,确定所述待发送消息的消息来源;
在消息的转发进行GT翻译时,可能会对源节点的GT码依据GT翻译规则进行变更,故所述第一类GT码可能是所述待发送消息的源节点的GT码,还可能是依据所述源节点的GT码而形成的GT码。
具体地,当所述第一类GT码为所述第一节点本身的对应的GT码时,可以确认所述待发送消息为第一节点自身形成消息,否则就是从第二节点 接收的消息。这种方式确定消息来源,适用于携带有第一类GT码的待发送消息;其中,所述第一类GT码表征的所述待发送消息的来源。
例如消息A(即为所述待发送信息)的源节点可能是节点A、经过了中间节点B到达目前所在的节点C,此时,所述消息A的携带的第一类GT码,有可能是中间节点B的GT码;而中间消息A携带的第一类GT码为基于其源节点(节点A)的GT码而形成的GT码。在这种情况下,当所述消息A经过中间节点B时,对所述消息A中的GT码可能由原来节点A的GT码,中间节点B与节点A之间的协商,进行了GT码的替换。
所述基于源节点的GT码而形成的GT码,还可以为直接依据源节点的GT码及待发送消息的GT码生成策略确定的标识待发送消息来源的其他GT码。
如图2所示,所述方法还包括:
步骤S111:依据所述消息来源形成消息来源标识;
所述步骤S120,包括:
当所述消息来源标识表明所述待发送消息为所述第一节点自身形成的消息时,依据所述消息来源标识查询并选择第一翻译规则进行GT翻译;
当所述消息来源标识表明所述待发送消息为从第二节点接收的消息时,依据所述消息来源标识查询并选择第二翻译规则进行GT翻译。
所述消息来源标识作为确定或查询翻译规则的索引。
所述进行GT翻译包括:
提取所述待发送消息中携带的目标节点的标识信息;
依据所述目标节点的标识信息及所述第一翻译规则或所述第二翻译规则进行所述GT翻译。在本发明实施例中所述目标节点的标识信息优选为目标节点的GT码。
消息需要转发到目标节点,故消息中通常携带有目标节点的标识信息, 具体如GT码或标识地址等信息,为了实现GT翻译的寻址和选路,需要依据所述目标节点的标识信息来寻址和选路,以确定下一跳节点。
在具体的实现过程中,在完成所述GT翻译之后,所述方法还包括:
依据所述GT翻译形成对应的GT翻译结果,向第三节点发送所述待发送消息。所述第三节点可能就是目标节点,也可能是下一个转发节点。
综合上述,本实施例所述的GT翻译方法,在进行GT翻译之前,预先确定待发送消息的消息来源,根据消息来源来进行GT翻译,以实现区分是否为本SETP形成的消息,并最终实现寻址和选路转发消息,以实现不同应用场景下的对不同消息来源的信息进行特定处理。
设备实施例:
如图3所示,本实施例提供一种SETP,所述SETP为第一节点;
所述SETP包括:
确定单元110,配置为确定待发送消息的消息来源;
翻译单元120,配置为当所述消息来源表明所述待发送消息为所述第一节点自身形成的消息时,采用第一翻译规则进行GT翻译;及当所述消息来源表明所述待发送消息为从第二节点接收的消息时,采用第二翻译规则进行GT翻译。
所述确定单元110和翻译单元120的具体结构都可包括存储介质以及处理器;所述存储介质和所述处理器之间通过总相连;所述存储介质上存储有可执行指令;所述处理器通过读取并运行所述可执行指令,能实现所述确定单元110和/或翻译单元120的功能;所述确定单元110和翻译单元120可分别对应不同的处理器和存储介质,也可以集成对应同样的处理器或存储介质,当对应于同样的处理器时,所述处理器采用时分复用或并发线程等方式分别执行确定单元110和翻译单元120的功能。
所述处理器可以是应用处理器AP、中央处理器CPU、微处理器MCU、 数字信号处理器DSP还可以是可编程逻辑阵列PLC等具有处理功能电子元器件。
所述翻译单元对应的存储介质,还用于存储所述第一翻译规则和所述第二翻译规则。
所述确定单元110,配置为依据所述待发送消息的获取途径确定所述待发送消息的消息来源。如,所述第一节点包括外部通信接口;所述确定单元110,具体用于当所述待发送消息为通过所述外部通信接口接收的消息时,确定所述待发送消息为从第二节点接收的消息;当所述待发送消息不是通过所述外部通信接口接收的消息时,确定所述待发送消息为所述第一节点形成的消息。
所述确定单元110,还配置为依据所述第一类GT码,确定所述待发送消息的消息来源;其中,所述第一类GT码为形成所述待发送消息的源节点的GT码,或依据所述源节点的GT码而形成的GT码。
具体如,所述确定单元110可包括比较模块,所述比较模块配置为将所述第一类GT码与所述第一节点本身的GT码进行比较;依据比较结果确定所述待发送的消息是否为所述第一节点自身形成的消息。
所述比较模块具体的结构可为具有比较功能的处理器或一个或多个比较器。所述处理器的具体结构可参见本实施例上述部分,所述比较器的结构可参见现有技术,在此就不再详细介绍了。
如图4所示,所述SETP还包括:
第一形成单元130,配置为依据所述消息来源形成消息来源标识;
所述翻译单元120,配置为当所述消息来源标识表明所述待发送消息为所述第一节点自身形成的消息时,依据所述消息来源标识查询并选择第一翻译规则进行GT翻译;及当所述消息来源标识表明所述待发送消息为从第二节点接收的消息时,依据所述消息来源标识查询并选择第二翻译规则进 行GT翻译。
所述消息来源标识可为所述查询所述第一翻译规则和第二翻译规则的索引或依据。
所述翻译单元120,配置为提取所述待发送消息中携带的目标节点的标识信息;及依据所述目标节点的标识信息及所述第一翻译规则或所述第二翻译规则进行所述GT翻译。
综合上述,本实施例所述的SETP为方法实施例所述的方法提供了硬件支撑,可以用于实现方法实施例中任意的技术方案,且具有结构简单的优点。
以下基于方法实施例和/或设备实施例,对本发明实施例示例对比说明。
所述示例用于以下如图5或图6所示的通信系统中,所述通信系统包括SEP1、SEP2以及SETP;所述SEP1为发送消息的一个源节点,SETP为既可以转发也可以自行发送消息的节点;所述SEP2为目标节点。在图6中还包括SEPX;所述SEPx为另一个SETP。所述SETP包括SEP部分以及STP部分;所述SEP部分用于形成消息;所述STP用于GT翻译、接收消息以及发送消息。所述GT1为SEP1的全局号GT;所述GT2为SEP2的全局号GT。
图5和图6中显示的是SETP需要发送来源不同的消息且目标节点均为SEP2的消息。
示例一:
图5中,虚线箭头①表示为消息由SP1发送,经由SETP转发到SEP2的传输路径;虚线箭头②表示的消息由SETP发送到SEP2的传输路径,在进行GT翻译及发送时,均是采用GT2—>SEP2的翻译规则;(其中,所述GT2->SEP2,仅表示依据GT2确定出下一信令节点为SEP2),SETP没有区分消息是由SETP自身形成的还是从SEP1接收的时,则不管是SETP形成 的消息还是SEP1形成的消息的下一节点都是SEP2。
图6中,虚线箭头①表示为消息由SP1发送,经由SETP转发到SEP2的传输路径;虚线箭头②表示的消息由SETP发送到SEPx的传输路径;在进行GT翻译时,翻译规则不仅考虑目标节点,还考虑信息来源(如是从SEP1接收的还是SETP自行形成的)当待发送消息是从SEP1接收的,则依照GT2+接收—>SEP2;当待发送消息是SETP自行形成的,则依照GT2+发送—>SEPx;显然,显然若待发送消息是从SEP1接收的,直接发送到SEP2;若是SETP自行形成的先发送到SEPx。再有SEPx等节点处理转发后将最终转发到SEP2。其中,图6中翻译规则中携带的字样“接收”及“发送”是方法实施例和设备实施例中所述的信息来源标识的一种具体形式。显然对比图5和图6可知,当翻译规则不同时,消息经过的传输路径是不同的。
本发明示例所述方法可应用在以下场景:
当通信运营商需要将从某一个节点发送的短信或及时消息,做一次上层业务处理,具体如添加某些信息或删除某些信息,具体如在短消息中添加运营商标识号等消息处理,再发送目标节点时,则可以采用本发明实施例所述的方法来实现,且具有实现简单便捷的优点。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行方法实施例中所述方法的至少其中之一,具体如图1、图2、图5和图6中的至少其中之一。
所述计算机存储介质可为U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质;在一些实施例中,所述计算机存储介质为非瞬间存储介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不 局限于此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。

Claims (13)

  1. 一种GT翻译方法,所述方法包括:
    第一节点确定待发送消息的消息来源;
    当所述消息来源表明所述待发送消息为所述第一节点自身形成的消息时,采用第一翻译规则进行GT翻译;当所述消息来源表明所述待发送消息为从第二节点接收的消息时,采用第二翻译规则进行GT翻译。
  2. 根据权利要求1所述的方法,其中。
    所述第一节点确定待发送消息的消息来源,包括:
    依据所述待发送消息的获取途径确定所述待发送消息的消息来源。
  3. 根据权利要求2所述的方法,其中,
    所述第一节点包括外部通信接口;
    所述依据所述待发送消息的获取途径确定所述待发送消息的消息来源,包括:
    当所述待发送消息为通过所述外部通信接口接收的消息时,确定所述待发送消息为从第二节点接收的消息;否则确定所述待发送消息为所述第一节点形成的消息。
  4. 根据权利要求1所述的方法,其中,
    所述待发送消息中携带的第一类GT码;
    所述第一节点确定待发送消息的消息来源,包括:
    依据所述第一类GT码,确定所述待发送消息的消息来源;
    其中,所述第一类GT码为形成所述待发送消息的源节点的GT码,或依据所述源节点的GT码而形成的GT码。
  5. 根据权利要求1至4任一项所述的方法,其中,
    所述方法还包括:
    依据所述消息来源形成消息来源标识;
    所述当所述消息来源表明所述待发送消息为所述第一节点自身形成的消息时,采用第一翻译规则进行GT翻译;当所述消息来源表明所述待发送消息为从第二节点接收的消息时,采用第二翻译规则进行GT翻译,包括:
    当所述消息来源标识表明所述待发送消息为所述第一节点自身形成的消息时,依据所述消息来源标识查询并选择第一翻译规则进行GT翻译;当所述消息来源标识表明所述待发送消息为从第二节点接收的消息时,依据所述消息来源标识查询并选择第二翻译规则进行GT翻译。
  6. 根据权利要求1至4任一项所述的方法,其中,
    所述进行GT翻译包括:
    提取所述待发送消息中携带的目标节点的标识信息;
    依据所述目标节点的标识信息及所述第一翻译规则或所述第二翻译规则进行所述GT翻译。
  7. 一种SETP,所述SETP为第一节点;
    所述SETP包括:
    确定单元,配置为确定待发送消息的消息来源;
    翻译单元,配置为当所述消息来源表明所述待发送消息为所述第一节点自身形成的消息时,采用第一翻译规则进行GT翻译;及当所述消息来源表明所述待发送消息为从第二节点接收的消息时,采用第二翻译规则进行GT翻译。
  8. 根据权利要求7所述的SETP,其中,
    所述确定单元,配置为依据所述待发送消息的获取途径确定所述待发送消息的消息来源。
  9. 根据权利要求8所述的SETP,其中,
    所述第一节点包括外部通信接口;
    所述确定单元,配置为当所述待发送消息为通过所述外部通信接口接收的消息时,确定所述待发送消息为从第二节点接收的消息;当所述待发送消息不是通过所述外部通信接口接收的消息时,确定所述待发送消息为所述第一节点形成的消息。
  10. 根据权利要求7所述的SETP,其中,
    所述待发送消息中携带的第一类GT码;
    所述确定单元,还配置为依据所述第一类GT码,确定所述待发送消息的消息来源;
    其中,所述第一类GT码为形成所述待发送消息的源节点的GT码,或依据所述源节点的GT码而形成的GT码。
  11. 根据权利要求7至10任一项所述的SETP,其中,
    所述SETP还包括:
    第一形成单元,配置为依据所述消息来源形成消息来源标识;
    所述翻译单元,配置为当所述消息来源标识表明所述待发送消息为所述第一节点自身形成的消息时,依据所述消息来源标识查询并选择第一翻译规则进行GT翻译;及当所述消息来源标识表明所述待发送消息为从第二节点接收的消息时,依据所述消息来源标识查询并选择第二翻译规则进行GT翻译。
  12. 根据权利要求7至11任一项所述的SETP,其中,
    所述翻译单元,配置为提取所述待发送消息中携带的目标节点的标识信息;及依据所述目标节点的标识信息及所述第一翻译规则或所述第二翻译规则进行所述GT翻译。
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至6所述方法的至少其中之一。
PCT/CN2015/074041 2014-10-14 2015-03-11 Gt翻译方法、setp和计算机存储介质 WO2016058319A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410541681.2 2014-10-14
CN201410541681.2A CN105578311B (zh) 2014-10-14 2014-10-14 Gt翻译方法及setp

Publications (1)

Publication Number Publication Date
WO2016058319A1 true WO2016058319A1 (zh) 2016-04-21

Family

ID=55746045

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074041 WO2016058319A1 (zh) 2014-10-14 2015-03-11 Gt翻译方法、setp和计算机存储介质

Country Status (2)

Country Link
CN (1) CN105578311B (zh)
WO (1) WO2016058319A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030008863A (ko) * 2001-07-20 2003-01-29 엘지전자 주식회사 넘버 세븐 신호망의 에스씨씨피 총괄명 번역 방법
US20060227784A1 (en) * 2005-04-12 2006-10-12 Tekelec Methods, systems, and computer program products for selectively performing global title translation based on message type
CN101141403A (zh) * 2007-10-15 2008-03-12 华为技术有限公司 消息路由重选方法及装置
CN101686231A (zh) * 2008-09-28 2010-03-31 华为技术有限公司 基于gt寻址的sua消息的传送方法、装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100571421C (zh) * 2007-03-13 2009-12-16 中兴通讯股份有限公司 多源gt实现多信令点负荷分担的系统及配置和实现方法
CN101166290B (zh) * 2007-10-16 2010-08-18 中兴通讯股份有限公司 一种全局码翻译方法
US8160555B2 (en) * 2009-04-13 2012-04-17 Cequint, Inc. System and method for determination of network and conditional execution of applications and promotions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030008863A (ko) * 2001-07-20 2003-01-29 엘지전자 주식회사 넘버 세븐 신호망의 에스씨씨피 총괄명 번역 방법
US20060227784A1 (en) * 2005-04-12 2006-10-12 Tekelec Methods, systems, and computer program products for selectively performing global title translation based on message type
CN101141403A (zh) * 2007-10-15 2008-03-12 华为技术有限公司 消息路由重选方法及装置
CN101686231A (zh) * 2008-09-28 2010-03-31 华为技术有限公司 基于gt寻址的sua消息的传送方法、装置

Also Published As

Publication number Publication date
CN105578311A (zh) 2016-05-11
CN105578311B (zh) 2021-03-16

Similar Documents

Publication Publication Date Title
US9680745B2 (en) Multi-domain source routed forwarding based on collaborating network controllers
WO2016070628A1 (zh) 一种电力线载波通讯终端控制装置、系统及方法
US9014056B2 (en) Bridging network devices in a hybrid communication network
US11652735B2 (en) Multicast data packet processing method, and apparatus
EP3641353B1 (en) Multicast forwarding method, and related device
CN109729012B (zh) 一种单播报文传输方法和装置
WO2017186159A1 (zh) 报文传输
KR20130136522A (ko) 하이브리드 통신 네트워크들에 대한 어드레싱 방식
CN105340217A (zh) 一种报文处理方法、装置及系统
US9848059B2 (en) Content handling method, apparatus, and system
JP2016522627A (ja) パケット処理方法および装置
US10212083B2 (en) Openflow data channel and control channel separation
US20180248932A1 (en) Method and apparatus for sending target data to and acquiring target data from network
CN105991763A (zh) 未决兴趣表行为
WO2021088629A1 (zh) DetNet数据包处理方法及装置
CN113542099B (zh) 数据的传输方法、装置、电子设备、介质和产品
US11343153B2 (en) BGP logical topology generation method, and device
CN102780623B (zh) 一种多链接透明互联网络中组播路由表项更新方法和装置
CN102263700A (zh) 一种报文收发方法、装置和系统
WO2016058319A1 (zh) Gt翻译方法、setp和计算机存储介质
JP5674179B1 (ja) 効率的なネットワークアドレス変換およびアプリケーションレベルゲートウェイ処理のための装置および方法
WO2017028806A1 (zh) 一种转发报文的方法和装置
JP2015220699A (ja) キャッシュノードの探索方法
JP2015080175A (ja) パケット処理装置、パケット処理方法、パケット処理プログラム
CN114079634A (zh) 一种报文转发方法、装置及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15850148

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15850148

Country of ref document: EP

Kind code of ref document: A1