CN111224935A - Synchronization method and device for user login state - Google Patents

Synchronization method and device for user login state Download PDF

Info

Publication number
CN111224935A
CN111224935A CN201911057529.6A CN201911057529A CN111224935A CN 111224935 A CN111224935 A CN 111224935A CN 201911057529 A CN201911057529 A CN 201911057529A CN 111224935 A CN111224935 A CN 111224935A
Authority
CN
China
Prior art keywords
information
user
network management
management platform
change information
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
CN201911057529.6A
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 DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201911057529.6A priority Critical patent/CN111224935A/en
Publication of CN111224935A publication Critical patent/CN111224935A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The application provides a method and a device for synchronizing user login states, wherein the method comprises the following steps: receiving change information sent by an access device, wherein the change information is related to a user login state; determining user information corresponding to the change information; and sending confirmation information corresponding to the change information to the access device when the login state corresponding to the user information is synchronously updated based on the change information. By the technical scheme, the operation efficiency is improved, and the consistency of the maintained user state information between the network management platform and the access equipment is realized.

Description

Synchronization method and device for user login state
Technical Field
The present application relates to the field of network technologies, and in particular, to a synchronization method and apparatus for a user login status.
Background
With the development of computer network technology and the popularization of terminal devices, the number of network users increases sharply, and meanwhile, the security and controllability of a network environment are concerned by more and more organizations such as enterprises and public institutions.
In order to obtain the user access condition in the network environment, in the related art, an administrator is often required to perform access management on a current network accessor through an access device deployed in the network environment, such as checking or screening users logged in a current network, so as to achieve the purpose of managing the current network environment to face risks, or preventing the current network from being subjected to illegal scanning, network resource abuse, and the like.
However, due to the increasingly complicated network environment, in the actual application process, multiple access devices are often deployed in the same network, and accordingly, an administrator needs to log in each access device to perform management operation repeatedly, which not only consumes labor resources, but also has a tedious process and low operation efficiency.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for synchronizing a user login status, so as to solve the problems of complicated process and low operation efficiency in the related art, achieve the effect of timely obtaining a user access condition in a network environment, and reduce labor cost.
In order to achieve the above purpose, the present application provides the following technical solutions:
according to a first aspect of the present application, a method for synchronizing a user login status is provided, which is applied to a network management platform, and the method includes:
receiving change information sent by an access device, wherein the change information is related to a user login state;
determining user information corresponding to the change information;
and sending confirmation information corresponding to the change information to the admission equipment under the condition that the login state corresponding to the user information is synchronously updated based on the change information.
According to a second aspect of the present application, a method for synchronizing user login states is provided, which is applied to an admission device, and the method includes:
sending change information about the user login state to a network management platform so that the network management platform carries out synchronous updating based on the change information;
and under the condition that the confirmation information sent by the network management platform is determined not to be received, the change information is sent to the network management platform again.
According to a third aspect of the present application, a synchronization apparatus for a user login status is provided, which is applied to a network management platform, and the apparatus includes:
a receiving unit, which receives the change information sent by the access device, wherein the change information is related to the user login state;
a specifying unit that specifies user information corresponding to the change information;
and a first transmitting unit configured to transmit acknowledgement information corresponding to the change information to the access device when the synchronous update of the login state corresponding to the user information based on the change information is completed.
According to a fourth aspect of the present application, a synchronization apparatus for user login status is provided, which is applied to an admission device, and the apparatus includes:
the first sending unit is used for sending the change information about the user login state to the network management platform so that the network management platform can perform synchronous updating based on the change information;
and the second sending unit is used for sending the change information to the network management platform again under the condition that the confirmation information sent by the network management platform is determined not to be received.
According to a fifth aspect of the present application, there is provided an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute instructions to implement the method of any of the first aspects.
According to a sixth aspect of the present application, a computer-readable storage medium is presented, having stored thereon computer instructions, which, when executed by a processor, implement the steps of the method of any one of the first aspects.
According to a seventh aspect of the present application, there is provided an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute instructions to implement the method of any of the second aspects.
According to an eighth aspect of the present application, a computer-readable storage medium is presented, having stored thereon computer instructions, which, when executed by a processor, carry out the steps of the method of any one of the second aspects.
According to the technical scheme, the access devices send the change information related to the user login state to the network management platform, so that the network management platform uniformly maintains the change information related to the user login state and acquired by the access devices, and a manager can uniformly perform maintenance work such as inquiry, screening and the like on the change information acquired by each access device through the network management platform without performing repeated operation on each access device, so that the management efficiency of the accessed user information is improved. In addition, a confirmation mechanism is established between the access equipment and the network management platform, and under the condition that confirmation information sent by the opposite terminal is not received, the local terminal equipment resends the information so as to ensure the consistency of the network management platform and the access equipment for the maintained user state information.
Drawings
FIG. 1 is a diagram illustrating an application scenario of a synchronization method for user login status according to an exemplary embodiment of the present application;
FIG. 2 is a flowchart of a method for synchronizing login status of a user according to an exemplary embodiment of the present application;
FIG. 3 is a flow chart of another method for synchronizing user login status provided in accordance with an exemplary embodiment of the present application;
FIG. 4 is an interaction diagram illustrating a method for synchronizing online information of a user according to an exemplary embodiment of the present application;
FIG. 5 is an interaction diagram illustrating a method for synchronizing user offline information according to an exemplary embodiment of the present application;
fig. 6 is an interaction diagram illustrating a method for synchronizing user state information in an abnormal restart condition of an admission device according to an exemplary embodiment of the present application;
fig. 7 is an interaction diagram illustrating a method for synchronizing user status information in case of abnormal restart of a network management platform according to an exemplary embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device on the network management platform side according to an exemplary embodiment of the present application;
fig. 9 is a block diagram of a device for synchronizing a user login status on a network management platform side according to an exemplary embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device on an admission device side according to an exemplary embodiment of the present application;
fig. 11 is a block diagram of a synchronization apparatus for user login status of an admission device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein 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 appended 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 refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such 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. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a diagram of an application scenario of a synchronization method for user login status in an exemplary embodiment of the present application, as shown in fig. 1, the application scenario may include an admission device 101, a network management platform 102 and a user terminal 103, where communication of information between the admission device and the network management platform, between the network management platform and the user terminal, and between the user terminal and the admission device may be implemented based on a network, and the network may include wired or wireless telecommunication devices, for example, the network may include a local area network ("LAN"), a wide area network ("WAN"), an intranet, the internet, a mobile phone network, a Virtual Private Network (VPN), a cellular mobile communication network, or any combination thereof.
In the actual application process, the Network environment may be divided into a plurality of different Virtual Local Area Networks (VLANs), and then the user terminals accessing the same VLAN are managed by the same admission device, or other Network division methods may be adopted, and corresponding admission devices are deployed in the divided Network areas, so that a complex Network architecture is managed by a plurality of admission devices together.
For example, as shown in fig. 1, if the network is divided into n virtual local area networks VLAN1 and VLAN2 … … VLAN n, each VLAN may be configured with corresponding admission device 1 and admission device 2 … …, respectively, so that the user devices accessed in each VLAN are managed by the corresponding admission devices, such as admission device 1 managing user terminal 1 to user terminal n, admission device 2 managing user terminal m to user terminal x, and admission device 3 managing user terminal y to user terminal z.
To elaborate on specific embodiments of the present application, the following examples are provided:
fig. 2 is a flowchart of a method for synchronizing a user login status according to an exemplary embodiment of the present application, and as shown in fig. 2, the method, applied to a network management platform, may include the following steps:
step 201, receiving change information sent by an admission device, wherein the change information is related to a user login state.
In one embodiment, the transmitted variation information includes at least one of the following: and the user online information passing through the access equipment, the user offline information passing through the access equipment and the abnormal restarting information of the access equipment.
In an embodiment, the change information may be analyzed to obtain user information included in the change information, and the user obtained through analysis is determined as the user information corresponding to the change information; or, the user registry corresponding to the access device is determined, and then the user information in the user registry is determined based on the user identification information contained in the change information, so that the information amount contained in the change information is reduced, and the generation, transmission and analysis efficiency of the change information is improved.
Step 202, determining the user information corresponding to the change information.
Step 203, in case of completing the synchronous updating of the login status corresponding to the user information based on the change information, sending confirmation information corresponding to the change information to the admission apparatus.
In an embodiment, when the network management platform completes the abnormal restart, the abnormal restart information may be sent to the admission device to obtain the information of the user login state for synchronous update from the admission device, thereby ensuring the synchronization and consistency of the user state information between the network management platform and the admission device after the abnormal restart.
Further, under the condition that the network management platform does not receive the confirmation information sent by the access equipment, the abnormal restarting information is sent again, and the process can be executed repeatedly for a plurality of times; and if the time length of the times of repeatedly executing the process reaches a first preset time length, marking the abnormal restarting information, wherein the marking is eliminated when the network management platform receives the confirmation information.
Further, after a second preset time, the network management platform may determine that, for the abnormal restart information still in the mark processing state, the confirmation information corresponding to the abnormal restart information sent by the access device is not received, and the network management platform may generate an alarm information based on the abnormal restart information to prompt the administrator to perform processing.
Through the embodiment, the access equipment sends the change information related to the user login state to the network management platform, so that the network management platform uniformly maintains the change information related to the user login state and acquired by the access equipment, and a manager can uniformly perform maintenance work such as inquiry, screening and the like on the change information acquired by each access equipment through the network management platform without performing repeated operation on each access equipment, thereby improving the management efficiency of the accessed user information.
In addition, if the network management platform completes the synchronous update of the login state corresponding to the user information based on the change information, the network management platform sends the confirmation information corresponding to the change information to the access equipment, so that the access equipment receives the response information corresponding to the sent change information, determines that the network management platform has received the change information and completes the update based on the change information, and ensures the consistency of the network management platform and the access equipment for the maintained user state information.
Fig. 3 is a flowchart of another method for synchronizing user login statuses according to an exemplary embodiment of the present application, and as shown in fig. 3, the method applied to an admission apparatus may include the following steps:
step 301, sending change information about the user login state to the network management platform, so that the network management platform performs synchronous update based on the change information.
In one embodiment, the variation information may include at least one of: and the user online information passing through the access equipment, the user offline information passing through the access equipment and the abnormal restarting information of the access equipment.
Step 302, re-sending the change information to the network management platform under the condition that the confirmation information sent by the network management platform is determined not to be received.
In an embodiment, if it is determined that the acknowledgement information sent by the network management platform has not been received after the third preset duration, the admission device may perform a marking process on the change information.
Further, after the fourth preset duration, for the change information still in the mark processing state, the admission equipment may determine that the acknowledgement information corresponding to the change information sent by the network management platform is not received.
Further, the admission apparatus may perform a marking process on the change information, such as adding the change information to the transmission failure list, or setting a marking information for the change information; the marking process for the change information can be cancelled when the access device receives the confirmation information sent by the network management platform.
In another embodiment, after receiving the abnormal restart information sent by the network management platform, the admission device may send a confirmation message to the network management platform in response to the abnormal restart information, and send the information of the user login state to the network management platform, so that the network management platform performs synchronous update based on the information of the user login state, thereby ensuring that the user login state information stored in the network management platform after the abnormal restart is completed keeps consistent with the records of the user login state in each admission device connected thereto.
Through the embodiment, the access device can repeatedly send the change information of the confirmation information which is not sent by the network management platform after sending the change information related to the user login state to the network management platform until receiving the confirmation information which is sent by the network management platform aiming at the change information.
For convenience of understanding, the synchronization process of the user login state is described in detail with reference to fig. 4 to 7, where fig. 4 to 7 correspond to four cases that the user login state needs to be synchronized, that is, the admission device receives a trigger event of a user going online, the admission device receives a trigger event of a user going offline, the admission device restarts abnormally, and the network management platform restarts abnormally, and the following describes the synchronization process of the user login state between the admission device and the network management platform in the four cases.
Fig. 4 is an interaction diagram illustrating a method for synchronizing online information of a user according to an exemplary embodiment of the present application, where as shown in fig. 4, the method may include:
step 401, the admission device sends the user online information to the network management platform.
In an embodiment, the admission device may perform access control on a received user online triggering event, and generate online user information for sending to the network management platform after the user online triggering event passes the access control.
In another embodiment, the admission device may periodically traverse the access-controlled user online triggering event, after a period of traversal is finished, determine a newly determined access-controlled user online event in the period, further generate user online information corresponding to all newly determined access-controlled user online events in the period, and send the generated user online information to the network management platform.
For example, in a traversal period, the admission device determines that the received online trigger event a of the user a, the received online trigger event B of the user B, the received online trigger event C of the user C, and the received online trigger event D of the user D pass access control detection, which is different from the above-described embodiment that the user online information corresponding to the online trigger event a is generated immediately after the online trigger event a of the user a passes access control detection, in this embodiment, after a traversal period is ended, the network management device generates the online user information x by combining the determined online trigger event a, the determined online trigger event B, the determined online trigger event C, and the determined online trigger event D in the period, so that the network management device can determine all newly accessed users in the traversal period, that is, the user a, the user B, the user C, and the user D, and then the user login state information maintained by the network management platform is uniformly and synchronously updated at one time, and the user online information does not need to be repeatedly generated for a plurality of online trigger events, so that the operation process of the equipment is simplified, and the information synchronization efficiency of the user login state is improved.
Under the influence of emergencies such as network transmission abnormity, abnormal connection link and the like, in the practical application process, the network management platform can not be ensured to timely and accurately receive user online information sent by each access device, and under the condition that the network management platform can accurately receive the user online information sent by each access device, the network management platform can maintain an online user list maintained by the network management platform according to the received online user information, and the specific step process can refer to the following interaction process I:
step 402a, the network management platform completes synchronous update according to the received user online information.
The network management platform can maintain the user login state information on each access device connected with the network management platform. In an embodiment, the network management platform may establish a list and record user information accessed through each access device in the list, so as to implement the network management platform to synchronously update the user login state of a new user accessed through each access device.
In another embodiment, the maintained user login state information may be stored in segments based on the identification information corresponding to the access device, that is, a mapping relationship, such as a hash mapping relationship, between the identification information of the access device and a storage address of the user login state information is established, and correspondingly, the network management platform stores the user login state information related to the same access device according to the storage address subjected to hash mapping based on the identification information of the access device, or the network management platform may establish an association relationship between the identification information of the access device and the storage address of the user login state information by using the identification information of the access device as a main key and using the user login state accessed through the access device as a value based on a preconfigured key value pair.
The network management platform can preferentially determine the identifier of the access equipment corresponding to the user online information after receiving the user online information sent by the access equipment, and further determine the storage area of the user login state of the received new access user based on the identifier of the access equipment, so that the new online user login state contained in the online user information from the same access equipment is stored in the storage area corresponding to the same identifier information. The network management platform can newly add the user information corresponding to the received online user information in the storage area corresponding to the identifier of the access device, so that the network management platform can synchronize the user login state of the newly accessed user.
Step 403a, the network management platform returns confirmation information to the admission device.
After the network management platform completes the synchronous update, the network management platform sends confirmation information corresponding to the user online information to the access equipment, so that the access equipment receiving the confirmation information determines that the network management platform receives the sent user online information, and completes the update operation of the user login state according to the received user online information.
On the contrary, if the connection between the network management platform and the access device is affected by the abnormal condition and cannot be normally transmitted, the network management platform cannot normally receive the user online information sent by the access device, or the network management platform receives the user online information but cannot normally transmit the confirmation information to the access device, for this, the access device can mark the user online information which is not received by the network management platform within the preset time length and resend the user online information which is still in the mark processing state after another preset time length, and the specific step process can refer to the following interaction process two:
step 402b, the admission equipment marks the sent user online information under the condition that the admission equipment determines that the confirmation information sent by the network management platform is not received after one of the preset time lengths.
The access device may record the time for sending the user online information after sending the user online information, or set a timing corresponding to the user online information, to determine whether the confirmation information corresponding to the sent user online information is received after a preset time period.
In an embodiment, the preset time duration may be a uniform time interval pre-configured by an administrator and applicable to any user online information, or the admission equipment selects a time duration corresponding to a time period in which the time for sending the user online information is located, such as the sending time 11 of the user online information: 30(24 hours) was at 9: 00-14:00, then the corresponding admission device may transmit time slot 9: 00-14: and setting the pre-configured time length corresponding to 00 as the preset time length corresponding to the on-line information of the user.
In another embodiment, the admission device may generate a preset time length corresponding to the user online information in real time according to the sending frequency condition of the user online information, specifically, the preset time length
Figure BDA0002256897730000101
N is a preset value preconfigured by an administrator, the administrator can make an adjustment of expansion or reduction according to a complex situation of an actual network architecture, f is a frequency count of user online information sent by the access device in unit time, and the unit time can be the latest 1 hour or the latest 4 hours.
The marking processing performed by the access device is used for indicating that the user online information does not receive the corresponding confirmation message sent by the network management platform. Specifically, the admission device may add the user online information that has not received the confirmation message to the transmission failure list, or set a flag to the user online information that has not received the confirmation message in a file that stores the transmitted user online information, such as a device behavior log of the admission device, or add an identifier, so as to set the flag information to the user online information that has not received the confirmation message to indicate that the user online information has not received the corresponding confirmation message.
Correspondingly, after the admission device receives the confirmation information returned by the network management platform, the marking cancellation processing can be performed on the user online information corresponding to the confirmation information, such as removing the user online information corresponding to the received confirmation information in a transmission failure list, or removing the identifier corresponding to the user online information or resetting the mark.
Step 403b, after a preset time period two, determining whether the user online information is still in the mark processing state, if so, entering step 404 b.
After the access device sets the marking information, it may determine whether the online user information is still in the marking state after a preset time length, where the preset time length for determining whether the online user information is still in the marking state may be equal to the preset time length for determining whether the marking is performed in step 402 b.
The admission device may re-determine the preset time length for determining whether the current judgment action is still in the marking process, and in the specific determination process, the admission device may determine a time period in which the current judgment action is generated, and then determine the preset time length for judging whether the current judgment action is still in the marking process according to the pre-configured time length corresponding to the time period, or may pre-configure the preset time length for judging whether the current judgment action is still in the marking process by an administrator, so that the admission device determines the preset time length for judging whether the current judgment action is still in the marking process according to the pre-configured time length.
Step 404b, the admission device sends the user online information still in the mark processing state to the network management platform again.
For the user online information which is still in the mark processing state after the preset time length is two, the access equipment can resend the user online information.
After the admission equipment sends the online user information still in the mark processing state to the network management platform again, the subsequent operation can be performed according to the condition that whether the network management platform completes synchronous updating and sends the confirmation information, and the specific process of the subsequent operation can be divided into the following two conditions:
under the condition that a network management platform receives user online information sent by access equipment and completes synchronous updating of online users in the network management platform based on the user online information, the network management platform can generate corresponding confirmation information so that the access equipment can determine the user online information corresponding to the confirmation information according to the received confirmation information, and an interaction process between the network management platform and the access equipment can specifically involve the following steps:
step 405b1, the network management platform returns confirmation information to the access device under the condition of completing synchronous update according to the received user online information.
In step 406b1, the admission apparatus that receives the acknowledgement cancels the marking process of the user online information corresponding to the acknowledgement.
After the admission device receives the confirmation information returned by the network management platform, the user online information corresponding to the confirmation information can be unmarked, such as removing the user online information corresponding to the received confirmation information from the transmission failure list, or removing the identifier corresponding to the user online information or resetting the identifier.
When a link fault occurs or network connection is abnormal or the network management platform fails to update based on the user online information, the access device cannot receive the confirmation information returned by the network management platform, and then the access device can send alarm information to an administrator under the condition that the confirmation information corresponding to the user online information cannot be received after a certain time, and the specific steps and processes are as follows:
step 405b2, sending an alarm message if the confirmation message corresponding to the user online information is not received after three preset durations.
In an embodiment, the alarm information may be directly sent to the administrator through a preconfigured contact manner, such as preconfigured mailbox information or contact telephone of the administrator, so that the administrator can timely know the abnormal condition when the access device determines that the confirmation information corresponding to the online user information is not received after a preset time period.
Specifically, the alarm information sent to the administrator may be pre-configured fixed information to reflect the failed access device to the administrator; or generating alarm information in real time according to the keywords in the abnormal condition log, such as a character string capable of reflecting the type of the abnormal condition, so that an administrator of the received alarm information can not only know the access equipment with the fault, but also know the abnormal condition in time.
In another embodiment, the alarm information may be sent to the administrator in a form of a pop-up window, and an abnormal situation related to that the confirmation information is not received is shown in the pop-up window, so as to improve the efficiency of the administrator in troubleshooting the abnormal situation, the user online information that the confirmation information cannot be received may be further explicitly received in the pop-up window, so that in an emergency situation, the administrator may remotely and directly process the response to the abnormal situation according to the obtained user online information, such as access of the user online information or sending the confirmation information to the access device by a simulation network management platform.
Fig. 5 is an interaction diagram illustrating a synchronization method of offline information of a user according to an exemplary embodiment of the present application, and as shown in fig. 5, the method may include:
step 501, the access device sends user offline information to the network management platform.
In an embodiment, the admission device may perform access control on the received trigger event of the user offline, and generate offline user information for sending to the network management platform after the trigger event of the user offline passes the access control.
In another embodiment, the admission device may periodically traverse the trigger event of the user offline through access control, determine the newly determined user offline event through access control in a period after the traversal of the period is finished, further generate user offline information corresponding to all the newly determined user offline events through access control in the period, and send the generated user offline information to the network management platform.
For example, in a traversal cycle, the admission device determines that the received offline triggering event a of the user a, the received offline triggering event B of the user B, the received offline triggering event C of the user C, and the received offline triggering event D of the user D pass through access control detection, which is different from the above-described embodiment that the user offline information corresponding to the offline triggering event a is generated immediately after the offline triggering event a of the user a passes through access control detection, in this embodiment, after a traversal cycle is completed, the network management device generates the offline user information x by combining the offline triggering event a, the offline triggering event B, the offline triggering event C, and the offline triggering event D determined in the cycle, so that the network management device can determine all newly accessed users in the traversal cycle, that is, the user a, the user B, the user C, and the user D, after receiving the offline user information x, and then the user login state information maintained by the network management platform is uniformly and synchronously updated at one time, and the offline user information does not need to be repeatedly generated for a plurality of offline triggering events, so that the operation process of the equipment is simplified, and the information synchronization efficiency of the user login state is improved.
Under the influence of emergencies such as network transmission abnormity, abnormal connection link and the like, in the practical application process, the network management platform can not be ensured to timely and accurately receive user offline information sent by each access device, and under the condition that the network management platform can accurately receive the user offline information sent by each access device, the network management platform can maintain an online user list maintained by the network management platform according to the received offline user information, namely, users receiving the offline user information are eliminated from the online user list, and the specific step process can refer to the following interaction process one:
step 502a, the network management platform completes synchronous update according to the received user offline information.
The network management platform can maintain the user login state information on each access device connected with the network management platform. In an embodiment, the network management platform may establish a list and record user information accessed through each access device in the list, so as to implement the network management platform to synchronously update the user login state of a new user accessed through each access device.
In another embodiment, the maintained user login state information may be stored in segments based on the identification information corresponding to the access device, that is, a mapping relationship, such as a hash mapping relationship, between the identification information of the access device and a storage address of the user login state information is established, and correspondingly, the network management platform stores the user login state information related to the same access device according to the storage address subjected to hash mapping based on the identification information of the access device, or the network management platform may establish an association relationship between the identification information of the access device and the storage address of the user login state information by using the identification information of the access device as a main key and using the user login state accessed through the access device as a value based on a preconfigured key value pair.
The network management platform can preferentially determine the identifier of the access device corresponding to the user offline information after receiving the user offline information sent by the access device, and further determine the storage area of the user login state of the received new access user based on the identifier of the access device, so that the user login state of the offline user contained in the offline user information from the same access device is stored in the storage area corresponding to the same identifier information. The network management platform can newly add the user information corresponding to the received offline user information in the storage area corresponding to the identifier of the access device so as to realize that the network management platform synchronizes the user login state of the newly accessed user.
Step 503a, the network management platform returns the confirmation information to the access device.
After the network management platform completes synchronous updating, the network management platform sends confirmation information corresponding to the user offline information to the access equipment, so that the access equipment receiving the confirmation information determines that the network management platform receives the sent user offline information, and completes updating operation of the user login state according to the received user offline information.
On the contrary, if the connection between the network management platform and the access device is affected by the abnormal condition and cannot be normally transmitted, the network management platform cannot normally receive the user offline information sent by the access device, or the network management platform receives the user offline information but cannot normally transmit the confirmation information to the access device, for this, the access device can mark the user offline information which is not received by the network management platform within the preset time length and resend the user offline information which is still in the mark processing state after another preset time length, and the specific step process can refer to the following interaction process two:
step 502b, the admission equipment marks the sent user offline information under the condition that the admission equipment determines that the confirmation information sent by the network management platform is not received after one of the preset durations.
The access device may record the time for sending the user offline information after sending the user offline information, or set a timing corresponding to the user offline information, so as to determine whether to receive the confirmation information corresponding to the sent user offline information after a preset duration.
In an embodiment, the preset duration may be a uniform time interval pre-configured by the administrator and applicable to any user offline information, or the admission device selects a duration corresponding to a time period according to the time period in which the time for sending the user offline information is located, such as at the sending time 11 of the user offline information: 30(24 hours) was at 9: 00-14:00, then the corresponding admission device may transmit time slot 9: 00-14: and setting the preconfigured time length corresponding to 00 as the preset time length corresponding to the offline information of the user.
In another embodiment, the admission device may generate a preset time length corresponding to the offline information of the user in real time according to the sending frequency condition of the offline information of the user, and specifically, the preset time length
Figure BDA0002256897730000151
N is a preset value preconfigured by an administrator, the administrator can make an adjustment of expansion or reduction according to a complex situation of an actual network architecture, f is a frequency count of user offline information sent by the access device in unit time, and the unit time can be the latest 1 hour or the latest 4 hours.
The marking processing performed by the access device is used for indicating that the user offline information does not receive the corresponding confirmation message sent by the network management platform. Specifically, the admission device may add the offline information of the user that did not receive the confirmation message to the transmission failure list, or set a flag to the offline information of the user that did not receive the confirmation message in a file, such as a device behavior log of the admission device, that stores the transmitted offline information of the user, or add an identifier, so as to set the flag information to the offline information of the user that did not receive the confirmation message to indicate that the offline information of the user did not receive the corresponding confirmation message.
Correspondingly, after the admission device receives the confirmation information returned by the network management platform, the user offline information corresponding to the confirmation information can be unmarked, such as removing the user offline information corresponding to the received confirmation information in a transmission failure list, or removing the identification or mark reset and the like corresponding to the user offline information.
Step 503b, after the preset time length two, it is determined whether the user offline information is still in the marking processing state, and if so, the step 404b is entered.
After the access device sets the flag information, it may determine whether the offline user information is still in the flag processing state after a preset time duration, where the preset time duration for determining whether the offline user information is still in the flag processing state may be equal to the preset time duration for determining whether the flag processing is performed in step 402 b.
The admission device may re-determine the preset time length for determining whether the current judgment action is still in the marking process, and in the specific determination process, the admission device may determine a time period in which the current judgment action is generated, and then determine the preset time length for judging whether the current judgment action is still in the marking process according to the pre-configured time length corresponding to the time period, or may pre-configure the preset time length for judging whether the current judgment action is still in the marking process by an administrator, so that the admission device determines the preset time length for judging whether the current judgment action is still in the marking process according to the pre-configured time length.
Step 504b, the admission device sends the user offline information still in the marking processing state to the network management platform again.
For the user offline information still in the marked processing state after the preset time length two, the access device can resend the user offline information.
After the admission device sends the offline user information still in the mark processing state to the network management platform again, the admission device can perform subsequent operation according to the condition whether the network management platform completes synchronous updating and sends confirmation information, and the specific process of the subsequent operation can be divided into the following two conditions:
under the condition that the network management platform receives user offline information sent by the access equipment and completes synchronous updating of offline users in the network management platform based on the user offline information, the network management platform can generate corresponding confirmation information, so that the access equipment can determine the user offline information corresponding to the confirmation information according to the received confirmation information, and an interaction process between the network management platform and the access equipment can specifically involve the following steps:
step 505b1, the network management platform returns confirmation information to the access device under the condition of completing synchronous update according to the received user offline information.
In step 506b1, the admission device that received the confirmation information cancels the marking of the offline information of the user corresponding to the confirmation information.
After the admission device receives the confirmation information returned by the network management platform, the user offline information corresponding to the confirmation information may be unmarked, such as removing the user offline information corresponding to the received confirmation information in a transmission failure list, or removing the identifier or mark reset corresponding to the user offline information.
When a link failure occurs or network connection is abnormal or the network management platform fails to update based on the user offline information, the admission equipment cannot receive confirmation information returned by the network management platform, and then the admission equipment can send alarm information to an administrator under the condition that the admission equipment still cannot receive the confirmation information corresponding to the user offline information after a certain time, wherein the specific steps and processes are as follows:
step 505b2, sending an alarm message if the confirmation message corresponding to the user offline message is not received after the preset time period is three.
In an embodiment, the alarm information may be directly sent to the administrator through a preconfigured contact manner, such as preconfigured mailbox information or contact telephone of the administrator, so that the administrator can know the abnormal condition in time when the access device determines that the confirmation information corresponding to the offline user information is not received after the preset time period elapses.
Specifically, the alarm information sent to the administrator may be pre-configured fixed information to reflect the failed access device to the administrator; or generating alarm information in real time according to the keywords in the abnormal condition log, such as a character string capable of reflecting the type of the abnormal condition, so that an administrator of the received alarm information can not only know the access equipment with the fault, but also know the abnormal condition in time.
In another embodiment, the alarm information may be sent to the administrator in a form of a popup window, and an abnormal situation related to the non-reception of the confirmation information is shown in the popup window, and in order to improve the efficiency of the administrator for the abnormal situation, the user offline information that fails to receive the confirmation information may be further specified in the popup window, so that in an emergency, the administrator may remotely and directly handle the reply abnormal situation according to the obtained user offline information, such as the access of the user offline information or the simulation of the network management platform sending the confirmation information to the access device.
Fig. 6 is an interaction diagram illustrating a method for synchronizing user state information in an abnormal restart condition of an admission device according to an exemplary embodiment of the present application, where as shown in fig. 6, the method may include:
step 601, the access device sends abnormal restart information to the network management platform after the abnormal restart is completed.
In an embodiment, if the access device is restarted due to an abnormal accident, the access device may automatically generate abnormal restart information including identification information of the access device itself after the abnormal restart is completed, and send the generated abnormal restart information to the network management platform.
Under the influence of emergencies such as network transmission abnormity, abnormal connection link and the like, in the practical application process, the network management platform cannot be ensured to be capable of timely and accurately receiving abnormal restart information sent by each access device, on the contrary, if the network management platform can accurately receive the abnormal restart information sent by each access device, based on the received abnormal restart information, the network management platform can remove the user login state which is maintained in the network management platform and corresponds to the access device sending the abnormal restart information, and the specific step process can refer to the following interaction process one:
step 602a, the network management platform determines the abnormal restart information sent by the access device, and the network management platform removes the user login state corresponding to the abnormal restart information.
The network management platform can maintain the user login state information on each access device connected with the network management platform. In an embodiment, the network management platform may establish a list and record user information accessed through each access device in the list, so as to implement the network management platform to synchronously update the user login state of a new user accessed through each access device.
In another embodiment, the maintained user login state information may be stored in segments based on the identification information corresponding to the access device, that is, a mapping relationship, such as a hash mapping relationship, between the identification information of the access device and a storage address of the user login state information is established, and correspondingly, the network management platform stores the user login state information related to the same access device according to the storage address subjected to hash mapping based on the identification information of the access device, or the network management platform may establish an association relationship between the identification information of the access device and the storage address of the user login state information by using the identification information of the access device as a main key and using the user login state accessed through the access device as a value based on a preconfigured key value pair.
After receiving the abnormal restart information sent by the access equipment, the network management platform can preferentially determine the identifier of the access equipment corresponding to the abnormal restart information, further determine a storage area of a user login state corresponding to the identifier of the access equipment based on the identifier of the access equipment, further remove all the user login states in the storage area, so as to remove the user login state related to the user accessed by the access equipment corresponding to the abnormal restart information, and keep the network management platform and the access equipment which just completes the abnormal restart synchronously updated about the user login state which is not in the online state.
Step 603a, the network management platform sends confirmation information to the access device.
After the network management platform completes the synchronous update, the network management platform sends confirmation information corresponding to the online information of the user to the access equipment, so that the access equipment receiving the confirmation information determines that the network management platform completes the synchronous update of the user state information.
However, under the condition that the network connection or the link connection between the network management platform and the access device cannot be normally transmitted due to an abnormal condition, the network management platform cannot normally receive the abnormal restart information sent by the access device, or the network management platform receives the abnormal restart information but cannot normally transmit the abnormal restart information to the access device, and accordingly, the access device can mark the abnormal restart information of the network management platform which is not received within the preset time length and resend the abnormal restart information of another network management platform which is not received within the preset time length, and the specific step process can refer to the following interaction process two:
step 602b, the admission device marks the transmitted abnormal restart information when determining that the confirmation information transmitted by the network management platform is not received after one of the preset durations.
The admission device may record the time for sending the abnormal restart information after sending the abnormal restart information, or set a timing corresponding to the abnormal restart information to determine whether the confirmation information corresponding to the sent abnormal restart information is received after a preset time period.
In an embodiment, the preset duration may be a fixed duration preconfigured by the administrator; in another embodiment, the preset duration may be a time period of the restart time of the abnormal condition, and the preconfigured duration corresponding to the time period is called to determine whether to perform the marking processing on the sent abnormal restart information.
The marking processing performed by the access device is used for indicating that the abnormal restart information does not receive the corresponding confirmation message sent by the network management platform. Specifically, the admission device may add the abnormal restart information for which the confirmation message is not received to the transmission failure list, or set a flag to the abnormal restart information for which the confirmation message is not received in a file, such as a device behavior log of the admission device, storing the transmitted abnormal restart information, or add an identifier to indicate that the corresponding confirmation message is not received by setting the flag to the abnormal restart information for which the confirmation message is not received.
Correspondingly, after the admission device receives the confirmation information returned by the network management platform, the access device may perform cancellation marking processing on the abnormal restart information corresponding to the confirmation information, such as removing the abnormal restart information corresponding to the received confirmation information in the transmission failure list, or removing the identifier corresponding to the abnormal restart information or marking resetting.
Step 603b, after a preset time period two, determining whether the abnormal restart information is still in the flag processing state, and if so, entering step 604 b.
After the access device sets the flag information, it may determine whether the abnormal state information is still in the flag processing state after a preset time length elapses, where the preset time length for determining whether the abnormal state information is still in the flag processing state may be equal to the preset time length for determining whether the flag processing is performed in step 602 b.
The admission device may re-determine the preset time length for determining whether the current judgment action is still in the marking process, and in the specific determination process, the admission device may determine a time period in which the current judgment action is generated, and then determine the preset time length for judging whether the current judgment action is still in the marking process according to the pre-configured time length corresponding to the time period, or may pre-configure the preset time length for judging whether the current judgment action is still in the marking process by an administrator, so that the admission device determines the preset time length for judging whether the current judgment action is still in the marking process according to the pre-configured time length.
In step 604b, the admission device retransmits the abnormal restart information still in the flag processing state.
And for the abnormal restarting information which is still in the mark processing state after the preset duration two, the access equipment can resend the abnormal restarting information.
After the admission equipment sends the abnormal restart information still in the mark processing state to the network management platform again, the subsequent operation can be performed according to the condition that whether the network management platform completes synchronous updating and sends the confirmation information, and the specific process of the subsequent operation can be divided into the following two conditions:
when the network management platform receives the abnormal restart information sent by the access device and completes the removal of the corresponding user login state information based on the abnormal restart information, the network management platform may generate corresponding confirmation information, so that the access device can determine the abnormal restart information corresponding to the confirmation information according to the received confirmation information, and an interaction process between the network management platform and the access device may specifically involve the following steps:
step 605b1, the network management platform sends confirmation information to the access device when the network management platform completes the removal of the user login state corresponding to the received abnormal restart information.
In step 606b1, the admission apparatus that received the acknowledgement cancels the marking of the abnormal restart information corresponding to the acknowledgement.
After the admission device receives the confirmation information returned by the network management platform, the access device may perform cancellation marking processing on the abnormal restart information corresponding to the confirmation information, such as removing the abnormal restart information corresponding to the received confirmation information in the transmission failure list, or removing the identifier corresponding to the abnormal restart information or marking reset.
When a link failure occurs or network connection is abnormal or the network management platform fails to update based on abnormal restart information, the admission equipment cannot receive confirmation information returned by the network management platform, and then the admission equipment can send alarm information to an administrator under the condition that the admission equipment still cannot receive the confirmation information corresponding to the abnormal restart information after a certain time, wherein the specific steps and processes are as follows:
step 605b2, the admission device sends an alarm message when it has not received the confirmation message corresponding to the abnormal restart message after a preset time period.
In an embodiment, the alarm information may be directly sent to the administrator through a preconfigured contact manner, such as preconfigured mailbox information or contact telephone of the administrator, so that the administrator can know the abnormal condition in time when the access device determines that the confirmation information corresponding to the abnormal restart information is not received after a preset time period.
Specifically, the alarm information sent to the administrator may be pre-configured fixed information to reflect the failed access device to the administrator; or generating alarm information in real time according to the keywords in the abnormal condition log, such as a character string capable of reflecting the type of the abnormal condition, so that an administrator of the received alarm information can not only know the access equipment with the fault, but also know the abnormal condition in time.
In another embodiment, the alarm information may be sent to the administrator in a form of a popup window, and an abnormal situation related to that the confirmation information is not received is shown in the popup window, and in order to improve the efficiency of the administrator for the abnormal situation, the abnormal restart information that the confirmation information cannot be received may be further explicitly received in the popup window, so that in an emergency, the administrator may remotely and directly process the reply abnormal situation according to the obtained user online information, such as access of the user online information or a simulation network management platform sending the confirmation information to the access device.
Fig. 7 is an interaction diagram illustrating a method for synchronizing user status information in an abnormal restart condition of a network management platform according to an exemplary embodiment of the present application, where as shown in fig. 7, the method may include:
step 701, the network management platform sends abnormal restart information to the access device after the abnormal restart is completed.
In an embodiment, if the network management platform is restarted due to an abnormal accident, the network management platform may automatically generate abnormal restart information containing identification information of the network management platform after the abnormal restart is completed, and send the generated abnormal restart information to the access device.
Under the influence of the emergencies such as abnormal network transmission, abnormal connection link and the like, the access device can not be ensured to accurately receive the abnormal restarting information sent by the network management platform in time in the practical application process, so that the interaction process I is adopted, after the network management device sends the abnormal restarting information, the access device receiving the abnormal restarting information returns confirmation information to indicate that the access device can normally receive the abnormal restarting information and respond.
Step 702a, after the admission device receives the abnormal restart information sent by the network management platform, the admission device sends confirmation information to the network management platform.
Step 703a, the admission device sends the user login state information to the network management platform.
The user login state information can comprise user information of the access equipment end in an online state, so that the network management platform updates the user information which is online through the access equipment according to the received user login state information; or the user login state information may include user information currently in an online state and user information that has been in an online state within a preset time recently, so that the user information in the online state within the preset time recently can be traced through the network management platform.
Step 704a, based on the received user login status information of the online user, the network management platform stores the user login status information.
The network management platform maintains the user login state information on each access device connected with the network management platform. In an embodiment, the network management platform may maintain user login state information on each access device connected thereto. In an embodiment, the network management platform may establish a list and record user information accessed through each access device in the list, so as to implement the network management platform to synchronously update the user login state of a new user accessed through each access device.
In another embodiment, the maintained user login state information may be stored in segments based on the identification information corresponding to the access device, that is, a mapping relationship, such as a hash mapping relationship, between the identification information of the access device and a storage address of the user login state information is established, and correspondingly, the network management platform stores the user login state information related to the same access device according to the storage address subjected to hash mapping based on the identification information of the access device, or the network management platform may establish an association relationship between the identification information of the access device and the storage address of the user login state information by using the identification information of the access device as a main key and using the user login state accessed through the access device as a value based on a preconfigured key value pair.
Step 702b, the network management platform marks the sent abnormal restart information when receiving the confirmation information sent by the access device for one of the preset durations.
The network management platform may record the time for sending the abnormal restart information after sending the abnormal restart information, or set a timing corresponding to the abnormal restart information, so as to determine whether to receive the confirmation information corresponding to the sent abnormal restart information after a preset time period.
In an embodiment, the preset duration may be a fixed duration preconfigured by the administrator; in another embodiment, the preset duration may be a time period of the restart time of the abnormal condition, and the preconfigured duration corresponding to the time period is called to determine whether to perform the marking processing on the sent abnormal restart information.
And the marking processing performed by the network management platform is used for indicating that the abnormal restarting information does not receive the corresponding confirmation message sent by the access equipment. Specifically, the network management platform may add the abnormal restart information that has not received the confirmation message to the transmission failure list, or set a flag to the abnormal restart information of the non-received confirmation message in a file that stores the transmitted abnormal restart information, such as a device behavior log of the network management platform, or add an identifier, so that the abnormal restart information that has not received the confirmation message sets the flag information to indicate that the abnormal restart information has not received the corresponding confirmation message.
Correspondingly, after the network management platform receives the confirmation information returned by the admission device, the abnormal restart information corresponding to the confirmation information may be unmarked, such as removing the abnormal restart information corresponding to the received confirmation information from the transmission failure list, or removing the identifier corresponding to the abnormal restart information or resetting the identifier.
In step 703b, after the preset duration two, the network management platform determines whether the abnormal restart information is still in the flag processing state, and if so, the process goes to step 704 b.
After the network management platform sets the flag information, it may determine whether the abnormal state information is still in the flag processing state after a preset time length elapses, where the preset time length for determining whether the abnormal state information is still in the flag processing state may be equal to the preset time length for determining whether the flag processing is performed in step 702 b.
The network management platform can re-determine whether the preset time length still in the marking processing is determined, in the specific determination process, the network management platform can determine the time period of the current judgment action, and then the time period is determined as the preset time length for judging whether the marking processing is still performed according to the pre-configured time length corresponding to the time period, or an administrator can pre-configure the preset time length for judging whether the marking processing is still performed, so that the network management platform determines the preset time length for judging whether the marking processing is still performed according to the pre-configured time length.
Step 704b, the network management platform resends the abnormal restart information still in the mark processing state.
And for the abnormal restarting information which is still in the mark processing state after the preset duration two, the network management platform can resend the abnormal restarting information.
After the network management platform sends the abnormal restart information still in the mark processing state to the access device again, the network management platform can perform subsequent operation according to the condition that whether the access device completes synchronous update and sends the confirmation information, and the specific process of the subsequent operation can be divided into the following two conditions:
when the access device receives the abnormal restart information sent by the network management platform and completes the removal of the corresponding user login state information based on the abnormal restart information, the access device may generate corresponding confirmation information, so that the network management platform can determine the abnormal restart information corresponding to the confirmation information according to the received confirmation information, and an interaction process between the network management platform and the access device may specifically involve the following steps:
step 705b1, the admission device sends the acknowledgement information to the network management platform.
Step 706b1, the network management platform that receives the confirmation message cancels the marking process of the abnormal restart message corresponding to the confirmation message.
After the network management platform receives the confirmation information returned by the admission device, the abnormal restart information corresponding to the confirmation information may be unmarked, such as removing the abnormal restart information corresponding to the received confirmation information from the transmission failure list, or removing the identifier corresponding to the abnormal restart information or resetting the identifier.
When a link failure occurs or network connection is abnormal or the network management platform fails to update based on abnormal restart information, the network management platform cannot receive confirmation information returned by the access device, and then the network management platform can send alarm information to an administrator under the condition that the network management platform still cannot receive the confirmation information corresponding to the abnormal restart information after a certain time, and the specific steps and processes are as follows:
step 705b2, the network management platform sends an alarm message when it has not received the confirmation message corresponding to the abnormal restart message after a preset time period.
In an embodiment, the alarm information may be directly sent to the administrator through a preconfigured contact manner, such as preconfigured mailbox information or contact phone of the administrator, so that the administrator can timely know the abnormal condition when the network management platform determines that the confirmation information corresponding to the abnormal restart information is not received after a preset time period.
Specifically, the alarm information sent to the administrator may be pre-configured fixed information to reflect the failed network management platform to the administrator; or generating alarm information in real time according to the keywords in the abnormal condition log, such as a character string capable of reflecting the type of the abnormal condition, so that an administrator of the received alarm information can not only know the network management platform with the fault, but also know the abnormal condition in time.
In another embodiment, the alarm information may be sent to the administrator in a form of a popup window, and an abnormal situation related to the non-reception of the confirmation information is shown in the popup window, and in order to improve the efficiency of the administrator for the abnormal situation, the abnormal restart information in which the confirmation information is not received may be further specified in the popup window.
Fig. 8 is a schematic structural diagram of an electronic device on a network management platform side according to an exemplary embodiment of the present application. Referring to fig. 8, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, but may also include hardware required for other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a synchronization device of the user login state on a logic level. Of course, besides the software implementation, the present application does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Referring to fig. 9, fig. 9 is a block diagram of a device for synchronizing a user login status on a network management platform according to an exemplary embodiment of the present application, and as shown in fig. 9, in a software implementation, the device for synchronizing a user login status may include:
a receiving unit 901, configured to receive change information sent by an access device, where the change information is related to a user login status;
a determining unit 902 that determines user information corresponding to the change information;
a first sending unit 903, configured to send acknowledgement information corresponding to the change information to the access device when the synchronous updating of the login status corresponding to the user information based on the change information is completed.
Optionally, the change information includes at least one of: and the user online information passing through the access equipment, the user offline information passing through the access equipment and the abnormal restarting information of the access equipment.
Optionally, the determining unit 902 is specifically configured to:
analyzing the change information to obtain user information contained in the change information; alternatively, the first and second electrodes may be,
determining a user registry corresponding to the access equipment; and determining the user information in the user registry based on the user identification information contained in the change information.
Optionally, the method further includes:
a second sending unit 904, configured to send abnormal restart information to an access device when the abnormal restart is completed, so as to obtain information of a user login state for synchronous update from the access device;
a third sending unit 905, configured to resend the abnormal restart information if it is determined that the acknowledgement information sent by the admission apparatus is not received.
Optionally, the process of determining that the acknowledgement information sent by the admission device is not received in the third sending unit 905 is specifically configured to:
if the confirmation information sent by the access equipment is determined not to be received after the first preset time length, the abnormal restarting information is marked, wherein the marking is eliminated when the network management platform receives the confirmation information;
and after the second preset time length, determining that the confirmation information which is sent by the access equipment and corresponds to the abnormal restarting information is not received for the abnormal restarting information which is still in the mark processing state.
Fig. 10 is a schematic block diagram of an electronic device on an admission device side according to an exemplary embodiment of the present application. Referring to fig. 10, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, but may also include hardware required for other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a synchronization device of the user login state on a logic level. Of course, besides the software implementation, the present application does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Referring to fig. 11, fig. 11 is a block diagram of a synchronization apparatus for user login status of an admission device according to an exemplary embodiment of the present application, and as shown in fig. 11, in a software implementation, the synchronization apparatus for user login status may include:
a first sending unit 1101, configured to send change information about a user login state to a network management platform, so that the network management platform performs synchronous update based on the change information;
the second sending unit 1102, under the condition that it is determined that the confirmation information sent by the network management platform is not received, sends the change information to the network management platform again.
Optionally, the change information includes at least one of the following: and the user online information passing through the access equipment, the user offline information passing through the access equipment and the abnormal restarting information of the access equipment.
Optionally, the method further includes:
a receiving unit 1103, configured to receive abnormal restart information sent by a network management platform;
a third sending unit 1104, sending confirmation information to the network management platform in response to the abnormal restart information;
a fourth sending unit 1105, sending information of the user login status to the network management platform, so that the network management platform performs synchronous update based on the information of the user login status.
Optionally, the process of determining that the confirmation information sent by the network management platform is not received in the second sending unit 1102 is specifically configured to:
if the confirmation information sent by the network management platform is not received after the third preset time length, marking the change information;
and after the fourth preset time length, determining that the change information still in the mark processing state does not receive the confirmation information which is sent by the network management platform and corresponds to the change information.
Optionally, the process of determining that the confirmation information sent by the network management platform is not received in the second sending unit 1102 further includes:
under the condition of receiving confirmation information sent by the network management platform, determining the change information corresponding to the confirmation information;
canceling the marking process for the variation information.
Optionally, in the second sending unit 1102, in the process of determining that the confirmation information sent by the network management platform is not received, the process of performing a marking process on the change information is specifically configured to:
adding the change information to a transmission failure list; alternatively, the first and second electrodes may be,
flag information is set for the variation information.
The device corresponds to the method, and more details are not repeated.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. In other instances, features described in connection with one embodiment may be implemented as discrete components or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
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 (17)

