Link establishment method, device, and storage medium

Network devices automatically configure virtual local area network interfaces and generate address information to simplify link establishment, addressing the complexity of manual parameter configuration in communication systems.

JP2026502550APending Publication Date: 2026-01-23HUAWEI TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
JP2025540826
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-01-13
Publication Date
2026-01-23

AI Technical Summary

Technical Problem

Current communication systems require manual configuration of transmission-related parameters for network devices, complicating adjustments to communication links.

Method used

Network devices automatically generate transmission-related configuration parameters by creating virtual local area network interfaces and generating address information based on received packets, eliminating the need for manual configuration.

Benefits of technology

Facilitates automatic link establishment between network devices, simplifying the configuration process and enhancing operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026502550000001_ABST
    Figure 2026502550000001_ABST
Patent Text Reader

Abstract

The present application provides a link establishment method, an apparatus, and a storage medium. The method includes: a second device receiving a first packet; creating virtual local area network interface information based on the first packet; generating address information for the second device; and transmitting the first information to the first device, wherein the first information corresponds to the virtual local area network interface information, and the first information is used to generate first address information for the first device, or the first information includes the first address information. The above solution eliminates the need to manually configure the address information of the device, and therefore the device automatically configures the virtual local area network interface information and provides data support for link establishment.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present application relates to the field of communications technology, and in particular to a link establishment method, apparatus, and storage medium. [Background technology]

[0002] Currently, transmission-related parameters of network devices in a communication system link, such as virtual local area network (VLAN) interface information, internet protocol (IP) addresses, and routes, are mainly configured manually by operation and maintenance personnel. For example, parameters of the control and manager (C&M) plane, service plane, and clock plane of a baseband unit (BBU) or radio unit (RU) in the link are configured. When the communication system link needs to be adjusted, the configuration of the BBU or RU needs to be modified separately again, which makes the operation complicated. Summary of the Invention

[0003] The present application provides a link establishment method, apparatus, and storage medium, whereby network devices in a link automatically generate transmission-related configuration parameters to provide data support for the devices' automatic link establishment.

[0004] A first aspect of the present application provides a link establishment method applicable to a communication system using layer 2 (L2) networking, the method including: receiving a first packet; creating virtual local area network interface information based on the first packet, the virtual local area network interface information corresponding to 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; and generating second address information, the second address information corresponding to the virtual local area network interface information.

[0005] In the above solution, the device creates a virtual local area network interface based on the received first packet, and generates an address corresponding to the virtual local area network interface without manually configuring address information of the device, thus the device automatically configures virtual local area network interface information to provide data support for link establishment.

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

[0007] In the above solution, the device receives a link layer discovery protocol packet, and thus a virtual local area network interface is created based on the packet.

[0008] In an optional embodiment of the first aspect, the first packet includes an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces, and creating virtual local area network interface information based on the first packet includes creating one virtual local area network interface on a physical Ethernet port that receives the first packet based on the identifier of the one virtual local area network interface in the first packet, or creating multiple virtual local area network interfaces on the physical Ethernet port that receives the first packet based on the identifiers of the multiple virtual local area network interfaces in the first packet.

[0009] In the above solution, the device creates a virtual local area network interface based on the identifier of the virtual local area network interface in the received first packet, and the quantity of the identifiers of the virtual local area network interfaces is the same as the quantity of the created virtual local area network interfaces, so that the device automatically configures one virtual local area network interface or multiple virtual local area network interfaces.

[0010] Optionally, the created virtual local area network interfaces may include a service plane virtual local area network interface, a management plane virtual local area network interface, and a clock plane virtual local area network interface, and the multiple virtual local area network interfaces are separated from each other.

[0011] In an optional embodiment of the first aspect, the virtual local area network interface information includes one virtual local area network interface and the second address information includes address information of the one virtual local area network 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 multiple virtual local area network interfaces.

[0012] In the above solution, the device generates corresponding second address information based on the virtual local area network interface information, and the second address information includes address information of one virtual local area network interface created by the device or address information of multiple virtual local area network interfaces created by the device, so that the device automatically generates the address information of the one virtual local area network interface or the address information of multiple virtual local area network interfaces to provide data support for link establishment.

[0013] In an optional embodiment of the first aspect, the method further includes transmitting the first information to the first device over the created virtual local area network interface.

[0014] In the above solution, a device transmits first information, and thus a peer device (i.e., the first device) generates address information of the peer device based on the first information or directly obtains address information of the peer device from the first information.

[0015] In an optional embodiment of the first aspect, the first information is used to generate first address information for the first device, and sending the first information to the first device over the created virtual local area network interface includes sending a router advertisement packet to the first device over the created virtual local area network interface, wherein the router advertisement packet includes the first information, and the first information includes network segment information.

[0016] In the above solution, the device transmits the first information by using a router advertisement packet, so that the peer device generates the address information of the peer device based on the router advertisement packet.

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

[0018] In the above solution, the device transmits the first information by using a router advertisement packet in response to a router solicitation packet of the peer device, so that the peer device can generate address information of the peer device based on the router advertisement packet, and the peer device automatically generates the address information of the peer device.

[0019] In an optional embodiment of the first aspect, the first information includes first address information, and sending the first information to the first device over the created virtual local area network interface includes receiving a Dynamic Host Configuration Protocol request over the created virtual local area network interface; and sending a Dynamic Host Configuration Protocol response to the first device over the created virtual local area network interface, the Dynamic Host Configuration Protocol response including the first information.

[0020] In the above solution, the device sends the first information by using a Dynamic Host Configuration Protocol response in response to a Dynamic Host Configuration Protocol request of the peer device, so that the peer device can obtain the address information of the peer device from the Dynamic Host Configuration Protocol response.

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

[0022] 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, and thus the network management device notifies the peer device of the service plane address.

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

[0024] In the above solution, a device learns about the service plane addresses of peer devices through a network management device.

[0025] In an optional embodiment of the first aspect, the method further includes establishing a link based on a service plane address in the second address information and a service plane address in the first address information of the first device.

[0026] In the above solution, devices automatically establish links based on their service plane addresses and the service plane addresses of the peer devices, known from the network management device.

[0027] In an optional embodiment of the first aspect, the method further includes sending Router Solicitation packets N times, where N is a positive integer, and generating second address information if no Router Advertisement packets are received.

[0028] In the above solution, the device determines whether it is an address allocation node by sending a router solicitation packet based on whether a response packet, i.e., a router advertisement packet, is received. If the device does not receive a router advertisement packet, the device can autonomously generate second address information.

[0029] In an optional embodiment of the first aspect, the method further includes sending Dynamic Host Configuration Protocol requests N times, where N is a positive integer, and generating second address information if no Dynamic Host Configuration Protocol response is received.

[0030] In the above solution, a device determines whether it is an address allocating node by sending a Dynamic Host Configuration Protocol request based on whether a response to the request, i.e., a Dynamic Host Configuration Protocol response, is received. If the device does not receive a Dynamic Host Configuration Protocol response, the device may autonomously generate address information for the device.

[0031] A second aspect of the present application provides a link establishment method applicable to a communication system using layer 2 (L2) networking, the method including: receiving a first packet, creating virtual local area network interface information based on the first packet, receiving first information based on the virtual local area network interface information, and generating first address information based on the first information, where the first address information corresponds to the virtual local area network interface information.

[0032] In the above solution, the device generates an address corresponding to the virtual local area network interface without manually configuring address information of the device by receiving first information of the peer device on a virtual local area network interface created based on the first information, and thus the device automatically configures virtual local area network interface information to provide data support for link establishment.

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

[0034] In the above solution, the device receives a link layer discovery protocol packet, and thus a virtual local area network interface is created based on the packet.

[0035] In an optional embodiment of the second aspect, the first packet includes an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces, and creating virtual local area network interface information based on the first packet includes creating one virtual local area network interface on the physical Ethernet port that receives the first packet based on the identifier of the one virtual local area network interface in the first packet, or creating multiple virtual local area network interfaces on the physical Ethernet port that receives the first packet based on the identifiers of the multiple virtual local area network interfaces in the first packet.

[0036] In the above solution, the device creates a virtual local area network interface based on the identifier of the virtual local area network interface in the received first packet, and the quantity of the identifiers of the virtual local area network interfaces is the same as the quantity of the created virtual local area network interfaces, so that the device automatically configures one virtual local area network interface or multiple virtual local area network interfaces.

[0037] In an optional embodiment of the second aspect, the virtual local area network interface information includes a first virtual local area network interface, the first virtual local area network interface is any interface in the virtual local area network interface information, the first information includes first information corresponding to the first virtual local area network interface, receiving the first information based on the virtual local area network interface information includes receiving the first information corresponding to the first virtual local area network interface on the first virtual local area network interface, and generating first address information based on the first information includes generating address information for the first virtual local area network interface in the first address information based on the first information corresponding to the first virtual local area network interface or obtaining address information for the first virtual local area network interface from the first information corresponding to the first virtual local area network interface. Optionally, the method further includes configuring an address in the address information of the first virtual local area network interface on the created first virtual local area network interface.

[0038] In the above solution, after creating one virtual local area network interface or multiple virtual local area network interfaces, the device receives first information corresponding to the virtual local area network interface on the corresponding virtual local area network interface, and determines an address of the virtual local area network interface based on the first information corresponding to the virtual local area network interface, thus the device automatically generates an address of the one virtual local area network interface created by the device or addresses of the multiple virtual local area network interfaces created by the device to provide data support for link establishment.

[0039] In an optional embodiment of the second aspect, the virtual local area network interface information includes one virtual local area network interface and the first address information includes address information of the one 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.

[0040] In the above solution, the device generates corresponding first address information based on the virtual local area network interface information, and the first address information includes address information of one virtual local area network interface created by the device or address information of multiple virtual local area network interfaces created by the device, so that the device automatically generates the address information of the one virtual local area network interface or the address information of multiple virtual local area network interfaces to provide data support for link establishment.

[0041] In an optional embodiment of the second aspect, receiving first information based on the virtual local area network interface information includes receiving a router advertisement packet on the created virtual local area network interface, wherein the router advertisement packet includes the first information, and the first information includes network segment information; and generating first address information based on the first information includes generating the first address information based on the network segment information in the first information.

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

[0043] In the above solution, the device obtains network segment information by receiving a router advertisement packet, and generates address information of the device based on the network segment information; thus, the device automatically generates address information of the device to provide data support for link establishment.

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

[0045] In the above solution, a device actively initiates a router solicitation packet, and thus the device obtains the network segment information allocated to the device by a peer device by receiving the router advertisement packet of the peer device.

[0046] In an optional embodiment of the second aspect, receiving the first information based on the virtual local area network interface information includes sending a Dynamic Host Configuration Protocol request on the created virtual local area network interface and receiving a Dynamic Host Configuration Protocol response on the created virtual local area network interface, the Dynamic Host Configuration Protocol response including the first information, the first information including first address information, and generating the first address information based on the first information includes obtaining the first address information from the first information in the Dynamic Host Configuration Protocol response.

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

[0048] In the above solution, a device actively initiates a Dynamic Host Configuration Protocol request, and thus the device obtains the address information allocated to the device by the peer device by receiving the Dynamic Host Configuration Response of the peer device.

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

[0050] 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, and thus the network management device notifies the peer device of the service plane address.

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

[0052] In the above solution, a device learns about the service plane addresses of peer devices through a network management device.

[0053] In an optional embodiment of the second aspect, the method further includes establishing a link based on a service plane address in the first address information and a service plane address in the second address information of the second device.

[0054] In the above solution, devices automatically establish links based on their service plane addresses and the service plane addresses of the peer devices, known from the network management device.

[0055] A third aspect of the present application provides a link establishment method applicable to a communication system using layer 3 (L3) networking, the method including receiving a second packet, creating virtual local area network interface information based on the second packet, and generating third address information and routing information, where the third address information corresponds to the virtual local area network interface information.

[0056] In the above solution, the device creates a virtual local area network interface based on the received second packet, and generates an address and a route corresponding to the virtual local area network interface without manually configuring the address and the route of the device, thus the device automatically configures the address and the route of the virtual local area network interface to provide data support for link establishment.

[0057] In an optional embodiment of the third aspect, the second packet is a link layer discovery protocol packet, the link layer discovery protocol packet including an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces, and creating the virtual local area network interface information based on the second packet includes creating one virtual local area network interface on the physical Ethernet port that receives the link layer discovery protocol packet based on the identifier of the one virtual local area network interface in the link layer discovery protocol packet, or creating multiple virtual local area network interfaces on the physical Ethernet port that receives the link layer discovery protocol packet based on the identifiers of the multiple virtual local area network interfaces in the link layer discovery protocol packet.

[0058] In the above solution, the device creates virtual local area network interface information based on the identifiers of the virtual local area network interfaces in the packet by receiving a link layer discovery protocol packet, and the number of virtual local area network interfaces is the same as the number of identifiers of the virtual local area network interfaces in the packet, so that the device automatically configures one virtual local area network interface or multiple virtual local area network interfaces.

[0059] In an optional embodiment of the third aspect, the second packet is a Router Advertisement packet, receiving the second packet includes receiving one or more Router Advertisement packets, wherein a data link layer of the Router Advertisement packet carries an identifier of one virtual local area network interface, and creating virtual local area network interface information based on the second packet includes creating one virtual local area network interface on the physical Ethernet port that receives the Router Advertisement packet based on the identifier of the one virtual local area network interface carried by the data link layer of the Router Advertisement packet.

[0060] In the above solution, by receiving one or more router advertisement packets, the device creates virtual local area network interface information based on the identifiers of the virtual local area network interfaces carried by the data link layer of the one or more router advertisement packets, and the amount of virtual local area network interfaces is the same as the amount of received router advertisement packets, so that the device automatically configures one virtual local area network interface or multiple virtual local area network interfaces.

[0061] In an optional embodiment of the third aspect, the virtual local area network interface information includes one virtual local area network interface and the third address information includes address information of the one virtual local area network 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.

[0062] In the above solution, the device generates corresponding third address information based on the virtual local area network interface information, and the third address information includes address information of one virtual local area network interface created by the device or address information of multiple virtual local area network interfaces created by the device, so that the device automatically generates address information of one virtual local area network interface or address information of multiple virtual local area network interfaces to provide data support for link establishment.

[0063] In an optional embodiment of the third aspect, generating the third address information and the routing information includes 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 local area network interface, obtaining the third address information from the Dynamic Host Configuration Protocol response, and using a default gateway address in the Dynamic Host Configuration Protocol response as a gateway address for the routing information.

[0064] Optionally, the method further comprises configuring an address in the third address information on the created virtual local area network interface.

[0065] In the above solution, a device actively initiates a Dynamic Host Configuration Protocol request to a third device, and the third device is a network layer device (e.g., a router) that obtains address information allocated to the device by the third device by receiving a Dynamic Host Configuration Protocol response from the third device, and determines a gateway address in routing information based on the Dynamic Host Configuration Protocol response.

[0066] In an optional embodiment of the third aspect, the second packet is a router advertisement packet, and generating the third address information and the routing information includes generating the third address information based on the second packet and generating the routing information based on the second packet.

[0067] In the above solution, a device generates its address information and routing information by receiving router advertisement packets.

[0068] In an optional embodiment of the third aspect, the second packet includes network segment information, and generating the third address information based on the second packet includes generating the third address information based on the network segment information in the second packet, where the second packet may be a Router Advertisement packet.

[0069] In the above solution, the device automatically generates the address information of the device by using the network segment information in the second packet.

[0070] Optionally, the method further comprises configuring an address in the third address information on the created virtual local area network interface.

[0071] In an optional embodiment of the third aspect, generating the routing information based on the second packet includes using a source address of the second packet as a gateway address of the routing information, where the second packet may be a Router Advertisement packet.

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

[0073] In an optional embodiment of the third aspect, before receiving the second packet, the method further includes sending a router solicitation packet, where the second packet may be a router advertisement packet.

[0074] In the above solution, a device generates its address information and routing information by actively initiating Router Solicitation packets and receiving Router Advertisement packets.

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

[0076] 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, and thus the network management device notifies the peer device of the service plane address.

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

[0078] In the above solution, a device learns about the service plane addresses of peer devices through a network management device.

[0079] In an optional embodiment of the third aspect, the method further includes establishing a link based on a service plane address in the third address information and a service plane address in the fourth address information of the fourth device.

[0080] In the above solution, devices automatically establish links based on their service plane addresses and the service plane addresses of the peer devices, known from the network management device.

[0081] A fourth aspect of the present application provides a link establishment method, the method including: obtaining a service plane address of a first device; and sending the service plane address of the first device to a second device, where there is a correspondence between the first device and the second device.

[0082] In the above solution, the device transmits the service plane address of the first device corresponding to the second device to the second device, so that the second device knows about the service plane address of the first device corresponding to the second device and provides data support for link establishment.

[0083] In an optional embodiment of the fourth aspect, the correspondence between the first device and the second device is pre-configured.

[0084] 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.

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

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

[0087] In the above solution, the device transmits to the first device the service plane address of the second device corresponding to the first device, so that the first device knows about the service plane address of the second device corresponding to the first device and provides data support for link establishment.

[0088] 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.

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

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

[0091] According to a fifth aspect, an embodiment of the present application provides a link establishment method, the method including: sending a first packet to an access network device, where the first packet is used by the access network device to create virtual local area network interface information, and the access network device may be an execution device in the first aspect, the second aspect, the third aspect, or an optional embodiment.

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

[0093] In an optional embodiment of the fifth aspect, the first packet comprises a link layer discovery protocol packet or a router advertisement packet.

[0094] A sixth aspect of the present application provides a communications apparatus, including: a transceiver module configured to receive a first packet; and a processing module configured to create virtual local area network interface information based on the first packet, where the virtual local area network interface information corresponds to first information, and the first information is used to generate first address information of a first device or the first information includes the first address information, and the processing module is further configured to generate second address information, where the second address information corresponds to the virtual local area network interface information.

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

[0096] In an optional embodiment of the sixth aspect, the first packet includes an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces, and the processing module is configured to create one virtual local area network interface on the physical Ethernet port that receives the first packet based on the identifier of the one virtual local area network interface in the first packet, or create multiple virtual local area network interfaces on the physical Ethernet port that receives the first packet based on the identifiers of the multiple virtual local area network interfaces in the first packet.

[0097] In an optional embodiment of the sixth aspect, the virtual local area network interface information includes one virtual local area network interface and the second address information includes address information of the one virtual local area network 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 multiple virtual local area network interfaces.

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

[0099] In an optional embodiment of the sixth aspect, the first information is used to generate first address information of the first device, and the transceiver module is further configured to: send a router advertisement packet to the first device over the created virtual local area network interface, wherein the router advertisement packet includes the first information, and the first information includes network segment information.

[0100] In an optional embodiment of the sixth aspect, prior to sending a router advertisement packet to the first device on the created virtual local area network interface, the transceiver module is further configured to receive a router solicitation packet on the created virtual local area network interface.

[0101] In an optional embodiment of the sixth aspect, the first information includes first address information, and the transceiver module is configured to receive a Dynamic Host Configuration Protocol request over the created virtual local area network interface and send a Dynamic Host Configuration Protocol response over the created virtual local area network interface to the first device, the Dynamic Host Configuration Protocol response including the first information.

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

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

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

[0105] For the advantageous effects of the sixth aspect and optional embodiments thereof, please refer to the advantageous effects provided by the first aspect and optional embodiments thereof, and the details will not be described again here.

[0106] A seventh aspect of the present application provides a communications device, including: a transceiver module configured to receive a first packet; and a processing module configured to create virtual local area network interface information based on the first packet, wherein the transceiver module is further configured to receive the first information based on the virtual local area network interface information, and the processing module is further configured to generate first address information based on the first information, where the first address information corresponds to the virtual local area network interface information.

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

[0108] In an optional embodiment of the seventh aspect, the first packet includes an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces, and the processing module is configured to: create one virtual local area network interface on the physical Ethernet port that receives the first packet based on the identifier of the one virtual local area network interface in the first packet, or create multiple virtual local area network interfaces on the physical Ethernet port that receives the first packet based on the identifiers of the multiple virtual local area network interfaces in the first packet.

[0109] In an optional embodiment of the seventh aspect, the virtual local area network interface information includes a first virtual local area network interface, the first virtual local area network interface is any interface in the virtual local area network interface information, the first information includes first information corresponding to the first virtual local area network interface, the transceiver module is configured to receive the first information corresponding to the first virtual local area network interface on the first virtual local area network interface, and the processing module is configured to generate address information of the first virtual local area network interface in the first address information based on the first information corresponding to the first virtual local area network interface or obtain the address information of the first virtual local area network interface from the first information corresponding to the first virtual local area network interface.

[0110] In an optional embodiment of the seventh aspect, the virtual local area network interface information includes one virtual local area network interface and the first address information includes address information of the one 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.

[0111] In an optional embodiment of the seventh aspect, the transceiver module is configured to receive a router advertisement packet on the created virtual local area network interface, the router advertisement packet including first information, the first information including network segment information, and the processing module is configured to generate first address information based on the network segment information in the first information.

[0112] In an optional embodiment of the seventh aspect, before receiving a router advertisement packet on the created virtual local area network interface, the transceiver module is further configured to send a router solicitation packet on the created virtual local area network interface.

[0113] In an optional embodiment of the seventh aspect, the transceiver module is configured to send a Dynamic Host Configuration Protocol request on the created virtual local area network interface and receive a Dynamic Host Configuration Protocol response on the created virtual local area network interface, the Dynamic Host Configuration Protocol response including first information, the first information including first address information, and the processing module is configured to obtain the first address information from the first information in the Dynamic Host Configuration Protocol response.

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

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

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

[0117] For the advantageous effects of the seventh aspect and optional embodiments thereof, please refer to the advantageous effects provided by the second aspect and optional embodiments thereof, and the details will not be described again here.

[0118] An eighth aspect of the present application provides a communications device, including: a transceiver module configured to receive a second packet; and a processing module configured to create virtual local area network interface information based on the second packet, and generate third address information and routing information, where the third address information corresponds to the virtual local area network interface information.

