Data processing method and device

Through the coordinated management of the server's self-organizing network between forwarding devices, the problem of network access failure caused by the forwarding device not storing the MAC address is solved, and the access and load balancing of terminal devices are achieved.

CN114567611BActive Publication Date: 2025-09-23海南乾唐视联信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210143361.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-16
Publication Date
2025-09-23
Estimated Expiration
2042-02-16

AI Technical Summary

Technical Problem

When the forwarding device does not store the MAC address of the terminal device and cannot learn its MAC address, the terminal device cannot access the network, resulting in network access failure.

Method used

The server receives the reporting information of the forwarding device, determines the target forwarding device that has not reached the threshold, and sends its device information to the forwarding device, so that it forwards the network access application to the target forwarding device for processing, thereby realizing the access of the terminal device.

Benefits of technology

Without the need to pre-configure the terminal MAC address, network access for terminal devices is achieved, the network access success rate is improved, and load balancing between forwarding devices is realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114567611B_ABST
    Figure CN114567611B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a data processing method and apparatus, relating to the field of communication technology. The data processing method may include: receiving reporting information sent by a first forwarding device; wherein the reporting information is used to indicate that the number of terminals accessed using dynamic MAC addresses under the first forwarding device has reached a threshold; according to the reporting information, in the forwarding device of the access server, determining the forwarding device whose number of terminals accessed using dynamic MAC addresses has not reached the threshold as the target forwarding device; sending the device information of the target forwarding device to the first forwarding device; and sending the device information of the first forwarding device to the target forwarding device. In the embodiment of the present invention, the server comprehensively manages the re-bearing of network access applications, which is conducive to achieving load balancing between forwarding devices and can also improve the network access success rate of terminal devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a data processing method and a data processing device. Background Art

[0002] In the prior art, when a terminal device accesses a network, it must submit a network access application to a server that manages network access. This application is typically forwarded to the server by a forwarding device. For example, when a visual network terminal accesses a visual network, it must forward the application to the visual network server via a forwarding device.

[0003] For the forwarding device, if the MAC address (Media Access Control Address) of the terminal device is pre-stored, the network access application can be sent to the server used to manage network access. Alternatively, by learning the MAC address of the terminal device, its MAC address can be added to the dynamic MAC table, and the network access application can also be sent to the server used to manage network access.

[0004] However, when the forwarding device does not store the MAC address of the terminal device and cannot learn the MAC address of the terminal device and add it to the dynamic MAC table, the terminal device cannot access the corresponding network, resulting in network access failure. Summary of the Invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a data processing method and a corresponding data processing device that overcome the above problems or at least partially solve the above problems.

[0006] In a first aspect, an embodiment of the present invention discloses a data processing method, applied to a server, comprising:

[0007] Receive reporting information sent by the first forwarding device; wherein the reporting information is used to indicate that the number of terminals accessed by the first forwarding device using dynamic MAC addresses has reached a threshold;

[0008] According to the reported information, among the forwarding devices connected to the server, a forwarding device whose number of terminals connected using dynamic MAC addresses does not reach a threshold is determined as a target forwarding device;

[0009] Sending the device information of the target forwarding device to the first forwarding device to instruct the first forwarding device to forward the network access application initiated by the terminal device using the dynamic MAC address to the target forwarding device;

[0010] The device information of the first forwarding device is sent to the target forwarding device to instruct the target forwarding device to receive and process the network access application forwarded by the first forwarding device.

[0011] In a second aspect, an embodiment of the present invention discloses a data processing method, which is applied to a forwarding device. The method includes:

[0012] receiving a network access application sent by a first terminal; wherein the network access application includes a first MAC address of the first terminal;

[0013] When determining, based on the first MAC address, that the access mode of the first terminal is dynamic MAC address access, determining whether the number of terminals accessed using dynamic MAC addresses reaches a threshold;

[0014] If the number of terminals accessed using dynamic MAC addresses reaches a threshold, a report message is sent to the server to notify the server that the number of terminals accessed using dynamic MAC addresses reaches the threshold;

[0015] Receiving device information of a target forwarding device fed back by the server; wherein the target forwarding device is a forwarding device to which the number of terminals accessed using dynamic MAC addresses does not reach a threshold;

[0016] The network access application sent by the first terminal is forwarded to the target forwarding device, so that the target forwarding device processes the network access application.

[0017] In a third aspect, an embodiment of the present invention discloses a data processing device, applied to a server, comprising:

[0018] A first receiving module is configured to receive reporting information sent by a first forwarding device, wherein the reporting information is used to indicate that the number of terminals accessed by the first forwarding device using dynamic MAC addresses has reached a threshold;

[0019] A first determining module is configured to determine, according to the reported information, among the forwarding devices connected to the server, a forwarding device whose number of terminals accessed using dynamic MAC addresses does not reach a threshold as a target forwarding device;

[0020] A first sending module, configured to send device information of the target forwarding device to the first forwarding device, so as to instruct the first forwarding device to forward a network access application initiated by a terminal device accessed using a dynamic MAC address to the target forwarding device;

[0021] The second sending module is configured to send the device information of the first forwarding device to the target forwarding device to instruct the target forwarding device to receive and process the network access application forwarded by the first forwarding device.

[0022] In a fourth aspect, an embodiment of the present invention discloses a data processing device, which is applied to a forwarding device. The device includes:

[0023] A second receiving module is configured to receive a network access application sent by a first terminal; wherein the network access application includes a first MAC address of the first terminal;

[0024] a judging module, configured to, when determining, based on the first MAC address, that the access mode of the first terminal is dynamic MAC address access, judge whether the number of terminals accessed using dynamic MAC addresses reaches a threshold;

[0025] A third sending module is configured to send a reporting message to a server if the number of terminals accessed using dynamic MAC addresses reaches a threshold, so as to notify the server that the number of terminals accessed using dynamic MAC addresses reaches the threshold;

[0026] A third receiving module is configured to receive device information of a target forwarding device fed back by the server; wherein the target forwarding device is a forwarding device to which the number of terminals accessed using dynamic MAC addresses does not reach a threshold;

[0027] The fourth sending module is configured to forward the network access application sent by the first terminal to the target forwarding device, so that the target forwarding device processes the network access application.

