CN105610673A - VLAN (Virtual Local Area Network) conversion device and method - Google Patents

VLAN (Virtual Local Area Network) conversion device and method Download PDF

Info

Publication number
CN105610673A
CN105610673A CN201610035460.7A CN201610035460A CN105610673A CN 105610673 A CN105610673 A CN 105610673A CN 201610035460 A CN201610035460 A CN 201610035460A CN 105610673 A CN105610673 A CN 105610673A
Authority
CN
China
Prior art keywords
key
vlan
search
module
result
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
CN201610035460.7A
Other languages
Chinese (zh)
Other versions
CN105610673B (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.)
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 CN201610035460.7A priority Critical patent/CN105610673B/en
Publication of CN105610673A publication Critical patent/CN105610673A/en
Application granted granted Critical
Publication of CN105610673B publication Critical patent/CN105610673B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This invention discloses a VLAN (Virtual Local Area Network) conversion device and method, relating to the field of VLAN conversion in an Ethernet bridge. The device comprises a signal transmission port, a KEY generation module, a KEY lookup module, a lookup result mediation module and a VLAN processing module; the KEY generation module is used for generating lookup KEYs and lookup enabling of three lookup types according to the signals transmitted by the signal transmission port; the KEY lookup module is used for determining a lookup result corresponding to the lookup KEY in a KEY lookup database; the lookup result mediation module is used for mediating the lookup result; and the VLAN processing module is used for looking up an item relevant to a mediating result in a VLAN operational database and acquiring a VLAN processing result according to the item. The device provided by this invention enables the same one port to simultaneously support the conversion of various VLAN TAG types, can distinguish the priority of different services, and can normalize the operational results for processing the VLAN.

Description

