CN111294269B - Method and device for distributing VLAN (virtual local area network) in inner layer and outer layer of home broadband service - Google Patents

Method and device for distributing VLAN (virtual local area network) in inner layer and outer layer of home broadband service Download PDF

Info

Publication number
CN111294269B
CN111294269B CN201811496552.0A CN201811496552A CN111294269B CN 111294269 B CN111294269 B CN 111294269B CN 201811496552 A CN201811496552 A CN 201811496552A CN 111294269 B CN111294269 B CN 111294269B
Authority
CN
China
Prior art keywords
vlan
layer vlan
user access
networking
outer layer
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
Application number
CN201811496552.0A
Other languages
Chinese (zh)
Other versions
CN111294269A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Guangdong Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Guangdong 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 China Mobile Communications Group Co Ltd, China Mobile Group Guangdong Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811496552.0A priority Critical patent/CN111294269B/en
Publication of CN111294269A publication Critical patent/CN111294269A/en
Application granted granted Critical
Publication of CN111294269B publication Critical patent/CN111294269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging
    • H04L12/465Details on frame tagging wherein a single frame includes a plurality of VLAN tags
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Abstract

The embodiment of the invention provides a method and a device for distributing an inner layer VLAN (virtual local area network) and an outer layer VLAN of home bandwidth service, wherein the method comprises the following steps: acquiring a user access information table, wherein the user access information table comprises user access OLT information and a user access networking type; creating an inner VLAN table and an outer VLAN table according to the information of the inner and outer VLAN resource pools, wherein the inner VLAN table reflects the distribution condition of the inner VLAN under different networking types, and the outer VLAN table reflects the distribution condition of the outer VLAN under different networking types; and performing inner VLAN allocation according to the user access OLT information and the inner VLAN table, and performing outer VLAN allocation according to the user access networking type and the outer VLAN table. According to the method and the device for allocating the inner-layer VLAN and the outer-layer VLAN of the home bandwidth service, provided by the embodiment of the invention, in a GPON network and a metropolitan area network, the automatic allocation and conflict resolution rules of the inner-layer VLAN and the outer-layer VLAN are designed, the automatic allocation and the issuing configuration of the VLAN are realized, the management configuration efficiency of VLAN resources is improved, errors possibly generated during manual allocation are avoided, and the accuracy is improved.

Description

Method and device for distributing VLAN (virtual local area network) in inner layer and outer layer of home broadband service
Technical Field
The invention relates to the technical field of data communication networks, in particular to a method and a device for allocating VLANs (virtual local area networks) in the inner layer and the outer layer of a home broadband service.
Background
In a home broadband GPON Network of a mobile operator, a VLAN is generally configured for each user on an Optical Network Unit (ONU) device and a two-layer access switch, selective QinQ is deployed on an Optical Line Terminal (OLT) device or an aggregation switch, an outer tag is loaded, expansion of the VLAN is implemented, and the two-layer broadband aggregation switch transparently transmits the outer tag. The BRAS/BNG is used as a broadband access gateway, the SVLAN is terminated at the downstream GE port, and the accurate binding of the broadband user is realized through the interaction with the background.
The QinQ technology is used for expanding VLAN resources, so that the number of available VLANs in a two-layer network is greatly increased, and a large number of users can be converged under the condition of using relatively few devices. The external VLAN label is packaged by two methods, one is standard QinQ packaging, namely, the external label is marked based on a port, all user data under the port are uniformly packaged into a common VLAN label, and the other is a flexible QinQ packaging method, so that the user data can be subjected to flow classification according to some characteristics, and then different external VLAN labels are packaged in different classes.
In an actual network, the management and allocation of the inner and outer layer VLANs are realized through manual entry management of a comprehensive resource management system, the allocation principle is mainly divided into two cases, one is that an OLT couples two paired aggregation switches in a duplex manner to form a switching domain, the outer layer SVLAN in the switching domain is unique, and the value of the inner layer VLAN number under the outer layer SVLAN is unique; and the other is that the OLT is directly connected with the BNG/BRAS, so that the SVLAN under each interface is unique, and the value of the inner VLAN number under the outer SVLAN is unique.
The existing scheme adopts a method for managing the VLAN through manual allocation, and has the defects that the VLAN is allocated manually, a professional needs to have certain professional knowledge, a special person needs to be set for managing and controlling resources, and records are made, so that on one hand, human resources are consumed, on the other hand, mistakes are difficult to avoid, and the efficiency is not high.
Disclosure of Invention
In order to overcome the technical defects, the embodiment of the invention provides a method and a device for distributing an inner layer VLAN (virtual local area network) and an outer layer VLAN (virtual local area network) of a home broadband service.
In a first aspect, an embodiment of the present invention provides a method for allocating an inner layer VLAN and an outer layer VLAN in a home broadband service, including:
acquiring a user access information table, wherein the user access information table comprises user access OLT information and a user access networking type;
creating an inner VLAN table and an outer VLAN table according to the information of the inner and outer VLAN resource pools, wherein the inner VLAN table reflects the distribution condition of the inner VLAN under different networking types, and the outer VLAN table reflects the distribution condition of the outer VLAN under different networking types;
and performing inner VLAN allocation according to the user access OLT information and the inner VLAN table, and performing outer VLAN allocation according to the user access networking type and the outer VLAN table.
In a second aspect, an embodiment of the present invention provides an apparatus for allocating an inner layer VLAN in a home broadband service, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a user access information table, and the user access information table comprises user access OLT information and a user access networking type;
the system comprises an establishing module, a sending module and a receiving module, wherein the establishing module is used for establishing an inner layer VLAN table and an outer layer VLAN table according to the information of an inner layer VLAN resource pool and an outer layer VLAN resource pool, the inner layer VLAN table reflects the distribution condition of the inner layer VLAN under different networking types, and the outer layer VLAN table reflects the distribution condition of the outer layer VLAN under different networking types;
and the distribution module is used for carrying out inner layer VLAN distribution according to the user access OLT information and the inner layer VLAN table and carrying out outer layer VLAN distribution according to the user access networking type and the outer layer VLAN table.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the processor and the memory complete communication with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a home broadband service inner and outer layer VLAN assignment method as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a home broadband service inner and outer layer VLAN allocation method according to the first aspect.
The method and the device for allocating the inner and outer layer VLANs of the home broadband service provided by the embodiment of the invention realize the automatic allocation of the inner and outer layer VLANs meeting QinQ standards aiming at the home broadband service, and in a GPON network and a metropolitan area network, under the scene of adopting the QinQ technology to expand VLAN resources to identify different customers, the automatic allocation and conflict resolution rules of the inner and outer layer VLANs are designed through the automatic identification of network topology, the automatic allocation and issuing configuration of the VLANs are realized, the management configuration efficiency of the VLAN resources is improved, errors possibly generated when the inner and outer layer VLANs are manually allocated are avoided, the IT automatic supporting capability is enhanced, the accuracy is improved, and the cost is saved.
Drawings
Fig. 1 is a schematic flowchart of a method for allocating an inner-layer VLAN in a home broadband service according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an inner and outer layer VLAN assignment method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an internal and external VLAN assignment device for home broadband services according to an embodiment of the present invention;
fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Fig. 1 is a schematic flow chart of a method for allocating an inner-layer VLAN in a home broadband service according to an embodiment of the present invention, as shown in fig. 1, including:
step 11, acquiring a user access information table, wherein the user access information table comprises user access OLT information and a user access networking type;
step 12, creating an inner layer VLAN table and an outer layer VLAN table according to the information of the inner layer VLAN resource pool and the outer layer VLAN resource pool, wherein the inner layer VLAN table reflects the distribution condition of the inner layer VLAN under different networking types, and the outer layer VLAN table reflects the distribution condition of the outer layer VLAN under different networking types;
and step 13, carrying out inner layer VLAN distribution according to the user access OLT information and the inner layer VLAN table, and carrying out outer layer VLAN distribution according to the user access networking type and the outer layer VLAN table.
According to the method provided by the embodiment of the invention, the family broadband service adopts the QinQ technology to expand the VLAN resources to identify different customers in a GPON network and a metropolitan area network, and the automatic distribution and conflict resolution rules of the inner layer VLAN and the outer layer VLAN are designed through the automatic identification of the network topology, so that the automatic distribution and the issuing configuration of the VLAN are realized, and the management configuration efficiency of the VLAN resources is improved.
Specifically, a user access information table is obtained at first, the information included in the user information access table is used for accessing OLT information and user access networking types, and the user access networking types include dual-upper-link aggregation switch networking and single-upper-link flat networking. Taking the user access home wide network as an example, the step of obtaining the user access information table is as follows:
step1, identifying the main information accessed by the user, including the OLT name of the user distinguishing the conflict domain, the necessary port information in the service port for issuing configuration, etc.
Step 2: and identifying uplink topology information of the access OLT.
The uplink topology information in Step2 includes binding port information of the uplink to the Switch (Switch, hereinafter referred to as SW) or the Broadband Network Gateway control device (BNG).
The networking types in the embodiment of the invention are mainly divided into two types: one is a networking mode (hereinafter referred to as networking 1) in which dual uplinks are made to a convergence switch, and the other is a flat networking mode (hereinafter referred to as networking 2) in which a single uplink is directly made to a BNG/Broadband Remote Access Server (hereinafter referred to as BRAS).
Networking 1: the OLT is provided with double upper connection aggregation switches, the two aggregation switches are a switching domain, and VLANs in the switching domain cannot be repeated.
Networking 2: the OLT is singly connected with the BNG in an uplink mode, one binding port of the BNG is a collision domain, and VLANs in the collision domain cannot be repeated, namely outer VLANs cannot be repeated.
Step 3: the user access information table is formed through Step1 and Step 2.
Assuming that there are 2 users S1 and S2, which respectively access 2 multicast structures, the user access information table is formed as follows:
Figure GDA0003130422200000051
and secondly, creating an inner layer VLAN table and an outer layer VLAN table according to the inner layer VLAN resource pool information, wherein the inner layer VLAN table and the outer layer VLAN table respectively reflect the distribution conditions of the inner layer VLAN and the outer layer VLAN under different networking types.
The creation of the inner and outer layer VLAN tables is directly related to the automatic allocation and the collision detection of the VLAN.
The VLAN resource constitution mainly comprises two tables, one is an inner layer VLAN table, and the other is an outer layer VLAN table; the inner layer VLAN table of the network 1 takes OLT as a unique identifier, and the outer layer VLAN takes two SW in the exchange domain as a combined identifier; the inner and outer layer VLANs of the network 2 use the OLT as the unique identifier, so that no conflict can be ensured.
The inner VLAN table information is as follows:
Figure GDA0003130422200000052
Figure GDA0003130422200000061
the outer VLAN table information is as follows:
Figure GDA0003130422200000062
and after the inner and outer layer VLAN tables are established, inner layer VLAN distribution is carried out according to the user access OLT information and the inner layer VLAN table, and outer layer VLAN distribution is carried out according to the user access networking type and the outer layer VLAN table. Firstly, the distribution rules of the inner and outer layer VLANs are determined, wherein the most important is the preset setting of the switching domain and the conflict domain, and as long as the determination is carried out, the conflict in the rules can be basically ensured. And then, allocating the inner and outer layer VLANs according to the user access networking type and the user access OLT information.
The method for allocating the inner and outer layer VLANs of the home broadband service provided by the embodiment of the invention realizes the automatic allocation of the inner and outer layer VLANs meeting QinQ standards aiming at the home broadband service, and in a GPON network and a metropolitan area network, under the scene of adopting the QinQ technology to expand VLAN resources to identify different customers, through the automatic identification of network topology, the automatic allocation and conflict resolution rules of the inner and outer layer VLANs are designed, the automatic allocation and issuing configuration of the VLANs are realized, the management configuration efficiency of the VLAN resources is improved, errors possibly generated when the inner and outer layer VLANs are manually allocated are avoided, the IT automatic supporting capability is enhanced, the accuracy is improved, and the cost is saved.
On the basis of the above embodiment, the allocating an inner VLAN according to the user access OLT information and the inner VLAN table specifically includes:
if the inner layer VLAN in the specified range is judged and known to be completely distributed, selecting the inner layer VLAN with the least repeated distribution times as the user inner layer VLAN according to the inner layer VLAN table;
if judging that the inner layer VLANs in the specified range are not completely distributed, sequentially selecting one inner layer VLAN from the unallocated inner layer VLAN set as a user inner layer VLAN according to the inner layer VLAN table;
and updating the inner VLAN table after the user inner VLAN is selected.
The outer-layer VLAN allocation according to the user access networking type and the outer-layer VLAN table specifically comprises the following steps:
if the user access networking type is the networking of a dual-upper-link aggregation switch, searching all non-repeated outer layer VLANs in the switching domain of the networking of the dual-upper-link aggregation switch according to the outer layer VLAN table;
if the user access networking type is single-upper-link flat networking, searching all non-repeated outer layer VLANs in a conflict domain of the single-upper-link flat networking according to the outer layer VLAN table;
if the non-repeated outer layer VLAN is not completely distributed according to the outer layer VLAN table judgment, selecting a user outer layer VLAN in the non-repeated outer layer VLAN according to the user inner layer VLAN and inner layer VLAN repeated information;
and updating the outer VLAN table after the outer VLAN of the user is selected.
If the non-repeated outer layer VLAN is judged and known to be completely distributed according to the outer layer VLAN table, the method further comprises the following steps:
and prompting that the outer layer VLAN is distributed completely and cannot be redistributed.
Fig. 2 is a schematic flow chart of an inner and outer layer VLAN assignment method provided in an embodiment of the present invention, as shown in fig. 2, including:
step 201, identifying a user access OLT;
step 202, allocating an inner layer VLAN for a user;
step 203, judging whether flag distributed by all inner layer VLANs is 1, if yes, executing step 204, and if not, executing step 205;
step 204, selecting an inner layer VLAN with the least repeated distribution times;
step 205, sequentially selecting an inner layer VLAN from the unallocated inner layer VLAN set;
step 206, updating the related information of the inner layer VLAN information table;
step 207, identifying user networking;
step 208, judging whether the user networking is a networking 1 type, if so, executing step 209, otherwise, executing step 210;
step 209, searching for non-repetitive outer layer VLAN in the switching domain of the type of the networking 1;
step 210, searching a nonrepetitive outer layer VLAN in a conflict domain of the networking type 2;
step 211, judging whether flag distributed by all outer layer VLANs is 1, if not, executing step 212, and if so, executing step 213;
step 212, combining the inner layer VLAN to distribute the outer layer VLAN;
step 213, prompting that the outer layer VLAN is distributed completely and cannot be redistributed;
step 214, updating the content of the outer layer VLAN information table.
Specifically, the identification of the user access to the OLT information and the VLAN assignment based on the detailed record information recorded by the OLT are started, and the information identification is not limited to the identification in the order information.
The method comprises the steps of starting to allocate inner layer VLANs for users, firstly determining whether the inner layer VLANs in a specified range are completely allocated, and if so, selecting the inner layer VLAN with the least repeated allocation times according to fields of 'repeatedly allocated inner layer VLANs and repeated allocation times' in inner layer VLAN table information; if not, one inner layer VLAN is selected in sequence according to the field of the inner layer VLAN set which is not repeatedly allocated in the inner layer VLAN table information, and the sequence can be but is not limited to the sequence number of the array of the stored VLAN information from small to large.
And updating the inner VLAN table after the inner VLAN is selected, such as repeatedly allocated inner VLAN, repeated allocation times, an inner VLAN set without repeated allocation and other change information.
And identifying the networking type of the user, selecting a nonrepetitive outer VLAN in the switching domain of the networking 1 if the networking type is the networking 1 type, ensuring that the outer VLAN in the switching domain is not repeated, and selecting the nonrepetitive outer VLAN in the collision domain of the networking 2 if the networking type is the networking 2 type, and ensuring that the outer VLAN in the collision domain is not repeated. Here, the type of the networking 1 refers to dual-uplink aggregation switch networking, and the type of the networking 2 refers to single-uplink flat networking.
Before distribution, firstly, judging whether flag marks distributed by all outer layer VLANs in different switching domains or conflict domains are 1 or not. If flag is not 1, it indicates that the outer layer VLAN is not repeatedly allocated, and according to the selected inner layer VLAN, the repeated condition of the inner layer VLAN and the selected outer layer VLAN corresponding to the repeated inner layer VLAN, one outer layer VLAN is selected to ensure that the combination of the inner layer VLAN and the outer layer VLAN in the exchange domain or the collision domain is unique, which is specifically as follows:
if the inner layer VLAN is distributed in the field of the unallocated inner layer VLAN set in the inner layer VLAN table, the outer layer VLAN can freely select the distributed outer layer VLAN or the unallocated outer layer VLAN in the exchange domain or the conflict domain according to the requirement;
if the inner layer VLAN is distributed in the field of the distributed inner layer VLAN set in the inner layer VLAN table, the repeated distribution times need to be confirmed in the field of the repeated distributed inner layer VLAN and the repeated distribution times, the corresponding outer layer VLAN is found out in the field of the repeated distributed inner layer VLAN and the outer layer VLAN set according to the times, and finally, a former found outer layer VLAN is selected to be used repeatedly in an exchange domain or a collision domain, namely, the uniqueness of the inner layer VLAN and the outer layer VLAN is ensured.
If the flag is 1, the outer layer VLAN is repeatedly allocated, and the actual situation is unlikely to occur, so the system sets to indicate that the outer layer VLAN is unavailable for resource allocation.
And after the outer layer VLAN is distributed, updating an outer layer VLAN table, wherein the outer layer VLAN table comprises information of the distributed outer layer VLAN set, the unallocated outer layer VLAN set and the like.
The method for allocating the inner and outer layer VLANs of the home broadband service provided by the embodiment of the invention realizes the automatic allocation of the inner and outer layer VLANs meeting QinQ standards aiming at the home broadband service, and in a GPON network and a metropolitan area network, under the scene of adopting the QinQ technology to expand VLAN resources to identify different customers, through the automatic identification of network topology, the automatic allocation and conflict resolution rules of the inner and outer layer VLANs are designed, the automatic allocation and issuing configuration of the VLANs are realized, the management configuration efficiency of the VLAN resources is improved, errors possibly generated when the inner and outer layer VLANs are manually allocated are avoided, the IT automatic supporting capability is enhanced, the accuracy is improved, and the cost is saved.
On the basis of the above embodiment, after the outer VLAN assignment is performed according to the user access networking type and the outer VLAN table, the method further includes:
and judging whether the user inner layer VLAN and the user outer layer VLAN have conflict in the corresponding exchange domain or conflict domain, and if yes, prompting exception.
If the user inner layer VLAN and the user outer layer VLAN do not have conflict in the corresponding exchange domain or conflict domain, the method further comprises the following steps:
synchronizing user VLAN distribution management information, wherein the user VLAN distribution management information comprises the user access information table, the inner layer VLAN table, the outer layer VLAN table, the user inner layer VLAN and the user outer layer VLAN.
In the embodiment of the invention, after the inner and outer layer VLANs are distributed, the confirmed inner and outer layer VLANs check again in the whole exchange domain or the conflict domain to confirm whether the conflict exists.
The purpose of this step is mainly to check whether the currently allocated inner and outer layer VLANs uniquely identify the user in the switching domain or the collision domain, so the premise is that the database needs to keep inner and outer layer VLAN identification records for all users in the collision domain or the switching domain, if there is a collision, an exception is prompted, and a system collision check module needs to be manually used to confirm the collision.
If no conflict exists, the user information identified in the embodiment of the invention, the distributed inner and outer layer VLAN information and the comprehensive resource management system information are synchronized, wherein the information synchronization when the user logs off is also included, and the comprehensive resource management system, the inner and outer layer VLAN tables and the user subscription information are bidirectionally and automatically synchronized.
After the information synchronization is realized, the network management server is connected through the information synchronization module, and the automatic configuration issuing is realized, which comprises the following steps:
the service port is issued to the OLT equipment to realize the automatic configuration of the service port;
if the situation is networking 1, sending VLAN configuration to a main device in the OLT dual-uplink convergence exchange;
if the situation is the networking 2, the VLAN is issued to be configured to the corresponding sub-interface of the OLT uplink BNG
The method for allocating the inner and outer layer VLANs of the home broadband service provided by the embodiment of the invention realizes the automatic allocation of the inner and outer layer VLANs meeting QinQ standards aiming at the home broadband service, and in a GPON network and a metropolitan area network, under the scene of adopting the QinQ technology to expand VLAN resources to identify different customers, through the automatic identification of network topology, the automatic allocation and conflict resolution rules of the inner and outer layer VLANs are designed, the automatic allocation and issuing configuration of the VLANs are realized, the management configuration efficiency of the VLAN resources is improved, errors possibly generated when the inner and outer layer VLANs are manually allocated are avoided, the IT automatic supporting capability is enhanced, the accuracy is improved, and the cost is saved.
Fig. 3 is a schematic structural diagram of an internal and external VLAN assignment device for home broadband services according to an embodiment of the present invention, as shown in fig. 3, including an obtaining module 31, a creating module 32, and an assigning module 33, where:
the acquiring module 31 is configured to acquire a user access information table, where the user access information table includes user access OLT information and a user access networking type;
the creating module 32 is configured to create an inner VLAN table and an outer VLAN table according to the information of the inner and outer VLAN resource pools, where the inner VLAN table reflects the allocation of inner VLANs in different networking types, and the outer VLAN table reflects the allocation of outer VLANs in different networking types;
the allocation module 33 is configured to perform inner VLAN allocation according to the user access OLT information and the inner VLAN table, and perform outer VLAN allocation according to the user access networking type and the outer VLAN table.
Specifically, the obtaining module 31 first obtains a user access information table, where the information included in the user information access table is used for accessing OLT information and a user access networking type, and the user access networking type includes a dual-uplink aggregation switch networking and a single-uplink flat networking. Taking the user accessing the home wide network as an example, the step of the obtaining module 31 obtaining the user access information table is as follows:
step1, identifying the main information accessed by the user, including the OLT name of the user distinguishing the conflict domain, the necessary port information in the service port for issuing configuration, etc.
Step 2: and identifying uplink topology information of the access OLT.
The uplink topology information in Step2 includes binding port information of the uplink to the Switch (Switch, hereinafter referred to as SW) or the Broadband Network Gateway control device (BNG).
The networking types in the embodiment of the invention are mainly divided into two types: one is a networking mode (hereinafter referred to as networking 1) in which dual uplinks are made to a convergence switch, and the other is a flat networking mode (hereinafter referred to as networking 2) in which a single uplink is directly made to a BNG/Broadband Remote Access Server (hereinafter referred to as BRAS).
Networking 1: the OLT is provided with double upper connection aggregation switches, the two aggregation switches are a switching domain, and VLANs in the switching domain cannot be repeated.
Networking 2: the OLT is singly connected with the BNG in an uplink mode, one binding port of the BNG is a collision domain, and VLANs in the collision domain cannot be repeated, namely outer VLANs cannot be repeated.
Step 3: the user access information table is formed through Step1 and Step 2.
Then, the creating module 32 creates an inner VLAN table and an outer VLAN table according to the information of the inner and outer VLAN resource pools, where the inner VLAN table and the outer VLAN table respectively reflect the allocation of the inner VLAN and the outer VLAN in different networking types.
The creation of the inner and outer layer VLAN tables is directly related to the automatic allocation and the collision detection of the VLAN.
The VLAN resource constitution mainly comprises two tables, one is an inner layer VLAN table, and the other is an outer layer VLAN table; the inner layer VLAN table of the network 1 takes OLT as a unique identifier, and the outer layer VLAN takes two SW in the exchange domain as a combined identifier; the inner and outer layer VLANs of the network 2 use the OLT as the unique identifier, so that no conflict can be ensured.
After the inner and outer VLAN tables are created, the allocation module 33 performs inner VLAN allocation according to the user access OLT information and the inner VLAN table, and performs outer VLAN allocation according to the user access networking type and the outer VLAN table. Firstly, the distribution rules of the inner and outer layer VLANs are determined, wherein the most important is the preset setting of the switching domain and the conflict domain, and as long as the determination is carried out, the conflict in the rules can be basically ensured. And then, allocating the inner and outer layer VLANs according to the user access networking type and the user access OLT information.
The apparatus provided in the embodiment of the present invention is used for executing the above method embodiments, and for detailed descriptions and specific processes, reference is made to the above method embodiments, which are not described herein again.
The device for allocating the inner and outer VLANs of the home broadband service provided by the embodiment of the invention realizes the automatic allocation of the inner and outer VLANs meeting the QinQ specification aiming at the home broadband service, and in a GPON network and a metropolitan area network, under the scene of adopting the QinQ technology to expand VLAN resources to identify different customers, through the automatic identification of network topology, the automatic allocation and conflict resolution rules of the inner and outer VLANs are designed, the automatic allocation and issuing configuration of the VLANs are realized, the management configuration efficiency of the VLAN resources is improved, errors possibly generated when the inner and outer VLANs are manually allocated are avoided, the IT automatic support capability is enhanced, the accuracy is improved, and the cost is saved.
Fig. 4 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device may include: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the bus 440. Bus 440 may be used for information transfer between the electronic device and the sensor. The processor 410 may call logic instructions in the memory 430 to perform the following method: acquiring a user access information table, wherein the user access information table comprises user access OLT information and a user access networking type; creating an inner VLAN table and an outer VLAN table according to the information of the inner and outer VLAN resource pools, wherein the inner VLAN table reflects the distribution condition of the inner VLAN under different networking types, and the outer VLAN table reflects the distribution condition of the outer VLAN under different networking types; and performing inner VLAN allocation according to the user access OLT information and the inner VLAN table, and performing outer VLAN allocation according to the user access networking type and the outer VLAN table.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, where the computer instructions cause a computer to execute the method for allocating an inner-layer VLAN in a home broadband service provided in the foregoing embodiment, for example, the method includes: acquiring a user access information table, wherein the user access information table comprises user access OLT information and a user access networking type; creating an inner VLAN table and an outer VLAN table according to the information of the inner and outer VLAN resource pools, wherein the inner VLAN table reflects the distribution condition of the inner VLAN under different networking types, and the outer VLAN table reflects the distribution condition of the outer VLAN under different networking types; and performing inner VLAN allocation according to the user access OLT information and the inner VLAN table, and performing outer VLAN allocation according to the user access networking type and the outer VLAN table.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Various modifications and additions may be made to the described embodiments by those skilled in the art without departing from the spirit of the invention or exceeding the scope as defined in the appended claims.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. A home broadband service inner and outer layer VLAN distribution method is characterized by comprising the following steps:
acquiring a user access information table, wherein the user access information table comprises user access OLT information and a user access networking type;
creating an inner VLAN table and an outer VLAN table according to the information of the inner and outer VLAN resource pools, wherein the inner VLAN table reflects the distribution condition of the inner VLAN under different networking types, and the outer VLAN table reflects the distribution condition of the outer VLAN under different networking types;
performing inner VLAN allocation according to the user access OLT information and the inner VLAN table, and performing outer VLAN allocation according to the user access networking type and the outer VLAN table;
the user access networking types comprise double-upper-connection aggregation switch networking and single-upper-connection flat networking;
the allocating an inner VLAN according to the user access OLT information and the inner VLAN table specifically includes:
if the inner layer VLAN in the specified range is judged and known to be completely distributed, selecting the inner layer VLAN with the least repeated distribution times as the user inner layer VLAN according to the inner layer VLAN table;
if judging that the inner layer VLANs in the specified range are not completely distributed, sequentially selecting one inner layer VLAN from the unallocated inner layer VLAN set as a user inner layer VLAN according to the inner layer VLAN table;
after a user inner VLAN is selected, updating the inner VLAN table;
the outer-layer VLAN allocation according to the user access networking type and the outer-layer VLAN table specifically comprises the following steps:
if the user access networking type is the networking of a dual-upper-link aggregation switch, searching all non-repeated outer layer VLANs in the switching domain of the networking of the dual-upper-link aggregation switch according to the outer layer VLAN table;
if the user access networking type is single-upper-link flat networking, searching all non-repeated outer layer VLANs in a conflict domain of the single-upper-link flat networking according to the outer layer VLAN table;
if the non-repeated outer layer VLAN is not completely distributed according to the outer layer VLAN table judgment, selecting a user outer layer VLAN in the non-repeated outer layer VLAN according to the user inner layer VLAN and inner layer VLAN repeated information;
and updating the outer VLAN table after the outer VLAN of the user is selected.
2. The method of claim 1, wherein if it is determined from the outer VLAN table that the non-duplicate outer VLANs have been completely assigned, the method further comprises:
and prompting that the outer layer VLAN is distributed completely and cannot be redistributed.
3. The method of claim 1, wherein after said outer VLAN assignment based on said subscriber access networking type and said outer VLAN table, said method further comprises:
and judging whether the user inner layer VLAN and the user outer layer VLAN have conflict in the corresponding exchange domain or conflict domain, and if yes, prompting exception.
4. The method of claim 3, wherein if the customer inner VLAN and the customer outer VLAN do not have a collision in the corresponding switching domain or collision domain, the method further comprises:
synchronizing user VLAN distribution management information, wherein the user VLAN distribution management information comprises the user access information table, the inner layer VLAN table, the outer layer VLAN table, the user inner layer VLAN and the user outer layer VLAN.
5. An apparatus for assigning an inner layer VLAN to a home broadband service, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a user access information table, and the user access information table comprises user access OLT information and a user access networking type;
the system comprises an establishing module, a sending module and a receiving module, wherein the establishing module is used for establishing an inner layer VLAN table and an outer layer VLAN table according to the information of an inner layer VLAN resource pool and an outer layer VLAN resource pool, the inner layer VLAN table reflects the distribution condition of the inner layer VLAN under different networking types, and the outer layer VLAN table reflects the distribution condition of the outer layer VLAN under different networking types;
the distribution module is used for carrying out inner layer VLAN distribution according to the user access OLT information and the inner layer VLAN table and carrying out outer layer VLAN distribution according to the user access networking type and the outer layer VLAN table;
the user access networking types comprise double-upper-connection aggregation switch networking and single-upper-connection flat networking;
the allocating an inner VLAN according to the user access OLT information and the inner VLAN table specifically includes:
if the inner layer VLAN in the specified range is judged and known to be completely distributed, selecting the inner layer VLAN with the least repeated distribution times as the user inner layer VLAN according to the inner layer VLAN table;
if judging that the inner layer VLANs in the specified range are not completely distributed, sequentially selecting one inner layer VLAN from the unallocated inner layer VLAN set as a user inner layer VLAN according to the inner layer VLAN table;
after a user inner VLAN is selected, updating the inner VLAN table;
the outer-layer VLAN allocation according to the user access networking type and the outer-layer VLAN table specifically comprises the following steps:
if the user access networking type is the networking of a dual-upper-link aggregation switch, searching all non-repeated outer layer VLANs in the switching domain of the networking of the dual-upper-link aggregation switch according to the outer layer VLAN table;
if the user access networking type is single-upper-link flat networking, searching all non-repeated outer layer VLANs in a conflict domain of the single-upper-link flat networking according to the outer layer VLAN table;
if the non-repeated outer layer VLAN is not completely distributed according to the outer layer VLAN table judgment, selecting a user outer layer VLAN in the non-repeated outer layer VLAN according to the user inner layer VLAN and inner layer VLAN repeated information;
and updating the outer VLAN table after the outer VLAN of the user is selected.
6. An electronic device, comprising a memory and a processor, wherein the processor and the memory communicate with each other via a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a home broadband service inner and outer layer VLAN assignment method as claimed in any one of claims 1 to 4.
7. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements a method for home broadband service inner and outer VLAN assignment according to any one of claims 1 to 4.
CN201811496552.0A 2018-12-07 2018-12-07 Method and device for distributing VLAN (virtual local area network) in inner layer and outer layer of home broadband service Active CN111294269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811496552.0A CN111294269B (en) 2018-12-07 2018-12-07 Method and device for distributing VLAN (virtual local area network) in inner layer and outer layer of home broadband service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811496552.0A CN111294269B (en) 2018-12-07 2018-12-07 Method and device for distributing VLAN (virtual local area network) in inner layer and outer layer of home broadband service

Publications (2)

Publication Number Publication Date
CN111294269A CN111294269A (en) 2020-06-16
CN111294269B true CN111294269B (en) 2021-09-21

Family

ID=71022087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811496552.0A Active CN111294269B (en) 2018-12-07 2018-12-07 Method and device for distributing VLAN (virtual local area network) in inner layer and outer layer of home broadband service

Country Status (1)

Country Link
CN (1) CN111294269B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291162B (en) * 2020-10-02 2022-12-06 中盈优创资讯科技有限公司 Business dynamic resource allocation method
CN112511400B (en) * 2020-11-17 2022-07-01 新华三技术有限公司 Message processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795219A (en) * 2010-04-14 2010-08-04 杭州华三通信技术有限公司 Method and system for automatically distributing VLAN (virtual local area network)
CN103178971A (en) * 2011-12-20 2013-06-26 华为技术有限公司 Passive optical network (PON) protecting method and device
CN104168124A (en) * 2013-05-16 2014-11-26 上海斐讯数据通信技术有限公司 Configuration method of selective QinQ rule of distributed system
CN105530200A (en) * 2015-12-24 2016-04-27 陕西广电网络传媒(集团)股份有限公司 VLAN (Virtual Local Area Network) distribution method for different terminal services
CN105681151A (en) * 2016-02-26 2016-06-15 上海斐讯数据通信技术有限公司 Method and system for implementing QinQ, OTL device and electronic device
CN108270654A (en) * 2017-01-04 2018-07-10 中国移动通信集团广东有限公司 VLAN automatic scheduling methods and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795219A (en) * 2010-04-14 2010-08-04 杭州华三通信技术有限公司 Method and system for automatically distributing VLAN (virtual local area network)
CN103178971A (en) * 2011-12-20 2013-06-26 华为技术有限公司 Passive optical network (PON) protecting method and device
CN104168124A (en) * 2013-05-16 2014-11-26 上海斐讯数据通信技术有限公司 Configuration method of selective QinQ rule of distributed system
CN105530200A (en) * 2015-12-24 2016-04-27 陕西广电网络传媒(集团)股份有限公司 VLAN (Virtual Local Area Network) distribution method for different terminal services
CN105681151A (en) * 2016-02-26 2016-06-15 上海斐讯数据通信技术有限公司 Method and system for implementing QinQ, OTL device and electronic device
CN108270654A (en) * 2017-01-04 2018-07-10 中国移动通信集团广东有限公司 VLAN automatic scheduling methods and device

Also Published As

Publication number Publication date
CN111294269A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN107948135B (en) Data processing method and device supporting multiple API protocols
CN103281203B (en) A kind of dhcp address allocation management method based on ecos systems
CN101883158B (en) Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
CN110326345B (en) Method, device and system for configuring network slice
US11855891B2 (en) Packet processing method and apparatus
CN106878480B (en) DHCP service process sharing method and device
CN106375442B (en) Method and device for cross-platform management of equipment information
CN103856358B (en) Ethernet port VLAN (virtual local area network) configuration system and method of EOC (Ethernet over coax) equipment
CN111294269B (en) Method and device for distributing VLAN (virtual local area network) in inner layer and outer layer of home broadband service
CN112769965B (en) IP address management and distribution method, device and system
CN111917895A (en) Alias management method and device
WO2019047611A1 (en) Data transmission method, pnf sdn controller, vnf sdn controller, and system
CN114385314A (en) Internet of things equipment data migration system, method and device and storage medium
CN103812707B (en) A kind of method for processing forwarding of line identification message
CN101267343B (en) A method for multiple clients to configure server network element data
US20220183089A1 (en) Functional part selection in a disaggregated base station
US10784982B2 (en) Method and system for allocating wavelength channels in passive optical network, and optical line terminal
CN105323159B (en) The processing method and processing device of data message
CN106550060B (en) Network management interface address allocation method and device
WO2020216214A1 (en) Resource allocation method and apparatus
CN101662456B (en) Method and system for sending terminal services
CN112152899B (en) Data processing method and device based on network slice
CN114585026A (en) Frequency point switching method, terminal, base station and storage medium
CN110324435A (en) A kind of network request processing method and system, entrance and egress network equipment
CN109561170A (en) Address pool creation method, device, address pool management system and storage medium

Legal Events

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