CN108833250A - A kind of retransmission method between VxLAN and VLAN - Google Patents

A kind of retransmission method between VxLAN and VLAN Download PDF

Info

Publication number
CN108833250A
CN108833250A CN201810651197.3A CN201810651197A CN108833250A CN 108833250 A CN108833250 A CN 108833250A CN 201810651197 A CN201810651197 A CN 201810651197A CN 108833250 A CN108833250 A CN 108833250A
Authority
CN
China
Prior art keywords
vxlan
vlan
network
vni
mark
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.)
Pending
Application number
CN201810651197.3A
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.)
Shandong Chaoyue CNC Electronics Co Ltd
Original Assignee
Shandong Chaoyue CNC Electronics 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 Shandong Chaoyue CNC Electronics Co Ltd filed Critical Shandong Chaoyue CNC Electronics Co Ltd
Priority to CN201810651197.3A priority Critical patent/CN108833250A/en
Publication of CN108833250A publication Critical patent/CN108833250A/en
Pending legal-status Critical Current

Links

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
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

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 present invention discloses the retransmission method between a kind of VxLAN and VLAN, is related to network communication technology, target MAC (Media Access Control) address and VxLAN flow table based on vlan network packet, establishes the mapping table between the mark VNI and VLAN ID of VxLAN;According to the mapping table between the mark VNI and VLAN ID of VxLAN, VxLAN gateway E-Packets between VxLAN network and vlan network;The message from two kinds of networks of VxLAN and VLAN is parsed and forwarded by VxLAN gateway, realizes the communication between VxLAN network and vlan network.The present invention solves the communication issue between VxLAN network and vlan network, overcomes current some server communication problems for not supporting VxLAN function, improves the communication quality between VxLAN network and vlan network.

Description

