Terminal migration acceleration method and device
By storing the IP and MAC addresses of the terminal in the switching device and actively learning ARP table entry, the problem of excessive interruption time during terminal migration is solved, and faster migration speed and higher business reliability are achieved.
Patent Information
- Application Number
- CN202210016592.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-07
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2042-01-07
AI Technical Summary
There is a problem of too long flow interruption time during terminal migration, especially in frequent migration scenarios, and the prior art is difficult to effectively shorten the flow interruption time.
In the switching device, by storing the IP and MAC addresses of the terminal as global user table entries, and sending ARP probe messages when the terminal is accessed for the first time to learn the ARP table entries, avoiding dependence on access port information and reducing hardware chip tables The addition and deletion operation of items is to actively initiate ARP table entry learning to quickly establish forwarded table entry.
It reduces time-consuming during terminal migration, improves migration speed and business reliability, and reduces the time of flow outage.
Smart Images

Figure CN114531414B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data communication, and in particular to a method and device for accelerating terminal migration. Background Art
[0002] Media Access Control (MAC) address authentication is used in terminal access scenarios. Only after the terminal passes the MAC address authentication can it access the network. After the authentication is passed, the user table containing the terminal's Internet Protocol (IP) address, MAC and access port PORT information is set in the hardware chip of the switching device. Only terminal users who meet the requirements of these user table information are allowed to access the network, and the user's traffic can be released in the switching device, otherwise the traffic will not be passed.
[0003] After the terminal MAC authentication is passed, the interface of the switching device to which the terminal is connected may change or the terminal may be reconnected to a new switching device. Such changes in the interface of the terminal to which the terminal is connected to the switching device or the connection to a new switching device are collectively referred to as terminal migration. Especially in the scenario of the downlink wireless WIFI network, terminal migration occurs frequently as the user continues to move.
[0004] During the migration period, the terminal will be disconnected. Users hope that the disconnection time is as short as possible to meet the need for continuous flow in frequent migration scenarios. Therefore, how to maximize the migration speed and reduce the disconnection time has become an urgent problem to be solved. Summary of the invention
[0005] The embodiment of the present invention provides a terminal migration acceleration method and device, which are used to solve the problem in the prior art that the terminal migration time is too long, resulting in a too long interruption time.
[0006] According to an embodiment of the present invention, a method for accelerating terminal migration is provided, and the method is applied to a switching device, comprising:
[0007] When the terminal passes the media access control MAC authentication when accessing the switching device for the first time, the Internet protocol address IP and the media access control address MAC of the terminal are stored in the chip as global user entries; and
[0008] The MAC authentication module of the switching device sends an Address Resolution Protocol ARP detection message to the terminal to learn the ARP table entry.
[0009] Optionally, the MAC authentication of the terminal includes:
[0010] After the chip learns the MAC address of the terminal, it sends a fast MAC address notification to the MAC authentication module of the switching device;
[0011] The MAC authentication module initiates MAC authentication.
[0012] Optionally, the method further includes:
[0013] When the access port PORT of the terminal changes, the MAC violation event of the chip is triggered to send a migration notification to the MAC authentication module of the switching device;
[0014] After receiving the migration notification, the MAC authentication module sends an Address Resolution Protocol (ARP) detection message to the terminal to learn the ARP table entry.
[0015] Optionally, the MAC authentication module sends an ARP detection message to the terminal to learn an ARP table entry, including:
[0016] The MAC authentication module sends an ARP detection message to the terminal;
[0017] The receiving terminal learns the ARP table entry according to the ARP response message returned by the ARP detection message.
[0018] The embodiment of the present invention also provides a terminal migration acceleration device, which is applied to a switching device and includes: a global user entry generation module and a MAC authentication module; wherein:
[0019] The global user entry generation module is used to store the Internet Protocol address IP and the Media Access Control address MAC of the terminal as global user entries in the chip after the MAC authentication is passed when the terminal first accesses the switching device;
[0020] The MAC authentication module is used to send an Address Resolution Protocol ARP detection message to the terminal to learn ARP table entries after the MAC authentication is passed when the terminal accesses the switching device for the first time.
[0021] Optionally, the apparatus further comprises: a first sending module, configured to send a fast MAC address notification to a MAC authentication module of the switching device after the chip learns the MAC address of the terminal;
[0022] The MAC authentication module is further configured to initiate MAC authentication after receiving the fast MAC address notification.
[0023] Optionally, the device further comprises: a trigger module, configured to trigger a MAC violation event of the chip to send a migration notification to a MAC authentication module of the switching device when an access port PORT of the terminal changes;
[0024] The MAC authentication module is further configured to send an Address Resolution Protocol (ARP) detection message to the terminal after receiving the migration notification so as to learn the ARP table entry.
[0025] Optionally, the MAC authentication module is used to send an ARP probe message to the terminal to learn ARP table entries, specifically to: send an ARP probe message to the terminal; receive an ARP response message returned by the terminal according to the ARP probe message to learn ARP table entries.
[0026] According to an embodiment of the present invention, there is also provided an electronic device, the electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0027] Memory, used to store computer programs;
[0028] The processor is used to implement the above method steps when executing the program stored in the memory.
[0029] According to an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method steps when executed by a processor.
[0030] The beneficial effects of the present invention are as follows:
[0031] The terminal migration acceleration method and device provided by the embodiment of the present invention store the Internet Protocol address IP and the Media Access Control address MAC of the terminal as global user table items in the chip after the MAC authentication is passed when the terminal first accesses the switching device; and the MAC authentication module of the switching device sends an Address Resolution Protocol ARP detection message to the terminal to learn the ARP table items. After the terminal accesses the network, the correct forwarding of the message does not depend on the access port PORT information. Therefore, when the terminal first accesses the switching device, the switching device in the embodiment of the present invention only stores the IP and MAC as the information of the global user table item in the chip. When forwarding the message later, it only needs to match the global user table item. In this way, when the terminal migrates within the same switching device, since the global user table item does not store the PORT information, the addition and deletion operations of the hardware chip table item are avoided, and the migration time is reduced; and when the switching device determines that a new terminal has accessed, after the terminal MAC address authentication is passed, the switching device actively sends an ARP detection message to the terminal to learn the ARP table item. Compared with passively waiting for the terminal to initiate ARP learning, the ARP table item learning can be completed more quickly, which speeds up the migration speed, reduces the interruption time, and improves the reliability of the service. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 Flow chart of a method for accelerating terminal migration according to an embodiment of the present invention;
[0033] Figure 2 It is a schematic diagram of the structure of a terminal migration acceleration device in an embodiment of the present invention;
[0034] Figure 3 This is a schematic diagram of the structure of an electronic device shown in this application. DETAILED DESCRIPTION
[0035] Generally speaking, device migration includes intra-device migration and inter-device migration. The specific process is as follows:
[0036] 1. Migration within the device: The switching device to which the terminal is connected remains unchanged, only the interface of the switching device changes. At this time, the switching device first kicks the original online user offline and deletes the user table entry in the chip, then goes back online to add a new user table entry, and updates the MAC table and Address Resolution Protocol (ARP) table.
[0037] 2. Migration between devices: When the switching device to which the terminal is connected changes, the new switching device first learns the MAC address, then adds a new user entry after the MAC authentication is passed, and updates the new user entry to the MAC table and ARP table.
[0038] Regardless of intra-device migration or inter-device migration, the normal forwarding of messages with MAC authentication enabled depends not only on the user table entries of the hardware chip, but also on the MAC address table and the Address Resolution Protocol (ARP) table. The time it takes to establish these table entries will also affect the disconnection time after migration. Therefore, in order to solve the problem of disconnection time caused by the long terminal migration process in the prior art, it can be improved by speeding up the establishment of various forwarding table entries after migration. Therefore, an embodiment of the present invention provides a terminal migration acceleration method, which is applied to a switching device. By setting the user table entry to a global user table entry, and when the switching device determines that a new terminal has joined, it actively initiates the learning of the ARP table entry instead of passively waiting for the terminal to initiate, so as to realize the rapid establishment of the forwarding table entry. The specific process is as follows Figure 1 As shown, the execution steps are as follows:
[0039] Step 101, when the MAC authentication of the terminal when accessing the switching device for the first time is passed, the Internet Protocol address IP and the Media Access Control address MAC of the terminal are stored in the chip as global user table entries;
[0040] Specifically, the switching device does not rely on PORT information when performing user forwarding. Therefore, in the embodiment of the present invention, the switching device only stores the IP and MAC of the terminal as the information of the global user table item in the chip. When forwarding the message subsequently, it only needs to match the IP and MAC in the global user table item to complete the message forwarding. Therefore, in the embodiment of the present invention, the global user table item does not need to set the PORT information. In this way, when the terminal migrates within the same switching device, since the global user table item does not store the PORT information, that is, the global user table item at this time has not changed, the addition and deletion operations of the hardware chip table items are avoided, and the migration time is reduced.
[0041] Step 102: The MAC authentication module of the switching device sends an Address Resolution Protocol (ARP) detection message to the terminal to learn the ARP table entry.
[0042] After the terminal MAC address authentication is passed, the MAC authentication module actively sends an ARP detection message to the terminal to learn the ARP table entries. Compared with passively waiting for the terminal to initiate ARP learning, the MAC address authentication module has higher stability and processing performance, and can complete the ARP table entry learning more quickly.
[0043] It should be understood that there is no strict execution order for step 101 and step 102, and they may be performed in parallel.
[0044] The MAC authentication of the terminal includes:
[0045] After the chip learns the MAC address of the terminal, it sends a fast MAC address notification to the MAC authentication module of the switching device;
[0046] The MAC authentication module initiates MAC authentication; here, after receiving the fast MAC address notification, the MAC authentication module can directly obtain the MAC address from the fast MAC address notification and perform MAC authentication. Compared with the chip notifying the MAC address to the MAC address management module, such as the bridege module, and then the MAC address management module notifies the MAC authentication module, the processing flow of other intermediate modules is reduced, and the device migration can be completed more quickly.
[0047] Optionally, the method further includes:
[0048] When the access port PORT of the terminal changes, the MAC violation event of the chip is triggered to send a migration notification to the MAC authentication module of the switching device; here, the MAC violation event refers to an event triggered by a change in the terminal PORT. When the MAC violation event is triggered, a migration notification will be sent to inform the MAC authentication module that the ARP table entry needs to be re-learned.
[0049] After receiving the migration notification, the MAC authentication module sends an Address Resolution Protocol (ARP) detection message to the terminal to learn the ARP table entry.
[0050] Optionally, the MAC authentication module sends an ARP detection message to the terminal to learn an ARP table entry, including:
[0051] The MAC authentication module sends an ARP detection message to the terminal;
[0052] The receiving terminal learns the ARP table entry according to the ARP response message returned by the ARP detection message.
[0053] The terminal migration acceleration method provided by the embodiment of the present invention stores the Internet Protocol address IP and the Media Access Control address MAC of the terminal as global user table entries in the chip after the MAC authentication is passed when the terminal first accesses the switching device; and the MAC authentication module of the switching device sends an Address Resolution Protocol ARP detection message to the terminal to learn the ARP table entries. After the terminal accesses the network, the correct forwarding of the message does not depend on the access port PORT information. Therefore, when the terminal first accesses the switching device, the switching device in the embodiment of the present invention only stores the IP and MAC as the information of the global user table item in the chip. When forwarding the message later, it only needs to match the global user table item. In this way, when the terminal migrates within the same switching device, since the global user table item does not store the PORT information, the addition and deletion operations of the hardware chip table item are avoided, and the migration time is reduced; and when the switching device determines that a new terminal has accessed, after the terminal MAC address authentication is passed, the switching device actively sends an ARP detection message to the terminal to learn the ARP table item. Compared with passively waiting for the terminal to initiate ARP learning, the ARP table item learning can be completed more quickly, which speeds up the migration speed, reduces the interruption time, and improves the reliability of the service.
[0054] Based on the same inventive concept, an embodiment of the present invention provides a terminal migration acceleration device, which can be applied to a switching device, and has a structure such as Figure 2 As shown, it includes: a global user table entry generation module 21 and a MAC authentication module 22; wherein,
[0055] The global user table entry generation module 21 is used to store the Internet Protocol address IP and the Media Access Control address MAC of the terminal as global user table entries in the chip after the MAC authentication is passed when the terminal first accesses the switching device; specifically, the switching device does not rely on the PORT information when performing user forwarding. Therefore, in the embodiment of the present invention, the switching device only stores the IP and MAC of the terminal as the information of the global user table entry in the chip. When forwarding messages subsequently, only the IP and MAC in the global user table entry need to be matched to complete the message forwarding. Therefore, in the embodiment of the present invention, the global user table entry does not need to set the PORT information. In this way, when the terminal migrates within the same switching device, since the global user table entry does not store the PORT information, that is, the global user table entry at this time has not changed, the addition and deletion operations of the hardware chip table entry are avoided, and the migration time is reduced.
[0056] The MAC authentication module 22 is used to send an address resolution protocol ARP detection message to the terminal to learn the ARP table item after the MAC authentication is passed when the terminal first accesses the switching device. After the terminal MAC address authentication is passed, the MAC authentication module actively sends an ARP detection message to the terminal to learn the ARP table item. Compared with passively waiting for the terminal to initiate ARP learning, the MAC address authentication module has higher stability and processing performance, and can complete the learning of the ARP table item more quickly.
[0057] Optionally, the apparatus further comprises: a first sending module, configured to send a fast MAC address notification to a MAC authentication module of the switching device after the chip learns the MAC address of the terminal;
[0058] The MAC authentication module is also used to initiate MAC authentication after receiving the fast MAC address notification. Here, after receiving the fast MAC address notification, the MAC authentication module can directly obtain the MAC address from the fast MAC address notification and perform MAC authentication. Compared with the chip notifying the MAC address to the MAC address management module, such as the bridege module, and then the MAC address management module notifies the MAC authentication module, the processing flow of other intermediate modules is reduced, and the device migration can be completed more quickly.
[0059] Optionally, the device also includes: a trigger module, which is used to trigger the MAC violation event of the chip to send a migration notification to the MAC authentication module of the switching device when the access port PORT of the terminal changes; here, the MAC violation event refers to an event triggered by a change in the terminal PORT. When the MAC violation event is triggered, a migration notification will be sent to inform the MAC authentication module that the ARP table entry needs to be re-learned.
[0060] The MAC authentication module is further configured to send an Address Resolution Protocol (ARP) detection message to the terminal after receiving the migration notification so as to learn the ARP table entry.
[0061] Optionally, the MAC authentication module is used to send an ARP probe message to the terminal to learn ARP table entries, specifically to: send an ARP probe message to the terminal; receive an ARP response message returned by the terminal according to the ARP probe message to learn ARP table entries.
[0062] It should be understood that the implementation principle and process of the terminal migration acceleration device provided in the embodiment of the present invention are similar to the above Figure 1 The embodiments are similar to those shown in the figure and will not be described in detail here.
[0063] The terminal migration acceleration method and device provided by the embodiment of the present invention store the Internet Protocol address IP and the Media Access Control address MAC of the terminal as global user table items in the chip after the MAC authentication is passed when the terminal first accesses the switching device; and the MAC authentication module of the switching device sends an Address Resolution Protocol ARP detection message to the terminal to learn the ARP table items. After the terminal accesses the network, the correct forwarding of the message does not depend on the access port PORT information. Therefore, when the terminal first accesses the switching device, the switching device in the embodiment of the present invention only stores the IP and MAC as the information of the global user table item in the chip. When forwarding the message later, it only needs to match the global user table item. In this way, when the terminal migrates within the same switching device, since the global user table item does not store the PORT information, the addition and deletion operations of the hardware chip table item are avoided, and the migration time is reduced; and when the switching device determines that a new terminal has accessed, after the terminal MAC address authentication is passed, the switching device actively sends an ARP detection message to the terminal to learn the ARP table item. Compared with passively waiting for the terminal to initiate ARP learning, the ARP table item learning can be completed more quickly, which speeds up the migration speed, reduces the interruption time, and improves the reliability of the service.
[0064] The present application also provides an electronic device. Figure 3 As shown, it includes a processor 510 , a communication interface 520 , a memory 530 and a communication bus 540 , wherein the processor 510 , the communication interface 520 , and the memory 530 communicate with each other via the communication bus 540 .
[0065] Memory 530, for storing computer programs;
[0066] The processor 510 is configured to implement any of the terminal migration acceleration methods described in the above embodiments when executing the program stored in the memory 530.
[0067] The communication interface 520 is used for communication between the electronic device and other devices.
[0068] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0069] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0070] In this solution, the switching device only stores IP and MAC as global user table information in the chip. When forwarding messages later, it only needs to match the global user table. In this way, when the terminal migrates within the same switching device, since the global user table does not store PORT information, the addition and deletion of hardware chip table entries is avoided, reducing the migration time. In addition, when the switching device determines that a new terminal has accessed, after the terminal MAC address authentication is passed, it actively sends an ARP detection message to the terminal to learn the ARP table entry. Compared with passively waiting for the terminal to initiate ARP learning, it can complete the learning of ARP table entries more quickly, speed up the migration speed, reduce the interruption time, and improve the reliability of the service.
[0071] Accordingly, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the terminal migration acceleration method described in any one of the above embodiments.
[0072] In this solution, the switching device only stores IP and MAC as global user table information in the chip. When forwarding messages later, it only needs to match the global user table. In this way, when the terminal migrates within the same switching device, since the global user table does not store PORT information, the addition and deletion of hardware chip table entries is avoided, reducing the migration time. In addition, when the switching device determines that a new terminal has accessed, after the terminal MAC address authentication is passed, it actively sends an ARP detection message to the terminal to learn the ARP table entry. Compared with passively waiting for the terminal to initiate ARP learning, it can complete the learning of ARP table entries more quickly, speed up the migration speed, reduce the interruption time, and improve the reliability of the service.
[0073] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.
[0074] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0075] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0076] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 201, 202, 203, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0077] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0078] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0079] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0081] Although the optional embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the optional embodiments and all changes and modifications that fall within the scope of the present invention.
[0082] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for accelerating terminal migration, characterized in that: The method is applied to a switching device, comprising: When the terminal passes the media access control MAC authentication when accessing the switching device for the first time, the Internet Protocol address IP and the media access control address MAC of the terminal are stored in the chip as a global user table entry; wherein the global user table entry does not set the access port PORT information; and The MAC authentication module of the switching device sends an Address Resolution Protocol ARP detection message to the terminal to learn the ARP table entry; When the access port PORT of the terminal changes, the MAC violation event of the chip is triggered to send a migration notification to the MAC authentication module of the switching device; After receiving the migration notification, the MAC authentication module sends an Address Resolution Protocol ARP detection message to the terminal to learn the ARP table entry.
2. The method according to claim 1, characterized in that The MAC authentication of the terminal includes: After the chip learns the MAC address of the terminal, it sends a fast MAC address notification to the MAC authentication module of the switching device; The MAC authentication module initiates MAC authentication.
3. The method according to any one of claims 1 to 2, characterized in that: The MAC authentication module sends an ARP detection message to the terminal to learn the ARP table entry, including: The MAC authentication module sends an ARP detection message to the terminal; The receiving terminal learns the ARP table entry according to the ARP response message returned by the ARP detection message.
4. A terminal migration acceleration device, characterized in that: The device is applied to a switching device, and includes: a global user table entry generation module and a MAC authentication module; wherein, The global user entry generation module is used to store the Internet Protocol address IP and the Media Access Control address MAC of the terminal as a global user entry in the chip after the MAC authentication is passed when the terminal first accesses the switching device; wherein the global user entry does not set the access port PORT information; The MAC authentication module is used to send an Address Resolution Protocol ARP detection message to the terminal to learn ARP table entries after the MAC authentication is passed when the terminal first accesses the switching device; A trigger module, used for triggering a MAC violation event of the chip to send a migration notification to a MAC authentication module of the switching device when the access port PORT of the terminal changes; The MAC authentication module is further configured to send an Address Resolution Protocol (ARP) detection message to the terminal after receiving the migration notification so as to learn the ARP table entry.
5. The device according to claim 4, characterized in that The device further includes: a first sending module, configured to send a fast MAC address notification to a MAC authentication module of the switching device after the chip learns the MAC address of the terminal; The MAC authentication module is further configured to initiate MAC authentication after receiving the fast MAC address notification.
6. The device according to any one of claims 4 to 5, characterized in that: The MAC authentication module is used to send an ARP detection message to the terminal to learn the ARP table entry, and is specifically used to: send an ARP detection message to the terminal; receive an ARP response message returned by the terminal according to the ARP detection message to learn the ARP table entry.
7. An electronic device, characterized in that: The electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 3 when executing a program stored in a memory.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Offline detection method and offline detection device based on MAC (Media Access Control) address authentication
CN102938715A
Authentication determination method and accessing equipment
CN104333552A
Communication device and ARP table item generating method thereof
CN108259644A