Network communication method, system, storage medium and switch based on Full-Mesh networking
By synchronizing the DHCP Snooping binding table in the Full-Mesh network, the communication interruption problem caused by wireless terminal roaming is solved, and the communication continuity and efficiency improvement is achieved.
Patent Information
- Application Number
- CN202210994067.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-18
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-08-18
AI Technical Summary
In large regional networks, the traditional three-layer network architecture fails to effectively handle the roaming of wireless terminals, resulting in the synchronization of DHCP Snooping binding tables between switches, resulting in communication interruption, packet loss and delay, reducing communication efficiency .
In the Full-Mesh networking, through the communication connection between the DHCP server, multiple access switches and at least one aggregation switch, the client determines the target access switch among the multiple access switches, constructs the DHCP Snooping binding table and performs the full Network synchronization ensures that network communication can be performed based on pre-synchronized binding tables when users roam.
It realizes communication continuity and efficiency improvement when users roam, avoids communication interruptions caused by reapplying IP addresses, and improves the stability and efficiency of network communication.
Smart Images

Figure CN115460160B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a network communication method, system, storage medium and switch based on Full-Mesh networking. Background Art
[0002] Large-scale regional networks generally adopt a three-layer network architecture of access, aggregation, and core. This network has at least one core switch, two aggregation switches, and multiple access switches to form a Full-Mesh network. This network must have the functional characteristics of terminal user IP address security and terminal user roaming.
[0003] In order to realize the functional characteristics of the above-mentioned large campus network, DHCP Snooping technology is used to achieve IP address security, that is, a DHCP Snooping binding table is generated on the access switch; and the DHCP Snooping binding table synchronization method is used to realize roaming of terminal users in the network.
[0004] Among them, DHCP Snooping means DHCP (Dynamic Host Configuration Protocol) snooping, which monitors the usage of user IP addresses by snooping on the DHCP interaction messages between the DHCP client and the DHCP server.
[0005] The traditional three-layer network architecture does not take into account the roaming of wireless terminals, that is, the DHCP Snooping binding table only exists on the access switch that generates the binding table. When terminal user U goes online on access switch A, A generates the DHCP Snooping binding table of user U. At this time, when user U is communicating in real time and roams to the new access switch B to go online, since switch B does not have the DHCP Snooping binding table of user U, user U is considered a new user in the network. Switch B reassigns an IP address to user U and generates a new DHCP Snooping binding table. Since user U is assigned a new IP, communication interruption, packet loss, delay and other problems may occur, thereby reducing communication efficiency. Summary of the invention
[0006] The embodiments of the present application provide a network communication method, system, storage medium and switch based on Full-Mesh networking. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.
[0007] In a first aspect, an embodiment of the present application provides a network communication method based on Full-Mesh networking, wherein the Full-Mesh networking includes a DHCP server, multiple access switches, and at least one aggregation switch; the DHCP server is communicatively connected to the multiple access switches through at least one aggregation switch; the method includes:
[0008] When the client successfully applies for an IP address for Full-Mesh networking, the client determines the target access switch to which it is connected among multiple access switches for network communication;
[0009] The target access switch builds the DHCP Snooping binding table of the client, builds synchronization information based on the DHCP Snooping binding table, and sends it to the aggregation switch;
[0010] The aggregation switch performs synchronization operations according to the synchronization information, and forwards the synchronization information to switches other than the target access switch among the multiple access switches;
[0011] When the client connects to the second access switch from the target access switch, network communication is performed based on the synchronization information stored in the second access switch; wherein,
[0012] The second access switch is any one of the multiple access switches except the target access switch.
[0013] Optionally, build the client's DHCP Snooping binding table, including:
[0014] Get the response message from the DHCP server to the client when the IP address application is successful;
[0015] Extract VLAN information, MAC address, IP address, lease data, and interface from the reply message;
[0016] Generates the client's DHCP Snooping binding table based on VLAN information, MAC address, IP address, lease data, and interface, combined with data protocol.
[0017] Optionally, synchronization information is constructed based on the DHCP Snooping binding table, including:
[0018] Obtaining binding table operation information; wherein the binding table operation information includes adding a binding table policy and deleting a binding table policy;
[0019] Add the binding table operation information to the DHCP Snooping binding table to generate synchronization information.
[0020] Optionally, the target access switch includes a generation module, a synchronization module, and a storage module;
[0021] Build the client's DHCP Snooping binding table, build synchronization information based on the DHCP Snooping binding table, and send it to the aggregation switch, including:
[0022] The generation module obtains the response message from the DHCP server to the client when the IP address application is successful, and constructs a DHCP Snooping binding table according to the response message;
[0023] The generation module constructs synchronization information according to the DHCP Snooping binding table and sends the synchronization information to the synchronization module;
[0024] The synchronization module determines the binding table operation information according to the received synchronization information;
[0025] The storage module processes the operation information according to the binding table, and sends the synchronization information to the aggregation switch after the processing is completed.
[0026] Optionally, the storage module performs processing according to the binding table operation information, including:
[0027] When the binding table operation information is to add a binding table policy, the DHCP Snooping binding table is extracted from the synchronization information, and the storage module saves the DHCP Snooping binding table;
[0028] or,
[0029] When the binding table operation information is to delete the binding table policy, the storage module deletes the DHCP Snooping binding table in the local database according to the synchronization information.
[0030] Optionally, the synchronization information is sent to the aggregation switch, including:
[0031] When there are multiple aggregation switches in a Full-Mesh network, count the number of access switches connected to each aggregation switch to obtain the connection volume of each aggregation switch;
[0032] Determine the aggregation switch with the largest connection volume according to the connection volume of each aggregation switch;
[0033] Send synchronization information to the aggregation switch with the largest number of connections.
[0034] Optionally, the method further includes:
[0035] When any first access switch among multiple access switches in the Full-Mesh network is restarted or a new first access switch is added, the first access switch generates full synchronization information of the binding table;
[0036] The first access switch determines the aggregation switch with the largest number of connections in the Full-Mesh network;
[0037] The first access switch sends the full synchronization information of the binding table to the aggregation switch with the largest number of connections to make a synchronization request;
[0038] The aggregation switch with the largest number of connections packages all local DHCP Snooping binding tables and sends them to the first access switch;
[0039] The first access switch extracts all received DHCP Snooping binding tables one by one.
[0040] In a second aspect, an embodiment of the present application provides a network communication system based on Full-Mesh networking, the system includes Full-Mesh networking, the Full-Mesh networking includes a DHCP server, multiple access switches and at least one aggregation switch; the DHCP server and the multiple access switches are communicatively connected through at least one aggregation switch; the system includes:
[0041] When the client successfully applies for an IP address for Full-Mesh networking, the client determines the target access switch to which it is connected among multiple access switches for network communication;
[0042] The target access switch builds the DHCP Snooping binding table of the client, builds synchronization information based on the DHCP Snooping binding table, and sends it to the aggregation switch;
[0043] The aggregation switch performs synchronization operations according to the synchronization information, and forwards the synchronization information to switches other than the target access switch among the multiple access switches;
[0044] When the client connects to the second access switch from the target access switch, network communication is performed based on the synchronization information stored in the second access switch; wherein,
[0045] The second access switch is any one of the multiple access switches except the target access switch.
[0046] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0047] In a fourth aspect, an embodiment of the present application provides a switch, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0048] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0049] In the embodiment of the present application, first, when the client successfully applies for an IP address for Full-Mesh networking, the target access switch to which it is connected is determined among multiple access switches for network communication, and then the target access switch builds the client's DHCP Snooping binding table, builds synchronization information according to the DHCP Snooping binding table, and sends it to the aggregation switch. Secondly, the aggregation switch performs synchronization operations according to the synchronization information, and forwards the synchronization information to switches other than the target access switch among multiple access switches. Finally, when the client connects from the target access switch to the second access switch, network communication is performed based on the synchronization information stored in the second access switch. Since the present application synchronizes the DHCP Snooping binding table of each client in the entire network in the Full-Mesh networking, when the user roams from the current switch to another switch, network communication can be performed based on the pre-synchronized DHCP Snooping binding table, ensuring that communication is not interrupted and improving communication efficiency.
[0050] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0052] Figure 1 It is a method flow diagram of a network communication method based on Full-Mesh networking provided in an embodiment of the present application;
[0053] Figure 2 It is a structural diagram of a network communication system based on Full-Mesh networking provided in an embodiment of the present application;
[0054] Figure 3 This is a schematic diagram of a switch structure provided in an embodiment of the present application;
[0055] Figure 4 It is a schematic diagram of a program product provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.
[0057] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are only examples of devices and methods consistent with some aspects of the present invention as detailed in the attached claims.
[0059] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In addition, in the description of the present invention, unless otherwise specified, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.
[0060] The present application provides a network communication method, system, storage medium and DHCP server based on Full-Mesh networking to solve the problems existing in the above-mentioned related technical problems. Since the present application synchronizes the DHCP Snooping binding table of each client in the full-Mesh networking, when the user roams from the current switch to another switch, the network communication can be carried out based on the pre-synchronized DHCP Snooping binding table, ensuring that the communication is not interrupted and improving the communication efficiency. The following exemplary embodiments are used for detailed description.
[0061] The following will be combined with the attached Figure 1 -Attached Figure 2 , a network communication method based on Full-Mesh networking provided in an embodiment of the present application is introduced in detail. The method can be implemented by a computer program and can be run on a network communication device based on Full-Mesh networking based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0062] See also Figure 1, provides a flow chart of a network communication method based on Full-Mesh networking for an embodiment of the present application. Figure 1 As shown, the method of the embodiment of the present application may include the following steps:
[0063] S101, when the client successfully applies for an IP address for Full-Mesh networking, the client determines a target access switch to which it is connected from among multiple access switches for network communication;
[0064] The Full-Mesh network includes a DHCP server, multiple access switches, and at least one aggregation switch; the DHCP server is communicatively connected with the multiple access switches through the at least one aggregation switch.
[0065] For example Figure 2 As shown, Figure 2 It is a Full-Mesh network deployed in a large campus or a fixed area. The network consists of a core layer, a convergence layer, and an access layer. The core layer includes a DHCP server, the convergence layer includes multiple convergence switches (Spine), and the access layer includes multiple access switches (Leaf). User terminals or clients access the DHCP server on each Leaf to communicate with the network, and then the user can access the Internet.
[0066] For example, access switches are deployed in different small areas of a large campus or a fixed area. In the prior art, when a user client leaves a small area, the client goes offline from the access switch in the area, and normal communication can only be restored when the client goes online on the access switch in another area. Since the access switch in another area requires the user to perform a DHCP process to obtain an IP address, communication interruption occurs, reducing communication efficiency.
[0067] In the embodiment of the present application, when the client applies for an IP address for Full-Mesh networking, a typical process of the client obtaining an IP address is as follows:
[0068] 1. The client sends a DHCPDISCOVER broadcast message to the DHCP Server. If the client does not receive a response from the server within a certain period of time, it resends the DHCPDISCOVER message.
[0069] 2. After receiving the DHCPDISCOVER message, the DHCP server assigns an IP address to the client according to a certain strategy, and then sends a DHCPOFFER message.
[0070] 3. After receiving the DHCPOFFER message, the client sends a DHCPREQUEST request to request to lease an IP address in the DHCP server's address pool and notify other servers that it has accepted the IP address assigned by this DHCP server.
[0071] 4. The DHCP server receives the DHCPREQUEST message and verifies whether the resource can be allocated. If it can be allocated, it sends a DHCPACK message; if it cannot be allocated, it sends a DHCPNAK message. After the client receives the DHCPACK message, it starts to use the IP address assigned by the DHCP server. If it receives a DHCPNAK, it resends the DHCPDISCOVER message.
[0072] In a possible implementation, when the client successfully applies for an IP address for Full-Mesh networking, the client then determines the target access switch to which it is connected among multiple access switches for network communication, and the client can successfully access the Internet.
[0073] S102, the target access switch constructs a DHCP Snooping binding table of the client, constructs synchronization information according to the DHCP Snooping binding table, and sends it to the aggregation switch;
[0074] In the embodiment of the present application, when the target access switch constructs the DHCP Snooping binding table of the client, the target access switch first obtains the response message of the DHCP server to the client when the IP address application is successful, and then extracts the VLAN information, MAC address, IP address, lease data and interface in the response message, and finally generates the DHCP Snooping binding table of the client according to the VLAN information, MAC address, IP address, lease data and interface, and in combination with the data protocol.
[0075] In the embodiment of the present application, when building synchronization information according to the DHCP Snooping binding table, firstly obtain the binding table operation information; wherein the binding table operation information includes adding a binding table policy and deleting a binding table policy, and then add the binding table operation information to the DHCP Snooping binding table to generate synchronization information.
[0076] In a possible implementation, the target access switch includes a generation module, a synchronization module, and a storage module; first, the generation module obtains a response message from the DHCP server to the client when the IP address application is successful, and builds a DHCP Snooping binding table according to the response message, then the generation module builds synchronization information according to the DHCP Snooping binding table, and sends the synchronization information to the synchronization module, then the synchronization module determines the binding table operation information according to the received synchronization information, and finally the storage module processes according to the binding table operation information, and sends the synchronization information to the aggregation switch after the processing is completed.
[0077] Specifically, when the storage module processes according to the binding table operation information, when the binding table operation information is to add a binding table policy, the DHCP Snooping binding table is extracted from the synchronization information, and the storage module saves the DHCP Snooping binding table; or, when the binding table operation information is to delete the binding table policy, the storage module deletes the DHCP Snooping binding table in the local database according to the synchronization information.
[0078] Specifically, when the synchronization information is sent to the aggregation switch, when there are multiple aggregation switches in the Full-Mesh network, the number of access switches connected to each aggregation switch is first counted to obtain the connection volume of each aggregation switch, and then the aggregation switch with the largest connection volume is determined according to the connection volume of each aggregation switch, and finally the synchronization information is sent to the aggregation switch with the largest connection volume.
[0079] For example, after the client successfully applies for an IP, the generation module in the access switch extracts information from the response message from the DHCP server, forms a DHCP Snooping binding table based on the information, and is saved locally by the storage module, and generates synchronization information for adding the binding table and sends it to the synchronization module. 2 After the synchronization module of the access switch receives the synchronization information of the DHCP Snooping binding table, if it is determined that the synchronization information is information for adding the binding table, the DHCP Snooping binding table is extracted and saved locally by the storage module; if it is determined that the synchronization information is information for deleting the binding table, the local binding table is deleted by the storage module. According to the connection quantity information of the cached aggregation switch, the information is sent to the aggregation switch with the largest number of connections.
[0080] S103, the aggregation switch performs synchronization operation according to the synchronization information, and forwards the synchronization information to switches other than the target access switch among the multiple access switches;
[0081] In a possible implementation, after the synchronization module of the aggregation switch receives the DHCP Snooping binding table synchronization information, if it is determined according to the synchronization information that the binding table information is to be added, the DHCP Snooping binding table is extracted from the synchronization information and saved locally by the storage module; if it is determined according to the synchronization information that the binding table information is to be deleted, the local binding table is deleted by the storage module. At the same time, the above DHCP Snooping binding table synchronization information is forwarded to other access switches and aggregation switches in the Full-Mesh network. When the synchronization modules of other access switches or aggregation switches receive the DHCP Snooping binding table synchronization information from the aggregation switch, if it is determined according to the synchronization information that the binding table information is to be added, the DHCP Snooping binding table is extracted from the synchronization information and saved locally by the storage module; if it is determined according to the synchronization information that the binding table information is to be deleted, the local binding table is deleted by the storage module.
[0082] In another possible implementation, when any first access switch among multiple access switches in the Full-Mesh network is restarted or a newly added first access switch exists, the first access switch generates binding table full synchronization information. First, the first access switch determines the aggregation switch with the largest number of connections in the Full-Mesh network. Then, the first access switch sends the binding table full synchronization information to the aggregation switch with the largest number of connections for synchronization request. Secondly, the aggregation switch with the largest number of connections packages all local DHCP Snooping binding tables and sends them to the first access switch. Finally, the first access switch extracts all received DHCP Snooping binding tables one by one.
[0083] It should be noted that in a Full-Mesh network, any access switch is connected to at least one aggregation switch, and the DHCP Snooping function is enabled on the access switch. When any access switch detects that the downstream terminal device has DHCP interaction and is assigned a valid IP address, a DHCP Snooping binding table will be generated and stored locally, and the DHCP Snooping binding table will be synchronized to all aggregation switches and access switches in the entire network through steps S101 to S103.
[0084] Furthermore, in Full-Mesh networking, configuration modules need to be configured in advance: 1) Configure the switch role as an access or aggregation switch. 2) Configure the switch networking information. Peers: Access switches or aggregation switches are peers. Neighbors: Access switches and aggregation switches are neighbors. Access switches need to configure the directly connected aggregation switches as neighbors, and aggregation switches need to configure the directly connected access switches as neighbors. Other aggregation switches in the network are configured as peers.
[0085] S104, when the client is connected from the target access switch to the second access switch, network communication is performed based on the synchronization information stored in the second access switch;
[0086] The second access switch is any one of the multiple access switches except the target access switch.
[0087] In the embodiment of the present application, after the DHCP Snooping binding table is synchronized to all aggregation switches and access switches in the entire network, when the client connects to the second access switch from the target access switch, since the DHCP Snooping binding table of the client is pre-stored on the second access switch, network communication can be quickly performed according to the information in the binding table.
[0088] By adopting the technical method provided by the embodiment of the present invention, the synchronization function of all DHCP Snooping binding tables in the entire Full-Mesh network can be realized, ensuring that the terminal equipment does not need to reapply for an IP address when roaming in the park, ensuring the continuity and security of communication, and utilizing the backup function of multiple aggregation switches to improve the reliability of DHCP Snooping synchronization. And considering that the performance of access switches is often not high, this method transfers the synchronization pressure to the aggregation switch with higher performance to balance the performance and improve the efficiency and stability of the method.
[0089] In the embodiment of the present application, first, when the client successfully applies for an IP address for Full-Mesh networking, the target access switch to which it is connected is determined among multiple access switches for network communication, and then the target access switch builds the client's DHCP Snooping binding table, builds synchronization information according to the DHCP Snooping binding table, and sends it to the aggregation switch. Secondly, the aggregation switch performs synchronization operations according to the synchronization information, and forwards the synchronization information to switches other than the target access switch among multiple access switches. Finally, when the client connects from the target access switch to the second access switch, network communication is performed based on the synchronization information stored in the second access switch. Since the present application synchronizes the DHCP Snooping binding table of each client in the entire network in the Full-Mesh networking, when the user roams from the current switch to another switch, network communication can be performed based on the pre-synchronized DHCP Snooping binding table, ensuring that communication is not interrupted and improving communication efficiency.
[0090] For example Figure 2 As shown, an embodiment of the present application provides a network communication system based on Full-Mesh networking. The system of the embodiment of the present application includes: Full-Mesh networking, which includes a DHCP server, multiple access switches, and at least one aggregation switch; the DHCP server and the multiple access switches are connected in communication via at least one aggregation switch;
[0091] When the client successfully applies for an IP address for Full-Mesh networking, the client determines the target access switch to which it is connected among multiple access switches for network communication;
[0092] The target access switch builds the DHCP Snooping binding table of the client, builds synchronization information based on the DHCP Snooping binding table, and sends it to the aggregation switch;
[0093] The aggregation switch performs synchronization operations according to the synchronization information, and forwards the synchronization information to switches other than the target access switch among the multiple access switches;
[0094] When the client connects to the second access switch from the target access switch, network communication is performed based on the synchronization information stored in the second access switch; wherein,
[0095] The second access switch is any one of the multiple access switches except the target access switch.
[0096] In the embodiment of the present application, first, when the client successfully applies for an IP address for Full-Mesh networking, the target access switch to which it is connected is determined among multiple access switches for network communication, and then the target access switch builds the client's DHCP Snooping binding table, builds synchronization information according to the DHCP Snooping binding table, and sends it to the aggregation switch. Secondly, the aggregation switch performs synchronization operations according to the synchronization information, and forwards the synchronization information to switches other than the target access switch among multiple access switches. Finally, when the client connects from the target access switch to the second access switch, network communication is performed based on the synchronization information stored in the second access switch. Since the present application synchronizes the DHCP Snooping binding table of each client in the entire network in the Full-Mesh networking, when the user roams from the current switch to another switch, network communication can be performed based on the pre-synchronized DHCP Snooping binding table, ensuring that communication is not interrupted and improving communication efficiency.
[0097] The present invention also provides a computer-readable medium having program instructions stored thereon, and when the program instructions are executed by a processor, the network communication method based on Full-Mesh networking provided by the above-mentioned various method embodiments is implemented.
[0098] The present invention also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the network communication method based on Full-Mesh networking of the above-mentioned various method embodiments.
[0099] Please refer to Figure 3 , which shows a schematic diagram of a switch provided by some embodiments of the present application. Figure 3 As shown, the switch 2 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, and the processor 200, the communication interface 203 and the memory 201 are connected through the bus 202; the memory 201 stores a computer program that can be run on the processor 200, and when the processor 200 runs the computer program, it executes the network communication processing method based on Full-Mesh networking provided in any of the aforementioned embodiments of the present application.
[0100] The memory 201 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0101] The bus 202 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. Among them, the memory 201 is used to store programs, and the processor 200 executes the program after receiving the execution instruction. The network communication processing method based on Full-Mesh networking disclosed in any implementation of the aforementioned embodiment of the present application can be applied to the processor 200, or implemented by the processor 200.
[0102] The processor 200 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 200. The above processor 200 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 readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the above method in combination with its hardware.
[0103] The network communication based on Full-Mesh networking provided in the embodiment of the present application and the network communication processing method based on Full-Mesh networking provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented therein.
[0104] The present application also provides a computer-readable storage medium corresponding to the network communication method based on Full-Mesh networking provided in the above embodiment. Figure 4 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by the processor, the network communication method based on Full-Mesh networking provided by any of the aforementioned implementations will be executed.
[0105] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0106] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the network communication method based on Full-Mesh networking provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0107] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the network communication program based on Full-Mesh networking can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0109] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A network communication method based on Full-Mesh networking, It is characterized in that The Full-Mesh network includes a DHCP server, multiple access switches and at least one aggregation switch; The DHCP server is communicatively connected with a plurality of access switches through the at least one aggregation switch; the method comprises: When the client successfully applies for an IP address for the Full-Mesh networking, the client determines a target access switch to which the client is connected from among the multiple access switches for network communication; The target access switch constructs the DHCP Snooping binding table of the client, constructs synchronization information according to the DHCP Snooping binding table, and sends it to the aggregation switch; wherein, The target access switch includes a generation module, a synchronization module and a storage module; The step of constructing the DHCP Snooping binding table of the client, constructing synchronization information according to the DHCP Snooping binding table, and sending the synchronization information to the aggregation switch includes: The generating module obtains a response message from the DHCP server to the client when the IP address application is successful, and constructs a DHCP Snooping binding table according to the response message; The generating module constructs synchronization information according to the DHCP Snooping binding table, and sends the synchronization information to the synchronization module; The synchronization module determines the binding table operation information according to the received synchronization information; The storage module processes the binding table operation information, and sends the synchronization information to the aggregation switch after the processing is completed; wherein, The step of sending the synchronization information to the aggregation switch includes: When there are multiple aggregation switches in the Full-Mesh network, the number of access switches connected to each aggregation switch is counted to obtain the connection volume of each aggregation switch; Determine the aggregation switch with the largest connection volume according to the connection volume of each aggregation switch; Sending the synchronization information to the aggregation switch with the largest number of connections; The aggregation switch performs synchronization operation according to the synchronization information, and forwards the synchronization information to switches other than the target access switch among the multiple access switches; When the client is connected from the target access switch to the second access switch, network communication is performed based on the synchronization information stored in the second access switch; wherein, The second access switch is any one of the multiple access switches except the target access switch.
2. The method according to claim 1, It is characterized in that The step of constructing the DHCP Snooping binding table of the client includes: Obtaining a response message from the DHCP server to the client when the IP address application is successful; Extracting VLAN information, MAC address, IP address, lease data and interface from the response message; A DHCP Snooping binding table of the client is generated according to the VLAN information, MAC address, IP address, lease data and interface, and in combination with a data protocol.
3. The method according to claim 1, It is characterized in that The step of constructing synchronization information according to the DHCP Snooping binding table includes: Obtaining binding table operation information; wherein the binding table operation information includes adding a binding table policy and deleting a binding table policy; The binding table operation information is added to the DHCP Snooping binding table to generate synchronization information.
4. The method according to claim 1, It is characterized in that The storage module performs processing according to the binding table operation information, including: When the binding table operation information is to add a binding table policy, a DHCP Snooping binding table is extracted from the synchronization information, and the storage module saves the DHCP Snooping binding table; or, When the binding table operation information is a binding table deletion policy, the storage module deletes the DHCP Snooping binding table in the local database according to the synchronization information.
5. The method according to claim 1, It is characterized in that The method further comprises: When any first access switch among the plurality of access switches in the Full-Mesh network is restarted or a newly added first access switch exists, the first access switch generates full synchronization information of the binding table; The first access switch determines the aggregation switch with the largest number of connections in the Full-Mesh network; The first access switch sends the full synchronization information of the binding table to the aggregation switch with the largest connection quantity to make a synchronization request; The aggregation switch with the largest number of connections packages all local DHCP Snooping binding tables and sends them to the first access switch; The first access switch extracts all received DHCP Snooping binding tables one by one.
6. A computer storage medium, It is characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 5.
7. A switch, It is characterized in that include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 5.
