CN115701036A - Gateway Vlan acquisition method, device, base station and storage medium - Google Patents

Gateway Vlan acquisition method, device, base station and storage medium Download PDF

Info

Publication number
CN115701036A
CN115701036A CN202110832384.3A CN202110832384A CN115701036A CN 115701036 A CN115701036 A CN 115701036A CN 202110832384 A CN202110832384 A CN 202110832384A CN 115701036 A CN115701036 A CN 115701036A
Authority
CN
China
Prior art keywords
gateway
vlan
base station
database
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110832384.3A
Other languages
Chinese (zh)
Inventor
朱世雄
韩森
林坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN202110832384.3A priority Critical patent/CN115701036A/en
Publication of CN115701036A publication Critical patent/CN115701036A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a method and a device for acquiring gateway Vl an, a base station and a storage medium, and relates to the technical field of communication. The implementation scheme is as follows: acquiring a gateway network Interconnection Protocol (IP) of a target base station gateway, sending a request data packet to corresponding Vl an gateway equipment according to the gateway IP, acquiring the Vl an ID and a gateway Medium Access Control (MAC) address of the Vl an gateway equipment in the response data packet if the response data packet of the gateway equipment to the request data packet is received, sending the Vl an ID and the MAC address of the Vl an gateway equipment to the target base station through an uplink, and storing the Vl an ID and the MAC address of the Vl an gateway equipment in a Vl an database after receiving an acknowledgement response transmitted by the target base station through a downlink. The acquisition mode not only saves the amount of manual engineering, but also can avoid the transmission link failure caused by the manual configuration error.

Description

