CN101447906A - Control method, control device and communication system of QinQ access user - Google Patents

Control method, control device and communication system of QinQ access user Download PDF

Info

Publication number
CN101447906A
CN101447906A CNA200810220301XA CN200810220301A CN101447906A CN 101447906 A CN101447906 A CN 101447906A CN A200810220301X A CNA200810220301X A CN A200810220301XA CN 200810220301 A CN200810220301 A CN 200810220301A CN 101447906 A CN101447906 A CN 101447906A
Authority
CN
China
Prior art keywords
vlan
qinq
interface
user
overall
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.)
Pending
Application number
CNA200810220301XA
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA200810220301XA priority Critical patent/CN101447906A/en
Publication of CN101447906A publication Critical patent/CN101447906A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a control method of a QinQ access user. The method comprises the following steps: mapping a QinQ interface accessing the QinQ user to a global virtual local area network (VLAN); establishing a global VLAN interface (VLAN If) on the global VLAN; and configuring an IP address on the VLAN If. The embodiment of the invention also provides a control device and a communication system of the QinQ access user. The control method, the control device and the communication system can help various sub-interfaces or physical ports share the same IP address network segment, share the same gateway, and save IP address resources.

Description

QinQ inserts user's control method, device and communication system
Technical field
The present invention relates to the communications field, relate in particular to control method, device and communication system that a kind of QinQ inserts the user.
Background technology
QinQ (802.1Q in 802.1Q, VLAN dual-stack technology) is an expansion VLAN (Virtual LocalArea Network, VLAN) technology in space, by on the basis of 802.1Q label packet, increasing label (Tag) head (one deck public network Tag of one deck 802.1Q again, one deck private network Tag) reaches the function of expanding the VLAN space, can make private network VLAN message transmission public network.
Like this, ISP (Internet Service Provider, the service provider) the different VLAN that only are required to be from same user network of network provide a VLAN ID, have saved the VLAN ID of ISP, with the problem of the ISP network VLAN ID resource anxiety that solves growing tension.Simultaneously also provide a kind of comparatively simple two-layer VPN (Virtual Private Network, VPN (virtual private network)) solution for small-sized metropolitan area network or local area network (LAN).
The QinQ technology has obtained using widely in each operator because it is convenient easy-to-use now.Along with the development of present QinQ business, the application that equipment inserts QinQ user by two-layer Tag more and more widely.For the user that makes access can accesses network, need on equipment, enable the three-layer network pass of a large amount of sub-interfaces as the user, IP address of configuration on each sub-interface, and must dispose different IP addresses between a plurality of sub-interfaces, otherwise IP address conflict can be caused in the identical IP address of configuration on equipment.
As shown in Figure 1, router Router is by QinQ sub-interface access network, and sub-interface 1 SubIf-1 is by the user of the two-layer Tag access 10.1.1.0/25 network segment, and sub-interface 2 SubIf-2 insert the user of 10.1.1.128/25 by two-layer Tag.For each network segment address, a gateway address, broadcast address, network segment address must be arranged.This network segment of 10.1.1.0/25 of sub-interface 1 configuration among Fig. 1, wherein 10.1.1.1 is that gateway address, 10.1.1.127 are broadcast addresses, and 10.1.1.0 is a network segment address, and these several addresses all can't be allocated to the user and use; This network segment of 10.1.1.128/25 of sub-interface 2 configurations, wherein 10.1.1.129 is a gateway address, and 20.1.1.128 is a network segment address, and 10.1.1.255 is a broadcast address, and these several addresses also can't be distributed to the user and use.In this big network segment of 10.1.1.0/24, have like this with regard to 6 IP addresses and can't distribute to user's use.The sub-interface of enabling is many more, just has many more IP addresses can't distribute to the user and uses, and causes the waste of IP address resource.
In like manner, when inserting the user, also there is the problem that causes the IP address resource to be wasted because of enabling physical port and configuration of IP address for the physical port of Router.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of QinQ to insert user's control method, device and communication system, so that insert at QinQ interface under user's the situation, saves the IP address resource.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of QinQ to insert user's control method, comprising:
The QinQ interface that inserts QinQ user is mapped to overall virtual LAN VLAN;
On described overall VLAN, create overall VLAN interface VLAN If;
Configuration of IP address on described VLAN If.
The embodiment of the invention also provides a kind of QinQ to insert user's control device, comprising:
Map unit, the QinQ interface that is used for inserting QinQ user is mapped to overall VLAN;
First creating unit is used for creating overall VLAN interface VLAN If on overall VLAN;
First dispensing unit is used for configuration of IP address on VLAN If.
The embodiment of the invention also provides a kind of communication system, and described system comprises router, and described router inserts QinQ user by QinQ interface, and described router further comprises:
Map unit, the QinQ interface that is used for inserting QinQ user is mapped to overall VLAN;
First creating unit is used for creating overall VLAN interface VLAN If on overall VLAN;
First dispensing unit is used for configuration of IP address on VLAN If.
The embodiment of the invention is when inserting QinQ user, QinQ interface by the access QinQ user that will create is mapped to overall VLAN, configuration of IP address on the interface VLAN of overall VLAN If, just avoided the prior art scheme each interface or port all to be needed the defective of separate configurations IP address, thereby each sub-interface or physical port are all shared same IP address network segment, share same gateway, saved the IP address resource.
Description of drawings
Fig. 1 is that existing QinQ interface inserts user's schematic diagram;
Fig. 2 is the principle schematic that the embodiment of the invention one QinQ inserts user's control method;
Fig. 3 is the schematic flow sheet that the embodiment of the invention one QinQ inserts user's control method;
Fig. 4 is the principle schematic that the embodiment of the invention two QinQ insert user's control method;
Fig. 5 is the schematic flow sheet that the embodiment of the invention two QinQ insert user's control method;
Fig. 6 is the principle schematic that the embodiment of the invention three QinQ insert user's control method;
Fig. 7 is the schematic flow sheet that the embodiment of the invention three QinQ insert user's control method;
Fig. 8 is the structural representation that the embodiment of the invention four QinQ insert user's control device;
Fig. 9 is the structural representation of embodiment of the invention five-way communication system.
Embodiment
Below in conjunction with accompanying drawing the embodiment of the invention is described in detail.
The embodiment of the invention one:
As shown in Figure 2, present embodiment is when inserting the user by QinQ interface (for example If-1 and If-2), direct configuration of IP address on sub-interface or physical port not, but QinQ interface is mapped to overall VLAN, configuration of IP address on the interface VLAN of overall VLAN If, a plurality of little network segments can be merged into the big network segment like this, save the IP address resource.
Please refer to shown in Figure 3ly, the embodiment of the invention one QinQ inserts user's control method, comprising:
Step 301 is mapped to overall VLAN with the QinQ interface that inserts QinQ user;
Step 302 is created overall VLAN interface VLAN If on overall VLAN;
Step 303, configuration of IP address on VLAN If.
In the embodiment of the invention, QinQ interface is mapped to overall VLAN is meant the VLAN Tag that two layers of Tag of QinQ interface is all replaced with public network.
In the practical application, the technical scheme of embodiment one can have two kinds of embodiments, describes respectively with embodiment two and embodiment three below.
The embodiment of the invention two:
As shown in Figure 4, in the present embodiment, when inserting the user by QinQ interface, need to create sub-interface SubIf (for convenience of description, present embodiment is an example to create 2 sub-interface SubIf-1, SubIf-2), but direct configuration of IP address on sub-interface not, but sub-interface is mapped to overall VLAN, configuration of IP address on the interface of overall VLAN can be merged into the big network segment with a plurality of little network segments like this, saves the IP address resource.
Please refer to shown in Figure 5ly, present embodiment two QinQ insert user's control method, comprising:
Step 501 is created at least one QinQ sub-interface SubIf.
The sub-interface SubIf quantity of creating on router Router is decided according to the practical application scene.After SubIf-1, SubIf-2 create, will insert QinQ user by two-layer Tag.
Step 502 is mapped to overall VLAN with the sub-interface SubIf of described establishment.
At this moment, sub-interface SubIf-1, SubIf-2 all are mapped to overall VLAN, and the ID of overall VLAN can be 100, and promptly VLAN 100.
Step 503 is created overall VLAN interface VLAN If on overall VLAN.
In the present embodiment, can be on overall VLAN 100, to create three layer interface VLAN If.
Step 504, configuration of IP address on overall VLAN interface VLAN If.
In the present embodiment, can be on VLAN If configuration of IP address: 10.1.1.0/24.
The embodiment of the invention three:
As shown in Figure 6, in the present embodiment, when inserting the user by QinQ interface, with two layers of Tag information of physical port (for convenience of description, present embodiment is an example with 2 physical port Port-1, Port-2) be mapped to overall VLAN, configuration of IP address on the interface of overall VLAN can be merged into the big network segment with a plurality of little network segments like this, saves the IP address resource.The difference of present embodiment and embodiment two is that present embodiment need not to create sub-interface, but directly utilizes physical port, can save interface resource.
Please refer to shown in Figure 7ly, present embodiment three QinQ insert user's control method, comprising:
Step 701, two layers of Tag information of configuration at least one physical port.
Step 702, with two layers of Tag information mapping of described physical port to overall VLAN.
At this moment, physical port Port-1, Port-2 all are mapped to overall VLAN, and the ID of overall VLAN can be 100, and promptly VLAN 100.
Step 703 is created overall VLAN interface VLAN If on overall VLAN.
In the present embodiment, can be on overall VLAN 100, to create three layer interface VLAN If.
Step 704, configuration of IP address on overall VLAN interface VLAN If.
In the present embodiment, can be on VLAN If configuration of IP address: 10.1.1.0/24.
Introduction by above-mentioned three embodiment, the embodiment of the invention is when inserting QinQ user as can be known, be mapped to overall VLAN by sub-interface or the physical port that will create, configuration of IP address on the interface VLAN of overall VLAN If, just avoided the prior art scheme each interface or port all to be needed the defective of separate configurations IP address, thereby each sub-interface or physical port are all shared same IP address network segment, share same gateway, have saved the IP address resource.
To embodiment one to three, the control method that embodiment of the invention QinQ inserts the user can also comprise:
On described VLAN If, dispose ARP (Address Resolution Protocol, address resolution protocol) agency (ARP Proxy) function.
After a plurality of sub-interfaces or physical port were mapped to overall VLAN, the user who is inserted can belong to a big network segment, and exchanging visits between the user like this is to exchange visits in the same network segment.Can on VLAN If, dispose the ARP proxy function, for example close the ARP proxy function, ARP message between different sub-interfaces or the physical port just can not be transmitted mutually, for example so just can reach that the user of sub-interface 1 can't learn sub-interface 2 users' ARP, therefore realize the purpose of exchanging visits between the control different user.In like manner, if enable the ARP proxy function, make that then the user in the same network segment can exchange visits.
The embodiment of the invention four:
Please refer to shown in Figure 8ly, the embodiment of the invention four provides a kind of QinQ to insert user's control device, comprising:
Map unit 801, the QinQ interface that is used for inserting QinQ user is mapped to overall VLAN;
First creating unit 802 is used for creating overall VLAN interface VLAN If on overall VLAN;
First dispensing unit 803 is used for configuration of IP address on VLAN If.
Described QinQ interface comprises sub-interface or physical port, and present embodiment can also comprise:
Second creating unit 804 is used to create at least one sub-interface.
Further, present embodiment can also comprise:
Second dispensing unit 805 is used for configuration ARP proxy function on described VLAN If.
Be to be understood that, the control device that present embodiment QinQ inserts the user can be that router Router, three-tier switch or other can insert QinQ user's device or equipment, also can be to be positioned at router Router, three-tier switch or other can insert QinQ user's device or the functional module on the equipment.
The embodiment of the invention five:
Please refer to shown in Figure 9ly, the embodiment of the invention five provides a kind of communication system, comprises router 900, and described router 900 inserts QinQ user by QinQ interface, and described router 900 further comprises:
Map unit 901, the QinQ interface that is used for inserting QinQ user is mapped to overall VLAN;
First creating unit 902 is used for creating overall VLAN interface VLAN If on overall VLAN;
First dispensing unit 903 is used for configuration of IP address on VLAN If.
Described QinQ interface comprises sub-interface or physical port, and present embodiment also comprises:
Second creating unit 904 is used to create at least one sub-interface.
As further improvement of this embodiment, present embodiment also comprises:
Second dispensing unit 905 is used for configuration ARP proxy function on described VLAN If.
Introduction by the foregoing description four, five, the device of the embodiment of the invention or system are when inserting QinQ user as can be known, be mapped to overall VLAN by sub-interface or the physical port that will create, configuration of IP address on the interface VLAN of overall VLAN If, just avoided the prior art scheme each interface or port all to be needed the defective of separate configurations IP address, thereby each sub-interface or physical port are all shared same IP address network segment, share same gateway, have saved the IP address resource.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (13)

