OLT VLAN allocation method and device
Through automated VLAN planning and allocation methods, the problem of low VLAN allocation efficiency of OLT in the prior art is solved, efficient and accurate VLAN allocation and standardized planning are achieved, and automated resource allocation is supported when service is started.
Patent Information
- Application Number
- CN202111322648.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2041-11-09
AI Technical Summary
The existing VLAN allocation method of OLT is inefficient, prone to incorrect allocation, and it is difficult to quickly detect misallocation.
By receiving the device parameters and VLAN parameters of the target OLT input by the user, VLAN planning and allocation are automatically performed based on these parameters, virtual boards and virtual ports are generated, and the values of SVLAN and CVLAN are determined according to preset formulas.
It improves the efficiency and accuracy of VLAN allocation, realizes standardized planning of SVLAN and CVLAN under OLT, supports the automatic, reasonable and orderly allocation of VLAN resources when service is started, and avoids problems such as duplicate planning and allocation.
Smart Images

Figure CN116112830B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a VLAN allocation method and device for an OLT. Background Art
[0002] Before an optical line terminal (OLT) is connected to a wired access network, it is necessary to plan a VLAN (Virtual Local Area Network) and assign the VLAN to a corresponding port of the OLT.
[0003] The traditional VLAN allocation method of OLT is to manually plan VLANs for ports under OLT one by one in the integrated resource system. There are many uncertain factors, low planning efficiency and high error rate. It is necessary to compare data one by one to find incorrect allocations such as duplicate allocations, which is difficult to find incorrect allocations quickly and in time. When the boards and ports under OLT are not fully configured, VLAN allocation can only be performed manually for the configured boards and ports, and multiple VLAN allocations are required for the entire OLT.
[0004] In summary, the existing VLAN allocation method of OLT has shortcomings such as low efficiency. Summary of the invention
[0005] The present invention provides a VLAN allocation method and device for OLT, which are used to solve the defect of low VLAN allocation efficiency in the prior art and realize fast and automatic VLAN allocation.
[0006] In a first aspect, the present invention provides a VLAN allocation method for an OLT, comprising:
[0007] Receiving a first input from a user on a target interface;
[0008] In response to the first input, a VLAN is allocated to the target OLT based on the device parameters and VLAN parameters of the target OLT carried in the first input.
[0009] In one embodiment, the device parameters of the target OLT include:
[0010] Number, full number of PON boards, full number of PON ports on a single PON board, starting value of PON board number, and starting value of PON board port number;
[0011] The VLAN parameters include:
[0012] The SVLAN start value, SVLAN segment interval, number of grouped SVLANs and number of OLT grouped ports of each first type SVLAN, and the CVLAN start value, number of each CVLAN segment and interval of each CVLAN segment of each second type CVLAN.
[0013] In one embodiment, the performing VLAN allocation on the target OLT based on the device parameters and VLAN parameters of the target OLT carried by the first input specifically includes:
[0014] Generate a virtual board of the target OLT and a virtual port on the virtual board based on the full number of the PON board, the full number of PON ports of a single PON board, the starting value of the PON board number, and the starting value of the port number of the PON board;
[0015] Based on each of the virtual ports, the SVLAN start value, SVLAN segment interval, number of grouped SVLANs and number of OLT grouped ports of each of the first types of SVLANs, and the CVLAN start value, number of CVLANs per segment and interval of CVLAN per segment of each of the second types of CVLANs, the value of each of the first types of SVLANs and the value of each of the second types of CVLANs are determined.
[0016] In one embodiment, determining the value of each SVLAN of the first type and the value of each CVLAN of the second type based on each virtual port, the SVLAN start value of each SVLAN of the first type, the SVLAN segment interval, the number of grouped SVLANs, and the number of OLT grouped ports, and the CVLAN start value of each CVLAN of the second type, the number of each CVLAN segment, and the CVLAN interval of each CVLAN segment specifically includes:
[0017] When the number of OLT grouped ports of the first type of SVLAN is less than the product of the full number of the PON board and the full number of the PON ports of the single PON board, for the virtual port with the port number Y on the virtual board with the port number X, the value of the first type of SVLAN is determined to be S_Q+(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ to
[0018] S_Q+(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ+S_SFZ-1;
[0019] Among them, the first type of SVLAN is broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN, dedicated line double-layer SVLAN or dedicated line single-layer SVLAN; S_Q represents the SVLAN starting value; N represents the number of the target OLT; S_JG represents the SVLAN segment interval; B_Q represents the starting value of the PON board number; D_Q represents the starting value of the port number of the PON board; P represents the full number of PON ports on a single PON board; S_DFZ represents the number of OLT grouped ports; S_SFZ represents the number of grouped SVLANs; [] represents rounding.
[0020] In one embodiment, determining the value of each SVLAN of the first type and the value of each CVLAN of the second type based on each virtual port, the SVLAN start value of each SVLAN of the first type, the SVLAN segment interval, the number of grouped SVLANs, and the number of OLT grouped ports, and the CVLAN start value of each CVLAN of the second type, the number of each CVLAN segment, and the CVLAN interval of each CVLAN segment specifically includes:
[0021] When the number of OLT grouped ports of the first type of SVLAN is less than the product of the full number of the PON board and the full number of the PON ports of the single PON board, for the virtual port with the port number Y on the virtual board with the port number X, the value of the first type of SVLAN is determined as S_Q-(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ to
[0022] S_Q-(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ-S_SFZ+1;
[0023] Among them, the first type of SVLAN is a multicast SVLAN; S_Q represents the SVLAN starting value; N represents the number of the target OLT; S_JG represents the SVLAN segment interval; B_Q represents the starting value of the PON board number; D_Q represents the starting value of the port number of the PON board; P represents the full number of PON ports on a single PON board; S_DFZ represents the number of OLT grouped ports; S_SFZ represents the number of grouped SVLANs; [] represents rounding.
[0024] In one embodiment, the determining the value of each SVLAN of the first type and the value of each CVLAN of the second type based on each virtual port, the SVLAN start value of each SVLAN of the first type, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN start value, the number of each CVLAN segment and the CVLAN interval of each CVLAN of the second type, further includes:
[0025] When the number of OLT group ports of the first type of SVLAN is equal to the product of the full number of the PON board and the full number of PON ports of the single PON board, ([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ=0.
[0026] In one embodiment, the determining the value of each SVLAN of the first type and the value of each CVLAN of the second type based on each virtual port, the SVLAN start value of each SVLAN of the first type, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN start value, the number of each CVLAN segment and the CVLAN interval of each CVLAN of the second type, further includes:
[0027] The value of the second type of CVLAN is determined as C_Q+((X-B_Q)*P+(Y-D_Q+1)-([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_DFZ-1)*C_JG to
[0028] C_Q+((X-B_Q)*P+(Y-D_Q+1)-([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_DFZ-1)*C_JG+C_S-1;
[0029] The second type of CVLAN is a CVLAN corresponding to a broadband SVLAN, an IPTV_SVLAN, a voice SVLAN, an ITMS_SVLAN or a dedicated line double-layer SVLAN; C_Q represents a CVLAN starting value; C_JG represents an interval of each CVLAN segment; and C_S represents the number of CVLANs in each segment.
[0030] In a second aspect, the present invention provides a VLAN allocation device for an OLT, comprising:
[0031] A receiving module, used for receiving a first input of a user to a target interface;
[0032] The allocation module is configured to, in response to the first input, allocate a VLAN to the target OLT based on the device parameters and VLAN parameters of the target OLT carried in the first input.
[0033] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory storing a computer program, wherein the processor implements the steps of any one of the above-mentioned VLAN allocation methods of the OLT when executing the computer program.
[0034] In a fourth aspect, the present invention provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable the processor to execute the steps of any one of the above-mentioned OLT VLAN allocation methods.
[0035] The VLAN allocation method and device of OLT provided by the present invention can improve the efficiency and accuracy of VLAN allocation by acquiring the equipment parameters and VLAN parameters of the target OLT input by the user, automatically performing VLAN planning based on the equipment parameters and VLAN parameters of the target OLT, and performing VLAN allocation on the target OLT. Furthermore, the standardized planning of SVLAN and CVLAN under OLT can be realized, thereby supporting the automatic, reasonable and orderly allocation of VLAN resources when the service is activated, providing strong support for future service activation work from the perspective of user perception, and improving the efficiency of service activation. Furthermore, all VLAN information under OLT is planned and allocated at one time, which can avoid repeated planning, planning omissions, repeated allocations and allocation omissions. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a flow chart of the VLAN allocation method of OLT provided by the present invention;
[0038] Figure 2 It is a schematic diagram of a target interface in the VLAN allocation method of OLT provided by the present invention;
[0039] Figure 3 It is a structural schematic diagram of the VLAN allocation device of the OLT provided by the present invention;
[0040] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] Combine the following Figure 1-Figure 4 The present invention describes the VLAN allocation method and device of OLT.
[0043] Figure 1 1 is a flow chart of the VLAN allocation method of the OLT provided by the present invention. Figure 1 The following describes the VLAN allocation method of the OLT provided in the embodiment of the present application. Figure 1 As shown, the method includes: step 101, receiving a first input of a user to a target interface.
[0044] Specifically, the VLAN allocation method of the OLT provided by the embodiment of the present invention is executed by the VLAN allocation device of the OLT provided by the present invention.
[0045] Specifically, the target interface may be an interface for setting device parameters and VLAN parameters of the target OLT. The target interface may include an input box or a selection box.
[0046] The user can set the device parameters and VLAN parameters of the target OLT by inputting the first input into the target interface.
[0047] Optionally, the user may input the first input by inputting a value in an input box or a selection box included in the target interface. The input box or the selection box may correspond one-to-one to the device parameters and VLAN parameters of the target OLT.
[0048] It can be understood that the first input may carry device parameters and VLAN parameters of the target OLT.
[0049] The VLAN allocation device of the OLT may receive the above-mentioned first input.
[0050] Step 102: In response to the first input, VLAN allocation is performed on the target OLT based on the device parameters and VLAN parameters of the target OLT carried in the first input.
[0051] Specifically, after receiving the first input, the VLAN allocation device of the OLT can automatically complete the planning of VLANs under the target OLT and determine the values of various types of VLANs based on the device parameters and VLAN parameters of the target OLT and according to a preset formula.
[0052] The above-mentioned types of VLANs may be SVLAN (Service provider VLAN) or CVLAN (Customer VLAN).
[0053] The above preset formula can be predetermined according to actual needs and application scenarios. The embodiment of the present invention does not specifically limit the specific formula.
[0054] For example, an OLT device with a full configuration of 288 ports (all 288 ports are planned) needs to allocate 7 first-type SVLANs, such as broadband VLAN, IPTV_VLAN, voice VLAN, MTS_VLAN, multicast VLAN, dedicated line single-layer VLAN, and dedicated line double-layer VLAN. 5 first-type SVLANs, such as broadband VLAN, IPTV_VLAN, voice VLAN, MTS_VLAN, and dedicated line double-layer VLAN, need to allocate corresponding second-type CVLANs. The traditional manual planning method needs to allocate 4*288+3=1155 times (3 first-type SVLANs, such as multicast VLAN, dedicated line single-layer VLAN, and dedicated line double-layer VLAN, are allocated once). However, through the VLAN allocation method of the OLT provided in the embodiment of the present application, the OLT only needs to be allocated once, which greatly reduces the workload of manually allocating VLANs and entering the values of SVLAN and CVLAN.
[0055] The embodiment of the present invention can improve the efficiency and accuracy of VLAN allocation by acquiring the device parameters and VLAN parameters of the target OLT input by the user, automatically performing VLAN planning based on the device parameters and VLAN parameters of the target OLT, and performing VLAN allocation on the target OLT. Furthermore, the standardized planning of SVLAN and CVLAN under the OLT can be realized, thereby supporting the automatic, reasonable and orderly allocation of VLAN resources when the service is activated, providing strong support for future service activation work from the perspective of user perception, and improving the efficiency of service activation. Furthermore, all VLAN information under the OLT is planned and allocated at one time, which can avoid repeated planning, planning omissions, repeated allocations and allocation omissions.
[0056] Based on the contents of any of the above embodiments, the equipment parameters of the target OLT include: number, full configuration number of PON boards, full configuration number of PON ports of a single PON board, starting value of PON board number and starting value of port number of PON board; VLAN parameters include: SVLAN starting value, SVLAN segment interval, number of grouped SVLANs and number of OLT grouped ports of each first type of SVLAN, and CVLAN starting value, number of CVLANs per segment and interval of CVLAN per segment of each second type of CVLAN.
[0057] Specifically, the device parameters of the target OLT may include a number, a full number of PON boards, a full number of PON ports of a single PON board, a starting value of a PON board number, and a starting value of a port number of a PON board.
[0058] The number N of the target OLT refers to the sequential number under the Broadband Remote Access Server (BRAS), and each number is unique under the BRAS.
[0059] The full configuration number M of the PON boards of the target OLT refers to the full configuration number of PON boards of different equipment models, that is, the maximum number of PON boards that can be loaded on the target OLT.
[0060] The full number P of PON ports on a single PON board of the target OLT refers to the number of PON ports on each board. The full number P of PON ports on a single PON board of the target OLT can be calculated according to the maximum number of PON ports on the PON board of the target OLT.
[0061] The starting value B_Q of the PON board number of the target OLT refers to the number of the first PON board in the OMC (Operation and Maintenance Center) of the corresponding manufacturer.
[0062] The starting value D_Q of the port number of the PON board refers to the number of the first port (unless otherwise specified, all ports hereinafter are PON ports) on each PON board in the OMC (Operation and Maintenance Center) of the corresponding manufacturer.
[0063] The SVLAN start value S_Q refers to the SVLAN start value allocated on the first OLT, that is, the value of the first SVLAN allocated.
[0064] The SVLAN segment interval S_JG refers to the maximum number of SVLANs allocated to a single OLT.
[0065] The group SVLAN number S_SFZ refers to the number of SVLANs of the same type allocated to a port.
[0066] The OLT group port number S_DFZ refers to the number of ports to which the same SVLAN can be assigned at the same time.
[0067] For each first type SVLAN, the above-mentioned SVLAN start value, SVLAN segment interval, number of grouped SVLANs and number of OLT grouped ports need to be set respectively.
[0068] The CVLAN start value C_Q refers to the value of the first CVLAN allocated to a single SVLAN.
[0069] The number of CVLANs per segment, C_S, refers to the maximum number of CVLANs allocated to a single SVLAN.
[0070] Each CVLAN interval C_JG is the number of VLANs between the allocated CVLAN segments.
[0071] For each second type of CVLAN, the CVLAN start value, the number of CVLANs per segment, and the interval of CVLANs per segment need to be set respectively.
[0072] For example, Figure 2 In the target interface shown, the device parameters and VLAN parameters of the target OLT have been input into the corresponding input boxes through the first input.
[0073] The embodiment of the present invention automatically performs VLAN planning through the number of the target OLT, the full number of PON boards, the full number of PON ports of a single PON board, the starting value of the PON board number and the starting value of the port number of the PON board, the SVLAN starting value of each first type of SVLAN, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN starting value of each second type of CVLAN, the number of each CVLAN segment and the interval of each CVLAN segment, and performs VLAN allocation for the target OLT, thereby improving the efficiency and accuracy of VLAN allocation.
[0074] Based on the content of any of the above embodiments, based on the device parameters and VLAN parameters of the target OLT carried by the first input, VLAN allocation is performed on the target OLT, specifically including: generating a virtual board of the target OLT and a virtual port on the virtual board based on the full number of PON boards, the full number of PON ports of a single PON board, the starting value of the PON board number, and the starting value of the port number of the PON board.
[0075] Specifically, the virtual boards (i.e., virtual PON boards) of the target OLT and the virtual ports (i.e., virtual PON ports) on each virtual board can be automatically generated according to the full configuration number M of the PON board, the full configuration number P of the PON port of a single PON board, the starting value of the PON board number, and the starting value of the port number of the PON board.
[0076] The number of virtual boards generated is M, and the total number of virtual ports generated is M*P. The board number of the Kth virtual board generated may be K+(M-1), and the port number of the Jth virtual port on the Kth virtual board may be J+(P-1), 1≤K≤M, 1≤J≤P.
[0077] If the target OLT already has a virtual board with the board number (i.e., the board number of a virtual board to be generated is the same as the board number of a virtual board that has already been generated) or a virtual port with the port number (for a virtual board, the port number of a virtual port to be generated is the same as the board port of a virtual port that has already been generated on the virtual board), then the virtual board and virtual port will no longer be generated.
[0078] Based on each virtual port, the SVLAN start value of each first type of SVLAN, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN start value, the number of each segment CVLAN and the interval of each segment CVLAN of each second type, the value of each first type SVLAN and the value of each second type CVLAN are determined.
[0079] Specifically, the value of each SVLAN of the first type and the value of each CVLAN of the second type can be determined based on the SVLAN starting value, SVLAN segment interval, number of grouped SVLANs and number of OLT grouped ports of each SVLAN of the first type, and the CVLAN starting value, number of CVLANs per segment and interval of CVLAN per segment of each CVLAN of the second type. According to the above preset formula, it is determined to which virtual ports each SVLAN of the first type and each CVLAN of the second type are allocated, thereby obtaining the value of each SVLAN of the first type and the value of each CVLAN of the second type.
[0080] The embodiment of the present invention generates a virtual board of a target OLT and a virtual port on the virtual board based on the full number of PON boards, the full number of PON ports of a single PON board, the starting value of the PON board number, and the starting value of the port number of the PON board, determines the value of each first-type SVLAN and the value of each second-type CVLAN based on each virtual port, the SVLAN starting value of each first-type SVLAN, the SVLAN segment interval, the number of grouped SVLANs, and the number of OLT grouped ports, and the CVLAN starting value of each second-type CVLAN, the number of each segment CVLAN, and the interval of each segment CVLAN, automatically performs VLAN planning, and performs VLAN allocation to the target OLT, thereby improving the efficiency and accuracy of VLAN allocation.
[0081] Based on the content of any of the above embodiments, based on each virtual port, the SVLAN start value of each first type of SVLAN, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN start value of each second type of CVLAN, the number of each CVLAN segment and the CVLAN interval of each segment, determining the value of each first type of SVLAN and the value of each second type of CVLAN, specifically including: when the number of OLT grouped ports of the first type of SVLAN is less than the product of the full number of PON boards and the full number of PON ports of a single PON board, for the virtual port with a port number of Y on the virtual board numbered X, determining the value of the first type of SVLAN as S_Q+(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ to
[0082] S_Q+(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ+S_SFZ-1.
[0083] Among them, the first type of SVLAN is broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN, dedicated line double-layer SVLAN or dedicated line single-layer SVLAN; S_Q represents the SVLAN starting value; N represents the number of the target OLT; S_JG represents the SVLAN segment interval; B_Q represents the starting value of the PON board number; D_Q represents the starting value of the port number of the PON board; P represents the full number of PON ports of a single PON board; S_DFZ represents the number of OLT grouped ports; S_SFZ represents the number of grouped SVLANs; [] represents rounding.
[0084] Specifically, when the first type of SVLAN is a broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN, dedicated line double-layer SVLAN or dedicated line single-layer SVLAN, the size of M*P and S_DFZ of the first type of SVLAN may be compared first.
[0085] If S_DFZ<M*P, it means that the first type of SVLAN can be allocated to some virtual ports of the target OLT; if S_DFZ=M*P, it means that the first type of SVLAN can be allocated to all virtual ports of the target OLT, that is, it can be allocated to the target OLT.
[0086] If the first type of SVLAN is allocated to some virtual ports of the target OLT, then for the virtual port with the board number X and the port number Y, the value of the first type of SVLAN that can be allocated to the virtual port is S_Q+(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ to
[0087] S_Q+(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ+S_SFZ-1.
[0088] Optionally, the rounding in the above formula may be rounding up, rounding down, or rounding to the nearest integer. Preferably, the rounding in the above formula is rounding up.
[0089] The embodiment of the present invention determines the value of the first type of SVLAN through the SVLAN start value, SVLAN segment interval, grouped SVLAN number and OLT grouped port number of the first type of SVLAN, automatically performs VLAN planning, and performs VLAN allocation to the target OLT, thereby improving the efficiency and accuracy of VLAN allocation.
[0090] Based on the content of any of the above embodiments, based on each virtual port, the SVLAN start value of each first type of SVLAN, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN start value of each second type of CVLAN, the number of each CVLAN segment and the CVLAN interval of each segment, determining the value of each first type of SVLAN and the value of each second type of CVLAN, specifically including: when the number of OLT grouped ports of the first type of SVLAN is less than the product of the full number of PON boards and the full number of PON ports of a single PON board, for the virtual port with a port number of Y on the virtual board numbered X, determining the value of the first type of SVLAN as S_Q-(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ to
[0091] S_Q-(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ-S_SFZ+1.
[0092] Among them, the first type of SVLAN is multicast SVLAN; S_Q represents the SVLAN starting value; N represents the number of the target OLT; S_JG represents the SVLAN segment interval; B_Q represents the starting value of the PON board number; D_Q represents the starting value of the port number of the PON board; P represents the full number of PON ports on a single PON board; S_DFZ represents the number of OLT grouped ports; S_SFZ represents the number of grouped SVLANs; [] represents rounding.
[0093] Specifically, when the first type of SVLAN is a multicast SVLAN, the sizes of M*P and S_DFZ of the first type of SVLAN may also be compared first.
[0094] If S_DFZ<M*P, it means that the first type of SVLAN can be allocated to some virtual ports of the target OLT; if S_DFZ=M*P, it means that the first type of SVLAN can be allocated to all virtual ports of the target OLT, that is, it can be allocated to the target OLT.
[0095] If the first type of SVLAN is allocated to some virtual ports of the target OLT, then for the virtual port with the board number X and the port number Y, the value of the first type of SVLAN that can be allocated to the virtual port is S_Q-(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ to
[0096] S_Q-(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ-S_SFZ+1.
[0097] Optionally, the rounding in the above formula may be rounding up, rounding down, or rounding to the nearest integer. Preferably, the rounding in the above formula is rounding up.
[0098] The embodiment of the present invention determines the value of the first type of SVLAN through the SVLAN start value, SVLAN segment interval, grouped SVLAN number and OLT grouped port number of the first type of SVLAN, automatically performs VLAN planning, and performs VLAN allocation to the target OLT, thereby improving the efficiency and accuracy of VLAN allocation.
[0099] Based on the content of any of the above embodiments, based on each virtual port, the SVLAN starting value of each first type of SVLAN, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN starting value of each second type of CVLAN, the number of each segment of CVLAN and the interval of each segment of CVLAN, determining the value of each first type of SVLAN and the value of each second type of CVLAN, further comprising: when the number of OLT grouped ports of the first type of SVLAN is equal to the product of the full number of PON boards and the full number of PON ports of a single PON board, ([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ=0.
[0100] Specifically, when the first type of SVLAN is a broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN, a dedicated line double-layer SVLAN or a dedicated line single-layer SVLAN, if S_DFZ=M*P, the first type of SVLAN is allocated to the target OLT, then ([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ=0, and the value of the first type of SVLAN that can be allocated to the target OLT is S_Q+(N-1)*S_JG to S_Q+(N-1)*S_jG+S_SFZ-1.
[0101] In the case where the first type of SVLAN is a multicast SVLAN, if S_DFZ=M*P, and the first type of SVLAN is allocated to the target OLT, then ([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ=0, and the value of the first type of SVLAN that can be allocated to the target OLT is S_Q-(N-1)*S_JG to S_Q+(N-1)*S_jG-S_SFZ+1.
[0102] The embodiment of the present invention determines the value of the first type of SVLAN through the SVLAN start value, SVLAN segment interval, grouped SVLAN number and OLT grouped port number of the first type of SVLAN, automatically performs VLAN planning, and performs VLAN allocation to the target OLT, thereby improving the efficiency and accuracy of VLAN allocation.
[0103] Based on the content of any of the above embodiments, based on each virtual port, the SVLAN start value of each first type of SVLAN, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN start value of each second type of CVLAN, the number of each segment of CVLAN and the interval of each segment of CVLAN, determining the value of each first type of SVLAN and the value of each second type of CVLAN, further comprising: determining the value of the second type of CVLAN as C_Q+((X-B_Q)*P+(Y-D_Q+1)-([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_DFZ-1)*C_JG to
[0104] C_Q+((X-B_Q)*P+(Y-D_Q+1)-([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_DFZ-1)*C_JG+C_S-1.
[0105] The second type of CVLAN is a CVLAN corresponding to a broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN or a dedicated line double-layer SVLAN; C_Q represents a CVLAN start value; C_JG represents an interval of each CVLAN segment; and C_S represents the number of CVLANs in each segment.
[0106] Specifically, for SVLANs of broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN or dedicated line double-layer SVLAN, corresponding CVLAN planning and allocation are required.
[0107] If broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN or dedicated line double-layer SVLAN is allocated to some virtual ports of the target OLT, then for the virtual port with the board number X and the port number Y, the value of the corresponding second type of CVLAN that can be allocated on the virtual port is C_Q+((X-B_Q)*P+(Y-D_Q+1)-([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_DFZ-1)*C_JG to
[0108] C_Q+((X-B_Q)*P+(Y-D_Q+1)-([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_DFZ-1)*C_JG+C_S-1.
[0109] If broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN or dedicated line double-layer SVLAN is assigned to the target OLT, then ((X-B_Q)*P+(Y-D_Q+1)-([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_DFZ-1)=0, and the value of the corresponding second type of CVLAN that can be assigned to the target OLT is C_Q to C_Q+C_S-1.
[0110] The embodiment of the present invention determines the value of the second type of CVLAN through the CVLAN start value, the number of CVLANs per segment and the interval of CVLANs per segment of the second type of CVLAN, automatically performs VLAN planning, and performs VLAN allocation to the target OLT, thereby improving the efficiency and accuracy of VLAN allocation.
[0111] In order to facilitate the understanding of the above embodiments of the present invention, the VLAN allocation result of the OLT is described below by using an example.
[0112] The equipment parameters of a certain OLT are as follows:
[0113] The number N is 1; the full number M of the PON board is 18; the full number P of the PON ports of a single PON board is 16; the starting value B_Q of the PON board number is 0; the starting value D_Q of the port number of the PON board is 0.
[0114] The VLAN parameters of the OLT are shown in Table 1.
[0115] Table 1 VLAN parameter list
[0116]
[0117] Some values of the allocated SVLAN may be as shown in Table 2.
[0118] Table 2 SVLAN value list
[0119] PON slogan Broadband outer layer IPTV Outer Layer Voice Outer Layer 0 / 0 1000 2400 3000 0 / 1 1000 2400 3000 0 / 2 1000 2400 3000 0 / 3 1000 2400 3000 0 / 4 1000 2400 3000 0 / 5 1000 2400 3000 0 / 6 1000 2400 3000 0 / 7 1000 2400 3000 0 / 8 1001 2401 3001 0 / 9 1001 2401 3001 0 / 10 1001 2401 3001 0 / 11 1001 2401 3001 0 / 12 1001 2401 3001 0 / 13 1001 2401 3001 0 / 14 1001 2401 3001 0 / 15 1001 2401 3001 … … … … 18 / 9 1037 2437 3037 18 / 10 1037 2437 3037 18 / 11 1037 2437 3037 18 / 12 1037 2437 3037 18 / 13 1037 2437 3037 18 / 14 1037 2437 3037 18 / 15 1037 2437 3037
[0120] The CVLAN values on different ports on each PON board are shown in Table 3 (when the port numbers on different PON boards are the same, the CVLANs are planned in the same way to facilitate identification of different services).
[0121] Table 3 CVLAN value list
[0122]
[0123] The VLAN allocation device of the OLT provided by the present invention is described below. The VLAN allocation device of the OLT described below and the VLAN allocation method of the OLT described above can be referred to each other.
[0124] Figure 3 Schematic diagram of the structure of the VLAN allocation device of the OLT provided by the present invention. Based on the content of any of the above embodiments, Figure 3 As shown, the VLAN allocation device of the OLT includes a receiving module 301 and an allocation module 302, wherein:
[0125] The receiving module 301 is used to receive a first input of a user to a target interface;
[0126] The allocation module 302 is configured to, in response to the first input, allocate a VLAN to the target OLT based on the device parameters and VLAN parameters of the target OLT carried in the first input.
[0127] Specifically, the receiving module 301 and the distributing module 302 are electrically connected.
[0128] The receiving module 301 may receive a first input inputted by a user in an input box or a selection box included in the target interface.
[0129] The allocation module 302 can automatically complete the planning of VLANs under the target OLT and determine the values of various types of VLANs based on the device parameters and VLAN parameters of the target OLT and according to a preset formula.
[0130] Optionally, the device parameters of the target OLT include:
[0131] Number, full number of PON boards, full number of PON ports on a single PON board, starting value of PON board number, and starting value of PON board port number;
[0132] VLAN parameters include:
[0133] The SVLAN start value, SVLAN segment interval, number of grouped SVLANs and number of OLT grouped ports of each first type SVLAN, and the CVLAN start value, number of each CVLAN segment and interval of each CVLAN segment of each second type CVLAN.
[0134] Optionally, the allocation module 302 may include:
[0135] A virtualization unit, used to generate a virtual board of a target OLT and a virtual port on the virtual board based on the full number of PON boards, the full number of PON ports of a single PON board, the starting value of the PON board numbering, and the starting value of the port numbering of the PON board;
[0136] The allocation unit is used to determine the value of each SVLAN of the first type and the value of each CVLAN of the second type based on each virtual port, the SVLAN start value of each SVLAN of the first type, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN start value, the number of each CVLAN segment and the CVLAN segment interval of each CVLAN of the second type.
[0137] Optionally, the allocation unit may be specifically configured to determine the value of the first type of SVLAN as S_Q+(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ to S_Q+(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ for the virtual port with port number Y on the virtual board numbered X when the number of OLT group ports of the first type of SVLAN is less than the product of the full configuration number of the PON board and the full configuration number of the PON port of the single PON board.
[0138] S_Q+(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ+S_SFZ-1;
[0139] Among them, the first type of SVLAN is broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN, dedicated line double-layer SVLAN or dedicated line single-layer SVLAN; S_Q represents the SVLAN starting value; N represents the number of the target OLT; S_JG represents the SVLAN segment interval; B_Q represents the starting value of the PON board number; D_Q represents the starting value of the port number of the PON board; P represents the full number of PON ports of a single PON board; S_DFZ represents the number of OLT grouped ports; S_SFZ represents the number of grouped SVLANs; [] represents rounding.
[0140] Optionally, the allocation unit may be specifically configured to determine the value of each SVLAN of the first type and the value of each CVLAN of the second type based on each virtual port, the SVLAN start value of each SVLAN of the first type, the SVLAN segment interval, the number of grouped SVLANs, and the number of OLT grouped ports, and the CVLAN start value of each CVLAN of the second type, the number of each CVLAN segment, and the CVLAN interval of each CVLAN segment, specifically including:
[0141] When the number of OLT group ports of the first type of SVLAN is less than the product of the full number of PON boards and the full number of PON ports of a single PON board, for the virtual port with the port number Y on the virtual board with the port number X, the value of the first type of SVLAN is determined as
[0142] S_Q-(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ to
[0143] S_Q-(N-1)*S_JG+([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ-S_SFZ+1;
[0144] Among them, the first type of SVLAN is multicast SVLAN; S_Q represents the SVLAN starting value; N represents the number of the target OLT; S_JG represents the SVLAN segment interval; B_Q represents the starting value of the PON board number; D_Q represents the starting value of the port number of the PON board; P represents the full number of PON ports on a single PON board; S_DFZ represents the number of OLT grouped ports; S_SFZ represents the number of grouped SVLANs; [] represents rounding.
[0145] Optionally, when the number of OLT group ports of the first type of SVLAN is equal to the product of the full number of PON boards and the full number of PON ports of a single PON board, ([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_SFZ=0.
[0146] Optionally, the allocation unit may be specifically configured to determine the value of the second type of CVLAN as C_Q+((X-B_Q)*P+(Y-D_Q+1)-([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_DFZ-1)*C_JG to
[0147] C_Q+((X-B_Q)*P+(Y-D_Q+1)-([((X-B_Q)*P+(Y-D_Q+1)) / S_DFZ]-1)*S_DFZ-1)*C_JG+C_S-1,
[0148] The second type of CVLAN is a CVLAN corresponding to a broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN or a dedicated line double-layer SVLAN; C_Q represents a CVLAN start value; C_JG represents an interval of each CVLAN segment; and C_S represents the number of CVLANs in each segment.
[0149] The VLAN allocation device of OLT provided in the embodiment of the present invention is used to execute the VLAN allocation method of OLT of the present invention. Its implementation is consistent with the implementation of the VLAN allocation method of OLT provided by the present invention and can achieve the same beneficial effects, which will not be repeated here.
[0150] The VLAN allocation device of the OLT is used in the VLAN allocation method of the OLT in the above-mentioned embodiments. Therefore, the description and definition in the VLAN allocation method of the OLT in the above-mentioned embodiments can be used for understanding each execution module in the embodiments of the present invention.
[0151] The embodiment of the present invention can improve the efficiency and accuracy of VLAN allocation by acquiring the device parameters and VLAN parameters of the target OLT input by the user, automatically performing VLAN planning based on the device parameters and VLAN parameters of the target OLT, and performing VLAN allocation on the target OLT. Furthermore, the standardized planning of SVLAN and CVLAN under the OLT can be realized, thereby supporting the automatic, reasonable and orderly allocation of VLAN resources when the service is activated, providing strong support for future service activation work from the perspective of user perception, and improving the efficiency of service activation. Furthermore, all VLAN information under the OLT is planned and allocated at one time, which can avoid repeated planning, planning omissions, repeated allocations and allocation omissions.
[0152] The electronic device and storage medium provided by the present invention are described below. The electronic device and storage medium described below and the VLAN allocation method of the OLT described above can be referred to each other.
[0153] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call a computer program in the memory 430 to execute the steps of the VLAN allocation method of the OLT, for example, including: receiving a first input of a user to a target interface; in response to the first input, based on the device parameters and VLAN parameters of the target OLT carried in the first input, performing VLAN allocation on the target OLT.
[0154] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0155] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the steps of the VLAN allocation method of the OLT provided by the above methods, for example, including: receiving a first input from a user to a target interface; in response to the first input, based on the device parameters and VLAN parameters of the target OLT carried by the first input, allocating VLAN to the target OLT.
[0156] On the other hand, an embodiment of the present application also provides a processor-readable storage medium, which stores a computer program, and the computer program is used to enable the processor to execute the steps of the methods provided in the above embodiments, for example, including: receiving a first input from a user to a target interface; in response to the first input, based on the device parameters and VLAN parameters of the target OLT carried by the first input, assigning a VLAN to the target OLT.
[0157] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0158] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A VLAN allocation method for OLT, characterized in that: include: Receiving a first input from a user on a target interface; In response to the first input, based on the device parameters and VLAN parameters of the target OLT carried in the first input, perform VLAN allocation on the target OLT; The equipment parameters of the target OLT include: Number, full number of PON boards, full number of PON ports on a single PON board, starting value of PON board number, and starting value of PON board port number; The VLAN parameters include: The SVLAN start value, SVLAN segment interval, number of grouped SVLANs and number of OLT grouped ports of each first type of SVLAN, and the CVLAN start value, number of CVLANs per segment and interval of each CVLAN per segment of each second type of CVLAN; The allocating a VLAN to the target OLT based on the device parameters and VLAN parameters of the target OLT carried by the first input specifically includes: Generate a virtual board of the target OLT and a virtual port on the virtual board based on the full number of the PON board, the full number of PON ports of a single PON board, the starting value of the PON board number, and the starting value of the port number of the PON board; Based on each of the virtual ports, the device parameters of the target OLT, the SVLAN starting value of each of the first type of SVLANs, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN starting value, the number of CVLANs per segment and the CVLAN interval per segment of each of the second type of CVLANs, the value of each of the first type of SVLANs and the value of each of the second type of CVLANs are determined.
2. The VLAN allocation method of OLT according to claim 1, characterized in that: The determining, based on each of the virtual ports, the SVLAN start value of each of the first type of SVLANs, the SVLAN segment interval, the number of grouped SVLANs, and the number of OLT grouped ports, and the CVLAN start value of each of the second type of CVLANs, the number of each CVLAN segment, and the CVLAN interval of each CVLAN segment, the value of each of the first type of SVLANs and the value of each of the second type of CVLANs specifically includes: When the number of OLT group ports of the first type of SVLAN is less than the product of the full number of the PON board and the full number of the PON ports of the single PON board, for the virtual port with the port number Y on the virtual board with the port number X, the value of the first type of SVLAN is determined as to ; Among them, the first type of SVLAN is broadband SVLAN, IPTV_SVLAN, voice SVLAN, ITMS_SVLAN, dedicated line double-layer SVLAN or dedicated line single-layer SVLAN; S_Q represents the SVLAN starting value; N represents the number of the target OLT; S_JG represents the SVLAN segment interval; B_Q represents the starting value of the PON board number; D_Q represents the starting value of the port number of the PON board; P represents the full number of PON ports on a single PON board; S_DFZ represents the number of OLT grouped ports; S_SFZ represents the number of grouped SVLANs; [] represents rounding.
3. The VLAN allocation method of OLT according to claim 1, characterized in that: The determining, based on each of the virtual ports, the SVLAN start value of each of the first type of SVLANs, the SVLAN segment interval, the number of grouped SVLANs, and the number of OLT grouped ports, and the CVLAN start value of each of the second type of CVLANs, the number of each CVLAN segment, and the CVLAN interval of each CVLAN segment, the value of each of the first type of SVLANs and the value of each of the second type of CVLANs specifically includes: When the number of OLT group ports of the first type of SVLAN is less than the product of the full number of the PON board and the full number of the PON ports of the single PON board, for the virtual port with the port number Y on the virtual board with the port number X, the value of the first type of SVLAN is determined as to ; Among them, the first type of SVLAN is a multicast SVLAN; S_Q represents the SVLAN starting value; N represents the number of the target OLT; S_JG represents the SVLAN segment interval; B_Q represents the starting value of the PON board number; D_Q represents the starting value of the port number of the PON board; P represents the full number of PON ports on a single PON board; S_DFZ represents the number of OLT grouped ports; S_SFZ represents the number of grouped SVLANs; [] represents rounding.
4. The VLAN allocation method of OLT according to claim 2 or 3, characterized in that: The method of determining the value of each SVLAN of the first type and the value of each CVLAN of the second type based on each virtual port, the SVLAN start value of each SVLAN of the first type, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN start value, the number of each CVLAN segment and the CVLAN interval of each CVLAN of the second type, further includes: In the case where the number of OLT group ports of the first type of SVLAN is equal to the product of the full number of the PON board and the full number of the PON ports of the single PON board, .
5. The VLAN allocation method of OLT according to claim 2, characterized in that: The method of determining the value of each SVLAN of the first type and the value of each CVLAN of the second type based on each virtual port, the SVLAN start value of each SVLAN of the first type, the SVLAN segment interval, the number of grouped SVLANs and the number of OLT grouped ports, and the CVLAN start value, the number of each CVLAN segment and the CVLAN interval of each CVLAN of the second type, further includes: The value of the second type of CVLAN is determined as to ; The second type of CVLAN is a CVLAN corresponding to a broadband SVLAN, an IPTV_SVLAN, a voice SVLAN, an ITMS_SVLAN or a dedicated line double-layer SVLAN; C_Q represents a CVLAN starting value; C_JG represents an interval of each CVLAN segment; and C_S represents the number of CVLANs in each segment.
6. A VLAN allocation device for an OLT, characterized in that: include: A receiving module, used for receiving a first input of a user to a target interface; an allocation module, configured to, in response to the first input, allocate a VLAN to the target OLT based on device parameters and VLAN parameters of the target OLT carried in the first input; The equipment parameters of the target OLT include: Number, full number of PON boards, full number of PON ports on a single PON board, starting value of PON board number, and starting value of PON board port number; The VLAN parameters include: The SVLAN start value, SVLAN segment interval, number of grouped SVLANs and number of OLT grouped ports of each first type of SVLAN, and the CVLAN start value, number of CVLANs per segment and interval of each CVLAN per segment of each second type of CVLAN; The allocation module comprises: A virtualization unit, configured to generate a virtual board of the target OLT and a virtual port on the virtual board based on the full number of the PON board, the full number of PON ports of a single PON board, a starting value of the PON board number, and a starting value of the port number of the PON board; an allocation unit, configured to determine a value of each SVLAN of the first type and a value of each CVLAN of the second type based on each of the virtual ports, the device parameters of the target OLT, an SVLAN start value of each SVLAN of the first type, an SVLAN segment interval, a number of grouped SVLANs, and a number of OLT grouped ports, and a CVLAN start value, a number of CVLANs per segment, and a CVLAN interval per segment of each CVLAN of the second type.
7. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the steps of the VLAN allocation method of the OLT according to any one of claims 1 to 5 are implemented.
8. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the steps of the VLAN allocation method of the OLT according to any one of claims 1 to 5.
Citation Information
Patent Citations
VLAN (virtual local area network) conversion implementation method
CN103701679A
Passive optical network access deployment method and management system
CN104717576A