[0119] In an optional embodiment of the eighth aspect, the second packet is a link layer discovery protocol packet, and the link layer discovery protocol packet includes an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces, and the processing module is configured to create one virtual local area network interface on the physical Ethernet port that receives the link layer discovery protocol packet based on the identifier of the one virtual local area network interface in the link layer discovery protocol packet, or create multiple virtual local area network interfaces on the physical Ethernet port that receives the link layer discovery protocol packet based on the identifiers of the multiple virtual local area network interfaces in the link layer discovery protocol packet.

[0120] In an optional embodiment of the eighth aspect, the second packet is a Router Advertisement packet, the transceiver module is configured to receive one or more Router Advertisement packets, wherein a data link layer of the Router Advertisement packet carries an identifier of one virtual local area network interface, and the processing module is configured to create one virtual local area network interface on the physical Ethernet port that receives the Router Advertisement packet based on the identifier of the one virtual local area network interface carried by the data link layer of the Router Advertisement packet.

[0121] In an optional embodiment of the eighth aspect, the virtual local area network interface information includes one virtual local area network interface and the third address information includes address information of the one virtual local area network 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.

[0122] In an optional embodiment of the eighth aspect, the transceiver module is configured to send a Dynamic Host Configuration Protocol request to the third device over the created virtual local area network interface and receive a Dynamic Host Configuration Protocol response over the created virtual local area network interface, and the processing module is configured to obtain third address information from the Dynamic Host Configuration Protocol response and use a default gateway address in the Dynamic Host Configuration Protocol response as a gateway address for the routing information.

[0123] In an optional embodiment of the eighth aspect, the second packet is a router advertisement packet, and the processing module is configured to generate third address information based on the second packet and generate routing information based on the second packet.

[0124] In an optional embodiment of the eighth aspect, the second packet includes network segment information, and the processing module is configured to generate the third address information based on the network segment information in the second packet.

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

[0126] In an optional embodiment of the eighth aspect, before receiving the second packet, the transceiver module is configured to transmit a router solicitation packet.

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

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

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

[0130] For the advantageous effects of the eighth aspect and optional embodiments thereof, please refer to the advantageous effects provided by the third aspect and optional embodiments thereof, and the details will not be described again here.

[0131] A ninth aspect of the present application provides a communication device, including a transceiver module configured to obtain a service plane address of a first device, the transceiver module being further configured to transmit the service plane address of the first device to a second device, where there is a correspondence between the first device and the second device.

[0132] In an optional embodiment of the ninth aspect, the correspondence between the first device and the second device is pre-configured.

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

[0134] In an optional embodiment of the ninth aspect, the transceiver module is further configured to obtain a service plane address of the second device, and the transceiver module is further configured to transmit the service plane address of the second device to the first device.

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

[0136] 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.

[0137] For the advantageous effects of the ninth aspect and optional embodiments of the ninth aspect, please refer to the advantageous effects provided by the fourth aspect and optional embodiments of the fourth aspect, and the details will not be described again here.

[0138] According to a tenth aspect, an embodiment of the present application provides a communication device, the communication device including a processor and a memory, the memory configured to store a computer program, the processor configured to invoke and execute the computer program stored in the memory to perform a method according to the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect, or possible embodiments.

[0139] According to an eleventh aspect, an embodiment of the present application provides a chip, the chip including a processor configured to retrieve and execute computer instructions from a memory, such that a device in which the chip is installed performs a method according to the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect, or possible embodiments.

[0140] According to a twelfth aspect, an embodiment of the present application provides a computer-readable storage medium configured to store computer program instructions, the computer program enabling a computer to perform a method according to the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect, or possible embodiments.

[0141] According to a thirteenth aspect, an embodiment of the present application provides a computer program product, the computer program product comprising computer program instructions that enable a computer to perform a method according to the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect, or possible embodiments. [Brief explanation of the drawings]

[0142] [Figure 1] 1 is a diagram of the structure of a communication system according to an embodiment of the present application; [Figure 2] 1 is a schematic flowchart of a link establishment method according to an embodiment of the present application; [Figure 3] 1 is a schematic flowchart of a link establishment method according to an embodiment of the present application; [Figure 4] 1 is a schematic flowchart of a link establishment method according to an embodiment of the present application; [Figure 5] 1 is a schematic flowchart of a link establishment method according to an embodiment of the present application; [Figure 6] 1 is a schematic flowchart of a link establishment method according to an embodiment of the present application; [Figure 7] 1 is a schematic flowchart of a link establishment method according to an embodiment of the present application; [Figure 8] 1 is a schematic flowchart of a link establishment method according to an embodiment of the present application; [Figure 9] 1 is a block diagram of a communication device according to an embodiment of the present application; [Figure 10]1 is a block diagram of a communication device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0143] 1 is a diagram of the structure of a communication system according to one embodiment of the present application. As shown in FIG. 1, communication system 100 includes network device 101, network device 102, and network device 103. Network device 101 and network device 102 are separately connected to network device 103. Packets may be transmitted between network device 101 and network device 102 through network device 103. In this embodiment, links of the communication system include a link between network device 102 and network device 103 and a link between network device 103 and network device 101. The links include a common public radio interface (CPRI) link and an enhanced common public radio interface (eCPRI) link. In some embodiments, the communication system may be a fronthaul network system.

[0144] In a possible scenario, network device 101 may be a distributed unit (DU), network device 102 may be a radio frequency unit (RU) (active antenna unit AAU or remote radio unit RRU), and network device 103 may be a data link layer device (layer 2 device, e.g., a switch).

[0145] 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).

[0146] In another possible scenario, network device 101 may be a distributed unit (DU), network device 102 may be a radio frequency unit (RU) (AAU or RRU), and network device 103 may alternatively be a network layer device (layer 3 device, e.g., a router).

[0147] It should be noted that unless otherwise specified below, the distributed unit DU will be described by using the baseband unit BBU as an example.

[0148] In the first scenario, the BBU and the RU use Layer 2 (L2) networking, and in the second scenario, the BBU and the RU use Layer 3 (L3) networking. In the two scenarios, the baseband unit is a communication device or functional module having the function of processing baseband signals, and the radio frequency unit is a communication device or functional module having the function of processing intermediate frequency signals, radio frequency signals, or intermediate radio frequency signals. The radio frequency unit may be a cloud radio frequency unit (RRU), an active antenna unit (AAU), etc. The interface between the baseband unit and the radio frequency unit may be CPRI, eCPRI, a common air interface for Ethernet devices, or another type of interface. This is not limited in the embodiments of the present application.

[0149] When the baseband unit communicates with the radio frequency unit through eCPRI, the baseband unit may be referred to as an eCPRI radio equipment controller (eREC), and the radio frequency unit may be referred to as eCPRI radio equipment (eRE). The eREC and the eRE may be considered as two components of a wireless base station. In one example, the eREC and the eRE may be physically separated, with the eREC located in a ground equipment room and the eRE close to or including the antenna. The physical layer functions of the wireless base station are classified into two parts deployed on the eREC and the eRE, respectively. In particular, the eREC includes the air interface physical layer functions and upper layer functions. The upper layers in this specification include, for example, a media access control (MAC) layer, a radio link control (RLC) layer, a packet data convergence protocol (PDCP) layer, and a radio resource control (RRC) layer. The eRE includes portions of the physical layer functionality and analog radio frequency functionality.

[0150] In one embodiment, network device 101 and network device 102 are separately connected to network management device 104. A channel is established between network device 101 or network device 102 and network management device 104. Network management device 104 performs software installation or updates, file configuration, or other maintenance functions, such as alarming, tracking, and monitoring, on network device 101 and network device 102 through the channel. Network management device 104 may be, for example, an operation, administration, and management (OAM) device. The channel between network device 101 and network management device 104 may be a channel between a BBU and network management device 104, and the channel between network device 102 and network management device 104 may be a channel between an RU (AAU or RRU) and network management device 104. The channel may be a management plane channel.

[0151] A user may separately configure parameters such as VLAN interface information, IP addresses, and routes of the service plane for the network device 101 and the network device 102 through the network management device 104. The link of the communication system needs to be manually configured, and therefore operation and maintenance may prove complex. If the link of the communication system needs to be adjusted, for example, if the VLAN interface information, IP addresses, and routes of the network device 101 or the network device 102 in the link of the communication system need to be adjusted, the configuration of the network device 101 or the network device 102 needs to be separately modified, and operation is complicated.

[0152] In view of this, the embodiments of the present application provide a link establishment method, so that a network device in a communication system can automatically generate transmission-related configuration parameters, such as VLAN interface information, IP addresses, and routes, to automatically establish a link in the communication system without manual configuration. For ease of understanding, the following briefly describes the technical solution provided in the present application by using network devices BBU and RU as an example.

[0153] Scenario 1: The BBU and the RU use data link layer (layer 2) device networking, and the BBU is used as the address allocation node.

[0154] The Layer 2 device sends LLDP packets (if LLDP is enabled) to the BBU and RU connected to the Layer 2 device.

[0155] The BBU creates a VLAN interface based on the virtual local area network interface information carried in the LLDP packet from the Layer 2 device. The BBU is used as an address allocation node. In an IPv4 / IPv6 scenario, the BBU can be used as a dynamic host configuration protocol (DHCP) server. In an IPv6 scenario, there is another method: the BBU can be used as a router node and sends RA packets on the created VLAN interface, and the RA packets contain network segment information, which can be used to generate address information for the RU.

[0156] The RU creates a VLAN interface based on the virtual local area network interface information carried in the LLDP packet from the Layer 2 device. The RU is used 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 packet from the BBU.

[0157] Scenario 2: The BBU and the RU use network layer (Layer 3) device networking, and the Layer 3 device is used as the address allocation node.

[0158] The Layer 3 device performs the following operations: A Layer 3 device used as an address allocation node initiates DHCP service and sends LLDP packets to the BBUs and RUs connected to the Layer 3 device, or a Layer 3 device used as a router node sends RA packets (which may be sent periodically) to the BBUs and RUs connected to the Layer 3 device.

[0159] The BBU or RU creates a VLAN interface based on virtual local area network interface information carried in an LLDP packet or RA packet from a Layer 3 device. The BBU or RU is used as a DHCP client to request an IPv4 address or an IPv6 address from a Layer 3 device, or generates parameters such as an IPv6 address and route based on an RA packet from a Layer 3 device.

[0160] In the communication system in the embodiment of the present application, data can be transmitted between the BBU and the RU by using an Ethernet transmission mechanism.

[0161] It should be noted that the technical solutions provided in the embodiments of the present application may include part or all of the following content: Some specific embodiments below may be combined with each other, and the same or similar concepts or processes may not be repeatedly described in some embodiments.

[0162] 2 is a schematic flowchart of a link establishment method according to an embodiment of the present application. The link establishment method provided in this embodiment may be applied to a communication system including a first device, a second device, and a sixth device. The first device may be the network device 102 in FIG. 1, for example, an RU / RRU / AAU. The second device may be the network device 101 in FIG. 1, for example, a BBU. The sixth device may be the network device 103 in FIG. 1. The network device 103 is a data link layer device (Layer 2 device), for example, a switch. In this embodiment, the second device is an address allocating node.

[0163] As shown in FIG. 2, the link establishment method in this embodiment includes the following steps:

[0164] S301a: The sixth device sends a first packet to the second device.

[0165] S301b: The sixth device sends a first packet to the first device.

[0166] In this embodiment, the sixth device transmits a first packet on a physical Ethernet port connected to the second device, and the sixth device transmits the first packet on a physical Ethernet port connected to the first device. The sixth device transmits the first packet in a broadcast manner, and devices in the communication system (including the first device and the second device) can receive the first packet.

[0167] For example, the first packet may be a link layer discovery protocol (LLDP) packet, for example, the first packet may include a virtual local area network interface identifier (VLAN ID), which indicates interface information for creating a link in the communication system.

[0168] Optionally, the first packet may include an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces. For example, the first packet includes identifiers of multiple virtual local area network interfaces, such as identifiers of VLAN interface 1, VLAN interface 2, and VLAN interface 3. VLAN interface 1 may be an interface for the service plane, VLAN interface 2 may be an interface for the management plane, and VLAN interface 3 may be an interface for the clock plane. The virtual routing and forwarding (VRF) of any two of the three VLAN interfaces are isolated from each other, and the VRFs of any three VLAN interfaces are isolated from the VRFs of another VLAN interface.

[0169] After receiving the first packet, the second device may perform the following steps.

[0170] S302a: The second device creates virtual local area network interface information based on the first packet.

[0171] The second device creates virtual local area network interface information on a physical ethernet (ETH) port that receives the first packet, the virtual local area network interface information including one or more virtual local area network interfaces.

[0172] As an example, the first packet includes an identifier of one virtual local area network interface, and the second device creates a virtual local area network interface corresponding to the identifier of the virtual local area network interface based on the identifier of the virtual local area network interface in the first packet on the physical Ethernet port that receives the first packet.

[0173] As an example, the first packet includes identifiers of multiple virtual local area network interfaces, and the second device creates multiple virtual local area network interfaces on the physical Ethernet port that receives the first packet based on the identifiers of the multiple virtual local area network interfaces in the first packet.

[0174] Based on the above two examples, the first packet may be an LLDP packet, which carries one or more VLAN IDs.

[0175] Based on the above two examples, the second device may be a BBU, where the BBU receives an LLDP packet through an Ethernet port connected to eCPRI or CPRI, the LLDP packet includes a VLAN ID, and the BBU creates a VLAN interface based on the LLDP packet, where the VRF of the VLAN interface is separate from the VRF of another VLAN interface of the BBU. In this embodiment, the VLAN interface created by the BBU is a fronthaul (FH) interface, and the other VLAN interface of the BBU includes, for example, a backhaul network interface.

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

[0177] In this embodiment, the second address information is address information of a virtual local area network interface created by the second device, for example, an internet protocol (IP) address (IPv6 address or IPv4 address) of the virtual local area network interface created by the second device.

[0178] As an example, the second device creates one virtual local area network interface based on the first packet, and the second address information generated by the second device includes address information of the virtual local area network interface, for example, an IP address of the virtual local area network interface.

[0179] For example, the second device creates multiple virtual local area network interfaces based on the first packet, and the second address information generated by the second device includes address information for the multiple virtual local area network interfaces. For example, the multiple virtual local area network interfaces include a VLAN interface 1, a VLAN interface 2, and a VLAN interface 3, and the second device generates IP addresses for the VLAN interface 1, the VLAN interface 2, and the VLAN interface 3 separately.

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

[0181] As an example, the second device generates first information based on the second address information, and the first information corresponds to virtual local area network interface information.

[0182] For example, the first information is used to generate first address information of the first device, and the second device generates network segment information corresponding to the second address information based on the second address information, 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. Optionally, the first information can be carried in a router advertisement packet.

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

[0184] S305: The second device transmits the first information to the first device.

[0185] As an example, the second device transmits the first information to the first device over the created virtual local area network interface, which may be a service plane virtual local area network interface, a management plane (C&M) virtual local area network interface, or a clock plane virtual local area network interface.

[0186] As an example, if a second device creates multiple virtual local area network interfaces including a virtual local area network interface for a service plane, a virtual local area network interface for a management plane, and a virtual local area network interface for a clock plane, the second device sends first information to the first device over the created virtual local area network interface for the service plane, or the second device sends first information to the first device over the created virtual local area network interface for the management plane, or the second device sends first information to the first device over the created virtual local area network interface for the clock plane.

[0187] After receiving the first packet, the first device may perform the following steps.

[0188] S302b: The first device creates virtual local area network interface information based on the first packet.

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

[0190] As an example, the first packet includes an identifier of one virtual local area network interface, and the first device creates a virtual local area network interface corresponding to the identifier of the virtual local area network interface based on the identifier of the virtual local area network interface in the first packet on the physical Ethernet port that receives the first packet.

[0191] As an example, the first packet includes identifiers of multiple virtual local area network interfaces, and the first device creates multiple virtual local area network interfaces on the physical Ethernet port that receives the first packet based on the identifiers of the multiple virtual local area network interfaces in the first packet.

[0192] For example, the first device may be an RU, where the RU receives LLDP through an ETH port connected to eCPRI or CPRI, the LLDP packet includes a VLAN ID, the RU creates a VLAN interface based on the LLDP packet, and the VRF of the VLAN interface is separated from the VRF of another VLAN interface of the RU.

[0193] After completing the creation of the virtual local area network interface information and receiving the first information from the second device, the first device may perform the following steps.

[0194] S306: The first device generates first address information of the first device based on the first information.

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

[0196] As an example, the first device receives first information from the second device over the created virtual local area network interface and generates first address information for the first device based on the first information.

[0197] As an example, the virtual local area network interface information created by the first device includes multiple virtual local area network interfaces, and the first virtual local area network interface is any one of the multiple virtual local area network interfaces. The first virtual local area network interface is used as an example. The first device may receive first information corresponding to the first virtual local area network interface over the created first virtual local area network interface. The first device may generate address information for the first virtual local area network interface in the first address information based on the first information corresponding to the first virtual local area network interface, or the first device may obtain address information for the first virtual local area network interface from the first information corresponding to the first virtual local area network interface. Similar steps to those for the first virtual local area network interface may be performed for other virtual local area network interfaces created by the first device.

[0198] It can be seen from the above example that if the first device creates one virtual local area network interface, the first address information includes address information of the virtual local area network interface; or if the first device creates multiple virtual local area network interfaces, the first device may separately receive first information corresponding to interfaces on the multiple virtual local area network interfaces and generate address information of the virtual local area network interface, and the first address information includes address information of the multiple virtual local area network interfaces created by the first device.

[0199] In one example, the first device obtains the first address information of the first device from the first information from the second device, and in this example, the second device directly allocates the address information to the first device.

[0200] In another example, the first information includes network segment information, and the first device generates first address information for 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 for the first device.

[0201] The link establishment method shown in this embodiment is applicable to link establishment in a communication system using Layer 2 device networking, in which a first device and a second device in the communication system receive a first packet from a Layer 2 device, and the first device and the second device separately create virtual local area network interface information based on the first packet. As an address allocation node, the second device allocates address information to the second device and generates the first information after completing the creation of the virtual local area network interface information. The second device transmits the first information, and thus another device in the communication system, for example, the first device, generates address information for the first device based on the first information. In the above solution, address information does not need to be manually configured for the devices, thereby providing data support for implementing automatic link establishment in the communication system.

[0202] According to the embodiment shown in FIG. 2, in some embodiments, after generating the second address information, the second device may further perform the following steps.

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

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

[0205] After generating the first address information, the first device may further perform the following steps.

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

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

[0208] After receiving the address of the service plane in the second address information from the second device, the network management device may perform the following steps.

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

[0210] The network management device transmits the address of the service plane in the second address information of the second device to the first device based on the correspondence between the first device and the second device.

[0211] After receiving the address of the service plane in the first address information from the first device, the network management device may perform the following steps.

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

[0213] The network management device transmits a service plane address in the first address information of the first device to the second device based on the correspondence between the first device and the second device.

[0214] S311: A first device establishes a link to a second device.

[0215] As an example, a first device establishes a link to a second device based on a service plane address in the first address information of the first device and a service plane address in the second address information of the second device.

[0216] In this embodiment, the address of the service plane in the first address information of the first device is an IP address corresponding to the virtual local area network interface 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 is an IP address corresponding to the virtual local area network interface of the service plane in the second address information of the second device.

[0217] The network management device in this embodiment pre-stores configuration information of a first device, configuration information of a second device, and correspondence between the first device and the second device, separately receives first address information reported by the first device and second address information reported by the second device, 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 establishes a link to the second device and implements automatic link establishment.

[0218] According to the embodiment of Fig. 2, the following will describe in detail the link establishment method with respect to two specific embodiments. For easy understanding of the solution, it should be noted that in the following embodiments, unless otherwise specified, the first packet includes an identifier of one virtual local area network interface, the virtual local area network interface information created by the second device and the second device includes one virtual local area network interface, the first information is used to generate one virtual local area network interface in the first address information of the first device, or the first information includes the address of one virtual local area network interface in the first address information.

[0219] 3 is a schematic flowchart of a link establishment method according to an embodiment of the present application. The link establishment method provided in this embodiment may be applied to a communication system including a first device, a second device, and a sixth device. The first device may be the network device 102 in FIG. 1, for example, an RU / RRU / AAU. The second device may be the network device 101 in FIG. 1, for example, a BBU. The sixth device may be the network device 103 in FIG. 1. The network device 103 is a data link layer device, for example, a switch.

[0220] In this embodiment, as an address allocating node, the second device may allocate addresses by using internet protocol version 6 (IPv6) stateless address auto configuration (SLAAC). In some embodiments, the second device is also referred to as a router node.

[0221] As shown in FIG. 3, the link establishment method in this embodiment includes the following steps:

[0222] S401a: The sixth device sends an LLDP packet to the second device.

[0223] S402b: The sixth device sends an LLDP packet to the first device.

[0224] After receiving the LLDP packet, the second device may perform the following steps.

[0225] S402a: The second device creates virtual local area network interface information based on the LLDP packet.

[0226] As an example, the second device creates a virtual local area network interface based on an identifier of the virtual local area network interface in the LLDP packet.

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

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

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

[0230] 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.

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

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

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

[0234] In a possible implementation, after creating the virtual local area network interface information based on the LLDP packet, the second device sends a router advertisement packet in a multicast manner.

[0235] The second device sending a router advertisement packet in a multicast manner may be understood to include the following: the second device sending a router advertisement packet to another device, including the first device, where another device in this specification is a device located in the same link of the communication system as that of the second device.

[0236] After receiving the LLDP packet, the first device may perform the following steps:

[0237] S402b: The first device creates virtual local area network interface information based on the LLDP packet.

[0238] As an example, the LLDP packet includes an identifier of a virtual local area network interface, and the first device creates a virtual local area network interface corresponding to the identifier of the virtual local area network interface based on the identifier of the virtual local area network interface in the LLDP packet.

[0239] In one example, the first device receives a router advertisement packet from the second device on the created virtual local area network interface, the router advertisement packet including first information.

