Link establishment method, apparatus, and storage medium
The method automates the configuration of network interfaces and addresses in communication systems, addressing the complexity of manual parameter setup in existing systems by using packet-based interface creation for efficient link establishment.
Patent Information
- Application Number
- JP2025540826
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-01-13
- Publication Date
- 2026-12-04
- Estimated Expiration
- 2043-01-13
AI Technical Summary
Current communication systems require manual configuration of transmission-related parameters, such as VLAN interface information and IP addresses, which is complex and inefficient, especially when links need to be adjusted.
A method for network devices to automatically generate transmission-related configuration parameters by creating virtual local area network interfaces based on received packets, such as Link Layer Discovery Protocol packets, to facilitate automatic link establishment.
Enables efficient and automated configuration of network interfaces and addresses, simplifying the link establishment process without manual intervention.
Smart Images

Figure 0007961394000001 
Figure 0007961394000002 
Figure 0007961394000003
Abstract
Description
TECHNICAL FIELD
[0001] This application relates to the field of communication technologies, and in particular, to a link establishment method, an apparatus, and a storage medium. BACKGROUND ART
[0002] Currently, transmission-related parameters of a network device in a link of a communications system, for example, virtual local area network (VLAN) interface information, internet protocol (IP) address, and route, are mainly manually configured by operation and maintenance personnel. For example, parameters of a control & manager (C&M) plane, a service plane, and a clock plane of a baseband unit (BBU) or a radio unit (RU) in the link are configured. When a link of a communications system needs to be adjusted, the configuration of the BBU or the RU needs to be separately modified again, and an operation is complex. SUMMARY OF THE INVENTION
[0003] This application provides a link establishment method, an apparatus, and a storage medium, so that a network device in a link may automatically generate a transmission-related configuration parameter, to provide data support for automatic link establishment of the device.
[0004] A first aspect of this application provides a link establishment method applicable to a communication system using Layer 2 (L2) networking. The method includes receiving a first packet, creating virtual local area network interface information based on the first packet, wherein the virtual local area network interface information corresponds to first information, the first information is used to generate first address information for a first device, or the first information includes first address information, and generating second address information, wherein the second address information corresponds 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 first packet received, generates an address corresponding to the virtual local area network interface without manually configuring the device's address information, and thus the device automatically configures the 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 therefore, 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 for one virtual local area network interface or identifiers for 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 receiving the first packet based on the identifier for one virtual local area network interface in the first packet, or creating multiple virtual local area network interfaces on a physical Ethernet port receiving the first packet based on the identifiers for 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 first packet received, and the number of virtual local area network interface identifiers is the same as the number of virtual local area network interfaces created. Therefore, the device automatically configures one or more virtual local area network interfaces.
[0010] Optionally, the created virtual local area network (VAC) interfaces may include a service plane VAC interface, a management plane VAC interface, and a clock plane VAC interface. Multiple VAC 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 the address information of 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 the 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 the address information of one virtual local area network interface created by the device or the address information of multiple virtual local area network interfaces created by the device. Therefore, the device automatically generates the address information of one virtual local area network interface or 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 first information to a first device on a created virtual local area network interface.
[0014] In the above solution, the device sends first information, and therefore the peer device (i.e., the first device) either generates the peer device's address information based on the first information, or directly obtains the peer device's address information from the first information.
[0015] In an optional embodiment of the first aspect, the first information is used to generate first address information for a first device, and transmitting the first information to the first device on the created virtual local area network interface includes transmitting a router advertisement packet to the first device 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.
[0016] In the above solution, the device sends the first information by using a router advertisement packet, and therefore the peer device generates the peer device's address information based on the router advertisement packet.
[0017] In an optional embodiment of the first aspect, the method further includes receiving a router solicitation packet on the created virtual local area network interface before sending a router advertisement packet to the first device on the created virtual local area network interface.
[0018] In the above solution, the device sends first information by using a router advertisement packet in response to the peer device's router solicitation packet, and therefore the peer device can generate the peer device's address information based on the router advertisement packet, and the peer device automatically generates the peer device's address information.
[0019] In an optional embodiment of the first aspect, the first information includes first address information, and transmitting the first information to a first device on a created virtual local area network interface includes receiving a dynamic host configuration protocol request on a created virtual local area network interface and transmitting a dynamic host configuration protocol response to the first device on a created virtual local area network interface, wherein the dynamic host configuration protocol response includes the first information.
[0020] In the above solution, the device sends the first information by using the dynamic host configuration protocol response in response to the peer device's dynamic host configuration protocol request, and thus the peer device can obtain the peer device's address information from the dynamic host configuration protocol response.
[0021] In an optional embodiment of the first aspect, the method further includes transmitting the service plane address in second address information to a 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 the service plane address in the first address information of the first device from a network management device.
[0024] In the above solution, the device learns about the service plane address of the peer device through the network management device.
[0025] In an optional embodiment of the first aspect, the method further includes establishing a link based on the address of the service plane in the second address information and the address of the service plane in the first address information of the first device.
[0026] In the above solution, the device automatically establishes a link based on the service plane address of the device, as known from the network management device, and the service plane address of the peer device.
[0027] In an optional embodiment of the first aspect, the method further includes: sending a router solicitation packet for N times, where N is a positive integer; and generating second address information when no router advertisement packet is received.
[0028] In the foregoing solution, a device determines whether the device is an address allocation node by sending a router solicitation packet based on whether a response packet of the packet, that is, a router advertisement packet, is received. If the device does not receive a router advertisement packet, the device may autonomously generate second address information.
[0029] In an optional embodiment of the first aspect, the method further includes: sending a dynamic host configuration protocol request for N times, where N is a positive integer; and generating second address information when no dynamic host configuration protocol response is received.
[0030] In the foregoing solution, a device determines whether the device is an address allocation node by sending a dynamic host configuration protocol request based on whether a response to the request, that is, 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 of the device.
[0031] A second aspect of this application provides a link establishment method applicable to a communications system using layer 2 (L2) networking. The method includes: 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 the device's address information by receiving the first information of the peer device on the virtual local area network interface created based on the first information. Therefore, the device automatically configures the 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 therefore, 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 for one virtual local area network interface or identifiers for 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 receiving the first packet based on the identifier for one virtual local area network interface in the first packet, or creating multiple virtual local area network interfaces on a physical Ethernet port receiving the first packet based on the identifiers for 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 first packet received, and the number of virtual local area network interface identifiers is the same as the number of virtual local area network interfaces created. Therefore, the device automatically configures one or more 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 on the first virtual local area network interface, generating the 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 the address in the address information for the first virtual local area network interface on the created first virtual local area network interface.
[0038] In the above solution, after creating one or more 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, determines the address of the virtual local area network interface based on the first information corresponding to the virtual local area network interface, and therefore the device automatically generates the address of one or more 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 the address information of 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 the address information of multiple virtual local area network interfaces.
[0040] In the above solution, the device generates corresponding first address information based on virtual local area network interface information, and the first address information includes address information for one virtual local area network interface created by the device or address information for multiple virtual local area network interfaces created by the device. Therefore, the device automatically generates address information for one virtual local area network interface or 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 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 first information, the first information includes network segment information, and generating first address information based on first information includes generating first address information based on network segment information in the first information.
[0042] Optionally, the addresses in the first address information are configured on the created virtual local area network interface.
[0043] In the above solution, the device obtains network segment information by receiving router advertisement packets, generates device address information based on the network segment information, and therefore the device automatically generates device address information to provide data support for link establishment.
[0044] In an optional embodiment of the second aspect, the method further includes sending a router solicitation packet on the created virtual local area network interface before receiving a router advertisement packet on the created virtual local area network interface.
[0045] In the above solution, the device actively initiates a router solicitation packet, and therefore, the device obtains network segment information allocated to it by the peer device by receiving the peer device's router advertisement packet.
[0046] In an optional embodiment of the second aspect, receiving first information based on 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, wherein the dynamic host configuration protocol response includes first information, the first information includes first address information, and generating first address information based on first information includes obtaining first address information from the first information in the dynamic host configuration protocol response.
[0047] Optionally, the addresses in the first address information are configured on the created virtual local area network interface.
[0048] In the above solution, the device actively initiates a dynamic host configuration protocol request, and therefore, the device obtains the address information assigned to it by the peer device by receiving the dynamic host configuration response from the peer device.
[0049] In an optional embodiment of the second aspect, the method further includes transmitting the service plane address in the first address information to a 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 therefore 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 the service plane address in the second address information of the second device from the network management device.
[0052] In the above solution, the device learns about the service plane address of the peer device through the network management device.
[0053] In an optional embodiment of the second aspect, the method further includes establishing a 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.
[0054] In the above solution, the device automatically establishes a link based on the service plane address of the device, as known from the network management device, and the service plane address of the peer device.
[0055] A third aspect of this application provides a link establishment method applicable to a communication system using Layer 3 (L3) networking. The method includes receiving a second packet, creating virtual local area network interface information based on the second packet, and generating third address information and routing information, wherein 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 second packet received, generates the address and route corresponding to the virtual local area network interface without manually configuring the device's address and route, and thus the device automatically configures the address and 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 includes an identifier for one virtual local area network interface or identifiers for multiple virtual local area network interfaces, and creating virtual local area network interface information based on the second packet includes creating one virtual local area network interface on a physical Ethernet port receiving the link layer discovery protocol packet based on the identifier for one virtual local area network interface in the link layer discovery protocol packet, or creating multiple virtual local area network interfaces on a physical Ethernet port receiving the link layer discovery protocol packet based on the identifiers for 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 (VAT) interface information based on the VAT identifier in the packet upon receiving a Link Layer Discovery Protocol packet. The number of VAT interfaces is equal to the number of VAT identifiers in the packet, and therefore the device automatically configures one or more VAT interfaces.
[0059] In an optional embodiment of the third aspect, the second packet is a router advertisement packet, receiving the second packet means receiving one or more router advertisement packets, the data link layer of the router advertisement packet carries the identifier of one virtual local area network interface, and creating virtual local area network interface information based on the second packet means creating one virtual local area network interface on the physical Ethernet port receiving the router advertisement packet, based on the identifier of one virtual local area network interface carried by the data link layer of the router advertisement packet.
[0060] In the above solution, the device, upon receiving one or more router advertisement packets, 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 one or more router advertisement packets. The number of virtual local area network interfaces is equal to the number of router advertisement packets received, and therefore the device automatically configures one or more 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 the address information of 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 the address information of 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 the address information of one virtual local area network interface created by the device or the address information of multiple virtual local area network interfaces created by the device. Therefore, the device automatically generates the address information of one virtual local area network interface or multiple virtual local area network interfaces to provide data support for link establishment.
[0063] In an optional embodiment of the third aspect, generating third address information and routing information includes sending a dynamic host configuration protocol request to a third device on a created virtual local area network interface, receiving a dynamic host configuration protocol response on the created virtual local area network interface, obtaining third address information from the dynamic host configuration protocol response, and using the default gateway address in the dynamic host configuration protocol response as the gateway address for the routing information.
[0064] Optionally, this method further includes configuring the address in the third address information on the created virtual local area network interface.
[0065] In the above solution, the device actively initiates a dynamic host configuration protocol request to a third device, and the third device, by receiving a dynamic host configuration protocol response from the third device, obtains address information assigned to the device by the third device and determines the gateway address in the routing information based on the dynamic host configuration protocol response, which is a network layer device (e.g., a router).
[0066] In an optional embodiment of the third aspect, the second packet is a router advertisement packet, and generating the third address information and 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, the 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 third address information based on the second packet means generating third address information based on network segment information in the second packet, wherein the second packet may be a router advertisement packet.
[0069] In the above solution, the device automatically generates its address information by using the network segment information in the second packet.
[0070] Optionally, this method further includes configuring the address in the third address information on the created virtual local area network interface.
[0071] In an optional embodiment of the third aspect, generating routing information based on a second packet includes using the source address of the second packet as the gateway address of the routing information, wherein 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 upon receiving the second packet.
[0073] In an optional embodiment of the third aspect, the method further includes sending a router solicitation packet before receiving a second packet, the second packet may be a router advertisement packet.
[0074] In the above solution, the 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 transmitting the service plane address in the third address information to a 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 therefore 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 the service plane address in the fourth address information of the fourth device from the network management device.
[0078] In the above solution, the device learns about the service plane address of the peer device through the network management device.
[0079] In an optional embodiment of the third aspect, the method further includes establishing a 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.
[0080] In the above solution, the device automatically establishes a link based on the service plane address of the device, as known from the network management device, and the service plane address of the peer device.
[0081] A fourth aspect of this application provides a link establishment method, which includes obtaining the service plane address of a first device and transmitting the service plane address of the first device to a second device, wherein 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, and therefore the second device knows 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 service plane address of the first device includes receiving the service plane address of the first device from the first device.
[0085] In the above solution, the device obtains the service plane address of the first device, which was actively reported by the first device.
[0086] In an optional embodiment of the fourth aspect, the method further includes obtaining the service plane address of the second device and transmitting the service plane address of the second device to the first device.
[0087] In the above solution, the device transmits the service plane address of the second device corresponding to the first device to the first device, and therefore the first device knows 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 service plane address of the second device includes receiving the service plane address of the second device from the second device.
[0089] In the above solution, the device obtains the service plane address of the second device, which was actively reported by the second device.
[0090] In an optional embodiment of the fourth aspect, the method further includes obtaining configuration information of a first device and configuration information of a second device.
[0091] According to a fifth aspect, one embodiment of the present application provides a link establishment method, which includes transmitting a first packet to an access network device, the first packet being used by the access network device to create virtual local area network interface information, the access network device may be an execution device in the first, second, third, or any selected embodiment.
[0092] In the above solution, the device sends the first packet, and therefore, the device that receives the packet automatically creates a virtual local area network interface.
[0093] In an optional embodiment of the fifth aspect, the first packet includes a link layer discovery protocol packet or a router advertisement packet.
[0094] A sixth aspect of this application provides a communication device. The communication device includes 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 virtual local area network interface information corresponds to first information, the first information is used to generate first address information for a first device, or the first information includes first address information, the processing module is further configured to generate second address information, 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 for one virtual local area network interface or identifiers for 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 receiving the first packet based on the identifier for one virtual local area network interface in the first packet, or to create multiple virtual local area network interfaces on the physical Ethernet port receiving the first packet based on the identifiers for 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 the address information of 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 the 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 first information to a first device on 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 for a first device, and the transceiver module is further configured to send a router advertisement packet to the first device 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.
[0100] In an optional embodiment of the sixth aspect, the transceiver module is further configured to receive router solicitation packets on the created virtual local area network interface before sending router advertisement packets to the first device 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 on a created virtual local area network interface and to send a dynamic host configuration protocol response to a first device on a created virtual local area network interface, wherein the dynamic host configuration protocol response includes the first information.
[0102] In an optional embodiment of the sixth aspect, the transceiver module is further configured to transmit the service plane address in second address information to a network management device.
[0103] In an optional embodiment of the sixth aspect, the transceiver module is further configured to receive the service plane address 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 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.
[0105] For the advantageous effects of the sixth aspect and optional embodiments of the sixth aspect, please refer to the advantageous effects brought about by the first aspect and optional embodiments of the first aspect. Further details will not be explained here.
[0106] A seventh aspect of this application provides a communication device. The communication device includes 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 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, wherein 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 for one virtual local area network interface or identifiers for 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 receiving the first packet based on the identifier for one virtual local area network interface in the first packet, or to create multiple virtual local area network interfaces on the physical Ethernet port receiving the first packet based on the identifiers for 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 first information corresponding to the first virtual local area network on the first virtual local area network interface, and the processing module is configured to 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 to obtain address information for 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 the address information of 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 the address information of 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 a created virtual local area network interface, wherein the router advertisement packet contains first information, the first information contains 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, the transceiver module is further configured to send router solicitation packets on the created virtual local area network interface before receiving router advertisement packets 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 a created virtual local area network interface and to receive a dynamic host configuration protocol response on a created virtual local area network interface, wherein the dynamic host configuration protocol response includes first information, the first information includes 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 the service plane address in first address information to the network management device.
[0115] In an optional embodiment of the seventh aspect, the transceiver module is configured to receive the service plane address 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 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.
[0117] For the advantageous effects of the seventh aspect and optional embodiments of the seventh aspect, please refer to the advantageous effects brought about by the second aspect and optional embodiments of the second aspect. Further details will not be explained here.
[0118] An eighth aspect of this application provides a communication device. The communication device includes 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 to generate third address information and routing information, wherein 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, the link layer discovery protocol packet includes an identifier for one virtual local area network interface or identifiers for multiple virtual local area network interfaces, and the processing module is configured to create one virtual local area network interface on a physical Ethernet port receiving the link layer discovery protocol packet based on the identifier for one virtual local area network interface in the link layer discovery protocol packet, or to create multiple virtual local area network interfaces on a physical Ethernet port receiving the link layer discovery protocol packet based on the identifiers for 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, and the transceiver module is configured to receive one or more router advertisement packets, wherein the data link layer of the router advertisement packet carries the 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 receiving the router advertisement packet, based on the identifier of 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 the address information of 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 the address information of 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 a third device on the created virtual local area network interface and to receive a dynamic host configuration protocol response on 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 to use the default gateway address in the dynamic host configuration protocol response as the gateway address for 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 a third address information based on the second packet and to 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 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 the source address of the second packet as the gateway address for routing information.
[0126] In an optional embodiment of the eighth aspect, the transceiver module is configured to send a router solicitation packet before receiving the second packet.
[0127] In an optional embodiment of the eighth aspect, the transceiver module is further configured to transmit the service plane address in third address information to a network management device.
[0128] In an optional embodiment of the eighth aspect, the transceiver module is further configured to receive the service plane address 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 the service plane address in the third address information and the service plane address in the fourth address information of the fourth device.
[0130] For the advantageous effects of the eighth aspect and optional embodiments of the eighth aspect, please refer to the advantageous effects brought about by the third aspect and optional embodiments of the third aspect. Further details will not be explained here.
[0131] A ninth aspect of this application provides a communication device, the communication device including a transceiver module configured to obtain the service plane address of a first device, the transceiver module further configured to transmit the service plane address of the first device to a second device, thereby establishing 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 the service plane address of the first device from the first device.
[0134] In an optional embodiment of the ninth aspect, the transceiver module is further configured to obtain the 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 the service plane address of the second device from the second device.
[0136] In an optional embodiment of the ninth aspect, the transceiver module is further configured to acquire configuration information of a first device and configuration information of a second device.
[0137] For the advantageous effects of the ninth aspect and optional embodiments of the ninth aspect, please refer to the advantageous effects brought about by the fourth aspect and optional embodiments of the fourth aspect. Further details will not be explained here.
[0138] According to the tenth aspect, one embodiment of the present application provides a communication device. The communication device includes a processor and memory. The memory is configured to store computer programs, and the processor is configured to call and execute the computer programs stored in the memory to carry out the methods according to the first, second, third, fourth, fifth aspect, or any possible embodiment.
[0139] According to the eleventh aspect, one embodiment of the present application provides a chip comprising a processor configured to call computer instructions from memory and to execute computer instructions, and so a device on which the chip is installed implements a method according to the first, second, third, fourth, fifth aspect, or possible embodiments.
[0140] According to the twelfth aspect, one embodiment of the present application provides a computer-readable storage medium configured to store computer program instructions, the computer enabling a computer to carry out the methods according to the first, second, third, fourth, fifth, or possible embodiments.
[0141] According to the thirteenth aspect, one embodiment of the present application provides a computer program product, which includes computer program instructions, which enable a computer to carry out a method according to the first, second, third, fourth, fifth aspect, or any possible embodiment. [Brief explanation of the drawing]
[0142] [Figure 1] This is a diagram showing the structure of a communication system according to one embodiment of the present application. [Figure 2] This is a schematic flowchart of a link establishment method according to one embodiment of this application. [Figure 3] This is a schematic flowchart of a link establishment method according to one embodiment of this application. [Figure 4] This is a schematic flowchart of a link establishment method according to one embodiment of this application. [Figure 5] This is a schematic flowchart of a link establishment method according to one embodiment of this application. [Figure 6] This is a schematic flowchart of a link establishment method according to one embodiment of this application. [Figure 7] This is a schematic flowchart of a link establishment method according to one embodiment of this application. [Figure 8] This is a schematic flowchart of a link establishment method according to one embodiment of this application. [Figure 9] This is a block diagram of a communication device according to one embodiment of the present application. [Figure 10]This is a block diagram of a communication device according to one embodiment of the present application. [Modes for carrying out the invention]
[0143] Figure 1 is a diagram of the structure of a communication system according to one embodiment of the present application. As shown in Figure 1, the communication system 100 includes network device 101, network device 102, and network device 103. Network devices 101 and 102 are connected separately to network device 103. Packets can be transmitted between network device 101 and network device 102 through network device 103. In this embodiment, the 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 common public radio interface (CPRI) links and enhanced common public radio interface (eCPRI) links. In some embodiments, the communication system may be a fronthaul network system.
[0144] In possible scenarios, 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] A DU may be contained within a baseband unit (BBU). A RU may be contained within a radio frequency device or radio frequency unit, for example, within a remote radio unit (RRU), an active antenna unit (AAU), or a remote radio head (RRH).
[0146] In another possible scenario, network device 101 could be a distributed unit (DU), network device 102 could be a radio frequency unit (RU) (AAU or RRU), and network device 103 could, alternatively, be a network layer device (a Layer 3 device, e.g., a router).
[0147] Please note that, unless otherwise specified below, the distributed unit DU will be described using the baseband unit BBU as an example.
[0148] In the first scenario, the BBU and RU use Layer 2 (L2) networking, and in the second scenario, the BBU and RU use Layer 3 (L3) networking. In both scenarios, the baseband unit is a communication device or functional module capable of processing baseband signals, and the radio frequency unit is a communication device or functional module capable 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 a CPRI, eCPRI, a common radio interface for Ethernet devices, or another type of interface. This is not limited to the embodiments of this application.
[0149] When a baseband unit communicates with a radio frequency unit via eCPRI, the baseband unit may be called an eCPRI radio equipment controller (eREC), and the radio frequency unit may be called eCPRI radio equipment (eRE). The eREC and eRE can be considered two components of a wireless base station. For example, the eREC and eRE may be physically separated, with the eREC located in a ground equipment room and the eRE being near or including the antenna. The physical layer functions of the wireless base station are divided into two parts, deployed on the eREC and on the eRE, respectively. In particular, the eREC includes the physical layer functions and upper layer functions of the air interface. The upper layers as used herein include, for example, the media access control (MAC) layer, the radio link control (RLC) layer, the packet data convergence protocol (PDCP) layer, and the radio resource control (RRC) layer. eRE includes parts for physical layer functionality and analog radio frequency functionality.
[0150] In one embodiment, network devices 101 and 102 are connected separately to a network management device 104. A channel is established between network device 101 or network device 102 and the network management device 104. The network management device 104 performs software installation or updates, file configuration, or other maintenance functions, such as alarm issuance, tracking, and monitoring, on network devices 101 and 102 through the channel. The network management device 104 may be, for example, an operation, administration, and management (OAM) device. The channel between network device 101 and the network management device 104 may be a channel between the BBU and the network management device 104, and the channel between network device 102 and the network management device 104 may be a channel between the RU (AAU or RRU) and the network management device 104. The channel may be a management plane channel.
[0151] The user can configure service plane VLAN interface information, IP addresses, routes, and other parameters for network devices 101 and 102 separately through the network management device 104. It can be seen that the communication system links must be configured manually, and therefore operation and maintenance are complex. If the communication system links need to be coordinated, for example, if the VLAN interface information, IP addresses, and routes of network device 101 or network device 102 in the communication system links need to be coordinated, the configuration of network device 101 or network device 102 must be modified separately, and the operation is complex.
[0152] In this regard, embodiments of the present application provide a link establishment method that enables network devices in a communication system to automatically establish links in the communication system without manual configuration by automatically generating transmission-related configuration parameters, such as VLAN interface information, IP addresses, and routes. For ease of understanding, the following briefly describes the technical solution provided in the present application using network devices BBU and RU as an example.
[0153] Scenario 1: The BBU and RU use data link layer (Layer 2) device networking, and the BBU is used as the address allocation node.
[0154] A 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 VLAN interfaces based on virtual local area network interface information carried in LLDP packets from Layer 2 devices. The BBU is used as an address allocation node. In IPv4 / IPv6 scenarios, the BBU can be used as a dynamic host configuration protocol (DHCP) server. In IPv6 scenarios, there is another way: the BBU can be used as a router node, sending RA packets on the created VLAN interfaces, the RA packets containing network segment information, which can be used to generate RU address information.
[0156] The RU creates VLAN interfaces based on virtual local area network interface information carried in LLDP packets from Layer 2 devices. The RU is used as an address request node. The RU initiates DHCP to request an IPv4 or IPv6 address, or the RU generates an IPv6 address based on RA packets from the BBU.
[0157] Scenario 2: The BBU and RU use network layer (Layer 3) device networking, and the Layer 3 devices are used as address allocation nodes.
[0158] Layer 3 devices perform the following actions: A Layer 3 device used as an address allocation node initiates the DHCP service and sends LLDP packets to 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 BBUs and RUs connected to the Layer 3 device.
[0159] The BBU or RU creates VLAN interfaces based on virtual local area network interface information carried in LLDP or RA packets from Layer 3 devices. The BBU or RU is used as a DHCP client to request an IPv4 or IPv6 address from Layer 3 devices, or it generates IPv6 addresses and parameters such as routes based on RA packets from Layer 3 devices.
[0160] In the communication system according to the embodiment of this 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 this application may include some or all of the following content. Some of the following specific embodiments may be combined with each other, and some embodiments may not repeatedly describe the same or similar concepts or processes.
[0162] Figure 2 is a schematic flowchart of a link establishment method according to one 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 network device 102 in Figure 1, for example, RU / RRU / AAU. The second device may be network device 101 in Figure 1, for example, BBU. The sixth device may be network device 103 in Figure 1. 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 allocation node.
[0163] As shown in Figure 2, the link establishment method in this embodiment includes the following steps.
[0164] S301a: The sixth device sends the first packet to the second device.
[0165] S301b: The sixth device sends the 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 a 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 and second devices) can receive the first packet.
[0167] For example, the first packet is a Link Layer Discovery Protocol (LLDP) packet. For instance, the first packet contains a virtual local area network interface identifier (VLAN ID), which indicates interface information for creating a link in a communication system.
[0168] Optionally, the first packet may contain the identifier of one virtual local area network interface or the identifiers of multiple virtual local area network interfaces. For example, the first packet may contain the identifiers of multiple virtual local area network interfaces, such as VLAN interface 1, VLAN interface 2, and VLAN interface 3. VLAN interface 1 may be a service plane interface, VLAN interface 2 may be a management plane interface, and VLAN interface 3 may be a clock plane interface. Any two virtual routing and forwarding (VRFs) of the three VLAN interfaces are separated from each other, and the VRFs of the three VLAN interfaces are separated separately from the VRFs of any other 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 the physical Ethernet (ethernet, ETH) port that receives the first packet. The virtual local area network interface information includes one or more virtual local area network interfaces.
[0172] For example, the first packet contains the identifier of a 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 on the physical Ethernet port that receives the first packet, based on the identifier of the virtual local area network interface in the first packet.
[0173] For example, the first packet contains identifiers for 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 for the multiple virtual local area network interfaces in the first packet.
[0174] Based on the two examples above, the first packet could be an LLDP packet, and an LLDP packet carries one or more VLAN IDs.
[0175] Based on the two examples above, the second device could be a BBU, which receives LLDP packets through an Ethernet port connected to an eCPRI or CPRI, where the LLDP packets include a VLAN ID, and the BBU creates a VLAN interface based on the LLDP packets, with the VRF of the VLAN interface being separated 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 another VLAN interface of the BBU includes, for example, a backhaul network interface.
[0176] S303: The second device generates the second address information for the second device.
[0177] In this embodiment, the second address information is the address information of a virtual local area network interface created by the second device, for example, the Internet Protocol (IP) address (IPv6 address or IPv4 address) of the virtual local area network interface created by the second device.
[0178] For example, a second device creates a virtual local area network interface based on the first packet, and the second address information generated by the second device includes the address information of the virtual local area network interface, for example, the IP address of the virtual local area network interface.
[0179] For example, a second device creates multiple virtual local area network interfaces based on a first packet, and the second address information generated by the second device includes the address information of these multiple virtual local area network interfaces. For instance, the multiple virtual local area network interfaces include VLAN interface 1, VLAN interface 2, and VLAN interface 3, and the second device generates separate IP addresses for VLAN interface 1, VLAN interface 2, and VLAN interface 3.
[0180] S304: The second device generates the first information.
[0181] For example, a second device generates first information based on 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 the first address information of the first device, the second device generates network segment information corresponding to the second address information based on the second address information, the first information includes 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 may be carried in a router advertisement packet.
[0183] For example, the first information includes the first address information of the first device, the second device generates the first address information based on the second address information, and the addresses in the first address information and the addresses in the second address information are in the same network segment. Optionally, the first information may be carried in a dynamic host configuration protocol response.
[0184] S305: The second device transmits the first information to the first device.
[0185] For example, a second device sends first information to the first device over the created virtual local area network interface. The created virtual local area network interface 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] For example, if a second device creates multiple virtual local area network interfaces, including 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, the second device may send the first information to the first device on the service plane virtual local area network interface it created, or on the management plane virtual local area network interface it created, or on the clock plane virtual local area network interface it created.
[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, as an 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] For example, the first packet contains the 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 on the physical Ethernet port that receives the first packet, based on the identifier of the virtual local area network interface in the first packet.
[0191] For example, the first packet contains identifiers for 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 for the multiple virtual local area network interfaces in the first packet.
[0192] For example, the first device could be a RU, which receives LLDP through an ETH port connected to an eCPRI or CPRI, the LLDP packet contains 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 for the first device based on the first information.
[0195] In this embodiment, the first address information is the address information of a virtual local area network interface created by the first device, for example, the IP address (IPv6 address or IPv4 address) of the virtual local area network interface created by the first device.
[0196] For example, the first device receives first information from the second device on the created virtual local area network interface and generates first address information for the first device based on the first information.
[0197] For example, the virtual local area network interface information created by the first device includes multiple virtual local area network interfaces, where the first virtual local area network interface is any interface among 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 on the created first virtual local area network interface. The first device generates 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 obtains 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 may be performed for another virtual local area network interface created by the first device.
[0198] From the above example, it can be seen that when the first device creates one virtual local area network interface, the first address information includes the address information of the virtual local area network interface, or when the first device creates multiple virtual local area network interfaces, the first device may separately receive the first information corresponding to each interface on the multiple virtual local area network interfaces and generate the address information of the virtual local area network interfaces, and the first address information includes the address information of the multiple virtual local area network interfaces created by the first device.
[0199] As an example, the first device obtains its first address information from the first information received from the second device. In this example, the second device directly assigns address information to the first device.
[0200] As another example, the first information includes network segment information, and the first device generates its first address information based on the network segment information in the first information. In this example, the second device allocates 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, where a first device and a second device in the communication system receive a first packet from a Layer 2 device, and the first and second devices 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 itself 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 therefore 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, the address information does not need to be manually configured for the devices, and therefore data support is provided for implementing automatic link establishment in the communication system.
[0202] According to the embodiments shown in Figure 2, in some embodiments, after generating the second address information, the second device may further perform the following steps.
[0203] S307: The second device transmits the service plane address in the second address information of the second device to the network management device.
[0204] For example, the second device transmits the service plane address in the second address information of the second device to the network management device via 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 service plane address in the first address information of the first device to the network management device.
[0207] For example, the first device transmits the service plane address in the first address information of the first device to the network management device via the management plane channel.
[0208] After receiving the service plane address 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 service plane address to the first device in the second address information of the second device.
[0210] The network management device transmits the service plane address to the first device in the second address information of the second device, based on the correspondence between the first device and the second device.
[0211] After receiving the service plane address 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 service plane address to the second device in the first address information of the first device.
[0213] The network management device transmits the 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: The first device establishes a link to the second device.
[0215] As an example, the first device establishes a link to the second device based on the service plane address in the first address information of the first device and the service plane address in the second address information of the second device.
[0216] In this embodiment, the service plane address in the first address information of the first device is the 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 service plane address in the second address information of the second device is the IP address corresponding to the virtual local area network interface of the service plane in the second address information of the second device.
[0217] In this embodiment, the network management device pre-stores the configuration information of the first device, the configuration information of the second device, and the correspondence between the first device and the second device. The network management device separately receives the first address information reported by the first device and the second address information reported by the second device, notifies the second device corresponding to the first device in the first address information, and notifies the first device corresponding to the second device in the second address information, thereby enabling the first device to establish a link to the second device and implement automatic link establishment.
[0218] According to the embodiment in Figure 2, the link establishment method will be described in detail below with respect to two specific embodiments. To facilitate understanding of the solution, note that in some embodiments below, unless otherwise specified, the first packet includes an identifier for one virtual local area network interface, the second device and the virtual local area network interface information created by the second device include 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] Figure 3 is a schematic flowchart of a link establishment method according to one 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 network device 102 in Figure 1, for example, RU / RRU / AAU. The second device may be network device 101 in Figure 1, for example, BBU. The sixth device may be network device 103 in Figure 1. Network device 103 is a data link layer device, for example, a switch.
[0220] In this embodiment, as an address allocation 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 Figure 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 an 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 the identifier of the virtual local area network interface in the LLDP packet.
[0227] S403: The second device generates the second address information for the second device.
[0228] In this embodiment, the second device is an address allocation 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 the first information.
[0230] In this embodiment, the first information is used to generate the 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, and the router advertisement packet contains information about the first device.
[0232] As an example, the second device sends router advertisement packets on the created virtual local area network interface.
[0233] In a possible implementation, the second device periodically sends router advertisement packets using a multicast scheme.
[0234] In possible implementations, after creating virtual local area network interface information based on the LLDP packet, the second device sends router advertisement packets in a multicast manner.
[0235] It can be understood that the transmission of router advertisement packets by a second device in a multicast manner includes: the second device transmitting router advertisement packets to another device, including the first device, where the other device in this specification is a device located on the same communication system link as the second device.
[0236] After receiving an 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] For example, an LLDP packet contains an identifier for a virtual local area network interface, and the first device creates a virtual local area network interface corresponding to the identifier for the virtual local area network interface based on the identifier in the LLDP packet.
[0239] As an 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 contains information about the first device.
[0240] After receiving a router advertisement packet from the second device, the first device may perform the following steps:
[0241] S406: The first device generates first address information for the first device based on first information in the router advertisement packet. The first address information for the first device includes address information for the 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 specifically includes the following: The second device generates first information in response to the router request packet. The second device then 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, and therefore the first device generates first address information for the first device based on the network segment information.
[0245] For example, in an IPv6 scenario, a 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, which can be used to generate the IPv6 address of 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 first information, and the RU generates its IPv6 address 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, and the BBU generates first information in response to the RS packet, which includes network segment information. The BBU then sends an RA packet to the RU, which carries the first information, and the RU generates its IPv6 address 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, where a first device and a second device in the communication system receive LLDP packets from a Layer 2 device, and the first and second devices 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 itself after completing the creation of the virtual local area network interface information, generating first information, which can be used to generate first address information for the first device. The second device may actively transmit the first information or transmit it on the request of the first device, and the first device generates first address information for the first device based on the first information from the second device. In the above solution, the address information does not need to be manually configured for the devices, and thus data support is provided for implementing automatic link establishment in the communication system.
[0248] Figure 4 is a schematic flowchart of a link establishment method according to one 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.
[0249] The first device may be network device 102 in Figure 1, for example, RU / RRU / AAU. The second device may be network device 101 in Figure 1, for example, BBU. The sixth device may be network device 103 in Figure 1. 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 can allocate addresses by using DHCP. In some embodiments, the second device is also called a DHCP server node.
[0250] As shown in Figure 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 an 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 the second address information for the second device.
[0256] After receiving an 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] For example, an LLDP packet contains an identifier for a virtual local area network interface, and the first device creates a virtual local area network interface based on the identifier for 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 on the created virtual local area network interface, and the dynamic host configuration protocol request is used to request the 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 the first information.
[0263] The second device generates first information based on second address information in response to a dynamic host configuration protocol request. The first information includes first address information for the first device. The second address information and the first address information are in the same network segment. The first address information for the first device includes address information for 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, and the dynamic host configuration protocol response contains information from the first device.
[0265] For example, the second device sends a dynamic host configuration protocol response to the first device on the created virtual local area network interface.
[0266] After receiving a 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] As an example, the first device receives a dynamic host configuration protocol response from the second device on the created virtual local area network interface and obtains the first address information from the dynamic host configuration protocol response. After obtaining the first address information, the first device configures the address in the first address information on the created virtual local area network interface.
[0269] For example, in an IPv6 or IPv4 scenario, a second device BBU enables DHCP on the created VLAN interface, and the BBU is used as a DHCP server. A first device RU sends a DHCP request to the BBU on the created VLAN interface, and the BBU responds to the DHCP request by sending a DHCP response to the RU. The DHCP response carries first information, which includes the IPv6 or IPv4 address assigned to the RU by the BBU. The RU obtains its own IPv6 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, where a first device and a second device in the communication system receive LLDP packets from a Layer 2 device, and the first and second devices 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 itself 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 responds to the request by allocating first address information to the first device and returning 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, and thus data support is provided for implementing automatic link establishment in the communication system.
[0271] Figure 5 is a schematic flowchart of a link establishment method according to one embodiment of the present application. The link establishment method provided in this embodiment may be applied to the communication system shown in Figure 1. The communication system includes a third device and a fifth device.
[0272] The third device may be network device 103 in Figure 1, which is a network layer device, such as a router. The fifth device may be network device 102 (e.g., RU / RRU / AAU) or network device 101 (e.g., BBU) in Figure 1. In this embodiment, the third device is used as an address allocation node.
[0273] As shown in Figure 5, the link establishment method in this embodiment includes the following steps.
[0274] S601: The third device sends the 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 may be 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 the identifier of one virtual local area network interface.
[0278] Optionally, the second packet is a Link Layer Discovery Protocol packet, which may contain the identifier of one virtual local area network interface or multiple virtual local area network interfaces. For example, a Link Layer Discovery Protocol packet may contain the identifiers of multiple virtual local area network interfaces, such as VLAN interface 1, VLAN interface 2, and VLAN interface 3. VLAN interface 1 is the service plane interface, VLAN interface 2 is the management plane interface, and VLAN interface 3 is the clock plane interface. Any two VRFs of the three VLAN interfaces are separated from each other, and the VRFs of the three VLAN interfaces are separated 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, and the virtual local area network interface information includes one or more virtual local area network interfaces.
[0281] For example, the second packet is a router advertisement packet, and the data link layer of the router advertisement packet carries the identifier of a virtual local area network interface. The fifth device then creates a virtual local area network interface corresponding to the identifier of the virtual local area network interface on the physical Ethernet port that receives the router advertisement packet, based on the identifier of the virtual local area network interface in the router advertisement packet.
[0282] For example, the second packet is a router advertisement packet. S601 includes the following: The third device sends multiple second packets to the fifth device. S602 includes the following: The fifth device creates multiple virtual local area network interfaces based on the multiple second packets. For creating a virtual local area network interface corresponding to a second packet based on any second packet among the multiple second packets, see the execution steps of the example above.
[0283] For example, the second packet is a Link Layer Discovery Protocol packet, which contains the identifier of a virtual local area network interface. The fifth device then creates a virtual local area network interface corresponding to the identifier of the virtual local area network interface on the physical Ethernet port that receives the Link Layer Discovery Protocol packet, based on the identifier of the virtual local area network interface in the Link Layer Discovery Protocol packet.
[0284] For example, the second packet is a Link Layer Discovery Protocol packet, which contains identifiers for 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 for multiple virtual local area network interfaces in the Link Layer Discovery Protocol packet.
[0285] Based on the two examples above, the fifth device could be a BBU or RU. A BBU is used as an example. The BBU receives Link Layer Discovery Protocol packets through an ETH port connected to an eCPRI (or CPRI), the Link Layer Discovery Protocol packets include a VLAN ID, and the BBU creates a VLAN interface based on the VLAN ID in the Link Layer Discovery Protocol packets, 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 another VLAN interface of the BBU includes, for example, a backhaul network interface.
[0286] S603: The fifth device generates the third address information.
[0287] In this embodiment, the third address information is the address information of the virtual local area network interface created by the fifth device, for example, the IP address (IPv6 address or IPv4 address) of the virtual local area network interface created by the fifth device.
[0288] Optionally, after generating third address information, the fifth device configures the addresses in the third address information on the created virtual local area network interface.
[0289] For example, the second packet is a router advertisement packet or a link layer discovery protocol packet. The fifth device creates a virtual local area network interface based on the second packet. 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 a plurality of virtual local area network interfaces based on the link layer discovery protocol packet. The third address information generated by the fifth device includes address information of the plurality of virtual local area network interfaces. For example, the plurality of virtual local area network interfaces include a VLAN interface 1, a VLAN interface 2, and a VLAN interface 3. The fifth device separately generates IP addresses of the VLAN interface 1, the VLAN interface 2, and the VLAN interface 3.
[0291] S604: The fifth device generates routing information.
[0292] The routing information generated by the fifth device includes a gateway address, a network destination, a network mask, and the like. 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, the third device sends a second packet, and therefore 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 devices, and thus data support is provided for implementing automatic link establishment in the communication system.
[0294] According to the embodiment shown in Figure 5, after generating the third address information, the fifth device may further perform the following steps.
[0295] S605: The fifth device transmits the service plane address in the third address information to the network management device.
[0296] For example, the fifth device transmits the service plane address in the third address information to the network management device via the management plane channel.
[0297] S606: The fourth device sends the service plane address 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 the same as that of the fifth device. See S601 to S603.
[0299] S607: The network management device transmits the service plane address to the fifth device in the fourth address information of the fourth 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] For example, the fifth device receives the service plane address in the fourth address information of the fourth device from the network management device via the management plane channel.
[0302] For example, if the fifth device is a BBU, then the fourth device is either a RU / RRU / AAU corresponding to the BBU, or if the fifth device is a RU / RRU / AAU, then the fourth device is a BBU corresponding to the RU / RRU / AAU.
[0303] In this embodiment, the network management device 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 may transmit the fourth address information of the fourth device corresponding to the fifth device to the fifth device, thereby establishing a link to the fourth device and implementing automatic link establishment.
[0304] According to the embodiment shown in Figure 5, the link establishment method will be described in detail below with respect to two specific embodiments. For ease of understanding the solution, note that in some of the embodiments below, unless otherwise specified, the router advertisement packet or LLDP packet will contain an identifier for one virtual local area network interface, and the virtual local area network interface information created by the fifth device will contain the virtual local area network interface.
[0305] Figure 6 is a schematic flowchart of a link establishment method according to one embodiment of the present application. The link establishment method provided in this embodiment may be applied to a communication system including a third device and a fifth device.
[0306] The third device may be network device 103 in Figure 1, which is a network layer device, such as a router. The fifth device may be network device 102 (e.g., RU / RRU / AAU) or network device 101 (e.g., BBU) in Figure 1. In this embodiment, the third device is used as an address allocation node and can allocate addresses by using IPv6 SLAAC. In some embodiments, the third device is also called a router node. As shown in Figure 6, the method includes the following steps.
[0307] S701: The third device sends a router advertisement packet to the fifth device.
[0308] In this embodiment, the third device may transmit router advertisement packets on a physical Ethernet port connected to the fifth device.
[0309] S702: The fifth device creates virtual local area network interface information based on router advertisement packets.
[0310] For example, the data link layer of a router advertisement packet carries the identifier of a virtual local area network interface, and a 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, the third device enables an ETH port connected to the fifth device, and sends an RA packet on the ETH port. A data link layer of the RA packet carries a VLAN ID. The fifth device BBU or RU receives, on an ETH port connected to eCPRI (or CPRI), the RA packet from the third device, and the BBU or RU creates, based on the VLAN ID carried in the data link layer in the RA packet, a VLAN interface corresponding to the VLAN ID. A VLAN interface created by the BBU or RU is a fronthaul interface, and a VRF of the VLAN interface is separated from a VRF of another VLAN interface.
[0312] S703: A fifth device generates third address information based on a 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 the 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 EUI64 protocol. The two protocols are existing protocols. Details are not described herein.
[0314] S704: A fifth device generates routing information based on a router advertisement packet.
[0315] As an example, the fifth device generates the gateway address for routing information based on the network layer information in the router advertisement packet. The network layer information includes the source address of the router advertisement packet, and the fifth device uses the source address of the router advertisement packet as the gateway address for 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 request packet to the third device.
[0318] As an example, the third device generates network segment information in response to a router solicitation packet. The third device then performs S701, in which the router advertisement packet carries the network segment information. In this example, the third device allocates the network segment information to the fifth device based on the router solicitation initiated by the fifth device, and therefore the fifth device generates the third address information for the fifth device based on the network segment information.
[0319] The link establishment method described in this embodiment is applicable to link establishment in a communication system using Layer 3 device networking, where a fifth device in the communication system receives router packets from a third device and creates virtual local area network interface information based on the router packets. As an address allocation node, the third device may carry network segment information in router advertisement packets, and therefore the fifth device generates address information for the fifth device based on the network segment information in the router advertisement packets. The third device may actively send router advertisement packets or send router advertisement packets at the request of the fifth device. In the above solution, address information does not need to be manually configured for the devices, and therefore data support is provided for implementing automatic link establishment in the communication system.
[0320] Figure 7 is a schematic flowchart of a link establishment method according to one embodiment of the present application. The link establishment method provided in this embodiment may be applied to a communication system including a third device and a fifth device.
[0321] The third device may be network device 103 in Figure 1, which is a network layer device, such as a router. The fifth device may be network device 102 (e.g., RU / RRU / AAU) or network device 101 (e.g., BBU) in Figure 1. In this embodiment, the third device is used as an address allocation node and can allocate addresses by using DHCP. In some embodiments, the third device is also called a DHCP server node.
[0322] As shown in Figure 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] For example, an LLDP packet contains an identifier for a virtual local area network interface, and a fifth device creates a virtual local area network interface corresponding to 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 contains data link layer information, which includes a VLAN ID. The fifth device BBU or RU 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] For example, the fifth device sends a dynamic host configuration protocol request to the third device on 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 the third address information from the dynamic host configuration protocol response.
[0332] As an example, the fifth device receives a dynamic host configuration protocol response from the third device on the created virtual local area network interface and obtains the third device's address information from the dynamic host configuration protocol response. After obtaining the third device's address information, the fifth device configures the address in the third device's 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] For example, the fifth device uses the default gateway address in the dynamic host configuration protocol response as the gateway address for routing information.
[0335] The link establishment method described in this embodiment is applicable to link establishment in a communication system using Layer 3 device networking, where 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, requesting 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 device, and thus data support is provided for implementing automatic link establishment in the communication system.
[0336] From some of the embodiments described above, it can be seen that when a communication system uses Layer 2 device networking, a second device (e.g., BBU) is used as an address allocation node and a first device (e.g., RU / RRU / AAU) is used as an address request node, or when a communication system uses Layer 3 device networking, a third device (Layer 3 device, e.g., router) is used as an address allocation node and a fifth device (e.g., BBU) and a fourth device (e.g., RU / RRU / AAU) are used as address request nodes. It can be seen that different networkings have different device functions. Therefore, the first device, the second device, the fourth device, and the fifth device need to determine whether the current networking is Layer 2 networking or Layer 3 networking, and thus the device needs to determine whether it is an address allocation node or an address request node and automatically perform the corresponding method step.
[0337] In this case, one embodiment of the present application further provides a method for determining an address allocation node, so that a device can identify whether or not it has address allocation capability by using the method.
[0338] To make it easier to understand, the following uses BBU as an example to explain the solution.
[0339] In a possible implementation, after receiving an LLDP packet and creating virtual local area network interface information, the BBU sends N RS packets on the created virtual local area network interface to check whether an RA packet can be received on the created virtual local area network interface in response to the RS packets. If the BBU can receive an RA packet, it can be determined that the BBU is an address request node. If the BBU does not receive an RA packet, it can be determined that the BBU is an address allocation node. N is a positive integer.
[0340] For example, after creating virtual local area network interface information based on an 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 it is an address allocation node, and the second device performs the step of generating second address information.
[0341] For example, after creating virtual local area network interface information based on an LLDP packet, the first device shown in Figure 3 sends an RS packet on the created virtual local area network interface (S407), the first device receives an RA packet in response to the RS packet (S405), and the first device can learn that it is an address request node.
[0342] For example, the fifth device shown in Figure 6 sends an RS packet (S705), the fifth device receives an RA packet in response to the RS packet (S701), and the fifth device can learn that it is an address request node.
[0343] In a possible implementation, after receiving an LLDP packet and creating virtual local area network interface information, the BBU sends N DHCP requests on the created virtual local area network interface and checks whether a DHCP response can be received on the virtual local area network interface created in response to the DHCP request. If the BBU can receive a DHCP response, it can be determined that the BBU is an address requesting node. If the BBU does not receive a DHCP response, it can be determined that the BBU is an address allocation node. N is a positive integer.
[0344] For example, after creating virtual local area network interface information based on an 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 it is an address allocation node, and the second device performs the step of generating second address information.
[0345] For example, after creating virtual local area network interface information based on an LLDP packet, the first device shown in Figure 4 sends a DHCP request on the created virtual local area network interface (S504), the first device receives a DHCP response in response to the DHCP request (S506), and the first device can then know that it is an address request node.
[0346] For example, after creating virtual local area network interface information based on an LLDP packet, the fifth device shown in Figure 7 sends a DHCP request on the created virtual local area network interface (S803), the fifth device receives a DHCP response in response to the DHCP request (S804), and the fifth device can then know that it is the address request node.
[0347] One embodiment of this application provides a link establishment method. This method may be applied to a communication system including a first device and a second device having correspondences. 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 network device 101 in Figure 1, and the second device may be network device 102 in Figure 1, where network device 101 includes a BBU and network device 102 includes a RU / RRU / AAU. The process of establishing a link between the first device and the second device will be described below with reference to Figure 8.
[0348] Figure 8 is a schematic flowchart of a link establishment method according to one embodiment of this application. As shown in Figure 8, the link establishment method in this embodiment includes the following steps.
[0349] S901: The network management device receives configuration information for the first device.
[0350] S902: The network management device receives configuration information for the second device.
[0351] S903: The network management device receives the 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 the service plane address of the second device corresponding to the first device based on the correspondence between the first device and the second device, and the service plane address of the second device includes the service plane address of the second device.
[0354] In one example, a network management device obtaining the service plane address of a second device corresponding to a first device includes the following: The network management device receives 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, a 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 the service plane virtual local area network interface. 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 transmits the service plane address of the second device corresponding to the first device to the first device.
[0357] S906: The network management device obtains the service plane address of the first device corresponding to the second device based on the correspondence between the first device and the second device, and the service plane address of the first device includes the service plane address of the first device.
[0358] In one example, a network management device obtaining the service plane address of a first device corresponding to a second device includes the following: The network management device receives 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, a 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 the service plane virtual local area network interface. The first device reports the address information of VLAN interface 1 of the first device to the network management device.
[0360] S907: The network management device transmits the service plane address 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 is an address allocation node. For example, the first device is a BBU. After creating virtual local area network interface information, the first device generates the service plane address of the first device and reports 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 is a RU / RRU / AAU corresponding to the BBU. The second device generates the service plane address of the second device based on the network segment information from the first device, or the second device directly obtains the service plane address of the second device from the first device and 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.
[0363] For example, neither the first device nor the second device is an address allocation node. The first device may generate or obtain the 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 the service plane address of the second device by interacting with a Layer 3 device. For example, the first device is a BBU, and the second device is a RU / RRU / AAU corresponding to the BBU. The first device reports the service plane address of the first device to a network management device, and the second device reports the service plane address of the second device to a 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] Figure 9 is a block diagram of a communication device according to one embodiment of the present application. As shown in Figure 9, the device 1000 may include a processing module 1010 and a transceiver module 1020.
[0365] Optionally, the communication device 1000 may correspond to a second device in the method embodiment, for example, a BBU or a component configured within the BBU (for example, 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, wherein the virtual local area network interface information corresponds to first information, and the first information is used to generate first address information for the first device, or the first information includes first address information. The processing module 1010 is further configured to generate second address information, wherein the second address information corresponds to virtual local area network interface information.
[0366] Please understand that the specific processes performed by the module will be described in detail in the method embodiments shown in Figures 2 to 4. For the sake of brevity, the details will not be described again here.
[0367] Optionally, the communication device 1000 may correspond to the first device in the method embodiment, for example, a component configured in a RU / RRU / AAU or RU / RRU / AAU (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. The transceiver module 1020 is further configured to receive 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, wherein the first address information corresponds to the virtual local area network interface information.
[0368] Please understand that the specific processes performed by the module will be described in detail in the method embodiments shown in Figures 2 to 4. For the sake of brevity, the details will not be described again here.
[0369] Optionally, the communication device 1000 may correspond to a fifth device in the method embodiment, which may be, for example, a BBU or RU / RRU / AAU or a component configured within the BBU or RU / RRU / AAU (e.g., a chip or chip system). The transceiver module 1020 is configured to receive a second packet. The processing module 1010 is configured to create virtual local area network interface information based on the second packet and to generate third address information and routing information, wherein the third address information corresponds to the virtual local area network interface information.
[0370] Please understand that the specific processes performed by the module will be described in detail in the method embodiments shown in Figures 5 to 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 configured within a network management device (e.g., a chip or chip system) in the method embodiment. The transceiver module is configured to obtain the service plane address of the first device. The transceiver module is further configured to transmit the service plane address of the first device to a second device, thereby establishing a correspondence between the first and second devices.
[0372] Please understand that the specific processes performed by the module will be 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 communication device 1000 may be implemented through a transceiver, for example, corresponding to the transceiver 1110 in the communication device 1100 shown in Figure 10. The processing module 1010 in the communication device 1000 may be implemented through at least one processor, for example, corresponding to the processor 1120 in the communication device 1100 shown in Figure 10.
[0374] When the communication device 1000 is a chip or chip system configured within a network device (for example, a BBU, RU / RRU / AAU, or network management device), the transceiver module 1020 in the communication device 1000 may be implemented through input / output interfaces, circuits, etc., and the processing module 1010 in the communication device 1000 may be implemented through a processor, microprocessor, integrated circuit, etc., integrated within the chip or chip system.
[0375] In some embodiments, the above modules may also be called units. For example, a processing module may be called a processing unit, and a transceiver module may be called a transceiver unit.
[0376] Figure 10 is a block diagram of another communication device according to one embodiment of the present application. As shown in Figure 10, the communication device 1100 may include a transceiver 1110, a processor 1120, and a memory 1130. The transceiver 1110, the processor 1120, and the memory 1130 communicate with each other through an internal connection path, the memory 1130 is configured to store instructions, and the processor 1120 is configured to control the transceiver 1110 to execute instructions stored in the memory 1130 to transmit and / or receive signals.
[0377] It should be understood that the communication device 1100 may correspond to the first device, second device, fifth device, or network management device in the above-described method embodiment, and may be configured to perform steps and / or procedures performed by the first device, second device, fifth device, or network management device in the above-described method embodiment. Optionally, the memory 1130 may include read-only memory and random access memory, providing instructions and data to the processor. The memory portion may further include non-volatile random access memory. The memory 1130 may be a standalone device or may be integrated into the processor 1120. The processor 1120 may be configured to execute instructions stored in the memory 1130. When the processor 1120 executes instructions stored in memory, the processor 1120 is configured to perform steps and / or procedures corresponding to the first device, second device, fifth device, or network management device in the above-described method embodiment.
[0378] Optionally, the communication device 1100 is the first device in the above embodiment, for example, RU / RRU / AAU.
[0379] Optionally, the communication device 1100 is a second device in the above embodiment, for example, a BBU.
[0380] Optionally, the communication device 1100 is a fifth device in the above embodiment, for example, a BBU or RU / RRU / AAU.
[0381] Optionally, the communication device 1100 is a network management device in the above embodiment.
[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 components integrated 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 components integrated on the same chip. This is not limited to the present application.
[0383] Optionally, the communication device 1100 is a component configured in the first device, second device, fifth device, or network management device, such as a chip or chip system.
[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] One embodiment of the present application further provides a communication device. The communication device includes at least one processor. The at least one processor is configured to execute a computer program stored in memory, and thus the communication device performs the method steps in any one of the above-described method embodiments.
[0386] One embodiment of this 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, and thus the communication device performs the method steps in any one of the above method embodiments.
[0387] One embodiment of this application further provides a communication device. The communication device includes a processor and memory. The memory is configured to store a computer program, and the processor is configured to call a computer program from the memory and execute the computer program, so that the communication device performs the method steps in any one of the above method embodiments.
[0388] It should be understood that a communication device can consist of one or more chips. For example, a communication device may be a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system on a 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 implementation, the steps in the above method may be implemented by using instructions through integrated logic circuits of hardware in the processor or in software form. The steps of the method disclosed in relation to embodiments of this application may be performed and completed directly by a hardware processor or by using a combination of hardware and software modules in the processor. The software modules may reside in storage media that are mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electro-erasable programmable memory, or registers. The storage medium resides in memory, and the processor reads information in memory and, in combination with the processor's hardware, completes the steps in the above method. To avoid repetition, details are not described again in this specification.
[0390] It should be noted that the processor in the embodiments of this application may be an integrated circuit chip and has signal processing capabilities. In implementation, the steps in any one of the above method embodiments may be implemented by using instructions through the integrated logic circuits of the hardware in the processor or 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 carry out the methods, steps, and logic block diagrams disclosed in embodiments of this 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 relation to embodiments of this application may be implemented and completed directly by a hardware decoding processor, or by using a combination of hardware and software modules in the decoding processor. The software modules may reside in storage media that are mature in the art, such as random-access memory, flash memory, read-only memory, programmable read-only memory, electro-erasable programmable memory, or registers. The storage medium is located in memory, and the processor reads the information in memory and, in combination with the processor's hardware, completes the steps in the above method.
[0391] It can be understood that the memory in the embodiments of this application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may 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. Volatile memory may be random access memory (RAM) used as an external cache. As a non-exclusive example, many forms of RAM may be used, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchlink dynamic random access memory (synchlink DRAM, SLDRAM), and direct rambus dynamic random access memory (direct rambus RAM, DR RAM). Note that the memory of the systems and methods described herein includes, but is not limited to, these memories and any other suitable type of memory.
[0392] According to the methods provided in embodiments of this application, this application further provides a computer program product, which includes computer program instructions, and when the computer program instructions are executed on a computer, the computer is able to perform the method steps in any one of the above-described embodiment of the method steps.
[0393] According to the method provided in the embodiments of this application, the application further provides a computer-readable storage medium. The computer-readable storage medium stores program code, and when the program code is executed on a computer, the computer is able to carry out the method in any one of the above embodiments of the method.
[0394] According to the methods provided in embodiments of this application, the application further provides a communication system. The communication system may include a first device (e.g., RU / RRU / AAU), a second device (e.g., BBU), and a sixth device (Layer 2 device, e.g., a switch), or a fifth device (e.g., BBU and RU) and a third device (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, combinations of hardware and software, software, or running software. For example, a component may be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or a computer. As illustrated by the use of diagrams, a computing device and an application running on a computing device may be a component. One or more components may reside within a process and / or execution thread, components may reside on one computer, and / or be distributed across two or more computers. Furthermore, these components may be executed from various computer-readable media that store various data structures. For example, a component may communicate 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 in a local system interacting with another system using signals, in a distributed system, and / or across a network such as the Internet).
[0396] Those skilled in the art will notice, in combination with the examples described in the embodiments disclosed herein, that units and algorithmic steps can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are implemented by hardware or by software depends on the design constraints of the particular application and technical solution. Those skilled in the art may use different methods to implement the functions described for each particular application, but such implementations should not be considered beyond the scope of this application.
[0397] For the sake of convenience and simplicity, it will be obvious to those skilled in the art that the detailed working processes of the above systems, apparatus, and units can be described by referring to the corresponding processes in the above method embodiments. Further details will not be described 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 mutual coupling, direct coupling, or communication connection shown or described may be implemented through some interfaces. Indirect coupling or communication connection between devices or units may be implemented electrically, mechanically, or in other forms.
[0399] Units described as separate parts may or may not be physically separate, and parts shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected based on the actual requirements to achieve the objectives of the solution of the embodiment.
[0400] In addition, the functional units in the embodiments of this application may be integrated into a single processing unit, each unit may exist physically independently, or two or more units may be integrated into a single unit.
[0401] When a function is implemented in the form of a software function 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 portion of the technical solution of this application or a portion of the technical solution may be implemented in the form of a software product. A computer software product is stored in a storage medium and includes several instructions that enable a computer device (which may be a personal computer, server, network device, etc.) to perform all or part of the steps of the method in the embodiments of this application. The storage medium includes any medium capable of storing program code, such as a USB flash drive, removable hard disk, ROM, RAM, magnetic disk, or optical disk.
[0402] The above description is merely a specific implementation of this application and does not limit the scope of protection of this application. Any modification or substitution that is readily conceivable by a person skilled in the art within the technical scope disclosed in this application shall fall within the scope of protection of this application. Accordingly, the scope of protection of this application shall be subject to the scope of protection of the claims.
Claims
1. A method for establishing a link performed by a second device, The steps include receiving a first packet sent from a sixth device, A step of creating virtual local area network interface information based on the first packet, wherein the virtual local area network interface information corresponds to first information, the first information is used to generate first address information of a first device, or the first information includes the first address information, A step of generating second address information for the second device, wherein the second address information corresponds to the virtual local area network interface information, The steps include sending the service plane address in the second address information to a network management device, The steps include transmitting the first information to the first device on the created virtual local area network interface, The steps include receiving the service plane address in the first address information of the first device from the network management device, A step of establishing a link based on the address of the service plane in the second address information and the address of the service plane in the first address information of the first device. Methods that include...
2. The method according to claim 1, wherein the first packet is a link layer discovery protocol packet.
3. The first packet includes an identifier for one virtual local area network interface or identifiers for multiple virtual local area network interfaces, and the step of creating the virtual local area network interface information based on the first packet is: A step of creating the 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 The steps of creating the plurality of virtual local area network interfaces on the 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. The method according to claim 1, including the method described in claim 1.
4. The virtual local area network interface information includes one virtual local area network interface, and the second address information includes the address information of the one virtual local area network interface, or The method according to 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 the address information of the plurality of virtual local area network interfaces.
5. The first information is used to generate the first address information of the first device. The step of transmitting the first information to the first device on the created virtual local area network interface is: A step of sending a router advertisement packet to the first device 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. The method according to claim 1, including the method described in claim 1.
6. Before transmitting the router advertisement packet to the first device on the created virtual local area network interface, the method: The step of receiving a router request packet on the virtual local area network interface created above. The method according to claim 5, further comprising:
7. The first information includes the first address information, and the step of transmitting the first information to the first device on the created virtual local area network interface is: The steps include receiving a dynamic host configuration protocol request on the virtual local area network interface created above, A step of sending a dynamic host configuration protocol response to the first device on the created virtual local area network interface, wherein the dynamic host configuration protocol response includes the first information. The method according to claim 1, including the method described in claim 1.
8. A link establishment method performed by a first device, The steps include receiving a first packet sent from a sixth device, The steps include creating virtual local area network interface information based on the first packet, The steps include receiving first information transmitted from a second device based on the virtual local area network interface information, A step of generating first address information based on the first information, wherein the first address information corresponds to the virtual local area network interface information, The steps include sending the service plane address in the first address information to a network management device, The steps include receiving the service plane address in the second address information of the second device from the network management device, A step of establishing a 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. Includes, 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 within the virtual local area network interface information, and the first information includes first information corresponding to the first virtual local area network interface. The step of receiving the first information based on the virtual local area network interface information is: A method comprising the step of receiving the first information corresponding to the first virtual local area network on the first virtual local area network interface.
9. The method according to claim 8, wherein the first packet is a link layer discovery protocol packet.
10. The first packet includes an identifier for one virtual local area network interface or identifiers for multiple virtual local area network interfaces, and the step of creating the virtual local area network interface information based on the first packet is: A step of creating the 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 The step of creating the plurality of virtual local area network interfaces on the 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. The method according to claim 8, including the method described in claim 8.
11. The step of generating the first address information based on the first information is: A step of 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 a step of obtaining address information for the first virtual local area network interface from the first information corresponding to the first virtual local area network interface. The method according to claim 8, including the method described in claim 8.
12. The virtual local area network interface information includes one virtual local area network interface, and the first address information includes the address information of the one virtual local area network interface, or The method according to claim 8, wherein the virtual local area network interface information includes a plurality of virtual local area network interfaces, and the first address information includes the address information of the plurality of virtual local area network interfaces.
13. The step of receiving the first information based on the virtual local area network interface information is: The step of receiving a router advertisement packet on the virtual local area network interface created, wherein the router advertisement packet includes the first information, and the first information includes network segment information, The step of generating the first address information based on the first information is: The method according to claim 8, comprising the step of generating first address information based on the network segment information in the first information.
14. Before receiving the router advertisement packet on the virtual local area network interface created, the method The step of sending a router request packet on the virtual local area network interface created above. The method according to claim 13, further comprising:
15. The step of receiving the first information based on the virtual local area network interface information is: The steps include sending a dynamic host configuration protocol request on the virtual local area network interface created above, A step of receiving a dynamic host configuration protocol response on the created virtual local area network interface, wherein the dynamic host configuration protocol response includes the first information, and the first information includes the first address information. Includes, The step of generating the first address information based on the first information is: Steps to obtain the first address information from the first information in the Dynamic Host Configuration Protocol response. The method according to claim 8, including the method described in claim 8.
16. A communication device comprising a unit configured to perform the method described in any one of claims 1 to 7, or a unit configured to perform the method described in any one of claims 8 to 15.
17. A communication device comprising a processor and memory, wherein the memory is configured to store a computer program, and the processor is configured to call and execute the computer program stored in the memory, and to perform the method according to any one of claims 1 to 7 or any one of claims 8 to 15.
18. A chip comprising a processor configured to call computer instructions from memory and execute the computer instructions, wherein a device on which the chip is installed performs the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 15.
19. A computer-readable storage medium configured to store computer program instructions, wherein the computer program instructions enable a computer to execute the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 15.
20. A computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 7, or the method according to any one of claims 8 to 15.
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