[0028] In a fifth aspect, an embodiment of the present invention discloses an electronic device, comprising a memory and a processor, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the data processing method as described in the first aspect or the second aspect is implemented.

[0029] In a sixth aspect, an embodiment of the present invention discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for implementing the data processing method as described in the first aspect or the second aspect.

[0030] The embodiments of the present invention include the following advantages:

[0031] In an embodiment of the present invention, for a forwarding device, when the number of terminals accessed using dynamic MAC addresses reaches a threshold and the network access application sent by a new terminal device cannot be forwarded to a server for managing network access, the forwarding device can report its own situation to the server for managing the forwarding device. The server determines a target forwarding device among the forwarding devices it manages that can forward the network access application to the server for managing network access, and informs the forwarding device of the device information of the target forwarding device, so that the forwarding device can send the network access application to the target forwarding device, and the target forwarding device processes the network access application, thereby enabling the network access application to be forwarded to the server for managing network access, so that the terminal device can access the corresponding network.

[0032] In this embodiment of the present invention, based on an ad hoc network between forwarding devices, even if a forwarding device is unable to process a terminal device's network access application, the terminal device that sent the network access application can still access the corresponding network without manually configuring the terminal's MAC address in the forwarding device. Furthermore, in this embodiment of the present invention, the server coordinates and manages the re-handling of network access applications, facilitating load balancing between forwarding devices and improving the network access success rate for terminal devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is one of the step flow charts of a data processing method embodiment provided by an embodiment of the present invention;

[0034] Figure 2 is a schematic diagram of a network structure provided by an embodiment of the present invention;

[0035] Figure 3 is a functional schematic diagram of a forwarding device provided in an embodiment of the present invention;

[0036] Figure 4 This is a schematic diagram of the interaction process provided by an embodiment of the present invention;

[0037] Figure 5 This is a second step flow chart of an embodiment of a data processing method provided by an embodiment of the present invention;

[0038] Figure 6 This is one of the structural block diagrams of an embodiment of a data processing device provided by an embodiment of the present invention;

[0039] Figure 7 This is the second structural block diagram of an embodiment of a data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0041] In an embodiment of the present invention, when a forwarding device is unable to forward a received network access application to a server for managing network access, the situation may be reported to the server for managing the forwarding device, and the server may coordinate the re-carrying of the network access application. That is, among the forwarding devices it manages, the server may determine a target forwarding device that can forward the network access application to the server for managing network access, and then the target forwarding device may forward the network access application. In this way, the terminal device may access the corresponding network without pre-configuring the terminal MAC address, and while facilitating load balancing between forwarding devices, the network access success rate of the terminal device may also be improved.

[0042] Reference Figure 1 , shows a step flow chart of an embodiment of a data processing method of the present invention, which is applied to manage a forwarding device server.

[0043] The method may specifically include the following steps:

[0044] Step 101: Receive reporting information sent by a first forwarding device.

[0045] The reporting information indicates that the number of terminals using dynamic MAC addresses connected to the first forwarding device has reached a threshold. The threshold can be the maximum number of terminals allowed to access using dynamic MAC addresses, or a value less than the maximum value. For example, if the maximum value is 100, the threshold can be set to 92.

[0046] The terminal accessed using a dynamic MAC address refers to a terminal whose MAC address is stored in the first forwarding device in the form of a dynamic MAC address.

[0047] The maximum number of terminals allowed to access using dynamic MAC addresses by different forwarding devices can be the same or different. The forwarding device can determine whether it has the ability to process network access applications sent by terminal devices using dynamic MAC addresses based on its own threshold.

[0048] The first forwarding device may send a report upon receiving a network access application from a terminal device using a dynamic MAC address, determining that the terminal device's MAC address is not stored, and the number of terminals using dynamic MAC addresses that have accessed the network has reached a threshold. The network access application may be in the form of a data packet, instruction, message, etc.

[0049] In an embodiment of the present invention, when a terminal device needs to access a network (such as a video network or the Internet), it can apply for network access and send the network access application, which contains its own MAC address, to a server for managing network access. This network access application generally needs to be forwarded by a forwarding device before it can be sent to the server for managing network access.

[0050] For example, when a visual network terminal needs to access the visual network, it can send a network access application to the visual network server through a VHUB device, so that the visual network server can allow the visual network terminal to access the visual network. The VHUB device has a protocol conversion function, such as converting the Internet Protocol to the visual network protocol, or vice versa. Therefore, through the VHUB device, not only can the visual network terminal access the visual network, but also non-visual network terminals can access the visual network.

[0051] In addition, the VHUB device adopts a distributed server-side and client-side structure, that is, the client program and the server-side program can be installed in different VHUB devices. The VHUB device installed with the client program (equivalent to the various forwarding devices described in the embodiments of the present invention, such as the first forwarding device and the target forwarding device described below) can dynamically learn the MAC address in the network access application by capturing packets and send the learned MAC address to the VHUB device installed with the server-side program (equivalent to the server). The VHUB device installed with the server-side program saves the received MAC address and records the IP (Internet Protocol Address) address of the VHUB device that sent the MAC address.

[0052] For example, Figure 3 As shown in the figure, there are four terminal devices (i.e., terminal a, terminal b, terminal c, and terminal d), three forwarding devices (i.e., forwarding device A, forwarding device B, and forwarding device C), a forwarding device management server (i.e., a server for managing the forwarding devices), and a network access management server. Terminal a and terminal b can send network access applications to the forwarding device management server via forwarding device A. The forwarding device management server then sends the data packet to the network access management server, which processes the network access application, allowing terminals a and b to access the corresponding network. The network access management server's feedback information regarding the network access application can be transmitted to terminals a and b via the network access application transmission path.

[0053] Step 102: Based on the reported information, among the forwarding devices of the access server, a forwarding device whose number of terminals accessed using dynamic MAC addresses does not reach a threshold is determined as a target forwarding device.

[0054] For the target forwarding device, since the number of terminals accessed using dynamic MAC addresses has not reached the threshold of the forwarding device, the target forwarding device can continue to learn the MAC address of the terminal device and save the learned MAC address so that the terminal device can access using the dynamic MAC address, and then forward the network access application of the terminal device to the server used to manage network access.

