Method and device for automatically opening public voice service data
Through batch import and export of northbound interfaces and southbound EXCEL, the configuration of SR equipment and large layer 2 switches is automatically processed, which solves the problem of low efficiency of traditional voice service provisioning, realizes automatic provisioning, and improves operation and maintenance efficiency and accuracy.
Patent Information
- Application Number
- CN202410705468.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-27
AI Technical Summary
Traditional voice service activation requires frequent login to the device and manual execution of configuration commands, which increases operation and maintenance costs. It lacks automation and batch processing methods, resulting in insufficient activation efficiency and accuracy.
Through the automatic provisioning of northbound interfaces and batch import and export of southbound EXCEL, automatic configuration of SR equipment and large layer 2 switches is realized, and voice service data provisioning is automatically processed, including the corresponding new sub-interface configuration of SR equipment and the downlink OLT aggregation port of large layer 2 switches. VLAN transparent transmission configuration.
It improves operation and maintenance efficiency, realizes automatic provisioning of voice service data, reduces manual operations, and improves provisioning efficiency and accuracy.
Smart Images

Figure CN118713993A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention generally relate to the field of network operation and maintenance technology, and more particularly to a method and device for automatically activating public voice service data. Background Art
[0002] Traditionally, to activate voice services, you need to log in to the MAN SR device separately and add voice service related configurations under the SR sub-interface. You also need to log in to the large Layer 2 switch, query the aggregation port corresponding to the switch's downstream port, and perform transparent VLAN configuration under the downstream OLT aggregation port. Frequent login to the device and manual execution of configuration commands increase operation and maintenance costs. There is currently no device or method that can be automated and batch processed to improve activation efficiency and accuracy. Summary of the invention
[0003] To solve the above problems, the present invention supports automatic activation of northbound interfaces and southbound batch import and export activation of EXCEL to meet the requirements for public voice service data activation, automate processing, and realize new voice services in the metropolitan area network. It involves automatic activation of related configurations of newly added sub-interfaces of SR devices and automatic activation of corresponding VLAN transparent transmission configurations of OLT aggregation ports connected to large Layer 2 switches, thereby improving operation and maintenance efficiency.
[0004] According to an embodiment of the present invention, a method and device for automatically opening public voice service data are provided.
[0005] In a first aspect of the present invention, a method for automatically activating public voice service data is provided.
[0006] The method includes:
[0007] S01: The northbound system actively initiates a voice service activation request, and the controller platform provides a webservice interface to receive the service activation request from the northbound system;
[0008] S02: After receiving the service activation request, the network management side parses the interface parameters, forms a work order and saves it in the network management system;
[0009] S03: The network management side deploys the work order and calls the internal service delivery interface;
[0010] S04: Log in to the large Layer 2 switch and the SR device, and call the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device to configure voice service related service data.
[0011] Furthermore, if the northbound system described in S01 is not required to actively initiate a voice service activation request, the controller platform provides an EXCEL work order import method, and the specific steps are:
[0012] S1: The controller platform provides an EXCEL work order template download interface, which can be used to download the EXCEL spreadsheet file containing the batch import of voice service requirements from the network management server, and the customer can fill in the corresponding activation requirements.
[0013] S2: The controller platform provides a POST interface to parse and verify the EXCEL file of the batch activation of public voice service requirements line by line. If the verification is successful, it will be stored in the public broadband work order import table and generate batch service work orders;
[0014] S3: Call the work order issuing interface to execute the voice service work order. The work order issuing interface calls the background issuing capability. By decomposing the subtasks in sequence, the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device is called in turn to configure the voice service related service data.
[0015] S4: Update the currently executed system work order number to the work order number field of the public broadband work order import table, and set the work order status field value of the public broadband work order import table to executing. After the current work order is executed, set the work order status field value of the public broadband work order import table to executed, and update the execution result and failure reason fields of the public broadband work order import table.
[0016] Furthermore, before calling the work order issuance interface to execute the voice service work order described in S3, the work order status field in the public broadband work order import table is first queried. If there is a work order being executed, it is prompted that the batch work order is being executed and exited; if there is no work order being executed, one or more imported work order IDs are obtained through input parameters, and the imported work order ID is associated with the primary key ID field of the public broadband work order import table, and the corresponding work order information is queried to obtain one or more work order data.
[0017] Furthermore, the specific steps for enabling the voice service of the large Layer 2 switch described in S04 are: check whether the switch downstream port information is correct, if not, report an error and exit; if correct, check whether the E-Trunk port bound to the switch downstream port is correct, if not, report an error and exit; if correct, check whether the VLAN is occupied, if occupied, report an error and exit; if not occupied, use the E-Trunk port to transparently transmit the VLAN configuration.
[0018] Furthermore, the specific steps for activating the voice service capability of the SR device described in S04 are: check whether the voice service IP address conflicts, and if so, report an error and exit; if not, query the E-Trunk port corresponding to the switch, and if not found, report an error and exit; if found, query whether the SW sub-interface connected to the SR device exists, and if so, report an error and exit; if so, check whether the SW sub-interface connected to the SR device exists, and if so, and the VPN bound to the sub-interface is inconsistent with the VPN in the work order, report an error and exit; if so, and the VPN bound to the sub-interface is consistent with the VPN in the work order, configure the voice service address for the SR sub-interface; if the SW sub-interface connected to the SR device does not exist, configure the SR sub-interface.
[0019] In a second aspect of the present invention, a device for automatically activating public voice service data is provided.
[0020] The device includes:
[0021] Service request module: used by the northbound system to actively initiate voice service activation requests. The controller platform provides a webservice interface to receive service activation requests from the northbound system.
[0022] Work order generation module: used for parsing interface parameters after receiving a service activation request on the network management side, generating a work order and saving it in the network management system;
[0023] Business delivery module: used to deploy work orders on the network management side and call the internal business delivery interface;
[0024] Data configuration module: used to log in to the large Layer 2 switch and SR device, call the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device to configure voice service related business data.
[0025] Furthermore, if the northbound system described in the service request module is not required to actively initiate a voice service activation request, the controller platform provides an EXCEL work order import method, and the specific steps are:
[0026] S1: The controller platform provides an EXCEL work order template download interface, which can be used to download the EXCEL spreadsheet file containing the batch import of voice service requirements from the network management server, and the customer can fill in the corresponding activation requirements.
[0027] S2: The controller platform provides a POST interface to parse and verify the EXCEL file of the batch activation of public voice service requirements line by line. If the verification is successful, it will be stored in the public broadband work order import table and generate batch service work orders;
[0028] S3: Call the work order issuing interface to execute the voice service work order. The work order issuing interface calls the background issuing capability. By decomposing the subtasks in sequence, the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device is called in turn to configure the voice service related service data.
[0029] S4: Update the currently executed system work order number to the work order number field of the public broadband work order import table, and set the work order status field value of the public broadband work order import table to executing. After the current work order is executed, set the work order status field value of the public broadband work order import table to executed, and update the execution result and failure reason fields of the public broadband work order import table.
[0030] Furthermore, before calling the work order issuance interface to execute the voice service work order described in S3, the work order status field in the public broadband work order import table is first queried. If there is a work order being executed, it is prompted that the batch work order is being executed and exited; if there is no work order being executed, one or more imported work order IDs are obtained through input parameters, and the imported work order ID is associated with the primary key ID field of the public broadband work order import table, and the corresponding work order information is queried to obtain one or more work order data.
[0031] Furthermore, the specific steps for enabling the voice service of the large Layer 2 switch described in the data configuration module are: checking whether the switch downstream port information is correct, if not, reporting an error and exiting; if correct, checking whether the E-Trunk port bound to the switch downstream port is correct, if not, reporting an error and exiting; if correct, checking whether the VLAN is occupied, if occupied, reporting an error and exiting; if not occupied, using the E-Trunk port to transparently transmit the VLAN configuration.
[0032] Furthermore, the specific steps for activating the voice service capability of the SR device described in the data configuration module are: check whether the voice service IP address conflicts, and if so, report an error and exit; if not, query the E-Trunk port corresponding to the switch, and if not found, report an error and exit; if found, query whether the SW sub-interface connected to the SR device exists, and if it exists and the VPN bound to the sub-interface is inconsistent with the VPN in the work order, report an error and exit; if it exists and the VPN bound to the sub-interface is consistent with the VPN in the work order, configure the SR sub-interface with the voice service address; if the SW sub-interface connected to the SR device does not exist, configure the SR sub-interface.
[0033] The meanings of the above mentioned English abbreviations:
[0034] Webservice: A Web-based service interface that allows different software applications to communicate and exchange data over the Internet or a local area network.
[0035] SR: Service Router, 全业务路由器
[0036] POST: It is a HTTP request method that submits data to a specified resource for processing (such as submitting a form or uploading a file). The data is included in the request body. POST requests may result in the creation of new resources and / or the modification of existing resources.
[0037] E-Trunk: An efficient and flexible Ethernet aggregation technology that combines multiple physical Ethernet links into one logical link.
[0038] VLAN: Virtual Local Area Network, virtual local area network
[0039] SW: switch
[0040] VPN: Virtual Private Network, Virtual Private Network
[0041] OLT: optical line terminal
[0042] The present invention supports the automatic activation of the northbound interface calling the southbound interface and the southbound EXCEL batch import and export activation, so as to meet the public voice service data activation requirements, automate the processing, and realize the new voice service in the metropolitan area network. It involves the automatic activation of the relevant configuration of the new sub-interface corresponding to the SR device and the automatic activation of the corresponding VLAN transparent transmission configuration of the OLT aggregation port connected to the large two-layer switch, thereby improving the operation and maintenance efficiency.
[0043] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings.
[0045] Figure 1 A flow chart showing a method for automatically opening public voice service data according to an embodiment of the present invention is shown;
[0046] Figure 2 A block diagram of a device for automatically opening public voice service data according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments 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.
[0048] According to the implementation mode of the present invention, a method and device for automatic activation of public voice service data are proposed, which supports the automatic activation of the northbound interface calling the southbound interface and the southbound EXCEL batch import and export activation, so as to meet the requirements for the activation of public voice service data, automate the processing, and realize the addition of voice services in the metropolitan area network, involving the automatic activation of the relevant configurations of the newly added sub-interfaces of the SR equipment and the automatic activation of the corresponding VLAN transparent transmission configurations of the OLT aggregation port connected to the large two-layer switch, thereby improving the operation and maintenance efficiency.
[0049] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.
[0050] Figure 1 This is a flow chart of a method for automatically opening public voice service data according to an embodiment of the present invention. The method includes:
[0051] S01: The northbound system actively initiates a voice service activation request, and the controller platform provides a webservice interface to receive the service activation request from the northbound system;
[0052] S02: After receiving the service activation request, the network management side parses the interface parameters, forms a work order and saves it in the network management system;
[0053] S03: The network management side deploys the work order and calls the internal service delivery interface;
[0054] S04: Log in to the large Layer 2 switch and the SR device, and call the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device to configure voice service related service data.
[0055] It should be noted that, although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0056] In order to explain the above-mentioned method of automatically activating public voice service data more clearly, two specific embodiments are described below. However, it should be noted that the embodiments are only for better illustrating the present invention and do not constitute an improper limitation on the present invention.
[0057] The following two specific examples further illustrate the method of automatically opening public voice service data in more detail:
[0058] Embodiment 1:
[0059] The northbound system actively initiates a voice service activation request. The controller platform provides a webservice interface to receive the service activation request from the northbound system. The request content is as follows:
[0060] <? xml version="1.0" encoding="utf-8"? >
[0061] <createwsinputinfo>
[0062] <Worksheet WsCode="9140-82762">
[0063] <opertype> add< / opertype>
[0064] <oltname> NKNFQ_HW_OLT20< / oltname>
[0065] <swdownport> XGigabitEthernet5 / 0 / 6,XGigabitEthernet6 / 0 / 6< / swdownport>
[0066] <vpnname> VPN_Voice100< / vpnname>
[0067] <voiceip> 10.205.55.0 / 24< / voiceip>
[0068] <voicevlan> 1800< / voicevlan>
[0069] <swname> CNC_TJ_NK_NFQ_S9306< / swname>
[0070] <swip> 117.8.102.86< / swip>
[0071] <srname> NK_NFQ_ME60-X8_2738BAS03< / srname>
[0072] <srip> 60.27.87.116< / srip>
[0073]
[0074] < / createwsinputinfo>
[0075] After receiving the service activation request, the network management side parses the interface parameters, forms a work order and saves it in the network management system. The specific contents are as follows:
[0076] <? xml version="1.0"encoding="gb2312"? >
[0077] <createwsoutputinfo>
[0078] <dataparseresult> 0< / dataparseresult>
[0079] <! --If the parameter XML format passed by the webservice interface is correct, the following information will appear to indicate whether each work order data is correct. The DataParseResult above is 0 for successful parsing, and non-0 for failed parsing. -->
[0080] <Worksheet WsCode="32010200803280102">
[0081] <result> 0< / result>
[0082] The network management side deploys work orders and calls the internal business delivery interface;
[0083] Log in to the large Layer 2 switch device or SR device, call the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device to configure voice service-related service data;
[0084] The specific steps for activating the voice service of a large Layer 2 switch are as follows:
[0085] If the device is Huawei 93 series, enter display interface XGigabitEthernet 5 / 0 / 6 to check whether the incoming port information is correct and whether the echo result contains "description#OLTName#". If not, it returns a failure with the error reason "the SW port description corresponds to the OLT and the order data are inconsistent". If SWDownPort passes in multiple ports, you need to query the OLTName and E-Trunk name corresponding to each port one by one. If the E-Trunk ports corresponding to multiple physical ports are inconsistent, an error is reported and the error reason is "SW ports belong to different E-Trunk ports". Otherwise, the E-Trunk port name etrunk is recorded as a parameter for subsequent commands. Enter dis cur interface eth-trunk 14 to check whether the VLAN is occupied, and whether the echo result contains "description#OLTName#". If not, it returns failure, and the error reason is "the SW port description corresponding to the OLT and the order data are inconsistent"; determine whether the VLAN following the port trunk allow-pass vlan entry contains the VLAN (VoiceVLAN) that needs to be added. The VLAN separated by "to" in the VLAN information represents a VLAN range, and the VLANs in the middle are all configured VLANs. If they are included, it returns activation failure, and the error reason is "the newly added VLAN in the order data conflicts with the VLAN already configured on the E-TRUNK port." Otherwise, enter
[0086] interface eth-trunk 14
[0087] port trunk allow-pass vlan 1800
[0088] Commit and deliver the configuration.
[0089] If the device is the H3C 76 series, enter the command display interface Ten-GigabitEthernet0 / 0 / 8 to determine whether the incoming port information is correct and whether the echo result contains "description#OLTName#". If not, a failure is returned with the error reason "the SW port description corresponds to the OLT and the order data is inconsistent". If multiple ports are passed in by SWDownPort, the OLTName and E-Trunk names corresponding to the ports need to be queried one by one. If the E-Trunk ports corresponding to multiple physical ports are inconsistent, an error is reported and the error reason is "the SW ports belong to different E-Trunk ports". Otherwise, the E-Trunk port name etrunk is recorded as the input parameter for subsequent commands. H3C trunk port name conversion rule: port link-aggregation group 8=>Bridge-Aggregation 8. Enter the command display interface Bridge-Aggregation 8 to determine whether the VLAN is occupied and whether the echo result contains "description#OLTName#". If not, a failure is returned with the error reason "the SW port description corresponds to the OLT and the order data is inconsistent". Determine whether the VLAN following the port trunk permit vlan entry contains the VLAN (VoiceVLAN) to be added. The VLAN separated by "to" in the VLAN information represents a VLAN segment. The VLANs in the middle are all configured VLANs. If they are included, the activation failure is returned, and the error reason is "the newly added VLAN in the order data conflicts with the VLAN already configured on the E-TRUNK port"; otherwise, enter
[0090] interfaceBridge-Aggregation 8
[0091] port trunk permit vlan 3102
[0092] Quit delivering the configuration.
[0093] If the device is ZTE 89E series, enter show running-config-interface xgei-0 / 5 / 0 / 1 to determine whether the incoming port information is correct, and whether the echo result contains "description#OLTName#". If not, it returns failure, and the error reason is "the SW port description corresponds to the OLT and the order data is inconsistent"; if SWDownPort is passed to multiple ports, you need to query the OLTName and E-Trunk name corresponding to the port one by one. If the E-Trunk ports corresponding to multiple physical ports are inconsistent, an error is reported and exited, and the error reason is "SW ports belong to different E-Trunk ports". Otherwise, record the E-Trunk port name etrunk as the input parameter for subsequent commands. ZTE trunk port name conversion rule: smartgroup 25=>smartgroup25. Enter show running-config-interface smartgroup2 to determine whether the VLAN is occupied, and whether the echo result contains "description#OLTName#". If not, it returns failure, and the error reason is "the SW port description corresponds to the OLT and the order data is inconsistent"; determine whether the VLAN following the switchport trunk vlan entry contains the VLAN (VoiceVLAN) that needs to be added. The VLANs separated by "-" in the VLAN information represent a VLAN segment, and the VLANs in the middle are all configured VLANs. If they are included, it returns activation failure, and the error reason is "the newly added VLAN in the order data conflicts with the VLAN already configured on the E-TRUNK port"; otherwise, enter
[0094] switchvlan-configuration
[0095] interface smartgroup25
[0096] switchport trunk vlan 3102
[0097] exitDeliver the configuration.
[0098] The specific steps for activating the voice service of SR equipment are as follows:
[0099] The device is a Huawei NE40E router. Enter dis ip routing-table vpn-instance VPN_Voice10010.205.55.0 to check whether the voice service IP address conflicts. If a result is found, that is, the service IP address conflicts, the activation failure is returned, and the error reason is "IP address conflict for the newly added voice service". If no result is found, it is determined that the service IP address does not conflict. Enter: dis ip routing-table117.8.102.86 to query the newly configured E-trunk port. If no E-trunk is found, the error "SW has no corresponding E-trunk port" is reported. Get the Eth-Trunk name from the Interface column of the echo result (the Eth-Trunk25 part of Eth-Trunk25.3700 in the echo example) and save it to the parameter etrunk as the input parameter of subsequent commands; enter dis cur int Eth-Trunk25.3102 to check whether the sub-interface exists. Eth-Trunk25.3102 is the sub-interface for SR to connect to SW. If the sub-interface cannot be found, the parameter hasSubport="0" is used to record that the sub-interface does not exist; if the sub-interface is found and the value after ip binding vpn-instance is inconsistent with the value of the input parameter VPNName, an error "Sub-interface binding VPN and dispatch order are inconsistent" is reported and the command exits; otherwise, the parameter hasSubport="1" is used to record that the sub-interface exists;
[0100] If the service sub-interface does not exist (hasSubport = "0"), you need to create the sub-interface and enter all configuration parameters in the following command:
[0101] interface Eth-Trunk25.3102--etrunk.--VoiceVLAN
[0102] description NKNFQ_HW_OLT20--OLTName
[0103] ip binding vpn-instance VPN_Voice100--VPNName
[0104] ip address 10.205.55.124--The IP and mask after VoviceIP split, separated by ""
[0105] encapsulation dot1q-termination
[0106] dot1q termination vid 3102--VoiceVLAN
[0107] trust upstream qos-custom-optim
[0108] trust 8021p
[0109] Commit completes configuration delivery.
[0110] If the service sub-interface exists (hasSubport="1"), only configure the IP address and enter the command as follows:
[0111] interface Eth-Trunk25.3102--etrunk.--VoiceVLAN
[0112] ip address 10.205.55.124sub--The IP and mask after VoiceIP is split, separated by ""
[0113] Commit to complete the configuration delivery.
[0114] Embodiment 2:
[0115] If the northbound system is not required to actively initiate a voice service activation request, the controller platform provides an EXCEL work order template download interface to download the EXCEL spreadsheet file of batch import voice service requirements from the network management server, and the customer fills in the corresponding activation requirements, as shown in Table 1:
[0116] Table 1
[0117] Work order Excel number excelNum 2022092001 Work Order Number WsCode 20080131001 Service Type operType add MAN SR name SRName NK_NFQ_A_NE40E-X16 Metropolitan area network SR management address SRIP 117.8.0.36 Large Layer 2 switch name SWName CNC_TJ_NK_NFQ_S9306 Large Layer 2 switch management address SWIP 117.8.102.86 VPN instance name VPNName VPN_Voice100 Added voice service IP address segment VoviceIP 10.205.55.0 / 24 Voice service VLAN ID VoiceVLAN 3102 OLT name format OLTName NKNFQ_HW_OLT20 OLT uplink large layer 2 port SWDownPort XGE5 / 0 / 6,6 / 0 / 6
[0118] The controller platform provides a POST interface to parse and verify the EXCEL file for batch activation of public voice services line by line. The verification rules are as follows:
[0119] Get the excelNum value in column A as the condition to query the excel_num field in the public broadband work order import table. If a result is found, the error message "Work order Excel code is repeated" is returned.
[0120] Verify the parameters line by line, and execute the import if all verifications are successful, as shown in Table 2:
[0121] Table 2
[0122]
[0123]
[0124] If the verification is successful, the work orders will be entered into the public broadband work order import table and batch business work orders will be generated;
[0125] Query the work order status field in the public broadband work order import table. If there is an ongoing work order, it will prompt that the batch work order is being executed and exit. If there is no ongoing work order, obtain one or more imported work order IDs through the input parameters, associate the imported work order ID with the primary key ID field of the public broadband work order import table, query the corresponding work order information to obtain one or more work order data, call the work order issuance interface to execute the voice service work order, and the work order issuance interface calls the background issuance capability. By decomposing the subtask sequence, the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device is called in turn to configure the voice service related business data.
[0126] The specific steps for activating the voice service of a large Layer 2 switch are as follows:
[0127] If the device is Huawei 93 series, enter display interface XGigabitEthernet 5 / 0 / 6 to check whether the incoming port information is correct and whether the echo result contains "description#OLTName#". If not, it returns a failure with the error reason "the SW port description corresponds to the OLT and the order data are inconsistent". If SWDownPort passes in multiple ports, you need to query the OLTName and E-Trunk name corresponding to each port one by one. If the E-Trunk ports corresponding to multiple physical ports are inconsistent, an error is reported and the error reason is "SW ports belong to different E-Trunk ports". Otherwise, the E-Trunk port name etrunk is recorded as a parameter for subsequent commands. Enter dis cur interface eth-trunk 14 to check whether the VLAN is occupied, and whether the echo result contains "description#OLTName#". If not, it returns failure, and the error reason is "the SW port description corresponding to the OLT and the order data are inconsistent"; determine whether the VLAN following the port trunk allow-pass vlan entry contains the VLAN (VoiceVLAN) that needs to be added. The VLAN separated by "to" in the VLAN information represents a VLAN range, and the VLANs in the middle are all configured VLANs. If they are included, it returns activation failure, and the error reason is "the newly added VLAN in the order data conflicts with the VLAN already configured on the E-TRUNK port." Otherwise, enter
[0128] interface eth-trunk 14
[0129] port trunk allow-pass vlan 1800
[0130] Commit and deliver the configuration.
[0131] If the device is the H3C 76 series, enter the command display interface Ten-GigabitEthernet0 / 0 / 8 to determine whether the incoming port information is correct and whether the echo result contains "description#OLTName#". If not, a failure is returned with the error reason "the SW port description corresponds to the OLT and the order data is inconsistent". If multiple ports are passed in by SWDownPort, the OLTName and E-Trunk names corresponding to the ports need to be queried one by one. If the E-Trunk ports corresponding to multiple physical ports are inconsistent, an error is reported and the error reason is "the SW ports belong to different E-Trunk ports". Otherwise, the E-Trunk port name etrunk is recorded as the input parameter for subsequent commands. H3C trunk port name conversion rule: port link-aggregation group 8=>Bridge-Aggregation 8. Enter the command display interface Bridge-Aggregation 8 to determine whether the VLAN is occupied and whether the echo result contains "description#OLTName#". If not, a failure is returned with the error reason "the SW port description corresponds to the OLT and the order data is inconsistent". Determine whether the VLAN following the port trunk permit vlan entry contains the VLAN (VoiceVLAN) to be added. The VLAN separated by "to" in the VLAN information represents a VLAN segment. The VLANs in the middle are all configured VLANs. If they are included, the activation failure is returned, and the error reason is "the newly added VLAN in the order data conflicts with the VLAN already configured on the E-TRUNK port"; otherwise, enter
[0132] interfaceBridge-Aggregation 8
[0133] port trunk permit vlan 3102
[0134] Quit delivering the configuration.
[0135] If the device is ZTE 89E series, enter show running-config-interface xgei-0 / 5 / 0 / 1 to determine whether the incoming port information is correct, and whether the echo result contains "description#OLTName#". If not, it returns failure, and the error reason is "the SW port description corresponds to the OLT and the order data is inconsistent"; if SWDownPort is passed to multiple ports, you need to query the OLTName and E-Trunk name corresponding to the port one by one. If the E-Trunk ports corresponding to multiple physical ports are inconsistent, an error is reported and exited, and the error reason is "SW ports belong to different E-Trunk ports". Otherwise, record the E-Trunk port name etrunk as the input parameter for subsequent commands. ZTE trunk port name conversion rule: smartgroup 25=>smartgroup25. Enter show running-config-interface smartgroup2 to determine whether the VLAN is occupied, and whether the echo result contains "description#OLTName#". If not, it returns failure, and the error reason is "the SW port description corresponds to the OLT and the order data is inconsistent"; determine whether the VLAN following the switchport trunk vlan entry contains the VLAN (VoiceVLAN) that needs to be added. The VLANs separated by "-" in the VLAN information represent a VLAN segment, and the VLANs in the middle are all configured VLANs. If they are included, it returns activation failure, and the error reason is "the newly added VLAN in the order data conflicts with the VLAN already configured on the E-TRUNK port"; otherwise, enter
[0136] switchvlan-configuration
[0137] interface smartgroup25
[0138] switchport trunk vlan 3102
[0139] exitDeliver the configuration.
[0140] Update the currently pending system work order number to the work order number field of the public broadband work order import table, and set the work order status field value of the public broadband work order import table to being executed. After the current work order is executed, set the work order status field value of the public broadband work order import table to executed, and update the execution result and failure reason fields of the public broadband work order import table, as shown in Table 3:
[0141] Table 3
[0142] Work order Excel number excelNum 2022092001 Work Order Number WsCode 20080131001 Service Type operType add MAN SR name SRName NK_NFQ_A_NE40E-X16 Metropolitan area network SR management address SRIP 117.8.0.36 Large Layer 2 switch name SWName CNC_TJ_NK_NFQ_S9306 Large Layer 2 switch management address SWIP 117.8.102.86 VPN instance name VPNName VPN_Voice100 Added voice service IP address segment VoviceIP 10.205.55.0 / 24 Voice service VLAN ID VoiceVLAN 3102 OLT name format OLTName NKNFQ_HW_OLT20 OLT uplink large layer 2 port SWDownPort XGE5 / 0 / 6,6 / 0 / 6 Operation Results Result 0 (0 success; -1 failure) error message errMsg (error message, not null if failed)
[0143] Based on the same inventive concept, the present invention also proposes a device for automatically opening public voice service data. The implementation of the device can refer to the implementation of the above method, and the repeated parts will not be repeated. Figure 2 As shown, the device 100 includes:
[0144] Service request module 101: used for the northbound system to actively initiate a voice service activation request. The controller platform provides a webservice interface to receive the service activation request from the northbound system.
[0145] Work order forming module 102: used for the network management side to parse the interface parameters after receiving the service activation request, form a work order and save it in the network management system;
[0146] Service delivery module 103: used for deploying work orders on the network management side and calling the internal service delivery interface;
[0147] Data configuration module 104: used to log in to the large layer 2 switch and the SR device, and call the voice service activation capability of the large layer 2 switch or the voice service activation capability of the SR device to configure voice service related service data.
[0148] The present invention proposes a device for automatically activating public voice service data, which supports the automatic activation of the northbound interface calling the southbound interface and the southbound EXCEL batch import and export activation, so as to meet the public voice service data activation requirements, automate the processing, and realize the new voice service in the metropolitan area network. It involves the automatic activation of the relevant configuration of the newly added sub-interface corresponding to the SR device and the automatic activation of the corresponding VLAN transparent transmission configuration of the OLT aggregation port connected to the large two-layer switch, thereby improving the operation and maintenance efficiency.
[0149] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements contained in the spirit and scope of the attached claims.
[0150] Regarding the limitation of the protection scope of the present invention, those skilled in the art should understand that, based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.< / createwsoutputinfo>
Claims
1. A method for automatically opening public voice service data, characterized in that: The method includes: S01: The northbound system actively initiates a voice service activation request, and the controller platform provides a webservice interface to receive the service activation request from the northbound system; S02: After receiving the service activation request, the network management side parses the interface parameters, forms a work order and saves it in the network management system; S03: The network management side deploys the work order and calls the internal service delivery interface; S04: Log in to the large Layer 2 switch and the SR device, and call the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device to configure voice service related service data.
2. A method for automatically opening public voice service data according to claim 1, characterized in that: If the northbound system described in S01 is not required to actively initiate a voice service activation request, the controller platform provides an EXCEL work order import method. The specific steps are as follows: S1: The controller platform provides an EXCEL work order template download interface, which can be used to download the EXCEL spreadsheet file containing the batch import of voice service requirements from the network management server, and the customer can fill in the corresponding activation requirements. S2: The controller platform provides a POST interface to parse and verify the EXCEL file of the batch activation of public voice service requirements line by line. If the verification is successful, it will be stored in the public broadband work order import table and generate batch service work orders; S3: Call the work order issuing interface to execute the voice service work order. The work order issuing interface calls the background issuing capability. By decomposing the subtasks in sequence, the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device is called in turn to configure the voice service related service data. S4: Update the currently executed system work order number to the work order number field of the public broadband work order import table, and set the work order status field value of the public broadband work order import table to executing. After the current work order is executed, set the work order status field value of the public broadband work order import table to executed, and update the execution result and failure reason fields of the public broadband work order import table.
3. A method for automatically opening public voice service data according to claim 2, characterized in that: Before calling the work order issuing interface to execute the voice service work order described in S3, the work order status field in the public broadband work order import table is first queried. If there is a work order being executed, it is prompted that the batch work order is being executed and exits; If there is no work order being executed, one or more import work order IDs are obtained through the input parameters, and the import work order ID is associated with the primary key ID field of the public broadband work order import table, and the corresponding work order information is queried to obtain one or more work order data.
4. The method for automatically opening public voice service data according to claim 1, characterized in that: The specific steps of enabling the voice service of the large Layer 2 switch described in S04 are: check whether the switch downstream port information is correct, if not, report an error and exit; if correct, check whether the E-Trunk port bound to the switch downstream port is correct, if not, report an error and exit; if correct, check whether the VLAN is occupied, if occupied, report an error and exit; If it is not occupied, the E-Trunk port is used to transparently transmit the VLAN configuration.
5. The method for automatically opening public voice service data according to claim 1, characterized in that: The specific steps for activating the voice service capability of the SR device described in S04 are: check whether the voice service IP address conflicts, and if so, report an error and exit; if not, query the E-Trunk port corresponding to the switch, and if not found, report an error and exit; if found, query whether the SW sub-interface connected to the SR device exists, and if so, report an error and exit; if so, check whether the SW sub-interface connected to the SR device exists, and if so, and the VPN bound to the sub-interface is inconsistent with the VPN in the work order, report an error and exit; if so, and the VPN bound to the sub-interface is consistent with the VPN in the work order, configure the voice service address for the SR sub-interface; if the SW sub-interface connected to the SR device does not exist, configure the SR sub-interface.
6. A device for automatically opening public voice service data, characterized in that: The device includes: Service request module: used by the northbound system to actively initiate voice service activation requests. The controller platform provides a webservice interface to receive service activation requests from the northbound system. Work order generation module: used for parsing interface parameters after receiving a service activation request on the network management side, generating a work order and saving it in the network management system; Business delivery module: used to deploy work orders on the network management side and call the internal business delivery interface; Data configuration module: used to log in to the large Layer 2 switch and SR device, call the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device to configure voice service related business data.
7. The device for automatically opening public voice service data according to claim 6, characterized in that: If the northbound system described in the service request module is not required to actively initiate a voice service activation request, the controller platform provides an EXCEL work order import method. The specific steps are as follows: S1: The controller platform provides an EXCEL work order template download interface, which can be used to download the EXCEL spreadsheet file containing the batch import of voice service requirements from the network management server, and the customer can fill in the corresponding activation requirements. S2: The controller platform provides a POST interface to parse and verify the EXCEL file of the batch activation of public voice service requirements line by line. If the verification is successful, it will be stored in the public broadband work order import table and generate batch service work orders; S3: Call the work order issuing interface to execute the voice service work order. The work order issuing interface calls the background issuing capability. By decomposing the subtasks in sequence, the voice service activation capability of the large Layer 2 switch or the voice service activation capability of the SR device is called in turn to configure the voice service related service data. S4: Update the currently executed system work order number to the work order number field of the public broadband work order import table, and set the work order status field value of the public broadband work order import table to executing. After the current work order is executed, set the work order status field value of the public broadband work order import table to executed, and update the execution result and failure reason fields of the public broadband work order import table.
8. The device for automatically opening public voice service data according to claim 7, characterized in that: Before calling the work order issuing interface to execute the voice service work order described in S3, the work order status field in the public broadband work order import table is first queried. If there is a work order being executed, it is prompted that the batch work order is being executed and exits; If there is no work order being executed, one or more import work order IDs are obtained through the input parameters, and the import work order ID is associated with the primary key ID field of the public broadband work order import table, and the corresponding work order information is queried to obtain one or more work order data.
9. The device for automatically opening public voice service data according to claim 6, characterized in that: The specific steps of enabling the voice service of the large Layer 2 switch described in the data configuration module are as follows: check whether the switch downstream port information is correct, if not, report an error and exit; if correct, check whether the E-Trunk port bound to the switch downstream port is correct, if not, report an error and exit; if correct, check whether the VLAN is occupied, if occupied, report an error and exit; If it is not occupied, the E-Trunk port is used to transparently transmit the VLAN configuration.
10. The device for automatically opening public voice service data according to claim 6, characterized in that: The specific steps for activating the voice service capability of the SR device described in the data configuration module are: check whether the voice service IP address conflicts, and if so, report an error and exit; if not, query the E-Trunk port corresponding to the switch, and if not found, report an error and exit; if found, query whether the SW sub-interface connected to the SR device exists, and if so, report an error and exit; if so, check whether the SW sub-interface connected to the SR device exists, and if so, and the VPN bound to the sub-interface is inconsistent with the VPN in the work order, report an error and exit; if so, and the VPN bound to the sub-interface is consistent with the VPN in the work order, configure the voice service address for the SR sub-interface; if the SW sub-interface connected to the SR device does not exist, configure the SR sub-interface.
