CN112468897A - PON port cut-over automatic configuration method and device - Google Patents

PON port cut-over automatic configuration method and device Download PDF

Info

Publication number
CN112468897A
CN112468897A CN202011266714.9A CN202011266714A CN112468897A CN 112468897 A CN112468897 A CN 112468897A CN 202011266714 A CN202011266714 A CN 202011266714A CN 112468897 A CN112468897 A CN 112468897A
Authority
CN
China
Prior art keywords
equipment
work order
olt
port
pon port
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.)
Granted
Application number
CN202011266714.9A
Other languages
Chinese (zh)
Other versions
CN112468897B (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.)
Zhongying Youchuang Information Technology Co Ltd
Original Assignee
Zhongying Youchuang Information Technology 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 Zhongying Youchuang Information Technology Co Ltd filed Critical Zhongying Youchuang Information Technology Co Ltd
Priority to CN202011266714.9A priority Critical patent/CN112468897B/en
Publication of CN112468897A publication Critical patent/CN112468897A/en
Application granted granted Critical
Publication of CN112468897B publication Critical patent/CN112468897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • 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
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a PON port cutting automatic configuration method and a PON port cutting automatic configuration device, wherein the method comprises the following steps: inputting source A/B end equipment and port information, target A/B end equipment and port information, VLAN range to be cut and other remark information; calling a script to acquire service data information of an ONU (optical network unit) hung below a PON port to be cut, if not, reporting an error and exiting, ending a work order, and if so, executing generation of work order data; generating a disassembly sub-worksheet and an assembly sub-worksheet according to the source A/B terminal equipment and the target A/B terminal equipment; if the source A/B terminal equipment and the target A/B terminal equipment are the same equipment, executing the disassembly sub-worksheet first, and then executing the assembly sub-worksheet; otherwise, the target A/B terminal equipment is logged in first, the machine-installed sub-work order is executed, and then the source A/B terminal equipment is logged in to execute the machine-disassembled sub-work order. The method and the device realize automatic management of PON port cutting of the OLT equipment, avoid the risk of manual misoperation and improve the operation efficiency of relay cutting.

Description

