CN100413281C - Method for realizing virtual exchange using QinQ technique - Google Patents

Method for realizing virtual exchange using QinQ technique Download PDF

Info

Publication number
CN100413281C
CN100413281C CNB200510056722XA CN200510056722A CN100413281C CN 100413281 C CN100413281 C CN 100413281C CN B200510056722X A CNB200510056722X A CN B200510056722XA CN 200510056722 A CN200510056722 A CN 200510056722A CN 100413281 C CN100413281 C CN 100413281C
Authority
CN
China
Prior art keywords
vlan
qinq
private network
network
utilizing
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.)
Expired - Fee Related
Application number
CNB200510056722XA
Other languages
Chinese (zh)
Other versions
CN1838629A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB200510056722XA priority Critical patent/CN100413281C/en
Priority to PCT/CN2005/002067 priority patent/WO2006094440A1/en
Publication of CN1838629A publication Critical patent/CN1838629A/en
Application granted granted Critical
Publication of CN100413281C publication Critical patent/CN100413281C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a method for realizing virtual exchange using QinQ technique to solve the problem that two-level intercommunication among networks with different VLAN IDs in different regions can not be realized existing in the prior art. The present invention comprises the following steps: a configuration step, a QinQ VLAN swap table is arranged on intermediate equipment, and the QinQ VLAN swap table comprises a public network VLAN ID, an outlet port number, a private network VLAN ID, a new private network after exchange, etc.; an inquiry step, the QinQ VLAN swap table is inquired by an erosive external layer public network VLAN ID plus the outlet port number plus the private network VLAN ID when the QinQ is ended to obtain a new private network VLAN ID; an exchange and transmission step, the new private network VLAN ID is used for replacing the original VLAN ID and the replaced data packet is sent out from an outlet port. The technical scheme of the present invention can realize that VLAN networks with different IDs can form a large VPN network without changing any user network configuration, and private networks in different regions can plan own VLAN independently. The present invention has the advantages of simple layout and flexible network combination.

Description

