Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for effectively improving the station opening efficiency of a base station and reducing the station opening cost of the base station.
In a first aspect, a method for opening a station includes:
broadcasting a plurality of VLAN request messages; the VLAN request message is used for indicating the network management server to send the VLAN identification of the transmission network to the base station; the transmission network is a network between the base station and the network management server;
receiving a response message which carries the VLAN identification and is returned by the network management server;
acquiring network information of a transmission network according to the VLAN identification;
acquiring station opening information according to the network information;
and performing operation related to the station opening according to the station opening information.
In one embodiment, before broadcasting the plurality of VLAN request messages, the method further comprises:
sending a first DHCP request message to a network management server; the first DHCP request message is used for indicating the network management server to send the network information of the transmission network to the base station;
judging whether network information returned by the network management server is received within a preset first time period;
and if the network information returned by the network management server cannot be received, reading the value range of the VLAN identification in the database configuration information, and generating a plurality of VLAN request messages according to the value range of the VLAN identification.
In one embodiment, after broadcasting the plurality of VLAN request messages, the method further includes:
judging whether a response message is received within a preset second time period;
if the response message is not received, returning to execute the step of sending the first DHCP request message to the network management server;
and if the response message is received, executing the step of acquiring the network information of the transmission network according to the VLAN identification.
In one embodiment, acquiring network information of a transport network according to the VLAN identifier includes:
configuring a DHCP protocol interface according to the VLAN identification;
sending a second DHCP request message to the network management server by calling a DHCP protocol interface; the second DHCP request message is used for indicating the network management server to send the network information of the transmission network to the base station;
and receiving the network information of the transmission network returned by the network management server according to the second DHCP request message.
In one embodiment, the network information includes a backhaul IP address and an IP address of the DNS; acquiring the station opening information according to the network information, comprising the following steps:
determining the returned IP address as the IP address of the base station, and determining the IP address of the DNS as the IP address of the network management server so as to establish a communication link between the base station and the network management server;
based on the communication link, sending a station opening request message to a network management server;
and receiving the station opening information sent by the network management server according to the station opening request message.
In one embodiment, the station opening information includes a first identification code of the base station, and after receiving the station opening information sent by the network management server according to the station opening request message, the method further includes:
and comparing the first identification code with a second identification code locally stored in the base station, and checking the information of the open station.
In one embodiment, the operation related to the station opening is executed according to the station opening information, and comprises the following steps:
and configuring cell parameters according to the station opening information to establish a cell data service network.
In one embodiment, the open station information includes a base station open parameter or a base station open script.
In a second aspect, a method for opening a station, the method comprising:
receiving a plurality of VLAN request messages sent by a base station;
sending a response message carrying the VLAN identification to the base station;
receiving a second DHCP request message sent by the base station according to the response message;
distributing network information of a transmission network between the base station and the network management server according to the second DHCP request message;
sending the network information to a base station;
and according to a communication link established by the base station according to the network information and the network management server, the network management server sends the station opening information to the base station based on a preset network management communication protocol.
In one embodiment, if the network management communication protocol includes a wide area network management protocol TR069, the sending, by the network management server, the start-up information to the base station based on a preset network management communication protocol includes:
receiving an open station request message sent by a base station; the station opening request message carries a second identification code of the base station; and checking the second identification code, selecting the station opening information corresponding to the base station according to the second identification code passing the check, and sending the station opening information to the base station.
In one embodiment, if the network management communication protocol includes a simple management protocol SNMP, the network management server sends the start information to the base station based on a preset network management communication protocol, including:
detecting the state of a communication link between a base station and the network management server;
and if the communication link state is normal, acquiring a second identification code of the base station, selecting the station opening information corresponding to the base station according to the second identification code, and sending the station opening information to the base station.
In one embodiment, if the network management communication protocol includes a simple management protocol SNMP, the network management server sends the start information to the base station based on a preset network management communication protocol, including:
detecting whether base stations corresponding to a plurality of pre-configured IP addresses are online or not;
and if the online base station is detected, acquiring a second identification code of the online base station, selecting the station opening information corresponding to the online base station according to the second identification code of the base station, and sending the station opening information to the online base station.
In a third aspect, a station opening apparatus, the apparatus comprising:
a broadcasting module, configured to broadcast a plurality of VLAN request messages; the VLAN request message is used for indicating the network management server to send the VLAN identification of the transmission network to the base station; the transmission network is a network between the base station and the network management server;
the first receiving module is used for receiving a response message which is returned by the network management server and carries the VLAN identification;
the first acquisition module is used for acquiring the network information of the transmission network according to the VLAN identification;
the second acquisition module is used for acquiring the station opening information according to the network information;
and the station opening module is used for executing the operation related to the station opening according to the station opening information.
In a fourth aspect, an open station apparatus, the apparatus comprising:
a second receiving module, configured to receive multiple VLAN request messages sent by a base station;
the first sending module is used for sending a response message carrying the VLAN identification to the base station;
a third receiving module, configured to receive a second DHCP request message sent by the base station according to the response message;
the distribution module is used for distributing the network information of the transmission network between the base station and the network management server according to the second DHCP request message;
the second sending module is used for sending the network information to the base station;
and the third sending module is used for sending the station opening information to the base station based on a preset network management communication protocol according to a communication link which is established by the base station according to the network information and is connected with the network management server.
In a fifth aspect, a computer device includes a memory and a processor, where the memory stores a computer program, and the processor implements the station opening method according to any one of the embodiments of the first aspect when executing the computer program.
In a sixth aspect, a computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method of opening a station as set forth in any one of the embodiments of the first aspect.
According to the station opening method, the station opening device, the computer equipment and the storage medium, the base station broadcasts a plurality of VLAN request messages to the network management server and receives response messages which are returned by the network management server and carry VLAN identifications; then according to the VLAN identification, network information of the transmission network is obtained; then, the station opening information is obtained according to the network information, and the operation related to the station opening is executed according to the station opening information. Compared with the traditional method for acquiring the VLAN identification of the transmission network in a polling mode in sequence in the process of starting the station, the method for starting the station can rapidly learn the VLAN identification and automatically finish the starting, greatly improves the efficiency of acquiring the VLAN identification, further improves the efficiency of starting the station of the base station, and is particularly obvious in the application scene of the station needing to be opened in time. In addition, according to the scheme, after the base station is powered on, the automatic station opening process of the base station is realized, the whole station opening process is connected from the configuration parameters to the communication link between the base station and the network management server, the station opening information is obtained to execute the station opening operation, and the automatic station opening can be realized without intervention of external technicians.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The station opening method provided by the application can be applied to an application system as shown in fig. 1, wherein a base station and a network management server communicate through a network. The network management server can be implemented by an independent server or a server cluster consisting of a plurality of servers. The system is suitable for communication system networks such as 2G, 3G, 4G, 5G and the like.
The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flowchart of a method for opening a station according to an embodiment, where an execution subject of the method is the base station in fig. 1, and the method relates to a specific process of opening a station of the base station. As shown in fig. 2, the method specifically includes the following steps:
s101, broadcasting a plurality of VLAN request messages; the VLAN request message is used for indicating the network management server to send the VLAN identification of the transmission network to the base station; the transmission network is a network between the base station and the network management server.
A Virtual Local Area Network (VLAN) is a group of logical devices and users, which are not limited by physical locations and can be organized according to functions, departments, applications, and other factors, and the communication between them is as if they are in the same Network segment, so that the VLAN is called a VLAN. The transmission network is also called as a feedback network, covers the range of the base station and the network management server, and realizes data interaction between the base station and the network management server. The VLAN id is used to characterize the VLAN where the transmission network is located, and may be specifically represented by numbers, letters, serial numbers, and the like. The VLAN request message in this embodiment is a request message sent by the base station to the network management server, and is specifically used to instruct the network management server to return VLAN information about the transmission network according to the VLAN request message, and specifically is VLAN information including a VLAN identifier.
In practical application, the transmission network between the base station and the network management server may be a transmission network carrying VLAN information, or may be a transmission network not carrying VLAN information. The embodiment relates to a transmission network carrying VLAN information, that is, when the transmission network between a base station and a network management server carries VLAN information and the base station needs to open the station, the base station may broadcast a plurality of VLAN request messages configured in advance to obtain the VLAN information carried by the transmission network, so as to obtain a VLAN identifier, so that the next work can be performed according to the VLAN identifier.
It should be noted that, when broadcasting a plurality of VLAN request messages, the base station may specifically broadcast the VLAN request messages by calling the VLAN automatic learning module to obtain the VLAN information carried by the transmission network, for example, the VLAN automatic learning module in the base station may broadcast the VLAN request messages by using the method shown in fig. 2A to obtain the VLAN information of the transmission network, and fig. 2B is a method of obtaining the VLAN information in the prior art in a polling manner, as shown in fig. 2A, the VLAN automatic learning module in fig. 2A broadcasts all VLAN request messages in the VLAN identifier value range at a time, as shown in fig. 2A, the VLAN automatic learning module only needs 1 step in the whole learning process no matter how large the VLAN identifier value range is, and as shown in fig. 2B, compared with the existing VLAN learning scheme, time is short and efficiency is high. However, in the technical scheme shown in fig. 2B, one VLAN identifier value range is selected from the beginning to try, for example, the VLAN identifier value range is [2, n ], and the VLAN identifier value of the transmission network is specifically n, so that the learning process of the whole VLAN identifier value range requires n steps of time to learn the VLAN information of the transmission network, the whole time consumption is long, the efficiency is low, and it is obvious that the site provisioning requirement cannot be met by adopting the scheme shown in fig. 2B for a site that needs to be provisioned in time.
And S102, receiving a response message carrying the VLAN identification returned by the network management server.
After the base station broadcasts a plurality of VLAN request messages based on the step of S101, the base station waits for receiving a response message returned by the network management server, and the response message carries a VLAN identifier. When the base station receives the response message returned by the network management server, the base station can further analyze the response message and acquire the VLAN identifier from the response message for later use.
S103, acquiring the network information of the transmission network according to the VLAN identification.
The network information of the transmission network is used to indicate information related to the transmission network, and may include, for example, a backhaul IP address, a subnet mask, a gateway address, an IP address of a Domain Name System (DNS), and the like. In this embodiment, after the base station obtains the VLAN identifier of the transmission network, the base station may further configure the VLAN identifier to the bottom layer, and call a corresponding Dynamic Host Configuration Protocol (DHCP) interface to obtain network information of the transmission network.
And S104, acquiring the opening information according to the network information.
The open station information indicates parameters of opening the base station, such as parameters on the transmission network side, parameters on the core network side, parameters on the wireless service network side, and the like, which need to be configured when the base station performs the open station operation. After the base station acquires the network information of the transmission network through the DHCP interface, the IP address of the base station and the IP address of the network management server can be acquired from the network information, so that a communication link with the network management server can be established, and further, data interaction with the network management server is realized, so that the station opening information is acquired from the network management server, and the automatic station opening operation is conveniently carried out.
And S105, executing operation related to station opening according to the station opening information.
After receiving the station opening information sent by the network management server, the base station can further configure the parameters of the operation related to the station opening according to the station opening information, and then execute the operation related to the station opening according to the parameters of the operation related to the station opening to complete the station opening work.
In the station opening method provided in the above embodiment, the base station broadcasts a plurality of VLAN request messages to the network management server, and receives a response message carrying a VLAN identifier returned by the network management server; then according to the VLAN identification, network information of the transmission network is obtained; then, the station opening information is obtained according to the network information, and the operation related to the station opening is executed according to the station opening information. Compared with the traditional method for acquiring the VLAN identification of the transmission network in a polling mode in sequence in the process of starting the station, the method for starting the station can rapidly learn the VLAN identification and automatically finish the starting, greatly improves the efficiency of acquiring the VLAN identification, further improves the efficiency of starting the station of the base station, and is particularly obvious in the application scene of the station needing to be opened in time. In addition, according to the scheme, after the base station is powered on, the automatic station opening process of the base station is realized, the whole station opening process is connected from the configuration parameters to the communication link between the base station and the network management server, the station opening information is obtained to execute the station opening operation, and the automatic station opening can be realized without intervention of external technicians.
In the above embodiment, based on that the transmission network between the base station and the network management server is a network carrying VLAN information, there is also an application scenario that the transmission network between the base station and the network management server is a network not carrying VLAN information, and in this application, based on the above embodiment, as shown in fig. 3, before S101 "broadcasts multiple VLAN request messages" in the above embodiment, the method further includes:
s201, sending a first DHCP request message to a network management server; the first DHCP request message is used to instruct the network management server to send network information of the transmission network to the base station.
In practical application, when the installation of the base station and the network management server is completed and the base station is ready for automatic station opening, after the base station is powered on, the base station reads the configuration information of the database and calls a DHCP protocol interface, sends a first DHCP request message to the network management server, waits for the network management server to dynamically allocate a corresponding return IP address, and further obtains the network information of the transmission network. The database configuration information includes configuration information related to the transmission network, such as network information acquisition waiting time T1, VLAN identification value range, VLAN information return timeout time T2, and the like of the transmission network without VLAN.
S202, judging whether the network information returned by the network management server is received in a preset first time period, if the network information returned by the network management server cannot be received, executing a step S203, and if the network information returned by the network management server can be received, executing a step S204.
When the base station sends the first DHCP request message to the network management server based on the step of S201 and waits for receiving the network information of the transmission network returned by the network management server, the base station may further determine whether the network information returned by the network management server is received within a preset first time period, and if the network information returned by the network management server is not received, the transmission network is a transmission network carrying VLAN information, and then the base station needs to obtain the VLAN information of the transmission network, and configure a VLAN identifier to call a DHCP interface in the bottom layer, so as to obtain the network information of the transmission network. If the network information returned by the network management server can be received, the transmission network is a transmission network without the VLAN, and then the returned network information can be directly utilized to execute the next operation. The preset first time period may be preset by a user according to an actual application requirement, and corresponds to the network information acquisition waiting time T1 of the VLAN-less transmission network in the database configuration information.
S203, reading the value range of the VLAN identification in the database configuration information, and generating a plurality of VLAN request messages according to the value range of the VLAN identification.
The value range of the VLAN identifier may be configured by a user in advance according to an actual application environment, for example, the value range of the VLAN identifier may be specifically 2 to 4095, and may also be specifically different value ranges such as 2 to 200. In this embodiment, the base station in S201 fails to receive the specific application of the network information returned by the network management server, and in this application, the base station first reads the value range of the VLAN identifier in the database configuration information, and configures a plurality of corresponding VLAN request messages according to the value range of the VLAN identifier, where the VLAN identifier corresponds to the VLAN request messages one to one. The base station may then further start to perform step S101 in the embodiment of fig. 2 to complete the station opening operation.
And S204, executing the step of S104 for acquiring the open station information according to the network information.
The present embodiment relates to a specific application that the base station in S201 can receive the network information returned by the network management server, and in this application, the base station starts to execute from step S104 in the embodiment in fig. 2 to complete the subsequent station opening work.
The above embodiment is a station opening method applied to a transmission network without a VLAN, and as can be seen from the implementation in combination with fig. 2, the station opening method provided by the present application can be applied not only to an application scenario of a transmission network with a VLAN, but also to an application scenario of a transmission network without a VLAN.
In practical applications, there may be a problem that a response message sent by a base station receiving a network management server is delayed or lost due to a phenomenon of transmission network congestion or jamming, and in such applications, based on the foregoing embodiment, as shown in fig. 4, after S101 "broadcasts multiple VLAN request messages" in the foregoing embodiment, the method further includes:
and S301, judging whether a response message is received in a preset second time period, if the response message is not received, executing the step S302, and if the response message is received, executing the step S303.
When the base station broadcasts a plurality of VLAN request messages based on the step of S101 and waits for receiving a response message carrying a VLAN identifier returned by the network management server, the base station may further determine whether the response message returned by the network management server is received within a preset second time period, and if the response message is not received, it indicates that a delay or discard of the returned response message may be caused by phenomena such as blocking, jamming, and the like of the transmission network, then the base station needs to resend a corresponding DHCP request message to obtain network information of the transmission network, or rebroadcast a plurality of VLAN request messages to obtain a VLAN identifier of the transmission network, thereby obtaining network information of the transmission network. If the response message is received, the base station executes subsequent operation according to the response message. The preset second time period may be preset by a user according to an actual application requirement, and corresponds to the VLAN information return timeout time T2 in the database configuration information in the description content of S201.
S302, returning to execute the step of sending the first DHCP request message to the network management server.
The present embodiment relates to a specific application that the base station fails to receive the response message in S301, and in this application, the base station returns to execute the step of S201 in the embodiment in fig. 3 to retry to acquire the network information of the transport network until the network information of the transport network is acquired.
S303, the step of obtaining the network information of the transmission network according to the VLAN identification is executed.
In this embodiment, what is referred to in S301 above is a specific application that the base station can receive the response message, and in this application, the base station returns to the step of executing S104 in the embodiment in fig. 2, that is, the step of acquiring the network information of the transmission network according to the VLAN identifier, so as to continue to acquire the network information of the transmission network according to the VLAN identifier in the acquired response message, so as to execute subsequent operation of opening a station according to the network information.
In particular, in practical applications, there is also an application that the base station may receive multiple response messages returned by the network management service, namely a plurality of VLAN identifications, under the application, the base station sequentially allocates each obtained VLAN identification to the bottom layer and calls a DHCP protocol interface to carry out the operation of obtaining the network information of the transmission network, the operation is sequentially carried out until the network information of the transmission network is obtained, in the process, if the network information of the transmission network sent by the network management server is not acquired within the preset time period, indicating that the transmission network may be blocked or jammed, and the base station cannot receive the network information within the predetermined time period, the base station then returns to the step of S201, to resume acquiring network information of the transport network until the network information of the transport network is acquired.
The above embodiment is applied to some special application scenarios, that is, the base station cannot normally receive the response message or the network information due to the problems of congestion, blocking, and the like of the transmission network, and when the above problems are faced, the station opening method provided by the present application can also execute different operations according to the detection result by detecting whether the base station can normally receive the response message or the network information, so as to solve the above problems, thereby completing the work of automatic station opening.
Fig. 5 is a flowchart of another implementation manner of S103 in the embodiment of fig. 2, and as shown in fig. 5, the step S103 "acquiring network information of a transmission network according to a VLAN identifier" includes:
s401, configuring a DHCP protocol interface according to the VLAN identification.
When the base station acquires the response message carrying the VLAN identifier, which is returned by the network management server based on the step S102, the base station may further acquire the VLAN identifier carried by the response message by analyzing the response message, and then configure the VLAN identifier to a DHCP protocol interface on the bottom layer, so as to acquire the network information of the transmission network through the DHCP protocol interface.
S402, a second DHCP request message is sent to the network management server by calling a DHCP protocol interface, and the second DHCP request message is used for indicating the network management server to send the network information of the transmission network to the base station.
The embodiment relates to a process for acquiring network information of a transmission network by a base station by calling a DHCP protocol interface, and specifically includes: and the base station calls a DHCP protocol interface to send a second DHCP request message to the network management server, and the network management server is instructed to return the network information of the transmission network according to the second DHCP request message.
And S403, receiving the network information of the transmission network returned by the network management server according to the second DHCP request message.
The embodiment relates to another process in which a base station acquires network information of a transport network by calling a DHCP protocol interface, and specifically includes: and after calling the DHCP protocol interface to send a second DHCP request message to the network management server, the base station continues to receive the network information of the transmission network returned by the network management server according to the second DHCP request message through the DHCP protocol interface so as to execute subsequent operation according to the network information.
Fig. 6 is a flowchart of another implementation manner of S104 in the embodiment of fig. 2, and as shown in fig. 6, the step S104 "acquiring the departure information according to the network information" includes:
s501, the returned IP address is determined as the IP address of the base station, and the IP address of the DNS is determined as the IP address of the network management server, so that a communication link between the base station and the network management server is established.
The returned IP address is an IP address dynamically allocated by the DHCP server for the base station, or an IP address dynamically allocated by the network management server for the base station. In this example, when the network information acquired by the base station includes the backhaul IP address and the IP address of the DNS, the base station determines the backhaul IP address as the IP address of the base station, determines the IP address of the DNS as the IP address of the network management server, and then establishes a communication link between the base station and the network management server according to the IP address of the base station and the IP address of the network management server, so as to implement data interaction between the base station and the network management server later.
S502, based on the communication link, sending a station opening request message to the network management server.
The station opening request message is used for indicating the network management server to configure corresponding station opening information for the base station and sending the corresponding station opening information to the base station. In this embodiment, after the base station establishes the communication link with the network management server based on the step of S501, the base station may further send a station opening request message to the network management server based on the communication link, and obtain station opening information related to the station opening operation.
S503, receiving the station opening information sent by the network management server according to the station opening request message.
After the base station sends the station opening request message to the network management server based on the step of S502, the base station waits for receiving the corresponding station opening information configured for the base station by the network management server according to the station opening request message, thereby acquiring the station opening information so as to complete the subsequent station opening work.
Based on the above embodiment, after receiving the station opening information sent by the network management server, the base station further needs to check the station opening information to determine the accuracy of the station opening information, so that the step S503 "after receiving the station opening information sent by the network management server according to the station opening request message" further includes: and comparing the first identification code with a second identification code locally stored in the base station, and checking the information of the open station.
The first identification code is an identification code of a base station corresponding to the station opening information and is used for representing the attribute of the station opening information. The second identification code is a unique identification code of the base station and is stored in a local database. The implementation relates to a process of verifying the station opening information by the base station, and determines whether the received station opening information belongs to the base station, wherein the specific verification process is as follows: when the base station receives the station opening information sent by the network management server, the station opening information carries a first identification code of the base station at the same time, the base station compares the first identification code with a second identification code locally stored in the base station, if the first identification code is consistent with the second identification code, the received station opening information is the station opening information of the base station, and the base station can execute subsequent station opening operation based on the station opening information. If the first identification code is inconsistent with the second identification code, the received station opening information is not the station opening information of the base station, and the network management server may be mistakenly sent, at this time, the base station directly discards the station opening information, and returns an error notification message to the network management server to instruct the network management server to send correct station opening information to the base station again. The checking process can timely find various sending error problems caused by unstable transmission network or other phenomena in the process of opening the station, and timely solve the problems.
In practical applications, after the base station obtains the station opening information, the station opening operation may be completed, and thus, the step S105 "execute the operation related to the station opening according to the station opening information" may specifically include: and configuring cell parameters according to the station opening information to establish a cell data service network. The embodiment relates to a process that a base station executes operation related to station opening according to station opening information, and specifically includes: after the base station obtains the start-up information, optionally, the start-up information may include a base station start-up parameter or a base station start-up script, the base station starts to perform non-cell and cell parameter configuration on the inside of the base station, the base station starts to establish a cell, that is, a cell data service network, after the configuration is completed, the base station may provide a wireless communication service for a user, that is, the base station can be indicated to be successfully started up.
Fig. 2 to fig. 6 are method steps implemented by the base station side, and the following describes an implementation process of the network management server side by taking fig. 7 to fig. 9 as an example.
Fig. 7 is a flowchart of a method for opening a station according to an embodiment, where an execution subject of the method is the network management server in fig. 1, and the method relates to a specific process of the network management server assisting a base station to execute the station opening. As shown in fig. 7, the method specifically includes the following steps:
s601, receiving a plurality of VLAN request messages sent by a base station.
This step corresponds to the step of S101 in the embodiment of the base station in fig. 2, and specific contents can be referred to the content of S101. The redundant description is not repeated here.
S602, sending a response message carrying the VLAN identification to the base station.
This step corresponds to the step of S102 in the embodiment of the base station side in fig. 2, and specific contents can be referred to the content of S102. The redundant description is not repeated here.
S603, receiving a second DHCP request message sent by the base station according to the response message.
This step corresponds to the step of S402 in the embodiment of the base station in fig. 5, and specific contents may be referred to the content of S402. The redundant description is not repeated here.
S604, distributing the network information of the transmission network between the base station and the network management server according to the second DHCP request message.
This step corresponds to the step of S103 in the embodiment of the base station side in fig. 2, or corresponds to the step of S403 in the embodiment of the base station side in fig. 5, and specific contents can refer to the contents of S103 or the contents of S403. The redundant description is not repeated here. It should be noted that, when the network management server receives the second DHCP request message sent by the base station, the network management server may dynamically allocate an IP address, a subnet mask, a network management address, an IP address of the DNS, and other network information to the base station according to the DHCP request message. Optionally, the network management server may integrate a DHCP server to execute the work of distributing the network information, and if the network management server is a cluster server, the DHCP server may also be an independent server in the network management server cluster to execute the work of distributing the network information.
And S605, sending the network information to the base station.
After the network management server completes the network information for the base station distribution, the network information can be further sent to the corresponding base station, so that the base station executes the work of opening the station according to the network information. This step corresponds to step S103 in the base station side embodiment of fig. 2, and specific contents can be referred to content of S103. The redundant description is not repeated here.
And S606, based on a communication link established by the base station according to the network information and the network management server, the network management server sends the station opening information to the base station based on a preset network management communication protocol.
When the base station establishes a communication link with the network management server according to the method described in the embodiment of fig. 6, and after sending the station opening request message to the network management server based on the communication link, the network management server receives the station opening request message, and may further configure corresponding station opening information for the base station, and send the station opening information to the base station based on a preset network management communication protocol, so that the base station may perform subsequent station opening operations according to the station opening information. In practical application, the preset network management communication protocol may be determined by the network management server in advance according to practical application requirements, and specifically may include a wide area network management protocol TR069 and a simple management protocol SNMP.
In a first application, when the preset network management communication protocol in the above embodiment includes TR069, the "network management server sends the station opening information to the base station based on the preset network management communication protocol" in the above S606, as shown in fig. 8, includes:
s701, receiving a station opening request message sent by a base station; and the station opening request message carries a second identification code of the base station.
This step corresponds to step S502 in the base station side embodiment of fig. 6, and specific contents may refer to contents of S502. The redundant description is not repeated here. It should be noted that the second identification code of the base station is a unique identification code of the base station itself, and is stored in the local database of the base station, and when the base station sends the station opening request message, the second identification code needs to be carried and sent to the network management server, so that the network management server can identify the attribute of the station opening request message according to the second identification code. Because the data interaction between the base station and the network management server is implemented based on TR069 in this embodiment, the station opening request message may specifically be a 0boot message, where the second identification code of the base station is carried and actually is a unique identification code of the base station, and the second identification code may specifically be represented by a serial number, a letter, and the like, for example, the second identification code may be an HNBID.
S702, the second identification code is verified, the station opening information corresponding to the base station is selected according to the second identification code passing the verification, and the station opening information is sent to the base station.
The embodiment relates to a process of verifying a received station opening request message by a network management server, and determining whether the received station opening request message belongs to a base station needing station opening, wherein the specific verification process is as follows: when the network management server receives a station opening request message sent by a base station, the station opening request message carries a second identification code of the base station at the same time, the network management server compares the second identification code with an identification code of the base station prestored by the network management server, if the second identification code is consistent with the stored identification code, the base station corresponding to the received station opening request message is the base station with the station opening authority, and if the second identification code is inconsistent with the stored identification code, the base station corresponding to the received station opening request message is the base station without the station opening authority. When the network management server finishes the verification of the station opening request message and the verification is passed, the network management server can automatically create a network element of the base station corresponding to the second identification code, and simultaneously select station opening information (an opening parameter or a base station opening parameter script) corresponding to the base station according to the second identification code passed by the verification, and send the station opening information to the base station, so that the base station can execute subsequent station opening operation based on the station opening information.
It is particularly noted that, when sending the station opening information, the network management server may send the station opening parameter to the base station in the form of a script, or optionally, may directly send the station opening parameter instruction to the base station.
In a second application, when the preset network management communication protocol in the above embodiment includes SNMP, the "network management server sends the start information to the base station based on the preset network management communication protocol" in S606, as shown in fig. 9, including:
s801, detecting the state of a communication link between a base station and a network management server.
When the interaction protocol between the base station and the network management server follows SNMP to carry out data interaction, the network management server can determine whether to send the start information to the base station by detecting the state of a communication link between the base station and the network management server.
S802, if the communication link state is normal, acquiring a second identification code of the base station, selecting the station opening information corresponding to the base station according to the second identification code, and sending the station opening information to the base station.
When the interaction protocol between the base station and the network management server follows SNMP and the network management server needs to send the open station information to the base station, in one case, the base station can actively send the open station request message to the network management server through the trap, after the network management server receives the open station request message, the network element of the base station corresponding to the open station request message can be automatically created, the corresponding open station information (a base station opening parameter or a base station opening script) is selected through the second identification code of the base station carried in the open station request message, and the open station information is sent to the base station. In addition, there is a case that the network management server may automatically create a network element of the base station after allocating network information such as a backhaul IP address, a subnet mask, a gateway address, a DNS IP, and the like to the base station, actively detect a communication link state with the base station, and select corresponding start information according to the second identification code of the base station and send the start information to the communication base station once detecting that a communication link between the network management server and the base station is normal.
In a third application, when the preset network management communication protocol in the above embodiment includes SNMP, the "network management server sends the start information to the base station based on the preset network management communication protocol" in the above S606, as shown in fig. 10, includes:
s901, detecting whether base stations corresponding to a plurality of pre-configured IP addresses are online.
When the interaction protocol between the base station and the network management server follows SNMP to carry out data interaction, the network management server can also determine whether to send the start information to the base station by detecting whether the base stations corresponding to a plurality of pre-configured IP addresses are on line. Wherein, the pre-configured multiple IP addresses can be pre-allocated by a DHCP server in the network management server.
S902, if the online base station is detected, acquiring a second identification code of the online base station, selecting the station opening information corresponding to the online base station according to the second identification code of the online base station, and sending the station opening information to the online base station.
When an interaction protocol between a base station and a network management server follows SNMP and the network management server needs to send out the opening information to the base station, a network element of the base station to be opened can be created in advance on the network management server according to a planned IP address of the base station, the installation of the base station to be opened is completed, and after network information of a transmission network such as a return IP address, a subnet mask, a gateway address, a DNS address and the like is obtained, the network management server actively detects the online condition of the base station, and once the base station is detected to be online, the opening information (a base station opening parameter or a base station opening script) corresponding to the base station is sent to the base station so that the base station can execute the opening operation.
With the above embodiments in mind, the present application also provides a method for opening a station, which is applied to an application system shown in fig. 1, and implements the station opening work of a base station through data interaction between the base station and a network management server, as shown in fig. 11, the method includes:
s1001, the base station calls a DHCP protocol interface.
S1002, the base station sends a first DHCP request message to the network management server.
S1003, the network management server receives the first DHCP request message.
S1004, the base station determines whether the network information returned by the network management server is received within a preset first time period, and if the network information returned by the network management server is not received, executes step S1005.
S1005, reading the value range of the VLAN identification in the database configuration information, and generating a plurality of VLAN request messages according to the value range of the VLAN identification.
S1006, the base station broadcasts a plurality of VLAN request messages.
S1007, the network management server receives the VLAN request message.
S1008, the base station judges whether a response message is received in a preset second time period, and if the response message is not received, the step S1001 is executed
S1009, the network management server returns a response message carrying the VLAN identifier.
S1010, the base station configures a DHCP protocol interface according to the VLAN identification.
S1011, the base station sends a second DHCP request message to the network management server by calling the DHCP protocol interface.
S1012, the network management server receives the second DHCP request message.
And S1013, the network management server allocates network information of the transmission network including a return IP address, a subnet mask, a DNS IP address, a gateway address and the like to the base station according to the received first DHCP request message or the received second DHCP request message.
S1014, the network management server sends the network information of the transmission network including the return IP address, the subnet mask, the DNS IP address, the gateway address and the like.
S1015, the base station determines the return IP address in the network information as the IP address of the base station, and determines the DNS IP address as the IP address of the network management server, so as to establish a communication link between the base station and the network management server.
S1016, the base station sends the open station request message.
S1017, the network management server selects corresponding station opening information according to the second identification code of the base station carried in the station opening request message.
And S1018. the network management server sends the station opening information carrying the first identification code of the base station.
S1019, the base station compares the first identification code of the base station with the second identification code of the base station stored locally, checks the open station information, if the check is passed, the step S1020 is executed, and if the check is not passed, the step S1021 is executed until the open station information passing the check is obtained.
S1020, the base station configures cell parameters according to the station opening information to establish a cell data service network.
S1021, the base station sends an error return message to the network management server, and informs the network management server to resend the station opening information.
In summary, the station opening method provided by the present application is applicable to 2G, 3G, 4G, and 5G wireless communication systems and wired communication systems, and has a wide application range. The VLAN automatic learning technology designed in the technical scheme can quickly and efficiently learn the VLAN information in the transmission network for the IP transmission network with the VLAN, and finally the station opening efficiency can be improved, and the technical scheme is very effective for transmitting the base station scene which is opened and needs to be opened in time; in addition, the technical scheme is suitable for a scene that an interactive protocol between the base station and the network management server follows a TR069 protocol, and is also suitable for a scene that an interactive protocol between the communication base station and the network management server follows an SNMP protocol.
It should be understood that although the various steps in the flow charts of fig. 2-11 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-11 may include multiple sub-steps or phases that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or phases is not necessarily sequential.
In one embodiment, as shown in fig. 12, there is provided an open station apparatus including: the broadcasting module 11, the first receiving module 12, the first obtaining module 13, the second obtaining module 14, and the station opening module 15, wherein:
a broadcasting module 11, configured to broadcast a plurality of VLAN request messages; the VLAN request message is used for indicating the network management server to send the VLAN identification of the transmission network to the base station; the transmission network is a network between the base station and the network management server;
a first receiving module 12, configured to receive a response message carrying a VLAN identifier, where the response message is returned by a network management server;
a first obtaining module 13, configured to obtain network information of the transmission network according to the VLAN identifier;
the second obtaining module 14 is configured to obtain the start-up information according to the network information;
and the station opening module 15 is used for executing the operation related to the station opening according to the station opening information.
In one embodiment, as shown in fig. 13, there is provided an open station apparatus including: a second receiving module 16, a first sending module 17, a third receiving module 18, an allocating module 19, a second sending module 20 and a third sending module 21, wherein:
a second receiving module 16, configured to receive multiple VLAN request messages sent by a base station;
a first sending module 17, configured to send a response message carrying the VLAN identifier to the base station;
a third receiving module 18, configured to receive a second DHCP request message sent by the base station according to the response message;
the allocation module 19 is configured to allocate network information of a transmission network between the base station and the network management server according to the second DHCP request message;
a second sending module 20, configured to send the network information to the base station;
and a third sending module 21, configured to send the start information to the base station based on a preset network management communication protocol according to a communication link, which is established by the base station according to the network information, with the network management server.
For specific definition of the station opening device, see the above definition of a station opening method, which is not described herein again. The modules in the above-mentioned open station device can be implemented wholly or partially by software, hardware and their combination. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 14. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of opening a station. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 14 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
broadcasting a plurality of VLAN request messages; the VLAN request message is used for indicating the network management server to send the VLAN identification of the transmission network to the base station; the transmission network is a network between the base station and the network management server;
receiving a response message which carries the VLAN identification and is returned by the network management server;
acquiring network information of a transmission network according to the VLAN identification;
acquiring station opening information according to the network information;
and performing operation related to the station opening according to the station opening information.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving a plurality of VLAN request messages sent by a base station;
sending a response message carrying the VLAN identification to the base station;
receiving a second DHCP request message sent by the base station according to the response message;
distributing network information of a transmission network between the base station and the network management server according to the second DHCP request message;
sending the network information to a base station;
and according to a communication link established by the base station according to the network information and the network management server, the network management server sends the station opening information to the base station based on a preset network management communication protocol.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, the computer program, when executed by a processor, further implementing the steps of:
broadcasting a plurality of VLAN request messages; the VLAN request message is used for indicating the network management server to send the VLAN identification of the transmission network to the base station; the transmission network is a network between the base station and the network management server;
receiving a response message which carries the VLAN identification and is returned by the network management server;
acquiring network information of a transmission network according to the VLAN identification;
acquiring station opening information according to the network information;
and performing operation related to the station opening according to the station opening information.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, the computer program, when executed by a processor, further implementing the steps of:
receiving a plurality of VLAN request messages sent by a base station;
sending a response message carrying the VLAN identification to the base station;
receiving a second DHCP request message sent by the base station according to the response message;
distributing network information of a transmission network between the base station and the network management server according to the second DHCP request message;
sending the network information to a base station;
and according to a communication link established by the base station according to the network information and the network management server, the network management server sends the station opening information to the base station based on a preset network management communication protocol.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.