[0055] Step 103: Send the device information of the target forwarding device to the first forwarding device.

[0056] After determining the target forwarding device, the server can send the device information of the target forwarding device to the first forwarding device to instruct the first forwarding device to forward the network access application initiated by the terminal device using the dynamic MAC address to the target forwarding device.

[0057] Step 104: Send the device information of the first forwarding device to the target forwarding device.

[0058] After determining the target forwarding device, the server can also send the device information of the first forwarding device to the target forwarding device to instruct the target forwarding device to receive and process the network access application forwarded by the first forwarding device.

[0059] This embodiment of the present invention, based on an ad hoc network between forwarding devices, enables the terminal device that sent the network access application to access the corresponding network even if one forwarding device is unable to process the terminal device's network access application, without requiring manual preconfiguration of the terminal's MAC address in the forwarding device. Furthermore, in this embodiment of the present invention, the server coordinates and manages the re-handling of network access applications, facilitating load balancing between forwarding devices and improving the network access success rate for terminal devices.

[0060] Optionally, a dynamic MAC table can be configured in the forwarding device to store the MAC addresses of terminal devices accessing using dynamic MAC addresses, i.e., MAC addresses learned by the forwarding device itself. In this embodiment, the number of terminals accessing using dynamic MAC addresses reaching a threshold can be determined by the number of MAC addresses stored in the dynamic MAC table reaching a threshold. It should be understood that MAC addresses can be stored in more than just a table format and can also be stored in other formats.

[0061] For forwarding devices, if the MAC addresses saved in the dynamic MAC table do not reach the threshold, the network access application sent by the terminal device can be processed, such as learning the MAC address of the terminal device in the network access application, and saving the learned MAC address in the dynamic MAC table, and then the network access application can be forwarded to the server used to manage network access.

[0062] The forwarding device may also store the MAC addresses of the terminal devices pre-set by the user, which remain unchanged without user intervention. Optionally, these MAC addresses may be stored in a configured MAC table.

[0063] The following further explains the process of the first forwarding device determining whether the number of terminals accessed using dynamic MAC addresses reaches a threshold by combining the configuration of the MAC table and the dynamic MAC table.

[0064] After receiving the network access application sent by the first terminal, the first forwarding device obtains the MAC address of the first terminal (i.e., the first MAC address) from the network access application, and then determines whether the first MAC address is stored in the configured MAC table. If the first MAC address is detected to be stored in the configured MAC table, the first forwarding device processes the network access application and forwards the network access application to the server.

[0065] If it is detected that the first MAC address is not stored in the configured MAC table, it is determined whether the first MAC address is stored in the dynamic MAC table. If it is detected that the first MAC address is stored in the dynamic MAC table, the first forwarding device processes the network access application and forwards the network access application to the server.

[0066] If it is detected that the first MAC address is not stored in the dynamic MAC table, but the number of MAC addresses in the dynamic MAC table has not reached the maximum value (i.e., the threshold), the first forwarding device can learn the first MAC address, add the first MAC address to the dynamic MAC table, and then process the network access application and forward the network access application to the server.

[0067] If it is detected that the first MAC address is not stored in the dynamic MAC table and the number of MAC addresses stored in the dynamic MAC table reaches the maximum value, the solution provided by the embodiment of the present invention may be used to send reporting information to the server.

[0068] The solution provided by the embodiment of the present invention is further explained below by taking an example in combination with the solution of configuring the MAC table and the dynamic MAC table and steps 101 to 104.

[0069] like Figure 4 As shown, Figure 3 Terminal c in the example sends a network access application packet x to forwarding device B. After receiving the network access application packet x, forwarding device B detects that the MAC address of terminal c is not stored in either the configured MAC table or the dynamic MAC table, and that the number of MAC addresses in the dynamic MAC table has reached the maximum value (i.e., the threshold). Therefore, forwarding device B sends a report to the forwarding device management server to inform itself of the situation.

[0070] After the forwarding device management server receives the report information sent by forwarding device B, it learns about the situation of forwarding device B, and then searches for forwarding devices whose number of MAC addresses in the dynamic MAC table has not reached the maximum value among the forwarding devices it manages (that is, the forwarding devices connected to the forwarding device management server). It finally determines forwarding device C, and then sends the device information of forwarding device C to forwarding device B, and sends the device information of forwarding device B to forwarding device C to inform forwarding device C that it needs to act on behalf of forwarding device B to process the network access application data packet x.

[0071] After receiving the device information of forwarding device C sent by the forwarding device management server, forwarding device B sends the network access application data packet x to forwarding device C based on the device information of forwarding device C.

[0072] After forwarding device C receives the network access application data packet x sent by forwarding device B, it processes the network access application data packet x according to the device information of forwarding device B sent by the forwarding device management server, that is, it learns the MAC address of terminal c in the network access application data packet x, adds the MAC address of terminal c to its own dynamic MAC table, and then sends the network access application data packet x to the forwarding device management server.

[0073] After receiving the network access application data packet x sent by the forwarding device C, the forwarding device management server saves the device information of the forwarding device C and the MAC address of the terminal c in the network access application data packet x, and then sends the network access application data packet x to the network access management server.

[0074] After receiving the network access application data packet x sent by the forwarding device management server, the network access management server processes the network access application data packet x, enables terminal c to access the network, and feeds back network access success information to terminal c.

[0075] As an optional embodiment, step 102: determining, based on the reported information, in the forwarding device of the access server, a forwarding device whose number of terminals accessed using dynamic MAC addresses does not reach a threshold as a target forwarding device, may include:

[0076] Step 1: According to the reported information, a second forwarding device is determined among the forwarding devices of the access server, the number of terminals accessed using dynamic MAC addresses not reaching a threshold.

[0077] In an embodiment of the present invention, when the forwarding device can send the learned terminal MAC address and its own device information to the server, the server parses the information sent by the forwarding device, extracts the device information of the forwarding device and the terminal MAC address, and saves them. When the forwarding device deletes the dynamic MAC address, it can also report it to the server, and then the server deletes the stored MAC address. In short, when the dynamic MAC address stored in the forwarding device changes, the forwarding device can report the change to the server, and the server can count the number of dynamic MAC addresses stored in the forwarding device based on the information reported by the forwarding device. Therefore, the server can determine, among the forwarding devices connected to it, a second forwarding device whose number of terminals accessed using dynamic MAC addresses has not reached a threshold.

[0078] Step 2: When there is only one second forwarding device, determine the second forwarding device as the target forwarding device.

[0079] In the case that there is only one forwarding device whose number of terminals accessed using dynamic MAC addresses does not reach a threshold, the forwarding device is determined as the target forwarding device.

[0080] Step 3: When there are multiple second forwarding devices, the forwarding device with the least number of terminals using dynamic MAC access among the second forwarding devices is determined as the target forwarding device.

[0081] If there are multiple forwarding devices whose number of terminals using dynamic MAC addresses to access the network falls below the threshold, the forwarding device with the fewest terminals using dynamic MAC addresses can be selected as the target forwarding device. The forwarding device with the fewest terminals using dynamic MAC addresses has the lowest workload, minimizing the workload on other forwarding devices while meeting demand.

[0082] It is understandable that, in the case that there are multiple forwarding devices to which the number of terminals accessed using dynamic MAC addresses does not reach a threshold, one of them may be randomly selected as the target forwarding device.

[0083] Optionally, when the network access application data is in the form of a network access application data packet, the target forwarding device may, after storing the MAC address in the network access application data packet sent by the first forwarding device as a dynamic MAC address, process the network access application data packet so as to transmit the processed network access application data packet to the server. The data structure of the processed network access application data packet may be as shown in Table 1.

[0084] Table 1

[0085] Protocol header length Learn MAC Hierarchy IP address 1 IP address 2 Check digit

[0086] Among them, the protocol header in Table 1 is used to indicate the type of data packet, the length in Table 1 is used to indicate the data length, and the learned MAC address in Table 1 is used to indicate the newly learned MAC address. The level in Table 1 is used to indicate whether the newly learned MAC address is learned by proxy for other forwarding devices. If yes, the value at the level is 2, indicating two forwarding devices; if not, the value at the level is 1, indicating one forwarding device. IP address 1 in Table 1 represents the IP address of the proxy forwarding device (i.e., the target forwarding device), and IP address 2 represents the IP address of the proxied forwarding device (i.e., the first forwarding device, which can also be understood as the original forwarding device). When the level is 1, IP address 2 is empty, that is, there is no proxied forwarding device. The check bit in Table 1 is used to verify the accuracy of the data.

[0087] After receiving the network access application processed by the target forwarding device, the server saves the MAC address in the network access application, the IP address of the target forwarding device, and the IP address of the first forwarding device.

[0088] As an optional embodiment, the method may further include:

[0089] A first query request input by a user is received, and first information is displayed according to the first query request.

[0090] The first information may include: the second MAC address, the device status of the second terminal corresponding to the second MAC address, and the IP address of the third forwarding device storing the second MAC address (ie, the second MAC address is stored in the configured MAC table or the dynamic MAC table).

[0091] In an embodiment of the present invention, users can query MAC addresses through the server's query function. By querying the MAC address, information related to the MAC address can be displayed. For example, the device status information of the terminal device corresponding to the MAC address can be displayed to allow users to understand the device status. For another example, the IP address of the forwarding device storing the MAC address can be displayed. Based on this IP address, the location of the forwarding device corresponding to the IP address can be determined, and then the location of the terminal device can be located based on the location of the forwarding device. When a problem occurs with the terminal device, this information can facilitate troubleshooting for maintenance personnel.

[0092] It should be noted that the above query process may occur before step 101 or after step 104 , and may also occur at any time during the execution of steps 101 and 104 .

[0093] Optionally, in the case where the second MAC address is a dynamic MAC address, if the network access application including the second MAC address obtained by the third forwarding device is sent by the fourth forwarding device when it is unable to process the network access application, then the second information may also include the IP address of the fourth forwarding device, that is, showing the network topology structure between the forwarding devices formed due to the network access application including the second MAC address.

[0094] The above is a description of the data processing method applied to the server provided by the embodiment of the present invention.

[0095] To sum up, in an embodiment of the present invention, for a forwarding device, when the number of terminals accessing it using dynamic MAC addresses reaches a threshold and the network access application sent by the new terminal device cannot be forwarded to the server for managing network access, the forwarding device can report its own situation to the server for managing the forwarding device. The server determines the target forwarding device among the forwarding devices it manages that can forward the network access application to the server for managing network access, and informs the forwarding device of the device information of the target forwarding device, so that the forwarding device can send the network access application to the target forwarding device, and the target forwarding device processes the network access application, thereby realizing that the network access application can be forwarded to the server for managing network access, so that the terminal device can access the corresponding network.

[0096] In this embodiment of the present invention, based on an ad hoc network between forwarding devices, even if a forwarding device is unable to process a terminal device's network access application, the terminal device that sent the network access application can still access the corresponding network without manually configuring the terminal's MAC address in the forwarding device. Furthermore, in this embodiment of the present invention, the server coordinates and manages the re-handling of network access applications, facilitating load balancing between forwarding devices and improving the network access success rate for terminal devices.

[0097] Reference Figure 5 , shows a flow chart of steps of an embodiment of a data processing method of the present invention, which is applied to a forwarding device. Figure 2 As shown, the forwarding device has a data maintenance function, which can obtain data from the received data packets, analyze and process the obtained data, and then send the processed data to the corresponding target device.

[0098] The method may specifically include the following steps:

[0099] Step 501: Receive a network access application sent by a first terminal.

[0100] The network access application includes the MAC address of the first terminal (hereinafter referred to as the first MAC address).

[0101] Among them, the MAC address is used to confirm the address of the location of the network device. One terminal device corresponds to one MAC address, and the MAC addresses are not repeated, that is, different terminal devices have different MAC addresses.

[0102] In an embodiment of the present invention, when a terminal device needs to access a network (such as a video network or the Internet), it can apply for network access and send the network access application, which contains its own MAC address, to a server for managing network access. This network access application generally needs to be forwarded by a forwarding device before it can be sent to the server for managing network access. Therefore, in an embodiment of the present invention, a first forwarding device can receive the network access application sent by the first terminal.

[0103] The data form of the network access application may be a data packet, instruction, message, etc.

[0104] Step 502: When it is determined according to the first MAC address that the access mode of the first terminal is dynamic MAC address access, it is determined whether the number of terminals accessed using dynamic MAC addresses reaches a threshold.

[0105] The terminal accessed using a dynamic MAC address refers to a terminal whose MAC address is stored in the forwarding device in the form of a dynamic MAC address.

[0106] In an embodiment of the present invention, after receiving a network access application sent by a first terminal, the forwarding device may obtain a first MAC address in the network access application and then determine whether the first MAC address is stored. If the first MAC address is not stored, indicating that the first terminal accesses using a dynamic MAC address, the forwarding device then determines whether the number of terminals accessed using dynamic MAC addresses has reached a threshold.

[0107] The threshold here may be the maximum number of terminals allowed to access using dynamic MAC addresses, or a value smaller than the maximum value. For example, if the maximum value is 100, the threshold may be set to 92.

[0108] The maximum number of terminals allowed to access using dynamic MAC addresses by different forwarding devices can be the same or different. The forwarding device can determine whether it has the ability to process network access applications sent by terminal devices using dynamic MAC addresses based on its own threshold.

[0109] Step 503: If the number of terminals accessed using dynamic MAC addresses reaches a threshold, a report message is sent to the server.

[0110] In an embodiment of the present application, for the first forwarding device, if the number of terminals accessing it using dynamic MAC addresses reaches a threshold, a reporting message can be sent to the server to notify the server that the number of terminals accessing it using dynamic MAC addresses reaches the threshold.

[0111] The server described here is a server for managing forwarding devices. The forwarding device needs to send data from the terminal device to the server, which then forwards the data to the corresponding server. In this embodiment of the present invention, the forwarding device needs to send a network access application to the server, which then encapsulates the network access application and sends the encapsulated network access application to the server for managing network access.

[0112] Step 504: Receive device information of the target forwarding device fed back by the server.

[0113] The target forwarding device is a forwarding device to which the number of terminals accessed using dynamic MAC addresses does not reach a threshold.

[0114] In an embodiment of the present invention, after receiving the reporting information sent by the first forwarding device, the server can determine, among the forwarding devices connected to it, a target forwarding device whose number of terminals accessed using dynamic MAC addresses has not reached a threshold based on the reporting information, and send the device information of the target conversion device to the forwarding device to instruct the forwarding device to forward the network access application initiated by the first terminal to the target forwarding device.

[0115] In addition, the server may also send the device information of the forwarding device to the target forwarding device to instruct the target forwarding device to receive and process the network access application forwarded by the forwarding device.

[0116] Step 505: Forward the network access application sent by the first terminal to the target forwarding device.

[0117] After the forwarding device receives the device information of the target forwarding device sent by the server, it can send the network access application to the target forwarding device based on the received device information, so that the target forwarding device can process the network access application, that is, learn and save the first MAC address of the first terminal, so that the network access application can be forwarded to the server, and the server can then send the network access application to the server used to manage network access.

[0118] This embodiment of the present invention, based on an ad hoc network between forwarding devices, enables the terminal device that sent the network access application to access the corresponding network even if one forwarding device is unable to process the terminal device's network access application, without requiring manual preconfiguration of the terminal's MAC address in the forwarding device. Furthermore, in this embodiment of the present invention, the server coordinates and manages the re-handling of network access applications, facilitating load balancing between forwarding devices and improving the network access success rate for terminal devices.

[0119] Optionally, a dynamic MAC table can be configured in the forwarding device to store the MAC addresses of terminal devices accessing using dynamic MAC addresses, i.e., MAC addresses learned by the forwarding device itself. In this embodiment, the number of terminals accessing using dynamic MAC addresses reaching a threshold can be determined by the number of MAC addresses stored in the dynamic MAC table reaching a threshold. It should be understood that MAC addresses can be stored in more than just a table format and can also be stored in other formats.

[0120] For forwarding devices, if the MAC addresses saved in the dynamic MAC table do not reach the threshold, the network access application sent by the terminal device can be processed, such as learning the MAC address of the terminal device in the network access application, and saving the learned MAC address in the dynamic MAC table, and then the network access application can be forwarded to the server used to manage network access.

[0121] The forwarding device may also store the MAC addresses of the terminal devices pre-set by the user (hereinafter referred to as configured MAC addresses). These MAC addresses remain unchanged without user intervention. Optionally, these MAC addresses may be stored in a configured MAC table.

[0122] The following further explains the process of the first forwarding device determining whether the number of terminals accessed using dynamic MAC addresses reaches a threshold by combining the configuration of the MAC table and the dynamic MAC table.

[0123] After receiving the network access application sent by the first terminal, the first forwarding device uses the MAC address of the first terminal (i.e., the first MAC address) in the network access application to determine whether the first MAC address is stored in the configured MAC table. If the first MAC address is detected to be stored in the configured MAC table, the first forwarding device processes the network access application and forwards the network access application to the server.

[0124] If it is detected that the first MAC address is not stored in the configured MAC table, it is determined whether the first MAC address is stored in the dynamic MAC table. If it is detected that the first MAC address is stored in the dynamic MAC table, the first forwarding device processes the network access application and forwards the network access application to the server.

[0125] If it is detected that the first MAC address is not stored in the dynamic MAC table, but the number of MAC addresses in the dynamic MAC table has not reached the maximum value (i.e., the threshold), the first forwarding device can learn the first MAC address, add the first MAC address to the dynamic MAC table, and then process the network access application and forward the network access application to the server.

[0126] If it is detected that the first MAC address is not stored in the dynamic MAC table and the number of MAC addresses stored in the dynamic MAC table reaches the maximum value, the solution provided by the embodiment of the present invention can be used to send reporting information to the server.

[0127] As an optional embodiment, the method may further include:

[0128] Detect the device status of a third terminal accessed using a dynamic MAC address; if the device status of the third terminal is offline, delete the saved MAC address of the third terminal.

[0129] In the case where the dynamic MAC address is stored in the dynamic MAC table, the third MAC address is any MAC address in the dynamic MAC table.

[0130] In the embodiment of the present invention, for a dynamic MAC address, when the device status of the terminal device corresponding to the dynamic MAC address changes, such as when the device status changes from online to offline, or from offline to online, the device status information of the terminal device corresponding to the dynamic MAC address can be synchronously updated (corresponding to Figure 2 Dynamic MAC terminal device status update in ).

[0131] Among them, when the device status is offline, it means that the terminal device does not need to communicate with the network it is connected to temporarily. Therefore, the saved MAC address of the terminal device can be deleted (corresponding to Figure 2 This frees up storage space for dynamic MAC addresses and increases the forwarding device's ability to process network access requests. This improves the flexibility of dynamic MAC address storage.

[0132] Among them, Figure 2 As shown, for configuring the MAC address, the device status of the corresponding terminal device can also be maintained (corresponding to Figure 2 If a terminal device changes from online to offline, or from offline to online, the device status information recorded in the MAC table can also be updated synchronously.

[0133] In addition, for the configured MAC address, you can manually delete the MAC address according to actual needs (corresponding to Figure 2 MAC address deletion) or MAC address addition (corresponding to Figure 2 Add the MAC address in the configuration).

[0134] Furthermore, the priority of the configured MAC address is higher than the priority of the dynamic MAC address. For example, the forwarding device simultaneously receives data packet I sent by terminal a and data packet II sent by terminal b. The MAC address in data packet I is the configured MAC address, and the MAC address in data packet II is the dynamic MAC address. In this case, data packet I will be processed first.

[0135] Optionally, when the number of terminals accessed using dynamic MAC addresses reaches a threshold, the first forwarding device can continue to learn the MAC addresses in the received network access applications. When the corresponding dynamic MAC address is deleted due to the terminal device being offline, the learned MAC address can be saved (corresponding to Figure 2 When multiple MAC addresses have been learned, the MAC addresses can be added in the order in which they were learned. It is understood that when the number of terminals accessed using dynamic MAC addresses reaches a threshold, the first forwarding device may stop learning MAC addresses. When the number of terminals accessed using dynamic MAC addresses is less than the threshold, if a network access application is received from a terminal device, the first forwarding device may continue learning the MAC addresses in the network access application.

[0136] Optionally, the aforementioned step of “detecting the device status of a third terminal accessed using a MAC address” may include:

[0137] Detect whether a heartbeat data packet sent by the third terminal is received within a first preset time length; if no heartbeat data packet sent by the third terminal is received within the first preset time length, determine that the device status of the third terminal is offline.

[0138] The first preset time length is greater than the second preset time length, which is the interval time length at which the third terminal sends a heartbeat data packet to the forwarding device each time.

[0139] Among them, the third terminal sends a heartbeat data packet to the forwarding device every second preset time period, and the heartbeat data packet is used to indicate the online status of the third terminal. Therefore, when the forwarding device does not receive the heartbeat data packet sent by the third terminal within a first preset time period that is greater than the second preset time period, it indicates that the third terminal is in an offline state.

[0140] As an optional embodiment, the method may further include:

[0141] When a shutdown command is received, all saved dynamic MAC addresses and device status information of terminal devices corresponding to all dynamic MAC addresses are deleted.

[0142] In this embodiment of the present invention, upon receiving a shutdown command, the forwarding device can delete all saved dynamic MAC addresses and, at the same time, the device status information of all terminal devices corresponding to the dynamic MAC addresses is also deleted. Thus, when the forwarding device is restarted, it can relearn the dynamic MAC addresses and record the latest status of the terminal devices corresponding to the dynamic MAC addresses.

[0143] After the forwarding device is shut down, if the dynamic MAC address and the device status of the corresponding terminal device remain unchanged, then after the forwarding device is restarted, the recorded device status of the terminal device may not match the actual device status, resulting in an inability to truly reflect the device status. At the same time, for terminal devices that are already offline, their MAC addresses occupying the dynamic MAC address storage space will also affect the forwarding device's ability to process new dynamic MAC addresses. The above-mentioned solution provided by the embodiment of the present invention can overcome these technical problems, while more realistically reflecting the device status of the terminal device, it is also conducive to improving the forwarding device's ability to process new dynamic MAC addresses.

[0144] As an optional embodiment, the method may further include:

[0145] A second query request input by a user is received, and second information is displayed according to the second query request.

[0146] The second information may include: a configured MAC address and a device status of a corresponding terminal device, and / or a dynamic MAC address and a device status of a corresponding terminal device.

[0147] like Figure 2 As shown in the embodiment of the present invention, the user can query the MAC address through the query function of the forwarding device to view the configured MAC address and the MAC address in the dynamic MAC table. After the forwarding device receives the query request input by the user, it can display the information that the user wants to query, such as Figure 2 As shown, MAC address display and dynamic MAC address display can be configured. At the same time, the device status of the terminal devices corresponding to these MAC addresses can also be displayed so that users can understand this information more intuitively.

[0148] It should be noted that the above query process may occur before step 501 or after step 505, and may also occur at any time during the execution of steps 501 and 505.

[0149] Optionally, in the embodiment of the present invention, the number of the first terminal may be at least one.

[0150] If there is one first terminal, there is one target forwarding device. If there are at least two first terminals, there is at least one target forwarding device. If one forwarding device cannot handle all pending network access applications from the first forwarding device, multiple forwarding devices can handle the applications. Therefore, there can be at least one target forwarding device.

[0151] The above is a description of the data processing method applied to the forwarding device provided by the embodiment of the present invention.

[0152] To sum up, in an embodiment of the present invention, for a forwarding device, when the number of terminals accessing it using dynamic MAC addresses reaches a threshold and the network access application sent by the new terminal device cannot be forwarded to the server for managing network access, the forwarding device can report its own situation to the server for managing the forwarding device. The server determines the target forwarding device among the forwarding devices it manages that can forward the network access application to the server for managing network access, and informs the forwarding device of the device information of the target forwarding device, so that the forwarding device can send the network access application to the target forwarding device, and the target forwarding device processes the network access application, thereby realizing that the network access application can be forwarded to the server for managing network access, so that the terminal device can access the corresponding network.

[0153] In this embodiment of the present invention, based on an ad hoc network between forwarding devices, even if a forwarding device is unable to process a terminal device's network access application, the terminal device that sent the network access application can still access the corresponding network without manually configuring the terminal's MAC address in the forwarding device. Furthermore, in this embodiment of the present invention, the server coordinates and manages the re-handling of network access applications, facilitating load balancing between forwarding devices and improving the network access success rate for terminal devices.

[0154] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0155] Reference Figure 6 , shows a structural block diagram of an embodiment of a data processing device of the present invention, which is applied to a server and may specifically include the following modules:

[0156] The first receiving module 601 is configured to receive reporting information sent by a first forwarding device.

[0157] The reporting information is used to indicate that the number of terminals accessing the first forwarding device using dynamic MAC addresses has reached a threshold.

[0158] The first determining module 602 is configured to determine, according to the reported information, a forwarding device connected to the server, the forwarding device whose number of terminals accessed using dynamic MAC addresses does not reach a threshold, as a target forwarding device.

[0159] The first sending module 603 is used to send the device information of the target forwarding device to the first forwarding device to instruct the first forwarding device to forward the network access application initiated by the terminal device using the dynamic MAC address to the target forwarding device.

[0160] The second sending module 604 is configured to send the device information of the first forwarding device to the target forwarding device to instruct the target forwarding device to receive and process the network access application forwarded by the first forwarding device.

[0161] Optionally, the first determining module 602 may include:

[0162] The first determining unit is configured to determine, based on the reported information, a second forwarding device among the forwarding devices connected to the server, the number of terminals accessed using dynamic MAC addresses not reaching a threshold.

[0163] The second determining unit is configured to determine the second forwarding device as the target forwarding device when there is only one second forwarding device.

[0164] The third determining unit is configured to, when there are multiple second forwarding devices, determine the forwarding device with the least number of terminals accessed using dynamic MAC addresses among the second forwarding devices as the target forwarding device.

[0165] Optionally, the device may further include:

[0166] The fourth receiving module is configured to receive a first query request input by a user.

[0167] The display module is configured to display first information according to the first query request.

[0168] The first information includes: a second MAC address, a device status of a second terminal corresponding to the second MAC address, and an IP address of a third forwarding device storing the second MAC address.

[0169] In an embodiment of the present invention, for a first forwarding device, when the number of terminals accessing it using dynamic MAC addresses reaches a threshold and the network access application sent by the new terminal device cannot be forwarded to the server for managing network access, the first forwarding device can report its own situation to the server for managing the forwarding device. The server determines a target forwarding device among the forwarding devices it manages that can forward the network access application to the server for managing network access, and informs the first forwarding device of the device information of the target forwarding device, so that the first forwarding device can send the network access application to the target forwarding device, and the target forwarding device processes the network access application, thereby enabling the network access application to be forwarded to the server for managing network access, so that the terminal device can access the corresponding network.

[0170] In this embodiment of the present invention, based on an ad hoc network between forwarding devices, even if a forwarding device is unable to process a terminal device's network access application, the terminal device that sent the network access application can still access the corresponding network without manually configuring the terminal's MAC address in the forwarding device. Furthermore, in this embodiment of the present invention, the server coordinates and manages the re-handling of network access applications, facilitating load balancing between forwarding devices and improving the network access success rate for terminal devices.

[0171] Reference Figure 7 , shows a structural block diagram of an embodiment of a data processing device of the present invention, which is applied to a forwarding device and may specifically include the following modules:

[0172] The second receiving module 701 is configured to receive a network access application sent by a first terminal.

[0173] The network access application includes the first MAC address of the first terminal.

[0174] The judgment module 702 is configured to judge whether the number of terminals accessed using dynamic MAC addresses reaches a threshold when it is determined that the access mode of the first terminal is dynamic MAC address access based on the first MAC address.

[0175] The third sending module 703 is configured to send a report message to the server if the number of terminals accessed using dynamic MAC addresses reaches a threshold, so as to notify the server that the number of terminals accessed using dynamic MAC addresses reaches the threshold.

[0176] The third receiving module 704 is configured to receive device information of a target forwarding device fed back by the server; wherein the target forwarding device is a forwarding device to which the number of terminals accessed using dynamic MAC addresses does not reach a threshold.

[0177] The fourth sending module 705 is configured to forward the network access application sent by the first terminal to the target forwarding device, so that the target forwarding device processes the network access application.

[0178] Optionally, the device may further include:

[0179] The detection module is used to detect the device status of a third terminal accessed using a dynamic MAC address.

[0180] The deleting module is configured to delete the stored MAC address of the third terminal when the device status of the third terminal is offline.

[0181] Optionally, the detection module may include:

[0182] The detection unit is configured to determine that the device status of the third terminal is an offline state when detecting that no heartbeat data packet sent by the third terminal is received within a first preset time period.

[0183] The first preset time length is greater than the second preset time length, and the second preset time length is the interval length of each time the third terminal sends a heartbeat data packet to the forwarding device.

[0184] In an embodiment of the present invention, for a forwarding device, when the number of terminals accessing it using dynamic MAC addresses reaches a threshold and the network access application sent by the new terminal device cannot be forwarded to the server for managing network access, the forwarding device can report its own situation to the server for managing the forwarding device. The server determines a target forwarding device among the forwarding devices it manages that can forward the network access application to the server for managing network access, and informs the forwarding device of the device information of the target forwarding device, so that the forwarding device can send the network access application to the target forwarding device, and the target forwarding device processes the network access application, thereby enabling the network access application to be forwarded to the server for managing network access, so that the terminal device can access the corresponding network.

[0185] In this embodiment of the present invention, based on an ad hoc network between forwarding devices, even if a forwarding device is unable to process a terminal device's network access application, the terminal device that sent the network access application can still access the corresponding network without manually configuring the terminal's MAC address in the forwarding device. Furthermore, in this embodiment of the present invention, the server coordinates and manages the re-handling of network access applications, facilitating load balancing between forwarding devices and improving the network access success rate for terminal devices.

[0186] As for the device 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.

[0187] According to one aspect of an embodiment of the present invention, an electronic device is also provided, including: a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the data processing method described above are implemented.

[0188] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program for implementing the data processing method described above.

[0189] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0190] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatus, or computer program products. Thus, embodiments of the present invention may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0191] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the 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 the 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 terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the process 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.