A kind of method of utilizing the QinQ technology to realize virtual switch
Technical field
The present invention relates to a kind ofly realize the method for virtual switch by the QinQ technology, relate in particular to a kind of in different regions, have a method that realizes two layers of interconnection between the VPN network of different VLAN signs.
Background technology
Technology couples together the private network of different location, is a kind of technology of Cheap highly effective by VPN (Virtual Private Networks VPN), and VPN technologies commonly used at present have L2 technology and L3 layer technology.
QinQ (the technology that adopts two-layer IEEE802.1Q label to encapsulate, wrap data exactly and play two-layer VLAN label, claim the 802.1Q tunneling technique again) be a kind of simple VPN technologies, it adopts the L2 technology, by on VLAN (the Virtual Local Area Network VLAN) label that uses, encapsulating the VLAN label of a public network again, the VLAN of private network can be transparent to other private network that needs to connect from public network and go, the LAN of the several regions that disperse is formed a big virtual VPLS (Virtual Private LAN Service), make the LAN of a plurality of regions realize interconnection by public network equipment.
If but aforementioned techniques is not done special processing, LAN for different regions has only the identical network of VLAN sign to realize intercommunication at two layers, that is to say, have only two identical networks of VLAN ID could form a real VLAN, when planning network, will carry out VLAN planning like this whole VPLS.But such planning not only needs the professional just can finish, but also can bring great inconvenience to the networking of whole network, so that traffic affecting is carried out; In addition, because the change of configuration also may be introduced new mistake in network, this is beyond affordability for the user.
Summary of the invention
The object of the invention promptly is to overcome above-mentioned the deficiencies in the prior art, the method of the VLAN ID virtual switch that a kind of QinQ of utilization technology realizes different regions is provided, user VPN network is not changed just can realize network can both form a big VPN network, made things convenient for networking planning with VLAN that any ID identifies.
To achieve these goals, the invention discloses the method that a kind of QinQ of utilization technology realizes virtual switch, comprise the steps:
(1) configuration step: configuration QinQ VLAN swap table on switching equipment;
(2) query steps: when the QinQ data arrived described switching equipment, inquiry QinQ VLAN swap table obtained new private network VLAN ID;
(3) exchange and forwarding step: with the VLAN ID in the original packet of new private network VLAN ID replacement, and the QinQ packet that will replace new private network VLAN ID sends from outbound port.
Wherein, described QinQ VLAN swap table comprises the new private network VLAN id information after public network VLAN ID, outbound port number, private network VLAN ID and the exchange, or the new private network VLAN id information after public network VPN sign, outbound port number, private network VLAN ID and the exchange, or the VLAN id information after public network VLAN ID, outbound port number, MAC Address, station address and the exchange.
Wherein, in configuration step, promptly QinQ VLAN swap table can be unified configuration in switching equipment, also this table can be split at each port and respectively dispose a table.
Wherein, in described query steps, the VLAN ID by the outer public network VLAN ID+ outbound port peeled off number+private network removes to inquire about QinQ VLAN swap table, obtains new private network VLAN ID.
Wherein, in the described query steps, before inquiry QinQ VLAN swap table, when the QinQ packet arrives on the terminal prot of QinQ, finish the peeling off of outer public network VLAN Tag of QinQ earlier, obtain the VLAN ID of original private network.
Wherein, described port all refers to logic port, is the port of physics existence or virtual port.
Wherein, described outer public network VLAN all refers to outermost layer public network VLAN.
Wherein, described method is realized by software or hardware logic electric circuit.
Compared with prior art, owing to adopted technical solution of the present invention, solved between the user network with different VLAN ID the problem of intercommunication flexibly effectively, the VLAN that can realize different regions forms a big VPN network by the QinQ technology, and do not need the user that network configuration is carried out any change, and different region private networks can independently be planned the VLAN of oneself, and planning is simple, networking flexibility.
Embodiment
In order to understand the present invention better, the present invention is carried out more detailed explanation below in conjunction with embodiment.
As preceding described, can allow the VLAN of private network come transparent transmission by the QinQ technology by public network, the user private network of identical VLAN sign links to each other with the access switch of public network by user's access switch, VLAN 1 user of different regions (having identical VLAN sign) can form a big VPN network, we are referred to as VPN A, VLAN 2 users of different regions (have identical VLAN sign, but the VLAN sign that is different from VLAN 1 user) can form the big VPN network of another one equally, we are referred to as VPN B.If do not do special processing, the equipment of VPN A inside can be realized double layer intercommunication, the equipment of VPN B inside also can be realized double layer intercommunication, but the equipment of VPN A and VPN B mutually can not double layer intercommunication, promptly the LAN for different regions has only the identical network of VLAN sign to realize intercommunication at two layers, will carry out VLAN planning to whole VPLS like this when planning network.
The shortcoming of prior art is to require the VLAN of various places to want unified planning, if want to form a VPN network, then needs the VLAN in different regions is configured to identical VLAN ID, will be restricted when networking like this.The market department that for example same company is positioned at A, B two places needs interconnection, but because two places are independent networkings, so the planning of VLAN ID also is independently, we suppose the VLAN ID X of market department on A ground, the VLAN ID Y of the market department on B ground, if want the market department of two places is formed a VPN, then must revise the VLAN ID unanimity of A ground or B ground market department.Such modification not only needs the professional just can finish, and impacts but also can use network, and traffic affecting is carried out, because the change of configuration also may be introduced new mistake, this is to be difficult to receive for the user.
The present invention also can form a VPN network by adopting the way that realizes having different VLAN ID sign virtual switch by the QinQ technology on equipment, make the user network with different VLAN ID signs.Like this, the user just can not change to network just can realize that the VLAN with any VLAN ID sign can form a big VPN network, and realization has the double layer intercommunication between the VLAN that different VLANID identify.
The present invention program divided for three steps realized above-mentioned purpose:
1, configuration QinQ VLAN swap table on switching equipment such as router, switch is as shown in table 1.The new private network VLAN ID of VLAN swap table after by public network VLAN ID, outbound port number, private network VLAN ID and exchange constitutes, and wherein public network VLAN ID+ outbound port number+private network VLAN ID constitutes the keyword of table.
Table 1 QinQ VLAN swap table
Public network VLAN ID (A) Outbound port number (B) Private network VLAN ID (C) New private network VLAN ID (D)
A1 B1 C1 D1
A2 B2 C2 D2
A3 B3 C3 D3
... ... ... ...
2, when the QinQ packet arrives on the terminal prot of QinQ, finish the peeling off of outside VLAN Tag of QinQ earlier, obtain original private network vlan data bag, obtain the VLAN ID of private network simultaneously, at this moment the VLAN ID with outer public network VLAN ID+ outbound port+private network of peeling off removes to inquire about the QinQVLAN swap table, obtains new private network VLAN ID.
3, to send from outbound port behind the original private network VLAN ID of new private network VLAN ID replacement, so just realized the ID exchange of private network VLAN.
For example: the VLAN10 of region A and VLAN12 are by VLAN 5 and the VLAN6 interconnection of QinQ and region B.The user wishes that the VLAN10 of A will form a VLAN with the VLAN 5 of B, and the VLAN12 of A and the VLAN of B 6 form another VLAN.We suppose that the network of A is connected on the public network switch port one 0, and B is connected on the port one.Wherein, it is as follows to form the specific embodiments of a big VLAN with the VLAN6 of the VLAN 12 of region A and region B:
According to aforementioned networking requirement, press configuration data shown in the table 2.
Table 2 QinQ VLAN swap table
Public network VLAN ID Outbound port number Private network VLAN ID New private network VLAN ID
8 1 10 5
8 1 12 6
8 10 5 10
8 10 6 12
The data of sending for the VLAN12 from A are carried out the QinQ encapsulation when entry port 10, add public network VLAN tag, wherein outside VLAN ID is 8, corresponding data packet format sees Table 3 (1).QinQ termination when arriving outbound port 1, search QinQ VLAN swap table according to " public network VLAN ID 8+ outbound port 1+ private network VLAN ID 12 ", obtain new private network VLAN and be VLAN 6 ID number, VLAN12 then is exchanged into VLAN 6 according to QinQ VLAN swap table, corresponding data packet format sees Table 4 (1), and new private network VLAN ID 6 packet outbound ports 1 are sent;
The packet of VLAN 6 carries out the QinQ encapsulation at port one, and wherein outside VLAN ID is 8, and corresponding data packet format sees Table 3 (2).Termination QinQ when arriving port one 0, search QinQ VLAN swap table according to " public network VLAN ID 8+ outbound port 10+ private network VLAN ID 6 ", obtain new private network VLAN and be VLAN 12 ID number, then VLAN 6 is exchanged into VLAN 12 according to QinQ VLAN swap table, corresponding data packet format sees Table 4 (2), new private network VLAN ID 12 packet outbound ports 10 are sent, such two private networks: the VLAN6 on the VLAN12 on A ground and B ground has just realized two layers of exchanging visit, has formed a big VLAN.
Can finish two layers of exchanging visit of VLAN10 and VLAN5 equally.
Table 3 QinQ encapsulation back data packet format
(1) VLAN 12 packet structures
Figure C20051005672200091
(2) VLAN 6 packet structures
Figure C20051005672200092
Data packet format after the table 4 QinQ termination
(1) VLAN 12 packet peeling outer layer label VLANs 8 exchange new VLAN ID 6.
Ethernet address VLAN 6 Network data
(2) VLAN 6 packet peeling outer layer label VLANs 8 exchange new VLAN ID 12.
Ethernet address VLAN 12 Network data
For the situation of the VPLS that puts multiple spot, can relate to the selection to a plurality of VLAN ID in the QinQVLAN swap table this moment.We can wait and constitute keyword by configuring port numbers, MAC Address and other relevant informations (as station address), and then inquiry obtains new VLAN id information, because this belongs to prior art, do not give unnecessary details at this.
Above one of them embodiment that only introduces for the present invention, the present invention can unify QinQ VLAN swap table configuration in switching equipment, also this table can be split into table of each port arrangement, just can not have port numbers in the content of QinQ VLAN swap table like this, embodiment is the same with technique effect.
In addition, because there are relation one to one in VLAN and VPN at QinQ network ectomesoderm, therefore the keyword " public network VLAN ID " of the QinQ VLAN swap table among the present invention can be replaced with " VPN sign " fully, define new private network VLAN ID by configuration " VPN sign+outbound port number+private network VLAN ID " formation keyword, embodiment is the same with technique effect.
Need to prove that the port described in the present invention all refers to logic port, can be the port that physics exists, and also can be a virtual port.And the above-mentioned QinQ of utilization technology realizes that the method for virtual switch both can have been realized by software, also can be realized by hardware logic electric circuit.
The present invention is not only applicable to the situation of two-layer IEEE802.1Q Tag, is applicable to the situation of encapsulation multilayer IEEE802.1Q Tag yet, and under latter event, the outer public network VLAN described in the present invention all refers to outermost layer public network VLAN.
The invention solves the different network of VLAN sign and be difficult to the problem that realizes intercommunications at two layers, compared with prior art, the present invention has the following advantages:
1, the vlan network that can realize different identification is by large VPN network of QinQ technology composition, and the user does not need network configuration is carried out any change;
2, the private network of different regions can independently be planned the VLAN ID of oneself, and planning is simple, networking flexibility.

Claims (8)

1. a method of utilizing the QinQ technology to realize virtual switch is characterized in that, comprises the steps:
(1) configuration step: configuration QinQ VLAN swap table on switching equipment;
(2) query steps: when the QinQ data arrived described switching equipment, inquiry QinQ VLAN swap table obtained new private network VLAN ID;
(3) exchange and forwarding step: with the VLAN ID in the original packet of new private network VLAN ID replacement, and the QinQ packet that will replace new private network VLAN ID sends from outbound port.
2. the method for utilizing the QinQ technology to realize virtual switch according to claim 1, it is characterized in that, described QinQ VLAN swap table comprises the new private network VLAN id information after public network VLAN ID, outbound port number, private network VLANID and the exchange, or the new private network VLAN id information after public network VPN sign, outbound port number, private network VLAN ID and the exchange, or the VLAN id information after public network VLAN ID, outbound port number, MAC Address, station address and the exchange.
3. the method for utilizing the QinQ technology to realize virtual switch according to claim 1, it is characterized in that, in configuration step, promptly QinQ VLAN swap table can be unified configuration in switching equipment, also this table can be split at each port and respectively dispose a table.
4. the method for utilizing the QinQ technology to realize virtual switch according to claim 1, it is characterized in that, in described query steps, the VLAN ID by the public network VLAN ID+ outbound port peeled off number+private network removes to inquire about QinQ VLAN swap table, obtains new private network VLAN ID.
5. the method for utilizing the QinQ technology to realize virtual switch according to claim 4, it is characterized in that, in the described query steps, before inquiry QinQ VLAN swap table, when the QinQ packet arrives on the terminal prot of QinQ, finish the peeling off of outer public network VLAN Tag of QinQ earlier, obtain original private network VLAN ID.
6. according to any described method of utilizing the QinQ technology to realize virtual switch of claim 1-5, it is characterized in that described port all refers to logic port, is the port of physics existence or virtual port.
7. according to claim 2, the 4 or 5 described methods of utilizing the QinQ technology to realize virtual switch, it is characterized in that described public network VLAN all refers to outermost layer public network VLAN.
8. according to any described method of utilizing the QinQ technology to realize virtual switch of claim 1-5, it is characterized in that described method was both realized by software or hardware logic electric circuit.
CNB200510056722XA 2005-03-08 2005-03-24 Method for realizing virtual exchange using QinQ technique Expired - Fee Related CN100413281C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB200510056722XA CN100413281C (en) 2005-03-24 2005-03-24 Method for realizing virtual exchange using QinQ technique
PCT/CN2005/002067 WO2006094440A1 (en) 2005-03-08 2005-12-01 A method of virtual local area network exchange and the network device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510056722XA CN100413281C (en) 2005-03-24 2005-03-24 Method for realizing virtual exchange using QinQ technique

Publications (2)

Publication Number Publication Date
CN1838629A CN1838629A (en) 2006-09-27
CN100413281C true CN100413281C (en) 2008-08-20

Family

ID=37015886

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510056722XA Expired - Fee Related CN100413281C (en) 2005-03-08 2005-03-24 Method for realizing virtual exchange using QinQ technique

Country Status (1)

Country Link
CN (1) CN100413281C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012079248A1 (en) * 2010-12-17 2012-06-21 中兴通讯股份有限公司 Forwarding method and system based on virtual local area network (vlan) with capacity expansion and reduction packet transport network (ptn) ports

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340347B (en) * 2008-08-19 2011-04-13 杭州华三通信技术有限公司 Method and system for transmitting audio data stream
CN101409639B (en) * 2008-11-25 2011-01-05 杭州华三通信技术有限公司 Method and apparatus for configuring QinQ
CN101707562B (en) * 2009-11-27 2012-01-25 中兴通讯股份有限公司 Method and device for realizing access of virtual local area network (VLAN) stacking in virtual private wire service (VPWS)
CN102185781B (en) * 2011-05-12 2015-06-03 中兴通讯股份有限公司 Multi-port Ethernet interface device and method for accessing VPN (virtual private network) service on same
CN104202229B (en) * 2014-09-13 2017-10-27 潍坊学院 A kind of device for passive optical network OLT QINQ message processing methods and system
CN107547686B (en) * 2017-08-29 2021-05-28 新华三技术有限公司 ARP request message processing method and device
CN108055187B (en) * 2017-12-01 2020-07-10 上海市信息网络有限公司 VPN correlation method and system for service domain and local service node of user provided network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1356806A (en) * 2001-12-31 2002-07-03 刘军民 Data forwarding method for implementing virtual channel transmission in LAN
US20020101870A1 (en) * 2001-01-30 2002-08-01 Chase Christopher J. Technique for ethernet access to packet-based services
WO2004023838A2 (en) * 2002-09-09 2004-03-18 Nortel Networks Limited Svc-l2 vpns: flexible on-demand switched mpls/ip layer-2 vpns for ethernet svc, atm and frame relay

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020101870A1 (en) * 2001-01-30 2002-08-01 Chase Christopher J. Technique for ethernet access to packet-based services
CN1356806A (en) * 2001-12-31 2002-07-03 刘军民 Data forwarding method for implementing virtual channel transmission in LAN
WO2004023838A2 (en) * 2002-09-09 2004-03-18 Nortel Networks Limited Svc-l2 vpns: flexible on-demand switched mpls/ip layer-2 vpns for ethernet svc, atm and frame relay

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012079248A1 (en) * 2010-12-17 2012-06-21 中兴通讯股份有限公司 Forwarding method and system based on virtual local area network (vlan) with capacity expansion and reduction packet transport network (ptn) ports

Also Published As

Publication number Publication date
CN1838629A (en) 2006-09-27

Similar Documents

Publication Publication Date Title
CN100413281C (en) Method for realizing virtual exchange using QinQ technique
CN102801625B (en) A kind of method of heterogeneous network double layer intercommunication and equipment
CN100461732C (en) Ethernet technology switching and forwarding method, system and equipment
CN104022960B (en) Method and apparatus based on OpenFlow protocol realizations PVLAN
US8767749B2 (en) Method and system for transparent LAN services in a packet network
CN100442772C (en) Bridge-connection transmitting method
CN1838627B (en) Method for realizing QinQ access
CN101841451B (en) Virtual local area network-based speed limiting method and system for cloud hosts
CN102739501B (en) Message forwarding method and system in two three layer virtual private networks
CN101133407A (en) Metro Ethernet network with scaled broadcast and service instance domains
CN100358322C (en) Method of multilayer VLAN switching
CN102185778B (en) Method and device for transmitting data based on VLL (Virtual Lease Line)
CN100450080C (en) Method and apparatus for astringing two layer MAC address
CN101616014A (en) A kind of method that realizes cross-virtual private local area network multicast
CN104065582B (en) A kind of message transmitting method and gateway device
CN102025591A (en) Method and system for implementing virtual private network
CN101729355B (en) Method for realizing particular virtual local area network and device
CN101110764A (en) Method for Ethernet switchboard data frame partitioning virtual local area network and transmitting
CN100382531C (en) Switching in method for virtual special network and realizing apparatus
CN101123510A (en) Method, switch and switching chip for port separation of switch
CN109639552A (en) A kind of three-layer forwarding method and device
CN100407684C (en) Method and system of user access virtual special LAN service
CN107888519A (en) A kind of local gigabit ethernet switch
CN100446503C (en) Enhanced VPN network optimization method and apparatus
CN100508520C (en) Method for implementing VLAN based L2VPN

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 HUAWEI Hangzhou production base, No. 310 Liuhe Road, Hangzhou hi tech Industrial Development Zone, Zhejiang

Patentee before: Huasan Communication Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080820

Termination date: 20200324