A kind of retransmission method between VxLAN and VLAN
Technical field
Retransmission method the present invention relates to network communication technology, between specifically a kind of VxLAN and VLAN.
Background technique
Vlan technology solves Web broadcast domain separation, and improves the safety between each subnet to a certain extent. But it is calculated in data-center applications in large-scale cloud, standard VLAN is far from satisfying corresponding network scale, dynamic network adjustment And the demand of virtual machine (vm) migration.With the driving that cloud computing virtualizes, the Overlay technology of Intrusion Detection based on host virtualization occurs, and makes The deployment and business activity of virtual machine are detached from physical network and its limitation, so that the network morphology of cloud computing constantly improve.
VxLAN is extension vlan technology, is a kind of current most popular overlay technology, uses the side of MAC in UDP Method provides the data plane based on tunnel for the forwarding of data packet.Encapsulate one again before original two layer message The packet header UDP provides the ability by double layer network overlay on three-layer network, solves and needs to tie up in big double layer network The problems such as protecting a very large mac and arp list item problem and storm flow, and the encapsulation of UDP can pass through three-layer network Network has better scalability than VLAN.VxLAN technology mainly under the driving of cloud computing virtualization, provides for big double layer network It is a kind of flexibly, the reliable, support technology that easily extends, solve vlan technology and moved in subnet size, dynamic network adjustment, virtual machine The deficiency of move etc..Network based on VxLAN should handle the communication between VxLAN network, also will in face of VxLAN with it is non- VxLAN, the communication mainly between vlan network.
In control plane, VxLAN carries out address learning according to flow table (VNI, internal layer MAC, outer layer vtep_ip), still protects Hold the feature of two-layer protocol address learning.After VxLAN extends VLAN, mainly the communication between VLAN and VLAN is improved Network communication between VxLAN and VxLAN.But the server of VxLAN function is not supported On, physical switches can only be leaned on to stamp VLAN tag to data packet, it is still desirable to the communication of VxLAN and non-VxLAN network, mainly It is the network communication between VxLAN and VLAN.In consideration of it, the present invention proposes the retransmission method between a kind of VxLAN and VLAN, it is real Network communication between existing VxLAN and VLAN.
Summary of the invention
The present invention is directed to the demand and shortcoming of current technology development, provides the forwarding between a kind of VxLAN and VLAN Method.
Retransmission method between a kind of VxLAN and VLAN of the present invention solves the technical side that above-mentioned technical problem uses Case is as follows:Retransmission method between the VxLAN and VLAN crosses the mapping established between the mark VNI and VLAN ID of VxLAN Table;According to the mapping table between the mark VNI and VLAN ID of VxLAN, VxLAN gateway is between VxLAN network and vlan network It E-Packets;The message from two kinds of networks of VxLAN and VLAN is parsed and forwarded by VxLAN gateway, realizes VxLAN net Communication between network and vlan network.
Specifically, target MAC (Media Access Control) address and VxLAN flow table based on vlan network packet, establish the mark VNI of VxLAN with The mapping table of VLAN ID.
Specifically, establishing the mapping table of the mark VNI and VLAN ID of VxLAN:
The target MAC (Media Access Control) address of step 1, VxLAN gateway parsing vlan network frame searches VxLAN stream according to the MAC Address Table;
If step 2 finds related VxLAN flow table, by the MAC Address and its corresponding mark in VxLAN flow table The mapping table of the mark VNI and VLAN ID of VxLAN is written in VNI;
If step 3 can not find related VxLAN flow table, target MAC (Media Access Control) address is not arrived by the study of VxLAN gateway also, abandons this Ground vlan network frame.
Specifically, the communication between the VxLAN network and vlan network, including sent data to from vlan network VxLAN network, and two parts of vlan network are sent data to from VxLAN network.
Specifically, sending data to VxLAN network from vlan network:
Step 1, when data enter VxLAN network from vlan network, VxLAN gateway parses vlan network frame, obtains it VLAN ID;
Step 2, the mapping table of mark VNI and VLAN ID of the VxLAN gateway based on VxLAN, acquired in finding step 1 The mark VNI of the corresponding VxLAN of VLAN ID;
If finding the mark VNI of corresponding VxLAN, three are entered step;
If can not find the mark VNI of corresponding VxLAN, enter step four, re-establish the mark VNI of VxLAN with The mapping table of VLAN ID;
Step 3, VxLAN gateway are the packet header network frame packaging V xLAN according to the VxLAN flow table found, while being removed interior Layer VLAN id information, forwards the packet to corresponding VxLAN network;
Step 4, VxLAN gateway parse the target MAC (Media Access Control) address of vlan network frame, search VxLAN stream according to the MAC Address Table;If finding related VxLAN flow table, by the MAC Address and its corresponding mark VNI in VxLAN flow table, write-in The mapping table of the mark VNI and VLAN ID of VxLAN, then return step two.
Specifically, sending data to vlan network from VxLAN network:
Step 5, when data enter vlan network from VxLAN network, VxLAN gateway parses VxLAN network frame, obtains The mark VNI of VxLAN;
Step 6, the mapping table of mark VNI and VLAN ID of the VxLAN gateway based on VxLAN, acquired in finding step five The corresponding VLAN ID of the mark VNI of VxLAN;
If finding corresponding VLAN ID, seven are entered step;
If can not find corresponding VLAN ID, the VxLAN network frame is abandoned;
Step 7, VxLAN gateway removes the VxLAN encapsulation of network frame, and according to the VLAN id information found, again for VxLAN network frame adds VLAN tag, is reduced to vlan network frame, is sent to corresponding vlan network.
Retransmission method between a kind of VxLAN and VLAN of the present invention, has the advantage that compared with prior art It is:The present invention is based on the target MAC (Media Access Control) address of vlan network packet and VxLAN flow table, establish the mark VNI's and VLAN ID of VxLAN Mapping table;According to the mapping table between the mark VNI and VLAN ID of VxLAN, VxLAN gateway is in VxLAN network and vlan network Between be forwarded message;The message from two kinds of networks is parsed and forwarded by VxLAN gateway, solves VxLAN net Communication issue between network and vlan network overcomes current some server communication problems for not supporting VxLAN function, improves Communication quality between VxLAN network and vlan network;Present inventive concept is novel, easy to operate, and there is preferable popularization to make With value.
Detailed description of the invention
Illustrate the embodiment of the present invention or technology contents in the prior art in order to clearer, below to the embodiment of the present invention Or required attached drawing does simple introduction in the prior art.It will be apparent that attached drawing disclosed below is only of the invention one Section Example to those skilled in the art without creative efforts, can also be attached according to these Figure obtains other attached drawings, but within the scope of the present invention.
The schematic diagram of retransmission method of the attached drawing 1 between the VxLAN and VLAN.
Specific embodiment
The technical issues of to make technical solution of the present invention, solving and technical effect are more clearly understood, below in conjunction with tool Body embodiment is checked technical solution of the present invention, is completely described, it is clear that described embodiment is only this hair Bright a part of the embodiment, instead of all the embodiments.Based on the embodiment of the present invention, those skilled in the art are not doing All embodiments obtained under the premise of creative work out, all within protection scope of the present invention.
Embodiment:
The present embodiment proposes the retransmission method between a kind of VxLAN and VLAN, by establish the mark VNI of VxLAN with Mapping table between VLAN ID, for solving the communication between VxLAN network and vlan network.It is logical between VxLAN and VLAN Letter relies primarily on the progress of VxLAN gateway, and the message from two kinds of networks is parsed and forwarded by VxLAN gateway.VxLAN net Pass E-Packets between VxLAN network and vlan network, and main foundation is reflecting between the mark VNI and VLAN ID of VxLAN Firing table.
Retransmission method between the present embodiment VxLAN and VLAN, be mainly based upon vlan network packet target MAC (Media Access Control) address and VxLAN flow table establishes the mapping table of the mark VNI and VLAN ID of VxLAN;Realization VxLAN network is mutual with native vlan network It is logical.The detailed process for establishing the mapping table of the mark VNI and VLAN ID of VxLAN includes:
The target MAC (Media Access Control) address of step 1, VxLAN gateway parsing vlan network frame searches VxLAN stream according to the MAC Address Table;
If step 2 finds related VxLAN flow table, by the MAC Address and its corresponding mark in VxLAN flow table The mapping table of the mark VNI and VLAN ID of VxLAN is written in VNI;
If step 3 can not find related VxLAN flow table, target MAC (Media Access Control) address is not arrived by the study of VxLAN gateway also, abandons this Ground vlan network frame.
Using the retransmission method between the present embodiment VxLAN and VLAN, communication between VxLAN network and vlan network, It include mainly VxLAN network being sent data to from vlan network, and send data to two portions of vlan network from VxLAN network Point.
From vlan network send data to VxLAN network the specific implementation process is as follows:
Step 1, when data enter VxLAN network from vlan network, VxLAN gateway parses vlan network frame, obtains it VLAN ID;
Step 2, the mapping table of mark VNI and VLAN ID of the VxLAN gateway based on VxLAN, acquired in finding step 1 The mark VNI of the corresponding VxLAN of VLAN ID;
If finding the mark VNI of corresponding VxLAN, three are entered step;
If can not find the mark VNI of corresponding VxLAN, enter step four, re-establish the mark VNI of VxLAN with The mapping table of VLAN ID;
Step 3, VxLAN gateway are the packet header network frame packaging V xLAN according to the VxLAN flow table found, while being removed interior Layer VLAN id information, forwards the packet to corresponding VxLAN network;
Step 4, VxLAN gateway parse the target MAC (Media Access Control) address of vlan network frame, search VxLAN stream according to the MAC Address Table;If finding related VxLAN flow table, by the MAC Address and its corresponding mark VNI in VxLAN flow table, write-in The mapping table of the mark VNI and VLAN ID of VxLAN, then return step two.
From VxLAN network send data to vlan network the specific implementation process is as follows:
Step 5, when data enter vlan network from VxLAN network, VxLAN gateway parses VxLAN network frame, obtains The mark VNI of VxLAN;
Step 6, the mapping table of mark VNI and VLAN ID of the VxLAN gateway based on VxLAN, acquired in finding step five The corresponding VLAN ID of the mark VNI of VxLAN;
If finding corresponding VLAN ID, seven are entered step;
If can not find corresponding VLAN ID, the VxLAN network frame is abandoned;
Step 7, VxLAN gateway removes the VxLAN encapsulation of network frame, and according to the VLAN id information found, again for VxLAN network frame adds VLAN tag, is reduced to vlan network frame, is sent to corresponding vlan network.
Use above specific case elaborates the principle of the present invention and embodiment, these embodiments are It is used to help understand core of the invention technology contents, the protection scope being not intended to restrict the invention, technical side of the invention Case is not limited in above-mentioned specific embodiment.Based on above-mentioned specific embodiment of the invention, those skilled in the art Without departing from the principle of the present invention, any improvement and modification to made by the present invention should all be fallen into of the invention special Sharp protection scope.

