CN111211959A - Method for setting routing weight of virtual network - Google Patents

Method for setting routing weight of virtual network Download PDF

Info

Publication number
CN111211959A
CN111211959A CN201911382648.9A CN201911382648A CN111211959A CN 111211959 A CN111211959 A CN 111211959A CN 201911382648 A CN201911382648 A CN 201911382648A CN 111211959 A CN111211959 A CN 111211959A
Authority
CN
China
Prior art keywords
routing
vxlan
virtual network
ospf
physical path
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.)
Withdrawn
Application number
CN201911382648.9A
Other languages
Chinese (zh)
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.)
Guangdong Eflycloud Computing Co Ltd
Original Assignee
Guangdong Eflycloud Computing 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 Guangdong Eflycloud Computing Co Ltd filed Critical Guangdong Eflycloud Computing Co Ltd
Priority to CN201911382648.9A priority Critical patent/CN111211959A/en
Priority to JP2020065631A priority patent/JP6795234B1/en
Publication of CN111211959A publication Critical patent/CN111211959A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing

Landscapes

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

Abstract

The invention discloses a method for setting routing weight of a virtual network, which comprises the following steps: the vxlan interface receives a broadcast data frame; encapsulating the broadcast data frame into a vxlan packet; forwarding the vxlan packet to a specified multicast address; intercepting a message of a multicast address; finding an arp response message; establishing an IPV4 unicast tunnel of vxlan by using the arp response message; for the source target address of the arp response message, a bearer link is used for routing tracert, and a physical path is obtained; recording the physical path as A; taking A as a const value of a vxlan interface in the route calculation; the routing device starts an ospf routing protocol, and the ospf routing protocol enters a routing calculation state, so that the physical path A can be used as a const value of a vxlan interface in routing calculation. The invention improves the performance of the ospf routing protocol in the virtual network by recording the physical path in the vxlan virtual network and injecting the record into the ospf routing protocol to be used as the entry weight of the routing protocol when the routing protocol exchanges routing entries.

Description

Method for setting routing weight of virtual network
Technical Field
The invention relates to the technical field of virtual networks, in particular to a method for setting routing weights of a virtual network.
Background
In a traditional routing information exchange protocol (such as ospf), the rate of an interface is regarded as the weight of a routing path, but in a cloud data center, the interface connection rates of devices are basically the same, so that the interface rates of virtual networks on the basis are also equivalent, and therefore, the weights of routing entries in the data center are basically consistent
However, in a virtual network of a data center, a virtual network connection that appears to be through may actually pass through multiple different physical devices. Therefore, in a virtual network environment, physical hop count is used to replace the traditional bandwidth, and the physical hop count is used as the weight of the routing entry, which is a better choice.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for setting routing weight of a virtual network, which improves the performance of an ospf routing protocol in the virtual network by recording a physical path in a vxlan virtual network and injecting the record into the ospf routing protocol to be used as an entry weight when the routing protocol exchanges routing entries.
In order to solve the technical problems, the invention provides the following technical scheme: a method for setting routing weight of virtual network includes following steps:
s1, monitoring the message of the multicast address, and when finding an arp response message, establishing an IPV4 unicast tunnel of vxlan by using the arp response message;
s2, on the IPV4 unicast tunnel, for the source target address of the arp response message, using a bearing link to perform routing tracert, and obtaining a physical path;
and S3, recording the physical path obtained by the route tracert as A, and taking the A as the const value of the vxlan interface in the ospf protocol route calculation.
Preferably, step S1 is preceded by step S0, where the vxlan interface receives a broadcast data frame, encapsulates the broadcast data frame into a vxlan packet, and forwards the vxlan packet to the multicast address.
Preferably, the step S3 is specifically: recording a physical path obtained by the router tracert as A; and the routing equipment starts an ospf routing protocol, the ospf routing protocol enters a routing calculation state, and A is used as a const value of a vxlan interface in routing calculation.
After the technical scheme is adopted, the invention at least has the following beneficial effects: the invention takes the physical path obtained by the route tracert as the const value of the vxlan interface in the route calculation of the ospf route protocol, thereby achieving the purpose of optimizing the route selection mechanism of the ospf protocol in the virtual network environment.
Drawings
Fig. 1 is a flowchart of the steps of a method for setting routing weights of a virtual network according to the present invention.
Detailed Description
It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict, and the present application is further described in detail with reference to the drawings and specific embodiments.
Example 1
The invention discloses a method for setting routing weight of a virtual network, which improves the performance of an OSPF routing protocol in the virtual network by recording a physical path in a vxlan virtual network and injecting the record into an OSPF routing protocol as the entry weight of the routing protocol when the routing protocol exchanges routing entries.
As shown in fig. 1, the present invention provides a method for setting routing weights of a virtual network, which specifically comprises the following steps:
1) the vxlan interface receives a broadcast data frame;
2) encapsulating the broadcast data frame into a vxlan packet;
3) forwarding the vxlan packet to a specified multicast address;
4) intercepting a message of a multicast address;
5) finding an arp response message;
6) establishing an IPV4 unicast tunnel of vxlan by using the arp response message;
7) on the IPV4 unicast tunnel, for the source target address of the arp response message, using a bearer link to perform routing tracert, and obtaining a physical path;
8) recording a physical path obtained by the router tracert as A;
9) taking A as a const value of a vxlan interface in the ospf protocol routing calculation; before that, the routing device starts the ospf routing protocol, completes initialization, and the ospf routing protocol enters the routing calculation state, so that the physical path a can be used as the const value of the vxlan interface in the routing calculation.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various equivalent changes, modifications, substitutions and alterations can be made herein without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims (3)

