CN102868642B - The method and apparatus of NVGRE message repeating is realized in ASIC - Google Patents

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

Info

Publication number
CN102868642B
CN102868642B CN201210379696.4A CN201210379696A CN102868642B CN 102868642 B CN102868642 B CN 102868642B CN 201210379696 A CN201210379696 A CN 201210379696A CN 102868642 B CN102868642 B CN 102868642B
Authority
CN
China
Prior art keywords
message
nvgre
forwarding
module
information
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
CN201210379696.4A
Other languages
Chinese (zh)
Other versions
CN102868642A (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 CN201210379696.4A priority Critical patent/CN102868642B/en
Publication of CN102868642A publication Critical patent/CN102868642A/en
Application granted granted Critical
Publication of CN102868642B publication Critical patent/CN102868642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Present invention is disclosed a kind of method and apparatus realizing NVGRE message repeating in ASIC, the forwarding of described NVGRE message is completed by the NVGRE access point process be arranged between server and IP network, the NVGRE 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 virtual forwarding territory of its correspondence; Use virtual forwarding territory and message object MAC table look-up obtain message process information and forward port information; Treating E-Packets carry out encapsulation process after forward.Present invention achieves the behaviors such as the clean culture of NVGRE message, multicast and protocol massages transmitted to CPU, and be solidificated in after in ASIC by logic, achieve the fast-forwarding of NVGRE message.

Description

The method and apparatus of NVGRE message repeating is realized in ASIC
Technical field
The present invention relates to network communication field, particularly relate to the method and apparatus realizing NVGRE message repeating in 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.
NVGRE (NetworkVirtualizationusingGenericRoutingEncapsulation, use the virtual network of generic route encapsulation) just in this context, the scheme of the solution VLAN insufficient space proposed by IETF, replace VLAN to participate in forwarding by the virtual forwarding territory of a 24bit to table look-up, greatly extend the quantity of VLAN.GRE (GenericRoutingEncapsulation, generic route encapsulation) is defined by RFC2784 in the channel protocol expanded with RFC2890 and provides a kind of method for packing, by Packet Generation to 2 layers or 3 layer network destination addresses.NVGRE proposes to use GRE to create independently virtual 2 layer networks, limits physics 2 layer network or is enlarged beyond sub-net boundary.
NVGRE is at present with also in the draft stage, but its network layer and good autgmentability clearly, make NVGRE become one probably the solution approved by masses.So in network exchanging chip, the retransmission technique how realizing NVGRE 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 NVGRE message repeating in ASIC, namely in ASIC, NVGRE message is processed, it follows current the formulated NVGRE draft of IETF completely, to realize clean culture, a series of behavior such as multicast and protocol massages transmitted to CPU of NVGRE message, and be solidificated in after in ASIC by logic, the fast-forwarding of NVGRE message can be realized.
For achieving the above object, the present invention proposes following technical scheme: a kind of method realizing NVGRE message repeating in ASIC, and it comprises the following steps:
A. the message that NVGRE access point receives is resolved, judge whether to need to carry out forward process;
B. to the message needing to forward, the virtual forwarding territory of its correspondence is obtained;
C. use virtual forwarding territory and message object MAC table look-up obtain message process information and forward port information;
D. treating E-Packets carries out encapsulating or forwarding after editing and processing.
Further, described NVGRE 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.
When forwarding uplink message, in described step c, the acquisition in virtual forwarding territory is the virtual machine according to receiving the port of message and VLAN and obtaining belonging to current message, and and virtual forwarding territory corresponding to virtual machine;
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.
When converting downlink message, in described step c, the acquisition in virtual forwarding territory obtains virtual forwarding domain information entrained in header by decapsulation NVGRE 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 further teaches a kind of device realizing NVGRE message repeating in ASIC, comprising:
A. packet parsing and judge module, for resolving the message received, judges whether to need to carry out forward process;
B. virtual forwarding territory acquisition module, for the message needing to forward, obtains the virtual forwarding territory of its correspondence;
C. table look-up module is transmitted, the process information obtaining message for being tabled look-up by virtual forwarding territory and message object MAC 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 NVGRE message is completed by the NVGRE access point process be arranged between server and IP network, and described server supports there is multiple stage virtual machine, and on described virtual machine, correspondence has described virtual forwarding territory.
Described device also comprises the incoming interface message processing module of the message incoming interface information obtaining NVGRE access point, 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 NVGRE message repeating in ASIC that the present invention proposes achieves a series of behaviors such as the clean culture of NVGRE message, multicast and protocol massages transmitted to CPU, and be solidificated in after in ASIC by logic, achieve the fast-forwarding of NVGRE message.Meanwhile, the present invention is as a sub-feature of Ethernet switching chip, and combine with the characteristic of other Ethernet switching chip, being applicable to data center etc. has in the Ethernet switch of demand to NVGRE, reduces the expense of disposing NVGRE.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that the present invention realizes NVGRE message repeating in ASIC;
Fig. 2 is the forwarding process figure that the present invention forwards up NVGRE message;
Fig. 3 is the forwarding process figure of converting downlink NVGRE 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.
It is the schematic diagram realizing NVGRE message repeating in ASIC that the present invention discloses shown in Fig. 1, NVGRE access point is connected to the transmission carrying out network message and data between server and IP network, each NVGRE access point is connected with multiple servers, each server is provided with multiple stage virtual machine.NVGRE access point can receive and be sent to the uplink message of IP network from server and be sent to the downlink message of server from IP network, it is then forwarded to destination address after processing received message, and the process of NVGRE access point to uplink message and the handling process to downlink message are described below respectively:
One, uplink message process
Uplink message refers to the message sent from server side that NVGRE access point receives.When NVGRE access point receives the uplink message that server sends, to its encapsulation heading of NVGRE and outer IP and Ethernet head, send into IP network to forward, as the NVGRE access point 1 in Fig. 1, its message being sent to IP network road from server 1 or server 2 received, this message is forwarded to IP network after NVGRE access point 1 processes.And the uplink message processing unit processed uplink message in NVGRE access point comprises packet parsing module, incoming interface data obtaining module, virtual forwarding territory determination 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.
The concrete processing procedure of uplink message as shown in Figure 2, resolve the message received by packet parsing module, obtains the various information required for subsequent treatment; Incoming interface data obtaining module determines whether needing to carry out the process of NVGRE uplink message according to the configuration information of message sink mouth; Virtual forwarding territory module is according to the port and the VLAN that receive message, determine the virtual machine belonging to current message, and the virtual forwarding territory corresponding to this virtual machine, by this process, achieve the process of the virtual forwarding domain mapping of VLAN to NVGRE, VLAN no longer participates in forwarding, but as an identifier of virtual machine.In the present invention, on the server hung under each NVGRE access point, maximum 4096 virtual machines can be supported.
What two-layer retransmitting table table look-up module used virtual forwarding territory and message object MAC to carry out transmitting tables look-up, and obtains the process information of message, and these process informations comprise information and the packaging information of destination interface.When tabling look-up through two-layer retransmitting table, the result obtained is multicast, then also need to carry out multicast replication, then obtains destination interface and the packaging information of each multicast member; Otherwise directly by outgoing interface data obtaining module according to the result of tabling look-up, obtain the port information needing to forward.Message package module is by the upper NVGRE header of original Ethernet message encapsulation, and outer IP and ethernet header, then give packet forwarding module and forward.
Further, in two-layer retransmitting table table look-up module, 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.
Two, downlink message process
Downlink message refers to that NVGRE access point receives the message with NVGRE encapsulation sent from IP network.After the process of downlink message being comprised and receives downlink message in NVGRE access point, then by its decapsulation, and use internal mac address lookup table and be transmitted to the processing procedure of home server, as the message be sent to from IP network server 1 or server 2 that the NVGRE access point 1 in Fig. 1 is received.Downlink message processing unit in NVGRE access point 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.
The processing procedure of downlink message as shown in Figure 3, resolve the message received by packet parsing module, obtains the various information required for subsequent treatment; 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 NVGRE downlink message, only have when message has NVGRE encapsulation, and outer object IP be this access point need to be processed time, just can enter follow-up decapsulation module; Otherwise only perform route processing.Decapsulation module removes outer IP head, the Ethernet head of message, and NVGRE header, and obtains virtual forwarding domain information entrained in NVGRE header.
Two-layer retransmitting table table look-up module uses virtual forwarding territory and message internal layer object MAC to table look-up, 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, by according to configuration, necessary editor is carried out to internal layer message, then give 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 NVGRE, 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.
In addition, for the protocol massages that NVGRE access point receives, they are different from the process of described NVGRE uplink message and downlink message, if side is common three-layer network, the process of protocol massages is consistent with the process of common three-layer network protocol massages; If side is common double layer network, the process of protocol massages is consistent with the process of common double layer network protocol massages.
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 (5)

1. in ASIC, realize a method for NVGRE message repeating, it is characterized in that comprising the following steps:
A. resolve the message that NVGRE access point receives, judge whether to need to carry out forward process, wherein, described NVGRE 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, the virtual forwarding territory of its correspondence is obtained; Wherein, for uplink message, the acquisition in described virtual forwarding territory is the virtual machine obtaining belonging to current message according to the port and VLAN that receive message, and and virtual forwarding territory corresponding to virtual machine; For downlink message, the acquisition in described virtual forwarding territory obtains virtual forwarding domain information entrained in header by decapsulation NVGRE message;
C. use virtual forwarding territory and message object MAC table look-up obtain message process information and forward port information; If checking result is multicast, then carry out multicast replication, and obtain the process information of each multicast member;
D. treating E-Packets carries out encapsulating or forwarding after editing and processing.
2. the method realizing NVGRE message repeating in ASIC according to claim 1, is characterized in that: when forwarding uplink message, 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. the method realizing NVGRE message repeating in ASIC according to claim 1, is characterized in that: when converting downlink message, and 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.
4. one kind realizes the device of NVGRE message repeating in ASIC, it is characterized in that: the forwarding of described NVGRE message is completed by the NVGRE access point process be arranged between server and IP network, described server supports there is multiple stage virtual machine, to virtual forwarding territory should be had on described virtual machine, comprising:
A. packet parsing and judge module, for resolving the message received, judges whether to need to carry out forward process;
B. virtual forwarding territory acquisition module, for the message needing to forward, obtains the virtual forwarding territory of its correspondence;
C. table look-up module is transmitted, the process information obtaining message for being tabled look-up by virtual forwarding territory and message object MAC and forwarding port information;
D. packet forwarding module, treating E-Packets carries out encapsulating or forwarding after editing and processing.
5. the device realizing NVGRE message repeating in ASIC according to claim 4, it is characterized in that: described device also comprises the incoming interface message processing module of the message incoming interface information obtaining NVGRE access point, 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.
CN201210379696.4A 2012-10-09 2012-10-09 The method and apparatus of NVGRE message repeating is realized in ASIC Active CN102868642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210379696.4A CN102868642B (en) 2012-10-09 2012-10-09 The method and apparatus of NVGRE message repeating is realized in ASIC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210379696.4A CN102868642B (en) 2012-10-09 2012-10-09 The method and apparatus of NVGRE message repeating is realized in ASIC

Publications (2)

Publication Number Publication Date
CN102868642A CN102868642A (en) 2013-01-09
CN102868642B true CN102868642B (en) 2015-11-18

Family

ID=47447242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210379696.4A Active CN102868642B (en) 2012-10-09 2012-10-09 The method and apparatus of NVGRE message repeating is realized in ASIC

Country Status (1)

Country Link
CN (1) CN102868642B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014205784A1 (en) * 2013-06-28 2014-12-31 华为技术有限公司 Method and device for processing multicast message in nvo3 network, and nvo3 network
CN103414626A (en) * 2013-08-28 2013-11-27 盛科网络(苏州)有限公司 Message processing method and device based on network virtualization
CN104410560A (en) * 2014-11-27 2015-03-11 盛科网络(苏州)有限公司 Method for realizing BUM packet forwarding through NVGRE unicast
CN107452919B (en) 2016-06-01 2020-08-28 上海恩捷新材料科技有限公司 High-wettability isolating membrane and preparation method and application thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6765914B1 (en) * 2000-04-07 2004-07-20 3Com Corporation Generic switch architecture to support flexible subnets across layer-3 devices
CN101242366A (en) * 2008-02-28 2008-08-13 华为技术有限公司 A router and management and control method for router
CN101247308A (en) * 2007-02-13 2008-08-20 上海亿人通信终端有限公司 Tunnel packet processing method for implementing IPv6 traversing IPv4 based on network processor
CN101888662A (en) * 2009-05-14 2010-11-17 中兴通讯股份有限公司 Message transmission method and system
CN102457586A (en) * 2010-10-18 2012-05-16 中兴通讯股份有限公司 Expanding method for realizing double-layer network and expanded double-layer network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6765914B1 (en) * 2000-04-07 2004-07-20 3Com Corporation Generic switch architecture to support flexible subnets across layer-3 devices
CN101247308A (en) * 2007-02-13 2008-08-20 上海亿人通信终端有限公司 Tunnel packet processing method for implementing IPv6 traversing IPv4 based on network processor
CN101242366A (en) * 2008-02-28 2008-08-13 华为技术有限公司 A router and management and control method for router
CN101888662A (en) * 2009-05-14 2010-11-17 中兴通讯股份有限公司 Message transmission method and system
CN102457586A (en) * 2010-10-18 2012-05-16 中兴通讯股份有限公司 Expanding method for realizing double-layer network and expanded double-layer network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NVGRE: Network Virtualization using Generic Routing Encapsulation draft-sridharan-virtualization-nvgre-00;M. Sridharan等;《IETF》;20110930;第1-18页,图1,图2 *

Also Published As

Publication number Publication date
CN102868642A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
US10454888B2 (en) Method and device for processing data message
US20220078114A1 (en) Method and Apparatus for Providing Service for Traffic Flow
EP3133797B1 (en) Message forwarding method, system, and relay agent device
WO2022062506A1 (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN102859973A (en) Method, apparatus and system for address resolution
CN108200225A (en) Dissymmetric network address encapsulates
CN103944867A (en) Dynamic host configuration protocol (DHCP) message processing method, device and system
US20230370298A1 (en) Message header processing method and apparatus, storage medium and electronic device
CN102857429B (en) The method and apparatus of route is carried in TRILL network
WO2015143879A1 (en) Method for sending multicast packet and switch
CN108063716B (en) Method and apparatus for Ethernet virtual private network
CN102868642B (en) The method and apparatus of NVGRE message repeating is realized in ASIC
WO2020220459A1 (en) Vxlan and openflow-based method and system for sharing virtual home network
CN103685032B (en) Message forwarding method and network address translation services device
KR20180025944A (en) Method and apparatus for implementing SDN-based ARP
CN102255787B (en) Message processing method based on quality of service and operator network edge equipment
CN102984070A (en) Method for realizing data forwarding through unnumbered interface of Ethernet
US9755970B2 (en) Information processing method, device and system
CN105591897B (en) The MAC Address synchronous method and device of TRILL network
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
CN102238040B (en) Method for monitoring CE (Customer Edge router) and routing device

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