CN103746943B - Method for establishing VLAN subinterface and exchange chip using the same - Google Patents
Method for establishing VLAN subinterface and exchange chip using the same Download PDFInfo
- Publication number
- CN103746943B CN103746943B CN201310717403.3A CN201310717403A CN103746943B CN 103746943 B CN103746943 B CN 103746943B CN 201310717403 A CN201310717403 A CN 201310717403A CN 103746943 B CN103746943 B CN 103746943B
- Authority
- CN
- China
- Prior art keywords
- interface
- sub
- vlan
- extension
- expansion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention, which relates to the technical field of communication, brings forward a method for establishing a virtual local area network (VLAN) subinterface and an exchange chip using the same. The method comprises the following steps: dividing a VLAN subinterface for each expansion interface at an uplink port; and using the rest of undivided VLAN subinterfaces to establish expansion subinterfaces at the expansion interfaces. According to the invention, on the premise that the original interface relation is not changed, the exchange chip can provide support for more VLAN interfaces.
Description
Technical field
The present invention relates to communication technology, and in particular to one kind creates VLAN(Virtual Local Area Network, it is empty
Intend LAN)The method of sub-interface and the exchange chip using the method.
Background technology
The interface of forwarded chip CPU is multiplexed currently with the VLAN isolation characteristics of exchange chip, into
For a kind of conventional Interface Expanding means of network equipment vendor.This mode cost performance is higher, can effectively increase interface number,
The competitiveness of product is improved, is a kind of trend of future device development.
The network device hardware framework of one basic tape swap chip is as follows:The interface of forwarding chip CPU with exchange core
Piece is connected, and marks off more interfaces to use by exchange chip.Exchange chip is in order that the message sent up of each interface is mutual
Do not disturb, different VLAN tags are sealed up to the message of distinct interface(VLAN tag).For exchange chip interface is sent up
Message, according to odd even distribution or the mode of HASH, uniform feeding in cpu i/f is processed, as shown in Figure 1.
Because the interface drawn by exchange chip must carry VLAN tag when E-Packeting, for this kind of characteristic,
Existing mode is the interface that CPU is connected with exchange chip(Upper united mouth xaui)Main interface is registered as, and exchange chip is drawn
Expansion interface(G0/0/0-G0/0/7)Register in kernel as the vlan sub-interface of upper united mouth.Meanwhile, the expansion of exchange chip
Exhibition interface is externally shown as the form of upper united mouth, is conveniently used and is searched.The advantage of this logon mode is to keep away
Exempt from the VLAN tag that upper-layer service perceives exchange chip addition, the message for receiving can be sent directly at VLAN message flow processs
Reason, handling process is simple, while will not impact to original business and performance.
But this mode there is also a very big defect, i.e. exchange chip expansion interface once existing to extend sub-interface
After registering in kernel, VLAN cannot be again divided under this interface and creates new vlan sub-interface.For the thing of a reality
For reason interface, lack in application of function very big.In current programme, this problem is left generally as defect.
The content of the invention
(One)The technical problem of solution
For the deficiencies in the prior art, the present invention provides a kind of method for creating vlan sub-interface and the friendship using the method
Chip is changed, on the premise of original interface relationship is not changed, makes exchange chip provide support to more vlan sub-interfaces.
(Two)Technical scheme
To realize object above, the present invention is achieved by the following technical programs:
A kind of method for creating vlan sub-interface, it is characterised in that the method includes:
A vlan sub-interface is divided under upper united mouth to each described expansion interface;
Extension sub-interface is created under the expansion interface using remaining unallocated vlan sub-interface.
Preferably, it is described that extension sub-interface bag is created under the expansion interface using remaining unallocated vlan sub-interface
Include:
Extension sub-interface is created under the expansion interface and is registered in kernel, each described extension sub-interface takes one
Individual unallocated vlan sub-interface.
Preferably, the extension sub-interface is the extension sub-interface of the expansion interface on interface relationship, actually used
The bandwidth of the Shi Zhanyong expansion interfaces.
Preferably, the extension sub-interface is the extension sub-interface of the upper united mouth in logical relation, in message forwarding
A vlan sub-interface is taken in flow process.
A kind of exchange chip using the method for creating vlan sub-interface, it is characterised in that the exchange chip includes:
One upper united mouth, is the main interface of some vlan sub-interfaces;
Several expansion interfaces, each described expansion interface takes a vlan sub-interface, and connects in each described extension
Establishment under mouthful has some extension sub-interfaces.
Preferably, each described extension sub-interface takes a vlan sub-interface not taken by the expansion interface, and
This relation is registered in kernel.
Preferably, the extension sub-interface is the extension sub-interface of the expansion interface on interface relationship, actually used
The bandwidth of the Shi Zhanyong expansion interfaces.
Preferably, the extension sub-interface is the extension sub-interface of the upper united mouth in logical relation, in message forwarding
A vlan sub-interface is taken in flow process.
(Three)Beneficial effect
The present invention at least has following beneficial effect:
Existing exchange chip expansion interface can be carried out using technology by the present invention it is perfect, can be under expansion interface again
Secondary division VLAN, creates new extension sub-interface, functionally more complete.
Change amount all very little of the program to original all parts, it is possible to achieve exchange chip expansion interface connects to extending son
The support of mouth, and whole exchange chip architectural schemes need not be changed.
Sub-interface registration has used the VLAN tag that residue is not divided or takes under upper united mouth, so as to when in use may be used
To be directly entered the forwarding process of main interface-vlan sub-interface.
In sum, the present invention makes exchange chip connect more multi-VLAN on the premise of original interface relationship is not changed
Mouth provides support.
Certainly, the arbitrary product or method for implementing the present invention it is not absolutely required to while reaching all the above excellent
Point.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are these
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the network device hardware configuration diagram of a basic tape swap chip;
Fig. 2 is a kind of method flow diagram for creating vlan sub-interface in one embodiment of the invention.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention, rather than the embodiment of whole.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention proposes a kind of method of establishment vlan sub-interface, and referring to Fig. 2, the method includes:
Step 201:A vlan sub-interface is divided under upper united mouth to each described expansion interface;
Step 202:Extension sub-interface is created under the expansion interface using remaining unallocated vlan sub-interface.
Wherein, step 202 includes:Extension sub-interface is created under the expansion interface and is registered in kernel, each institute
State extension sub-interface and take a unallocated vlan sub-interface.
And, the extension sub-interface is the extension sub-interface of the expansion interface on interface relationship, when actually used
Take the bandwidth of the expansion interface;The extension sub-interface is the extension sub-interface of the upper united mouth in logical relation, in report
A vlan sub-interface is taken in literary forwarding process.
From background scheme, in exchange chip Interface Expanding scheme, exchange chip is connected with CPU by upper united mouth, on
Connection mouth is registered as main interface in kernel;And exchange chip extension mouth is noted as the extension sub-interface of upper united mouth in kernel
Volume, both are the relation that father extends sub-interface.Be registered as extending sub-interface just because of exchange chip mouth, divided solid
Fixed vlan sub-interface, so cannot divide to it again.
In current device, a main interface(CPU upper united mouths)Under can have up to 4096 extension sub-interfaces, that is, can
To divide 4096 VLAN, this number much more than distributes to the VLAN numbers of exchange chip expansion interface(It is general to exchange core
Piece expansion interface is less than 30, i.e., at most take 30 VLAN).It follows that upper united mouth is used as main interface, Ke Yichuan
4096 VLAN for building, remove the VLAN numbers that exchange chip extension mouth takes, and a VLAN is not used also more than 4000.One
As in the case of, enough as extension sub-interface VLAN use.Therefore, the embodiment of the present invention proposes a kind of by exchange chip mouth
The extension sub-interface of lower establishment, as the scheme that sub-interface is registered in kernel that extends of CPU upper united mouths, to solve exchange chip
Interface can not again create the problem of vlan sub-interface.
The embodiment of the present invention reserves fixed part and supplies exchange chip first in the vlan sub-interface of all upper united mouths
Expansion interface is used(According to the number of extension mouth, 30 are usually no more than), so as to these vlan sub-interfaces subsequently will forbidden
It is allocated extending when sub-interface is created.
It is corresponding according to the exchange chip expansion interface when creating its extension sub-interface for exchange chip expansion interface
The extension sub-interface of CPU upper united mouths is created, and is registered in kernel.From the point of view of above the interface relationship, the expansion of establishment
Exhibition sub-interface is the vlan sub-interface of CPU upper united mouths as with exchange chip mouth, all.
The extension sub-interface being created that is forwarded due to being registered in kernel by the extension sub-interface of upper united mouth in message
When, into the forwarding of normal vlan sub-interface flow process.
Wherein, exchange chip mouth is still registered in kernel as upper united mouth extension sub-interface, meets general exchange chip
Application scenarios;4096 VLAN fixed partitions of upper united mouth are gone out a part to use to exchange chip interface, other conducts
The VLAN marks of extension sub-interface application.The new exchange chip extension sub-interface for creating, connects really as extension of upper united mouth
Mouth is registered in kernel, and message is directly entered the forwarding process of extension sub-interface.
Existing exchange chip expansion interface can be carried out using technology by the present invention it is perfect, can be under expansion interface again
Secondary division VLAN, creates new extension sub-interface, functionally more complete;
Change amount all very littles to original all parts, it is possible to achieve exchange chip expansion interface is propped up extending sub-interface
Hold, and whole exchange chip architectural schemes need not be changed;
Extension sub-interface registration has used the VLAN tag that residue is not divided or takes under upper united mouth, in flow process directly
Into the forwarding process of main interface-vlan sub-interface, the technology is very ripe, can ensure that in stability.
Embodiment 2
The embodiment of the present invention proposes a kind of exchange chip using the method for creating vlan sub-interface, and outward appearance connects with physics
Connect relation identical with the exchange chip in Fig. 1, the chip includes:
One upper united mouth, is the main interface of some vlan sub-interfaces;
Several expansion interfaces, each described expansion interface takes a vlan sub-interface, and connects in each described extension
Establishment under mouthful has some extension sub-interfaces.
Wherein, each described extension sub-interface takes a vlan sub-interface not taken by the expansion interface, and this
One relation is registered in kernel.The extension sub-interface is the extension sub-interface of the expansion interface on interface relationship, real
The bandwidth of the expansion interface is taken when border uses.The extension sub-interface is that extension of the upper united mouth connects in logical relation
Mouthful, a vlan sub-interface is taken in message forwarding process.
From background scheme, in exchange chip Interface Expanding scheme, exchange chip is connected with CPU by upper united mouth, on
Connection mouth is registered as main interface in kernel;And exchange chip extension mouth is noted as the extension sub-interface of upper united mouth in kernel
Volume, both are the relation that father extends sub-interface.Be registered as extending sub-interface just because of exchange chip mouth, divided solid
Fixed vlan sub-interface, so cannot divide to it again.
In current device, a main interface(CPU upper united mouths)Under can have up to 4096 extension sub-interfaces, that is, can
To divide 4096 VLAN, this number much more than distributes to the VLAN numbers of exchange chip expansion interface(It is general to exchange core
Piece expansion interface is less than 30, i.e., at most take 30 VLAN).It follows that upper united mouth is used as main interface, Ke Yichuan
4096 VLAN for building, remove the VLAN numbers that exchange chip extension mouth takes, and a VLAN is not used also more than 4000.One
As in the case of, enough as extension sub-interface VLAN use.Therefore, the embodiment of the present invention proposes a kind of by exchange chip mouth
The extension sub-interface of lower establishment, as the scheme that sub-interface is registered in kernel that extends of CPU upper united mouths, to solve exchange chip
Interface can not again create the problem of vlan sub-interface.
The embodiment of the present invention reserves fixed part and supplies exchange chip first in the vlan sub-interface of all upper united mouths
Expansion interface is used(According to the number of extension mouth, 30 are usually no more than), so as to these vlan sub-interfaces subsequently will forbidden
It is allocated extending when sub-interface is created.
It is corresponding according to the exchange chip expansion interface when creating its extension sub-interface for exchange chip expansion interface
The extension sub-interface of CPU upper united mouths is created, and is registered in kernel.From the point of view of above the interface relationship, the expansion of establishment
Exhibition sub-interface is the vlan sub-interface of CPU upper united mouths as with exchange chip mouth, all.
The extension sub-interface being created that is forwarded due to being registered in kernel by the extension sub-interface of upper united mouth in message
When, into the forwarding of normal vlan sub-interface flow process.
Wherein, exchange chip mouth is still registered in kernel as upper united mouth extension sub-interface, meets general exchange chip
Application scenarios;4096 VLAN fixed partitions of upper united mouth are gone out a part to use to exchange chip interface, other conducts
The VLAN marks of extension sub-interface application.The new exchange chip extension sub-interface for creating, connects really as extension of upper united mouth
Mouth is registered in kernel, and message is directly entered the forwarding process of extension sub-interface.
Existing exchange chip expansion interface can be carried out using technology by the present invention it is perfect, can be under expansion interface again
Secondary division VLAN, creates new extension sub-interface, functionally more complete;
Change amount all very littles to original all parts, it is possible to achieve exchange chip expansion interface is propped up extending sub-interface
Hold, and whole exchange chip architectural schemes need not be changed;
Extension sub-interface registration has used the VLAN tag that residue is not divided or takes under upper united mouth, in flow process directly
Into the forwarding process of main interface-vlan sub-interface, the technology is very ripe, can ensure that in stability.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that a series of process, method, article or equipment including key elements not only will including those
Element, but also including other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
Above example only to illustrate technical scheme, rather than a limitation;Although with reference to the foregoing embodiments
The present invention has been described in detail, it will be understood by those within the art that:It still can be to aforementioned each enforcement
Technical scheme described in example is modified, or carries out equivalent to which part technical characteristic;And these modification or
Replace, do not make the spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.
Claims (6)
1. it is a kind of create vlan sub-interface method, it is characterised in that the method includes:
Divide a vlan sub-interface under upper united mouth each expansion interface;
Extension sub-interface is created under the expansion interface using remaining unallocated vlan sub-interface;
The vlan sub-interface unallocated using residue creates extension sub-interface under the expansion interface to be included:
Extension sub-interface is created under the expansion interface and is registered in kernel, each described extension sub-interface takes one not
The vlan sub-interface of division.
2. method according to claim 1, it is characterised in that the extension sub-interface is the extension on interface relationship
The extension sub-interface of interface, takes the bandwidth of the expansion interface when actually used.
3. method according to claim 1, it is characterised in that the extension sub-interface is the first line of a couplet in logical relation
The extension sub-interface of mouth, takes a vlan sub-interface in message forwarding process.
4. a kind of use creates the exchange chip of the method for vlan sub-interface, it is characterised in that the exchange chip includes:
One upper united mouth, is the main interface of some vlan sub-interfaces;
Several expansion interfaces, each described expansion interface takes a vlan sub-interface, and under each described expansion interface
Establishment has some extension sub-interfaces;
Each described extension sub-interface takes a vlan sub-interface not taken by the expansion interface, and this relation is noted
Volume is in kernel.
5. exchange chip according to claim 4, it is characterised in that the extension sub-interface is described on interface relationship
The extension sub-interface of expansion interface, takes the bandwidth of the expansion interface when actually used.
6. exchange chip according to claim 4, it is characterised in that the extension sub-interface is described in logical relation
The extension sub-interface of upper united mouth, takes a vlan sub-interface in message forwarding process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310717403.3A CN103746943B (en) | 2013-12-23 | 2013-12-23 | Method for establishing VLAN subinterface and exchange chip using the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310717403.3A CN103746943B (en) | 2013-12-23 | 2013-12-23 | Method for establishing VLAN subinterface and exchange chip using the same |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103746943A CN103746943A (en) | 2014-04-23 |
CN103746943B true CN103746943B (en) | 2017-04-19 |
Family
ID=50503932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310717403.3A Active CN103746943B (en) | 2013-12-23 | 2013-12-23 | Method for establishing VLAN subinterface and exchange chip using the same |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103746943B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104158768B (en) * | 2014-07-01 | 2018-05-04 | 汉柏科技有限公司 | A kind of method and system of extended network interface, the method for receiving and dispatching message |
CN104243208A (en) * | 2014-09-09 | 2014-12-24 | 福建星网锐捷网络有限公司 | Port expansion and message processing method, device and network device |
CN107196798A (en) * | 2017-05-26 | 2017-09-22 | 烽火通信科技股份有限公司 | Network apparatus management system and its method in telecommunication management network |
CN112152899B (en) * | 2019-06-28 | 2023-04-07 | 中兴通讯股份有限公司 | Data processing method and device based on network slice |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003258831A (en) * | 2002-02-28 | 2003-09-12 | Nippon Telegr & Teleph Corp <Ntt> | Network in multistory building |
CN1801771A (en) * | 2005-01-04 | 2006-07-12 | 华为技术有限公司 | Method for sending virtual LAN data |
CN101170415A (en) * | 2006-10-26 | 2008-04-30 | 杭州华三通信技术有限公司 | Crossed cascading system and transmission method for Ethernet physical layer and its application chip |
CN102624727A (en) * | 2012-03-07 | 2012-08-01 | 福建星网锐捷网络有限公司 | Interface configuration method, device, master control central processing unit and network equipment |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1960262B (en) * | 2005-11-02 | 2010-07-28 | 盛科网络(苏州)有限公司 | Switchboard system having port extending ability and method of realizing extending of port |
US7492766B2 (en) * | 2006-02-22 | 2009-02-17 | Juniper Networks, Inc. | Dynamic building of VLAN interfaces based on subscriber information strings |
CN100479413C (en) * | 2007-03-15 | 2009-04-15 | 中兴通讯股份有限公司 | Multi-to-one VLAN mapping method |
CN101924700B (en) * | 2010-08-09 | 2012-11-21 | 福建星网锐捷网络有限公司 | Method, device and network equipment for processing messages |
CN103209141A (en) * | 2012-01-17 | 2013-07-17 | 中兴通讯股份有限公司 | Method for processing data messages with switching chip and switching chip |
CN102624738B (en) * | 2012-03-28 | 2014-08-27 | 瑞斯康达科技发展股份有限公司 | Serial port server, protocol conversion chip and data transmission method |
US9059868B2 (en) * | 2012-06-28 | 2015-06-16 | Dell Products, Lp | System and method for associating VLANs with virtual switch ports |
-
2013
- 2013-12-23 CN CN201310717403.3A patent/CN103746943B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003258831A (en) * | 2002-02-28 | 2003-09-12 | Nippon Telegr & Teleph Corp <Ntt> | Network in multistory building |
CN1801771A (en) * | 2005-01-04 | 2006-07-12 | 华为技术有限公司 | Method for sending virtual LAN data |
CN101170415A (en) * | 2006-10-26 | 2008-04-30 | 杭州华三通信技术有限公司 | Crossed cascading system and transmission method for Ethernet physical layer and its application chip |
CN102624727A (en) * | 2012-03-07 | 2012-08-01 | 福建星网锐捷网络有限公司 | Interface configuration method, device, master control central processing unit and network equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103746943A (en) | 2014-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103825954B (en) | A kind of OpenFlow control methods and corresponding plug-in unit, platform and network | |
CN106664261B (en) | A kind of methods, devices and systems configuring flow entry | |
CN103477588B (en) | The classification of Network and management method and system between blade in blade server | |
CN100471162C (en) | Method for releasing and processing virtual circuit information and supplier edge device | |
CN103746943B (en) | Method for establishing VLAN subinterface and exchange chip using the same | |
CN102185706B (en) | Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph | |
CN103581274B (en) | Message forwarding method and device in stacking system | |
CN104065759A (en) | Method for improving utilization efficiency of NAT address pool resource and device thereof | |
CN105264869B (en) | A kind of system and method for IP address distribution | |
CN106789157A (en) | The hardware resource management method of pile system and stacked switch | |
CN104734953A (en) | Method and device for achieving message layer-2 isolation based on VLAN and interchanger | |
CN105939267A (en) | Out-of-band management method and device | |
CN106161331A (en) | A kind of fire wall double hot standby method, Apparatus and system | |
CN101834781A (en) | Media access control address keep-alive device and method for convergence port | |
CN103346950B (en) | Between a kind of rack wireless controller customer service plate, method and device are shared in load equally | |
CN105471651B (en) | VLAN synchronous method, local switch and distant-end switch in a kind of double layer network | |
CN104038566B (en) | A kind of method of virtual swap device address learning, apparatus and system | |
CN105915604A (en) | Cloud server network system architecture | |
CN106210166B (en) | A kind of system of the capacity of extended wireless controller equiment mac address forwarding table | |
CN103428067B (en) | A kind of message forwarding method and equipment based on two-layer virtual private network | |
CN105530157A (en) | Method for sharing credit by multiple virtual links in AFDX (Avionics Full Duplex Switched Ethernet) network switch | |
CN104811479A (en) | Virtual network node establishing method based on forwarding and control separation protocol | |
CN105376231A (en) | Method and device for realizing service isolation | |
CN105282036A (en) | Routing node and route exchange method and system | |
CN102355410B (en) | Pseudo-wire labeling method for MPLS (Multiple Protocol Label Switching) network virtual exchange embodiment |
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 | ||
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20180528 Granted publication date: 20170419 |