A kind of VLAN conversion equipment and method
Technical field
The present invention relates to VLAN in ethernet bridge (VirtualLocalAreaNetwork,VLAN) conversion field, be specifically related to a kind of VLAN conversion equipment and method.
Background technology
At present, in communication network, the service traffics based on bag have exceeded TDM (time division multiplexPattern) service traffics, occupy the main flow of communicating by letter. Communication network is also from being adapted to TDM businessThe communication network transmitting is converted to and is more suitable for the communication network that bag business transmits, and communication network turns above-mentionedChange in process, Ethernet has obtained larger application.
IEEE802.1AD expands VLAN, has defined for service provider netIn the SVLAN (ServiceProviderVLAN) of network and former IEEE802.1Q forThe CVLAN (CustomerVLAN) of customer network. Above-mentioned expansion obtains ethernet technologyLarger application, moved towards Metropolitan Area Network (MAN) and wide area network from LAN. At carrier networkOn PE (ProviderEdge, operator edge) bridge, as long as be different client's Business StreamsDistribute different SVLAN, just can distinguish different client's business. Some visitor in networkMay there is diversity application in family, for example some client exists INTERNET, IPTV, VOIPDeng application, need to adopt SVLAN or need to adopt SVLAN simultaneously for these applicationAnd CVLAN (being designated hereinafter simply as S+CVLAN).
Although employing SVLAN or S+CVLAN can identify multiple client's multiple business,But in network, identical business is to need normalization, for example different clients'INTERNET business can unify to be summed up as INTERNET application in PE bridge, and this justNeed to do VLAN conversion, identical business is shown with identical vlan table. VLAN turnsChanged both direction, the service needed from customer side to network side is based on InputPort (inputPort) and VLAN carry out, need to be according to output port (Output from network side to customer sidePort) and VLAN carry out the conversion contrary with entrance.
At present, the type of VLAN conversion has multiple, for example, to the frame with tag and Untag notAdding SVLAN processes; (SIT frame) frame that only has one deck CTAG is added to SVLAN;SIT frame is added SVLAN and does CVLAN conversion; To only there being the frame of one deck STAG(SOT frame) does SVLAN conversion, to dual-VLAN TAG frame (DoubleTAG frame,Be abbreviated as DT frame)) do SVLAN and CVLAN conversion; To DT frame deletion SVLANEtc. multiple action type. At TR156 (about the standard that realizes of GPONONU) and PTNIn (PacketTransportNetwork, Packet Transport Network) application, certain service port mayNeed to support the input of various TAG type frame simultaneously.
For the operation of VLAN conversion, generally select 1~2 kind according to input port at presentVLAN combination is carried out. For example: carry out conversion operations according to SVLAN, according to SVLAN+CVLAN carries out conversion operations, and search after coupling is every kind of TAG in VLAN conversion processType setting operation separately, then selects according to the TAG type of Frame again.
But in actual applications, there is following lacking in the above-mentioned operation for VLAN conversionFall into:
(1) the above-mentioned performance constraint for VLAN conversion entrained from the frame of port inputVLAN type, when comprising STAG, CTAG, DT from the frame of same port inputFrame and all will do VLAN when conversion, translation type deficiency.
(2) the above-mentioned operation for VLAN conversion, for two kinds that select based on port-selectSearch combination, can not distinguish priority, or can not distinguish priority based on each service application.
(3) above-mentioned operating in while searching coupling of changing for VLAN, can not distinguishThe TAG type of Frame, can not be normalized processing behavior, need in result items, beEvery kind of TAG type arranges different processing behaviors, has increased RAM (Random-AccessMemory, random access memory) use and the design complexity of resource.
Above-mentioned 3 shortcomings can adopt TCAM (ternarycontentaddressablememory,Three-state content addressing memory) mode of searching overcomes, but adopt TCAM mode, can the utmost pointThe oil (gas) filling device cost that increases, especially for the skinny device of Access Layer.
Summary of the invention
For the defect existing in prior art, the technical problem that the present invention solves is: 1, makeSame port (inputing or outputing) is supported the conversion of multiple VLANTAG type simultaneously, 2,Distinguish the priority of different business, 3, by the operating result normalization that VLAN is processed.Of the present invention relatively simple for structure, equipment cost is lower, is suitable for promoting.
For reaching above object, VLAN conversion equipment provided by the invention, comprises that signal sends outSending end mouth, this device also comprises: KEY generation module, KEY search module, lookup resultArbitration modules and VLAN processing module; KEY searches and in module, is provided with KEY and searches dataStorehouse, VLAN processing module is provided with VLAN operating database; KEY search database andVLAN operating database includes some entries, the entry that every KEY searches database with1 entry in VLAN operating database is associated;
Described signal sending end mouth is used for: send 3 kinds of signals to KEY generation module, 3 kindsSignal is: the VLANTAG type of incoming frame, ID, the CVID of SVID:SVLAN:The ID of CVLAN;
Described KEY generation module is used for: produce 3 kinds according to the signal received and search typeSearch KEY and corresponding searching enables, search KEY and corresponding by what effectively search typeSearch and enable to be sent to KEY and search module;
Described 3 kinds search type search KEY and corresponding searching enable into:
Search type KEY_TYPE1: searching KEY is KEY1, and KEY1 is port numbersPORT and CVID, what KEY1 was corresponding search enables as KEY1_EN;
KEY_TYPE2: searching KEY is KEY2, and KEY2 is PORT and SVID,What KEY2 was corresponding search enables as KEY2_EN;
KEY_TYPE3: searching KEY is KEY3, KEY3 be PORT, SVID andCVID, what KEY3 was corresponding search enables as KEY3_EN;
Described KEY search module for: search database at KEY, search and mate withThat receives searches the lookup result that KEY is corresponding, and lookup result is sent to lookup result arbitrationModule; Every group of lookup result whether include matching value HIT, priority value RSLT_PRI andIndex OP_INDEX;
Described KEY searches database and comprises some entries, and the content of every entry comprises:
ENTRY_VALID: represent that whether this entry effective, invalid entries do not participate in searching andCoupling;
PORT: coupling input item, for the PORT of matched and searched KEY;
CVID: coupling input item, for the CVID of matched and searched KEY;
SVID: coupling input item, for the SVID of matched and searched KEY;
KEY_TYPE: represent this entry need to corresponding search type search KEY coupling,The value of KEY_TYPE with 3 kinds search KEY to search type corresponding; ;
RSLT_PRI: priority value;
NEW_CVID: the CVID value that needs renewal or replace;
NEW_SVID: the SVID value that needs renewal or replace;
NEW_CPRI: the priority value that needs the CVLAN of renewal or replacement;
NEW_SPRI: the priority value that needs the SVLAN of renewal or replacement;
Described lookup result arbitration modules is used for: 3 groups of lookup results are arbitrated, sent secondaryCut out result to VLAN processing module, arbitration result comprises the HIT that arbitrates the lookup result drawingAnd OP_INDEX;
Described VLAN processing module is used for: at VLAN operating database, search and the second month in a seasonCut out the entry that the OP_INDEX in result is associated, obtain VLAN according to this entry and processResult;
Described VLAN operating database comprises some entries, the expression item bag of every entryDraw together CVLAN operation behavior CVLAN_OP, SVLAN_OP, CPRI_OP,SPRI_OP; Described VLAN result comprise CVLAN_OP, SVLAN_OP,The HIT of CPRI_OP, SPRI_OP and arbitration result.
On the basis of technique scheme, described signal sending end mouth is input port or defeatedOutbound port.
On the basis of technique scheme, the VLANTAG type of described incoming frame comprises:UNTAG, be only with inner VLAN label SIT, be only with outside VLAN label SOT and bandThere are inside and outside 2 layers of VLAN label DT.
On the basis of technique scheme, in described VLAN operating databaseCVLAN_OP and SVLAN_OP include: interpolation, deletion, replacement and inoperation;CPRI_OP and SPRI_OP include: interpolation, replacement and inoperation.
VLAN conversion method based on said apparatus provided by the invention, the method comprise withLower step:
3 kinds of signals that S1:KEY generation module sends according to signal sending end mouth, produce 3The KEY that searches that kind is searched type enables with corresponding searching; KEY generation module is according to 3 kindsThe VLANTAG type of incoming frame in signal, determines and exports and effectively search searching of typeKEY and corresponding searching enable to search module to KEY, forward S2 to;
S2:KEY searches module and searches in database at KEY, to each the searching receivingKEY searches and mates, and obtains lookup result, forwards S3 to;
S3: lookup result arbitration modules is arbitrated lookup result, and arbitration result is exported toVLAN processing module, forwards S4 to;
S4:VLAN processing module, in VLAN operating database, is searched and arbitration resultThe entry being associated, obtains VLAN result according to this entry.
On the basis of technique scheme, described in S1, search the KEY that searches of type for 3 kindsWith searching of correspondence enable into:
Search type KEY_TYPE1: searching KEY is KEY1{PORT, and CVID}, looks intoLook for and enabling as KEY1_EN;
KEY_TYPE2: searching KEY is KEY2{PORT, SVID}, corresponding searching makesCan be KEY2_EN;
KEY_TYPE3: searching KEY is KEY3{PORT, SVID, CVID}, correspondingSearch and enable as KEY3_EN;
On this basis, the generation module of KEY described in S1 is according to incoming frame in 3 kinds of signalsVLANTAG type, determine and export effectively search type search KEY and corresponding looking intoLook for and enable to search module to KEY, specifically comprise the following steps:
S101:KEY generation module judges the VLANTAG type of incoming frame in 3 kinds of signalsWhether comprise the TAG of STAG:SVLAN, the TAG of CTAG:CVLAN simultaneously, ifBe, forward S102 to, otherwise forward S103 to;
What type was searched in 3 kinds of S102:KEY generation module outputs searches KEY and corresponding looking intoLook for and enable to search module to KEY, S1 finishes;
S103:KEY generation module judges whether the VLANTAG type of incoming frame only hasSTAG, if so, forwards S104 to, otherwise forwards S105 to;
S104:KEY generation module output KEY2 and KEY2_EN to KEY search module,S1 finishes, and forwards S2 to;
S105:KEY generation module judges whether the VLANTAG type of incoming frame only hasCTAG, if so, forwards S106 to, otherwise forwards S107 to;
S106:KEY generation module output KEY3 and KEY3_EN to KEY search module,S1 finishes, and forwards S2 to;
S107:KEY generation module judges that effectively not searching KEY makes with corresponding searchingCan, S1 finishes, and now VLAN conversion method also finishes.
On the basis of technique scheme, S2 specifically comprises the following steps:
What S201:KEY searched that module judgement need to search search enable whether effective, if so,Forward S202 to, otherwise forward S205 to;
S202:KEY searches module the current KEY that searches enabling that searches is carried out to HASH meterCalculate, determine that according to the low position index of HASH KEY searches entry corresponding in database, turnsTo S203;
S203:KEY searches module and searches current entry in database according to KEYENTRY_VALID, judges that whether current entry is effective, if so, forwards S204 to, otherwise turnsTo S205;
S204:KEY searches module and obtains enabling corresponding the looking into of KEY of searching with current searchingLooking for result is HIT, RSLT_PRI and OP_INDEX; The value of HIT is 1, represents currentThe match is successful to search KEY, and the value of RSLT_PRI is identical with current entry, OP_INDEXValue be the call number that VLAN operating database is associated with current entry; S2 finishes, and turnsTo S3;
S205:KEY searches module and produces with current searching and enable corresponding the looking into of KEY of searchingLooking for result is that the value of HIT is 0, RSLT_PRI and the equal vacancy of OP_INDEX, and representative does not haveWith the entry that the current KEY of searching mates, S2 finishes, and forwards S3 to.
On the basis of technique scheme, S3 specifically comprises the following steps:
S301: lookup result arbitration modules judges that whether the HIT value in all lookup results is completePortion's representative is not mated, and if so, forwards S302 to, otherwise forwards S303 to;
S302: lookup result arbitration modules output arbitration result is to VLAN processing module, the second month in a seasonSanction result is: HIT is 0, OP_INDEX vacancy, and S3 finishes, now VLAN conversionMethod also finishes;
S303: lookup result arbitration modules draws according to the highest lookup result of RSLT_PRI valueArbitration result, in the time that multiple lookup results have the highest identical RSLT_PRI value, according toKEY3 > KEY2 > default priority of KEY1, output arbitration result is processed mould to VLANPiece; Arbitration result is: HIT is 1, represents that the KEY that searches of current arbitration result mates,OP_INDEX is identical with the OP_INDEX of corresponding lookup result, and S3 finishes, and forwards S4 to.
Compared with prior art, the invention has the advantages that:
(1) the present invention is adopting on RAM stored data base basis, according to incoming frameVLANTAG type is determined and is searched KEY (be VLAN conversion lookup combination). TherewithMeanwhile, KEY of the present invention searches module matched and searched KEY, draws lookup result; SearchResult arbitration modules, based on lookup result entry priority, is determined arbitration result; VLAN processesModule is directly determined the apparatus and method of VLAN operation behavior according to arbitration result.
In view of this,, when the present invention carries out VLAN conversion, can make same port (inputOr output) support the conversion of multiple VLANTAG type simultaneously, can also be based on differentBusiness is carried out different VLAN processing, not only can make operating result normalization, directly rootObtain operating result according to arbitration result, and both can be used for inputting VLAN conversion, available againIn output VLAN conversion.
(2) of the present invention relatively simple for structure, equipment cost is lower, is suitable for promoting.
Brief description of the drawings
Fig. 1 is the structured flowchart of VLAN conversion equipment in the embodiment of the present invention;
Fig. 2 is the schematic diagram that in the embodiment of the present invention, KEY searches database;
Fig. 3 is the schematic diagram of VLAN operating database in the embodiment of the present invention;
Fig. 4 is the flow chart of VLAN conversion method in the embodiment of the present invention;
Fig. 5 is the flow chart of S1 in the embodiment of the present invention;
Fig. 6 is the flow chart of S2 in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Shown in Figure 1, the VLAN conversion equipment in the embodiment of the present invention, comprises signalTransmit port, KEY generation module, KEY search module, lookup result arbitration modules andVLAN processing module. KEY searches and in module, is provided with KEY and searches database, VLANProcessing module is provided with VLAN operating database; KEY searches database and VLAN operationDatabase includes some entries, and every KEY searches data base entries and VLAN operandBe associated according to 1 entry in storehouse,
Signal sending end mouth is input port or output port, its for: send 3 kinds of signalsTo KEY generation module, 3 kinds of signals are: the VLANTAG type of incoming frame, SVID(SVLAN is service vlan for servicevlanid, the ID of SVLAN) and CVID(CVLAN is customer VLAN for customervlanid, the ID of CVLAN); Incoming frameVLANTAG type comprise 4 kinds: UNTAG, SIT (being only with inner VLAN label),SOT (being only with outside VLAN label) and DT (with inside and outside 2 layers of VLAN label).
KEY generation module is used for: produce 3 kinds according to the signal of receiving and search searching of typeKEY and corresponding searching enable, and search KEY and corresponding searching by what effectively search typeEnable to be sent to KEY and search module. 3 kinds search type search KEY and corresponding searchingEnable for:
KEY_TYPE1 (searching Class1): searching KEY is KEY1{PORT (portNumber), CVID}, searches and enables as KEY1_EN;
KEY_TYPE2: searching KEY is KEY2{PORT, SVID}, corresponding searching makesCan be KEY2_EN;
KEY_TYPE3: searching KEY is KEY3{PORT, SVID, CVID}, correspondingSearch and enable as KEY3_EN.
KEY search module for: search database at KEY, search and mate and receiveSearch the lookup result that KEY is corresponding, lookup result is sent to lookup result arbitration modules.
Every group of lookup result includes HIT (whether matching value), RSLT_PRI (priority value)And OP_INDEX (index); 3 groups of lookup results are:
1, the lookup result corresponding with KEY1: { HIT1, RSLT_PRI1, OP_INDEX1};
2, the lookup result corresponding with KEY2: { HIT2, RSLT_PRI2, OP_INDEX2};
3, the lookup result corresponding with KEY3: { HIT3, RSLT_PRI3, OP_INDEX3}.
Shown in Figure 2, KEY searches database and comprises n item entry, in every entryRong Wei:
ENTRY_VALID: represent that whether this entry effective, invalid entries do not participate in searching andCoupling;
PORT: coupling input item, for the PORT of matched and searched KEY;
CVID: coupling input item, for the CVID of matched and searched KEY;
SVID: coupling input item, for the SVID of matched and searched KEY;
KEY_TYPE: represent this entry need to corresponding search type search KEY coupling,KEY_TYPE has 3 kinds of values, respectively with 3 kinds search KEY to search type corresponding (KEY_TYPE1、KEY_TYPE2、KEY_TYPE3);
RSLT_PRI: priority value, carries out the second month in a season when multiple KEY types are searched simultaneouslyCut out, what priority was high has priority;
NEW_CVID: the CVID value that needs renewal or replace;
NEW_SVID: the SVID value that needs renewal or replace;
NEW_CPRI: the priority value that needs the CVLAN of renewal or replacement;
NEW_SPRI: the priority value that needs the SVLAN of renewal or replacement.
Lookup result arbitration modules is used for: 3 groups of lookup results are arbitrated, sent arbitration knotFruit is to VLAN processing module, arbitration result comprise the lookup result that draws of arbitration HIT andOP_INDEX。
VLAN processing module is used for: at VLAN operating database, search and arbitrate knotThe entry that OP_INDEX in fruit is associated, obtains and exports VLAN place according to this entryReason result.
Shown in Figure 3, VLAN operating database comprises m item entry, every entryRepresent that item is CVLAN_OP (representing the operation behavior of CVLAN), SVLAN_OP (tableShow the operation behavior of SVLAN), CPRI_OP (represent CPRI operation behavior), SPRI_OP(representing the operation behavior of SPRI). Known according to the expression item of every entry, VLAN processesResult comprises HIT, CVLAN_OP, SVLAN_OP, CPRI_OP and SPRI_OP.
CVLAN_OP and SVLAN_OP include: interpolation, deletion, replacement and inoperation;CPRI_OP and SPRI_OP include: interpolation, replacement and inoperation.
Shown in Figure 4, the VLAN conversion method based on said apparatus in the present embodiment,Comprise the following steps:
3 kinds of signals that S1:KEY generation module sends according to signal sending end mouth, produce 3The KEY that searches that kind is searched type enables with corresponding searching; KEY generation module is according to 3 kindsThe VLANTAG type of incoming frame in signal, determines and exports and effectively search searching of typeKEY and corresponding searching enable to search module to KEY, forward S2 to.
S2:KEY searches module and searches in database at KEY, to each the searching receivingKEY searches and mates, and obtains lookup result, forwards S3 to.
S3: lookup result arbitration modules is arbitrated lookup result, and arbitration result is exported toVLAN processing module, forwards S4 to.
S4:VLAN processing module, in VLAN operating database, is searched and arbitration resultThe entry being associated, obtains VLAN result according to this entry.
Shown in Figure 5, in S1,3 kinds of KEY that search that search type make with corresponding searchingCan be:
KEY_TYPE1: searching KEY is KEY1{PORT, CVID}, search enable into KEY1_EN;
KEY_TYPE2: searching KEY is KEY2{PORT, SVID}, corresponding searching makesCan be KEY2_EN;
KEY_TYPE3: searching KEY is KEY3{PORT, SVID, CVID}, correspondingSearch and enable as KEY3_EN.
On this basis, in S1 KEY generation module according to the VLAN of incoming frame in 3 kinds of signalsTAG type, determine and export effectively search type search KEY and corresponding searching enablesSearch module to KEY, specifically comprise the following steps:
S101:KEY generation module judges the VLANTAG type of incoming frame in 3 kinds of signalsWhether comprise dual-VLAN TAG:STAG (TAG of SVLAN) and CTAG simultaneously(TAG of CVLAN), if so, forwards S102 to, otherwise forwards S103 to.
What type was searched in 3 kinds of S102:KEY generation module outputs searches KEY and corresponding looking intoLook for and enable to search module to KEY, S1 finishes.
S103:KEY generation module judges whether the VLANTAG type of incoming frame only hasSTAG, if so, forwards S104 to, otherwise forwards S105 to.
S104:KEY generation module output KEY2 and KEY2_EN to KEY search module,S1 finishes, and forwards S2 to.
S105:KEY generation module judges whether the VLANTAG type of incoming frame only hasCTAG, if so, forwards S106 to, otherwise forwards S107 to.
S106:KEY generation module output KEY3 and KEY3_EN to KEY search module,S1 finishes, and forwards S2 to.
S107:KEY generation module judges that effectively not searching KEY makes with corresponding searchingCan, S1 finishes, and VLAN conversion method also finishes.
Shown in Figure 6, S2 specifically comprises the following steps:
What S201:KEY searched that module judgement need to search search enable whether effective, if so,Forward S202 to, otherwise forward S205 to.
S202:KEY searches module the current KEY that searches enabling that searches is carried out to HASH meterCalculate, determine that according to the low position index of HASH KEY searches entry corresponding in database, turnsTo S203.
S203:KEY searches module and searches current entry in database according to KEYENTRY_VALID, judges that whether current entry is effective, if so, forwards S204 to, otherwise turnsTo S205.
S204:KEY searches module and obtains enabling corresponding the looking into of KEY of searching with current searchingLooking for result is HIT, RSLT_PRI and OP_INDEX; The value of HIT is 1, represents currentThe match is successful to search KEY, and the value of RSLT_PRI is identical with current entry, OP_INDEXValue be the call number that VLAN operating database is associated with current entry; S2 finishes, and turnsTo S3.
S205:KEY searches module and produces with current searching and enable corresponding the looking into of KEY of searchingLooking for result is that the value of HIT is 0, RSLT_PRI and the equal vacancy of OP_INDEX, not withCurrent entry of searching KEY coupling, S2 finishes, and forwards S3 to.
S3 specifically comprises the following steps:
S301: lookup result arbitration modules judges that whether the HIT value in all lookup results is completePortion's representative is not mated, and if so, forwards S302 to, otherwise forwards S303 to.
S302: lookup result arbitration modules output arbitration result, to VLAN processing module, is cut outResult is: HIT is 0, OP_INDEX vacancy, and S3 finishes, and VLAN conversion method is also tiedBundle.
S303: lookup result arbitration modules draws according to the highest lookup result of RSLT_PRI valueArbitration result, in the time that multiple lookup results have the highest identical RSLT_PRI value, according toHIT3 (KEY3) > HIT2 (KEY2) > default priority of HIT1 (KEY1), defeatedGo out arbitration result to VLAN processing module. Arbitration result is: HIT is 1, OP_INDEXIdentical with the OP_INDEX of corresponding lookup result, S3 finishes, and forwards S4 to.
The present invention is not limited to above-mentioned embodiment, for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications,Within these improvements and modifications are also considered as protection scope of the present invention. In this description, do not do in detailThe content of describing belongs to the known prior art of professional and technical personnel in the field.

Claims (8)

1. a VLAN conversion equipment, comprises signal sending end mouth, it is characterized in that: shouldDevice also comprises: KEY generation module, KEY search module, lookup result arbitration modules andVLAN processing module; KEY searches and in module, is provided with KEY and searches database, VLANProcessing module is provided with VLAN operating database; KEY searches database and VLAN operationDatabase includes some entries, and every KEY searches entry and the VLAN operation of database1 entry in database is associated;
Described signal sending end mouth is used for: send 3 kinds of signals to KEY generation module, 3 kindsSignal is: the VLANTAG type of incoming frame, ID, the CVID of SVID:SVLAN:The ID of CVLAN;
Described KEY generation module is used for: produce 3 kinds according to the signal received and search typeSearch KEY and corresponding searching enables, search KEY and corresponding by what effectively search typeSearch and enable to be sent to KEY and search module;
Described 3 kinds search type search KEY and corresponding searching enable into:
Search type KEY_TYPE1: searching KEY is KEY1, and KEY1 is port numbersPORT and CVID, what KEY1 was corresponding search enables as KEY1_EN;
KEY_TYPE2: searching KEY is KEY2, and KEY2 is PORT and SVID,What KEY2 was corresponding search enables as KEY2_EN;
KEY_TYPE3: searching KEY is KEY3, KEY3 be PORT, SVID andCVID, what KEY3 was corresponding search enables as KEY3_EN;
Described KEY search module for: search database at KEY, search and mate withThat receives searches the lookup result that KEY is corresponding, and lookup result is sent to lookup result arbitrationModule; Every group of lookup result whether include matching value HIT, priority value RSLT_PRI andIndex OP_INDEX;
Described KEY searches database and comprises some entries, and the content of every entry comprises:
ENTRY_VALID: represent that whether this entry effective, invalid entries do not participate in searching andCoupling;
PORT: coupling input item, for the PORT of matched and searched KEY;
CVID: coupling input item, for the CVID of matched and searched KEY;
SVID: coupling input item, for the SVID of matched and searched KEY;
KEY_TYPE: represent this entry need to corresponding search type search KEY coupling,The value of KEY_TYPE with 3 kinds search KEY to search type corresponding; ;
RSLT_PRI: priority value;
NEW_CVID: the CVID value that needs renewal or replace;
NEW_SVID: the SVID value that needs renewal or replace;
NEW_CPRI: the priority value that needs the CVLAN of renewal or replacement;
NEW_SPRI: the priority value that needs the SVLAN of renewal or replacement;
Described lookup result arbitration modules is used for: 3 groups of lookup results are arbitrated, sent secondaryCut out result to VLAN processing module, arbitration result comprises the HIT that arbitrates the lookup result drawingAnd OP_INDEX;
Described VLAN processing module is used for: at VLAN operating database, search and the second month in a seasonCut out the entry that the OP_INDEX in result is associated, obtain VLAN according to this entry and processResult;
Described VLAN operating database comprises some entries, the expression item bag of every entryDraw together operation behavior CVLAN_OP, SVLAN_OP, CPRI_OP, the SPRI_OP of CVLAN;Described VLAN result comprise CVLAN_OP, SVLAN_OP, CPRI_OP,The HIT of SPRI_OP and arbitration result.
2. VLAN conversion equipment as claimed in claim 1, is characterized in that: described letterNumber transmit port is input port or output port.
3. VLAN conversion equipment as claimed in claim 1, is characterized in that: described defeatedThe VLANTAG type of incoming frame comprises: UNTAG, be only with inner VLAN label SIT,Only be with outside VLAN label SOT and with inside and outside 2 layers of VLAN label DT.
4. VLAN conversion equipment as claimed in claim 1, is characterized in that: described inCVLAN_OP and SVLAN_OP in VLAN operating database include: add,Deletion, replacement and inoperation; CPRI_OP and SPRI_OP include: add, replace andInoperation.
5. the VLAN conversion method based on installing described in claim 1 to 4 any one,It is characterized in that, the method comprises the following steps:
3 kinds of signals that S1:KEY generation module sends according to signal sending end mouth, produce 3The KEY that searches that kind is searched type enables with corresponding searching; KEY generation module is according to 3 kindsThe VLANTAG type of incoming frame in signal, determines and exports and effectively search searching of typeKEY and corresponding searching enable to search module to KEY, forward S2 to;
S2:KEY searches module and searches in database at KEY, to each the searching receivingKEY searches and mates, and obtains lookup result, forwards S3 to;
S3: lookup result arbitration modules is arbitrated lookup result, and arbitration result is exported toVLAN processing module, forwards S4 to;
S4:VLAN processing module, in VLAN operating database, is searched and arbitration resultThe entry being associated, obtains VLAN result according to this entry.
6. VLAN conversion method as claimed in claim 5, is characterized in that: institute in S1State 3 kinds search type search KEY and corresponding searching enable into:
Search type KEY_TYPE1: searching KEY is KEY1{PORT, and CVID}, looks intoLook for and enabling as KEY1_EN;
KEY_TYPE2: searching KEY is KEY2{PORT, SVID}, corresponding searching makesCan be KEY2_EN;
KEY_TYPE3: searching KEY is KEY3{PORT, SVID, CVID}, correspondingSearch and enable as KEY3_EN;
On this basis, the generation module of KEY described in S1 is according to incoming frame in 3 kinds of signalsVLANTAG type, determine and export effectively search type search KEY and corresponding looking intoLook for and enable to search module to KEY, specifically comprise the following steps:
S101:KEY generation module judges the VLANTAG type of incoming frame in 3 kinds of signalsWhether comprise the TAG of STAG:SVLAN, the TAG of CTAG:CVLAN simultaneously, ifBe, forward S102 to, otherwise forward S103 to;
What type was searched in 3 kinds of S102:KEY generation module outputs searches KEY and corresponding looking intoLook for and enable to search module to KEY, S1 finishes;
S103:KEY generation module judges whether the VLANTAG type of incoming frame only hasSTAG, if so, forwards S104 to, otherwise forwards S105 to;
S104:KEY generation module output KEY2 and KEY2_EN to KEY search module,S1 finishes, and forwards S2 to;
S105:KEY generation module judges whether the VLANTAG type of incoming frame only hasCTAG, if so, forwards S106 to, otherwise forwards S107 to;
S106:KEY generation module output KEY3 and KEY3_EN to KEY search module,S1 finishes, and forwards S2 to;
S107:KEY generation module judges that effectively not searching KEY makes with corresponding searchingCan, S1 finishes, and now VLAN conversion method also finishes.
7. VLAN conversion method as claimed in claim 5, is characterized in that, S2 is concreteComprise the following steps:
What S201:KEY searched that module judgement need to search search enable whether effective, if so,Forward S202 to, otherwise forward S205 to;
S202:KEY searches module the current KEY that searches enabling that searches is carried out to HASH meterCalculate, determine that according to the low position index of HASH KEY searches entry corresponding in database, turnsTo S203;
S203:KEY searches module and searches current entry in database according to KEYENTRY_VALID, judges that whether current entry is effective, if so, forwards S204 to, otherwise turnsTo S205;
S204:KEY searches module and obtains enabling corresponding the looking into of KEY of searching with current searchingLooking for result is HIT, RSLT_PRI and OP_INDEX; The value of HIT is 1, represents currentThe match is successful to search KEY, and the value of RSLT_PRI is identical with current entry, OP_INDEXValue be the call number that VLAN operating database is associated with current entry; S2 finishes, and turnsTo S3;
S205:KEY searches module and produces with current searching and enable corresponding the looking into of KEY of searchingLooking for result is that the value of HIT is 0, RSLT_PRI and the equal vacancy of OP_INDEX, and representative does not haveWith the entry that the current KEY of searching mates, S2 finishes, and forwards S3 to.
8. VLAN conversion method as claimed in claim 7, is characterized in that, S3 is concreteComprise the following steps:
S301: lookup result arbitration modules judges that whether the HIT value in all lookup results is completePortion's representative is not mated, and if so, forwards S302 to, otherwise forwards S303 to;
S302: lookup result arbitration modules output arbitration result is to VLAN processing module, the second month in a seasonSanction result is: HIT is 0, OP_INDEX vacancy, and S3 finishes, now VLAN conversionMethod also finishes;
S303: lookup result arbitration modules draws according to the highest lookup result of RSLT_PRI valueArbitration result, in the time that multiple lookup results have the highest identical RSLT_PRI value, according toKEY3 > KEY2 > default priority of KEY1, output arbitration result is processed mould to VLANPiece; Arbitration result is: HIT is 1, represents that the KEY that searches of current arbitration result mates,OP_INDEX is identical with the OP_INDEX of corresponding lookup result, and S3 finishes, and forwards S4 to.
CN201610035460.7A 2016-01-19 2016-01-19 A kind of VLAN conversion equipment and method Active CN105610673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610035460.7A CN105610673B (en) 2016-01-19 2016-01-19 A kind of VLAN conversion equipment and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610035460.7A CN105610673B (en) 2016-01-19 2016-01-19 A kind of VLAN conversion equipment and method

