CN112492619B - Transaction state management method and device and state caching device - Google Patents

Transaction state management method and device and state caching device Download PDF

Info

Publication number
CN112492619B
CN112492619B CN201910864299.8A CN201910864299A CN112492619B CN 112492619 B CN112492619 B CN 112492619B CN 201910864299 A CN201910864299 A CN 201910864299A CN 112492619 B CN112492619 B CN 112492619B
Authority
CN
China
Prior art keywords
transaction
state
network element
element adapter
adapter
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
CN201910864299.8A
Other languages
Chinese (zh)
Other versions
CN112492619A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201910864299.8A priority Critical patent/CN112492619B/en
Publication of CN112492619A publication Critical patent/CN112492619A/en
Application granted granted Critical
Publication of CN112492619B publication Critical patent/CN112492619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events

Abstract

The invention discloses a method and a device for managing transaction states and a state caching device. In the above technical solution, a state caching device is arranged in a micro service system architecture, and the state caching device stores the transaction state of the target network element for the transaction operation instruction, and all network element adapters in the micro service system architecture can obtain the required transaction state from the state caching device, thereby implementing unified management of the transaction state.

Description

Transaction state management method and device and state caching device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for managing transaction states, and a state caching apparatus.
Background
In a wireless communication network, a network element, as a managed device, may provide a series of operated instructions to a management device (e.g., an Operation and Maintenance Center (OMC)), and when the management device needs to execute a service, the network element may sequentially execute the series of operated instructions by controlling the network element, so as to implement a function of the service. Wherein a series of operated instructions executed by a network element may be referred to as a transaction. In a wireless communication Network, characteristics of sequentiality, atomicity, and the like of transactions are managed by a Network Element Adapter (NEA).
In the fourth Generation Mobile Communication Technology (4G), NEA instances and managed devices are in a one-to-one binding relationship, that is, one managed device corresponds to one NEA instance, so that all operation instructions executed by the managed device and messages reported by the managed device are processed in the NEA instance, and thus, the business state of the managed device can be maintained through the NEA.
However, in the fifth Generation Mobile Communication Technology (5G), the microservice architecture is adopted, that is, the managed device and the NEA instance have no explicit binding relationship, and the operation command issued by the OMC and the message reported by the managed device executing the operation command are distributed to different NEA instances for processing. It can be seen that the method of maintaining the transaction state of the managed device by one NEA in 4G cannot be applied to 5G.
Therefore, how to maintain the transaction state of the managed device among a plurality of NEA instances is a problem that needs to be solved at present.
Disclosure of Invention
The invention provides a method and a device for managing transaction states and a state caching device, which are used for maintaining the transaction states of managed equipment among a plurality of NEA instances.
The first aspect of the present invention provides a method for managing transaction status, where the method includes:
a first network element adapter sends a first transaction operation instruction to a target network element, wherein the first transaction operation instruction is used for indicating the target network element to start executing a first transaction and/or is used for indicating the target network element to process an execution result of the first transaction;
the first network element adapter sends a first query request to a state caching device, where the first query request is used to query a first transaction state corresponding to the first transaction operation instruction, the state caching device is used to store transaction states corresponding to all transaction operation instructions executed by the target network element, the all transaction operation instructions include the first transaction operation instruction, the transaction states corresponding to all transaction operation instructions are sent to the state caching device by a second network element adapter, and the second network element adapter or the first network element adapter is one of multiple network element adapters included in a communication system;
and the first network element adapter receives the first transaction state sent by the state caching device and sends the first transaction state to a management device.
In the above technical solution, a state caching device is arranged in a micro service system architecture, and the state caching device stores the transaction state of the target network element for the transaction operation instruction, and all network element adapters in the micro service system architecture can obtain the required transaction state from the state caching device, thereby implementing unified management of the transaction state.
In one possible implementation, after the first network element adapter sends the first transaction operation instruction to the target network element, the method further includes:
the first network element adapter starts a transaction state checking function, where the transaction state checking function is to periodically send the first query request to the state cache device within a preset duration to obtain the first transaction state, where the first transaction state includes a state where a transaction operation is successful or a state where a transaction operation is failed.
In the above technical solution, after the first network element adapter starts the transaction state checking function, the first transaction state may be automatically obtained within a preset time. And the problem of large energy consumption caused by the fact that the first network element adapter inquires the first transaction state for a long time can be prevented by setting the preset duration.
In a possible implementation manner, after the first network element adapter sends the first query request to the status caching device, the method further includes:
the first network element adapter determines whether the first transaction state is received within the preset time length;
if the first network element adapter does not receive the first transaction state within the preset time length, the first network element adapter determines that the first transaction state is a state in which the transaction operation fails.
In the above technical solution, a manner is provided for determining the transaction status by the first network element adapter, which may increase flexibility of the scheme.
In a possible implementation manner, after the first network element adapter receives the first transaction status sent by the status caching apparatus, the method further includes:
the first network element adapter closes the transaction status checking function.
In the above technical solution, the power consumption of the first network element adapter can be saved by closing the transaction status check function in time.
In a possible implementation manner, when the first network element adapter and the second network element adapter are the same network element adapter, the method further includes:
the first network element adapter receives the first transaction state sent by the target network element;
and the first network element adapter sends the first transaction state to the state caching device.
In the above technical solution, because the network element adapter for sending the transaction operation instruction and for sending the transaction state is randomly allocated to the target network element under the micro service system architecture, the first network element adapter may also return the transaction state through the first network element adapter after sending the transaction operation instruction to the target network element, thereby ensuring the integrity of the scheme.
A second aspect of the present invention provides a method for managing transaction status, including:
the state caching device is used for storing transaction states respectively corresponding to all transaction operation instructions executed by a target network element, wherein all the transaction operation instructions comprise the first transaction operation instruction, and the second network element adapter or the first network element adapter is one of a plurality of network element adapters included in a communication system;
the state caching device receives a first query request sent by a first network element adapter, wherein the first query request is used for querying the first transaction state;
and the state caching device sends the first transaction state to the first network element adapter.
In the above technical solution, a state caching device is arranged in a micro service system architecture, and the transaction state of a target network element is stored by the state caching device, and all network element adapters in the micro service system architecture can obtain a required transaction state from the state caching device, thereby implementing unified management of the transaction state.
In a possible implementation manner, the state caching apparatus stores a transaction type corresponding to the any one transaction operation instruction and a mapping relationship of a corresponding transaction state, and after the state caching apparatus receives a first query request sent by a first network element adapter, the method further includes:
the state caching device determines a first transaction type corresponding to the first transaction operation instruction, wherein the first transaction type comprises a type for starting to execute the first transaction or a type for processing an execution result of the first transaction;
and the state caching device inquires the mapping relation and determines a first transaction state corresponding to the first transaction type, wherein the first transaction state comprises a state that the transaction operation is successful or a state that the transaction operation is failed.
In the above technical solution, the state caching device may store the transaction type and the corresponding transaction state of each transaction operation instruction, so that the state caching device may query the transaction state according to different transaction types, and the processing manner is simple and easy to implement.
In a possible design, the first network element adapter and the second network element adapter are the same network element adapter or the first network element adapter and the second network element adapter are different network element adapters.
A third aspect of the present invention provides an apparatus for managing transaction status, the apparatus comprising a transceiver unit and a processing unit, wherein:
the transceiver unit is configured to send a first transaction operation instruction to a target network element under the control of the processing unit, where the first transaction operation instruction is used to instruct the target network element to start executing a first transaction and/or to instruct the target network element to process an execution result of the first transaction; and the number of the first and second groups,
sending a first query request to a state caching device, where the first query request is used to query a first transaction state corresponding to the first transaction operation instruction, the state caching device is used to store transaction states corresponding to all transaction operation instructions executed by the target network element, where all the transaction operation instructions include the first transaction operation instruction, the transaction states corresponding to all the transaction operation instructions are sent to the state caching device by a second network element adapter, and the second network element adapter or a management device of the transaction states is one of multiple network element adapters included in a communication system; and the number of the first and second groups,
and receiving the first transaction state sent by the state caching device, and sending the first transaction state to a management device.
In a possible implementation, the processing unit is further configured to:
and starting a transaction state checking function, wherein the transaction state checking function is to periodically send the first query request to the state cache device within a preset duration to acquire the first transaction state, and the first transaction state includes a state of successful transaction operation or a state of failure transaction operation.
In a possible implementation, the processing unit is further configured to:
determining whether the first transaction state is received within the preset time length;
and if the transceiver unit does not receive the first transaction state within the preset time, determining that the first transaction state is a state in which the transaction operation fails.
In a possible implementation, the processing unit is further configured to:
after receiving the first transaction state, shutting down the transaction state checking function.
In a possible implementation manner, when the first network element adapter and the second network element adapter are the same network element adapter, the transceiver unit is further configured to:
receiving the first transaction state sent by the target network element;
and sending the first transaction state to the state caching device.
A fourth aspect of the present invention provides a state caching apparatus, including a transceiver unit and a processing unit, wherein:
the transceiver unit is configured to receive, under control of the processing unit, a first transaction state sent by a second network element adapter, where the first transaction state corresponds to a first transaction operation instruction, where the first transaction operation instruction is sent by a first network element adapter, the first transaction operation instruction is used to instruct the target network element to start executing a first transaction and/or is used to instruct the target network element to process an execution result of the first transaction, the state cache device is configured to store transaction states corresponding to all transaction operation instructions executed by the target network element, respectively, where all the transaction operation instructions include the first transaction operation instruction, and the second network element adapter or the first network element adapter is one of a plurality of network element adapters included in the communication system; and the number of the first and second groups,
receiving a first query request sent by a first network element adapter, wherein the first query request is used for querying the first transaction state; and the number of the first and second groups,
sending the first transaction status to the first network element adapter.
In a possible implementation manner, the state caching apparatus stores therein a transaction type corresponding to the any one transaction operation instruction and a mapping relationship of a corresponding transaction state, and the processing unit is further configured to:
determining a first transaction type corresponding to the first transaction operation instruction, wherein the first transaction type comprises a type for starting to execute the first transaction or a type for processing an execution result of the first transaction;
and querying the mapping relation, and determining a first transaction state corresponding to the first transaction type, wherein the first transaction state comprises a state that the transaction operation is successful or a state that the transaction operation is failed.
The fifth aspect of the present invention provides a device for managing transaction status, comprising a processor and a transceiver, wherein the transceiver receives and transmits data under the control of the processor, the device further comprises a memory, a preset program is stored in the memory, the processor reads the program in the memory, and the following processes are executed according to the program:
controlling the transceiver to send a first transaction operation instruction to a target network element, where the first transaction operation instruction is used to instruct the target network element to start executing a first transaction and/or to instruct the target network element to process an execution result of the first transaction; and the number of the first and second groups,
sending a first query request to a state caching device, where the first query request is used to query a first transaction state corresponding to the first transaction operation instruction, the state caching device is used to store transaction states corresponding to all transaction operation instructions executed by the target network element, where all the transaction operation instructions include the first transaction operation instruction, the transaction states corresponding to all the transaction operation instructions are sent to the state caching device by a second network element adapter, and the second network element adapter or a management device of the transaction states is one of multiple network element adapters included in a communication system; and the number of the first and second groups,
and receiving the first transaction state sent by the state caching device, and sending the first transaction state to a management device.
A sixth aspect of the present invention provides a state caching apparatus, including a processor and a transceiver, where the transceiver receives and transmits data under the control of the processor, the apparatus further includes a memory, where a preset program is stored in the memory, and the processor reads the program in the memory and executes the following processes according to the program:
the transceiver is controlled to receive a first transaction state sent by a second network element adapter, where the first transaction state corresponds to a first transaction operation instruction, where the first transaction operation instruction is sent by the first network element adapter, the first transaction operation instruction is used to instruct the target network element to start executing a first transaction and/or is used to instruct the target network element to process an execution result of the first transaction, the state caching device is used to store transaction states corresponding to all transaction operation instructions executed by the target network element, respectively, where all the transaction operation instructions include the first transaction operation instruction, and the second network element adapter or the first network element adapter is one of a plurality of network element adapters included in a communication system; and the number of the first and second groups,
receiving a first query request sent by a first network element adapter, wherein the first query request is used for querying the first transaction state; and the number of the first and second groups,
sending the first transaction status to the first network element adapter.
A seventh aspect of the present invention provides a computer apparatus, comprising:
at least one processor, and
a memory communicatively coupled to the at least one processor, a communication interface;
wherein the memory stores instructions executable by the at least one processor, the at least one processor performing the method of any one of the first or second aspects using the communication interface by executing the instructions stored by the memory.
An eighth aspect of the present invention provides a computer-readable storage medium storing computer instructions which, when run on a computer, cause the computer to perform the method of any one of the first or second aspects.
Advantageous effects of the third to eighth aspects and implementations thereof described above reference may be made to the description of the advantageous effects of the method of the first or second aspect and implementations thereof.
Drawings
FIG. 1A is a schematic diagram of an example of an architecture of a service system in a 4G system;
FIG. 1B is a diagram illustrating a transaction operation flow in the 4G system;
FIG. 2 is a diagram of an example of a microservice system architecture in a 5G system;
fig. 3 is a schematic diagram of a microservice system architecture according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for managing a state of a transaction according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an example of a management apparatus for providing transaction status according to an embodiment of the present invention;
fig. 6 is a schematic diagram of another example of a state caching apparatus according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating an example of a device for managing transaction status according to an embodiment of the present invention;
fig. 8 is a schematic diagram of another example of a state caching apparatus according to an embodiment of the present invention.
Detailed Description
The invention provides a method and a device for managing transaction states and a state caching device, which are used for maintaining the transaction states of managed equipment among a plurality of NEA instances.
In order to solve the technical problems, the general idea of the invention is as follows:
a first network element adapter receives a first transaction operation instruction sent by a management device, wherein the first transaction operation instruction comprises an identifier of a target network element, and the target network element is used for executing the first transaction operation instruction;
the first network element adapter sends the first transaction operation instruction to the target network element;
the first network element adapter sends a first query request to a state caching device, where the first query request is used to query a first transaction result corresponding to the first transaction operation instruction, the state caching device is used to store a transaction result corresponding to any one transaction operation instruction executed by the target network element, the transaction result corresponding to any one transaction operation instruction is sent to the state caching device by a second network element adapter, the second network element adapter is one of a plurality of network element adapters included in a communication system, and the plurality of network element adapters include the first network element adapter;
and the first network element adapter receives the first transaction result sent by the state caching device and sends the first transaction result to the management equipment.
In the above technical solution, a state cache device is arranged in a micro service system architecture, and the state cache device stores the transaction processing result of the target network element, and all network element adapters in the micro service system architecture can obtain the required transaction processing result from the state cache device, thereby implementing unified management on the transaction state.
In order to better understand the technical solutions of the present invention, the following detailed descriptions of the technical solutions of the present invention are provided with the accompanying drawings and the specific embodiments, and it should be understood that the specific features of the embodiments and the examples of the present invention are the detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features of the embodiments and the examples of the present invention can be combined with each other without conflict.
First, technical terms related to the embodiments of the present invention are explained to facilitate understanding of the skilled person.
1) A transaction refers to an indivisible working logic unit, or can be understood as a combination of an operation sequence defined according to business needs, and has atomicity, consistency and isolation. Atomicity (Atomicity) refers to the transaction being executed as a whole, with the operations contained therein being either all executed or none executed. Consistency (Consistency) means that a transaction should ensure that its state transitions from one consistent state to another. The meaning of a consistent state is that the data should satisfy the integrity constraint. Isolation (Isolation) refers to the concurrent execution of multiple transactions, and the execution of one transaction should not affect the execution of other transactions.
2) The OMC is a functional entity for implementing unified operation and maintenance of devices in the communication system.
3) A Network Element (NE) is composed of one or more machine disks or machine frames, and can independently perform a certain transmission function, which is simply understood to be an element or a device in a communication system. The network element is the smallest unit which can be monitored and managed in network management, and the network element and the managed device can be used interchangeably. For example, the network element may be a base station or a Plesiochronous Digital Hierarchy (PDH) device, etc., and is not limited herein.
4) The NEA is located between the network element and the OMC, and functions to provide an interface for maintaining Managed Objects (MOs) (i.e., network elements), and implement configuration and maintenance operations on the MOs, where the configuration and maintenance operations include creating, modifying, deleting, querying the MOs, changing and acquiring MO configuration states, updating a database, and the like. In embodiments of the present invention, NEA and NEA instances may be used interchangeably.
5) The micro-service system architecture is a method for developing a single application program into a group of small services, each service runs in the process of the service, and a lightweight communication mechanism is adopted for communication among the services.
It should be noted that the communication system in the embodiment of the present invention may be a 4G system, a 5G system, or another evolved communication system, which is not limited herein.
6) The transaction operation instruction may include an operation instruction instructing the target network element to start executing a certain transaction (which may be understood as an operation instruction for starting a certain transaction), or include an operation instruction instructing the target network element to process an execution result of a certain transaction, where processing the execution result may include submitting the execution result or modifying the execution result. Or, the method may also include an operation instruction instructing the target network element to start executing a certain transaction and an operation instruction instructing the target network element to process an execution result of the transaction. Of course, other transaction operation instructions may be included, not to mention a few examples.
7) A transaction state associated with the transaction operation instruction, for example, when the transaction operation instruction is to open a certain transaction (or may be understood as to execute a certain transaction), the transaction state corresponding to the transaction operation instruction is a state in which the transaction is successfully opened or a state in which the transaction is failed to be opened; when the transaction operation instruction is a processing result of submitting a certain transaction, the transaction state corresponding to the transaction operation instruction is a state of successfully submitting the result or a state of failing to submit the result; when the transaction operation instruction is a processing result of modifying a certain transaction, the transaction state corresponding to the transaction operation instruction is a state of successful modification or a state of failed modification. According to different set transaction operation instructions, corresponding transaction states are different, which is not an example here.
Next, technical features according to embodiments of the present invention will be described.
In the 4G system, the architecture of the service system is shown in fig. 1A. In fig. 1A, the OMC communicates with a plurality of NEA, and one NEA communicates with one NE, that is, one NEA is associated with one NE, so that, when the OMC needs to let a certain NE execute a certain transaction, the NEA associated with the NE is determined first, then a command for executing the transaction is issued to the associated NEA, and the NEA issues a corresponding transaction operation instruction to the NE, where the transaction operation instruction may include executing a transaction opening operation before executing the transaction, and executing a transaction committing operation after the transaction is completed, and of course, other transaction operations may also be included. Since a NE is bound to an NEA instance, i.e. the transaction operation command and the transaction status reported by the NE are processed only in one NEA, the transaction status of the managed device can be maintained inside the NEA.
Referring to fig. 1B, a schematic diagram of a transaction operation flow in the 4G system is shown. The flow diagram is described as follows:
s11, OMC sends down the business execution command of a certain business of the network element to NEA 1.
For example, the OMC requires NE1 to execute transaction 1, the OMC determines that NE1 is bound to NEA1, and the OMC sends a transaction execution instruction to NEA 1. The transaction execution instruction may be understood as instructing the network element to execute a certain transaction.
S12, NEA1 issues a transaction open command to NE1, and blocks the transaction flow of NEA1 by using the condition.
After the S13 and the NE1 receive the transaction start command, modify the transaction state maintained by themselves to be already started, and immediately return a transaction start success message to the NEA 1.
After receiving the transaction start success message, the S14 and the NEA1 wake up the NEA transaction flow processing by using the condition.signal provided by JAVA, and continue issuing the operation sequence to the NE1 one by one.
If NEA1 does not receive the transaction open success message returned by NE1 within 10s, indicating that NE1 is processing other transactions or that NE1 failed to modify the transaction status, NEA1 returns the transaction result of the transaction operation failure to the OMC. In fig. 1B, NE1 feeds back the transaction start success message as an example.
S15, NEA1 issues a transaction commit command to NE1 and blocks the transaction flow of NEA1 with condition.
After receiving the transaction commit command, the S16 and the NE1 modify the transaction status maintained by themselves to be committed, and immediately return a transaction commit success message to the NEA 1.
If NEA1 does not receive the transaction commit success message returned by NE1 within 10s, indicating that NE1 is processing other transactions or that NE1 failed to modify the transaction status, NEA1 returns the transaction result of the transaction operation failure to the OMC. In fig. 1B, NE1 is taken as an example to feed back a transaction commit success message.
And S17, NEA1 awakens the transaction flow processing by using the Condition.Signal provided by JAVA after receiving the transaction submission success message, and returns the transaction processing result to the OMC.
The transaction flow shown in fig. 1B is only applicable to a scenario where one NE and one NEA instance are bound, whereas in a 5G system, it is proposed that a micro-service system architecture may be employed.
Please refer to fig. 2, which is a schematic diagram of an example of a micro service system architecture. In fig. 2, the OMC communicates with a plurality of NEA, respectively, each NEA may communicate with a plurality of NEs, that is, binding relationships between NEA and NE are cancelled. Thus, when the OMC issues a transaction execution instruction to a NE, the least loaded NEA may be selected from the plurality of NEA through the load balancing mechanism, and then the transaction operation instruction is issued to the NE through the NEA. After the NE completes the corresponding transaction operation, the NE may also send the transaction state reported by the NE through the least loaded NEA (which may be different from the NEA sending the transaction operation instruction) according to the load balancing mechanism. It can be seen that the function of maintaining the transaction state of the managed device cannot be implemented by a certain NEA, that is, the transaction operation flow in the 4G system cannot be applied to the micro service system architecture of the 5G system.
In view of this, in order to achieve the purpose of maintaining the transaction state of the managed device among multiple NEA instances, in the embodiment of the present invention, a state caching device is added in the micro service system architecture, please refer to fig. 3. Under the micro service environment, the NEA adopts multi-instance load balancing deployment, and for the interaction between the OMC and the NE (the OMC issues a transaction operation instruction to the NE through the NEA and the NE reports a transaction result to the OMC), the executed NEA instance is randomly distributed according to a load balancing strategy. The state caching device is communicated with each NEA, the transaction results reported by each NE are uniformly stored in the state caching device, and the NEA acquires the transaction state corresponding to each transaction operation instruction from the state caching device.
It should be noted that, the state caching device may further store information on whether the NE is online, file transmission state information, and the like, and those skilled in the art may set the information according to actual use requirements. In the embodiment of the present invention, only the case where the state cache device stores the transaction state is taken as an example for description, when the state cache device stores other information, the following method for maintaining the transaction state among a plurality of NEA examples may also be adopted to maintain the other information, and details are not described here.
The following describes a method for managing the state of a transaction according to the present invention, taking the micro service system architecture shown in fig. 3 as an example. Please refer to fig. 4, which is a flowchart of the method, and the flowchart describes the following:
s401, the OMC sends a transaction execution instruction to the first network element adapter, and the first network element adapter receives the transaction execution instruction.
In the embodiment of the present invention, the communication system may support multiple transactions, for example, may support transaction 1 to transaction 3, and the transaction execution instruction may be used to instruct the NE to execute any one of the multiple transactions, for example, the transaction execution instruction is used to instruct the NE to execute a first transaction, which may be transaction 1.
Since the NE for executing each transaction may be different, the transaction execution instruction issued by the OMC includes the identifier of the target network element for executing the first transaction. As an example, the corresponding relationship between the transaction and the NE executing the transaction may be stored in the OMC, and please refer to table 1, which is an example of the corresponding relationship between the transaction and the NE.
TABLE 1
Affairs NE for executing transactions
Affair 1 NE1
Affair 2 NE2
Affair 3 NE3
In table 1, transaction 1 is performed by NE1, transaction 2 is performed by NE2, and transaction 3 is performed by NE 3. Then when OMC determines that transaction 1 needs to be executed, it determines that the transaction execution instruction needs to be issued to NE1, so that the transaction execution instruction carries an identifier of NE1, which may be an index number, an ID number, etc. of NE1, which is not limited herein.
As another example, a NE may also execute multiple transactions, see table 2. In table 2, when OMC supports 5 transactions, transactions 1-2 are performed by NE1, transaction 3 is performed by NE2, and transactions 4-5 are performed by NE 3. In this case, the transaction execution instruction may also carry an identifier of a transaction to be executed, so that when NE1 receives the transaction execution instruction, the transaction indicated in the instruction may be executed.
TABLE 2
Affairs NE for executing transactions
Affair 1 NE1
Affair 2 NE1
Affair 3 NE2
Affair 4 NE3
Transaction 5 NE3
And after the OMC generates the transaction execution instruction, the transaction execution instruction is issued to the first NEA. The first NEA is one NEA of the plurality of NEA included in the communication system, and may be any one of NEA1 to NEA3 as shown in fig. 3, for example.
As an example, the OMC may determine the load of each NEA according to a preset rule of load balancing, and select the NEA with the smallest current load as the first NEA. For example, the load amount of NEA1 is 50%, the load amount of NEA2 is 60%, and the load amount of NEA3 is 70%, and therefore, the OMC selects NEA1 as the first NEA, thereby issuing the transaction execution instruction to NEA 1.
S402, the first NEA sends the first transaction operation instruction to a target network element, and the target network element receives the first transaction operation instruction.
And after receiving the transaction execution instruction, the first NEA sends a first transaction operation instruction to the target network element according to the identifier of the target network element carried in the transaction execution instruction. For example, the transaction execution instruction carries the ID number of NE1, and the first NEA sends the first transaction operation instruction to NE 1.
In an embodiment of the present invention, the first transaction operation instruction is used to instruct the target network element to start executing the first transaction and/or to instruct the target network element to process an execution result of the first transaction. Wherein the transaction operation instruction instructing the target network element to start executing the first transaction may be understood as executing an operation to open the transaction before the target network element executes the first transaction. The transaction operation instruction instructing the target network element to process the execution result of the first transaction may be understood as an operation that the target network element performs the operation of submitting the processing result after the first transaction is completed, or may be understood as an operation that the target network element performs the operation of modifying the processing result after the first transaction is completed, or may be an operation that performs other processing on the processing result, which is not limited herein. For convenience of explanation, the first transaction operation instruction is hereinafter used as an operation instruction for starting the transaction before instructing the target network element to execute the first transaction.
S403, the target network element executes the first transaction operation.
And after receiving the first transaction operation instruction, the target network element executes corresponding transaction operation. For example, the first transaction operation instruction is an operation instruction to open transaction 1, then NE1 modifies the transaction state for transaction 1 maintained by itself to be an open success. Or, because the network element can only execute one transaction at the same time, if the target network element is executing other transactions at this time, the target network element modifies the transaction state for the transaction 1 maintained by the target network element to be open failure.
S404, the target network element sends a first transaction state corresponding to the first transaction operation instruction to the second NEA, and the second NEA receives the first transaction state.
The first transaction state includes a state in which the transaction operation succeeded or a state in which the transaction operation failed. For example, if the first transaction operation command is an operation command to open the transaction 1, and the NE1 modifies the transaction status maintained by itself for the transaction 1 into an open successful status, the first transaction status is an open successful status, otherwise, the first transaction status is an open failed status.
It is noted that the second NEA is one of the network element adapters comprised by the communication system, for example NEA 2. Specifically, the second NEA may be the least loaded NEA determined according to the load balancing mechanism, or the second NEA may be a randomly selected NEA, which is not limited herein. In this case, the first NEA and the second NEA may be the same NEA or different NEA. When the first NEA and the second NEA are the same NEA, the target network element sends the first transaction status to the first NEA, and then the first transaction status is sent to the status caching device by the first NEA. For convenience of explanation, in the embodiment shown in fig. 4, the first NEA and the second NEA are different NEA as an example.
S405, the second NEA sends the first transaction state to a state cache device, and the state cache device receives and stores the first transaction state.
The functions of the state caching apparatus have been described in the foregoing, and are not described herein again. The contents stored in the state caching device will be explained below.
As an example, the state caching device stores a transaction type corresponding to any one transaction operation instruction and a mapping relation of a corresponding transaction state. For example, the state caching device may create a mapping relationship for each transaction, and the mapping relationship corresponding to each transaction includes a transaction operation for the transaction and a corresponding transaction state. In this case, the second NEA may also indicate, when sending the first transaction state, an identification of the transaction (e.g. a number or an ID number of the transaction) and a transaction type corresponding to the first transaction state (i.e. the first transaction type), where the first transaction type includes a type of starting to execute the first transaction (or a type of opening the first transaction) or a type of processing an execution result of the first transaction (or a type of committing the transaction state or a type of modifying the transaction state, etc.). Then, the state caching device establishes and stores the mapping relation between the transaction type and the transaction state. For example, please refer to FIG. 3, which is a mapping relationship for transaction 1.
Table 3 transaction 1
Transaction type Transaction state
Opening transactions Open success status
As another example, the state caching apparatus may store the first transaction state in a profile. For example, the transaction state stored by the state caching device may be: transaction 1: the transaction state of the open transaction is: a successful state is turned on.
Of course, the state caching device may also store the transaction state corresponding to each transaction operation instruction of each transaction in other manners, for example, the state caching device may store a mapping relationship between the transaction operation instruction and the transaction state, which is not limited to this example.
S406, the first NEA sends a first query request to the state cache device, and the state cache device receives the first query request.
In an embodiment of the present invention, the first query request is used to query a first transaction status corresponding to the first transaction operation instruction. For example, the first query request may carry an identifier of a first transaction and a transaction type of a first transaction operation instruction, or the first query request may carry the first transaction operation instruction. Of course, if the state caching device stores the transaction state corresponding to each transaction operation instruction of each transaction in other manners, the first query request may carry other information, which is not limited herein.
As an example, the first query request may be sent by the first NEA to the status caching device after the first NEA performs step S402 and after a preset time interval. The preset time period may be 5 seconds, 3 seconds, etc., e.g., the first NEA performs step S406 at 10:03 after performing step S402 at 10: 00.
As another example, the first query request may be sent periodically. For example, after the first NEA performs step S402, the first NEA turns on the transaction status check function. The transaction status checking function is to periodically send the first query request to the status caching device within a preset duration to obtain the first transaction status. For example, the transaction status check function may be that the first query request is sent to the status caching device every 1 second within 10 seconds, and the first NEA sends the first query request to the status caching device ten times after executing step S402.
S407, the state cache device obtains a first transaction state corresponding to the first query request.
As an example, the first query request carries a transaction operation instruction, after receiving the first query request, the state caching device first determines a transaction type of the transaction operation instruction carried by the first query request, for example, the transaction operation instruction carried by the first query request is an operation instruction for opening a transaction 1, the state caching device determines that the transaction type of the transaction operation instruction is an opening transaction type for the transaction 1, and then, the state caching device queries the mapping relationship shown in table 3 to determine a transaction state corresponding to the opening transaction type of the transaction 1, that is, the first transaction state.
As another example, the first query request carries a transaction type of the transaction operation instruction, and the state caching device determines, according to the transaction type, a transaction state corresponding to the open transaction type of the transaction 1 from the mapping relationship shown in table 3.
As another example, if the state caching device stores the transaction state in a descriptive file, the caching device may search for the transaction operation instruction as a key to determine the first transaction state.
When the state caching device stores the transaction state in other manners, the state caching device may also obtain the first transaction state corresponding to the first query request in other manners, which is not limited to this example.
S408, the state caching device sends the first transaction state to a first NEA, and the first NEA receives the first transaction state.
When the state caching device obtains the first transaction state, the first transaction state is sent to the first NEA.
It should be noted that, if the first NEA employs the open transaction state check function, after the first NEA receives the first transaction state, the transaction state check function may be closed, so as to save power consumption. If the first NEA does not receive the first transaction state within the preset time duration corresponding to the transaction state checking function, the first NEA may determine that the first transaction state is a state in which the transaction operation fails, for example, if the first transaction operation instruction is to open the transaction 1, the first transaction state is a state in which the transaction operation fails.
S409, the first NEA sends the operation sequence of the first transaction to the target network element, and the target network element receives the operation sequence of the first transaction.
For example, the first transaction includes step a and step B, the first NEA sends an operation sequence corresponding to each step to the target network element, and the target network element receives the operation sequence and then executes the operation sequences in sequence. In fig. 4, two operation sequences are illustrated as examples of the first NEA sending to the target network element.
S410, the first NEA sends the first transaction state to the OMC.
The first NEA receives the first transaction state and then sends the first transaction state to the OMC.
It should be noted that, in the embodiment of the present invention, the execution sequence of step S409 and step S410 is not limited, that is, step S409 may be executed first and step S410 is executed, step S410 may be executed first and then step S409 is executed, or step S409 and step S410 are executed simultaneously.
S411, the first NEA sends the second transaction operation instruction to a target network element, and the target network element receives the second transaction operation instruction.
If the first transaction operation instruction is used to instruct the target network element to start executing the first transaction, the second transaction operation instruction is used to instruct the target network element to process the execution result of the first transaction, and processing the execution result may be understood as submitting the processing result.
And S412, the target network element executes the second transaction operation instruction.
S413, the target network element sends a second transaction state corresponding to the second transaction operation instruction to the second NEA, and the second NEA receives the second transaction state.
S414, the second NEA sends the second transaction state to the state cache device, and the state cache device receives and stores the second transaction state.
S415, the first NEA sends the second query request to the state cache device, and the state cache device receives the second query request.
In an embodiment of the present invention, the second query request is used to query a second transaction state corresponding to the second transaction operation instruction.
S416, the state caching apparatus obtains a second transaction state corresponding to the second query request.
S417, the state caching apparatus sends the second transaction state to the first NEA, and the first NEA receives the second transaction state.
S418, the first NEA sends the second transaction state to the OMC.
Steps S411 to S418 are similar to steps S402 to S408 and S410, and are not repeated herein. In the actual use process, only one transaction operation instruction may be executed, and the execution of two transaction operation instructions is illustrated in fig. 4 as an example.
In the above technical solution, a state cache device is arranged in a micro service system architecture, and the state cache device stores the transaction processing result of the target network element, and all network element adapters in the micro service system architecture can obtain the required transaction processing result from the state cache device, thereby implementing unified management on the transaction state.
A second aspect of the present invention provides a management apparatus of a transaction state, which may be an NE in a wireless communication system such as an LTE system or an NR system. Referring to fig. 5, a schematic structural diagram of a management device of transaction states according to an embodiment of the present invention is shown, where the management device of transaction states includes a transceiver 501 and a processing unit 502, where:
a transceiver unit 501, configured to send a first transaction operation instruction to a target network element under the control of a processing unit 502, where the first transaction operation instruction is used to instruct the target network element to start executing a first transaction and/or is used to instruct the target network element to process an execution result of the first transaction; and the number of the first and second groups,
sending a first query request to a state caching device, where the first query request is used to query a first transaction state corresponding to the first transaction operation instruction, the state caching device is used to store transaction states corresponding to all transaction operation instructions executed by the target network element, where all the transaction operation instructions include the first transaction operation instruction, the transaction states corresponding to all the transaction operation instructions are sent to the state caching device by a second network element adapter, and the second network element adapter or a management device of the transaction states is one of multiple network element adapters included in a communication system; and the number of the first and second groups,
and receiving the first transaction state sent by the state caching device, and sending the first transaction state to a management device.
A third aspect of the present invention provides a status caching apparatus, which may be a standalone NE in a wireless communication system such as an LTE system or an NR system, or may be integrated in an existing NE, and is not limited herein. Fig. 6 is a structural diagram of a state caching apparatus according to an embodiment of the present invention. As shown in fig. 6, the state caching apparatus includes a transceiver 601 and a processing unit 602, where:
a transceiver 601, configured to receive, under the control of a processing unit 602, a first transaction status sent by a second network element adapter, where the first transaction status corresponds to a first transaction operation instruction, where the first transaction operation instruction is sent by a first network element adapter, the first transaction operation instruction is used to instruct a target network element to start executing a first transaction and/or is used to instruct the target network element to process an execution result of the first transaction, the status caching apparatus is used to store transaction statuses respectively corresponding to all transaction operation instructions executed by the target network element, where all the transaction operation instructions include the first transaction operation instruction, and the second network element adapter or the first network element adapter is one of multiple network element adapters included in a communication system; and the number of the first and second groups,
receiving a first query request sent by a first network element adapter, wherein the first query request is used for querying the first transaction state; and the number of the first and second groups,
sending the first transaction status to the first network element adapter.
Since the management device of the transaction state provided by the second aspect of the present invention and the state caching device provided by the third aspect of the present invention are proposed under the same conception as the management method of the transaction state provided by the first aspect of the present invention, various variations and specific embodiments of the management method of the transaction state in the embodiments of fig. 2 to fig. 4 described above are also applicable to the management device of the transaction state provided by the second aspect and the state caching device provided by the third aspect of the present invention, and through the foregoing detailed description of the management method of the transaction state, a person skilled in the art can clearly know implementation procedures of the management device of the transaction state provided by the second aspect and the state caching device provided by the third aspect of the present invention, and therefore, for the conciseness of description, detailed description is omitted here.
A fourth aspect of the present invention provides a management apparatus of transaction states, which may be an NE in a wireless communication system such as an LTE system or an NR system. Referring to fig. 7, a schematic structural diagram of a management device for transaction states according to an embodiment of the present invention is shown, where the management device for transaction states includes:
a processor 701, configured to control the transceiver 702 to send a first transaction operation instruction to a target network element, where the first transaction operation instruction is used to instruct the target network element to start executing a first transaction and/or to instruct the target network element to process an execution result of the first transaction; and the number of the first and second groups,
the control transceiver 702 sends a first query request to a state caching device, where the first query request is used to query a first transaction state corresponding to the first transaction operation instruction, the state caching device is used to store transaction states corresponding to all transaction operation instructions executed by the target network element, respectively, where all the transaction operation instructions include the first transaction operation instruction, the transaction states corresponding to all the transaction operation instructions are sent to the state caching device by a second network element adapter, and the second network element adapter or the management device of the transaction states is one of a plurality of network element adapters included in a communication system; and the number of the first and second groups,
the control transceiver 702 receives the first transaction state sent by the state caching apparatus and sends the first transaction state to a management device.
Optionally, the processor 701 may specifically be a central processing unit, an Application Specific Integrated Circuit (ASIC), one or more Integrated circuits for controlling program execution, a hardware Circuit developed by using a Field Programmable Gate Array (FPGA), or a baseband processor.
Optionally, processor 701 may include at least one processing core.
Optionally, the electronic device further includes a Memory 703, where the Memory 703 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory 703 is used for storing data required by the processor 701 in operation. The number of the memories is one or more.
A fifth aspect of the present invention provides a status caching apparatus, which may be a standalone NE in a wireless communication system such as an LTE system or an NR system, or may be integrated in an existing NE, and is not limited herein. Fig. 8 is a structural diagram of a state caching apparatus according to an embodiment of the present invention. As shown in fig. 8, the state caching apparatus includes:
a processor 801, configured to control the transceiver 802 to receive a first transaction state sent by a second network element adapter, where the first transaction state corresponds to a first transaction operation instruction, where the first transaction operation instruction is sent by the first network element adapter, the first transaction operation instruction is used to instruct the target network element to start executing a first transaction and/or is used to instruct the target network element to process an execution result of the first transaction, the state caching apparatus is configured to store transaction states respectively corresponding to all transaction operation instructions executed by the target network element, where all the transaction operation instructions include the first transaction operation instruction, and the second network element adapter or the first network element adapter is one of a plurality of network element adapters included in the communication system; and the number of the first and second groups,
the control transceiver 802 receives a first query request sent by a first network element adapter, where the first query request is used to query the first transaction status; and the number of the first and second groups,
the control transceiver 802 sends the first transaction status to the first network element adapter.
Optionally, the processor 801 may be a central processing unit (cpu), an Application Specific Integrated Circuit (ASIC), one or more Integrated circuits for controlling program execution, a hardware Circuit developed by using a Field Programmable Gate Array (FPGA), or a baseband processor.
Optionally, processor 801 may include at least one processing core.
Optionally, the electronic device further includes a Memory 803, and the Memory 803 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory 803 is used for storing data required by the processor 801 during its operation. The number of the memories is one or more.
Since the management device of the transaction state provided by the fourth aspect of the present invention and the state caching device provided by the fifth aspect of the present invention are proposed under the same conception as that of the management method of the transaction state provided by the first aspect of the present invention, various variations and specific embodiments of the management method of the transaction state in the embodiments of fig. 2 to 4 are also applicable to the management device of the transaction state provided by the fourth aspect and the state caching device provided by the fifth aspect of the present invention, and through the foregoing detailed description of the management method of the transaction state, a person skilled in the art can clearly know implementation procedures of the management device of the transaction state provided by the fourth aspect and the state caching device provided by the fifth aspect of the present invention, and therefore, for the conciseness of description, detailed description is omitted here.
A sixth aspect of the present invention provides a computer apparatus, comprising:
at least one processor, and
a memory communicatively coupled to the at least one processor, a communication interface;
wherein the memory stores instructions executable by the at least one processor, and the at least one processor performs the method performed by the first NEA or state caching apparatus in the embodiments shown in fig. 2-4 using the communication interface by executing the instructions stored by the memory.
A seventh aspect of the present invention provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions which, when run on a computer, cause the computer to perform the method performed by the first NEA or state caching apparatus in the embodiments shown in fig. 2-4.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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, optical storage, and the like) having computer-usable program code embodied therein.
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 will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (17)