Claims (6)

1. the retransmission method between a kind of VxLAN and VLAN, which is characterized in that cross the mark VNI and VLAN ID for establishing VxLAN Between mapping table;According to VxLAN mark VNI and VLAN ID between mapping table, VxLAN gateway VxLAN network with It E-Packets between vlan network;The message from VxLAN and two kinds of networks of VLAN is parsed and turned by VxLAN gateway Hair realizes the communication between VxLAN network and vlan network.
2. the retransmission method between a kind of VxLAN and VLAN according to claim 1, which is characterized in that be based on vlan network The target MAC (Media Access Control) address and VxLAN flow table of packet establish the mapping table of the mark VNI and VLAN ID of the VxLAN.
3. the retransmission method between a kind of VxLAN and VLAN according to claim 2, which is characterized in that establish the mark of VxLAN The mapping table of will VNI and VLAN ID, detailed process include:
The target MAC (Media Access Control) address of step 1, VxLAN gateway parsing vlan network frame, searches VxLAN flow table according to the MAC Address;
If step 2 finds related VxLAN flow table, by the MAC Address and its corresponding mark VNI in VxLAN flow table, The mapping table of the mark VNI and VLAN ID of VxLAN is written;
If step 3 can not find related VxLAN flow table, target MAC (Media Access Control) address is not arrived by the study of VxLAN gateway also, is abandoned local Vlan network frame.
4. the retransmission method between a kind of VxLAN and VLAN according to claim 3, which is characterized in that the VxLAN network Communication between vlan network, including VxLAN network is sent data to from vlan network, and send number from VxLAN network According to arrive two parts of vlan network.
5. the retransmission method between a kind of VxLAN and VLAN according to claim 4, which is characterized in that sent out from vlan network Transmit data to VxLAN network:
Step 1, when data enter VxLAN network from vlan network, VxLAN gateway parses vlan network frame, obtains its VLAN ID;
Step 2, the mapping table of mark VNI and VLAN ID of the VxLAN gateway based on VxLAN, VLAN acquired in finding step 1 The mark VNI of the corresponding VxLAN of ID;
If finding the mark VNI of corresponding VxLAN, three are entered step;
If can not find the mark VNI of corresponding VxLAN, four are entered step, re-establishes the mark VNI and VLAN ID of VxLAN Mapping table;
Step 3, VxLAN gateway is the packet header network frame packaging V xLAN according to the VxLAN flow table found, while removing internal layer VLAN id information forwards the packet to corresponding VxLAN network;
Step 4, VxLAN gateway parse the target MAC (Media Access Control) address of vlan network frame, search VxLAN flow table according to the MAC Address;If Related VxLAN flow table is found, then by the MAC Address and its corresponding mark VNI in VxLAN flow table, the mark of VxLAN is written The mapping table of will VNI and VLAN ID, then return step two.
6. the retransmission method between a kind of VxLAN and VLAN according to claim 4, which is characterized in that sent out from VxLAN network Transmit data to vlan network:
Step 5, when data enter vlan network from VxLAN network, VxLAN gateway parses VxLAN network frame, obtains VxLAN Mark VNI;
Step 6, the mapping table of mark VNI and VLAN ID of the VxLAN gateway based on VxLAN, VxLAN acquired in finding step five The corresponding VLAN ID of mark VNI;
If finding corresponding VLAN ID, seven are entered step;
If can not find corresponding VLAN ID, the VxLAN network frame is abandoned;
Step 7, VxLAN gateway remove the VxLAN encapsulation of network frame, and are again VxLAN according to the VLAN id information found Network frame adds VLAN tag, is reduced to vlan network frame, is sent to corresponding vlan network.
CN201810651197.3A 2018-06-22 2018-06-22 A kind of retransmission method between VxLAN and VLAN Pending CN108833250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810651197.3A CN108833250A (en) 2018-06-22 2018-06-22 A kind of retransmission method between VxLAN and VLAN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810651197.3A CN108833250A (en) 2018-06-22 2018-06-22 A kind of retransmission method between VxLAN and VLAN

Publications (1)

Publication Number Publication Date
CN108833250A true CN108833250A (en) 2018-11-16

Family

ID=64137503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810651197.3A Pending CN108833250A (en) 2018-06-22 2018-06-22 A kind of retransmission method between VxLAN and VLAN

Country Status (1)

Country Link
CN (1) CN108833250A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109525479A (en) * 2018-12-19 2019-03-26 锐捷网络股份有限公司 A kind of message processing method and equipment
CN110581792A (en) * 2019-09-20 2019-12-17 杭州迪普信息技术有限公司 Message transmission method and device
CN111464511A (en) * 2020-03-18 2020-07-28 紫光云技术有限公司 Method for supporting multi-VPC isolation in cloud computing network
CN115941625A (en) * 2022-12-27 2023-04-07 天翼云科技有限公司 Flow table data correction method and system for cloud network
CN116132221A (en) * 2023-04-04 2023-05-16 鹏城实验室 Virtual-real interconnection method, device, equipment and storage medium of network target range platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601427A (en) * 2013-10-31 2015-05-06 杭州华三通信技术有限公司 Message forwarding method and device in data center network
CN106998286A (en) * 2017-05-05 2017-08-01 杭州迪普科技股份有限公司 A kind of VXLAN message forwarding methods and device
CN107395508A (en) * 2016-05-17 2017-11-24 华为技术有限公司 The method and apparatus to E-Packet
CN107579900A (en) * 2017-10-13 2018-01-12 锐捷网络股份有限公司 From the method, apparatus and system of vlan network access VXLAN networks
CN107659484A (en) * 2017-10-13 2018-02-02 锐捷网络股份有限公司 From the method, apparatus and system of vlan network access VXLAN networks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601427A (en) * 2013-10-31 2015-05-06 杭州华三通信技术有限公司 Message forwarding method and device in data center network
US20160261496A1 (en) * 2013-10-31 2016-09-08 Hangzhou H3C Technologies Co., Ltd. Packet forwarding in data center network
CN107395508A (en) * 2016-05-17 2017-11-24 华为技术有限公司 The method and apparatus to E-Packet
CN106998286A (en) * 2017-05-05 2017-08-01 杭州迪普科技股份有限公司 A kind of VXLAN message forwarding methods and device
CN107579900A (en) * 2017-10-13 2018-01-12 锐捷网络股份有限公司 From the method, apparatus and system of vlan network access VXLAN networks
CN107659484A (en) * 2017-10-13 2018-02-02 锐捷网络股份有限公司 From the method, apparatus and system of vlan network access VXLAN networks

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109525479A (en) * 2018-12-19 2019-03-26 锐捷网络股份有限公司 A kind of message processing method and equipment
CN109525479B (en) * 2018-12-19 2021-09-14 锐捷网络股份有限公司 Message processing method and device
CN110581792A (en) * 2019-09-20 2019-12-17 杭州迪普信息技术有限公司 Message transmission method and device
CN110581792B (en) * 2019-09-20 2022-03-22 杭州迪普信息技术有限公司 Message transmission method and device
CN111464511A (en) * 2020-03-18 2020-07-28 紫光云技术有限公司 Method for supporting multi-VPC isolation in cloud computing network
CN115941625A (en) * 2022-12-27 2023-04-07 天翼云科技有限公司 Flow table data correction method and system for cloud network
CN115941625B (en) * 2022-12-27 2024-04-26 天翼云科技有限公司 Flow table data correction method and system for cloud network
CN116132221A (en) * 2023-04-04 2023-05-16 鹏城实验室 Virtual-real interconnection method, device, equipment and storage medium of network target range platform
CN116132221B (en) * 2023-04-04 2023-08-25 鹏城实验室 Virtual-real interconnection method, device, equipment and storage medium of network target range platform

Similar Documents

Publication Publication Date Title
CN108833250A (en) A kind of retransmission method between VxLAN and VLAN
JP6475704B2 (en) Adaptive overlay networking
US10476796B2 (en) Packet processing method, and device and system
EP3282649B1 (en) Data packet forwarding
US10205657B2 (en) Packet forwarding in data center network
CN106998286B (en) VX L AN message forwarding method and device
EP2224645B1 (en) A method and equipment for transmitting a message based on the layer-2 tunnel protocol
CN105706400B (en) The method and apparatus of grouping are forwarded on network
CN104954218B (en) Distributed virtual switch and retransmission method
US9876711B2 (en) Source address translation in overlay networks
EP4073986B1 (en) Efficient arp bindings distribution in vpn networks
US9019837B2 (en) Packet modification to facilitate use of network tags
WO2014136864A1 (en) Packet rewriting apparatus, control apparatus, communication system, packet transmitting method and program
CN103227843A (en) Physical link address management method and device
CN107770072B (en) Method and equipment for sending and receiving message
CN107659485A (en) A kind of method and device of equipment and server communication in VPN VPN
WO2016107594A1 (en) Accessing external network from virtual network
CN108063718B (en) Message processing method and device and electronic equipment
CN103548323A (en) Flow identification method, device, and system
CN110752989A (en) Method and device for forwarding east-west traffic
CN114389905A (en) Network flow statistical method, related device and medium
US11570011B2 (en) Multicast packet handling based on flow cache information
Kawashima et al. SCLP: Segment-oriented connection-less protocol for high-performance software tunneling in datacenter networks
CN109088767B (en) Route updating method and device
Efraim et al. Using SR-IOV offloads with Open-vSwitch and similar applications

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116

RJ01 Rejection of invention patent application after publication