1, a kind of QinQ inserts user's control method, comprising:
The QinQ interface that inserts QinQ user is mapped to overall virtual LAN VLAN;
On described overall VLAN, create overall VLAN interface VLAN If;
Configuration of IP address on described VLAN If.
2, method according to claim 1 is characterized in that: the described QinQ interface that will insert QinQ user is mapped to overall virtual LAN VLAN, specifically comprises:
Create at least one QinQ sub-interface SubIf;
The sub-interface SubIf of described establishment is mapped to overall VLAN.
3, method according to claim 1 is characterized in that: described at least one QinQ sub-interface SubIf comprises at least one physical port, and the described QinQ interface that will insert QinQ user is mapped to overall virtual LAN VLAN, specifically comprises:
Two layers of Tag information of configuration on described at least one physical port;
Two layers of Tag information mapping of described physical port are arrived overall VLAN.
4, according to each described method of claim 1-3, it is characterized in that: also comprise:
Configuration address analysis protocol ARP proxy function on described VLAN IF.
5, a kind of QinQ inserts user's control device, it is characterized in that: comprising:
Map unit, the QinQ interface that is used for inserting QinQ user is mapped to overall VLAN;
First creating unit is used for creating overall VLAN interface VLAN If on overall VLAN;
First dispensing unit is used for configuration of IP address on VLAN If.
6, device according to claim 5 is characterized in that: described QinQ interface comprises sub-interface or physical port.
7, device according to claim 6 is characterized in that: also comprise:
Second creating unit is used to create at least one sub-interface.
8, according to each described device of claim 5-7, it is characterized in that: also comprise:
Second dispensing unit is used for configuration ARP proxy function on described VLAN If.
9, device according to claim 5 is characterized in that: described device is router or three-tier switch.
10, a kind of communication system is characterized in that: described system comprises router, and described router inserts QinQ user by QinQ interface, and described router further comprises:
Map unit, the QinQ interface that is used for inserting QinQ user is mapped to overall VLAN;
First creating unit is used for creating overall VLAN interface VLAN If on overall VLAN;
First dispensing unit is used for configuration of IP address on VLAN If.
11, system according to claim 10 is characterized in that: described QinQ interface comprises sub-interface or physical port.
12, system according to claim 11 is characterized in that: also comprise:
Second creating unit is used to create at least one sub-interface.
13, according to each described system of claim 10-12, it is characterized in that: also comprise:
Second dispensing unit is used for configuration ARP proxy function on described VLAN If.
CNA200810220301XA 2008-12-23 2008-12-23 Control method, control device and communication system of QinQ access user Pending CN101447906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200810220301XA CN101447906A (en) 2008-12-23 2008-12-23 Control method, control device and communication system of QinQ access user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200810220301XA CN101447906A (en) 2008-12-23 2008-12-23 Control method, control device and communication system of QinQ access user

Publications (1)

Publication Number Publication Date
CN101447906A true CN101447906A (en) 2009-06-03

Family

ID=40743324

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200810220301XA Pending CN101447906A (en) 2008-12-23 2008-12-23 Control method, control device and communication system of QinQ access user

Country Status (1)

Country Link
CN (1) CN101447906A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808042A (en) * 2010-03-16 2010-08-18 中兴通讯股份有限公司 Access method and device of multiprotocol label switching double-layer virtual private network
CN102055720A (en) * 2009-10-28 2011-05-11 中兴通讯股份有限公司 QinQ-based message transmission method and device
WO2012000190A1 (en) * 2010-06-30 2012-01-05 France Telecom Research & Development Beijing Company Limited Method and apparatus for allocating identifier to network entity
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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055720A (en) * 2009-10-28 2011-05-11 中兴通讯股份有限公司 QinQ-based message transmission method and device
CN102055720B (en) * 2009-10-28 2015-10-21 中兴通讯股份有限公司 Based on message transmitting method and the device of 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)
CN101808042A (en) * 2010-03-16 2010-08-18 中兴通讯股份有限公司 Access method and device of multiprotocol label switching double-layer virtual private network
WO2011113340A1 (en) * 2010-03-16 2011-09-22 中兴通讯股份有限公司 Access method and apparatus for multi-protocol label switching layer 2 virtual private network
CN101808042B (en) * 2010-03-16 2014-11-05 中兴通讯股份有限公司 Access method and device of multiprotocol label switching double-layer virtual private network
US8958431B2 (en) 2010-03-16 2015-02-17 Zte Corporation Access method and apparatus for multi-protocol label switching layer 2 virtual private network
WO2012000190A1 (en) * 2010-06-30 2012-01-05 France Telecom Research & Development Beijing Company Limited Method and apparatus for allocating identifier to network entity

