CN102868642A - Method and device for achieving NVGRE message transmission in application specific integrated circuit (ASIC) - Google Patents

Method and device for achieving NVGRE message transmission in application specific integrated circuit (ASIC) Download PDF

Info

Publication number
CN102868642A
CN102868642A CN2012103796964A CN201210379696A CN102868642A CN 102868642 A CN102868642 A CN 102868642A CN 2012103796964 A CN2012103796964 A CN 2012103796964A CN 201210379696 A CN201210379696 A CN 201210379696A CN 102868642 A CN102868642 A CN 102868642A
Authority
CN
China
Prior art keywords
message
nvgre
asic
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.)
Granted
Application number
CN2012103796964A
Other languages
Chinese (zh)
Other versions
CN102868642B (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

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for achieving NVGRE message transmission in an application specific integrated circuit (ASIC). The NVGRE message transmission is finished by an NVGRE access point arranged between a server and the internet protocol (IP) network. Transmitted NVGRE message comprises up message and down message. The up message is the message transmitted to the IP network from the server side. The processing process includes analyzing received message, judging whether transmission is required or not, acquiring a corresponding virtual transmission domain of the message requiring to be transmitted, acquiring processing information and transmission port information of the message through the virtual transmission domain and a message target MAC lookup table, packaging the message to be transmitted and transmitting the message to be transmitted. The method and the system achieve unicast and multicast of the NVGRE message, achieve the effect that protocol message is transmitted to a central processing unit (CPU) and achieve quick transmission of the NVGRE message after the message is logically solidified in the ASIC.

Description

In ASIC, realize the method and apparatus of NVGRE message repeating
Technical field
The present invention relates to network communication field, relate in particular to the method and apparatus of in the Ethernet switching chip design, realizing the NVGRE message repeating.
Background technology
Along with virtual and progressively development 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 the virtual machine, and the communication between virtual machine and the tenant, VLAN (Virtual Local Area Network, VLAN) is natural means that become the isolation LAN just.But because the extensive use of virtual technology, supported tenant's quantity also increases greatly in the data center, and the growth of explosion type will appear in two layer MAC address, and the MAC Address in the different virtual LAN can be overlapping in theory.Therefore, original 4KVLAN quantity is had too many difficulties to cope with.
NVGRE (Network Virtualization using Generic Routing Encapsulation, use the virtual network of generic route encapsulation) just under such background, a scheme that solves the VLAN insufficient space by the IETF proposition, virtual forwarding territory by a 24bit replaces VLAN participation forwarding to table look-up, and has greatly expanded the quantity of VLAN.Provide a kind of method for packing in the channel protocol that GRE (Generic RoutingEncapsulation, generic route encapsulation) is expanded by RFC 2784 definition and RFC 2890, with Packet Generation to 2 layer or 3 layer network destination addresses.NVGRE proposes to create independently virtual 2 layer networks with GRE, and restriction physics 2 layer networks or expansion surpass sub-net boundary.
NVGRE at present with also in the draft stage, but its clearly network layer and good autgmentability so that NVGRE becomes one probably by solution that masses approved.So in network exchanging chip, how to realize that the retransmission technique of NVGRE message also is not resolved.
Summary of the invention
The object of the present invention is to provide a kind of method and apparatus of in ASIRC, realizing the NVGRE message repeating, namely in ASIC, the NVGRE message is processed, it follows the present NVGRE draft of formulating of IETF fully, to realize a series of behaviors such as clean culture, multicast and protocol massages transmitted to CPU of NVGRE message, and after being solidificated among the ASIC by logic, can realize the fast-forwarding of NVGRE message.
For achieving the above object, the present invention proposes following technical scheme: a kind of method that in ASIC, realizes the NVGRE message repeating, and it may further comprise the steps:
A. the message of the NVGRE access point being received is resolved, and judges whether to carry out forward process;
B. the message of needs being transmitted, the virtual forwarding territory that obtains its correspondence;
C. use virtual forwarding territory and message purpose MAC to table look-up and obtain the process information of message and transmit port information;
D. treating E-Packets encapsulate or editing and processing after transmit.
Further, described NVGRE message comprises from server and is sent to the uplink message of IP network and is sent to the downlink message of server from IP network.
When transmitting uplink message, obtaining of virtual forwarding territory is to obtain virtual machine under the current message according to the port of receiving message and VLAN among the described step c, and and virtual forwarding territory corresponding to virtual machine;
Process information among the described step c comprises acquisition destination interface and packaging information; Treating in the described steps d E-Packets, and what carry out is encapsulation process.
When the converting downlink message, obtaining of virtual forwarding territory is to obtain entrained virtual forwarding domain information in the header by decapsulation NVGRE message among the described step c;
Process information among the described step c comprises acquisition destination interface and edit file; Treating in the 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.
The present invention has also disclosed a kind of device of realizing the NVGRE message repeating in ASIC, comprising:
A. packet parsing and judge module are used for the message of receiving is resolved, and judge whether to carry out forward process;
B. virtual forwarding territory acquisition module is used for message that needs are transmitted, the virtual forwarding territory that obtains its correspondence;
C. transmit table look-up module, be used for process information and the forwarding port information of tabling look-up and obtaining message by virtual forwarding territory and message purpose MAC;
D. packet forwarding module, treating E-Packets encapsulate or editing and processing after transmit.
Further, NVGRE access point between server and IP network finishes dealing with by being arranged in the forwarding of described NVGRE message, and supporting on the described server has many virtual machines, and correspondence has described virtual forwarding territory on the described virtual machine.
Described device also comprises the incoming interface message processing module of the message incoming interface information of obtaining the NVGRE access point, obtains the outgoing interface information module of outgoing interface information, the decapsulation module of message being carried out decapsulation, and the editor module that message is edited.
Compared with prior art, the method and apparatus of realizing the NVGRE message repeating in ASIC that the present invention proposes has been realized a series of behaviors such as clean culture, multicast and protocol massages transmitted to CPU of NVGRE message, and after being solidificated among the ASIC by logic, realized the fast-forwarding of NVGRE message.Simultaneously, the present invention combines with the characteristic of other Ethernet switching chip as a sub-feature of Ethernet switching chip, and being applicable to data center etc. has in the Ethernet switch of demand NVGRE, reduces the expense of disposing NVGRE.
Description of drawings
Fig. 1 is the present invention realizes the NVGRE message repeating in ASIC schematic diagram;
Fig. 2 is the forwarding process figure that the present invention transmits 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, the technical scheme of the embodiment of the invention is carried out clear, complete description.
The schematic diagram of in ASIC, realizing the NVGRE message repeating that the present invention of being shown in Figure 1 discloses, the NVGRE access point is connected to and carries out network message and data transfer between server and IP network, be connected with multiple servers on each NVGRE access point, be provided with many virtual machines on each server.The NVGRE access point can receive from server and be sent to the uplink message of IP network and be sent to the downlink message of server from IP network, it then is forwarded to destination address after message of receiving is processed, and the NVGRE access point is described below respectively to the processing of uplink message with to the handling process of downlink message:
One, uplink message is processed
The message of sending from server side that uplink message refers to that the NVGRE access point receives.When the NVGRE access point is received the uplink message that server sends, heading and outer IP and Ethernet head to its encapsulation NVGRE, sending into IP network transmits, such as the NVGRE access point 1 among Fig. 1, what it received is sent to the message on IP network road from server 1 or server 2, and this message is forwarded to IP network after NVGRE access point 1 is processed.And the uplink message processing unit of in the NVGRE access point uplink message being processed comprises the packet parsing module, incoming interface acquisition of information module, virtual forwarding territory determination module, transmit table look-up module for two layers, the multicast module, the multicast member replication module, outlet acquisition of information module, message package module and packet forwarding module.
The concrete processing procedure of uplink message as shown in Figure 2, the packet parsing module is resolved the message of receiving, obtains the needed various information of subsequent treatment; Incoming interface acquisition of information module determines whether that according to the configuration information of message sink mouth needs carry out the NVGRE uplink message and process; Virtual forwarding territory module is according to the port and the VLAN that receive message, determine the virtual machine that current message is affiliated, and the corresponding virtual forwarding of this virtual machine territory, by this processing, realized the process of VLAN to the mapping of the virtual forwarding of NVGRE territory, VLAN no longer participates in transmitting, but as an identifier of virtual machine.In the present invention, on the server of hanging under each NVGRE access point, can support maximum 4096 virtual machines.
The two-layer retransmitting table table look-up module is used tabling look-up that virtual forwarding territory and message purpose MAC transmit, and obtains the process information of message, and these process informations comprise information and the packaging information of destination interface.When the result who obtains that tables look-up through two-layer retransmitting table is multicast, then also need to carry out multicast replication, then obtain destination interface and the packaging information of each multicast member; Otherwise the result who is directly tabled look-up by outgoing interface acquisition of information module basis obtains the port information that need to forward.The message package module is with the upper NVGRE header of original Ethernet message encapsulation, and then outer IP and ethernet header are given packet forwarding module and transmitted.
Further, in the two-layer retransmitting table table look-up module, a default entry need to be set, like this must return results when tabling look-up.Generally, broadcasting, multicast and unknown unicast message can use these clauses and subclauses, its objective is to make current message be flooded to all members in the virtual forwarding territory.
Two, downlink message is processed
Downlink message refers to that the NVGRE access point receives the message with NVGRE encapsulation of sending from IP network.In the NVGRE access point to the processing of downlink message comprise receive downlink message after, then with its decapsulation, and use the internal mac address lookup table and be transmitted to the processing procedure of home server, be sent to message server 1 or the server 2 such as what the NVGRE access point 1 among Fig. 1 was received from IP network.Comprise the packet parsing module in the downlink message processing unit in the NVGRE access point, incoming interface acquisition of information module, decapsulation module, the two-layer retransmitting table table look-up module, multicast module, multicast member replication module, outgoing interface acquisition of information module, message editing module and packet forwarding module.
The processing procedure of downlink message as shown in Figure 3, the packet parsing module is resolved the message of receiving, obtains the needed various information of subsequent treatment; Incoming interface acquisition of information module is according to the configuration information of message sink mouth and the encapsulating structure of current message, determining whether carrying out the NVGRE downlink message processes, only have when message has NVGRE and encapsulate, and outer purpose IP is that this access point needs just can to enter follow-up decapsulation module the time to be processed; Otherwise only carry out route processing.Decapsulation module is removed outer IP head, the Ethernet head of message, and the NVGRE header, and obtains entrained virtual forwarding domain information in the NVGRE header.
The two-layer retransmitting table table look-up module uses virtual forwarding territory and message internal layer purpose MAC to table look-up, obtain the process information of message, this process information comprises destination interface and edit file, because do not need message is encapsulated this moment, therefore only some edit files may be arranged, such 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 acquisition of information module obtains the port information that need to forward according to the result who tables look-up.In the message editing module, will carry out necessary editor to the internal layer message according to configuration, then give packet forwarding module and transmit.
In the message editing module, topmost effect is to map out corresponding vlan information on the destination interface virtual machine according to the virtual forwarding of NVGRE territory, in order to server can be identified, sends to corresponding virtual machine.
In the two-layer retransmitting table table look-up module, the same with the uplink message processing, a default entry need to be set, make message be flooded to all members in the virtual forwarding territory in the home server.
In addition, for the protocol massages that the NVGRE access point is received, its processing from described NVGRE uplink message and downlink message is different, if a side is common three-layer network, the processing of protocol massages is processed consistent with common three-layer network protocol massages; If a side is common double layer network, the processing of protocol massages is processed consistent with common double layer network protocol massages.
Technology contents of the present invention and technical characterictic have disclosed as above; yet those of ordinary skill in the art still may be based on teaching of the present invention and announcements and are done all replacement and modifications that does not deviate from spirit of the present invention; therefore; protection range of the present invention should be not limited to the content that embodiment discloses; and should comprise various do not deviate from replacement of the present invention and modifications, and contained by the present patent application claim.

Claims (10)

1. method that realizes the NVGRE message repeating in ASIC is characterized in that may further comprise the steps:
A. the message of the NVGRE access point being received is resolved, and judges whether to carry out forward process;
B. the message of needs being transmitted, the virtual forwarding territory that obtains its correspondence;
C. use virtual forwarding territory and message purpose MAC to table look-up and obtain the process information of message and transmit port information;
D. treating E-Packets encapsulate or editing and processing after transmit.
2. the method that realizes the NVGRE message repeating in ASIC according to claim 1 is characterized in that: described NVGRE message comprises from server and is sent to the uplink message of IP network and is sent to the downlink message of server from IP network.
3. the method that in ASIC, realizes the NVGRE message repeating according to claim 2, it is characterized in that: when transmitting uplink message, obtaining of virtual forwarding territory is to obtain the affiliated virtual machine of current message according to the port of receiving message and VLAN among the described step c, and and virtual forwarding territory corresponding to virtual machine.
4. the method that in ASIC, realizes the NVGRE message repeating according to claim 2, it is characterized in that: when the converting downlink message, obtaining of virtual forwarding territory is to obtain entrained virtual forwarding domain information in the header by decapsulation NVGRE message among the described step c.
5. the method that realizes the NVGRE message repeating in ASIC according to claim 2 is characterized in that: when transmitting uplink message, the process information among the described step c comprises and obtains destination interface and packaging information; Treating in the described steps d E-Packets, and what carry out is encapsulation process.
6. the method that realizes the NVGRE message repeating in ASIC according to claim 2 is characterized in that: when the converting downlink message, the process information among the described step c comprises and obtains destination interface and edit file; Treating in the described steps d E-Packets, and what carry out is editing and processing.
7. according to claim 1 to the described method that in ASIC, realizes the NVGRE message repeating of 6 any one, it is characterized in that: in step c, if checking result is multicast, then carry out multicast replication, and obtain the process information of each multicast member.
8. device of realizing the NVGRE message repeating in ASIC is characterized in that comprising:
A. packet parsing and judge module are used for the message of receiving is resolved, and judge whether to carry out forward process;
B. virtual forwarding territory acquisition module is used for message that needs are transmitted, the virtual forwarding territory that obtains its correspondence;
C. transmit table look-up module, be used for process information and the forwarding port information of tabling look-up and obtaining message by virtual forwarding territory and message purpose MAC;
D. packet forwarding module, treating E-Packets encapsulate or editing and processing after transmit.
9. the device of in ASIC, realizing the NVGRE message repeating according to claim 8, it is characterized in that: NVGRE access point between server and IP network finishes dealing with by being arranged in the forwarding of described NVGRE message, supporting on the described server has many virtual machines, and correspondence has described virtual forwarding territory on the described virtual machine.
10. the device of in ASIC, realizing the NVGRE message repeating according to claim 8, it is characterized in that: described device also comprises the incoming interface message processing module of the message incoming interface information of obtaining the NVGRE access point, obtain the outgoing interface information module of outgoing interface information, message is carried out the decapsulation module of decapsulation, and 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 true CN102868642A (en) 2013-01-09
CN102868642B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414626A (en) * 2013-08-28 2013-11-27 盛科网络(苏州)有限公司 Message processing method and device based on network virtualization
WO2014205784A1 (en) * 2013-06-28 2014-12-31 华为技术有限公司 Method and device for processing multicast message in nvo3 network, and nvo3 network
CN104410560A (en) * 2014-11-27 2015-03-11 盛科网络(苏州)有限公司 Method for realizing BUM packet forwarding through NVGRE unicast
US11031654B2 (en) 2016-06-01 2021-06-08 Shanghai Energy New Materials Technology Co., Ltd. High-wettability separator and preparation method 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
M. SRIDHARAN等: "NVGRE: Network Virtualization using Generic Routing Encapsulation draft-sridharan-virtualization-nvgre-00", 《IETF》 *

Cited By (5)

* 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
US9768968B2 (en) 2013-06-28 2017-09-19 Huawei Technologies Co., Ltd. Method and apparatus for processing multicast packet on network virtualization over layer 3 (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
US11031654B2 (en) 2016-06-01 2021-06-08 Shanghai Energy New Materials Technology Co., Ltd. High-wettability separator and preparation method thereof

Also Published As

Publication number Publication date
CN102868642B (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
CN104396192B (en) Dissymmetric network address encapsulates
CN101160850B (en) Method and device for forwarding packet
CN102075438B (en) unicast data frame transmission method and device
WO2022062506A1 (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN102859973A (en) Method, apparatus and system for address resolution
CN103326918B (en) A kind of message forwarding method and equipment
EP3133797B1 (en) Message forwarding method, system, and relay agent device
WO2016054956A1 (en) Load sharing method and device
CN101667969A (en) Method of accessing IP/L3VPN network of L2VPN network and device thereof
WO2020220459A1 (en) Vxlan and openflow-based method and system for sharing virtual home network
CN102255787B (en) Message processing method based on quality of service and operator network edge equipment
CN102857429B (en) The method and apparatus of route is carried in TRILL network
CN102868642B (en) The method and apparatus of NVGRE message repeating is realized in ASIC
CN102984070A (en) Method for realizing data forwarding through unnumbered interface of Ethernet
CN105591897B (en) The MAC Address synchronous method and device of TRILL network
CN105933235B (en) Data communications method and device
CN107733765B (en) Mapping method, system and related equipment
EP2852115B1 (en) Information processing method, apparatus and system in trill networks
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
CN101841548B (en) Method for mapping host identity to network addresses
CN110768916B (en) Port statistical parameter notification method and device
CN108199960B (en) Multicast data message forwarding method, entrance routing bridge, exit routing bridge and system

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