PON port cut-over automatic configuration method and device
Technical Field
The invention relates to the field of PON port cutting configuration, in particular to a PON port cutting automatic configuration method and a PON port cutting automatic configuration device.
Background
At present, PON access has become a main mode of broadband access, and with increasing expansion of user scale, a service scenario that PON cut-over needs to be performed on OLT equipment often occurs, which means that source and target end configuration needs to be performed on OLT equipment, while cut-over configuration steps are many, and parameters also need to be adjusted accordingly according to different access modes, service types, equipment manufacturers, and user areas. In reality, the manual operation mode is not only low in efficiency, easy to operate by mistake and complicated in operation, but also the operation logs are difficult to collect and trace, so that an intensive and automatic means is urgently needed to ensure the accuracy, effectiveness and efficiency of the cutover configuration.
Disclosure of Invention
In order to solve the problems existing in the manual operation mode, the invention provides a PON port cutting automatic configuration method and a PON port cutting automatic configuration device.
In order to achieve the purpose, the invention adopts the following technical scheme:
in an embodiment of the present invention, an automatic configuration method for PON port cutover is provided, where the method includes:
step one, work order data entry
Inputting source A/B end equipment and port information, target A/B end equipment and port information, VLAN range to be cut and other remark information;
step two, acquiring service data information
Calling a script to acquire service data information of an ONU (optical network unit) hung below a PON port to be cut, if not, reporting an error and exiting, ending a work order, and if so, executing generation of work order data;
step three, generating work order data
Generating a disassembly sub-worksheet and an assembly sub-worksheet according to the source A/B terminal equipment and the target A/B terminal equipment;
step four, comparing whether the source A/B end equipment and the target A/B end equipment are the same equipment or not
If the equipment is the same, executing the disassembly sub-worksheet, and then executing the assembly sub-worksheet; if the equipment is cross-equipment, the target A/B-side equipment is logged in first, the machine-installed sub-work order is executed, and then the source A/B-side equipment is logged in to execute the machine-disassembled sub-work order.
Further, the work order data entry of the first step specifically includes:
inputting general information: a service operation type and a service type;
inputting PON port parameters of source OLT equipment: the method comprises the following steps of OLT equipment name, OLT management IP, OLT equipment manufacturer, OLT equipment detailed model, cut-over PON port and ONU to be cut-over;
inputting PON port parameters of the target OLT equipment: the method comprises the following steps of (1) identifying the name of OLT equipment, the IP of OLT management, the manufacturer of the OLT equipment, the detailed model of the OLT equipment and a target PON port;
inputting destination PON port SVLAN parameters: broadband SVLAN, ITMS SVLAN, untrusted VOIP SVLAN and IPTV SVLAN.
Further, the acquiring of the service data information in the second step specifically includes:
analyzing PON port information according to the input PON port parameters of the source OLT equipment;
the login equipment checks the information of the line template and the service template;
checking PON port service configuration information;
and storing and returning the acquired information.
Further, the collecting information returning specifically includes:
if any link of the script fails to be executed, including the failure of the execution command or the failure of any onu in matching, an error is reported and the exit is carried out, and result is set to be 0, and errmsg is set to correspond to the failure reason and the execution result information;
if the script is completely executed successfully, the collected service data information is put into a PONPortServInfo table in a storage mode; deleting the original record in the list according to the work order number, and then inserting new service data information; if the storage fails, setting result to be 0, and errmsg to be failure to store the service data information of the ONU hung under the PON port; if the warehousing is successful, setting result to be 1, and emptying the errmsg.
In an embodiment of the present invention, an automatic configuration device for PON port splicing is further provided, where the device includes:
the work order data entry module is used for entering source A/B end equipment and port information, target A/B end equipment and port information, VLAN range to be cut and other remark information;
the business data information acquisition module is used for calling a script to acquire business data information of an ONU (optical network unit) hung below a PON port to be cut, if not, an error is reported and quit is finished, and if the business data information is acquired, the generation of work order data is executed;
the work order generation data module is used for generating an disassembling sub-work order and an assembling sub-work order according to the source A/B terminal equipment and the target A/B terminal equipment;
the comparison source end and target end module is used for comparing whether the source A/B end equipment and the target A/B end equipment are the same equipment or not, if so, the disassembly sub-worksheet is executed first, and then the assembly sub-worksheet is executed; if the equipment is cross-equipment, the target A/B-side equipment is logged in first, the machine-installed sub-work order is executed, and then the source A/B-side equipment is logged in to execute the machine-disassembled sub-work order.
Further, the work order data entry module is specifically configured to:
inputting general information: a service operation type and a service type;
inputting PON port parameters of source OLT equipment: the method comprises the following steps of OLT equipment name, OLT management IP, OLT equipment manufacturer, OLT equipment detailed model, cut-over PON port and ONU to be cut-over;
inputting PON port parameters of the target OLT equipment: the method comprises the following steps of (1) identifying the name of OLT equipment, the IP of OLT management, the manufacturer of the OLT equipment, the detailed model of the OLT equipment and a target PON port;
inputting destination PON port SVLAN parameters: broadband SVLAN, ITMS SVLAN, untrusted VOIP SVLAN and IPTV SVLAN.
Further, the module for acquiring service data information is specifically configured to:
analyzing PON port information according to the input PON port parameters of the source OLT equipment;
the login equipment checks the information of the line template and the service template;
checking PON port service configuration information;
and storing and returning the acquired information.
Further, the collecting information returning specifically includes:
if any link of the script fails to be executed, including the failure of the execution command or the failure of any onu in matching, an error is reported and the exit is carried out, and result is set to be 0, and errmsg is set to correspond to the failure reason and the execution result information;
if the script is completely executed successfully, the collected service data information is put into a PONPortServInfo table in a storage mode; deleting the original record in the list according to the work order number, and then inserting new service data information; if the storage fails, setting result to be 0, and errmsg to be failure to store the service data information of the ONU hung under the PON port; if the warehousing is successful, setting result to be 1, and emptying the errmsg.
In an embodiment of the present invention, a computer device is further provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the PON splicing automation configuration method is implemented.
In an embodiment of the present invention, a computer-readable storage medium is further provided, where the computer-readable storage medium stores a computer program for executing the PON cutting automatic configuration method.
Has the advantages that:
the invention realizes the automatic management of the PON port cutting of the OLT equipment, avoids the risk of manual misoperation and greatly improves the operation efficiency of the relay cutting.
Drawings
Fig. 1 is a schematic flow chart of an automated PON splicing configuration method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an automatic configuration device for PON splicing according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described below with reference to several exemplary embodiments, which should be understood to be presented only to enable those skilled in the art to better understand and implement the present invention, and not to limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to an embodiment of the present invention, a PON splicing automation configuration method and apparatus are provided, which includes the following steps:
(1) the cut-and-splice function includes:
managing the cutting operation in a PON port cutting work order mode: the method comprises the steps of new creation, modification and query of the work order and the management and control of work order configuration issuing operation.
Supporting equipment manufacturers: huashi and Zhongxing.
(2) The following cutover scenarios are supported:
FTTH Internet special line: BAS/SR- -Convergence switch, Single-ended BAS (BAS-OLT), Single-ended Convergence switch (9312-OLT) relay cutover.
MPLSVPN line: BAS/SR- -Convergence/Access switch, Convergence switch- -Convergence/Access switch, Single-ended BAS (BAS-OLT), Single-ended Convergence switch (9312-OLT) relay cutover.
FTTX special voice line: SR-trunk cutover in aggregation switch, trunk cutover in single-ended aggregation switch (9312-OLT).
(3) Description of the cut-over range:
the method supports same equipment, cross-equipment but not cut-over across manufacturers, cross-equipment and cut-over across manufacturers.
Cut across the equipment and across the manufacturer.
Cutting off the equipment, namely deleting the original configuration and then making a new configuration; and performing cross-device cutting, namely firstly performing target device configuration and then deleting the original device configuration.
VLAN and IP are depreciated. The VLAN needs to verify no collision under the destination port.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
The implementation and characteristics of the present invention are described in terms of functional points, as follows:
1. cutover configuration operation flow
Fig. 1 is a schematic flow chart of an automated configuration method for PON splicing according to an embodiment of the present invention. As shown in fig. 1, the overall process is as follows:
(1) and (3) entering work order data: and inputting source A/B end equipment and port information, target A/B end equipment and port information, VLAN range to be cut and other remark information.
(2) Acquiring service data information: and calling the script to acquire the service data information of the ONU hung below the PON port to be cut. If not, the user reports an error and exits, and the work order is finished. And if the data is acquired, executing to generate the work order data.
(3) Generating work order data: and generating the disassembling sub-worksheet and the assembling sub-worksheet according to the source equipment and the target equipment.
(4) Comparing whether the source end and the target end are the same as the equipment: if the equipment is the same, executing a machine disassembling sub-work order and executing a machine assembling sub-work order; and if the equipment is crossed, executing the installed sub-worksheet on the target equipment, and then executing the removed sub-worksheet on the source equipment.
2. Work order data entry
The specific steps of work order data entry are as follows:
(1) the input general information comprises the following contents:
the service operation type is as follows: text box, read only. Fixed value: and (4) cutting, wherein the corresponding OperType is cutover.
And (4) service type: text box, read only. Fixed value: and (4) cutting off the PON port, wherein the corresponding ServTypeID is PONPortCutover.
(2) The PON port parameters of the input source OLT equipment comprise the following contents:
OLT equipment name: and providing the equipment with the current user having the configuration authority and the equipment type DEV _ IP _ T for selection.
OLT manages IP: a read-only text box, which automatically brings in the corresponding management IP (device).
OLT equipment manufacturer: a read-only text box, which automatically brings the corresponding equipment manufacturer (devicevendor).
Detailed models of OLT equipment: a read-only text box, automatically bringing the corresponding device detailed model (device).
Cutting a PON port: and selecting a drop-down frame, singly selecting, and inquiring in linkage with the selected source OLT equipment.
And (3) ONU to be cut: and selecting a pull-down frame for multi-selection, and performing linkage query with the selected source OLT equipment and the cut-over PON port.
(3) The PON port parameters of the input target OLT equipment comprise the following contents:
OLT equipment name: and providing the equipment with the current user having the configuration authority and the equipment type DEV _ IP _ T for selection.
OLT manages IP: a read-only text box, which automatically brings in the corresponding management IP (device).
OLT equipment manufacturer: a read-only text box, which automatically brings the corresponding equipment manufacturer (devicevendor). Checking: if the source OLT equipment manufacturer < > is the destination OLT equipment manufacturer, the prompt is' only support for the PON port cut-over between the same equipment manufacturers at present, please re-input the data. "
Detailed models of OLT equipment: a read-only text box, automatically bringing the corresponding device detailed model (device).
A destination PON port: and selecting a drop-down frame, singly selecting, and inquiring in linkage with the selected target OLT equipment.
(4) The input destination PON port SVLAN parameters comprise the following contents:
broadband SVLAN: text box, filled in manually, supports single VLAN. VLAN value ranges are all 1-4094;
ITMS SVLAN: the same as above;
untrusted VOIP SVLAN: the same as above;
IPTV SVLAN: as above.
3. Generating a work order
The specific steps for generating the work order are as follows:
(1) firstly, calling a script getOltPonportInfo.pl according to parameter information input by a user to acquire service data information of an ONU hung under a PON port to be cut. Inputting parameters:
olt _ deviceid: corresponding source _ olt _ deviceid
olt _ ponport: corresponding source _ poiport
onu _ list: corresponding cutoff _ ouid
sheet _ no: the temporary work order number generated at present (the number is used as the official work order number after the call is successful)
(2) If the call result returns result equal to 1, the following table saving operation is continued. Otherwise, the popup prompts the user that the service data information of the ONU hung below the PON to be cut fails to be acquired. The reasons for failure are as follows: \ n $ errmsg.
(3) The work order data model is stored as follows:
the table-in-storage logic of the main work order PONPortCutoverSheet is as follows in Table 1:
TABLE 1 Main work order PONPortCutoverSheet
Figure BDA0002776302610000101
Figure BDA0002776302610000111
The sub-worksheet workschet sheet warehousing logic is as follows in table 2:
TABLE 2 work sheet Table
Name of field OLT detacher worksheet OLT installation work order
wsnbr Automatically generated by general methods Automatically generated by general methods
servtypeid PONPORTCUTOVER PONPORTCUTOVER
servmodelid Interface entry Interface entry
opertype del add
custid 10000 10000
status A A
createuser Current user ID Current user ID
createtime Current time Current time
plandeploytime Emptying the container Emptying the container
operuser Current user ID Current user ID
opertime Current time Current time
The sub-worksheet parameter table warehousing logic is as follows in table 3:
TABLE 3 sub worksheet parameter Table
Figure BDA0002776302610000112
Figure BDA0002776302610000121
Function button:
previewing: and defaulting disable, and clicking when the work order is successfully created and the main work order state < > C is in the main work order state. And calling the sub work orders with the work order numbers not being empty to perform configuration preview operation. And after the execution is finished, merging and presenting the execution logs of the sub work orders.
Issuing: default disable, clickable after the work order was successfully created and the master work order status is A, P, F.
Main work order state ═ a: setting the state of the main work order as B, and calling the configuration issuing operation of the sub work orders according to the following steps. And after the execution is finished, merging and presenting the execution logs of the sub work orders.
If source _ olt _ device id < > purpose _ olt _ device id, the execution sequence is as follows:
the configuration template of the add _ postort _ wsnbr sub-work order is called.
If source _ olt _ device _ is equal to purpose _ olt _ device, the execution sequence is as follows:
calling a configuration template of the del _ pontport _ wsnbr sub-work order, and continuing if the execution is successful; otherwise, setting the main work order state sheet _ status as P. And then exits.
And calling a configuration template of the add _ pop port _ wsnbr sub-work order, if the execution is successful, indicating that the execution of the whole work order is successful, and setting the main work order state sheet _ status as C. If the execution fails, the main work order state sheet _ status is set to P.
Main work order state ═ F/P: setting the state of the sub-work order as F as B, and calling the configuration issuing operation of the sub-work order according to the following steps. And after the execution is finished, merging and presenting the execution logs of the sub work orders.
If source _ olt _ device id < > purpose _ olt _ device id, the execution sequence is as follows:
and if the add _ popup _ sheet _ status is equal to F, calling the configuration template of the add _ popup _ wsnbr sub-work order.
If source _ olt _ device _ is equal to purpose _ olt _ device, the execution sequence is as follows:
if del _ pontport _ sheet _ status is equal to F, calling the configuration template of the del _ pontport _ wsnbr sub-worksheet, and if the execution is successful, continuing; otherwise, setting the main work order state sheet _ status as P, and then exiting. If del _ pontport _ sheet _ status < > F, the next step is continued.
And if the add _ pop ort _ sheet _ status is equal to F, calling a configuration template of the add _ pop ort _ wsnbr sub-work order, if the execution is successful, indicating that the whole work order is successfully executed, and setting a main work order state sheet _ status to C. If the execution fails, the main work order state sheet _ status is set to P.
4. Work order management
The work order management functions include:
(1) and inquiring the work order information according to various conditions.
(2) Providing the functionality of creating a new work order.
(3) And various operation functions of the work order are provided, including editing, detail checking, previewing, issuing and detailed log checking.
[ Inquiry Condition ]
(1) The configuration type is as follows: and a text box, disable, fixed as 'PON port cut-over'.
(2) And (3) node: and according to the node tree of which the current user has the configuration authority. The device can be a private beam source OLT apparatus or a destination OLT apparatus.
(3) Source OLT equipment name: text box, user entry. Fuzzy matching is supported. Corresponding to the PONPortCutoverstreet source _ olt _ devicename.
(4) Source OLT device IP: text box, user entry. Fuzzy matching is supported. Corresponding to the PONPortCutoversheet source _ olt _ loopaddress.
(5) A source PON port: text box, user entry. Fuzzy matching is supported. Source _ pontport corresponds to PONPortCutoversheet.
(6) Destination OLT equipment name: text box, user entry. Fuzzy matching is supported. Corresponding to pointortcutover sheet. purpose _ olt _ devicename.
(7) Destination OLT equipment IP: text box, user entry. Fuzzy matching is supported. Corresponding to punportcutover sheet. purpose _ olt _ loopaddress.
(8) A destination PON port: text box, user entry. Fuzzy matching is supported. Corresponding to pointortcutover sheet.
(9) The operator: text box, user entry. Fuzzy matching is supported. Create _ user, corresponding to PONPortCutoversheet.
(10) The work order state: and (3) pulling down a list box, wherein the enumeration value to be selected is as follows: "to be deployed" (a), "in deployment" (B), "failed" (F), "as built" (C), "partial success" (P). Corresponding to ponportcutover sheet.
(11) Creation time: including the start-stop range, accurate to seconds, the end time needs to be greater than or equal to the start time. Create _ time corresponds to PONPortCutoversheet.
(12) The work order attribute name: and (4) installing the PON port with the work order (the work order number and the state), disassembling the PON port with the work order (the work order number and the state), and pulling down the list frame to obtain the PON port with the work order from the dictionary table.
(13) The work order attribute value is as follows: and (4) user input and fuzzy matching.
[ operating button ]
(1) Newly building a work order: the user clicks on this button and the system provides the new work order function.
(2) And (3) inquiring: the results list includes (in order): the method comprises the steps of service type, creation time, city, source OLT equipment name, source OLT equipment IP, source OLT model, source PON port, destination OLT equipment name, destination OLT equipment IP, destination OLT model, destination PON port, operator, work order state, work order operation and each sub work order number/state. And the work order operation bar is an operation link, and corresponding operation can be executed by clicking.
(3) And (4) work order operation: operations are provided for editing and viewing work order details. And displaying operable operation links according to the work order state.
The master worksheet is shown in Table 4 below:
TABLE 4 Main worksheet status/operation Table
State/operation Editing Details of
A-pending deployment
In B-deployment ×
P-partial success ×
F-failure
C-completion ×
The worksheets are shown in Table 5 below: and if the sub work order number is null, neither the work order number nor the operation link in the status bar is displayed. If the user is a city user, no operation link of 'preview' and 'down' is provided.
TABLE 5 sub-worksheet status/operation TABLE
State/operation Preview Issue down Detailed journal
A-pending deployment
In B-deployment ×
F-failure
C-completion × ×
Previewing: and transmitting the work order number of the corresponding sub work order, and calling the preview operation of the work order.
Issuing: and transmitting the work order number of the corresponding sub work order and calling the issuing operation of the work order. When the work order state is empty, the state is set as B. Judging and executing according to the type of the sub work order:
installing a work order: if source _ olt _ deviceid ═ purpose _ olt _ deviceid & & del _ pontport _ sheet _ status < > C, a prompt is given to "please perform the issue of the tear-down work order first. And if not, invoking the issuing operation.
Disassembling the machine worksheet: if source _ olt _ deviceid < > purpose _ olt _ deviceid & & add _ pop ort _ sheet _ status < > C, then prompt "please execute the issue of the installation worksheet first. And if not, invoking the issuing operation.
Detailed logging: and transmitting the work order number corresponding to the sub work order, displaying the task log corresponding to the sub work order through a popup window, and displaying the result in a reverse order of execution time execime of the work order.
5. Obtaining business data
(1) The specific steps of acquiring the service data comprise:
and analyzing the PON port information according to the incoming PON port parameters.
And the login equipment checks the line template and the service template information.
And checking PON port service configuration information.
And storing and returning the acquired information.
(2) pI obtains service data script getOltPonportInfo
Program functions: and acquiring the service data information of the ONU hung below the PON port appointed by the OLT.
Inputting parameters:
olt _ deviceid: the OLT device ID.
olt _ ponport: a PON port.
onu _ list: the ONU list is in the format of "ouid" (loid), and a plurality of ONUs are separated by commas.
sheet _ no: the current work order number.
Outputting parameters:
result: 1-success, 0-failure.
errmsg: and (4) failure information.
Program logic:
olt _ ponport parameter unpack:
if olt _ pnp exists "_", then olt _ pnp is set to take the string after the olt _ pnp last "_".
olt _ pnp _ delimiter could be "-" or "/". Distinguishing according to the number of separators:
if the number of delimiters is 3, the parameter olt _ pnp is olt _ pnp 1 st delimiter followed by the string. For example: 0-0-X-X.
If the number of delimiters is 2, the parameter olt _ pnp is not changed. For example: 0-X-X.
Other cases are as follows: the method directly reports the error and returns 'PON port format is illegal'.
The "-" in olt _ ponport obtained in the above step is replaced with "/".
And acquiring a frame, a slot number and a port number. Olt _ ponport is split.
shelf is the number from left to the 1 st delimiter.
slot is the number from left after the 1 st delimiter and before the 2 nd delimiter.
port is the number from left after the 2 nd delimiter.
Logging into the OLT device OLT _ deviceid, executing the command to obtain the required data and returning the execution result.
The method comprises the following steps:
checking the port type: and if the inquiry is not successful, reporting an error, namely that the port type of the corresponding ONU cannot be acquired. The checking method comprises the following steps: and assigning $ port _ type ═ epon or gpon according to the port type corresponding to the $ slot matching (the numerical value below the slot number row in the first column is the slot).
Executing the command display board 0, and then waiting for the command to show back that the "}:" appears, and then executing a line feed.
Figure BDA0002776302610000191
The results are obtained as above, if in the second column the first 2 letters after the BoardName number contain an "E", denoted epon; if the second column, the first 2 letters after the BoardName number contains a "G", then gpon, as above, cards 1 through 7 for slot 0 are all epon, and cards 13 through 15 are all gpon.
A. Checking all line template numbers and line template names:
executing a command: display on-linear epon all $ port _ type
display ont-lineprofile gpon all
{<cr>||<K>}:
Command:
display ont-linefile gpon all///view global all line template numbers and line template names
Figure BDA0002776302610000201
Total number: 5
And recording the relation between the template number and the template name according to the execution result.
B. Checking all the service template numbers and the service template names:
executing a command: display on-srvprofile epon all $ port _ type NM-HHHT-JQCS-OLT-3.MAN (config) # display on-srvprofile gpon all
{<cr>||<K>}:
Command:
display ont-srvprofile gpon all///view global all-service template numbers and names
Figure BDA0002776302610000211
Total number: 2
And recording the relation between the template number and the template name according to the execution result.
C. Checking PON port configuration:
NM-HHHT-JQJF-OLT-1.MAN(config)#display
current-configuration port 0/11/2 --olt_ponport
[MA5600V800R015:5800]
#
[gpon]
<gpon-0/11>
interface gpon 0/11
port 2 ont-auto-find enable
ont add 2 0 loid-auth"4711LO01923186"always-on omci
ont-lineprofile-id 13
ont-srvprofile-id 12 desc"04714673480"
match the row containing the loid-auth. The parameter onu _ list is decomposed into a plurality of oneids and loids, and the oneids are matched one by one. Wherein ouid is the numerical value before "loid-auth", and loid is the string after "loid-auth" (0 is ouid, 4711LO01923186 is loid). After matching, obtaining a value after ont-lineprofile-id as a line template number, and obtaining a value after ont-srvprofile-id as a service template number.
ont add 2 1 loid-auth"4711LO01940173"always-on omci
ont-lineprofile-id 13
ont-srvprofile-id 12 desc"04715955570"
。。。
ont add 2 30 loid-auth"4711LO02165761"always-on omci
ont-lineprofile-id 19
ont-srvprofile-id 12 desc"04715842250"
#
[bbs-config]
<bbs-config>
The # match contains the row of user-vlan. The parameter onu _ list is broken down into a plurality of oneids and loids, and matched one by one according to the oneids. Where oneid is the value after "ont". The values after the user-vlan are matched with the values of the first column of parameters in the following table 6, and the values after the service-port are recorded after the matching, and the values are recorded as the values corresponding to the second column of fields.
TABLE 6 parameter name correspondence field Table
Figure BDA0002776302610000221
Figure BDA0002776302610000231
service-port 9577 vlan 2437 gpon 0/11/2 ont 0 gemport 1 multi-service user-vlan 41 tag-transform translate-and-add inner-vlan 2001 inner-priority 0 inbound traffic-table index 12 outbound traffic-table index 12
service-port 9578 vlan 3001 gpon 0/11/2 ont 0 gemport 1 multi-service user-vlan 46 tag-transform translate-and-add inner-vlan 46 inner-priority 0 inbound traffic-table index 12 outbound traffic-table index 12
service-port 9579 vlan 45 gpon 0/11/2 ont 0 gemport 1 multi-service user-vlan 45 tag-transform translate inbound traffic-table index 7 outbound traffic-table index 7
service-port 9698 vlan 2437 gpon 0/11/2 ont 1 gemport 1 multi-service user-vlan 41 tag-transform translate-and-add inner-vlan 2002 inner-priority 0 inbound traffic-table index 12 outbound traffic-table index 12 。。。
service-port 16277 vlan 3301 gpon 0/11/2 ont 30 gemport 1 multi-service
user-vlan 43 tag-transform translate
#
[btv-config]
<btv-config>
btv
igmp user add service-port 10317 no-auth
。。。
igmp user add service-port 14775 no-auth
igmp user add service-port 15248 no-auth
multicast-vlan 75
igmp multicast-vlan member service-port-list 9579,9700,9791,9805,10100,10156,
10317,10324,10337,11318,11382,12595,12680,12901,13002,13147,13382,13839,13873,
14095,14145,14376,14582,14744,14775,15248,15318,15815,16247,16276
#
return
Zhongxing:
checking the port type: and if the inquiry is not successful, reporting an error, namely that the port type of the corresponding ONU cannot be acquired. The checking method comprises the following steps: column 2, 3 from the left of the $ shelf, $ slot match, assign $ port _ type ═ epon or gpon.
And executing a command show card, listing the following CfgType as a board type column, and if the head of E is an EPON board, and the head of G is a GPON board.
10.71.178.252-JPSCOLT14-c300>show card
Figure BDA0002776302610000251
WLCB-HYJF-OLT-2.MAN#show running-config interface gpon-olt_1/2/1--$port_type、olt_ponport
Building configuration...
interface gpon-olt_1/2/1
no shutdown
linktrap disable
Match the row containing onu and loid. The parameter onu _ list is decomposed into a plurality of oneids and loids, and the oneids are matched one by one. And recording the type corresponding to the oneid.
onu 1type service-profile-dxg810 type loid 4741LO00397561//1 is oneid, service-profile-dxg810 is onu type, 4741LO00397561 is loid
onu 2 type service-profile-f612c loid 4741LO00470560
onu 3 type service-profile-hs8025c loid 4741LO01371096
onu 4 type service-profile-dxg810 loid 4741LO00170142
onu 5 type service-profile-dxg810 loid 4741LO00174111
onu 6 type service-profile-dxg810 loid 4741LO00180558
onu 7 type service-profile-zxhn-f651 loid 4741LO03248093
onu 8 type service-profile-dxg810 loid 4741LO00185450
onu 9 type service-profile-dxg810 loid 4741LO00185475
onu 10 type service-profile-f612c loid 4741LO00470766
onu 11 type service-profile-an5506-01-a loid 4741LO00201270
onu 12 type service-profile-hs8145c loid 4741LO02156592
onu 14 type service-profile-an5506-01-a loid4741LO00275024
onu 15 type service-profile-dxg810 loid 4741LO00283048
onu 16 type service-profile-f612c loid 4741LO00324984
onu 17 type service-profile-tewa-700g loid 4741LO02093665
onu 20 type service-profile-dxg810 loid 4741LO00374924
onu 22 type service-profile-f612c loid 4741LO00590272
onu 26 type service-profile-zxhn-f652 loid 4741LO00971689
onu 29 type service-profile-hs8025c loid 4741LO01157132
onu 30 type service-profile-hs8025c loid 4741LO01248610
onu 31 type service-profile-hs8025c loid 4741LO01356645
The # match contains the row of user-vlan. The parameter onu _ list is broken down into a plurality of onaids and loids, each onaid performing the following in-line whole segment. The values after the user-vlan are matched with the values of the first column of parameters in the following table 7, and the values after the service-port are recorded after the matching, and the values are recorded as the values corresponding to the second column of fields.
TABLE 7 parameter name correspondence field Table
Figure BDA0002776302610000271
Figure BDA0002776302610000281
WLCB-HYJF-OLT-2.MAN#sho running-config interface gpon-onu_1/2/1:1--$port_type、olt_ponport、$onuid[i]
Building configuration...
interface gpon-onu_1/2/1:1
name 290.YCGJY/290190315914752
sn-bind disable
sla-profile LC_ZTE_100M vport 1
When the port type is epon, the sla-profile line is matched, and the strings recorded after it are assigned to up _ profile and dn _ profile
tcont 1 name Tl1DefaultCreate profile LC _ ZTE _50M// upstream rate template
gemport 1 name Tl1DefaultCreate tcont 1
Gemport 1 traffic-limit downlink LC _ ZTE _100M// downlink rate template
- $ port _ type ═ gpon,
matching the lines containing "tcont" and "profile," records the last string assignment to up _ profile
Match lines containing "gemport" and "downstream", record the last string assignment to dn _ profilename
service-Port 1 vport 1 user-vlan 46 vlan 3082 ITMS service
service-port 1 description TL1Create
service-Port 2 vport 1 user-vlan untag vlan 1407 svlan 1082 broadband service (use is untag instead of 41)
service-port 2 description TL1Create
service-port 3 vport 1 user-vlan 45 vlan 2582 speech
service-port 3 description TL1Create
service-port 4 vport 1 user-vlan 43 vlan 2082 IPTV
service-port 4 description TL1Create
port-identification sub-option remote-id enable vport 1 PPPOE+
pppoe-intermediate-agent enable vport 1 PPPOE+
pppoe-intermediate-agent trust true replace vport 1 PPPOE+
Collection result saving and returning
(1) And returning an acquisition result:
if any of the script links fail execution (including failure to execute the command or no match to any of onu), an error is reported. Setting result to 0, and errmsg to correspond to the failure reason and the execution result information.
And if the script is completely executed successfully, the collected service data is put into a PONPortServInfo table in a warehouse. And deleting the original record in the list according to the work order number, and then inserting new service data.
If the storage fails, setting result to be 0, and errmsg to be failure to store the service data information of the ONU hung under the PON port; if the warehousing is successful, setting result to be 1, and emptying the errmsg.
(2) The collection results are stored as follows in table 8:
table 8 acquisition result storage table
Figure BDA0002776302610000301
6. Configuration delivery
The specific steps of configuration delivery include:
(1) and the work order management module initiates a configuration issuing and calling request.
(2) And the configuration issuing module calls the configuration command template to perform configuration.
(3) And the configuration command template executes the appointed command sequence according to the work order parameters and returns an execution result.
It should be noted that although the operations of the method of the present invention have been described in the above embodiments and the accompanying drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the operations shown must be performed, to achieve the desired results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
For a clearer explanation of the PON splicing automation configuration method, a specific embodiment is described below, but it should be noted that the embodiment is only for better explaining the present invention and is not to be construed as an undue limitation to the present invention.
Huawei and Zhongxing configuration command templates are described below, respectively.
Hua for equipment installation template:
(1) the pupose _ ponport parameter disassembles:
the pure _ pontport delimiter may be "-" or "/". Distinguishing according to the number of separators:
if the number of delimiters is 3, the parameter pupose _ pnp is set to the string following the 1 st delimiters of pupose _ pnp. For example: 0-0-X-X.
If the number of delimiters is 2, the parameter purpose _ poiport is not changed. For example: 0-X-X.
Other cases are as follows: the method directly reports the error and returns 'PON port format is illegal'.
Replacing the "-" in the pupose _ ponport obtained in the step with "/".
And acquiring a frame, a slot number and a port number. And splitting the pure _ ponport.
shelf is the number from left after the 1 st delimiter and before the 2 nd delimiter.
slot is the number from left after the 2 nd delimiter and before the 3 rd delimiter.
port is the number from left after the 3 rd delimiter.
(2) Checking the port type: and if the inquiry is not successful, reporting an error, namely that the port type of the corresponding ONU cannot be acquired. The checking method comprises the following steps: and assigning $ port _ type ═ epon or gpon according to the port type corresponding to the $ slot matching (the numerical value below the slot number row in the first column is the slot).
Executing the command display board 0, and then waiting for the command to show back that the "}:" appears, and then executing a line feed.
Figure BDA0002776302610000321
The result is obtained as above, if in the second column, the first 2 letters after the boardname number contain "E", denoted epon; if the first 2 letters in the second column, after the boardname number, contain "G", then gpon, as above, all of the boards 1 to 7 in slot 0 are epon, and all of the boards 13 to 15 are gpon.
(3) And acquiring the ONU and the template information corresponding to the current work order, and assigning to an array oneifo:
select
ONUID,
LOID,
ont_lineprofilename,
ont_srvprofilename,
-1 as lineprofile_no,
-1 as srcprofile_no,
broadband_serviceport,
itms_serviceport,
untrust_voip_serviceport,
iptv_serviceport
from PONPortServInfo
where sheet _ no ═ parameter sheet _ no
(4) And looking up all the line template numbers and the line template names, traversing the template names by using ont _ lineprofilename [ i ] in the array, finding the corresponding template numbers, and assigning to lineprofilen _ no [ i ]. If any record can not find the corresponding template number, the error is reported, and the template number corresponding to the line template $ ont _ lineprofileparameter [ i ] can not be found. And exiting.
Executing a command: display on-linear epon all $ port _ type
display ont-lineprofile gpon all
{<cr>||<K>}:
Command:
display ont-linefile gpon all///view global all line template numbers and line template names
Figure BDA0002776302610000341
Total number: 5
(5) Looking up all the service template numbers and the service template names, traversing the template names by using ont _ srvprofilename [ i ] in the array, finding the corresponding template number, and assigning to srcprofile _ no [ i ]. If any record can not find the corresponding template number, the error is reported, and the template number corresponding to the service template $ ont _ srvprofilename [ i ] can not be found. And exiting.
Executing a command: display on-srvprofile epon all $ port _ type NM-HHHT-JQCS-OLT-3.MAN (config) # display on-srvprofile gpon all
{<cr>||<K>}:
Command:
display ont-srvprofile gpon all///view global all-service template numbers and names
Figure BDA0002776302610000351
Total number: 2
(6) And looking at the maximum ouid, the maximum service-port and the maximum cvlan of the broadband service which are used under the destination PON port.
NM-HHHT-JQJF-OLT-1.MAN(config)#display current-configuration port 0/11/2--purpose_ponport
[MA5600V800R015:5800]
#
[gpon]
<gpon-0/11>
interface gpon 0/11
port 2 ont-auto-find enable
ont add 2 0 loid-auth"4711LO01923186"always-on omci
ont-lineprofile-id 13
ont-srvprofile-id 12 desc"04714673480"
ont add 2 1 loid-auth"4711LO01940173"always-on omci
ont-lineprofile-id 13
ont-srvprofile-id 12 desc"04715955570"
。。。
ont add 2 30 loid-auth"4711LO02165761"always-on omci
ont-lineprofile-id 19
ont-srvprofile-id 12 desc "04715842250"// find the largest number of ont and remove 127. Assigned as max _ ouid
#
[bbs-config]
<bbs-config>
service-port 9577 vlan 2437 gpon 0/11/2 ont 0 gemport 1 multi-service user-vlan 41 tag-transform translate-and-add inner-vlan 2001 inner-priority 0 inbound traffic-table index 12 outbound traffic-table index 12
service-port 9578 vlan 3001 gpon 0/11/2 ont 0 gemport 1 multi-service user-vlan 46 tag-transform translate-and-add inner-vlan 46 inner-priority 0 inbound traffic-table index 12 outbound traffic-table index 12
V/find service-port maximum number, assigned max _ service port
V/find the largest number of inner-vlan corresponding to user-vlan $ broadband _ user _ vlan with the value of max _ cvlan
(7) Adding ONU:
interface gpon 0/4--$shelf/$slot
# traverses the array oneifo, each onu performing the following whole fragment within the box line. If any of the onu executions fail, an error is reported to exit.
# sets max _ oneid to max _ oneid +1, oneuid validity determination: if $ port _ type ═ gpon, the effective range is 1 ═ ONUID ≦ 128; if $ port _ type is epon, the valid range is 1<, ONUID <, 64. If the current value is not within the above range, the system indicates "ONUID ($ max _ oneid) invalid", and returns a failure.
ont add 15 127 loid-auth"nmg0415"always-on omci ont-lineprofile-id 1 ont-srvprofile-id 1 desc"guace"
--max_onuid、LOID[i]、lineprofile_no[i]、srvprofile_no[i]、LOID[i]
quit
# broadband _ serviceport [ i ] is not executed empty
service-port 63 vlan 2416 gpon 0/4/15 ont 127 gemport 1 multi-service user-vlan 41 tag-transform translate-and-add inner-vlan 3000 inner-priority 0
-setting max _ serviceport ═ max _ serviceport +1
-setting max _ cvlan ═ max _ cvlan +1
--max_serviceport、broadband_svlan、$port_type、purpose_ponport、max_onuid、broadband_user_vlan、max_cvlan
# itms _ serviceport [ i ] is not performed empty
service-port 64 vlan 3001 gpon 0/4/15 ont 127 gemport 1 multi-service user-vlan 46 tag-transform translate-and-add inner-vlan 46 inner-priority 0
-setting max _ serviceport ═ max _ serviceport +1
--max_serviceport、itms_svlan、$port_type、purpose_ponport、max_onuid、itms_user_vlan、itms_user_vlan
# untrustjvoip _ serviceport [ i ] is not executed for empty time
service-port 65 vlan 45 gpon 0/4/15 ont 127 gemport 1 multi-service user-vlan 45 tag-transform translate
-setting max _ serviceport ═ max _ serviceport +1
--max_serviceport、untrust_voip_svlan、$port_type、purpose_ponport、max_onuid、untrust_voip_user_vlan
# iptv _ serviceport [ i ] is not performed empty
service-port 66 vlan 3301 gpon 0/4/15 ont 127 gemport 1 multi-service user-vlan 43 tag-transform translate
-setting max _ serviceport ═ max _ serviceport +1
--max_serviceport、iptv_svlan、$port_type、purpose_ponport、max_onuid、iptv_user_vlan
btv
igmp user add service-port 65 no-auth
--max_serviceport
multicast-vlan 50
igmp multicast-vlan member service-port-list 65
--max_serviceport
quit
Hua is equipment dismantling template:
(1) source _ pontport parameter deconstruction:
the source _ pontport delimiter may be "-" or "/". Distinguishing according to the number of separators:
if the number of delimiters is 3, a string following the 1 st delimiters of the source _ pnp parameter is set. For example: 0-0-X-X.
If the number of delimiters is 2, the parameter source _ pnp is not changed. For example: 0-X-X.
Other cases are as follows: the method directly reports the error and returns 'PON port format is illegal'.
The "-" in the source _ ponport obtained in the above step is replaced with "/".
And acquiring a frame, a slot number and a port number. Source _ pontport is split.
shelf is the number from left after the 1 st delimiter and before the 2 nd delimiter.
slot is the number from left after the 2 nd delimiter and before the 3 rd delimiter.
port is the number from left after the 3 rd delimiter.
(2) Checking the port type: and if the inquiry is not successful, reporting an error, namely that the port type of the corresponding ONU cannot be acquired. The checking method comprises the following steps: and assigning $ port _ type ═ epon or gpon according to the port type corresponding to the $ slot matching (the numerical value below the slot number row in the first column is the slot).
Executing the command display board 0, and then waiting for the command to show back that the "}:" appears, and then executing a line feed.
Figure BDA0002776302610000401
The result is obtained as above, if in the second column, the first 2 letters after the boardname number contain "E", denoted epon; if the first 2 letters in the second column, after the boardname number, contain "G", then gpon, as above, all of the boards 1 to 7 in slot 0 are epon, and all of the boards 13 to 15 are gpon.
(2) The following commands are executed:
# traverses the array oneifo, each onu performing the following whole fragment within the box line. If any of the onu executions fail, an error is reported to exit.
btv// entry btv
The iptv _ serviceport is not executing when it is not empty
--------------------------------
undo igmp user delete service-port 65
--iptv_serviceport[i]
Is the user indeed to be deleted? (y/n) n y
quit
undo service-port 65--iptv_serviceport[i]
The iptv _ serviceport is not executing when it is not empty
--------------------------------
undo service-port 64-broadcast _ service [ i ] this variable is not executed empty
una service-port 63- -itms _ service [ i ] this variable is not executed empty
una service-port 63- -unoust _ voip _ service [ i ] this variable is not executed empty
interface gpon 0/4--$port_type、$shelf/$slot
ont delete 15 127--ONUID[i]、LOID[i]
quit
The Zhongxing equipment installing template:
(1) the pupose _ ponport parameter disassembles:
the pure _ pontport delimiter may be "-" or "/". Distinguishing according to the number of separators:
if the number of delimiters is 3, the parameter pupose _ pnp is set to the string following the 1 st delimiters of pupose _ pnp. For example: 0-0-X-X.
If the number of delimiters is 2, the parameter purpose _ poiport is not changed. For example: 0-X-X.
Other cases are as follows: the method directly reports the error and returns 'PON port format is illegal'.
Replacing the "-" in the pupose _ ponport obtained in the step with "/".
And acquiring a frame, a slot number and a port number. And splitting the pure _ ponport.
shelf is the number from left after the 1 st delimiter and before the 2 nd delimiter.
slot is the number from left after the 2 nd delimiter and before the 3 rd delimiter.
port is the number from left after the 3 rd delimiter.
(2) And acquiring the ONU and the template information corresponding to the current work order, and assigning to an array oneifo:
select
ONUID,
LOID,
up_profilename,
dn_profilename,
onu_type,
broadband_serviceport,
itms_serviceport,
untrust_voip_serviceport,
iptv_serviceport
from PONPortServInfo
where sheet _ no ═ parameter sheet _ no
(3) Checking the port type: and if the inquiry is not successful, reporting an error, namely that the port type of the corresponding ONU cannot be acquired. The checking method comprises the following steps: column 2, 3 from the left of the $ shelf, $ slot match, assign $ port _ type ═ epon or gpon.
Executing the command show card
10.71.178.252-JPSCOLT14-c300>show card
Figure BDA0002776302610000431
Figure BDA0002776302610000441
As described above, the CfgType column is a board type column, and if the head of E is an EPON board, the head of G is a GPON board.
(4) Acquiring a maximum idle ONUID: the following command is executed and the framed column is the ONUID configuration column.
show running-config interface epon-olt_1/4/1--$port_type、purpose_ponport
10.71.178.252-JPSCOLT14-c300>show running-config interface epon-olt_1/4/1
Building configuration...
Interface epon-olt_1/4/1
no shutdown
Linktrap disable
p2p mode group
onu 1 type HA-411-E loid 3711EP100719801 ip-cfg static
onu 2 type HA-SFU-E loid 3711ELO04571976 ip-cfg static
onu 3 type HA-411-E loid 3711EP100746970 ip-cfg static
onu 4 type HA-411-E loid 3711EP100410143 ip-cfg static
onu 5 type HA-411-E loid 3711EP100609818 ip-cfg static
onu 6 type HA-411-E loid 3711EP100708785 ip-cfg static
onu 9 type HA-411-E loid 3711EP100373359 ip-cfg static
onu 10 type HA-411-E loid 3711EP100464097 ip-cfg static
onu 11 type HA-SFU-E loid 3711EP100549791 ip-cfg static
onu 13 type HA-SFU-E loid 3711ELO04530750 ip-cfg static
onu 14 type HA-SFU-E loid 3711EP100596384 ip-cfg static
onu 16 type HA-SFU-E loid 3711ELO04828306 ip-cfg static
onu 17 type HA-SFU-E loid 3711ELO04909854 ip-cfg static
onu 18 type HA-411-E loid 3711EP100207131 ip-cfg static
onu 19 type HA-SFU-E loid 3711ELO04910028 ip-cfg static
onu 20 type HA-SFU-E loid 3711ELO04924862 ip-cfg static
onu 21 type HA-411-E loid 3711EP100222558 ip-cfg static
onu 22 type HA-SFU-E loid 3711ELO04974200 ip-cfg static
onu 25 type HA-SFU-E loid 3711ELO05048521 ip-cfg static
onu 27 type HA-SFU-E loid 3711ELO05122549 ip-cfg static
And acquiring the maximum number of the last line of the command return result, and setting max _ ouid as the maximum number.
And recording the acquired ONUID and assigning the value to cur _ onulist.
(5) Acquiring the maximum idle untag cvlan: and traversing cur _ onalist, matching the untag cvlan, recording the value behind the untag cvlan, and assigning the value to the cvlan _ list. The maximum value in cvlan _ list is found, and max _ cvlan is set to the maximum value + 1. If max _ CVLAN >4094, an error is reported "the maximum free CVLAN found ($ max _ CVLAN) is invalid". If cvlan _ list is empty, max _ cvlan is set to 1.
Figure BDA0002776302610000461
(6) Adding ONU:
HLBE-ARQDX-OLT-1(config)#interface gpon-olt_1/1/1-$port_type、purpose_ponport
# traverses the array oneifo, each onu performing the following whole fragment within the box line. If any of the onu executions fail, an error is reported to exit.
# sets max _ oneid to max _ oneid +1, oneuid validity determination: if $ port _ type ═ gpon, the effective range is 1 ═ ONUID ≦ 128; if $ port _ type is epon, the valid range is 1<, ONUID <, 64. If the current value is not within the above range, the system indicates "ONUID ($ max _ oneid) invalid", and returns a failure.
HLBE-ARQDX-OLT-1(config-if)#ONU 1 type service-profile-tewa-700g loid 4701LO01234567
--max_onuid、onu_type[i]、LOID[i]
(7) Adding traffic for each ONU port:
# traverses the array oneifo, each onu performing the following whole fragment within the box line. If any of the onu executions fail, an error is reported to exit.
After successful execution of one onu configuration, max _ cvlan is set to max _ cvlan + 1.
interface gpon-onu_1/1/1:2 --$port_type、purpose_ponport、$onuid[i]
tcont 1 name PONNMSDefaultCreate profile LC_ZTE_50M
--up_profilename
gemport 1 name PONNMSDefaultCreate tcont 1
gemport 1 traffic-limit downstream LC_ZTE_100M
--dn_profilename
# itms _ voip _ serviceport [ i ] is not performed empty
service-port 1 vport 1 user-vlan 46 vlan 3001
--itms_user_vlan、itms_svlan
service-port 1 description PONNMSVlan46
--itms_user_vlan
# broadband _ serviceport [ i ] is not executed empty
service-port 2 vport 1 user-vlan untag vlan 1102 svlan 2430 --max_cvlan、broadband_svlan
service-port 2 description PONNMSVlanuntag
# untrustjvoip _ serviceport [ i ] is not executed for empty time
service-port 3 vport 1 user-vlan 45 vlan 45
--untrust_user_vlan、untrust_svlan
service-port 3 description PONNMSVlan45
--untrust_user_vlan
# iptv _ serviceport [ i ] is not performed empty
service-port 4 vport 1 user-vlan 43 vlan 3301
--iptv_user_vlan、iptv_svlan
service-port 4 description PONNMSVlan43
--iptv_user_vlan
#--------------------------------------------------------------------
port-identification sub-option remote-id enable vport1
pppoe-intermediate-agent enable vport1
pppoe-intermediate-agent trust true replace vport1
# iptv _ serviceport [ i ] is not performed empty
pon-onu-mng gpon-onu_1/1/1:2--$port_type、purpose_ponport、$onuid[i]
service PONNMSDefaultCreate gemport 1
mvlan 50
exit
igmp mvlan 50 Receive Port gpon-onu_1/1/1:2:1
--$port_type、purpose_ponport、$onuid[i]
exit
Disassembling the machine template of the Zhongxing equipment:
(1) source _ pontport parameter deconstruction:
the source _ pontport delimiter may be "-" or "/". Distinguishing according to the number of separators:
if the number of delimiters is 3, a string following the 1 st delimiters of the source _ pnp parameter is set. For example: 0-0-X-X.
If the number of delimiters is 2, the parameter source _ pnp is not changed. For example: 0-X-X.
Other cases are as follows: the method directly reports the error and returns 'PON port format is illegal'.
The "-" in the source _ ponport obtained in the above step is replaced with "/".
And acquiring a frame, a slot number and a port number. Source _ pontport is split.
shelf is the number from left after the 1 st delimiter and before the 2 nd delimiter.
slot is the number from left after the 2 nd delimiter and before the 3 rd delimiter.
port is the number from left after the 3 rd delimiter.
(2) Checking the port type: and if the inquiry is not successful, reporting an error, namely that the port type of the corresponding ONU cannot be acquired. The checking method comprises the following steps: and assigning $ port _ type ═ epon or gpon according to the port type corresponding to the $ slot matching (the numerical value below the slot number row in the first column is the slot).
Executing the command display board 0, and then waiting for the command to show back that the "}:" appears, and then executing a line feed.
Figure BDA0002776302610000501
Figure BDA0002776302610000511
The result is obtained as above, if in the second column, the first 2 letters after the boardname number contain "E", denoted epon; if the first 2 letters in the second column, after the boardname number, contain "G", then gpon, as above, all of the boards 1 to 7 in slot 0 are epon, and all of the boards 13 to 15 are gpon.
(3) The following commands are executed:
NMJN#config t
Enter configuration commands,one per line.End with CTRL/Z.
NMJN(config)#int gpon-olt_1/7/1--$port_type、source_ponport
# traverses the array oneifo, each onu performing one row as follows.
NMJN(config-if)#no onu 8--ONUID[i]
Based on the same invention concept, the invention also provides a PON port cutting and splicing automatic configuration device. The implementation of the device can be referred to the implementation of the method, and repeated details are not repeated. The term "module," as used below, may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a schematic structural diagram of an automatic PON splicing configuration device according to an embodiment of the present invention. As shown in fig. 2, the apparatus includes:
the work order data entry module 101 is used for entering source A/B end equipment and port information, target A/B end equipment and port information, VLAN range to be cut and other remark information; the method is specifically used for:
inputting general information: a service operation type and a service type;
inputting PON port parameters of source OLT equipment: the method comprises the following steps of OLT equipment name, OLT management IP, OLT equipment manufacturer, OLT equipment detailed model, cut-over PON port and ONU to be cut-over;
inputting PON port parameters of the target OLT equipment: the method comprises the following steps of (1) identifying the name of OLT equipment, the IP of OLT management, the manufacturer of the OLT equipment, the detailed model of the OLT equipment and a target PON port;
inputting destination PON port SVLAN parameters: broadband SVLAN, ITMS SVLAN, untrusted VOIP SVLAN and IPTV SVLAN.
The service data information acquiring module 102 is configured to call a script to acquire service data information of an ONU (optical network unit) hung below a PON interface to be cut, if the service data information is not acquired, report an error and exit, end a work order, and if the service data information is acquired, execute generation of work order data; the method is specifically used for:
analyzing PON port information according to the input PON port parameters of the source OLT equipment;
the login equipment checks the information of the line template and the service template;
checking PON port service configuration information;
storing and returning the acquired information;
and returning the collected information, which specifically comprises the following steps:
if any link of the script fails to be executed, including the failure of the execution command or the failure of any onu in matching, an error is reported and the exit is carried out, and result is set to be 0, and errmsg is set to correspond to the failure reason and the execution result information;
if the script is completely executed successfully, the collected service data information is put into a PONPortServInfo table in a storage mode; deleting the original record in the list according to the work order number, and then inserting new service data information; if the storage fails, setting result to be 0, and errmsg to be failure to store the service data information of the ONU hung under the PON port; if the warehousing is successful, setting result to be 1, and emptying the errmsg.
The work order generation data module 103 is used for generating an disassembling sub-work order and an assembling sub-work order according to the source A/B terminal equipment and the target A/B terminal equipment;
a comparison source end and target end module 104, configured to compare whether the source a/B end device and the target a/B end device are the same device, and if so, execute the disassembly sub-worksheet first, and then execute the assembly sub-worksheet; if the equipment is cross-equipment, the target A/B-side equipment is logged in first, the machine-installed sub-work order is executed, and then the source A/B-side equipment is logged in to execute the machine-disassembled sub-work order.
It should be noted that although several modules of the PON cuts automatic configuration device are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module according to embodiments of the invention. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Based on the aforementioned inventive concept, as shown in fig. 3, the present invention further provides a computer apparatus 200, which includes a memory 210, a processor 220, and a computer program 230 stored on the memory 210 and operable on the processor 220, wherein the processor 220 implements the aforementioned PON shedding automatic configuration method when executing the computer program 230.
Based on the above inventive concept, the present invention further provides a computer readable storage medium, where a computer program for executing the PON cut automatic configuration method is stored in the computer readable storage medium.
The PON port cut-over automatic configuration method and the PON port cut-over automatic configuration device provided by the invention can automatically complete the operation of deleting the service of the A-side equipment and the operation of newly installing the service of the B-side equipment only by providing the cut-over source-side equipment, the PON port and the target A-side equipment and the PON port. The final goals achieved include:
(1) and automatically carrying out the cut-over configuration operation of all the ONUs under the PON ports of the source end and the target end in batches.
(2) The cutover configuration operation is managed in a work order mode, and the issued detailed log can be checked.
(3) Supporting various equipment manufacturers.
(4) And the service cutover of the same equipment and the cross equipment is supported.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
The limitation of the protection scope of the present invention is understood by those skilled in the art, and various modifications or changes which can be made by those skilled in the art without inventive efforts based on the technical solution of the present invention are still within the protection scope of the present invention.

Claims (10)

1. A PON port cut-over automatic configuration method is characterized by comprising the following steps:
step one, work order data entry
Inputting source A/B end equipment and port information, target A/B end equipment and port information, VLAN range to be cut and other remark information;
step two, acquiring service data information
Calling a script to acquire service data information of an ONU (optical network unit) hung below a PON port to be cut, if not, reporting an error and exiting, ending a work order, and if so, executing generation of work order data;
step three, generating work order data
Generating a disassembly sub-worksheet and an assembly sub-worksheet according to the source A/B terminal equipment and the target A/B terminal equipment;
step four, comparing whether the source A/B end equipment and the target A/B end equipment are the same equipment or not
If the equipment is the same, executing the disassembly sub-worksheet, and then executing the assembly sub-worksheet; if the equipment is cross-equipment, the target A/B-side equipment is logged in first, the machine-installed sub-work order is executed, and then the source A/B-side equipment is logged in to execute the machine-disassembled sub-work order.
2. A PON port cutover automation configuration method as claimed in claim 1, wherein the work order data entry of step one specifically comprises:
inputting general information: a service operation type and a service type;
inputting PON port parameters of source OLT equipment: the method comprises the following steps of OLT equipment name, OLT management IP, OLT equipment manufacturer, OLT equipment detailed model, cut-over PON port and ONU to be cut-over;
inputting PON port parameters of the target OLT equipment: the method comprises the following steps of (1) identifying the name of OLT equipment, the IP of OLT management, the manufacturer of the OLT equipment, the detailed model of the OLT equipment and a target PON port;
inputting destination PON port SVLAN parameters: broadband SVLAN, ITMS SVLAN, untrusted VOIP SVLAN and IPTV SVLAN.
3. The PON port cutover automation configuration method according to claim 1, wherein the acquiring service data information in the second step specifically includes:
analyzing PON port information according to the input PON port parameters of the source OLT equipment;
the login equipment checks the information of the line template and the service template;
checking PON port service configuration information;
and storing and returning the acquired information.
4. A PON port cutover automation configuration method according to claim 3, wherein the collecting information return specifically includes:
if any link of the script fails to be executed, including the failure of the execution command or the failure of any onu in matching, an error is reported and the exit is carried out, and result is set to be 0, and errmsg is set to correspond to the failure reason and the execution result information;
if the script is completely executed successfully, the collected service data information is put into a PONPortServInfo table in a storage mode; deleting the original record in the list according to the work order number, and then inserting new service data information; if the storage fails, setting result to be 0, and errmsg to be failure to store the service data information of the ONU hung under the PON port; if the warehousing is successful, setting result to be 1, and emptying the errmsg.
5. A PON port cutting automatic configuration device is characterized by comprising:
the work order data entry module is used for entering source A/B end equipment and port information, target A/B end equipment and port information, VLAN range to be cut and other remark information;
the business data information acquisition module is used for calling a script to acquire business data information of an ONU (optical network unit) hung below a PON port to be cut, if not, an error is reported and quit is finished, and if the business data information is acquired, the generation of work order data is executed;
the work order generation data module is used for generating an disassembling sub-work order and an assembling sub-work order according to the source A/B terminal equipment and the target A/B terminal equipment;
the comparison source end and target end module is used for comparing whether the source A/B end equipment and the target A/B end equipment are the same equipment or not, if so, the disassembly sub-worksheet is executed first, and then the assembly sub-worksheet is executed; if the equipment is cross-equipment, the target A/B-side equipment is logged in first, the machine-installed sub-work order is executed, and then the source A/B-side equipment is logged in to execute the machine-disassembled sub-work order.
6. A PON port cutover automation configuration device as claimed in claim 5, wherein the work order data entry module is specifically configured to:
inputting general information: a service operation type and a service type;
inputting PON port parameters of source OLT equipment: the method comprises the following steps of OLT equipment name, OLT management IP, OLT equipment manufacturer, OLT equipment detailed model, cut-over PON port and ONU to be cut-over;
inputting PON port parameters of the target OLT equipment: the method comprises the following steps of (1) identifying the name of OLT equipment, the IP of OLT management, the manufacturer of the OLT equipment, the detailed model of the OLT equipment and a target PON port;
inputting destination PON port SVLAN parameters: broadband SVLAN, ITMS SVLAN, untrusted VOIP SVLAN and IPTV SVLAN.
7. The PON port cutover automation configuration device according to claim 5, wherein the module for acquiring service data information is specifically configured to:
analyzing PON port information according to the input PON port parameters of the source OLT equipment;
the login equipment checks the information of the line template and the service template;
checking PON port service configuration information;
and storing and returning the acquired information.
8. A PON port cutover automation configuration device as claimed in claim 7, wherein the collection information return specifically includes:
if any link of the script fails to be executed, including the failure of the execution command or the failure of any onu in matching, an error is reported and the exit is carried out, and result is set to be 0, and errmsg is set to correspond to the failure reason and the execution result information;
if the script is completely executed successfully, the collected service data information is put into a PONPortServInfo table in a storage mode; deleting the original record in the list according to the work order number, and then inserting new service data information; if the storage fails, setting result to be 0, and errmsg to be failure to store the service data information of the ONU hung under the PON port; if the warehousing is successful, setting result to be 1, and emptying the errmsg.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1-4 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1-4.
CN202011266714.9A 2020-11-13 2020-11-13 PON port cut-over automatic configuration method and device Active CN112468897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011266714.9A CN112468897B (en) 2020-11-13 2020-11-13 PON port cut-over automatic configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011266714.9A CN112468897B (en) 2020-11-13 2020-11-13 PON port cut-over automatic configuration method and device