Similar Documents

Publication Publication Date Title
US9965317B2 (en) Location-aware virtual service provisioning in a hybrid cloud environment
CN100574272C (en) The method and the network terminal that automatic virtual local area network identifiers is found
CN102025591B (en) Method and system for implementing virtual private network
CN102106122B (en) System and method for DSL subcriber identification over Ethernet network
US8902757B2 (en) Method and system for transparent LAN services in a packet network
CN105264835B (en) Gre tunneling implementation method, access device and aggregation gateway
US20070253432A1 (en) Network device providing access to both layer 2 and layer 3 services on a single physical interface
US20100027549A1 (en) Method and apparatus for providing virtual private network identifier
US7924880B2 (en) Method and system for establishing hierarchical network with provider backbone bridges
CN103636167A (en) Station opening configuration method in base station, base station, and server
CN102148879A (en) Port mapping method and device and communication system
CN104168184A (en) Message forwarding method and device
CN103795623A (en) Method and device for realizing traffic interflow between virtual devices
CN102449978A (en) Dynamically configuring attributes of a parent circuit on a network element
CN109121026B (en) Method and system for realizing VOLT (Voice over Internet protocol) based on logic port
WO2011147342A1 (en) Method, equipment and system for exchanging routing information
CN101197856A (en) IP address space planning-free and private domain name access method in VPN network
CN101227401B (en) Data transmission system and method
CN107968849B (en) Method and device for network private line connection
CN111711536A (en) Method for constructing firewall test environment under cloud architecture
CN101447906A (en) Control method, control device and communication system of QinQ access user
CN111404797B (en) Control method, SDN controller, SDN access point, SDN gateway and CE
CN101753366B (en) Method, equipment and system for realizing stream statistics of virtual private network
CN101924698A (en) Method, system and equipment for balancing two-layer domain load based on IP unicast route
WO2009076906A1 (en) Method, device and system for a terminal to realize the access to the retail service provider

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090603