CN108848156B - Access gateway processing method, device and storage medium - Google Patents

Access gateway processing method, device and storage medium Download PDF

Info

Publication number
CN108848156B
CN108848156B CN201810586723.2A CN201810586723A CN108848156B CN 108848156 B CN108848156 B CN 108848156B CN 201810586723 A CN201810586723 A CN 201810586723A CN 108848156 B CN108848156 B CN 108848156B
Authority
CN
China
Prior art keywords
access gateway
block
processing
terminal
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810586723.2A
Other languages
Chinese (zh)
Other versions
CN108848156A (en
Inventor
袁晓静
翟京卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810586723.2A priority Critical patent/CN108848156B/en
Publication of CN108848156A publication Critical patent/CN108848156A/en
Application granted granted Critical
Publication of CN108848156B publication Critical patent/CN108848156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Abstract

The application provides a processing method, a device and a storage medium for an access gateway, wherein the access gateway is a processing node in a block chain network, and the method comprises the following steps: the method comprises the steps that an access gateway receives a block processing request in a block chain network, determines whether the access gateway can process block business corresponding to the block processing request, and sends the block processing request to a home terminal accessed to the access gateway when the access gateway determines that the access gateway cannot process the block business corresponding to the block processing request, so that the home terminal can process the block business corresponding to the block processing request. The technical scheme reduces the service pressure of the access gateway, improves the service processing speed and improves the user experience.

Description

Access gateway processing method, device and storage medium
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to an access gateway processing method, an access gateway processing apparatus, and a storage medium.
Background
With the development of industries and technologies such as smart homes, smart homes and the like, more and more intelligent devices and internet of things services enter the lives of people, the number of internet of things devices in the families is increasing, and how to effectively manage the internet of things devices in the families becomes a premise for improving user experience.
At present, the internet of things devices in the family are mainly managed in a centralized network mode, that is, all the internet of things devices in the family are managed, controlled and maintained by using a centralized application platform, so that the normal work of all the internet of things devices is ensured.
However, as the number of internet of things devices in a family increases, the pressure of a centralized application platform is higher, and if the centralized application platform fails, all the internet of things devices may not work, so that potential safety hazards exist.
Disclosure of Invention
The application provides an access gateway processing method, an access gateway processing device and a storage medium, and aims to solve the problem that all Internet of things equipment cannot work due to the fact that a centralized application platform fails in an existing centralized network mode.
A first aspect of the present application provides an access gateway processing method, where the access gateway is a processing node in a blockchain network, and the method includes:
the access gateway receives a block processing request in the block chain network;
the access gateway determines whether the access gateway has the capability of processing the block service corresponding to the block processing request;
if the access gateway determines that the access gateway has no capacity to process the block service corresponding to the block processing request, the access gateway sends the block processing request to a home terminal accessed to the access gateway so that the home terminal processes the block service corresponding to the block processing request.
Optionally, in an embodiment of the first aspect, before the access gateway receives the block processing request in the blockchain network, the method further includes:
the access gateway receives an access request sent by a home terminal, wherein the access request comprises a terminal identifier;
correspondingly, the sending, by the access gateway, the block processing request to the home terminal accessed to the access gateway includes:
and the access gateway sends the block processing request to the home terminal corresponding to the terminal identification.
Optionally, in the foregoing embodiment of the first aspect, the receiving, by the access gateway, an access request sent by a home terminal, where the access request includes a terminal identifier, includes:
the access gateway receives access requests respectively sent by at least two home terminals, wherein the access requests comprise terminal identifications and terminal service capabilities corresponding to the terminal identifications;
correspondingly, the method further comprises the following steps:
the access gateway determines a selected home terminal from the at least two home terminals according to the terminal service capabilities of the at least two home terminals and the service processing capability required by the block processing request;
correspondingly, the sending, by the access gateway, the block processing request to the home terminal corresponding to the terminal identifier includes:
and the access gateway sends the block processing request to the selected home terminal according to the terminal identifier of the selected home terminal.
Optionally, in another embodiment of the first aspect, the determining, by the access gateway, whether the access gateway has the capability of processing the block service corresponding to the block processing request includes:
the access gateway determines the required service processing capacity according to the block processing request;
and the access gateway determines whether the access gateway can process the block service corresponding to the block processing request according to the service processing capability of the access gateway and the required service processing capability.
Optionally, in a further embodiment of the first aspect, after the sending, by the access gateway, the block processing request to a home terminal accessing to the access gateway, the method further includes:
the access gateway receives a block processing response sent by the home terminal, wherein the block processing response comprises a processing result of a block service;
and the access gateway writes the processing result into the block chain network.
Optionally, in the foregoing embodiment of the first aspect, before the access gateway writes the processing result into the blockchain network, the method further includes:
and the access gateway carries out encryption processing on the processing result.
A second aspect of the present application provides an access gateway processing apparatus, the apparatus being integrated in an access gateway, the access gateway being a processing node in a block chain network, the apparatus comprising: the device comprises a receiving module, a processing module and a sending module;
the receiving module is configured to receive a block processing request in the block chain network;
the processing module is configured to determine whether the access gateway itself has the capability of processing the block service corresponding to the block processing request;
the sending module is configured to send the block processing request to a home terminal accessed to the access gateway when the processing module determines that the access gateway has no capacity to process the block service corresponding to the block processing request, so that the home terminal processes the block service corresponding to the block processing request.
Optionally, in an embodiment of the second aspect, the receiving module is further configured to receive an access request sent by a home terminal before receiving a block processing request in the block chain network, where the access request includes a terminal identifier;
correspondingly, the sending module is configured to send the block processing request to a home terminal that accesses the access gateway, and specifically includes:
and the sending module is used for sending the block processing request to the home terminal corresponding to the terminal identifier.
Optionally, in the foregoing embodiment of the second aspect, the receiving module is configured to receive an access request sent by a home terminal, where the access request includes a terminal identifier, and specifically:
the receiving module is used for receiving access requests respectively sent by at least two home terminals, wherein the access requests comprise terminal identifications and terminal service capabilities corresponding to the terminal identifications;
correspondingly, the processing module is further configured to determine a selected home terminal from the at least two home terminals according to the terminal service capabilities of the at least two home terminals and the service processing capability required by the block processing request;
the sending module is configured to send the block processing request to a home terminal corresponding to the terminal identifier, and specifically includes:
and the sending module is used for sending the block processing request to the selected home terminal according to the terminal identifier of the selected home terminal.
Optionally, in another embodiment of the second aspect, the processing module is configured to determine whether the access gateway itself has the capability of processing the block service corresponding to the block processing request, specifically:
and the processing module is used for determining the required service processing capacity according to the block processing request and determining whether the processing module is capable of processing the block service corresponding to the block processing request according to the self service processing capacity and the required service processing capacity.
Optionally, in a further embodiment of the second aspect, the receiving module is further configured to receive a block processing response sent by the home terminal after sending the block processing request to the home terminal accessed to the access gateway, where the block processing response includes a processing result of a block service;
the processing module is further configured to write the processing result into the block chain network.
Optionally, in the foregoing embodiment of the second aspect, the processing module is further configured to perform encryption processing on the processing result before writing the processing result into the blockchain network.
A third aspect of the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the method as described above in the first aspect and embodiments of the first aspect.
The access gateway is a processing node in a blockchain network, determines whether the access gateway is capable of processing a block service corresponding to a block processing request after receiving the block processing request in the blockchain network, and sends the block processing request to a home terminal accessed to the access gateway if the access gateway determines that the access gateway is not capable of processing the block service corresponding to the block processing request, so that the home terminal can correspondingly reduce the service pressure of the access gateway, improve the service processing speed, and improve the user experience.
Drawings
Fig. 1 is a schematic structural diagram of an access gateway processing system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a first embodiment of an access gateway processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a second access gateway processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a third embodiment of an access gateway processing method provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of a fourth embodiment of an access gateway processing method provided in the embodiment of the present application;
fig. 6 is a schematic structural diagram of an access gateway processing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The access gateway processing method provided by each of the following embodiments of the present application may be applied to an access gateway processing system. Fig. 1 is a schematic structural diagram of an access gateway processing system according to an embodiment of the present application. As shown in fig. 1, the access gateway processing system may include a blockchain network 11 composed of a plurality of processing nodes and a home terminal set 12 for each processing node. Optionally, the home terminal set 12 includes at least one home terminal. Fig. 1 exemplarily shows that the blockchain network is composed of N processing nodes, and that the home terminal set 12 of the first processing node includes M home terminals. A brief description of the blockchain network 11 and the home terminal set 12 in the access gateway processing system follows.
Wherein, the blockchain network 11: the access gateways form processing nodes of the block chain network, and the plurality of access gateways form the block chain network together to complete service transaction, data sharing, safety guarantee and the like among the processing nodes. The access gateway is used as a processing node of the blockchain network, and not only can send a service request, encrypt and generate a block and write the block into the blockchain network, but also can receive a block processing request in the blockchain network and determine a corresponding block.
Referring to fig. 1, the first processing node in fig. 1 is an access gateway, and since the service processing capability and the storage capability of the access gateway are limited, and the access gateway needs to process more service data, if the node capabilities in the blockchain network are all completed by the processing node, the load of the access gateway is inevitably increased. The access gateway is the core of the intelligent home service, the access gateway is deployed on the access side of the Internet of things equipment, and the access gateways form a block chain.
The home terminals in the home terminal set 12 may refer to various home internet of things devices, and the home terminals access the home internet of things through the access gateway and obtain the IP network addresses through the access gateway.
In the embodiment of the application, the access gateway may obtain an accessed home terminal identifier, obtain a terminal service capability corresponding to the home terminal identifier, and determine whether the accessed home terminal has a node expansion capability requirement, the home terminal may serve as a capability expansion device of the access gateway to form a home terminal set, and when a processing node in a blockchain network receives a blockchain network block processing request, the processing node serves as the access gateway to select a corresponding home terminal from the home terminal set according to a characteristic of a blockchain service corresponding to the blockchain network block processing request to process the block processing request.
For example, in the access gateway processing system shown in fig. 1, the specific server operation function of the home terminal 1 can implement high-speed computation, and when the first processing node is used as the access gateway and block data computation is required, the home terminal 1 may be selected as a capability expansion device of the first processing node to complete service processing together with the first processing node. Alternatively, assuming that the home terminal 2 has a large amount of storage resources, the first processing node may send the data of the block chain to the home terminal 2 for storage, and communicate with the home terminal 2 when reading is needed.
Optionally, the home terminal may be always connected to the corresponding first processing node, and used as a capability expansion device of the first processing node to jointly complete a service of the block chain network.
Optionally, in this embodiment of the present application, after the home terminal set is accessed to the access gateway, a fixed network address may be allocated to the access gateway, a one-to-one correspondence relationship is established, the access gateway records an IP address and a device identifier of each home terminal in the home terminal set, records service capabilities of different home terminals, establishes a correspondence relationship between the service capabilities and the home terminals, and stores the correspondence relationship in the access gateway, when the access gateway has a block processing request, first determines whether the access gateway has the capability of completing a block service corresponding to the block processing request, and if not, selects an appropriate home terminal to complete a task of the access gateway according to the service processing capability of the home terminal, and establishes a communication link with the home terminal. The technical solution of the present application will be described in detail below with reference to specific examples.
It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flowchart of an access gateway processing method according to an embodiment of the present application. In the access gateway processing method, the access gateway may be a processing node in a block chain network, as shown in fig. 2, the access gateway processing method may include the following steps:
step 21: an access gateway receives a block processing request in a blockchain network.
Optionally, the blockchain technology is a completely new distributed infrastructure and computing paradigm that uses blockchain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to secure data transmission and access, and uses intelligent contracts composed of automated script codes to program and manipulate data. The user queries, stores, retrieves, and writes to blockchain data, each process being a track and not an elimination.
Therefore, in the embodiment of the application, the blockchain technology can be applied to the field of home internet of things, so that decentralization of home internet of things equipment is realized, and the access gateway is used as a node of a blockchain to be accessed into a blockchain network. Specifically, a plurality of home internet of things devices can form a home internet of things, each home internet of things device is accessed to a corresponding access gateway, and the access gateway is a processing node in a block chain network and provides access capability and management capability for various home terminals. That is to say, the access gateway can also be used as a processing node in the blockchain network to process the service of the blockchain network while processing the service of the home internet of things.
Optionally, as an example, when there is a service that needs to be processed in the blockchain network, the blockchain network may send a blockchain processing request to one of the processing nodes, and accordingly, the access gateway, as one of the processing nodes in the blockchain network, may receive the blockchain processing request sent by the blockchain network.
Step 22: the access gateway determines whether the access gateway is capable of processing the block service corresponding to the block processing request; if yes, go to step 23, otherwise go to step 24.
Optionally, since the home network needs to process both the home service and the service of the blockchain network, and the service processing capability and the storage capability of the access gateway are limited, the service requirement may not be met in some scenarios. Therefore, in the embodiment of the present application, after receiving the block processing request, the access gateway first needs to determine whether it is capable of processing the block service corresponding to the block processing request according to its service processing capability, and determine how to process the block processing request according to the determination result.
Step 23: and the access gateway processes the block service corresponding to the block processing request.
As an example, when the access gateway determines that it is capable of processing the block service corresponding to the block processing request, the access gateway performs corresponding processing on the block service corresponding to the block processing request.
Step 24: and the access gateway sends the block processing request to a home terminal accessed to the access gateway so that the home terminal processes the block service corresponding to the block processing request.
Optionally, as another example, if the access gateway determines that the access gateway has no capability to process the block service corresponding to the block processing request, at this time, the access gateway may query the home terminal accessed to the access gateway, and send the block processing request to the corresponding home terminal according to the service processing capability of the home terminal, so that the home terminal performs corresponding processing on the block service corresponding to the block processing request.
In the access gateway processing method provided in the embodiment of the application, the access gateway is a processing node in a blockchain network, and after receiving a block processing request in the blockchain network, it is determined whether the access gateway is capable of processing a block service corresponding to the block processing request, and when the access gateway determines that the access gateway is incapable of processing the block service corresponding to the block processing request, the access gateway sends the block processing request to a home terminal accessed to the access gateway, so that the home terminal processes the block service corresponding to the block processing request, and accordingly, the service pressure of the access gateway can be correspondingly reduced, the service processing speed is increased, the user experience is improved, and the problem that all internet of things devices cannot work due to a failure of a centralized application platform in an existing centralized network mode is avoided.
Optionally, on the basis of the foregoing embodiment, fig. 3 is a schematic flowchart of a second embodiment of an access gateway processing method provided in this embodiment. As shown in fig. 3, before step 21 (the access gateway receives a block processing request in a block chain network), the access gateway processing method may further include the following steps:
step 31: the access gateway receives an access request sent by a home terminal, wherein the access request comprises a terminal identifier.
Optionally, in an embodiment of the present application, since the access gateway is a core of the intelligent home service, the access gateways are deployed on an access side of the internet of things device, and the access gateways form a block chain. Specifically, the home terminal first sends an access request carrying a terminal identifier to a corresponding access gateway, so that the access gateway determines the corresponding home terminal according to the received terminal identifier, and then accesses the home terminal to the home internet of things.
Correspondingly, the access gateway in step 24 may send the block processing request to the home terminal accessing to the access gateway, instead of implementing the following steps:
step 32: and the access gateway sends the block processing request to the home terminal corresponding to the terminal identification.
Optionally, after the home terminal accesses the access gateway, and when the access gateway determines that the access gateway does not have the capability to process the block service corresponding to the block processing request, the access gateway may send the block processing request to the received home terminal corresponding to the terminal identifier, so that the home terminal processes the block service corresponding to the block processing request.
Optionally, in an embodiment of the present application, step 31 (that the access gateway receives an access request sent by the home terminal, where the access request includes a terminal identifier) may be implemented by the following steps:
the access gateway receives access requests respectively sent by at least two home terminals, wherein the access requests comprise terminal identifications and terminal service capabilities corresponding to the terminal identifications.
In the embodiment of the application, when at least two home terminals in a home need to be connected to the home internet of things, the at least two home terminals may respectively send access requests to the access gateway, and the access requests carry respective terminal identifiers and terminal service capabilities corresponding to the terminal identifiers, so that after the access gateway receives the access requests respectively sent by the at least two home terminals, the terminal service capabilities of each home terminal are correspondingly obtained.
Optionally, after the access gateway receives the access requests respectively sent by the at least two home terminals, the access gateway may allocate a network address to each home terminal, store the allocated network address and the terminal identifier in the access gateway together, and establish a corresponding relationship between the access gateway and the home terminal.
Correspondingly, in this embodiment, the access gateway processing method may further include the following steps:
and the access gateway determines the selected home terminal from the at least two home terminals according to the terminal service capabilities of the at least two home terminals and the service processing capability required by the block processing request.
Optionally, because there are a plurality of home terminals accessing the access gateway, and terminal service capabilities of each home terminal are different, when the access gateway itself has no capability to process a block processing request received from the blockchain network, the access gateway may query the terminal service capabilities of the at least two home terminals according to the service processing capability required by the block processing request, and determine a home terminal most suitable for processing the block service corresponding to the block processing request from the at least two home terminals, where the home terminal is named as a selected home terminal.
The step 32 (the access gateway sends the block processing request to the home terminal corresponding to the terminal identifier) may be implemented by:
and the access gateway sends the block processing request to the selected home terminal according to the terminal identifier of the selected home terminal.
Optionally, when the access gateway determines the selected home terminal from the at least two home terminals accessed to the access gateway, the access gateway may send the block processing request to the selected home terminal according to the terminal identifier of the selected home terminal, so that the selected home terminal processes the block service corresponding to the block processing request, thereby not only quickly completing the block service, but also effectively improving the performance of the access gateway.
According to the access gateway processing method provided by the embodiment of the application, before the access gateway receives a block processing request in a block chain network, the access gateway first receives an access request which is sent by a home terminal and contains a terminal identifier, and when it is determined that the access gateway does not have a block service corresponding to a capability processing block processing request, the block processing request can be sent to the home terminal corresponding to the terminal identifier, so that the access gateway has a capability expansion function, not only can process a plurality of services under the access gateway, but also improves the performance of the access gateway.
Optionally, on the basis of any of the foregoing embodiments, fig. 4 is a schematic flowchart of a third embodiment of an access gateway processing method provided in this application embodiment. As shown in fig. 4, in this embodiment, the step 22 (the access gateway determines whether it is capable of processing the block service corresponding to the block processing request) may be implemented by the following steps:
step 41: and the access gateway determines the required service processing capacity according to the block processing request.
Optionally, when determining whether the access gateway is capable of processing the block service corresponding to the block processing request, the access gateway may first determine the service processing capability required by the block processing request, and then perform comprehensive judgment according to the service capability of the access gateway.
Step 42: and the access gateway determines whether the access gateway can process the block service corresponding to the block processing request according to the service processing capability of the access gateway and the required service processing capability.
Optionally, in this embodiment of the application, after determining the service processing capability of the access gateway itself, the access gateway compares the service processing capability required by the block processing request with the service processing capability required by the block processing request, and determines whether the access gateway itself has the capability of processing the block service corresponding to the block processing request.
Specifically, when the service processing capability of the access gateway is higher than the service processing capability required by the block processing request, it is determined that the access gateway has the capability of processing the block service corresponding to the block processing request, otherwise, the access gateway does not have the capability of processing the block service corresponding to the block processing request.
In the access gateway processing method provided in the embodiment of the present application, the access gateway determines the required service processing capability according to the block processing request, and then determines whether the access gateway is capable of processing the block service corresponding to the block processing request according to the service processing capability of the access gateway and the required service processing capability. Therefore, whether the access gateway has the capacity of processing the block service corresponding to the block processing request received from the block chain network can be accurately determined, and the problem that all Internet of things equipment cannot work due to the fact that a centralized application platform fails in the existing centralized network mode is solved.
Optionally, on the basis of the foregoing embodiment, fig. 5 is a schematic flowchart of a fourth embodiment of an access gateway processing method provided in this embodiment of the present application. As shown in fig. 5, after the access gateway in step 24 sends the blocking processing request to the home terminal accessing to the access gateway, the method may further include the following steps:
step 51: and the access gateway receives a block processing response sent by the home terminal, wherein the block processing response comprises a processing result of the block service.
In this embodiment, after the access gateway sends the block processing request to the home terminal accessing the access gateway, the home terminal processes the block service corresponding to the block processing request to obtain a processing result of the block service, and sends the block processing response to the access gateway, and correspondingly, the access gateway receives the block processing response containing the processing result sent by the home terminal.
Step 52: and the access gateway writes the processing result into the block chain network.
After the access gateway receives the processing result of the block service, or the access gateway processes the block task corresponding to the block processing request to obtain the processing result, the processing result is written into the block chain network to store the processing result of the block service corresponding to the block processing request, so that the security of the processing result is ensured.
Optionally, as an example, as shown in fig. 5, before step 52 (the access gateway writes the processing result into the blockchain network), the method may further include the following steps:
step 53: and the access gateway encrypts the processing result.
Optionally, when the access gateway receives the processing result sent by the home terminal through the block processing response, the access gateway may first perform encryption processing on the processing result, so as to further ensure the security of the processing result.
Optionally, the step may also be applied after step 23, where the access gateway processes the block task itself, and after obtaining the processing result, encrypts the processing result.
Accordingly, the above step 52 may be replaced by the following steps:
and the access gateway writes the encrypted processing result into the block chain network.
Optionally, the access gateway encrypts the processing result of the received block service, and then writes the processing result into the block chain network, so as to ensure that the processing result is not obtained by other processing nodes in the block chain network, and further ensure the security of the processing result.
According to the access gateway processing method provided by the embodiment of the application, after the access gateway sends the block processing request to the home terminal accessed to the access gateway, the access gateway also receives the block processing response containing the block service processing result sent by the home terminal, and writes the processing result into the block chain network, so that the communication between the access gateway or the home terminal and the block chain network is realized, and better control and maintenance functions are provided for the internet and the home internet of things services.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 is a schematic structural diagram of an access gateway processing apparatus according to an embodiment of the present application. The apparatus is integrated in an access gateway, which is a processing node in a block chain network. As shown in fig. 6, the apparatus may include: a receiving module 61, a processing module 62 and a transmitting module 63.
The receiving module 61 is configured to receive a block processing request in the blockchain network;
the processing module 62 is configured to determine whether the access gateway itself has the capability of processing the block service corresponding to the block processing request;
the sending module 63 is configured to send the block processing request to the home terminal accessed to the access gateway when the processing module 62 determines that the access gateway itself has no capability of processing the block service corresponding to the block processing request, so that the home terminal processes the block service corresponding to the block processing request.
Optionally, in a possible implementation manner of the embodiment of the present application, the receiving module 61 is further configured to receive an access request sent by a home terminal before receiving a block processing request in the block chain network, where the access request includes a terminal identifier;
correspondingly, the sending module 63 is configured to send the block processing request to a home terminal accessing to the access gateway, and specifically includes:
the sending module 63 is configured to send the block processing request to a home terminal corresponding to the terminal identifier.
Optionally, in this possible implementation manner of the embodiment of the present application, the receiving module 61 is configured to receive an access request sent by a home terminal, where the access request includes a terminal identifier, and specifically:
the receiving module 61 is configured to receive access requests sent by at least two home terminals, where the access requests include a terminal identifier and a terminal service capability corresponding to the terminal identifier;
correspondingly, the processing module 62 is further configured to determine a selected home terminal from the at least two home terminals according to the terminal service capabilities of the at least two home terminals and the service processing capability required by the block processing request;
the sending module 63 is configured to send the block processing request to the home terminal corresponding to the terminal identifier, and specifically includes:
the sending module 63 is configured to send the block processing request to the selected home terminal according to the terminal identifier of the selected home terminal.
Optionally, in another possible implementation manner of the embodiment of the present application, the processing module 62 is configured to determine whether the access gateway itself has the capability of processing the block service corresponding to the block processing request, specifically:
the processing module 62 is configured to determine a required service processing capability according to the block processing request, and determine whether the processing module itself has the capability of processing the block service corresponding to the block processing request according to its own service processing capability and the required service processing capability.
Optionally, in another possible implementation manner of the embodiment of the present application, the receiving module 61 is further configured to receive a block processing response sent by the home terminal after sending the block processing request to the home terminal accessing to the access gateway, where the block processing response includes a processing result of a block service;
the processing module 62 is further configured to write the processing result into the blockchain network.
Optionally, in this possible implementation manner of the embodiment of the present application, the processing module 62 is further configured to perform encryption processing on the processing result before writing the processing result into the blockchain network.
The access gateway processing apparatus provided in this embodiment may be used to execute the implementation schemes of the method embodiments shown in fig. 2 to fig. 5, and the specific implementation manner and the technical effect are similar, and are not described again here.
Embodiments of the present application further provide a storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the method according to the embodiments shown in fig. 2 to 5.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. An access gateway processing method, wherein the access gateway is a processing node in a blockchain network, the method comprising:
the access gateway receives a block processing request in the block chain network;
the access gateway determines whether the access gateway has the capability of processing the block service corresponding to the block processing request;
if the access gateway determines that the access gateway has no capacity to process the block service corresponding to the block processing request, the access gateway sends the block processing request to a home terminal accessed to the access gateway so that the home terminal processes the block service corresponding to the block processing request;
before the access gateway receives the block processing request in the block chain network, the method further includes:
the access gateway receives an access request sent by a home terminal, wherein the access request comprises a terminal identifier;
correspondingly, the sending, by the access gateway, the block processing request to the home terminal accessed to the access gateway includes:
and the access gateway sends the block processing request to the home terminal corresponding to the terminal identification.
2. The method of claim 1, wherein the receiving, by the access gateway, an access request sent by a home terminal, where the access request includes a terminal identifier, comprises:
the access gateway receives access requests respectively sent by at least two home terminals, wherein the access requests comprise terminal identifications and terminal service capabilities corresponding to the terminal identifications;
correspondingly, the method further comprises the following steps:
the access gateway determines a selected home terminal from the at least two home terminals according to the terminal service capabilities of the at least two home terminals and the service processing capability required by the block processing request;
correspondingly, the sending, by the access gateway, the block processing request to the home terminal corresponding to the terminal identifier includes:
and the access gateway sends the block processing request to the selected home terminal according to the terminal identifier of the selected home terminal.
3. The method of claim 1 or 2, wherein the determining, by the access gateway, whether the access gateway is capable of handling the block service corresponding to the block handling request comprises:
the access gateway determines the required service processing capacity according to the block processing request;
and the access gateway determines whether the access gateway can process the block service corresponding to the block processing request according to the service processing capability of the access gateway and the required service processing capability.
4. The method of claim 1 or 2, wherein after the access gateway sends the block processing request to the home terminal accessing to the access gateway, the method further comprises:
the access gateway receives a block processing response sent by the home terminal, wherein the block processing response comprises a processing result of a block service;
and the access gateway writes the processing result into the block chain network.
5. The method of claim 4, wherein before the access gateway writes the processing result into the blockchain network, further comprising:
and the access gateway carries out encryption processing on the processing result.
6. An access gateway processing apparatus, integrated in an access gateway, the access gateway being a processing node in a block chain network, the apparatus comprising: the device comprises a receiving module, a processing module and a sending module;
the receiving module is configured to receive a block processing request in the block chain network;
the processing module is configured to determine whether the access gateway itself has the capability of processing the block service corresponding to the block processing request;
the sending module is configured to send the block processing request to a home terminal accessed to the access gateway when the processing module determines that the access gateway has no capacity to process the block service corresponding to the block processing request, so that the home terminal processes the block service corresponding to the block processing request;
the receiving module is further configured to receive an access request sent by a home terminal before receiving a block processing request in the block chain network, where the access request includes a terminal identifier;
correspondingly, the sending module is configured to send the block processing request to a home terminal that accesses the access gateway, and specifically includes:
and the sending module is used for sending the block processing request to the home terminal corresponding to the terminal identifier.
7. The apparatus according to claim 6, wherein the receiving module is configured to receive an access request sent by a home terminal, where the access request includes a terminal identifier, and specifically:
the receiving module is used for receiving access requests respectively sent by at least two home terminals, wherein the access requests comprise terminal identifications and terminal service capabilities corresponding to the terminal identifications;
correspondingly, the processing module is further configured to determine a selected home terminal from the at least two home terminals according to the terminal service capabilities of the at least two home terminals and the service processing capability required by the block processing request;
the sending module is configured to send the block processing request to a home terminal corresponding to the terminal identifier, and specifically includes:
and the sending module is used for sending the block processing request to the selected home terminal according to the terminal identifier of the selected home terminal.
8. The apparatus according to claim 6 or 7, wherein the processing module is configured to determine whether the access gateway itself has the capability of processing the block service corresponding to the block processing request, and specifically:
and the processing module is used for determining the required service processing capacity according to the block processing request and determining whether the processing module is capable of processing the block service corresponding to the block processing request according to the self service processing capacity and the required service processing capacity.
9. The apparatus according to claim 6 or 7,
the receiving module is further configured to receive a block processing response sent by the home terminal after sending the block processing request to the home terminal accessed to the access gateway, where the block processing response includes a processing result of a block service;
the processing module is further configured to write the processing result into the block chain network.
10. The apparatus of claim 9, wherein the processing module is further configured to encrypt the processing result before writing the processing result into the blockchain network.
11. A storage medium having stored thereon a computer program, characterized in that the program, when being executed by a processor, carries out the method according to any one of the claims 1-5.
CN201810586723.2A 2018-06-08 2018-06-08 Access gateway processing method, device and storage medium Active CN108848156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810586723.2A CN108848156B (en) 2018-06-08 2018-06-08 Access gateway processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810586723.2A CN108848156B (en) 2018-06-08 2018-06-08 Access gateway processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108848156A CN108848156A (en) 2018-11-20
CN108848156B true CN108848156B (en) 2021-06-29

Family

ID=64210742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810586723.2A Active CN108848156B (en) 2018-06-08 2018-06-08 Access gateway processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108848156B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486830B (en) * 2020-06-24 2023-04-18 支付宝(杭州)信息技术有限公司 Pressure testing method, device and system for block chain network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124278A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 Method for processing business, device and data-sharing systems
CN107528856A (en) * 2017-09-27 2017-12-29 福建实达电脑设备有限公司 Internet of Things mist end equipment based on block chain platform access authentication method beyond the clouds
CN107770182A (en) * 2017-10-30 2018-03-06 中国联合网络通信集团有限公司 The date storage method and home gateway of home gateway
CN107819829A (en) * 2017-10-17 2018-03-20 上海点融信息科技有限责任公司 Access method, system, block chain node device and the user terminal of block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3195637A1 (en) * 2014-09-19 2017-07-26 Nokia Solutions and Networks Oy Service function chain interworking

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124278A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 Method for processing business, device and data-sharing systems
CN107528856A (en) * 2017-09-27 2017-12-29 福建实达电脑设备有限公司 Internet of Things mist end equipment based on block chain platform access authentication method beyond the clouds
CN107819829A (en) * 2017-10-17 2018-03-20 上海点融信息科技有限责任公司 Access method, system, block chain node device and the user terminal of block chain
CN107770182A (en) * 2017-10-30 2018-03-06 中国联合网络通信集团有限公司 The date storage method and home gateway of home gateway

Also Published As

Publication number Publication date
CN108848156A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN113596191B (en) Data processing method, network element equipment and readable storage medium
CN110650168B (en) Communication method and device thereof
CN102316043B (en) Port virtualization method, switch and communication system
CN111327668B (en) Network management method, device, equipment and storage medium
CN113572864B (en) Data processing method, network element equipment and readable storage medium
CN110909030B (en) Information processing method and server cluster
CN114338153B (en) IPSec negotiation method and device
CN101783742B (en) Discovery method and device of network topology
CN108848156B (en) Access gateway processing method, device and storage medium
US20240064611A1 (en) Federated learning method and apparatus applied to mobile communication system, and terminal and medium
CN108366087B (en) ISCSI service realization method and device based on distributed file system
CN111511041B (en) Remote connection method and device
US10349344B2 (en) Network element selection method and network element selector
CN114025010B (en) Method for establishing connection and network equipment
CN111315037B (en) Communication link establishing method and device, computer equipment and storage medium
CN104753774A (en) Distributed enterprise integrated access gateway
CN112799849A (en) Data processing method, device, equipment and storage medium
CN105991450A (en) MAC address table updating method and device
CN116708532B (en) Local area network connection method, device, computer equipment and readable storage medium
CN103701943A (en) Method and device for controlling MAC (Media Access Control) address
KR101792331B1 (en) Method and System for Transaction in the M2M/IoT Platform
CN112565088B (en) Message processing method, system, device and network equipment
CN110839034B (en) Communication connection control method and related equipment
US20240106792A1 (en) Data packet transmission method and apparatus, device, storage medium, and program product
KR102221638B1 (en) System, method and computer program for distributing large file

Legal Events

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