CN111211959A - Method for setting routing weight of virtual network - Google Patents
Method for setting routing weight of virtual network Download PDFInfo
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/04—Interdomain 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
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.
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)
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 |
-
2019
- 2019-12-27 CN CN201911382648.9A patent/CN111211959A/en not_active Withdrawn
-
2020
- 2020-04-01 JP JP2020065631A patent/JP6795234B1/en not_active Expired - Fee Related
Patent Citations (2)
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)
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 | |
CN109756425B (en) | Multicast forwarding method, device and BFR | |
US9680751B2 (en) | Methods and devices for providing service insertion in a TRILL network | |
JP5373625B2 (en) | Method and apparatus for multicast routing | |
EP2907279B1 (en) | Ensuring any-to-any reachability with opportunistic layer 3 forwarding in massive scale data center environments | |
US9504016B2 (en) | Optimized multicast routing in a Clos-like network | |
JP6501967B2 (en) | Data transmission method, related apparatus, and system | |
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 | |
US9813376B2 (en) | Methods and devices for acquiring media access control (MAC) address | |
WO2022021818A1 (en) | Method and device for processing data message, storage medium, and electronic device | |
CN103685007B (en) | A kind of mac learning method when edge device message forwards and edge device | |
US10291750B1 (en) | Aggregating data sessions between autonomous systems | |
CN102857352B (en) | Multicasting and broadcasting method and system based on overlay network | |
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 | |
CN115733790A (en) | Message forwarding method, device, equipment and storage medium | |
WO2021042446A1 (en) | Layer-two tunnel switching method, system, and apparatus | |
CN112583947A (en) | DHCP processing method, device, equipment and machine readable storage medium | |
US20240243990A1 (en) | Route notifying methods and electronic devices |
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 |