Gateway Vlan acquisition method, device, base station and storage medium
By automatically obtaining the VlanID and MAC addresses of the 5G base station gateway, the transmission link blockage caused by manual configuration errors is solved, and efficient and accurate gateway Vlan configuration is achieved, reducing maintenance costs.
Patent Information
- Application Number
- CN202110832384.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-22
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2041-07-22
AI Technical Summary
The 5G base station gateway Vlan configuration error causes the transmission link to be blocked, especially in complex network environments, which leads to high maintenance costs and increased user complaints.
By obtaining the gateway network interconnection protocol IP of the target base station gateway, a request packet is sent to the corresponding Vlan gateway device, a VlanID and MAC address are obtained, and sent to the target base station through uplink, and stored in the Vlan database, so that the VlanID and MAC address are automatically obtained.
No manual participation is required, which saves manual engineering, avoids manual configuration errors, and ensures the correctness of configuration, especially when configuring complex gateways.
Smart Images

Figure CN115701036B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, base station and storage medium for obtaining a gateway Vlan. Background Art
[0002] As a new type of mobile communication network, the fifth generation mobile communication technology (5G) not only solves the communication between people and provides users with more immersive and ultimate service experience such as augmented reality, virtual reality, and ultra-high-definition (3D) video, but also solves the communication problems between people and objects, and objects and objects, and meets the needs of Internet of Things applications such as mobile medical care, Internet of Vehicles, smart home, industrial control, and environmental monitoring.
[0003] In order to meet the application requirements of 5G, a large number of 5GNR base stations need to be deployed. With the large-scale deployment of 5GNR base stations, the transmission complexity of the base stations has been greatly increased, which has also increased the difficulty of configuration. Generally, the gateway of the 5GNR base station needs to be configured manually, and manual operation is prone to gateway VLAN configuration errors, especially when the network environment is very complex, the error rate of manual configuration will be higher. Summary of the invention
[0004] The present disclosure provides a method, device, base station and storage medium for obtaining a gateway VLAN. According to one aspect of the present disclosure, a method for obtaining a gateway VLAN is provided, the method comprising:
[0005] Obtain the gateway network interconnection protocol IP of the target base station gateway;
[0006] Send a request data packet to the corresponding Vlan gateway device according to the gateway IP;
[0007] If a response data packet of the request data packet sent by the gateway device is received, the VlanID and the gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained;
[0008] Sending the VlanID and MAC address of the Vlan gateway device to the target base station via an uplink;
[0009] After receiving the confirmation response transmitted by the target base station via the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database.
[0010] Optionally, each network segment in the gateway IP has a corresponding VLAN gateway device; before sending a request data packet to the VLAN gateway device according to the gateway IP, the method further includes:
[0011] Query the enable status of sending request data packets by polling;
[0012] In the enabled state, the request data packet is sent to the Vlan gateway device corresponding to each network segment in the gateway IP in a polling manner.
[0013] Optionally, the method further includes:
[0014] In the disabled state, the configured Vlan gateway device in the Vlan database is obtained;
[0015] Send a request packet to the configured Vlan gateway device.
[0016] Optionally, the method further includes:
[0017] In response to a first configuration operation performed on the Vlan database in the OM management interface, determining an added gateway Vlan; querying in the Vlan database whether there is a Vlan ID of a Vlan gateway device corresponding to the added gateway Vlan;
[0018] In the case that the Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database, the Vlan ID of the added Vlan gateway device is added to the Vlan database.
[0019] Optionally, the method further includes:
[0020] In response to a second configuration operation performed on the Vlan database in the OM management interface, determining a gateway Vlan to be deleted;
[0021] Searching the Vlan database for the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan;
[0022] The VlanID of the Vlan gateway device corresponding to the deleted gateway Vlan is deleted from the Vlan database.
[0023] Optionally, obtaining a gateway network interconnection protocol IP corresponding to the target base station gateway includes:
[0024] Read the gateway database, the elements in the gateway database include the VlanID and gateway MAC address of the Vlan gateway device; the gateway database also includes at least one of the gateway serial number, valid flag, gateway IP and acquisition aging flag, wherein:
[0025] The gateway serial number is used to indicate the sequential numbering;
[0026] The valid flag is used to indicate whether the target base station gateway has been configured;
[0027] The gateway IP is used to indicate the gateway IP corresponding to the target base station gateway;
[0028] The VlanID and gateway MAC address of the Vlan gateway device are used to indicate the VlanID and gateway MAC address of the Vlan gateway device obtained from the Vlan database;
[0029] The acquisition aging flag is used to indicate whether to re-learn the VlanID and gateway MAC address of the gateway device;
[0030] The gateway IP of the target base station gateway is obtained from the gateway database, where the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
[0031] Optionally, sending a request data packet to a Vlan gateway device according to the gateway IP includes:
[0032] Determine the type of the gateway IP;
[0033] When the gateway IP type is an IPv4 gateway, an arp request data packet is sent to the Vlan gateway device according to the gateway IP;
[0034] When the gateway IP type is an IPv6 gateway, a ns request data packet is sent to the Vlan gateway device according to the gateway IP.
[0035] According to another aspect of the present application, a base station is provided, including a memory, a transceiver and a processor:
[0036] The memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; and the processor is used to read the computer program in the memory and perform the following operations:
[0037] Obtain the gateway network interconnection protocol IP of the target base station gateway;
[0038] Send a request data packet to the corresponding Vlan gateway device according to the gateway IP;
[0039] If a response data packet of the request data packet sent by the gateway device is received, the VlanID and the gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained;
[0040] Sending the VlanID and MAC address of the Vlan gateway device to the target base station via an uplink;
[0041] After receiving the confirmation response transmitted by the target base station via the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database.
[0042] Optionally, each network segment in the gateway IP has a corresponding VLAN gateway device; before sending a request data packet to the VLAN gateway device according to the gateway IP, the processor performs the following operations:
[0043] Query the enable status of sending request data packets by polling;
[0044] In the enabled state, the request data packet is sent to the Vlan gateway device corresponding to each network segment in the gateway IP in a polling manner.
[0045] Optionally, the processor further performs the following operations:
[0046] In the disabled state, the configured Vlan gateway device in the Vlan database is obtained;
[0047] Send a request packet to the configured Vlan gateway device.
[0048] Optionally, the processor further performs the following operations:
[0049] In response to a first configuration operation performed on the Vlan database in the OM management interface, determining an added gateway Vlan;
[0050] Inquiring in the Vlan database whether there is a VlanID of the Vlan gateway device corresponding to the added gateway Vlan;
[0051] In the case that the Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database, the Vlan ID of the added Vlan gateway device is added to the Vlan database.
[0052] Optionally, the processor further performs the following operations:
[0053] In response to a second configuration operation performed on the Vlan database in the OM management interface, determining a gateway Vlan to be deleted;
[0054] Searching the Vlan database for the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan;
[0055] The VlanID of the Vlan gateway device corresponding to the deleted gateway Vlan is deleted from the Vlan database.
[0056] Optionally, the obtaining of the gateway network interconnection protocol IP corresponding to the target base station gateway, the processor further performs the following operations:
[0057] Read the gateway database, the elements in the gateway database include the VlanID and gateway MAC address of the Vlan gateway device; the gateway database also includes at least one of the gateway serial number, valid flag, gateway IP and acquisition aging flag, wherein:
[0058] The gateway serial number is used to indicate the sequential numbering;
[0059] The valid flag is used to indicate whether the target base station gateway has been configured;
[0060] The gateway IP is used to indicate the gateway IP corresponding to the target base station gateway;
[0061] The VlanID and gateway MAC address of the Vlan gateway device are used to indicate the VlanID and gateway MAC address of the Vlan gateway device obtained from the Vlan database;
[0062] The acquisition aging flag is used to indicate whether to re-learn the VlanID and gateway MAC address of the gateway device;
[0063] The gateway IP of the target base station gateway is obtained from the gateway database, where the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
[0064] Optionally, sending a request data packet to a Vlan gateway device according to the gateway IP includes:
[0065] Determine the type of the gateway IP;
[0066] When the gateway IP type is an IPv4 gateway, an arp request data packet is sent to the Vlan gateway device according to the gateway IP;
[0067] When the gateway IP type is an IPv6 gateway, a ns request data packet is sent to the Vlan gateway device according to the gateway IP.
[0068] According to another aspect of the present application, a device for obtaining a gateway Vlan is provided, the device comprising:
[0069] A first acquisition unit, used to acquire a gateway network interconnection protocol IP address of a target base station gateway;
[0070] A first sending unit, used to send a request data packet to a corresponding Vlan gateway device according to the gateway IP;
[0071] A second acquisition unit is used to acquire the VlanID and gateway media access control MAC address of the Vlan gateway device in the response data packet when receiving a response data packet of the request data packet sent by the Vlan gateway device;
[0072] A second sending unit, configured to send the VlanID and MAC address of the Vlan gateway device to the target base station via an uplink;
[0073] The storage unit is used to store the VlanID and MAC address of the Vlan gateway device in the Vlan database after receiving the confirmation response transmitted by the target base station through the downlink.
[0074] According to another aspect of the present application, a processor-readable storage medium is provided, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute a method for acquiring a gateway VLAN.
[0075] This application has the following technical effects:
[0076] By obtaining the gateway network interconnection protocol IP of the target base station gateway, a request data packet is sent to the corresponding Vlan gateway device according to the gateway IP. If a response data packet of the request data packet sent by the gateway device is received, the VlanID and gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained, and the VlanID and MAC address of the Vlan gateway device are sent to the target base station via the uplink. After receiving the confirmation response transmitted by the target base station via the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database. The VlanID and MAC address are obtained by self-acquisition without manual participation, which can not only save labor engineering, but also avoid problems such as transmission link blockage caused by manual configuration errors. Especially when the gateway to be configured is more complex, the method of self-acquisition of the VlanID and MAC address of the Vlan gateway device can save more manpower and ensure the correctness of the configuration.
[0077] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0079] Figure 1A schematic diagram showing a related base station transmission mode;
[0080] Figure 2 It is a flow chart of a method for obtaining a gateway VLAN according to an embodiment of the present application;
[0081] Figure 3 This is a flowchart of configuring VlanID provided by an embodiment of the present application;
[0082] Figure 4 It is a flowchart of another method for obtaining gateway VLAN provided in an embodiment of the present application;
[0083] Figure 5 is a structural diagram of a base station provided according to an embodiment of the present application;
[0084] Figure 6 It is a structural diagram of a device for obtaining a gateway Vlan according to an embodiment of the present application;
[0085] Figure 7 It is a structural diagram of another gateway VLAN acquisition device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0086] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0087] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0088] In related technologies, with the widespread application of 5G technology, in order to meet users' more demands for 5G, the deployment of 5GNR base stations has become increasingly larger. The configuration of base stations after deployment relies on manual configuration, and gateway VLAN configuration errors often occur. Gateway configuration errors directly lead to the blockage of transmission lines such as the NG link, XN link, and management link of the base station. In particular, the blockage of the management link will cause the base station to be out of management and cannot be remotely controlled. It must be repaired and configured on site, which introduces a large maintenance cost. The user complaint rate increases due to the failure to repair faults in a timely manner.
[0089] For example, Figure 1 As shown, Figure 1 A schematic diagram of an existing base station transmission mode is shown. The base station is connected to the switch through a high-speed Ethernet interface (10G / 25G). The switch is then connected to the core network, other adjacent base stations, and the network management center through a relatively complex network, corresponding to the AMF (N2) / NG (N3) link, Xn link, and OM management link respectively. By configuring the routing, VLAN, QoS and other transmission characteristics of the above links on the OM management interface of the OM server, the routing is configured through the OM management interface. The routing includes the gateway IP and the gateway VLAN is configured. When there are many VLANs or because Xn is self-established, the VLAN corresponding to the gateway IP will also be configured. In this process, since the network scenario is very complex in actual situations, such as co-construction by multiple operators, considering the wireless signal coverage and switching issues, multiple base stations will be interconnected through multiple Xn links.
[0090] When the routing is configured correctly and the Vlan corresponding to the gateway is configured correctly, the corresponding transmission link can be established, and the transmission data can be sent to the OM server, core network or other base stations (such as base station 2) based on the correct transmission link, thereby providing the necessary foundation for various subsequent functions.
[0091] However, in the related art, the VLAN corresponding to the gateway IP is configured only by manual configuration on the interface. This is not a big problem when the experimental environment network is relatively simple, such as when configuring a gateway. However, the actual network environment is very complex. In addition, the correct configuration also has high requirements for the existing construction. For example, the engineering team for switch network configuration and the team for base station configuration may not be working at the same time, resulting in uncertainty about the network environment for the base station configuration engineer, and the inability to quickly and accurately configure the gateway VLAN.
[0092] It can be seen that how to quickly and correctly configure the gateway Vlan is the premise and top priority for establishing a smooth communication link. In order to achieve the purpose of quickly and correctly configuring the gateway Vlan, the embodiment of the present application provides a method, device, base station and storage medium for obtaining a gateway Vlan. By obtaining the gateway network interconnection protocol IP of the target base station gateway, a request data packet is sent to the corresponding Vlan gateway device according to the gateway IP. If a response data packet of the request data packet sent by the gateway device is received, the VlanID and gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained, and the VlanID and MAC address of the Vlan gateway device are sent to the target base station via the uplink. After receiving the confirmation response transmitted by the target base station via the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database. By obtaining VlanID and MAC address by self-acquisition, no human intervention is required, which not only saves labor, but also avoids problems such as transmission link blockage caused by manual configuration errors. Especially when the gateway to be configured is more complex, the method of automatically obtaining the VlanID and MAC address of the Vlan gateway device can save manpower and ensure the correctness of the configuration.
[0093] The following describes the method, device, base station and storage medium for obtaining the gateway VLAN of this embodiment with reference to the accompanying drawings.
[0094] Among them, it should be noted that the technical solution provided in the embodiment of the present application can be applicable to a variety of systems, especially 5G systems. For example, the applicable system can be a global system of mobilecommunication (GSM) system, a code division multiple access (code division multiple access, CDMA) system, a wideband code division multiple access (WIDeband Code Division Multiple Access, WCDMA) general packet radio service (general packet radio service, GPRS) system, a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an advanced long term evolution (LTE-A) system, a universal mobiletelecommunication system (UMTS), a worldwide interoperability for microwave access (WiMAX) system, a 5G new air interface (NewRadio, NR) system, etc. These various systems include terminal equipment and network side equipment. The system may also include core network parts, such as the Evolved Packet System (EPS), 5G System (5GS), etc.
[0095] Figure 2 It is a flow chart of a method for obtaining a gateway VLAN provided according to an embodiment of the present application, and the method is applied to a base station side.
[0096] like Figure 2 As shown, the method includes:
[0097] Step 21, obtaining the gateway network interconnection protocol IP of the target base station gateway.
[0098] Among them, the base station provided in the above embodiment can be a macro base station, a micro base station, or an indoor base station, etc. According to different specific application scenarios, the base station can also be called an access point, or it can be a device in the access network that communicates with the wireless terminal device through one or more sectors on the air interface, or other names. The network device can be used to exchange the received air frames with the Internet Protocol (IP) packets, and serve as a router between the wireless terminal device and the rest of the access network, wherein the rest of the access network may include the Internet Protocol (IP) communication network. The network device can also coordinate the attribute management of the air interface. For example, the network device involved in the embodiments of the present application may be a network device (Base Transceiver Station, BTS) in the Global System for Mobile communications (GSM) or Code Division Multiple Access (CDMA), or a network device (NodeB) in Wideband Code Division Multiple Access (WCDMA), or an evolved network device (evolutional Node B, eNB or e-NodeB) in the Long Term Evolution (LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), or a Home evolved Node B (HeNB), a relay node, a home base station (femto), a pico base station (pico), etc., but is not limited in the embodiments of the present application.
[0099] In one embodiment of the present application, there are many network devices connected to the base station, including N base stations, OM servers, statistical servers, core networks, backup servers, computing servers, etc. Each connection point will communicate through the gateway. Therefore, after completing the entire network planning, it is necessary to specify a target base station gateway to obtain the gateway Vlan. After the gateway IP of a target base station gateway is obtained, continue to specify the remaining gateway Vlans to obtain the VlanID and MAC address until the VlanID and MAC address corresponding to the Vlan gateway device connected to the target base station are obtained. The subsequent embodiments take a gateway Vlan for obtaining a target base station gateway as an example for explanation. Regardless of the number of target base stations, the method for obtaining the VlanID and MAC address corresponding to the Vlan gateway device is the same. However, it should be clear that this description method is intended to limit the number of Vlan gateway devices in the target base station. The specific target base station and the number of Vlan gateway devices in the target base station need to be dynamically adjusted according to different base station application scenarios.
[0100] Step 21 is the process of obtaining the target base station gateway, which is related to the entire network planning. Only after obtaining the gateway network interconnection protocol (Internet Protocol, IP) corresponding to the target base station gateway can the subsequent steps be performed. Exemplarily, assuming that there are 50 Vlan network devices connected to the target base station, numbered 001, 002...050, when obtaining the gateway IP of the target base station gateway, the gateway IP can be obtained from number 001 downwards in sequence, or the gateway IP can be obtained from number 050 upwards in sequence. Furthermore, a gateway IP can be randomly selected from all network device numbers as the gateway IP of the target base station gateway. Regardless of the acquisition method, the purpose is to obtain the VlanID and MAC address of the Vlan gateway device connected to the target base station. The above is only an exemplary example. The embodiment of the present application does not limit the number of Vlan network devices connected to the target base station and the method of obtaining the gateway IP.
[0101] Step 22, sending a request data packet to the corresponding Vlan gateway device according to the gateway IP.
[0102] Generally, a gateway IP will be allocated to one or more VLANs, and VLANs communicate through routers. Therefore, after the gateway IP is determined, the request data packet containing the gateway IP address will be broadcast to the corresponding VLAN gateway device. The VLAN gateway device belonging to the IP network segment will respond to the request data packet. After receiving the response data packet, the VLANID and MAC address of the VLAN gateway device are determined.
[0103] In one embodiment of the present application, when acquiring the target base station gateway in step 21, the VlanID of the Vlan gateway device can also be configured, and the configured VlanID is sent through a request data packet. In addition to obtaining the MAC address corresponding to the VlanID, the VlanID of the Vlan gateway device can also be determined. That is, when the configured VlanID is consistent with the VlanID in the response data packet, it means that the configured and acquired VlanID are correct, so that the correctness of the VlanID acquired this time can be verified.
[0104] Step 23: If a response data packet from the gateway device to the request data packet is received, the VlanID and the gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained.
[0105] For the specific implementation method of obtaining the VlanID and gateway MAC address of the Vlan gateway device from the answer data packet, reference may be made to any implementation form in the relevant technology, and the specific embodiment of the present invention will not be described in detail.
[0106] Step 24, sending the VlanID and MAC address of the Vlan gateway device to the target base station via an uplink, and after receiving a confirmation response transmitted by the target base station via a downlink, storing the VlanID and MAC address of the Vlan gateway device in a Vlan database.
[0107] The VLAN ID of the gateway device is used to isolate the physical and virtualized workloads. When configuring the target base station gateway, a PowerShell script can be used to assign the VLAN ID to the virtual machine.
[0108] The purpose of this step is to send the acquired VlanID and MAC address of the Vlan gateway device to the target base station through the uplink, so that the target base station can determine the correctness of the VlanID and MAC address of the Vlan gateway device. When the target base station determines that the acquired VlanID and MAC address of the Vlan gateway device are correct, it will return a confirmation instruction, and store the VlanID and MAC address of the Vlan gateway device in the Vlan database according to the confirmation instruction, so as to serve the next step of data transmission of the target base station.
[0109] The above embodiment is a specific implementation step to complete the entire acquisition process. It can be seen that the acquisition process is equivalent to the process of continuously sending a detection signal (sending a request data packet). After the detection signal is responded to (a response data packet is received), the VlanID and MAC address of the Vlan gateway device are obtained, and the self-acquisition process is completed over and over again.
[0110] In the related art, manual configuration is used to configure the gateway. In the embodiment of the present application, in order to integrate the application scenarios of manual configuration, the present application adds a configuration VLAN database. In addition to facilitating the integration of manual configuration, it can also improve the speed of self-acquisition. However, it should be clear that in the embodiment of the present application, even if the process of configuring the VLAN database of the base station is not added, self-acquisition of the VLANID and MAC address can still be achieved.
[0111] like Figure 3 As shown, Figure 3 A flowchart of configuring a VlanID is provided in an embodiment of the present application, and the method includes:
[0112] Step 31: In response to a first configuration operation performed on the Vlan database in the OM management interface, determine an added gateway Vlan.
[0113] The target base station communicates with the OM server through the OM link. When configuring the VlanID of the Vlan gateway device, the VlanID of the Vlan gateway device in the Vlan database is configured based on the OM management interface in the OM server. In actual applications, a switch (gateway) can generally be divided into 255 Vlans, and the VlanID of each Vlan gateway device can be any number between 0 and 4095.
[0114] The function of VlanID is to distinguish different Vlans. During configuration, you can directly set the TAG UNTag member attribute to tag the downstream or upstream data packets of the port to complete the VlanID configuration of the Vlan gateway device.
[0115] In order to improve the configuration efficiency of VlanID, in actual applications, each VlanID can be corresponded to 1 bit. The corresponding bit is set to indicate that OM has configured this VlanID, and the bit is not set to indicate that OM has not configured this VlanID.
[0116] Step 32, querying in the Vlan database whether there is a Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan;
[0117] Step 33: When the Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database, the Vlan ID of the added Vlan gateway device is added to the Vlan database.
[0118] Step 34: In response to the second configuration operation performed on the Vlan database in the OM management interface, determine the gateway Vlan to be deleted.
[0119] Step 35, searching the Vlan database for the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan.
[0120] Step 36, deleting the VlanID of the Vlan gateway device corresponding to the deleted gateway Vlan from the Vlan database.
[0121] When the OM server configures the VlanID, check whether the VlanID is added or deleted, and synchronously add or delete the Vlan database configured by the OM to ensure that the Vlan database and the OM configuration on the interface are consistent.
[0122] As an extension of the above embodiment, the embodiment of the present application also includes constructing a gateway database, the main elements of which include: a gateway serial number, a valid flag, a gateway IP, a VlanID of a Vlan gateway device, a gateway MAC address, and an acquisition aging flag, wherein: the gateway serial number is a sequential number, such as 0-99, which is an extensible serial number; the valid flag indicates whether the gateway has been configured, valid means that the OM has configured the target base station gateway, invalid means that it has not been configured or deleted, the gateway IP is the gateway IP corresponding to the target base station gateway, the VlanID and gateway MAC address of the Vlan gateway device are the VlanID and gateway MAC address of the Vlan gateway device obtained from the Vlan database, and the acquisition aging flag indicates whether the VlanID and gateway MAC address of the gateway device are re-learned, valid means that the correct VlanID and MAC address of the Vlan gateway device are obtained, and invalid means that the correct VlanID and MAC address of the Vlan gateway device are not obtained.
[0123] In actual applications, after obtaining the correct VlanID and gateway MAC of the gateway device, timing is performed. When the time reaches the set threshold, the aging flag is set to true, and the current VlanID and gateway device are used to confirm whether they are correct. If the gateway device confirms that they are correct, the aging flag is set to false; if the gateway device does not confirm that they are correct, polling and learning are performed again according to the process.
[0124] As a refinement of step 21, the gateway database is read, and the gateway IP of the target base station gateway is obtained from the gateway database. The protocol family currently used by the global Internet is the TCP / IP protocol family. IP is the protocol of the network layer in the TCP / IP protocol family and is the core protocol of the TCP / IP protocol family. The commonly used IP protocol version numbers are 4 (abbreviated as IPv4) and version number 6 (abbreviated as IPv6). In order to adapt to these two protocols, the embodiments of the present application provide two types of self-acquisition channels. The principles of these two self-acquisition channels are the same, and the difference lies in the different methods of sending request data packets through the uplink and receiving / parsing response data packets based on the downlink channel. Figure 4 As shown, Figure 4 A schematic flow chart of another method for obtaining a gateway VLAN provided in an embodiment of the present application is shown, the method comprising:
[0125] Step 41, obtaining the gateway IP of the target base station gateway.
[0126] Step 42, determining the type of the gateway IP.
[0127] Step 43: When the gateway IP type is an IPv4 gateway, query the enabling state of sending the request data packet by polling.
[0128] In the enabled state, step 44 is executed, and in the disabled state, step 45 is executed.
[0129] The polling method is implemented by controlling the cycle, that is, when the next cycle arrives, continue to send request data packets to the Vlan gateway device until all Vlan gateway devices corresponding to the target base station are polled to complete the acquisition of the VlanID and MAC address of the Vlan gateway device.
[0130] The acquisition process of the present application is an automatically executed process, so in practice the cycle period is realized by setting a timer. The determination of the cycle frequency may be carried out according to different application scenarios, such as setting it to 10S, 30S, etc. The embodiment of the present application does not limit the cycle frequency.
[0131] Step 44, sending an ARP request data packet to the Vlan gateway device confirmed by the polling method according to the gateway IPv4.
[0132] After the IPv4 gateway receives the arp request data packet, it first confirms whether the arp request data packet is sent by the gateway IPv4. After confirmation, it responds to the arp request data packet and updates the Vlan database.
[0133] Step 45, obtaining the configured Vlan gateway device in the Vlan database, and sending an ARP request data packet to the configured Vlan gateway device.
[0134] Step 46: Check whether the correct Vlan ID and gateway MAC address of the Vlan gateway device are obtained.
[0135] If the data is obtained, the process ends; if the data is not obtained, step 47 is executed.
[0136] Step 47, when the next cycle period arrives, continue to send the ARP request data packet to the Vlan gateway device.
[0137] Step 48: When the gateway IP type is an IPv6 gateway, query the enabling state of the sending request data packet by polling.
[0138] In the enabled state, step 49 is executed, and in the disabled state, step 410 is executed.
[0139] Step 49, sending a ns request data packet to the Vlan gateway device confirmed by the polling method according to the gateway IPV6.
[0140] After the IPv6 gateway receives the ns request data packet, it first confirms whether the ns request data packet is sent by the gateway IPv6. After confirmation, it responds to the ns request data packet and updates the Vlan database.
[0141] Step 410: Obtain the configured Vlan gateway device in the Vlan database, and send a ns request data packet to the configured Vlan gateway device.
[0142] In the specific application process, the VlanID configured to the Vlan database is used to test and determine the VlanID of the gateway, and the VlanID and MAC address are obtained in the response of the Vlan gateway device that sends the response data packet. As an implementable method of the embodiment of the present application, the configured Vlan gateway device can also be obtained by the above method, and the valid acquisition result (VlanID and MAC address) is recorded in the Vlan database, but the timeout or aging flag of the recorded VlanID and MAC address is true, and this method is also called configured.
[0143] When the Vlans in the Vlan database configured by OM cannot successfully obtain the VlanID and MAC address of the Vlan gateway device, the polling of the VlanIDs of all Vlan gateway devices is started, starting from 0 to the maximum value of 4095. If the connection is normal, the VlanID of the Vlan gateway device must be in the 4096, and when the correct VlanID is polled, the Vlan gateway device will respond with the correct VlanID and MAC address.
[0144] After obtaining the correct VlanID and MAC address, record this VlanID and MAC address to serve the next data transmission of the base station.
[0145] Step 411: Check whether the correct Vlan ID and gateway MAC address of the Vlan gateway device are obtained.
[0146] If the information is obtained, the process ends; if the information is not obtained, step 412 is executed.
[0147] The correctness of the obtained VlanID of the Vlan gateway device and the gateway MAC address requires the target base station to make the final decision, so as to better ensure the correctness of the obtained results.
[0148] Step 412, when the next cycle arrives, continue to send ns request data packets to the Vlan gateway device.
[0149] In summary, by obtaining the gateway network interconnection protocol IP of the target base station gateway, a request data packet is sent to the corresponding Vlan gateway device according to the gateway IP. If a response data packet of the request data packet sent by the gateway device is received, the VlanID and gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained, and the VlanID and MAC address of the Vlan gateway device are sent to the target base station through the uplink. After receiving the confirmation response transmitted by the target base station through the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database. By obtaining the VlanID and MAC address in a self-acquisition manner, no human intervention is required, and it can adapt to complex transmission network scenarios, avoid transmission link blockage and base station hosting problems caused by manual configuration errors. In addition, the gateway vlan can also be configured, thereby reducing the amount of engineering, especially when there are many routes, the effect is more obvious.
[0150] Figure 5 is a schematic diagram of the structure of a base station provided according to an embodiment of the present application. Figure 5 As shown, the base station may include a transceiver 500, a processor 510 and a memory 520, wherein:
[0151] The transceiver 500 is used to receive and send data under the control of the processor 510 .
[0152] Among them, Figure 5 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 510 and memory represented by memory 520. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 500 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, which transmission medium may include a wireless channel, a wired channel, an optical cable, and the like. The processor 510 is responsible for managing the bus architecture and general processing, and the memory 520 may store data used by the processor 510 when performing operations.
[0153] The processor 510 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). The processor may also adopt a multi-core architecture.
[0154] The processor 510 calls the computer program stored in the memory and performs the following operations:
[0155] Obtain the gateway network interconnection protocol IP of the target base station gateway;
[0156] Send a request data packet to the corresponding Vlan gateway device according to the gateway IP;
[0157] If a response data packet of the request data packet sent by the gateway device is received, the VlanID and the gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained;
[0158] Sending the VlanID and MAC address of the Vlan gateway device to the target base station via an uplink;
[0159] After receiving the confirmation response transmitted by the target base station via the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database.
[0160] Optionally, as another embodiment, each network segment in the gateway IP has a corresponding VLAN gateway device; before sending a request data packet to the VLAN gateway device according to the gateway IP, the processor 510 performs the following operations:
[0161] Query the enable status of sending request data packets by polling;
[0162] In the enabled state, the request data packet is sent to the Vlan gateway device corresponding to each network segment in the gateway IP in a polling manner.
[0163] Optionally, as another embodiment, the processor 510 further performs the following operations:
[0164] In the disabled state, the configured Vlan gateway device in the Vlan database is obtained;
[0165] Send a request packet to the configured Vlan gateway device.
[0166] Optionally, as another embodiment, the processor 510 further performs the following operations:
[0167] In response to a first configuration operation performed on the Vlan database in the OM management interface, determining an added gateway Vlan; querying in the Vlan database whether there is a Vlan ID of a Vlan gateway device corresponding to the added gateway Vlan;
[0168] In the case that the Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database, the Vlan ID of the added Vlan gateway device is added to the Vlan database.
[0169] Optionally, as another embodiment, the processor 510 further performs the following operations:
[0170] In response to a second configuration operation performed on the Vlan database in the OM management interface, determining a gateway Vlan to be deleted;
[0171] Searching the Vlan database for the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan;
[0172] The VlanID of the Vlan gateway device corresponding to the deleted gateway Vlan is deleted from the Vlan database.
[0173] Optionally, as another embodiment, the obtaining the gateway network interconnection protocol IP corresponding to the target base station gateway, the processor 510 further performs the following operations:
[0174] Read the gateway database, the elements in the gateway database include the VlanID and gateway MAC address of the Vlan gateway device; the gateway database also includes at least one of the gateway serial number, valid flag, gateway IP and acquisition aging flag, wherein:
[0175] The gateway serial number is used to indicate the sequential numbering;
[0176] The valid flag is used to indicate whether the target base station gateway has been configured;
[0177] The gateway IP is used to indicate the gateway IP corresponding to the target base station gateway;
[0178] The VlanID and gateway MAC address of the Vlan gateway device are used to indicate the VlanID and gateway MAC address of the Vlan gateway device obtained from the Vlan database;
[0179] The acquisition aging flag is used to indicate whether to re-learn the VlanID and gateway MAC address of the gateway device;
[0180] The gateway IP of the target base station gateway is obtained from the gateway database, where the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
[0181] Optionally, as another embodiment, sending a request data packet to a Vlan gateway device according to the gateway IP includes:
[0182] Determine the type of the gateway IP;
[0183] When the gateway IP type is an IPv4 gateway, an arp request data packet is sent to the Vlan gateway device according to the gateway IP;
[0184] When the gateway IP type is an IPv6 gateway, a ns request data packet is sent to the Vlan gateway device according to the gateway IP.
[0185] By obtaining the gateway network interconnection protocol IP of the target base station gateway, a request data packet is sent to the corresponding Vlan gateway device according to the gateway IP. If a response data packet of the request data packet sent by the gateway device is received, the VlanID and gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained, and the VlanID and MAC address of the Vlan gateway device are sent to the target base station via the uplink. After receiving the confirmation response transmitted by the target base station via the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database. The VlanID and MAC address are obtained by self-acquisition without manual participation, which can not only save labor engineering, but also avoid problems such as transmission link blockage caused by manual configuration errors. Especially when the gateway to be configured is more complex, the method of automatically obtaining the VlanID and MAC address of the Vlan gateway device can save more manpower and ensure the correctness of the configuration.
[0186] It should be noted here that the above-mentioned base station provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0187] Figure 6 It is a structural diagram of a gateway VLAN acquisition device provided according to an embodiment of the present application.
[0188] like Figure 6 As shown, the device 600 includes:
[0189] An embodiment of the present application provides a device for obtaining a gateway Vlan, the device comprising:
[0190] A first acquisition unit 61 is used to acquire a gateway network interconnection protocol IP of a target base station gateway;
[0191] The first sending unit 62 is used to send a request data packet to the corresponding Vlan gateway device according to the gateway IP;
[0192] The second acquisition unit 63 is used to acquire the VlanID and gateway media access control MAC address of the Vlan gateway device in the response data packet when receiving the response data packet of the Vlan gateway device to the request data packet;
[0193] The second sending unit 64 is used to send the VlanID and MAC address of the Vlan gateway device to the target base station via an uplink;
[0194] The storage unit 65 is used to store the VlanID and MAC address of the Vlan gateway device in the Vlan database after receiving the confirmation response transmitted by the target base station via the downlink.
[0195] Optionally, as another embodiment, Figure 7 As shown, each network segment in the gateway IP has a corresponding Vlan gateway device; the device also includes:
[0196] A confirmation unit 66, configured to query the enabling state of sending the request data packet by polling before the first sending unit 62 sends the request data packet to the corresponding Vlan gateway device according to the gateway IP;
[0197] The third sending unit 67 is used to send the request data packet to the Vlan gateway device corresponding to each network segment in the gateway IP in a polling manner when the confirmation unit 66 is in an enabled state.
[0198] Optionally, as another embodiment, Figure 7 As shown, the device also includes:
[0199] A third acquisition unit 68 is used to acquire the Vlan gateway device configured in the Vlan database when the confirmation unit 66 confirms that the device is in a disabled state;
[0200] The fourth sending unit 69 is used to send a request data packet to the configured Vlan gateway device obtained by the third obtaining unit 68.
[0201] Optionally, as another embodiment, Figure 7 As shown, the device also includes:
[0202] A first determining unit 610 is configured to determine an added gateway Vlan in response to a first configuration operation performed on the Vlan database in the OM management interface;
[0203] The first query unit 611 is used to query in the Vlan database whether there is a Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan;
[0204] The adding unit 612 is configured to add the VlanID of the added Vlan gateway device to the Vlan database if the VlanID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database.
[0205] Optionally, as another embodiment, Figure 7 As shown, the device also includes:
[0206] A second determining unit 613 is used to determine the deleted gateway Vlan in response to a second configuration operation performed on the Vlan database in the OM management interface;
[0207] A second searching unit 614 is configured to search the Vlan database for the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan;
[0208] The deleting unit 615 is used to delete the VlanID of the Vlan gateway device corresponding to the deleted gateway Vlan from the Vlan database.
[0209] Optionally, as another embodiment, Figure 7 As shown, the first acquisition unit 61 also includes:
[0210] The reading subunit 6011 is used to read the gateway database, the elements in the gateway database include the VlanID and gateway MAC address of the Vlan gateway device; the gateway database also includes at least one of the gateway serial number, valid flag, gateway IP and acquisition aging flag, wherein:
[0211] The gateway serial number is used to indicate the sequential numbering;
[0212] The valid flag is used to indicate whether the target base station gateway has been configured;
[0213] The gateway IP is used to indicate the gateway IP corresponding to the target base station gateway;
[0214] The VlanID and gateway MAC address of the Vlan gateway device are used to indicate the VlanID and gateway MAC address of the Vlan gateway device obtained from the Vlan database;
[0215] The acquisition aging flag is used to indicate whether to re-learn the VlanID and gateway MAC address of the gateway device;
[0216] The acquisition subunit 6012 is used to acquire the gateway IP of the target base station gateway from the gateway database, where the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
[0217] Optionally, as another embodiment, Figure 7 As shown, the first sending unit 62 includes:
[0218] A determination subunit 621 is used to determine the type of the gateway IP;
[0219] The first sending subunit 622 is used to send an arp request data packet to the Vlan gateway device according to the gateway IP when the gateway IP type is an IPv4 gateway;
[0220] The second sending subunit 623 is used to send a ns request data packet to the Vlan gateway device according to the gateway IP when the gateway IP type is an IPv6 gateway.
[0221] By obtaining the gateway network interconnection protocol IP of the target base station gateway, a request data packet is sent to the corresponding Vlan gateway device according to the gateway IP. If a response data packet of the request data packet sent by the gateway device is received, the VlanID and gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained, and the VlanID and MAC address of the Vlan gateway device are sent to the target base station through the uplink. After receiving the confirmation response transmitted by the target base station through the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database. No manual intervention is required, which can not only save manual engineering workload, but also avoid problems such as transmission link blockage caused by manual configuration errors. In particular, when the gateway to be configured is more complex, the method of automatically obtaining the VlanID and MAC address of the Vlan gateway device can save more manpower and ensure the correctness of the configuration.
[0222] Among them, the method and the device are based on the same application concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0223] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0224] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network side device, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0225] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0226] On the other hand, an embodiment of the present invention further provides a processor-readable storage medium, which stores a computer program, and the computer program is used to enable the processor to execute the method for obtaining the gateway VLAN described in any of the above embodiments of the present application.
[0227] Among them, the above-mentioned processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO)), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0228] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0229] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0230] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0231] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0232] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for obtaining a gateway Vlan, characterized in that: The method comprises: Get the gateway IP of the target base station gateway; Send a request data packet to the corresponding Vlan gateway device according to the gateway IP; If a response data packet from the gateway device to the request data packet is received, then obtaining the VlanID and gateway media access control MAC address of the Vlan gateway device in the response data packet; Sending the VlanID and MAC address of the Vlan gateway device to the target base station via an uplink; After receiving the confirmation response transmitted by the target base station via the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database.
2. The method for obtaining a gateway VLAN according to claim 1, characterized in that: Each network segment in the gateway IP has a corresponding Vlan gateway device; Before sending the request data packet to the Vlan gateway device according to the gateway IP, the method further includes: Query the enable status of sending request data packets by polling; In the enabled state, the request data packet is sent to the Vlan gateway device corresponding to each network segment in the gateway IP in a polling manner.
3. The method for obtaining a gateway VLAN according to claim 2, characterized in that: The method further comprises: In the disabled state, the configured Vlan gateway device in the Vlan database is obtained; Send a request packet to the configured Vlan gateway device.
4. The method for obtaining a gateway VLAN according to claim 1, characterized in that: The method further comprises: In response to a first configuration operation performed on the Vlan database in the OM management interface, determining an added gateway Vlan; Inquiring in the Vlan database whether there is a VlanID of the Vlan gateway device corresponding to the added gateway Vlan; In the case that the Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database, the Vlan ID of the added Vlan gateway device is added to the Vlan database.
5. The method for obtaining a gateway VLAN according to claim 1, characterized in that: The method further comprises: In response to a second configuration operation performed on the Vlan database in the OM management interface, determining a gateway Vlan to be deleted; Searching the Vlan database for the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan; The VlanID of the Vlan gateway device corresponding to the deleted gateway Vlan is deleted from the Vlan database.
6. The method for obtaining a gateway VLAN according to claim 1, characterized in that: The step of obtaining the gateway network interconnection protocol IP corresponding to the target base station gateway includes: Read the gateway database, the elements in the gateway database include the VlanID and gateway MAC address of the Vlan gateway device; the gateway database also includes at least one of the gateway serial number, valid flag, gateway IP and acquisition aging flag, wherein: The gateway serial number is used to indicate the sequential numbering; The valid flag is used to indicate whether the target base station gateway has been configured; The gateway IP is used to indicate the gateway IP corresponding to the target base station gateway; The VlanID and gateway MAC address of the Vlan gateway device are used to indicate the VlanID and gateway MAC address of the Vlan gateway device obtained from the Vlan database; The acquisition aging flag is used to indicate whether to re-learn the VlanID and gateway MAC address of the gateway device; The gateway IP of the target base station gateway is obtained from the gateway database, where the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
7. The method for obtaining a gateway VLAN according to claim 6, characterized in that: The sending of a request data packet to a corresponding Vlan gateway device according to the gateway IP comprises: Determine the type of the gateway IP; When the gateway IP type is an IPv4 gateway, an arp request data packet is sent to the Vlan gateway device according to the gateway IP; When the gateway IP type is an IPv6 gateway, a ns request data packet is sent to the Vlan gateway device according to the gateway IP.
8. A base station, characterized in that: including memory, transceiver and processor; The memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; and the processor is used to read the computer program in the memory and perform the following operations: Get the gateway IP of the target base station gateway; Send a request data packet to the corresponding Vlan gateway device according to the gateway IP; If a response data packet of the request data packet sent by the gateway device is received, the VlanID and the gateway media access control MAC address of the Vlan gateway device in the response data packet are obtained; Sending the VlanID and MAC address of the Vlan gateway device to the target base station via an uplink; After receiving the confirmation response transmitted by the target base station via the downlink, the VlanID and MAC address of the Vlan gateway device are stored in the Vlan database.
9. The base station according to claim 8, characterized in that Each network segment in the gateway IP has a corresponding Vlan gateway device; before sending a request data packet to the Vlan gateway device according to the gateway IP, the processor performs the following operations: Query the enable status of sending request data packets by polling; In the enabled state, the request data packet is sent to the Vlan gateway device corresponding to each network segment in the gateway IP in a polling manner.
10. The base station according to claim 9, characterized in that The processor also performs the following operations: In the disabled state, the configured Vlan gateway device in the Vlan database is obtained; Send a request packet to the configured Vlan gateway device.
11. The base station according to claim 8, characterized in that The processor also performs the following operations: In response to a first configuration operation performed on the Vlan database in the OM management interface, determining an added gateway Vlan; Inquiring in the Vlan database whether there is a VlanID of the Vlan gateway device corresponding to the added gateway Vlan; In the case that the Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database, the Vlan ID of the added Vlan gateway device is added to the Vlan database.
12. The base station according to claim 8, characterized in that The processor also performs the following operations: In response to a second configuration operation performed on the Vlan database in the OM management interface, determining a gateway Vlan to be deleted; Searching the Vlan database for the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan; The VlanID of the Vlan gateway device corresponding to the deleted gateway Vlan is deleted from the Vlan database.
13. The base station according to claim 8, characterized in that The obtaining of the gateway network interconnection protocol IP corresponding to the target base station gateway, the processor further performs the following operations: Read the gateway database, the elements in the gateway database include the VlanID and gateway MAC address of the Vlan gateway device; the gateway database also includes at least one of the gateway serial number, valid flag, gateway IP and acquisition aging flag, wherein: The gateway serial number is used to indicate the sequential numbering; The valid flag is used to indicate whether the target base station gateway has been configured; The gateway IP is used to indicate the gateway IP corresponding to the target base station gateway; The VlanID and gateway MAC address of the Vlan gateway device are used to indicate the VlanID and gateway MAC address of the Vlan gateway device obtained from the Vlan database; The acquisition aging flag is used to indicate whether to re-learn the VlanID and gateway MAC address of the gateway device; The gateway IP of the target base station gateway is obtained from the gateway database, where the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
14. The base station according to claim 8, characterized in that Sending a request data packet to a corresponding Vlan gateway device according to the gateway IP includes: Determine the type of the gateway IP; When the gateway IP type is an IPv4 gateway, an arp request data packet is sent to the Vlan gateway device according to the gateway IP; When the gateway IP type is an IPv6 gateway, a ns request data packet is sent to the Vlan gateway device according to the gateway IP.
15. A device for acquiring a gateway Vlan, characterized in that: The device comprises: A first acquisition unit, used to acquire a gateway IP address of a target base station gateway; A first sending unit, used to send a request data packet to a corresponding Vlan gateway device according to the gateway IP; A second acquisition unit is used to acquire the VlanID and gateway media access control MAC address of the Vlan gateway device in the response data packet when receiving a response data packet of the request data packet sent by the Vlan gateway device; A second sending unit, configured to send the VlanID and MAC address of the Vlan gateway device to the target base station via an uplink; The storage unit is used to store the VlanID and MAC address of the Vlan gateway device in the Vlan database after receiving the confirmation response transmitted by the target base station through the downlink.
16. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method, device and system for selecting access gateway
CN102149172A
Media access control-forced forwarding method and functional unit
CN102201963A