CN115550307A - Service processing method, service end, user end and system based on block chain - Google Patents
Service processing method, service end, user end and system based on block chain Download PDFInfo
- Publication number
- CN115550307A CN115550307A CN202211141468.3A CN202211141468A CN115550307A CN 115550307 A CN115550307 A CN 115550307A CN 202211141468 A CN202211141468 A CN 202211141468A CN 115550307 A CN115550307 A CN 115550307A
- Authority
- CN
- China
- Prior art keywords
- source address
- service
- information
- address
- block chain
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 25
- 238000013507 mapping Methods 0.000 claims abstract description 191
- 238000012545 processing Methods 0.000 claims abstract description 127
- 238000000034 method Methods 0.000 claims abstract description 44
- 238000013519 translation Methods 0.000 claims description 53
- 238000004590 computer program Methods 0.000 claims description 23
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 14
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a service processing method, a service end, a user end and a system based on a block chain, in particular to the field of the block chain, wherein the method comprises the following steps: acquiring a service frame identifier and a current source address according to a service frame sent by a user side, and acquiring address mapping information from a block chain based on the service frame identifier and the current source address; if the acquisition is successful, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring target location information of the user side from the block chain based on the real source address, and performing service processing according to the target location information and the service frame; and if the acquisition fails, acquiring the target location information of the user side from the block chain based on the current source address, and performing service processing according to the target location information and the service frame. The invention can improve the accuracy and speed of determining the user side attribution information, thereby improving the accuracy and speed of service processing and further improving the service processing efficiency.
Description
Technical Field
The present invention relates to the field of address resolution technologies, and in particular, to the field of block chains, and in particular, to a service processing method, a service end, a user end, and a system based on block chains.
Background
In the related business processing of the bank, the business processing is performed by calling the service or application corresponding to the area where the local information is located based on the local information of the user end of the business processing request user, so that the business processing process conforms to the relevant regulations, processes, habits and the like of the area where the user end is located, thereby improving the business processing efficiency and meeting the user experience.
In the prior art, the method for determining the home information of the user terminal is mainly determined by directly performing related query or calculation based on the current source address used by the user terminal for accessing. However, many users, due to their work needs, life needs, academic needs, and the like, perform processing such as address mapping on the real address of their user end, and use the mapped address as an access source address to perform related network or communication activities, and the attribution information corresponding to the mapped address is often different from the attribution information corresponding to the real address of the user end, so that the determined attribution information does not conform to the actual situation, the accuracy of determining the attribution information of the user end is low, and more computing resources are consumed for querying or computing, and the speed of determining the attribution information of the user end is slow, which further causes errors or inconvenience in service processing.
When some service terminals face this situation, it is also determined whether the source address accessed by the user terminal is the real source address. The existing judgment mode is mainly to judge by analyzing addresses and other related information of the online neighbor devices in the local area network where the user terminal is located or in a nearby network, but the related information of the online neighbor devices is difficult to obtain and slow to obtain, and relative to the user terminal, there may not be corresponding online neighbor devices, which may result in the above judgment mode being unable to be performed. Therefore, even if the current source address accessed by the user terminal is judged in the above manner, the accuracy and speed of determining the user terminal attribution information cannot be effectively improved.
In summary, in the prior art, there is a problem that the accuracy of determining the location information of the user side is low and the speed is slow, so that the accuracy and the speed of service processing are low, and the efficiency of service processing is not improved.
Disclosure of Invention
An object of the present invention is to provide a service processing method based on a block chain, so as to solve the problem that the accuracy and the speed for determining the location information of a user end are relatively low, so that the accuracy and the speed of service processing are relatively low, and the service processing efficiency is not favorably improved in the prior art. Another object of the present invention is to provide a service end. Still another object of the present invention is to provide a ue. Still another object of the present invention is to provide a service processing system based on block chains. It is a further object of the present invention to provide a computer apparatus. It is a further object of this invention to provide such a readable medium. It is a further object of the invention to provide a computer program product.
In order to achieve the above object, an aspect of the present invention discloses a service processing method based on a block chain, where the method includes:
acquiring a service frame identifier and a current source address according to a service frame sent by a user side, and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address;
if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring target location information of a user side from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame;
and if the corresponding address mapping information is failed to be obtained, obtaining target location information of the user side from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
Optionally, the obtaining corresponding address mapping information from the blockchain based on the service frame identifier and the current source address includes:
acquiring one or more corresponding mapping information to be selected from a block chain based on the service frame identification;
and acquiring the mapping information to be selected corresponding to the current source address from all the mapping information to be selected as the address mapping information.
Optionally, further comprising:
after the corresponding address mapping information is successfully acquired,
determining corresponding address translation equipment information in a block chain according to the current source address;
obtaining a corresponding address translation equipment type according to the address translation equipment information;
and judging whether the address translation equipment type is included in the preset expected translation equipment type or not, and if not, giving an alarm.
Optionally, the determining, according to the current source address, address translation device information corresponding to the block chain includes:
determining a corresponding conversion end node in the block chain according to the current source address;
and obtaining the corresponding address translation equipment information based on the translation end node.
Optionally, the obtaining the target location information of the user side from the block chain based on the real source address includes:
determining a corresponding user side node in a block chain based on the real source address;
and obtaining the corresponding target attribution information based on the user end node.
Optionally, the obtaining the target location information of the user end from the block chain based on the current source address includes:
determining a corresponding user side node in the block chain based on the current source address;
and obtaining the corresponding target attribution information based on the user end node.
Optionally, the performing, according to the target location information and the service frame, corresponding service processing includes:
determining a plurality of corresponding service processing services to be selected according to the target location information;
obtaining a service type and service input information according to the service frame;
and determining a target business processing service corresponding to the business type from a plurality of business processing services to be selected, and inputting the business input information into the target business processing service to perform corresponding business processing.
In order to achieve the above object, another aspect of the present invention discloses a service processing method based on a block chain, including:
sending a service frame to a service end so that the service end obtains a service frame identifier and a current source address according to the service frame, and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address; if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring corresponding target location information from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame; and if the corresponding address mapping information is failed to be obtained, obtaining corresponding target location information from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
Optionally, further comprising:
before the traffic frame is transmitted to the traffic side,
if address mapping is carried out, mapping relation information is formed based on the real source address and the mapped current source address;
and forming the address mapping information based on the mapping relation information and the corresponding service frame identification, and sending the address mapping information to a block chain.
Optionally, further comprising:
before the traffic frame is transmitted to the traffic side,
and sending a real source address and corresponding target location information to a corresponding user terminal node in the block chain, so that a service terminal can determine the user terminal node in the block chain based on the real source address and obtain the corresponding target location information based on the user terminal node.
In order to achieve the above object, a further aspect of the present invention discloses a service end, including:
the mapping information acquisition module is used for acquiring a service frame identifier and a current source address according to a service frame sent by a user side, and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address;
the first processing module is used for obtaining a real source address corresponding to the current source address according to the address mapping information if the corresponding address mapping information is successfully obtained, obtaining target location information of a user side from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame;
and the second processing module is used for obtaining the target location information of the user side from the block chain based on the current source address if the corresponding address mapping information is failed to be obtained, and performing corresponding service processing according to the target location information and the service frame.
In order to achieve the above object, a further aspect of the present invention discloses a ue, configured to:
sending a service frame to a service end so that the service end obtains a service frame identifier and a current source address according to the service frame, and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address; if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring corresponding target location information from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame; and if the corresponding address mapping information is failed to be acquired, acquiring corresponding target location information from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
In order to achieve the above object, a further aspect of the present invention discloses a service processing system based on a block chain, which includes a service end and a user end;
the user side is used for sending a service frame to a service side;
the service end is used for obtaining a service frame identifier and a current source address according to the service frame and acquiring corresponding address mapping information from the block chain based on the service frame identifier and the current source address; if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring target location information of a user side from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame; and if the corresponding address mapping information is failed to be obtained, obtaining target location information of the user side from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
The invention also discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method when executing the program.
The invention also discloses a computer-readable medium, on which a computer program is stored which, when executed by a processor, implements a method as described above.
The invention also discloses a computer program product comprising a computer program which, when executed by a processor, implements the method as described above.
According to the block chain-based service processing method, the service end, the user end and the system, the service frame identifier and the current source address are obtained according to the service frame sent by the user end, the corresponding address mapping information is obtained from the block chain based on the service frame identifier and the current source address, the service frame can be fully analyzed to obtain the actual identifier and the current source address, the address mapping information which is registered in the block chain in advance can be comprehensively positioned based on the information of the identifier and the source address, the positioning address mapping information and the accuracy are improved, the steps are simple, the speed of positioning the address mapping information is improved, and when the address mapping is carried out, the relevant mapping information is registered in an uplink chain, the advantages that the block chain is suitable for storing the relevant information and the stored information is not easy to be falsified can be fully utilized, a feasible, convenient and accurate way is provided for accurately judging whether the source address accessed by the user end is the real source address of the user end and subsequently tracing the real source address, so that the accuracy and the speed of integrally determining the attribute information are improved; if the corresponding address mapping information is successfully obtained, the real source address corresponding to the current source address is obtained according to the address mapping information, the target address information of the user side is obtained from the block chain based on the real source address, corresponding service processing is carried out according to the target address information and the service frame, when the pre-registered address mapping information is obtained, the fact that the source address accessed by the user side is not the real source address can be quickly and accurately determined, the real source address of the user side can be obtained by directly taking the actually-registered address mapping information as input and simply processing, the accuracy and the speed of judging whether the source address accessed by the user side is the real source address and obtaining the real source address are improved, the corresponding pre-registered address information of the user side can be directly obtained from the block chain based on the real source address without consuming long time for inquiring or calculating, and therefore the accuracy and the speed of integrally determining the user side address information are improved; if the acquisition of the corresponding address mapping information fails, the target location information of the user side is obtained from the block chain based on the current source address, and the corresponding service processing is performed according to the target location information and the service frame, so that the source address accessed by the user side can be quickly and accurately determined to be the real source address when the pre-registered address mapping information cannot be acquired, the accuracy and the speed for judging whether the source address accessed by the user side is the real source address are improved, and the corresponding pre-registered location information of the user side can be directly obtained from the block chain based on the source address accessed by the user side without consuming a long time for inquiring or calculating, so that the accuracy and the speed for integrally determining the location information of the user side are improved. In summary, the service processing method, the service end, the user end and the system based on the block chain provided by the invention can improve the accuracy and speed of determining the location information of the user end, thereby improving the accuracy and speed of service processing and further improving the service processing efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a service processing system based on a block chain according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a service-side service processing method based on a block chain according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an optional step of obtaining address mapping information according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating an optional step of obtaining target property information according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for processing a service based on a blockchain at a user end according to an embodiment of the present invention;
fig. 6 shows a schematic block diagram of a service end according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a ue according to an embodiment of the present invention;
FIG. 8 illustrates a schematic block diagram of a computer device suitable for use in implementing embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The terms "first," "second," "8230," "8230," and the like as used herein do not particularly denote any order or sequence, nor are they intended to limit the invention, but rather are used to distinguish one element from another or from another element described in the same technical term.
As used herein, the terms "comprising," "including," "having," "containing," and the like are open-ended terms that mean including, but not limited to.
As used herein, "and/or" includes any and all combinations of the described items.
It should be noted that, in the technical solution of the present invention, the acquisition, storage, use, processing, etc. of the data all meet the relevant regulations of the national laws and regulations.
It should be noted that the service processing method, the service end, the user end, and the system based on the block chain disclosed in the present application may be used in the technical field of address resolution, and may also be used in any field other than the technical field of address resolution.
The embodiment of the invention discloses a service processing system based on a block chain, which comprises a service end 101 and a user end 102, as shown in figure 1;
the user end 102 is configured to send a service frame to the service end 101;
the service end 101 is configured to obtain a service frame identifier and a current source address according to the service frame, and obtain corresponding address mapping information from the block chain based on the service frame identifier and the current source address; if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring target location information of the user terminal 102 from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame; if the corresponding address mapping information is not obtained, the target location information of the user terminal 102 is obtained from the block chain based on the current source address, and corresponding service processing is performed according to the target location information and the service frame.
For example, the service end 101 and the user end 102 may be configured integrally or separately. The service end 101 may be, but is not limited to, a server or a terminal that performs service processing, and the user end 102 may be, but is not limited to, a terminal of a user. It should be noted that, specific properties and setting manners of the service end 101 and the user end 102 can be determined by those skilled in the art according to practical situations, and the above description is only an example, and is not limited thereto.
According to the block chain-based service processing method, the service end, the user end and the system, the service frame identifier and the current source address are obtained according to the service frame sent by the user end, the corresponding address mapping information is obtained from the block chain based on the service frame identifier and the current source address, the service frame can be fully analyzed to obtain the actual identifier and the current source address, the address mapping information which is registered in the block chain in advance can be comprehensively positioned based on the information of the identifier and the source address, the positioning address mapping information and the accuracy are improved, the steps are simple, the speed of positioning the address mapping information is improved, and when the address mapping is carried out, the relevant mapping information is registered in an uplink chain, the advantages that the block chain is suitable for storing the relevant information and the stored information is not easy to be falsified can be fully utilized, a feasible, convenient and accurate way is provided for accurately judging whether the source address accessed by the user end is the real source address of the user end and subsequently tracing the real source address, so that the accuracy and the speed of integrally determining the attribute information are improved; if the corresponding address mapping information is successfully obtained, the real source address corresponding to the current source address is obtained according to the address mapping information, the target address information of the user side is obtained from the block chain based on the real source address, corresponding service processing is carried out according to the target address information and the service frame, when the pre-registered address mapping information is obtained, the fact that the source address accessed by the user side is not the real source address can be quickly and accurately determined, the real source address of the user side can be obtained by directly taking the actually-registered address mapping information as input and simply processing, the accuracy and the speed of judging whether the source address accessed by the user side is the real source address and obtaining the real source address are improved, the corresponding pre-registered address information of the user side can be directly obtained from the block chain based on the real source address without consuming long time for inquiring or calculating, and therefore the accuracy and the speed of integrally determining the user side address information are improved; if the acquisition of the corresponding address mapping information fails, the target location information of the user side is obtained from the block chain based on the current source address, and the corresponding service processing is performed according to the target location information and the service frame, so that the source address accessed by the user side can be quickly and accurately determined to be the real source address when the pre-registered address mapping information cannot be acquired, the accuracy and the speed for judging whether the source address accessed by the user side is the real source address are improved, and the corresponding pre-registered location information of the user side can be directly obtained from the block chain based on the source address accessed by the user side without consuming a long time for inquiring or calculating, so that the accuracy and the speed for integrally determining the location information of the user side are improved. In summary, the service processing method, the service end, the user end and the system based on the block chain provided by the invention can improve the accuracy and speed of determining the location information of the user end, thereby improving the accuracy and speed of service processing and further improving the service processing efficiency.
The following describes an implementation process of the service processing method based on the block chain, which is provided by the embodiment of the present invention, by taking the service end 101 as an execution subject. It can be understood that the execution subject of the service processing method based on the block chain provided in the embodiment of the present invention includes, but is not limited to, the service end 101.
Based on this, the embodiment of the present invention discloses a service processing method based on a block chain, as shown in fig. 2, the method specifically includes the following steps:
s201: and acquiring a service frame identifier and a current source address according to a service frame sent by a user side, and acquiring corresponding address mapping information from the block chain based on the service frame identifier and the current source address.
If the corresponding address mapping information is successfully obtained, step S202 is executed.
S202: and obtaining a real source address corresponding to the current source address according to the address mapping information, obtaining target location information of the user terminal from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame.
If the corresponding address mapping information is not obtained, step S203 is executed.
S203: and obtaining target location information of the user side from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
For example, the address mapping may also be understood as address translation or address translation, etc.
Illustratively, the location information in the embodiment of the present invention includes, but is not limited to, a region (granularity may be, but is not limited to, province, city, district, county, town, county, or street), longitude and latitude, a specific geographic location, and the like. It should be noted that the specific content of the attribute information can be determined by those skilled in the art according to the actual situation, and the above description is only an example, and is not limited thereto.
Illustratively, the addresses in the embodiments of the present invention include, but are not limited to, IP, port, and the like.
Illustratively, the obtaining of the service frame identifier and the current source address according to the service frame sent by the user side may be, but is not limited to, parsing the service frame to obtain the service frame identifier and the current source address included in or corresponding to the service frame. The type of the service frame may be, but is not limited to, an IP frame, an ethernet frame, a TCP frame, or a UDP frame, and is preferably an IP frame. The service frame identifier may be, but is not limited to, a frame identifier, a checksum or a check sequence, and is preferably a frame identifier. It should be noted that, for the specific implementation manner of obtaining the service frame identifier and the current source address according to the service frame sent by the user end, the type of the service frame, and the property of the service frame identifier, may be determined by those skilled in the art according to the actual situation, and the above description is only an example, and does not limit this.
For example, the obtaining of the real source address corresponding to the current source address according to the address mapping information may be, but is not limited to, analyzing the address mapping information to obtain the real source address, and it should be noted that a specific implementation manner of obtaining the real source address corresponding to the current source address according to the address mapping information may be determined by a person skilled in the art according to an actual situation, and the above description is only an example, and does not limit the present invention.
According to the block chain-based service processing method, the service end, the user end and the system, the service frame identifier and the current source address are obtained according to the service frame sent by the user end, the corresponding address mapping information is obtained from the block chain based on the service frame identifier and the current source address, the service frame can be fully analyzed to obtain the actual identifier and the current source address, the address mapping information which is registered in the block chain in advance can be comprehensively positioned based on the information of the identifier and the source address, the positioning address mapping information and the accuracy are improved, the steps are simple, the speed of positioning the address mapping information is improved, and when the address mapping is carried out, the relevant mapping information is registered in an uplink chain, the advantages that the block chain is suitable for storing the relevant information and the stored information is not easy to be falsified can be fully utilized, a feasible, convenient and accurate way is provided for accurately judging whether the source address accessed by the user end is the real source address of the user end and subsequently tracing the real source address, so that the accuracy and the speed of integrally determining the attribute information are improved; if the corresponding address mapping information is successfully acquired, the real source address corresponding to the current source address is acquired according to the address mapping information, the target address information of the user side is acquired from the block chain on the basis of the real source address, corresponding service processing is performed according to the target address information and the service frame, when the pre-registered address mapping information is acquired, the fact that the source address accessed by the user side is not the real source address can be quickly and accurately determined, the real source address of the user side can be acquired by directly using the actually-registered address mapping information as input and simply processing, the accuracy and the speed for judging whether the source address accessed by the user side is the real source address and acquiring the real source address are improved, the corresponding pre-registered address information of the user side can be directly acquired from the block chain on the basis of the real source address without consuming long time for inquiring or calculating, and therefore the accuracy and the speed for integrally determining the user side address information are improved; if the acquisition of the corresponding address mapping information fails, the target location information of the user side is obtained from the block chain based on the current source address, and the corresponding service processing is performed according to the target location information and the service frame, so that the source address accessed by the user side can be quickly and accurately determined to be the real source address when the pre-registered address mapping information cannot be acquired, the accuracy and the speed for judging whether the source address accessed by the user side is the real source address are improved, and the corresponding pre-registered location information of the user side can be directly obtained from the block chain based on the source address accessed by the user side without consuming a long time for inquiring or calculating, so that the accuracy and the speed for integrally determining the location information of the user side are improved. In summary, the service processing method, the service end, the user end and the system based on the block chain provided by the invention can improve the accuracy and speed of determining the location information of the user end, thereby improving the accuracy and speed of service processing and further improving the service processing efficiency.
In an optional embodiment, as shown in fig. 3, the obtaining corresponding address mapping information from the blockchain based on the service frame identifier and the current source address includes the following steps:
s301: and acquiring one or more corresponding mapping information to be selected from the block chain based on the service frame identifier.
S302: and acquiring the mapping information to be selected corresponding to the current source address from all the mapping information to be selected as the address mapping information.
For example, the step S301 may be, but is not limited to, performing query in a block chain by using the service frame identifier, and obtaining one or more pieces of queried mapping information to be selected. Generally, one traffic frame id corresponds to only one mapping information, but may correspond to a plurality of mapping information in a few cases. It should be noted that, for the specific implementation manner of step S301, it can be determined by those skilled in the art according to practical situations, and the above description is only an example, and is not limited thereto.
For example, the step S302 may be, but is not limited to, acquiring candidate mapping information including the current source address as the address mapping information. It should be noted that, for the specific implementation manner of step S302, it can be determined by those skilled in the art according to practical situations, and the foregoing description is only an example, and is not limited thereto.
Through the steps, the service frame identification and the current source address can be used for multiple positioning, the accuracy of obtaining the address mapping information is improved, and the obtained address mapping information is enabled to have uniqueness under the condition that one service frame identification corresponds to a plurality of mapping information, so that the accuracy of integrally determining the user side address information is improved.
In an optional embodiment, further comprising:
after the corresponding address mapping information is successfully acquired,
determining corresponding address translation equipment information in the block chain according to the current source address;
obtaining a corresponding address translation equipment type according to the address translation equipment information;
and judging whether the address translation equipment type is included in the preset expected translation equipment type or not, and if not, giving an alarm.
For example, the determining, according to the current source address, the corresponding address translation device information in the blockchain may be, but is not limited to, determining the corresponding address translation device information by using the current source address to perform query in the blockchain. The address translation device information may be, but is not limited to, uploaded to the block chain by the address translation device performing address mapping, and specifically includes, but is not limited to, a device identifier, an address translation device type, a device address, device node information, and device affiliated service party information. It should be noted that, for determining the specific implementation manner of the address translation device information corresponding to the block chain according to the current source address and the specific content of the address translation device information, a person skilled in the art may determine according to an actual situation, and the above description is only an example, and does not limit this.
Illustratively, since the address translation device information includes the address translation device type, the corresponding address translation device type can be obtained directly according to the address translation device information.
Illustratively, the expected translation device type, including but not limited to a router, a switch, a terminal, etc., is a type of device mainly used for mapping an address reasonably, but generally does not include a server (since some unexpected vendors tend to use the server for remote address mapping, and these vendors may have unexpected access to some service terminals through the opportunity of address mapping, which is not favorable for the security of service processing). It should be noted that the type of the intended conversion device can be determined by those skilled in the art according to practical situations, and the above description is only an example and is not limiting.
For example, the warning may be, but is not limited to, sending a warning message to the staff member, such as "there is unexpected access, which may cause a security problem, please handle it in time". It should be noted that, the specific implementation manner for performing the alarm may be determined by those skilled in the art according to actual situations, and the above description is only an example, and is not limited thereto.
Through the steps, rules that some unexpected address mapping operations need to be implemented by unexpected devices can be fully considered, so that when the current source address is the mapped address, whether unexpected access is possibly caused by service access of the user side can be accurately judged, and when unexpected access is possibly caused, warning is timely given to facilitate that the unexpected access is timely prevented or processed, and the safety of overall service processing is improved.
In an optional embodiment, the determining, according to the current source address, address translation device information corresponding to a block chain includes:
determining a corresponding conversion end node in the block chain according to the current source address;
and obtaining the corresponding address translation equipment information based on the translation end node.
For example, the determining a corresponding translation end node in the blockchain according to the current source address may be, but is not limited to, determining a translation end node including or corresponding to the current source address by using the current source address to perform a query in the blockchain. It should be noted that, for a specific implementation manner of determining a corresponding switch end node in a block chain according to the current source address, the specific implementation manner may be determined by a person skilled in the art according to an actual situation, and the above description is only an example, and does not limit this.
For example, the obtaining of the corresponding address translation device information based on the translation end node may be, but is not limited to, parsing the translation end node to obtain the address translation device information included therein. It should be noted that, for a specific implementation manner of obtaining the corresponding address translation device information based on the translation end node, the specific implementation manner may be determined by a person skilled in the art according to an actual situation, and the above description is only an example, and does not limit this.
Through the steps, the rule that the detailed information of the equipment or the terminal is often recorded in the corresponding block chain link point can be fully considered, the node is positioned and analyzed to obtain the corresponding address conversion equipment information, traversing search is not needed to be carried out on all information in the block chain, the data volume required to be traversed in the process of obtaining the address conversion equipment information is reduced, time consumption is reduced, the speed and the accuracy of obtaining the address conversion equipment information are improved, the response speed and the accuracy of alarming and intercepting unexpected access are improved, and the safety of overall service processing is improved.
In an alternative embodiment, as shown in fig. 4, the obtaining the destination location information of the user end from the blockchain based on the real source address includes the following steps:
s401: and determining a corresponding user side node in the block chain based on the real source address.
S402: and obtaining the corresponding target attribution information based on the user end node.
For example, the step S401 may determine the user end node including or corresponding to the real source address, for not limiting to query in the blockchain using the real source address. It should be noted that, for the specific implementation manner of step S401, it can be determined by those skilled in the art according to practical situations, and the above description is only an example, and is not limited thereto.
For example, the step S402 may be, but is not limited to, parsing the user end node to obtain the target location information included in the user end node. It should be noted that, for the specific implementation manner of step S402, it can be determined by those skilled in the art according to practical situations, and the above description is only an example, and is not limited thereto.
Through the steps, the rule that the detailed information of the device or the terminal is often recorded in the corresponding block chain link point can be fully considered, the node is positioned and analyzed to obtain the corresponding target location information, traversing and searching are not needed to be carried out on all information in the block chain, the data volume required to be traversed in the process of obtaining the target location information is reduced, time consumption is reduced, and the speed and the accuracy of obtaining the target location information of the user side are improved.
In an optional embodiment, the obtaining, from the blockchain based on the current source address, target-location information of the user terminal includes:
determining a corresponding user side node in the block chain based on the current source address;
and obtaining the corresponding target attribution information based on the user end node.
For example, the principle of determining the corresponding user end node in the block chain based on the current source address may refer to the description of step S401 in the embodiment of the present invention, and is not described herein again.
For example, the specific implementation manner for obtaining the corresponding target attribute information based on the user end node may refer to the description of step S402 in the embodiment of the present invention, and is not described herein again.
Through the steps, the rule that the detailed information of the block chain nodes corresponding to the equipment or the terminal is often recorded in the block chain nodes can be fully considered, the nodes are positioned and analyzed to obtain the corresponding target location information, traversing searching is not needed for all information in the block chain, the data volume required for traversing in the process of obtaining the target location information is reduced, time consumption is reduced, and the speed and the accuracy of obtaining the target location information of the user side are improved.
In an optional embodiment, the performing, according to the target location information and the service frame, corresponding service processing includes:
determining a plurality of corresponding service processing services to be selected according to the target location information;
obtaining a service type and service input information according to the service frame;
and determining a target business processing service corresponding to the business type from a plurality of business processing services to be selected, and inputting the business input information into the target business processing service to perform corresponding business processing.
For example, the determining a plurality of corresponding service processing services to be selected according to the target location information may be, but is not limited to, determining a plurality of service processing services to be selected corresponding to the target location information by querying in a corresponding application, software, system, or the like using the target location information. It should be noted that, for the specific implementation manner of determining the corresponding multiple candidate service processing services according to the target location information, the specific implementation manner may be determined by a person skilled in the art according to an actual situation, and the above description is only an example, and does not limit this.
For example, the obtaining of the service type and the service input information according to the service frame may be, but is not limited to, analyzing the service frame to obtain a specific data field included in the service frame, and then analyzing the data field to obtain the corresponding service type and the corresponding service input information. It should be noted that, for the specific implementation manner of obtaining the service type and the service input information according to the service frame, the specific implementation manner can be determined by those skilled in the art according to the actual situation, and the above description is only an example, and does not limit this.
For example, the determining a target service processing service corresponding to the service type from the multiple service processing services to be selected, and inputting the service input information to the target service processing service to perform corresponding service processing are conventional technical means in the art, and are not described herein again.
Through the steps, the target attribution information and the business type can be obtained through full analysis, and the appropriateness of the service for business processing is closely related to the attribution and the business type, so that the accuracy of determining the target business processing service can be greatly improved, the input information required by the business processing is obtained through analysis, the service can be smoothly and quickly executed, and the accuracy and the speed of the business processing can be improved.
The following describes an implementation process of the service processing method based on the blockchain according to the embodiment of the present invention, taking the user terminal 102 as an execution subject. It can be understood that the execution subject of the service processing method based on the block chain provided in the embodiment of the present invention includes, but is not limited to, the user terminal 102.
Based on this, the embodiment of the present invention discloses a service processing method based on a block chain, as shown in fig. 5, the method specifically includes the following steps:
s501: sending a service frame to a service end so that the service end obtains a service frame identifier and a current source address according to the service frame, and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address; if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring corresponding target location information from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame; and if the corresponding address mapping information is failed to be acquired, acquiring corresponding target location information from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
According to the block chain-based service processing method, the service end, the user end and the system, the service frame identification and the current source address are obtained according to the service frame sent by the user end, the corresponding address mapping information is obtained from the block chain based on the service frame identification and the current source address, the service frame can be fully analyzed to obtain the actual identification and the current source address, and the address mapping information which is registered in the block chain in advance can be comprehensively positioned based on the identification and the source address, so that the positioning address mapping information and the accuracy are improved, the steps are simple, the speed of positioning the address mapping information is improved, and when the address mapping is carried out, the related mapping information is registered to the uplink, the advantages that the block chain is suitable for storing the related information and the stored information is not easy to be distorted are fully utilized, a feasible, convenient and accurate mode is provided for accurately judging whether the source address accessed by the user end is the real source address of the user end and subsequently tracing the real source address, so that the accuracy and the speed of integrally determined attribution information are improved by the user end; if the corresponding address mapping information is successfully acquired, the real source address corresponding to the current source address is acquired according to the address mapping information, the target address information of the user side is acquired from the block chain on the basis of the real source address, corresponding service processing is performed according to the target address information and the service frame, when the pre-registered address mapping information is acquired, the fact that the source address accessed by the user side is not the real source address can be quickly and accurately determined, the real source address of the user side can be acquired by directly using the actually-registered address mapping information as input and simply processing, the accuracy and the speed for judging whether the source address accessed by the user side is the real source address and acquiring the real source address are improved, the corresponding pre-registered address information of the user side can be directly acquired from the block chain on the basis of the real source address without consuming long time for inquiring or calculating, and therefore the accuracy and the speed for integrally determining the user side address information are improved; if the acquisition of the corresponding address mapping information fails, the target location information of the user side is obtained from the block chain based on the current source address, and corresponding service processing is carried out according to the target location information and the service frame, so that the source address accessed by the user side can be quickly and accurately determined to be the real source address when the pre-registered address mapping information cannot be acquired, the accuracy and the speed for judging whether the source address accessed by the user side is the real source address are improved, and the corresponding pre-registered location information of the user side can be directly obtained from the block chain based on the source address accessed by the user side without consuming long time for inquiring or calculating, so that the accuracy and the speed for integrally determining the location information of the user side are improved. In summary, the service processing method, the service end, the user end and the system based on the block chain provided by the invention can improve the accuracy and speed of determining the location information of the user end, thereby improving the accuracy and speed of service processing and further improving the service processing efficiency.
In an optional embodiment, further comprising:
before the traffic frame is transmitted to the traffic side,
if address mapping is carried out, mapping relation information is formed based on the real source address and the mapped current source address;
and forming the address mapping information based on the mapping relation information and the corresponding service frame identification, and sending the address mapping information to a block chain.
For example, the mapping relationship information is formed based on the real source address and the mapped current source address, and may be, but is not limited to, the mapping relationship information formed by correspondingly integrating the real source address and the mapped current source address. For example, if the real source address is a and the mapped current source address is B, the mapping relationship information may be, but is not limited to "(a- > B)" or "(a, B)", etc. It should be noted that, for a specific implementation manner of forming mapping relationship information based on a real source address and a mapped current source address, the implementation manner may be determined by those skilled in the art according to practical situations, and the above description is only an example, and does not limit this.
For example, the address mapping information is formed based on the mapping relationship information and the corresponding service frame identifier, and may be, but is not limited to, address mapping information formed by correspondingly integrating the mapping relationship information and the corresponding service frame identifier, for example, if the mapping relationship information is "(a- > B)", and the service frame identifier is xxxxx, the address mapping information may be, but is not limited to, "(a- > B, xxxxx)" or "(a, B, xxxxx)", etc. It should be noted that, for a specific implementation manner of forming the address mapping information based on the mapping relationship information and the corresponding service frame identifier, the specific implementation manner may be determined by those skilled in the art according to actual situations, and the above description is only an example, and does not limit this.
Through the steps, the content of the address mapping information can be complete enough, necessary information related in the mapping process is provided, and the necessary information is transmitted to the block chain, so that the subsequent quick and accurate tracing, positioning and analysis are facilitated, and the speed and the accuracy of integrally determining the target address information are improved.
In an optional embodiment, further comprising:
before the traffic frame is transmitted to the traffic side,
and sending a real source address and corresponding target location information to a corresponding user terminal node in the block chain, so that a service terminal can determine the user terminal node in the block chain based on the real source address and obtain the corresponding target location information based on the user terminal node.
For example, the target location information may be provided by the user terminal in advance, or may be determined by querying or calculating based on the actual source address in advance. It should be noted that the specific source of the target property information can be determined by those skilled in the art according to the actual situation, and the above description is only an example and is not limiting.
Through the steps, when the target attribution information is determined, the real source address does not need to be inquired or calculated by consuming more time, but the real source address can be directly and quickly obtained from the corresponding node of the block chain, the block chain has higher safety, and the target attribution information is not easy to lose or be tampered, so that the speed and the accuracy of integrally determining the target attribution information are improved through the steps.
Based on the same principle, the embodiment of the present invention discloses a service end 600, as shown in fig. 6, the service end 600 includes:
a mapping information obtaining module 601, configured to obtain a service frame identifier and a current source address according to a service frame sent by a user end, and obtain corresponding address mapping information from a block chain based on the service frame identifier and the current source address;
a first processing module 602, configured to, if the corresponding address mapping information is successfully obtained, obtain, according to the address mapping information, a real source address corresponding to the current source address, obtain, from a block chain, target location information of a user terminal based on the real source address, and perform corresponding service processing according to the target location information and the service frame;
the second processing module 603 is configured to, if obtaining of the corresponding address mapping information fails, obtain, based on the current source address, target location information of the user end from the block chain, and perform corresponding service processing according to the target location information and the service frame.
In an optional embodiment, the mapping information obtaining module 601 is configured to:
acquiring one or more corresponding mapping information to be selected from a block chain based on the service frame identification;
and acquiring the mapping information to be selected corresponding to the current source address from all the mapping information to be selected as the address mapping information.
In an optional embodiment, the system further comprises a security check module, configured to:
after the corresponding address mapping information is successfully acquired,
determining corresponding address translation equipment information in a block chain according to the current source address;
obtaining a corresponding address translation equipment type according to the address translation equipment information;
and judging whether the address translation equipment type is included in the preset expected translation equipment type or not, and if not, giving an alarm.
In an optional embodiment, the security check module is configured to:
determining a corresponding conversion end node in a block chain according to the current source address;
and obtaining the corresponding address translation equipment information based on the translation end node.
In an optional implementation, the first processing module 602 is configured to:
determining a corresponding user side node in the block chain based on the real source address;
and obtaining the corresponding target attribution information based on the user end node.
In an optional implementation manner, the second processing module 603 is configured to:
determining a corresponding user side node in a block chain based on the current source address;
and obtaining the corresponding target attribution information based on the user end node.
In an optional embodiment, the first processing module 602 and the second processing module 603 are configured to:
determining a plurality of corresponding service processing services to be selected according to the target location information;
obtaining a service type and service input information according to the service frame;
and determining a target business processing service corresponding to the business type from a plurality of business processing services to be selected, and inputting the business input information into the target business processing service to perform corresponding business processing.
Based on the same principle, the embodiment of the present invention discloses a user end 700, as shown in fig. 7, where the user end 700 is configured to:
sending a service frame to a service end so that the service end obtains a service frame identifier and a current source address according to the service frame, and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address; if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring corresponding target location information from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame; and if the corresponding address mapping information is failed to be acquired, acquiring corresponding target location information from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
In an optional embodiment, the apparatus further comprises a mapping information forming module, configured to:
before the traffic frame is transmitted to the traffic side,
if address mapping is carried out, mapping relation information is formed on the basis of the real source address and the mapped current source address;
and forming the address mapping information based on the mapping relation information and the corresponding service frame identification, and sending the address mapping information to a block chain.
In an optional implementation manner, the system further includes an attribute information sending module, configured to:
before the traffic frame is transmitted to the traffic side,
and sending a real source address and corresponding target location information to a corresponding user end node in the block chain, so that a service end can determine the user end node in the block chain based on the real source address and obtain the corresponding target location information based on the user end node.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer device, which may be, for example, a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
In a typical example, the computer device comprises in particular a memory, a processor and a computer program stored on the memory and executable on the processor, which when executing the program implements the method as described above.
Referring now to FIG. 8, shown is a schematic diagram of a computer device 800 suitable for use in implementing embodiments of the present application.
As shown in fig. 8, the computer apparatus 800 includes a Central Processing Unit (CPU) 801 that can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the system 800 are also stored. The CPU801, ROM802, and RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a liquid crystal feedback (LCD), and a speaker; a storage section 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted as necessary on the storage section 808.
In particular, the processes described above with reference to the flowcharts may be implemented as a computer software program according to an embodiment of the present invention. For example, embodiments of the invention include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (16)
1. A service processing method based on block chain is characterized by comprising the following steps:
acquiring a service frame identifier and a current source address according to a service frame sent by a user side, and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address;
if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring target location information of a user side from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame;
and if the corresponding address mapping information is failed to be acquired, acquiring target location information of the user side from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
2. The method of claim 1, wherein the obtaining corresponding address mapping information from a blockchain based on the traffic frame identifier and a current source address comprises:
acquiring one or more corresponding mapping information to be selected from a block chain based on the service frame identifier;
and acquiring the mapping information to be selected corresponding to the current source address from all the mapping information to be selected as the address mapping information.
3. The method of claim 1, further comprising:
after the corresponding address mapping information is successfully acquired,
determining corresponding address translation equipment information in the block chain according to the current source address;
obtaining a corresponding address translation equipment type according to the address translation equipment information;
and judging whether the address translation equipment type is included in the preset expected translation equipment type or not, and if not, giving an alarm.
4. The method of claim 3, wherein the determining the corresponding address translation device information in the block chain according to the current source address comprises:
determining a corresponding conversion end node in the block chain according to the current source address;
and obtaining the corresponding address translation equipment information based on the translation end node.
5. The method of claim 1, wherein obtaining the destination location information of the ue from the block chain based on the real source address comprises:
determining a corresponding user side node in a block chain based on the real source address;
and obtaining the corresponding target attribution information based on the user end node.
6. The method of claim 1, wherein obtaining the destination location information of the user end from the blockchain based on the current source address comprises:
determining a corresponding user side node in the block chain based on the current source address;
and obtaining the corresponding target attribution information based on the user end node.
7. The method of claim 1, wherein performing the corresponding service processing according to the target location information and the service frame comprises:
determining a plurality of corresponding service processing services to be selected according to the target location information;
obtaining a service type and service input information according to the service frame;
and determining a target business processing service corresponding to the business type from a plurality of business processing services to be selected, and inputting the business input information into the target business processing service to perform corresponding business processing.
8. A service processing method based on block chain is characterized by comprising the following steps:
sending a service frame to a service end so that the service end obtains a service frame identifier and a current source address according to the service frame, and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address; if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring corresponding target location information from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame; and if the corresponding address mapping information is failed to be obtained, obtaining corresponding target location information from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
9. The method of claim 8, further comprising:
before the traffic frame is transmitted to the traffic side,
if address mapping is carried out, mapping relation information is formed based on the real source address and the mapped current source address;
and forming the address mapping information based on the mapping relation information and the corresponding service frame identification, and sending the address mapping information to a block chain.
10. The method of claim 8, further comprising:
before the traffic frame is transmitted to the traffic side,
and sending a real source address and corresponding target location information to a corresponding user terminal node in the block chain, so that a service terminal can determine the user terminal node in the block chain based on the real source address and obtain the corresponding target location information based on the user terminal node.
11. A service end, comprising:
the mapping information acquisition module is used for acquiring a service frame identifier and a current source address according to a service frame sent by a user side and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address;
the first processing module is used for obtaining a real source address corresponding to the current source address according to the address mapping information if the corresponding address mapping information is successfully obtained, obtaining target location information of the user side from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame;
and the second processing module is used for obtaining the target location information of the user side from the block chain based on the current source address if the corresponding address mapping information is failed to be obtained, and performing corresponding service processing according to the target location information and the service frame.
12. A user terminal, configured to:
sending a service frame to a service end so that the service end obtains a service frame identifier and a current source address according to the service frame, and acquiring corresponding address mapping information from a block chain based on the service frame identifier and the current source address; if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring corresponding target location information from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame; and if the corresponding address mapping information is failed to be acquired, acquiring corresponding target location information from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
13. A service processing system based on a block chain is characterized by comprising a service end and a user end;
the user side is used for sending a service frame to the service side;
the service end is used for obtaining a service frame identifier and a current source address according to the service frame and acquiring corresponding address mapping information from the block chain based on the service frame identifier and the current source address; if the corresponding address mapping information is successfully acquired, acquiring a real source address corresponding to the current source address according to the address mapping information, acquiring target location information of a user side from a block chain based on the real source address, and performing corresponding service processing according to the target location information and the service frame; and if the corresponding address mapping information is failed to be acquired, acquiring target location information of the user side from the block chain based on the current source address, and performing corresponding service processing according to the target location information and the service frame.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-10 when executing the program.
15. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-10.
16. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211141468.3A CN115550307B (en) | 2022-09-20 | 2022-09-20 | Business processing method, business end, user end and system based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211141468.3A CN115550307B (en) | 2022-09-20 | 2022-09-20 | Business processing method, business end, user end and system based on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115550307A true CN115550307A (en) | 2022-12-30 |
CN115550307B CN115550307B (en) | 2024-10-11 |
Family
ID=84728119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211141468.3A Active CN115550307B (en) | 2022-09-20 | 2022-09-20 | Business processing method, business end, user end and system based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115550307B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080025325A1 (en) * | 2006-07-26 | 2008-01-31 | Jay Strater | Method and Apparatus for Providing Mobile IP Service Through a Network Address Translation Gateway |
CN103491200A (en) * | 2012-06-13 | 2014-01-01 | 中国移动通信集团贵州有限公司 | Method, device and system for transmitting IP address through virtual terminal server |
CN107911421A (en) * | 2017-10-30 | 2018-04-13 | 上海点融信息科技有限责任公司 | For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain |
CN108712506A (en) * | 2018-05-31 | 2018-10-26 | 中国联合网络通信集团有限公司 | block chain node communication method, device and block chain node |
CN110266763A (en) * | 2019-05-20 | 2019-09-20 | 深圳壹账通智能科技有限公司 | Block chain network implementation method, system and the storage medium of cross-network segment interconnection |
US20200145198A1 (en) * | 2019-06-28 | 2020-05-07 | Alibaba Group Holding Limited | System and method for blockchain address mapping |
CN113301512A (en) * | 2021-07-26 | 2021-08-24 | 广州慧睿思通科技股份有限公司 | Data communication method, device, system, electronic equipment and storage medium |
WO2021217869A1 (en) * | 2020-04-29 | 2021-11-04 | 平安科技(深圳)有限公司 | Method and system for transferring real ip address of client |
CN114827272A (en) * | 2022-03-22 | 2022-07-29 | 深圳智芯微电子科技有限公司 | Power business management method and device, transformer substation equipment and storage medium |
CN114844658A (en) * | 2021-01-15 | 2022-08-02 | 中国移动通信有限公司研究院 | Method, device and storage medium for determining home source address |
-
2022
- 2022-09-20 CN CN202211141468.3A patent/CN115550307B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080025325A1 (en) * | 2006-07-26 | 2008-01-31 | Jay Strater | Method and Apparatus for Providing Mobile IP Service Through a Network Address Translation Gateway |
CN103491200A (en) * | 2012-06-13 | 2014-01-01 | 中国移动通信集团贵州有限公司 | Method, device and system for transmitting IP address through virtual terminal server |
CN107911421A (en) * | 2017-10-30 | 2018-04-13 | 上海点融信息科技有限责任公司 | For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain |
CN108712506A (en) * | 2018-05-31 | 2018-10-26 | 中国联合网络通信集团有限公司 | block chain node communication method, device and block chain node |
CN110266763A (en) * | 2019-05-20 | 2019-09-20 | 深圳壹账通智能科技有限公司 | Block chain network implementation method, system and the storage medium of cross-network segment interconnection |
US20200145198A1 (en) * | 2019-06-28 | 2020-05-07 | Alibaba Group Holding Limited | System and method for blockchain address mapping |
WO2021217869A1 (en) * | 2020-04-29 | 2021-11-04 | 平安科技(深圳)有限公司 | Method and system for transferring real ip address of client |
CN114844658A (en) * | 2021-01-15 | 2022-08-02 | 中国移动通信有限公司研究院 | Method, device and storage medium for determining home source address |
CN113301512A (en) * | 2021-07-26 | 2021-08-24 | 广州慧睿思通科技股份有限公司 | Data communication method, device, system, electronic equipment and storage medium |
CN114827272A (en) * | 2022-03-22 | 2022-07-29 | 深圳智芯微电子科技有限公司 | Power business management method and device, transformer substation equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115550307B (en) | 2024-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9813852B2 (en) | System and method for positioning terminal | |
US10237272B2 (en) | Methods, apparatus, and systems for identity authentication | |
CN104601547A (en) | Illegal operation identification method and device | |
US8981902B2 (en) | Controlling location information | |
RU2641246C2 (en) | Method and device of safety evaluation | |
WO2021254261A1 (en) | Device positioning method and apparatus | |
CN111294730B (en) | Method and device for processing network problem complaint information | |
US10567947B2 (en) | Method, apparatus, and server for network inquiry | |
WO2016041171A1 (en) | Method and apparatus for determining terminal roaming status, terminal and server | |
CN114465823B (en) | Industrial Internet terminal encrypted flow data security detection method, device and equipment | |
CN107872767A (en) | A kind of net about car brush single act recognition methods and identifying system | |
CN108243177B (en) | Data transmission method and device | |
CN107567071B (en) | Method and equipment for inquiring wireless hotspot | |
CN103957306A (en) | Method and device for sharing information between communication terminals | |
WO2020181819A1 (en) | Intelligent scheduling method and apparatus, computer device and storage medium | |
CN106060847A (en) | Signal blind area determining method and signal blind area determining system | |
CN115550307B (en) | Business processing method, business end, user end and system based on block chain | |
CN104035871B (en) | Based on fault handling method and the device of the application program in geographic position | |
CN108616886B (en) | Method and equipment for generating wireless access point topological network | |
CN111193805B (en) | Resource discovery method and device | |
CN111371650B (en) | Flow forwarding-based quasi-production equipment testing method and system | |
CN114567678A (en) | Resource calling method and device of cloud security service and electronic equipment | |
US20160156726A1 (en) | Method, server, terminal, system, and storage medium for displaying multiuser map | |
CN113836428A (en) | Business pushing method and device, computer equipment and storage medium | |
CN112333140A (en) | Method, system and device for monitoring traffic cheating behaviors of mobile internet |
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 |