[0192] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0193] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0194] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0195] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

Claims

1. A data processing method, applied to a forwarding device management server, characterized in that: The method comprises: Receive reporting information sent by the first forwarding device; wherein the reporting information is used to indicate that the number of terminals accessed by the first forwarding device using dynamic MAC addresses has reached a threshold; According to the reported information, among the forwarding devices connected to the server, a forwarding device whose number of terminals connected using dynamic MAC addresses does not reach a threshold is determined as a target forwarding device; Sending the device information of the target forwarding device to the first forwarding device to instruct the first forwarding device to forward the network access request initiated by the terminal device using the dynamic MAC address to the target forwarding device; Sending the device information of the first forwarding device to the target forwarding device to instruct the target forwarding device to receive and process the network access request forwarded by the first forwarding device; Receive the network access request sent by the target forwarding device, and forward the network access request to the network access management server, so that the network access management server processes the network access request and connects the terminal device to the network; the target forwarding device learns the MAC address of the terminal device in the network access request, adds the MAC address of the terminal device to the dynamic MAC table set by the target forwarding device, and forwards the network access request to the forwarding device management server.

2. The data processing method according to claim 1, wherein: The step of determining, according to the reported information, among the forwarding devices connected to the server, a forwarding device whose number of terminals connected using dynamic MAC addresses does not reach a threshold as a target forwarding device includes: Determine, based on the reported information, a second forwarding device among the forwarding devices connected to the server, the number of terminals accessed using dynamic MAC addresses not reaching a threshold; In a case where there is only one second forwarding device, determining the second forwarding device as the target forwarding device; In the case that there are multiple second forwarding devices, the forwarding device with the least number of terminals accessed using dynamic MAC addresses among the second forwarding devices is determined as the target forwarding device.

