CN111131062A - Packet optimization method, terminal, device and storage medium - Google Patents

Packet optimization method, terminal, device and storage medium Download PDF

Info

Publication number
CN111131062A
CN111131062A CN201911410175.9A CN201911410175A CN111131062A CN 111131062 A CN111131062 A CN 111131062A CN 201911410175 A CN201911410175 A CN 201911410175A CN 111131062 A CN111131062 A CN 111131062A
Authority
CN
China
Prior art keywords
vtep
primary
group
grouping
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911410175.9A
Other languages
Chinese (zh)
Other versions
CN111131062B (en
Inventor
王晓成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201911410175.9A priority Critical patent/CN111131062B/en
Publication of CN111131062A publication Critical patent/CN111131062A/en
Application granted granted Critical
Publication of CN111131062B publication Critical patent/CN111131062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/15Flow control; Congestion control in relation to multipoint traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a packet optimization method, which comprises the following steps: the method comprises the steps of obtaining the total amount of VTEP nodes in a virtual extensible local area network VxLAN and IP addresses corresponding to the VTEP nodes, determining the primary quantity and the secondary quantity based on the total amount of the VTEP nodes, performing primary grouping and secondary grouping on the VTEP nodes in the VxLAN based on the primary quantity, the secondary quantity and the IP addresses corresponding to the VTEP nodes, and determining the primary VTEP group length of each primary grouping and the secondary VTEP group length of each secondary grouping respectively based on preset rules. The invention also discloses a device, a terminal and a storage medium. And performing secondary grouping on the VTEP nodes in the VxLAN according to the primary quantity and the secondary quantity to realize balanced grouping of the VETP nodes, realizing that each VTEP node shares the unicast message load of the VTEP group length based on a preset rule, and improving the network performance of the VxLAN.

Description

Packet optimization method, terminal, device and storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a packet optimization method, a terminal, an apparatus, and a storage medium.
Background
VXLAN (Virtual eXtensible Local Area Network) is one of NVO3(Network Virtualization over Layer 3) standard technologies defined by IETF, and is essentially a tunneling technology. Original data frames are encapsulated in UDP messages after VXLAN heads are added, and the UDP messages are forwarded in a transmission mode of a traditional IP network. And after the message reaches the destination end point, removing the outer-layer encapsulated part and delivering the original data frame to the destination terminal. VTEP (VXLAN Tunnel End Point, VXLAN Tunnel node) is a device directly connected to a terminal, and is responsible for VXLAN encapsulation and decapsulation of an original ethernet packet.
The messages encapsulated by the VXLAN are usually sent in a unicast mode among VTEP nodes with the same VNI, and the group leader in each VTEP group needs to unicast the messages to other VTEP nodes in the group. Currently, VTEP grouping schemes are typically grouped automatically according to network segments, or manually. Manual grouping can be reasonably well distributed, but requires manual configuration, which is complicated. The nodes of the VTEP are automatically grouped according to the network segment, so that the phenomenon of unreasonable grouping can occur to the nodes of the VTEP, the load of part of VTEP group lengths is high due to the grouping of the VTEP, performance bottleneck occurs, and the performance of each node can not be fully exerted.
Disclosure of Invention
The invention mainly aims to provide a packet optimization method, a terminal, a device and a storage medium, aiming at solving the technical problems that the existing VTEP packet is unreasonable, so that part of VTEP group length loads are high and performance bottlenecks occur.
In order to achieve the above object, the present invention provides a packet optimization method applied to a terminal, the packet optimization method including the steps of:
acquiring the total quantity of VTEP nodes in a virtual extensible local area network VxLAN and the IP addresses corresponding to the VTEP nodes;
determining a primary quantity and a secondary quantity based on the total quantity of the VTEP nodes;
performing primary grouping and secondary grouping on the VTEP nodes in the VxLAN based on the primary number, the secondary number and the IP addresses corresponding to the VTEP nodes respectively;
and respectively determining a primary VTEP group length corresponding to each primary group and a secondary VTEP group length corresponding to each secondary group based on a preset rule.
Further, in one embodiment, the step of determining a primary number and a secondary number based on the total number of VTEP nodes includes:
acquiring a preset grouping comparison table;
and searching and acquiring the primary quantity and the secondary quantity corresponding to the total quantity of the VTEP nodes in the preset grouping comparison table.
Further, in an embodiment, the step of performing first-stage grouping and second-stage grouping on the VTEP nodes in the VxLAN based on the first-stage number, the second-stage number, and the respective IP addresses of the VTEP nodes includes:
sequencing the VTEP nodes based on the IP addresses corresponding to the VTEP nodes respectively to obtain the sequenced VTEP nodes;
and performing primary grouping and secondary grouping on the sequenced VTEP nodes based on the primary quantity and the secondary quantity.
Further, in an embodiment, the step of performing primary grouping and secondary grouping on the sorted VTEP nodes based on the primary number and the secondary number includes:
based on the first-level number, carrying out average grouping on the sequenced VTEP nodes to obtain each first-level group, wherein the number of the VTEP nodes in the first-level group is equal to the first-level number;
and respectively carrying out secondary grouping on each primary grouping based on the secondary quantity to obtain each secondary grouping.
Further, in an embodiment, the step of performing second-level grouping on each first-level packet based on the second-level number to obtain each second-level packet includes:
and respectively carrying out average grouping on each first-level group based on the second-level number to obtain a second-level group corresponding to each first-level group, wherein the number of VTEP nodes in the second-level group is equal to the second-level number.
Further, in an embodiment, the step of numbering the positions of the sorted VTEP nodes, and determining the primary VTEP group length corresponding to each primary group and the secondary VTEP group length corresponding to each secondary group based on a preset rule includes:
determining a primary VTEP group length of each primary group corresponding to each VTEP node based on the position number of each VTEP node;
and determining the second-level VTEP group length of the second-level group corresponding to each first-level group based on the position number of each VTEP node.
Further, in an embodiment, the primary VTEP group leader unicasts the received packet to each secondary VTEP group leader in the primary packet, and the secondary VTEP group leader unicasts the packet to other VTEP nodes in the secondary packet.
Further, in an embodiment, the packet optimization apparatus includes:
the acquisition module is used for acquiring the total number of VTEP nodes in the VxLAN and the IP addresses corresponding to the VTEP nodes;
a determining module, configured to determine a primary quantity and a secondary quantity based on a total quantity of the VTEP nodes;
the grouping module is used for carrying out primary grouping and secondary grouping on the VTEP nodes in the VxLAN based on the primary number, the secondary number and the IP addresses corresponding to the VTEP nodes respectively;
and the specifying module is used for respectively determining a primary VTEP group length corresponding to each primary group and a secondary VTEP group length corresponding to each secondary group based on a preset rule.
In order to achieve the above object, the present invention further provides a terminal, including: a memory, a processor and a packet optimization program stored on the memory and executable on the processor, the packet optimization program when executed by the processor implementing the steps of the packet optimization method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a group optimization program stored thereon, where the group optimization program is executed by a processor to implement the steps of the group optimization method according to any one of the above.
The method comprises the steps of obtaining the total amount of VTEP nodes in a virtual extensible local area network VxLAN and IP addresses corresponding to the VTEP nodes, determining the primary quantity and the secondary quantity based on the total amount of the VTEP nodes, performing primary grouping and secondary grouping on the VTEP nodes in the VxLAN based on the primary quantity, the secondary quantity and the IP addresses corresponding to the VTEP nodes, and finally determining the primary VTEP group length corresponding to the primary grouping and the secondary VTEP group length corresponding to the secondary grouping based on a preset rule. And performing secondary grouping on the VTEP nodes in the VxLAN according to the primary quantity and the secondary quantity to realize balanced grouping of the VETP nodes, realizing that each VTEP node shares the unicast message load of the VTEP group length based on a preset rule, and improving the network performance of the VxLAN.
Drawings
Fig. 1 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a packet optimization method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a packet optimization method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a VTEP1 message replication process in an embodiment of the packet optimization method of the present invention;
fig. 5 is a functional block diagram of an embodiment of the packet optimization apparatus of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a packet optimization program therein.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a user terminal and performing data communication with the user terminal; and processor 1001 may be used to invoke a packet optimization program stored in memory 1005.
In this embodiment, the terminal includes: the system comprises a memory 1005, a processor 1001 and a group optimization program stored in the memory 1005 and capable of running on the processor 1001, wherein the processor 1001 executes the steps of the group optimization method provided by the embodiments of the present application when calling the group optimization program stored in the memory 1005.
The invention also provides a packet optimization method, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the packet optimization method of the invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than presented herein.
The packet optimization method according to the first embodiment of the present invention is applied to a terminal, and a plurality of terminal devices are in communication connection with a server, and in this embodiment, the packet optimization method includes:
step S100, acquiring the total amount of VTEP nodes in a virtual extensible local area network VxLAN and IP addresses corresponding to the VTEP nodes;
in this embodiment, VXLAN is a network virtualization technology, which can improve the problem of expansion of large cloud computing during deployment, and is an expansion of VLAN. VXLAN is a powerful tool that can extend two layers across a three-layer network. It can address the portability limitation of VMS (virtual memory system) by encapsulating traffic and extending it to a third tier gateway, making it accessible to servers on external IP subnets.
As described above, the packets encapsulated by VXLAN are usually sent in a unicast manner between VTEP nodes having the same VNI, and the group leader in each VTEP group needs to unicast the packets to other VTEP nodes in the group. VTEP grouping schemes typically group automatically according to network segments, or manually. Manual grouping can be reasonably well distributed, but requires manual configuration, which is complicated. The nodes of the VTEP are automatically grouped according to the network segment, so that the phenomenon of unreasonable grouping can occur to the nodes of the VTEP, the load of part of VTEP group lengths is high due to the grouping of the VTEP, performance bottleneck occurs, and the performance of each node can not be fully exerted. In order to solve the problems, the invention provides a packet optimization method, which carries out secondary grouping on VTEP nodes in the VxLAN according to the primary quantity and the secondary quantity, realizes balanced grouping of VETP nodes, realizes that each VTEP node shares unicast message load of a VTEP group length based on a preset rule, and improves the network performance of the VxLAN.
Specifically, in order to reasonably group the VETP nodes, the number of all VTEP nodes, that is, the total number of VTEP nodes, is obtained in the virtual extensible local area network VxLAN, and the IP addresses corresponding to the VTEP nodes are obtained.
Step S200, determining the primary quantity and the secondary quantity based on the total quantity of the VTEP nodes;
in this embodiment, first-stage grouping is performed on all VTEP nodes in the virtual extensible local area network VxLAN, and then second-stage grouping is performed in each first-stage grouping, where the number of VTEP nodes included in each first-stage grouping is equal to the number of first stages, and the number of VTEP nodes included in each second-stage grouping is equal to the number of second stages. And determining the primary quantity and the secondary quantity according to the total quantity of the VTEP nodes.
Specifically, step S200 includes:
step S210, acquiring a preset grouping comparison table;
step S220, searching and obtaining the primary quantity and the secondary quantity corresponding to the total quantity of the VTEP nodes in the preset grouping comparison table.
In this embodiment, grouping the VTEP nodes and performing the second-stage grouping are performed to realize that each VTEP node shares the unicast packet load of the VTEP group length, so it is particularly critical how to determine a reasonable first-stage number and second-stage number.
Specifically, the primary quantity and the secondary quantity determining method may be: performing primary grouping according to the total number of VTEP nodes by using an exhaustion method, and if the total number is averagely divided into 2 groups, 3 groups, 4 groups and 5 groups, performing secondary grouping on the primary grouping, averagely dividing the primary grouping into 2 groups, 3 groups and 4 groups, counting the sum of unicast times of the primary VTEP group under the respective grouping conditions, selecting the grouping condition with the minimum unicast times, and recording the number of VTEP members in the primary grouping as the primary number; and recording the number of VTEP members in the second-level grouping as a second-level number, and storing the total number of VTEP nodes, the first-level number and the second-level number in a preset grouping comparison table in an associated manner.
When the primary quantity and the secondary quantity are determined according to the total quantity of the VTEP nodes, the corresponding primary quantity and the corresponding secondary quantity are searched in the preset grouping comparison table according to the total quantity of the VTEP nodes by acquiring the preset grouping comparison table.
Step S300, performing primary grouping and secondary grouping on the VTEP nodes in the VxLAN based on the primary number, the secondary number and the IP addresses corresponding to the VTEP nodes respectively;
in this embodiment, the VTEP nodes are sorted first, and then are grouped in the first stage according to the first-stage number, and then are grouped in the second stage according to the second-stage number.
Specifically, step S300 includes:
step S310, sorting the VTEP nodes based on the respective corresponding IP addresses of the VTEP nodes to obtain sorted VTEP nodes;
in this embodiment, the IP address is used to identify a device on the network, and therefore, the IP address is composed of two parts, namely a network address and a host address. The network address may be used to identify the network on which the device is located, the network address being located in the front part of the IP address. When an organization or enterprise applies for an IP address, the obtained IP address is not a unique and identifiable network address. All devices on the same network have the same network address. The host address is located in the back segment of the IP address and can be used to identify devices on the network. Devices on the same network all have the same network address, and the devices are distinguished by host addresses.
Specifically, the VTEP nodes are sorted according to the respective corresponding IP addresses of the VTEP nodes, that is, host addresses of the VTEP nodes are sorted in an ascending order or a descending order to obtain sorted VTEP nodes, and each VTEP node is matched with an ID number, for example, the first VTEP node starts with a number of 1, 2, 3, and the corresponding VTEP node is denoted as VTEP1, VTEP2, VTEP 3.
And step S320, performing primary grouping and secondary grouping on the sorted VTEP nodes based on the primary quantity and the secondary quantity.
Specifically, step S320 includes:
step S321, based on the first-level number, performing average grouping on the sorted VTEP nodes to obtain each first-level group, wherein the number of the VTEP nodes in the first-level group is equal to the first-level number;
step S322, respectively performing secondary grouping on each primary grouping based on the secondary quantity to obtain each secondary grouping.
Specifically, step S322 includes: and respectively carrying out average grouping on each first-level group based on the second-level number to obtain a second-level group corresponding to each first-level group, wherein the number of VTEP nodes in the second-level group is equal to the second-level number.
In this embodiment, the first-stage grouping and the second-stage grouping are performed on the sorted VTEP nodes according to the first-stage number and the second-stage number, and the specific process is as follows: firstly, carrying out primary grouping on VTEP nodes, and taking a primary quantity of VTEP nodes as a first primary group from a first VTEP node in the sequenced VTEP nodes, and then taking a primary quantity of VTEP nodes as a second primary group, so as to realize the primary grouping on the VTEP nodes according to the rule; then, each first-level grouping is subjected to second-level grouping, the grouping rule is the same as that of the first-level grouping, namely, in one first-level grouping, from the first VTEP node, the VTEP nodes with the second quantity are taken as the first second-level grouping, and then the VTEP nodes with the second quantity are taken as the second-level grouping, so that the second-level grouping of the VTEP nodes is realized according to the rule.
Step S400, respectively determining a primary VTEP group length corresponding to each primary group and a secondary VTEP group length corresponding to each secondary group based on a preset rule.
In the present invention, the primary VTEP group leader of each primary group also serves as the secondary group leader within its corresponding secondary group. When a VTEP node receives a message, the message is firstly sent to a primary VTEP group leader of a primary group where the VTEP node is located, the primary VTEP group leader respectively unicasts the received message to each secondary VTEP group leader in the primary group, and the secondary VTEP group leader respectively unicasts the message to other VTEP nodes in the secondary group. In order to balance the unicast message load of the VTEP group leader, a primary VTEP group leader and a secondary VTEP group leader are respectively assigned under different VTEP nodes.
The packet optimization method provided in this embodiment obtains a total amount of VTEP nodes in a VxLAN of a virtual extensible local area network and IP addresses corresponding to the respective VTEP nodes, then determines a primary number and a secondary number based on the total amount of the VTEP nodes, then performs primary grouping and secondary grouping on the VTEP nodes in the VxLAN based on the primary number, the secondary number and the IP addresses corresponding to the respective VTEP nodes, and finally determines a primary VTEP group length corresponding to each primary grouping and a secondary VTEP group length corresponding to each secondary grouping based on a preset rule. And performing secondary grouping on the VTEP nodes in the VxLAN according to the primary quantity and the secondary quantity to realize balanced grouping of the VETP nodes, realizing that each VTEP node shares the unicast message load of the VTEP group length based on a preset rule, and improving the network performance of the VxLAN.
Based on the first embodiment, referring to fig. 3, a second embodiment of the packet optimization method of the present invention is proposed, in this embodiment, step S400 includes:
step S410, determining a primary VTEP group length of each primary group corresponding to each VTEP node based on the position number of each VTEP node;
step S420, based on the position number of each VTEP node, determining the second-level VTEP group length of the second-level group corresponding to each first-level group.
In the present invention, the primary VTEP group leader of each primary group also serves as the secondary group leader within its corresponding secondary group. In order to balance the unicast message load of the VTEP group leader, a primary VTEP group leader and a secondary VTEP group leader are respectively assigned under different VTEP nodes.
Specifically, after the sorted VTEP nodes are sorted, each VTEP node is matched with an ID number, the ID numbers are 1, 2 and 3 from the first VTEP node, remainder taking operation is carried out by using the ID numbers and the first-level number, the obtained remainder is used as the ID number of the first-level VTEP group leader, and the VTEP node corresponding to the ID number of the first-level VTEP group leader is the first-level VTEP group leader of the first-level group. And acquiring the position number of the primary VTEP group length in the corresponding primary group, and correspondingly determining the primary VTEP group lengths of other primary groups. And meanwhile, the primary VTEP group leader also serves as a secondary group leader in the corresponding secondary group, the position number of the primary VTEP group leader in the corresponding secondary group is obtained, and the secondary group leader of other secondary groups in the primary group is correspondingly determined.
For example, as shown in fig. 4, 18 VTEP nodes, the number of levels being equal to 6, the number of levels being equal to 3, are divided into 3 level-one packets, each level-one packet including 6 VTEP nodes, and each VTEP level-one packet is divided into 2 level-two packets, each level-two packet including 3 VTEP nodes. The ID number of VTEP1 is 1, so the remainder is 1 by performing remainder-taking operations with 1 and the number of one level 6, and therefore VTEP1 is the length of the VTEP group at one level of the packet where it is located, and the number of the VTEP node at the position of the packet at one level is 1, so the first VTEP node of other packets at one level is also the length of the VTEP group at one level, that is, the length of the VTEP group at one level of the second packet at one level is VTEP7, and the length of the VTEP group at one level of the third packet at one level is VTEP 13. Meanwhile, VTEP1 is also the second-level VTEP group length of the second-level packet where it is located, and its position number in the second-level packet is 1, so the first VTEP node of other second-level packets is also the second-level VTEP group length, that is, the second-level VTEP group length of the second-level packet is VTEP 4. And determining other secondary VTEP group leader by the same method.
Further, the primary VTEP group leader unicasts the received packets to each secondary VTEP group leader in the primary group, and the secondary VTEP group leader unicasts the packets to other VTEP nodes in the secondary group.
In this embodiment, when a VTEP node receives a packet, it first sends the packet to a primary VTEP group leader of a primary group where the VTEP node is located, the primary VTEP group leader unicasts the received packet to each secondary VTEP group leader in the primary group, and the secondary VTEP group leader unicasts the packet to other VTEP nodes in the secondary group. For example, VTEP1 message replication flow.
1. The VTEP1 node respectively unicasts the message to a primary packet group leader VTEP7 and VTEP 13;
2. after receiving the message, the first-level group leader unicasts the message to the second-level group leader;
level one packet 1(L1 group 1) unicasts packets to VTEP4
Level one packet 2(L1 group 2) unicasts packets to VTEP10
Level one packet 3(L1 group 3) unicasts packets to VTEP16
3. After receiving the message, the second-level grouping leader unicasts the message to the second-level grouping member respectively;
the VTEP1 unicasts the message to VTEP2 and VTEP3 respectively
The VTEP4 unicasts the message to VTEP5 and VTEP6 respectively
The VTEP7 unicasts the message to VTEP8 and VTEP9 respectively
The VTEP13 unicasts the message to VTEP14 and VTEP15 respectively
The VTEP16 unicasts the message to VTEP17 and VTEP18 respectively
The packet optimization method provided in this embodiment determines, based on the position number of each VTEP node, a primary VTEP group length of each primary packet corresponding to each VTEP node, and then determines, based on the position number of each VTEP node, a secondary VTEP group length of a secondary packet corresponding to each primary packet. By respectively appointing the primary VTEP group length and the secondary VTEP group length under different VTEP nodes, the VTEP nodes share the unicast message load of the VTEP group length, and the VxLAN network performance is improved.
The invention further provides a grouping optimization device, referring to fig. 5, fig. 5 is a functional module schematic diagram of an embodiment of the grouping optimization device of the invention.
The acquiring module 10 is configured to acquire the total number of VTEP nodes in a virtual extensible local area network VxLAN and IP addresses corresponding to the VTEP nodes;
a determining module 20, configured to determine a primary quantity and a secondary quantity based on the total quantity of the VTEP nodes;
a grouping module 30, configured to perform first-stage grouping and second-stage grouping on VTEP nodes in the VxLAN based on the first-stage number, the second-stage number, and the respective corresponding IP addresses of the VTEP nodes;
and the specifying module 40 is configured to determine, based on a preset rule, a primary VTEP group length corresponding to each primary group and a secondary VTEP group length corresponding to each secondary group respectively. .
Further, the determining module 20 is further configured to:
acquiring a preset grouping comparison table;
and searching and acquiring the primary quantity and the secondary quantity corresponding to the total quantity of the VTEP nodes in the preset grouping comparison table.
Further, the grouping module 30 is further configured to:
sequencing the VTEP nodes based on the IP addresses corresponding to the VTEP nodes respectively to obtain the sequenced VTEP nodes;
and performing primary grouping and secondary grouping on the sequenced VTEP nodes based on the primary quantity and the secondary quantity.
Further, the grouping module 30 is further configured to:
based on the first-level number, carrying out average grouping on the sequenced VTEP nodes to obtain each first-level group, wherein the number of the VTEP nodes in the first-level group is equal to the first-level number;
and respectively carrying out secondary grouping on each primary grouping based on the secondary quantity to obtain each secondary grouping.
Further, the grouping module 30 is further configured to:
and respectively carrying out average grouping on each first-level group based on the second-level number to obtain a second-level group corresponding to each first-level group, wherein the number of VTEP nodes in the second-level group is equal to the second-level number.
Further, the specifying module 40 is further configured to:
determining a primary VTEP group length of each primary group corresponding to each VTEP node based on the position number of each VTEP node;
and determining the second-level VTEP group length of the second-level group corresponding to each first-level group based on the position number of each VTEP node.
In this embodiment, the total amount of VTEP nodes in a virtual extensible local area network VxLAN and the IP addresses corresponding to the respective VTEP nodes are obtained, then a primary number and a secondary number are determined based on the total amount of the VTEP nodes, then primary grouping and secondary grouping are performed on the VTEP nodes in the VxLAN based on the primary number, the secondary number and the IP addresses corresponding to the respective VTEP nodes, and finally a primary VTEP group length corresponding to each primary grouping and a secondary VTEP group length corresponding to each secondary grouping are determined based on a preset rule. And performing secondary grouping on the VTEP nodes in the VxLAN according to the primary quantity and the secondary quantity to realize balanced grouping of the VETP nodes, realizing that each VTEP node shares the unicast message load of the VTEP group length based on a preset rule, and improving the network performance of the VxLAN.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a group optimization program, and the group optimization program, when executed by a processor, implements the steps of the group optimization method in the foregoing embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be substantially or partially embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a system device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A packet optimization method, characterized in that it comprises the steps of:
acquiring the total quantity of VTEP nodes in a virtual extensible local area network VxLAN and the IP addresses corresponding to the VTEP nodes;
determining a primary quantity and a secondary quantity based on the total quantity of the VTEP nodes;
performing primary grouping and secondary grouping on the VTEP nodes in the VxLAN based on the primary number, the secondary number and the IP addresses corresponding to the VTEP nodes respectively;
and respectively determining a primary VTEP group length corresponding to each primary group and a secondary VTEP group length corresponding to each secondary group based on a preset rule.
2. The packet optimization method of claim 1, wherein the step of determining a primary number and a secondary number based on the total number of VTEP nodes comprises:
acquiring a preset grouping comparison table;
and searching and acquiring the primary quantity and the secondary quantity corresponding to the total quantity of the VTEP nodes in the preset grouping comparison table.
3. The packet optimization method according to claim 1, wherein the step of performing primary and secondary grouping on VTEP nodes in the VxLAN based on the primary number, the secondary number, and the respective IP addresses of the respective VTEP nodes comprises:
sequencing the VTEP nodes based on the IP addresses corresponding to the VTEP nodes respectively to obtain the sequenced VTEP nodes;
and performing primary grouping and secondary grouping on the sequenced VTEP nodes based on the primary quantity and the secondary quantity.
4. The packet optimization method of claim 3, wherein the step of performing first-level grouping and second-level grouping on the sorted VTEP nodes based on the first-level number and the second-level number comprises:
based on the first-level number, carrying out average grouping on the sequenced VTEP nodes to obtain each first-level group, wherein the number of the VTEP nodes in the first-level group is equal to the first-level number;
and respectively carrying out secondary grouping on each primary grouping based on the secondary quantity to obtain each secondary grouping.
5. The packet optimization method according to claim 4, wherein the step of performing second-level grouping on each first-level packet based on the second-level number to obtain each second-level packet comprises:
and respectively carrying out average grouping on each first-level group based on the second-level number to obtain a second-level group corresponding to each first-level group, wherein the number of VTEP nodes in the second-level group is equal to the second-level number.
6. The packet optimization method according to claim 3, wherein the step of numbering the sorted VTEP nodes, and the step of determining the primary VTEP group length corresponding to each primary packet and the secondary VTEP group length corresponding to each secondary packet based on the preset rule respectively comprises:
determining a primary VTEP group length of each primary group corresponding to each VTEP node based on the position number of each VTEP node;
and determining the second-level VTEP group length of the second-level group corresponding to each first-level group based on the position number of each VTEP node.
7. The packet optimization method according to any one of claims 1 to 6, wherein a primary VTEP group leader unicasts received packets to each secondary VTEP group leader in the primary packet, and the secondary VTEP group leader unicasts packets to other VTEP nodes in the secondary packet.
8. A packet optimization device, the packet optimization device comprising:
the acquisition module is used for acquiring the total number of VTEP nodes in the VxLAN and the IP addresses corresponding to the VTEP nodes;
a determining module, configured to determine a primary quantity and a secondary quantity based on a total quantity of the VTEP nodes;
the grouping module is used for carrying out primary grouping and secondary grouping on the VTEP nodes in the VxLAN based on the primary number, the secondary number and the IP addresses corresponding to the VTEP nodes respectively;
and the specifying module is used for respectively determining a primary VTEP group length corresponding to each primary group and a secondary VTEP group length corresponding to each secondary group based on a preset rule.
9. A terminal, characterized in that the terminal comprises: memory, a processor and a packet optimization program stored on the memory and executable on the processor, the packet optimization program when executed by the processor implementing the steps of the packet optimization method according to any one of claims 1 to 7.
10. A storage medium having stored thereon the group optimization program, which when executed by a processor implements the steps of the group optimization method according to any one of claims 1 to 7.
CN201911410175.9A 2019-12-31 2019-12-31 Grouping optimization method, terminal, device and storage medium Active CN111131062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911410175.9A CN111131062B (en) 2019-12-31 2019-12-31 Grouping optimization method, terminal, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911410175.9A CN111131062B (en) 2019-12-31 2019-12-31 Grouping optimization method, terminal, device and storage medium

Publications (2)

Publication Number Publication Date
CN111131062A true CN111131062A (en) 2020-05-08
CN111131062B CN111131062B (en) 2023-09-05

Family

ID=70506248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911410175.9A Active CN111131062B (en) 2019-12-31 2019-12-31 Grouping optimization method, terminal, device and storage medium

Country Status (1)

Country Link
CN (1) CN111131062B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1113649A2 (en) * 1999-12-27 2001-07-04 NTT DoCoMo, Inc. Packet communication method, node apparatus and packet communication system
JP2007274696A (en) * 2006-03-31 2007-10-18 Hitachi Ltd Device and method of performing multicast data transmission in mobile ip network
US20080205403A1 (en) * 2007-01-19 2008-08-28 Bora Akyol Network packet processing using multi-stage classification
CN101662479A (en) * 2009-09-18 2010-03-03 中山爱科数字科技有限公司 Response concurrent request based on IPV6 protocol and method for broadcasting data carrying multi-address production line
CN104104749A (en) * 2014-07-29 2014-10-15 浙江宇视科技有限公司 Method and device for allocating tunnel IP addresses
CN105656794A (en) * 2014-11-14 2016-06-08 腾讯科技(深圳)有限公司 Data distribution method and device
CN106656722A (en) * 2016-12-12 2017-05-10 杭州迪普科技股份有限公司 VXLAN multicasting method and device
CN107547425A (en) * 2017-08-24 2018-01-05 深圳市盛路物联通讯技术有限公司 A kind of convergence-level data transmission method and system
CN109728990A (en) * 2017-10-31 2019-05-07 中兴通讯股份有限公司 A kind of method for building up in tunnel, device and software defined network controller
CN109804710A (en) * 2016-09-30 2019-05-24 华为技术有限公司 A kind of business transmitting method, equipment and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1113649A2 (en) * 1999-12-27 2001-07-04 NTT DoCoMo, Inc. Packet communication method, node apparatus and packet communication system
JP2007274696A (en) * 2006-03-31 2007-10-18 Hitachi Ltd Device and method of performing multicast data transmission in mobile ip network
US20080205403A1 (en) * 2007-01-19 2008-08-28 Bora Akyol Network packet processing using multi-stage classification
CN101662479A (en) * 2009-09-18 2010-03-03 中山爱科数字科技有限公司 Response concurrent request based on IPV6 protocol and method for broadcasting data carrying multi-address production line
CN104104749A (en) * 2014-07-29 2014-10-15 浙江宇视科技有限公司 Method and device for allocating tunnel IP addresses
CN105656794A (en) * 2014-11-14 2016-06-08 腾讯科技(深圳)有限公司 Data distribution method and device
CN109804710A (en) * 2016-09-30 2019-05-24 华为技术有限公司 A kind of business transmitting method, equipment and system
CN106656722A (en) * 2016-12-12 2017-05-10 杭州迪普科技股份有限公司 VXLAN multicasting method and device
CN107547425A (en) * 2017-08-24 2018-01-05 深圳市盛路物联通讯技术有限公司 A kind of convergence-level data transmission method and system
CN109728990A (en) * 2017-10-31 2019-05-07 中兴通讯股份有限公司 A kind of method for building up in tunnel, device and software defined network controller

Also Published As

Publication number Publication date
CN111131062B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
US8208403B2 (en) Defining an end-to-end path for a network service
CN109981493B (en) Method and device for configuring virtual machine network
US10819573B2 (en) Hierarchical coherency for network function virtualization
US20220255772A1 (en) Packet sending method, apparatus, and system
CN109189758B (en) Operation and maintenance flow design method, device and equipment, operation method, device and host
CN108039968B (en) Network optimization method, device and computer readable storage medium
CN108432189A (en) Load balance on multiple endpoint of a tunnel
JP2015032932A (en) Route control system in carrier network, and method
US20230327986A1 (en) Route Advertisement Method, Apparatus, and System
CN101710864A (en) Collocation method and device for multi-gateway Linux server
CN107249038A (en) Business datum retransmission method and system
CN114025000A (en) Method, device, equipment and storage medium for establishing network access relationship
CN111327509B (en) Information updating method and device
CN107294746B (en) Method and equipment for deploying service
CN111131062B (en) Grouping optimization method, terminal, device and storage medium
CN108156066B (en) Message forwarding method and device
US7487256B2 (en) Dynamic management method for forwarding information in router having distributed architecture
CN111147379A (en) Data transmission method, system and related equipment
CN113395183B (en) Virtual node scheduling method and system for network simulation platform VLAN interconnection
CN114157668B (en) Multi-tenant cross-cluster networking method, communication system and readable storage medium
US10171368B1 (en) Methods and apparatus for implementing multiple loopback links
CN114640678A (en) Pod management method, device and medium based on SR-IOV
CN109257372B (en) Message forwarding method, device, storage medium and apparatus based on network convergence
CN116471344B (en) Keyword extraction method, device and medium for data message
CN113765794B (en) Data transmission method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant