CN100544303C - The distribution method of VLAN ID - Google Patents

The distribution method of VLAN ID Download PDF

Info

Publication number
CN100544303C
CN100544303C CNB2007101807855A CN200710180785A CN100544303C CN 100544303 C CN100544303 C CN 100544303C CN B2007101807855 A CNB2007101807855 A CN B2007101807855A CN 200710180785 A CN200710180785 A CN 200710180785A CN 100544303 C CN100544303 C CN 100544303C
Authority
CN
China
Prior art keywords
network element
vlan
network
port
priority
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
CNB2007101807855A
Other languages
Chinese (zh)
Other versions
CN101146018A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007101807855A priority Critical patent/CN100544303C/en
Publication of CN101146018A publication Critical patent/CN101146018A/en
Application granted granted Critical
Publication of CN100544303C publication Critical patent/CN100544303C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The distribution method that the invention discloses a kind of VLAN ID comprises: step S102, distribute different priority to each network element in a plurality of network elements in the network; Step S104, each network element in a plurality of network elements is sent to other coupled in network network element by the whole detection packet data package that are connected the priority that will comprise each network element between other network element in each network element and a plurality of network elements, and the identical connection of reception network element of the detection packet data package that each network element in whole connections is sent is bound; Step S106, to the port preassignment VLAN ID of each network element in a plurality of network elements at the two ends of whole connections, wherein, to the identical VLAN ID of port assignment of the network element of an end of the connection of binding; And step S108, each network element according to itself priority and a plurality of network element in the priority of coupled other network element, the VLAN ID of its port is carried out synchronously.

Description

The distribution method of VLAN ID
Technical field
The present invention relates to the communications field, and especially, relate to the distribution method of a kind of Virtual Local Area Network ID.
Background technology
(virtuallocal area network is a kind of by the apparatus logic ground (physically non-) in the local area network (LAN) is divided into a plurality of broadcast domains VLAN) to VLAN.
VLAN is for the broadcast issue that solves Ethernet and improves a kind of agreement that fail safe proposes, it has increased VLAN ID on the basis of ethernet frame, and utilize VLAN ID that the user is divided into littler working group, two layers of exchanging visit of user of restriction VALN, each VLAN can be considered as a VLAN.
Between different VLAN, limit broadcast data, the restriction inundation, each port of Ethernet switch can only belong to a VLAN.Communication between the different VLAN can only communicate or transmit by three layers (that is routers).
Usually, the division of VLAN has following mode: divide VLAN, divide VLAN, layer division VLAN Network Based, divide VLAN based on the IP multicast based on MAC Address based on port.
The realization of VLAN is according to IEEE802.1Q protocol encapsulation agreement, on the ethernet frame of standard, add 4 bytes, 2 type flags agreement identifiers (TPID) have comprised the fixed value of 0X8100, and this special TPID value has indicated this frame and had the 802.1Q label information.The User Priority of 2 byte control information: 3bit, the canonical format indicator of 1Bit (CFI), the VLAN identifier (VID) of 12Bit.
In the interconnection of Ethernet switch/exchange chip, inevitably to relate to setting and the use of VLAN.In the ordinary course of things, VLAN in the small scale network uses static configuration, and large-scale network is to avoid the workload of static configuration can use VLAN based on strategy.With regard to ordinary circumstance, be the most also to be VLAN division methods the most reliably based on the VLAN of port, its shortcoming is that the configuration effort amount is bigger; And await practice examining based on the VLAN of strategy, and optional strategy also can't adapt to the situation of a lot of flexible networking configurations.
At present, in the telecommunication apparatus networking, the communication mode through regular meeting uses ETHERNET/IP use Ethernet two-layer switching equipment and routing device to constitute and communicate to connect, yet such words just need be Ethernet two-layer switching equipment configuration VLAN ID.Because the flexibility of networking, interconnect port often is variable between the Ethernet two-layer switching equipment, and static VLAN ID collocation method can't play effect this moment.
So far, simple and practical, as can to adapt to port dynamic change VLAN ID splitting scheme is not proposed as yet.
Summary of the invention
Consider the problems referred to above and make the present invention, for this reason, main purpose of the present invention is to provide a kind of allocative decision of VLAN ID, and it can distribute VLAN ID automatically, can also reduce the workload of human configuration VLAN under the complicated networking situation, avoid in configuration, occurring mistake.
According to embodiments of the invention, provide a kind of distribution method of VLAN ID.
This method comprises: step S102, distribute different priority to each network element in a plurality of network elements in the network; Step S104, each network element in a plurality of network elements is sent to other coupled in network network element by the whole detection packet data package that are connected the priority that will comprise each network element between other network element in each network element and a plurality of network elements, and the identical connection of reception network element of the detection packet data package that each network element in whole connections is sent is bound; Step S106, to the port preassignment VLAN ID of each network element in a plurality of network elements at the two ends of whole connections, wherein, to the identical VLAN ID of port assignment of the network element of an end of the connection of binding; And step S108, each network element according to itself priority and a plurality of network element in the priority of coupled other network element, the VLAN ID of its port is carried out synchronously.
Wherein, in step S104, the address field of surveying packet data package is in the scope of 01-80-C2-00-00-00 to 01-80-C2-00-00-FF, and do not take the address of flow control bag in the address of Spanning-Tree Protocol and the network, each network element in a plurality of network elements will be surveyed packet data package and be sent to other coupled in a plurality of network elements network element via spanning-tree blocking protocol blocks port.
In addition, in step S108, the network element of low priority is synchronized to VLAN ID by the port of the coupled high priority network element of port with the VLAN ID of its port.
Wherein, it is different that each network element is connected to the VLAN ID of port of different network elements.
And this method may further include: network element regularly detects grouping and synchronized packets, and when the topology of network changes, according to the change of network change between the network element connection and synchronous after VLAN ID.
In addition, in the method, above-mentioned network is an Ethernet, and said network element is two a layers/three-layer switching equipment of Ethernet.
By technique scheme of the present invention, can and connect under the situation that may change in complicated networking, distribute VLAN ID automatically, can also reduce the workload of human configuration VLAN under the complicated networking situation, avoid in configuration, occurring mistake.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the distribution method flow chart according to the VLAN ID of the embodiment of the invention;
Fig. 2 is the block diagram of employing according to the networking example of the distribution method of the VLAN ID of the embodiment of the invention;
Fig. 3 adopts according to the networking block diagram after carrying out port binding in the networking shown in Figure 2 in the procedure of the embodiment of the invention;
Fig. 4 be adopt according in the procedure of the embodiment of the invention to the networking block diagram behind the preassignment VLAN ID in the networking shown in Figure 2;
Fig. 5 be adopt according in the procedure of the embodiment of the invention to carrying out the networking block diagram of VLAN ID after synchronously in the networking shown in Figure 2; And
Fig. 6 is the schematic diagram that can adopt according to the monitor channel integrated circuit board of the telecommunication apparatus of the method for the embodiment of the invention.
Embodiment
The distribution method of a kind of VLAN ID is provided in the present embodiment.
As shown in Figure 1, comprise according to the distribution method of the VLAN ID of the embodiment of the invention: step S102, distribute different priority to each network element in a plurality of network elements in the network; Step S104, each network element in a plurality of network elements is sent to other coupled in network network element by the whole detection packet data package that are connected the priority that will comprise each network element between other network element in each network element and a plurality of network elements, and the identical connection of reception network element of the detection packet data package that each network element in whole connections is sent is bound; Step S106, to the port preassignment VLAN ID of each network element in a plurality of network elements at the two ends of whole connections, wherein, to the identical VLAN ID of port assignment of the network element of an end of the connection of binding; And step S108, each network element according to itself priority and a plurality of network element in the priority of coupled other network element, the VLAN ID of its port is carried out synchronously.
Wherein, in step S104, the address field of surveying packet data package is in the scope of 01-80-C2-00-00-00 to 01-80-C2-00-00-FF, and do not take the address of flow control bag in the address of Spanning-Tree Protocol and the network, each network element in a plurality of network elements will be surveyed packet data package and be sent to other coupled in a plurality of network elements network element via spanning-tree blocking protocol blocks port.
In addition, in step S108, the network element of low priority is synchronized to VLAN ID by the port of the coupled high priority network element of port with the VLAN ID of its port.
Wherein, it is different that each network element is connected to the VLAN ID of port of different network elements.
And this method may further include: network element regularly detects grouping and synchronized packets, and when the topology of network changes, according to the change of network change between the network element connection and synchronous after VLAN ID.
In addition, in the method, above-mentioned network is an Ethernet, and said network element is two a layers/three-layer switching equipment of Ethernet.
Present invention is described below in conjunction with concrete networking situation.
Suppose network's mode as shown in Figure 2, the objective of the invention is to the corresponding VLAN ID of binding between two layers/three-layer switching equipment in Fig. 2.Communicate by Ethernet between network element among Fig. 1, network element possesses two layers of (ETHERNET)/three of Ethernet layer (IP) exchange capacity.
In system shown in Figure 2, can divide VLAN ID by following steps:
Step 1, each network element is allocated priority in advance.In Fig. 2, NE1~NE6 distributes priority 1 (the highest)~6 (minimum) respectively;
Step 2, switching equipment sends by port and surveys grouping (target MAC (Media Access Control) address use BDPU packet address section, 01-80-C2-00-00-00~01-80-C2-00-00-FF, make it can pass STP protocol blocks port, but the address that must not use address that the STP agreement takies and ethernet traffic controlling packet to take), that detects network element respectively connects purpose, and the connection that initial/purpose is identical is bound, preparation is carried out VLAN ID and is distributed, as shown in Figure 3.
Step 3, switching equipment to the binding port set preassignment VLAN ID (promptly, this VLAN ID is configured to all of the port in the port set), Fig. 4 shows possible allocation result, should be noted that owing to what carry out it is preassignment herein here, so can at random or choose VLAN ID according to certain rule and give port, the VLAN ID of same Ethernet connection both sides port assignment may be also inconsistent, just can't carry out proper communication under inconsistent situation, has only the protocol package of describing in 3 to pass through.
Interconnect port VLAN ID is not both and can't communicates by letter between step 4, two switching equipment, so needs between switching equipment to carry out synchronously according to priority, and the equipment high with priority is as the criterion.Realize by exchange grouping between switching equipment synchronously, as shown in Figure 5.
Step 5, switching equipment regularly exchange and detect grouping and synchronized packets, and dynamic adjustment network connects and binds with VLAN ID and distributes when network topology changes.
By the processing of step 1, just can distribute VLANID automatically for all network elements to step 5.
The concrete application example of various details.
In Fig. 6, show the monitor channel integrated circuit board of telecommunication apparatus.The optical channel plate adds transmitted information by light repeat plate in the expense of professional key light and transmits.Light repeat plate shown in the figure is a two-path bidirectional, therefore has both direction can dispose (the connection configuration of the solid line shown in the figure, dotted line).
Possess two or three layers of crosspoint on the optical channel plate, its port connects because the difference configuration that may occur among Fig. 6 becomes can't fix with other switching equipment ports to be connected, in this case as equipment is carried out networking according to topology shown in Figure 2, can't fixed configurations VLAN ID.
Use the method for the invention, can dynamic auto configuration VLAN ID, solve this equipment network problem.
The supposition of its networking mode as shown in Figure 1, by the processing of above-mentioned steps 1 to step 5, just can be in network dynamic assignment VLAN ID.
By technique scheme of the present invention, can and connect under the situation that may change in complicated networking, distribute VLAN ID automatically, can also reduce the workload of human configuration VLAN under the complicated networking situation, avoid in configuration, occurring mistake.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. the distribution method of a VLAN ID is characterized in that, comprising:
Step S102 distributes different priority to each network element in a plurality of network elements in the network;
Step S104, each network element in described a plurality of network element is sent to other coupled in described network network element by the whole detection packet data package that are connected the priority that will comprise described each network element between other network element in described each network element and the described a plurality of network elements, and initial all identical with the purpose connection in directly connecting between network element in described whole connections is bound;
Step S106 to the port preassignment VLAN ID of described each network element in described a plurality of network elements at the two ends of described whole connections, wherein, distributes identical VLAN ID respectively to the port of the network element of each end of the described connection of binding; And
Step S108, described each network element according to itself priority and described a plurality of network element in the priority of coupled other network element, the described VLAN ID of its port is carried out synchronously.
2. the distribution method of VLAN ID according to claim 1, it is characterized in that, in described step S104, the address field of described detection packet data package is in the scope of 01-80-C2-00-00-00 to 01-80-C2-00-00-FF, and do not take the address of flow control bag in the address of Spanning-Tree Protocol and the described network, each network element in described a plurality of network elements is sent to other coupled in described a plurality of network element network element with described detection packet data package via spanning-tree blocking protocol blocks port.
3. the distribution method of VLAN ID according to claim 1, it is characterized in that, in described step S108, the network element of low priority is synchronized to VLAN ID by the port of the coupled high priority network element of described port with the VLAN ID of its port.
4. according to the distribution method of each described VLAN ID in the claim 1 to 3, it is characterized in that it is different that described each network element is connected to the VLAN ID of port of different network elements.
5. according to the distribution method of each described VLAN ID in the claim 1 to 3, it is characterized in that, further comprise: described a plurality of network elements regularly detect grouping and synchronized packets, and when the topology of described network changes, according to the change of described network change between described a plurality of network element connection and synchronously after described VLAN ID.
6. according to the distribution method of each described VLAN ID in the claim 1 to 3, it is characterized in that described network is an Ethernet.
7. the distribution method of VLAN ID according to claim 6 is characterized in that, described a plurality of network elements are two layers/three-layer switching equipment of Ethernet.
CNB2007101807855A 2007-10-10 2007-10-10 The distribution method of VLAN ID Expired - Fee Related CN100544303C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101807855A CN100544303C (en) 2007-10-10 2007-10-10 The distribution method of VLAN ID

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101807855A CN100544303C (en) 2007-10-10 2007-10-10 The distribution method of VLAN ID