1. A method for managing transaction states, the method comprising:
a first network element adapter sends a first transaction operation instruction to a target network element, wherein the first transaction operation instruction is used for indicating the target network element to start executing a first transaction and/or is used for indicating the target network element to process an execution result of the first transaction;
the first network element adapter sends a first query request to a state caching device, where the first query request is used to query a first transaction state corresponding to the first transaction operation instruction, the state caching device is used to store transaction states corresponding to all transaction operation instructions executed by the target network element, the all transaction operation instructions include the first transaction operation instruction, the transaction states corresponding to all transaction operation instructions are sent to the state caching device by a second network element adapter, and the second network element adapter or the first network element adapter is one of multiple network element adapters included in a communication system;
and the first network element adapter receives the first transaction state sent by the state caching device and sends the first transaction state to a management device.
2. The method of claim 1, wherein after the first network element adapter sends the first transaction operation instruction to the target network element, the method further comprises:
the first network element adapter starts a transaction state checking function, where the transaction state checking function is to periodically send the first query request to the state cache device within a preset duration to obtain the first transaction state, where the first transaction state includes a state where a transaction operation is successful or a state where a transaction operation is failed.
3. The method of claim 2, wherein after the first network element adapter sends the first query request to the state caching device, the method further comprises:
the first network element adapter determines whether the first transaction state is received within the preset time length;
if the first network element adapter does not receive the first transaction state within the preset time length, the first network element adapter determines that the first transaction state is a state in which the transaction operation fails.
4. The method of any of claims 1-3, wherein after the first network element adapter receives the first transaction status sent by the status caching device, the method further comprises:
the first network element adapter closes the transaction status checking function.
5. The method of claim 4, wherein when the first network element adapter and the second network element adapter are the same network element adapter, the method further comprises:
the first network element adapter receives the first transaction state sent by the target network element;
and the first network element adapter sends the first transaction state to the state caching device.
6. A method for managing transaction states, the method comprising:
the state caching device is used for storing transaction states respectively corresponding to all transaction operation instructions executed by a target network element, wherein all the transaction operation instructions comprise the first transaction operation instruction, and the second network element adapter or the first network element adapter is one of a plurality of network element adapters included in a communication system;
the state caching device receives a first query request sent by a first network element adapter, wherein the first query request is used for querying the first transaction state;
and the state caching device sends the first transaction state to the first network element adapter.
7. The method according to claim 6, wherein the state caching device stores therein a mapping relationship between a transaction type corresponding to any one of the transaction operation instructions and a corresponding transaction state, and after the state caching device receives the first query request sent by the first network element adapter, the method further comprises:
the state caching device determines a first transaction type corresponding to the first transaction operation instruction, wherein the first transaction type comprises a type for starting to execute the first transaction or a type for processing an execution result of the first transaction;
and the state caching device inquires the mapping relation and determines a first transaction state corresponding to the first transaction type, wherein the first transaction state comprises a state that the transaction operation is successful or a state that the transaction operation is failed.
8. The method according to claim 6 or 7, wherein the first network element adapter and the second network element adapter are the same network element adapter or the first network element adapter and the second network element adapter are different network element adapters.
9. A transaction state management apparatus, comprising a transceiving unit and a processing unit, wherein:
the transceiver unit is configured to send a first transaction operation instruction to a target network element under the control of the processing unit, where the first transaction operation instruction is used to instruct the target network element to start executing a first transaction and/or to instruct the target network element to process an execution result of the first transaction; and the number of the first and second groups,
sending a first query request to a state caching device, where the first query request is used to query a first transaction state corresponding to the first transaction operation instruction, the state caching device is used to store transaction states corresponding to all transaction operation instructions executed by the target network element, where all the transaction operation instructions include the first transaction operation instruction, the transaction states corresponding to all the transaction operation instructions are sent to the state caching device by a second network element adapter, and the second network element adapter or a management device of the transaction states is one of multiple network element adapters included in a communication system; and the number of the first and second groups,
and receiving the first transaction state sent by the state caching device, and sending the first transaction state to a management device.
10. The apparatus of claim 9, wherein the processing unit is further configured to:
and starting a transaction state checking function, wherein the transaction state checking function is to periodically send the first query request to the state cache device within a preset duration to acquire the first transaction state, and the first transaction state includes a state of successful transaction operation or a state of failure transaction operation.
11. The apparatus of claim 10, wherein the processing unit is further configured to:
determining whether the first transaction state is received within the preset time length;
and if the transceiver unit does not receive the first transaction state within the preset time, determining that the first transaction state is a state in which the transaction operation fails.
12. The apparatus according to any of claims 9-11, wherein the processing unit is further configured to:
after receiving the first transaction state, shutting down the transaction state checking function.
13. The apparatus of claim 12, wherein when the management apparatus of the transaction status and the second network element adapter are the same network element adapter, the transceiver unit is further configured to:
receiving the first transaction state sent by the target network element;
and sending the first transaction state to the state caching device.
14. A state caching device is characterized by comprising a transceiving unit and a processing unit, wherein:
the transceiver unit is configured to receive, under control of the processing unit, a first transaction state sent by a second network element adapter, where the first transaction state corresponds to a first transaction operation instruction, where the first transaction operation instruction is sent by a first network element adapter, the first transaction operation instruction is used to instruct a target network element to start executing a first transaction and/or is used to instruct the target network element to process an execution result of the first transaction, the state caching device is configured to store transaction states respectively corresponding to all transaction operation instructions executed by the target network element, where all the transaction operation instructions include the first transaction operation instruction, and the second network element adapter or the first network element adapter is one of a plurality of network element adapters included in a communication system; and the number of the first and second groups,
receiving a first query request sent by a first network element adapter, wherein the first query request is used for querying the first transaction state; and the number of the first and second groups,
sending the first transaction status to the first network element adapter.
15. The apparatus according to claim 14, wherein the state caching apparatus stores therein a transaction type corresponding to any one of the transaction operation instructions and a mapping relationship of a corresponding transaction state, and the processing unit is further configured to:
determining a first transaction type corresponding to the first transaction operation instruction, wherein the first transaction type comprises a type for starting to execute the first transaction or a type for processing an execution result of the first transaction;
and querying the mapping relation, and determining a first transaction state corresponding to the first transaction type, wherein the first transaction state comprises a state that the transaction operation is successful or a state that the transaction operation is failed.
16. A computer device, the computer device comprising:
at least one processor, and
a memory communicatively coupled to the at least one processor, a communication interface;
wherein the memory stores instructions executable by the at least one processor to perform the method of any of claims 1-5 or 6-8 using the communication interface by executing the instructions stored by the memory.
17. A computer-readable storage medium having stored thereon computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1-5 or 6-8.
CN201910864299.8A 2019-09-12 2019-09-12 Transaction state management method and device and state caching device Active CN112492619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910864299.8A CN112492619B (en) 2019-09-12 2019-09-12 Transaction state management method and device and state caching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910864299.8A CN112492619B (en) 2019-09-12 2019-09-12 Transaction state management method and device and state caching device

