Method and device for establishing link and storage medium

CN120359802APending Publication Date: 2025-07-22HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202380085529.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-01-13
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

The transmission-related parameter configuration of network equipment in existing communication system links requires manual operation, which is complex and inconvenient for automatic adjustment.

Method used

By receiving link layer discovery protocol messages, the device automatically creates a virtual LAN interface and generates address information without manual configuration, allowing the device to automatically generate transmission-related configuration parameters.

Benefits of technology

It simplifies the link establishment process, reduces the operational complexity of operation and maintenance personnel, and realizes automatic configuration and adjustment of communication system links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120359802A_ABST
    Figure CN120359802A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for establishing a link and a storage medium. The method comprises the steps that a second device receives a first message, virtual local area network interface information is created according to the first message, the second device generates own address information and sends first information to a first device, the first information corresponds to the virtual local area network interface information, and the first information is used for generating first address information of the first device; or the first information comprises the first address information. According to the scheme, the address information of the equipment does not need to be manually configured, the equipment can automatically configure the virtual local area network interface information, and data support is provided for link establishment.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and storage medium for establishing a link Technical Field

[0001] The present application relates to the field of communication technologies, and in particular to a method, device, and storage medium for establishing a link. Background Art

[0002] Currently, transmission-related parameters for network devices in communication system links, such as virtual local area network (VLAN) interface information, Internet Protocol (IP) addresses, and routing, are primarily configured manually by operations and maintenance personnel. For example, these parameters include those for the control and management (C&M), service, and clock planes of the baseband unit (BBU) or radio unit (RU). Adjusting the communication system link requires reconfiguring the BBU or RU separately, which is complex.

[0003] Summary of the Invention

[0004] The present application provides a method, device and storage medium for establishing a link, which enables network devices in the link to automatically generate transmission-related configuration parameters and provide data support for the automatic link establishment of the device.

[0005] The first aspect of the present application provides a method for establishing a link, which is applicable to a communication system using layer 2 (L2) networking, the method comprising: receiving a first message; creating virtual local area network interface information based on the first message, the virtual local area network interface information corresponding to the first information, the first information being used to generate first address information of a first device, or the first information including the first address information; generating second address information, the second address information corresponding to the virtual local area network interface information.

[0006] In the above scheme, the device creates a virtual LAN interface based on the first message received and generates an address corresponding to the virtual LAN interface. There is no need to manually configure the address information of the device, and the device automatically configures the virtual LAN interface information to provide data support for link establishment.

[0007] In an optional embodiment of the first aspect, the first message is a link layer discovery protocol message.

[0008] In the above solution, the device receives a link layer discovery protocol message so as to create a virtual local area network interface based on the message.

[0009] In an optional embodiment of the first aspect, the first message includes one or more virtual LAN interface identifiers; creating virtual LAN interface information based on the first message includes: creating a virtual LAN interface on a physical Ethernet port that receives the first message based on the identifier of a virtual LAN interface in the first message; or creating multiple virtual LAN interfaces on the physical Ethernet port that receives the first message based on the identifiers of multiple virtual LAN interfaces in the first message.

[0010] In the above solution, the device creates a virtual LAN interface based on the virtual LAN interface identifier in the received first message. The number of virtual LAN interface identifiers is the same as the number of created virtual LAN interfaces, so that the device automatically configures one or more virtual LAN interfaces.

[0011] Optionally, the created virtual LAN interfaces may include a virtual LAN interface of the service plane, a virtual LAN interface of the management plane, and a virtual LAN interface of the clock plane. The multiple virtual LAN interfaces are isolated from each other.

[0012] In an optional embodiment of the first aspect, the virtual LAN interface information includes a virtual LAN interface, and the second address information includes address information of a virtual LAN interface; or, the virtual LAN interface information includes multiple virtual LAN interfaces, and the second address information includes address information of multiple virtual LAN interfaces.

[0013] In the above scheme, the device generates corresponding second address information based on the virtual LAN interface information. The second address information includes the address information of one or more virtual LAN interfaces created by the device, so that the device automatically generates the address information of one or more virtual LAN interfaces, providing data support for link establishment.

[0014] In an optional embodiment of the first aspect, the method further includes: sending the first information to the first device on the created virtual local area network interface.

[0015] In the above solution, the device sends the first information so that the opposite device (ie, the first device) generates the address information of the opposite device based on the first information, or directly obtains the address information of the opposite device from the first information.

[0016] In an optional embodiment of the first aspect, the first information is used to generate first address information of the first device; sending the first information to the first device on the created virtual LAN interface includes: sending a router announcement message to the first device on the created virtual LAN interface, the router announcement message includes the first information, and the first information includes network segment information.

[0017] In the above solution, the device sends the first information via a router advertisement message, so that the opposite device generates the address information of the opposite device based on the router advertisement message.

[0018] In an optional embodiment of the first aspect, before sending the router advertisement message to the first device on the created virtual local area network interface, the method further includes: receiving a router solicitation message on the created virtual local area network interface.

[0019] In the above solution, the device responds to the router request message of the opposite device by sending the first information via the router advertisement message, so that the opposite device can generate the address information of the opposite device based on the router advertisement message, thereby enabling the opposite device to automatically generate its own address information.

[0020] In an optional embodiment of the first aspect, the first information includes first address information; sending the first information to the first device on the created virtual LAN interface includes: receiving a dynamic host configuration protocol request on the created virtual LAN interface; sending a dynamic host configuration protocol response to the first device on the created virtual LAN interface, the dynamic host configuration protocol response including the first information.

[0021] In the above solution, the device responds to the DHCP request of the opposite device by sending the first information via the DHCP response, so that the opposite device can obtain its own address information from the DHCP response.

[0022] In an optional embodiment of the first aspect, the method further includes: sending the address of the service plane in the second address information to the network management device.

[0023] In the above solution, after generating the second address information, the device reports the service plane address in the second address information to the network management device, so that the network management device notifies the address of the service plane to its peer device.

[0024] In an optional embodiment of the first aspect, the method further includes: receiving an address of a service plane in first address information of a first device from a network management device.

[0025] In the above solution, the device obtains the address of the service plane of the peer device through the network management device.

[0026] In an optional embodiment of the first aspect, the method further includes: establishing a link according to the address of the service plane in the second address information and the address of the service plane in the first address information of the first device.

[0027] In the above solution, the device automatically establishes a link based on the address of its own service plane and the address of the service plane of the opposite device learned from the network management device.

[0028] In an optional embodiment of the first aspect, the method further includes: sending router solicitation messages N times, where N is a positive integer; and generating second address information if no router advertisement message is received.

[0029] In the above solution, the device sends a router request message and determines whether it is an address allocation node based on whether it receives a response message to the message, namely a router advertisement message. If the device does not receive the router advertisement message, the device can generate the second address information by itself.

[0030] In an optional embodiment of the first aspect, the method further includes: sending N dynamic host configuration protocol requests, where N is a positive integer; and generating second address information if no dynamic host configuration protocol response is received.

[0031] In the above scheme, the device sends a Dynamic Host Configuration Protocol request and determines whether it is an address allocation node based on whether it receives a response to the request, that is, a Dynamic Host Configuration Protocol response. If the device does not receive a Dynamic Host Configuration Protocol response, the device can generate its own address information.

[0032] The second aspect of the present application provides a method for establishing a link, which is applicable to a communication system using layer 2 (L2) networking, the method including: receiving a first message; creating virtual local area network interface information based on the first message; receiving first information based on the virtual local area network interface information; generating first address information based on the first information; the first address information corresponds to the virtual local area network interface information.

[0033] In the above scheme, the device receives the first information of the opposite device on the created virtual LAN interface, and generates the address corresponding to the virtual LAN interface based on the first information. There is no need to manually configure the address information of the device, so that the device automatically configures the virtual LAN interface information and provides data support for link establishment.

[0034] In an optional embodiment of the second aspect, the first message is a link layer discovery protocol message.

[0035] In the above solution, the device receives a link layer discovery protocol message so as to create a virtual local area network interface based on the message.

[0036] In an optional embodiment of the second aspect, the first message includes one or more virtual LAN interface identifiers; creating virtual LAN interface information based on the first message includes: creating the one virtual LAN interface on the physical Ethernet port that receives the first message based on the identifier of a virtual LAN interface in the first message; or creating the multiple virtual LAN interfaces on the physical Ethernet port that receives the first message based on the identifiers of the multiple virtual LAN interfaces in the first message.

[0037] In the above solution, the device creates a virtual LAN interface based on the virtual LAN interface identifier in the received first message. The number of virtual LAN interface identifiers is the same as the number of created virtual LAN interfaces, so that the device automatically configures one or more virtual LAN interfaces.

[0038] In an optional embodiment of the second aspect, the virtual LAN interface information includes a first virtual LAN interface, the first virtual LAN interface is any interface in the virtual LAN interface information, and the first information includes first information corresponding to the first virtual LAN interface; receiving first information according to the virtual LAN interface information includes: receiving first information corresponding to the first virtual LAN on the first virtual LAN interface; generating first address information according to the first information includes: generating address information of the first virtual LAN interface in the first address information according to the first information corresponding to the first virtual LAN interface; or obtaining the address information of the first virtual LAN interface from the first information corresponding to the first virtual LAN interface. Optionally, the method further includes: configuring the address in the address information of the first virtual LAN interface on the created first virtual LAN interface.

[0039] In the above scheme, after creating one or more virtual LAN interfaces, the device receives the first information corresponding to the virtual LAN interface on the corresponding virtual LAN interface, so as to determine the address of the virtual LAN interface based on the first information corresponding to the virtual LAN interface, so that the device can automatically generate the addresses of the one or more virtual LAN interfaces it created, and provide data support for establishing the link.

[0040] In an optional embodiment of the second aspect, the virtual LAN interface information includes a virtual LAN interface, and the first address information includes the address information of the virtual LAN interface; or, the virtual LAN interface information includes multiple virtual LAN interfaces, and the first address information includes the address information of the multiple virtual LAN interfaces.

[0041] In the above scheme, the device generates corresponding first address information based on the virtual LAN interface information. The first address information includes the address information of one or more virtual LAN interfaces created by the device, so that the device automatically generates the address information of one or more virtual LAN interfaces, providing data support for link establishment.

[0042] In an optional embodiment of the second aspect, receiving the first information according to the virtual LAN interface information includes: receiving a router announcement message on the created virtual LAN interface, the router announcement message including the first information, the first information including network segment information; generating the first address information according to the first information includes: generating the first address information according to the network segment information in the first information.

[0043] Optionally, the address in the first address information is configured on the created virtual local area network interface.

[0044] In the above solution, the device obtains network segment information by receiving router announcement messages and generates its address information based on the network segment information, so that the device automatically generates its address information and provides data support for link establishment.

[0045] In an optional embodiment of the second aspect, before receiving the router advertisement message on the created virtual local area network interface, the method further includes: sending a router solicitation message on the created virtual local area network interface.

[0046] In the above solution, the device actively initiates a router request message so as to obtain the network segment information allocated by the peer device by receiving the router advertisement message from the peer device.

[0047] In an optional embodiment of the second aspect, receiving first information according to the virtual LAN interface information includes: sending a dynamic host configuration protocol request on the created virtual LAN interface; receiving a dynamic host configuration protocol response on the created virtual LAN interface, the dynamic host configuration protocol response including the first information, the first information including the first address information; generating the first address information according to the first information includes: obtaining the first address information from the first information in the dynamic host configuration protocol response.

[0048] Optionally, the address in the first address information is configured on the created virtual local area network interface.

[0049] In the above solution, a device actively initiates a dynamic host configuration protocol request so as to obtain the address information allocated to it by the opposite device by receiving a dynamic host configuration response from the opposite device.

[0050] In an optional embodiment of the second aspect, the method further includes: sending the address of the service plane in the first address information to a network management device.

[0051] In the above solution, after generating the first address information, the device reports the service plane address in the first address information to the network management device, so that the network management device notifies the address of the service plane to its peer device.

[0052] In an optional embodiment of the second aspect, the method further includes: receiving an address of a service plane in second address information of a second device from a network management device.