Publications (2)

Publication Number Publication Date
CN105610673A true CN105610673A (en) 2016-05-25
CN105610673B CN105610673B (en) 2018-12-11

Family

ID=55990218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610035460.7A Active CN105610673B (en) 2016-01-19 2016-01-19 A kind of VLAN conversion equipment and method

Country Status (1)

Country Link
CN (1) CN105610673B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098286A (en) * 2007-03-15 2008-01-02 中兴通讯股份有限公司 Multi-to-one VLAN mapping method
CN101931835A (en) * 2010-09-03 2010-12-29 深圳市共进电子有限公司 Method and device for realizing VLAN (Virtual Local Area Network) convergence and conversion in EPON (Ethernet Passive Optical Network)
CN102055669A (en) * 2010-12-20 2011-05-11 武汉烽火网络有限责任公司 Method for realizing N:1 virtual local area network (VLAN) mapping in 10 gigabit-capable passive optical network (10GPON) system
CN102594674A (en) * 2012-02-09 2012-07-18 烽火通信科技股份有限公司 Method and device for realizing double-virtual local area network (VLAN) cross forwarding
CN102655504A (en) * 2011-12-16 2012-09-05 中兴通讯股份有限公司 Method and device for carrying out N:1Vlan conversion by using virtual port
CN103701679A (en) * 2013-12-16 2014-04-02 上海斐讯数据通信技术有限公司 VLAN (virtual local area network) conversion implementation method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098286A (en) * 2007-03-15 2008-01-02 中兴通讯股份有限公司 Multi-to-one VLAN mapping method
CN101931835A (en) * 2010-09-03 2010-12-29 深圳市共进电子有限公司 Method and device for realizing VLAN (Virtual Local Area Network) convergence and conversion in EPON (Ethernet Passive Optical Network)
CN102055669A (en) * 2010-12-20 2011-05-11 武汉烽火网络有限责任公司 Method for realizing N:1 virtual local area network (VLAN) mapping in 10 gigabit-capable passive optical network (10GPON) system
CN102655504A (en) * 2011-12-16 2012-09-05 中兴通讯股份有限公司 Method and device for carrying out N:1Vlan conversion by using virtual port
CN102594674A (en) * 2012-02-09 2012-07-18 烽火通信科技股份有限公司 Method and device for realizing double-virtual local area network (VLAN) cross forwarding
CN103701679A (en) * 2013-12-16 2014-04-02 上海斐讯数据通信技术有限公司 VLAN (virtual local area network) conversion implementation method

Also Published As

Publication number Publication date
CN105610673B (en) 2018-12-11

Similar Documents

Publication Publication Date Title
EP2503743B1 (en) Usage Of Masked Ethernet Addresses Between Transparent Interconnect Of Lots Of Links (Trill) Routing Bridges
JP4916934B2 (en) Passive optical network system and method for supporting virtual Ethernet service
JP5585219B2 (en) Switching device and virtual LAN construction method
EP2860882B1 (en) Service processing method, device and system
US20080112403A1 (en) Assigning Packets to a Network Service
CN103023792A (en) Conveying the VLAN/L2 VSN/bridging-domain of the incoming interface (IIF) when transporting multicast traffic
CN102970227A (en) Method and device for achieving virtual extensible local area network (VXLAN) message transmitting in application specific integrated circuit (ASIC)
CN101409685A (en) Forwarding method based on virtual LAN mapping and access equipment
CN101931835B (en) Method and device for realizing VLAN (Virtual Local Area Network) convergence and conversion in EPON (Ethernet Passive Optical Network)
CN105515992A (en) Method and device for processing flow table items of VXLAN network
CN102857428A (en) Message transmitting method and message transmitting equipment on basis of access control list
CN103107934A (en) Message processing control method and device
CN102347889A (en) Message forwarding method, system and device in H-VPLS (Hierarchical Virtual Private local area network service)
CN100559772C (en) Mixed virtual private network system and backbone network edge apparatus and collocation method thereof
US7394810B2 (en) Layer 2 switch and method of processing expansion VLAN tag of layer 2 frame
CN108259351B (en) Data transmission method suitable for wide-band and narrow-band channel hybrid network
EP1594258B1 (en) Method and system for receiving and transmitting different data frames on digital transmission network
CN105207904B (en) Processing method, device and the router of message
CN103269300A (en) Method and equipment for achieving heterogeneous network interconnection
CN105610673A (en) VLAN (Virtual Local Area Network) conversion device and method
CN103391251A (en) Method and device for reducing redundant flow in PBB (provider backbone bridge) network
CN100459580C (en) Method of forwarding services with three-layer resilient packet ring
US20160164969A1 (en) Personal Computer Network, Mobile Connection and Searching Systems
EP1594256A1 (en) Method and system for receiving and transmitting different data frames on digital tranmission network
CN101355514B (en) Method for transmitting data packet with VLAN label in two-layer VPN

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant