Network configuration method and device, storage medium and program product
By obtaining the topology and traffic information of time-sensitive networks and automatically determining and sending configuration information, the problem of low efficiency of existing TSN configuration methods is solved, more efficient and accurate network configuration is achieved, and real-time and reliability of network communication is improved.
Patent Information
- Application Number
- CN202411804916.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-03-14
AI Technical Summary
The existing time-sensitive network (TSN) configuration methods are inefficient and require the administrator to have professional knowledge. The configuration process is cumbersome, which can easily lead to network failure or performance degradation.
By obtaining network topology information and network traffic information of time-sensitive networks, determining configuration information and sending configuration information to network devices to automate and optimize the network configuration process.
It improves the efficiency and accuracy of network configuration, reduces the time and energy of manual configuration, and enhances the real-time and reliability of network communication.
Smart Images

Figure CN119629049A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network configuration method, device, storage medium and program product. Background Art
[0002] Time-sensitive networking (TSN) is a time-sensitive network technology standard based on Ethernet, designed to support real-time communications and strict time requirements for various network applications.
[0003] At present, in order to cope with complex network environments, TSN networks usually adapt to changes by manually configuring TSN parameters by administrators. This not only requires administrators to have professional knowledge, but the configuration process is cumbersome and complex, and consumes a lot of time and energy. Once the configuration parameters are wrong, it may cause network failure or performance degradation. Therefore, there is a problem of low network configuration efficiency, which affects the real-time performance of network communication. Summary of the invention
[0004] The present application provides a network configuration method, device, storage medium and program product, which solve the technical problem of low network configuration efficiency in related technologies.
[0005] In a first aspect, the present application provides a network configuration method, which is applied to a network configuration device, and the method includes: obtaining network topology information of a time-sensitive network; the network topology information is used to indicate available communication links in the time-sensitive network; obtaining network traffic information of the time-sensitive network; based on the network topology information and the network traffic information, determining configuration information of the time-sensitive network; and sending configuration information to network devices in the time-sensitive network.
[0006] In a possible implementation, obtaining network topology information of a time-sensitive network includes: obtaining device status information of a network device of the time-sensitive network; determining network topology information based on the device status information; and the device status information is used to indicate connection information between the network device and other network devices.
[0007] In a possible implementation, obtaining device status information of a network device of a time-sensitive network includes: sending an information query message to the network device; and receiving device status information sent by the network device.
[0008] In a possible implementation, the device status information includes at least one of the following: port status change information of the network device; ring network status change information of the network device; startup status information of the network device; and shutdown status information of the network device.
[0009] In a possible implementation, obtaining network traffic information of a time-sensitive network includes: receiving network traffic information sent by a subscriber of an open platform communication unified architecture server OPC UA; the network traffic information is obtained by a publisher in OPC UA.
[0010] In a possible implementation, an OPC UA publisher is deployed on a network device of a time-sensitive network.
[0011] In a second aspect, the present application provides a network configuration device, including: an acquisition module, a determination module, and a sending module. The acquisition module is used to acquire network topology information of a time-sensitive network; the network topology information is used to indicate available communication links in the time-sensitive network; the acquisition module is also used to acquire network traffic information of the time-sensitive network; the determination module is used to determine configuration information of the time-sensitive network based on the network topology information and the network traffic information; and the sending module is used to send configuration information to network devices in the time-sensitive network.
[0012] In a possible implementation, the acquisition module is specifically used to obtain device status information of a network device of a time-sensitive network; the determination module is also used to determine network topology information based on the device status information; the device status information is used to indicate connection information between a network device and other network devices.
[0013] In a possible implementation, the network configuration device further includes a receiving module; a sending module, further configured to send an information query message to the network device; and a receiving module, configured to receive device status information sent by the network device.
[0014] In a possible implementation, the device status information includes at least one of the following: port status change information of the network device; ring network status change information of the network device; startup status information of the network device; and shutdown status information of the network device.
[0015] In a possible implementation, the receiving module is further used to receive network traffic information sent by a subscriber of an open platform communication unified architecture server OPC UA; the network traffic information is obtained by a publisher in OPC UA.
[0016] In a possible implementation, an OPC UA publisher is deployed on a network device of a time-sensitive network.
[0017] In a third aspect, the present application provides a network configuration method, which is applied to a network device, and the network device belongs to a time-sensitive network. The method includes: sending device status information of the network device to a network configuration device; receiving configuration information of the time-sensitive network from the network configuration device; and configuring the network device based on the configuration information.
[0018] In one possible implementation, sending device status information of a network device to a network configuration apparatus includes: receiving an information query message from the network configuration apparatus; and sending the device status information of the network device to the network configuration apparatus in response to the information query message; or, sending the device status information of the network device to the network configuration apparatus in response to a network topology change event.
[0019] In one possible implementation, in response to a network topology change event, status information of a network device is sent to a network configuration device, including: in response to the network topology change event, generating an object identifier corresponding to the network topology change event; and sending device status information corresponding to the object identifier to the network configuration device.
[0020] In one possible implementation, determining that a network topology change event occurs includes: when a device state of the network device changes from a first state to a second state, and the device state does not change to the first state within a preset time period, determining the network topology change event.
[0021] In a possible implementation, the network topology change event includes at least one of the following: a port state change event of a network device; a ring network state change event of a network device; a startup event of a network device; or a shutdown event of a network device.
[0022] In a fourth aspect, a network device is provided, which belongs to a time-sensitive network, and the network device includes: a sending module, a receiving module and a configuration module; the sending module is used to send device status information of the network device to a network configuration device; the receiving module is used to receive configuration information of the time-sensitive network from the network configuration device; the configuration module is used to configure the network device based on the configuration information.
[0023] In one possible implementation, a receiving module is used to receive an information query message from a network configuration device; a sending module is specifically used to send device status information of a network device to the network configuration device in response to the information query message; or, a sending module is specifically used to send device status information of a network device to the network configuration device in response to a network topology change event.
[0024] In one possible implementation, the network device also includes a processing module; the processing module is used to generate an object identifier corresponding to the network topology change event in response to the network topology change event; and the sending module is specifically used to send device status information corresponding to the object identifier to the network configuration device.
[0025] In a possible implementation, the processing module is further used to determine the network topology change event when the device state of the network device changes from a first state to a second state and the device state does not change to the first state within a preset time period.
[0026] In a possible implementation, the network topology change event includes at least one of the following: a port state change event of a network device; a ring network state change event of a network device; a startup event of a network device; or a shutdown event of a network device.
[0027] In a fifth aspect, the present application provides a network configuration device, comprising: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the optional methods in the above-mentioned first aspect.
[0028] In a sixth aspect, the present application provides a computer-readable storage medium having instructions stored thereon. When the instructions in the computer-readable storage medium are executed by a network configuration device, the network configuration device is enabled to execute any one of the optional methods in the above-mentioned first aspect.
[0029] In a seventh aspect, the present application provides a computer program product, which includes computer technology program instructions, and when the computer program instructions are executed by a processor, any one of the optional methods in the above-mentioned first aspect is implemented.
[0030] The network configuration method, device, storage medium and program product provided by the present application include: obtaining network topology information of a time-sensitive network; the network topology information is used to indicate the available communication links in the time-sensitive network; obtaining network traffic information of the time-sensitive network; determining the configuration information of the time-sensitive network based on the network topology information and the network traffic information; and sending the configuration information to the network equipment in the time-sensitive network. In the present application, since the network topology information can indicate the available communication links in the time-sensitive network, and the network traffic information of the time-sensitive network can reflect the data transmission situation in the network, the configuration information of the time-sensitive network can be accurately determined based on the network topology information and the network traffic information. Configuring the network equipment through the configuration information can ensure the network usage requirements under the current network topology and network traffic conditions, thereby ensuring the reliability of the network configuration. And compared with manual configuration, the configuration efficiency and accuracy of the network configuration method are higher, which improves the experience of users using the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0032] Figure 1 A schematic diagram of a network architecture of a network configuration system provided in an embodiment of the present application;
[0033] Figure 2 A schematic diagram of a network architecture of another network configuration system provided in an embodiment of the present application;
[0034] Figure 3 A schematic diagram of a protocol family of a time-sensitive network provided in an embodiment of the present application;
[0035] Figure 4 A schematic diagram of the structure of a network status change sensing device provided in an embodiment of the present application;
[0036] Figure 5 A flowchart of a network configuration method provided in an embodiment of the present application;
[0037] Figure 6 A flowchart of another network configuration method provided in an embodiment of the present application;
[0038] Figure 7 A flowchart of another network configuration method provided in an embodiment of the present application;
[0039] Figure 8 A flowchart of another network configuration method provided in an embodiment of the present application;
[0040] Fig. 9 A schematic diagram of the structure of a network configuration device provided in an embodiment of the present application;
[0041] Fig.10 A schematic diagram of the structure of a network device provided in an embodiment of the present application;
[0042] Fig.11 A schematic diagram of the structure of another network configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The network configuration method, apparatus, device, storage medium and program product provided in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0044] The terms “first”, “second” and the like in the specification and drawings of the present application are used to distinguish different objects rather than to describe a specific order of the objects.
[0045] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0046] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0047] The term "and / or" used in the present application includes using either or both of the two methods.
[0048] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0049] Based on the description in the background technology, in the related technology, the time-sensitive network is a time-sensitive network technology standard based on Ethernet, which is intended to support strict time requirements for real-time communication and various network applications.
[0050] At present, in order to cope with complex network environments, TSN networks usually adapt to changes by manually configuring TSN parameters by administrators. This not only requires administrators to have professional knowledge, but the configuration process is cumbersome and complex, and consumes a lot of time and energy. Once the configuration parameters are wrong, it may cause network failure or performance degradation. Therefore, there is a problem of low network configuration efficiency, which affects the real-time performance of network communication.
[0051] Based on this, the embodiments of the present application provide a network configuration method, device, storage medium and program product. Since the network topology information can indicate the available communication links in the time-sensitive network, and the network traffic information of the time-sensitive network can reflect the data transmission situation in the network, based on the network topology information and the network traffic information, the configuration information of the time-sensitive network can be accurately determined. The network equipment configured by the configuration information can ensure the network usage requirements under the current network topology and network traffic conditions, thereby ensuring the reliability of the network configuration. Compared with manual configuration, the configuration efficiency and accuracy of the network configuration method are higher, which improves the experience of users using the network.
[0052] The network configuration method, device, storage medium and program product provided in the embodiments of the present application can be applied to a network configuration system, such as Figure 1 As shown, the network configuration system includes a network configuration apparatus 101 and a network device 102. Generally, in practical applications, the connection between the above-mentioned devices can be a wireless connection. In order to conveniently and intuitively represent the connection relationship between the various devices, Figure 1 Solid lines are used to indicate.
[0053] The network configuration device 101 is used to configure the network device 102 in the time-sensitive network; or to determine the configuration information of the time-sensitive network; or to obtain the network topology information or network flow information related to the time-sensitive network.
[0054] The network device 102 belongs to a time-sensitive network; it is used to receive configuration information sent by the network configuration device 101; or it is used to send device status information related to network topology information to the network configuration device 101; or it is used to send network traffic information to the network configuration device 101.
[0055] In some embodiments, the network configuration device 101 may include a centralized user configurator (CUC) and a centralized network configurator (CNC).
[0056] In some embodiments, Figure 2 As shown, it is a schematic diagram of the network architecture of another network configuration system provided in an embodiment of the present application, including a centralized user configurator 201, a centralized network configurator 202, a switch 203, and a terminal device 204.
[0057] The centralized user configurator 201 is used to manage the terminal device 204, including terminal discovery, time-sensitive service demand collection and terminal configuration.
[0058] The centralized network configurator 202 is used to configure the switch 203, including discovering the network physical topology, making resource scheduling decisions, retrieving switch capabilities and configuring the switch 203 according to business needs.
[0059] In some embodiments, the terminal device 204 may include a receiver (listener) 2041 and a transmitter 2042 (talker); the receiver 2041 and the transmitter 2042 communicate through a switch.
[0060] In some embodiments, switch 203 may be referred to as a TSN switch.
[0061] In some embodiments, there may be multiple switches 203 .
[0062] In some embodiments, the terminal device 204 may be referred to as a TSN terminal device.
[0063] In some embodiments, the user / network configuration model may be one of the following: a fully distributed model, a centralized network / distributed user model, a fully centralized model.
[0064] In some embodiments, Figure 3 As shown, it is a schematic diagram of a protocol family of a time-sensitive network provided in an embodiment of the present application. The protocol family is used to indicate the general standards of TSN components, including: time synchronization, bounded low latency, ultra-reliability, dedicated resources and interfaces (API).
[0065] The profiles involved in the protocol family are: AVB specification (802.1BA), fronthaul TSN (802.1CM), industrial automation TSN (P60802), service provider network TSN (P802.1DF), and automotive TSN (P802.1DG).
[0066] Time Synchronization: Timing and Synchronization (802.1AS) includes a profile of IEEE 1588 (revision in progress: P802.1AS-Rev).
[0067] Bounded Low Latency: Credit-based shaper (802.1Qav), frame preemption (802.3br & 802.1Qbu), scheduled traffic (802.1Qbv), round-robin queueing and forwarding (802.1Qch), asynchronous traffic shaping (P802.1Qcr), QoS provisions (P802.1DC).
[0068] Ultra-reliability: frame duplication and elimination (P802.1CB), path control and reservation (802.1Qca), per-flow filtering and policing (802.1Qci), reliability for time synchronization (P802.1AS-Rev).
[0069] Dedicated resources and APIs: Stream Reservation Protocol (802.1Qat), TSN Configuration (802.1Qcc), YANG (802.1Qcp), Link Local Registration Protocol (P802.1CS), Resource Allocation Protocol (P802.1Cdd), YANG for CFM (P802.1QCx), YANG for LLDP (P802.1ABcu), YANG for Qbv, Qbu and Qci (P802.1QCw), YANG & MIB for FRER (P802.1CBCv), Extended Stream Identifier (P802.1CBDb).
[0070] Dedicated resources and APIs, with bounded low latency, to achieve zero congestion loss.
[0071] It should be noted that bounded delay and low jitter are the outstanding features of TSN, which ensure the determinism of data transmission. At the same time, it allows periodic and non-periodic data, delay-sensitive and best-effort services to be transmitted in the same network, making standard Ethernet both real-time and deterministic. TSN key technologies include time synchronization, traffic scheduling, real-time data transmission guarantee and other mechanisms to help network devices perform real-time traffic perception and regulation. The main protocol contents are as follows:
[0072] High-precision time synchronization mechanism, accurate time synchronization is the basis, and TSN network has sub-microsecond time synchronization.
[0073] Scheduling and traffic shaping mechanisms,Scheduling and traffic shaping allow traffic classes of different priorities to coexist on the same network, each with different requirements for available bandwidth and end-to-end latency. All devices participating in real-time communication must follow the same rules when processing and forwarding communication packets.
[0074] Communication path selection, reservation and fault tolerance mechanism,All devices involved in real-time communication follow the same rules in selecting communication paths, reserving bandwidth and time slots, and multiple paths can be used to achieve fault elimination.
[0075] In some embodiments, a network status change sensing device may be built into the centralized user configurator.
[0076] For example, Figure 4 As shown, it is a structural schematic diagram of a network state change perception device provided in an embodiment of the present application, including a data analysis and processing unit 401, a topology change perception unit 402, and a traffic change perception unit 403.
[0077] The data analysis and processing unit 401 is used to receive topology change and flow change information, analyze and process the data, and interact with the CNC to generate updated parameter configuration information for distribution.
[0078] The topology change sensing unit 402 is used for efficient monitoring of the network device status and real-time sensing of network status changes.
[0079] The flow change sensing unit 403 is used to sense flow changes.
[0080] It should be noted that the network status change sensing device can monitor and timely sense changes in network traffic or topology status, and notify the user of the results of analysis and processing in real time. The network status change sensing device can automatically adjust the feedback and notify the CNC through the Restful interface, and the CNC will issue a new network resource arrangement.
[0081] In some embodiments, the traffic change sensing unit 403 may include an OPC UA client.
[0082] In some embodiments, the traffic change sensing unit 403 realizes the perception of traffic changes based on the OPC UA publish-subscribe principle and event notification mechanism.
[0083] like Figure 5 As shown, the network configuration method provided in the embodiment of the present application can be applied to Figure 1 The network configuration device 101 includes S501-S504.
[0084] S501: Obtain network topology information of a time-sensitive network.
[0085] The network topology information is used to indicate available communication links in the time-sensitive network.
[0086] In some embodiments, device status information of a network device of a time-sensitive network is obtained; based on the device status information, network topology information is determined; and the device status information is used to indicate connection information between the network device and other network devices.
[0087] It should be understood that the network topology information may include nodes in the network topology and connection relationships between nodes. Since the device status information can indicate the connection information between a network device and other network devices, the network topology information can be determined through the device status information.
[0088] In some embodiments, the above-mentioned obtaining of device status information of a network device of a time-sensitive network includes: sending an information query message to the network device; and receiving device status information sent by the network device.
[0089] It should be understood that the network configuration device can actively obtain the device status information of the network device by sending an information query message to the network device.
[0090] In some embodiments, the device status information includes at least one of the following: port status change information of the network device; ring network status change information of the network device; startup status information of the network device; shutdown status information of the network device.
[0091] In some embodiments, the network device may actively send device status information to the network configuration apparatus when a device status information change event occurs.
[0092] It should be understood that the network device can actively send device status information to the network configuration apparatus when a device status information change event occurs, so that the network configuration apparatus can obtain the changed device status information more quickly and timely.
[0093] In some embodiments, network topology information may be acquired through a topology change sensing unit.
[0094] In some embodiments, network topology information may be obtained through a periodic polling mechanism and event-driven (Simple Network Management Protocol, SNMP) TRAP notifications.
[0095] In some embodiments, the polling step: regularly sending a query request from the topology change sensing unit in the network status change sensing device to the network device to verify the online status of the device. This step ensures continuous monitoring of the network device.
[0096] In some embodiments, the event-driven step: responding to specific events in the network through SNMP TRAP technology. When the network device detects a port status change (such as linkdown or linkup), a ring network status change (such as ring open or ring closed), or a device startup event (such as cold start or hot start), the device will actively send an SNMP TRAP notification to the network change sensing unit.
[0097] In some embodiments, the event-driven step also includes: TSN specific event identification and delayed TRAP sending.
[0098] It should be understood that by using TSN specific event identification and delayed TRAP sending, the number of TRAPs generated due to temporary state changes can be reduced, the network burden can be reduced, and the utilization efficiency of network resources can be improved.
[0099] It should be noted that SNMP is a protocol used for network device management and monitoring. It is used to report events to the management system through the SNMP Trap asynchronous notification mechanism. Based on this mechanism, OIDs can be customized.
[0100] It should be understood that since there are many TRAP events and they are difficult to distinguish, the custom OID of the TSN network can be used to quickly identify and distinguish specific events in the TSN network. Specific OIDs (object identifiers) are configured for devices in the TSN network to quickly identify and distinguish specific events. The application of this custom OID enables devices in the TSN network to report their status changes more accurately.
[0101] It should be understood that the delayed TRAP sending mechanism can reduce the number of TRAPs generated due to temporary state changes, reduce network burden, and improve the utilization efficiency of network resources.
[0102] It should be noted that when the device topology changes, SNMP TRAP alarms can be sent. However, due to the uncertainty of the actual network environment, when physical port oscillation occurs, that is, disconnection and online, it happens repeatedly. If TRAP events are sent every time and the topology is re-set, it will increase the pressure on the topology change perception device and waste network resources. Secondly, in the case of rapid oscillation and recovery, there is no need to re-plan the TSN flow path. Therefore, a new method is introduced to delay the sending of TRAP.
[0103] For example, when the switch is disconnected or online for the first time, it starts the timer and checks the status again after 5 seconds. If there is a change, it starts to send three traps in succession to ensure that they can arrive. The TRAP information needs to add a sequence field to indicate that three consecutive TRAP messages belong to the same event.
[0104] In some embodiments, the topology change sensing unit parses TRAP information including a custom OID and a sequence field.
[0105] In some embodiments, continuous TRAP information of the same event is identified and associated according to the sequence field. The specific implementation steps are as follows:
[0106] Step 1: Define the MIB. In the MIB file, use the OBJECT-TYPE macro to define a new object tsnEventEntry. This object will contain the TSN event type, timestamp, and sequence fields.
[0107] In the MIB file, an OBJECT-TYPE named tsnEventEntry is defined, which is a structure containing multiple parameters of TSN events: event type (eventType), event description (eventDescription), event time (eventTime), sequence number (sequenceNumber) and event interface index (eventIfIndex). These parameters are used to describe and identify specific events in the TSN network, such as port status changes (linkUp / linkDown) and ring network status changes (ringOpen / ringClosed) and device startup status (coldStart / warmStart).
[0108] Step 2: When an event occurs in the TSN network, the SNMP Agent will generate a TRAP message, usually in the format: <IP address><port><version><community string> <oid><Variable binding list>. After transformation, it contains a custom OID, and a sequence field is added to the variable binding list to identify whether consecutive TRAP messages belong to the same event. The transformed TRAP format is as follows: <IP address><port><version><community string> <oid> <sequencenumber><event data>.
[0109] In this way, continuous events in the TSN network can be accurately tracked and identified, improving the efficiency and accuracy of network monitoring. This innovative approach not only improves the efficiency of event processing, but also enhances the ability to respond to changes in network status.
[0110] Step 3: When a network device detects a network event such as a port status change, a router connection interruption, or a link failure, it generates an SNMP Trap message and sends it to a Network State Awareness Device that is configured with an SNMP Trap receiver.
[0111] Step 4: After receiving the alarm notification, the topology change sensing unit in the network status change sensing device triggers the operation of executing the topology program. The topology program is responsible for reacquiring or updating the topology information of the network to ensure that it is consistent with the actual network status. The updated topology information is sent to the subsequent data analysis and processing unit module. After processing, the result is sent to the CNC through the northbound interface. This process does not require the user to participate in the configuration of manual topology, and realizes real-time dynamic topology.
[0112] For example, the MIB can be defined by the following code:
[0113]
[0114]
[0115]
[0116]
[0117]
[0118]
[0119] S502: Obtain network traffic information of a time-sensitive network.
[0120] In some embodiments, obtaining network traffic information of a time-sensitive network includes: receiving network traffic information sent by a subscriber of an open platform communications unified architecture server OPC UA; the network traffic information is obtained by a publisher in OPC UA.
[0121] In some embodiments, an OPC UA publisher is deployed on a network device of a time-sensitive network.
[0122] In some embodiments, network traffic information may be acquired through a traffic change sensing unit.
[0123] In some embodiments, the traffic change perception unit uses the OPC UA publish-subscribe principle and event notification mechanism to achieve perception of traffic changes.
[0124] Among them, OPC UA is an open unified communication architecture, which is often used for data exchange and communication between devices and software in industrial automation systems. It allows devices and systems from different manufacturers to communicate seamlessly and realize standardized data exchange. In OPC UA, the publish-subscribe (Pub-Sub) model uses the publisher to publish data, and the subscriber subscribes to the data of interest. The server is responsible for publishing the data of traffic changes, and the client subscribes to this data and responds.
[0125] In some embodiments, the specific implementation process of obtaining network traffic information through the traffic change sensing unit is as follows:
[0126] Step 1: OPC UA server data collection.
[0127] Among them, the user terminal Talker or Listener each has an embedded OPC UA server, which is connected to different devices, machines, and sensors on site in a standard manner to ensure that on-site data can be interoperable.
[0128] In some embodiments, OPC UA server data collection includes: device connection and configuration parameters and definition nodes.
[0129] Specifically, the device connection and configuration parameters include: the physical connection between the sensor and the terminal device to ensure that the sensor can send data to the device. Through the user interface and configuration files of the terminal device, the flow requirements, priority and other parameters of the sensor are configured according to actual needs.
[0130] Specifically, defining nodes includes: creating nodes based on the mapping relationship between the embedded OPC UA server and different terminal devices and sensors, so that the nodes can be correctly associated with the corresponding terminal devices, sensors, and other machines. Configure node parameters. This unit module mainly senses the flow status. Therefore, the following process will describe the creation of the flow status node in detail, and the same applies to other nodes.
[0131] Step 2: OPC UA server data publishing.
[0132] Specifically, the OPC UA server publishes the data of traffic changes by publishing nodes.
[0133] In some embodiments, OPC UA server data publishing includes defining traffic state variables and creating a publishing node.
[0134] Specifically, defining a traffic state variable includes: selecting a unique node name and node ID for the traffic state variable so that the variable can be referenced in the OPC UA server and client. Setting the data type, unit, access level, alarms, and events. In order to better monitor the traffic state, a counter attribute is attached to this node to record the total amount of network traffic. When the network traffic changes, the server updates the value of the counter.
[0135] Specifically, creating a publishing node includes: associating a defined node with a traffic state variable.
[0136] Step 3: OPC UA client subscribes to data.
[0137] Among them, the OPC UA client is deployed in this unit module, and after connecting to the server, it subscribes to data.
[0138] In some embodiments, the OPC UA client subscribes to data in the following manner: the OPC UA client completes initialization and establishes a connection with the server. A subscription request is sent to the server through the OPC UA protocol to subscribe to related nodes. An event notification mechanism defined based on the OPC UA specification. After subscription, the client will be able to receive change notifications sent by the server. For example, when the value of a counter attribute changes (the amount of change exceeds a certain threshold), an event is triggered, and after the client receives the notification, the data is saved. Dynamic perception of traffic changes is achieved. Subsequently, process steps similar to the topology change perception unit are used to handle the event accordingly.
[0139] S503: Determine configuration information of the time-sensitive network based on the network topology information and the network traffic information.
[0140] In some embodiments, the configuration information of the time-sensitive network can be determined based on the network topology information and the network traffic information through a data analysis processing unit.
[0141] In some embodiments, the data analysis and processing unit may receive topology change and traffic change information, perform data analysis and processing, and interact with the CNC to generate updated parameter configuration information for distribution.
[0142] In some embodiments, the configuration information of the time-sensitive network is determined by a data analysis and processing unit, and is implemented by: information processing, information sending.
[0143] Specifically, information processing includes: updating the changed topology information and traffic information in the visual web page of CUC, adding notification and permission mechanisms, adding configuration switch 1 in the web page to control whether network change information is allowed to be sent to users via email, SMS, etc. Adding configuration switch 2 to control whether the program is allowed to request CNC to update the network configuration plan.
[0144] Specifically, information transmission includes: under the user's permission (i.e., configuration switch 2 is turned on), CUC reorganizes the traffic demand and network topology information through the northbound interface, and calls the Restful API to notify CNC. CNC arranges the scheduling algorithm according to the specific situation of the network change, makes scheduling decisions or takes other actions. Then, CNC calculates the configuration data required by the device according to the scheduling algorithm, and uses the Netconf protocol to send data to the switch.
[0145] S504: Send configuration information to network devices in the time-sensitive network.
[0146] It should be understood that since the network topology information can indicate the available communication links in the time-sensitive network, and the network traffic information of the time-sensitive network can reflect the data transmission situation in the network, the configuration information of the time-sensitive network can be accurately determined based on the network topology information and the network traffic information. Configuring network devices through the configuration information can ensure the network usage requirements under the current network topology and network traffic conditions, thereby ensuring the reliability of the network configuration. Compared with manual configuration, the network configuration method has higher configuration efficiency and higher accuracy, which improves the experience of users using the network.
[0147] For example, Figure 6 As shown, a flow chart of another network configuration method provided in an embodiment of the present application includes: the switch sends an alarm message to a topology change perception unit based on a port status change; the topology change perception unit receives the alarm message and sends a topology update result to a data analysis and processing unit; the data analysis and processing unit performs data organization and calls a Restful API to notify a CNC; the CNC schedules calculations and sends data to the switch through the Netconf protocol.
[0148] For example, Figure 7 As shown, it is a flow chart of another network configuration method provided by an embodiment of the present application, including receiving topology change data and traffic change data; updating page configuration with web page data. Determining whether to notify; in the case of determining to notify, setting the notification rule; notifying the user by email or SMS; determining whether to adjust automatically. In the case of determining to adjust automatically, notifying the CNC; the CNC notifies the switch through the Netconf protocol.
[0149] The network configuration method provided in the embodiment of the present application can also be applied to Figure 1 The network device 102 shown belongs to a time-sensitive network, such as Figure 8 As shown, the method includes S801-S803:
[0150] S801. Send device status information of a network device to a network configuration apparatus.
[0151] In some embodiments, an information query message is received from a network configuration device; and in response to the information query message, device status information of the network device is sent to the network configuration device.
[0152] It should be understood that by sending the device status information of the network device to the network configuration device through the information query message of the network configuration device, it can be ensured that when the network configuration device needs to obtain the device status information, the device status information is sent to the network configuration device, thereby ensuring the reliability of the network configuration of the network configuration device.
[0153] In some embodiments, in response to a network topology change event, device status information of the network device is sent to a network configuration apparatus.
[0154] It should be understood that since network topology change events can reflect changes in the device status information of network devices, sending the device status information of network devices to the network configuration device in response to network topology change events can send the device status information to the network configuration device more quickly and promptly, thereby ensuring the timeliness and reliability of network configuration.
[0155] In some embodiments, in response to a network topology change event, status information of a network device is sent to a network configuration apparatus, including: in response to the network topology change event, generating an object identifier corresponding to the network topology change event; and sending device status information corresponding to the object identifier to the network configuration apparatus.
[0156] In some embodiments, determining that a network topology change event occurs includes: when a device state of the network device changes from a first state to a second state, and the device state does not change to the first state within a preset time period, determining the network topology change event.
[0157] In some embodiments, the network topology change event includes at least one of the following: a port status change event of a network device; a ring network status change event of a network device; a startup event of a network device; or a shutdown event of a network device.
[0158] S802: Receive configuration information of a time-sensitive network from a network configuration device.
[0159] S803: Configure the network device based on the configuration information.
[0160] It should be understood that sending device status information to the network configuration device can ensure that the network configuration device obtains information related to network configuration, ensuring the reliability and effectiveness of the configuration information generated. By receiving configuration information from the network configuration device and configuring network devices based on the configuration information, network configuration can be reliably achieved.
[0161] The embodiment of the present application can divide the functional modules of the network configuration device or network equipment according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0162] In the case of dividing each functional module into corresponding functional modules, Fig. 9 A possible structural diagram of the network configuration device involved in the above embodiment is shown. Fig. 9 As shown, the network configuration device may include: an acquisition module 901 , a determination module 902 , and a sending module 903 .
[0163] The acquisition module 901 is used to acquire network topology information of a time-sensitive network; the network topology information is used to indicate available communication links in the time-sensitive network.
[0164] The acquisition module 901 is also used to acquire network traffic information of the time-sensitive network.
[0165] The determination module 902 is used to determine the configuration information of the time-sensitive network based on the network topology information and the network traffic information.
[0166] The sending module 903 is used to send configuration information to the network device in the time sensitive network.
[0167] In a possible implementation, the acquisition module 901 is specifically configured to acquire device status information of a network device of a time-sensitive network.
[0168] The determination module 902 is further used to determine network topology information based on the device status information; the device status information is used to indicate the connection information between the network device and other network devices.
[0169] In a possible implementation manner, the network configuration apparatus further includes a receiving module 904 .
[0170] The sending module 903 is further configured to send an information query message to the network device.
[0171] The receiving module 904 is used to receive device status information sent by the network device.
[0172] In a possible implementation, the device status information includes at least one of the following: port status change information of the network device; ring network status change information of the network device; startup status information of the network device; and shutdown status information of the network device.
[0173] In a possible implementation, the receiving module 904 is further configured to receive network traffic information sent by a subscriber of an open platform communications unified architecture server OPC UA; the network traffic information is acquired by a publisher in OPC UA.
[0174] In a possible implementation, an OPC UA publisher is deployed on a network device of a time-sensitive network.
[0175] In the case of dividing each functional module into corresponding functional modules, Fig.10 A possible structural diagram of the network device involved in the above embodiment is shown. Fig.10 As shown, the network device may include: a sending module 1001 , a receiving module 1002 and a configuration module 1003 .
[0176] The sending module 1001 is used to send the device status information of the network device to the network configuration apparatus.
[0177] The receiving module 1002 is used to receive configuration information of a time-sensitive network from a network configuration device.
[0178] The configuration module 1003 is used to configure the network device based on the configuration information.
[0179] In a possible implementation, the receiving module 1002 is configured to receive an information query message from a network configuration device.
[0180] The sending module 1001 is specifically configured to send device status information of the network device to the network configuration apparatus in response to the information query message.
[0181] Alternatively, the sending module 1001 is specifically configured to send device status information of the network device to the network configuration apparatus in response to a network topology change event.
[0182] In a possible implementation, the network device further includes a processing module 1004 .
[0183] The processing module 1004 is used to generate an object identifier corresponding to the network topology change event in response to the network topology change event.
[0184] The sending module 1001 is specifically configured to send device status information corresponding to the object indicator to the network configuration device.
[0185] In a possible implementation, the processing module 1004 is further used to determine the network topology change event when the device state of the network device changes from a first state to a second state and the device state does not change to the first state within a preset time period.
[0186] In a possible implementation, the network topology change event includes at least one of the following: a port state change event of a network device; a ring network state change event of a network device; a startup event of a network device; or a shutdown event of a network device.
[0187] In the case of an integrated unit, Fig.11 FIG. 2 shows another possible structural diagram of the network configuration device involved in the above embodiment. Fig.11 As shown, the network configuration device may include: a processing module 1101 and a communication module 1102. The processing module 1101 may be used to control and manage the actions of the network configuration device. The communication module 1102 may be used to support the communication between the network configuration device 110 and other entities. Optionally, as Fig.11 As shown, the network configuration device may further include a storage module 1103 for storing program codes and data of the network configuration device.
[0188] The processing module 1101 may be a processor or a controller. The communication module 1102 may be a transceiver, a transceiver circuit or a communication interface, etc. The storage module 1103 may be a memory.
[0189] When the processing module 1101 is a processor, the communication module 1102 is a transceiver, and the storage module 1103 is a memory, the processor, the transceiver, and the memory may be connected via a bus. The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
[0190] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0191] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0192] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0193] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0194] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may include one or more servers, data centers and other data storage devices that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0195] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.< / sequencenumber> < / oid> < / oid>
Claims
1. A network configuration method, characterized in that: Applied to a network configuration device, the method comprises: Acquire network topology information of a time-sensitive network; the network topology information is used to indicate available communication links in the time-sensitive network; Obtaining network traffic information of the time-sensitive network; Determining configuration information of the time-sensitive network based on the network topology information and the network traffic information; The configuration information is sent to a network device in the time-sensitive network.
2. The method according to claim 1, characterized in that: The obtaining of network topology information of a time-sensitive network includes: Obtaining device status information of a network device of the time-sensitive network; Based on the device status information, the network topology information is determined; the device status information is used to indicate connection information between the network device and other network devices.
3. The method according to claim 2, characterized in that The obtaining of device status information of the network device of the time-sensitive network includes: Sending an information query message to the network device; Receive device status information sent by the network device.
4. The method according to claim 3, characterized in that The device status information includes at least one of the following: Port status change information of the network device; Ring network status change information of the network device; Startup status information of the network device; The shutdown status information of the network device.
5. The method according to claim 1, characterized in that The obtaining of network traffic information of the time-sensitive network includes: Receive network traffic information sent by a subscriber of an open platform communication unified architecture server OPC UA; the network traffic information is obtained by a publisher in the OPC UA.
6. The method according to claim 5, characterized in that The OPC UA publisher is deployed on a network device of the time-sensitive network.
7. A network configuration method, characterized in that: Applied to a network device, the network device belongs to a time-sensitive network, the method comprises: Sending device status information of the network device to a network configuration device; receiving configuration information of the time-sensitive network from the network configuration device; The network device is configured based on the configuration information.
8. The method according to claim 7, characterized in that The sending the device status information of the network device to the network configuration device includes: receiving an information query message from the network configuration device, and sending the device status information of the network device to the network configuration device in response to the information query message; or, In response to a network topology change event, the device status information of the network device is sent to the network configuration apparatus.
9. The method according to claim 8, characterized in that The sending the status information of the network device to the network configuration device in response to the network topology change event comprises: In response to the network topology change event, generating an object identifier corresponding to the network topology change event; The device status information corresponding to the object indicator is sent to the network configuration device.
10. The method according to claim 9, characterized in that Determining that the network topology change event occurs includes: When the device state of the network device changes from a first state to a second state, and the device state does not change to the first state within a preset time period, the network topology change event is determined.
11. The method according to claim 10, characterized in that The network topology change event includes at least one of the following: A port status change event of the network device; A ring network status change event of the network device; A startup event of the network device; A shutdown event of the network device.
12. A network configuration device, characterized in that: It includes an acquisition module, a determination module and a sending module; The acquisition module is used to acquire network topology information of the time-sensitive network; The acquisition module is further used to acquire network traffic information of the time-sensitive network; The determining module is used to determine the configuration information of the network device corresponding to the time sensitive network based on the network topology information and the network traffic information; The network topology information is used to determine available communication links in the time-sensitive network; the network traffic information is used to determine the capacity of the time-sensitive network; The sending module is used to send the configuration information to the network device.
13. A network configuration device, characterized in that: The network configuration device comprises: processor; a memory configured to store instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 6.
14. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions in the computer-readable storage medium are executed by a network configuration device, the network configuration device is enabled to perform the method according to any one of claims 1 to 6.
15. A computer program product, characterized in that The computer program product comprises computer program instructions, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Wireless local area network system and network data processing method
CN114302411A
Configuration method and system of TSN network and storage medium
CN115242627A
Uniform configuration method for integrating industrial wireless network with time-sensitive network
CN116032744A
TSN dynamic network management system and method based on SNMP
CN118694650A
Hybrid resource configuration system and method for time-sensitive network
CN118890274A
Cited By
Test network configuration method and system suitable for large-scale network test bed
CN120238442A
A test network configuration method and system applicable to large-scale network testbeds
CN120238442B
Network configuration method and system supporting user-defined configuration model and extended configuration protocol, and medium
CN121239569A