Control method and control system
By mapping the session information to the target memory and entering processing mode after the access controller is restarted, the connection interruption problem caused by the AP's inability to detect AC abnormalities in time is solved, and the stability and interaction efficiency of wireless connections are improved.
Patent Information
- Application Number
- CN202411046377.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-24
AI Technical Summary
In a wireless connection, when the access controller (AC) restarts due to a failure, the access point (AP) may not be able to detect the AC abnormality in time, causing the AP to restart, resulting in connection interruption and interaction efficiency impacts.
By mapping the session information between the control device and the access device after restarting, and entering the first mode after restarting, confirming that the session information is normal after receiving the message, ensuring that the information is not lost, and updating the network if necessary Configure to avoid restarting the access device to maintain the connection.
It improves the interaction efficiency between AC and AP, avoids connection interruptions caused by restart, and ensures the consistency of network configuration and connection stability.
Smart Images

Figure CN119182649A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a control method and a control system. Background Art
[0002] After the access controller (AC) and the access point (AP) complete the wireless connection through protocol interaction, the AP will periodically send detection messages to the AC to detect whether the AC is normal. If the AC restarts due to a fault, the AP will also restart after detecting the AC abnormality.
[0003] However, in many cases, the time for the AC to restart after a fault is short, which may be less than the time interval for the AP to send detection messages to the AC. At this time, the AP cannot feel the AC abnormality at all, but due to the AC restart, the AP still needs to restart, which not only takes a lot of time, but also causes the connection between the AC and the AP to be interrupted, affecting the interaction efficiency between the AC and the AP. Summary of the invention
[0004] The present disclosure provides a control method and a control system to at least solve the above technical problems existing in the prior art.
[0005] According to the first aspect of the present disclosure, a control method is provided, comprising: if the control device is restarted, mapping the session information between the control device and the access device in the target storage area to the target memory of the control device, and the information in the target storage area will not be lost after the control device is restarted; the control device enters a first mode; in the first mode, if the control module receives a message from the access device, then based on the identification information of the access device in the message, determining the session information corresponding to the access device in the target memory as normal session information.
[0006] In one possible implementation, the control device enters the first mode, including: receiving forwarding prompt information, the forwarding prompt information is used to prompt the control device to process all messages from the access device; and entering the first mode based on the forwarding prompt information.
[0007] In one possible implementation, a control method further includes: if the network configuration information in the session information is different from the network configuration information currently set by the control device for the access device, sending the network configuration information currently set by the control device for the access device to the access device.
[0008] In one possible implementation, a control method also includes: if the control device receives a message from the access device within the target time period after restarting, based on the identification information of the access device in the message, determining the session information corresponding to the access device in the target memory as normal session information.
[0009] In one possible implementation, a control method further includes: if the control device does not receive a message from the access device within a target time period after restart, deleting session information corresponding to the access device from the target memory.
[0010] In one possible implementation, a control method further includes: the control device enters a second mode, in which the control device processes control messages from the access device and forwards data messages from the access device to a network side connected to the control device.
[0011] In one possible implementation manner, the control device entering the second mode includes: deleting the forwarding prompt information in the control device, so that the control device is restored from the first mode to the second mode.
[0012] According to a second aspect of the present disclosure, a control system is provided, comprising: an access device, the access device being connected to a control device, the access device being used to send a message to the control device; a control device, the control device being used to map session information between the control device and the access device in a target storage area to a target memory of the control device if the control device is restarted, and the information in the target storage area will not be lost after the control device is restarted; the control device being further used to enter a first mode; the control device being further used to determine, in the first mode, if the control module receives a message from the access device, based on identification information of the access device in the message, the session information corresponding to the access device in the target memory as normal session information.
[0013] In one possible implementation mode, the control device includes a data module and a control module, the control module is used to control the control device to enter a first mode, in which the data module forwards all messages from the access device to the control module; the control module is also used to process all messages from the access device.
[0014] In one possible implementation, the control module is also used to enter a second mode, in which the data module forwards control messages from the access device to the control module, and forwards data messages from the access device to the network side connected to the control device; the control module is also used to process control messages from the access device.
[0015] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0019] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0022] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0023] Figure 1 A schematic diagram showing a control method according to an embodiment of the present disclosure Figure 1 ;
[0024] Figure 2 A schematic diagram showing a control method according to an embodiment of the present disclosure Figure 2 ;
[0025] Figure 3 A schematic diagram showing a control method according to an embodiment of the present disclosure Figure 3 ;
[0026] Figure 4 A schematic diagram showing a control method according to an embodiment of the present disclosure Figure 4 ;
[0027] Figure 5 The structure of a control system according to an embodiment of the present disclosure is shown in FIG. Figure 1 ;
[0028] Figure 6The structure of a control system according to an embodiment of the present disclosure is shown in FIG. Figure 2 ;
[0029] Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0030] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0031] Figure 1 A schematic diagram showing a control method according to an embodiment of the present disclosure Figure 1 ,like Figure 1 As shown, a control method includes:
[0032] Step S101: if the control device is restarted, the session information between the control device and the access device in the target storage area is mapped to the target memory of the control device.
[0033] In this embodiment, the control device is AC, the access device is AP, the target storage area is a storage area for storing system files, the information in the target storage area will not be lost after the control device is restarted, the target memory is a memory in the control device for storing session information between the control device and the access device, the information in the target memory will be lost after the control device is restarted, and the session information is control and status information exchanged between the control device and the access device. Before the control device is connected to the access device, the present disclosure will establish a mapping relationship between the target memory and the target storage area, so that the session information between the control device and the access device will be synchronized to the target storage area while being stored in the target memory. After the control device is connected to the access device, if the control device is restarted, the session information between the control device and the access device stored in the target memory will be lost. In this case, the access device is not restarted and re-accessed to generate new session information, but the session information between the control device and the access device in the target storage area is remapped to the target memory of the control device. In one example, a mapping relationship can be established between the target memory and the target storage area by means of a memory mapped file (MMAP, Memory Mapped Files).
[0034] Step S102, controlling the device to enter the first mode.
[0035] In this embodiment, after mapping the session information between the control device and the access device in the target storage area to the target memory of the control device, the control device needs to enter the first mode, in which the control device processes all messages from the access device. The control device generally includes a data module and a control module. When the control device and the access device are normally connected, the data module forwards the data message from the access device to the network side connected to the control device, and the network side processes the data message. The control module is used to process the control message from the access device to achieve the management of the access device. However, after the control device is restarted, the control device cannot determine whether the status of the access device is normal. At this time, the data message from the access device cannot be forwarded to the network side to avoid the network side processing abnormal data messages and generating erroneous processing results, which wastes processing resources. Instead, both the data message and the control message from the access device need to be sent to the control module for processing.
[0036] Step S103, in the first mode, if the control module receives a message from the access device, based on the identification information of the access device in the message, the session information corresponding to the access device in the target memory is determined as normal session information.
[0037] In this embodiment, after the control device enters the first mode, if the control module receives a message from the access device, whether it is a data message or a control message, it proves that the state of the access device is normal, so based on the identification information of the access device in the message, the session information of the access device in the target memory is determined as normal session information. Since the control module may be connected to multiple access devices, the message sent by the access device will carry its own identification information so that the control device can determine the access device corresponding to the received message. After the control device enters the first mode, the control device needs to determine the session information of the access device corresponding to the message based on the identification information of the access device in the message, and determine the session information as normal session information, so as to subsequently manage the access device normally based on the normal session information.
[0038] In the present disclosure, before the control device is connected to the access device, a mapping relationship is established between the target memory and the target storage area. If the control device is restarted, the session information between the control device and the access device in the target storage area is mapped to the target memory of the control device, and then the control device enters the first mode. In the first mode, if the control module receives a message from the access device, the session information corresponding to the access device in the target memory is determined as normal session information based on the identification information of the access device in the message. Since the information in the target storage area will not be lost after the control device is restarted, and the session information mapped from the target storage area to the target memory is normalized subsequently, the access device does not need to be restarted and re-accessed to generate new session information after the control device is restarted, and the connection between the control device and the access device will not be interrupted, thereby improving the interaction efficiency between the control device and the access device.
[0039] Figure 2 A schematic diagram showing a control method according to an embodiment of the present disclosure Figure 2 ,like Figure 2 As shown, a control method includes:
[0040] Step S201: if the control device is restarted, the session information between the control device and the access device in the target storage area is mapped to the target memory of the control device.
[0041] The specific implementation details of step S201 are similar to those of step S101 and will not be repeated here.
[0042] Step S202: receiving forwarding prompt information, where the forwarding prompt information is used to prompt the control device to process all messages from the access device and enter the first mode based on the forwarding prompt information.
[0043] In this embodiment, after mapping the session information between the control device and the access device in the target storage area to the target memory of the control device, forwarding prompt information can be received, and the forwarding prompt information is used to prompt the control device to process all messages from the access device and enter the first mode based on the forwarding prompt information. In one example, the control module of the control device can generate the forwarding prompt information and send the forwarding prompt information to the data module of the control device. The forwarding prompt information can prompt the data module to forward both the data message and the control message from the access device to the control module for processing.
[0044] Step S203, in the first mode, if the control module receives a message from the access device, based on the identification information of the access device in the message, the session information corresponding to the access device in the target memory is determined as normal session information.
[0045] The specific implementation details of step S203 are similar to those of step S103 and will not be repeated here.
[0046] In another embodiment, a control method further includes:
[0047] If the network configuration information in the session information is different from the network configuration information currently set by the control device for the access device, the network configuration information currently set by the control device for the access device is sent to the access device.
[0048] In this embodiment, when the session information between the control device and the access device is generated, the network configuration information corresponding to the generation of the session information is recorded in the session information. If the control device is restarted, and the network configuration information in the session information of the target memory is different from the network configuration information configured for the access device after the control device is restarted, the network configuration information configured for the access device after the control device is restarted is sent to the access device, so that the access device reconfigures the network according to the received network configuration information. In one example, the configuration version of the current corresponding WLAN is recorded in the session information, and the version is increased by 1 each time the WLAN configuration is modified. After the control device is restarted, if the configuration version in the session information is different from the current configuration version of the control device, it proves that the control device has modified the configuration version during the restart process, but the WLAN configuration version of the access device has not been updated. At this time, the current configuration version of the control device is sent to the access device, so that the access device updates the WLAN configuration according to the configuration version sent by the control device, thereby ensuring the consistency of the network configuration of the control device and the access device.
[0049] Figure 3 A schematic diagram showing a control method according to an embodiment of the present disclosure Figure 3 ,like Figure 3 As shown, a control method includes:
[0050] Step S301: if the control device is restarted, the session information between the control device and the access device in the target storage area is mapped to the target memory of the control device.
[0051] The specific implementation details of step S301 are similar to those of step S101 and are not repeated here.
[0052] Step S302: Control the device to enter the first mode.
[0053] The specific implementation details of steps S301-S302 are similar to those of steps S101-S102 and will not be repeated here.
[0054] If the control device receives a message from the access device within the target period after the restart, step S303 is executed to determine the session information corresponding to the access device in the target memory as normal session information based on the identification information of the access device in the message.
[0055] In this embodiment, the session information in the target memory after the control device is restarted is the session information generated before the restart. The access device corresponding to the session information is not necessarily in a normal state. Therefore, it is necessary to set a target time period. If the control device receives a message from the access device within the target time period after the restart, proving that the access device corresponding to the message is in a normal state, then based on the identification information of the access device in the message, the session information corresponding to the access device in the target memory is determined to be normal session information, so that the access device is subsequently managed normally according to the normal session information.
[0056] If the control device does not receive a message from the access device within the target time period after the restart, step S304 is executed to delete the session information corresponding to the access device from the target memory.
[0057] In this embodiment, if the control device does not receive a message from the access device within the target time period after restarting, it proves that the access device corresponding to the message may be in an abnormal state. Therefore, the session information corresponding to the access device is deleted from the target memory to release the target memory and alleviate the storage pressure of the target memory.
[0058] Figure 4 A schematic diagram showing a control method according to an embodiment of the present disclosure Figure 4 ,like Figure 4 As shown, a control method includes:
[0059] Step S401: if the control device is restarted, the session information between the control device and the access device in the target storage area is mapped to the target memory of the control device.
[0060] Step S402: Control the device to enter the first mode.
[0061] Step S403, in the first mode, if the control module receives a message from the access device, based on the identification information of the access device in the message, the session information corresponding to the access device in the target memory is determined as normal session information.
[0062] The specific implementation details of steps S401-S403 are similar to those of steps S101-S103 and are not repeated here.
[0063] Step S404: The control device enters the second mode. In the second mode, the control device processes the control message from the access device and forwards the data message from the access device to the network side connected to the control device.
[0064] In this embodiment, in the first mode, the control device determines that the session information corresponding to the access device in the target memory is normal session information, that is, the access device is in a normal state, and will enter the second mode. In the second mode, the control device processes the control message from the access device, and forwards the data message from the access device to the network side connected to the control device, that is, restores the connection state between the control device and the access device to the normal state before the control device is restarted, thereby ensuring the normal operation between the control device and the access device and improving the interaction efficiency between the control device and the access device.
[0065] In one possible implementation mode, in the second mode, the data module in the control device forwards the data message from the access device to the network side connected to the control device, and the network side processes the data message, and the data module forwards the control message from the access device to the control module in the control device, and the control module processes the control message.
[0066] In one possible implementation, the control device enters the second mode, including: deleting the forwarding prompt information in the control device, so that the control device is restored from the first mode to the second mode. Since the forwarding prompt information is used to prompt the control device to process all messages from the access device, that is, to prompt the control device to switch from the normal second mode to the first mode, after deleting the forwarding prompt information, the control device will be restored from the first mode to the second mode in a normal state.
[0067] Figure 5 The structure of a control system according to an embodiment of the present disclosure is shown in FIG. Figure 1 , Figure 6 The structure of a control system according to an embodiment of the present disclosure is shown in FIG. Figure 2 ,like Figure 5 and Figure 6 As shown, the control system includes:
[0068] Access device 10, access device 10 is connected to control device 20, access device 10 is used to send messages to control device 20; control device 20, control device 20 is used to map session information between control device 20 and access device 10 in a target storage area to a target memory of control device 20 if control device 20 is restarted, and information in the target storage area will not be lost after the control device 20 is restarted; control device 20, is also used to enter a first mode; control device 20, is also used in the first mode, if the control module 21 receives a message from access device 10, then based on the identification information of access device 10 in the message, the session information corresponding to access device 10 in the target memory is determined as normal session information.
[0069] In one embodiment, the control device 20 includes a data module 22 and a control module 21. The control module 21 is used to control the control device 20 to enter a first mode. In the first mode, the data module 22 forwards all messages from the access device 10 to the control module 21. Figure 6 As shown, in the first mode, the data module 22 forwards both the control message and the data message from the access device 10 to the control module 21 ; the control module 21 is also used to process all messages from the access device 10 .
[0070] In one embodiment, the control module 21 is further configured to enter a second mode, in which the data module 22 forwards control messages from the access device 10 to the control module 21, and forwards data messages from the access device 10 to the network side 30 connected to the control device 20. Figure 5 As shown; the control module 21 is also used to process the control message from the access device 10.
[0071] In one possible implementation, the control device 20 is further used to: receive forwarding prompt information, where the forwarding prompt information is used to prompt the control device 20 to process all messages from the access device 10; and enter the first mode based on the forwarding prompt information.
[0072] In one embodiment, the control device 20 is further used to: if the network configuration information in the session information is different from the network configuration information currently set by the control device 20 for the access device 10, send the network configuration information currently set by the control device 20 for the access device 10 to the access device 10.
[0073] In one embodiment, the control device 20 is further used to: if the control device 20 receives a message from the access device 10 within the target time period after restart, based on the identification information of the access device 10 in the message, determine the session information corresponding to the access device 10 in the target memory as normal session information.
[0074] In one possible implementation, the control device 20 is further configured to: if the control device 20 does not receive a message from the access device 10 within the target time period after the restart, delete the session information corresponding to the access device 10 from the target memory.
[0075] In one embodiment, the control device 20 is further used to enter a second mode, in which the control device 20 processes control messages from the access device 10 and forwards data messages from the access device 10 to a network side connected to the control device 20 .
[0076] In one possible implementation manner, the control device 20 is further configured to: delete the forwarding prompt information in the control device 20 , so that the control device 20 is restored from the first mode to the second mode.
[0077] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0078] Figure 7 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0079] like Figure 7 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0080] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0081] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as a control method. For example, in some embodiments, a control method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of a control method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform a control method in any other appropriate manner (e.g., by means of firmware).
[0082] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0083] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0084] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0085] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0086] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0087] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0088] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0089] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0090] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A control method, the method comprising: If the control device is restarted, mapping the session information between the control device and the access device in the target storage area to the target memory of the control device, and the information in the target storage area will not be lost after the control device is restarted; The control device enters a first mode; In the first mode, if the control module receives a message from the access device, the session information corresponding to the access device in the target memory is determined as normal session information based on identification information of the access device in the message.
2. The method according to claim 1, wherein the controlling device enters the first mode, comprising: receiving forwarding prompt information, where the forwarding prompt information is used to prompt the control device to process all messages from the access device; Entering the first mode based on the forwarding prompt information.
3. The method according to claim 1, further comprising: If the network configuration information in the session information is different from the network configuration information currently set by the control device for the access device, the network configuration information currently set by the control device for the access device is sent to the access device.
4. The method according to claim 1, further comprising: If the control device receives a message from the access device within the target time period after restarting, the session information corresponding to the access device in the target memory is determined as normal session information based on the identification information of the access device in the message.
5. The method according to claim 1, further comprising: If the control device does not receive a message from the access device within the target time period after the restart, the session information corresponding to the access device is deleted from the target memory.
6. The method according to claim 1, further comprising: The control device enters a second mode, in which the control device processes control messages from the access device and forwards data messages from the access device to a network side connected to the control device.
7. The method according to claim 6, wherein the controlling device enters the second mode, comprising: The forwarding prompt information in the control device is deleted, so that the control device is restored from the first mode to the second mode.
8. A control system, the system comprising: An access device, the access device is connected to the control device, and the access device is used to send a message to the control device; A control device, wherein if the control device is restarted, the control device is used to map the session information between the control device and the access device in the target storage area to the target memory of the control device, and the information in the target storage area will not be lost after the control device is restarted; The control device is further used to enter the first mode; The control device is also used to, in the first mode, if the control module receives a message from the access device, determine the session information corresponding to the access device in the target memory as normal session information based on the identification information of the access device in the message.
9. The system according to claim 8, wherein the control device comprises a data module and a control module, wherein the control module is used to control the control device to enter a first mode, and in the first mode, the data module forwards all messages from the access device to the control module; The control module is also used to process all messages from the access device.
10. The system according to claim 9, wherein the control module is further configured to enter a second mode, in which the data module forwards control messages from the access device to the control module, and forwards data messages from the access device to a network side connected to the control device; The control module is further used to process the control message from the access device.
