Message transmission method and device, equipment and storage medium
By determining whether the second transmission node belongs to the internal node set in the message transmission path, if it belongs, the internal direct connection network is used to transmit messages without verification, which solves the problem of low message transmission efficiency in the existing technology, and realizes the More efficient and stable transmission.
Patent Information
- Application Number
- CN202411598768.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-02-18
AI Technical Summary
In the prior art, messages are transmitted through a third-party network, resulting in a verification process that reduces transmission efficiency.
It is determined at the first transmission node whether the second transmission node belongs to the preset internal node set, and if it belongs, the packet is transmitted without verification through the internal direct connection network.
It improves the packet transmission efficiency, reduces the impact of the verification process, and improves the transmission stability.
Smart Images

Figure CN119484384A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the financial field or other fields, and in particular to a message transmission method, device, equipment and storage medium. Background Art
[0002] As the number of financial institutions increases, how to transmit messages between financial institutions to handle financial business has become a problem that people are concerned about.
[0003] In the prior art, messages are transmitted along a transmission path. After a transmission node on the transmission path receives the message, it is transmitted to the next transmission node through a third-party network that communicates with multiple financial institutions. The nodes in the transmission path represent financial institutions. The third-party network will verify the message to ensure its security.
[0004] In summary, the message transmission method in the prior art is transmitted through a third-party network. Since the third-party network will verify the message, the message transmission efficiency will be low. Summary of the invention
[0005] The embodiments of the present application provide a message transmission method, apparatus, device and storage medium, which are used to solve the problem of message transmission efficiency caused by the third-party network verifying the message when the message transmission method in the prior art is transmitted through a third-party network.
[0006] In a first aspect, an embodiment of the present application provides a message transmission method, which is applied to a first transmission node, and the method includes:
[0007] When a target message is acquired, determining whether the first transmission node is the last transmission node in the transmission path according to the transmission path in the target message;
[0008] If the first transmission node is not the last transmission node in the transmission path, determining whether a second transmission node belongs to a preset internal node set including the first transmission node, the second transmission node being the next transmission node of the first transmission node in the transmission path;
[0009] If the second transmission node belongs to the preset internal node set, the target message is sent to the second transmission node through an internal direct connection network, and the internal direct connection network does not verify the target message.
[0010] In a possible implementation, the method further includes:
[0011] If the second transmission node does not belong to the preset internal node set, obtaining an external transmission node set of the first transmission node;
[0012] determining whether the second transmission node belongs to the external transmission node set;
[0013] If the second transmission node belongs to the external transmission node set, the target message is sent to the second transmission node through the external network.
[0014] In a possible implementation, the method further includes:
[0015] If the second transmission node does not belong to the external transmission node set, determining whether there is a transit node in the preset internal node set, and the external transmission node set of each transit node includes the second transmission node;
[0016] If there are transfer nodes in the preset internal node set, determine the target node from all the transfer nodes;
[0017] Adding the target node between the first transmission node and the second transmission node in the transmission path;
[0018] The target message after adding the target node is sent to the target node through the internal direct connection network.
[0019] In a possible implementation manner, determining the target node from all the transit nodes includes:
[0020] The node whose geographical location is closest to the geographical location of the second transmission node among all the transit nodes is used as the target node.
[0021] In a possible implementation, the method further includes:
[0022] If there is no transit node in the preset internal node set, a transmission failure prompt message is output.
[0023] In a possible implementation, the method further includes:
[0024] If the first transmission node is the last transmission node in the transmission path, verifying the target message according to the verification information in the target message to obtain a verification result indicating whether the verification is passed;
[0025] If the verification result indicates that the verification has not passed, a prompt message indicating that the verification has not passed is output.
[0026] In a possible implementation, the method further includes:
[0027] Generate message transmission record information;
[0028] The message transmission record information is sent to a storage device.
[0029] In a second aspect, an embodiment of the present application provides a message transmission device, including:
[0030] Processing modules for:
[0031] When the target message is acquired, determining whether the first transmission node is the last transmission node in the transmission path according to the transmission path in the target message;
[0032] If the first transmission node is not the last transmission node in the transmission path, determining whether a second transmission node belongs to a preset internal node set including the first transmission node, the second transmission node being the next transmission node of the first transmission node in the transmission path;
[0033] A transmission module is used to send the target message to the second transmission node through an internal direct network if the second transmission node belongs to the preset internal node set, and the internal direct network does not verify the target message.
[0034] In a possible implementation manner, the processing module is further used to:
[0035] If the second transmission node does not belong to the preset internal node set, obtaining an external transmission node set of the first transmission node;
[0036] determining whether the second transmission node belongs to the external transmission node set;
[0037] The transmission module is further configured to send the target message to the second transmission node through an external network if the second transmission node belongs to the external transmission node set.
[0038] In a possible implementation manner, the processing module is further used to:
[0039] If the second transmission node does not belong to the external transmission node set, determining whether there is a transit node in the preset internal node set, and the external transmission node set of each transit node includes the second transmission node;
[0040] If there are transfer nodes in the preset internal node set, determine the target node from all the transfer nodes;
[0041] Adding the target node between the first transmission node and the second transmission node in the transmission path;
[0042] The transmission module is further used to send the target message after the target node is added to the target node through the internal direct connection network.
[0043] In a possible implementation manner, the processing module, when used to determine the target node from all the transit nodes, is specifically used to:
[0044] The node whose geographical location is closest to the geographical location of the second transmission node among all the transit nodes is used as the target node.
[0045] In a possible implementation manner, the transmission module is further configured to output a transmission failure prompt message if no transit node exists in the preset internal node set.
[0046] In a possible implementation manner, the processing module is further configured to, if the first transmission node is the last transmission node in the transmission path, verify the target message according to the verification information in the target message to obtain a verification result indicating whether the verification is passed;
[0047] The transmission module is further configured to output a prompt message indicating that the verification has failed if the verification result indicates that the verification has failed.
[0048] In a possible implementation manner, the processing module is further used to generate message transmission record information;
[0049] The transmission module is also used to send the message transmission record information to a storage device.
[0050] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0051] Processor, memory, communication interface;
[0052] The memory is used to store executable instructions of the processor;
[0053] Wherein, the processor is configured to execute the message transmission method described in any one of the first aspects by executing the executable instructions.
[0054] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the message transmission method described in any one of the first aspects.
[0055] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the message transmission method described in any one of the first aspects.
[0056] The message transmission method, apparatus, device and storage medium provided in the embodiments of the present application, when the target message is obtained through the first transmission node, determines whether it is the last transmission node in the transmission path. Further, when it is determined that the first transmission node is not the last transmission node in the transmission path, it is determined whether the second transmission node belongs to a preset internal node set, and the second transmission node is the next transmission node of the first transmission node in the transmission path. If the second transmission node belongs to the preset internal node set, the target message is sent to the second transmission node through an internal direct network that does not verify the target message. When the first transmission node is not the last transmission node in the transmission path and the second transmission node belongs to the preset internal node set, this scheme sends the target message to the second transmission node through an internal direct network that does not verify the target message, thereby effectively improving the message transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0058] Figure 1 Schematic diagram of application scenarios of message transmission provided for this application;
[0059] Figure 2 A flowchart of a first embodiment of the message transmission method provided in the present application;
[0060] Figure 3 A flowchart of a second embodiment of the message transmission method provided in this application;
[0061] Figure 4 A flowchart of a third embodiment of the message transmission method provided in this application;
[0062] Figure 5 A schematic diagram of the structure of an embodiment of a message transmission device provided by the present application;
[0063] Figure 6 A schematic diagram of the structure of an electronic device provided in this application.
[0064] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0065] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0066] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0067] As the number of financial institutions increases, how to transmit messages between financial institutions to handle financial business has become a problem that people are concerned about.
[0068] In the prior art, messages are transmitted according to a transmission path. After a transmission node on the transmission path receives a message, it is transmitted to the next transmission node through a third-party network that communicates with multiple financial institutions. The nodes in the transmission path represent financial institutions. The third-party network will verify the message to ensure the security of the message. Since the third-party network will verify the message, it will lead to the problem of low message transmission efficiency.
[0069] In view of the problems existing in the prior art, the inventors discovered in the process of studying the message transmission method that multiple devices can build an internal direct network, and the devices can communicate with each other through the internal direct network, and the communication content is not verified during the communication process, and the communication rate is relatively fast. Therefore, nodes belonging to the same financial institution can build an internal direct network, and the transmission nodes of the same financial institution communicate through the internal direct network. When a transmission node determines that it and the next transmission node of the transmission node belong to the same financial institution, the message is transmitted through the internal direct network, which improves the transmission efficiency. Based on the above-mentioned inventive concept, the message transmission scheme in this application is designed.
[0070] It should be noted that the message transmission method, device, equipment and storage medium of the present application can be used in the financial field, and can also be used in any field other than the financial field. The application field of the message transmission method, device, equipment and storage medium of the present application is not limited.
[0071] The first transmission node, the second transmission node, the transit node, and the target node in this application can be servers, computers, gateways, routers, etc. corresponding to the financial institution. This application does not limit the nodes and can be determined according to actual conditions.
[0072] For example, Figure 1 The schematic diagram of the application scenario of the message transmission provided for this application is as follows: Figure 1 As shown, the application scenario may include multiple transmission nodes (six transmission nodes are shown in the figure, namely transmission node 11, transmission node 12, transmission node 13, transmission node 14, transmission node 15, and transmission node 16).
[0073] In this application scenario, transmission node 12, transmission node 13, transmission node 15, and transmission node 16 belong to the same financial institution and also constitute an internal node set; transmission node 12, transmission node 13, transmission node 15, and transmission node 16 can build an internal direct connection network.
[0074] The transmission path is: transmission node 11, transmission node 12, transmission node 13, transmission node 14, that is, the target message needs to be transmitted from transmission node 11, through transmission node 12, transmission node 13, and then to transmission node 14.
[0075] When transmission node 12 receives the target message transmitted by transmission node 11, that is, when it obtains the target message, transmission node 12 is the first transmission node and also the current node. It is determined according to the transmission path that transmission node 12 is not the last transmission node in the transmission path.
[0076] The next transmission node of the transmission node 12 in the transmission path is the transmission node 13, and it is determined that the transmission node 13 belongs to the preset internal node set, which means that the transmission node 12 can transmit the target message to the transmission node 13 through the internal direct network. Therefore, through the internal direct network, the transmission node 12 sends the target message to the transmission node 13. Since the internal direct network does not verify the target message, the message transmission efficiency can be improved.
[0077] It should be noted that Figure 1 This is only a schematic diagram of an application scenario provided by the embodiment of the present application. Figure 1 The actual forms of the various devices included in the scheme are limited, and in the specific application of the scheme, they can be set according to actual needs.
[0078] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0079] Figure 2 This is a flow chart of the first embodiment of the message transmission method provided by the present application. The present embodiment of the present application describes the situation where the first transmission node obtains the target message and determines that the second transmission node is an internal node and transmits the message through the internal network. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware. Figure 2 As shown, the message transmission method specifically includes the following steps:
[0080] S201: When a target message is acquired, determine whether the first transmission node is the last transmission node in the transmission path according to the transmission path in the target message.
[0081] In this step, when the first transmission node obtains the target message, in order to determine whether to continue message transmission, it is necessary to determine whether the first transmission node is the last transmission node in the transmission path according to the transmission path in the target message.
[0082] Exemplarily, the transmission path is: A, B, C, D, E. When the first transmission node is any one of A to D, the first transmission node is not the last transmission node in the transmission path. When the first transmission node is E, the first transmission node is the last transmission node in the transmission path.
[0083] It should be noted that when the first transmission node is the first transmission node in the transmission path, the first transmission node can obtain the target message in the following manner: the staff can perform a message generation operation on the first transmission node, and the first transmission node can obtain the target message by generating the message. Alternatively, the staff can upload the target message to the first transmission node, and the first transmission node can obtain the target message.
[0084] When the first transmission node is not the first transmission node in the transmission path, the first transmission node obtains the target message by receiving the target message sent by the previous transmission node of the first transmission node in the transmission path.
[0085] S202: If the first transmission node is not the last transmission node in the transmission path, determine whether the second transmission node belongs to a preset internal node set including the first transmission node.
[0086] In this step, if the first transmission node determines that the first transmission node is not the last transmission node in the transmission path, it means that the message transmission needs to continue. Then, whether the second transmission node belongs to the preset internal node set including the first transmission node is used to determine whether the target message can be transmitted through the internal direct network. The second transmission node is the next transmission node of the first transmission node in the transmission path.
[0087] Exemplarily, the transmission paths are: A, B, C, D, E. When the first transmission node is B and the second transmission node is C, the preset internal node set including the transmission node B is {B, C, U, I, O}, and the transmission node C belongs to the preset internal node set. The embodiment of the present application does not limit the preset internal node set, and it can be determined according to actual conditions.
[0088] The transmission nodes in the preset internal node set belong to the same financial institution, the transmission nodes in the preset internal node set can build an internal direct connection network, and the transmission nodes in the preset internal node set can communicate with each other through the internal direct connection network without verification.
[0089] S203: If the second transmission node belongs to the preset internal node set, the target message is sent to the second transmission node through the internal direct connection network.
[0090] In this step, if the first transmission node determines that the second transmission node belongs to the preset internal node set, the target message is sent to the second transmission node through the internal direct network. Since the internal direct network does not verify the target message, the transmission efficiency can be improved.
[0091] It should be noted that after the first transmission node transmits the target message through the internal direct network, in order to facilitate the subsequent verification of the transmission process, the first transmission node generates message transmission record information, and then sends the message transmission record information to the storage device. When a message transmission anomaly occurs later, the message transmission record can be searched in the storage device to determine whether the anomaly occurs during the process of the first transmission node transmitting the target message.
[0092] The message transmission method provided in this embodiment determines whether it is the last transmission node in the transmission path when the target message is obtained through the first transmission node. If the first transmission node is not the last transmission node in the transmission path, it is determined whether the second transmission node belongs to the preset internal node set, and the second transmission node is the next transmission node of the first transmission node in the transmission path. If the second transmission node belongs to the preset internal node set, the target message is sent to the second transmission node through an internal direct network that does not verify the target message. Compared with the prior art that uses a third-party network to verify the message to transmit the message, this scheme sends the target message to the second transmission node through an internal direct network that does not verify the target message when the first transmission node is not the last transmission node in the transmission path and the second transmission node belongs to the preset internal node set, which effectively improves the message transmission efficiency. In addition, in the prior art, when the message is transmitted through a third-party network, network fluctuations are prone to occur. The use of internal direct network messages in this application will improve transmission stability and efficiency, and can also save costs.
[0093] Figure 3 This is a flow chart of the second embodiment of the message transmission method provided by the present application. Based on the above embodiment, the present embodiment of the present application describes how to transmit the target message when the second transmission node does not belong to the preset internal node set. Figure 3 As shown, the message transmission method specifically includes the following steps:
[0094] S301: If the second transmission node does not belong to the preset internal node set, obtain the external transmission node set of the first transmission node.
[0095] In this step, if the first transmission node determines that the second transmission node does not belong to the preset internal node set, it means that the first transmission node cannot transmit the target message to the second transmission node through the internal direct network, and it is necessary to determine whether the target message can be transmitted through the external network. First, the external transmission node set of the first transmission node is obtained.
[0096] Each transmission node stores its own external transmission node set, so it can obtain its own external transmission node set.
[0097] The transmission nodes in the external transmission node set of each transmission node can communicate with the transmission node through the external network.
[0098] S302: Determine whether the second transmission node belongs to the external transmission node set; if the second transmission node belongs to the external transmission node set, execute step S303; if the second transmission node does not belong to the external transmission node set, execute step S304.
[0099] In this step, after the first transmission node obtains its own external transmission node set, in order to determine whether the target message can be directly transmitted to the second transmission node through the external network, it is necessary to determine whether the second transmission node belongs to the external transmission node set.
[0100] S303: Send the target message to the second transmission node through the external network.
[0101] In this step, if the first transmission node determines that the second transmission node belongs to the external transmission node set, it means that the first transmission node can directly transmit the target message to the second transmission node through the external network, then the first transmission node sends the target message to the second transmission node through the external network.
[0102] It should be noted that the external network is a third-party network and will verify the target message.
[0103] S304: Determine whether there is a transfer node in the preset internal node set; if there is a transfer node in the preset internal node set, execute steps S305-S307; if there is no transfer node in the preset internal node set, execute step S308.
[0104] In this step, if the first transmission node determines that the second transmission node does not belong to the external transmission node set, it means that the first transmission node cannot directly transmit the target message to the second transmission node through the external network. In order to realize the message transmission, it is necessary to determine whether there is a transit node to assist in the transmission, and to determine whether there is a transit node in the preset internal node set.
[0105] The external transmission node set of each transit node includes a second transmission node.
[0106] Since each transmission node also stores the external transmission node set of other transmission nodes, the other transmission nodes and the transmission node belong to the same preset internal node set.
[0107] S305: Determine the target node from all transit nodes.
[0108] In this step, if the first transmission node determines that there is a transit node in the preset internal node set, it means that the target message can be transmitted to the second transmission node through the transit node. Since the number of transit nodes is at least one, the target node needs to be determined from all transit nodes.
[0109] In one implementation, the node whose geographical location is closest to the second transmission node among all the transit nodes is used as the target node. Since the target message needs to be transmitted from the target node to the second transmission node through an external network, and the cost of external network transmission is proportional to the distance, selecting the node whose geographical location is closest to the second transmission node can save costs.
[0110] In another implementation, a node is randomly selected from all transit nodes as the target node.
[0111] In another implementation, a node whose sum of distances to the first transmission node and the second transmission node is the smallest is selected from all transit nodes as the target node.
[0112] The embodiment of the present application does not limit the method of determining the target node from all transit nodes, and the target node can be determined according to actual conditions.
[0113] S306: Add a target node between the first transmission node and the second transmission node in the transmission path.
[0114] In this step, after the first transmission node determines the target node, in order to realize message transmission, the target node is added between the first transmission node and the second transmission node in the transmission path.
[0115] Exemplarily, the transmission path is: A, B, C, D, E. The first transmission node is B, the second transmission node is C, the target node is O, and the transmission path after adding nodes is: A, B, O, C, D, E.
[0116] S307: Send the target message with the target node added to the target node through the internal direct connection network.
[0117] In this step, after adding the target node in the transmission path, the first transmission node sends the target message after adding the target node to the target node through the internal direct connection network.
[0118] Since the subsequent target node determines that it is not the last transmission node in the transmission path, the second transmission node does not belong to the preset internal node set, and the second transmission node belongs to the external transmission node set of the target node, the target node sends the target message to the second transmission node through the external network.
[0119] It should be noted that after the first transmission node transmits the target message through the internal direct network, in order to facilitate the subsequent verification of the transmission process, the first transmission node generates message transmission record information, and then sends the message transmission record information to the storage device. When a message transmission anomaly occurs later, the message transmission record can be searched in the storage device to determine whether the anomaly occurs during the process of the first transmission node transmitting the target message.
[0120] S308: Output a transmission failure prompt message.
[0121] In this step, if the first transmission node determines that there is no transit node in the preset internal node set, it means that the first transmission node cannot transmit the target message to the second node, and outputs a transmission failure prompt message.
[0122] It should be noted that the method of outputting the transmission fault prompt message may be: sending the fault prompt message to the terminal device of the staff. It may also be: sending the fault prompt message to the fault collection and analysis device. It may also be: displaying the fault prompt message. The embodiment of the present application does not limit the method of outputting the fault prompt message, which can be determined according to the actual situation.
[0123] The message transmission method provided in this embodiment sends the target message to the second transmission node through the external network when the second transmission node does not belong to the preset internal node set and it is determined that the second transmission node belongs to the external transmission node set; when it is determined that the second transmission node does not belong to the external transmission node set and there is a transit node in the preset internal node set, the target message is sent to the target node through the internal direct network, thereby ensuring smooth transmission of the message. When it is determined that the second transmission node does not belong to the external transmission node set and there is no transit node in the preset internal node set, a transmission fault prompt message is output so that the fault can be repaired in time.
[0124] Figure 4 This is a flow chart of the third embodiment of the message transmission method provided by the present application. Based on the above embodiment, the present embodiment of the present application describes the situation where the first transmission node verifies the target message when the first transmission node is the last transmission node in the transmission path. Figure 4 As shown, the message transmission method specifically includes the following steps:
[0125] S401: If the first transmission node is the last transmission node in the transmission path, verify the target message according to the verification information in the target message to obtain a verification result indicating whether the verification is passed.
[0126] In this step, if the first transmission node determines that it is the last transmission node in the transmission path, it means that there is no need to continue transmitting the message. In order to determine whether the target message is a safe message, the target message is verified according to the verification information in the target message to obtain a verification result indicating whether the verification is passed.
[0127] The verification information includes a verification field. If it is determined that the verification field is the same as the preset field stored in the first transmission node, a verification result indicating that the verification is passed is obtained. If it is determined that the verification field is not the same as the preset field stored in the first transmission node, a verification result indicating that the verification is not passed is obtained.
[0128] S402: If the verification result indicates that the verification has not passed, a verification failure prompt message is output.
[0129] In this step, after the first transmission node obtains the verification result, if the verification result indicates that the verification has not passed, it means that the target message is not safe, and then the first transmission node outputs a prompt message indicating that the verification has not passed.
[0130] It should be noted that the method of outputting the verification failure prompt message can be: sending the verification failure prompt message to the terminal device of the staff. It can also be: sending the verification failure prompt message to the fault collection and analysis device. It can also be: displaying the verification failure prompt message. The embodiment of the present application does not limit the method of outputting the verification failure prompt message, which can be determined according to the actual situation.
[0131] It should be noted that if the verification result indicates that the verification has not passed, it means that the target message is safe, and the message is processed to implement the business handling.
[0132] The message transmission method provided in this embodiment verifies the target message when the first transmission node is the last transmission node in the transmission path. If the verification fails, a verification failure prompt message is output, so that the transmission node can be repaired in time, saving time in discovering problems.
[0133] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0134] Figure 5 This is a schematic diagram of the structure of the message transmission device embodiment provided by the present application; the device can be integrated into the first transmission node in the above method embodiment, or can be implemented by the first transmission node in the above method embodiment. Figure 5 As shown, the message transmission device 50 includes:
[0135] The processing module 51 is used for:
[0136] When the target message is acquired, determining whether the first transmission node is the last transmission node in the transmission path according to the transmission path in the target message;
[0137] If the first transmission node is not the last transmission node in the transmission path, determining whether a second transmission node belongs to a preset internal node set including the first transmission node, the second transmission node being the next transmission node of the first transmission node in the transmission path;
[0138] The transmission module 52 is configured to send the target message to the second transmission node through an internal direct network if the second transmission node belongs to the preset internal node set, and the internal direct network does not verify the target message.
[0139] Furthermore, the processing module 51 is also used for:
[0140] If the second transmission node does not belong to the preset internal node set, obtaining an external transmission node set of the first transmission node;
[0141] determining whether the second transmission node belongs to the external transmission node set;
[0142] Furthermore, the transmission module 52 is further configured to send the target message to the second transmission node through an external network if the second transmission node belongs to the external transmission node set.
[0143] Furthermore, the processing module 51 is also used for:
[0144] If the second transmission node does not belong to the external transmission node set, determining whether there is a transit node in the preset internal node set, and the external transmission node set of each transit node includes the second transmission node;
[0145] If there are transfer nodes in the preset internal node set, determine the target node from all the transfer nodes;
[0146] Adding the target node between the first transmission node and the second transmission node in the transmission path;
[0147] Furthermore, the transmission module 52 is further configured to send the target message with the target node added to the target node through the internal direct connection network.
[0148] Further, when the processing module 51 is used to determine the target node from all the transit nodes, it is specifically used to:
[0149] The node whose geographical location is closest to the geographical location of the second transmission node among all the transit nodes is used as the target node.
[0150] Furthermore, the transmission module 52 is further configured to output a transmission failure prompt message if there is no transit node in the preset internal node set.
[0151] Further, the processing module 51 is further configured to verify the target message according to the verification information in the target message if the first transmission node is the last transmission node in the transmission path, and obtain a verification result indicating whether the verification is passed;
[0152] Furthermore, the transmission module 52 is further configured to output a prompt message indicating that the verification has failed if the verification result indicates that the verification has failed.
[0153] Furthermore, the processing module 51 is also used to generate message transmission record information;
[0154] Furthermore, the transmission module 52 is also used to send the message transmission record information to a storage device.
[0155] The message transmission device provided in this embodiment is used to execute the technical solution of the first transmission node in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0156] Figure 6 This is a schematic diagram of the structure of an electronic device provided in this application. Figure 6 As shown, the electronic device 60 includes:
[0157] Processor 61, memory 62, and communication interface 63;
[0158] The memory 62 is used to store executable instructions of the processor 61;
[0159] The processor 61 is configured to execute the technical solution of the first transmission node in any of the aforementioned method embodiments by executing the executable instructions.
[0160] Optionally, the memory 62 may be independent or integrated with the processor 61 .
[0161] Optionally, when the memory 62 is a device independent of the processor 61, the electronic device 60 may further include:
[0162] The bus 64 , the memory 62 and the communication interface 63 are connected to the processor 61 via the bus 64 and communicate with each other. The communication interface 63 is used to communicate with other devices.
[0163] Optionally, the communication interface 63 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.
[0164] The bus 64 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0165] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0166] The electronic device is used to execute the technical solution of the first transmission node in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.
[0167] An embodiment of the present application also provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the technical solution provided by any of the aforementioned method embodiments is implemented.
[0168] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned method embodiments when executed by a processor.
[0169] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A message transmission method, characterized in that: Applied to a first transmission node, the method includes: When a target message is acquired, determining whether the first transmission node is the last transmission node in the transmission path according to the transmission path in the target message; If the first transmission node is not the last transmission node in the transmission path, determining whether a second transmission node belongs to a preset internal node set including the first transmission node, the second transmission node being the next transmission node of the first transmission node in the transmission path; If the second transmission node belongs to the preset internal node set, the target message is sent to the second transmission node through an internal direct connection network, and the internal direct connection network does not verify the target message.
2. The method according to claim 1, characterized in that The method further comprises: If the second transmission node does not belong to the preset internal node set, obtaining an external transmission node set of the first transmission node; determining whether the second transmission node belongs to the external transmission node set; If the second transmission node belongs to the external transmission node set, the target message is sent to the second transmission node through the external network.
3. The method according to claim 2, characterized in that The method further comprises: If the second transmission node does not belong to the external transmission node set, determining whether there is a transit node in the preset internal node set, and the external transmission node set of each transit node includes the second transmission node; If there are transfer nodes in the preset internal node set, determine the target node from all the transfer nodes; Adding the target node between the first transmission node and the second transmission node in the transmission path; The target message after adding the target node is sent to the target node through the internal direct connection network.
4. The method according to claim 3, characterized in that The step of determining the target node from all the transit nodes comprises: The node whose geographical location is closest to the geographical location of the second transmission node among all the transit nodes is used as the target node.
5. The method according to claim 3, characterized in that: The method further comprises: If there is no transit node in the preset internal node set, a transmission failure prompt message is output.
6. The method according to claim 1, characterized in that The method further comprises: If the first transmission node is the last transmission node in the transmission path, verifying the target message according to the verification information in the target message to obtain a verification result indicating whether the verification is passed; If the verification result indicates that the verification has not passed, a prompt message indicating that the verification has not passed is output.
7. The method according to claim 1 or 3, characterized in that: The method further comprises: Generate message transmission record information; The message transmission record information is sent to a storage device.
8. A message transmission device, characterized in that: include: Processing modules for: When the target message is acquired, determining whether the first transmission node is the last transmission node in the transmission path according to the transmission path in the target message; If the first transmission node is not the last transmission node in the transmission path, determining whether a second transmission node belongs to a preset internal node set including the first transmission node, the second transmission node being the next transmission node of the first transmission node in the transmission path; A transmission module is used to send the target message to the second transmission node through an internal direct network if the second transmission node belongs to the preset internal node set, and the internal direct network does not verify the target message.
9. An electronic device, characterized in that: include: Processor, memory, communication interface; The memory is used to store executable instructions of the processor; The processor is configured to execute the message transmission method according to any one of claims 1 to 7 by executing the executable instructions.
10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the message transmission method according to any one of claims 1 to 7 is implemented.