Interface management method, device and system
By creating a virtual OT interface of the same type as the interface extension device in the gateway device and allocating resources, the problem that the gateway device cannot effectively manage the IoBox OT interface is solved, and the access flexibility and management capabilities of the virtual open system to the OT interface are improved.
Patent Information
- Application Number
- CN201910877853.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-09-17
AI Technical Summary
The existing gateway device cannot effectively manage the OT interface on the interface expansion device (IoBox), resulting in high application limitations and the inability to allocate it as an open resource, which limits the flexibility of the virtual open system's access to the OT interface.
Create a virtual interface in the gateway device that is of the same type as the OT interface on the interface expansion device, and allocate resources to the virtual interface so that the virtual open system can access the corresponding OT interface and realize the resources of the OT interface on the interface expansion device. distribution, reducing application limitations.
It improves the flexibility of the virtual open system in the gateway device to access the OT interface, reduces the application limitations of the interface extension device, and enhances the management and allocation capabilities of the OT interface.
Smart Images

Figure CN112532540B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an interface management method, device and system. Background Art
[0002] With the rapid development of network technology, the exchange and communication of information has gradually expanded from people to objects, thus giving rise to the concept of "Internet of Things". At present, the architecture of the Internet of Things can be divided into the perception layer, network layer and application layer. The perception layer is mainly used to identify objects and collect information. The network layer is used to transmit and process the information obtained by the perception layer. The application layer is the interface between the Internet of Things and users, and is used to realize the intelligent application of the Internet of Things. In the architecture of the Internet of Things, the perception layer and the network layer need to be connected through a gateway device.
[0003] At present, gateway devices usually provide the integration of Internet technology (IT) and operational technology (OT), that is, provide IT computing resources and OT interfaces. Common OT interface types include RS232 interface, RS485 interface, controller area network (CAN) interface, digital input interface (DI) interface and digital output (DO) interface. Gateway devices are limited by their own hardware specifications and cannot provide all OT interfaces. Therefore, a method for expanding the OT interface on the gateway device through an external interface expansion device (the interface expansion device can also be called IoBox) is currently provided. There are one or more OT interfaces on the IoBox. The open system in the gateway device develops corresponding applications (APP) for the IoBox and uses the Transmission Control Protocol / Internet Protocol (TCP / IP) communication method to access the OT interface on the IoBox. Among them, the open system refers to a system that exchanges matter, energy or information with the external environment.
[0004] However, since IoBox is a remote application service for gateway devices, gateway devices cannot manage the OT interface on IoBox as an open resource, resulting in high application limitations of IoBox. Summary of the invention
[0005] The present application provides an interface management method, device and system, which can solve the problem that the current IoBox has high application limitations.
[0006] In a first aspect, an interface management method is provided. The method comprises:
[0007] The gateway device receives the interface information sent by the interface extension device. The Ethernet interface of the interface extension device is connected to the Ethernet interface of the gateway device. The interface information includes the interface type of the first OT interface of the interface extension device. The gateway device creates a first virtual interface according to the interface information. The first virtual interface corresponds to the first OT interface of the interface extension device. The interface type of the first virtual interface is the same as the interface type of the first OT interface. The gateway device assigns the first virtual interface to the target virtual open system of the gateway device, so that the application in the target virtual open system can access the first OT interface. The gateway device sends an interface allocation completion notification to the interface extension device.
[0008] In the present application, a virtual interface of the same interface type as the OT interface on the interface expansion device is created in the gateway device. The gateway device allocates resources to the virtual interface so that the virtual open system allocated with the virtual interface can access the corresponding OT interface, thereby realizing resource allocation for the OT interface on the interface expansion device, improving the flexibility of the virtual open system in the gateway device to access the OT interface, and thereby reducing the application limitations of the interface expansion device.
[0009] Optionally, when the gateway device runs a Linux operating system, the gateway device creates a first virtual interface according to the interface information, including: the gateway device creates a Linux device node corresponding to the first OT interface according to the interface information. The target virtual open system is a target container, and the gateway device allocates the first virtual interface to the target virtual open system of the gateway device, including: the gateway device maps the Linux device node to the target container.
[0010] Optionally, when the gateway device runs a Windows operating system, the gateway device creates a first virtual interface according to the interface information, including: the gateway device creates a virtual device corresponding to the first OT interface according to the interface information. The target virtual open system is a target virtual machine, and the gateway device assigns the first virtual interface to the target virtual open system of the gateway device, including: the gateway device assigns the virtual device to the target virtual machine.
[0011] Optionally, the gateway device and the interface extension device transmit information via an Ethernet frame, the Ethernet frame includes a target indication field, the target indication field is used to indicate a message type of the Ethernet frame, and the message type includes a management message or a service message.
[0012] Optionally, the interface extension device also has a second OT interface, the gateway device creates a second virtual interface corresponding to the second OT interface, and the target indication field is also used to indicate the OT interface in the interface extension device for transmitting Ethernet frames.
[0013] Alternatively, the gateway device only creates one virtual interface, and the target indication field can also be used to indicate the OT interface used to transmit Ethernet frames in the interface extension device, which is not limited in this application.
[0014] Optionally, the target indication field includes a first indication field and a second indication field, the first indication field is used to indicate the message type of the Ethernet frame, and the second indication field is used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
[0015] Optionally, the target indication field is a label protocol identification field.
[0016] Optionally, the interface allocation completion notification includes a value of a target indication field allocated to the first OT interface.
[0017] Optionally, the Ethernet frame also includes a tag control information TCI field, and the TCI field is used to indicate the message length of the Ethernet frame.
[0018] Optionally, after the gateway device sends the interface allocation completion notification to the interface extension device, the gateway device sends interface parameters to the interface extension device, where the interface parameters include one or more of the baud rate, data bits, stop bits and check bits of the first OT interface.
[0019] In a second aspect, an interface management method is provided. The method comprises:
[0020] The interface extension device sends interface information to the gateway device, the Ethernet interface of the interface extension device is connected to the Ethernet interface of the gateway device, and the interface information includes the interface type of the first OT interface of the interface extension device, so that the gateway device creates a first virtual interface according to the interface information, the first virtual interface corresponds to the first OT interface of the interface extension device, and the interface type of the first virtual interface is the same as the interface type of the first OT interface. The interface extension device receives the interface allocation completion notification sent by the gateway device, and the interface allocation completion notification is used to indicate to the interface extension device that the gateway device has completed the allocation of the virtual interface corresponding to the OT interface in the interface information.
[0021] Optionally, the gateway device and the interface extension device transmit information via an Ethernet frame, the Ethernet frame includes a target indication field, the target indication field is used to indicate a message type of the Ethernet frame, and the message type includes a management message or a service message.
[0022] Optionally, the interface extension device also has a second OT interface, the gateway device creates a second virtual interface corresponding to the second OT interface, and the target indication field is also used to indicate the OT interface in the interface extension device for transmitting Ethernet frames.
[0023] Optionally, the target indication field includes a first indication field and a second indication field, the first indication field is used to indicate the message type of the Ethernet frame, and the second indication field is used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
[0024] Optionally, the target indication field is a label protocol identification field.
[0025] Optionally, the interface allocation completion notification includes a value of a target indication field allocated to the first OT interface.
[0026] Optionally, the Ethernet frame also includes a TCI field, and the TCI field is used to indicate the message length of the Ethernet frame.
[0027] In a third aspect, an interface management device is provided for a gateway device. The device includes multiple functional modules, and the multiple functional modules interact with each other to implement the method in the first aspect and its various embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.
[0028] In a fourth aspect, an interface management device is provided for an interface expansion device. The device includes multiple functional modules, and the multiple functional modules interact with each other to implement the method in the above second aspect and its respective embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.
[0029] In a fifth aspect, a gateway device is provided, the gateway device comprising: a processor and a memory;
[0030] The memory is used to store a computer program, wherein the computer program includes program instructions;
[0031] The processor is used to call the computer program to implement the interface management method as described in any one of the first aspects.
[0032] In a sixth aspect, an interface expansion device is provided, the interface expansion device comprising: a processor and a memory;
[0033] The memory is used to store a computer program, wherein the computer program includes program instructions;
[0034] The processor is used to call the computer program to implement the interface management method as described in any one of the second aspects.
[0035] In a seventh aspect, an interface management system is provided, the interface management system comprising a gateway device and an interface extension device, wherein an Ethernet interface of the gateway device is connected to an Ethernet interface of the interface extension device;
[0036] The gateway device includes the interface management device as described in any one of the third aspects, and the interface expansion device includes the interface management device as described in any one of the fourth aspects.
[0037] In an eighth aspect, a computer storage medium is provided, on which instructions are stored. When the instructions are executed by a processor of a gateway device, an interface management method as described in any one of the first aspects is implemented.
[0038] In a ninth aspect, a computer storage medium is provided, on which instructions are stored. When the instructions are executed by a processor of an interface expansion device, an interface management method as described in any one of the second aspects is implemented.
[0039] In a tenth aspect, a chip is provided, the chip including a programmable logic circuit and / or program instructions, and when the chip is running, the interface management method as described in any of the first aspect and any of its implementation methods is implemented.
[0040] In the eleventh aspect, a chip is provided, the chip including a programmable logic circuit and / or program instructions, and when the chip is running, the interface management method as described in any of the second aspect and any of its implementation methods is implemented.
[0041] The beneficial effects of the technical solution provided by this application include at least:
[0042] By creating a virtual interface of the same interface type as the OT interface on the interface expansion device in the gateway device, the gateway device allocates resources to the virtual interface so that the virtual open system allocated with the virtual interface can access the corresponding OT interface, thereby realizing resource allocation for the OT interface on the interface expansion device, improving the flexibility of the virtual open system in the gateway device to access the OT interface, and further reducing the application limitations of the interface expansion device. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a structural diagram of an interface management system provided by an embodiment of the present application;
[0044] Figure 2 It is a schematic diagram of an application scenario involved in an interface management system provided in an embodiment of the present application;
[0045] Figure 3 is a flow chart of an interface management method provided by an embodiment of the present application;
[0046] Figure 4 It is a schematic diagram of a scenario in which a gateway device allocates resources to an OT interface on an interface extension device provided in an embodiment of the present application;
[0047] Figure 5 It is a structural diagram of an Ethernet frame provided in an embodiment of the present application;
[0048] Figure 6 It is a structural diagram of an interface management device provided in an embodiment of the present application;
[0049] Figure 7 is a structural diagram of another interface management device provided in an embodiment of the present application;
[0050] Figure 8 is a block diagram of a gateway device provided in an embodiment of the present application;
[0051] Fig. 9 It is a block diagram of an interface expansion device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0053] Figure 1 Schematic diagram of the structure of an interface management system provided by an embodiment of the present application. Figure 1 As shown, the interface management system includes a gateway device 101 and interface expansion devices 102a-102b (collectively referred to as interface expansion devices 102). Figure 1 The number of interface expansion devices is only used as an illustration and is not intended to limit the interface management system provided in the embodiment of the present application. For example, one gateway device 101 may also be connected to one interface expansion device 102, or one gateway device 101 may also be connected to three, four or more interface expansion devices 102. The interface expansion device in the embodiment of the present application may also be referred to as IoBox.
[0054] The gateway device 101 has an Ethernet interface, and the interface expansion device 102 has an Ethernet interface and an OT interface. Optionally, the number of Ethernet interfaces on the gateway device 101 may be one or more; the number of Ethernet interfaces on the interface expansion device 102 may be one or more, and the number of OT interfaces on the interface expansion device 102 may also be one or more. For example, see Figure 1 , the gateway device 101 has two Ethernet interfaces, one Ethernet interface on the gateway device 101 is connected to the Ethernet interface of the interface extension device 102a, and the other Ethernet interface on the gateway device 101 is connected to the Ethernet interface of the interface extension device 102b. Of course, the gateway device 101 may also have one or more non-Ethernet interfaces, including a network interface and / or an OT interface. The embodiment of the present application does not limit the number and type of interfaces of the gateway device.
[0055] Optionally, the interface types of the OT interface include an RS232 interface, an RS485 interface, a CAN interface, a DI interface, and a DO interface.
[0056] For example, Figure 2 Schematic diagram of an application scenario involving an interface management system provided in an embodiment of the present application. Figure 2 As shown, an Ethernet (ETH) interface of the gateway device 101 is connected to the Ethernet interface of the interface expansion device 102a, and another Ethernet interface of the gateway device 101 is connected to the Ethernet interface of the interface expansion device 102b. The number of interfaces and interface types of the interface expansion device 102a and the interface expansion device 102b are the same, and the embodiment of the present application takes the interface expansion device 102a as an example for explanation. The OT interface on the interface expansion device 102a includes a DI interface, a DO interface, and an RS485 interface. The perception layer device 103a is connected to the DI interface on the interface expansion device 102a, and the perception layer devices 103b1-103b2 are connected to the RS485 interface on the interface expansion device 102a. See Figure 2 , the perception layer device 103a can be a smart switch, and the perception layer devices 103b1-103b2 can be smart meters. The perception layer devices can also be other smart terminals such as smart elevators. The gateway device controls and collects data from the perception layer devices through the OT interface, thereby realizing scene demands such as industrial control and equipment monitoring.
[0057] The gateway device 101 provided in the embodiment of the present application has edge computing capabilities. When the gateway device 101 runs the Linux operating system, the gateway device 101 supports the deployment of containers; when the gateway device 101 runs the Windows operating system, the gateway device 101 supports the deployment of virtual machines. Both container technology and virtual machine technology are virtualization technologies that can be used to achieve resource isolation.
[0058] The gateway device includes an operating system and an open system. In the Linux operating system, all devices are stored in the / dev directory in the form of files. The Linux device node is the Linux kernel's abstraction of the device. A device node is a file, and the device node is created under / dev. The Linux operating system has kernel state and user state, and the device node is the hub connecting the kernel state and the user state. The dimension of resource management of the Linux operating system for the open system is the container, and different applications in the same container cannot be allocated resources by the Linux operating system. Similarly, the dimension of resource management of the Windows operating system for the open system is the virtual machine, and different applications in the same virtual machine cannot be allocated resources by the Windows operating system.
[0059] Since the external IoBox on the current gateway device is a remote application service for the gateway device, the gateway device cannot allocate and manage the OT interface on the IoBox as an open resource. For a gateway device deployed with multiple containers or multiple virtual machines, after the external IoBox, each container in the gateway device or the application in each virtual machine can access the OT interface on the IoBox, so that the gateway device cannot achieve resource isolation. Therefore, the current application limitations of IoBox are relatively high. An embodiment of the present application provides an interface management method, which creates a virtual interface of the same interface type as the OT interface on the interface expansion device in the gateway device. The gateway device can manage the OT interface on the interface expansion device by managing the virtual interface, thereby reducing the application limitations of the interface expansion device. The following embodiments of the present application describe in detail the implementation process of the interface management method.
[0060] Figure 3 is a flowchart of an interface management method provided by an embodiment of the present application. The method can be applied to Figure 1 In the interface management system shown in Figure 3 As shown, the method includes:
[0061] Step 301: The interface extension device sends interface information to the gateway device.
[0062] The interface expansion device may be: Figure 1 Any interface expansion device in the interface management system shown. The interface expansion device has an Ethernet interface and n OT interfaces, where n is a positive integer. The Ethernet interface of the interface expansion device is connected to the Ethernet interface of the gateway device. The interface information includes the interface type of the first OT interface of the interface expansion device. The first OT interface can be any OT interface on the interface expansion device, or the first OT interface can be an OT interface on the interface expansion device connected to a perception layer device. Optionally, the interface information may also include an interface identifier of the first OT interface. The interface identifier may be a media access control (MAC) address of the first OT interface or other hardware address that can uniquely identify the first OT interface. When the interface expansion device has other OT interfaces of the same interface type as the first OT interface, the interface identifier can uniquely identify the first OT interface.
[0063] Optionally, when the number of OT interfaces on the interface extension device is n ≥ 2, in a first implementable manner, the interface information includes the interface types of n OT interfaces. For example, the interface extension device has three OT interfaces, namely OT interfaces 1-3, then the interface information includes: the interface type (DI) of OT interface 1, the interface type (DO) of OT interface 2, and the interface type (RS485) of OT interface 3. In a second implementable manner, the interface information includes the interface type of the OT interface connected to the perception layer device. When the OT interface on the interface extension device that is not connected to the perception layer device is subsequently connected to the perception layer device, the interface extension device can send interface information including the interface type of the OT interface to the gateway device.
[0064] In the second possible implementation method described above, the gateway device does not need to allocate resources to the OT interface on the interface extension device that is not connected to the perception layer device, which can save management resources of the gateway device.
[0065] Optionally, the interface information can be encoded using TLV (type-length-value) and carried in the payload of the Ethernet frame for transmission. Of course, the interface information can also be encoded using other encoding methods and carried in the payload of the Ethernet frame for transmission, and the embodiment of the present application does not limit the encoding method used.
[0066] Optionally, after the Ethernet interface of the interface extension device is connected to the Ethernet interface of the gateway device, access authentication and key negotiation can be performed between the interface extension device and the gateway device. Optionally, access authentication and key negotiation can be performed between the interface extension device and the gateway device based on the Transport Layer Security (TLS) protocol. After the access authentication and key negotiation are completed between the interface extension device and the gateway device, data is transmitted between the interface extension device and the gateway device in an encrypted manner. The implementation process of step 301 includes: the interface extension device encrypts the interface information and sends the encrypted interface information to the gateway device.
[0067] Step 302: The gateway device creates a first virtual interface according to the interface information.
[0068] The first virtual interface corresponds to the first OT interface of the interface expansion device, and the interface type of the first virtual interface is the same as the interface type of the first OT interface. For example, if the interface type of the first OT interface is a DI interface, the interface type of the first virtual interface is also a DI interface; if the interface type of the first OT interface is a DO interface, the interface type of the first virtual interface is a DO interface; if the interface type of the first OT interface is an RS485 interface, the interface type of the first virtual interface is also an RS485 interface.
[0069] Optionally, when the gateway device runs a Linux operating system, the implementation of step 302 includes: the gateway device creates a Linux device node corresponding to the first OT interface according to the interface information.
[0070] In the embodiment of the present application, the gateway device creates a Linux device node corresponding to the first OT interface, that is, the first OT interface is virtualized into an OT interface on the gateway device, thereby realizing the management of the first OT interface.
[0071] Optionally, when the gateway device runs a Windows operating system, the implementation of step 302 includes: the gateway device creates a virtual device corresponding to the first OT interface according to the interface information.
[0072] In the embodiment of the present application, the gateway device creates a virtual device corresponding to the first OT interface, that is, the first OT interface is virtualized into an OT interface on the gateway device, thereby realizing the management of the first OT interface.
[0073] Optionally, the interface information also includes the interface type of the second OT interface, and the gateway device also creates a second virtual interface corresponding to the second OT interface, and the interface type of the second virtual interface is the same as the interface type of the second OT interface.
[0074] Step 303: The gateway device allocates the first virtual interface to a target virtual open system of the gateway device, so that an application program in the target virtual open system can access the first OT interface.
[0075] The gateway device may include multiple virtual open systems. The gateway device can allocate the first virtual interface to one or more target virtual open systems, so that applications in the target virtual open system can access the first OT interface, and applications in other virtual open systems in the gateway device except the target virtual open system cannot access the first OT interface, thereby realizing the resource allocation of the gateway device to the first OT interface.
[0076] Optionally, when the gateway device runs the Linux operating system, the virtual open system in the gateway device is the container, and the target virtual open system is the target container, then the implementation method of step 303 includes: the gateway device maps the Linux device node corresponding to the first OT interface to the target container.
[0077] Optionally, when the gateway device runs the Windows operating system, the virtual open system in the gateway device is a virtual machine, and the target virtual open system is a target virtual machine, then the implementation method of step 303 includes: the gateway device assigns the virtual device corresponding to the first OT interface to the target virtual machine.
[0078] By way of example, the embodiment of the present application takes a gateway device running a Linux operating system as an example to illustrate the resource allocation process of the gateway device to the OT interface on the interface expansion device. Figure 4 Schematic diagram of a scenario in which a gateway device allocates resources to an OT interface on an interface expansion device, provided in an embodiment of the present application. Figure 4 As shown, the interface expansion device has an Ethernet interface, a DI interface and an RS485 interface. The driver of the Ethernet interface is referred to as the ETH driver, the driver of the DI interface is referred to as the DI driver, and the driver of the RS485 interface is referred to as the RS485 driver. For the convenience of explanation, the actual interface is not marked in the figure, and only the interface driver is used for schematic illustration. The interface expansion device also includes a device management module and an inter-device communication module. The device management module is used to manage the interface expansion device, such as access authentication, key negotiation, and interface discovery; the inter-device communication module is used to parse and forward Ethernet frames transmitted between devices. The gateway device has an Ethernet interface. The gateway device also includes a device management module and an inter-device communication module. The device management module is represented as the device node / dev / mgmt in the Linux operating system. The device management module is used to create a device node corresponding to the OT interface on the interface expansion device according to the interface information sent by the interface expansion device. For example, see Figure 4 The device management module creates the device node / dev / di corresponding to the DI interface and the device node / dev / RS corresponding to the RS485 interface. The inter-device communication module in the gateway device is used to parse and forward the Ethernet frames transmitted between devices, and is deployed in the kernel state.
[0079] Please continue to see Figure 4 , assuming that the gateway device has containers A and B, container A includes APP1, and container B includes APP2. The Linux operating system of the gateway device maps the device node / dev / di to container A and maps the device node / dev / RS to container B. Then, APP1 in container A can access the DI interface on the interface extension device through the device node / dev / di, and APP2 in container B can access the RS485 interface on the interface extension device through the device node / dev / RS. APP1 in container A cannot access the RS485 interface on the interface extension device, and APP2 in container B cannot access the DI interface on the interface extension device, thereby realizing resource allocation for the OT interface on the interface extension device.
[0080] Step 304: The gateway device sends an interface allocation completion notification to the interface extension device.
[0081] After completing the allocation of the first virtual interface, the gateway device sends an interface allocation completion notification to the interface extension device. The interface allocation completion notification is used to indicate to the interface extension device that the gateway device has completed the allocation of the virtual interface corresponding to the OT interface in the interface information.
[0082] Step 305: The interface extension device determines that the gateway device has completed the allocation of the first OT interface.
[0083] When the interface extension device receives the interface allocation completion notification sent by the gateway device, the interface extension device determines that the gateway device has completed the allocation of the OT interface.
[0084] In an embodiment of the present application, a virtual interface of the same interface type as the OT interface on the interface expansion device is created in the gateway device, and the gateway device allocates resources to the virtual interface so that the virtual open system allocated with the virtual interface can access the corresponding OT interface, thereby realizing resource allocation for the OT interface on the interface expansion device, improving the flexibility of the virtual open system in the gateway device to access the OT interface, and thereby reducing the application limitations of the interface expansion device.
[0085] Step 306: The gateway device sends interface parameters to the interface extension device.
[0086] Optionally, after sending the interface allocation completion notification to the interface expansion device, the gateway device may also send interface parameters to the interface expansion device. The interface parameters include one or more of the baud rate, data bits, stop bits, and check bits of the first OT interface. Among them, the baud rate is used to measure the symbol transmission rate, and its value represents the number of symbols transmitted per second by the OT interface. The data bit is used to measure the actual data bit in the communication message. The stop bit is used to indicate the last bit of the message. The check bit is used to indicate odd check, even check, or no check.
[0087] Optionally, the gateway device may use a confirmable message (CON) to transmit the interface parameters.
[0088] Step 307: The interface extension device configures the first OT interface according to the interface parameters.
[0089] Optionally, when the gateway device uses a CON message to transmit interface parameters, the interface extension device needs to respond to the CON message after receiving the interface parameters. If the interface extension device successfully configures the first OT interface according to the interface parameters, the interface extension device can reply an acknowledgment (ACK) message to the gateway device; if the interface extension device fails to configure the first OT interface according to the interface parameters, the interface extension device can reply a reconnection (reset, RST) message to the gateway device.
[0090] In the embodiment of the present application, the gateway device uses the CON message to transmit interface parameters, and can determine whether the interface expansion device has successfully configured the OT interface according to the response message of the interface expansion device. If the interface expansion device has successfully configured the OT interface, step 308 is executed; if the interface expansion device fails to configure the OT interface, the gateway device sends the interface parameters to the interface expansion device again, that is, steps 306-307 are executed again until the interface expansion device successfully configures the OT interface, thereby ensuring the reliability of the OT interface configuration on the interface expansion device.
[0091] Step 308: Transmit interface data between the gateway device and the interface extension device.
[0092] Optionally, the gateway device and the interface expansion device may use a non-confirmable message (NON) to transmit interface data. The interface data may be data that needs to be forwarded by the OT interface of the interface expansion device, for example, data information generated by the perception layer device collected by the interface expansion device through the OT interface and control information that needs to be sent to the perception layer device through the OT interface of the interface expansion device.
[0093] In an embodiment of the present application, information is transmitted between a gateway device and an interface expansion device via an Ethernet frame. The Ethernet frame includes a target indication field, which is used to indicate the message type of the Ethernet frame. Message types include management messages or service messages. Optionally, a management message refers to a message whose processing object is an interface expansion device, such as interface information sent by an interface expansion device to a gateway device and interface allocation completion notification sent by a gateway device to an interface expansion device are both management messages. A service message refers to a message whose processing object is an OT interface, such as interface parameters sent by a gateway device to an interface expansion device and interface data transmitted between a gateway device and an interface expansion device are both service messages. By way of example, Figure 4 The messages transmitted between the device node / dev / mgmt in the gateway device and the device management module of the interface expansion device are management messages; the messages transmitted between the device node / dev / di in the gateway device and the DI interface of the interface expansion device, and the messages transmitted between the device node / dev / RS in the gateway device and the RS interface of the interface expansion device are all business messages.
[0094] Optionally, the message type of the Ethernet frame can be distinguished by carrying different numbers, characters, letters, etc. in the target indication field. For example, when the target indication field carries a first value, it indicates that the message type of the Ethernet frame is a management message, and when the target indication field carries a second value, it indicates that the message type of the Ethernet frame is a service message.
[0095] For example, Figure 5 Schematic diagram of the structure of an Ethernet frame provided in an embodiment of the present application. Figure 5 As shown, the Ethernet frame includes an Ethernet frame header and a payload part. The structure of the Ethernet frame can refer to the Ethernet frame format defined in the Institute of Electrical and Electronics Engineers (IEEE) 802.1Q. Among them, the Ethernet frame header includes a destination MAC field, a source MAC field, a tag protocol identifier (TPID) field, a tag control information (TCI) field, and an Ethernet type (eth type) field. The length of the destination MAC field is 6 bytes, the length of the source MAC field is 6 bytes, the length of the TPID field is 2 bytes, the length of the TCI field is 2 bytes, and the length of the Ethernet type field is 2 bytes. The payload part is a variable length field. The above-mentioned target indication field can be a TPID field.
[0096] In the present application, in the Ethernet frame transmitted between the gateway device and the interface extension device, the destination MAC and the source MAC can both be fixed control class addresses, for example, the destination MAC can be 0180 C200 0001, and the source MAC can be 0180C2000002. The TCI field is used to indicate the message length of the Ethernet frame (i.e., the length of the payload part). When the message type of the Ethernet frame is a management message, the Ethernet type field can be used to indicate the service type of the Ethernet frame, for example, to indicate that the Ethernet frame is a registration message (including interface messages, interface allocation completion notifications, etc.) or an authentication message (including messages in the access authentication and key negotiation process between the interface extension device and the gateway device). When the message type of the Ethernet frame is a service message, the Ethernet type field can be set to a fixed value. In an embodiment of the present application, the messages transmitted between the gateway device and the interface extension can be transmitted in the payload part of the Ethernet frame after being encoded with TLV.
[0097] Optionally, the above-mentioned interface expansion device may also have a second OT interface, and the gateway device creates a second virtual interface corresponding to the second OT interface, that is, the gateway device needs to allocate resources to multiple OT interfaces. In this case, the target indication field in the Ethernet frame is also used to indicate the OT interface in the interface expansion device used to transmit the Ethernet frame.
[0098] In a first possible implementation, the target indication field includes a first indication field and a second indication field, wherein the first indication field is used to indicate the message type of the Ethernet frame, and the second indication field is used to indicate the OT interface in the interface extension device used to transmit the Ethernet frame. For example, the first byte of the TPID field can be used as the first indication field, and the second byte of the TPID field can be used as the second indication field. Alternatively, the TPID field can be used as the first indication field, and a new field can be added to the Ethernet frame as the second indication field, which is not limited in the embodiments of the present application.
[0099] In a second possible implementation, the target indication field may be a field that simultaneously indicates the message type of the Ethernet frame and the OT interface in the interface extension device for transmitting the Ethernet frame by carrying different contents in the target indication field. Figure 4 The medium interface expansion device has a DI interface and an RS485 interface. The TPID field value of the management message can be set to 0x701, the TPID field value of the service message on the DI interface can be set to 0x706, and the TPID field value of the service message on the RS485 interface can be set to 0x705.
[0100] Optionally, the interface allocation completion notification sent by the gateway device to the interface expansion device may include the value of the target indication field assigned to the first OT interface. If the interface expansion device also has a second OT interface, the interface allocation notification may also include the value of the target indication field assigned to the second OT interface. Of course, the value of the target indication field corresponding to each OT interface on the interface expansion device may also be pre-set in the interface expansion device, which is not limited in the embodiments of the present application.
[0101] The sequence of steps of the interface management method provided in the embodiment of the present application can be adjusted appropriately. The steps can also be increased or decreased accordingly according to the situation. Any technician familiar with the technical field can easily think of a method of variation within the technical scope disclosed in the present application, which should be included in the protection scope of the present application, so it will not be repeated here.
[0102] To summarize, in the interface management method provided in the embodiment of the present application, a virtual interface of the same interface type as the OT interface on the interface expansion device is created in the gateway device, and the gateway device allocates resources to the virtual interface so that the virtual open system allocated with the virtual interface can access the corresponding OT interface, thereby realizing resource allocation for the OT interface on the interface expansion device, improving the flexibility of the virtual open system in the gateway device to access the OT interface, and thereby reducing the application limitations of the interface expansion device.
[0103] Figure 6is a schematic diagram of the structure of an interface management device provided in an embodiment of the present application. The device can be applied to Figure 1 The gateway device 101 in the interface management system shown. Figure 6 As shown, the device 60 includes:
[0104] The receiving module 601 is used to receive interface information sent by an interface extension device, the Ethernet interface of the interface extension device is connected to the Ethernet interface of the gateway device, and the interface information includes the interface type of the first OT interface of the interface extension device.
[0105] The creation module 602 is used to create a first virtual interface according to the interface information, the first virtual interface corresponds to the first OT interface of the interface extension device, and the interface type of the first virtual interface is the same as the interface type of the first OT interface.
[0106] The allocation module 603 is used to allocate the first virtual interface to a target virtual open system of the gateway device, so that the application program in the target virtual open system can access the first OT interface.
[0107] The sending module 604 is used to send an interface allocation completion notification to the interface extension device.
[0108] Optionally, the gateway device runs a Linux operating system, and a creation module is used to: create a Linux device node corresponding to the first OT interface according to the interface information. If the target virtual open system is a target container, an allocation module is used to: map the Linux device node to the target container.
[0109] Optionally, the gateway device runs a Windows operating system, and a creation module is used to: create a virtual device corresponding to the first OT interface according to the interface information. If the target virtual open system is a target virtual machine, then an allocation module is used to: allocate the virtual device to the target virtual machine.
[0110] Optionally, the gateway device and the interface extension device transmit information via an Ethernet frame, the Ethernet frame includes a target indication field, the target indication field is used to indicate a message type of the Ethernet frame, and the message type includes a management message or a service message.
[0111] Optionally, the interface extension device also has a second OT interface, the gateway device creates a second virtual interface corresponding to the second OT interface, and the target indication field is also used to indicate the OT interface in the interface extension device for transmitting Ethernet frames.
[0112] Optionally, the target indication field includes a first indication field and a second indication field, the first indication field is used to indicate the message type of the Ethernet frame, and the second indication field is used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
[0113] Optionally, the target indication field is a label protocol identification field.
[0114] Optionally, the interface allocation completion notification includes a value of a target indication field allocated to the first OT interface.
[0115] Optionally, the Ethernet frame also includes a TCI field, and the TCI field is used to indicate the message length of the Ethernet frame.
[0116] Optionally, the sending module 604 is further configured to send interface parameters to the interface expansion device, where the interface parameters include one or more of a baud rate, a data bit, a stop bit, and a check bit of the first OT interface.
[0117] Optionally, the device 60 further includes an enabling and disabling control module, which is used to control whether the device 60 enables the interface management method provided in the embodiment of the present application. When enabled, the device 60 executes the following steps: Figure 3 The interface management method shown in FIG. 1 is to allocate resources to the OT interface on the interface expansion device. When disabled, the device 60 does not perform the following steps: Figure 3 In the interface management method shown, the Ethernet interface of the gateway device is used for ordinary layer 2 and layer 3 communication.
[0118] For details not included here, please refer to Figure 3 Detailed description of the interface management method shown.
[0119] To summarize, in the interface management device provided in the embodiment of the present application, the gateway device creates a virtual interface of the same interface type as the OT interface on the interface expansion device in the gateway device through a creation module, and the gateway device allocates resources to the virtual interface so that the virtual open system allocated with the virtual interface can access the corresponding OT interface, thereby realizing resource allocation for the OT interface on the interface expansion device, improving the flexibility of the virtual open system in the gateway device to access the OT interface, and thereby reducing the application limitations of the interface expansion device.
[0120] Figure 7 is a schematic diagram of the structure of another interface management device provided in an embodiment of the present application. The device can be applied to Figure 1 The interface expansion device 102 in the interface management system shown in FIG. Figure 7 As shown, the device 70 includes:
[0121] The sending module 701 is used to send interface information to the gateway device. The Ethernet interface of the interface extension device is connected to the Ethernet interface of the gateway device. The interface information includes the interface type of the first OT interface of the interface extension device, so that the gateway device creates a first virtual interface according to the interface information. The first virtual interface corresponds to the first OT interface of the interface extension device, and the interface type of the first virtual interface is the same as the interface type of the first OT interface.
[0122] The receiving module 702 is used to receive an interface allocation completion notification sent by the gateway device, where the interface allocation completion notification is used to indicate to the interface extension device that the gateway device has completed the allocation of the virtual interface corresponding to the OT interface in the interface information.
[0123] Optionally, the gateway device and the interface extension device transmit information via an Ethernet frame, the Ethernet frame includes a target indication field, the target indication field is used to indicate a message type of the Ethernet frame, and the message type includes a management message or a service message.
[0124] Optionally, the interface extension device also has a second OT interface, the gateway device creates a second virtual interface corresponding to the second OT interface, and the target indication field is also used to indicate the OT interface in the interface extension device for transmitting Ethernet frames.
[0125] Optionally, the target indication field includes a first indication field and a second indication field, the first indication field is used to indicate the message type of the Ethernet frame, and the second indication field is used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
[0126] Optionally, the target indication field is a label protocol identification field.
[0127] Optionally, the interface allocation completion notification includes a value of a target indication field allocated to the first OT interface.
[0128] Optionally, the Ethernet frame also includes a TCI field, and the TCI field is used to indicate the message length of the Ethernet frame.
[0129] For details not included here, please refer to Figure 3 Detailed description of the interface management method shown.
[0130] To summarize, in the interface management device provided in the embodiment of the present application, the interface expansion device sends interface information to the gateway device through the sending module box, and the gateway device creates a virtual interface with the same interface type as the OT interface on the interface expansion device in the gateway device according to the interface information. The gateway device allocates resources to the virtual interface so that the virtual open system allocated with the virtual interface can access the corresponding OT interface, thereby realizing resource allocation for the OT interface on the interface expansion device, improving the flexibility of the virtual open system in the gateway device to access the OT interface, and thereby reducing the application limitations of the interface expansion device.
[0131] Figure 8 is a block diagram of a gateway device provided in an embodiment of the present application. Figure 8 As shown, the gateway device 80 includes: a processor 801 , a memory 802 , a communication bus 803 and a communication interface 804 .
[0132] The processor 801, the memory 802, and the communication interface 804 are interconnected via a communication bus 803; the communication bus 803 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, and a control bus. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0133] The processor 801 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.
[0134] The processor 801 may also include a hardware chip. The hardware chip may be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0135] Optionally, the memory 802 may be used to store a computer program, the computer program including program instructions. The processor 801 is used to call the computer program to implement the following Figure 3 Steps executed by the gateway device in the interface management method shown.
[0136] The memory 802 may include a volatile memory (English: volatile memory), such as a random access memory (RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (HDD) or a solid-state drive (SSD); the memory 802 may also include a combination of the above types of memory.
[0137] There may be multiple communication interfaces 804, and the communication interfaces 804 are used to communicate with other devices, such as communicating with interface expansion devices. The communication interfaces 804 include wired communication interfaces, and the wired communication interfaces include Ethernet interfaces. The Ethernet interfaces may be optical interfaces, electrical interfaces, or a combination thereof. The communication interfaces 804 may also include wireless communication interfaces, and the wireless communication interfaces may be wireless local area network (WLAN) interfaces, RF interfaces, ZigBee interfaces, cellular network communication interfaces, or a combination thereof.
[0138] Fig. 9 is a block diagram of an interface expansion device provided in an embodiment of the present application. Fig. 9 As shown, the interface expansion device 90 includes: a processor 901 , a memory 902 , a communication bus 903 and a communication interface 904 .
[0139] The processor 901, the memory 902, and the communication interface 904 are interconnected via a communication bus 903; the communication bus 903 may be a PCI bus or an EISA bus, etc. The communication bus may be divided into an address bus, a data bus, and a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0140] The processor 1101 may be a CPU, a NP, or a combination of a CPU and a NP.
[0141] The processor 901 may further include a hardware chip. The hardware chip may be an ASIC, a PLD or a combination thereof. The PLD may be a CPLD, an FPGA, a GAL or any combination thereof.
[0142] Optionally, the memory 902 may be used to store a computer program, wherein the computer program includes program instructions. The processor 901 executes the computer program stored in the memory 902 to implement the following Figure 3 The steps performed by the interface extension device in the interface management method shown.
[0143] The memory 902 may include a volatile memory, such as a RAM; the memory may also include a non-volatile memory, such as a flash memory, a HDD or a SSD; the memory 902 may also include a combination of the above types of memory.
[0144] There may be multiple communication interfaces 904, and the communication interface 904 is used to communicate with other devices, such as communicating with a gateway device. The communication interface 904 includes a wired communication interface, and the wired communication interface includes an Ethernet interface. The Ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wired communication interface also includes one or more OT interfaces, and the OT interface may be an RS232 interface, an RS485 interface, a CAN interface, a DI interface, and a DO interface, etc. The communication interface 904 may also include a wireless communication interface, which may be a WLAN interface, an RF interface, a ZigBee interface, a cellular network communication interface, or a combination thereof, etc.
[0145] An embodiment of the present application further provides an interface management system, which includes a gateway device and an interface extension device, wherein the Ethernet interface of the gateway device is connected to the Ethernet interface of the interface extension device.
[0146] The gateway devices include: Figure 6 The interface management device shown, the interface expansion device includes the interface management device shown in 7.
[0147] The embodiment of the present application further provides a computer storage medium, wherein instructions are stored on the computer storage medium, and when the instructions are executed by a processor of a gateway device, the following is implemented: Figure 3 Steps executed by the gateway device in the interface management method shown.
[0148] The embodiment of the present application also provides another computer storage medium, wherein instructions are stored on the computer storage medium. When the instructions are executed by the processor of the interface expansion device, the following is implemented: Figure 3 The steps performed by the interface extension device in the interface management method shown.
[0149] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0150] In the embodiments of the present application, the terms "first", "second" and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. The term "at least one" means one or more, and the term "plurality" means two or more, unless otherwise expressly defined.
[0151] The term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0152] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concept and principle of the present application shall be included in the protection scope of the present application.
Claims
1. An interface management method, characterized in that: The method comprises: The gateway device receives the interface information sent by the interface extension device, the Ethernet interface of the interface extension device is connected to the Ethernet interface of the gateway device, and the interface information includes the interface type of the first operation technology OT interface of the interface extension device; The gateway device creates a first virtual interface according to the interface information, where the first virtual interface corresponds to the first OT interface of the interface extension device, and the interface type of the first virtual interface is the same as the interface type of the first OT interface; The gateway device allocates the first virtual interface to a target virtual open system of the gateway device, so that an application in the target virtual open system can access the first OT interface; The gateway device sends an interface allocation completion notification to the interface extension device.
2. The method according to claim 1, characterized in that The gateway device runs a Linux operating system, and the gateway device creates a first virtual interface according to the interface information, including: The gateway device creates a Linux device node corresponding to the first OT interface according to the interface information; The target virtual open system is a target container, and the gateway device allocates the first virtual interface to the target virtual open system of the gateway device, including: The gateway device maps the Linux device node to the target container.
3. The method according to claim 1, characterized in that The gateway device runs a Windows operating system, and the gateway device creates a first virtual interface according to the interface information, including: The gateway device creates a virtual device corresponding to the first OT interface according to the interface information; The target virtual open system is a target virtual machine, and the gateway device allocates the first virtual interface to the target virtual open system of the gateway device, including: The gateway device allocates the virtual device to the target virtual machine.
4. The method according to any one of claims 1 to 3, characterized in that: The gateway device and the interface extension device transmit information via Ethernet frames, wherein the Ethernet frames include a target indication field, and the target indication field is used to indicate a message type of the Ethernet frame, wherein the message type includes a management message or a service message.
5. The method according to claim 4, characterized in that The interface extension device also has a second OT interface, the gateway device creates a second virtual interface corresponding to the second OT interface, and the target indication field is also used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
6. The method according to claim 4, characterized in that The target indication field includes a first indication field and a second indication field, the first indication field is used to indicate the message type of the Ethernet frame, and the second indication field is used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
7. The method according to claim 4, characterized in that The target indication field is a tag protocol identification field.
8. The method according to claim 4, characterized in that The interface allocation completion notification includes the value of the target indication field allocated to the first OT interface.
9. The method according to claim 4, characterized in that The Ethernet frame also includes a tag control information TCI field, and the TCI field is used to indicate the message length of the Ethernet frame.
10. The method according to any one of claims 1 to 3, characterized in that: After the gateway device sends an interface allocation completion notification to the interface extension device, the method further includes: The gateway device sends interface parameters to the interface extension device, where the interface parameters include one or more of a baud rate, a data bit, a stop bit, and a check bit of the first OT interface.
11. An interface management method, characterized in that: The method comprises: The interface extension device sends interface information to the gateway device, the Ethernet interface of the interface extension device is connected to the Ethernet interface of the gateway device, the interface information includes the interface type of the first operation technology OT interface of the interface extension device, so that the gateway device creates a first virtual interface according to the interface information, the first virtual interface corresponds to the first OT interface of the interface extension device, and the interface type of the first virtual interface is the same as the interface type of the first OT interface; The interface extension device receives an interface allocation completion notification sent by the gateway device, wherein the interface allocation completion notification is used to indicate to the interface extension device that the gateway device has completed allocating the virtual interface corresponding to the OT interface in the interface information to the target virtual open system of the gateway device.
12. The method according to claim 11, characterized in that The gateway device and the interface extension device transmit information via Ethernet frames, wherein the Ethernet frames include a target indication field, and the target indication field is used to indicate a message type of the Ethernet frame, wherein the message type includes a management message or a service message.
13. The method according to claim 12, characterized in that The interface extension device also has a second OT interface, the gateway device creates a second virtual interface corresponding to the second OT interface, and the target indication field is also used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
14. The method according to claim 12, characterized in that The target indication field includes a first indication field and a second indication field, the first indication field is used to indicate the message type of the Ethernet frame, and the second indication field is used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
15. The method according to any one of claims 12 to 14, characterized in that: The target indication field is a tag protocol identification field.
16. The method according to any one of claims 12 to 14, characterized in that: The interface allocation completion notification includes the value of the target indication field allocated to the first OT interface.
17. The method according to any one of claims 12 to 14, characterized in that: The Ethernet frame also includes a tag control information TCI field, and the TCI field is used to indicate the message length of the Ethernet frame.
18. An interface management device, characterized in that: For a gateway device, the device comprises: A receiving module, configured to receive interface information sent by an interface extension device, wherein the Ethernet interface of the interface extension device is connected to the Ethernet interface of the gateway device, and the interface information includes an interface type of a first operation technology OT interface of the interface extension device; A creation module, used to create a first virtual interface according to the interface information, wherein the first virtual interface corresponds to the first OT interface of the interface extension device, and the interface type of the first virtual interface is the same as the interface type of the first OT interface; An allocation module, configured to allocate the first virtual interface to a target virtual open system of the gateway device, so that an application in the target virtual open system can access the first OT interface; The sending module is used to send an interface allocation completion notification to the interface expansion device.
19. The device according to claim 18, characterized in that The gateway device runs a Linux operating system, and the creation module is used to: Create a Linux device node corresponding to the first OT interface according to the interface information; The target virtual open system is a target container, and the allocation module is used to: Map the Linux device node to the target container.
20. The device according to claim 18, characterized in that The gateway device runs a Windows operating system, and the creation module is used to: Creating a virtual device corresponding to the first OT interface according to the interface information; The target virtual open system is a target virtual machine, and the allocation module is used to: The virtual device is assigned to the target virtual machine.
21. The device according to any one of claims 18 to 20, characterized in that The gateway device and the interface extension device transmit information via Ethernet frames, wherein the Ethernet frames include a target indication field, and the target indication field is used to indicate a message type of the Ethernet frame, wherein the message type includes a management message or a service message.
22. The device according to claim 21, characterized in that The interface extension device also has a second OT interface, the gateway device creates a second virtual interface corresponding to the second OT interface, and the target indication field is also used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
23. The device according to claim 21, characterized in that The target indication field includes a first indication field and a second indication field, the first indication field is used to indicate the message type of the Ethernet frame, and the second indication field is used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
24. An interface management device, characterized in that: For an interface expansion device, the device comprises: a sending module, configured to send interface information to a gateway device, wherein the Ethernet interface of the interface extension device is connected to the Ethernet interface of the gateway device, and the interface information includes an interface type of a first operation technology OT interface of the interface extension device, so that the gateway device creates a first virtual interface according to the interface information, wherein the first virtual interface corresponds to the first OT interface of the interface extension device, and the interface type of the first virtual interface is the same as the interface type of the first OT interface; The receiving module is used to receive the interface allocation completion notification sent by the gateway device, and the interface allocation completion notification is used to indicate to the interface extension device that the gateway device has completed allocating the virtual interface corresponding to the OT interface in the interface information to the target virtual open system of the gateway device.
25. The device according to claim 24, characterized in that The gateway device and the interface extension device transmit information via Ethernet frames, wherein the Ethernet frames include a target indication field, and the target indication field is used to indicate a message type of the Ethernet frame, wherein the message type includes a management message or a service message.
26. The device according to claim 25, characterized in that The interface extension device also has a second OT interface, the gateway device creates a second virtual interface corresponding to the second OT interface, and the target indication field is also used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
27. The device according to claim 25, characterized in that The target indication field includes a first indication field and a second indication field, the first indication field is used to indicate the message type of the Ethernet frame, and the second indication field is used to indicate the OT interface in the interface extension device for transmitting the Ethernet frame.
28. An interface management system, characterized in that: The interface management system comprises a gateway device and an interface extension device, wherein the Ethernet interface of the gateway device is connected to the Ethernet interface of the interface extension device; The gateway device comprises the interface management device as described in any one of claims 18 to 23, and the interface expansion device comprises the interface management device as described in any one of claims 24 to 27.
29. A computer storage medium, characterized in that The computer storage medium stores instructions, and when the instructions are executed by the processor of the gateway device, the interface management method according to any one of claims 1 to 10 is implemented.
30. A computer storage medium, characterized in that The computer storage medium stores instructions, and when the instructions are executed by the processor of the interface expansion device, the interface management method according to any one of claims 11 to 17 is implemented.
