VxLAN network message transmission method, device, equipment and medium
By setting VNIPriority values for VNI tenant services in VxLAN network and transmitting packets based on these priority values, the problem of service quality decline caused by the lack of priority control in VxLAN network is solved, and more efficient network resource utilization and better user experience are achieved.
Patent Information
- Application Number
- CN202411694218.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-02-28
AI Technical Summary
In VxLAN networks, due to the lack of priority control, the service flow of important tenants may not be prioritized, resulting in a degradation of service quality.
By setting corresponding VNIPriority values for different VNI tenant services and transmitting packets based on these priority values in the VxLAN network, we ensure that critical services obtain better service quality during the transmission process.
It realizes differentiated service quality assurance, improves network resource utilization, reduces congestion and delays, enhances business isolation, improves user experience, and simplifies network management and configuration.
Smart Images

Figure CN119544827A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a VxLAN network message transmission method, device, equipment and medium. Background Art
[0002] With the rapid development of cloud computing and virtualization technology, network virtualization technology has become the key to building flexible and scalable data center networks. As a network virtualization technology, VxLAN (Virtual Extensible LAN) can create a logical virtual LAN on an existing physical network, thereby achieving virtual network isolation and data transmission across physical network boundaries.
[0003] During VxLAN network transmission, due to the lack of priority control, the business flows of important tenants may not be given priority, resulting in a decline in service quality. Summary of the invention
[0004] One or more embodiments of the present specification provide a VxLAN network message transmission method, apparatus, equipment and medium for solving the technical problems raised by the background technology.
[0005] One or more embodiments of this specification adopt the following technical solutions:
[0006] One or more embodiments of this specification provide a VxLAN network message transmission method, the method comprising:
[0007] When the original message enters the switch device, VxLAN encapsulation is performed on different VNI tenant services through the switch device, and corresponding VNIPriority values are set for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, where the VNIPriority value is used to indicate the priority of each VNI tenant service;
[0008] The VxLAN encapsulated packets of the corresponding VNI tenant services are transmitted in the VxLAN network according to the VNIPriority values corresponding to the VNI tenant services.
[0009] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0010] Differentiated service quality assurance: By setting corresponding VNIPriority values for the services of different VNI (Virtual Network Identifier) tenants, the network can assign different priorities based on the importance and needs of the services, ensuring that key services (such as voice and video conferencing) obtain better service quality during transmission.
[0011] Improve network resource utilization: Through priority control, network resources (such as bandwidth and queues) can be more efficiently allocated to applications that require higher quality of service, thereby improving the overall network resource utilization.
[0012] Reduce congestion and latency: In the case of VxLAN network congestion, service flows with higher VNIPriority values will be transmitted first, which helps reduce congestion and latency, especially for service flows with high real-time requirements.
[0013] Enhanced service isolation: By assigning a specific VNIPriority value to each VNI tenant, service isolation between different tenants can be enhanced to prevent the service flow of one tenant from affecting the service quality of other tenants.
[0014] Improve user experience: As key services are given priority transmission, user experience will be improved, especially when the network conditions are poor, the service quality of key services will not be seriously affected.
[0015] Easy to manage and configure: By setting the VNIPriority value during the VxLAN encapsulation process, network administrators can easily configure priorities for different service flows, simplifying the network management and configuration process.
[0016] Further, the VxLAN encapsulated message corresponding to the VNI tenant service is transmitted in the VxLAN network according to the VNIPriority value corresponding to each VNI tenant service, including:
[0017] According to the VNIPriority value corresponding to each VNI tenant service, a mapping template and a QoS policy for message transmission are set, wherein the mapping template is used to map the VNIPriority value of each VNI tenant service in the VxLAN network to the corresponding transmission device, and the QoS policy is used to ensure transmission based on the VNIPriority value of each VNI tenant service when the network is congested;
[0018] According to the VNIPriority value corresponding to each VNI tenant service, the mapping template and QoS policy of message transmission, the VxLAN encapsulated message of the corresponding VNI tenant service is transmitted in the VxLAN network.
[0019] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0020] Enhanced network service quality: By assigning a VNIPriority value to each VNI tenant service and setting QoS policies accordingly, it can ensure that key services are transmitted first when the network is congested, thereby improving the service quality of key services.
[0021] Improve network efficiency and bandwidth utilization: QoS policies can ensure that high-priority services are given priority in bandwidth allocation, which helps to use bandwidth more efficiently when network resources are limited.
[0022] Simplified network management: Through the mapping template, the VNIPriority value can be directly associated with the configuration of the transmission device, simplifying the network configuration and management process.
[0023] Enhanced network flexibility: Since the service of each VNI tenant can be prioritized according to its actual needs, the network can adapt to different service needs more flexibly.
[0024] Furthermore, if it is detected that the VNIPriority values corresponding to the service settings of different VNI tenants have changed, the method further includes:
[0025] Get the latest VNIPriority value corresponding to each VNI tenant service setting;
[0026] Set the latest VNIPriority value according to each VNI tenant service, and reset the mapping template and QoS policy for message transmission.
[0027] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0028] Dynamically adapt to business changes: When the priority setting of VNI tenant services changes, the system can promptly obtain and update the latest priority information to ensure that the network configuration is synchronized with business needs.
[0029] Real-time adjustment of network resource allocation: By updating mapping templates and QoS policies in real time, network resources (such as bandwidth, queues, etc.) can be immediately adjusted according to the new priority allocation to improve resource utilization efficiency.
[0030] Enhanced network flexibility: This approach enables the network to respond quickly to changes in business needs, improving the flexibility and adaptability of the network, especially in a dynamically changing cloud computing environment.
[0031] Furthermore, if congestion occurs in the VxLAN network, the method further includes:
[0032] Based on the VNIPriority value corresponding to each VNI tenant service, the messages of each VNI tenant service are prioritized;
[0033] According to the priority sorting, VxLAN encapsulated messages corresponding to the VNI tenant services are transmitted in the VxLAN network.
[0034] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0035] Prioritize key services: By assigning priorities to the services of each VNI tenant, the transmission of key services can be prioritized when the network is congested, ensuring that the service quality of these services is not affected.
[0036] Optimize network resource allocation: In congestion situations, high-priority messages are transmitted first, which helps to allocate network resources more efficiently and reduce the interference of low-priority messages on the transmission of high-priority messages.
[0037] Improve network efficiency: Through prioritization, the network can handle traffic more efficiently, reducing delays and packet loss caused by congestion, thereby improving overall network efficiency.
[0038] Furthermore, the method further comprises:
[0039] When the original message enters the switch device, the voice, video and text are respectively encapsulated by VxLAN through the switch device, and corresponding VNI Priority values are set for the voice, the video and the text, to obtain the VxLAN encapsulated message of the voice, the VxLAN encapsulated message of the video and the VxLAN encapsulated message of the text;
[0040] According to the VNIPriority values corresponding to the voice, the video and the text, the VxLAN encapsulated message corresponding to the voice, the VxLAN encapsulated message of the video and the VxLAN encapsulated message of the text are transmitted in the VxLAN network.
[0041] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0042] Quality of Service: By setting different VNIPriority values for voice, video, and text, you can prioritize the transmission of voice and video data when the network is congested because these types of data are more sensitive to delays and interruptions.
[0043] Improve user experience: For applications with high real-time requirements such as voice and video, priority transmission can reduce delays and improve the smoothness of video playback and the clarity of voice calls.
[0044] Optimized resource allocation: Network resources (such as bandwidth and processing power) can be allocated more efficiently based on the importance of different data types, ensuring that high-priority data receives adequate network support.
[0045] Further, if the VNIPriority value of the voice is higher than the VNIPriority value of the video, and the VNIPriority value of the video is higher than the VNIPriority value of the text, when congestion occurs in the VxLAN network, the method further includes:
[0046] In the VxLAN network, the VxLAN encapsulated message of the voice is transmitted first, the VxLAN encapsulated message of the video is transmitted secondly, and finally the VxLAN encapsulated message of the text is transmitted.
[0047] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0048] Ensure continuity of key services: Since voice has the highest VNIPriority value, voice data will be transmitted first when network congestion occurs, which helps maintain the continuity of real-time voice communications.
[0049] Optimize video quality: The VNIPriority value for video is lower than that for voice but higher than that for text, which means that video data is transmitted after voice data. This helps to minimize delays and interruptions in video playback while maintaining voice quality.
[0050] Ensure basic communication functions: Text has the lowest VNIPriority value, which means that when network resources are at their tightest, text data will be the last to be transmitted. This ensures that even in extreme congestion, basic communication functions (such as text messaging) can still be maintained.
[0051] One or more embodiments of this specification provide a VxLAN network message transmission device, including:
[0052] The encapsulation unit performs VxLAN encapsulation on different VNI tenant services through the switch device when the original message enters the switch device, and sets corresponding VNIPriority values for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, wherein the VNIPriority value is used to indicate the priority of each VNI tenant service;
[0053] The transmission unit transmits the VxLAN encapsulated message of the corresponding VNI tenant service in the VxLAN network according to the VNIPriority value corresponding to each VNI tenant service.
[0054] Further, the transmission unit executes the VxLAN encapsulation message of the corresponding VNI tenant service in the VxLAN network according to the VNIPriority value corresponding to each VNI tenant service, specifically including:
[0055] According to the VNIPriority value corresponding to each VNI tenant service, a mapping template and a QoS policy for message transmission are set, wherein the mapping template is used to map the VNIPriority value of each VNI tenant service in the VxLAN network to the corresponding transmission device, and the QoS policy is used to ensure transmission based on the VNIPriority value of each VNI tenant service when the network is congested;
[0056] According to the VNIPriority value corresponding to each VNI tenant service, the mapping template and QoS policy of message transmission, the VxLAN encapsulated message of the corresponding VNI tenant service is transmitted in the VxLAN network.
[0057] One or more embodiments of this specification provide a VxLAN network message transmission device, including:
[0058] at least one processor; and,
[0059] a memory communicatively connected to the at least one processor; wherein,
[0060] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0061] When the original message enters the switch device, VxLAN encapsulation is performed on different VNI tenant services through the switch device, and corresponding VNIPriority values are set for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, where the VNIPriority value is used to indicate the priority of each VNI tenant service;
[0062] The VxLAN encapsulated packets of the corresponding VNI tenant services are transmitted in the VxLAN network according to the VNIPriority values corresponding to the VNI tenant services.
[0063] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, which can achieve the following when executed by a computer:
[0064] When the original message enters the switch device, VxLAN encapsulation is performed on different VNI tenant services through the switch device, and corresponding VNIPriority values are set for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, where the VNIPriority value is used to indicate the priority of each VNI tenant service;
[0065] The VxLAN encapsulated packets of the corresponding VNI tenant services are transmitted in the VxLAN network according to the VNIPriority values corresponding to the VNI tenant services.
[0066] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0067] Differentiated service quality assurance: By setting corresponding VNIPriority values for the services of different VNI (Virtual Network Identifier) tenants, the network can assign different priorities based on the importance and needs of the services, ensuring that key services (such as voice and video conferencing) obtain better service quality during transmission.
[0068] Improve network resource utilization: Through priority control, network resources (such as bandwidth and queues) can be more efficiently allocated to applications that require higher quality of service, thereby improving the overall network resource utilization.
[0069] Reduce congestion and latency: In the case of VxLAN network congestion, service flows with higher VNIPriority values will be transmitted first, which helps reduce congestion and latency, especially for service flows with high real-time requirements.
[0070] Enhanced service isolation: By assigning a specific VNIPriority value to each VNI tenant, service isolation between different tenants can be enhanced to prevent the service flow of one tenant from affecting the service quality of other tenants.
[0071] Improve user experience: As key services are given priority transmission, user experience will be improved, especially when the network conditions are poor, the service quality of key services will not be seriously affected.
[0072] Easy to manage and configure: By setting the VNIPriority value during the VxLAN encapsulation process, network administrators can easily configure priorities for different service flows, simplifying the network management and configuration process. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0074] Figure 1A flowchart of a VxLAN network message transmission method provided for one or more embodiments of this specification;
[0075] Figure 2 A VxLAN network diagram provided for one or more embodiments of this specification;
[0076] Figure 3 A schematic diagram of the structure of a VxLAN network message transmission device provided for one or more embodiments of this specification;
[0077] Figure 4 A structural diagram of a VxLAN network message transmission device provided for one or more embodiments of this specification. DETAILED DESCRIPTION
[0078] The embodiments of this specification provide a VxLAN network message transmission method, apparatus, equipment and medium.
[0079] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0080] Figure 1 A schematic diagram of a VxLAN network message transmission method provided in one or more embodiments of this specification, which can be executed by a VxLAN network message transmission system. Certain input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.
[0081] The method steps of the embodiment of this specification are as follows:
[0082] S101, when the original message enters the switch device, VxLAN encapsulation is performed on different VNI tenant services through the switch device, and corresponding VNIPriority values are set for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, and the VNIPriority value is used to indicate the priority of each VNI tenant service.
[0083] In Example S101 of this specification, the following specific implementation scheme can be adopted:
[0084] Configure VNI tenant services: You need to determine the service types and importance of different VNI tenants in the network. For example, there may be the following services: voice communication, video conferencing, enterprise-level applications, and Internet access.
[0085] Assign VNI and VNIPriority values: Assign a unique VNI (VxLAN network identifier) to each service and set the corresponding VNIPriority value based on the importance of the service. The VNIPriority value is usually a number between 0 (lowest priority) and 7 (highest priority).
[0086] Configure the switch: Configure the following settings on the switch:
[0087] VxLAN tunnel configuration: Configure a VxLAN tunnel for each VNI to ensure that the switch can identify and encapsulate the packets of the corresponding VNI.
[0088] Set VNIPriority: Set the VNIPriority value for each VNI, which will determine the message transmission priority when the network is congested.
[0089] Interface configuration: Configure the physical or virtual interfaces of the switch as VxLAN interfaces and assign corresponding VNI and VNIPriority values to these interfaces.
[0090] S102, transmit the VxLAN encapsulated message of the corresponding VNI tenant service in the VxLAN network according to the VNIPriority value corresponding to each VNI tenant service.
[0091] In embodiment S102 of the present specification, a mapping template and a QoS policy for message transmission can be set according to the VNIPriority value corresponding to each VNI tenant service, wherein the mapping template is used to map the VNIPriority value of each VNI tenant service in the VxLAN network to the corresponding transmission device, and the QoS policy is used to ensure transmission based on the VNIPriority value of each VNI tenant service when the network is congested; according to the VNIPriority value corresponding to each VNI tenant service, the mapping template and the QoS policy for message transmission, the VxLAN encapsulated message of the corresponding VNI tenant service is transmitted in the VxLAN network.
[0092] It should be noted that the above content can be implemented through the following specific implementation plans:
[0093] Determine VNI tenant services and priorities: List all VNI tenant services in the network, such as voice, video, and database services. Assign a VNIPriority value to each service, with a higher value indicating a higher priority.
[0094] Design mapping templates: Create a mapping template for each service that associates the VNIPriority value with the QoS policy. Define a QoS policy for each template, including the following elements:
[0095] Queue type: such as high priority queue, medium priority queue, low priority queue, etc.
[0096] Bandwidth allocation: Allocate different bandwidths to queues of different priorities.
[0097] Packet drop priority: When bandwidth is insufficient, the packets in which queue will be dropped first.
[0098] Congestion management: Use congestion avoidance algorithms such as WRED (Weighted Random Early Detection).
[0099] Configure VxLAN network: Configure VxLAN tunnels on switches and routers to ensure that data packets can be correctly encapsulated and forwarded. Configure the corresponding VNI for each VNI tenant service and set the mapping between VNI and VLAN on the switch.
[0100] Apply mapping templates and QoS policies: Map the VNIPriority value of each VNI tenant service to the corresponding mapping template. Apply QoS policies on switches and routers to ensure that packets are transmitted according to the priority in the mapping template.
[0101] Implement QoS policies: Configure QoS rules for each interface, including queue mapping, bandwidth limiting, and congestion management. Configure service policies, such as shaping and policing, to ensure that traffic meets QoS requirements.
[0102] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0103] Enhanced network service quality: By assigning a VNIPriority value to each VNI tenant service and setting QoS policies accordingly, it can ensure that key services are transmitted first when the network is congested, thereby improving the service quality of key services.
[0104] Improve network efficiency and bandwidth utilization: QoS policies can ensure that high-priority services are given priority in bandwidth allocation, which helps to use bandwidth more efficiently when network resources are limited.
[0105] Simplified network management: Through the mapping template, the VNIPriority value can be directly associated with the configuration of the transmission device, simplifying the network configuration and management process.
[0106] Enhanced network flexibility: Since the service of each VNI tenant can be prioritized according to its actual needs, the network can adapt to different service needs more flexibly.
[0107] Furthermore, if it is detected that the VNIPriority values corresponding to the service settings of different VNI tenants have changed, the latest VNIPriority values corresponding to the service settings of each VNI tenant can be obtained; according to the latest VNIPriority values corresponding to the service settings of each VNI tenant, the mapping template and QoS policy for message transmission are reset.
[0108] It should be noted that the above content can be implemented through the following specific implementation plans:
[0109] Monitor VNIPriority value changes: Set up monitoring in the network management system to track the VNIPriority value of VNI tenant services in real time. The data source that determines the VNIPriority value may be a network device (such as a switch, router) or a network management system.
[0110] Implement change detection: Develop a strategy to detect changes in VNIPriority values, which can be achieved through polling, event-driven, or change notifications in the network management system. Ensure that all changes to VNIPriority values are recorded in the event log for subsequent analysis.
[0111] Get the latest VNIPriority value: Once a change in the VNIPriority value is detected, immediately get the latest VNIPriority value from the data source. Verify whether the change is legal and ensure that the new VNIPriority value complies with network policies and business requirements.
[0112] Reset the mapping template: Analyze the impact of the change in VNIPriority value on the network and determine whether the existing mapping template needs to be adjusted. Update the mapping template based on the latest VNIPriority value and map the new priority to the corresponding QoS policy.
[0113] Reset QoS policy: Update QoS policy based on the new mapping template to ensure that QoS rules configured on network devices match the new priority. If the priority changes, queue configuration and bandwidth allocation may need to be adjusted.
[0114] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0115] Dynamically adapt to business changes: When the priority setting of VNI tenant services changes, the system can promptly obtain and update the latest priority information to ensure that the network configuration is synchronized with business needs.
[0116] Real-time adjustment of network resource allocation: By updating mapping templates and QoS policies in real time, network resources (such as bandwidth, queues, etc.) can be immediately adjusted according to the new priority allocation to improve resource utilization efficiency.
[0117] Enhanced network flexibility: This approach enables the network to respond quickly to changes in business needs, improving the flexibility and adaptability of the network, especially in a dynamically changing cloud computing environment.
[0118] Furthermore, if congestion occurs in the VxLAN network, the packets of each VNI tenant service can be prioritized based on the VNIPriority value corresponding to each VNI tenant service; and the VxLAN encapsulated packets of the corresponding VNI tenant service are transmitted in the VxLAN network according to the priority ranking.
[0119] It should be noted that the above content can be implemented through the following specific implementation plans:
[0120] Implement congestion detection and prioritization: Configure traffic monitoring on network devices to take action when network congestion is detected. When congestion is detected, prioritize VxLAN encapsulated packets based on the VNIPriority value in the mapping template. Implement traffic management policies on network devices, such as using the Weighted Random Early Discard (WRED) algorithm to preferentially discard packets in low-priority queues.
[0121] Implement priority transmission: Allocate messages to the corresponding queues based on the results of priority sorting, ensuring that messages in high-priority queues are transmitted first when the network is congested.
[0122] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0123] Prioritize key services: By assigning priorities to the services of each VNI tenant, the transmission of key services can be prioritized when the network is congested, ensuring that the service quality of these services is not affected.
[0124] Optimize network resource allocation: In congestion situations, high-priority messages are transmitted first, which helps to allocate network resources more efficiently and reduce the interference of low-priority messages on the transmission of high-priority messages.
[0125] Improve network efficiency: Through prioritization, the network can handle traffic more efficiently, reducing delays and packet loss caused by congestion, thereby improving overall network efficiency.
[0126] Furthermore, when the original message enters the switch device, the voice, video and text are respectively encapsulated by VxLAN through the switch device, and corresponding VNIPriority values are set for the voice, the video and the text, to obtain the VxLAN encapsulated message of the voice, the VxLAN encapsulated message of the video and the VxLAN encapsulated message of the text; according to the VNIPriority values corresponding to the voice, the video and the text, the VxLAN encapsulated message corresponding to the voice, the VxLAN encapsulated message of the video and the VxLAN encapsulated message of the text are transmitted in the VxLAN network.
[0127] It should be noted that the above content can be implemented through the following specific implementation plans:
[0128] Determine the service type and VNIPriority value: Identify the service types in the network, such as voice, video, and text. Assign a VNIPriority value to each service type to indicate its priority. For example, voice usually has a higher priority, followed by video, and finally text.
[0129] Configure the switch: Ensure that the switch supports VxLAN encapsulation. Configure a unique VNI for each service type and set the mapping between VNI and VLAN on the switch.
[0130] Configure VxLAN encapsulation: Configure the switch to automatically encapsulate voice data into VxLAN format when it is detected, and assign the corresponding VNI and VNIPriority values. Similarly, configure the switch to automatically encapsulate video data into VxLAN format when it is detected, and assign the corresponding VNI and VNIPriority values. Perform the same encapsulation steps for text data.
[0131] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0132] Quality of Service: By setting different VNIPriority values for voice, video, and text, you can prioritize the transmission of voice and video data when the network is congested because these types of data are more sensitive to delays and interruptions.
[0133] Improve user experience: For applications with high real-time requirements such as voice and video, priority transmission can reduce delays and improve the smoothness of video playback and the clarity of voice calls.
[0134] Optimized resource allocation: Network resources (such as bandwidth and processing power) can be allocated more efficiently based on the importance of different data types, ensuring that high-priority data receives adequate network support.
[0135] Furthermore, if the VNIPriority value of the voice is higher than the VNIPriority value of the video, and the VNIPriority value of the video is higher than the VNIPriority value of the text, when congestion occurs in the VxLAN network, the VxLAN encapsulated packets of the voice are transmitted preferentially in the VxLAN network, the VxLAN encapsulated packets of the video are transmitted secondarily, and finally the VxLAN encapsulated packets of the text are transmitted.
[0136] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:
[0137] Ensure continuity of key services: Since voice has the highest VNIPriority value, voice data will be transmitted first when network congestion occurs, which helps maintain the continuity of real-time voice communications.
[0138] Optimize video quality: The VNIPriority value for video is lower than that for voice but higher than that for text, which means that video data is transmitted after voice data. This helps to minimize delays and interruptions in video playback while maintaining voice quality.
[0139] Ensure basic communication functions: Text has the lowest VNIPriority value, which means that when network resources are at their tightest, text data will be the last to be transmitted. This ensures that even in extreme congestion, basic communication functions (such as text messaging) can still be maintained.
[0140] It should be noted that since the VxLAN message has no priority field, it is impossible to set high and low priorities for different tenants. In the case of VxLAN network congestion, it cannot be guaranteed that the services of important tenants can be given priority. The present invention sets a priority field for the VxLAN message, so that high and low priorities can be set for the services of different tenants in the VxLAN network, thereby ensuring that the services of important tenants can be given priority in the case of network congestion.
[0141] It should be noted that VxLAN QoS is used to implement the conversion between the QoS priority carried by the original message, the internal priority of the device (also known as the local priority, which is the priority used to distinguish the service level of the message inside the device) and the priority of the encapsulated message, so that differentiated QoS services can be provided based on the original message.
[0142] 1. The original message enters Switch1 through the Layer 2 sub-interface. The original message is mapped according to the DiffServ template bound to the main interface. The 802.1p priority of the original message is mapped to the internal priority of the device (PHB behavior and message color), and then enters the queue.
[0143] 2. The message enters the tunnel and is encapsulated. The 802.1p priority and DSCP priority of the outer layer of the encapsulated message are mapped by the internal priority of the original message according to the default template of the DiffServ domain. The message is transmitted in the tunnel according to the mapped priority.
[0144] 3. When the message leaves the tunnel, it is mapped according to the default template of the DiffServ domain according to the trust type 802.1p or DSCP configured on the tunnel interface (when the Ethernet interface is in Layer 3 mode, only DSCP can be trusted), mapped to the internal priority of the device, and enters the queue for transmission.
[0145] 4. Finally, the internal priority of the device is mapped according to the DiffServ domain template bound to the main interface, mapped to the 802.1p priority of the outgoing interface message, and the message is transmitted according to the mapped priority.
[0146] In the above solution, the 802.1p priority and DSCP priority of the outer layer of the encapsulated message are mapped by the internal priority of the original message according to the default template of the DiffServ domain. Priority division cannot be performed for different VNI tenants. The priority of unimportant tenant messages may be higher than that of important tenant messages, resulting in the loss of important tenant messages when the network is congested.
[0147] In response to the above shortcomings, the purpose of the embodiments of this specification is to add a priority field after the VNI field in the VxLAN message, and to prioritize different VNI tenants according to their importance levels, so as to ensure that the services of important VNI tenants are given priority when congestion occurs in the VxLAN network.
[0148] In such Figure 2 In the VxLAN network diagram shown in the figure, data center users obtain voice, video, and data services from the server. Now it is necessary to prioritize the three types of services in the entire network, ensuring that voice has the highest priority, video has the second highest priority, and data has the lowest priority.
[0149] 1. The original message enters the switch1 device, which performs VxLAN encapsulation on the three major services of voice, video, and data. At the same time, different VxLAN vni priorities can be encapsulated for voice, video, and data services. The vni priority field is set to 8 levels from 0 to 7, with 7 being the highest priority, and 0 being the lowest priority. By default, vnipriority 0 to 7 enters queues 0 to 7;
[0150] 2. The encapsulated message is transmitted in the VxLAN network according to the new VxLAN vni priority and mapped to the service level and color. At the same time, the mapping template and QoS policy can be reset for the VxLAN vni priority in the transmission device between the two Vtep nodes as needed;
[0151] 3. When congestion occurs in the tunnel network, the VxLAN vni priority is compared first, and the tenant message with the highest vni priority is given priority. Then the original message priority is compared in the same vni tenant, and the original message with the highest priority is given priority.
[0152] The present invention first divides the priorities of tenants of different VNIs, and then compares the message priorities among tenants of the same VNI. The division of message priorities is more detailed, so that high-priority services of high-priority tenants can be guaranteed to pass first when network congestion occurs.
[0153] The present invention adds a VNI priority field to the VNI tenant when adding VNI to the original message encapsulation, and sets priorities for different VNI tenants; the VNI priority field is set to 8 levels from 0 to 7, 7 is the highest priority, and 0 is the lowest priority. By default, vni priority 0 to 7 enters queues 0 to 7; when congestion occurs in the tunnel network, the VNI priorities are compared first, and the tenant messages with a large VNI priority are given priority, and then the original message priorities are compared in the same VNI tenant, and the messages with a high original message priority are given priority.
[0154] Figure 3 A structural diagram of a VxLAN network message transmission device provided for one or more embodiments of this specification includes: an encapsulation unit 301 and a transmission unit 302.
[0155] The encapsulation unit 301 performs VxLAN encapsulation on different VNI tenant services through the switch device when the original message enters the switch device, and sets corresponding VNI Priority values for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, where the VNI Priority value is used to indicate the priority of each VNI tenant service;
[0156] The transmission unit 302 transmits the VxLAN encapsulated message of the corresponding VNI tenant service in the VxLAN network according to the VNIPriority value corresponding to each VNI tenant service.
[0157] Further, the transmission unit 302 executes the VxLAN encapsulation message of the corresponding VNI tenant service in the VxLAN network according to the VNI Priority value corresponding to each VNI tenant service, specifically including:
[0158] According to the VNIPriority value corresponding to each VNI tenant service, a mapping template and a QoS policy for message transmission are set, wherein the mapping template is used to map the VNIPriority value of each VNI tenant service in the VxLAN network to the corresponding transmission device, and the QoS policy is used to ensure transmission based on the VNIPriority value of each VNI tenant service when the network is congested;
[0159] According to the VNIPriority value corresponding to each VNI tenant service, the mapping template and QoS policy of message transmission, the VxLAN encapsulated message of the corresponding VNI tenant service is transmitted in the VxLAN network.
[0160] Figure 4 A structural diagram of a VxLAN network message transmission device provided for one or more embodiments of this specification includes:
[0161] at least one processor; and,
[0162] a memory communicatively connected to the at least one processor; wherein,
[0163] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0164] When the original message enters the switch device, VxLAN encapsulation is performed on different VNI tenant services through the switch device, and corresponding VNIPriority values are set for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, where the VNIPriority value is used to indicate the priority of each VNI tenant service;
[0165] The VxLAN encapsulated packets of the corresponding VNI tenant services are transmitted in the VxLAN network according to the VNIPriority values corresponding to the VNI tenant services.
[0166] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, which can achieve the following when executed by a computer:
[0167] When the original message enters the switch device, VxLAN encapsulation is performed on different VNI tenant services through the switch device, and corresponding VNIPriority values are set for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, where the VNIPriority value is used to indicate the priority of each VNI tenant service;
[0168] The VxLAN encapsulated packets of the corresponding VNI tenant services are transmitted in the VxLAN network according to the VNIPriority values corresponding to the VNI tenant services.
[0169] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A VxLAN network message transmission method, characterized in that: include: When the original message enters the switch device, VxLAN encapsulation is performed on different VNI tenant services through the switch device, and corresponding VNIPriority values are set for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, where the VNIPriority value is used to indicate the priority of each VNI tenant service; The VxLAN encapsulated packets of the corresponding VNI tenant services are transmitted in the VxLAN network according to the VNIPriority values corresponding to the VNI tenant services.
2. The method according to claim 1, characterized in that: The method of transmitting the VxLAN encapsulated message of the corresponding VNI tenant service in the VxLAN network according to the VNIPriority value corresponding to each VNI tenant service includes: According to the VNIPriority value corresponding to each VNI tenant service, a mapping template and a QoS policy for message transmission are set, wherein the mapping template is used to map the VNIPriority value of each VNI tenant service in the VxLAN network to the corresponding transmission device, and the QoS policy is used to ensure transmission based on the VNIPriority value of each VNI tenant service when the network is congested; According to the VNIPriority value corresponding to each VNI tenant service, the mapping template and QoS policy of message transmission, the VxLAN encapsulated message of the corresponding VNI tenant service is transmitted in the VxLAN network.
3. The method according to claim 2, characterized in that If it is detected that the VNIPriority values corresponding to the service settings of different VNI tenants have changed, the method further includes: Get the latest VNIPriority value corresponding to each VNI tenant service setting; Set the latest VNIPriority value according to each VNI tenant service, and reset the mapping template and QoS policy for message transmission.
4. The method according to claim 1, characterized in that: If congestion occurs in the VxLAN network, the method further includes: Based on the VNIPriority value corresponding to each VNI tenant service, the messages of each VNI tenant service are prioritized; According to the priority sorting, VxLAN encapsulated messages corresponding to the VNI tenant services are transmitted in the VxLAN network.
5. The method according to claim 1, characterized in that: The method further comprises: When the original message enters the switch device, the voice, video and text are respectively encapsulated by VxLAN through the switch device, and corresponding VNI Priority values are set for the voice, the video and the text, to obtain the VxLAN encapsulated message of the voice, the VxLAN encapsulated message of the video and the VxLAN encapsulated message of the text; According to the VNIPriority values corresponding to the voice, the video and the text, the VxLAN encapsulated message corresponding to the voice, the VxLAN encapsulated message of the video and the VxLAN encapsulated message of the text are transmitted in the VxLAN network.
6. The method according to claim 5, characterized in that If the VNIPriority value of the voice is higher than the VNIPriority value of the video, and the VNIPriority value of the video is higher than the VNIPriority value of the text, when congestion occurs in the VxLAN network, the method further includes: In the VxLAN network, the VxLAN encapsulated message of the voice is transmitted first, the VxLAN encapsulated message of the video is transmitted secondly, and finally the VxLAN encapsulated message of the text is transmitted.
7. A VxLAN network message transmission device, characterized in that: include: The encapsulation unit performs VxLAN encapsulation on different VNI tenant services through the switch device when the original message enters the switch device, and sets corresponding VNIPriority values for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, wherein the VNIPriority value is used to indicate the priority of each VNI tenant service; The transmission unit transmits the VxLAN encapsulated message of the corresponding VNI tenant service in the VxLAN network according to the VNIPriority value corresponding to each VNI tenant service.
8. The device according to claim 7, characterized in that The transmission unit executes the VxLAN encapsulation message corresponding to the VNI tenant service in the VxLAN network according to the VNIPriority value corresponding to each VNI tenant service, specifically including: According to the VNIPriority value corresponding to each VNI tenant service, a mapping template and a QoS policy for message transmission are set, wherein the mapping template is used to map the VNIPriority value of each VNI tenant service in the VxLAN network to the corresponding transmission device, and the QoS policy is used to ensure transmission based on the VNIPriority value of each VNI tenant service when the network is congested; According to the VNIPriority value corresponding to each VNI tenant service, the mapping template and QoS policy of message transmission, the VxLAN encapsulated message of the corresponding VNI tenant service is transmitted in the VxLAN network.
9. A VxLAN network message transmission device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: When the original message enters the switch device, VxLAN encapsulation is performed on different VNI tenant services through the switch device, and corresponding VNIPriority values are set for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, where the VNIPriority value is used to indicate the priority of each VNI tenant service; The VxLAN encapsulated packets of the corresponding VNI tenant services are transmitted in the VxLAN network according to the VNIPriority values corresponding to the VNI tenant services.
10. A non-volatile computer storage medium, characterized in that: Computer executable instructions are stored, and when the computer executable instructions are executed by a computer, the following can be achieved: When the original message enters the switch device, VxLAN encapsulation is performed on different VNI tenant services through the switch device, and corresponding VNIPriority values are set for different VNI tenant services to obtain VxLAN encapsulated messages of different VNI tenant services, where the VNIPriority value is used to indicate the priority of each VNI tenant service; The VxLAN encapsulated packets of the corresponding VNI tenant services are transmitted in the VxLAN network according to the VNIPriority values corresponding to the VNI tenant services.
Citation Information
Patent Citations
SDN (software defined networking) architecture based method for realizing QoS (quality of service) mechanism of VXLAN (virtual extensible LAN)
CN104486246A
Message transmission method and device
CN107733799A
The invention relates to a method for guaranteeing QoS under a multi-core network of a trunking communication system
CN108990115A
Service processing method and device based on cloud network access of tenants, equipment and medium
CN117376266A