Communication methods, devices and storage media
By merging and sending the status change information of the target object, the processing pressure problem of MDSC when handling multiple PNC status change notifications is solved, and more efficient network maintenance and signaling transmission are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2021-12-29
- Publication Date
- 2026-07-17
Smart Images

Figure CN116419320B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a communication method, apparatus and storage medium. Background Technology
[0002] The Traffic Engineering Network Abstraction and Control (ACTN) controller is a layered controller proposed based on the specific scenarios and service requirements of operators. The ACTN controller system includes at least one customer network controller (CNC), a multi-domain service coordinator (MDSC), and at least one physical network controller (PNC). The PNC and MDSC communicate via the MDSC-PNC interface (MPI).
[0003] In existing technologies, when the state of an abstract object changes, the abstract object sends a state change notification to the PNC, and the PNC forwards the notification to the MDSC via the MPI interface. However, when the MDSC receives multiple state change notifications from the PNC, it processes them sequentially. Handling a large number of messages puts significant pressure on the system, making it unable to handle unexpected situations in the transport network in a timely manner, resulting in poor network maintenance capabilities. Summary of the Invention
[0004] This application provides a communication method, apparatus, and storage medium that can effectively improve the maintenance capabilities of transmission networks.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] In a first aspect, this application provides a communication method, the method comprising: a first communication device acquiring state change information of a plurality of target objects; the plurality of target objects being target objects whose state changes under a first event; the plurality of target objects including a first target object and at least one second target object; the first target object being an object whose state changes; the second target object being a target object whose state changes when the state of the first target object changes; and the first communication device sending a first message, the first message including the state change information of the plurality of target objects.
[0007] The above scheme brings at least the following beneficial effects: The first communication device acquires the state change information of the target object whose state has changed under the first event, merges the state change information into a first message, and sends it to the second communication device. In this way, the second communication device can associate the affected target objects at the event level according to the first message, thereby better controlling the target objects to cope with sudden events in the transmission network and effectively improving the maintenance capability of the transmission network. Furthermore, by merging the state change information of multiple target objects into a single first message and sending it, the first communication device can also reduce the signaling overhead of the transmission network and improve signaling transmission efficiency.
[0008] In conjunction with the first aspect above, in one possible implementation, the method further includes: obtaining state change information of a first target object; the first target object is one of a plurality of target objects; determining a first event based on the state change information of the first target object; determining at least one second target object among the plurality of target objects whose state changes under the first event; the at least one second target object is an object other than the first target object among the plurality of target objects; and obtaining state change information of the at least one second target object.
[0009] In conjunction with the first aspect above, in one possible implementation, the first event is a fiber optic cable breakage event of the first link; the multiple target objects include: the first link, and the ports at both ends of the first link; if the ports at both ends of the first link include tunnel ports, the multiple target objects also include: tunnel ports, and tunnels established at the tunnel ports; if the first link has a first service, the multiple target objects also include: the first service.
[0010] In conjunction with the first aspect above, in one possible implementation, the first event is a device power failure event of the first node; the multiple target objects include: the first node, the port of the first node, and the link connected to the port of the first node; if the port of the first node includes a tunnel port, the multiple target objects also include: the tunnel port, and the tunnel established on the tunnel port; if the first node has a second service, the multiple target objects also include: the second service.
[0011] In conjunction with the first aspect above, in one possible implementation, state changes include at least one of the following: deleting the target object, adding the target object, and modifying the attributes of the target object.
[0012] Secondly, this application provides a communication method, the method comprising: a second communication device receiving a first message; the first message including state change information of a plurality of target objects; the plurality of target objects being target objects whose state changes under a first event; the plurality of target objects including a first target object and at least one second target object; the first target object being an object whose state changes; the second target object being a target object whose state changes when the state of the first target object changes; and the second communication device parsing the first message to determine the state change information of the plurality of target objects.
[0013] In conjunction with the second aspect above, in one possible implementation, the first event is a fiber optic cable breakage event of the first link; the multiple target objects include: the first link, and the ports at both ends of the first link; if the ports at both ends of the first link include tunnel ports, the multiple target objects also include: tunnel ports, and tunnels established at the tunnel ports; if the first link has a first service, the multiple target objects also include: the first service.
[0014] In conjunction with the second aspect above, in one possible implementation, the first event is a device power failure event of the first node; the multiple target objects include: the first node, the port of the first node, and the link connected to the port of the first node; if the port of the first node includes a tunnel port, the multiple target objects also include: the tunnel port, and the tunnel established on the tunnel port; if the first node has a second service, the multiple target objects also include: the second service.
[0015] In conjunction with the second aspect above, in one possible implementation, state changes include at least one of the following: deleting the target object, adding the target object, and modifying the attributes of the target object.
[0016] Thirdly, this application provides a first communication device, which includes: a communication unit and a processing unit; the processing unit is configured to acquire state change information of a plurality of target objects; the plurality of target objects are target objects whose state changes under a first event; the plurality of target objects include a first target object and at least one second target object; the first target object is an object whose state changes; the second target object is a target object whose state changes when the state of the first target object changes; the communication unit is configured to send a first message, the first message including the state change information of the plurality of target objects.
[0017] In conjunction with the third aspect above, in one possible implementation, the processing unit is specifically configured to: obtain state change information of a first target object; the first target object is one of a plurality of target objects; determine a first event based on the state change information of the first target object; determine at least one second target object among the plurality of target objects whose state has changed under the first event; the at least one second target object is an object other than the first target object among the plurality of target objects; and obtain state change information of the at least one second target object.
[0018] In conjunction with the third aspect above, in one possible implementation, the first event is a fiber optic cable breakage event of the first link; the multiple target objects include: the first link, and the ports at both ends of the first link; if the ports at both ends of the first link include tunnel ports, the multiple target objects also include: tunnel ports, and tunnels established at the tunnel ports; if the first link has a first service, the multiple target objects also include: the first service.
[0019] In conjunction with the third aspect above, in one possible implementation, the first event is a device power failure event of the first node; the multiple target objects include: the first node, the port of the first node, and the link connected to the port of the first node; if the port of the first node includes a tunnel port, the multiple target objects also include: the tunnel port, and the tunnel established on the tunnel port; if the first node has a second service, the multiple target objects also include: the second service.
[0020] In conjunction with the third aspect mentioned above, in one possible implementation, state changes include at least one of the following: deleting the target object, adding the target object, and modifying the attributes of the target object.
[0021] Fourthly, this application provides a second communication device, comprising: a communication unit and a processing unit; the communication unit is configured to receive a first message; the first message includes state change information of a plurality of target objects; the plurality of target objects are target objects whose state changes under a first event; the plurality of target objects include a first target object and at least one second target object; the first target object is an object whose state changes; the second target object is a target object whose state changes when the state of the first target object changes; the processing unit is configured to parse the first message and determine the state change information of the plurality of target objects.
[0022] In conjunction with the fourth aspect above, in one possible implementation, the first event is a fiber optic cable breakage event of the first link; the multiple target objects include: the first link, and the ports at both ends of the first link; if the ports at both ends of the first link include tunnel ports, the multiple target objects also include: tunnel ports, and tunnels established at the tunnel ports; if the first link has a first service, the multiple target objects also include: the first service.
[0023] In conjunction with the fourth aspect above, in one possible implementation, the first event is a device power failure event of the first node; the multiple target objects include: the first node, the port of the first node, and the link connected to the port of the first node; if the port of the first node includes a tunnel port, the multiple target objects also include: the tunnel port, and the tunnel established on the tunnel port; if the first node has a second service, the multiple target objects also include: the second service.
[0024] In conjunction with the fourth aspect above, in one possible implementation, state changes include at least one of the following: deleting the target object, adding the target object, and modifying the attributes of the target object.
[0025] Fifthly, this application provides a first communication device, which includes: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run computer programs or instructions to implement the communication method as described in the first aspect and any possible implementation thereof.
[0026] In a sixth aspect, this application provides a second communication device, comprising: a processor and a communication interface; the communication interface and the processor are coupled, the processor being configured to execute computer programs or instructions to implement the communication method as described in any possible implementation of the second aspect and the second aspect.
[0027] In a seventh aspect, this application provides a computer-readable storage medium storing instructions that, when executed on a terminal, cause the terminal to perform the communication method described in the first aspect and any possible implementation thereof.
[0028] Eighthly, this application provides a computer-readable storage medium storing instructions that, when executed on a terminal, cause the terminal to perform the communication method as described in the second aspect and any possible implementation thereof.
[0029] Ninthly, this application provides a computer program product containing instructions that, when run on a first communication device, cause the first communication device to perform the communication method as described in the first aspect and any possible implementation thereof.
[0030] In a tenth aspect, this application provides a computer program product containing instructions that, when run on a second communication device, cause the second communication device to perform the communication method as described in any possible implementation of the second aspect and the second aspect.
[0031] In one aspect, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run computer programs or instructions to implement the communication method as described in the first aspect and any possible implementation thereof.
[0032] In a twelfth aspect, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run computer programs or instructions to implement the communication method as described in the second aspect and any possible implementation thereof.
[0033] In a thirteenth aspect, this application provides a communication system comprising: a first communication device and a second communication device, wherein the first communication device is configured to perform a communication method as described in the first aspect and any possible implementation thereof, and the second communication device is configured to perform a communication method as described in the second aspect and any possible implementation thereof.
[0034] Specifically, the chip provided in this application also includes a memory for storing computer programs or instructions.
[0035] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on the first computer-readable storage medium. The first computer-readable storage medium may be packaged together with the processor of the device, or it may be packaged separately from the processor of the device; this application does not impose any limitation on this.
[0036] The descriptions of the second to thirteenth aspects of this invention can be referred to the detailed description of the first aspect; and the beneficial effects described in the second to thirteenth aspects can be referred to the analysis of the beneficial effects of the first aspect, which will not be repeated here.
[0037] In this application, the names of the first and second communication devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those of this invention, they fall within the scope of the claims of this invention and their equivalents.
[0038] These or other aspects of the invention will become more apparent from the following description. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of the structure of an ACTN controller system provided in an embodiment of this application;
[0040] Figure 2 This application provides a schematic diagram of the structure of a communication network according to an embodiment of the present application.
[0041] Figure 3 This application provides a schematic diagram of the structure of a communication system according to an embodiment of the present application.
[0042] Figure 4 A flowchart illustrating a status change reporting method provided in this application embodiment;
[0043] Figure 5 A flowchart illustrating a communication method provided in an embodiment of this application;
[0044] Figure 6 A flowchart illustrating another communication method provided in an embodiment of this application;
[0045] Figure 7 A flowchart illustrating another communication method provided in an embodiment of this application;
[0046] Figure 8 A flowchart illustrating another communication method provided in an embodiment of this application;
[0047] Figure 9 This is a schematic diagram of the structure of a first communication device provided in an embodiment of this application;
[0048] Figure 10 This is a schematic diagram of the structure of a second communication device provided in an embodiment of this application;
[0049] Figure 11 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application. Detailed Implementation
[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0051] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0052] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0053] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0054] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0055] In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0056] The following explanations of the terms used in the embodiments of this application are provided to facilitate the reader's understanding.
[0057] (1) Network Abstraction and Control in Flow Engineering
[0058] The Traffic Engineering Network Abstraction and Control (ACTN) controller is a layered controller proposed based on the specific scenarios and business needs of operators. For example... Figure 1 As shown, the ACTN controller system 10 includes at least one customer network controller 101 (CNC), a multi-domain service coordinator 102 (MDSC), and at least one physical network controller 103 (PNC). The PNC 103 and MDSC 102 are connected via an MPI interface. The CNC 101 and MDSC 102 are connected via a CNC-MDSC interface (CMI).
[0059] (2) Transmission Network
[0060] Common transport networks include optical transport networks (OTN), packet-enhanced OTN networks, and transport-oriented multi-protocol label switching (MPLS-TP) networks. Transport networks are primarily used as data transmission channels for data transmission.
[0061] (3) Abstraction
[0062] In the ACTN controller, since one MDSC connects to multiple PNCs, the MDSC needs to manage the transport networks connected to these multiple PNCs. This may result in a large load on the MDSC and affect its working performance.
[0063] The PNC abstracts the physical topology of the transport network to obtain an abstract topology. The PNC then sends this abstract topology to the MDSC. The MDSC manages the transport network based on this abstract topology, allowing it to ignore less important nodes and focus on managing crucial ones. This significantly reduces the load on the MDSC.
[0064] (4) Physical Topology
[0065] The physical topology of a transport network reflects the connections between various network entities and devices. In the physical topology of a transport network, each device is considered a point, and the links between devices are considered lines. This connection relationship between points and lines represents the network structure of the transport network.
[0066] (5) Abstract topology
[0067] Abstract topology is the topology obtained by abstracting the physical topology of a transmission network according to preset abstraction rules.
[0068] For example, embodiments of this application can be applied to, for example, Figure 2 In the communication network 20 shown, such as Figure 2 As shown, the communication network 20 includes: MDSC 202, at least one CNC 201, and at least one PNC 203. The communication network 20 also includes network 1, network 2, and network 3. Figure 2 The diagram shows the physical topology of Network 1, Network 2, and Network 3. The interface between CNC201 and MDSC202 is a CMI interface, and the interface between MDSC202 and PNC203 is an MPI interface.
[0069] The CNC201 is responsible for managing the resources of the transport network nodes and can also obtain virtual network services provided by the operator from the MDSC202 through the CMI interface. The CNC201 can also negotiate with the MDSC202 to obtain resource information of the edge nodes of the transport network.
[0070] PNC203 is responsible for configuring the nodes of the transport network it is connected to. For example, PNC1 is responsible for configuring the nodes in network 1, which includes nodes A, B, C, D, and E. Similarly, PNC2 is responsible for configuring the nodes in network 2, which includes nodes I, J, K, L, M, and N. PNC3 is responsible for configuring the nodes in network 3, which includes nodes F, G, and H. Network 1, network 2, or network 3 can be a packet network, an OTN network, a packet-enhanced OTN network, or an MPLS-TP network, etc., and this application does not impose any limitations. PNC203 can also monitor the physical and virtual topologies of the corresponding networks and can transmit topology information to MDSC202.
[0071] The MDSC202, located between the CNC201 and PNC203, provides functions such as cross-domain coordination, multi-domain coordination, virtualization / abstraction, service mapping / conversion, and virtual service coordination. One MDSC202 can correspond to multiple PNC203s, enabling multi-domain coordination through these PNCs. The MDSC202 separates network control and service control from physical network technology, allowing for the selection of appropriate technologies to create virtual networks that meet business needs. This allows users to focus more on their specific business requirements, improving user experience.
[0072] It should be noted that objects in a transport network include at least one of the following: node, termination point (TP), link, tunnel, tunnel termination point, and service. For example... Figure 2Network 1 in network 2 includes nodes A, B, C, D, and E. Network 1 also includes ports 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12. Network 1 also includes links connecting ports 1 and 5, and links connecting ports 4 and 6. A tunnel is typically a path composed of multiple nodes, ports, and links. For example, tunnel M starts at node I in network 2, passes through node K to node L, and ends at node N. Ports 14 and 29 in network 2 are the tunnel ports of tunnel M. When two terminals need to transmit services, services are generated in the transport network. These services can consist of multiple tunnels, or multiple nodes, ports, and links.
[0073] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0074] like Figure 3 The diagram shown is a structural schematic of a communication system 30 provided in an embodiment of this application. The communication system 30 includes a first communication device 301, a first network device 302, and a second communication device 303. The first communication device 301 is connected to the first network device 302 via a communication link, and the first communication device 301 is connected to the second communication device 303 via a communication link.
[0075] The first network device 302 is used to send status change information to the first communication device 301. Correspondingly, the first communication device 301 receives the status change information sent by the first network device 302.
[0076] The first communication device 301 is used to forward status change information to the second communication device 303. Correspondingly, the second communication device 303 receives the status change information sent by the first communication device 301.
[0077] The second communication device 303 is used to perform maintenance control on the transmission network based on the received status change information.
[0078] It should be noted that the technical solutions provided in the embodiments of this application can be applied to the ACTN controller system.
[0079] Combination Figure 1 The first communication device 301 can be a PNC or MDSC in the ACTN controller system.
[0080] When the first communication device 301 is a PNC in ACTN, the first network device 302 can be a node device in the transmission network connected to the PNC. The second communication device 303 can be an MDSC connected to the PNC.
[0081] When the first communication device 301 is an MDSC, the first network device 302 can be a PNC connected to the MDSC. The second communication device 303 can be a CNC connected to the MDSC.
[0082] In one possible implementation, when the MDSC is deployed in a distributed manner, the second communication device 303 can also be another MDSC connected to the MDSC.
[0083] In other words, the technical solutions provided in this application can be applied to the devices corresponding to the interfaces of each layer in the ACTN controller system. For ease of description, the following embodiments take the first communication device 301 as a PNC as an example to specifically describe the technical solutions provided in this application.
[0084] The current method for reporting status changes is as follows: Figure 4 As shown, MDSC and PNC report status changes through control channel (a) and message channel (b).
[0085] The MDSC (as subscriber) sends a subscription request (POST(RPC: establish-subscription)) to the PNC (as publisher) via control channel (a). Correspondingly, the PNC receives the subscription request from the MDSC and sends a subscription request response (HTTPS 200 OK(URL)) back to the MDSC.
[0086] Subsequently, MDSC sends an information retrieval request (HTTPS GET(URL)) to PNC via message channel (b). In response, PNC receives the information retrieval request sent by MDSC and sends an information retrieval response (HTTPS 200 OK) to MDSC.
[0087] Whenever the state of a subscribed object changes, the PNC sends a state change notification to the MDSC. The MDSC then receives the state change notification from the PNC.
[0088] MDSC can also send an unsubscribe request to PNC to request the cancellation of the subscription. Correspondingly, PNC receives the unsubscribe request and sends an unsubscribe request response to MDSC.
[0089] Therefore, in existing technologies, when the state of a subscribed object changes, the PNC sends a state change notification to the MDSC to inform it of the change. However, when multiple events occur in the transport network, each event can cause multiple object state changes. In this case, the PNC sends multiple state change notifications to the MDSC. These state change notifications are often an unordered combination of multiple state change notifications caused by multiple events. When the MDSC receives multiple state change notifications from the PNC, it needs to process them sequentially. Since there is no correlation between the individual state change notifications, the MDSC cannot link them together. This results in the MDSC being unable to handle unexpected situations in the transport network in a timely manner, leading to poor transport network maintenance capabilities.
[0090] To address the problem of poorly maintaining transmission networks in existing technologies, this application provides a communication method.
[0091] like Figure 5 The diagram shown is a flowchart of a communication method provided in an embodiment of this application. The method includes the following steps:
[0092] S501, The first communication device acquires status change information of multiple target objects.
[0093] Among them, multiple target objects are those whose state changes under the first event. These multiple target objects include a first target object and at least one second target object. The first target object is the object whose state changes. The second target object is the target object whose state changes when the state of the first target object changes.
[0094] It should be noted that the target object is an object within the transport network. For example, objects within the transport network include nodes, ports, links, tunnels, tunnel ports, and at least one of the services.
[0095] For example, when the first communication device is a PNC, the first communication device obtains status change information of multiple target objects through node devices in the transmission network connected to it.
[0096] When the first communication device is an MDSC, the first communication device obtains the status change information of multiple target objects through the PNC connected to it.
[0097] It should be noted that in the first event, the state of multiple objects in the transmission network will change, and there are certain relationships between these objects.
[0098] For example, the first event could be a fiber optic link failure, a power outage, or a port failure.
[0099] The objects affected by a fiber breakage event may include at least one of the following: the broken fiber link, the ports at both ends of the link, the tunnel ports included in the ports, the tunnel corresponding to the tunnel ports, and the services passing through the link.
[0100] The objects affected by a power outage event may include at least one of the following: the node that lost power, the ports included in the node, the links connected to the ports, the tunnel ports included in the ports, the tunnels corresponding to the tunnel ports, and the services passing through the node.
[0101] The objects affected by a port damage event may include at least one of the following: the damaged port, the node where the port is located, the link connected to the port, the tunnel port included in the port, the tunnel corresponding to the tunnel port, and the services passing through the port.
[0102] In one possible implementation, the state change includes at least one of the following: deleting the target object, adding the target object, and modifying the attribute of the target object.
[0103] For example, if the status changes to delete the target object, the status change information may include the key value of the target object to be deleted.
[0104] If the state change is to add a target object, the state change information can include the complete attributes of the newly added target object.
[0105] If the state change involves modifying an attribute of the target object, the state change information can include the attribute of the target object that needs to be modified.
[0106] S502, The first communication device sends the first message.
[0107] The first message includes status change information for multiple target objects.
[0108] It should be noted that after the first communication device obtains the state change information of the target object whose state has changed in the first event, it can merge the state change information of these target objects into the first message.
[0109] For example, in practical applications, the first message can be implemented using the following code:
[0110]
[0111] It should be noted that the first message can also be achieved in other ways, and this application does not limit this.
[0112] In one possible implementation, the first communication device sends a first message to its corresponding second communication device. Correspondingly, the second communication device receives the first message sent by the first communication device.
[0113] For example, when the first communication device is a PNC, the first communication device can send a first message to the MDSC connected to it.
[0114] When the first communication device is an MDSC, the first communication device can send a first message to the CNC connected to it, or the first communication device can send a first message to another MDSC connected to it.
[0115] S503, the second communication device parses the first message and determines the status change information of multiple target objects.
[0116] It should be noted that after the second communication device receives the first message, it can determine the status change information of multiple target objects by parsing the first message, and thus control these target objects accordingly. The specific technical solution for the second communication device to control the target objects can be found in existing technologies, and this application does not limit it thereto.
[0117] The above scheme brings at least the following beneficial effects: The first communication device acquires the state change information of the target object whose state has changed under the first event, merges the state change information into a first message, and sends it to the second communication device. In this way, the second communication device can associate the affected target objects at the event level according to the first message, thereby better controlling the target objects to cope with sudden events in the transmission network and effectively improving the maintenance capability of the transmission network. Furthermore, by merging the state change information of multiple target objects into a single first message and sending it, the first communication device can also reduce the signaling overhead of the transmission network and improve signaling transmission efficiency.
[0118] The following section, in conjunction with step S501 above, details how the first communication device acquires the status change information of multiple target objects.
[0119] As one possible embodiment of this application, combined with Figure 5 ,like Figure 6 As shown, step S501 above can also be implemented through the following steps S601-S604:
[0120] S601, The first communication device obtains the status change information of the first target object.
[0121] The first target object is one of multiple target objects.
[0122] In one possible implementation, when the state of the first target object changes, the first target object will send state change information to the first communication device.
[0123] In another possible implementation, the first communication device can periodically acquire the state information of the first target object, thereby determining that the state of the first target object has changed based on the state information.
[0124] S602. The first communication device determines the first event based on the status change information of the first target object.
[0125] For example, in combination Figure 2 When the first communication device obtains the status change information of link 1 between port 14 and port 19, the first communication device can determine that the fiber optic cable of link 1 has been broken based on the status change information, that is, the first event is the fiber optic cable breakage event of link 1.
[0126] Similarly, after the first communication device obtains the state change information of node K, the first communication device can determine that node K has experienced a power outage based on the state change information, that is, the first event is the power outage event of node K.
[0127] Similarly, the first communication device can also determine the corresponding first event based on the state change information of other types of target objects. This will not be elaborated further here.
[0128] S603, the first communication device identifies at least one second target object among a plurality of target objects whose state has changed under the first event.
[0129] Among them, at least one second target object is an object other than the first target object among multiple target objects.
[0130] It should be noted that the first communication device stores topology information of the transmission network, which is used to represent the network structure within the transmission network. Using this topology information, the first communication device can identify at least one second target object among a plurality of target objects associated with the first event.
[0131] S604, The first communication device acquires status change information of at least one second target object.
[0132] In one possible implementation, the second target object actively sends state change information to the first communication device.
[0133] In another possible implementation, the first communication device can periodically acquire the status information of the second target object, thereby determining that the status of the second target object has changed based on the status information.
[0134] The above scheme brings at least the following beneficial effects: The first communication device obtains the state change information of the first target object, determines the corresponding first event based on the information, and then determines other target objects affected by the first event besides the first target object, thereby obtaining the state change information of the other target objects. In this way, the first communication device can determine each target object under the first event and its corresponding state change information, and thus merge multiple state change information into a first message for reporting, using the first event as the granularity.
[0135] The following examples, specifically Example 1 (where the first event is a fiber optic cable breakage event in the first link) and Example 2 (where the first event is a power failure event in the first node), will be used to further illustrate the communication methods involved in this application. Here, the first link refers to a link in the transmission network, and the first node refers to a node in the transmission network. For example, combining... Figure 2 The first link is link 1 between port 14 and port 19 in the transmission network. The first node is node K in the transmission network.
[0136] Example 1: The first event is the fiber optic cable breakage event of the first link.
[0137] In Example 1, the multiple target objects include: a first link, and ports at both ends of the first link.
[0138] In the case where the ports at both ends of the first link include tunnel ports, the plurality of target objects also include: tunnel ports, and tunnels established at those tunnel ports.
[0139] In the case that the first link has a first service, the multiple target objects also include: the first service.
[0140] If the first service is a protected service, its status changes to protection switching. Protection switching means that when the path of the service is interrupted, the service is switched to a backup line for transmission.
[0141] If the first service is an unprotected service, the status of the first service will change to service interruption.
[0142] One possible implementation is, such as Figure 7 As shown, when the first event is a fiber optic cable breakage event in the first link, the communication method provided in this application embodiment can be specifically implemented through the following S701-S706:
[0143] S701, The first communication device obtains the status change information of the first link.
[0144] For example, such as Figure 2 As shown, the first communication device obtains the status change information of link 1 connecting port 14 and port 19.
[0145] S702. The first communication device determines the fiber optic cable breakage event of the first link based on the status change information of the first link.
[0146] Based on the example above, this event indicates that the fiber optic cable in link 1 connecting port 14 and port 19 has broken.
[0147] S703, the first communication device identifies at least one second target object among a plurality of target objects whose state changes under the fiber optic cable breakage event of the first link.
[0148] Based on the above example, the second target objects whose states change under this event include ports 14 and 19. For example, the state change could be port 14 changing from up to down, indicating that this port cannot receive a matching physical signal.
[0149] If port 14 is a tunnel port, the plurality of target objects also include: tunnel port 14, and tunnel 1 established on tunnel port 14.
[0150] If link 1 has service 1, the multiple target objects also include: service 1.
[0151] S704, The first communication device acquires status change information of at least one second target object.
[0152] Based on the above example, the first communication device obtains the status change information of port 14, port 19, tunnel port 14, tunnel 1 established on tunnel port 14, and service 1.
[0153] S705, The first communication device sends the first message.
[0154] Based on the above example, the first communication device determines the first message of the fiber optic cable breakage event of link 1. This first message includes link 1, port 14, port 19, tunnel port 14, tunnel 1 established at tunnel port 14, and status change information of service 1.
[0155] Optionally, the first communication device sends a first message to the second communication device. Correspondingly, the second communication device receives the first message sent by the first communication device.
[0156] S706. The second communication device parses the first message and determines the status change information of multiple target objects.
[0157] Based on the above example, the second communication device determines the status change information of link 1, port 14, port 19, tunnel port 14, tunnel 1 established at tunnel port 14, and service 1 under the fiber optic cable breakage event of link 1, thereby controlling the above target objects.
[0158] The above, in conjunction with Example 1, provides a detailed explanation of the case where the first event is a fiber optic cable breakage event in the first link.
[0159] Example 2: The first event is the device power failure event of the first node.
[0160] In Example 2, the multiple target objects include: the first node, the port of the first node, and the link connected to the port of the first node.
[0161] If the port of the first node includes a tunnel port, the multiple target objects also include: the tunnel port, and the tunnel established on the tunnel port.
[0162] In the case where the first node has a second business, the multiple target objects also include: the second business.
[0163] If the second service is a protected service, its status changes to protection switching. Protection switching means that when the path of the service is interrupted, the service is switched to a backup line for transmission.
[0164] If the second service is an unprotected service, the status of the second service will change to service interruption.
[0165] One possible implementation is, such as Figure 8 As shown, when the first event is a device power failure event of the first node, the communication method provided in this application embodiment can be specifically implemented through the following S801-S806:
[0166] S801, The first communication device obtains the status change information of the first node.
[0167] For example, such as Figure 2 As shown, the first communication device obtains the state change information of node K.
[0168] S802. The first communication device determines the power failure event of the first node based on the status change information of the first node.
[0169] Based on the example above, this event indicates that node K experienced a power outage.
[0170] S803, the first communication device determines at least one second target object among a plurality of target objects whose state changes under the power failure event of the first node.
[0171] Based on the above example, the second target objects whose states change under this event include: port 19, port 20, port 21, and link 1 connecting port 14 and port 19, link 2 connecting port 21 and port 22, and link 3 connecting port 20 and port 25.
[0172] Since node K's ports do not include tunnel ports and the node does not have a second service, there are no tunnels, tunnel ports, or services among the multiple target objects.
[0173] S804, the first communication device acquires status change information of at least one second target object.
[0174] Based on the above example, the first communication device obtains the status change information of port 19, port 20, port 21, link 1, link 2, and link 3.
[0175] S805, The first communication device sends the first message.
[0176] Based on the above example, the first communication device determines the first message of the device power failure event at node K. This first message includes state change information for node K, port 19, port 20, port 21, link 1, link 2, and link 3.
[0177] Optionally, the first communication device sends a first message to the second communication device. Correspondingly, the second communication device receives the first message sent by the first communication device.
[0178] S806, the second communication device parses the first message and determines the status change information of multiple target objects.
[0179] Based on the above example, the second communication device determines the state change information of node K, port 19, port 20, port 21, link 1, link 2 and link 3 under the device power failure event of node K, thereby controlling the above target object.
[0180] The above, in conjunction with Example 2, provides a detailed explanation of the scenario where the first event is a device power failure event.
[0181] This application embodiment can divide the first communication device and the second communication device into functional modules or functional units according to the above method example. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0182] like Figure 9 The diagram shown is a structural schematic of a first communication device provided in an embodiment of this application. The device includes:
[0183] Processing unit 901 is used to acquire state change information of multiple target objects.
[0184] Among them, multiple target objects are those whose state changes under the first event. These multiple target objects include a first target object and at least one second target object. The first target object is the object whose state changes. The second target object is the target object whose state changes when the state of the first target object changes.
[0185] The communication unit 902 is also used to send the first message.
[0186] The first message includes status change information for multiple target objects.
[0187] In one possible implementation, processing unit 901 is specifically used for:
[0188] Obtain the state change information of the first target object.
[0189] The first target object is one of multiple target objects.
[0190] The first event is determined based on the state change information of the first target object.
[0191] Identify at least one second target object among multiple target objects whose state changes under the first event.
[0192] Among them, at least one second target object is an object other than the first target object among multiple target objects.
[0193] Obtain state change information for at least one second target object.
[0194] In one possible implementation, the first event is the fiber optic cable breakage event of the first link.
[0195] Multiple target objects include: the first link, and the ports at both ends of the first link.
[0196] In the case where the ports at both ends of the first link include tunnel ports, the multiple target objects also include: tunnel ports, and tunnels established at the tunnel ports.
[0197] In the case where the first link has the first service, the multiple target objects also include: the first service.
[0198] In one possible implementation, the first event is the device power failure event of the first node.
[0199] Multiple target objects include: the first node, the port of the first node, and the link connected to the port of the first node.
[0200] In the case where the port of the first node includes a tunnel port, multiple target objects also include: the tunnel port, and the tunnel established at the tunnel port.
[0201] In the case where the first node has a second business, the multiple target objects also include: the second business.
[0202] In one possible implementation, the state change includes at least one of the following: deleting the target object, adding the target object, and modifying the attribute of the target object.
[0203] like Figure 10 The diagram shown is a structural schematic of a second communication device provided in an embodiment of this application. The device includes:
[0204] The communication unit 1002 is used to receive the first message.
[0205] The first message includes state change information for multiple target objects. These multiple target objects are those whose state changed under the first event. The multiple target objects include a first target object and at least one second target object. The first target object is the object whose state changed. The second target object is the target object whose state changed when the state of the first target object changed.
[0206] Processing unit 1001 is used to parse the first message and determine the status change information of multiple target objects.
[0207] In one possible implementation, the first event is the fiber optic cable breakage event of the first link.
[0208] Multiple target objects include: the first link, and the ports at both ends of the first link.
[0209] In the case where the ports at both ends of the first link include tunnel ports, the multiple target objects also include: tunnel ports, and tunnels established at the tunnel ports.
[0210] In the case where the first link has the first service, the multiple target objects also include: the first service.
[0211] In one possible implementation, the first event is the device power failure event of the first node.
[0212] Multiple target objects include: the first node, the port of the first node, and the link connected to the port of the first node.
[0213] In the case where the port of the first node includes a tunnel port, multiple target objects also include: the tunnel port, and the tunnel established at the tunnel port.
[0214] In the case where the first node has a second business, the multiple target objects also include: the second business.
[0215] In one possible implementation, the state change includes at least one of the following: deleting the target object, adding the target object, and modifying the attribute of the target object.
[0216] When implemented in hardware, communication unit 902 and communication unit 1002 in this embodiment can be integrated on the communication interface, and processing unit 901 and processing unit 1001 can be integrated on the processor. Specific implementation methods are as follows: Figure 11 As shown.
[0217] Figure 11 A possible structural schematic diagram of the communication device involved in the above embodiments is shown. This communication device can be either the first or second communication device provided in the embodiments of this application. The communication device includes a processor 1102 and a communication interface 1103. The processor 1102 is used to control and manage the operation of the communication device, for example, executing the steps performed by the processing unit 901 and processing unit 1001, and / or performing other processes of the technology described herein. The communication interface 1103 is used to support communication between the communication device and other network entities, for example, executing the steps performed by the communication unit 902 and communication unit 1002. The communication device may also include a memory 1101 and a bus 1104. The memory 1101 is used to store the program code and data of the communication device.
[0218] The memory 1101 may be a memory in a communication device, and the memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state drive; the memory may also include a combination of the above types of memory.
[0219] The processor 1102 described above can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0220] Bus 1104 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 1104 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 11The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0221] Figure 11 The communication device in the chip can also be a chip. The chip includes one or more processors 1102 and a communication interface 1103.
[0222] Optionally, the chip also includes a memory 1101, which may include read-only memory and random access memory, and provides operation instructions and data to the processor 1102. A portion of the memory 1101 may also include non-volatile random access memory (NVRAM).
[0223] In some implementations, memory 1101 stores elements such as execution modules or data structures, or subsets thereof, or extended sets thereof.
[0224] In this embodiment of the application, the corresponding operation is executed by calling the operation instructions stored in the memory 1101 (the operation instructions can be stored in the operating system).
[0225] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0226] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to execute the communication method described in the above method embodiments.
[0227] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the communication method in the method flow shown in the above method embodiments.
[0228] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires; portable computer disks; hard disks; random access memory (RAM); read-only memory (ROM); erasable programmable read-only memory (EPROM); registers; hard disks; optical fibers; portable compact disc read-only memory (CD-ROM); optical storage devices; magnetic storage devices; or any suitable combination thereof; or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0229] Embodiments of the present invention provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform actions such as... Figures 5 to 8 The communication method described herein.
[0230] Since the first communication device, the second communication device, the computer-readable storage medium, and the computer program product in the embodiments of the present invention can be applied to the above method, the technical effects obtained can also be referred to the above method embodiments, and the embodiments of the present invention will not be repeated here.
[0231] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units 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 mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0232] The units described 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.
[0233] In addition, 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.
[0234] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A communication method, characterized in that, The method includes: A first communication device acquires state change information of multiple target objects; the first communication device is a Physical Network Controller (PNC) or a Multi-Domain Service Coordinator (MDSC) in the Traffic Engineering Network Abstraction and Control (ACTN) control system; the target objects are objects in a transport network, and the objects in the transport network include at least one of nodes, ports, links, tunnels, tunnel ports, and services; the multiple target objects are target objects whose state changes under a first event; the multiple target objects include a first target object and at least one second target object; the first target object is an object whose state changes; the second target object is a target object whose state changes when the state of the first target object changes; The first communication device sends a first message, the first message including the status change information of the plurality of target objects; The first communication device acquires state change information of multiple target objects, including: Obtain the state change information of the first target object; the first target object is one of the plurality of target objects. The first event is determined based on the state change information of the first target object; Determine at least one second target object among the plurality of target objects whose state changes under the first event; the at least one second target object is an object other than the first target object among the plurality of target objects. Obtain the state change information of the at least one second target object.
2. The method according to claim 1, characterized in that, The first event is a fiber optic cable breakage event in the first link; The plurality of target objects include: the first link, and the ports at both ends of the first link; If the ports at both ends of the first link include tunnel ports, the plurality of target objects further include: the tunnel port, and the tunnel established at the tunnel port; If the first link has a first service, the plurality of target objects further include: the first service.
3. The method according to claim 1, characterized in that, The first event is a device power failure event at the first node; The plurality of target objects include: the first node, the port of the first node, and the link connected to the port of the first node; If the port of the first node includes a tunnel port, the plurality of target objects further include: the tunnel port, and the tunnel established on the tunnel port; If the first node has a second service, the plurality of target objects further include: the second service.
4. A communication method, characterized in that, The method includes: The second communication device receives a first message sent by the first communication device; the second communication device is a Multi-Domain Service Coordinator (MDSC) or a User Network Controller (CNC); the first message includes state change information of multiple target objects; the target objects are objects in the transport network, and the objects in the transport network include at least one of nodes, ports, links, tunnels, tunnel ports, and services; the multiple target objects are target objects whose state changes under a first event; the multiple target objects include a first target object and at least one second target object; the first target object is an object whose state changes; the second target object is a target object whose state changes when the state of the first target object changes; The second communication device parses the first message to determine the state change information of the plurality of target objects; wherein, the state change information of the plurality of target objects is obtained by the first communication device performing the following steps: obtaining the state change information of the first target object; determining the first event based on the state change information of the first target object; determining at least one second target object among the plurality of target objects whose state has changed under the first event; and obtaining the state change information of the at least one second target object.
5. A first communication device, characterized in that, The first communication device is the Physical Network Controller (PNC) or Multi-Domain Service Coordinator (MDSC) in the Traffic Engineering Network Abstraction and Control (ACTN) control system. The first communication device includes: a communication unit and a processing unit. The processing unit is configured to acquire state change information of multiple target objects; the target objects are objects in a transmission network, and the objects in the transmission network include at least one of nodes, ports, links, tunnels, tunnel ports, and services; the multiple target objects are target objects whose state changes under a first event; the multiple target objects include a first target object and at least one second target object; the first target object is an object whose state changes; the second target object is a target object whose state changes when the state of the first target object changes; The communication unit is used to send a first message, the first message including the status change information of the plurality of target objects; The processing unit is specifically used for: Obtain the state change information of the first target object; the first target object is one of the plurality of target objects. The first event is determined based on the state change information of the first target object; Determine at least one second target object among the plurality of target objects whose state changes under the first event; the at least one second target object is an object other than the first target object among the plurality of target objects. Obtain the state change information of the at least one second target object.
6. The apparatus according to claim 5, characterized in that, The first event is a fiber optic cable breakage event in the first link; The plurality of target objects include: the first link, and the ports at both ends of the first link; If the ports at both ends of the first link include tunnel ports, the plurality of target objects further include: the tunnel port, and the tunnel established at the tunnel port; If the first link has a first service, the plurality of target objects further include: the first service.
7. The apparatus according to claim 5, characterized in that, The first event is a device power failure event at the first node; The plurality of target objects include: the first node, the port of the first node, and the link connected to the port of the first node; If the port of the first node includes a tunnel port, the plurality of target objects further include: the tunnel port, and the tunnel established on the tunnel port; If the first node has a second service, the plurality of target objects further include: the second service.
8. A second communication device, characterized in that, The second communication device is a Multi-Domain Service Coordinator (MDSC) or a User Network Controller (CNC), and the second communication device includes: a communication unit and a processing unit; The communication unit is configured to receive a first message sent by a first communication device; the first message includes state change information of multiple target objects; the target objects are objects in a transmission network, and the objects in the transmission network include at least one of nodes, ports, links, tunnels, tunnel ports, and services; the multiple target objects are target objects whose state changes under a first event; the multiple target objects include a first target object and at least one second target object; the first target object is an object whose state changes; the second target object is a target object whose state changes when the state of the first target object changes; The processing unit is configured to parse the first message and determine the state change information of the plurality of target objects; wherein the state change information of the plurality of target objects is obtained by the first communication device performing the following steps: obtaining the state change information of the first target object; determining the first event based on the state change information of the first target object; determining at least one second target object among the plurality of target objects whose state has changed under the first event; and obtaining the state change information of the at least one second target object.
9. A communication device, characterized in that, include: A processor and a communication interface; the communication interface is coupled to the processor, the processor being configured to run computer programs or instructions to implement the communication method as described in any one of claims 1-3, or to implement the communication method as described in claim 4.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed by a computer, enable the computer to perform the communication method described in any one of claims 1-3, or the communication method described in claim 4.