Publications (2)

Publication Number Publication Date
CN112468897A true CN112468897A (en) 2021-03-09
CN112468897B CN112468897B (en) 2023-03-10

Family

ID=74825084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011266714.9A Active CN112468897B (en) 2020-11-13 2020-11-13 PON port cut-over automatic configuration method and device

Country Status (1)

Country Link
CN (1) CN112468897B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037559A (en) * 2021-03-18 2021-06-25 四川九州电子科技股份有限公司 Automatic configuration system and method based on optical line terminal equipment
CN114007150A (en) * 2021-09-24 2022-02-01 中盈优创资讯科技有限公司 PON port splitting method and device based on port flow monitoring
CN115396756A (en) * 2022-08-25 2022-11-25 中国联合网络通信集团有限公司 Equipment resource configuration method, device, server and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871451A (en) * 2016-03-21 2016-08-17 杭州东方通信软件技术有限公司 Network cutover switching method and apparatus
CN106789309A (en) * 2016-12-30 2017-05-31 武汉长光科技有限公司 A kind of business configuration file migration method based on OLT device
CN110048897A (en) * 2019-04-29 2019-07-23 杭州东方通信软件技术有限公司 A kind of intelligent network cutover centralized dispatching management system and method
CN110505100A (en) * 2019-08-30 2019-11-26 浙江岩华文化传媒有限公司 Network work order configuration method, device, electronic equipment and computer-readable medium
CN110532305A (en) * 2018-05-23 2019-12-03 中国移动通信集团浙江有限公司 A kind of business datum method for cutting over and system
CN110719196A (en) * 2019-09-24 2020-01-21 中盈优创资讯科技有限公司 Metro network equipment cutting abnormity recognition tool and method
CN111866624A (en) * 2020-06-16 2020-10-30 烽火通信科技股份有限公司 ONU service migration method, device, equipment and readable storage medium
CN111901159A (en) * 2020-07-15 2020-11-06 中盈优创资讯科技有限公司 Method and device for replacing equipment configuration ports in batches

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871451A (en) * 2016-03-21 2016-08-17 杭州东方通信软件技术有限公司 Network cutover switching method and apparatus
CN106789309A (en) * 2016-12-30 2017-05-31 武汉长光科技有限公司 A kind of business configuration file migration method based on OLT device
CN110532305A (en) * 2018-05-23 2019-12-03 中国移动通信集团浙江有限公司 A kind of business datum method for cutting over and system
CN110048897A (en) * 2019-04-29 2019-07-23 杭州东方通信软件技术有限公司 A kind of intelligent network cutover centralized dispatching management system and method
CN110505100A (en) * 2019-08-30 2019-11-26 浙江岩华文化传媒有限公司 Network work order configuration method, device, electronic equipment and computer-readable medium
CN110719196A (en) * 2019-09-24 2020-01-21 中盈优创资讯科技有限公司 Metro network equipment cutting abnormity recognition tool and method
CN111866624A (en) * 2020-06-16 2020-10-30 烽火通信科技股份有限公司 ONU service migration method, device, equipment and readable storage medium
CN111901159A (en) * 2020-07-15 2020-11-06 中盈优创资讯科技有限公司 Method and device for replacing equipment configuration ports in batches

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LEITH H. CAMPBELL: "Comparative Costs for Fibre to the Node and Fibre to the Home Rollouts in Australia", 《OVUM》 *
尹卫武: "PON 口快速割接", 《研究与探索·工艺与技术》 *
陆敏: "PON业务端口敏捷迁移的探讨", 《探讨研究》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037559A (en) * 2021-03-18 2021-06-25 四川九州电子科技股份有限公司 Automatic configuration system and method based on optical line terminal equipment
CN113037559B (en) * 2021-03-18 2023-06-02 四川九州电子科技股份有限公司 Automatic configuration system and method based on optical line terminal equipment
CN114007150A (en) * 2021-09-24 2022-02-01 中盈优创资讯科技有限公司 PON port splitting method and device based on port flow monitoring
CN114007150B (en) * 2021-09-24 2023-07-28 中盈优创资讯科技有限公司 PON port cracking method and device based on port flow monitoring
CN115396756A (en) * 2022-08-25 2022-11-25 中国联合网络通信集团有限公司 Equipment resource configuration method, device, server and storage medium
CN115396756B (en) * 2022-08-25 2024-05-14 中国联合网络通信集团有限公司 Method, device, server and storage medium for configuring equipment resources

Also Published As

Publication number Publication date
CN112468897B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
CN112468897B (en) PON port cut-over automatic configuration method and device
US8595625B2 (en) Method and apparatus to automate configuration of network entities
CA2343695C (en) Tree hierarchy and description for generated logs
CN106656562B (en) A kind of OLT batch issues the detection method and device of ONU configuration
CN105553739B (en) A kind of method and device for realizing MAC Address tracking
CN112737802B (en) Internet private line management method and system
WO2016119954A1 (en) Data extraction
CN107704257A (en) A kind of method and device of distributed server centralized management
CN108184174B (en) Method for customizing OAM (operation administration and maintenance) under EPON (Ethernet Passive optical network) system
CN107800802A (en) A kind of Rack whole machine cabinets write-in and the method for reading UUID
US20170237628A1 (en) Service information model for managing a telecommunications network
CN112543120B (en) OLT (optical line terminal) opening automation configuration method and device
CN114268569B (en) Configurable network operation and maintenance acceptance test method and device
US7956737B2 (en) Method and apparatus for network service assurance
CN106105060B (en) The methods, devices and systems of data communication
CN112491597A (en) Automatic special line relay cutover method and device
US6934290B2 (en) Determining connection information for a network
CN113824584A (en) Network equipment management method and device
CN109495178B (en) Method and device for constructing FTTx network topology link
CN110807037A (en) Data modification method and device, electronic equipment and storage medium
CN115268993B (en) Method, service system, device and storage medium for updating configuration parameters
CN110880979B (en) Optical network terminal configuration method, optical line terminal, optical network system and medium
CN108848424B (en) Method for dynamically supporting ONU capability in PON system
CN113193980A (en) Method and device for quickly generating function configuration based on novel metropolitan area network topology
US7020247B1 (en) Methods and systems for automated target error checking

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
CP02 Change in the address of a patent holder

Address after: 200000 room 702-2, No. 4811 Cao'an Road, Jiading District, Shanghai

Patentee after: CHINA UNITECHS

Address before: Room 1004-4, 10 / F, 1112 Hanggui Road, Anting Town, Jiading District, Shanghai

Patentee before: CHINA UNITECHS

CP02 Change in the address of a patent holder