An end-to-end circuit concatenation method and device, electronic equipment and storage medium

By acquiring full configuration information of devices and central point filtering information, parsing device information mapping relationships, and generating service networking links, the problem of end-to-end circuit serial connection in VPLS networking is solved, achieving efficient circuit monitoring and fault location, and improving the operator's service capabilities.

CN119697016BActive Publication Date: 2026-05-19CHINA TELECOM CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA TELECOM CORP LTD
Filing Date
2024-12-09
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In existing technologies, end-to-end circuit cascading based on device configuration is difficult to achieve in VPLS networking, resulting in difficulties in service networking configuration, low efficiency, and hindering the construction of operators' proactive operation service system.

Method used

By obtaining the full configuration information of the devices corresponding to the service network, determining the device information mapping relationship, obtaining the central point filtering information, parsing the central point device configuration information and device information mapping relationship, generating the service network link, and realizing end-to-end circuit connection.

Benefits of technology

It enables automatic end-to-end circuit topology establishment based on full device configuration information, supports circuit monitoring, alarm and fault rapid location, and improves the efficiency and reliability of service network configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697016B_ABST
    Figure CN119697016B_ABST
Patent Text Reader

Abstract

The application discloses an end-to-end circuit concatenation method and device, electronic equipment and a storage medium. The method comprises the following steps: obtaining device full configuration information corresponding to service networking; determining a device information mapping relationship according to the device full configuration information; obtaining center point screening information; determining center point device configuration information from the device full configuration information according to the center point screening information; analyzing the center point device configuration information and the device information mapping relationship; determining a plurality of transit device network protocol addresses; generating a service networking link according to the transit device network protocol addresses and the center point device configuration information; and performing end-to-end circuit concatenation according to the service networking link. The application can realize configuration analysis of service networking and end-to-end circuit concatenation based on device configuration, and can be widely applied in the technical field of communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to an end-to-end circuit serial connection method, apparatus, electronic device and storage medium. Background Technology

[0002] End-to-end service network circuit cascading based on device configuration can accurately reflect the actual circuit connection status of the customer's network, and provide real-time feedback on circuit status and the performance of each device through which services flow. Using the established data as a foundation, operators can further process the data and apply it to proactive operation service systems such as equipment load monitoring, service data statistics, network topology presentation, billing information auditing, rapid fault location, and circuit monitoring alarms.

[0003] Currently, Virtual Private LAN Service (VPLS) is commonly used for service networking configuration. It relies on the service bearer network (IP Radio Access Network, IPRAN) to establish point-to-multipoint Ethernet circuits. However, due to the complexity of user network topology, the dispersion of access points, and the variety of device layers through which service flows pass, the complex VPLS technical architecture makes it difficult to achieve end-to-end circuit cascading based on device configuration. This results in difficult and inefficient service networking configuration, which greatly hinders the construction of operators' proactive operation and service systems. Summary of the Invention

[0004] The main objective of this application is to provide an end-to-end circuit cascading method, apparatus, electronic device, and storage medium that can realize the configuration parsing of service networking and achieve end-to-end circuit cascading based on device configuration.

[0005] On one hand, embodiments of this application propose an end-to-end circuit series connection method, the method comprising the following steps:

[0006] Obtain the full configuration information of the devices corresponding to the service network, and determine the device information mapping relationship based on the full configuration information of the devices;

[0007] Obtain center point filtering information, and determine center point device configuration information from the full device configuration information based on the center point filtering information;

[0008] The configuration information of the central point device and the mapping relationship of the device information are analyzed to determine the network protocol addresses of multiple relay devices. Based on the network protocol addresses of each relay device and the configuration information of the central point device, a service network link is generated.

[0009] Based on the aforementioned service network links, end-to-end circuit cascades are performed.

[0010] In some embodiments, obtaining the full configuration information of devices corresponding to the service network and determining the device information mapping relationship based on the full configuration information specifically includes:

[0011] Collect full configuration information for multiple service devices in the service-bearing network;

[0012] Based on the full configuration information corresponding to each of the aforementioned service devices, determine the device service network protocol address and device network protocol address corresponding to each of the aforementioned service devices;

[0013] The device information mapping relationship is established by mapping the device service network protocol address corresponding to each of the aforementioned service devices to the device network protocol address.

[0014] In some embodiments, obtaining center point filtering information and determining center point device configuration information from the full device configuration information based on the center point filtering information specifically includes:

[0015] In response to the center point filtering operation, receive center point instruction filtering information and obtain the center point instruction filtering information as the center point filtering information;

[0016] Based on the full configuration information of the device, a central point device matching the central point instruction filtering information is determined from multiple service devices, and the full configuration information corresponding to the central point device is determined as the central point device configuration information.

[0017] In some embodiments, the step of parsing the mapping relationship between the central point device configuration information and the device information, determining the network protocol addresses of multiple relay devices, and generating service network links based on the network protocol addresses of each relay device and the central point device configuration information specifically includes:

[0018] Parse the configuration information of the central point device to determine the corresponding service binding physical port information;

[0019] The central point device configuration information is obtained as the current device configuration information;

[0020] Parse the current device configuration information to determine the corresponding channel pseudowire configuration information and the current device network protocol address;

[0021] Determine the channel pseudowire configuration unit data that matches the physical port information bound to the service from the channel pseudowire configuration information;

[0022] Analyze the channel pseudowire configuration unit data to determine whether it contains next hop device guidance data;

[0023] When the channel pseudowire configuration unit data contains the next hop device guidance data, the next hop device service network protocol address is determined according to the next hop device guidance data. The next hop device network protocol address corresponding to the next hop device service network protocol address is determined from the device information mapping relationship. A network topology connection is established between the current device network protocol address and the next hop device network protocol address. The next hop device configuration information corresponding to the next hop device network protocol address is obtained from the device full configuration information. The next hop device configuration information is obtained as the current device configuration information. Then, the current device configuration information is parsed to determine the corresponding channel pseudowire configuration information and the current device network protocol address, until the channel pseudowire configuration unit data no longer contains the next hop device guidance data.

[0024] When the channel pseudowire configuration unit data does not contain the next hop device guidance data, the current device network protocol address is determined as the link termination node of the service networking link.

[0025] In some embodiments, the method further includes:

[0026] Based on the central point device configuration information, determine the target central point service port corresponding to the central point device;

[0027] The target center point service port is constructed as a service access port, and the service access port is used to receive service request information.

[0028] In some embodiments, establishing a network topology connection between the current device network protocol address and the next hop device network protocol address specifically includes:

[0029] The first link node is determined based on the current device network protocol address;

[0030] The second link node is determined based on the network protocol address of the next hop device;

[0031] Establish a network topology connection between the first link node and the second link node in the service network link, wherein the first link node is the predecessor node of the second link node.

[0032] In some embodiments, determining the current device network protocol address as the link termination node of the service networking link when the channel pseudowire configuration unit data does not contain the next hop device guidance data specifically includes:

[0033] Obtain the network links of the aforementioned services;

[0034] The link termination node is determined based on the current device network protocol address;

[0035] The link termination node is used as the termination node of the service network link and is connected to the service network link.

[0036] On the other hand, embodiments of this application propose an end-to-end circuit serial connection device, the device comprising:

[0037] The first module is used to obtain the full configuration information of the devices corresponding to the service network, and determine the device information mapping relationship based on the full configuration information of the devices;

[0038] The second module is used to obtain center point filtering information and determine center point device configuration information from the full device configuration information based on the center point filtering information.

[0039] The third module is used to parse the configuration information of the central point device and the mapping relationship of the device information, determine the network protocol addresses of multiple relay devices, and generate service networking links based on the network protocol addresses of each relay device and the configuration information of the central point device.

[0040] The fourth module is used to perform end-to-end circuit cascading according to the service network links.

[0041] On the other hand, embodiments of this application propose an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the end-to-end circuit serial connection method described above.

[0042] On the other hand, embodiments of this application propose a computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned end-to-end circuit serial connection method.

[0043] The embodiments of this application include at least the following beneficial effects: The end-to-end circuit cascading method, apparatus, electronic device, and storage medium provided in this application obtain full configuration information of devices corresponding to the service network, determine device information mapping relationships based on the full configuration information, obtain central point filtering information, determine central point device configuration information from the full configuration information based on the central point filtering information, parse the central point device configuration information and device information mapping relationships, determine the network protocol addresses of multiple relay devices, generate service network links based on the network protocol addresses of each relay device and the central point device configuration information, and perform end-to-end circuit cascading based on the service network links. This application can realize service network configuration parsing and automatically establish end-to-end network circuit topology based on the full configuration information of devices, providing a solid foundation for realizing upper-layer applications such as circuit monitoring, alarms, and rapid fault location in service networks. Attached Figure Description

[0044] Figure 1 This is a flowchart of an end-to-end circuit series connection method provided in an embodiment of this application;

[0045] Figure 2 This is a flowchart of step S101 in the embodiments of this application;

[0046] Figure 3 This is a flowchart of step S102 in the embodiments of this application;

[0047] Figure 4 This is a flowchart of step S103 in the embodiments of this application;

[0048] Figure 5 This is a flowchart of step S406 in the embodiments of this application;

[0049] Figure 6 This is a flowchart of step S407 in the embodiments of this application;

[0050] Figure 7 This is another flowchart of an end-to-end circuit series connection method provided in the embodiments of this application;

[0051] Figure 8 This is a schematic diagram of the service networking links in the embodiments of this application;

[0052] Figure 9 This is a schematic diagram of the structure of an end-to-end circuit series connection device provided in an embodiment of this application;

[0053] Figure 10 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit it. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.

[0055] It is understood that the terms “first,” “second,” etc., used in this application may be used herein to describe various concepts, but unless otherwise stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if,” “when,” or “in response to a determination” as used herein may be interpreted as “when…” or “when…” or “in response to a determination.”

[0056] As used in this application, the terms "at least one", "multiple", "each", "any", etc., "at least one" includes one, two or more, "multiple" includes two or more, "each" refers to each of the corresponding multiples, and "any" refers to any one of the multiples.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0058] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirection to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data required for the proper functioning of these embodiments acquired.

[0059] Before providing a detailed description of the embodiments of this application, some of the nouns and terms involved in the embodiments of this application will be explained first. The nouns and terms involved in the embodiments of this application are subject to the following interpretations.

[0060] 1) IPRAN (IPRadio Access Network): refers to an end-to-end service bearer network based on IP / MPLS protocol and key technologies, mainly for mobile service bearer and also for providing Layer 2 and Layer 3 channel service bearer, organized by province and relying on CN2 backbone layer.

[0061] 2) VPWS (Virtual Private Wire Service): A networking technology commonly used by operators for IPRAN services. Essentially, it refers to providing high-speed Layer 2 pass-through between a pair of ports of two routers, built on the infrastructure of MPLS networks, to provide point-to-point connections for customers.

[0062] 3) VPLS (Virtual Private LAN Service): A networking technology commonly used by operators for IPRAN services. Essentially, it is an L2VPN (Layer 2 Virtual Private Network) technology based on IP / MPLS and Ethernet, providing users with point-to-point, point-to-multipoint, and multipoint-to-multipoint connections.

[0063] 4) VCID: Virtual Channel Identifier, a unique identifier used to identify virtual channels in a network. In ATM (Asynchronous Transfer Mode) networks, VCID is used to distinguish different virtual channels. Each cell header contains a 16-bit VCID to identify which virtual channel the cell belongs to.

[0064] 5) PW: Pseudowire is a communication technology that provides end-to-end services in MPLS networks. It is used to emulate different types of network services. It encapsulates traditional network services (such as Frame Relay, Time Division Multiplexing, Asynchronous Transfer, and Ethernet) and transmits them on modern MPLS or IP networks by establishing point-to-point connections between edge routers.

[0065] 6) MPLS: Multi-Protocol Label Switching is a new technology that uses labels to guide the high-speed and efficient transmission of data over open communication networks. The term "multi-protocol" means that MPLS can support multiple network layer protocols and is also compatible with various data link layer technologies at layer 2.

[0066] Currently, Virtual Private LAN Service (VPLS) is commonly used for service networking configuration. It relies on the service bearer network (IP Radio Access Network, IPRAN) to establish point-to-multipoint Ethernet circuits. However, due to the complexity of user network topology, the dispersion of access points, and the variety of device layers through which service flows pass, the complex VPLS technical architecture makes it difficult to achieve end-to-end circuit tree construction based on device configuration. This results in difficult and inefficient service networking configuration, which greatly hinders the construction of operators' proactive operation and service systems.

[0067] Based on this, embodiments of this application propose an end-to-end circuit serial connection method, device, electronic device, and storage medium, which enables VPLS networking circuits to automatically establish end-to-end topology based on the full configuration information of the devices, providing a foundation for realizing upper-layer applications such as circuit monitoring, alarms, and rapid fault location.

[0068] Reference Figure 1 , Figure 1 This is an optional flowchart of an end-to-end circuit serial connection method provided in an embodiment of this application. The method may include, but is not limited to, steps S101 to S104:

[0069] Step S101: Obtain the full configuration information of the devices corresponding to the service network, and determine the device information mapping relationship based on the full configuration information of the devices;

[0070] Step S102: Obtain center point filtering information, and determine center point device configuration information from the full device configuration information based on the center point filtering information;

[0071] Step S103: parse the configuration information of the central point device and the mapping relationship of device information, determine the network protocol addresses of multiple relay devices, and generate service network links based on the network protocol addresses of each relay device and the configuration information of the central point device;

[0072] Step S104: Perform end-to-end circuit cascading according to the service network link.

[0073] In some embodiments, this application focuses on the IPRAN network architecture. Based on the unique characteristics of VPLS networking circuits, combined with the configuration specifications of each network layer and the configuration templates and principles of each equipment manufacturer, and based on the key information such as VCID and PW of the virtual circuit (VC) in the service network, it proposes an end-to-end circuit serialization method that takes the central point device of the service network as the benchmark and radiates outwards to splice the branch points corresponding to each relay device, ultimately realizing the automatic establishment of the end-to-end topology.

[0074] In some embodiments, refer to Figure 2 , Figure 2 This is an optional flowchart of step S101 in the embodiments of this application. Step S101 may include, but is not limited to, steps S201 to S203:

[0075] Step S201: Collect full configuration information corresponding to multiple service devices in the service bearer network;

[0076] Step S202: Based on the full configuration information corresponding to each service device, determine the device service network protocol address and device network protocol address corresponding to each service device;

[0077] Step S203: Map the device service network protocol address and the device network protocol address corresponding to each service device to establish a device information mapping relationship.

[0078] In some embodiments, optionally, the manufacturers of each service device, configuration templates of each device level, and collection rules are collected. Device information is collected periodically according to the collection rules, and instructions are parsed according to the configuration templates to obtain the full instruction-level configuration of each service device (such as the full configuration information mentioned above). The full instruction-level configuration of the device may include, but is not limited to, device model, device system information, device IP address, device service IP address, physical port, network configuration information, etc. The network configuration information may include, but is not limited to, communication settings, processing communication settings, connection mode, service, real-time clock, IO mapping, and other data.

[0079] In some embodiments, the device IP address and device service IP address are determined from the full configuration information corresponding to each service device, and a mapping relationship between the device IP address and device service IP address in each service device is established to obtain the above-mentioned device information mapping relationship. The device information mapping relationship includes the mapping relationship established between the device IP address and device service IP address in each service device.

[0080] In some embodiments, refer to Figure 3 , Figure 3 This is an optional flowchart of step S102 in the embodiments of this application. Step S102 may include, but is not limited to, steps S301 to S302:

[0081] Step S301: In response to the center point filtering operation, receive center point instruction filtering information and obtain the center point instruction filtering information as center point filtering information;

[0082] Step S302: Based on the full configuration information of the devices, determine the central point device that matches the central point instruction filtering information from multiple business devices, and determine the full configuration information corresponding to the central point device as the central point device configuration information.

[0083] In some embodiments, the central point instruction filtering information includes a first instruction and a second instruction. The first instruction is used to initially locate the central point in the MPLS network, and the second instruction is used to filter out central point devices that conform to preset VPLS configuration instructions from the full instruction-level configuration of the devices. The central point device is a service device located at the central point of the MPLS network.

[0084] For example, the first command "!MPLS VPLS global config" is used as the key configuration command for the first filtering to initially locate the central point and obtain the instance data corresponding to the central point binding. The second command "mpls staticvpls domain" is used as the key string for the second filtering to filter out all commands starting with the key string from the instance data, determine the instance name of the central point device, and collect the full configuration information corresponding to the central point device, including the device IP address, device hierarchy information, network configuration information, channel PW configuration information, instance name, and physical port, etc.

[0085] In some embodiments, refer to Figure 4 , Figure 4 This is an optional flowchart of step S103 in the embodiments of this application. Step S103 may include, but is not limited to, steps S401 to S407:

[0086] Step S401: Parse the central point device configuration information to determine the corresponding service binding physical port information;

[0087] Step S402: Obtain the central point device configuration information as the current device configuration information;

[0088] Step S403: Parse the current device configuration information to determine the corresponding channel pseudowire configuration information and the current device network protocol address;

[0089] Step S404: Determine the channel pseudowire configuration unit data that matches the service-bound physical port information from the channel pseudowire configuration information;

[0090] Step S405: parse the channel pseudowire configuration unit data to determine whether it contains next jump device guidance data;

[0091] Step S406: When the channel pseudowire configuration unit data contains next-hop device guidance data, determine the next-hop device service network protocol address based on the next-hop device guidance data, determine the next-hop device network protocol address corresponding to the next-hop device service network protocol address from the device information mapping relationship, establish a network topology connection between the current device network protocol address and the next-hop device network protocol address, obtain the next-hop device configuration information corresponding to the next-hop device network protocol address from the device full configuration information, obtain the next-hop device configuration information as the current device configuration information, and then return to parse the current device configuration information to determine the corresponding channel pseudowire configuration information and the current device network protocol address, until the channel pseudowire configuration unit data no longer contains next-hop device guidance data;

[0092] Step S407: When the channel pseudowire configuration unit data does not contain the next hop device guidance data, the current device network protocol address is determined as the link termination node of the service networking link.

[0093] In some embodiments, the central point device configuration information is parsed to obtain channel PW configuration information (such as the channel pseudowire configuration information mentioned above), the instance name of the central point device, and the device IP address. The instance name is used as a key command parameter (such as the service binding physical port information mentioned above). Based on the key command parameter, the channel PW configuration instruction block bound to the instance name (such as the channel pseudowire configuration unit data mentioned above) is filtered out from the channel PW configuration information. Within the channel PW configuration instruction block, the next hop device guidance data is determined. The next hop device guidance data includes the circuit PW value, VCID value of the current device, and the service IP address of the next hop device.

[0094] In some embodiments, steps S403 to S406 are repeated until the channel pseudowire configuration unit data does not contain next hop device guidance data. When the channel pseudowire configuration unit data does not contain next hop device guidance data, it indicates that the current device network protocol address corresponds to the end node of the service network, and the device node corresponding to the current device network protocol address is determined to be the link termination node of the service network link.

[0095] In some embodiments, refer to Figure 5 , Figure 5 This is an optional flowchart of step S406 in the embodiments of this application. Step S406 may include, but is not limited to, steps S501 to S503:

[0096] Step S501: Determine the first link node based on the current device network protocol address;

[0097] Step S502: Determine the second link node based on the network protocol address of the next hop device;

[0098] Step S503: Establish a network topology connection between the first link node and the second link node in the service network link, wherein the first link node is the predecessor node of the second link node.

[0099] In some embodiments, the device node corresponding to the current device network protocol address is taken as the first link node, and the device node corresponding to the next hop device network protocol address is taken as the second link node. A network topology connection channel is established between the first link node and the second link node. This network topology connection channel is a directed node connection path in the service network link. The first link node is the predecessor node of the second link node, indicating that the service request information is first sent to the first link node and then forwarded from the first link node to the second link node.

[0100] In some embodiments, refer to Figure 6 , Figure 6 This is an optional flowchart of step S407 in the embodiments of this application. Step S407 may include, but is not limited to, steps S601 to S603:

[0101] Step S601: Obtain the service network links;

[0102] Step S602: Determine the link termination node based on the current device network protocol address;

[0103] Step S603: Use the link termination node as the termination node of the service network link and connect it to the service network link.

[0104] In some embodiments, the link termination node is the termination processing node of the service networking link. The service processing task corresponding to the service request information is completed at the termination processing node. The central point device is the link initiation node of the service networking link and receives the service request information using the link initiation node.

[0105] In some embodiments, refer to Figure 7 , Figure 7 This is another optional flowchart of an end-to-end circuit series connection method provided in the embodiments of this application. The end-to-end circuit series connection method may further include steps S701 to S702:

[0106] Step S701: Determine the target central point service port corresponding to the central point device based on the central point device configuration information;

[0107] Step S702: Obtain service request information, construct the target center point service port as a service access port, and use the service access port to receive service request information.

[0108] In some embodiments, service request information is received using the service access port, and the service processing tasks corresponding to the service request information are processed step by step using each link node in the above-mentioned service network link.

[0109] In some embodiments, the above-described end-to-end circuit cascading method is used to automatically establish an end-to-end topology for a VPLS circuit. The specific process is as follows:

[0110] The first step is to collect all the configuration information of the IPRAN devices, generate all the configuration files, synchronize them to the database, establish a mapping relationship between device IP addresses and device service IP addresses based on the all the configuration information, obtain the device information mapping relationship, and write it to the database for later use.

[0111] The second step is to filter the center point. Using "!MPLS VPLS global config" and "mpls static vplsdomain" as the center point filtering information, the full configuration information of the device is filtered twice consecutively. After filtering, the instance data bound to the center point is obtained, as shown below (this application embodiment only shows one data as an example):

[0112] mpls static vpls domain VSI_eth_7_1_2514 1etree flood false falsefalse true 32000G0432618756_7 / 1_2514raw;

[0113] The third step is to use the string "mpls static vpls domain" as the instruction keyword and spaces as the command parameter separators to parse the command parameters containing the word "VSI" in each single configuration instruction, and obtain the central point instance name "VSI_eth_7_1_2514" from the instance data bound to the central point mentioned above.

[0114] The fourth step involves using "interface ac" as the key string and "VSI_eth_7_1_2514" as the key command parameter to filter out the configurations that meet the criteria, as follows:

[0115]

[0116] Based on the above configuration, the physical port bound to the central point is identified as "ethernet 7 / 1". The physical port "ethernet7 / 1" is determined as the service access port, and service request information is received using this service access port.

[0117] The fifth step involves parsing the central point device configuration information to determine the corresponding service-bound physical port information (determined through the key command parameter "VSI_eth_7_1_2514"), channel pseudowire configuration information, and the current device network protocol address. Based on the service-bound physical port information, the corresponding channel PW configuration instruction block is selected from the channel pseudowire configuration information. A specific example of the channel PW configuration instruction block is shown below:

[0118]

[0119] By determining the circuit PW value, VCID value, and the next-hop device service IP address specified in the above channel PW configuration instruction block, the following results are obtained:

[0120] 1) Circuit PW value: pw10000401 (primary), next-hop device service IP address: service IP: 10.10.10.10 (primary), VCID value: 910341;

[0121] 2) Circuit PW value: pw10000402 (backup), next-hop device service IP address: service IP: 20.20.20.20 (primary), VCID value: 910342;

[0122] Based on the next-hop device service IP address of pw10000401 (primary) above: 10.10.10.10, the corresponding device IP address is determined to be 1.1.1.1 from the device information mapping relationship. The channel PW configuration block in the device with device IP address 1.1.1.1 that matches the service-bound physical port information is then queried. A specific example is as follows:

[0123] mspw 910341 for ethernet raw

[0124] pseudo-wire pw261

[0125] neighbor 110.110.110.110vcid 910341

[0126] vccv bfd capability status encapsulation ip

[0127] Parsing the above channel PW instruction block, the bound circuit PW value is obtained as pw261, the next-hop device service IP address is 110.110.110.110, and the VCID value is 910341;

[0128] Step 6: Repeat step 5 above until the termination node of the service network link is determined. The device IP address corresponding to the termination node is 0.0.0.2, the port is gigaethernet 1 / 3 / 7, and the corresponding channel PW configuration block is as follows:

[0129] interface gigaethernet 1 / 3 / 7

[0130] mode l2

[0131] description G0432609423 1 / 3 / 7

[0132] rate-limit ingress cir 4000cbs 750pir 4000pbs 750

[0133] rate-limit egress cir 4000cbs 750pir 4000pbs 750

[0134] speed 100

[0135] mpls l2vc destination 101.101.101.101raw vc-id 910341mtu 1500

[0136] mpls l2vc destination 202.202.202.202raw vc-id 910342mtu 1500backup

[0137] mpls l2vpn redundancy master switch-mode revertive wtr-time 120

[0138] mpls l2vpn pw bfd

[0139] mpls l2vpn pw bfd backup;

[0140] Step 7: Connect the multiple relay device nodes identified in steps 6 and 7 above to generate the service network link, referring to... Figure 8 , Figure 8This is an optional schematic diagram of the service networking link in this application embodiment, wherein the IP address of the central point device is 0.0.0.1, the corresponding device node is the link start node, the second-level link node is the device node corresponding to the device IP address: 1.1.1.1, the third-level link node is the device node corresponding to the device IP address: 11.11.11.11, and the link termination node is the device node corresponding to the device IP address: 0.0.0.2.

[0141] Reference Figure 9 , Figure 9 This is an optional structural diagram of an end-to-end circuit series connection device provided in an embodiment of this application. This device can be used to implement the above-described end-to-end circuit series connection method and may include:

[0142] The first module is used to obtain the full configuration information of the devices corresponding to the service network and determine the device information mapping relationship based on the full configuration information of the devices.

[0143] The second module is used to obtain the center point filtering information and determine the center point device configuration information from the full device configuration information based on the center point filtering information.

[0144] The third module is used to parse the configuration information and device information mapping relationship of the central point device, determine the network protocol addresses of multiple relay devices, and generate service network links based on the network protocol addresses of each relay device and the configuration information of the central point device.

[0145] The fourth module is used to perform end-to-end circuit cascading based on the service network links.

[0146] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0147] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described end-to-end circuit serial connection method. This electronic device can be any smart terminal, including tablet computers.

[0148] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0149] Please see Figure 10 , Figure 10 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes:

[0150] The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0151] The memory 902 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 902 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 using the end-to-end circuit serial connection method of the embodiments of this application.

[0152] The input / output interface 903 is used to implement information input and output;

[0153] The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0154] Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904);

[0155] The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.

[0156] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described end-to-end circuit serial connection method.

[0157] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0158] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0159] This application provides an end-to-end circuit cascading method, apparatus, electronic device, and storage medium. It obtains full configuration information of devices corresponding to a service network, determines device information mapping relationships based on this information, obtains central point filtering information, and determines central point device configuration information from the full device configuration information. It parses the central point device configuration information and device information mapping relationships to determine the network protocol addresses of multiple relay devices. Based on the network protocol addresses of each relay device and the central point device configuration information, it generates service network links and performs end-to-end circuit cascading based on these links. This application enables service network configuration parsing and automatically establishes end-to-end network circuit topology based on full device configuration information, providing a solid foundation for upper-layer applications such as circuit monitoring, alarms, and rapid fault location in service networks.

[0160] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0161] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0162] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0163] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0164] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0165] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0166] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0167] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0168] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0169] It should be recognized that embodiments of the present invention can be implemented or carried out by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable storage medium. The method can be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with a computer program, wherein the storage medium is configured such that the computer operates in a specific and predefined manner—according to the methods and drawings described in the specific embodiments. Each program can be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system. However, if desired, the program can be implemented in assembly or machine language. In any case, the language can be a compiled or interpreted language. Furthermore, for this purpose, the program can run on a programmed application-specific integrated circuit (ASIC).

[0170] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0171] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A method for connecting an end-to-end circuit in series, characterized in that, The method includes the following steps: Obtain the full configuration information of the devices corresponding to the service network, and determine the device information mapping relationship based on the full configuration information of the devices; Obtain center point filtering information, and determine center point device configuration information from the full device configuration information based on the center point filtering information; The configuration information of the central point device and the mapping relationship of the device information are analyzed to determine the network protocol addresses of multiple relay devices. Based on the network protocol addresses of each relay device and the configuration information of the central point device, a service network link is generated. Based on the aforementioned service network links, end-to-end circuit cascades are performed; The step of obtaining the full configuration information of the devices corresponding to the service network and determining the device information mapping relationship based on the full configuration information specifically includes: Collect full configuration information for multiple service devices in the service-bearing network; Based on the full configuration information corresponding to each of the aforementioned service devices, determine the device service network protocol address and device network protocol address corresponding to each of the aforementioned service devices; Map the device service network protocol address corresponding to each of the aforementioned service devices to the device network protocol address to establish the device information mapping relationship; The step of obtaining the center point filtering information and determining the center point device configuration information from the full device configuration information based on the center point filtering information specifically includes: In response to the center point filtering operation, receive center point instruction filtering information and obtain the center point instruction filtering information as the center point filtering information; Based on the full configuration information of the device, a central point device matching the central point instruction filtering information is determined from multiple service devices, and the full configuration information corresponding to the central point device is determined as the central point device configuration information; The process of parsing the configuration information of the central point device and the mapping relationship between the device information to determine the network protocol addresses of multiple relay devices, and generating service network links based on the network protocol addresses of each relay device and the configuration information of the central point device, specifically includes: Parse the configuration information of the central point device to determine the corresponding service binding physical port information; The central point device configuration information is obtained as the current device configuration information; Parse the current device configuration information to determine the corresponding channel pseudowire configuration information and the current device network protocol address; Determine the channel pseudowire configuration unit data that matches the physical port information bound to the service from the channel pseudowire configuration information; Analyze the channel pseudowire configuration unit data to determine whether it contains next hop device guidance data; When the channel pseudowire configuration unit data contains the next hop device guidance data, the next hop device service network protocol address is determined according to the next hop device guidance data. The next hop device network protocol address corresponding to the next hop device service network protocol address is determined from the device information mapping relationship. A network topology connection is established between the current device network protocol address and the next hop device network protocol address. The next hop device configuration information corresponding to the next hop device network protocol address is obtained from the device full configuration information. The next hop device configuration information is obtained as the current device configuration information. Then, the current device configuration information is parsed to determine the corresponding channel pseudowire configuration information and the current device network protocol address, until the channel pseudowire configuration unit data no longer contains the next hop device guidance data. When the channel pseudowire configuration unit data does not contain the next hop device guidance data, the current device network protocol address is determined as the link termination node of the service networking link.

2. The end-to-end circuit series connection method according to claim 1, characterized in that, The method further includes: Based on the central point device configuration information, determine the target central point service port corresponding to the central point device; The target center point service port is constructed as a service access port, and the service access port is used to receive service request information.

3. The end-to-end circuit series connection method according to claim 2, characterized in that, Establishing a network topology connection between the current device network protocol address and the next hop device network protocol address specifically includes: The first link node is determined based on the current device network protocol address; The second link node is determined based on the network protocol address of the next hop device; Establish a network topology connection between the first link node and the second link node in the service network link, wherein the first link node is the predecessor node of the second link node.

4. The end-to-end circuit series connection method according to claim 1, characterized in that, When the channel pseudowire configuration unit data does not contain the next hop device guidance data, determining the current device network protocol address as the link termination node of the service networking link specifically includes: Obtain the network links of the aforementioned services; The link termination node is determined based on the current device network protocol address; The link termination node is used as the termination node of the service network link and is connected to the service network link.

5. An end-to-end circuit series connection device, characterized in that, The device includes: The first module is used to obtain the full configuration information of the devices corresponding to the service network, and determine the device information mapping relationship based on the full configuration information of the devices; The second module is used to obtain center point filtering information and determine center point device configuration information from the full device configuration information based on the center point filtering information. The third module is used to parse the configuration information of the central point device and the mapping relationship of the device information, determine the network protocol addresses of multiple relay devices, and generate service networking links based on the network protocol addresses of each relay device and the configuration information of the central point device. The fourth module is used to perform end-to-end circuit cascading according to the service network links; The step of obtaining the full configuration information of the devices corresponding to the service network and determining the device information mapping relationship based on the full configuration information specifically includes: Collect full configuration information for multiple service devices in the service-bearing network; Based on the full configuration information corresponding to each of the aforementioned service devices, determine the device service network protocol address and device network protocol address corresponding to each of the aforementioned service devices; Map the device service network protocol address corresponding to each of the aforementioned service devices to the device network protocol address to establish the device information mapping relationship; The step of obtaining the center point filtering information and determining the center point device configuration information from the full device configuration information based on the center point filtering information specifically includes: In response to the center point filtering operation, receive center point instruction filtering information and obtain the center point instruction filtering information as the center point filtering information; Based on the full configuration information of the device, a central point device matching the central point instruction filtering information is determined from multiple service devices, and the full configuration information corresponding to the central point device is determined as the central point device configuration information; The process of parsing the configuration information of the central point device and the mapping relationship between the device information to determine the network protocol addresses of multiple relay devices, and generating service network links based on the network protocol addresses of each relay device and the configuration information of the central point device, specifically includes: Parse the configuration information of the central point device to determine the corresponding service binding physical port information; The central point device configuration information is obtained as the current device configuration information; Parse the current device configuration information to determine the corresponding channel pseudowire configuration information and the current device network protocol address; Determine the channel pseudowire configuration unit data that matches the physical port information bound to the service from the channel pseudowire configuration information; Analyze the channel pseudowire configuration unit data to determine whether it contains next hop device guidance data; When the channel pseudowire configuration unit data contains the next hop device guidance data, the next hop device service network protocol address is determined according to the next hop device guidance data. The next hop device network protocol address corresponding to the next hop device service network protocol address is determined from the device information mapping relationship. A network topology connection is established between the current device network protocol address and the next hop device network protocol address. The next hop device configuration information corresponding to the next hop device network protocol address is obtained from the device full configuration information. The next hop device configuration information is obtained as the current device configuration information. Then, the current device configuration information is parsed to determine the corresponding channel pseudowire configuration information and the current device network protocol address, until the channel pseudowire configuration unit data no longer contains the next hop device guidance data. When the channel pseudowire configuration unit data does not contain the next hop device guidance data, the current device network protocol address is determined as the link termination node of the service networking link.

6. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the end-to-end circuit serial connection method according to any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the end-to-end circuit serial connection method according to any one of claims 1 to 4.