[0053] In the above solution, the device obtains the address of the service plane of the peer device through the network management device.

[0054] In an optional embodiment of the second aspect, the method further includes: establishing the link according to the address of the service plane in the first address information and the address of the service plane in the second address information of the second device.

[0055] In the above solution, the device automatically establishes a link based on the address of its own service plane and the address of the service plane of the opposite device learned from the network management device.

[0056] The third aspect of the present application provides a method for establishing a link, which is applicable to a communication system using layer 3 (L3) networking, the method including: receiving a second message; creating virtual local area network interface information based on the second message; generating third address information and routing information, the third address information corresponding to the virtual local area network interface information.

[0057] In the above solution, the device creates a virtual LAN interface based on the received second message and generates the address and route corresponding to the virtual LAN interface. There is no need to manually configure the address and route of the device. The device automatically configures the address and route of the virtual LAN interface, providing data support for link establishment.

[0058] In an optional embodiment of the third aspect, the second message is a link layer discovery protocol message, and the link layer discovery protocol message includes the identifiers of one or more virtual LAN interfaces; creating virtual LAN interface information based on the second message includes: creating a virtual LAN interface on the physical Ethernet port that receives the link layer discovery protocol message based on the identifier of a virtual LAN interface in the link layer discovery protocol message; or creating multiple virtual LAN interfaces on the physical Ethernet port that receives the link layer discovery protocol message based on the identifiers of multiple virtual LAN interfaces in the link layer discovery protocol message.

[0059] In the above scheme, the device receives a link layer discovery protocol message and creates virtual LAN interface information according to the virtual LAN interface identifier in the message. The number of virtual LAN interfaces is the same as the number of virtual LAN interface identifiers in the message, so that the device automatically configures one or more virtual LAN interfaces.

[0060] In an optional embodiment of the third aspect, the second message is a router announcement message, and receiving the second message includes: receiving one or more router announcement messages; the data link layer of the router announcement message carries an identifier of a virtual LAN interface; creating virtual LAN interface information based on the second message includes: creating a virtual LAN interface on the physical Ethernet port that receives the router announcement message based on the identifier of a virtual LAN interface carried by the data link layer of the router announcement message.

[0061] In the above scheme, the device receives one or more router announcement messages and creates virtual LAN interface information based on the virtual LAN interface identifier carried by the data link layer of the one or more router announcement messages. The number of virtual LAN interfaces is the same as the number of received router announcement messages, thereby enabling the device to automatically configure one or more virtual LAN interfaces.

[0062] In an optional embodiment of the third aspect, the virtual LAN interface information includes a virtual LAN interface, and the third address information includes address information of a virtual LAN interface; or, the virtual LAN interface information includes multiple virtual LAN interfaces, and the third address information includes address information of multiple virtual LAN interfaces.

[0063] In the above scheme, the device generates corresponding third address information based on the virtual LAN interface information. The third address information includes the address information of one or more virtual LAN interfaces created by the device, so that the device automatically generates the address information of one or more virtual LAN interfaces, providing data support for link establishment.

[0064] In an optional embodiment of the third aspect, generating third address information and routing information includes: sending a dynamic host configuration protocol request to a third device on a created virtual local area network interface; receiving a dynamic host configuration protocol response on the created virtual local area network interface; obtaining the third address information from the dynamic host configuration protocol response; and using the default gateway address in the dynamic host configuration protocol response as the gateway address of the routing information.

[0065] Optionally, the method further includes: configuring the address in the third address information on the created virtual local area network interface.

[0066] In the above scheme, the device actively initiates a dynamic host configuration protocol request to a third device, and the third device is a network layer device (such as a router), so that by receiving a dynamic host configuration protocol response from the third device, the device obtains the address information allocated to it by the third device, and determines the gateway address in the routing information based on the dynamic host configuration protocol response.

[0067] In an optional embodiment of the third aspect, the second message is a router advertisement message; generating the third address information and routing information includes: generating the third address information according to the second message; generating the routing information according to the second message.

[0068] In the above scheme, the device generates its address information and routing information by receiving router advertisement messages.

[0069] In an optional embodiment of the third aspect, the second message includes network segment information; and generating the third address information according to the second message includes: generating the third address information according to the network segment information in the second message. The second message may be a router advertisement message.

[0070] In the above solution, the device automatically generates its address information through the network segment information in the second message.

[0071] Optionally, the method further includes: configuring the address in the third address information on the created virtual local area network interface.

[0072] In an optional embodiment of the third aspect, generating routing information according to the second message includes: using the source address of the second message as the gateway address of the routing information. The second message may be a router advertisement message.

[0073] In the above solution, the device automatically generates the gateway address in the routing information based on the source address of the second message by receiving the second message.

[0074] In an optional embodiment of the third aspect, before receiving the second message, the method further includes: sending a router solicitation message. The second message may be a router advertisement message.

[0075] In the above scheme, the device actively initiates a router solicitation message so as to generate its address information and routing information by receiving a router advertisement message.

[0076] In an optional embodiment of the third aspect, the method further includes: sending the address of the service plane in the third address information to the network management device.

[0077] In the above solution, after generating the third address information, the device reports the service plane address in the third address information to the network management device, so that the network management device notifies the address of the service plane to its peer device.

[0078] In an optional embodiment of the third aspect, the method further includes: receiving an address of the service plane in fourth address information of a fourth device from the network management device.

[0079] In the above solution, the device obtains the address of the service plane of the peer device through the network management device.

[0080] In an optional embodiment of the third aspect, the method further includes: establishing a link according to the address of the service plane in the third address information and the address of the service plane in the fourth address information of the fourth device.

[0081] In the above solution, the device automatically establishes a link based on the address of its own service plane and the address of the service plane of the opposite device learned from the network management device.

[0082] A fourth aspect of the present application provides a method for establishing a link, the method comprising: obtaining an address of a service plane of a first device; sending the address of the service plane of the first device to a second device, the first device and the second device having a corresponding relationship.

[0083] In the above solution, the device sends the address of the service plane of the first device corresponding to the second device to the second device so that the second device can know the address of the service plane of the first device corresponding to it, thereby providing data support for establishing a link.

[0084] In an optional embodiment of the fourth aspect, the correspondence between the first device and the second device is preconfigured.

[0085] In an optional embodiment of the fourth aspect, obtaining the address of the service plane of the first device includes: receiving the address of the service plane of the first device from the first device.

[0086] In the above solution, the device obtains the address of the service plane of the first device actively reported by the first device.

[0087] In an optional embodiment of the fourth aspect, the method further includes: acquiring an address of a service plane of the second device; and sending the address of the service plane of the second device to the first device.

[0088] In the above solution, the device sends the address of the service plane of the second device corresponding to the first device to the first device so that the first device can know the address of the service plane of the second device corresponding to it, thereby providing data support for establishing a link.

[0089] In an optional embodiment of the fourth aspect, obtaining the address of the service plane of the second device includes: receiving the address of the service plane of the second device from the second device.

[0090] In the above solution, the device obtains the address of the service plane of the second device actively reported by the second device.

[0091] In an optional embodiment of the fourth aspect, the method further includes: acquiring configuration information of the first device and configuration information of the second device.

[0092] In a fifth aspect, embodiments of the present application provide a method for establishing a link, the method comprising: sending a first message to an access network device, the first message being used by the access network device to create virtual local area network interface information. The access network device may be an execution device as described in the first, second, or third aspects, or any of the optional embodiments.

[0093] In the above solution, the device sends the first message so that the device receiving the message automatically creates a virtual local area network interface.

[0094] In an optional embodiment of the fifth aspect, the first message includes a link layer discovery protocol message or a router advertisement message.

[0095] The sixth aspect of the present application provides a communication device, including: a transceiver module for receiving a first message; a processing module for creating virtual LAN interface information based on the first message, the virtual LAN interface information corresponds to the first information, the first information is used to generate first address information of the first device, or the first information includes the first address information; the processing module is also used to generate second address information, the second address information corresponds to the virtual LAN interface information.

[0096] In an optional embodiment of the sixth aspect, the first message is a link layer discovery protocol message.

[0097] In an optional embodiment of the sixth aspect, the first message includes one or more virtual LAN interface identifiers; the processing module is used to create a virtual LAN interface on the physical Ethernet port that receives the first message based on the identifier of a virtual LAN interface in the first message; or, based on the identifiers of multiple virtual LAN interfaces in the first message, create multiple virtual LAN interfaces on the physical Ethernet port that receives the first message.

[0098] In an optional embodiment of the sixth aspect, the virtual LAN interface information includes a virtual LAN interface, and the second address information includes address information of a virtual LAN interface; or, the virtual LAN interface information includes multiple virtual LAN interfaces, and the second address information includes address information of multiple virtual LAN interfaces.

[0099] In an optional embodiment of the sixth aspect, the transceiver module is further configured to send the first information to the first device on the created virtual local area network interface.

[0100] In an optional embodiment of the sixth aspect, the first information is used to generate first address information of the first device; the transceiver module is used to send a router announcement message to the first device on the created virtual LAN interface, the router announcement message includes the first information, and the first information includes network segment information.

[0101] In an optional embodiment of the sixth aspect, before the transceiver module sends the router advertisement message to the first device on the created virtual LAN interface, it is further configured to receive a router request message on the created virtual LAN interface.

[0102] In an optional embodiment of the sixth aspect, the first information includes first address information; the transceiver module is used to: receive a dynamic host configuration protocol request on the created virtual LAN interface; and send a dynamic host configuration protocol response to the first device on the created virtual LAN interface, wherein the dynamic host configuration protocol response includes the first information.

[0103] In an optional embodiment of the sixth aspect, the transceiver module is further configured to send the address of the service plane in the second address information to the network management device.

[0104] In an optional embodiment of the sixth aspect, the transceiver module is further configured to receive the address of the service plane in the first address information of the first device from the network management device.

[0105] In an optional embodiment of the sixth aspect, the processing module is further configured to establish a link based on the address of the service plane in the second address information and the address of the service plane in the first address information of the first device.

[0106] The beneficial effects of the sixth aspect and the optional embodiments of the sixth aspect can be referred to the beneficial effects brought about by the first aspect and the optional embodiments of the first aspect, and will not be repeated here.

[0107] The seventh aspect of the present application provides a communication device, including: a transceiver module for receiving a first message; a processing module for creating virtual local area network interface information based on the first message; the transceiver module is also used to receive first information based on the virtual local area network interface information; the processing module is also used to generate first address information based on the first information; the first address information corresponds to the virtual local area network interface information.

[0108] In an optional embodiment of the seventh aspect, the first message is a link layer discovery protocol message.

[0109] In an optional embodiment of the seventh aspect, the first message includes one or more virtual LAN interface identifiers; the processing module is used to: create a virtual LAN interface on the physical Ethernet port that receives the first message based on the identifier of a virtual LAN interface in the first message; or create multiple virtual LAN interfaces on the physical Ethernet port that receives the first message based on the identifiers of multiple virtual LAN interfaces in the first message.

[0110] In an optional embodiment of the seventh aspect, the virtual LAN interface information includes a first virtual LAN interface, the first virtual LAN interface is any interface in the virtual LAN interface information, and the first information includes first information corresponding to the first virtual LAN interface; a transceiver module is used to receive the first information corresponding to the first virtual LAN on the first virtual LAN interface; a processing module is used to: generate address information of the first virtual LAN interface in the first address information based on the first information corresponding to the first virtual LAN interface; or, obtain the address information of the first virtual LAN interface from the first information corresponding to the first virtual LAN interface.

[0111] In an optional embodiment of the seventh aspect, the virtual LAN interface information includes a virtual LAN interface, and the first address information includes address information of a virtual LAN interface; or, the virtual LAN interface information includes multiple virtual LAN interfaces, and the first address information includes address information of multiple virtual LAN interfaces.

[0112] In an optional embodiment of the seventh aspect, the transceiver module is used to receive a router announcement message on the created virtual LAN interface, the router announcement message includes first information, and the first information includes network segment information; the processing module is used to generate first address information based on the network segment information in the first information.

[0113] In an optional embodiment of the seventh aspect, before the transceiver module receives the router advertisement message on the created virtual LAN interface, it is further configured to send a router solicitation message on the created virtual LAN interface.

[0114] In an optional embodiment of the seventh aspect, the transceiver module is used to: send a dynamic host configuration protocol request on the created virtual LAN interface; receive a dynamic host configuration protocol response on the created virtual LAN interface, the dynamic host configuration protocol response including first information, the first information including first address information; and the processing module is used to obtain the first address information from the first information in the dynamic host configuration protocol response.

[0115] In an optional embodiment of the seventh aspect, the transceiver module is configured to send the address of the service plane in the first address information to the network management device.

[0116] In an optional embodiment of the seventh aspect, the transceiver module is configured to receive the address of the service plane in the second address information of the second device from the network management device.

[0117] In an optional embodiment of the seventh aspect, the processing module is further used to establish a link according to the address of the service plane in the first address information and the address of the service plane in the second address information of the second device.

[0118] The beneficial effects of the seventh aspect and the optional embodiments of the seventh aspect can be referred to the beneficial effects brought about by the second aspect and the optional embodiments of the second aspect, and will not be repeated here.

[0119] The eighth aspect of the present application provides a communication device, including: a transceiver module for receiving a second message; a processing module for: creating virtual LAN interface information based on the second message; generating third address information and routing information, the third address information corresponding to the virtual LAN interface information.

[0120] In an optional embodiment of the eighth aspect, the second message is a link layer discovery protocol message, and the link layer discovery protocol message includes the identifiers of one or more virtual LAN interfaces; the processing module is used to: create a virtual LAN interface on the physical Ethernet port that receives the link layer discovery protocol message based on the identifier of a virtual LAN interface in the link layer discovery protocol message; or, create multiple virtual LAN interfaces on the physical Ethernet port that receives the link layer discovery protocol message based on the identifiers of multiple virtual LAN interfaces in the link layer discovery protocol message.

[0121] In an optional embodiment of the eighth aspect, the second message is a router announcement message; the transceiver module is used to receive one or more router announcement messages; the data link layer of the router announcement message carries an identifier of a virtual LAN interface; and the processing module is used to create a virtual LAN interface on the physical Ethernet port that receives the router announcement message based on the identifier of a virtual LAN interface carried by the data link layer of the router announcement message.

[0122] In an optional embodiment of the eighth aspect, the virtual LAN interface information includes a virtual LAN interface, and the third address information includes address information of a virtual LAN interface; or, the virtual LAN interface information includes multiple virtual LAN interfaces, and the third address information includes address information of multiple virtual LAN interfaces.

[0123] In an optional embodiment of the eighth aspect, the transceiver module is used to: send a dynamic host configuration protocol request to the third device on the created virtual LAN interface; receive a dynamic host configuration protocol response on the created virtual LAN interface; the processing module is used to: obtain third address information from the dynamic host configuration protocol response; and use the default gateway address in the dynamic host configuration protocol response as the gateway address of the routing information.

[0124] In an optional embodiment of the eighth aspect, the second message is a router advertisement message; the processing module is used to: generate third address information based on the second message; and generate routing information based on the second message.

[0125] In an optional embodiment of the eighth aspect, the second message includes network segment information; the processing module is used to generate third address information based on the network segment information in the second message.

[0126] In an optional embodiment of the eighth aspect, the processing module is configured to use the source address of the second message as the gateway address of the routing information.

[0127] In an optional embodiment of the eighth aspect, before the transceiver module receives the second message, it is further configured to send a router request message.

[0128] In an optional embodiment of the eighth aspect, the transceiver module is further configured to send the address of the service plane in the third address information to the network management device.

[0129] In an optional embodiment of the eighth aspect, the transceiver module is further configured to receive the address of the service plane in the fourth address information of the fourth device from the network management device.

[0130] In an optional embodiment of the eighth aspect, the processing module is further used to establish a link according to the address of the service plane in the third address information and the address of the service plane in the fourth address information of the fourth device.

[0131] The beneficial effects of the above-mentioned eighth aspect and the various optional embodiments of the above-mentioned eighth aspect can be referred to the beneficial effects brought about by the above-mentioned third aspect and the various optional embodiments of the third aspect, and will not be repeated here.

[0132] The ninth aspect of the present application provides a communication device, including: a transceiver module, used to obtain the address of the service plane of the first device; the transceiver module is also used to send the address of the service plane of the first device to the second device, and the first device and the second device have a corresponding relationship.

[0133] In an optional embodiment of the ninth aspect, the correspondence between the first device and the second device is preconfigured.

[0134] In an optional embodiment of the ninth aspect, the transceiver module is configured to receive an address of a service plane of the first device from the first device.

[0135] In an optional embodiment of the ninth aspect, the transceiver module is further used to obtain the address of the service plane of the second device; the transceiver module is further used to send the address of the service plane of the second device to the first device.

[0136] In an optional embodiment of the ninth aspect, the transceiver module is configured to receive an address of a service plane of the second device from the second device.

[0137] In an optional embodiment of the ninth aspect, the transceiver module is further configured to obtain configuration information of the first device and configuration information of the second device.

[0138] The beneficial effects of the above-mentioned ninth aspect and the various optional embodiments of the above-mentioned ninth aspect can be referred to the beneficial effects brought about by the above-mentioned fourth aspect and the various optional embodiments of the fourth aspect, and will not be repeated here.

[0139] In the tenth aspect, an embodiment of the present application provides a communication device, comprising: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, and executing the method as described in the first aspect, second aspect, third aspect, fourth aspect, fifth aspect or each optional embodiment.

[0140] In the eleventh aspect, an embodiment of the present application provides a chip, comprising: a processor for calling and running computer instructions from a memory, so that a device equipped with the chip executes a method such as the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect or each optional embodiment.

[0141] In the twelfth aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions, which enables a computer to execute a method such as in the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect or each optional embodiment.

[0142] In a thirteenth aspect, an embodiment of the present application provides a computer program product, comprising computer program instructions, which enable a computer to execute a method as described in the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect, or each optional embodiment. BRIEF DESCRIPTION OF THE DRAWINGS

[0143] FIG1 is a schematic diagram of the structure of a communication system provided in an embodiment of the present application;

[0144] FIG2 is a flow chart of a method for establishing a link provided in an embodiment of the present application;

[0145] FIG3 is a flow chart of a method for establishing a link according to an embodiment of the present application;

[0146] FIG4 is a flow chart of a method for establishing a link according to an embodiment of the present application;

[0147] FIG5 is a flow chart of a method for establishing a link according to an embodiment of the present application;

[0148] FIG6 is a flow chart of a method for establishing a link according to an embodiment of the present application;

[0149] FIG7 is a flow chart of a method for establishing a link according to an embodiment of the present application;

[0150] FIG8 is a flow chart of a method for establishing a link according to an embodiment of the present application;

[0151] FIG9 is a schematic block diagram of a communication device provided in an embodiment of the present application;

[0152] FIG10 is a schematic block diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0153] Figure 1 is a structural diagram of a communication system provided in an embodiment of the present application. As shown in Figure 1, the communication system 100 includes a network device 101, a network device 102, and a network device 103, and the network device 101 and the network device 102 are respectively connected to the network device 103. Messages can be transmitted between the network device 101 and the network device 102 through the network device 103. In this embodiment, the link of the communication system includes a link between the network device 102 and the network device 103 and a link between the network device 103 and the network device 101, and the link includes a common public radio interface (CPRI) link and an enhanced common public radio interface (eCPRI) link. In some embodiments, the communication system can be a fronthaul network system.

[0154] In one possible scenario, the network device 101 may be a distributed unit (DU), the network device 102 may be a radio frequency unit RU (active antenna processing unit AAU or radio remote unit RRU), and the network device 103 may be a data link layer device (layer 2 device, such as a switch, etc.).

[0155] The DU may be included in a baseband unit (BBU), and the RU may be included in a radio frequency device or radio frequency unit, such as a remote radio unit (RRU), an active antenna unit (AAU), or a remote radio head (RRH).

[0156] In another possible scenario, the network device 101 may be a distributed unit DU, the network device 102 may be a radio frequency unit RU (AAU or RRU), and the network device 103 may also be a network layer device (layer 3 device, such as a router, etc.).

[0157] It should be noted that, unless otherwise specified, the distributed unit DU is described using the baseband unit BBU as an example.

[0158] The BBU and RU in the first scenario above adopt layer 2 (layer 2, L2) networking, and the BBU and RU in the second scenario above adopt layer 3 (layer 3, L3) networking. In both scenarios, the baseband unit is a communication device or functional module with a baseband signal processing function, and the radio frequency unit is a communication device or functional module with a function of processing intermediate frequency signals, radio frequency signals or intermediate radio frequency signals. The radio frequency unit can be a cloud radio frequency unit RRU or an adaptive antenna unit AAU, etc. The interface between the baseband unit and the radio frequency unit can be CPRI, eCPRI, Ethernet equipment universal radio interface or other types of interfaces, which is not limited in the embodiments of the present application.

[0159] When the baseband unit (BBU) and the radio frequency unit (RFU) communicate via eCPRI, the BBU can also be referred to as the radio equipment controller (eCPRI radio equipment controller, eREC) in the eCPRI scenario, and the RF can also be referred to as the radio equipment (eCPRI radio equipment, eRE) in the eCPRI scenario. The eREC and eRE can be considered two components of a wireless base station. In one example, the eREC and eRE can be physically separated, with the eREC located in a ground-level equipment room and the eRE near or containing the antenna. The physical layer functions of a wireless base station are divided into two parts, deployed in the eREC and eRE, respectively. Specifically, the eREC includes a portion of the physical layer functions and higher-layer functions of the air interface, such as the media access control (MAC) layer, radio link control (RLC) layer, packet data convergence protocol (PDCP) layer, and radio resource control (RRC) layer. The eRE includes a portion of the physical layer functions and analog RF functions.

[0160] In one embodiment, network device 101 and network device 102 are respectively connected to network management device 104. A channel is established between network device 101 or network device 102 and network management device 104, and network management device 104 uses the channel to install or update software on network device 101 and network device 102, or to configure files, or to perform other maintenance functions such as alarming, tracking, and monitoring. Network management device 104 can be, for example, an operation, administration, and maintenance (OAM) device. The channel between network device 101 and network management device 104 can be a channel between a BBU and network management device 104, and the channel between network device 102 and network management device 104 can be a channel between an RU (AAU or RRU) and network management device 104. The above-mentioned channel can be a management plane channel.

[0161] Users can use network management device 104 to configure the following service plane parameters for network devices 101 and 102: VLAN interface information, IP addresses, routes, and more. As can be seen, the communication system links require manual configuration, which complicates operation and maintenance. If adjustments are needed to the communication system links, such as the VLAN interface information, IP addresses, and routes of network devices 101 and 102, configuration changes must be made to each network device 101 and 102, resulting in complex operations.

[0162] Based on this, embodiments of the present application provide a link establishment method that enables network devices in a communication system to automatically generate transmission-related configuration parameters, such as VLAN interface information, IP addresses, and routes, thereby automatically establishing communication system links without manual configuration. For ease of understanding, the following briefly describes the technical solution provided by this application using network devices BBU and RU as examples.

[0163] Scenario 1: The BBU and RU are networked using data link layer (layer 2) devices, with the BBU serving as the address allocation node.

[0164] Layer 2 device execution: Sends LLDP packets to the BBU and RU connected to the Layer 2 device (enables LLDP).

[0165] The BBU executes: Creates a VLAN interface based on the virtual LAN interface information carried in the LLDP message from the Layer 2 device. The BBU acts as an address allocation node: In IPv4 / IPv6 scenarios, the BBU can function as a Dynamic Host Configuration Protocol (DHCP) server. In IPv6 scenarios, the BBU can also function as a router node, sending RA messages on the created VLAN interface. RA messages contain network segment information, which is used to generate RU address information.

[0166] RU execution: Creates a VLAN interface based on the virtual LAN interface information carried in the LLDP message from the Layer 2 device. RU acts as an address requesting node: The RU initiates DHCP to request an IPv4 or IPv6 address; or, the RU generates an IPv6 address based on the RA message from the BBU.

[0167] Scenario 2: The BBU and RU are networked using network layer (layer 3) devices, with the layer 3 devices serving as address allocation nodes.

[0168] The layer 3 device executes: as an address allocation node, the layer 3 device starts the DHCP service and sends LLDP packets to the BBU and RU connected to the layer 3 device; or, as a router node, the layer 3 device sends RA packets to the BBU and RU connected to the layer 3 device (which can be sent periodically).

[0169] The BBU or RU creates a VLAN interface based on the virtual LAN interface information carried in LLDP or RA messages from the Layer 3 device. The BBU or RU acts as a DHCP client to request an IPv4 or IPv6 address from the Layer 3 device. Alternatively, the BBU or RU generates an IPv6 address and routing parameters based on RA messages from the Layer 3 device.

[0170] In the communication system of the embodiment of the present application, an Ethernet transmission mechanism may be used for data transmission between the BBU and the RU.

[0171] It should be noted that the technical solutions provided in the embodiments of the present application may include part or all of the following contents. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0172] Figure 2 is a flow chart of a method for establishing a link provided in an embodiment of the present application. The method for establishing a link provided in this embodiment can be applied to a communication system including a first device, a second device, and a sixth device. The first device can be the network device 102 in Figure 1, such as an RU / RRU / AAU; the second device can be the network device 101 in Figure 1, such as a BBU; the sixth device can be the network device 103 in Figure 1, and the network device 103 is a data link layer device (layer 2 device), such as a switch. In this embodiment, the second device is an address allocation node.

[0173] As shown in FIG2 , the method for establishing a link in this embodiment includes the following steps:

[0174] S301a. The sixth device sends a first message to the second device.

[0175] S301b. The sixth device sends a first message to the first device.

[0176] In this embodiment, the sixth device sends the first message on the physical Ethernet port connected to the second device, and the sixth device sends the first message on the physical Ethernet port connected to the first device. The sixth device sends the first message by broadcasting, and the devices in the communication system (including the first device and the second device) can receive the first message.

[0177] As an example, the first message is a Link Layer Discovery Protocol (LLDP) message. Exemplarily, the first message includes a virtual local area network interface identifier (VLAN ID), which is used to indicate interface information for establishing a communication system link.

[0178] Optionally, the first message may include identifiers of one or more virtual local area network interfaces. For example, the first message includes identifiers of multiple virtual local area network interfaces, such as identifiers of VLAN interface 1, VLAN interface 2, and VLAN interface 3, where VLAN interface 1 may be an interface of the service plane, VLAN interface 2 may be an interface of the management plane, and VLAN interface 3 may be an interface of the clock plane. Virtual routing and forwarding (VRF) between each of the three VLAN interfaces is isolated from each other, and the three VLAN interfaces are each isolated from the VRFs of other VLAN interfaces.

[0179] After receiving the first message, the second device can execute:

[0180] S302a: The second device creates virtual local area network interface information according to the first message.

[0181] The second device creates virtual local area network (VLAN) interface information on a physical Ethernet (ETH) port that receives the first message. The virtual local area network (VLAN) interface information includes one or more virtual local area network (VLAN) interfaces.

[0182] As an example, the first message includes a virtual LAN interface identifier, and the second device creates a virtual LAN interface corresponding to the virtual LAN interface identifier on the physical Ethernet port that receives the first message based on the virtual LAN interface identifier in the first message.

[0183] As an example, the first message includes identifiers of multiple virtual local area network interfaces. The second device creates the multiple virtual local area network interfaces on the physical Ethernet port that receives the first message according to the identifiers of the multiple virtual local area network interfaces in the first message.

[0184] Based on the above two examples, the first message may be an LLDP message, and the LLDP message carries one or more VLAN IDs.

[0185] Based on the two examples above, the second device can be a BBU. The BBU receives an LLDP message through an Ethernet port connected to an eCPRI or CPRI network. The LLDP message includes a VLAN ID. The BBU creates a VLAN interface based on the LLDP message. The VRF of this VLAN interface is isolated from the VRFs of other VLAN interfaces of the BBU. In this embodiment, the VLAN interface created by the BBU is a front haul (FH) interface. The other VLAN interfaces of the BBU include, for example, a backhaul network interface.

[0186] S303: The second device generates second address information of the second device.

[0187] In this embodiment, the second address information is address information of the virtual LAN interface created by the second device, such as an Internet Protocol (IP) address (IPv6 address or IPv4 address) of the virtual LAN interface created by the second device.

[0188] As an example, the second device creates a virtual LAN interface according to the first message, and the second address information generated by the second device includes address information of the virtual LAN interface, such as the IP address of the virtual LAN interface.

[0189] As an example, the second device creates multiple virtual LAN interfaces based on the first message, and the second address information generated by the second device includes address information of multiple virtual LAN interfaces. For example, the multiple virtual LAN interfaces include VLAN interface 1, VLAN interface 2 and VLAN interface 3, and the second device generates IP addresses of VLAN interface 1, VLAN interface 2 and VLAN interface 3 respectively.

[0190] S304: The second device generates first information.

[0191] As an example, the second device generates the first information according to the second address information. The first information corresponds to the virtual local area network interface information.

[0192] As an example, the first information is used to generate first address information for a first device. The second device generates network segment information corresponding to the second address information based on the second address information. The first information includes the network segment information, and the network segment information in the first information is used to generate the first address information for the first device. Optionally, the first information may be carried in a router advertisement message.

[0193] As an example, the first information includes first address information of the first device, the second device generates the first address information based on second address information, and the address in the first address information and the address in the second address information are located in the same network segment. Optionally, the first information can be carried in a Dynamic Host Configuration Protocol response.

[0194] S305: The second device sends the first information to the first device.

[0195] As an example, the second device sends the first information to the first device on the created virtual LAN interface. The created virtual LAN interface can be a virtual LAN interface of the service plane, a virtual LAN interface of the management plane (C&M), or a virtual LAN interface of the clock plane.

[0196] As an example, if the second device creates multiple virtual LAN interfaces, including a service plane virtual LAN interface, a management plane virtual LAN interface, and a clock plane virtual LAN interface, the second device sends the first information to the first device via the created service plane virtual LAN interface; or the second device sends the first information to the first device via the created management plane virtual LAN interface; or the second device sends the first information to the first device via the created clock plane virtual LAN interface.

[0197] After receiving the first message, the first device can execute:

[0198] S302b: The first device creates virtual local area network interface information according to the first message.

[0199] Similar to S302a, as an example, the first device creates virtual local area network interface information on the physical Ethernet port that receives the first message. The virtual local area network interface information includes one or more virtual local area network interfaces.

[0200] As an example, the first message includes a virtual LAN interface identifier, and the first device creates a virtual LAN interface corresponding to the virtual LAN interface identifier on the physical Ethernet port that receives the first message based on the virtual LAN interface identifier in the first message.

[0201] As an example, the first message includes identifiers of multiple virtual LAN interfaces. The first device creates the multiple virtual LAN interfaces on the physical Ethernet port that receives the first message according to the identifiers of the multiple virtual LAN interfaces in the first message.

[0202] Exemplarily, the first device may be an RU, which receives LLDP through an ETH port used to connect to eCPRI or CPRI. The LLDP message includes a VLAN ID. The RU creates a VLAN interface according to the LLDP message, and the VRF of the VLAN interface is isolated from the VRFs of other VLAN interfaces of the RU.

[0203] After the first device completes the creation of the virtual local area network interface information and receives the first information from the second device, the first device may execute:

[0204] S306: The first device generates first address information of the first device according to the first information.

[0205] In this embodiment, the first address information is address information of the virtual local area network interface created by the first device, for example, the IP address (IPv6 address or IPv4 address) of the virtual local area network interface created by the first device.

[0206] As an example, the first device receives first information from the second device on the created virtual local area network interface, and generates first address information of the first device according to the first information.

[0207] As an example, the virtual LAN interface information created by the first device includes multiple virtual LAN interfaces, where the first virtual LAN interface is any one of the multiple virtual LAN interfaces. Taking the first virtual LAN interface as an example, the first device can receive first information corresponding to the first virtual LAN interface on the created first virtual LAN interface. The first device generates address information of the first virtual LAN interface in the first address information based on the first information corresponding to the first virtual LAN interface. Alternatively, the first device obtains the address information of the first virtual LAN interface from the first information corresponding to the first virtual LAN interface. Similar steps as for the first virtual LAN interface can be performed on other virtual LAN interfaces created by the first device.

[0208] Based on the above example, if the first device creates one virtual LAN interface, the first address information includes the address information of the virtual LAN interface. If the first device creates multiple virtual LAN interfaces, the first device can receive the first information corresponding to each of the multiple virtual LAN interfaces on each of the multiple virtual LAN interfaces to generate address information for each virtual LAN interface. The first address information includes the address information of the multiple virtual LAN interfaces created by the first device.

[0209] As an example, the first device obtains the first address information of the first device from the first information from the second device. In this example, the second device directly allocates address information to the first device.

[0210] As another example, the first information packet includes network segment information, and the first device generates the first address information of the first device based on the network segment information in the first information. In this example, the second device allocates the network segment information to the first device, and the network segment information is used to generate the first address information of the first device.

[0211] The link establishment method illustrated in this embodiment is applicable to link establishment in a communication system using Layer 2 devices. A first device and a second device in the communication system receive a first message from a Layer 2 device. The first device and the second device each create virtual local area network (VLAN) interface information based on the first message. The second device, acting as an address allocation node, allocates address information to itself after creating the VLAN interface information and generates first information. The second device transmits the first information so that other devices in the communication system, such as the first device, can generate the first device's address information based on the first information. This solution eliminates the need for manual device configuration of address information and provides data support for automatically establishing links in the communication system.

[0212] Based on the embodiment shown in FIG2 , in some embodiments, after the second device generates the second address information, it may further perform:

[0213] S307: The second device sends the service plane address in the second address information of the second device to the network management device.

[0214] As an example, the second device sends the service plane address in the second address information of the second device to the network management device through the management plane channel.

[0215] After the first device generates the first address information, it may further execute:

[0216] S308: The first device sends the service plane address in the first address information of the first device to the network management device.

[0217] As an example, the first device sends the service plane address in the first address information of the first device to the network management device through the management plane channel.

[0218] After receiving the service plane address in the second address information from the second device, the network management device may execute:

[0219] S309: The network management device sends the service plane address in the second address information of the second device to the first device.

[0220] The network management device sends the service plane address in the second address information of the second device to the first device according to the correspondence between the first device and the second device.

[0221] After receiving the service plane address in the first address information from the first device, the network management device may execute:

[0222] S310. The network management device sends the service plane address in the first address information of the first device to the second device.

[0223] The network management device sends the service plane address in the first address information of the first device to the second device according to the correspondence between the first device and the second device.

[0224] S311: The first device establishes a link with the second device.

[0225] As an example, the first device establishes a link with the second device according to the address of the service plane in the first address information of the first device and the address of the service plane in the second address information of the second device.

[0226] In this embodiment, the address of the business plane in the first address information of the first device is the IP address corresponding to the virtual LAN interface of the business plane in the first address information of the first device, and the address of the business plane in the second address information of the second device is the IP address corresponding to the virtual LAN interface of the business plane in the second address information of the second device.

[0227] The network management device of this embodiment pre-stores configuration information of the first device, configuration information of the second device, and a correspondence between the first device and the second device. The network management device receives first address information reported by the first device and second address information reported by the second device, respectively, notifies the second device corresponding to the first device of the first address information, and notifies the first device corresponding to the second device of the second address information, so that the first device and the second device can establish a link, thereby achieving automatic link establishment.

[0228] Based on the embodiment of Figure 2, the method for establishing a link is described in detail below in conjunction with two specific embodiments. It should be noted that, to facilitate understanding of the solution, in the following embodiments, unless otherwise specified, the first message includes an identifier of a virtual LAN interface, the second device and the virtual LAN interface information created by the second device include a virtual LAN interface, the first information is used to generate a virtual LAN interface in the first address information of the first device, or the first information includes the address of a virtual LAN interface in the first address information.

[0229] Figure 3 is a flow chart of a method for establishing a link provided in an embodiment of the present application. The method for establishing a link provided in this embodiment can be applied to a communication system including a first device, a second device, and a sixth device. The first device can be the network device 102 in Figure 1, such as an RU / RRU / AAU. The second device can be the network device 101 in Figure 1, such as a BBU. The sixth device can be the network device 103 in Figure 1, which is a data link layer device, such as a switch.

[0230] In this embodiment, the second device acts as an address allocation node and can use Internet Protocol version 6 (IPv6) stateless address auto configuration (SLAAC) to allocate addresses. In some embodiments, the second device is also called a router node.

[0231] As shown in FIG3 , the method for establishing a link in this embodiment includes the following steps:

[0232] S401a: The sixth device sends an LLDP message to the second device.

[0233] S402b: The sixth device sends an LLDP message to the first device.

[0234] After the second device receives the LLDP message, it can perform the following operations:

[0235] S402a: The second device creates virtual LAN interface information according to the LLDP message.

[0236] As an example, the second device creates a virtual LAN interface according to the identifier of the virtual LAN interface in the LLDP message.

[0237] S403: The second device generates second address information of the second device.

[0238] In this embodiment, the second device is an address allocation node, which allocates second address information to itself. The second address information includes address information of a virtual local area network interface created by the second device.

[0239] S404: The second device generates first information.

[0240] In this embodiment, the first information is used to generate first address information of the first device. The first information includes network segment information, and the network segment information in the first information is used to generate the first address information of the first device.

[0241] S405: The second device sends a router advertisement (RA) message to the first device, where the RA message includes the first information.

[0242] As an example, the second device sends a router advertisement message on the created virtual local area network interface.

[0243] In a possible implementation, the second device periodically sends router advertisement messages in a multicast manner.

[0244] In a possible implementation, after the second device creates the virtual LAN interface information according to the LLDP message, it sends a router advertisement message in a multicast manner.

[0245] It can be understood that the second device sending the router advertisement message by multicasting includes: the second device sending the router advertisement message to other devices including the first device, where the other devices refer to devices on the same communication system link as the second device.

[0246] After receiving the LLDP message, the first device can perform the following operations:

[0247] S402b: The first device creates virtual LAN interface information according to the LLDP message.

[0248] As an example, the LLDP message includes an identifier of the virtual LAN interface, and the first device creates a virtual LAN interface corresponding to the identifier of the virtual LAN interface according to the identifier of the virtual LAN interface in the LLDP message.

[0249] As an example, the first device receives a router advertisement message from the second device on a created virtual local area network interface, wherein the router advertisement message includes the first information.

[0250] After receiving the router advertisement message from the second device, the first device can perform the following operations:

[0251] S406: The first device generates first address information of the first device according to the first information in the router advertisement message. The first address information of the first device includes address information of the virtual local area network interface created by the first device.

[0252] In some embodiments, after the first device executes S402b, it may further execute:

[0253] S407: The first device sends a router solicitation (RS) message to the second device.

[0254] Accordingly, S404 specifically includes: the second device generating first information in response to the router request message. Subsequently, the second device executes S405. In this embodiment, the second device allocates network segment information to the first device based on the router request initiated by the first device, so that the first device generates the first address information of the first device based on the network segment information.

[0255] For example, in an IPv6 scenario, the second device (BBU) enables RA on the created VLAN interface, acting as an IPv6 router node. The BBU sends an RA message on the created VLAN interface. The RA message carries first information, including network segment information, which can be used to generate an IPv6 address for the first device (RU). The first device (RU) receives an RA message from the BBU on the created VLAN interface. The RA message carries the first information, and the RU generates its own IPv6 address based on the network segment information in the first information.

[0256] For example, in an IPv6 scenario, a first device (RU) sends an RS message to a second device (BBU) on an established VLAN interface. The BBU generates first information in response to the RS message, including network segment information. The BBU then sends an RA message to the RU, carrying the first information. The RU generates its own IPv6 address based on the first information in the RA message.

[0257] The link establishment method illustrated in this embodiment is applicable to link establishment in a communication system using Layer 2 devices. A first device and a second device in the communication system receive LLDP packets from the Layer 2 devices. The first device and the second device each create virtual local area network (VLAN) interface information based on the LLDP packets. The second device, acting as an address allocation node, allocates address information to itself after creating the VLAN interface information and generates first information, which is used to generate first address information for the first device. The second device can proactively send the first information or send the first information upon request from the first device. Based on the first information received from the second device, the first device generates its first address information. This solution eliminates the need for manual device address configuration and provides data support for automatically establishing links in the communication system.

[0258] Figure 4 is a flow chart of a method for establishing a link provided in an embodiment of the present application. The method for establishing a link provided in this embodiment can be applied to a communication system including a first device, a second device, and a sixth device.

[0259] The first device may be network device 102 in Figure 1, such as a RU / RRU / AAU. The second device may be network device 101 in Figure 1, such as a BBU. The sixth device may be network device 103 in Figure 1, which is a data link layer device, such as a switch. In this embodiment, the second device serves as an address allocation node and may use DHCP to allocate addresses. In some embodiments, the second device is also referred to as a DHCP server node.

[0260] As shown in FIG4 , the method for establishing a link in this embodiment includes the following steps:

[0261] S501a: The sixth device sends an LLDP message to the second device.

[0262] S501b: The sixth device sends an LLDP message to the first device.

[0263] After the second device receives the LLDP message, it can perform the following operations:

[0264] S502a: The second device creates virtual LAN interface information according to the LLDP message.

[0265] S503: The second device generates second address information of the second device.

[0266] After receiving the LLDP message, the first device can perform the following operations:

[0267] S502b: The first device creates virtual LAN interface information according to the LLDP message.

[0268] As an example, the LLDP message includes an identifier of the virtual LAN interface, and the first device creates the virtual LAN interface according to the identifier of the virtual LAN interface in the LLDP message.

[0269] S504: The first device sends a dynamic host configuration protocol request (DHCP REQ) to the second device.

[0270] As an example, the first device sends a dynamic host configuration protocol request to the second device on the created virtual local area network interface, where the dynamic host configuration protocol request is used to request the first address information of the first device.

[0271] After receiving the DHCP request from the first device, the second device may execute:

[0272] S505: The second device generates first information.

[0273] The second device generates first information based on the second address information in response to the Dynamic Host Configuration Protocol request. The first information includes the first address information of the first device. The second address information and the first address information are located in the same network segment. The first address information of the first device includes address information of a virtual local area network interface created by the first device.

[0274] S506: The second device sends a dynamic host configuration protocol response (DHCP RSP) to the first device, where the dynamic host configuration protocol response includes the first information.

[0275] As an example, the second device sends a dynamic host configuration protocol response to the first device on the created virtual local area network interface.

[0276] After receiving the DHCP response from the second device, the first device may perform the following operations:

[0277] S507: The first device obtains first address information from the dynamic host configuration protocol response.

[0278] As an example, the first device receives a dynamic host configuration protocol response from the second device on the created virtual local area network interface, obtains first address information from the dynamic host configuration protocol response, and configures the address in the first address information on the created virtual local area network interface after obtaining the first address information.

[0279] For example, in an IPv6 or IPv4 scenario, the second device (BBU) enables DHCP on a created VLAN interface, and the BBU acts as a DHCP server. The first device (RU) sends a DHCP request to the BBU on the created VLAN interface. The BBU responds to the DHCP request by sending a DHCP response to the RU. The DHCP response carries first information, including the IPv6 address or IPv4 address assigned by the BBU to the RU. The RU obtains its IPv6 address or IPv4 address from the DHCP response.

[0280] The method for establishing a link shown in this embodiment is applicable to link establishment in a communication system that uses a layer 2 device network. The first device and the second device in the communication system receive LLDP messages from the layer 2 device, and the first device and the second device respectively create virtual LAN interface information based on the LLDP message. The second device acts as an address allocation node, and after completing the creation of the virtual LAN interface information, it allocates address information to itself. After completing the creation of the virtual LAN interface information, the first device sends an address allocation request to the second device. In response to the request, the second device allocates the first address information to the first device and returns an address allocation response. The first device directly obtains the first address information of the first device from the response. The above scheme does not require manual configuration of address information for the device, and provides data support for the automatic establishment of the communication system link.

[0281] Figure 5 is a flow chart of a method for establishing a link provided in an embodiment of the present application. The method for establishing a link provided in this embodiment can be applied to the communication system shown in Figure 1, which includes a third device and a fifth device.

[0282] The third device may be the network device 103 in Figure 1 , which is a network layer device such as a router. The fifth device may be the network device 102 (such as RU / RRU / AAU) or the network device 101 (such as BBU) in Figure 1 . In this embodiment, the third device serves as an address allocation node.

[0283] As shown in FIG5 , the method for establishing a link in this embodiment includes the following steps:

[0284] S601. The third device sends a second message to the fifth device.

[0285] In this embodiment, the third device sends the second message on the physical Ethernet port connected to the fifth device. The third device sends the second message in a broadcast manner, and the devices in the communication system (including the fifth device) can receive the second message.

[0286] Optionally, the second message is a router advertisement message or a link layer discovery protocol message.

[0287] Optionally, the second message is a router advertisement message, and the data link layer of the router advertisement message carries an identifier of a virtual local area network interface.

[0288] Optionally, the second message is a link layer discovery protocol message, and the link layer discovery protocol message may include the identifiers of one or more virtual LAN interfaces. For example, the link layer discovery protocol message may include the identifiers of multiple virtual LAN interfaces, such as the identifiers of VLAN interface 1, VLAN interface 2, and VLAN interface 3, where VLAN interface 1 is an interface of the service plane, VLAN interface 2 is an interface of the management plane, and VLAN interface 3 is an interface of the clock plane. The VRFs of the three VLAN interfaces are isolated from each other, and the three VLAN interfaces are isolated from the VRFs of other VLAN interfaces.

[0289] S602: The fifth device creates virtual LAN interface information according to the second message.

[0290] The fifth device creates virtual LAN interface information on the physical Ethernet port that receives the second message, where the virtual LAN interface information includes one or more virtual LAN interfaces.

[0291] As an example, the second message is a router announcement message, and the data link layer of the router announcement message carries an identifier of a virtual LAN interface. The fifth device creates a virtual LAN interface corresponding to the identifier of the virtual LAN interface on the physical Ethernet port that receives the router announcement message based on the identifier of the virtual LAN interface in the router announcement message.

[0292] As an example, the second message is a router advertisement message. S601 includes: the third device sending multiple second messages to the fifth device. S602 includes: the fifth device creating multiple virtual local area network interfaces based on the multiple second messages. The steps for creating a virtual local area network interface corresponding to any one of the multiple second messages can refer to the execution steps of the previous example.

[0293] As an example, the second message is a link layer discovery protocol message, which includes an identifier of a virtual LAN interface. The fifth device creates a virtual LAN interface corresponding to the identifier of the virtual LAN interface on the physical Ethernet port that receives the link layer discovery protocol message based on the identifier of the virtual LAN interface in the link layer discovery protocol message.

[0294] As an example, the second message is a link layer discovery protocol message, and the link layer discovery protocol message includes identifiers of multiple virtual local area network interfaces. The fifth device creates the multiple virtual local area network interfaces on the physical Ethernet port that receives the link layer discovery protocol message based on the identifiers of the multiple virtual local area network interfaces in the link layer discovery protocol message.

[0295] Based on the two examples above, the fifth device can be a BBU or a RU. Taking the BBU as an example, the BBU receives a link layer discovery protocol message through the ETH port used to connect to eCPRI (or CPRI). The link layer discovery protocol message includes a VLAN ID. The BBU creates a VLAN interface based on the VLAN ID in the link layer discovery protocol message. The VRF of this VLAN interface is isolated from the VRFs of other VLAN interfaces of the BBU. In this embodiment, the virtual LAN interface created by the BBU is a fronthaul interface, and the other VLAN interfaces of the BBU include, for example, a backhaul network interface.

[0296] S603: The fifth device generates third address information.

[0297] In this embodiment, the third address information is the address information of the virtual LAN interface created by the fifth device, for example, the IP address (IPv6 address or IPv4 address) of the virtual LAN interface created by the fifth device.

[0298] Optionally, after generating the third address information, the fifth device configures the address in the third address information on the created virtual local area network interface.

[0299] As an example, the second message is a router announcement message or a link layer discovery protocol message, and the fifth device creates a virtual LAN interface based on the second message. The third address information generated by the fifth device includes the address information of the virtual LAN interface, such as the IP address of the virtual LAN interface.

[0300] As an example, the second message is a link layer discovery protocol message, and the fifth device creates multiple virtual LAN interfaces based on the link layer discovery protocol message. The third address information generated by the fifth device includes address information of multiple virtual LAN interfaces. For example, the multiple virtual LAN interfaces include VLAN interface 1, VLAN interface 2 and VLAN interface 3, and the fifth device generates IP addresses of VLAN interface 1, VLAN interface 2 and VLAN interface 3 respectively.

[0301] S604: The fifth device generates routing information.

[0302] The routing information generated by the fifth device includes a gateway address, a network target, a network mask, etc., wherein the gateway address can be determined according to a default route or a source address route.

[0303] The link establishment method illustrated in this embodiment is applicable to link establishment in a communication system using Layer 3 devices. A third device in the communication system serves as an address allocation node. The third device sends a second message, which enables a fifth device in the communication system to create virtual local area network (VLAN) interface information based on the second message and generate address and routing information for the fifth device. This solution eliminates the need for manual device configuration of address and routing information, providing data support for automatic link establishment in the communication system.

[0304] Based on the embodiment shown in FIG5 , after the fifth device generates the third address information, it may further execute:

[0305] S605: The fifth device sends the service plane address in the third address information to the network management device.

[0306] As an example, the fifth device sends the service plane address in the third address information to the network management device through the management plane channel.

[0307] S606: The fourth device sends the service plane address in the fourth address information of the fourth device to the network management device.

[0308] The fourth device generates the fourth address information in a manner similar to that of the fifth device, which can be seen from S601 to S603.

[0309] S607: The network management device sends the service plane address in the fourth address information of the fourth device to the fifth device.

[0310] S608: The fifth device establishes a link with the fourth device according to the address of the service plane in the third address information and the address of the service plane in the fourth address information of the fourth device.

[0311] As an example, the fifth device receives the service plane address in the fourth address information of the fourth device from the network management device through the management plane channel.

[0312] Exemplarily, if the fifth device is a BBU, the fourth device is the RU / RRU / AAU corresponding to the BBU; if the fifth device is a RU / RRU / AAU, the fourth device is the BBU corresponding to the RU / RRU / AAU.

[0313] The network management device of this embodiment pre-stores configuration information of the fourth device, configuration information of the fifth device, and a correspondence between the fourth and fifth devices. After receiving the fourth address information from the fourth device, the network management device can send the fourth address information of the fourth device corresponding to the fifth device to the fifth device, so that the fifth device can establish a link with the fourth device, thereby achieving automatic link establishment.

[0314] Based on the embodiment of FIG5 , the method for establishing a link is described in detail below in conjunction with two specific embodiments. It should be noted that, to facilitate understanding of the solution, in the following embodiments, unless otherwise specified, a router advertisement message or LLDP message includes an identifier of a virtual LAN interface, and the virtual LAN interface information created by the fifth device includes a virtual LAN interface.

[0315] Figure 6 is a flow chart of a method for establishing a link provided in an embodiment of the present application. The method for establishing a link provided in this embodiment can be applied to a communication system including a third device and a fifth device.

[0316] The third device may be the network device 103 in FIG. 1 , which is a network layer device, such as a router. The fifth device may be the network device 102 (such as an RU / RRU / AAU) or the network device 101 (such as a BBU) in FIG. 1 . In this embodiment, the third device serves as an address allocation node and may use IPv6 SLAAC to allocate addresses. In some embodiments, the third device is also referred to as a router node. As shown in FIG. 6 , the method includes the following steps:

[0317] S701. The third device sends a router advertisement message to the fifth device.

[0318] In this embodiment, the third device may send a router advertisement message on the physical Ethernet port connected to the fifth device.

[0319] S702: The fifth device creates virtual LAN interface information according to the router advertisement message.

[0320] As an example, the data link layer of the router advertisement message carries the identifier of the virtual LAN interface, and the fifth device creates a virtual LAN interface corresponding to the identifier of the virtual LAN interface according to the identifier of the virtual LAN interface carried by the data link layer of the router advertisement message.

[0321] Exemplarily, the third device opens the ETH port used to connect to the fifth device and sends an RA message on the ETH port. The data link layer of the RA message carries a VLAN ID. The fifth device, a BBU or RU, receives the RA message from the third device on the ETH port used to connect to eCPRI (or CPRI). The BBU or RU creates a VLAN interface corresponding to the VLAN ID carried by the data link layer in the RA message. The VLAN interface created by the BBU or RU is a fronthaul interface, and its VRF is isolated from the VRFs of other VLAN interfaces.

[0322] S703: The fifth device generates third address information according to the router advertisement message.

[0323] As an example, the router advertisement message also includes network layer information, and the prefix of the network layer information indicates network segment information. The fifth device generates the third address information based on the network segment information indicated in the router advertisement message. Optionally, the network layer information also includes a protocol type, and the fifth device generates the third address information based on the network segment information and protocol type indicated in the router advertisement message. The protocol type includes the 7217 protocol or the EUI64 protocol, both of which are existing protocols and are not further explained here.

[0324] S704: The fifth device generates routing information according to the router advertisement message.

[0325] As an example, the fifth device generates the gateway address of the routing information based on the network layer information in the router advertisement message. The network layer information includes the source address of the router advertisement message, and the fifth device uses the source address of the router advertisement message as the gateway address of the routing information.

[0326] In some embodiments, before the third device executes S701, the method further includes:

[0327] S705: The fifth device sends a router request message to the third device.

[0328] As an example, the third device generates network segment information in response to a router request message. Subsequently, the third device executes S701, and the router advertisement message of S701 carries the network segment information. In this example, the third device allocates network segment information to the fifth device based on the router request initiated by the fifth device, so that the fifth device generates the third address information of the fifth device based on the network segment information.

[0329] The link establishment method illustrated in this embodiment is applicable to link establishment in a communication system using Layer 3 devices. A fifth device in the communication system receives a router message from a third device and creates virtual local area network (VLAN) interface information based on the router message. The third device, acting as an address allocation node, can include network segment information in the router advertisement message, allowing the fifth device to generate its address information based on the network segment information in the router advertisement message. The third device can proactively send router advertisement messages or send router advertisement messages upon request from the fifth device. This solution eliminates the need for manual device configuration of address information and provides data support for automatic link establishment in the communication system.

[0330] Figure 7 is a flow chart of a method for establishing a link provided in an embodiment of the present application. The method for establishing a link provided in this embodiment can be applied to a communication system including a third device and a fifth device.

[0331] The third device may be network device 103 in Figure 1 , which is a network layer device, such as a router. The fifth device may be network device 102 (such as an RU / RRU / AAU) or network device 101 (such as a BBU) in Figure 1 . In this embodiment, the third device serves as an address allocation node and may use DHCP to allocate addresses. In some embodiments, the third device is also referred to as a DHCP server node.

[0332] As shown in FIG7 , the method for establishing a link in this embodiment includes the following steps:

[0333] S801. The third device sends an LLDP message to the fifth device.

[0334] In this embodiment, the third device sends an LLDP message on the physical Ethernet port connected to the fifth device.

[0335] S802: The fifth device creates virtual LAN interface information according to the LLDP message.

[0336] As an example, the LLDP message includes an identifier of the virtual LAN interface, and the fifth device creates a virtual LAN interface corresponding to the identifier of the virtual LAN interface according to the identifier of the virtual LAN interface in the LLDP message.

[0337] Exemplarily, the third device opens the ETH port for connecting to the fifth device and sends an LLDP message on the ETH port. The LLDP message includes data link layer information, including a VLAN ID. The fifth device, a BBU or RU, receives the LLDP message from the third device on the ETH port for connecting to eCPRI (or CPRI). The BBU or RU creates a VLAN interface corresponding to the VLAN ID based on the data link layer information in the LLDP message. The VRF of the VLAN interface created by the BBU or RU is isolated from the VRFs of other VLAN interfaces.

[0338] S803: The fifth device sends a Dynamic Host Configuration Protocol request to the third device.

[0339] As an example, the fifth device sends a dynamic host configuration protocol request to the third device on the created virtual local area network interface.

[0340] S804: The third device sends a Dynamic Host Configuration Protocol response to the fifth device.

[0341] S805: The fifth device obtains third address information from the dynamic host configuration protocol response.

[0342] As an example, the fifth device receives a dynamic host configuration protocol response from the third device on the created virtual local area network interface and obtains the third address information from the dynamic host configuration protocol response. After obtaining the third address information, the fifth device configures the address in the third address information on the created virtual local area network interface.

[0343] S806: The fifth device generates routing information according to the dynamic host configuration protocol response.

[0344] As an example, the fifth device uses the default gateway address in the dynamic host configuration protocol response as the gateway address of the routing information.

[0345] The link establishment method illustrated in this embodiment is applicable to link establishment in a communication system using Layer 3 device networking. A fifth device in the communication system receives an LLDP message from a third device and creates virtual local area network (VLAN) interface information based on the LLDP message. The third device is an address allocation node. On the created virtual local area network (VLAN) interface, the fifth device sends a Dynamic Host Configuration Protocol (DHCP) request to the third device, requesting that the third device allocate address information. The fifth device receives a DHCP response from the third device, obtains the fifth device's address information from the response, and generates routing information based on the response. This solution eliminates the need for manual device configuration of addresses and routing information, providing data support for automatically establishing links in the communication system.

[0346] Based on the above embodiments, it can be seen that: when the communication system adopts layer 2 device networking, the second device (such as BBU) serves as the address allocation node, and the first device (such as RU / RRU / AAU) serves as the address request node; when the communication system adopts layer 3 device networking, the third device (layer 3 device, such as a router) serves as the address allocation node, and the fifth device (such as BBU) and the fourth device (such as RU / RRU / AAU) serve as address request nodes. It can be seen that under different network configurations, the functions of each device are different. Therefore, for the first device, the second device, the fourth device, and the fifth device, the device needs to determine whether the current network configuration is layer 2 or layer 3, so that the device can determine whether it is an address allocation node or an address request node, thereby automatically executing the corresponding method steps.

[0347] In this regard, an embodiment of the present application further provides a method for determining an address allocation node, through which a device can identify whether it has address allocation capability.

[0348] To facilitate understanding, the following describes the solution using BBU as an example.

[0349] In one possible implementation, after receiving an LLDP message to create a virtual LAN interface, the BBU sends N RS messages on the created virtual LAN interface to check whether it can receive an RA message in response to the RS message on the created virtual LAN interface. If the BBU receives the RA message, it determines that the BBU is an address requesting node. If the BBU does not receive the RA message, it determines that the BBU is an address allocating node. N is a positive integer.

[0350] Exemplarily, after the second device shown in Figure 3 creates virtual LAN interface information based on the LLDP message, it sends an RS message (not shown in the figure) on the created virtual LAN interface. The second device does not receive an RA message in response to the RS message. The second device can know that it is an address allocation node, and the second device executes the step of generating the second address information.

[0351] Exemplarily, after the first device shown in Figure 3 creates virtual LAN interface information according to the LLDP message, it sends an RS message on the created virtual LAN interface (S407). The first device receives an RA message in response to the RS message (S405), and the first device can know that it is an address requesting node.

[0352] Exemplarily, the fifth device shown in FIG. 6 sends an RS message ( S705 ), and the fifth device receives an RA message in response to the RS message ( S701 ), and the fifth device can know that it is an address requesting node.

[0353] In one possible implementation, after receiving an LLDP message indicating the creation of a virtual LAN interface, the BBU sends N DHCP requests to the created virtual LAN interface and checks whether a DHCP response in response to the DHCP request is received on the created virtual LAN interface. If the BBU receives a DHCP response, it determines that the BBU is an address requesting node. If the BBU does not receive a DHCP response, it determines that the BBU is an address allocating node. N is a positive integer.

[0354] Exemplarily, after the second device shown in Figure 4 creates virtual LAN interface information based on the LLDP message, it sends a DHCP request (not shown in the figure) on the created virtual LAN interface. The second device does not receive a DHCP response in response to the DHCP request. The second device can know that it is an address allocation node, and the second device executes the step of generating the second address information.

[0355] Exemplarily, after the first device shown in FIG4 creates virtual LAN interface information according to the LLDP message, it sends a DHCP request on the created virtual LAN interface (S504), and the first device receives a DHCP response (S506) in response to the DHCP request. The first device can know that it is an address requesting node.

[0356] Exemplarily, after the fifth device shown in Figure 7 creates virtual LAN interface information according to the LLDP message, it sends a DHCP request (S803) on the created virtual LAN interface, and the fifth device receives a DHCP response (S804) in response to the DHCP request. The fifth device can know that it is an address requesting node.

[0357] The present application also provides a method for establishing a link, which can be applied to a communication system including a first device and a second device having a corresponding relationship, wherein the first device is connected to the second device via a layer 2 device (such as a switch) or a layer 3 device (such as a router). The first device can be network device 101 in Figure 1, and the second device can be network device 102 in Figure 1. Network device 101 includes a BBU, and network device 102 includes a RU / RRU / AAU. The process of establishing a link between the first device and the second device is described below with reference to Figure 8.

[0358] FIG8 is a flow chart of a method for establishing a link provided by an embodiment of the present application. As shown in FIG8 , the method for establishing a link in this embodiment includes the following steps:

[0359] S901: A network management device receives configuration information of a first apparatus.

[0360] S902: The network management device receives configuration information of the second apparatus.

[0361] S903: The network management device receives the correspondence between the first device and the second device.

[0362] In this embodiment, the correspondence between the first device and the second device is preconfigured.

[0363] S904: The network management device obtains the address of the service plane of the second device corresponding to the first device according to the correspondence between the first device and the second device. The address of the service plane of the second device includes the address of the service plane of the second device.

[0364] As an example, a network management device obtains an address of a service plane of a second device corresponding to a first device, including: the network management device receives the address of the service plane of the second device from the second device. In this example, after generating the address of the service plane of the second device, the second device reports the address of the service plane of the second device to the network management device.

[0365] Exemplarily, the virtual LAN interfaces created by the second device include multiple virtual LAN interfaces, such as VLAN interface 1, VLAN interface 2, and VLAN interface 3, where VLAN interface 1 is a virtual LAN interface of the service plane. The second device reports the IP address of VLAN interface 1 of the second device to the network management device.

[0366] S905. The network management device sends the address of the service plane of the second device corresponding to the first device to the first device.

[0367] S906: The network management device obtains the address of the service plane of the first device corresponding to the second device according to the correspondence between the first device and the second device. The address of the service plane of the first device includes the address of the service plane of the first device.

[0368] As an example, a network management device obtains the address of the service plane of a first device corresponding to a second device, including: the network management device receives the address of the service plane of the first device from the first device. In this example, after generating the address of the service plane of the first device, the first device reports the address of the service plane of the first device to the network management device.

[0369] Exemplarily, the virtual LAN interfaces created by the first device include multiple virtual LAN interfaces, such as VLAN interface 1, VLAN interface 2, and VLAN interface 3, where VLAN interface 1 is a virtual LAN interface of the service plane. The first device reports the address information of VLAN interface 1 of the first device to the network management device.

[0370] S907. The network management device sends the address of the service plane of the first device corresponding to the second device to the second device.

[0371] S908: The first device establishes a link with the second device.

[0372] Exemplarily, the first device is an address allocation node, for example, the first device is a BBU. After creating the virtual LAN interface information, the first device generates the address of the service plane of the first device and reports the address of the service plane of the first device to the network management device. The first device can also allocate network segment information or address information to the second device, for example, the second device is the RU / RRU / AAU corresponding to the BBU. The second device generates the address of the service plane of the second device based on the network segment information from the first device, or the second device directly obtains the address of the service plane of the second device from the first device, and the second device reports the address of the service plane of the second device to the network management device. The first device can obtain the address of the service plane of the second device through the network management device and establish a link with the second device. The second device can obtain the address of the service plane of the first device through the network management device and establish a link with the first device.

[0373] Exemplarily, neither the first device nor the second device is an address allocation node. The first device can generate or obtain the address of the service plane of the first device through interaction with a layer 3 device (such as a router), and the second device can generate or obtain the address of the service plane of the second device through interaction with a layer 3 device. For example, the first device is a BBU, and the second device is the RU / RRU / AAU corresponding to the BBU. The first device reports the address of the service plane of the first device to the network management device, and the second device reports the address of the service plane of the second device to the network management device. The first device can obtain the address of the service plane of the second device through the network management device and establish a link with the second device. The second device can obtain the address of the service plane of the first device through the network management device and establish a link with the first device.

[0374] FIG9 is a schematic block diagram of a communication device according to an embodiment of the present application. As shown in FIG9 , the device 1000 may include: a processing module 1010 and a transceiver module 1020 .

[0375] Optionally, the communication device 1000 may correspond to the second device in the method embodiment, for example, a BBU, or a component configured in the BBU (such as a chip or chip system). The transceiver module 1020 is configured to receive a first message; the processing module 1010 is configured to create virtual local area network interface information based on the first message, the virtual local area network interface information corresponding to the first information, the first information being used to generate first address information of the first device, or the first information including the first address information; the processing module 1010 is further configured to generate second address information, the second address information corresponding to the virtual local area network interface information.

[0376] It should be understood that the specific process executed by each module has been described in detail in the method embodiments shown in Figures 2 to 4, and for the sake of brevity, it will not be repeated here.

[0377] Optionally, the communication device 1000 may correspond to the first device in the method embodiment, for example, a RU / RRU / AAU, or a component configured in the RU / RRU / AAU (e.g., a chip or chip system). The transceiver module 1020 is configured to receive a first message; the processing module 1010 is configured to create virtual LAN interface information based on the first message; the transceiver module 1020 is further configured to receive first information based on the virtual LAN interface information; the processing module 1010 is further configured to generate first address information based on the first information; the first address information corresponds to the virtual LAN interface information.

[0378] It should be understood that the specific process executed by each module has been described in detail in the method embodiments shown in Figures 2 to 4, and will not be repeated here for the sake of brevity.

[0379] Optionally, the communication device 1000 may correspond to the fifth device in the method embodiment, for example, a BBU, or a RU / RRU / AAU, or a component configured in the BBU or RU / RRU / AAU (such as a chip or chip system). The transceiver module 1020 is configured to receive the second message; the processing module 1010 is configured to: create virtual local area network interface information based on the second message; generate third address information and routing information, where the third address information corresponds to the virtual local area network interface information.

[0380] It should be understood that the specific process executed by each module has been described in detail in the method embodiments shown in Figures 5 to 7, and for the sake of brevity, it will not be repeated here.

[0381] Optionally, the communication device 1000 may correspond to the network management device in the method embodiment, or a component configured in the network management device (e.g., a chip or chip system, etc.). The transceiver module is configured to obtain the address of the service plane of the first device; the transceiver module is further configured to send the address of the service plane of the first device to the second device, and the first device and the second device have a corresponding relationship.

[0382] It should be understood that the specific process executed by each module has been described in detail in the method embodiment shown in Figure 8, and for the sake of brevity, it will not be repeated here.

[0383] The transceiver module 1020 in the communication device 1000 can be implemented by a transceiver, for example, it can correspond to the transceiver 1110 in the communication device 1100 shown in Figure 10, and the processing module 1010 in the communication device 1000 can be implemented by at least one processor, for example, it can correspond to the processor 1120 in the communication device 1100 shown in Figure 10.

[0384] When the communication device 1000 is a chip or chip system configured in a network device (such as BBU, RU / RRU / AAU, network management equipment, etc.), the transceiver module 1020 in the communication device 1000 can be implemented through an input / output interface, circuit, etc., and the processing module 1010 in the communication device 1000 can be implemented through a processor, microprocessor or integrated circuit integrated on the chip or chip system.

[0385] In some embodiments, the above modules may also be referred to as units, for example, the processing module may be referred to as a processing unit, and the transceiver module may be referred to as a transceiver unit.

[0386] Figure 10 is a schematic block diagram of another communication device provided in an embodiment of the present application. As shown in Figure 10, the communication device 1100 may include: a transceiver 1110, a processor 1120, and a memory 1130. The transceiver 1110, the processor 1120, and the memory 1130 communicate with each other via an internal connection path. The memory 1130 is used to store instructions, and the processor 1120 is used to execute the instructions stored in the memory 1130 to control the transceiver 1110 to transmit and / or receive signals.

[0387] It should be understood that the communication device 1100 may correspond to the first device, second device, fifth device, or network management device in the above-mentioned method embodiment, and may be used to execute the various steps and / or processes performed by the first device, second device, fifth device, or network management device in the above-mentioned method embodiment. Optionally, the memory 1130 may include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. The memory 1130 may be a separate device or integrated into the processor 1120. The processor 1120 may be used to execute instructions stored in the memory 1130, and when the processor 1120 executes the instructions stored in the memory, the processor 1120 is used to execute the various steps and / or processes of the above-mentioned method embodiment corresponding to the first device, second device, fifth device, or network management device.

[0388] Optionally, the communication device 1100 is the first device in the above embodiment, such as RU / RRU / AAU.

[0389] Optionally, the communication device 1100 is the second device in the above embodiment, such as a BBU.

[0390] Optionally, the communication device 1100 is the fifth device in the above embodiment, such as a BBU, or a RU / RRU / AAU.

[0391] Optionally, the communication device 1100 is the network management device in the previous embodiment.

[0392] The transceiver 1110 may include a transmitter and a receiver. The transceiver 1110 may further include an antenna, which may be one or more. The processor 1120, memory 1130, and transceiver 1110 may be integrated on different chips. For example, the processor 1120 and memory 1130 may be integrated in a baseband chip, and the transceiver 1110 may be integrated in a radio frequency chip. The processor 1120, memory 1130, and transceiver 1110 may also be integrated on the same chip. This application does not limit this.

[0393] Optionally, the communication device 1100 is a component configured in the first device, the second device, the fifth device or the network management device, such as a chip, a chip system, etc.

[0394] The transceiver 1120 may also be a communication interface, such as an input / output interface, a circuit, etc. The transceiver 1120 , the processor 1110 , and the memory 1130 may all be integrated into the same chip, such as a baseband chip.

[0395] An embodiment of the present application further provides a communication device, comprising at least one processor, wherein the at least one processor is configured to execute a computer program stored in a memory, so that the communication device performs the method steps in any of the aforementioned method embodiments.

[0396] An embodiment of the present application further provides a communication device, comprising a processor and an input / output interface. The input / output interface is coupled to the processor. The input / output interface is configured to input and / or output information. The information includes at least one of instructions and data. The processor is configured to execute a computer program to cause the communication device to perform the method steps of any of the aforementioned method embodiments.

[0397] The present application also provides a communication device including a processor and a memory, wherein the memory is configured to store a computer program, and the processor is configured to call and execute the computer program from the memory, so that the communication device executes the method steps of any of the aforementioned method embodiments.

[0398] It should be understood that the above-mentioned communication device may be one or more chips. For example, the communication device may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0399] During implementation, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor or by instructions in the form of software. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it will not be described in detail here.

[0400] It should be noted that the processor in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of any of the aforementioned method embodiments can be completed by hardware integrated logic circuits in the processor or by instructions in the form of software. The aforementioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0401] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may 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), or a flash memory. The volatile memory may 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 RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0402] According to the method provided in the embodiments of the present application, the present application also provides a computer program product, which includes: computer program instructions, which, when executed on a computer, enable the computer to execute the method steps in any of the aforementioned method embodiments.

[0403] According to the method provided in the embodiments of the present application, the present application also provides a computer-readable storage medium, which stores program code. When the program code runs on a computer, the computer executes the method steps in any of the aforementioned method embodiments.

[0404] According to the method provided in the embodiment of the present application, the present application also provides a communication system, which may include the aforementioned first device (such as RU / RRU / AAU), a second device (such as BBU), and a sixth device (layer 2 device, such as a switch), or include the aforementioned fifth device (such as BBU, RU) and a third device (layer 3 device, such as a router). Optionally, the communication system also includes a network management device.

[0405] As used in this specification, the terms "component," "module," "unit," "system," and the like are used to refer to computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or a computer. By way of illustration, both an application running on a computing device and a computing device can be a component. One or more components can reside in a process and / or an execution thread, and a component can be located on a computer and / or distributed between two or more computers. In addition, these components can be executed from various computer-readable media having various data structures stored thereon. Components can communicate, for example, via local and / or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component across a local system, a distributed system, and / or a network, such as the Internet interacting with other systems via signals).

[0406] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0407] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0408] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely 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 integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0410] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0411] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the part that essentially contributes to the technical solution of the present application or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.

[0412] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for establishing a link, characterized in that: include: receiving a first message; creating virtual local area network interface information according to the first message, where the virtual local area network interface information corresponds to the first information, the first information being used to generate first address information of the first device, or the first information including the first address information; Second address information is generated, where the second address information corresponds to the virtual local area network interface information.

2. The method according to claim 1, characterized in that The first message is a link layer discovery protocol message.

3. The method according to claim 1 or 2, characterized in that The first message includes identifiers of one or more virtual local area network interfaces; Creating virtual local area network interface information according to the first message includes: Creating, according to an identifier of a virtual local area network interface in the first message, the virtual local area network interface on a physical Ethernet port that receives the first message; or According to the identifiers of the multiple virtual local area network interfaces in the first message, the multiple virtual local area network interfaces are created on the physical Ethernet port that receives the first message.

4. The method according to any one of claims 1 to 3, characterized in that The virtual LAN interface information includes a virtual LAN interface, and the second address information includes address information of the virtual LAN interface; or The virtual local area network interface information includes multiple virtual local area network interfaces, and the second address information includes address information of the multiple virtual local area network interfaces.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The first information is sent to the first device through the created virtual local area network interface.

6. The method according to claim 5, characterized in that The first information is used to generate first address information of the first device; Sending the first information to the first device on the created virtual local area network interface includes: A router advertisement message is sent to the first device on the created virtual local area network interface, where the router advertisement message includes the first information, and the first information includes network segment information.

7. The method according to claim 6, characterized in that Before sending the router advertisement message to the first device on the created virtual local area network interface, the method further includes: Receive router solicitation messages on the created VLAN interface.

8. The method according to claim 5, characterized in that The first information includes the first address information; and sending the first information to the first device on the created virtual local area network interface includes: Receive Dynamic Host Configuration Protocol requests on the created virtual LAN interface; A dynamic host configuration protocol response is sent to the first device on the created virtual local area network interface, where the dynamic host configuration protocol response includes the first information.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: Send the service plane address in the second address information to the network management device.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: Receive the service plane address in the first address information of the first device from a network management device.

11. The method according to any one of claims 1 to 10, characterized in that The method further comprises: The link is established according to the address of the service plane in the second address information and the address of the service plane in the first address information of the first device.

12. A method for establishing a link, characterized in that: include: receiving a first message; Creating virtual local area network interface information according to the first message; receiving first information according to the virtual local area network interface information; First address information is generated according to the first information; the first address information corresponds to the virtual local area network interface information.

13. The method according to claim 12, characterized in that The first message is a link layer discovery protocol message.

14. The method according to claim 12 or 13, characterized in that The first message includes identifiers of one or more virtual local area network interfaces; Creating virtual local area network interface information according to the first message includes: Creating, according to an identifier of a virtual local area network interface in the first message, the virtual local area network interface on a physical Ethernet port that receives the first message; or According to the identifiers of the multiple virtual local area network interfaces in the first message, the multiple virtual local area network interfaces are created on the physical Ethernet port that receives the first message.

15. The method according to any one of claims 12 to 14, characterized in that The virtual LAN interface information includes a first virtual LAN interface, where the first virtual LAN interface is any interface in the virtual LAN interface information, and the first information includes first information corresponding to the first virtual LAN interface; Receiving first information according to the virtual local area network interface information includes: Receiving first information corresponding to the first virtual local area network on the first virtual local area network interface; Generating first address information according to the first information includes: Generate the address information of the first virtual LAN interface in the first address information according to the first information corresponding to the first virtual LAN interface; or obtain the address information of the first virtual LAN interface from the first information corresponding to the first virtual LAN interface.

16. The method according to any one of claims 12 to 15, characterized in that The virtual local area network interface information includes a virtual local area network interface, and the first address information includes address information of the virtual local area network interface; or The virtual local area network interface information includes multiple virtual local area network interfaces, and the first address information includes address information of the multiple virtual local area network interfaces.

17. The method according to any one of claims 12 to 16, characterized in that Receiving first information according to the virtual local area network interface information includes: receiving a router advertisement message on the created virtual local area network interface, wherein the router advertisement message includes the first information, and the first information includes network segment information; Generating the first address information according to the first information includes: The first address information is generated according to the network segment information in the first information.

18. The method according to claim 17, characterized in that Before receiving the router advertisement message on the created virtual local area network interface, the method further includes: Send a router solicitation message on the created VLAN interface.

19. The method according to any one of claims 12 to 16, characterized in that Receiving first information according to the virtual local area network interface information includes: Send DHCP requests on the created VLAN interface; receiving a dynamic host configuration protocol response on the created virtual local area network interface, wherein the dynamic host configuration protocol response includes the first information, and the first information includes the first address information; Generating the first address information according to the first information includes: The first address information is obtained from the first information in the dynamic host configuration protocol response.

20. The method according to any one of claims 12 to 19, characterized in that The method further comprises: Send the service plane address in the first address information to the network management device.

21. The method according to any one of claims 12 to 20, characterized in that The method further comprises: Receive the service plane address in the second address information of the second device from the network management device.

22. The method according to any one of claims 12 to 21, characterized in that The method further comprises: The link is established according to the address of the service plane in the first address information and the address of the service plane in the second address information of the second device.

23. A method for establishing a link, characterized in that: include: receiving a second message; Creating virtual local area network interface information according to the second message; Third address information and routing information are generated, where the third address information corresponds to the virtual local area network interface information.

24. The method according to claim 23, wherein The second message is the link layer discovery protocol message, and the link layer discovery protocol message includes identifiers of one or more virtual local area network interfaces; Creating virtual local area network interface information according to the second message includes: Creating, according to an identifier of a virtual local area network interface in the link layer discovery protocol message, the virtual local area network interface on the physical Ethernet port that receives the link layer discovery protocol message; or According to the identifiers of the multiple virtual local area network interfaces in the link layer discovery protocol message, the multiple virtual local area network interfaces are created on the physical Ethernet port that receives the link layer discovery protocol message.

25. The method according to claim 23, characterized in that The second message is a router advertisement message, Receiving the second message includes: Receive one or more router advertisement messages; the data link layer of the router advertisement message carries an identifier of a virtual local area network interface; Creating virtual local area network interface information according to the second message includes: According to the identifier of the virtual local area network interface carried by the data link layer of the router advertisement message, the virtual local area network interface is created on the physical Ethernet port that receives the router advertisement message.

26. The method according to any one of claims 23 to 25, characterized in that The virtual LAN interface information includes a virtual LAN interface, and the third address information includes address information of the virtual LAN interface; or The virtual local area network interface information includes multiple virtual local area network interfaces, and the third address information includes address information of the multiple virtual local area network interfaces.

27. The method according to any one of claims 23 to 26, characterized in that Generate third-party address information and routing information, including: sending a dynamic host configuration protocol request to the third device on the created virtual local area network interface; receiving a Dynamic Host Configuration Protocol response on the created virtual LAN interface; Acquire the third address information from the dynamic host configuration protocol response; The default gateway address in the dynamic host configuration protocol response is used as the gateway address of the routing information.

28. The method according to any one of claims 23 to 26, characterized in that The second message is a router advertisement message; Generate third-party address information and routing information, including: generating the third address information according to the second message; The routing information is generated according to the second message.

29. The method according to claim 28, characterized in that The second message includes network segment information; Generating the third address information according to the second message includes: The third address information is generated according to the network segment information in the second message.

30. The method according to claim 28 or 29, characterized in that Generating the routing information according to the second message includes: The source address of the second message is used as the gateway address of the routing information.

31. The method according to any one of claims 28 to 30, characterized in that Before receiving the second message, the method further includes: Send a router solicitation message.

32. The method according to any one of claims 23 to 31, characterized in that The method further comprises: Send the service plane address in the third address information to the network management device.

33. The method according to any one of claims 23 to 32, characterized in that The method further comprises: Receive the address of the service plane in the fourth address information of the fourth device from the network management device.

34. The method according to any one of claims 23 to 33, characterized in that The method further comprises: The link is established according to the address of the service plane in the third address information and the address of the service plane in the fourth address information of the fourth device.

35. A method for establishing a link, characterized in that: include: Obtaining an address of a service plane of the first device; The address of the service plane of the first device is sent to a second device, and the first device and the second device have a corresponding relationship.

36. The method according to claim 35, characterized in that The correspondence between the first device and the second device is preconfigured.

37. The method according to claim 35 or 36, characterized in that Obtaining an address of a service plane of the first device includes: An address of a service plane of the first device is received from the first device.

38. The method according to any one of claims 35 to 37, characterized in that The method further comprises: Obtaining an address of a service plane of the second device; Sending the address of the service plane of the second apparatus to the first apparatus.

39. The method according to claim 38, characterized in that Obtaining an address of a service plane of the second device includes: An address of a service plane of the second device is received from the second device.

40. The method according to any one of claims 35 to 39, characterized in that The method further comprises: Acquire configuration information of the first device and configuration information of the second device.

41. A communication device, characterized in that Comprising a unit for performing the method as claimed in any one of claims 1 to 11, or comprising a unit for performing the method as claimed in any one of claims 12 to 22, or comprising a unit for performing the method as claimed in any one of claims 23 to 34, or comprising a unit for performing the method as claimed in any one of claims 35 to 40.

42. A communication device, characterized in that include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to perform the method according to any one of claims 1 to 11, or the method according to any one of claims 12 to 22, or the method according to any one of claims 23 to 34, or the method according to any one of claims 35 to 40.

43. A chip, characterized in that: include: A processor for calling and executing computer instructions from a memory so that a device equipped with the chip performs the method according to any one of claims 1 to 11, or the method according to any one of claims 12 to 22, or the method according to any one of claims 23 to 34, or the method according to any one of claims 35 to 40.

44. A computer-readable storage medium, characterized in that Used to store computer program instructions, the computer program causing a computer to perform the method according to any one of claims 1 to 11, or the method according to any one of claims 12 to 22, or the method according to any one of claims 23 to 34, or the method according to any one of claims 35 to 40.

45. A computer program product, characterized in that Comprising computer program instructions, the computer program instructions cause a computer to perform the method according to any one of claims 1 to 11, or the method according to any one of claims 12 to 22, or the method according to any one of claims 23 to 34, or the method according to any one of claims 35 to 40.

Citation Information

Patent Citations

  • Dynamic building of VLAN interfaces based on subscriber information

    CN101026519A

  • Method for establishing service tunnel, storage medium and equipment

    CN112187611A

  • Base station configuration method and device, equipment and medium

    CN112584393A

  • Network system and method for automatically creating and setting virtual network interface

    JP2010206483A

  • Networking method of communication apparatus, communication apparatus and storage medium

    US20110145426A1