Publications (2)

Publication Number Publication Date
CN112492619A CN112492619A (en) 2021-03-12
CN112492619B true CN112492619B (en) 2022-04-01

Family

ID=74920754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910864299.8A Active CN112492619B (en) 2019-09-12 2019-09-12 Transaction state management method and device and state caching device

Country Status (1)

Country Link
CN (1) CN112492619B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2517407A2 (en) * 2009-12-23 2012-10-31 Citrix Systems Inc. Systems and methods for managing static proximity in multi-core gslb appliance
CN103475520A (en) * 2013-09-10 2013-12-25 青岛海信传媒网络技术有限公司 Service processing control method and device in distribution network
CN106648554A (en) * 2012-11-30 2017-05-10 英特尔公司 System, method, and apparatus for improving throughput of consecutive transactional memory regions
CN107533476A (en) * 2015-10-22 2018-01-02 甲骨文国际公司 The system and method for collecting monitoring and analysis for the payload data in transaction processing environment
CN108880873A (en) * 2018-06-05 2018-11-23 中国农业银行股份有限公司 A kind of affairs compensation method and device applied to heterogeneous system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3008943A4 (en) * 2013-06-11 2017-02-22 Seven Networks, LLC Optimizing keepalive and other background traffic in a wireless network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2517407A2 (en) * 2009-12-23 2012-10-31 Citrix Systems Inc. Systems and methods for managing static proximity in multi-core gslb appliance
CN106648554A (en) * 2012-11-30 2017-05-10 英特尔公司 System, method, and apparatus for improving throughput of consecutive transactional memory regions
CN103475520A (en) * 2013-09-10 2013-12-25 青岛海信传媒网络技术有限公司 Service processing control method and device in distribution network
CN107533476A (en) * 2015-10-22 2018-01-02 甲骨文国际公司 The system and method for collecting monitoring and analysis for the payload data in transaction processing environment
CN108880873A (en) * 2018-06-05 2018-11-23 中国农业银行股份有限公司 A kind of affairs compensation method and device applied to heterogeneous system

