A data transmission method, apparatus, system and communication device
By transmitting the equipment's online information and receiving management IP addresses through FlexE, MTN or SPN overhead frames, the manual intervention needs during the device's access to DCN are solved, and the equipment's automated online and simplified process is realized.
Patent Information
- Application Number
- CN202110450007.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-25
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2041-04-25
AI Technical Summary
In the prior art, the equipment is launched in a complex process, requiring manual intervention to determine the location and configure the IP address, resulting in the cumbersome process of accessing the equipment to the Data Communication Network (DCN) and lack of automated solutions.
The message is sent to the second device through FlexE, MTN or SPN overhead frames, including the DCN channel identification and device online related information, and receive the management IP address assigned by the third device to realize automatic access to the DCN.
The automated online process of the equipment is realized, the process of connecting the equipment to the DCN is simplified, manual intervention is reduced, and efficiency is improved.
Smart Images

Figure CN115334042B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a data transmission method, device, system and communication equipment. Background Art
[0002] With the advancement of transmission network technology, the number of Packet Transport Network (PTN) devices has reached 2 million, with over 100,000 miniaturized access devices deployed annually. Slicing Packet Network (SPN) networks are also entering large-scale commercial use in the 5G era. However, the initial installation and configuration of these devices is a critical factor hindering the development of existing network services.
[0003] Currently, most equipment is initially installed on-site, typically requiring application, communication, and confirmation with the installation department. On the transmission equipment side, after installation, manual login is required to determine the station address or location of the online equipment. Furthermore, the Internet Protocol (IP) address must be manually configured before the equipment can be connected to the Data Communication Network (DCN). This makes the equipment online process complex. Currently, there is no effective solution for automated equipment online. Summary of the Invention
[0004] To solve existing technical problems, embodiments of the present invention provide a data transmission method, apparatus, system, and communication equipment.
[0005] To achieve the above-mentioned purpose, the technical solution of the embodiment of the present invention is implemented as follows:
[0006] In a first aspect, an embodiment of the present invention provides a data transmission method, the method comprising:
[0007] The first device sends a first message to the second device through a Flexible Ethernet (FlexE), Metro Transport Network (MTN), or SPN overhead frame; the first message includes a DCN channel identifier and relevant information for the device to go online;
[0008] The first device receives a third message from a third device through the second device, where the third message includes a management IP address allocated by the third device to the first device;
[0009] The first device accesses a data communication network based on the management IP address.
[0010] In the above scheme, the relevant information used for the device to go online includes at least one of the following: the device's Media Access Control (MAC) address, system name, system description information, Internet Protocol Version 6 (IPv6) management address, and Internet Protocol Version 4 (IPv4) management address.
[0011] In the above solution, the first message is transmitted through the first channel in the FlexE overhead frame of the FlexE port, the MTN overhead frame of the MTN port, or the SPN overhead frame of the SPN port.
[0012] In the above solution, the first message is transmitted through the 4th code block and the 5th code block in the overhead frame.
[0013] In the above solution, after the first device accesses the data communication network, the method further includes:
[0014] The first device receives an instruction from the third device, and switches to the second channel to transmit the DCN message based on the instruction.
[0015] In the above solution, before the first device receives the instruction from the third device, the method further includes: the first device sending a confirmation message related to the second channel to the third device.
[0016] In the above solution, the method further includes: when the first device detects that the second channel is invalid or deleted, switching to the first channel to transmit the DCN message.
[0017] In a second aspect, an embodiment of the present invention further provides a data transmission method, the method comprising:
[0018] The second device receives a first message from the first device; the first message is carried by a FlexE, MTN, or SPN overhead frame; the first message includes a DCN channel identifier and relevant information for the device to go online;
[0019] The second device generates a second message based on the identification information of the second device, the relevant information for the device to go online, and the neighbor information related to the first device, and sends the second message to the third device;
[0020] The second device receives a third message from the third device and forwards the third message to the first device. The third message includes a management IP address allocated by the third device to the first device. The management IP address is used by the first device to access a data communication network.
[0021] In the above solution, the first message is transmitted through the first channel in the FlexE overhead frame of the FlexE port, the MTN overhead frame of the MTN port, or the SPN overhead frame of the SPN port.
[0022] In the above solution, the method further includes: the second device determining whether the first device is a registered neighbor node; if the first device is a registered neighbor node, obtaining neighbor information related to the first device.
[0023] In the above solution, the method further includes: if the first device is an unregistered neighbor node, allocating a neighbor identifier to the first device, and generating neighbor information related to the first device;
[0024] The neighbor information includes at least one of the following: the port index of the second device, the index of the first device, the first device identifier, the connection port identifier of the first device, the IP address of the first device, the IPv6 management address of the first device, the IPv4 management address of the first device, the system name of the first device, and the system description information of the first device.
[0025] In the above solution, the relevant information used for the device to go online includes at least one of the following: the device's MAC address, system name, system description information, IPv6 management address, and IPv4 management address.
[0026] In a third aspect, an embodiment of the present invention further provides a data transmission method, the method comprising:
[0027] The third device receives a second message from the second device, where the second message includes: identification information of the second device, relevant information for the first device to go online, and neighbor information related to the first device;
[0028] The third device allocates a management IP address to the first device, and sends a third message including the management IP address to the first device through the second device. The management IP address is used for the first device to access a data communication network.
[0029] In the above solution, the third device assigns a management IP address to the first device, including:
[0030] The third device determines the area range to which the second device belongs according to the identification information of the second device, and allocates a management IP address to the first device from a corresponding management IP address set according to the area range.
[0031] In the above solution, the relevant information used for the device to go online includes at least one of the following: the device's MAC address, system name, system description information, IPv6 management address, and IPv4 management address.
[0032] In the above scheme, the neighbor information related to the first device includes at least one of the following: the port index of the second device, the index of the first device, the first device identifier, the connection port identifier of the first device, the IP address of the first device, the IPv6 management address of the first device, the IPv4 management address of the first device, the system name of the first device, and the system description information of the first device.
[0033] In the above solution, the method further includes: the third device receiving a confirmation message related to the second channel from the first device; and sending an instruction to the first device based on the confirmation message, wherein the instruction is used by the first device to switch the first channel to transmit the DCN message.
[0034] In a fourth aspect, an embodiment of the present invention further provides a data transmission device, comprising: a first communication unit and an access unit; wherein,
[0035] The first communication unit is configured to send a first message to the second device via a FlexE, MTN, or SPN overhead frame; the first message includes a DCN channel identifier and relevant information for the device to go online; and is further configured to receive a third message from a third device via the second device, the third message including a management IP address allocated by the third device to the first device.
[0036] The access unit is used to access the data communication network based on the management IP address.
[0037] In a fifth aspect, an embodiment of the present invention further provides a data transmission device, comprising: a second communication unit, a first processing unit, and a third communication unit; wherein,
[0038] The second communication unit is configured to receive a first message from the first device; the first message is carried by a FlexE, MTN, or SPN overhead frame; the first message includes a DCN channel identifier and relevant information for the device to go online;
[0039] The first processing unit is configured to generate a second message based on the identification information of the second device, the relevant information for the device to go online, and the neighbor information related to the first device;
[0040] The third communication unit is configured to send a second message to the third device; and further configured to receive a third message from the third device, wherein the third message includes a management IP address allocated by the third device to the first device, and the management IP address is used by the first device to access a data communication network;
[0041] The second communication unit is further configured to forward the third message to the first device.
[0042] In a sixth aspect, an embodiment of the present invention further provides a data transmission device, comprising: a fourth communication unit and a distribution unit; wherein,
[0043] The fourth communication unit is configured to receive a second message from a second device, where the second message includes: identification information of the second device, relevant information corresponding to the first device for the device to go online, and neighbor information related to the first device;
[0044] The allocation unit is configured to allocate a management IP address to the first device; the management IP address is used by the first device to access a data communication network;
[0045] The fourth communication unit is further configured to send a third message including the management IP address to the first device through the second device.
[0046] In the seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method described in the first aspect, second aspect or third aspect of the embodiment of the present invention are implemented.
[0047] In the eighth aspect, an embodiment of the present invention further provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the steps of the method described in the first aspect, second aspect, or third aspect of the embodiment of the present invention are implemented.
[0048] The data transmission method, apparatus, system and communication equipment provided by the embodiments of the present invention include: a first device sends a first message to a second device via a FlexE, MTN or SPN overhead frame; the first message includes a DCN channel identifier and relevant information for the device to go online; a third message is received from a third device via the second device, the third message includes a management IP address assigned by the third device to the first device; and a data communication network is accessed based on the management IP address. Using the technical solution of the embodiments of the present invention, the first device transmits relevant information for the device to go online via a FlexE, MTN or SPN overhead frame, and transmits it to a third device (i.e., a control system) via a second device. The third device (i.e., the control system) assigns a management IP address to the first device, and transmits the assigned management IP address to the first device via the second device. The first device can access the data communication network (DCN) based on the management IP address, thereby realizing that the first device automatically obtains the management IP address and automatically accesses the data communication network (DCN) based on the management IP address. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1a and Figure 1b A schematic diagram of a system architecture for a data transmission method according to an embodiment of the present invention;
[0050] Figure 2 1 is a flow chart of a data transmission method according to an embodiment of the present invention;
[0051] Figure 3 Schematic diagram of the data transmission method according to an embodiment of the present invention Figure 2 ;
[0052] Figure 4 Schematic diagram of the data transmission method according to an embodiment of the present invention Figure 3 ;
[0053] Figure 5 This is an example diagram of a management IP address in a data transmission method according to an embodiment of the present invention;
[0054] Figure 6 Schematic diagram 1 of the structure of a data processing device according to an embodiment of the present invention;
[0055] Figure 7 Schematic diagram of the structure of the data processing device according to an embodiment of the present invention Figure 2 ;
[0056] Figure 8 Schematic diagram of the structure of the data processing device according to an embodiment of the present invention Figure 3 ;
[0057] Figure 9 Schematic diagram of the hardware structure of a communication device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0059] Figure 1a and Figure 1b Schematic diagram of the system architecture of the data transmission method according to the embodiment of the present invention; Figure 1a As shown, the network may include a management and control system, access devices, one or more online devices, and one or more devices to be online. Access devices can be connected to the management and control system via a DCN (or an external DCN). Both online devices and devices to be online are access devices in the network. The difference is that online devices are configured with IP addresses and connected to the DCN, while devices to be online are not configured with IP addresses and are not connected to the DCN. The management and control system is the device that can assign IP addresses to access devices.
[0060] Further integration Figure 1b As shown, in this embodiment and the following embodiments, the first device is also referred to as a device to be put online, and the second device is also referred to as an online device. The first device and the second device can also be referred to as access devices, or as access devices to be put online or online access devices, respectively. The third device is also referred to as a management and control system, or can also be referred to as a management and control device or a control device, etc.
[0061] The following embodiments of the present invention are proposed based at least on the above system architecture.
[0062] An embodiment of the present invention provides a data transmission method, which is applied to a first device. Figure 2 FIG1 is a flow chart of a data transmission method according to an embodiment of the present invention; FIG2 is a flow chart of a data transmission method according to an embodiment of the present invention; Figure 2 As shown, the method includes:
[0063] Step 101: A first device sends a first message to a second device via a FlexE, MTN, or SPN overhead frame; the first message includes a DCN channel identifier and related information for the device to go online;
[0064] Step 102: The first device receives a third message from a third device through the second device, where the third message includes a management IP address allocated by the third device to the first device.
[0065] Step 103: The first device accesses the data communication network based on the management IP address.
[0066] In this embodiment, the first device transmits relevant information for the device to go online through FlexE, MTN or SPN overhead frames, and transmits it to the third device (i.e., the management and control system) through the second device (the second device has the ability to process and forward messages to the third device and act as an agent). The third device (i.e., the management and control system) assigns a management IP address to the first device, and transmits the assigned management IP address to the first device through the second device. The first device can access the data communication network (DCN) based on the management IP address, thereby enabling the first device to automatically obtain the management IP address and automatically access the data communication network (DCN) based on the management IP address.
[0067] In this embodiment, the first message is marked with a DCN channel identifier. Exemplarily, the DCN channel identifier can be a special virtual local area network (VLAN) identifier, etc., to distinguish it from ordinary business messages. The relevant information for the device to go online included in the first message includes the information required for the device to go online automatically. Exemplarily, the relevant information for the device to go online includes at least one of the following: the device's MAC address, system name, system description information, IPv6 management address, and IPv4 management address. The relevant information for the device to go online can also include a device identifier, device information, routing information, etc. Among them, the device information and routing information can be generated through Link Layer Discovery Protocol (LLDP) information or Open Shortest Path First (OSPF) protocol, etc.
[0068] In some optional embodiments of the present invention, the first message is transmitted through a first channel in a FlexE overhead frame of a FlexE port, an MTN overhead frame of an MTN port, or an SPN overhead frame of an SPN port.
[0069] In this embodiment, the first device encodes the message into a 64-bit or 66-bit (64 / 66B) code block format and transmits it through the first channel of the FlexE overhead frame of the FlexE port, the MTN overhead frame of the MTN port, or the SPN overhead frame of the SPN port. Exemplarily, after the message is 64 / 66B encoded, it is inserted into the first channel of the FlexE overhead frame of the FlexE port, the MTN overhead frame of the MTN port, or the SPN overhead frame of the SPN port for transmission. Optionally, the first message is transmitted through the 4th code block and the 5th code block in the overhead frame. Exemplarily, taking the MTN overhead frame as an example, the first device can directly use the first channel of the section layer in the MTN overhead frame for transmission. Exemplarily, an MTN overhead frame includes 8 64 / 66bit blocks, and an MTN overhead frame is inserted every 1023 MTN blocks. The above-mentioned first message is transmitted through the 4th 64 / 66B code block and the 5th 64 / 66B code block in the MTN overhead frame.
[0070] For example, using MTN as an example, the first device can transmit DCN messages via the MTN overhead or MTN client. When the first device first accesses the network (i.e., the device is not online), the message is transmitted via the MTN overhead (i.e., the first channel). After the first device accesses the network (i.e., the device is online), the message can be transmitted via the MTN client or MTN overhead.
[0071] In this embodiment, the second device is an online device capable of processing and forwarding messages to a third device, and transmits the first message to the third device. The third device is a management and control system capable of assigning a management IP address to the first device and transmitting the management IP address to the first device via the second device via a third message. The first device can modify its IP address to the management IP address and access the data communication network based on the management IP address.
[0072] In some optional embodiments of the present invention, after the first device accesses the data communication network, the method further includes: the first device receiving an instruction from the third device, and switching the second channel to transmit the DCN message based on the instruction.
[0073] In this embodiment, after the first device accesses the data communication network (i.e., after the first device goes online), it can switch to the second channel for DCN message transmission based on an instruction from a third device. This means that DCN message transmission can be switched from the MTN overhead to the MTN client (MTN client). For example, the third device can be capable of detecting whether the first device has a client (e.g., an MTN client), that is, detecting whether the first device has been configured as a client (e.g., an MTN client). If the third device detects that the first device has a client (e.g., an MTN client), i.e., the first device has been configured as a client (e.g., an MTN client), the third device can send an instruction to the first device, and the first device, based on the instruction, switches to the second channel for DCN message transmission.
[0074] Exemplarily, the DCN message of this embodiment may include a DCN channel identifier, a protocol (such as Path Computation Element Protocol (PCEP), Link Layer Discovery Protocol (LLDP), Open Shortest Path First (OSPF) protocol, Telemetry protocol, etc.), a Netconf protocol configuration management interface, network element performance, alarms, and the like.
[0075] In some optional embodiments of the present invention, before the first device receives the instruction from the third device, the method further includes: the first device sending a confirmation message related to the second channel to the third device.
[0076] In this embodiment, if the first device has a client (such as an MTN client) or is configured as a client (such as an MTN client), it can send a confirmation message to the third device; the third device can send an instruction for switching channels to the first device based on the confirmation message.
[0077] In some optional embodiments of the present invention, the method further includes: when the first device detects that the second channel is invalid or deleted, switching to the first channel to transmit the DCN message.
[0078] In this embodiment, illustratively, when the first device detects that the transmission channel (i.e., the second channel) of the MTN client is deleted or invalid, the first device can automatically switch to the first channel (e.g., the MTN overhead) to transmit the DCN message based on locally generated notification information, such as a loss of signal (LOS) alarm or a performance degradation alarm.
[0079] Based on the above embodiment, an embodiment of the present invention further provides a data transmission method, which is applied to a second device. Figure 3 Schematic diagram of the data transmission method according to an embodiment of the present invention Figure 2 ;like Figure 3 As shown, the method includes:
[0080] Step 201: A second device receives a first message from a first device; the first message is carried via a FlexE, MTN, or SPN overhead frame; the first message includes a DCN channel identifier and related information for the device to go online;
[0081] Step 202: The second device generates a second message based on the identification information of the second device, the relevant information for the device to go online, and the neighbor information related to the first device, and sends the second message to the third device;
[0082] Step 203: The second device receives the third message from the third device and forwards the third message to the first device. The third message includes the management IP address allocated by the third device to the first device, and the management IP address is used by the first device to access the data communication network.
[0083] In this embodiment, the second device is an online device. If the second device is the first access device in the data communication network, it can be connected to the data communication network by manually configuring a management IP address.
[0084] In this embodiment, the first message is marked with a DCN channel identifier. Exemplarily, the DCN channel identifier can be a VLAN identifier, etc., to distinguish it from ordinary service messages. The relevant information included in the first message for device online includes information required for the device to automatically go online. Exemplarily, the relevant information for device online includes at least one of the following: the device's Media Access Control (MAC) address, system name, system description information, IPv6 management address, and IPv4 management address. The relevant information for device online can also include a device identifier, device information, routing information, etc. The device information and routing information can be generated using LLDP information or the OSPF protocol.
[0085] In this embodiment, the first message is transmitted through a first channel in a FlexE overhead frame of a FlexE port, an MTN overhead frame of an MTN port, or an SPN overhead frame of an SPN port.
[0086] In this embodiment, the second device is similar to the first device and can also transmit DCN messages via an MTN overhead or MTN client. The second device is an online device and can send a second message to a third device via a second channel (e.g., an MTN client). The second channel is identified by a DCN channel identifier; exemplarily, the DCN channel identifier can be a special virtual local area network (VLAN) identifier to distinguish it from ordinary service messages.
[0087] In some optional embodiments of the present invention, the method further includes: the second device determining whether the first device is a registered neighbor node; if the first device is a registered neighbor node, obtaining neighbor information related to the first device.
[0088] In this embodiment, the second device may extract and decode the first message and then locally check whether it is a registered neighbor node. For example, the second device may search for locally stored neighbor information corresponding to the MAC address carried in the first message. If the locally stored neighbor information corresponding to the MAC address is present, it indicates that the first device is a registered neighbor node, and the second device obtains the neighbor information related to the first device. Conversely, if the locally stored neighbor information corresponding to the MAC address is not present, it indicates that the first device is an unregistered neighbor node.
[0089] In some optional embodiments of the present invention, the method further includes: if the first device is an unregistered neighbor node, assigning a neighbor identifier to the first device, and generating neighbor information related to the first device; wherein the neighbor information includes at least one of the following: the port index of the second device, the index of the first device, the first device identifier, the connection port identifier of the first device, the IP address of the first device, the IPv6 management address of the first device, the IPv4 management address of the first device, the system name of the first device, and the system description information of the first device.
[0090] In this embodiment, the second device generates a second message based on the second device's identification information, the relevant information for the device online, and the neighbor information related to the first device. Exemplarily, the second device's identification information may include information such as the second device's IP address and port identifier. Exemplarily, the second message may include two parts: a first part containing the content of the first message, such as the content shown in Table 1, and a second part containing the neighbor information, such as the content shown in Table 2.
[0091] Table 1
[0092] Message attribute name Data Type Message content chassis-id IETF MAC MAC address of the newly online NE system-name String Retention Definition system-description String Retention Definition management-address-ipv6 IETF IPv6 Newly added network element management IPv6 address management-address-ipv4 IETF IPv4 Newly added NE management IPv4 address
[0093] Table 2
[0094]
[0095]
[0096] In the above Table 2, "this end" refers to the second device, and "opposite end" refers to the opposite end relative to the second device. In this embodiment of the present invention, the "opposite end" is the first device.
[0097] In Table 2 above, the IPv6 management address (management-address-ipv6) and IPv4 management address (management-address-ipv4) are initial addresses before the device goes online. The initial addresses can be generated based on the device's MAC address.
[0098] For example, taking the generation of IPv6 management address from MAC address as an example, the IPv6 management address has a total of 128 bits. The first 64 bits can be filled with 0, and the last 64 bits can be mapped according to the MAC address. For example, the first 48 bits of the last 64 bits are mapped to the MAC address, and the last 16 bits of the last 64 bits are filled with 1.
[0099] In this embodiment, after the third device assigns a management IP address to the first device, the second device receives a third message from the third device. The second device also has a proxy function, including but not limited to Telnet, Transmission Control Protocol (TCP) Layer 4 channel, and NetconfClient. Exemplarily, the second device establishes a temporary channel between the third device and the first device via a local TCP port and maps the operating port of the Netconf server on the first device to the local server on the third device. The third device communicates with the remote Netconf server on the first device by accessing the locally mapped port, thereby sending the management IP address to the first device.
[0100] Based on the above embodiment, an embodiment of the present invention further provides a data transmission method, which is applied to a third device. Figure 4 Schematic diagram of the data transmission method according to an embodiment of the present invention Figure 3 ;like Figure 4 As shown, the method includes:
[0101] Step 301: A third device receives a second message from a second device, where the second message includes: identification information of the second device, relevant information for the first device to go online, and neighbor information related to the first device;
[0102] Step 302: The third device allocates a management IP address to the first device, and sends a third message including the management IP address to the first device through the second device. The management IP address is used for the first device to access a data communication network.
[0103] In this embodiment, the third device is a management and control system, or may also be referred to as a management and control device, a control device, etc. After receiving the second message, the third device creates a new network element for the first device and allocates a management IP address to the first device according to the address planning rules. Exemplarily, the third device extracts the identification information of the second device carried in the second message (such as an IP address, a port identifier, etc.) to query the geographical location of the second device and allocates a management IP address to the first device based on the geographical location. The second message is marked with a DCN channel identifier. Exemplarily, the DCN channel identifier may be a VLAN identifier, etc., to distinguish it from ordinary service messages.
[0104] Exemplarily, the relevant information for the device to go online includes at least one of the following: the device's media access control MAC address, system name, system description information, IPv6 management address, and IPv4 management address.
[0105] Exemplarily, the neighbor information related to the first device includes at least one of the following: the port index of the second device, the index of the first device, the first device identifier, the connection port identifier of the first device, the IP address of the first device, the IPv6 management address of the first device, the IPv4 management address of the first device, the system name of the first device, and the system description information of the first device.
[0106] In some optional embodiments of the present invention, the third device assigns a management IP address to the first device, including: the third device determines the area range to which the second device belongs based on the identification information of the second device, and assigns a management IP address to the first device from the corresponding management IP address set based on the area range.
[0107] In this embodiment, the third device pre-configures and manages the IP address set according to the regional scope. Figure 5 This is an example diagram of the management IP address in an embodiment of the present invention, such as Figure 5As shown, the management IP address includes 4 / 8 bits representing the region or network level identifier, which corresponds to the corresponding regional range. The third device then queries the geographic location of the second device according to the identification information of the second device (such as the IP address, port identifier, etc. of the second device), determines the set of management IP addresses in the corresponding regional range based on the geographic location, and selects a management IP address from the set of management IP addresses as the management IP address allocated to the first device. The third message containing the management IP address is further sent to the first device via the second device.
[0108] Specifically, the third device receives an online notification (i.e., a second message) from a newly online network element (i.e., the first device), obtains the default network element IP address (automatically generated by default) of the newly online network element, and the network element IP address of the neighboring network element (i.e., the second device). If the neighboring network element does not have the port forwarding function enabled, the third device sends a command to the neighboring network element to enable port forwarding. The third device applies for an independent available TCP port (e.g., PortL) for each newly online network element. The third device performs local configuration, establishes an SSH tunnel from the local PortL to the neighboring network element, and implements an SSH port forwarding channel from the local PortL to the newly online network element PortR (Server port 830 defined by Netconf). The third device establishes a Netconf session with the newly online network element by accessing localhost:PortL, and completes the modification of the network element IP address as planned. The third device performs local configuration, releases the used TCP port, and dismantles the SSH port forwarding channel to the newly online network element. If the third device determines that there is no SSH tunnel passing through the neighboring network element, it sends a command to the neighboring network element to disable the port forwarding function.
[0109] In some optional embodiments of the present invention, the method further includes: the third device receiving a confirmation message related to the second channel from the first device; and sending an instruction to the first device based on the confirmation message, wherein the instruction is used by the first device to switch the first channel to transmit the DCN message.
[0110] In this embodiment, if the first device has a client (such as an MTN client) or is configured as a client (such as an MTN client), it can send a confirmation message to the third device; the third device can send an instruction for switching channels to the first device based on the confirmation message.
[0111] An embodiment of the present invention also provides a data processing device. Figure 6 FIG1 is a structural diagram of a data processing device according to an embodiment of the present invention; Figure 6 As shown, the device includes: a first communication unit 11 and an access unit 12; wherein,
[0112] The first communication unit 11 is configured to send a first message to the second device via a FlexE, MTN, or SPN overhead frame; the first message includes a DCN channel identifier and relevant information for the device to go online; and is further configured to receive a third message from a third device via the second device, the third message including a management IP address allocated by the third device to the first device.
[0113] The access unit 12 is configured to access a data communication network based on the management IP address.
[0114] In some optional embodiments of the present invention, the relevant information for the device to go online includes at least one of the following: the device's MAC address, system name, system description information, IPv6 management address, and IPv4 management address.
[0115] In some optional embodiments of the present invention, the first message is transmitted through a first channel in a FlexE overhead frame of a FlexE port, an MTN overhead frame of an MTN port, or an SPN overhead frame of an SPN port.
[0116] In some optional embodiments of the present invention, the first message is transmitted via the 4th code block and the 5th code block in the overhead frame.
[0117] In some optional embodiments of the present invention, the first communication unit 11 is further configured to receive an instruction from the third device, and switch to the second channel to transmit the DCN message based on the instruction.
[0118] In some optional embodiments of the present invention, the first communication unit 11 is further configured to send a confirmation message related to the second channel to the third device before receiving an instruction from the third device.
[0119] In some optional embodiments of the present invention, the apparatus further includes a switching unit 13, configured to switch to the first channel to transmit the DCN message when detecting that the second channel is invalid or deleted.
[0120] In an embodiment of the present invention, the apparatus is applied to a first device. In actual applications, the access unit 12 and the switching unit 13 in the apparatus can be implemented by a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU), or a field-programmable gate array (FPGA); in actual applications, the first communication unit 11 in the apparatus can be implemented by a communication module (including: a basic communication kit, an operating system, a communication module, a standardized interface and protocol, etc.) and a transceiver antenna.
[0121] An embodiment of the present invention also provides a data processing device. Figure 7 Schematic diagram of the structure of the data processing device according to an embodiment of the present invention Figure 2 ;like Figure 7 As shown, the device includes: a second communication unit 21, a first processing unit 22 and a third communication unit 23; wherein,
[0122] The second communication unit 21 is configured to receive a first message from a first device; the first message is carried by a FlexE, MTN, or SPN overhead frame; the first message includes a DCN channel identifier and relevant information for the device to go online;
[0123] The first processing unit 22 is configured to generate a second message based on the identification information of the second device, the relevant information for the device to go online, and the neighbor information related to the first device;
[0124] The third communication unit 23 is configured to send a second message to the third device; and further configured to receive a third message from the third device, wherein the third message includes a management IP address allocated by the third device to the first device, and the management IP address is used by the first device to access the data communication network;
[0125] The second communication unit 21 is further configured to forward the third message to the first device.
[0126] In some optional embodiments of the present invention, the first message is transmitted through a first channel in a FlexE overhead frame of a FlexE port, an MTN overhead frame of an MTN port, or an SPN overhead frame of an SPN port.
[0127] In some optional embodiments of the present invention, the apparatus further includes a second processing unit configured to determine whether the first device is a registered neighbor node; if the first device is a registered neighbor node, obtain neighbor information related to the first device.
[0128] In some optional embodiments of the present invention, the second processing unit is further used to assign a neighbor identifier to the first device if the first device is an unregistered neighbor node, and generate neighbor information related to the first device; wherein the neighbor information includes at least one of the following: the port index of the second device, the index of the first device, the first device identifier, the connection port identifier of the first device, the IP address of the first device, the IPv6 management address of the first device, the IPv4 management address of the first device, the system name of the first device, and the system description information of the first device.
[0129] In some optional embodiments of the present invention, the relevant information for the device to go online includes at least one of the following: the device's media access control MAC address, system name, system description information, IPv6 management address, and IPv4 management address.
[0130] In an embodiment of the present invention, the apparatus is applied to a second device. In practical applications, the first processing unit 22 and the second processing unit in the apparatus can be implemented by a CPU, DSP, MCU, or FPGA. In practical applications, the second communication unit 21 and the third communication unit 23 in the apparatus can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, standardized interfaces and protocols, etc.) and a transceiver antenna.
[0131] An embodiment of the present invention also provides a data processing device. Figure 8 Schematic diagram of the structure of the data processing device according to an embodiment of the present invention Figure 3 ;like Figure 8 As shown, the device includes: a fourth communication unit 31 and a distribution unit 32; wherein,
[0132] The fourth communication unit 31 is configured to receive a second message from a second device, where the second message includes: identification information of the second device, relevant information for the first device to go online, and neighbor information related to the first device;
[0133] The allocation unit 32 is configured to allocate a management IP address to the first device; the management IP address is used by the first device to access a data communication network;
[0134] The fourth communication unit 31 is further configured to send a third message including the management IP address to the first device through the second device.
[0135] In some optional embodiments of the present invention, the allocation unit 32 is configured to determine the area range to which the second device belongs based on the identification information of the second device, and allocate a management IP address to the first device from a corresponding management IP address set based on the area range.
[0136] In some optional embodiments of the present invention, the relevant information for the device to go online includes at least one of the following: the device's MAC address, system name, system description information, IPv6 management address, and IPv4 management address.
[0137] In some optional embodiments of the present invention, the neighbor information related to the first device includes at least one of the following: the port index of the second device, the index of the first device, the first device identifier, the connection port identifier of the first device, the IP address of the first device, the IPv6 management address of the first device, the IPv4 management address of the first device, the system name of the first device, and the system description information of the first device.
[0138] In some optional embodiments of the present invention, the fourth communication unit 31 is further configured to receive a confirmation message related to the second channel from the first device; and send an instruction to the first device based on the confirmation message, wherein the instruction is configured for the first device to switch the first channel to transmit the DCN message.
[0139] In an embodiment of the present invention, the apparatus is implemented in a third device. The allocation unit 32 in the apparatus can be implemented in practice by a CPU, DSP, MCU, or FPGA. The fourth communication unit 31 in the apparatus can be implemented in practice by a communication module (including a basic communication suite, an operating system, a communication module, standardized interfaces and protocols, etc.) and a transceiver antenna.
[0140] It should be noted that the data transmission device provided in the above embodiment is only illustrated by the division of the above-mentioned program modules when performing data transmission. In actual applications, the above-mentioned processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the above-mentioned processing. In addition, the data transmission device provided in the above embodiment and the data transmission method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0141] An embodiment of the present invention further provides a communication device, which includes the first device, the second device or the third device of the aforementioned embodiment. Figure 9 FIG. 1 is a schematic diagram of the hardware structure of a communication device according to an embodiment of the present invention. Figure 9As shown, the communication device includes a memory 42, a processor 41, and a computer program stored in the memory 42 and executable on the processor 41. When the processor 41 executes the program, the steps of the data transmission method described above in the embodiment of the present invention applied to the first device, the second device, or the third device are implemented.
[0142] Optionally, the communication device further includes one or more network interfaces 43. It is understood that the various components in the communication device can be coupled together via a bus system 44. It is understood that the bus system 44 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 44 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 9 Various buses are labeled as bus system 44 .
[0143] It is understood that the memory 42 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a magnetic disk or a magnetic tape. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory 42 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0144] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 41. Processor 41 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in processor 41 or by software instructions. The above processor 41 may be a general-purpose processor, a DSP, or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. Processor 41 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium located in memory 42. Processor 41 reads the information in memory 42 and, in conjunction with its hardware, completes the steps of the above method.
[0145] In an exemplary embodiment, the communication device may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components to perform the aforementioned method.
[0146] In an exemplary embodiment, the present invention further provides a computer-readable storage medium, such as a memory 42 including a computer program. The computer program can be executed by a processor 41 of a communication device to perform the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface mount storage, optical disk, or CD-ROM; or various devices including any one or any combination of the aforementioned memories.
[0147] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the aforementioned data transmission method applied to the first device, the second device, or the third device in the embodiment of the present invention.
[0148] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0149] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0150] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0151] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0152] The units described above as separate components may or may not be physically separated, and the components displayed 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.
[0153] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0154] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, ROM, RAM, disks or optical disks, etc. Various media that can store program codes.
[0155] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0156] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A data transmission method, characterized in that: The method comprises: The first device sends a first message to the second device through a Flexible Ethernet (FlexE), a Metropolitan Transport Network (MTN), or a Sliced Packet Network (SPN) overhead frame; the first message includes a data communication network (DCN) channel identifier and relevant information for the device to go online; the first message is transmitted through a first channel; The first device receives a third message from a third device through the second device, where the third message includes a management Internet Protocol (IP) address allocated by the third device to the first device; The first device accesses the data communication network based on the management IP address; The first device receives an instruction from the third device, and switches to the second channel to transmit the DCN message based on the instruction.
2. The method according to claim 1, characterized in that The relevant information for the device to go online includes at least one of the following: the device's media access control MAC address, system name, system description information, Internet Protocol version 6 IPv6 management address, and Internet Protocol version 4 IPv4 management address.
3. The method according to claim 1, characterized in that The first message is transmitted through a first channel in a FlexE overhead frame of a FlexE port, an MTN overhead frame of an MTN port, or an SPN overhead frame of an SPN port.
4. The method according to claim 3, characterized in that The first message is transmitted through the 4th code block and the 5th code block in the overhead frame.
5. The method according to claim 1, wherein Before the first device receives the instruction from the third device, the method further includes: The first device sends a confirmation message related to the second channel to the third device.
6. The method according to claim 1, characterized in that The method further comprises: When the first device detects that the second channel is invalid or deleted, it switches to the first channel to transmit the DCN message.
7. A data transmission method, characterized in that: The method comprises: The second device receives a first message from the first device; the first message is carried by a Flexible Ethernet FlexE, a Metropolitan Transport Network MTN, or a Sliced Packet Network SPN overhead frame; the first message includes a data communication network DCN channel identifier and relevant information for the device to go online; the first message is transmitted through the first channel; The second device generates a second message based on the identification information of the second device, the relevant information for the device to go online, and the neighbor information related to the first device, and sends the second message to the third device; The second device receives the third message from the third device and forwards the third message to the first device. The third message includes the management IP address assigned by the third device to the first device. The management IP address is used by the first device to access the data communication network so that the first device can interact with the third device, and switches the second channel to transmit the DCN message based on the instruction of the third device.
8. The method according to claim 7, characterized in that The first message is transmitted through a first channel in a FlexE overhead frame of a FlexE port, an MTN overhead frame of an MTN port, or an SPN overhead frame of an SPN port.
9. The method according to claim 7, characterized in that The method further comprises: The second device determines whether the first device is a registered neighbor node; If the first device is a registered neighbor node, obtain neighbor information related to the first device.
10. The method according to claim 9, characterized in that The method further comprises: If the first device is an unregistered neighbor node, assigning a neighbor identifier to the first device and generating neighbor information related to the first device; The neighbor information includes at least one of the following: the port index of the second device, the index of the first device, the first device identifier, the connection port identifier of the first device, the IP address of the first device, the IPv6 management address of the first device, the IPv4 management address of the first device, the system name of the first device, and the system description information of the first device.
11. The method according to claim 7, characterized in that The relevant information for the device to go online includes at least one of the following: the device's media access control MAC address, system name, system description information, Internet Protocol version 6 IPv6 management address, and Internet Protocol version 4 IPv4 management address.
12. A data transmission method, characterized in that: The method comprises: The third device receives a second message from the second device, where the second message includes: identification information of the second device, relevant information for the first device to go online, and neighbor information related to the first device; The third device allocates a management IP address to the first device, and sends a third message including the management IP address to the first device through the second device, where the management IP address is used by the first device to access a data communication network; The third device sends an instruction to the first device, where the instruction is used by the first device to switch to the second channel to transmit the DCN message.
13. The method according to claim 12, characterized in that The third device assigning a management IP address to the first device includes: The third device determines the area range to which the second device belongs according to the identification information of the second device, and allocates a management IP address to the first device from a corresponding management IP address set according to the area range.
14. The method according to claim 12, characterized in that The relevant information for the device to go online includes at least one of the following: the device's media access control MAC address, system name, system description information, Internet Protocol version 6 IPv6 management address, and Internet Protocol version 4 IPv4 management address.
15. The method according to claim 12, characterized in that The neighbor information related to the first device includes at least one of the following: the port index of the second device, the index of the first device, the first device identifier, the connection port identifier of the first device, the IP address of the first device, the IPv6 management address of the first device, the IPv4 management address of the first device, the system name of the first device, and the system description information of the first device.
16. The method according to claim 12, characterized in that The method further comprises: The third device receives a confirmation message related to the second channel from the first device; The third device sending an instruction to the first device includes: The instruction is sent to the first device based on the confirmation message.
17. A data transmission device, characterized in that: The device includes: a first communication unit and an access unit; wherein, The first communication unit is configured to send a first message to a second device via a Flexible Ethernet (FlexE), a Metropolitan Transport Network (MTN), or a Sliced Packet Network (SPN) overhead frame; the first message includes a Data Communication Network (DCN) channel identifier and relevant information for the device to go online; and is further configured to receive a third message from a third device via the second device, the third message including a management Internet Protocol (IP) address allocated by the third device to the first device; the first message is transmitted via a first channel; The access unit is configured to access a data communication network based on the management IP address; The first communication unit is further configured to receive an instruction from the third device, and switch the second channel to transmit the DCN message based on the instruction.
18. A data transmission device, characterized in that: The device comprises: a second communication unit, a first processing unit and a third communication unit; wherein, The second communication unit is configured to receive a first message from the first device; the first message is carried through a Flexible Ethernet FlexE, a Metropolitan Transport Network MTN, or a Sliced Packet Network SPN overhead frame; the first message includes a Data Communication Network DCN channel identifier and relevant information for the device to go online; the first message is transmitted through a first channel; The first processing unit is configured to generate a second message based on the identification information of the second device, the relevant information for the device to go online, and the neighbor information related to the first device; The third communication unit is configured to send a second message to a third device; and further configured to receive a third message from the third device, where the third message includes a management IP address allocated by the third device to the first device, the management IP address being used by the first device to access a data communication network for interaction between the first device and the third device, and switching the second channel to transmit a DCN message based on an instruction from the third device. The second communication unit is further configured to forward the third message to the first device.
19. A data transmission device, characterized in that: The device includes: a fourth communication unit and a distribution unit; wherein, The fourth communication unit is configured to receive a second message from a second device, where the second message includes: identification information of the second device, relevant information corresponding to the first device for the device to go online, and neighbor information related to the first device; The allocation unit is configured to allocate a management IP address to the first device; the management IP address is used by the first device to access a data communication network; The fourth communication unit is further configured to send a third message including the management IP address to the first device through the second device; and is further configured to send an instruction to the first device, wherein the instruction is configured to cause the first device to switch to a second channel to transmit a DCN message.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented; or When the program is executed by a processor, the steps of the method according to any one of claims 7 to 11 are implemented; or When the program is executed by a processor, the steps of the method according to any one of claims 12 to 16 are implemented.
21. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 6 are implemented; or When the processor executes the program, the steps of the method according to any one of claims 7 to 11 are implemented; or When the processor executes the program, the steps of the method according to any one of claims 12 to 16 are implemented.
Citation Information
Patent Citations
Multisystem networking communication method and device, mobile terminal and storage medium
CN108777722A