CN102970227B - The method and apparatus of VXLAN message repeating is realized in ASIC - Google Patents

The method and apparatus of VXLAN message repeating is realized in ASIC Download PDF

Info

Publication number
CN102970227B
CN102970227B CN201210449232.6A CN201210449232A CN102970227B CN 102970227 B CN102970227 B CN 102970227B CN 201210449232 A CN201210449232 A CN 201210449232A CN 102970227 B CN102970227 B CN 102970227B
Authority
CN
China
Prior art keywords
message
vxlan
vxlanid
module
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210449232.6A
Other languages
Chinese (zh)
Other versions
CN102970227A (en
Inventor
方沛昱
廖继平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201210449232.6A priority Critical patent/CN102970227B/en
Publication of CN102970227A publication Critical patent/CN102970227A/en
Application granted granted Critical
Publication of CN102970227B publication Critical patent/CN102970227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Present invention is disclosed a kind of method and apparatus realizing VXLAN message repeating in ASIC, the forwarding of described VXLAN message is completed by the VXLAN gateway processes be arranged between server and IP network, the VXLAN message of described forwarding comprises uplink message and downlink message, described uplink message is the message being sent to IP network from server side, the message that its processing procedure comprises receiving is resolved, and judging whether needs to carry out forward process; To the message needing to forward, obtain the VXLANID of its correspondence; Do you use VXLAN? ID and message target MAC (Media Access Control) address table look-up obtain message process information and forward port information, forward after treating the encapsulation process that E-Packets.Present invention achieves the behaviors such as the clean culture of VXLAN message, multicast, and be solidificated in ASIC by logic, achieve the transition of forwarding territory to the forwarding territory based on VXLAN of VLAN.

Description

The method and apparatus of VXLAN message repeating is realized in ASIC
Technical field
The present invention relates to network communication field, particularly relate to the method and apparatus realizing VXLAN message repeating in ASIC (Ethernet switching chip) design.
Background technology
Along with virtual and progressively development that is cloud computing, following data center will dispose the application of virtual machine in a large number.In order to control between different virtual machine and virtual machine, and the communication between virtual machine and tenant, the means becoming isolation LAN that VLAN (VirtualLocalAreaNetwork, VLAN) is just natural.But due to the extensive use of virtual technology, in a data center, supported tenant's quantity also increases greatly, and two layer MAC address will occur the growth of explosion type, and the MAC Address in theory in different virtual LAN can be overlapping.Therefore, original 4KVLAN quantity is had too many difficulties to cope with.
VXLAN (VirtualExtensibleLocalAreaNetwork, easily extensible virtual network) just in this context, the scheme of the solution VLAN insufficient space proposed by IETF, replace VLAN to participate in forwarding by the VXLANID of a 24bit to table look-up, greatly extend the quantity of VLAN.
In the application scenarios of VXLAN, have a kind of gateway function, the intercommunication between the territory of non-VXLAN and VXLAN territory can be realized, but this function needs switch support, realize the forwarding of high bandwidth.
VXLAN is at present with also in the draft stage, but its network layer and good autgmentability clearly, make VXLAN become one probably the solution approved by masses.So in network exchanging chip, the retransmission technique how realizing VXLAN message is not also resolved.
Summary of the invention
The object of the present invention is to provide a kind of method and apparatus realizing VXLAN message repeating in ASIC, it can carry out VXLAN encapsulation and decapsulation to message, thus gateway (gateway) function by realizing VXLAN, realize forwarding territory based on VLAN to the transition in the forwarding territory based on VXLAN.
For achieving the above object, the present invention proposes following technical scheme: a kind of method realizing VXLAN message repeating in ASIC, comprises the following steps:
A. the message that VXLAN gateway receives is resolved, judge whether to need to carry out forward process;
B. to the message needing to forward, the VXLANID of its correspondence is obtained;
C. look into two-layer retransmitting table according to the target MAC (Media Access Control) address of message and VXLANID, obtain the process information of message and forward port information;
D. treating E-Packets carries out encapsulating or forwarding after editing and processing.
Further, described VXLAN message is the uplink message being sent to IP network from server.
In described step b, VXLANID is marked by VLAN or source MAC.
Process information in described step c comprises acquisition destination interface and packaging information; Treating in described steps d E-Packets, and what carry out is encapsulation process.
Described VXLAN message is the downlink message being sent to server from IP network, and in described step c, the acquisition of VXLANID obtains information entrained in header by decapsulation VXLAN message.
Process information in described step c comprises acquisition destination interface and edit file; Treating in described steps d E-Packets, and what carry out is editing and processing.
In step c, if checking result is multicast, then carry out multicast replication, and obtain the process information of each multicast member.
Present invention also offers a kind of device realizing VXLAN message repeating in ASIC, it comprises:
A. packet parsing and judge module, for resolving the message received, judges whether to need to carry out forward process;
B.VXLANID determination module, for the message needing to forward, obtains the VXLANID of its correspondence;
C. table look-up module is transmitted, the process information obtaining message for being tabled look-up by VXLANID and message target MAC (Media Access Control) address and forwarding port information;
D. packet forwarding module, treating E-Packets carries out encapsulating or forwarding after editing and processing.
Further, the forwarding of described VXLAN message is completed by the VXLAN gateway processes be arranged between server and IP network, and described server supports there is multiple stage virtual machine.
Described device also comprises the incoming interface message processing module of the message incoming interface information obtaining VXLAN gateway, obtains the outgoing interface information module of outgoing interface information, message is carried out to the decapsulation module of decapsulation, and to the editor module that message is edited.
Compared with prior art, the method and apparatus realizing VXLAN message repeating in ASIC that the present invention proposes achieves the clean culture of VXLAN message, multicast and broadcast.Meanwhile, the present invention, as a sub-feature of Ethernet switching chip, is solidificated in ASIC by logic, makes full use of the advantage of Ethernet switching chip high bandwidth, low cost, reduces for data center in the future carries out VLAN expansion the cost disposed.
Accompanying drawing explanation
Fig. 1 is the network diagram that the present invention realizes VXLAN message repeating in ASIC;
Fig. 2 is the forwarding process figure that the present invention forwards up VXLAN message;
Fig. 3 is the forwarding process figure of converting downlink VXLAN message of the present invention.
Embodiment
Below in conjunction with accompanying drawing of the present invention, clear, complete description is carried out to the technical scheme of the embodiment of the present invention.
As shown in Figure 1, what the present invention disclosed realizes VXLAN message repeating in ASIC, realize in the gateway of VXLAN, multiple VXLAN gateway is provided with between IP network and server, as the VXLANgateway1 in figure, VXLANgateway2, VXLANgateway3 and VXLANgateway4, to carry out the transfer of data between IP network and server.Each VXLAN gateway is connected with multiple servers, each server is provided with multiple stage virtual machine.Each VXLAN gateway can receive and be sent to the uplink message of IP network from corresponding server and be sent to the downlink message of corresponding server from IP network, it is then forwarded to destination address after processing received message, and the process of VXLAN gateway to uplink message and the handling process to downlink message are described below respectively:
One, uplink message process
What uplink message referred to that VXLAN gateway receives sends from server side the message needing to be encapsulated by VXLAN.When VXLAN gateway receives the uplink message sent from server side, as the VXLANgateway1 in Fig. 1, when what it received is sent to the message on IP network road from server 1 or server 2, this message is forwarded to IP network after processing in VXLANgateway1.In VXLAN gateway, analytic message is comprised to the processing procedure of this uplink message, obtain incoming interface information, determine the VXLANID in message, search two-layer retransmitting table table, after multicast, obtain outgoing interface information, then carry out message encapsulation and message repeating.Accordingly, its uplink message processing unit comprises packet parsing module, incoming interface data obtaining module, VXLANID module, two layers forward table look-up module, multicast module, multicast member replication module, outlet information acquisition module, message package module and packet forwarding module.
Specifically, the flow chart of uplink message process as shown in Figure 2, VXLAN gateway is resolved by packet parsing module the uplink message received, and the various information required for subsequent treatment of obtaining are as outer IP head, Ethernet head, and VXLAN header etc.; Incoming interface data obtaining module determines whether needing to carry out the process of VXLAN uplink message according to the configuration information of message sink mouth; If need the process carrying out VXLAN uplink message, then also will obtain the mapping relations of VXLANID, the mapping relations of this VXLANID mark VXLANID by VLAN or source MAC.
VXLANID determination module is tabled look-up according to the mapping relations of the VXLANID obtained before, as VXLANID VLAN mark time, search as keyword with incoming interface ID and VLANID, can obtain in the output of lookup result forward need VXLANID.
Two-layer retransmitting table table look-up module is tabled look-up as keyword jointly according to the target MAC (Media Access Control) address of message and VXLANID, obtains destination and the edit mode of this message.If multicast message, then for each multicast member, obtain corresponding destination and edit mode, subsequent treatment will process successively for each multicast member.In two-layer retransmitting table table look-up module, usually needing to arrange a default entry, must return results when tabling look-up like this.Under normal circumstances, broadcast, multicast and unknown unicast message can use this entry, its objective is and make current message be flooded to all members in virtual forwarding territory.
Outgoing interface data obtaining module obtains the information of outgoing interface according to the destination of transmitting decision.
Message package module is according to the packaging information transmitting decision, encapsulate accordingly, comprise the encapsulation of VXLAN head, UDP head, outer IP head, outer Ethernet head, then give packet forwarding module and send from corresponding destination interface, thus complete the processing procedure of VXLAN uplink message.
Two, downlink message process
Downlink message refers to that VXLAN gateway receives the message with VXLAN encapsulation sent from IP network.After the process of downlink message being comprised and receives downlink message in VXLAN gateway, then by its decapsulation, and use internal mac address lookup table and be transmitted to the processing procedure of home server, as the message being sent to the virtual machine server 1 or server 2 from IP network that the VXLANgateway1 in Fig. 1 receives.Downlink message processing unit in VXLAN gateway comprises packet parsing module, incoming interface data obtaining module, decapsulation module, two-layer retransmitting table table look-up module, multicast module, multicast member replication module, outgoing interface data obtaining module, message editing module and packet forwarding module.
Specifically, the process chart of downlink message as shown in Figure 3, packet parsing module is resolved the message received, and the various information required for subsequent treatment of obtaining are as outer IP head, Ethernet head, and VXLAN header etc.; The configuration information of incoming interface data obtaining module according to message sink mouth and the encapsulating structure of current message, determine whether needing to carry out the process of VXLAN downlink message, only have when message has VXLAN encapsulation, and outer object IP be this access point need to be processed time, just can enter follow-up decapsulation module; Otherwise only perform common route processing.Decapsulation module, according to incoming interface information, uses outer object IP, source IP to table look-up as keyword with being encapsulated in together with the VXLANID in message, obtains decapsulation information.Then outer IP head, the Ethernet head of message is removed, and VXLAN header, and obtain virtual forwarding domain information entrained in VXLAN header.
Two-layer retransmitting table table look-up module is tabled look-up as keyword jointly according to the target MAC (Media Access Control) address of internal layer and the VXLANID be encapsulated in message, obtain the process information of message, this process information comprises destination interface and edit file, owing to now not needing to encapsulate message, therefore only some edit files may be had, as VLAN.When checking result is multicast, then need to carry out multicast replication, then obtain destination interface and the edit file of each multicast member.
Outgoing interface data obtaining module, according to the result of tabling look-up, obtains the port information needing to forward.
In message editing module, according to the configuration of checking result and destination interface, necessary editor is carried out to internal layer message, then gives packet forwarding module and forward.
In message editing module, topmost effect goes out vlan information corresponding on destination interface virtual machine according to the virtual forwarding domain mapping of VXLAN, to make server identify, sends to corresponding virtual machine.
In two-layer retransmitting table table look-up module, the same with uplink message process, need to arrange a default entry, make message be flooded to all members in home server in virtual forwarding territory.
Technology contents of the present invention and technical characteristic have disclosed as above; but those of ordinary skill in the art still may do all replacement and the modification that do not deviate from spirit of the present invention based on teaching of the present invention and announcement; therefore; scope should be not limited to the content that embodiment discloses; and various do not deviate from replacement of the present invention and modification should be comprised, and contained by present patent application claim.

Claims (8)

1. in ASIC, realize a method for VXLAN message repeating, it is characterized in that comprising the following steps:
A. resolve the message that VXLAN gateway receives, judge whether to need to carry out forward process, described VXLAN message comprises and is sent to the uplink message of IP network from server and is sent to the downlink message of server from IP network;
B. to the message needing to forward, obtain the VXLANID of its correspondence, when described VXLAN message is described uplink message, to the VXLAN uplink message needing to forward, then first obtain the mapping relations of VXLANID, the mapping relations of described VXLANID mark VXLANID by VLAN or source MAC, then table look-up according to the mapping relations of the VXLANID obtained, in the output of lookup result, obtain VXLANID;
C. look into two-layer retransmitting table according to the target MAC (Media Access Control) address of message and VXLANID, obtain the process information of message and forward port information;
D. treating E-Packets carries out encapsulating or forwarding after editing and processing.
2. method according to claim 1, is characterized in that: described VXLAN message is the uplink message being sent to IP network from server, and the process information in described step c comprises acquisition destination interface and packaging information; Treating in described steps d E-Packets, and what carry out is encapsulation process.
3. method according to claim 1, is characterized in that: described VXLAN message is the downlink message being sent to server from IP network, and in described step c, the acquisition of VXLANID obtains information entrained in header by decapsulation VXLAN message.
4. method according to claim 3, is characterized in that: the process information in described step c comprises acquisition destination interface and edit file; Treating in described steps d E-Packets, and what carry out is editing and processing.
5. the method according to Claims 1-4 any one, is characterized in that: in step c, if checking result is multicast, then carries out multicast replication, and obtains the process information of each multicast member.
6. in ASIC, realize a device for VXLAN message repeating, it is characterized in that comprising:
A. packet parsing and judge module, for resolving the message received, judges whether to need to carry out forward process, and described VXLAN message comprises and is sent to the uplink message of IP network from server and is sent to the downlink message of server from IP network;
B.VXLANID determination module, for the message forwarded needs, obtain the VXLANID of its correspondence, when described VXLAN message is described uplink message, to the VXLAN uplink message needing to forward, then first obtain the mapping relations of VXLANID, the mapping relations of described VXLANID mark VXLANID by VLAN or source MAC, table look-up according to the mapping relations of the VXLANID obtained again, in the output of lookup result, obtain VXLANID;
C. table look-up module is transmitted, the process information obtaining message for being tabled look-up by VXLANID and message target MAC (Media Access Control) address and forwarding port information;
D. packet forwarding module, treating E-Packets carries out encapsulating or forwarding after editing and processing.
7. device according to claim 6, is characterized in that: the forwarding of described VXLAN message is completed by the VXLAN gateway processes be arranged between server and IP network, and described server supports there is multiple stage virtual machine.
8. device according to claim 6, it is characterized in that: described device also comprises the incoming interface message processing module of the message incoming interface information obtaining VXLAN gateway, obtain the outgoing interface information module of outgoing interface information, message is carried out to the decapsulation module of decapsulation, and to the editor module that message is edited.
CN201210449232.6A 2012-11-12 2012-11-12 The method and apparatus of VXLAN message repeating is realized in ASIC Active CN102970227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210449232.6A CN102970227B (en) 2012-11-12 2012-11-12 The method and apparatus of VXLAN message repeating is realized in ASIC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210449232.6A CN102970227B (en) 2012-11-12 2012-11-12 The method and apparatus of VXLAN message repeating is realized in ASIC

Publications (2)

Publication Number Publication Date
CN102970227A CN102970227A (en) 2013-03-13
CN102970227B true CN102970227B (en) 2016-03-02

Family

ID=47800114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210449232.6A Active CN102970227B (en) 2012-11-12 2012-11-12 The method and apparatus of VXLAN message repeating is realized in ASIC

Country Status (1)

Country Link
CN (1) CN102970227B (en)

Families Citing this family (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200069B (en) * 2013-03-29 2016-01-27 华为技术有限公司 A kind of method and apparatus of Message processing
CN103200085B (en) * 2013-04-16 2016-05-25 中航网信(北京)科技有限公司 A kind of method and system that realize the transmitting-receiving of VXLAN message linear speed
CN103401721A (en) * 2013-08-22 2013-11-20 盛科网络(苏州)有限公司 Network virtualization based TOR (top of rack) switch configuration method and device
CN103414626A (en) * 2013-08-28 2013-11-27 盛科网络(苏州)有限公司 Message processing method and device based on network virtualization
CN103814554B (en) * 2013-12-11 2015-12-30 华为技术有限公司 A kind of communication means of virtual easily extensible local area network (LAN), device and system
CN104796353B (en) * 2014-01-17 2018-10-19 华为技术有限公司 Message forwarding method, interchanger
EP2966815A4 (en) * 2014-05-29 2016-04-13 Huawei Tech Co Ltd Packet forwarding method and vxlan gateway
CN109861897B (en) * 2014-08-18 2023-09-01 华为技术有限公司 Method, device and system for obtaining corresponding relation
CN104158718B (en) * 2014-08-25 2017-06-13 新华三技术有限公司 A kind of message processing method and device
CN104410541B (en) * 2014-11-18 2017-09-15 盛科网络(苏州)有限公司 The method and device that VXLAN internal layer virtual machine traffics are counted in intermediary switch
CN105656796B (en) * 2014-11-25 2019-01-22 新华三技术有限公司 The method and apparatus for realizing three layers of virtual extended local area network forwarding
CN104378300B (en) * 2014-11-27 2018-04-03 盛科网络(苏州)有限公司 A kind of processing method for realizing Vxlan two-layer retransmitting tables in the chips
CN105812221B (en) * 2014-12-31 2019-07-12 华为技术有限公司 The device and method of data transmission in virtual expansible Local Area Network
CN105991387A (en) * 2015-01-29 2016-10-05 杭州华三通信技术有限公司 Message transformation method and device of virtual extensible local area network (VXLAN)
CN106161259B (en) * 2015-03-27 2019-02-12 新华三技术有限公司 The multicast data packet forwarding method and apparatus of virtual extended local area network VXLAN
CN104702525B (en) * 2015-04-03 2018-01-05 盛科网络(苏州)有限公司 A kind of method and chipset for realizing virtualization load balancing in the chips
CN106209636B (en) 2015-05-04 2019-08-02 新华三技术有限公司 Multicast data packet forwarding method and apparatus from VLAN to VXLAN
CN106209554B (en) 2015-05-04 2019-12-13 新华三技术有限公司 message forwarding method and device for crossing virtual extensible local area network
CN106209648B (en) 2015-05-04 2019-06-14 新华三技术有限公司 Multicast data packet forwarding method and apparatus across virtual expansible local area network
CN106209689B (en) * 2015-05-04 2019-06-14 新华三技术有限公司 Multicast data packet forwarding method and apparatus from VXLAN to VLAN
CN105939268B (en) * 2015-10-28 2019-11-08 杭州迪普科技股份有限公司 A kind of two-layer retransmitting table item polymerization and device
CN106817291A (en) * 2015-11-30 2017-06-09 中兴通讯股份有限公司 VXLAN realizes device and its method of work
CN105721313B (en) * 2016-02-05 2019-09-24 联想(北京)有限公司 Data transmission method and relevant device
CN107342925B (en) 2016-04-29 2020-03-06 新华三技术有限公司 Message transmission method and device
CN106059923B (en) * 2016-05-30 2019-07-05 新华三技术有限公司 A kind of message forwarding method and device
CN107566316A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 A kind of message parsing method, device and network processing unit
CN106130867B (en) * 2016-08-30 2019-06-14 锐捷网络股份有限公司 Virtual machine communication method and device across data center
CN106572085B (en) * 2016-10-19 2019-10-11 盛科网络(苏州)有限公司 A kind of chip and matching process from UDF application angle
CN108075956B (en) * 2016-11-16 2020-05-22 新华三技术有限公司 Data processing method and device
CN108462683B (en) * 2017-08-03 2020-04-03 新华三技术有限公司 Authentication method and device
CN108600074B (en) * 2018-04-20 2021-06-29 新华三技术有限公司 Method and device for forwarding multicast data message
CN108600415A (en) * 2018-05-28 2018-09-28 郑州云海信息技术有限公司 A kind of virtual network accesses method, system and the SDN controllers of outer net
CN112019420B (en) * 2020-09-04 2022-03-29 苏州盛科科技有限公司 Method and device for realizing VXLAN edge node multicast message forwarding
CN114726715A (en) * 2021-01-05 2022-07-08 ***通信有限公司研究院 Data frame transmission method, virtualization platform and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409685A (en) * 2008-12-01 2009-04-15 杭州华三通信技术有限公司 Forwarding method based on virtual LAN mapping and access equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409685A (en) * 2008-12-01 2009-04-15 杭州华三通信技术有限公司 Forwarding method based on virtual LAN mapping and access equipment

Also Published As

Publication number Publication date
CN102970227A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
US11979322B2 (en) Method and apparatus for providing service for traffic flow
US10454888B2 (en) Method and device for processing data message
EP2600573B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
CN101160902B (en) Data forwarding method and switching arrangement
US9819574B2 (en) Concerted multi-destination forwarding in a joint TRILL fabric and VXLAN/IP fabric data center
US20080159285A1 (en) Method and apparatus for improved multicast routing
CN111937358B (en) Multiple VRF generic device internet protocol addresses for fabric edge devices
WO2022062506A1 (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN105812259A (en) Packet forwarding method and device
CN101043430B (en) Method for converting network address between equipments
US20160142287A1 (en) Packet forwarding
CN102857429B (en) The method and apparatus of route is carried in TRILL network
CN110035005B (en) Data processing method and device
CN110519009B (en) Data packet transmission method and device
US20120177049A1 (en) Method and system for implementing network intercommunication
US10171259B2 (en) Network system and relay device
CN103685032B (en) Message forwarding method and network address translation services device
CN102868642B (en) The method and apparatus of NVGRE message repeating is realized in ASIC
CN105933235A (en) Data communication method and data communication device
CN103391251B (en) A kind of method and apparatus reducing redundant flow in PBB network
WO2017036384A1 (en) Provider edge device and data forwarding method
CN107547691B (en) Address resolution protocol message proxy method and device
JP5733473B2 (en) Interworking apparatus, method, and program
CN110062259B (en) Video acquisition method, system, device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 215101 unit 13 / 16, 4th floor, building B, No. 5, Xinghan street, Suzhou Industrial Park, Jiangsu Province

Patentee after: Suzhou Shengke Communication Co.,Ltd.

Address before: 215021 unit 13 / 16, floor 4, building B, No. 5, Xinghan street, industrial park, Suzhou, Jiangsu Province

Patentee before: CENTEC NETWORKS (SU ZHOU) Co.,Ltd.

CP03 Change of name, title or address