CN112667651A - Data communication method and device - Google Patents

Data communication method and device Download PDF

Info

Publication number
CN112667651A
CN112667651A CN202011591061.1A CN202011591061A CN112667651A CN 112667651 A CN112667651 A CN 112667651A CN 202011591061 A CN202011591061 A CN 202011591061A CN 112667651 A CN112667651 A CN 112667651A
Authority
CN
China
Prior art keywords
database
notification message
configuration
updated
policy
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.)
Pending
Application number
CN202011591061.1A
Other languages
Chinese (zh)
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.)
Hangzhou H3C Technologies Co Ltd
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN202011591061.1A priority Critical patent/CN112667651A/en
Publication of CN112667651A publication Critical patent/CN112667651A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present application relates to the field of data processing technologies, and in particular, to a data communication method and apparatus. The method comprises the following steps: the first configuration server of the first branch organization stores the updated first policy configuration into a first database of the first branch organization, stores the corresponding first notification message into the first database, and notifies the first authentication server of the first branch organization to load the updated first policy configuration from the first database; the first database sends a first configuration policy acquisition notification to a second database of a second branch office, so that the second database locally synchronizes an updated first configuration policy and a first notification message from the first database, wherein after acquiring the updated first configuration policy and the first notification message, the second database sends the first notification message to a second authentication server of the second branch office, so that the second authentication server loads the updated first configuration policy from the second database based on the first notification message.

Description

