CN114422970B - Short message tracing method, device and equipment - Google Patents

Short message tracing method, device and equipment Download PDF

Info

Publication number
CN114422970B
CN114422970B CN202011177254.2A CN202011177254A CN114422970B CN 114422970 B CN114422970 B CN 114422970B CN 202011177254 A CN202011177254 A CN 202011177254A CN 114422970 B CN114422970 B CN 114422970B
Authority
CN
China
Prior art keywords
short message
processing
record information
node
blockchain
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.)
Active
Application number
CN202011177254.2A
Other languages
Chinese (zh)
Other versions
CN114422970A (en
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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011177254.2A priority Critical patent/CN114422970B/en
Publication of CN114422970A publication Critical patent/CN114422970A/en
Application granted granted Critical
Publication of CN114422970B publication Critical patent/CN114422970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention provides a short message tracing method, a device and equipment, wherein the method comprises the steps of receiving a short message tracing request sent by terminal equipment, acquiring blockchain processing record information corresponding to an initiator node according to the short message tracing request, wherein the blockchain processing record information comprises a processing node identifier and a blockchain processing serial number, sequentially acquiring the blockchain processing record information of each processing node in a link corresponding to the initiator node according to the processing node identifier, the blockchain processing serial number and a pre-stored processing sequence until target blockchain processing record information corresponding to a leaf node is acquired, and determining that a target processing node corresponding to the target blockchain processing serial number is a final sending end of a short message if the target blockchain processing serial number in the target blockchain processing record information corresponds to the blockchain processing serial number. The embodiment simplifies the short message tracing process, and further improves the accuracy of short message tracing.

Description

Short message tracing method, device and equipment
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a short message tracing method, device and equipment.
Background
With the development of the mobile internet, the application of industry short messages serving enterprises is becoming wider and wider. For example, industry messages can be classified into 3 types according to application types: verification code short message, notification short message and marketing short message.
In the prior art, when sending a short message, the adopted short message protocol (such as CMPP protocol, SGIP protocol and SMGP protocol) needs to be pre-designated, and the development and adaptation difficulties are relatively high. Therefore, sending of different types of short messages can be achieved through an SP (Service Provider). And different service sending relations exist among different SPs, namely, in the process of sending the short message from a sending end to terminal equipment, the short message passes through a plurality of service nodes in the middle.
However, because more service nodes pass through in the short message service sending process, in the short message application scene of the existing industry, if the short message is traced, the matching of all service nodes on the short message service flow is needed, the uncertainty is more, if the association of one node in the intermediate link fails, the tracing cannot be carried out to the correct short message sending end, and the tracing accuracy of the short message is affected.
Disclosure of Invention
The embodiment of the invention provides a short message tracing method, a device and equipment, which are used for improving the accuracy of short message tracing.
In a first aspect, an embodiment of the present invention provides a method for tracing a short message, including:
receiving a short message tracing request sent by terminal equipment;
obtaining blockchain processing record information corresponding to an initiator node according to the short message tracing request, wherein the blockchain processing record information comprises a processing node identifier and a blockchain processing serial number;
sequentially acquiring the blockchain processing record information of each processing node in the link corresponding to the initiator node according to the processing node identification, the blockchain processing serial number and a pre-stored processing sequence until the target blockchain processing record information corresponding to the leaf node is acquired;
and if the target blockchain processing sequence number in the target blockchain processing record information corresponds to the blockchain processing sequence number, determining a target processing node corresponding to the target blockchain processing sequence number as a final sending end of the short message.
Optionally, the sequentially obtaining the blockchain processing record information of each processing node in the link corresponding to the initiator node according to the processing node identifier, the blockchain processing serial number and the pre-stored processing sequence until obtaining the target blockchain processing record information corresponding to the leaf node includes:
sequentially acquiring at least one blockchain processing record information of each processing node in a link corresponding to the initiator node according to a pre-stored processing sequence;
and sequentially acquiring first blockchain processing record information corresponding to the processing node identification from the at least one blockchain processing record information according to the links corresponding to the initiator node until target blockchain processing record information corresponding to the leaf node is acquired.
Optionally, the short message tracing request carries an initiator identifier, and the obtaining, according to the short message tracing request, blockchain processing record information corresponding to an initiator node includes:
acquiring an initiator node corresponding to the initiator identifier from a short message gateway node;
and acquiring the blockchain processing record information corresponding to the initiator node according to the short message tracing request.
Optionally, before the receiving the short message source tracing request sent by the terminal device, the method further includes:
acquiring target blockchain processing record information generated by the target processing node;
and sending the target block chain processing record information to the terminal equipment according to a pre-stored transmission link, and uploading the target block chain processing record information to a corresponding block chain platform.
Optionally, after the sending the target blockchain processing record information to the terminal device according to a pre-stored transmission link and uploading the target blockchain processing record information to a corresponding blockchain platform, the method further includes:
acquiring a short message status report generated by a short message gateway;
and sending the short message status report to the target processing node, and uploading the short message status report to a corresponding blockchain platform.
Optionally, the sending the target blockchain processing record information to the terminal device according to a pre-stored transmission link, and uploading the target blockchain processing record information to a corresponding blockchain platform includes:
and based on a pre-stored transmission link, sequentially transmitting the target blockchain processing record information according to the processing nodes until the target blockchain processing record information reaches the terminal equipment, and respectively uploading the target blockchain processing record information transmitted to each processing node to a corresponding blockchain platform.
In a second aspect, an embodiment of the present invention provides a short message tracing apparatus, including:
the receiving module is used for receiving a short message tracing request sent by the terminal equipment;
the processing module is used for acquiring the blockchain processing record information corresponding to the initiator node according to the short message tracing request, wherein the blockchain processing record information comprises a processing node identifier and a blockchain processing serial number;
the processing module is further configured to sequentially obtain, according to the processing node identifier, the blockchain processing serial number, and a pre-stored processing sequence, blockchain processing record information of each processing node in the link corresponding to the initiator node until target blockchain processing record information corresponding to a leaf node is obtained;
and the processing module is further configured to determine that a target processing node corresponding to the target blockchain processing sequence number is a final sending end of the short message if the target blockchain processing sequence number in the target blockchain processing record information corresponds to the blockchain processing sequence number.
Optionally, the processing module is further configured to:
sequentially acquiring at least one blockchain processing record information of each processing node in a link corresponding to the initiator node according to a pre-stored processing sequence;
and sequentially acquiring first blockchain processing record information corresponding to the processing node identification from the at least one blockchain processing record information according to the links corresponding to the initiator node until target blockchain processing record information corresponding to the leaf node is acquired.
In a third aspect, an embodiment of the present invention provides a short message tracing apparatus, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored in the memory, such that the at least one processor performs the short message tracing method according to any one of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for tracing a short message according to any one of the first aspect is implemented.
After the scheme is adopted, the short message tracing method, the device and the equipment can receive the short message tracing request sent by the terminal equipment, acquire the blockchain processing record information corresponding to the initiator node according to the short message tracing request, the blockchain processing record information comprises the processing node identification and the blockchain processing serial number, and then sequentially acquire the blockchain processing record information of each processing node in the link corresponding to the initiator node according to the processing node identification, the blockchain processing serial number and the pre-stored processing sequence until the target blockchain processing record information corresponding to the leaf node is acquired, and determine that the target processing node corresponding to the target blockchain processing serial number is the final sending end of the short message when the target blockchain processing serial number in the target blockchain processing record information corresponds to the blockchain processing serial number, so that all nodes are not required to be associated, the short message tracing process is simplified, and the accuracy of the short message tracing is further improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a schematic flow chart of a conventional short message sending process according to an embodiment of the present invention;
fig. 2 is a schematic architecture diagram of an application system of a short message tracing method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a short message tracing method provided by the embodiment of the invention;
fig. 4 is a schematic flow chart of a short message full service and a data packet uplink provided by the embodiment of the invention;
fig. 5 is a schematic structural diagram of a short message tracing device according to an embodiment of the present invention;
fig. 6 is a schematic hardware structure of a short message tracing device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be capable of including other sequential examples in addition to those illustrated or described. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the prior art, when sending a short message, the adopted short message protocol (such as CMPP protocol, SGIP protocol and SMGP protocol) needs to be pre-designated, and the development and adaptation difficulties are relatively high. Therefore, sending of different types of short messages can be achieved through a short message Service Provider (SP). And different service sending relations exist between different SPs, fig. 1 is a flow diagram of a conventional short message sending process provided by an embodiment of the present invention, and as shown in fig. 1, a short message passes through a plurality of service nodes in the middle in the process from a sending end (enterprise client) to a terminal device. However, because more service nodes pass through in the short message service sending process, in the short message application scene of the existing industry, if tracing is performed on the short message (for example, the enterprise sends marketing short messages to cause user complaints, tracing is performed on a short message sender and the like), the matching of all service nodes on the short message service flow is needed, the uncertainty is more, if a certain node in the intermediate link fails to be associated, the tracing cannot be performed to the correct short message sending end, and the accuracy of short message tracing is affected.
In addition, because the short message service flow is long, in the short message application scenario in the existing industry, if the short message is traced, the cooperation of all service nodes on the short message service flow is needed, although the unique identifier msgid of the short message is also specified in the short message protocol, the unique identifier msgid can only be used as the unique identifier between every two nodes, and cannot be used as the global unique identifier of the whole short message service flow, taking the SGIP protocol as an example, when the SP submits the short message to the short message gateway, the msgid of the short message service flow comprises a Sequence Number field in a sub message header, as shown in table 1, which is a SGIP protocol sub request message header data table, and the msgid field is only used as the unique identifier between every two nodes (SP and short message gateway) and cannot be used as the identifier between other nodes. The existing short message tracing method is to search in turn according to the unique identification of the short message in a mode of combining every two nodes according to the short message issuing flow, until tracing to the enterprise client sending the short message, the tracing cannot be directly carried out from the short message gateway to the enterprise client, and the method can be specifically as follows:
table 1 SGIP protocol sub request message header data table
Figure BDA0002749032390000061
In addition, in the technology of the existing short message tracing method, through the unique identifier msgid of the short message between every two nodes, the short message tracing method reversely and sequentially traces the source to a short message sender (enterprise client), and the method also has the following problems: the supervision side cannot determine the specific length of the whole short message sending process, cannot determine the number of SP passing in the middle, the tracing result is very likely that the final initiator is the SP, the SP cannot trace to the actual short message initiator (enterprise client), and part of the SP intentionally terminates tracing between the SP and the client in order to protect the benefit of the client, so that the tracing result is that the short message initiator is the SP and not the actual short message initiator (enterprise client).
Based on the problems, the method and the device have the advantages that by combining with the blockchain platform and distributing the unique blockchain processing serial number for the blockchain processing record, the technical effects of realizing accurate tracing of the short message sending end and improving the accuracy of short message tracing are achieved.
Fig. 2 is a schematic architecture diagram of an application system of a short message tracing method provided by an embodiment of the present invention, where, as shown in fig. 2, the application system includes a plurality of relevant nodes, and may specifically include: enterprise client (sender), SP, short message gateway, terminal device, and blockchain platform. The solid line may represent a short message full-service flow, the first dotted line may represent a short message data packed to the blockchain platform, and the second dotted line may represent a synchronization and consensus operation of data between consensus nodes.
Further, the enterprise client may be an initial initiator of the short message, and is configured to submit a short message sending request to the SP, and package the node short message data to the blockchain platform. The SP is a short message proxy and is used for receiving a short message request submitted by an enterprise client, forwarding the short message request to a short message gateway and packaging the node short message data to a blockchain platform. The short message gateway is a network element node provided by an operator and is used for receiving a short message request and transmitting the short message request to the terminal equipment, and meanwhile, the short message gateway packages the short message of the node to the blockchain platform.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 3 is a flow chart of a short message tracing method according to an embodiment of the present invention, where the method of the present embodiment may be executed by a server. As shown in fig. 3, the method of the present embodiment may include:
s301: and receiving a short message tracing request sent by the terminal equipment.
In this embodiment, when receiving a spam message or a marketing message, a user may want to report an enterprise client, that is, a sending end, corresponding to the message, and may send a message tracing request through a terminal device corresponding to the user. The terminal equipment can be a smart phone, a tablet, a personal computer and the like.
S302: and acquiring the blockchain processing record information corresponding to the initiator node according to the short message tracing request, wherein the blockchain processing record information comprises a processing node identifier and a blockchain processing serial number.
In this embodiment, after the short message tracing request is obtained, the terminal device may submit the short message tracing request to the server, and the server may query and determine the short message sequence number msgid of the short message to be traced through the short message gateway, where msgid is a unique identifier of the short message between every two nodes under the chain.
Further, the short message sequence number may also be referred to as an initiator identifier, and the short message tracing request may carry the initiator identifier, and acquiring the blockchain processing record information corresponding to the initiator node according to the short message tracing request may include:
and acquiring the initiator node corresponding to the initiator identifier from the short message gateway node.
And acquiring the blockchain processing record information corresponding to the initiator node according to the short message tracing request.
Specifically, after the initiator identifier is determined, a corresponding initiator node may be obtained from the short message gateway node according to the initiator identifier, that is, a short message is sent to a node at the terminal device, and then blockchain processing record information corresponding to the initiator node may be obtained from the blockchain platform according to the short message tracing request.
S303: and sequentially acquiring the blockchain processing record information of each processing node in the link corresponding to the initiator node according to the processing node identification, the blockchain processing serial number and the pre-stored processing sequence until the target blockchain processing record information corresponding to the leaf node is acquired.
In this embodiment, there may be multiple links where the initiator node is located, and each link may correspond to multiple nodes, and in the process of searching the sender, at least one blockchain processing record information of each processing node in the links corresponding to the initiator node may be sequentially acquired according to a pre-stored processing sequence. And then sequentially acquiring first blockchain processing record information corresponding to the processing node identification from at least one blockchain processing record information according to the link corresponding to the initiator node until target blockchain processing record information corresponding to the leaf node is acquired. Wherein the leaf node is the last node in the link.
S304: if the target block chain processing sequence number in the target block chain processing record information corresponds to the block chain processing sequence number, determining the target processing node corresponding to the target block chain processing sequence number as the final sending end of the short message.
In this embodiment, in the process of the short message from the sending end to the terminal device, the blockchain processing serial number is unique, and the short message and the processing operation related to the short message can be identified by the blockchain processing serial number. Further, after the target blockchain processing record information is obtained, the target blockchain processing sequence number carried in the target blockchain processing record information can be matched with the blockchain processing sequence number, and if the matching is successful, the target processing node corresponding to the target blockchain processing sequence number is determined to be the final sending end of the short message. If the matching is unsuccessful, the target processing node corresponding to the obtained target blockchain processing record information is not the final sending end of the short message, a new target processing node can be obtained, and judgment is carried out again until the final sending end of the short message is obtained.
Furthermore, after the short message data is packaged and uplink, accurate tracing of the short message can be achieved, and the specific steps can be divided into a processing process of a block chain platform and a processing process of equipment outside the block chain platform. The processing procedure of the blockchain platform may be referred to as on-chain, and the processing procedure of the device outside the blockchain platform may be referred to as under-chain, specifically:
the chain is as follows: and submitting a short message tracing request by a terminal user, and inquiring and determining the msgid of the short message to be traced through a short message gateway.
On the chain: the short message gateway account inquires the short message transaction record, and determines transaction records transaction_id and user_from according to the msgid.
On the chain: inquiring the transaction record of the short message by a transaction initiator account (user_from), and checking by using the transaction_id. After verification, inquiring the transaction_id and the user_from of the previous transaction record of the same short message of the account.
On the chain: and continuing to query the transaction initiator account (user_from) for the short message transaction record, and checking by using the transaction_id. After verification is correct, inquiring the transaction_id and the user_from of the transaction record before the transaction record of the same short message in the account until the transaction_id is confirmed under the current account, and inquiring the transaction record before the transaction record of the same short message in the account, so that the enterprise client corresponding to the account, namely the initial initiator of the short message, can be determined.
After the scheme is adopted, the short message tracing request sent by the terminal equipment can be received, the blockchain processing record information corresponding to the initiator node can be obtained according to the short message tracing request, the blockchain processing record information comprises the processing node identification and the blockchain processing serial number, then the blockchain processing record information of each processing node in the link corresponding to the initiator node can be sequentially obtained according to the processing node identification, the blockchain processing serial number and the pre-stored processing sequence until the target blockchain processing record information corresponding to the leaf node is obtained, and the target processing node corresponding to the target blockchain processing serial number in the target blockchain processing record information is determined to be the final sending end of the short message when the target blockchain processing serial number corresponds to the blockchain processing serial number, so that all nodes are not required to be associated, the short message tracing process is simplified, and the accuracy of short message tracing is further improved.
The examples of the present specification also provide some specific embodiments of the method based on the method of fig. 3, which is described below.
In another embodiment, before receiving the short message source tracing request sent by the terminal device, the method further includes:
and acquiring target blockchain processing record information generated by the target processing node.
And sending the target block chain processing record information to the terminal equipment according to a pre-stored transmission link, and uploading the target block chain processing record information to a corresponding block chain platform.
After the target blockchain processing record information is sent to the terminal device according to a pre-stored transmission link and the target blockchain processing record information is uploaded to the corresponding blockchain platform, the method can further include:
and acquiring a short message status report generated by the short message gateway.
And sending the short message status report to the target processing node, and uploading the short message status report to a corresponding blockchain platform.
The step of sending the target blockchain processing record information to the terminal device according to a pre-stored transmission link, and uploading the target blockchain processing record information to a corresponding blockchain platform may specifically include: and based on a pre-stored transmission link, sequentially transmitting the target blockchain processing record information according to the processing nodes until the target blockchain processing record information reaches the terminal equipment, and respectively uploading the target blockchain processing record information transmitted to each processing node to a corresponding blockchain platform.
In this embodiment, before determining the sending end of the short message through the blockchain platform, the blockchain platform may be built first, and then each piece of processing record information is uploaded to a node corresponding to the blockchain platform, so that the blockchain platform on the chain is built first, and each service node (enterprise user terminal, SP, short message gateway) blockchain account is allocated. And in the process of sending the short message, each service node (enterprise client, SP, short message gateway) submits the short message to the next node according to the original short message protocol (namely, the operation under the chain), packages the short message data into block chain short message data according to a specified format, and submits the block chain short message data to the service node account corresponding to the block chain short message tracing platform through the block chain short message tracing platform interface. The blockchain platform generates the same operation behavior as the service node under the chain corresponding to the node account. For example, after an enterprise user side submits a short message to an SP, the enterprise user packages blockchain short message data to an on-chain enterprise user account, and simultaneously the on-chain enterprise user account performs the same operation, transfers the blockchain short message data to the on-chain SP account, and generates a blockchain transaction unique identifier transaction_id. After the whole short message flow is sent, each service node packages and uploads the short message data to the block chain platform. Each under-chain operation of the short message corresponds to one on-chain transaction and generates a unique transaction sequence number transaction_id. All data of the whole short message flow can be related and inquired through the transaction_id, and accurate tracing of the short message is achieved.
Further, fig. 4 is a schematic flow diagram of a short message full service and data packet uplink provided by the embodiment of the present invention, as shown in fig. 4, the short message full service flow and the data packet uplink may specifically include:
the chain is as follows: and the enterprise client submits a short message request to the SP1.
Undersand on-chain: and the enterprise client packages the short message data of the node, submits the short message data to the corresponding blockchain account number on the chain, and the data structure is shown in the table 2 and the short message data structure table.
Table 2 short message data structure table
Figure BDA0002749032390000101
Figure BDA0002749032390000111
The packed sms field may include other fields according to different sms protocols. The values of the same field may be different at different stages. For example, the access number of the short message is different from the access number packaged by the short message gateway in the short message data packaged by the enterprise user due to the prefix of the access number, and the situation exists in normal service.
On the chain: the enterprise client submits a short message request to the SP1, and meanwhile, generates blockchain processing record information which comprises a unique serial number transaction_id and short message data, wherein the data structure is shown in a table 3, and the blockchain short message transaction data structure table.
TABLE 3 blockchain SMS transaction data Structure List
Figure BDA0002749032390000112
The transaction_id is automatically generated by the bottom layer framework of the blockchain platform, and has the characteristics of uniqueness, tamper resistance and the like. Account_from and Account_to are account numbers of service nodes on a blockchain platform, and are two-by-two associated parties operating on a chain respectively. The data field stores the packed short message data in json mode.
The chain is as follows: and the SP1 submits a short message request to the SP2.
Undersand on-chain: SP1 packages the short message data of the node and submits the short message data to the corresponding blockchain account number on the chain;
on the chain: SP1 submits a SMS request to SP2 and generates blockchain processing record information.
The chain is as follows: and the SP2 submits a short message request to a short message gateway.
Undersand on-chain: and the SP2 packages the short message data of the node and submits the short message data to the corresponding blockchain account number on the chain.
On the chain: SP2 submits short message request to short message gateway, and generates block chain processing record information.
The chain is as follows: and the short message gateway transmits the short message to the terminal user.
Undersand on-chain: and the short message gateway packages the short message data of the node and submits the short message data to the corresponding blockchain account on the chain.
The chain is as follows: and the short message gateway returns a short message status report to the SP2.
Undersand on-chain: the short message gateway packages the short message data containing the short message status report and submits the short message data to the corresponding blockchain account number on the chain.
On the chain: and the short message gateway returns a short message status report to the SP2 and generates block chain processing record information.
The chain is as follows: SP2 returns a status report to SP1.
Undersand on-chain: and the SP2 packages the short message data containing the short message status report and submits the short message data to the corresponding blockchain account on the chain.
On the chain: SP2 returns a status report to SP1 while generating blockchain processing record information;
the chain is as follows: SP1 returns a status report to the enterprise client.
Undersand on-chain: and the SP1 packages the short message data containing the short message status report and submits the short message data to the corresponding blockchain account on the chain.
On the chain: SP1 returns a status report to the enterprise client while generating blockchain processing record information.
In addition, when the service node data under the packing chain is uploaded to the blockchain platform, a plurality of short message protocols can be adapted, and the short message data of different protocols are uploaded to the blockchain platform in a unified format.
Based on uniqueness and non-tamper property of the block chain, the method packages the short message data of each node in the short message issuing process and uploads the short message data to the block chain short message tracing platform. Based on the openness of the blockchain, the unique serial numbers of the blockchain transaction records are used for associating the short message data of the same short message in different service nodes (enterprise clients, SP (service provider), and short message gateway), so that the data query of all service nodes in the short message issuing process and the accurate tracing of the short message are realized.
Based on the same idea, the embodiment of the present disclosure further provides a device corresponding to the method, and fig. 5 is a schematic structural diagram of a short message tracing device provided by the embodiment of the present disclosure, as shown in fig. 5, may include:
and the receiving module 501 is used for receiving the short message tracing request sent by the terminal equipment.
And the processing module 502 is configured to obtain blockchain processing record information corresponding to the initiator node according to the short message tracing request, where the blockchain processing record information includes a processing node identifier and a blockchain processing serial number.
In this embodiment, the processing module 502 is further configured to:
and acquiring the initiator node corresponding to the initiator identifier from the short message gateway node.
And acquiring the blockchain processing record information corresponding to the initiator node according to the short message tracing request.
The processing module 502 is further configured to sequentially obtain, according to the processing node identifier, the blockchain processing serial number, and a pre-stored processing order, blockchain processing record information of each processing node in the link corresponding to the initiator node until target blockchain processing record information corresponding to the leaf node is obtained.
In this embodiment, the processing module is further configured to:
and sequentially acquiring at least one blockchain processing record information of each processing node in the link corresponding to the initiator node according to a pre-stored processing sequence.
And sequentially acquiring first blockchain processing record information corresponding to the processing node identification from the at least one blockchain processing record information according to the links corresponding to the initiator node until target blockchain processing record information corresponding to the leaf node is acquired.
The processing module 502 is further configured to determine that a target processing node corresponding to the target blockchain processing sequence number is a final sending end of the short message if the target blockchain processing sequence number in the target blockchain processing record information corresponds to the blockchain processing sequence number.
Furthermore, in another embodiment, the processing module 502 is further configured to:
and acquiring target blockchain processing record information generated by the target processing node.
And sending the target block chain processing record information to the terminal equipment according to a pre-stored transmission link, and uploading the target block chain processing record information to a corresponding block chain platform.
The processing module 502 is further configured to:
and acquiring a short message status report generated by the short message gateway.
And sending the short message status report to the target processing node, and uploading the short message status report to a corresponding blockchain platform.
The processing module 502 is further configured to:
and based on a pre-stored transmission link, sequentially transmitting the target blockchain processing record information according to the processing nodes until the target blockchain processing record information reaches the terminal equipment, and respectively uploading the target blockchain processing record information transmitted to each processing node to a corresponding blockchain platform.
The device provided by the embodiment of the present invention can implement the method of the embodiment shown in fig. 3, and its implementation principle and technical effects are similar, and will not be described herein.
Fig. 6 is a schematic hardware structure diagram of a short message source tracing device provided in the embodiment of the present invention, as shown in fig. 6, an apparatus 600 provided in this embodiment includes: at least one processor 601 and a memory 602. The processor 601 and the memory 602 are connected by a bus 603.
In a specific implementation, at least one processor 601 executes computer-executable instructions stored in the memory 602, so that the at least one processor 601 performs the method in the above method embodiments.
The specific implementation process of the processor 601 may refer to the above-mentioned method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the embodiment shown in fig. 6, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise high speed RAM memory or may further comprise non-volatile storage NVM, such as at least one disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions, and when a processor executes the computer execution instructions, the short message tracing method of the method embodiment is realized.
The computer readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in a device.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (8)

1. The short message tracing method is characterized by comprising the following steps of:
receiving a short message tracing request sent by terminal equipment;
obtaining blockchain processing record information corresponding to an initiator node according to the short message tracing request, wherein the blockchain processing record information comprises a processing node identifier and a blockchain processing serial number, and the initiator node is a node for sending the short message to a terminal device;
sequentially acquiring the blockchain processing record information of each processing node in the link corresponding to the initiator node according to the processing node identification, the blockchain processing serial number and a pre-stored processing sequence until the target blockchain processing record information corresponding to the leaf node is acquired;
if the target blockchain processing sequence number in the target blockchain processing record information corresponds to the blockchain processing sequence number, determining that a target processing node corresponding to the target blockchain processing sequence number is a final sending end of the short message;
the step of sequentially obtaining the blockchain processing record information of each processing node in the link corresponding to the initiator node according to the processing node identifier, the blockchain processing serial number and a pre-stored processing sequence until obtaining the target blockchain processing record information corresponding to the leaf node comprises the following steps:
sequentially acquiring at least one blockchain processing record information of each processing node in a link corresponding to the initiator node according to a pre-stored processing sequence;
and sequentially acquiring first blockchain processing record information corresponding to the processing node identification from the at least one blockchain processing record information according to the links corresponding to the initiator node until target blockchain processing record information corresponding to the leaf node is acquired.
2. The method of claim 1, wherein the short message tracing request carries an initiator identifier, and the obtaining the blockchain processing record information corresponding to the initiator node according to the short message tracing request includes:
acquiring an initiator node corresponding to the initiator identifier from a short message gateway node;
and acquiring the blockchain processing record information corresponding to the initiator node according to the short message tracing request.
3. The method according to any one of claims 1-2, further comprising, before the receiving the short message source tracing request sent by the terminal device:
acquiring target blockchain processing record information generated by the target processing node;
and sending the target block chain processing record information to the terminal equipment according to a pre-stored transmission link, and uploading the target block chain processing record information to a corresponding block chain platform.
4. The method of claim 3, further comprising, after said sending said target blockchain processing record information to said terminal device in a pre-stored transmission link and uploading said target blockchain processing record information to a corresponding blockchain platform:
acquiring a short message status report generated by a short message gateway;
and sending the short message status report to the target processing node, and uploading the short message status report to a corresponding blockchain platform.
5. The method of claim 3, wherein the sending the target blockchain processing record information to the terminal device in a pre-stored transmission link and uploading the target blockchain processing record information to a corresponding blockchain platform comprises:
and based on a pre-stored transmission link, sequentially transmitting the target blockchain processing record information according to the processing nodes until the target blockchain processing record information reaches the terminal equipment, and respectively uploading the target blockchain processing record information transmitted to each processing node to a corresponding blockchain platform.
6. The utility model provides a short message traceability device which characterized in that includes:
the receiving module is used for receiving a short message tracing request sent by the terminal equipment;
the processing module is used for acquiring blockchain processing record information corresponding to an initiator node according to the short message tracing request, wherein the blockchain processing record information comprises a processing node identifier and a blockchain processing serial number, and the initiator node is a node for sending the short message to a terminal device;
the processing module is further configured to sequentially obtain, according to the processing node identifier, the blockchain processing serial number, and a pre-stored processing sequence, blockchain processing record information of each processing node in the link corresponding to the initiator node until target blockchain processing record information corresponding to a leaf node is obtained;
the processing module is further configured to determine that a target processing node corresponding to the target blockchain processing sequence number is a final sending end of the short message if the target blockchain processing sequence number in the target blockchain processing record information corresponds to the blockchain processing sequence number;
the processing module is further configured to:
sequentially acquiring at least one blockchain processing record information of each processing node in a link corresponding to the initiator node according to a pre-stored processing sequence;
and sequentially acquiring first blockchain processing record information corresponding to the processing node identification from the at least one blockchain processing record information according to the links corresponding to the initiator node until target blockchain processing record information corresponding to the leaf node is acquired.
7. The short message tracing device is characterized by comprising the following components: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory, causing the at least one processor to perform the short message tracing method according to any one of claims 1 to 5.
8. A computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and when the processor executes the computer executable instructions, the short message tracing method according to any one of claims 1 to 5 is implemented.
CN202011177254.2A 2020-10-28 2020-10-28 Short message tracing method, device and equipment Active CN114422970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011177254.2A CN114422970B (en) 2020-10-28 2020-10-28 Short message tracing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011177254.2A CN114422970B (en) 2020-10-28 2020-10-28 Short message tracing method, device and equipment

Publications (2)

Publication Number Publication Date
CN114422970A CN114422970A (en) 2022-04-29
CN114422970B true CN114422970B (en) 2023-06-27

Family

ID=81260336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011177254.2A Active CN114422970B (en) 2020-10-28 2020-10-28 Short message tracing method, device and equipment

Country Status (1)

Country Link
CN (1) CN114422970B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165953A (en) * 2018-07-27 2019-01-08 中国联合网络通信集团有限公司 Art sales method, apparatus, equipment and readable storage medium storing program for executing
CN111385751A (en) * 2020-02-28 2020-07-07 腾讯科技(深圳)有限公司 Information sending method, device, terminal and readable storage medium
WO2020168937A1 (en) * 2019-02-20 2020-08-27 深圳前海微众银行股份有限公司 Block chain multi-party witness method, apparatus and device, and computer-readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160164884A1 (en) * 2014-12-05 2016-06-09 Skuchain, Inc. Cryptographic verification of provenance in a supply chain
US10977629B2 (en) * 2017-09-29 2021-04-13 Oracle Financial Services Software Limited Computerized messaging module for blockchain networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165953A (en) * 2018-07-27 2019-01-08 中国联合网络通信集团有限公司 Art sales method, apparatus, equipment and readable storage medium storing program for executing
WO2020168937A1 (en) * 2019-02-20 2020-08-27 深圳前海微众银行股份有限公司 Block chain multi-party witness method, apparatus and device, and computer-readable storage medium
CN111385751A (en) * 2020-02-28 2020-07-07 腾讯科技(深圳)有限公司 Information sending method, device, terminal and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
数据溯源研究与实践进展;王芳;赵洪;;情报学进展(00);全文 *

Also Published As

Publication number Publication date
CN114422970A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN108965484B (en) Internet of things data transmission method, system and terminal
EP3522088B1 (en) Securing blockchain access through a gateway
CN112615871B (en) Method and device for transmitting authenticatable message across chains
CN109639636A (en) Business datum forwarding, business data processing method, device and electronic equipment
CN106686105B (en) Message pushing method, computing device, server and information sharing system
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
US11425086B2 (en) Using DNS to communicate MC-TCP capability of server devices
CN111182089A (en) Container cluster system, method and device for accessing big data assembly and server
CN113612686A (en) Traffic scheduling method and device and electronic equipment
JP2018506796A (en) Data backfill method and system
CN105450585A (en) Information transmission method and device
CN106713242B (en) Data request processing method and processing device
CN104348848A (en) Method, terminal equipment and server for managing pictures
CN103581361A (en) Domain name resolution proxy method, device and system
CN109194706B (en) Network resource dial testing method and terminal
CN112671574B (en) Front-end and back-end joint debugging method and device, proxy equipment and storage medium
CN108650170A (en) A kind of display methods and device of information
CN114422970B (en) Short message tracing method, device and equipment
CN106446138B (en) Data packet storage method and device
CN112422485B (en) Communication method and device of transmission control protocol
CN111738853A (en) Transaction optimization method and device based on block chain distributed system
CN109067503B (en) Data retransmission method and device
CN114710426A (en) Method, device, system and related equipment for determining round-trip delay of read operation
CN110764927A (en) Method and equipment for asynchronous communication among multiple machines
CN106341480B (en) Data packet uploading method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant