CN102594674B - Method and device for realizing double-virtual local area network (VLAN) cross forwarding - Google Patents

Method and device for realizing double-virtual local area network (VLAN) cross forwarding Download PDF

Info

Publication number
CN102594674B
CN102594674B CN201210028693.6A CN201210028693A CN102594674B CN 102594674 B CN102594674 B CN 102594674B CN 201210028693 A CN201210028693 A CN 201210028693A CN 102594674 B CN102594674 B CN 102594674B
Authority
CN
China
Prior art keywords
vlan
svid
cvid
inter
input
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
CN201210028693.6A
Other languages
Chinese (zh)
Other versions
CN102594674A (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.)
Wuhan flying Microelectronics Technology Co., Ltd.
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201210028693.6A priority Critical patent/CN102594674B/en
Publication of CN102594674A publication Critical patent/CN102594674A/en
Application granted granted Critical
Publication of CN102594674B publication Critical patent/CN102594674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for realizing double-virtual local area network (VLAN) cross forwarding in a network bridge; the method comprises the following steps that: (A10) a VLAN conversion table and a VLAN function configuration table are configured, the VLAN conversion table is used for converting system V interface definition (SVID) and common variable immunodeficiency (CVID) carried in dataflow into INTER_SVID and INTER_CVID; (A20) a VLAN exchange mode configuration table is configured, the forwarding mode of the input dataflow is determined according to the VLAN exchange mode configuration table, and traditional network bridge exchange business is processed according to a traditional network bridge; otherwise, the step (A30) is executed; (A30) a VLAN cross connection table is configured, the information of a corresponding result is searched in the VLAN cross connection table according to the searched information of the input dataflow; if the information of the result is found, the dataflow is forwarded according to the information of the result; and otherwise, processing is carried out according to a traditional network bridge method. According to the invention, forwarding is carried out directly according to the link information of an access point, so that the one point-to-more point cross connection is realized; the cross forwarding of different grain sizes is realized flexibly based on the SVID or SVID+CVID; and the more point-to-one point VLAN cross setting can be completed based on the convergence of the SVID and the CVID.

Description

Realize method and device that dual-VLAN intersection forwards
Technical field
The present invention relates to the ethernet switch technology in data communication technology field, be specifically related to realize method and the device that dual-VLAN intersection forwards, the Ethernet-Aggregation net that can be used for defining in TR101 and access node (for example, when access node adopts GPON technology), also can be used for other and need to carry out according to VLAN the place of data flow exchange.
Background technology
Along with developing rapidly of data communication technology, diversified network application constantly occurs, for example: basic Internet application, entertainment video (comprising radio and television, video request program etc.), video conference, VOIP (networking telephone), game and various business application etc.Yet, in actual network application, often can run into such situation: for example, at the mostly corresponding specific broadband gateway (server) of up direction (from customer side to network side) same class network service (IPTV), the data flow of this class business (for example ascending control information of IPTV application) all will be forwarded to specific broadband gateway; At down direction (from network side to customer side), if certain client only accesses from an access interface, the data flow that belongs to this client directly can be forwarded to this access interface so; Or some business user wishes that the data flow of oneself is directly forwarded to certain (or some) node of network, and these Tstreams are similar to the connection of point-to-point (or multipoint-to-point).For the Connection Service of this point-to-point (or multipoint-to-point), if search and forward by traditional study based on MAC Address, may take a large amount of address learning database spaces.
In order to address this is that, TR101 and TR156 have proposed VLAN interconnection (VLAN CROSSCONNECT) technology.With VLAN label, carry link information, the forward-path that the VLAN label carrying according to data flow at data switch section and input port decide data flow (carrying out exchanges data according to input port and VLAN label), this can regard VLAN interconnection processing identifier (VXC-Identifier) as for carrying out the VLAN label of data retransmission.It can be the combination of CVID, SVID or SVID and CVID that identifier is processed in VLAN interconnection, as long as input port is unique just passable.When adopting SVID and CVID combination as VXC-Identifier, each port can be set up at most 4096 * 4096 forward-paths.Visible, VLAN interconnection technology has the following advantages:
1) reduced the usage quantity of address learning table clause.
2) be the forwarding based on link, so QOS and Bandwidth guaranteed end to end are easily provided, easily transmission path protected.
3) can based on MAC address learning and the bridging technology searched, coexist with traditional, the SVID that can carry by data flow selects data stream to carry out VLAN interconnection processing, or carries out traditional bridge joint processing.
In order to meet the requirement of user Geng Gao, IEEE has proposed again the concept of dual-VLAN (Double VLAN) in IEEE802.1ad, defined the structure of the double layer VLAN of service provider VLAN (S-VLAN) and customer VLAN (C-VLAN), S-VLAN is corresponding to service provider VLAN label (S-TAG), C-VLAN is corresponding to customer VLAN label (C-TAG), service provider uses S-VLAN, and client uses C-VLAN.Defined the framework of service provider's bridge (Provider Bridge) and client's bridge (Customer Bridge), client's bridge is only responsive to C-VLAN, and service provider's bridge is only responsive to S-VLAN.This dual-VLAN structure has been expanded the space of VLAN greatly, has expanded the application of ethernet technology.
In order to adapt to the new demand of networking, DSL Forum (Digital Subscriber Line forum, the tissue of the formulation DSL network architecture) has correspondingly defined and has adopted ethernet technology to build the technical standard of cut-in convergent net in TR101.The dual-VLAN defining adopt IEEE802.1ad in this standard in carries out converging of business, and the data flow of (can be understood as same business) pools a VLAN to be about to have certain specific character.For example some similar application in different clients can be pooled to a VLAN, and be added in data flow as SVID, this Business Stream is called as N:1VLAN; Can also be a VLAN by certain Business Stream separate marking of single client, and be added in data flow as SVID, this Business Stream be called 1:1VLAN.Due to the general corresponding port of client or an empty port set, so after converging, data flow is carried two VLAN:CVID and SVID, wherein CVID carries client's message, and SVID carries service message.Because client's message is corresponding ports information in fact.So just comprised input port information and business information (as VOIP, IPTV) in the VLAN of input traffic.Access node in the network architecture (ACCESS NODE) adopts Provider Edge bridge (Provider Edge Bridge), responsive to SVLAN and part CVLAN, converge net (Aggregation Network) and adopt service provider's bridge (ProviderBridge), only responsive to SVLAN.DSL Forum has further defined employing TR101 framework at TR156, and GPON is defined as to access node, the specific requirement while using GPON (Gigabit Passive Optical Network) as access technology.
But there are following problems in the cross-coupled switch of existing supported vlans:
(1) only support the interconnection of two-way VLAN point-to-point, cannot accomplish that a routing direction carries out interconnection according to VLAN, another direction forwards according to address search.Cannot support point-to-multipoint interconnection.
(2) cross granularity can not flexible configuration.While carrying out interconnection for the combination that adopts SVID and CVID, there is the problem of supporting granularity.According to SVID, determine and adopt the combination of SVID and CVID to carry out after interconnection, the data flow under all these SVID all must be carried out interconnection based on SVID and CVID combination, and can not adopt translational bridging exchange again.
As can be seen here, existing two-way VLAN cross-connection method and device can not meet user's instructions for use well.
Summary of the invention
The defect existing for prior art, the technical solution adopted in the present invention is to provide a kind of method that dual-VLAN intersection forwards that realizes, and comprises the following steps:
A10, according to the functionality of vlan allocation list of practical application scene configuration VLAN conversion table and each port and start corresponding Lookup engine and search the judgement with data outgoing route, described functionality of vlan allocation list for the data flow of setting input whether active vlan conversion table search and search mode, described in the mode of searching refer to that the SVID that carries based on input port, data flow and which field in CVID carry out searching of VLAN conversion table; Described VLAN conversion table is converted to INTER_SVID and INTER_CVID for SVID and the CVID that data flow is carried;
A20, according to practical application scene configuration VLAN switch mode allocation list, and start corresponding Lookup engine and search the judgement with data outgoing route; The data flow of determining input according to the lookup result of VLAN switch mode allocation list is the translational bridging reciprocal exchange of business or cross connection service, if the translational bridging reciprocal exchange of business is processed according to the tupe of translational bridging; If cross connection service performs step A30;
A30, the VLAN cross-connect matrix that formed by many forwarding entrys of configuration, and start corresponding Lookup engine and search the judgement with data outgoing route; According to the information of searching of each input traffic, at VLAN cross-connect matrix, search corresponding object information, the described information of searching comprises interconnection type, input slogan and INTER_SVID, INTER_CVID, if found, by object information, by this forwarding data flow, otherwise process by translational bridging mode.
In said method, in steps A 10, according to the input port of data flow, or the SVID that carries of input port and data flow, or the SVID that carries of input port and data flow and the CVID forward mode of determining input traffic.
In said method, described functionality of vlan allocation list comprises Vlan_Translate_En and two parameters of Vlan_Translate_Type, whether the data flow of described Vlan_Translate_En definition the port input searching of active vlan conversion table, described Vlan_Translate_Type defines the data flow of this port input and carries out the parameter type that VLAN conversion table is searched, and described parameter type comprises following several:
Type 0: search based on input port, for this type, all can be defined as possessing identical inter-process VLAN from any data flow of input port input, the index of now searching VLAN conversion table is input port;
Class1: based on input port and SVID, for this type, be converted to new INTER_SVID and INTER_CVID from the data flow of input port input according to self-contained SVID, the index of now searching VLAN conversion table is input port+SVID;
Type 2: based on input port+SVID+CVID, for this type, from the data flow of input port input, according to self-contained SVID and CVID, be converted to new INTER_SVID and INTER_CVID, the index of now searching VLAN conversion table is input port+SVID+CVID;
In steps A 10, for the data flow from a port input, first obtain Vlan_Translate_En and the Vlan_Translate_Type of the port, then according to the mode of Vlan_Translate_En and the appointment of Vlan_Translate_Type parameter, table look-up, obtain INTER_SVID and INTER_CVID parameter, the SVID in data flow and CVID are converted to INTER_SVID and INTER_CVID.
In said method, described object information comprises the transmit port map information and the queue map information of this data flow at forwarding port of this data flow, wherein transmit port map information is a bit map port_bit_MAP of all of the port that switch is corresponding, or define a point-to-multipoint interconnection, the bit wide of queue map information QUEUE_COS is determined according to the number of queues of each output port;
If hit an entry of VLAN cross-connect matrix according to vlan_Cross_Type, the data flow of input can be delivered in the queue of corresponding output port according to queue map information and the transmit port map information of forwarding information definition so, if do not hit, data flow can be dropped or deliver to translational bridging processing unit.
In such scheme, when carrying out the configuration of VLAN conversion table, the different data streams in cross connection service with identical forwarding information can be configured to identical INTER_SVID and INTER_CVID, the SVID that the INTER_SVID of other data flow and INTER_CVID should be entrained with data flow itself is identical with CVID.
The present invention also provides a kind of device of realizing said method, comprise functionality of vlan allocation list Lookup engine unit, VLAN conversion table Lookup engine unit, VLAN switch mode allocation list Lookup engine unit and VLAN interconnection allocation list Lookup engine unit, above-mentioned all engines are worked in coordination with flowing water work, 20 bytes at input packet activate first engine in above-mentioned engine, in 26 bytes of Frame, complete all works for the treatment of of searching.
The present invention has following beneficial effect:
(1), can directly according to the link information of access point, forward, enabling address study, so just can save database address space.
(2) intersection that, can realize flexibly variable grain degree based on SVID or SVID+CVID forwards.
(3), SVID that can be to incoming frame, CVID carries out convergence processing, the VLAN that can complete multipoint-to-point intersects and sets.
(4), can realize point-to-multipoint interconnection.
Accompanying drawing explanation
Fig. 1 is the apparatus structure schematic diagram that VLAN intersection forwards of realizing provided by the invention.
Embodiment
Below in conjunction with Figure of description and specific embodiment, the present invention is described in detail.
In the present invention, following term is as given a definition:
SVID: the business of carrying on input traffic (skin) virtual local area network identifiers, according to the difference of numerical value, can be expressed as SVID1, SVID2, SVID3 etc.;
CVID: the client that input traffic carries (internal layer) virtual local area network identifiers, according to the difference of numerical value, can be expressed as CVID1, CVID2, CVID3 etc.;
INTER_SVID: business (skin) virtual local area network identifiers of the present invention's definition;
INTER_CVID: client's (internal layer) virtual local area network identifiers of the present invention's definition;
The present embodiment be take an intersection retransmission unit for 8 port switch as example describes, and defines following data flow:
Data flow 1, from No. 1 port input, carries SVID1, need to carry out traditional bridge joint, can be according to address learning, and data are sent to other any ports.
Data flow 2, carries SVID2 and CVID2 from No. 1 port input, need to carry out transparent VLAN interconnection, and incompatible traditional bridge joint.Data are delivered to No. 0 queue of port 2.
Data flow 3, carries SVID3 and CVID4 from No. 1 port input, need to carry out VLAN interconnection, and data are delivered to respectively No. 7 queues of port 3,4, and the CVID under SVID3 space is not equal to the business of CVID4 to be processed according to traditional bridge joint.
Data flow 4, carries SVID4 and CVID6 from No. 1 port input, need to carry out VLAN interconnection, and data are delivered to respectively No. 7 queues of port 3,4, and the CVID in SVID4 space is not equal to the business of CVID6 to be processed according to traditional bridge joint.
As shown in Figure 1 and Figure 2, the method that realizes the forwarding of dual-VLAN intersection provided by the invention comprises the following steps:
A10, according to the functionality of vlan allocation list of practical application scene configuration VLAN conversion table and each port, then start corresponding Lookup engine and search the judgement with data outgoing route.
Functionality of vlan allocation list comprises Vlan_Translate_En and two variablees of Vlan_Translate_Type and searches information and object information.All of the port shares a VLAN conversion table, and the information of searching is for { Vlan_Translate_Type, input port, SVID and CVID}, object information is { INTER_SVID, INTER_CVID}
Whether the data flow of described Vlan_Translate_En definition the port input searching of active vlan conversion table, by this parameter configuration, is state of activation.Described Vlan_Translate_Type defines the data flow of this port input and carries out the parameter type that VLAN conversion table is searched, and described parameter type comprises following several:
Type 0: search based on input port, for this type, from the self-contained SVID of any data flow of input port input, CVID can be left in the basket, and the index of now searching VLAN conversion table is input port;
Class1: based on input port and SVID, for this type, be converted to new INTER_SVID and INTER_CVID from the data flow of input port input according to self-contained SVID, the index of now searching VLAN conversion table is input port+SVID;
Type 2: based on input port+SVID+CVID, for this type, from the data flow of input port input, according to self-contained SVID and CVID, be converted to new INTER_SVID and INTER_CVID, the index of now searching VLAN conversion table is input port+SVID+CVID.
When carrying out the configuration of VLAN conversion table, the different data streams in cross connection service with identical forwarding information can be configured to identical INTER_SVID and INTER_CVID, the SVID that the INTER_SVID of other data flow and INTER_CVID should be entrained with data flow itself is identical with CVID.
Whether functionality of vlan allocation list activates corresponding port for the data flow of setting input is carried out VLAN conversion table and searches and search mode.
The described mode of searching refers to the input port according to data flow, or the SVID that input port and data flow are carried, or the forward mode that the SVID that carries of input port and data flow and CVID determine input traffic is the translational bridging reciprocal exchange of business or cross connection service.Like this, can be by the translational bridging reciprocal exchange of business based on port, or identify based on SVLAN region, translational bridging reciprocal exchange of business plane and VLAN cross business plane are activated simultaneously, do not interfere with each other.
VLAN conversion table to search flow process as follows: input traffic can active vlan conversion table Lookup engine, first VLAN conversion table Lookup engine obtains Vlan_Translate_En and the Vlan_Translate_Type variable of the corresponding input port of input traffic, if Vlan_Translate_En enables, according to the parameter of Vlan_Translate_Type definition, search VLAN conversion table, if found, with the INTER_SVID in VLAN conversion table and INTER_CVID, replace SVID and the CVID that former data flow is carried, if do not found, think to search and do not mate, usage data flows self-contained SVID and CVID as INTER_SVID, INTER_CVID.
Wherein, the different data streams with identical forwarding information can be identical INTER_SVID and INTER_CVID according to the configuration transitions at VLAN conversion table, in above-described embodiment, data flow 3,4 is defined as an interconnection, can distribute identical INTER_SVID and INTER_CVID.
For the present embodiment, first enable port Vlan_Translate_En parameter No. 1, the data flow of input is carried out to vlan conversion table and search, Vlan_Translate_Type is type 2 (searching based on port, SVID and CVID), in vlan conversion table, configures following entry.
The information of searching of entry 1 is: Vlan_Translate_Type, input port, SVID3 and CVID3 information, object information is INTER_SVID0 and INTER_CVID0.
The information of searching of entry 2 is: Vlan_Translate_Type, input port, SVID4 and CVID6 information, object information is INTER_SVID0 and INTER_CVID0.
The information of searching of entry 3 is: Vlan_Translate_Type, input port, SVID2 and CVID2 information, object information is INTER_SVID2 and INTER_CVID2.
VLAN conversion table Lookup engine is searched VLAN conversion table,
Data flow 1 is not hit any entry of searching, INTER_SVID, and INTER_CVID equals the SVID of data flow itself, CVID.
Data flow 2 has been hit entry 3, INTER_SVID=INTER_SVID2, INTER_CVID=INTER_CVID2;
Data flow 3 has been hit entry 1, INTER_SVID=INTER_SVID0, INTER_CVID=INTER_CVID0;
Data flow 4 has been hit entry 2, INTER_SVID=INTER_SVID0, INTER_CVID=INTER_CVID0;
A20, according to practical application scene configuration VLAN switch mode allocation list, and start corresponding Lookup engine and search the judgement with data outgoing route; According to the lookup result of VLAN switch mode allocation list, determine the mode of operation (being the translational bridging reciprocal exchange of business or cross connection service) of the data flow of input, if the translational bridging reciprocal exchange of business is processed according to the tupe of translational bridging, if cross connection service performs step A30.
The contents in table of VLAN switch mode allocation list comprises following parameter:
Search information: { INTER_SVID}
Object information: { vlan_Cross_Type, vlan_Cross_drop}
Object information parameter-definition is as shown in the table:
vlan_Cross_Type vlan_Cross_drop The definition of data flow mode of operation
0 0 Tradition bridge mode
0 1 Tradition bridge mode
1 0 VLAN interconnection pattern
1 1 Compatibility mode
Input traffic can trigger the Lookup engine of VLAN switch mode allocation list, obtains the object information of this table, delivers to the processing engine of searching of follow-up correspondence.
In this specific embodiment, corresponding VLAN switch mode allocation list is as follows:
The VLAN cross-connect matrix that A30, configuration are comprised of many forwarding entrys, and start corresponding Lookup engine and search the judgement with data outgoing route, according to the information of searching of each input traffic, at VLAN cross-connect matrix, search corresponding object information, specified data flows last forward-path.The list item of the VLAN cross-connect matrix that this step is corresponding comprises following parameter:
The information of searching is for { INTER_SVID, INTER_CVID}
Object information is { PORT_BIT_MAP, QUEUE_COS}
Wherein parameter PORT_BIT_MAP message is a bit map of all of the port that switch is corresponding.Which output port is the data flow of indication input can be forwarded to.
Parameter QUEUE_COS is queue mapping message, and bit wide is determined according to the number of queues of each output port, can, for corresponding 8 queues of 3 bit bit wides, also can use the more queue of bit wide support that is greater than 3 bits.
Containing following parameter, {, if vlan_Cross_Type equals 1, VLAN interconnection table lookup engine is activated the data stream packets of inputting from A30 step for vlan_Cross_Type, vlan_Cross_drop}.Lookup engine is searched occurrence according to the information of searching at VLAN cross-connect matrix.If hit, obtain PORT_BIT_MAP, QUEUE_COS, follow-uply can carry out forward process according to this information.
Whether if do not hit, analyzing this data flow is to be operated in compatibility mode, compatibility mode if, and this data flow can be delivered to traditional bridging engine and processes.Otherwise this data flow can be dropped.
In this specific embodiment, corresponding VLAN cross-connect matrix configuration is as follows:
The present invention also provides a kind of device of realizing said method, this device can be realized above-mentioned dual-VLAN intersection and forward, comprise functionality of vlan allocation list and corresponding Lookup engine, VLAN conversion table and corresponding Lookup engine, VLAN switch mode allocation list and corresponding Lookup engine, VLAN interconnection allocation list and corresponding Lookup engine.Above-mentioned all engines are worked in coordination with flowing water work, in 20 bytes of input packet, activate first engine in above-mentioned engine, in 26 bytes of Frame, complete all works for the treatment of of searching.
Referring to Fig. 1, for the data flow of 1 input from path, because be Ethernet data bag, the length of a packet is in 64 bytes between 1518 bytes, and wherein SVLAN and CVLAN are in 13 to 20 bytes.When the packet of an input reaches after 20 bytes, extract SVLAN region and CVLAN region, obtain SVID and the CVID parameter of packet.
Trigger functionality of vlan allocation list Lookup engine and obtain corresponding lookup result, if lookup result is not active vlan conversion, this packet is delivered to path 3, and the SVID of usage data bag self carries out searching of VLAN switch mode allocation list.If activated VLAN conversion table, this packet is delivered to path 2, the searching of active vlan conversion table.The entry number of functionality of vlan allocation list is consistent with the port number of whole device.The order adopting based on port of searching of this table is tabled look-up.A clock cycle at circuit can complete relevant search operation, and 21 bytes at input traffic, obtain lookup result.
Referring to Fig. 1, for path 2, when the packet of an input reaches after 21 bytes, trigger VLAN conversion table Lookup engine, VLAN conversion table is according to the needs of port number and application scenarios, and entry number can be from 1024 to 16M. these application scenarioss, and can set entry number is 4096.
For the circuit that makes to table look-up, realize conveniently, when physical circuit is realized, first utilize that { Vlan_Translate_Type, input port, SVID and CVID} build a KEY (critical field of tabling look-up).For the cross connection device of 8 ports, the bit wide of this critical field is 29 bits (Vlan_Translate_Type2 bit, input port 3 bits, SVID12 bit, CVID12 bits).This KEY stem is filled out to 0, expand to 32 bit bit wides, utilize multinomial CRC16 (G (x)=x16+x15+x2+1), obtain the CRC_KEY of 12 bits, utilize this CRC_KEY to carry out sequential search to VLAN conversion table, extract the entry contents of VLAN conversion table:
The information of searching is for { Vlan_Translate_Type, input port, SVID and CVID}
Object information is { INTER_SVID, INTER_CVID}
If the content of key is consistent with the information of searching, think and search successfully, forward path 4 to.Otherwise search unsuccessfully, output to path 9.
Above-mentioned searching need to can complete relevant search operation in 2 clock cycle of circuit through calculating and two steps of sequential search of CRC16, and 23 bytes at input packet, obtain lookup result.
So effective result is all exported in 23 bytes of packet in path 4, path 9.
Referring to Fig. 1, for path 3,4,9, all deliver to VLAN switch mode allocation list Lookup engine.
This Lookup engine is searched in 23 bytes activation of packet, and the entry number of VLAN switch mode allocation list is 4096, adopts sequential search mode.Table look-up the KEY that uses in path 4 INTER_SVID that export for VLAN conversion table, in path, 3,9 is the SVID of packet itself.A clock cycle at circuit can complete relevant search operation.24 bytes at input traffic, obtain lookup result.If lookup result has started VLAN interconnection, deliver to path 5, otherwise deliver to path 6.
Referring to Fig. 1, for the input data frame in path 5, in 24 bytes of Frame, start searching of VLAN interconnection allocation list.VLAN interconnection allocation list is according to the needs of port number and application scenarios, and entry number can be from 1024 to 16M. these application scenarioss, and can set entry number is 4096.
For the circuit that makes to table look-up, realize conveniently, when physical circuit is realized, first utilize and search information { INTER_SVID, INTER_CVID} builds a KEY (critical field of tabling look-up).The bit wide of this critical field is 24 bits (INTER_SVID12 bit, INTER_CVID12 bits).Utilize multinomial CRC16 (G (x)=x16+x15+x2+1), obtain the CRC_KEY of 12 bits, utilize this CRC_KEY to carry out sequential search to VLAN interconnection allocation list, extract entry contents:
The information of searching is for { INTER_SVID, INTER_CVID}
Object information is { PORT_BIT_MAP, QUEUE_COS}
If the content of key is consistent with the information of searching, think and search successfully, forward path 8 to.If search unsuccessfully, but engine is operated in compatibility mode, forwards path 7 to.Otherwise packet termination, can not deliver to subsequent process circuit.
Above-mentioned searching need to can complete relevant search operation in 2 clock cycle of circuit through calculating and two steps of sequential search of CRC16, and 26 bytes at input packet, obtain final lookup result.
Traditional bridge joint of upper figure and follow-up output queue are processed the elaboration scope that does not belong to this patent.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn the structural change of making under enlightenment of the present invention, and every have identical or close technical scheme with the present invention, within all falling into protection scope of the present invention.

Claims (5)

1. realize the method that dual-VLAN intersection forwards, it is characterized in that, comprise the following steps:
A10, according to the functionality of vlan allocation list of practical application scene configuration VLAN conversion table and each port, and start corresponding Lookup engine and search the judgement with data outgoing route, whether described functionality of vlan allocation list activates corresponding port for the data flow of setting input is carried out searching of VLAN conversion table and searches mode, described in the mode of searching refer to that the business virtual local area network identifiers SVID and the customer virtual local area network identifier CVID that based on input port, data flow, carry carry out searching of VLAN conversion table; Described VLAN conversion table is converted to business virtual local area network identifiers INTER_SVID and customer virtual local area network identifier INTER_CVID for SVID and the CVID that data flow is carried;
Described functionality of vlan allocation list comprises Vlan_Translate_En and two parameters of Vlan_Translate_Type, whether the data flow of described Vlan_Translate_En definition the port input searching of active vlan conversion table, described Vlan_Translate_Type defines the data flow of this port input and carries out the parameter type that VLAN conversion table is searched, and described parameter type comprises following several:
Type 0: search based on input port, for this type, all can be defined as possessing identical inter-process VLAN from any data flow of input port input, the index of now searching VLAN conversion table is input port;
Class1: based on input port and SVID, for this type, be converted to new INTER_SVID and INTER_CVID from the data flow of input port input according to self-contained SVID, the index of now searching VLAN conversion table is input port+SVID;
Type 2: based on input port+SVID+CVID, for this type, from the data flow of input port input, according to self-contained SVID and CVID, be converted to new INTER_SVID and INTER_CVID, the index of now searching VLAN conversion table is input port+SVID+CVID;
In steps A 10, for the data flow from a port input, first obtain Vlan_Translate_En and the Vlan_Translate_Type of the port, then according to the mode of Vlan_Translate_En and the appointment of Vlan_Translate_Type parameter, table look-up, obtain INTER_SVID and INTER_CVID parameter, the SVID in data flow and CVID are converted to INTER_SVID and INTER_CVID;
A20, according to practical application scene configuration VLAN switch mode allocation list, and start corresponding Lookup engine and search the judgement with data outgoing route; The data flow of determining input according to the lookup result of VLAN switch mode allocation list is the translational bridging reciprocal exchange of business or cross connection service, if the translational bridging reciprocal exchange of business is processed according to the tupe of translational bridging; If cross connection service performs step A30;
A30, the VLAN cross-connect matrix that formed by many forwarding entrys of configuration, and start corresponding Lookup engine and search the judgement with data outgoing route; According to the information of searching of each input traffic, at VLAN cross-connect matrix, search corresponding object information, the described information of searching comprises interconnection type, input slogan and INTER_SVID, INTER_CVID, if found, by object information, by this forwarding data flow, otherwise process by translational bridging mode.
2. realize as claimed in claim 1 the method that dual-VLAN intersection forwards, it is characterized in that, in steps A 10, according to the input port of data flow, or the SVID that input port and data flow are carried, or the SVID that carries of input port and data flow and the CVID forward mode of determining input traffic.
3. realize as claimed in claim 1 the method that dual-VLAN intersection forwards, it is characterized in that, described object information comprises the transmit port map information and the queue map information of this data flow at forwarding port of this data flow, wherein transmit port map information is a bit map port_bit_MAP of all of the port that switch is corresponding, or define a point-to-multipoint interconnection, the bit wide of queue map information QUEUE_COS is determined according to the number of queues of each output port;
If hit an entry of VLAN cross-connect matrix according to cross connection service parameter vlan_Cross_Type, the data flow of input can be delivered in the queue of corresponding output port according to queue map information and the transmit port map information of forwarding information definition so, if do not hit, data flow can be dropped or deliver to translational bridging processing unit.
4. realize as claimed in claim 1 the method that dual-VLAN intersection forwards, it is characterized in that, when carrying out the configuration of VLAN conversion table, the different data streams in cross connection service with identical forwarding information can be configured to identical INTER_SVID and INTER_CVID, the SVID that the INTER_SVID of other data flow and INTER_CVID should be entrained with data flow itself is identical with CVID.
5. realize the device of method described in claim 1, it is characterized in that, comprise functionality of vlan allocation list Lookup engine unit, VLAN conversion table Lookup engine unit, VLAN switch mode allocation list Lookup engine unit and VLAN interconnection allocation list Lookup engine unit;
Above-mentioned all engines are worked in coordination with flowing water work, when the packet of input reaches 20 byte, obtain SVID and the CVID parameter of packet, activate above-mentioned functionality of vlan allocation list Lookup engine unit, when the packet of input reaches 21 byte, find effective result active vlan conversion table Lookup engine unit, when the packet of input reaches 23 byte, VLAN conversion table finds effective result active vlan switch mode allocation list Lookup engine unit, when the packet of input reaches 24 byte, VLAN switch mode allocation list finds effective result active vlan interconnection allocation list Lookup engine unit, when the packet of input reaches 26 bytes, by VLAN interconnection allocation list, find final result, complete all works for the treatment of of searching.
CN201210028693.6A 2012-02-09 2012-02-09 Method and device for realizing double-virtual local area network (VLAN) cross forwarding Active CN102594674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210028693.6A CN102594674B (en) 2012-02-09 2012-02-09 Method and device for realizing double-virtual local area network (VLAN) cross forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210028693.6A CN102594674B (en) 2012-02-09 2012-02-09 Method and device for realizing double-virtual local area network (VLAN) cross forwarding

Publications (2)

Publication Number Publication Date
CN102594674A CN102594674A (en) 2012-07-18
CN102594674B true CN102594674B (en) 2014-10-08

Family

ID=46482890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210028693.6A Active CN102594674B (en) 2012-02-09 2012-02-09 Method and device for realizing double-virtual local area network (VLAN) cross forwarding

Country Status (1)

Country Link
CN (1) CN102594674B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610673B (en) * 2016-01-19 2018-12-11 烽火通信科技股份有限公司 A kind of VLAN conversion equipment and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707544A (en) * 2009-11-20 2010-05-12 中国人民解放军第二炮兵装备研究院第四研究所 E1 channel multidirectional network bridge transmission device and method
CN102014034A (en) * 2010-12-06 2011-04-13 杭州依赛通信有限公司 Layering virtual network based on tree virtual local area network (VLAN) and configuration method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4290529B2 (en) * 2003-11-07 2009-07-08 株式会社バッファロー Access point, terminal, encryption key setting system, encryption key setting method, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707544A (en) * 2009-11-20 2010-05-12 中国人民解放军第二炮兵装备研究院第四研究所 E1 channel multidirectional network bridge transmission device and method
CN102014034A (en) * 2010-12-06 2011-04-13 杭州依赛通信有限公司 Layering virtual network based on tree virtual local area network (VLAN) and configuration method thereof

Also Published As

Publication number Publication date
CN102594674A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
CN101009639B (en) Frame forwarding apparatus
CN101335708B (en) Packet forwarding method and operator edge converging equipment
EP2842278B1 (en) Three stage folded clos optimization for 802.1aq
CN101836399B (en) Forwarding loop prevention apparatus and methods
DE102013111538B4 (en) Architecture for virtualization and distribution of routing information used in a transport network
US20170237655A1 (en) Forwarding Data Packets In Software Defined Networks
CN104954265B (en) Send the method and interchanger of multicast message
CN106797324A (en) Method and system for supporting distributed relay control protocol (DRCP) operation when mismatching and putting
CN103368775B (en) flow backup method and core switching device
CN102695103B (en) Business retransmission method and system
CN101102261A (en) Method and device for Ethernet carrier asynchronization transmission mode
CN101867523A (en) Method and device for configuring broadband services in PON (Passive Optical Network) system
CN105591868A (en) Virtual private network VPN access method and device
CN103220215A (en) Fiber channel over Ethernet (FCoE) message forwarding method and device in TRILL network
CN107864099A (en) A kind of flow control methods and system of isomery FC networks
CN108141392A (en) The method and apparatus that pseudowire load is shared
CN102801622B (en) A kind of retransmission method of data message and retransmission unit
CN102377645B (en) Exchange chip and realization method thereof
CN102594674B (en) Method and device for realizing double-virtual local area network (VLAN) cross forwarding
CN105515850B (en) The control management method to ForCES forwarding elements is realized using OpenFlow controllers and collocation point
CN108833284B (en) Communication method and device for cloud platform and IDC network
CN107342943A (en) A kind of method that SCN passages are established under SPTN system Overlay scenes
CN107547467A (en) A kind of circuit authentication method, system and controller
CN105790984A (en) Operation, administration and maintenance function configuration and realization method and forwarder
US9755845B2 (en) Protocol independent multicast (PIM) snooping for a shortest path bridging multicast (SPBM) network

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
TR01 Transfer of patent right

Effective date of registration: 20170606

Address after: 430074, Hubei Wuhan East Lake Development Zone, Kanto Industrial Park, beacon Road, optical communications building, industrial building, two floor

Patentee after: Wuhan flying Microelectronics Technology Co., Ltd.

Address before: China Science and Technology Park Dongxin road East Lake Development Zone 430074 Hubei Province, Wuhan City, No. 5

Patentee before: Fenghuo Communication Science &. Technology Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170804

Address after: 430000 East Lake high tech Development Zone, Hubei Province, No. 6, No., high and new technology development zone, No. four

Co-patentee after: Wuhan flying Microelectronics Technology Co., Ltd.

Patentee after: Fenghuo Communication Science &. Technology Co., Ltd.

Address before: 430074, Hubei Wuhan East Lake Development Zone, Kanto Industrial Park, beacon Road, optical communications building, industrial building, two floor

Patentee before: Wuhan flying Microelectronics Technology Co., Ltd.

TR01 Transfer of patent right