CN111131062B - Grouping optimization method, terminal, device and storage medium - Google Patents

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

Info

Publication number
CN111131062B
CN111131062B CN201911410175.9A CN201911410175A CN111131062B CN 111131062 B CN111131062 B CN 111131062B CN 201911410175 A CN201911410175 A CN 201911410175A CN 111131062 B CN111131062 B CN 111131062B
Authority
CN
China
Prior art keywords
vtep
primary
grouping
packet
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.)
Active
Application number
CN201911410175.9A
Other languages
Chinese (zh)
Other versions
CN111131062A (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

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 application discloses a grouping optimization method, which comprises the following steps: the method comprises the steps of obtaining the total amount of VTEP nodes in a virtual extended local area network (VxLAN), determining the first-level number and the second-level number based on the total amount of the VTEP nodes, performing first-level grouping and second-level grouping on the VTEP nodes in the VxLAN based on the first-level number, the second-level number and the IP addresses corresponding to the VTEP nodes, and determining the first-level VTEP group length of each first-level grouping and the second-level VTEP group length of each second-level grouping based on preset rules. The application also discloses a device, a terminal and a storage medium. And carrying out secondary grouping on the VTEP nodes in the VxLAN according to the primary number and the secondary number, realizing 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 performance of the VxLAN.

Description

Grouping optimization method, terminal, device and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a packet optimization method, a terminal, a device, and a storage medium.
Background
VXLAN (Virtual eXtensible Local Area Network, virtual extended local area network), one of the NVO3 (Network Virtualization over Layer 3) standard technologies defined by IETF, is essentially a tunneling technology. The original data frame is added with the VXLAN header and then is encapsulated in the UDP message, and the UDP message is forwarded in a transmission mode of a traditional IP network. And after the message reaches the destination endpoint, removing the outer layer encapsulation part, and delivering the original data frame to the target terminal. VTEP (VXLAN Tunnel End Point, VXLAN tunnel node) is the device directly connected to the terminal, responsible for VXLAN encapsulation and decapsulation of the original ethernet message.
Among the VTEP nodes with the same VNI, the packets encapsulated by VXLAN are typically sent in unicast mode, where the group owner in each VTEP packet needs to unicast the packets to other VTEP nodes in the group. Currently, VTEP grouping schemes typically group automatically by network segment, or manually by hand. Manual grouping can be more reasonable to distribute, but manual configuration is needed, and configuration is complex. According to the automatic grouping of network segments, the phenomenon of unreasonable grouping of the VTEP nodes can occur, the unreasonable grouping of the VTEP can cause higher load of partial VTEP group length, performance bottlenecks occur, and the performance of each node can not be fully exerted.
Disclosure of Invention
The application mainly aims to provide a grouping optimization method, a terminal, a device and a storage medium, and aims to solve the technical problems that partial VTEP group lengths have higher loads and performance bottlenecks are caused by unreasonable grouping of the conventional VTEP.
In order to achieve the above object, the present application provides a packet optimization method applied to a terminal, the packet optimization method comprising the steps of:
acquiring the total amount of VTEP nodes in the virtual extended local area network VxLAN and the IP addresses corresponding to the VTEP nodes;
determining a primary number and a secondary number based on the total amount of 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 packet and a secondary VTEP group length corresponding to each secondary packet based on a preset rule.
Further, in an embodiment, the step of determining the primary number and the secondary number based on the total amount of the VTEP nodes includes:
acquiring a preset grouping comparison table;
and searching and acquiring the primary number and the secondary number corresponding to the total amount of the VTEP nodes in the preset grouping comparison table.
Further, in an embodiment, the step of performing the first-level grouping and the second-level grouping on the VTEP nodes in the VxLAN based on the first-level number, the second-level number, and the IP addresses corresponding to the respective VTEP nodes includes:
ordering the VTEP nodes based on the IP addresses corresponding to the VTEP nodes to obtain ordered 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 ordered VTEP nodes based on the primary number and the secondary number includes:
average grouping is carried out on the sequenced VTEP nodes based on the primary number, so that each primary grouping is obtained, wherein the number of the VTEP nodes included in the primary grouping is equal to the primary number;
and respectively carrying out secondary grouping on each primary grouping based on the secondary number to obtain each secondary grouping.
Further, in an embodiment, the step of respectively performing the secondary grouping on each primary grouping based on the secondary number to obtain each secondary grouping includes:
and respectively carrying out average grouping on each first-level grouping based on the second-level number to obtain second-level grouping corresponding to each first-level grouping, wherein the number of VTEP nodes included in the second-level grouping is equal to the second-level number.
Further, in an embodiment, the step of numbering the positions of the sequenced VTEP nodes, and determining the primary VTEP group length corresponding to each primary packet and the secondary VTEP group length corresponding to each secondary packet based on a preset rule includes:
determining a first-level VTEP group length of each first-level packet corresponding to each VTEP node based on the position number of each VTEP node;
and determining the secondary VTEP group length of the secondary packet corresponding to each primary packet based on the position number of each VTEP node.
Further, in an embodiment, the primary VTEP group leader unicasts the received message to each secondary VTEP group leader in the primary packet, and the secondary VTEP group leader unicasts the message to other VTEP nodes in the secondary packet.
Further, in an embodiment, the packet optimizing apparatus includes:
the acquisition module is used for acquiring the total amount of the VTEP nodes in the virtual extension local area network (VxLAN) and the IP addresses corresponding to the VTEP nodes;
a determining module, configured to determine a primary number and a secondary number based on a total amount 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;
the designating module is used for respectively determining a primary VTEP group length corresponding to each primary packet and a secondary VTEP group length corresponding to each secondary packet based on a preset rule.
To achieve the above object, the present application also provides a terminal including: a memory, a processor, and a packet optimizer stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the packet optimization method as described above.
In addition, to achieve the above object, the present application also provides a storage medium having stored thereon a packet optimization program which, when executed by a processor, implements the steps of the packet optimization method of any one of the above.
The application acquires the total amount of VTEP nodes in a virtual extended local area network (VxLAN) and the IP addresses corresponding to the VTEP nodes respectively, then determines the primary number and the secondary number based on the total amount of the VTEP nodes, then carries 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 finally determines the primary VTEP group length corresponding to the primary grouping and the secondary VTEP group length corresponding to the secondary grouping respectively based on preset rules. And carrying out secondary grouping on the VTEP nodes in the VxLAN according to the primary number and the secondary number, realizing 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 performance of the VxLAN.
Drawings
FIG. 1 is a schematic diagram of a terminal in a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a flow chart of a first embodiment of the packet optimization method of the present application;
FIG. 3 is a flow chart of a second embodiment of the packet optimization method of the present application;
FIG. 4 is a schematic diagram of a flow of copying a VTEP1 message according to an embodiment of the packet optimization method of the present application;
fig. 5 is a schematic diagram of functional modules of an embodiment of the packet optimizing device of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal in a hardware running environment according to an embodiment of the present application.
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 the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further 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 stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a packet optimization program may be included in a memory 1005, which is a type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting with a user terminal and performing data communication with the user terminal; and the processor 1001 may be used to invoke a packet optimizer stored in the memory 1005.
In this embodiment, the terminal includes: the system comprises a memory 1005, a processor 1001 and a packet optimization program stored in the memory 1005 and capable of running on the processor 1001, wherein the processor 1001 executes the steps of the packet optimization method provided by the embodiments of the application when calling the packet optimization program stored in the memory 1005.
The application also provides a packet optimization method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the packet optimization method of the application.
The embodiments of the present application provide embodiments of packet optimization methods, it being noted that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in a different order than what is shown or described herein.
The packet optimization method of the first embodiment of the present application is applied to a terminal, and a plurality of terminal devices are communicatively connected to a server, and in this embodiment, the packet optimization method includes:
step S100, obtaining the total amount of VTEP nodes in the virtual extended local area network VxLAN and the IP addresses corresponding to the VTEP nodes;
in this embodiment, VXLAN is a network virtual-like technology, which can improve the expansion problem of large-scale cloud computing in deployment, and is an expansion of VLAN. VXLAN is a powerful tool that can extend two layers across three-layer networks. It can solve the portability limitation of VMS (virtual memory system) by encapsulating traffic and expanding it to a third layer gateway so that it can access servers on the external IP subnet.
As mentioned above, between VTEP nodes with the same VNI, the packets encapsulated by VXLAN are typically sent in unicast mode, and the group leader in each VTEP packet needs to unicast the packets to other VTEP nodes in the group. VTEP grouping schemes typically group automatically by network segment or manually by human. Manual grouping can be more reasonable to distribute, but manual configuration is needed, and configuration is complex. According to the automatic grouping of network segments, the phenomenon of unreasonable grouping of the VTEP nodes can occur, the unreasonable grouping of the VTEP can cause higher load of partial VTEP group length, performance bottlenecks occur, and the performance of each node can not be fully exerted. In order to solve the problems, the application provides a grouping optimization method, which carries out secondary grouping on VTEP nodes in the VxLAN according to the primary number and the secondary number, realizes balanced grouping of VETP nodes, realizes that each VTEP node shares the unicast message load of the 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, firstly, the number of all the VTEP nodes, that is, the total number of the VTEP nodes, is obtained in the VxLAN of the virtual extension local area network, and the IP addresses corresponding to the VTEP nodes are obtained.
Step S200, determining the primary number and the secondary number based on the total amount of the VTEP nodes;
in this embodiment, for all the VTEP nodes in the VxLAN of the virtual expansion local area network, first a first-stage packet is performed, then a second-stage packet is performed in each first-stage packet, the number of VTEP nodes included in each first-stage packet is equal to the first-stage number, and the number of VTEP nodes included in each second-stage packet is equal to the second-stage number. The primary number and the secondary number are determined according to the total number of VTEP nodes.
Specifically, step S200 includes:
step S210, a preset grouping comparison table is obtained;
step S220, searching and obtaining the primary number and the secondary number corresponding to the total amount of the VTEP nodes in the preset packet comparison table.
In this embodiment, the VTEP nodes are grouped and the secondary grouping is performed to realize that each VTEP node shares the load of the unicast message of the VTEP group length, so how to determine the reasonable primary number and secondary number is particularly critical.
Specifically, the primary number and secondary number determining method may be: firstly carrying out primary grouping according to the total number of VTEP nodes by using an exhaustion method, for example, equally dividing the total number into 2 groups, 3 groups, 4 groups and 5 groups. Recording the number of VTEP members included in the secondary packet, and storing the total number of VTEP nodes, the primary number and the secondary number in a preset packet comparison table in a correlated manner as the secondary number.
When the primary number and the secondary number are determined according to the total amount of the VTEP nodes, a preset grouping comparison table is obtained, and the corresponding primary number and secondary number are searched in the preset grouping comparison table according to the total amount of the VTEP nodes.
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 ordered first, then the VTEP nodes are grouped first according to the first-level number, and then the VTEP nodes are grouped second-level according to the second-level number.
Specifically, step S300 includes:
step S310, ordering the VTEP nodes based on the IP addresses corresponding to the VTEP nodes respectively to obtain ordered VTEP nodes;
in this embodiment, the IP address is used to identify the device on the network, so the IP address is composed of two parts, i.e. the network address and the host address. The network address may be used to identify the network in which the device is located, the network address being located in the front of the IP address. When an organization or enterprise applies for an IP address, it obtains not an IP address but a unique, identifiable network address. All devices on the same network have the same network address. The host address is located at the back end of the IP address and can be used to identify devices on the network. Devices on the same network will have the same network address, and the devices are distinguished by the host address.
Specifically, the VTEP nodes are ordered according to their respective IP addresses, that is, the host addresses of the VTEP nodes are arranged in ascending or descending order to obtain ordered VTEP nodes, and each VTEP node is matched with an ID number, for example, the number 1,2,3 is given to the first VTEP node, and the corresponding VTEP node is denoted as VTEP1, VTEP2, and VTEP3.
And step S320, performing primary grouping and secondary grouping on the sequenced VTEP nodes based on the primary number and the secondary number.
Specifically, step S320 includes:
step S321, carrying out average grouping on the sequenced VTEP nodes based on the first-level number to obtain each first-level group, wherein the number of the VTEP nodes included in the first-level group is equal to the first-level number;
and step S322, respectively carrying out secondary grouping on each primary grouping based on the secondary number to obtain each secondary grouping.
Specifically, step S322 includes: and respectively carrying out average grouping on each first-level grouping based on the second-level number to obtain second-level grouping corresponding to each first-level grouping, wherein the number of VTEP nodes included in the second-level grouping is equal to the second-level number.
In this embodiment, the first-level grouping and the second-level grouping are performed on the sequenced VTEP nodes according to the first-level number and the second-level number, and the specific processes are as follows: firstly, performing primary grouping on VTEP nodes, taking a first-stage number of VTEP nodes as a first primary grouping from a first VTEP node in the ordered VTEP nodes, and then taking a second-stage number of VTEP nodes as a second primary grouping, so as to realize the primary grouping on the VTEP nodes according to the rule; and then carrying out secondary grouping on each primary grouping, wherein the grouping rule is the same as that of the primary grouping, namely in one primary grouping, starting from the first VTEP node, taking the secondary number of VTEP nodes as a first secondary grouping, and then taking the secondary number of VTEP nodes as a second secondary grouping, so as to realize the secondary grouping of the VTEP nodes according to the rule.
Step S400, based on preset rules, determining a primary VTEP group length corresponding to each primary packet and a secondary VTEP group length corresponding to each secondary packet respectively.
In the present application, the primary VTEP group leader of each primary packet also acts as a secondary group leader in its corresponding secondary packet. When a VTEP node receives a message, the message is firstly sent to a first-stage VTEP group leader of the first-stage group where the message is located, the first-stage VTEP group leader unicasts the received message to each second-stage VTEP group leader in the first-stage group, and the second-stage VTEP group leader unicasts the message to other VTEP nodes in the second-stage group. In order to balance the unicast message load of the VTEP group leader, a primary VTEP group leader and a secondary group leader are respectively designated under different VTEP nodes.
According to the packet optimization method, the total amount of VTEP nodes in the virtual extended local area network VxLAN and the IP addresses corresponding to the VTEP nodes are obtained, then the primary number and the secondary number are determined based on the total amount of the VTEP nodes, then the primary grouping and the secondary grouping are carried out on the VTEP nodes in the VxLAN based on the primary number, the secondary number and the IP addresses corresponding to the VTEP nodes, and finally the primary VTEP group length corresponding to the primary grouping and the secondary VTEP group length corresponding to the secondary grouping are determined based on preset rules. And carrying out secondary grouping on the VTEP nodes in the VxLAN according to the primary number and the secondary number, realizing 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 performance of the VxLAN.
Based on the first embodiment, referring to fig. 3, a second embodiment of the packet optimization method of the present application is proposed, in which step S400 includes:
step S410, determining a primary VTEP group length of each primary packet corresponding to each VTEP node based on the position number of each VTEP node;
step S420, determining a secondary VTEP group length of the secondary packets corresponding to each primary packet based on the position numbers of each VTEP node.
In the present application, the primary VTEP group leader of each primary packet also acts as a secondary group leader in its corresponding secondary packet. In order to balance the unicast message load of the VTEP group leader, a primary VTEP group leader and a secondary group leader are respectively designated under different VTEP nodes.
Specifically, each ordered VTEP node is matched with an ID number, the ID number is 1,2,3 from the first VTEP node, the remainder taking operation is performed by using the ID number and the first-stage number, the obtained remainder is used as the first-stage VTEP group length ID number, and the VTEP node corresponding to the first-stage VTEP group length ID number is the first-stage VTEP group length of the first-stage packet. And acquiring the position number of the one-level VTEP group leader in the corresponding one-level group leader, and correspondingly determining one-level VTEP group leader of other one-level groups. Meanwhile, the primary VTEP group length is also used as a secondary group length in the corresponding secondary group, the position number of the primary VTEP group length in the corresponding secondary group is obtained, and the secondary group length of other secondary groups in the primary group is correspondingly determined.
For example, as shown in fig. 4, 18 VTEP nodes, a number of levels equal to 6, a number of levels equal to 3, are divided into 3 primary packets, each of which includes 6 VTEP nodes, each of which is divided into 2 secondary packets, each of which includes 3 VTEP nodes. The ID number of the VTEP1 is 1, so that the remainder taking operation is performed by using 1 and the number of the stages 6 to obtain a remainder of 1, so that the VTEP1 is a stage VTEP group length of the stage packet where the VTEP1 is located, and the position number of the VTEP1 in the stage packet is 1, so that the first VTEP node of other stage packets is also a stage VTEP group length, namely the stage VTEP group length of the second stage packet is VTEP7, and the stage VTEP group length of the third stage packet is VTEP13. Meanwhile, the VTEP1 is also the secondary VTEP group length of the secondary packet in which it is located, and its position number is 1 in the secondary packet, so the first VTEP node of other secondary packets is also the secondary VTEP group length, i.e. the secondary VTEP group length of the second secondary packet is VTEP4. The other secondary VTEP group lengths are determined in the same manner.
Further, the primary VTEP group leader unicasts the received message to each secondary VTEP group leader in the primary group, and the secondary VTEP group leader unicasts the message to other VTEP nodes in the secondary group.
In this embodiment, when a VTEP node receives a message, the message is first sent to a primary VTEP group owner of a primary group where the message is located, and the primary VTEP group owner unicasts the received message to each secondary VTEP group owner in the primary group, and the secondary VTEP group owner unicasts the message to other VTEP nodes in the secondary group. For example, VTEP1 message replication flow.
1. The VTEP1 node unicasts the message to the first-level packet group leader VTEP7 and VTEP13 respectively;
2. after receiving the message, the first-level packet group leader unicasts the message to the second-level packet group leader respectively;
first level packet 1 (L1 group 1) unicasts messages to VTEP4
First level packet 2 (L1 group 2) unicasts messages to VTEP10
First level packet 3 (L1 group 3) unicasts messages to VTEP16
3. After the secondary grouping group length receives the messages, unicast the messages to secondary grouping group members respectively;
VTEP1 unicasts the messages to VTEP2 and VTEP3, respectively
VTEP4 unicasts messages to VTEP5, VTEP6, respectively
VTEP7 unicasts the messages to VTEP8 and VTEP9, respectively
VTEP13 unicasts the messages to VTEP14, VTEP15, respectively
VTEP16 unicasts messages to VTEP17, VTEP18, respectively
According to the packet optimization method, the first-level VTEP group length of each first-level packet corresponding to each VTEP node is determined based on the position number of each VTEP node, and then the second-level VTEP group length of the second-level packet corresponding to each first-level packet is determined based on the position number of each VTEP node. By respectively designating the primary VTEP group length and the secondary group length under different VTEP nodes, the sharing of the unicast message load of the VTEP group length by the VTEP nodes is realized, and the performance of the VxLAN network is improved.
The application further provides a grouping optimization device, referring to fig. 5, fig. 5 is a schematic diagram of functional modules of an embodiment of the grouping optimization device of the application.
The acquiring module 10 is configured to acquire the total amount of VTEP nodes in the VxLAN of the virtual extension local area network, and IP addresses corresponding to the VTEP nodes;
a determining module 20 for determining a primary number and a secondary number based on the total number of VTEP nodes;
a grouping module 30, configured to perform 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;
the specifying module 40 is configured to determine, based on a preset rule, a primary VTEP group length corresponding to each primary packet, and a secondary VTEP group length corresponding to each secondary packet, respectively. .
Further, the determining module 20 is further configured to:
acquiring a preset grouping comparison table;
and searching and acquiring the primary number and the secondary number corresponding to the total amount of the VTEP nodes in the preset grouping comparison table.
Further, the grouping module 30 is further configured to:
ordering the VTEP nodes based on the IP addresses corresponding to the VTEP nodes to obtain ordered 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:
average grouping is carried out on the sequenced VTEP nodes based on the primary number, so that each primary grouping is obtained, wherein the number of the VTEP nodes included in the primary grouping is equal to the primary number;
and respectively carrying out secondary grouping on each primary grouping based on the secondary number to obtain each secondary grouping.
Further, the grouping module 30 is further configured to:
and respectively carrying out average grouping on each first-level grouping based on the second-level number to obtain second-level grouping corresponding to each first-level grouping, wherein the number of VTEP nodes included in the second-level grouping is equal to the second-level number.
Further, the specifying module 40 is further configured to:
determining a first-level VTEP group length of each first-level packet corresponding to each VTEP node based on the position number of each VTEP node;
and determining the secondary VTEP group length of the secondary packet corresponding to each primary packet based on the position number of each VTEP node.
In this embodiment, the total amount of VTEP nodes in the VxLAN and the IP addresses corresponding to the VTEP nodes are obtained, then the primary number and the secondary number are determined based on the total amount of the VTEP nodes, then the primary grouping and the 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 VTEP nodes, and finally the primary VTEP group length corresponding to the primary grouping and the secondary VTEP group length corresponding to the secondary grouping are determined based on a preset rule. And carrying out secondary grouping on the VTEP nodes in the VxLAN according to the primary number and the secondary number, realizing 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 performance of the VxLAN.
In addition, the embodiment of the application also provides a storage medium, and the storage medium stores a grouping optimization program, and the grouping optimization program realizes the steps of the grouping optimization method in each embodiment when being executed by a processor.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, including several instructions for causing a system device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. A packet optimization method, characterized in that the packet optimization method comprises the steps of:
acquiring the total amount of VTEP nodes in the virtual extended local area network VxLAN and the IP addresses corresponding to the VTEP nodes;
determining a primary number and a secondary number based on the total amount of the VTEP nodes, wherein the primary number is the number of the VTEP nodes included in the primary packet, and the secondary number is the number of the VTEP nodes included in the secondary packet;
ordering the VTEP nodes based on the IP addresses corresponding to the VTEP nodes to obtain ordered VTEP nodes;
performing primary grouping and secondary grouping on the sequenced VTEP nodes based on the primary quantity and the secondary quantity;
and respectively determining a primary VTEP group length corresponding to each primary packet and a secondary VTEP group length corresponding to each secondary packet based on a preset rule.
2. The packet optimization method of claim 1, wherein the determining the primary and secondary numbers based on the total number of VTEP nodes comprises:
acquiring a preset grouping comparison table;
and searching and acquiring the primary number and the secondary number corresponding to the total amount of the VTEP nodes in the preset grouping comparison table.
3. The packet optimization method of claim 1, wherein the step of primary and secondary grouping ordered VTEP nodes based on the primary and secondary numbers comprises:
average grouping is carried out on the sequenced VTEP nodes based on the primary number, so that each primary grouping is obtained, wherein the number of the VTEP nodes included in the primary grouping is equal to the primary number;
and respectively carrying out secondary grouping on each primary grouping based on the secondary number to obtain each secondary grouping.
4. The packet optimization method of claim 3, wherein the step of grouping each primary packet based on the number of secondary numbers to obtain each secondary packet comprises:
and respectively carrying out average grouping on each first-level grouping based on the second-level number to obtain second-level grouping corresponding to each first-level grouping, wherein the number of VTEP nodes included in the second-level grouping is equal to the second-level number.
5. The packet optimization method of claim 1, wherein the step of numbering the positions of the sequenced 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 a preset rule includes:
determining a first-level VTEP group length of each first-level packet corresponding to each VTEP node based on the position number of each VTEP node;
and determining the secondary VTEP group length of the secondary packet corresponding to each primary packet based on the position number of each VTEP node.
6. The packet optimization method according to any one of claims 1 to 5, characterized in that a primary VTEP group leader unicasts received messages to each secondary VTEP group leader in the primary packet, respectively, and a secondary VTEP group leader unicasts messages to other VTEP nodes in the secondary packet, respectively.
7. A packet optimizing apparatus, characterized in that the packet optimizing apparatus comprises:
the acquisition module is used for acquiring the total amount of the VTEP nodes in the virtual extension local area network (VxLAN) and the IP addresses corresponding to the VTEP nodes;
the determining module is used for determining the primary number and the secondary number based on the total amount of the VTEP nodes, wherein the primary number is the number of the VTEP nodes included in the primary packet, and the secondary number is the number of the VTEP nodes included in the secondary packet;
the grouping module is further used for ordering the VTEP nodes based on the IP addresses corresponding to the VTEP nodes respectively to obtain ordered VTEP nodes; performing primary grouping and secondary grouping on the sequenced VTEP nodes based on the primary quantity and the secondary quantity;
the designating module is used for respectively determining a primary VTEP group length corresponding to each primary packet and a secondary VTEP group length corresponding to each secondary packet based on a preset rule.
8. A terminal, the terminal comprising: memory, a processor and a packet optimizer stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the packet optimization method according to any one of claims 1 to 6.
9. A storage medium having stored thereon a packet optimization program which, when executed by a processor, implements the steps of the packet optimization method according to any one of claims 1 to 6.
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 CN111131062A (en) 2020-05-08
CN111131062B true 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 (9)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7813337B2 (en) * 2007-01-19 2010-10-12 Broadcom Corporation Network packet processing using multi-stage classification

Patent Citations (9)

* 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
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
CN111131062A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN105453492B (en) Switch cluster with third layer distribution router function
CN105657081B (en) The method, apparatus and system of DHCP service are provided
WO2017113300A1 (en) Route determining method, network configuration method and related device
WO2020073685A1 (en) Forwarding path determining method, apparatus and system, computer device, and storage medium
US20210250844A1 (en) Routing management method and apparatus
US20170171058A1 (en) Link state information advertisement method and device
US20220255772A1 (en) Packet sending method, apparatus, and system
JP2019521619A (en) Packet forwarding
CN110474960B (en) Method and device for service deployment in virtual network
WO2021012601A1 (en) Message processing method and device, apparatus, and readable storage medium
EP4236245A1 (en) Route advertisement method, apparatus, and system
CN114025000B (en) Method, device, equipment and storage medium for establishing network access relationship
US20180343194A1 (en) Network-aware routing in information centric networking
CN109246016B (en) Cross-VXLAN message processing method and device
CN105264833B (en) A kind of service path calculation method and device
CN111131062B (en) Grouping optimization method, terminal, device and storage medium
CN107294746B (en) Method and equipment for deploying service
WO2016173196A1 (en) Method and apparatus for learning address mapping relationship
CN116016448A (en) Service network access method, device, equipment and storage medium
CN113395183B (en) Virtual node scheduling method and system for network simulation platform VLAN interconnection
US7487256B2 (en) Dynamic management method for forwarding information in router having distributed architecture
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
CN107454011A (en) A kind of message forwarding method, apparatus and system
CN106209556B (en) Method and device for address learning and message transmission

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