3. The data processing method according to claim 1 or 2, characterized in that: The method further comprises: receiving a first query request input by a user; Displaying first information according to the first query request; The first information includes: a second MAC address, a device status of a second terminal corresponding to the second MAC address, and an IP address of a third forwarding device storing the second MAC address.

4. A data processing method, applied to a forwarding device, characterized in that: The method comprises: Receiving a network access request sent by a first terminal; wherein the network access request includes a first MAC address of the first terminal; When determining, based on the first MAC address, that the access mode of the first terminal is dynamic MAC address access, determining whether the number of terminals accessed using dynamic MAC addresses reaches a threshold; If the number of terminals accessed using dynamic MAC addresses reaches a threshold, a report message is sent to the forwarding device management server to notify the forwarding device management server that the number of terminals accessed using dynamic MAC addresses reaches the threshold; Receiving device information of a target forwarding device fed back by the forwarding device management server; wherein the target forwarding device is a forwarding device to which the number of terminals accessed using dynamic MAC addresses does not reach a threshold; The network access request sent by the first terminal is forwarded to the target forwarding device, so that the target forwarding device learns the MAC address of the first terminal device in the network access request, adds the MAC address of the first terminal device to the dynamic MAC table set by the target forwarding device, and forwards the network access request to the forwarding device management server. The forwarding device management server receives the network access request sent by the target forwarding device and forwards the network access request to the network access management server. The network access management server processes the network access request and connects the first terminal device to the network.

5. The data processing method according to claim 4, characterized in that: The method further comprises: Detecting the device status of a third terminal accessed using a dynamic MAC address; When the device status of the third terminal is offline, the stored MAC address of the third terminal is deleted.

6. The data processing method according to claim 5, characterized in that: The detecting the device status of the third terminal accessed using the MAC address includes: When detecting that no heartbeat data packet sent by the third terminal is received within a first preset time period, determining that the device state of the third terminal is an offline state; The first preset time length is greater than the second preset time length, and the second preset time length is the interval length of each time the third terminal sends a heartbeat data packet to the forwarding device.

7. A data processing device, applied to a forwarding device management server, characterized in that: The device comprises: A first receiving module is configured to receive reporting information sent by a first forwarding device, wherein the reporting information is used to indicate that the number of terminals accessed by the first forwarding device using dynamic MAC addresses has reached a threshold; A first determining module is configured to determine, based on the reported information, among the forwarding devices connected to the server, a forwarding device whose number of terminals accessed using dynamic MAC addresses does not reach a threshold as a target forwarding device; A first sending module, configured to send device information of the target forwarding device to the first forwarding device, so as to instruct the first forwarding device to forward a network access request initiated by a terminal device accessed using a dynamic MAC address to the target forwarding device; a second sending module, configured to send the device information of the first forwarding device to the target forwarding device, so as to instruct the target forwarding device to receive and process the network access request forwarded by the first forwarding device; The forwarding device management server is used to receive the network access request sent by the target forwarding device, and forward the network access request to the network access management server so that the network access management server processes the network access request and connects the terminal device to the network; the network access request is learned by the target forwarding device from the MAC address of the terminal device in the network access request, the MAC address of the terminal device is added to the dynamic MAC table set by the target forwarding device, and the network access request is forwarded to the forwarding device management server.

8. A data processing device, applied to a forwarding device, characterized in that: The device comprises: A second receiving module is configured to receive a network access request sent by a first terminal; wherein the network access request includes a first MAC address of the first terminal; a judging module, configured to, when determining, based on the first MAC address, that the access mode of the first terminal is dynamic MAC address access, judge whether the number of terminals accessed using dynamic MAC addresses reaches a threshold; A third sending module is configured to send a reporting message to a forwarding device management server if the number of terminals accessed using dynamic MAC addresses reaches a threshold, so as to notify the forwarding device management server that the number of terminals accessed using dynamic MAC addresses reaches the threshold; A third receiving module is configured to receive device information of a target forwarding device fed back by the forwarding device management server; wherein the target forwarding device is a forwarding device to which the number of terminals accessed using dynamic MAC addresses does not reach a threshold; The fourth sending module is used to forward the network access request sent by the first terminal to the target forwarding device, so that the target forwarding device learns the MAC address of the first terminal device in the network access request, adds the MAC address of the first terminal device to the dynamic MAC table set by the target forwarding device, and forwards the network access request to the forwarding device management server. The forwarding device management server receives the network access request sent by the target forwarding device and forwards the network access request to the network access management server. The network access management server processes the network access request and connects the first terminal device to the network.

9. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the data processing method according to any one of claims 1 to 3 or claims 4 to 6 are implemented.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program for implementing the data processing method according to any one of claims 1 to 3 or claims 4 to 6.