Data communication method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data communication method and apparatus.
Background
After the enterprises develop to a certain scale, branches are set up in different cities or different areas of the same city. The branch institutions operate independent authentication systems respectively, and meanwhile, the requirement that the employees have office crossing requirements of the branch institutions is considered, so that the branch institutions are required to communicate with each other, data synchronization is realized, and the employees can access the network and normally work no matter which branch institution the employees work.
At present, when configuration data of a certain branch office changes, firstly, synchronization of the changed configuration data needs to be realized through a synchronization mechanism of a database of each branch office, and then, authentication servers of other branch offices need to be informed to load the changed configuration data from a local database at the same time.
However, this mechanism can only delay the notification message for a long enough time to send because it cannot determine when the database synchronization is complete, in case the authentication server does not load the number change configuration data because the database synchronization is not complete. And the mechanism relies on inter-branch network quality, which otherwise would result in notification message discard and failure of the authentication server of the branch to perform the change configuration data loading operation.
Disclosure of Invention
The application provides a data communication method and a data communication device, which are used for solving the problem that notification messages in the prior art cannot be sent to all branches, so that authentication services are influenced.
In a first aspect, the present application provides a data communication method 1, applied to any branch office, where the branch office at least includes a corresponding configuration server, an authentication server, and a database, the method including:
when detecting an update operation of a first policy configuration, a first configuration server of a first branch organization stores the updated first policy configuration into a first database of the first branch organization, stores a corresponding first notification message into the first database, and notifies a first authentication server of the first branch organization to load the updated first policy configuration from the first database;
the first database sends a first configuration policy acquisition notification to a second database of a second branch office, so that the second database locally synchronizes an updated first configuration policy and a first notification message from the first database, wherein after the second database acquires the updated first configuration policy and the first notification message, the second database sends the first notification message to a second authentication server of the second branch office, so that the second authentication server loads the updated first configuration policy from the second database based on the first notification message.
Optionally, the step of storing the corresponding first notification message in the first database includes:
carrying out serialization processing on the first notification message;
and storing the first notification message after the serialization processing into the first database.
Optionally, the method further comprises:
when receiving a second configuration policy acquisition notification sent by another database, the first database acquires the updated second configuration policy and a second notification message from the other database, and sends the second notification message to the first authentication server, so that the first authentication server acquires the updated second configuration policy from the first database based on the second notification message.
Optionally, the second notification message stored in the other database is a serialized message;
the step of obtaining the updated second configuration policy and the second notification message from the other database includes:
acquiring the updated second configuration strategy from the other databases, and acquiring second communication messages from the other databases after the updated second configuration strategy is determined to be acquired;
the step of sending the second notification message to the first authentication server includes:
judging whether a second unprocessed notification message exists or not based on a preset period;
and if the unprocessed second notification message exists, performing deserialization processing on the second notification message, and sending the deserialized second notification message to the first authentication server.
Optionally, the method further comprises:
and after determining that the first authentication server acquires the updated second configuration policy from the local, the first database marks the second notification message as a processed state.
In a second aspect, the present application provides a data communication apparatus, applied to any branch office, where the branch office includes at least a configuration server, an authentication server and a database, the apparatus includes:
the storage unit is used for storing the updated first policy configuration into a first database of the first branch organization, storing a corresponding first notification message into the first database, and notifying a first authentication server of the first branch organization to load the updated first policy configuration from the first database when the updating operation of the first policy configuration is detected;
a sending unit, configured to send a first configuration policy acquisition notification to a second database of a second branch office, so that the second database locally synchronizes an updated first configuration policy and a first notification message from the first database, where after acquiring the updated first configuration policy and the updated first notification message, the second database sends the first notification message to a second authentication server of the second branch office, so that the second authentication server loads the updated first configuration policy from the second database based on the first notification message.
Optionally, when the corresponding first notification message is stored in the first database, the storage unit is specifically configured to:
carrying out serialization processing on the first notification message;
and storing the first notification message after the serialization processing into the first database.
Optionally, the apparatus further comprises:
and the execution unit is used for acquiring the updated second configuration policy and the second notification message from other databases when receiving a second configuration policy acquisition notification sent by the other databases, and sending the second notification message to the first authentication server through the first configuration server, so that the first authentication server acquires the updated second configuration policy from the first database based on the second notification message.
Optionally, the second notification message stored in the other database is a serialized message;
when the updated second configuration policy and the second notification message are obtained from the other database, the execution unit is specifically configured to:
acquiring the updated second configuration strategy from the other databases, and acquiring second communication messages from the other databases after the updated second configuration strategy is determined to be acquired;
when the second notification message is sent to the first authentication server through the first configuration server, the execution unit is specifically configured to:
the first configuration server judges whether the first database has unprocessed second notification messages or not based on a preset period;
and if the unprocessed second notification message exists, acquiring the second notification message, performing deserialization processing on the second notification message, and sending the deserialized second notification message to the first authentication server.
Optionally, the apparatus further comprises:
and the marking unit marks the second notification message as a processed state after the first database determines that the first authentication server acquires the updated second configuration policy from the local.
In a third aspect, an embodiment of the present application provides a data communication apparatus, including:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the steps of the method according to any one of the above first aspects in accordance with the obtained program instructions.
In a fourth aspect, the present application further provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the steps of the method according to any one of the above first aspects.
To sum up, the data communication method provided by the embodiment of the present application is applied to any branch office, where the branch office at least includes a corresponding configuration server, an authentication server, and a database, and the method includes: when detecting an update operation of a first policy configuration, a first configuration server of a first branch organization stores the updated first policy configuration into a first database of the first branch organization, stores a corresponding first notification message into the first database, and notifies a first authentication server of the first branch organization to load the updated first policy configuration from the first database; the first database sends a first configuration policy acquisition notification to a second database of a second branch office, so that the second database locally synchronizes an updated first configuration policy and a first notification message from the first database, wherein after the second database acquires the updated first configuration policy and the first notification message, the second database sends the first notification message to a second authentication server of the second branch office, so that the second authentication server loads the updated first configuration policy from the second database based on the first notification message.
By adopting the data communication method provided by the embodiment of the application, when the update operation of the configuration strategy is detected, the notification message and the updated configuration strategy are inserted into the database together, the notification message is synchronized in a database synchronization mode, the problem that the notification message is lost due to network fluctuation among branches is avoided, the problem that the updated configuration strategy cannot be acquired by an authentication server due to the fact that the notification message is sent too early is avoided, the reliability of the authentication service is improved, further, the notification message sending rule is not required to be maintained, namely, when the branches are increased or decreased, the notification message sending range is not required to be adjusted, the notification messages of all branches in the enterprise networking can be sent by adopting the database synchronization notification message, the notification message processing flow is simplified, and the processing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
Fig. 1 is a detailed flowchart of a data communication method according to an embodiment of the present application;
fig. 2 is a networking schematic diagram of an enterprise networking provided in an embodiment of the present application;
fig. 3 is a schematic timing diagram of data communication according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data communication device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another data communication device according to an embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
Exemplarily, referring to fig. 1, a detailed flowchart of a data communication method provided by an embodiment of the present application is applied to any branch office, where the branch office includes at least a configuration server, an authentication server, and a database, and the method includes the following steps:
step 100: when detecting an update operation of a first policy configuration, a first configuration server of a first branch office stores the updated first policy configuration into a first database of the first branch office, stores a corresponding first notification message into the first database, and notifies a first authentication server of the first branch office to load the updated first policy configuration from the first database.
In practical application, after an enterprise develops to a certain scale, a plurality of branch institutions are set, each branch institution is provided with a corresponding configuration server, an authentication server and a database, wherein when an enterprise employee logs in a system, the enterprise employee needs to pass authentication of the authentication server, user authentication information can be maintained in the database, and a user can perform updating operations such as addition, deletion, modification and the like of configuration strategies (such as user authentication information, authentication strategies and the like) based on the configuration server.
It should be noted that, in the embodiment of the present application, the first branch office may be any branch office in the system. Namely, the data communication method provided by the embodiment of the application can be applied to any branch office.
Specifically, when a configuration server (e.g., a first configuration server) of one branch office (e.g., a first branch office) detects a configuration policy (e.g., a first configuration policy) update operation triggered by a user, first, the updated first configuration policy is stored in a database (e.g., a first database) of the first branch office, and meanwhile, a notification message for notifying other branch offices of the configuration policy update event is also stored in the first database; next, the first configuration server sends a notification to a first authentication server belonging to the first branch office, and the first authentication server loads the updated configuration policy from a first database. After the above operations are performed, the first authentication server may log in the branch office to perform a login authentication operation for the user based on the updated configuration policy.
In the embodiment of the present application, when the corresponding first notification message is stored in the first database, a preferred implementation manner is to perform serialization processing on the first notification message; and storing the serialized first notification message into the first database.
Serialization is the process of converting an object into a sequence of bytes, referred to as serialization of the object. Similarly, the process of recovering a byte sequence as an object is referred to as deserialization of the object.
That is to say, in the embodiment of the present application, before the notification message is stored in the corresponding database, the notification message needs to be converted into a byte sequence, and the byte sequence needs to be stored in the database.
Step 110: the first database sends a first configuration policy acquisition notification to a second database of a second branch office, so that the second database locally synchronizes an updated first configuration policy and a first notification message from the first database, wherein after the second database acquires the updated first configuration policy and the updated first notification message, the second database sends the first notification message to a second authentication server of the second branch office, so that the second authentication server loads the updated first configuration policy from the second database based on the first notification message.
In this embodiment of the application, after the step 100 is executed, a database self-synchronization mechanism is adopted between the databases of the branches to perform data synchronization operation, for example, when the first database detects that the locally stored data changes, a first configuration policy update notification is sent to a second database of a second branch, specifically, the second branch is another branch in the networking except for the first branch, and specifically, the database self-synchronization mechanism is an existing mechanism.
In the embodiment of the application, after the databases of the second branch organizations acquire the updated first configuration policy and the first notification message, the first notification message is sent to the authentication server belonging to the unified branch organization with the databases, and after receiving the first notification message, the authentication server loads the updated first configuration policy from the corresponding database according to the first notification message.
Further, when receiving a second configuration policy acquisition notification sent by another database, the first database acquires the updated second configuration policy and a second notification message from the another database, and sends the second notification message to the first authentication server through the first configuration server, so that the first authentication server acquires the updated second configuration policy from the first database based on the second notification message.
If the second notification message stored in the other database is a serialized message, and the updated second configuration policy and the second notification message are obtained from the other database, a preferred implementation manner is as follows: and acquiring the updated second configuration strategy from the other databases, and acquiring the second communication message from the other databases after determining that the updated second configuration strategy is acquired.
That is, after the action of ensuring that the updated configuration policy is synchronized to one database is completed, the corresponding notification message is synchronized again, so as to avoid the problem that the corresponding configuration policy is not completely synchronized to the database when the notification message is synchronized to the database first and the authentication server is triggered to load the updated configuration policy from the database.
Furthermore, when the first configuration server sends the second notification message to the first authentication server, a preferred implementation manner is as follows: the first configuration server judges whether the first database has unprocessed second notification messages or not based on a preset period; and if the unprocessed second notification message exists, acquiring the second notification message, performing deserialization processing on the second notification message, and sending the deserialized second notification message to the first authentication server.
For example, the configuration server polls whether an unprocessed notification message exists in the corresponding database, if so, acquires the notification message, deserializes the notification message, and sends the deserialized notification message to the corresponding authentication server.
Further, after determining that the first authentication server locally obtains the updated second configuration policy, the first database marks the second notification message as a processed state.
That is, after the authentication server determines that the updated configuration policy is loaded, the authentication server feeds back a message of the completion of the loading to the database, and after the authentication server determines that the loading is completed, the database marks the corresponding notification message as processed, so that the processed notification message can be ignored during the subsequent round trip of the configuration server.
The following describes the structure of enterprise networking provided by the embodiment of the present application in detail with reference to specific application scenarios. For example, referring to fig. 2 and fig. 3, fig. 2 is a schematic networking diagram of an enterprise networking provided by an embodiment of the present application, where the enterprise networking includes a branch office 1, a branch office 2 and a branch office 3, where the branch office 1 includes a configuration server 1, an authentication server 1 and a database 1, the branch office 2 includes a configuration server 2, an authentication server 2 and a database 2, and the branch office 3 includes a configuration server 3, an authentication server 3 and a database 3. Then, when the configuration server 1 detects a configuration policy updating operation triggered by a user, storing the updated configuration policy and a notification message into the database 1, and simultaneously notifying the task server 1 to load the configuration policy from the database 1; when detecting that the locally stored data is changed, the database 1 initiates a data synchronization mechanism with the database 2 and the database 3, so that the database 2 and the database 3 acquire the updated configuration policy and notification message from the database 1, further, the configuration server 2 periodically polls whether a new notification message is not processed in the database 2, and similarly, the configuration server 3 periodically polls whether a new notification message is not processed in the database 3, if so, the configuration server 2 acquires the notification message to be processed from the database 2 and sends the notification message to be processed to the authentication server 2, so that the authentication server 2 loads the updated configuration policy from the database 2, the configuration server 3 acquires the notification message to be processed from the database 3 and sends the notification message to be processed to the authentication server 3, so that the authentication server 3 loads the updated configuration policy from the database 3, further, the database 2 marks the notification message as processed after determining that the authentication server 2 loads the successfully updated configuration policy from the local, and ignores the processed notification message when the configuration server 2 polls again, and the database 3 marks the notification message as processed after determining that the authentication server 3 loads the successfully updated configuration policy from the local, and ignores the processed notification message when the configuration server 3 polls again.
In the following, a detailed description is given to a data communication time sequence between any two branches in conjunction with a specific application scenario, for example, referring to fig. 3, a data communication time sequence diagram provided for an embodiment of the present application specifically includes:
step 1, the configuration server 1 completes the configuration strategy and inserts the configuration strategy and the notification message into the database 1.
And step 2, the configuration server 1 informs the authentication server 1 to load the configuration strategy.
And 3, the authentication server 1 loads the configuration strategy from the database 1.
And 4, returning the configuration strategy to the authentication server 1 by the database 1.
And 5, triggering a data synchronization mechanism by the database 1 and the database 2.
It should be noted that after step 1 is executed, while step 2 is executed, step 5 may be executed synchronously, and after step 5 is executed, step 6 may be executed, which is not limited in this embodiment of the application.
Step 6, the configuration server 2 acquires the notification message from the database 2;
and 7, the configuration server 2 sends the notification message to the authentication server 2.
Step 8, the authentication server 2 loads the configuration policy from the database 2.
And 9, returning the configuration strategy to the authentication server 2 by the database 2.
Step 10, the authentication server 2 instructs the database 2 to mark the notification message as processed.
Exemplarily, referring to fig. 4, a schematic structural diagram of a data communication apparatus provided in an embodiment of the present application is shown, where the data communication apparatus is applied to any branch office, where the branch office includes at least a configuration server, an authentication server, and a database, and the apparatus includes:
a storage unit 40, configured to, when an update operation of a first policy configuration is detected, store the updated first policy configuration in a first database of the first branch office, store a corresponding first notification message in the first database, and notify a first authentication server of the first branch office to load the updated first policy configuration from the first database;
a sending unit 41, configured to send a first configuration policy obtaining notification to a second database of a second branch office, so that the second database locally synchronizes the updated first configuration policy and the first notification message from the first database, where after the second database obtains the updated first configuration policy and the first notification message, the second database sends the first notification message to a second authentication server of the second branch office, so that the second authentication server loads the updated first configuration policy from the second database based on the first notification message.
Optionally, when the corresponding first notification message is stored in the first database, the storage unit 40 is specifically configured to:
carrying out serialization processing on the first notification message;
and storing the first notification message after the serialization processing into the first database.
Optionally, the apparatus further comprises:
and the execution unit is used for acquiring the updated second configuration policy and the second notification message from other databases when receiving a second configuration policy acquisition notification sent by the other databases, and sending the second notification message to the first authentication server through the first configuration server, so that the first authentication server acquires the updated second configuration policy from the first database based on the second notification message.
Optionally, the second notification message stored in the other database is a serialized message;
when the updated second configuration policy and the second notification message are obtained from the other database, the execution unit is specifically configured to:
acquiring the updated second configuration strategy from the other databases, and acquiring second communication messages from the other databases after the updated second configuration strategy is determined to be acquired;
when the second notification message is sent to the first authentication server through the first configuration server, the execution unit is specifically configured to:
the first configuration server judges whether the first database has unprocessed second notification messages or not based on a preset period;
and if the unprocessed second notification message exists, acquiring the second notification message, performing deserialization processing on the second notification message, and sending the deserialized second notification message to the first authentication server.
Optionally, the apparatus further comprises:
and the marking unit marks the second notification message as a processed state after the first database determines that the first authentication server acquires the updated second configuration policy from the local.
The above units may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above units is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Further, in the data communication apparatus provided in the embodiment of the present application, from a hardware level, a schematic diagram of a hardware architecture of the data communication apparatus may be shown in fig. 5, where the data communication apparatus may include: a memory 50 and a processor 51, which,
the memory 50 is used for storing program instructions; the processor 51 calls the program instructions stored in the memory 50 and executes the above-described method embodiments according to the obtained program instructions. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application also provides a data communication device comprising at least one processing element (or chip) for performing the above method embodiments.
Optionally, the present application also provides a program product, such as a computer-readable storage medium, having stored thereon computer-executable instructions for causing the computer to perform the above-described method embodiments.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.
Furthermore, 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.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A data communication method applied to any branch office, wherein the branch office at least comprises a corresponding configuration server, an authentication server and a database, the method comprising:
when detecting an update operation of a first policy configuration, a first configuration server of a first branch organization stores the updated first policy configuration into a first database of the first branch organization, stores a corresponding first notification message into the first database, and notifies a first authentication server of the first branch organization to load the updated first policy configuration from the first database;
the first database sends a first configuration policy acquisition notification to a second database of a second branch office, so that the second database locally synchronizes an updated first configuration policy and a first notification message from the first database, wherein after the second database acquires the updated first configuration policy and the first notification message, the second database sends the first notification message to a second authentication server of the second branch office, so that the second authentication server loads the updated first configuration policy from the second database based on the first notification message.
2. The method of claim 1, wherein the step of storing a corresponding first notification message in the first database comprises:
carrying out serialization processing on the first notification message;
and storing the first notification message after the serialization processing into the first database.
3. The method of claim 1, wherein the method further comprises:
when receiving a second configuration policy acquisition notification sent by another database, the first database acquires the updated second configuration policy and a second notification message from the other database, and sends the second notification message to the first authentication server through the first configuration server, so that the first authentication server acquires the updated second configuration policy from the first database based on the second notification message.
4. The method of claim 3, wherein the second notification message stored in the other database is a serialized message;
the step of obtaining the updated second configuration policy and the second notification message from the other database includes:
acquiring the updated second configuration strategy from the other databases, and acquiring second communication messages from the other databases after the updated second configuration strategy is determined to be acquired;
the step of sending a second notification message to a first authentication server by the first configuration server comprises:
the first configuration server judges whether the first database has unprocessed second notification messages or not based on a preset period;
and if the unprocessed second notification message exists, acquiring the second notification message, performing deserialization processing on the second notification message, and sending the deserialized second notification message to the first authentication server.
5. The method of claim 4,
and after determining that the first authentication server acquires the updated second configuration policy from the local, the first database marks the second notification message as a processed state.
6. A data communication apparatus applied to any branch office, wherein the branch office includes at least a configuration server, an authentication server and a database, the apparatus comprising:
the storage unit is used for storing the updated first policy configuration into a first database of the first branch organization, storing a corresponding first notification message into the first database, and notifying a first authentication server of the first branch organization to load the updated first policy configuration from the first database when the updating operation of the first policy configuration is detected;
a sending unit, configured to send a first configuration policy acquisition notification to a second database of a second branch office, so that the second database locally synchronizes an updated first configuration policy and a first notification message from the first database, where after acquiring the updated first configuration policy and the updated first notification message, the second database sends the first notification message to a second authentication server of the second branch office, so that the second authentication server loads the updated first configuration policy from the second database based on the first notification message.
7. The apparatus according to claim 6, wherein, when storing the corresponding first notification message in the first database, the storage unit is specifically configured to:
carrying out serialization processing on the first notification message;
and storing the first notification message after the serialization processing into the first database.
8. The apparatus of claim 6, wherein the apparatus further comprises:
and the execution unit is used for acquiring the updated second configuration policy and the second notification message from other databases when receiving a second configuration policy acquisition notification sent by the other databases, and sending the second notification message to the first authentication server through the first configuration server, so that the first authentication server acquires the updated second configuration policy from the first database based on the second notification message.
9. The apparatus of claim 8, wherein the second notification message stored in the other database is a serialized message;
when the updated second configuration policy and the second notification message are obtained from the other database, the execution unit is specifically configured to:
acquiring the updated second configuration strategy from the other databases, and acquiring second communication messages from the other databases after the updated second configuration strategy is determined to be acquired;
when the second notification message is sent to the first authentication server through the first configuration server, the execution unit is specifically configured to:
the first configuration server judges whether the first database has unprocessed second notification messages or not based on a preset period;
and if the unprocessed second notification message exists, acquiring the second notification message, performing deserialization processing on the second notification message, and sending the deserialized second notification message to the first authentication server.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the marking unit marks the second notification message as a processed state after the first database determines that the first authentication server acquires the updated second configuration policy from the local.
CN202011591061.1A 2020-12-29 2020-12-29 Data communication method and device Pending CN112667651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011591061.1A CN112667651A (en) 2020-12-29 2020-12-29 Data communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011591061.1A CN112667651A (en) 2020-12-29 2020-12-29 Data communication method and device