1. A method for setting routing weight of virtual network is characterized by comprising the following steps:
s1, monitoring the message of the multicast address, and when finding an arp response message, establishing an IPV4 unicast tunnel of vxlan by using the arp response message;
s2, on the IPV4 unicast tunnel, for the source target address of the arp response message, using a bearing link to perform routing tracert, and obtaining a physical path;
and S3, recording the physical path obtained by the route tracert as A, and taking the A as the const value of the vxlan interface in the ospf protocol route calculation.
2. The method for setting routing weights of virtual network as claimed in claim 1, wherein said step S1 is preceded by the step S0 of receiving a broadcast data frame by the vxlan interface, encapsulating the broadcast data frame in a vxlan packet, and forwarding the vxlan packet to the multicast address.
3. The method for setting routing weights of a virtual network according to claim 1, wherein the step S3 specifically includes: recording a physical path obtained by the router tracert as A; and the routing equipment starts an ospf routing protocol, the ospf routing protocol enters a routing calculation state, and A is used as a const value of a vxlan interface in routing calculation.
CN201911382648.9A 2019-12-27 2019-12-27 Method for setting routing weight of virtual network Withdrawn CN111211959A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911382648.9A CN111211959A (en) 2019-12-27 2019-12-27 Method for setting routing weight of virtual network
JP2020065631A JP6795234B1 (en) 2019-12-27 2020-04-01 How to set weights for virtual network routing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911382648.9A CN111211959A (en) 2019-12-27 2019-12-27 Method for setting routing weight of virtual network

Publications (1)

Publication Number Publication Date
CN111211959A true CN111211959A (en) 2020-05-29

Family

ID=70788382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911382648.9A Withdrawn CN111211959A (en) 2019-12-27 2019-12-27 Method for setting routing weight of virtual network

Country Status (2)

Country Link
JP (1) JP6795234B1 (en)
CN (1) CN111211959A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707563A (en) * 2009-11-27 2010-05-12 北京交通大学 Stratified network mapping and implementation method based on optimal utility
CN104601472A (en) * 2015-02-04 2015-05-06 盛科网络(苏州)有限公司 Chip VXLAN gateway distributed routing implementation method and message processing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707563A (en) * 2009-11-27 2010-05-12 北京交通大学 Stratified network mapping and implementation method based on optimal utility
CN104601472A (en) * 2015-02-04 2015-05-06 盛科网络(苏州)有限公司 Chip VXLAN gateway distributed routing implementation method and message processing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘杰,周保群: "《虚拟网络路由交换机制》", 《电子技术与软件工程》 *

Also Published As

Publication number Publication date
JP6795234B1 (en) 2020-12-02
JP2021108444A (en) 2021-07-29

Similar Documents

Publication Publication Date Title
US11522790B2 (en) Multipath data transmission processing method and network device
US9680751B2 (en) Methods and devices for providing service insertion in a TRILL network
CN109756425B (en) Multicast forwarding method, device and BFR
JP5373625B2 (en) Method and apparatus for multicast routing
CN107948076B (en) Method and device for forwarding message
EP2907279B1 (en) Ensuring any-to-any reachability with opportunistic layer 3 forwarding in massive scale data center environments
CN103685009B (en) Data packet processing method and system as well as controller
JP6501967B2 (en) Data transmission method, related apparatus, and system
US9504016B2 (en) Optimized multicast routing in a Clos-like network
US11502962B2 (en) Method, apparatus, and system for implementing data transmission
WO2018214809A1 (en) Message transmission method and device, and storage medium
US10187846B2 (en) Packet transmission method, device, and communications system
US10686701B2 (en) Packet transmission method and device, and communications system
CN107547346B (en) Message transmission method and device
US9781036B2 (en) Emulating end-host mode forwarding behavior
US9813376B2 (en) Methods and devices for acquiring media access control (MAC) address
CN114079674B (en) Data processing method, user plane function and device
WO2022021818A1 (en) Method and device for processing data message, storage medium, and electronic device
CN112583947B (en) DHCP processing method, device, equipment and machine readable storage medium
US10291750B1 (en) Aggregating data sessions between autonomous systems
WO2015096734A1 (en) Downlink transmission method for service data, and packet data gateway
CN111211959A (en) Method for setting routing weight of virtual network
CN114079640B (en) Data processing method, user plane function and device
EP3324587A1 (en) Multicast method, multicast relay device and system
WO2021042446A1 (en) Layer-two tunnel switching method, system, and apparatus

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200529