1. A synchronization method for user login status is characterized in that the method is applied to a network management platform and comprises the following steps:
receiving change information sent by an access device, wherein the change information is related to a user login state;
determining user information corresponding to the change information;
and sending confirmation information corresponding to the change information to the admission equipment under the condition that the login state corresponding to the user information is synchronously updated based on the change information.
2. The method of claim 1, wherein the change information comprises at least one of: and the user online information passing through the access equipment, the user offline information passing through the access equipment and the abnormal restarting information of the access equipment.
3. The method of claim 1, wherein the determining the user information corresponding to the change information comprises:
analyzing the change information to obtain user information contained in the change information; alternatively, the first and second electrodes may be,
determining a user registry corresponding to the access equipment; and determining the user information in the user registry based on the user identification information contained in the change information.
4. The method of claim 1, further comprising:
under the condition of finishing the abnormal restart, sending abnormal restart information to access equipment so as to acquire user login state information for synchronous update from the access equipment;
and if the confirmation information sent by the access equipment is determined not to be received, the abnormal restarting information is sent again.
5. The method as claimed in claim 4, wherein the determining that the acknowledgement sent by the admission device is not received comprises:
if the confirmation information sent by the access equipment is determined not to be received after the first preset time length, the abnormal restarting information is marked, wherein the marking is eliminated when the network management platform receives the confirmation information;
and after the second preset time length, determining that the confirmation information which is sent by the access equipment and corresponds to the abnormal restarting information is not received for the abnormal restarting information which is still in the mark processing state.
6. A method for synchronizing user login states is applied to an admission device, and comprises the following steps:
sending change information about the user login state to a network management platform so that the network management platform carries out synchronous updating based on the change information;
and under the condition that the confirmation information sent by the network management platform is determined not to be received, the change information is sent to the network management platform again.
7. The method of claim 6, wherein the determining that the acknowledgement sent by the network management platform is not received comprises:
if the confirmation information sent by the network management platform is not received after the third preset time length, marking the change information;
and after the fourth preset time length, determining that the change information still in the mark processing state does not receive the confirmation information which is sent by the network management platform and corresponds to the change information.
8. The method of claim 7, wherein said tagging the change information comprises:
adding the change information to a transmission failure list; alternatively, the first and second electrodes may be,
flag information is set for the variation information.
9. The method of claim 7, further comprising:
under the condition of receiving confirmation information sent by the network management platform, determining the change information corresponding to the confirmation information;
canceling the marking process for the variation information.
10. The method of claim 6, wherein the change information comprises at least one of: and the user online information passing through the access equipment, the user offline information passing through the access equipment and the abnormal restarting information of the access equipment.
11. The method of claim 6, further comprising:
receiving abnormal restarting information sent by a network management platform;
sending confirmation information to a network management platform so as to respond to the abnormal restarting information;
and sending the information of the user login state to a network management platform so that the network management platform carries out synchronous updating based on the information of the user login state.
12. A synchronization device for user login status is applied to a network management platform, and the device comprises:
a receiving unit, which receives the change information sent by the access device, wherein the change information is related to the user login state;
a specifying unit that specifies user information corresponding to the change information;
and a first transmitting unit configured to transmit acknowledgement information corresponding to the change information to the access device when the synchronous update of the login state corresponding to the user information based on the change information is completed.
13. A synchronization device for user login status, applied to an admission device, the device comprising:
the first sending unit is used for sending the change information about the user login state to the network management platform so that the network management platform can perform synchronous updating based on the change information;
and the second sending unit is used for sending the change information to the network management platform again under the condition that the confirmation information sent by the network management platform is determined not to be received.
14. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured with executable instructions to implement the method of any one of claims 1-5.
15. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method according to any one of claims 1-5.
16. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured with executable instructions to implement the method of any one of claims 6-11.
17. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, carry out the steps of the method according to any one of claims 6-11.
CN201911057529.6A 2019-11-01 2019-11-01 Synchronization method and device for user login state Pending CN111224935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911057529.6A CN111224935A (en) 2019-11-01 2019-11-01 Synchronization method and device for user login state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911057529.6A CN111224935A (en) 2019-11-01 2019-11-01 Synchronization method and device for user login state

Publications (1)

Publication Number Publication Date
CN111224935A true CN111224935A (en) 2020-06-02

Family

ID=70827551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911057529.6A Pending CN111224935A (en) 2019-11-01 2019-11-01 Synchronization method and device for user login state

Country Status (1)

Country Link
CN (1) CN111224935A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113256439A (en) * 2021-05-28 2021-08-13 北京默契破冰科技有限公司 User friend online relation real-time synchronization method and device under high-concurrency scene and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117876A (en) * 2013-01-24 2013-05-22 中兴通讯股份有限公司 User state information synchronizing method and device
US20140136638A1 (en) * 2012-11-12 2014-05-15 Tencent Technology (Shenzhen) Company Limited Method and apparatus for message synchronization in instant messaging applications
CN103873519A (en) * 2012-12-14 2014-06-18 北京金山云网络技术有限公司 Data synchronization method, client end, server, terminal and system
CN104202769A (en) * 2014-09-28 2014-12-10 中国联合网络通信集团有限公司 Method and terminal for realizing business data reporting
CN108924096A (en) * 2018-06-13 2018-11-30 杭州迪普科技股份有限公司 A kind of information synchronization method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140136638A1 (en) * 2012-11-12 2014-05-15 Tencent Technology (Shenzhen) Company Limited Method and apparatus for message synchronization in instant messaging applications
CN103873519A (en) * 2012-12-14 2014-06-18 北京金山云网络技术有限公司 Data synchronization method, client end, server, terminal and system
CN103117876A (en) * 2013-01-24 2013-05-22 中兴通讯股份有限公司 User state information synchronizing method and device
CN104202769A (en) * 2014-09-28 2014-12-10 中国联合网络通信集团有限公司 Method and terminal for realizing business data reporting
CN108924096A (en) * 2018-06-13 2018-11-30 杭州迪普科技股份有限公司 A kind of information synchronization method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113256439A (en) * 2021-05-28 2021-08-13 北京默契破冰科技有限公司 User friend online relation real-time synchronization method and device under high-concurrency scene and electronic equipment

Similar Documents

Publication Publication Date Title
CN108255641B (en) CDP disaster recovery method based on cloud platform
US9647891B2 (en) Managing network configurations
US8910129B1 (en) Scalable control system for test execution and monitoring utilizing multiple processors
US20170161059A1 (en) Management of multiple application programming interface versions for development environments
US20150326425A1 (en) Recording, analyzing, and restoring network states in software-defined networks
US10817267B2 (en) State machine representation of a development environment deployment process
CN106411629B (en) Method and equipment for monitoring state of CDN node
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
US10778517B2 (en) System and method for validating correctness of changes to network device configurations
CN107800783B (en) Method and device for remotely monitoring server
WO2019085074A1 (en) Website vulnerability scanning method and apparatus, computer device and storage medium
CN110673941A (en) Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium
US10120707B2 (en) Deployment of development environments
US8937946B1 (en) System and method for identifying tunnel information without frequently polling all routers for all tunnel information
CN111935167A (en) Illegal external connection detection method, device, equipment and storage medium for industrial control
CN112600703B (en) Network equipment remote access fault positioning method and device
CN111224935A (en) Synchronization method and device for user login state
CN111342986A (en) Distributed node management method and device, distributed system and storage medium
CN112714166B (en) Multi-cluster management method and device for distributed storage system
CN114363334A (en) Network configuration method, device and equipment for cloud system and cloud desktop virtual machine
CN111176904B (en) Method, system, equipment and medium for data backup under private cloud architecture
CN113055203B (en) Method and device for recovering exception of SDN control plane
CN117118814A (en) Cloud resource switching method, device, equipment and medium based on multi-cloud management platform
CN109150587B (en) Maintenance method and device
US11425172B2 (en) Application security for service provider networks

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200602