[0240] After receiving the router advertisement packet from the second device, the first device may perform the following steps.

[0241] S406: The first device generates first address information of the first device based on the first information in the router advertisement packet, wherein the first address information of the first device includes address information of a virtual local area network interface created by the first device.

[0242] In some embodiments, after performing S402b, the first device may further perform the following steps:

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

[0244] Accordingly, S404 particularly includes: the second device generates first information in response to the router solicitation packet; then, the second device performs 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; thus, the first device generates first address information for the first device based on the network segment information.

[0245] For example, in an IPv6 scenario, the second device BBU enables RA on the created VLAN interface, and the BBU is used as an IPv6 router node. The BBU sends an RA packet on the created VLAN interface, and the RA packet carries first information, which includes network segment information, and the network segment information can be used to generate an IPv6 address for the first device RU. The first device RU receives the RA packet from the BBU on the created VLAN interface, and the RA packet carries the first information, and the RU generates an IPv6 address for the RU based on the network segment information in the first information.

[0246] For example, in an IPv6 scenario, the first device RU sends an RS packet to the second device BBU on the created VLAN interface, the BBU generates first information in response to the RS packet, the first information includes network segment information, the BBU sends an RA packet to the RU, the RA packet carries the first information, and the RU generates an IPv6 address for the RU based on the first information in the RA packet.

[0247] The link establishment method described in this embodiment is applicable to link establishment in a communication system using Layer 2 device networking, in which a first device and a second device in the communication system receive LLDP packets from a Layer 2 device, and the first device and the second device separately create virtual local area network interface information based on the LLDP packets. As an address allocation node, the second device allocates address information to the second device after completing the creation of the virtual local area network interface information and generates first information, which can be used to generate first address information for the first device. The second device can actively transmit the first information or transmit the first information based on a request from the first device, and the first device generates the first address information for the first device based on the first information from the second device. In the above solution, address information does not need to be manually configured for the devices, thereby providing data support for implementing automatic link establishment in the communication system.

[0248] 4 is a schematic flowchart of a link establishment method according to an embodiment of the present application. The link establishment method provided in this embodiment can be applied to a communication system including a first device, a second device, and a sixth device.

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

[0250] As shown in FIG. 4, the link establishment method in this embodiment includes the following steps:

[0251] S501a: The sixth device sends an LLDP packet to the second device.

[0252] S501b: The sixth device sends an LLDP packet to the first device.

[0253] After receiving the LLDP packet, the second device may perform the following steps.

[0254] S502a: The second device creates virtual local area network interface information based on the LLDP packet.

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

[0256] After receiving the LLDP packet, the first device may perform the following steps:

[0257] S502b: The first device creates virtual local area network interface information based on the LLDP packet.

[0258] As an example, the LLDP packet includes an identifier of a virtual local area network interface, and the first device creates a virtual local area network interface based on the identifier of the virtual local area network interface in the LLDP packet.

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

[0260] As an example, the first device sends a Dynamic Host Configuration Protocol request to the second device over the created virtual local area network interface, where the Dynamic Host Configuration Protocol request is used to request first address information of the first device.

[0261] After receiving a Dynamic Host Configuration Protocol request from the first device, the second device may perform the following steps.

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

[0263] 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 first address information of the first device. The second address information and the first address information are 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.

[0264] 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.

[0265] As an example, the second device sends a Dynamic Host Configuration Protocol response to the first device over the created virtual local area network interface.

[0266] After receiving the Dynamic Host Configuration Protocol response from the second device, the first device may perform the following steps.

[0267] S507: The first device obtains first address information from the Dynamic Host Configuration Protocol response.

[0268] For example, the first device receives a Dynamic Host Configuration Protocol response from the second device on the created virtual local area network interface, and obtains first address information from the Dynamic Host Configuration Protocol response. After obtaining the first address information, the first device configures an address in the first address information on the created virtual local area network interface.

[0269] For example, in an IPv6 or IPv4 scenario, the second device BBU enables DHCP on the created VLAN interface, and the BBU is used as a DHCP server. The first device RU sends a DHCP request to the BBU on the created VLAN interface, and the BBU sends a DHCP response to the RU in response to the DHCP request. The DHCP response carries first information, and the first information includes an IPv6 address or an IPv4 address allocated to the RU by the BBU. The RU obtains the RU's IPv6 address or IPv4 address from the DHCP response.

[0270] The link establishment method described in this embodiment is applicable to link establishment in a communication system using Layer 2 device networking, in which a first device and a second device in the communication system receive an LLDP packet from a Layer 2 device, and the first device and the second device separately create virtual local area network interface information based on the LLDP packet. As an address allocation node, the second device allocates address information to the second device after completing the creation of the virtual local area network interface information. After completing the creation of the virtual local area network interface information, the first device sends an address allocation request to the second device, and the second device allocates first address information to the first device in response to the request and returns an address allocation response. The first device directly obtains the first address information of the first device from the response. In the above solution, address information does not need to be manually configured for the devices, thereby providing data support for implementing automatic link establishment in the communication system.

[0271] 5 is a schematic flowchart of a link establishment method according to an embodiment of the present application. The link establishment method provided in this embodiment can be applied to the communication system shown in FIG. 1. The communication system includes a third device and a fifth device.

[0272] The third device may be the network device 103 in Figure 1, where the network device 103 is a network layer device, for example, a router. The fifth device may be the network device 102 (for example, an RU / RRU / AAU) or the network device 101 (for example, a BBU) in Figure 1. In this embodiment, the third device is used as an address allocating node.

[0273] As shown in FIG. 5, the link establishment method in this embodiment includes the following steps:

[0274] S601: The third device sends a second packet to the fifth device.

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

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

[0277] Optionally, the second packet is a Router Advertisement packet, and the data link layer of the Router Advertisement packet carries an identifier of one virtual local area network interface.

[0278] Optionally, the second packet is a link layer discovery protocol packet, and the link layer discovery protocol packet may include an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces. For example, the link layer discovery protocol packet may include identifiers of multiple virtual local area network interfaces, such as identifiers of VLAN interface 1, VLAN interface 2, and VLAN interface 3. VLAN interface 1 is an interface for the service plane, VLAN interface 2 is an interface for the management plane, and VLAN interface 3 is an interface for the clock plane. Any two VRFs of the three VLAN interfaces are disjoint from each other, and the VRFs of the three VLAN interfaces are disjoint from the VRFs of another VLAN interface.

[0279] S602: The fifth device creates virtual local area network interface information based on the second packet.

[0280] The fifth device creates virtual local area network interface information on the physical Ethernet port that receives the second packet, where the virtual local area network interface information includes one or more virtual local area network interfaces.

[0281] As an example, the second packet is a router advertisement packet, and the data link layer of the router advertisement packet carries an identifier of one virtual local area network interface, and the fifth device creates a virtual local area network interface corresponding to the identifier of the virtual local area network interface based on the identifier of the virtual local area network interface in the router advertisement packet on the physical Ethernet port that receives the router advertisement packet.

[0282] For example, the second packet is a router advertisement packet. S601 includes: the third device sends a plurality of second packets to the fifth device. S602 includes: the fifth device creates a plurality of virtual local area network interfaces based on the plurality of second packets. For creating a virtual local area network interface corresponding to any second packet in the plurality of second packets, please refer to the execution steps in the above example.

[0283] As an example, the second packet is a link layer discovery protocol packet, and the link layer discovery protocol packet includes an identifier of one virtual local area network interface, and the fifth device creates a virtual local area network interface corresponding to the identifier of the virtual local area network interface based on the identifier of the virtual local area network interface in the link layer discovery protocol packet on the physical Ethernet port that receives the link layer discovery protocol packet.

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

[0285] Based on the above two examples, the fifth device may be a BBU or a RU. The BBU is used as an example. The BBU receives a link layer discovery protocol packet through an ETH port connected to an eCPRI (or CPRI), the link layer discovery protocol packet includes a VLAN ID, and the BBU creates a VLAN interface based on the VLAN ID in the link layer discovery protocol packet, and the VRF of the VLAN interface is separated from the VRF of another VLAN interface of the BBU. In this embodiment, the virtual local area network interface created by the BBU is a fronthaul interface, and the other VLAN interface of the BBU includes, for example, a backhaul network interface.

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

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

[0288] 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.

[0289] As an example, the second packet is a router advertisement packet or a link layer discovery protocol packet, the fifth device creates one virtual local area network interface based on the second packet, and the third address information generated by the fifth device includes address information of the virtual local area network interface, for example, an IP address of the virtual local area network interface.

[0290] For example, the second packet is a link layer discovery protocol packet, the fifth device creates multiple virtual local area network interfaces based on the link layer discovery protocol packet, and the third address information generated by the fifth device includes address information of the multiple virtual local area network interfaces. For example, the multiple virtual local area network interfaces include VLAN interface 1, VLAN interface 2, and VLAN interface 3, and the fifth device generates IP addresses for VLAN interface 1, VLAN interface 2, and VLAN interface 3 separately.

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

[0292] The routing information generated by the fifth device includes a gateway address, a network target, a network mask, etc., and the gateway address may be determined based on a default route or a source address route.

[0293] The link establishment method shown in this embodiment is applicable to link establishment in a communication system using Layer 3 device networking, where a third device in the communication system is an address allocation node, and the third device sends a second packet, so that a fifth device in the communication system creates virtual local area network interface information based on the second packet, and generates address information and routing information for the fifth device. In the above solution, the address information and routing information do not need to be manually configured for the device, so that data support for implementing automatic link establishment is provided in the communication system.

[0294] According to the embodiment shown in FIG. 5, after generating the third address information, the fifth device may further perform the following steps:

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

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

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

[0298] The method by which the fourth device generates the fourth address information is similar to that of the fifth device, see S601 to S603.

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

[0300] S608: The fifth device establishes a link to the fourth device based on the service plane address in the third address information and the service plane address in the fourth address information of the fourth device.

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

[0302] For example, if the fifth device is a BBU, the fourth device is an RU / RRU / AAU corresponding to the BBU, or if the fifth device is an RU / RRU / AAU, the fourth device is a BBU corresponding to the RU / RRU / AAU.

[0303] The network management device in this embodiment pre-stores the configuration information of the fourth device, the configuration information of the fifth device, and the correspondence between the fourth device and the fifth device. 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 establishes a link to the fourth device and implements automatic link establishment.

[0304] According to the embodiment of Fig. 5, the following describes in detail the link establishment method with respect to two specific embodiments. For easier understanding of the solution, please note that in the following embodiments, unless otherwise specified, the router advertisement packet or LLDP packet includes an identifier of one virtual local area network interface, and the virtual local area network interface information created by the fifth device includes a virtual local area network interface.

[0305] 6 is a schematic flowchart of a link establishment method according to an embodiment of the present application. The link establishment method provided in this embodiment can be applied to a communication system including a third device and a fifth device.

[0306] The third device may be the network device 103 in Figure 1, where the network device 103 is a network layer device, for example, a router. The fifth device may be the network device 102 (e.g., RU / RRU / AAU) or the network device 101 (e.g., BBU) in Figure 1. In this embodiment, the third device is used as an address allocating node and may allocate addresses by using IPv6 SLAAC. In some embodiments, the third device is also referred to as a router node. As shown in Figure 6, the method includes the following steps:

[0307] S701: A third device sends a router advertisement packet to a fifth device.

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

[0309] S702: The fifth device creates virtual local area network interface information based on the router advertisement packet.

[0310] As an example, the data link layer of the router advertisement packet carries an identifier of a virtual local area network interface, and the fifth device creates a virtual local area network interface corresponding to the identifier of the virtual local area network interface based on the identifier of the virtual local area network interface carried by the data link layer of the router advertisement packet.

[0311] For example, a third device enables an ETH port connected to a fifth device and transmits an RA packet on the ETH port. The data link layer of the RA packet carries a VLAN ID. A BBU or RU of the fifth device receives the RA packet from the third device on an ETH port connected to an eCPRI (or CPRI), and the BBU or RU creates a VLAN interface corresponding to the VLAN ID based on the VLAN ID carried in the RA packet at the data link layer. The VLAN interface created by the BBU or RU is a fronthaul interface, and the VRF of the VLAN interface is separate from the VRF of another VLAN interface.

[0312] S703: The fifth device generates third address information based on the router advertisement packet.

[0313] For example, the router advertisement packet further includes network layer information, and a prefix of the network layer information indicates network segment information. The fifth device generates third address information based on the network segment information indicated in the router advertisement packet. Optionally, the network layer information further includes a protocol type, and the fifth device generates the third address information based on the network segment information and the protocol type indicated in the router advertisement packet. The protocol type includes a 7217 protocol or an EUI-64 protocol. The two protocols are existing protocols. Details will not be described here.

[0314] S704: The fifth device generates routing information based on the router advertisement packet.

[0315] For example, the fifth device generates a gateway address of the routing information based on network layer information in the router advertisement packet, the network layer information including a source address of the router advertisement packet, and the fifth device uses the source address of the router advertisement packet as the gateway address of the routing information.

[0316] In some embodiments, before the third device performs S701, the method further includes the following steps:

[0317] S705: The fifth device sends a router solicitation packet to the third device.

[0318] As an example, the third device generates network segment information in response to a router solicitation packet. Then, the third device performs S701, and the router advertisement packet in S701 carries the network segment information. In this example, the third device allocates the network segment information to the fifth device based on the router request initiated by the fifth device, and therefore, the fifth device generates third address information for the fifth device based on the network segment information.

[0319] The link establishment method shown in this embodiment is applicable to link establishment in a communication system using Layer 3 device networking, in which a fifth device in the communication system receives a router packet from a third device and creates virtual local area network interface information based on the router packet. As an address allocation node, the third device may carry network segment information in the router advertisement packet, and thus the fifth device generates address information for the fifth device based on the network segment information in the router advertisement packet. The third device may actively send router advertisement packets or send router advertisement packets based on a request from the fifth device. In the above solution, address information does not need to be manually configured for the device, thus providing data support for implementing automatic link establishment in the communication system.

[0320] 7 is a schematic flowchart of a link establishment method according to an embodiment of the present application. The link establishment method provided in this embodiment can be applied to a communication system including a third device and a fifth device.

[0321] The third device may be the network device 103 in Figure 1, where the network device 103 is a network layer device, for example, a router. The fifth device may be the network device 102 (e.g., RU / RRU / AAU) or the network device 101 (e.g., BBU) in Figure 1. In this embodiment, the third device may be used as an address allocation node and allocate addresses by using DHCP. In some embodiments, the third device is also referred to as a DHCP server node.

[0322] As shown in FIG. 7, the link establishment method in this embodiment includes the following steps:

[0323] S801: The third device sends an LLDP packet to the fifth device.

[0324] In this embodiment, the third device transmits LLDP packets on a physical Ethernet port connected to the fifth device.

[0325] S802: The fifth device creates virtual local area network interface information based on the LLDP packet.

[0326] As an example, the LLDP packet includes an identifier of a virtual local area network interface, and the fifth device creates a virtual local area network interface corresponding to the identifier of the virtual local area network interface based on the identifier of the virtual local area network interface in the LLDP packet.

[0327] For example, a third device enables an ETH port connected to a fifth device and sends an LLDP packet on the ETH port. The LLDP packet includes data link layer information, which includes a VLAN ID. A BBU or RU of the fifth device receives the LLDP packet from the third device on the ETH port connected to the eCPRI (or CPRI), and the BBU or RU creates a VLAN interface corresponding to the VLAN ID based on the data link layer information in the LLDP packet. The VRF of the VLAN interface created by the BBU or RU is separated from the VRF of another VLAN interface.

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

[0329] As an example, the fifth device sends a Dynamic Host Configuration Protocol request to the third device over the created virtual local area network interface.

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

[0331] S805: The fifth device obtains third address information from the Dynamic Host Configuration Protocol response.

[0332] For 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 third address information from the Dynamic Host Configuration Protocol response. After obtaining the third address information, the fifth device configures an address in the third address information on the created virtual local area network interface.

[0333] S806: The fifth device generates routing information based on the Dynamic Host Configuration Protocol response.

[0334] As an example, the fifth device uses the default gateway address in the Dynamic Host Configuration Protocol response as the gateway address for the routing information.

[0335] The link establishment method shown in this embodiment is applicable to link establishment in a communication system using Layer 3 device networking, in which a fifth device in the communication system receives an LLDP packet from a third device and creates virtual local area network interface information based on the LLDP packet. The third device is an address allocation node, and the fifth device sends a Dynamic Host Configuration Protocol request to the third device on the created virtual local area network interface to request the third device to allocate address information to the fifth device. The fifth device receives a Dynamic Host Configuration Protocol response from the third device, obtains the address information of the fifth device from the response, and generates routing information based on the response. In the above solution, the address information and routing information do not need to be manually configured for the devices, thereby providing data support for implementing automatic link establishment in the communication system.

[0336] It may be known from some embodiments above that when the communication system uses Layer 2 device networking, the second device (e.g., BBU) is used as an address allocating node and the first device (e.g., RU / RRU / AAU) is used as an address requesting node; or when the communication system uses Layer 3 device networking, the third device (Layer 3 device, e.g., router) is used as an address allocating node, and the fifth device (e.g., BBU) and the fourth device (e.g., RU / RRU / AAU) are used as address requesting nodes. It may be known that in different network networkings, the functions of the devices 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 networking is Layer 2 networking or Layer 3 networking, and therefore the device determines whether the device is an address allocating node or an address requesting node and automatically performs corresponding method steps.

[0337] In this case, an embodiment of the present application further provides a method for determining an address allocation node, and thus a device identifies whether it has address allocation capability by using this method.

[0338] For ease of understanding, the following uses BBU as an example to illustrate the solution.

[0339] In a possible implementation, after receiving an LLDP packet and creating virtual local area network interface information, the BBU sends an RS packet N times on the created virtual local area network interface and checks whether an RA packet can be received on the created virtual local area network interface in response to the RS packet. If the BBU can receive the RA packet, it can be determined that the BBU is an address requesting node. If the BBU does not receive the RA packet, it can be determined that the BBU is an address allocating node. N is a positive integer.

[0340] For example, after creating virtual local area network interface information based on the LLDP packet, the second device shown in Figure 3 sends an RS packet (not shown in the figure) on the created virtual local area network interface. If the second device does not receive an RA packet in response to the RS packet, the second device may know that the second device is an address allocating node, and the second device performs a step of generating second address information.

[0341] For example, after creating virtual local area network interface information based on the LLDP packet, the first device shown in FIG. 3 sends an RS packet on the created virtual local area network interface (S407), and the first device receives an RA packet in response to the RS packet (S405), and the first device may know that the first device is an address requesting node.

[0342] For example, the fifth device shown in FIG. 6 may send an RS packet (S705), receive an RA packet in response to the RS packet (S701), and know that the fifth device is an address requesting node.

[0343] In a possible implementation, after receiving the LLDP packet and creating the virtual local area network interface information, the BBU sends a DHCP request N times on the created virtual local area network interface and checks whether a DHCP response can be received on the created virtual local area network interface in response to the DHCP request. If the BBU can receive the DHCP response, it can be determined that the BBU is an address requesting node. If the BBU does not receive the DHCP response, it can be determined that the BBU is an address allocating node. N is a positive integer.

[0344] For example, after creating virtual local area network interface information based on the LLDP packet, the second device shown in Figure 4 sends a DHCP request (not shown in the figure) on the created virtual local area network interface. If the second device does not receive a DHCP response in response to the DHCP request, the second device may know that the second device is an address allocating node, and the second device performs a step of generating second address information.

[0345] For example, after creating virtual local area network interface information based on the LLDP packet, the first device shown in FIG. 4 sends a DHCP request on the created virtual local area network interface (S504), and the first device receives a DHCP response in response to the DHCP request (S506), and the first device may know that the first device is an address requesting node.

[0346] For example, after creating virtual local area network interface information based on the LLDP packet, the fifth device shown in FIG. 7 sends a DHCP request on the created virtual local area network interface (S803), and the fifth device receives a DHCP response in response to the DHCP request (S804), and the fifth device may know that the fifth device is an address requesting node.

[0347] An embodiment of the present application provides a link establishment method. The method may be applied to a communication system including a first device and a second device having correspondence. The first device is connected to the second device through a Layer 2 device (e.g., a switch) or a Layer 3 device (e.g., a router). The first device may be the network device 101 in FIG. 1, and the second device may be the network device 102 in FIG. 1, where the network device 101 includes a BBU and the network device 102 includes an RU / RRU / AAU. The following describes a process of establishing a link between the first device and the second device with reference to FIG. 8.

[0348] 8 is a schematic flowchart of a link establishment method according to an embodiment of the present application. As shown in FIG. 8, the link establishment method in this embodiment includes the following steps:

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

[0350] S902: The network management device receives configuration information of a second device.

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

[0352] In this embodiment, the correspondence between the first device and the second device is pre-configured.

[0353] S904: The network management device obtains, based on the correspondence between the first device and the second device, a service plane address of the second device corresponding to the first device, where the service plane address of the second device includes a service plane address of the second device.

[0354] In one example, the network management device obtaining a service plane address of a second device corresponding to the first device includes: the network management device receiving the service plane address of the second device from the second device; in this example, after generating the service plane address of the second device, the second device reports the service plane address of the second device to the network management device.

[0355] For example, the virtual local area network interface created by the second device includes multiple virtual local area network interfaces, such as VLAN interface 1, VLAN interface 2, and VLAN interface 3, where VLAN interface 1 is a service plane virtual local area network interface, and the second device reports the IP address of VLAN interface 1 of the second device to the network management device.

[0356] S905: The network management device sends, to the first device, an address of a service plane of a second device corresponding to the first device.

[0357] S906: The network management device obtains, based on the correspondence between the first device and the second device, a service plane address of the first device corresponding to the second device, where the service plane address of the first device includes a service plane address of the first device.

[0358] In one example, the network management device obtaining a service plane address of the first device corresponding to the second device includes: the network management device receiving the service plane address of the first device from the first device; in this example, after generating the service plane address of the first device, the first device reports the service plane address of the first device to the network management device.

[0359] For example, the virtual local area network interface created by the first device includes multiple virtual local area network interfaces, such as VLAN interface 1, VLAN interface 2, and VLAN interface 3, where VLAN interface 1 is a service plane virtual local area network interface. The first device reports address information of VLAN interface 1 of the first device to the network management device.

[0360] 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.

[0361] S908: The first device establishes a link to the second device.

[0362] For example, the first device may be an address allocation node. For example, the first device may be a BBU. After creating the virtual local area network interface information, the first device may generate a service plane address for the first device and report the service plane address of the first device to the network management device. The first device may further allocate network segment information or address information to the second device. For example, the second device may be an RU / RRU / AAU corresponding to the BBU. The second device may generate a service plane address for the second device based on the network segment information from the first device, or the second device may directly obtain the service plane address of the second device from the first device, and the second device may report the service plane address of the second device to the network management device. The first device may learn about the service plane address of the second device through the network management device and establish a link to the second device. The second device may learn about the service plane address of the first device through the network management device and establish a link to the first device.

[0363] For example, neither the first device nor the second device is an address allocating node. The first device may generate or obtain a service plane address of the first device by interacting with a Layer 3 device (e.g., a router), and the second device may generate or obtain a service plane address of the second device by interacting with the Layer 3 device. For example, the first device is a BBU, and the second device is an RU / RRU / AAU corresponding to the BBU. The first device reports the service plane address of the first device to the network management device, and the second device reports the service plane address of the second device to the network management device. The first device may learn about the service plane address of the second device through the network management device and establish a link to the second device. The second device may learn about the service plane address of the first device through the network management device and establish a link to the first device.

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

[0365] Optionally, the communication apparatus 1000 may correspond to a second device in a method embodiment, and may be, for example, a BBU or a component configured in the BBU (e.g., a chip or chip system). The transceiver module 1020 is configured to receive a first packet. The processing module 1010 is configured to create virtual local area network interface information based on the first packet, where the virtual local area network interface information corresponds to first information, and 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 1010 is further configured to generate second address information, where the second address information corresponds to the virtual local area network interface information.

[0366] It should be understood that the specific processing performed by the modules is described in detail in the method embodiments illustrated in Figures 2 through 4. For the sake of brevity, the details will not be described again here.

[0367] Optionally, the communications apparatus 1000 may correspond to a first device in a method embodiment, and may be, for example, an RU / RRU / AAU or a component (e.g., a chip or chip system) configured in the RU / RRU / AAU. The transceiver module 1020 is configured to receive a first packet. The processing module 1010 is configured to create virtual local area network interface information based on the first packet. The transceiver module 1020 is further configured to receive the first information based on the virtual local area network interface information. The processing module 1010 is further configured to generate first address information based on the first information, where the first address information corresponds to the virtual local area network interface information.

[0368] It should be understood that the specific processing performed by the modules is described in detail in the method embodiments illustrated in Figures 2 through 4. For the sake of brevity, the details will not be described again here.

[0369] Optionally, the communications apparatus 1000 may correspond to a fifth device in a method embodiment, and may be, for example, a BBU or RU / RRU / AAU or a component (e.g., a chip or chip system) configured in the BBU or RU / RRU / AAU. The transceiver module 1020 is configured to receive the second packet. The processing module 1010 is configured to create virtual local area network interface information based on the second packet and generate third address information and routing information, where the third address information corresponds to the virtual local area network interface information.

[0370] It should be understood that the specific processing performed by the modules is described in detail in the method embodiments illustrated in Figures 5 through 7. For the sake of brevity, the details will not be described again here.

[0371] Optionally, the communication device 1000 may correspond to a network management device or a component (e.g., a chip or a chip system) configured in the network management device in a method embodiment. The transceiver module is configured to obtain a service plane address of the first device. The transceiver module is further configured to transmit the service plane address of the first device to the second device, where there is a correspondence between the first device and the second device.

[0372] It should be understood that the specific processing performed by the modules is described in detail in the method embodiment shown in Figure 8. For the sake of brevity, the details will not be described again here.

[0373] The transceiver module 1020 in the communications device 1000 may be implemented through a transceiver and may correspond to, for example, the transceiver 1110 in the communications device 1100 shown in Figure 10. The processing module 1010 in the communications device 1000 may be implemented through at least one processor and may correspond to, for example, the processor 1120 in the communications device 1100 shown in Figure 10.

[0374] When the communication device 1000 is a chip or chip system configured in a network device (e.g., a BBU, a RU / RRU / AAU, or a network management device), the transceiver module 1020 in the communication device 1000 may be implemented through an input / output interface, circuitry, etc., and the processing module 1010 in the communication device 1000 may be implemented through a processor, microprocessor, integrated circuit, etc. integrated in the chip or chip system.

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

[0376] 10 is a block diagram of another communication device according to an embodiment of the present application. As shown in FIG. 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 through an internal connection path, the memory 1130 is configured to store instructions, and the processor 1120 is configured to execute the instructions stored in the memory 1130 to control the transceiver 1110 to transmit and / or receive signals.

[0377] It should be understood that the communications apparatus 1100 may correspond to the first device, the second device, the fifth device, or the network management device in the above-described method embodiments and may be configured to perform steps and / or procedures performed by the first device, the second device, the fifth device, or the network management device in the above-described method embodiments. Optionally, the memory 1130 may include read-only memory and random access memory to provide instructions and data to the processor. Portions of the memory may further include non-volatile random access memory. The memory 1130 may be a separate device or may be integrated with the processor 1120. The processor 1120 may be configured to execute instructions stored in the memory 1130. When the processor 1120 executes the instructions stored in the memory, the processor 1120 is configured to perform steps and / or procedures corresponding to the first device, the second device, the fifth device, or the network management device in the above-described method embodiments.

[0378] Optionally, the communication apparatus 1100 is the first device in the above embodiments, for example, an RU / RRU / AAU.

[0379] Optionally, the communication apparatus 1100 is the second device in the above embodiments, for example, a BBU.

[0380] Optionally, the communication apparatus 1100 is a fifth device in the above embodiments, for example, a BBU or an RU / RRU / AAU.

[0381] Optionally, the communication apparatus 1100 is a network management device in the above embodiments.

[0382] The transceiver 1110 may include a transmitter and a receiver. The transceiver 1110 may further include an antenna. There may be one or more antennas. The processor 1120, the memory 1130, and the transceiver 1110 may be integrated components on different chips. For example, the processor 1120 and the memory 1130 may be integrated on a baseband chip, and the transceiver 1110 may be integrated on a radio frequency chip. Alternatively, the processor 1120, the memory 1130, and the transceiver 1110 may be integrated components on the same chip. This is not a limitation of the present application.

[0383] Optionally, the communications apparatus 1100 is a component, for example a chip or chip system, configured in a first device, a second device, a fifth device, or a network management device.

[0384] Alternatively, the transceiver 1120 may be a communication interface, such as an input / output interface or circuit. The transceiver 1120, the processor 1110, and the memory 1130 may be integrated on the same chip, for example, on a baseband chip.

[0385] An embodiment of the present application further provides a communication device, which includes at least one processor configured to execute a computer program stored in a memory, such that the communication device performs the method steps of any one of the above method embodiments.

[0386] An embodiment of the present application further provides a communication device. The communication device includes 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, such that the communication device performs the method steps in any one of the above method embodiments.

[0387] An embodiment of the present application further provides a communication device, which includes a processor and a memory, the memory being configured to store a computer program, and the processor being configured to call and execute the computer program from the memory, such that the communication device performs the method steps of any one of the above method embodiments.

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

[0389] In the implementation process, the steps in the above method can be implemented through integrated logic circuits of hardware in a processor or by using instructions in the form of software. The steps of the methods disclosed in the embodiments of the present application can be directly performed and completed by a hardware processor, or can be performed and completed by using a combination of hardware and software modules in a processor. The software modules can be located in a storage medium that is mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method in combination with the hardware of the processor. To avoid repetition, details will not be described again in this specification.

[0390] It should be noted that the processor in the embodiments of the present application may be an integrated circuit chip and have signal processing capabilities. In the implementation process, the steps in any one of the above method embodiments may be implemented through integrated logic circuitry in a hardware processor or by using instructions in the form of software. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or another programmable logic device, a discrete-gate or transistor logic device, or a discrete hardware component. The processor may implement or perform the methods, steps, and logical block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present application may be performed and completed directly by a hardware decoding processor, or may be performed and completed by using a combination of hardware and software modules in the decoding processor. The software modules may 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, an electrically erasable programmable memory, or a register. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method in combination with the processor's hardware.

[0391] It can be understood that the memory in the embodiments of the present application can be volatile or nonvolatile memory, or can include volatile and nonvolatile memory. The nonvolatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM) used as an external cache. By way of example and not limitation, many forms of RAM may be used, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus dynamic random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein includes, but is not limited to, these and any other suitable types of memory.

[0392] According to the method provided in the embodiments of the present application, the present application further provides a computer program product, which includes computer program instructions, and when the computer program instructions are executed on a computer, enables the computer to perform the method steps in any one of the above method step embodiments.

[0393] According to the method provided in the embodiments of the present application, the present application further provides a computer-readable storage medium, which stores program code, and when the program code is executed on a computer, the computer can perform the method in any one of the above method embodiments.

[0394] According to the method provided in the embodiments of the present application, the present application further provides a communication system. The communication system may include a first device (e.g., an RU / RRU / AAU), a second device (e.g., a BBU), and a sixth device (a Layer 2 device, e.g., a switch), or may include a fifth device (e.g., a BBU and an RU) and a third device (a Layer 3 device, e.g., a router). Optionally, the communication system further includes a network management device.

[0395] As used herein, terms such as “component,” “module,” “unit,” and “system” refer to computer-related entities, hardware, firmware, a combination of hardware and software, software, or software being executed. For example, a component may be, but is not limited to, a process running on a processor, a processor, an object, an executable file, a thread of execution, a program, and / or a computer. As illustrated through the use of figures, computing devices and applications running on computing devices may be components. One or more components may reside within a process and / or thread of execution, and components may be located on one computer and / or distributed among two or more computers. Furthermore, these components may execute from various computer-readable media that store various data structures. For example, components may communicate by using local and / or remote processing, for example, based on signals having one or more data packets (e.g., data from two components interacting with another component using signals, in a local system interacting with another system, in a distributed system, and / or across a network such as the Internet).

[0396] Those skilled in the art may realize that the units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware, in combination with the examples described in the embodiments disclosed herein. Whether a function is implemented by hardware or software depends on the design constraints of a specific application and technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but the implementation should not be considered to go beyond the scope of this application.

[0397] For the sake of convenience and simplicity, those skilled in the art can clearly understand that the detailed work processes of the above systems, devices and units can be referred to the corresponding processes in the above method embodiments, and the details will not be described again here.

[0398] In some embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the described device embodiments are merely examples. For example, the division into units is merely a logical functional division and may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented. Furthermore, the shown or described mutual couplings or direct couplings or communication connections may be implemented through some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electrical, mechanical, or other forms.

[0399] The units described as separate parts may or may not be physically separate, and the parts shown as units may or may not be physical units, i.e., may be located in one place or distributed over multiple network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.

[0400] Additionally, the functional units in the embodiments of the present application may be integrated into one processing unit, each of the units may exist physically alone, or two or more units may be integrated into one unit.

[0401] When a function is implemented in the form of a software functional unit and sold or used as an independent product, the function may be stored in a computer-readable storage medium. Based on this understanding, a part that essentially contributes to the technical solution of the present application or a part of the technical solution may be embodied in the form of a software product. A computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method in the embodiments of the present application. The above storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0402] The above description is merely a specific implementation of the present application and does not limit the scope of protection of the present application. Any modifications or replacements that can be easily conceived by those skilled in the art within the technical scope disclosed in the present application shall fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims.

Claims

1. 1. A link establishment method, comprising: receiving a first packet; creating virtual local area network interface information based on the first packet, the virtual local area network interface information corresponding to 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; A method comprising:

2. The method of claim 1 , wherein the first packet is a link layer discovery protocol packet.

3. The first packet includes an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces, and creating the virtual local area network interface information based on the first packet includes: creating the one virtual local area network interface on a physical Ethernet port that receives the first packet based on the identifier of the one virtual local area network interface in the first packet; or creating the plurality of virtual local area network interfaces on a physical Ethernet port that receives the first packet based on the identifiers of the plurality of virtual local area network interfaces in the first packet; 3. The method of claim 1 or 2, comprising:

4. The virtual local area network interface information includes one virtual local area network interface, and the second address information includes address information of the one virtual local area network interface; or The method of claim 1 , wherein the virtual local area network interface information includes a plurality of virtual local area network interfaces, and the second address information includes address information of the plurality of virtual local area network interfaces.

5. The method comprises: transmitting the first information to the first device over the created virtual local area network interface; The method of claim 1 , further comprising:

6. the first information is used to generate the first address information of the first device; transmitting the first information to the first device over the created virtual local area network interface; sending a router advertisement packet to the first device over the created virtual local area network interface, the router advertisement packet including the first information, the first information including network segment information; The method of claim 5 , comprising:

7. Before sending the router advertisement packet to the first device on the created virtual local area network interface, the method further comprises: receiving a router solicitation packet on the created virtual local area network interface. The method of claim 6 further comprising:

8. The first information includes the first address information, and the step of transmitting the first information to the first device over the created virtual local area network interface includes: receiving a Dynamic Host Configuration Protocol request on the created virtual local area network interface; sending a Dynamic Host Configuration Protocol response to the first device over the created virtual local area network interface, the Dynamic Host Configuration Protocol response including the first information; The method of claim 5 , comprising:

9. The method comprises: sending the address of the service plane in the second address information to a network management device; 9. The method of claim 1, further comprising:

10. The method comprises: receiving a service plane address in the first address information of the first device from the network management device; 10. The method of claim 1, further comprising:

11. The method comprises: establishing the 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; 11. The method of claim 1, further comprising:

12. 1. A link establishment method, comprising: receiving a first packet; creating virtual local area network interface information based on the first packet; 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 corresponding to the virtual local area network interface information; A method comprising:

13. 13. The method of claim 12, wherein the first packet is a link layer discovery protocol packet.

14. The first packet includes an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces, and creating the virtual local area network interface information based on the first packet includes: creating the one virtual local area network interface on a physical Ethernet port that receives the first packet based on the identifier of the one virtual local area network interface in the first packet; or creating the plurality of virtual local area network interfaces on a physical Ethernet port that receives the first packet based on the identifiers of the plurality of virtual local area network interfaces in the first packet.

14. The method of claim 12 or 13, comprising:

15. the virtual local area network interface information includes a first virtual local area network interface, the first virtual local area network interface is any interface in the virtual local area network interface information, and the first information includes first information corresponding to the first virtual local area network interface; receiving the first information based on the virtual local area network interface information, receiving the first information corresponding to the first virtual local area network on the first virtual local area network interface; The step of generating the first address information based on the first information includes: generating address information of the first virtual local area network interface in the first address information based on the first information corresponding to the first virtual local area network interface, or obtaining address information of the first virtual local area network interface from the first information corresponding to the first virtual local area network interface; 15. The method of any one of claims 12 to 14, comprising:

16. The virtual local area network interface information includes one virtual local area network interface, and the first address information includes address information of the one virtual local area network interface; or 16. The method of claim 12, wherein the virtual local area network interface information includes a plurality of virtual local area network interfaces, and the first address information includes address information of the plurality of virtual local area network interfaces.

17. receiving the first information based on the virtual local area network interface information, receiving a router advertisement packet on the created virtual local area network interface, the router advertisement packet including the first information, the first information including network segment information; The step of generating the first address information based on the first information includes:

17. The method of claim 12, comprising generating the first address information based on the network segment information in the first information.

18. Before receiving the router advertisement packet on the created virtual local area network interface, the method comprises: sending a router solicitation packet on the created virtual local area network interface.

20. The method of claim 17, further comprising:

19. receiving the first information based on the virtual local area network interface information, sending a Dynamic Host Configuration Protocol request on the created virtual local area network interface; receiving a Dynamic Host Configuration Protocol response on the created virtual local area network interface, the Dynamic Host Configuration Protocol response including the first information, the first information including the first address information; Including, The step of generating the first address information based on the first information includes: obtaining the first address information from the first information in the Dynamic Host Configuration Protocol response; 17. The method of any one of claims 12 to 16, comprising:

20. The method comprises: sending the address of the service plane in the first address information to a network management device; 20. The method of any one of claims 12 to 19, further comprising:

21. The method comprises: receiving a service plane address in second address information of a second device from the network management device; 21. The method of any one of claims 12 to 20, further comprising:

22. The method comprises: establishing the link based on 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; 22. The method of any one of claims 12 to 21, further comprising:

23. 1. A link establishment method, comprising: receiving a second packet; creating virtual local area network interface information based on the second packet; generating third address information and routing information, the third address information corresponding to the virtual local area network interface information; A method comprising:

24. The second packet is the link layer discovery protocol packet, and the link layer discovery protocol packet includes an identifier of one virtual local area network interface or identifiers of multiple virtual local area network interfaces, and the step of creating the virtual local area network interface information based on the second packet includes: creating the one virtual local area network interface on a physical Ethernet port that receives the link layer discovery protocol packet based on the identifier of the one virtual local area network interface in the link layer discovery protocol packet; or creating the plurality of virtual local area network interfaces on a physical Ethernet port that receives the link layer discovery protocol packet based on the identifiers of the plurality of virtual local area network interfaces in the link layer discovery protocol packet.

24. The method of claim 23, comprising:

25. the second packet is a router advertisement packet; The step of receiving the second packet includes: receiving one or more router advertisement packets, the data link layer of the router advertisement packets carrying an identifier of one virtual local area network interface; The step of creating the virtual local area network interface information based on the second packet includes: creating a virtual local area network interface on a physical Ethernet port that receives the router advertisement packet based on the identifier of the virtual local area network interface carried by the data link layer of the router advertisement packet.

24. The method of claim 23, comprising:

26. The virtual local area network interface information includes one virtual local area network interface, and the third address information includes address information of the one virtual local area network interface; or 26. The method of claim 23, wherein the virtual local area network interface information includes a plurality of virtual local area network interfaces, and the third address information includes address information of the plurality of virtual local area network interfaces.

27. The step of generating the third address information and the routing information includes: sending a Dynamic Host Configuration Protocol request to a third device over the 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; using a default gateway address in said Dynamic Host Configuration Protocol response as a gateway address in said routing information; 27. The method of any one of claims 23 to 26, comprising:

28. the second packet is the router advertisement packet, and the step of generating the third address information and the routing information includes: generating the third address information based on the second packet; generating the routing information based on the second packet; 27. The method of any one of claims 23 to 26, comprising:

29. the second packet includes network segment information, and the step of generating the third address information based on the second packet includes:

30. The method of claim 28, comprising generating the third address information based on the network segment information in the second packet.

30. The step of generating the routing information based on the second packet includes:

30. A method according to claim 28 or 29, comprising using the source address of the second packet as a gateway address of the routing information.

31. Before receiving the second packet, the method further comprises: Sending a router solicitation packet 31. The method of any one of claims 28 to 30, further comprising:

32. The method comprises: sending the address of the service plane in the third address information to a network management device; 32. The method of any one of claims 23 to 31, further comprising:

33. The method comprises: receiving a service plane address in fourth address information of a fourth device from the network management device; 33. The method of any one of claims 23 to 32, further comprising:

34. The method comprises:

34. The method of claim 23, further comprising establishing the link based on 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. 1. A link establishment method, comprising: obtaining a service plane address of the first device; transmitting the address of the service plane of the first device to a second device, where there is a correspondence between the first device and the second device; A method comprising:

36. 36. The method of claim 35, wherein the correspondence between the first device and the second device is pre-configured.

37. The step of obtaining the address of the service plane of the first device comprises: receiving the address of the service plane of the first device from the first device; 37. The method of claim 35 or 36, comprising:

38. The method comprises: obtaining a service plane address of the second device; transmitting the address of the service plane of the second device to the first device; 38. The method of any one of claims 35 to 37, further comprising:

39. The step of obtaining the address of the service plane of the second device comprises: receiving the address of the service plane of the second device from the second device; 39. The method of claim 38, comprising:

40. The method comprises: obtaining configuration information of the first device and configuration information of the second device; 40. The method of any one of claims 35 to 39, further comprising:

41. 41. A communications device comprising a unit configured to perform the method of any one of claims 1 to 11, or comprising a unit configured to perform the method of any one of claims 12 to 22, or comprising a unit configured to perform the method of any one of claims 23 to 34, or comprising a unit configured to perform the method of any one of claims 35 to 40.

42. A communications device comprising a processor and a memory, wherein the memory is configured to store a computer program, and wherein the processor is configured to call and execute the computer program stored in the memory to perform a method according to any one of claims 1 to 11, or a method according to any one of claims 12 to 22, or a method according to any one of claims 23 to 34, or a method according to any one of claims 35 to 40.

43. A chip comprising a processor configured to retrieve computer instructions from a memory and execute said computer instructions, thereby causing a device in which said chip is installed to perform a method according to any one of claims 1 to 11, or a method according to any one of claims 12 to 22, or a method according to any one of claims 23 to 34, or a method according to any one of claims 35 to 40.

44. 10. A computer readable storage medium configured to store computer program instructions, the computer program enabling a computer to perform the method of any one of claims 1 to 11, or the method of any one of claims 12 to 22, or the method of any one of claims 23 to 34, or the method of any one of claims 35 to 40.

45. 10. A computer program product comprising computer program instructions, the computer program instructions enabling a computer to perform the method of any one of claims 1 to 11, or the method of any one of claims 12 to 22, or the method of any one of claims 23 to 34, or the method of any one of claims 35 to 40.

Citation Information

Patent Citations

  • Security access method and equipment for IP phone

    CN103368967A

  • Base station configuration method and device, equipment and medium

    CN112584393A

  • Communication method, apparatus, device and system, and medium

    EP4027688A1

  • Network service system and its repeater

    JP2003169082A

  • Network system, method and program for setting in-network identifier, access identification information management device, its program, network connecting point, and record medium

    JP2004312482A