Publications (1)

Publication Number Publication Date
CN112667651A true CN112667651A (en) 2021-04-16

Family

ID=75411790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011591061.1A Pending CN112667651A (en) 2020-12-29 2020-12-29 Data communication method and device

Country Status (1)

Country Link
CN (1) CN112667651A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242258A (en) * 2021-05-27 2021-08-10 安天科技集团股份有限公司 Host cluster threat detection method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8131678B1 (en) * 2009-11-30 2012-03-06 Groupcast, Llc Broadcast messaging system, apparatus and method for maintaining call list currency
CN105095364A (en) * 2015-06-26 2015-11-25 车智互联(北京)科技有限公司 Data synchronizing system and method
CN106888245A (en) * 2016-06-07 2017-06-23 阿里巴巴集团控股有限公司 A kind of data processing method, apparatus and system
WO2018004644A1 (en) * 2016-07-01 2018-01-04 Intel Corporation Adaptive synching
CN110597910A (en) * 2019-09-12 2019-12-20 聚好看科技股份有限公司 Remote data synchronization method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8131678B1 (en) * 2009-11-30 2012-03-06 Groupcast, Llc Broadcast messaging system, apparatus and method for maintaining call list currency
CN105095364A (en) * 2015-06-26 2015-11-25 车智互联(北京)科技有限公司 Data synchronizing system and method
CN106888245A (en) * 2016-06-07 2017-06-23 阿里巴巴集团控股有限公司 A kind of data processing method, apparatus and system
WO2018004644A1 (en) * 2016-07-01 2018-01-04 Intel Corporation Adaptive synching
CN110597910A (en) * 2019-09-12 2019-12-20 聚好看科技股份有限公司 Remote data synchronization method, device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王静逸: "分布式人工智能", 30 September 2020, 北京:机械工业出版社, pages: 62 - 68 *
赵军等: "《ASP.NET 4.0程序设计案例教程》", 31 August 2018, pages: 131 - 132 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242258A (en) * 2021-05-27 2021-08-10 安天科技集团股份有限公司 Host cluster threat detection method and device
CN113242258B (en) * 2021-05-27 2023-11-14 安天科技集团股份有限公司 Threat detection method and device for host cluster