Also Published As

Publication number Publication date
CN112492619A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
US9886348B2 (en) System and method for adjusting membership of a data replication group
US9357403B2 (en) Conflict handling in self-organizing networks
US11500832B2 (en) Data management method and server
CN107066354B (en) Database switching method, master server and slave server
CN112765262B (en) Data redistribution method, electronic equipment and storage medium
CN106155775B (en) Message processing method, device and system
CN105701159B (en) A kind of data synchronization unit and method
CN103297456A (en) Method for accessing sharing resources in distributed system and distributed system
CN108345462B (en) Method and device for upgrading components
EP4071609A1 (en) Node management method, device and apparatus, storage medium, and system
WO2018024204A1 (en) Method and apparatus for managing virtual network element
CN104850416A (en) Upgrading system, method and device and cloud computing node
CN112416969A (en) Parallel task scheduling system in distributed database
CN113127023B (en) Service upgrading method, device and system
CN112783868A (en) Distributed database table structure gray scale upgrading method, device and system
CN109992415B (en) Container dispatching method and dispatching system
CN107463390B (en) Software upgrading method and upgrading server
WO2016197953A1 (en) Method and device for deploying multi-mode base station
CN112492619B (en) Transaction state management method and device and state caching device
CN114185991A (en) Method and related device for realizing data synchronization based on distributed database
CN112925614A (en) Distributed transaction processing method, device, medium and equipment
US20230252025A1 (en) Data Processing System, Blockchain-Based Data Processing Method, and Device
CN110209534B (en) System and method for automatically backing up mysql database
CN114493602B (en) Block chain transaction execution method and device, electronic equipment and storage medium
CN110196883A (en) A kind of method of data synchronization and device on business on line without influence

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