Publications (2)

Publication Number Publication Date
CN101146018A CN101146018A (en) 2008-03-19
CN100544303C true CN100544303C (en) 2009-09-23

Family

ID=39208319

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101807855A Expired - Fee Related CN100544303C (en) 2007-10-10 2007-10-10 The distribution method of VLAN ID

Country Status (1)

Country Link
CN (1) CN100544303C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891778B (en) * 2012-09-27 2016-03-30 迈普通信技术股份有限公司 Control system and the method for loop is avoided in automatic test
WO2017091219A1 (en) 2015-11-25 2017-06-01 Hewlett Packard Enterprise Development Lp Processing virtual local area network
CN106604355B (en) * 2016-12-09 2020-07-17 深圳市吉祥腾达科技有限公司 Method for detecting vlan id supported by internet access network and router
CN111865401B (en) * 2020-08-06 2022-04-26 四川安迪科技实业有限公司 Satellite network packet communication method and system

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
VLAN技术及在交换机上的实现. 洪军,韩燮.电脑开发与应用,第20卷第2期. 2007
VLAN技术及在交换机上的实现. 洪军,韩燮.电脑开发与应用,第20卷第2期. 2007 *
VLAN的几种配置方法. 梁玮栗.计算机与网络,第2005卷第11期. 2005
VLAN的几种配置方法. 梁玮栗.计算机与网络,第2005卷第11期. 2005 *
虚拟网VLAN技术及实现. 黄劲荣.教育信息化,第2005卷第4期. 2005
虚拟网VLAN技术及实现. 黄劲荣.教育信息化,第2005卷第4期. 2005 *

Also Published As

Publication number Publication date
CN101146018A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
JP5106100B2 (en) Differential transfer in addressed carrier networks
US8228928B2 (en) System and method for providing support for multipoint L2VPN services in devices without local bridging
CN101841451B (en) Virtual local area network-based speed limiting method and system for cloud hosts
US7974223B2 (en) Virtual private LAN service over ring networks
US7430210B2 (en) Application of an Ethernet/MPLS “half bridge” to provide emulated Ethernet LAN functions in SONET networks
US7869432B1 (en) Peer-to-peer link aggregation across a service provider network
CA2256698C (en) Connection aggregation in switched communications networks
US6963575B1 (en) Enhanced data switching/routing for multi-regional IP over fiber network
US8121126B1 (en) Layer two (L2) network access node having data plane MPLS
JP2005341591A (en) Virtual private network, and multi-service provisioning platform and method
MX2007008112A (en) Connection-oriented communications scheme for connection-less communications traffic.
EP1332642B1 (en) Virtual ethernet ports with automated router port extension
JP5295273B2 (en) Data stream filtering apparatus and method
WO2009082905A1 (en) Method, system and switch device for dynamically establishing multicast virtual local area network
Huynh et al. Metropolitan Ethernet Network: A move from LAN to MAN
CN100544303C (en) The distribution method of VLAN ID
CN101536410A (en) LAN topology detection and assignment of addresses
WO2007104201A1 (en) A method for forwarding message in the service tunnel of the ethernet application and a system thereof
US9258140B2 (en) Architecture for routing data of a customer network over provider's network in provider backbone bridges
CN109525492B (en) IP data backup transmission method independent of routing protocol or algorithm
Cisco Configuring Ethernet Fast Ethernet & Gigabit Ethernet Switching
CN100349441C (en) Device and method for realizing RPR looped network interconnection based on multi service transmission platform
CN100387025C (en) Method for realizing flow equitable transmission in MPLS looped network
JPH1093637A (en) Routing method for inter-network connection device
WO2006131019A1 (en) A method and site for achieving link aggregation between the interconnected resilient packet ring

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
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: 20090923

Termination date: 20171010