Similar Documents

Publication Publication Date Title
EP3474516B1 (en) Data processing method and device
CN108449405A (en) Event-prompting method, device, computer equipment and storage medium
CN111290866B (en) Service processing method and device
CN105282328A (en) Method and device for task prompting during communication
CN105760240A (en) Distributed task processing method and device
CN113259139B (en) Group creating method and device
CN107179940B (en) Task execution method and device
CN110363663B (en) Block chain-based data batch processing method, device, equipment and storage medium
CN109783258B (en) Message processing method and device and server
CN107040576B (en) Information pushing method and device and communication system
CN105208060A (en) Service data synchronization method, service data synchronization device and service data synchronization system
CN110022260B (en) Cross-environment receipt message processing method and system
CN113572680A (en) Template message sending method, device, equipment and storage medium
US10474518B1 (en) Obtaining historical information in a device core dump
CN112667651A (en) Data communication method and device
CN112152872B (en) Network sub-health detection method and device
CN108241616B (en) Message pushing method and device
CN107291575B (en) Processing method and equipment for data center fault
CN109819000A (en) Methods, devices and systems and machine readable storage medium for PUSH message
CN116483477A (en) API calling method and device
CN108429636B (en) Method and device for positioning abnormal system and electronic equipment
US10452488B1 (en) Systems and methods for efficient archiving of related electronic messages
US20220276901A1 (en) Batch processing management
CN111930624B (en) Test link message data processing method and device
CN113282436A (en) Event processing method, device, equipment and storage medium

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