Gateway Vlan acquisition method, device, base station and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a base station, and a storage medium for acquiring a gateway Vlan.
Background
As a novel Mobile Communication network, the fifth Generation Mobile Communication technology (5g) not only needs to solve the problem of person-to-person Communication, provide more immersive and extremely professional experiences such as augmented reality, virtual reality, ultra-high definition (3D) video and the like for users, but also needs to solve the problem of person-to-object, object-to-object Communication, and meet the application requirements of internet of things such as Mobile medicine, car networking, smart home, industrial control, environmental monitoring and the like.
In order to meet the application requirement of 5G, a large number of 5GNR base stations need to be deployed, and with the deployment of a large number of 5GNR base stations, the transmission complexity of the base stations is greatly increased, so that the configuration difficulty is also increased, generally, the gateways of the 5GNR base stations need to be configured manually, a gateway Vlan configuration error is easily caused by manual operation, and particularly, when the network environment is very complex, the error rate of manual configuration is higher.
Disclosure of Invention
The disclosure provides a gateway Vlan acquisition method, a gateway Vlan acquisition device, a base station and a storage medium. According to an aspect of the present disclosure, there is provided a method for acquiring a gateway Vlan, the method including:
acquiring a gateway network Interconnection Protocol (IP) of a target base station gateway;
sending a request data packet to corresponding Vlan gateway equipment according to the gateway IP;
if a response data packet of the request data packet sent by the gateway device is received, acquiring the Vlan ID of the Vlan gateway device and a gateway Media Access Control (MAC) address in the response data packet;
sending the Vlan ID and the MAC address of the Vlan gateway device to the target base station through an uplink;
and after receiving the acknowledgement response transmitted by the target base station through the downlink, storing the Vlan ID and the MAC address of the Vlan gateway device in a Vlan database.
Optionally, each network segment in the gateway IP has a corresponding Vlan gateway device; before sending the request packet to the Vlan gateway device according to the gateway IP, the method further includes:
inquiring the enabling state of the sending request data packet in a polling mode;
and in the enabled state, sending the request data packet to the Vlan gateway device corresponding to each network segment in the gateway IP by adopting a polling mode.
Optionally, the method further includes:
in the disabled state, the Vlan gateway device configured in the Vlan database is acquired;
and sending a request data packet to the configured Vlan gateway device.
Optionally, the method further includes:
determining an added gateway Vlan in response to a first configuration operation performed on the Vlan database at an OM management interface; querying whether a Vlan id of a Vlan gateway device corresponding to the added gateway Vlan exists in the Vlan database;
and adding the Vlan ID of the added Vlan gateway device to the Vlan database when the Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database.
Optionally, the method further includes:
responding to a second configuration operation on the Vlan database at an OM management interface, and determining a deleted gateway Vlan;
searching the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan in the Vlan database;
and deleting the Vlan ID of the Vlan gateway equipment corresponding to the deleted gateway Vlan from the Vlan database.
Optionally, the obtaining a gateway network interconnection protocol IP corresponding to the target base station gateway includes:
reading a gateway database, wherein elements in the gateway database comprise a Vlan ID and a gateway MAC address of Vlan gateway equipment; the gateway database further comprises at least one of a gateway serial number, an effective mark, a gateway IP and an aging mark, wherein:
the gateway serial number is used for indicating a sequence number;
the valid flag is used for indicating whether the target base station gateway is configured or not;
the gateway IP is used for indicating a gateway IP corresponding to the target base station gateway;
the Vlan ID and the gateway MAC address of the Vlan gateway device are used for indicating the obtained Vlan ID and the obtained gateway MAC address of the Vlan gateway device, which are obtained from the Vlan database;
the obtained aging mark is used for indicating whether to perform the vlan ID and the gateway MAC address learning of the gateway equipment again;
and acquiring a gateway IP of the target base station gateway from the gateway database, wherein the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
Optionally, the sending the request packet to the Vlan gateway device according to the gateway IP includes:
determining the type of the gateway IP;
when the gateway IP type is an IPv4 gateway, sending an arp request data packet to Vlan gateway equipment according to the gateway IP;
and when the gateway IP type is the IPv6 gateway, sending an ns request data packet to the Vlan gateway equipment according to the gateway IP.
According to another aspect of the present application, there is provided a base station comprising a memory, a transceiver, and a processor:
wherein the memory is to store a computer program; the transceiver is used for transceiving data under the control of the processor; the processor is used for reading the computer program in the memory and executing the following operations:
acquiring a gateway network Interconnection Protocol (IP) of a target base station gateway;
sending a request data packet to corresponding Vlan gateway equipment according to the gateway IP;
if a response data packet of the request data packet sent by the gateway equipment is received, acquiring a Vlan ID and a gateway Media Access Control (MAC) address of the Vlan gateway equipment in the response data packet;
sending the Vlan ID and the MAC address of the Vlan gateway device to the target base station through an uplink;
and after receiving the acknowledgement response transmitted by the target base station through the downlink, storing the Vlan ID and the MAC address of the Vlan gateway device in a Vlan database.
Optionally, each network segment in the gateway IP has a corresponding Vlan gateway device; before sending a request packet to the Vlan gateway device according to the gateway IP, the processor performs the following operations:
inquiring the enabling state of the sending request data packet in a polling mode;
and in the enabled state, sending the request data packet to the Vlan gateway device corresponding to each network segment in the gateway IP by adopting a polling mode.
Optionally, the processor further performs the following operations:
in the disabled state, the Vlan gateway device configured in the Vlan database is acquired;
and sending a request data packet to the configured Vlan gateway device.
Optionally, the processor further performs the following operations:
determining an added gateway Vlan in response to a first configuration operation performed on the Vlan database at an OM management interface;
querying whether a Vlan id of a Vlan gateway device corresponding to the added gateway Vlan exists in the Vlan database;
and adding the Vlan id of the added Vlan gateway device to the Vlan database when the Vlan id of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database.
Optionally, the processor further performs the following operations:
responding to a second configuration operation on the Vlan database on an OM management interface, and determining a deleted gateway Vlan;
searching the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan in the Vlan database;
and deleting the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan from the Vlan database.
Optionally, the processor further performs the following operations to obtain a gateway network interconnection protocol IP corresponding to a target base station gateway:
reading a gateway database, wherein elements in the gateway database comprise a Vlan ID and a gateway MAC address of Vlan gateway equipment; the gateway database further comprises at least one of a gateway serial number, an effective mark, a gateway IP and an aging mark, wherein:
the gateway serial number is used for indicating a sequence number;
the valid flag is used for indicating whether the target base station gateway is configured;
the gateway IP is used for indicating a gateway IP corresponding to the target base station gateway;
the Vlan id and the gateway MAC address of the Vlan gateway device are used to indicate the Vlan id and the gateway MAC address of the obtained Vlan gateway device obtained from the Vlan database;
the obtained aging mark is used for indicating whether to perform the vlan ID and the gateway MAC address learning of the gateway equipment again;
and acquiring a gateway IP of the target base station gateway from the gateway database, wherein the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
Optionally, sending the request packet to the Vlan gateway device according to the gateway IP includes:
determining the type of the gateway IP;
when the gateway IP type is the IPv4 gateway, sending an arp request data packet to Vlan gateway equipment according to the gateway IP;
and when the gateway IP type is the IPv6 gateway, sending an ns request data packet to the Vlan gateway equipment according to the gateway IP.
According to another aspect of the present application, there is provided an apparatus for acquiring a gateway Vlan, the apparatus including:
the first acquisition unit is used for acquiring a gateway network Interconnection Protocol (IP) of a target base station gateway;
a first sending unit, configured to send a request packet to a corresponding Vlan gateway device according to the gateway IP;
a second obtaining unit, configured to, when receiving a response packet of the request packet sent by the Vlan gateway device, obtain a Vlan id and a gateway MAC address of the Vlan gateway device in the response packet;
a second sending unit, configured to send the Vlan id and the MAC address of the Vlan gateway device to the target base station through an uplink;
a storage unit, configured to store, in a Vlan database, the Vlan id and the MAC address of the Vlan gateway device after receiving the acknowledgement response transmitted by the target base station via the downlink.
According to another aspect of the present application, a processor-readable storage medium is provided, which stores a computer program for causing a processor to execute an acquisition method of a gateway Vlan.
The application has the following technical effects:
the method comprises the steps of sending a request data packet to corresponding Vlan gateway equipment according to a gateway IP by acquiring a gateway network interconnection protocol IP of a target base station gateway, obtaining a Vlan ID and a gateway Media Access Control (MAC) address of the Vlan gateway equipment in the response data packet if the response data packet of the request data packet sent by the gateway equipment is received, sending the Vlan ID and the MAC address of the Vlan gateway equipment to the target base station through an uplink, and storing the Vlan ID and the MAC address of the Vlan gateway equipment in a Vlan database after receiving a confirmation response transmitted by the target base station through a downlink. The Vlan ID and the MAC address are obtained in a self-obtaining mode, manual participation is not needed, not only can the amount of manual engineering be saved, but also the problems that transmission links are not communicated due to errors of manual configuration and the like can be avoided, especially when the gateway needing configuration is complex, the Vlan ID and the MAC address of Vlan gateway equipment can be obtained in a self-obtaining mode, labor can be saved, and configuration accuracy can be guaranteed.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 shows a schematic diagram of an associated base station transmission mode;
fig. 2 is a schematic flowchart of an acquisition method of a gateway Vlan according to an embodiment of the present application;
fig. 3 is a flowchart of a vlan id configuration according to an embodiment of the present application;
fig. 4 is a flowchart illustrating another method for acquiring a gateway Vlan according to the embodiment of the present application;
fig. 5 is a schematic structural diagram of a base station according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an obtaining apparatus of a gateway Vlan according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another acquisition apparatus for a gateway Vlan according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
In the embodiment of the present application, the term "and/or" describes an association relationship of associated objects, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the related art, with the wide application of the 5G technology, in order to meet more requirements of users on 5G, the deployment amount of 5GNR base stations is increased, the configuration of the base stations after deployment depends on manual configuration, and a problem of configuration error of a gateway Vlan often occurs, the configuration error of the gateway directly causes that transmission lines of NG links, XN links, management links and the like of the base stations are not communicated, and particularly, the management links are not communicated, so that the base stations are out of management, remote control cannot be performed, repair configuration must be performed on site, a large maintenance cost is introduced, and the complaint rate of users is increased due to failure to timely repair of faults.
For example, as shown in fig. 1, fig. 1 shows a schematic diagram of a transmission mode of a conventional base station, the base station is connected to an exchange through a high-speed ethernet interface (10G/25G), and the exchange is connected to a core network, other neighboring base stations, and a network management center through a relatively complex network, and corresponds to an AMF (N2)/NG (N3) link, an Xn link, and an OM management link, respectively. The routing, the Vlan, the Qos and other transmission characteristics of the links are configured on an OM management interface of an OM server, the routing is configured through the OM management interface, the routing includes a gateway IP, the gateway Vlan is configured, and the Vlan corresponding to the gateway IP is also configured when the Vlan is more or because Xn is self-established.
When the routing configuration is correct and the Vlan corresponding to the gateway is correctly configured, the corresponding transmission link can be established, and the transmission data can be sent to an OM server, a core network or other base stations (such as the base station 2) based on the correct transmission link, thereby providing necessary bases for subsequent various functions.
However, in the related art, only by configuring the Vlan corresponding to the gateway IP through manual configuration on the interface, when the experimental environment network is relatively single, the problem is not significant, for example, when one gateway is configured, but the actual network environment is very complex, and besides, the correct configuration also has a high requirement on the existing construction, for example, the engineering team of the switch network configuration and the base station configuration may not be performed simultaneously, so that the base station configuration engineer has an uncertain situation on the network environment, and cannot configure the gateway Vlan quickly and accurately.
Therefore, how to perform rapid and correct configuration on the gateway Vlan is the prerequisite and the important point in establishing a smooth communication link, and in order to achieve the purpose of rapidly and correctly configuring the gateway Vlan, embodiments of the present application provide an acquisition method, an apparatus, a base station, and a storage medium for the gateway Vlan, where a gateway network interconnection protocol IP of a target base station gateway is acquired, a request packet is sent to a corresponding Vlan gateway device according to the gateway IP, and if a response packet of the request packet sent by the gateway device is received, a Vlan id and a gateway medium access control MAC address of the Vlan gateway device in the response packet are acquired, and the Vlan id and the MAC address of the Vlan gateway device are sent to the target base station through an uplink, and after an acknowledgement response transmitted by the target base station through a downlink is received, the Vlan id and the MAC address of the Vlan gateway device are stored in a Vlan database. The Vlan ID and the MAC address are obtained in a self-obtaining mode, manual participation is not needed, not only can the amount of manual work be saved, but also the problems that transmission links are not communicated and the like due to manual configuration errors can be solved, particularly when the gateway to be configured is complex, the Vlan ID and the MAC address of Vlan gateway equipment can be obtained automatically, labor can be saved, and configuration accuracy can be guaranteed.
The following describes an acquisition method, an apparatus, a base station, and a storage medium of the gateway Vlan according to the present embodiment with reference to the drawings.
It should be noted that the technical solution provided in the embodiment of the present application may be applicable to various systems, especially 5G systems. For example, the applicable system may be a global system for mobile communication (GSM) system, a Code Division MultIPle Access (CDMA) system, a WIDeband Code Division MultIPle Access (WCDMA) General Packet Radio Service (GPRS) system, a long term evolution (long term evolution, LTE) system, an LTE Frequency Division Duplex (FDD) system, an LTE Time Division Duplex (TDD) system, an LTE-a (long term evolution) system, a universal mobile system (universal mobile telecommunications system, UMTS), a universal mobile telecommunications Access (worldwIDe interoperability for mobile communications, wiMAX) system, a New Radio Network (NR) system, etc. These various systems each include a terminal device and a network-side device. The System may further include a core network portion, such as an Evolved Packet System (EPS), a 5G System (5 GS), and the like.
Fig. 2 is a flowchart illustrating an acquisition method of a gateway Vlan according to an embodiment of the present application, where the method is applied to a base station side.
As shown in fig. 2, the method includes:
and step 21, acquiring a gateway network interconnection protocol IP of the target base station gateway.
In the base station provided in the above embodiment, the base station may be a macro base station, a micro base station, or an indoor base station. A base station may also be called an access point, or may be a device in an access network that communicates over the air-interface, through one or more sectors, with wireless terminal devices, or by other names, depending on the particular application. The network device may be configured to exchange received air frames with Internet Protocol (IP) packets as a router between the wireless terminal device and the rest of the access network, which may include an Internet Protocol (IP) communications network. The network device may also coordinate attribute management for the air interface. For example, the network device according to the embodiment of the present application may be a Base Transceiver Station (BTS) in a Global System for Mobile communications (GSM) or a Code Division MultIPle Access (CDMA), may also be a network device (NodeB) in a Wideband Code Division MultIPle Access (WCDMA), may also be an evolved Node B (eNB or e-NodeB) in a Long Term Evolution (LTE) System, a 5G Base Station (gNB) in a 5G network architecture (next generation System), or may also be a Home evolved Node B (HeNB), a relay Node (relay Node), a Home Base Station (femto), a pico Base Station (pico), which is not limited in the embodiments of the present application.
In an embodiment of the present application, there are many network devices connected to a base station, there are N base stations, an OM server, a statistics server, a core network, a backup server, a computation server, and the like, and each connection point communicates through a gateway, so after the whole network planning is completed, it is necessary to designate a target base station gateway to perform gateway Vlan acquisition, and after the gateway IP of a target base station gateway is completed, it continues to designate the remaining gateways Vlan to perform Vlan id and MAC address acquisition until the Vlan id and MAC address corresponding to the Vlan gateway device connected to the target base station are completely acquired.
Step 21 is a process of acquiring a target base station gateway, and is related to the whole network planning, and the subsequent steps can be performed only when a gateway network Interconnection Protocol (IP) corresponding to the target base station gateway is acquired. For example, assuming that 50 Vlan network devices connected to the target base station are provided, and the numbers are 001 and 002 \ 8230050, when acquiring the gateway IP of the gateway of the target base station, the gateway IP may be sequentially acquired from the number 001 downward, or the gateway IP may be sequentially acquired from the number 050 upward, or one gateway IP may be randomly selected from all the network device numbers as the gateway IP of the gateway of the target base station, and the purpose of the acquisition is to acquire the Vlan id and the MAC address of the Vlan gateway device connected to the target base station regardless of the acquisition method. The above is merely an exemplary example, and the number of Vlan network devices connected to the target base station and the manner of acquiring the gateway IP are not limited in the embodiments of the present application.
And step 22, sending a request data packet to the corresponding Vlan gateway device according to the gateway IP.
In general, a gateway IP is allocated to one or more vlans, and the vlans communicate with each other through routers, so that after the gateway IP is determined, a request packet containing the gateway IP address is broadcast to the corresponding Vlan gateway device, the Vlan gateway device belonging to the IP network segment responds to the request packet, and after receiving a response packet, the Vlan id and MAC address of the Vlan gateway device are determined.
In an embodiment of the present application, when the target base station gateway is acquired in step 21, the Vlan id of the Vlan gateway device may also be configured, and the Vlan id including the configured Vlan id is sent through the request packet, so that in addition to acquiring the MAC address corresponding to the Vlan id, the Vlan id of the Vlan gateway device can also be determined, that is, when the configured Vlan id is consistent with the Vlan id in the response packet, it is indicated that both the configuration and the acquired Vlan id are correct, and thus the correctness of the Vlan id acquired at this time can be verified.
And step 23, if a response data packet of the gateway device to the request data packet is received, acquiring the Vlan id and the gateway media access control MAC address of the Vlan gateway device in the response data packet.
For a specific implementation of obtaining the Vlan id and the gateway MAC address of the Vlan gateway device from the reply data packet, reference may be made to any implementation form in the related art, and details of this embodiment of the present invention are not described herein.
And step 24, sending the Vlan id and the MAC address of the Vlan gateway device to the target base station through an uplink, and storing the Vlan id and the MAC address of the Vlan gateway device in a Vlan database after receiving an acknowledgement response transmitted by the target base station through a downlink.
The vlan id of the gateway device is used as a workload of the isolated physical and virtualization pair, and when the target base station gateway is configured, the vlan id may be allocated to the virtual machine by using PowerShell scripts.
The purpose of this step is to transmit the obtained Vlan id and MAC address of the Vlan gateway device to the target base station through the uplink, and allow the target base station to determine the correctness of the Vlan id and MAC address of the Vlan gateway device.
In the above embodiment, the specific implementation steps of the whole acquisition process are completed, and it can be seen that the acquisition process is equivalent to a process of continuously sending a probe signal (sending a request packet), and after the probe signal is responded (a response packet is received), the Vlan id and the MAC address of the Vlan gateway device are obtained, and the self-acquisition process is completed in cycles.
In the related art, when the gateway is configured, a manual configuration mode is adopted, in the embodiment of the present application, in order to merge application scenarios of manual configuration, the present application adds the configuration Vlan database, which can facilitate merging of manual configuration and can improve the self-acquisition speed, but it should be clear that in the embodiment of the present application, even if a flow of configuring the Vlan database by a base station is not added, the self-acquisition of Vlan id and MAC address can be realized similarly.
As shown in fig. 3, fig. 3 is a flowchart of configuring vlan id according to an embodiment of the present application, where the method includes:
and step 31, responding to the first configuration operation of the Vlan database on the OM management interface, and determining the added gateway Vlan.
And the target base station communicates with the OM server through the OM link, and configures the Vlan ID of the Vlan gateway device in the Vlan database based on the OM management interface in the OM server when the Vlan ID of the Vlan gateway device is configured. In practical applications, a switch (gateway) can generally divide 255 vlans, and the Vlan id of each Vlan gateway device can be any number between 0 and 4095.
The Vlan id is used for distinguishing different vlans, and the TAG UNTag number attribute can be directly set during configuration, so that the configuration of the Vlan id of the Vlan gateway device can be completed by tagging downlink or uplink data packets of the port.
In order to improve the allocation efficiency of the vlan ids, in practical applications, each vlan id may correspond to 1bit, and a bit position corresponding to the vlan id indicates that OM allocates the vlan id, and an unset indicates that OM does not allocate the vlan id.
Step 32, inquiring whether the Vlan id of the Vlan gateway device corresponding to the added gateway Vlan exists in the Vlan database;
and step 33, 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, adding the Vlan id of the added Vlan gateway device to the Vlan database.
And step 34, responding to the second configuration operation of the Vlan database on the OM management interface, and determining the deleted gateway Vlan.
And step 35, searching the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan in the Vlan database.
And step 36, deleting the Vlan id of the Vlan gateway device corresponding to the deleted gateway Vlan from the Vlan database.
When the OM server configures the Vlan ID, whether the Vlan ID is added or deleted is checked, and the operation of adding or deleting the Vlan database configured by the OM is performed synchronously, so that the configuration of the Vlan database and the configuration of the OM on an interface are kept consistent.
As an extension of the foregoing embodiment, the embodiment of the present application further includes constructing a gateway database, where main elements of the gateway database include: gateway serial number, valid flag, gateway IP, vlan ID of Vlan gateway device, gateway MAC address and get the aging flag, wherein: the gateway serial number is a sequential number, such as 0-99, and the serial number is an extensible serial number; the valid flag indicates whether the gateway is configured, the valid flag indicates that the OM is configured with the target base station gateway, the invalid flag indicates that the gateway is not configured or deleted, the gateway IP is a gateway IP corresponding to the target base station gateway, the Vlan id and the gateway MAC address of the Vlan gateway device are the Vlan id and the gateway MAC address of the acquired Vlan gateway device acquired from the Vlan database, the acquisition aging flag indicates whether the Vlan id and the gateway MAC address of the gateway device are learned again, the valid flag indicates that the correct Vlan id and MAC address of the Vlan gateway device are acquired, and the invalid flag indicates that the correct Vlan id and MAC address of the Vlan gateway device are not acquired.
In practical application, timing is carried out after the correct vlan ID and the gateway MAC of the gateway equipment are obtained, when the time reaches a set threshold, an aging mark is set to be true, whether the current vlan ID and the gateway equipment are correct or not is confirmed, and if the gateway equipment confirms that the current vlan ID and the gateway equipment are correct, the aging mark is set to be false; if the gateway device does not confirm the correctness, the polling learning is carried out again according to the flow.
As a refinement to step 21, it is sufficient to read a gateway database and obtain the gateway IP of the target base station gateway from the gateway database. The protocol suite currently employed by the global internet is the TCP/IP protocol suite. IP is a protocol of a network layer in the TCP/IP protocol family, and is a core protocol of the TCP/IP protocol family. The commonly used IP protocol has version number 4 (IPv 4 for short) and version number 6 (IPv 6 for short), and in order to adapt to the two protocols, the embodiments of the present application provide two types of self-acquisition channels, where the two self-acquisition channels have the same principle, and the difference is that the manner of a request packet sent through an uplink and a response packet received/analyzed based on a downlink channel is different. As shown in fig. 4, fig. 4 is a schematic flowchart illustrating another method for acquiring a gateway Vlan according to an embodiment of the present application, where the method includes:
and step 41, acquiring a gateway IP of the target base station gateway.
Step 42, determining the type of the gateway IP.
And 43, when the gateway IP type is the IPv4 gateway, inquiring the enabling state of the sending request data packet in a polling mode.
In the enabled state, step 44 is performed, and in the disabled state, step 45 is performed.
The polling mode is realized by controlling through a cycle period, namely when the next cycle period arrives, the request data packet is continuously sent to the Vlan gateway device until all the Vlan gateway devices corresponding to the target base station are polled, so that the Vlan ID and MAC address of the Vlan gateway device are acquired.
The acquisition process of the present application is an automatically executed process, so in practice, the cycle period is implemented by setting a timer, and the determination of the cycle frequency may be performed according to different application scenarios, such as setting to 10s,30s, etc., and the cycle frequency is not limited in the embodiments of the present application.
And step 44, sending an arp request data packet to the Vlan gateway device confirmed by the polling mode according to the gateway IPV 4.
After receiving the arp request data packet, the gateway of the IPv4 firstly confirms whether the arp request data packet is sent by the gateway IPv4, and after confirmation, responds to the arp request data packet and updates the Vlan database.
And step 45, acquiring the configured Vlan gateway devices in the Vlan database, and sending arp request data packets to the configured Vlan gateway devices.
And step 46, whether the Vlan id and the gateway MAC address of the correct Vlan gateway device are acquired or not.
If so, ending the process; if not, step 47 is executed.
And step 47, when the next cycle period is reached, continuing to send an arp request data packet to the Vlan gateway device.
And 48, when the gateway IP type is the IPv6 gateway, inquiring the enabling state of the sending request data packet in a polling mode.
In the enabled state, step 49 is performed, and in the disabled state, step 410 is performed.
And step 49, sending an ns request data packet to the Vlan gateway device confirmed by the polling mode according to the gateway IPV 6.
After receiving the ns request data packet, the gateway of the IPv6 firstly confirms whether the ns request data packet is sent by the gateway IPv6 or not, responds to the ns request data packet after confirmation, and updates the Vlan database.
And step 410, acquiring configured Vlan gateway devices in the Vlan database, and sending ns request data packets to the configured Vlan gateway devices.
And in the specific application process, the Vlan ID configured in the Vlan database is used for testing and judging the Vlan ID of the gateway, and the Vlan ID and the MAC address are acquired in the response of the Vlan gateway device sending the response data packet. As an implementation manner of the embodiment of the present application, the configured Vlan gateway device may also obtain the Vlan id and the MAC address through the above method, and record the valid obtaining result (Vlan id and MAC address) in the Vlan database, but the recorded Vlan id and MAC address are timed out or the aging flag is true, which is also referred to as configured.
When none of the vlans in the Vlan-configured Vlan database using OM can successfully acquire the Vlan id and MAC address of the Vlan gateway device, polling of the Vlan ids of all the Vlan gateway devices is started, starting from 0 to a maximum value of 4095. If the connection is normal, the Vlan id of the Vlan gateway device is necessarily in 4096, and when the correct Vlan id is polled, the Vlan gateway device will reply with the correct Vlan id and MAC address.
And after acquiring the correct vlan ID and MAC address, recording the vlan ID and MAC address to serve the next data transmission of the base station.
Step 411, determine whether to obtain the correct Vlan id and gateway MAC address of the Vlan gateway device.
If so, ending the process; if not, go to step 412.
The accuracy of the obtained Vlan id and the gateway MAC address of the Vlan gateway device requires the target base station to make a final decision, so that the accuracy of the obtained result can be further ensured.
And step 412, when the next cycle period is reached, continuously sending ns request data packets to the Vlan gateway device.
In summary, a gateway network interconnection protocol IP of a target base station gateway is acquired, a request packet is sent to a corresponding Vlan gateway device according to the gateway IP, if a response packet of the request packet sent by the gateway device is received, a Vlan id and a gateway medium access control MAC address of the Vlan gateway device in the response packet are acquired, the Vlan id and the MAC address of the Vlan gateway device are sent to the target base station through an uplink, and after an acknowledgement response transmitted through a downlink by the target base station is received, the Vlan id and the MAC address of the Vlan gateway device are stored in a Vlan database. The vlan ID and the MAC address are obtained in a self-obtaining mode, manual participation is not needed, a negative miscellaneous transmission network scene can be adapted, the problems of transmission link failure and base station hosting caused by manual configuration errors are avoided, in addition, a gateway vlan can not be configured, accordingly, the engineering quantity is reduced, and particularly when the number of routes is large, the effect is more obvious.
Fig. 5 is a schematic structural diagram of a base station according to an embodiment of the present application. As shown in fig. 5, the base station may include a transceiver 500, a processor 510, and a memory 520, wherein:
a transceiver 500 for receiving and transmitting data under the control of a processor 510.
Wherein in fig. 5, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 510, and various circuits, represented by memory 520, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 500 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium including wireless channels, wired channels, fiber optic cables, 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 in performing operations.
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), and may also have a multi-core architecture.
Processor 510, by calling a memory-stored computer program, performs the following operations:
acquiring a gateway network Interconnection Protocol (IP) of a target base station gateway;
sending a request data packet to corresponding Vlan gateway equipment according to the gateway IP;
if a response data packet of the request data packet sent by the gateway equipment is received, acquiring a Vlan ID and a gateway Media Access Control (MAC) address of the Vlan gateway equipment in the response data packet;
sending the Vlan ID and the MAC address of the Vlan gateway device to the target base station through an uplink;
and after receiving the acknowledgement response transmitted by the target base station through the downlink, storing the Vlan ID and the MAC address of the Vlan gateway device in a Vlan database.
Optionally, as another embodiment, each network segment in the gateway IP has a corresponding Vlan gateway device; before sending the request packet to the Vlan gateway device according to the gateway IP, the processor 510 performs the following operations:
inquiring the enabling state of the sending request data packet in a polling mode;
and in the enabled state, sending the request data packet to the Vlan gateway device corresponding to each network segment in the gateway IP by adopting a polling mode.
Optionally, as another embodiment, the processor 510 further performs the following operations:
in an un-enabled state, acquiring configured Vlan gateway equipment in the Vlan database;
and sending a request data packet to the configured Vlan gateway device.
Optionally, as another embodiment, the processor 510 further performs the following operations:
determining an added gateway Vlan in response to a first configuration operation on the Vlan database at an OM management interface; querying whether a Vlan id of a Vlan gateway device corresponding to the added gateway Vlan exists in the Vlan database;
and adding the Vlan ID of the added Vlan gateway device to the Vlan database when the Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database.
Optionally, as another embodiment, the processor 510 further performs the following operations:
responding to a second configuration operation on the Vlan database at an OM management interface, and determining a deleted gateway Vlan;
searching the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan in the Vlan database;
and deleting the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan from the Vlan database.
Optionally, as another embodiment, in obtaining a gateway network interconnection protocol IP corresponding to a target base station gateway, the processor 510 further performs the following operations:
reading a gateway database, wherein elements in the gateway database comprise a Vlan ID and a gateway MAC address of Vlan gateway equipment; the gateway database further comprises at least one of a gateway serial number, an effective mark, a gateway IP and an aging mark, wherein:
the gateway serial number is used for indicating a sequence number;
the valid flag is used for indicating whether the target base station gateway is configured;
the gateway IP is used for indicating a gateway IP corresponding to the target base station gateway;
the Vlan id and the gateway MAC address of the Vlan gateway device are used to indicate the Vlan id and the gateway MAC address of the obtained Vlan gateway device obtained from the Vlan database;
the obtained aging mark is used for indicating whether to carry out the vlan ID and the MAC address learning of the gateway equipment again;
and acquiring a gateway IP of the target base station gateway from the gateway database, wherein the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
Optionally, as another embodiment, sending the request packet to the Vlan gateway device according to the gateway IP includes:
determining the type of the gateway IP;
when the gateway IP type is an IPv4 gateway, sending an arp request data packet to Vlan gateway equipment according to the gateway IP;
and when the gateway IP type is the IPv6 gateway, sending an ns request data packet to the Vlan gateway equipment according to the gateway IP.
The method comprises the steps of sending a request data packet to corresponding Vlan gateway equipment according to a gateway IP by acquiring a gateway network interconnection protocol IP of a target base station gateway, obtaining a Vlan ID and a gateway Media Access Control (MAC) address of the Vlan gateway equipment in the response data packet if the response data packet of the request data packet sent by the gateway equipment is received, sending the Vlan ID and the MAC address of the Vlan gateway equipment to the target base station through an uplink, and storing the Vlan ID and the MAC address of the Vlan gateway equipment in a Vlan database after receiving a confirmation response transmitted by the target base station through a downlink. The Vlan ID and the MAC address are obtained in a self-obtaining mode, manual participation is not needed, not only can the manual engineering amount be saved, but also the problems that transmission links are not communicated due to errors of manual configuration and the like can be avoided, particularly when the gateway needing to be configured is complex, the Vlan ID and the MAC address of Vlan gateway equipment can be obtained automatically, labor can be saved, and configuration accuracy can be guaranteed.
It should be noted that, the base station provided in the embodiment of the present invention can implement all the method steps implemented by the method embodiment and achieve the same technical effect, and detailed descriptions of the same parts and beneficial effects as the method embodiment in this embodiment are not repeated herein.
Fig. 6 is a schematic structural diagram of an obtaining apparatus of a gateway Vlan according to an embodiment of the present application.
As shown in fig. 6, the apparatus 600 includes:
the apparatus for acquiring a gateway Vlan provided in the embodiment of the present application, the apparatus includes:
a first obtaining unit 61, configured to obtain a gateway network interconnection protocol IP of a target base station gateway;
a first sending unit 62, configured to send a request packet to a corresponding Vlan gateway device according to the gateway IP;
a second obtaining unit 63, configured to obtain, when a response packet to the request packet by the Vlan gateway device is received, a Vlan id and a gateway media access control MAC address of the Vlan gateway device in the response packet;
a second sending unit 64, configured to send the Vlan id and the MAC address of the Vlan gateway device to the target base station through an uplink;
a storage unit 65, configured to store, in the Vlan database, the Vlan id and the MAC address of the Vlan gateway device after receiving the acknowledgement response transmitted by the target base station via the downlink.
Optionally, as another embodiment, as shown in fig. 7, each network segment in the gateway IP has a corresponding Vlan gateway device; the device further comprises:
a confirming unit 66, configured to query, in a polling manner, an enabling state of a request packet before the first sending unit 62 sends the request packet to the corresponding Vlan gateway device according to the gateway IP;
a third sending unit 67, configured to send the request packet to the Vlan gateway device corresponding to each network segment in the gateway IP in a polling manner when the determining unit 66 is in an enabled state.
Optionally, as another embodiment, as shown in fig. 7, the apparatus further includes:
a third obtaining unit 68, configured to obtain the configured Vlan gateway device in the Vlan database when the confirming unit 66 confirms that the Vlan gateway device is in the disabled state;
a fourth sending unit 69, configured to send a request packet to the configured Vlan gateway device acquired by the third acquiring unit 68.
Optionally, as another embodiment, as shown in fig. 7, the apparatus further includes:
a first determining unit 610, configured to determine an added gateway Vlan in response to a first configuration operation performed on the Vlan database on an OM management interface;
a first querying unit 611, configured to query, in the Vlan database, whether a Vlan id of a Vlan gateway device corresponding to the added gateway Vlan exists;
an adding unit 612, configured to add, to the Vlan database, the Vlan id of the added Vlan gateway device when the Vlan id of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database.
Optionally, as another embodiment, as shown in fig. 7, the apparatus further includes:
a second determining unit 613, configured to determine, in response to a second configuration operation performed on the Vlan database on the OM management interface, a deleted gateway Vlan;
a second searching unit 614, configured to search the Vlan id of the Vlan gateway device corresponding to the deleted gateway Vlan in the Vlan database;
a deleting unit 615, configured to delete the Vlan id of the Vlan gateway device corresponding to the deleted gateway Vlan from the Vlan database.
Optionally, as another embodiment, as shown in fig. 7, the first obtaining unit 61 further includes:
a reading subunit 6011, configured to read a gateway database, where elements in the gateway database include a Vlan id and a gateway MAC address of a Vlan gateway device; the gateway database further comprises at least one of a gateway serial number, an effective mark, a gateway IP and an aging mark, wherein:
the gateway serial number is used for indicating a sequence number;
the valid flag is used for indicating whether the target base station gateway is configured or not;
the gateway IP is used for indicating a gateway IP corresponding to the target base station gateway;
the Vlan id and the gateway MAC address of the Vlan gateway device are used to indicate the Vlan id and the gateway MAC address of the obtained Vlan gateway device obtained from the Vlan database;
the obtained aging mark is used for indicating whether to perform the vlan ID and the gateway MAC address learning of the gateway equipment again;
an obtaining subunit 6012, configured to obtain, from the gateway database, a gateway IP of the target base station gateway, where the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
Optionally, as another embodiment, as shown in fig. 7, the first sending unit 62 includes:
a determining subunit 621, configured to determine a type of the gateway IP;
a first sending subunit 622, configured to send an arp request packet to Vlan gateway equipment according to the gateway IP when the gateway IP type is an IPv4 gateway;
and a second sending subunit 623, configured to send, when the gateway IP type is an IPv6 gateway, an ns request packet to Vlan gateway equipment according to the gateway IP.
The method comprises the steps of obtaining a gateway network interconnection protocol IP of a target base station gateway, sending a request data packet to corresponding Vlan gateway equipment according to the gateway IP, obtaining the Vlan ID and the gateway medium access control MAC address of the Vlan gateway equipment in the response data packet if the response data packet of the request data packet sent by the gateway equipment is received, sending the Vlan ID and the MAC address of the Vlan gateway equipment to the target base station through an uplink, storing the Vlan ID and the MAC address of the Vlan gateway equipment in a Vlan database after the acknowledgement response of the target base station through downlink transmission is received, and therefore, manual work is not needed, the problems that transmission links are not communicated due to manual configuration errors can be solved, particularly, when a gateway needing to be configured is complex, the Vlan ID and the MAC address of the Vlan gateway equipment can be automatically obtained, manpower can be saved, and configuration accuracy can be guaranteed.
The method and the device are based on the same application concept, and because the principles of solving the problems of the method and the device are similar, the implementation of the device and the method can be mutually referred, and repeated parts are not repeated.
It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a processor readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network-side device, etc.) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that the apparatus provided in the embodiment of the present invention can implement all the method steps implemented by the method embodiment, and can achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as the method embodiment in this embodiment are not repeated herein.
On the other hand, an embodiment of the present invention further provides a processor-readable storage medium, where the processor-readable storage medium stores a computer program, and the computer program is configured to enable a processor to execute the method for acquiring a gateway Vlan according to any embodiment of the present invention.
The processor-readable storage medium can be any available medium or data storage device that can be accessed by a processor, including but not limited to magnetic memory (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical memory (e.g., CD, DVD, BD, HVD, etc.), and semiconductor memory (e.g., ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid State Disk (SSD)), etc.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer-executable instructions. These computer-executable instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These processor-executable instructions may also be stored in a processor-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the processor-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These processor-executable instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such 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 intended to include such modifications and variations as well.

Claims (16)

1. A method for acquiring a gateway Vlan, the method comprising:
acquiring a gateway network Interconnection Protocol (IP) of a target base station gateway;
sending a request data packet to corresponding Vlan gateway equipment according to the gateway IP;
if a response data packet of the gateway equipment to the request data packet is received, acquiring the Vlan ID of the Vlan gateway equipment and a gateway Media Access Control (MAC) address in the response data packet;
sending the Vlan ID and the MAC address of the Vlan gateway device to the target base station through an uplink;
and after receiving an acknowledgement response transmitted by the target base station through a downlink, storing the Vlan ID and the MAC address of the Vlan gateway device in a Vlan database.
2. The method for acquiring the gateway Vlan according to claim 1, wherein each network segment in the gateway IP has a corresponding Vlan gateway device; before sending the request packet to the Vlan gateway device according to the gateway IP, the method further includes:
inquiring the enabling state of the sending request data packet in a polling mode;
and in the enabled state, sending the request data packet to the Vlan gateway device corresponding to each network segment in the gateway IP by adopting a polling mode.
3. Method for acquiring a gateway Vlan according to claim 2, characterized in that said method further comprises:
in the disabled state, the Vlan gateway device configured in the Vlan database is acquired;
and sending a request data packet to the configured Vlan gateway device.
4. Method for acquiring a gateway Vlan according to claim 1, characterized in that said method further comprises:
determining an added gateway Vlan in response to a first configuration operation performed on the Vlan database at an OM management interface;
querying whether a Vlan id of a Vlan gateway device corresponding to the added gateway Vlan exists in the Vlan database;
and adding the Vlan ID of the added Vlan gateway device to the Vlan database when the Vlan ID of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database.
5. The method for acquiring a gateway Vlan according to claim 1, further comprising:
responding to a second configuration operation on the Vlan database at an OM management interface, and determining a deleted gateway Vlan;
searching the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan in the Vlan database;
and deleting the Vlan ID of the Vlan gateway equipment corresponding to the deleted gateway Vlan from the Vlan database.
6. The method for acquiring the gateway Vlan according to claim 1, wherein the acquiring the gateway internetworking protocol IP corresponding to the target base station gateway comprises:
reading a gateway database, wherein elements in the gateway database comprise a Vlan ID and a gateway MAC address of Vlan gateway equipment; the gateway database further comprises at least one of a gateway serial number, an effective mark, a gateway IP and an aging mark, wherein:
the gateway serial number is used for indicating a sequence number;
the valid flag is used for indicating whether the target base station gateway is configured;
the gateway IP is used for indicating a gateway IP corresponding to the target base station gateway;
the Vlan id and the gateway MAC address of the Vlan gateway device are used to indicate the Vlan id and the gateway MAC address of the obtained Vlan gateway device obtained from the Vlan database;
the obtained aging mark is used for indicating whether to perform the vlan ID and the gateway MAC address learning of the gateway equipment again;
and acquiring a gateway IP of the target base station gateway from the gateway database, wherein the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
7. The method for acquiring the gateway Vlan according to claim 6, wherein the sending the request packet to the Vlan gateway device according to the gateway IP comprises:
determining the type of the gateway IP;
when the gateway IP type is the IPv4 gateway, sending an arp request data packet to Vlan gateway equipment according to the gateway IP;
and when the gateway IP type is the IPv6 gateway, sending an ns request data packet to the Vlan gateway equipment according to the gateway IP.
8. A base station comprising a memory, a transceiver, and a processor;
wherein the memory is to store a computer program; the transceiver is used for transceiving data under the control of the processor; the processor is used for reading the computer program in the memory and executing the following operations:
acquiring a gateway network Interconnection Protocol (IP) of a target base station gateway;
sending a request data packet to corresponding Vlan gateway equipment according to the gateway IP;
if a response data packet of the request data packet sent by the gateway equipment is received, acquiring a Vlan ID and a gateway Media Access Control (MAC) address of the Vlan gateway equipment in the response data packet;
sending the Vlan ID and the MAC address of the Vlan gateway device to the target base station through an uplink;
and after receiving the acknowledgement response transmitted by the target base station through the downlink, storing the Vlan ID and the MAC address of the Vlan gateway device in a Vlan database.
9. The base station of claim 8, wherein each segment in the gateway IP has a corresponding Vlan gateway device; before sending a request packet to a Vlan gateway device according to the gateway IP, the processor performs the following operations:
inquiring the enabling state of the sending request data packet in a polling mode;
and in the enabled state, sending the request data packet to the Vlan gateway device corresponding to each network segment in the gateway IP by adopting a polling mode.
10. The base station of claim 9, wherein the processor further performs the following:
in an un-enabled state, acquiring configured Vlan gateway equipment in the Vlan database;
and sending a request data packet to the configured Vlan gateway device.
11. The base station of claim 8, wherein the processor further performs the following operations:
determining an added gateway Vlan in response to a first configuration operation performed on the Vlan database at an OM management interface;
querying whether a Vlan id of a Vlan gateway device corresponding to the added gateway Vlan exists in the Vlan database;
and adding the Vlan id of the added Vlan gateway device to the Vlan database when the Vlan id of the Vlan gateway device corresponding to the added gateway Vlan does not exist in the Vlan database.
12. The base station of claim 8, wherein the processor further performs the following operations:
responding to a second configuration operation on the Vlan database at an OM management interface, and determining a deleted gateway Vlan;
searching the Vlan ID of the Vlan gateway device corresponding to the deleted gateway Vlan in the Vlan database;
and deleting the Vlan ID of the Vlan gateway equipment corresponding to the deleted gateway Vlan from the Vlan database.
13. The base station of claim 8, wherein the processor is further configured to obtain a gateway internet protocol IP corresponding to the target base station gateway, and further configured to:
reading a gateway database, wherein elements in the gateway database comprise a Vlan ID and a gateway MAC address of Vlan gateway equipment; the gateway database further comprises at least one of a gateway serial number, an effective mark, a gateway IP and an aging mark, wherein:
the gateway serial number is used for indicating a sequence number;
the valid flag is used for indicating whether the target base station gateway is configured or not;
the gateway IP is used for indicating a gateway IP corresponding to the target base station gateway;
the Vlan id and the gateway MAC address of the Vlan gateway device are used to indicate the Vlan id and the gateway MAC address of the obtained Vlan gateway device obtained from the Vlan database;
the obtained aging mark is used for indicating whether to perform the vlan ID and the gateway MAC address learning of the gateway equipment again;
and acquiring a gateway IP of the target base station gateway from the gateway database, wherein the type of the gateway IP is an IPv4 gateway or an IPv6 gateway.
14. The base station of claim 1, wherein sending the request packet to the Vlan gateway device based on the gateway IP comprises:
determining the type of the gateway IP;
when the gateway IP type is an IPv4 gateway, sending an arp request data packet to Vlan gateway equipment according to the gateway IP;
and when the gateway IP type is the IPv6 gateway, sending an ns request data packet to the Vlan gateway equipment according to the gateway IP.
15. An apparatus for acquiring a gateway Vlan, the apparatus comprising:
the first acquisition unit is used for acquiring a gateway network Interconnection Protocol (IP) of a target base station gateway;
a first sending unit, configured to send a request packet to a corresponding Vlan gateway device according to the gateway IP;
a second obtaining unit, configured to obtain, when a response packet of the request packet sent by the Vlan gateway device is received, a Vlan id and a gateway media access control MAC address of the Vlan gateway device in the response packet;
a second sending unit, configured to send the Vlan id and the MAC address of the Vlan gateway device to the target base station through an uplink;
a storage unit, configured to store, in a Vlan database, the Vlan id and the MAC address of the Vlan gateway device after receiving the acknowledgement response transmitted by the target base station via the downlink.
16. A processor-readable storage medium, characterized in that the processor-readable storage medium stores a computer program for causing a processor to perform the method of any one of claims 1 to 7.
CN202110832384.3A 2021-07-22 2021-07-22 Gateway Vlan acquisition method, device, base station and storage medium Pending CN115701036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110832384.3A CN115701036A (en) 2021-07-22 2021-07-22 Gateway Vlan acquisition method, device, base station and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110832384.3A CN115701036A (en) 2021-07-22 2021-07-22 Gateway Vlan acquisition method, device, base station and storage medium

Publications (1)

Publication Number Publication Date
CN115701036A true CN115701036A (en) 2023-02-07

Family

ID=85120441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110832384.3A Pending CN115701036A (en) 2021-07-22 2021-07-22 Gateway Vlan acquisition method, device, base station and storage medium

Country Status (1)

Country Link
CN (1) CN115701036A (en)

Similar Documents

Publication Publication Date Title
CN111865830B (en) Processing method, device and system for time delay sensitive network service TSN
EP3913978A1 (en) Handover method and apparatus for iab node
CN107809367B (en) Device online method of SDN (software defined network), SDN controller and network device
WO2019149023A1 (en) Relay transmission method and device
CN107432047A (en) Communication network
CN111866987A (en) Communication method and device
EP3313030B1 (en) Data transmission method, device and system for wireless local area network mesh network
WO2019062152A1 (en) Communication method and device
WO2022152089A1 (en) Information transmission method and device thereof
CN109257133B (en) Whole-network clock synchronization method and device applied to LTE (Long term evolution) rail transit network
US20220141089A1 (en) Network management method and device
CN103856578A (en) Automatic slave station address acquisition method through Modbus RTU and slave station
CN113747478A (en) Communication method and device
CN111865633A (en) Communication method, device and system
CN115701036A (en) Gateway Vlan acquisition method, device, base station and storage medium
CN103002064A (en) Method, user node and remote access server for releasing address
CN114071602B (en) Node switching configuration method and device
CN113556787B (en) Private network service data transmission method and device
WO2021008227A1 (en) Link state monitoring method for sidelink, and terminal
CN114640973A (en) Communication method and device
JP7116190B2 (en) Multicast packet processing method and network device
KR20180100605A (en) Data transmission method and host machine
CN113660734B (en) Connection method and device of network equipment, network equipment and medium
CN115051918B (en) Control method, server, device and storage medium of network equipment
CN114071608A (en) Information transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination