基站开站方法、装置、计算机存储介质及设备Base station opening method, device, computer storage medium and equipment
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种基站开站方法、装置、计算机存储介质及设备。The present invention relates to the field of communication technology, and in particular to a method, device, computer storage medium and equipment for opening a base station.
背景技术Background technique
随着全球经济的快速发展,以及无线通信技术的迅速发展,基于IP化回传的通信基站已成主流,人们对移动终端的依赖性越来越强,对移动通信质量要求越来越高,这就迫使运营商需要对覆盖不足的地方进行通信基站站点建设。对运营商、设备商来说随着建站规模的不断扩大如何能够以最低成本、有效、快速的开通站点非常重要。With the rapid development of the global economy and the rapid development of wireless communication technology, communication base stations based on IP-based backhaul have become the mainstream. People are increasingly dependent on mobile terminals and demand higher and higher mobile communication quality. This forces operators to build communication base stations where coverage is insufficient. It is very important for operators and equipment vendors to open sites at the lowest cost, effectively and quickly as the scale of site construction continues to expand.
基于IP回传的基站开站主要是指首先由工程安装人员将基站内部连接好、将基站与传输网连接好,基站上电,之后由开通人员给基站配置开站所需的网络侧参数、核心侧参数和无线侧参数,基站获取到WAN口IP地址之后自动与核心网以及NMS系统完成交互链路的建立,之后开启无线射频信号为用户提供无线通信业务功能。以往基于IP回传的无线通信基站开站多数采用手动开站的方式进行,即:基站内部连接完成—>基站与传输网连接完成—>通过串口或网口登陆基站内部进行回传网络参数配置、无线侧参数配置、核心侧参数配置—>在NMS上手动创建网元(主要针对基站与NMS交互遵循SNMP协议的情况,如果基站与NMS交互遵循TR069协议则无需手动在NMS上创建网元,NMS会自动创建基站网元)—>基站与核心网以及NMS完成链路建立后进行相关业务测试,这种开站方式通常比较耗费人力、物力且效率较低,尤其对于部分偏远山区站点如果手动开站带来的成本非常较高、效率也比较低下。The establishment of a base station based on IP backhaul mainly means that the installation personnel first connect the base station internally, connect the base station to the transmission network, power on the base station, and then configure the network side parameters required for the base station by the commissioning personnel. For core-side parameters and wireless-side parameters, the base station automatically completes the establishment of interactive links with the core network and the NMS system after obtaining the WAN port IP address, and then turns on the radio frequency signal to provide users with wireless communication service functions. In the past, most wireless communication base stations based on IP backhaul were opened manually, that is: the internal connection of the base station is completed —> the connection between the base station and the transmission network is completed —> the backhaul network parameter configuration is performed by logging into the base station through the serial port or the network port , Wireless side parameter configuration, core side parameter configuration—>Manually create a network element on the NMS (mainly for the case that the base station and the NMS follow the SNMP protocol. If the base station and the NMS follow the TR069 protocol, there is no need to manually create the network element on the NMS. The NMS will automatically create the base station network element)—>The base station, the core network, and the NMS complete the link establishment and perform related service tests. This method of opening a station usually consumes manpower, material resources and is inefficient, especially for some remote mountain sites. The cost of opening a website is very high and the efficiency is relatively low.
发明内容Summary of the invention
本发明提供了一种基站开站方法、装置、计算机存储介质及设备,以解决传统基于IP回传的基站开站方法实现复杂、效率低、开站成本高的问题。The present invention provides a base station opening method, device, computer storage medium and equipment to solve the problems of complexity, low efficiency and high cost of opening a base station based on the traditional IP backhaul-based base station opening method.
本发明的第一方面,提供了一种基站开站方法,包括:The first aspect of the present invention provides a method for setting up a base station, including:
根据当前基站所在IP传输网的VLAN信息发送网络配置请求消息到网络管理系统NMS,以供所述NMS为当前基站分配对应的网络配置信息和NMS地址信息;Send a network configuration request message to the network management system NMS according to the VLAN information of the IP transmission network where the current base station is located, so that the NMS can allocate corresponding network configuration information and NMS address information for the current base station;
接收所述NMS为当前基站分配的所述网络配置信息和NMS地址信息,并根据所述网络配置信息和NMS地址信息建立与所述NMS之间的通信链路;Receiving the network configuration information and NMS address information allocated by the NMS for the current base station, and establishing a communication link with the NMS according to the network configuration information and NMS address information;
基于所述通信链路发送参数配置请求消息到所述NMS,所述参数配置请求消息中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站;A parameter configuration request message is sent to the NMS based on the communication link, and the parameter configuration request message carries the base station identity of the current base station, so that the NMS can obtain the corresponding site-opening parameters according to the base station identity and send the The opening parameters are sent to the current base station;
接收所述NMS下发的所述开站参数,并根据所述开站参数执行开站。Receiving the site opening parameters issued by the NMS, and performing site opening according to the site opening parameters.
可选地,所述根据当前基站所在IP传输网的VLAN信息发送网络配置请求消息到网络管理系统NMS,包括:Optionally, the sending a network configuration request message to the network management system NMS according to VLAN information of the IP transmission network where the current base station is located includes:
根据预设VLAN配置数据中包括的VLAN ID取值范围,依次采用每一VLAN ID对应的DHCP协议接口发送所述网络配置请求消息到所述NMS,直到接收到所述NMS为当前基站分配的所述网络配置信息和NMS地址信息。According to the VLAN ID value range included in the preset VLAN configuration data, the DHCP protocol interface corresponding to each VLAN ID is used in turn to send the network configuration request message to the NMS, until the NMS allocates all the information for the current base station. The network configuration information and NMS address information.
可选地,在所述根据所述网络配置信息和NMS地址信息建立与NMS之间的通信链路之前,所述方法还包括:Optionally, before the establishing a communication link with the NMS according to the network configuration information and the NMS address information, the method further includes:
记录当前选用的VLAN信息,并根据所述VLAN信息配置当前基站的VLAN接口。Record the currently selected VLAN information, and configure the VLAN interface of the current base station according to the VLAN information.
可选地,所述网络配置信息包括WAN口IP地址、子网掩码和网关地址。Optionally, the network configuration information includes the WAN port IP address, subnet mask and gateway address.
可选地,所述基于所述通信链路发送参数配置请求消息到所述NMS,包括:Optionally, the sending a parameter configuration request message to the NMS based on the communication link includes:
通过所述通信链路发送基于SNMP协议生成的陷阱报文到所述NMS,所 述陷阱报文中携带当前基站的基站标识。A trap message generated based on the SNMP protocol is sent to the NMS through the communication link, and the trap message carries the base station identifier of the current base station.
可选地,所述基于所述通信链路发送参数配置请求消息到所述NMS,包括:Optionally, the sending a parameter configuration request message to the NMS based on the communication link includes:
通过所述通信链路发送基于TR069协议生成的boot消息到所述NMS,所述boot消息中携带当前基站的基站标识。A boot message generated based on the TR069 protocol is sent to the NMS through the communication link, and the boot message carries the base station identifier of the current base station.
本发明的第二方面,提供了另一种基站开站方法,包括:The second aspect of the present invention provides another base station opening method, including:
接收基站根据所在IP传输网的VLAN信息发送的网络配置请求消息;Receive a network configuration request message sent by the base station according to the VLAN information of the IP transmission network where it is located;
根据所述网络配置请求消息为所述基站分配对应的网络配置信息和网络管理系统NMS地址信息,以供所述基站根据所述网络配置信息和NMS地址信息建立与当前NMS之间的通信链路;Assign corresponding network configuration information and network management system NMS address information to the base station according to the network configuration request message, so that the base station can establish a communication link with the current NMS according to the network configuration information and NMS address information ;
接收所述基站基于所述通信链路发送的参数配置请求消息,所述参数配置请求消息中携带所述基站的基站标识,并根据所述基站标识获取对应的开站参数;Receiving a parameter configuration request message sent by the base station based on the communication link, where the parameter configuration request message carries the base station identity of the base station, and obtaining corresponding site-opening parameters according to the base station identity;
将所述开站参数下发到所述基站,以供所述基站根据所述开站参数执行开站。The station opening parameter is delivered to the base station, so that the base station performs station opening according to the station opening parameter.
可选地,所述将所述开站参数下发到所述基站,包括:Optionally, the sending the site-opening parameters to the base station includes:
将所述开站参数形成开站配置文件,并将所述开站配置文件下发到所述基站。The site opening parameters are formed into a site opening configuration file, and the site opening configuration file is delivered to the base station.
可选地,所述接收所述基站基于所述通信链路发送的参数配置请求消息,包括:Optionally, the receiving the parameter configuration request message sent by the base station based on the communication link includes:
接收所述基站通过所述通信链路发送的基于SNMP协议生成的陷阱报文,所述陷阱报文中携带当前基站的基站标识。Receiving a trap message generated based on the SNMP protocol sent by the base station through the communication link, the trap message carrying the base station identifier of the current base station.
可选地,所述接收所述基站基于所述通信链路发送的参数配置请求消息,包括:Optionally, the receiving the parameter configuration request message sent by the base station based on the communication link includes:
接收所述基站通过所述通信链路发送的基于TR069协议生成的boot消息,所述boot消息中携带当前基站的基站标识。Receiving a boot message generated based on the TR069 protocol and sent by the base station through the communication link, where the boot message carries the base station identifier of the current base station.
本发明的第三方面,提供了一种基站开站装置,包括:In a third aspect of the present invention, a device for opening a base station is provided, including:
网络配置模块,用于根据当前基站所在IP传输网的VLAN信息发送网络配置请求消息到网络管理系统NMS,以供所述NMS为当前基站分配对应的网络配置信息和NMS地址信息;The network configuration module is used to send a network configuration request message to the network management system NMS according to the VLAN information of the IP transmission network where the current base station is located, so that the NMS can allocate corresponding network configuration information and NMS address information for the current base station;
基站侧通信模块,用于接收所述NMS为当前基站分配的所述网络配置信息和NMS地址信息,并根据所述网络配置信息和NMS地址信息建立与所述NMS之间的通信链路;The base station side communication module is configured to receive the network configuration information and NMS address information allocated by the NMS for the current base station, and establish a communication link with the NMS according to the network configuration information and NMS address information;
开站参数配置模块,用于基于所述通信链路发送参数配置请求消息到所述NMS,所述参数配置请求消息中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站;The site-opening parameter configuration module is configured to send a parameter configuration request message to the NMS based on the communication link, and the parameter configuration request message carries the base station identity of the current base station, so that the NMS can obtain the corresponding base station identity according to the base station identity. And send the site-opening parameters to the current base station;
开站执行模块,用于接收所述NMS下发的所述开站参数,并根据所述开站参数执行开站。The site opening execution module is configured to receive the site opening parameters issued by the NMS, and execute the site opening according to the site opening parameters.
可选地,所述网络配置模块,具体用于根据预设VLAN配置数据中包括的VLAN ID取值范围,依次采用每一VLAN ID对应的DHCP协议接口发送所述网络配置请求消息到所述NMS,直到接收到所述NMS为当前基站分配的所述网络配置信息和NMS地址信息。Optionally, the network configuration module is specifically configured to send the network configuration request message to the NMS by sequentially using the DHCP protocol interface corresponding to each VLAN ID according to the value range of the VLAN ID included in the preset VLAN configuration data Until the network configuration information and NMS address information allocated by the NMS for the current base station are received.
本发明的第四方面,提供了另一种基站开站装置,包括:The fourth aspect of the present invention provides another base station opening device, including:
接收模块,用于接收基站根据所在IP传输网的VLAN信息发送的网络配置请求消息;The receiving module is used to receive the network configuration request message sent by the base station according to the VLAN information of the IP transmission network where it is located;
动态配置模块,用于根据所述网络配置请求消息为所述基站分配对应的网络配置信息和网络管理系统NMS地址信息,以供所述基站根据所述网络配置信息和NMS地址信息建立与当前NMS之间的通信链路;The dynamic configuration module is used to allocate corresponding network configuration information and network management system NMS address information to the base station according to the network configuration request message, so that the base station can establish a connection with the current NMS according to the network configuration information and NMS address information. Communication link between;
参数获取模块,用于接收所述基站基于所述通信链路发送的参数配置请求消息,所述参数配置请求消息中携带所述基站的基站标识,并根据所述基站标识获取对应的开站参数;The parameter acquisition module is configured to receive a parameter configuration request message sent by the base station based on the communication link, where the parameter configuration request message carries the base station identity of the base station, and obtain the corresponding station opening parameters according to the base station identity ;
发送模块,用于将所述开站参数下发到所述基站,以供所述基站根据所述 开站参数执行开站。The sending module is configured to issue the site-opening parameters to the base station, so that the base station can perform site-opening according to the site-opening parameters.
此外,本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上任一所述方法的步骤。In addition, the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any of the above methods are realized.
此外,本发明还提供了一种设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上任一所述方法的步骤。In addition, the present invention also provides a device including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. The processor implements the steps of any of the above methods when the program is executed. .
本发明实施例提供的基站开站方法、装置、计算机存储介质及设备,能够根据当前IP传输网的VLAN信息发送网络配置请求消息到网络管理系统NMS,NMS为基于IP回传的通信基站分配对应的网络配置信息和NMS地址信息,以供基站能够根据网络配置信息和NMS地址信息建立与NMS的通信链接,并从NMS获取对应的开站参数进行开站,使得基于IP传输网络与核心网进行信息交互的通信基站能够快速、有效、低成本的实现开站。The base station opening method, device, computer storage medium, and equipment provided by the embodiments of the present invention can send a network configuration request message to the network management system NMS according to the VLAN information of the current IP transmission network, and the NMS allocates corresponding communication base stations based on IP backhaul Network configuration information and NMS address information, so that the base station can establish a communication link with the NMS according to the network configuration information and NMS address information, and obtain the corresponding opening parameters from the NMS to open the station, so that the IP transmission network and the core network can be The communication base station for information exchange can realize the opening of the station quickly, effectively and at low cost.
而且,本发明对于一些站址不易人为现场开站或者开站成本较高、效率低的场景,能够高效的实现自动开站,满足一些特定场景需求。Moreover, the present invention can efficiently realize automatic station opening for some scenes where it is not easy to open a station manually on site or where the opening cost is high and low efficiency, and meet the requirements of some specific scenes.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to understand the technical means of the present invention more clearly, it can be implemented in accordance with the content of the description, and in order to make the above and other objectives, features and advantages of the present invention more obvious and understandable. In the following, specific embodiments of the present invention are specifically cited.
附图说明Description of the drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only used for the purpose of illustrating the preferred embodiments, and are not considered as a limitation to the present invention. Also, throughout the drawings, the same reference symbols are used to denote the same components. In the attached picture:
图1为本发明实施例的一种基站开站方法的流程图;FIG. 1 is a flowchart of a method for setting up a base station according to an embodiment of the present invention;
图2为本发明实施例的另一种基站开站方法的流程图;FIG. 2 is a flowchart of another method for setting up a base station according to an embodiment of the present invention;
图3为本发明实施例的一种基站开站装置的流程图;Figure 3 is a flowchart of a base station setup device according to an embodiment of the present invention;
图4为本发明实施例的另一种基站开站装置的结构示意图;4 is a schematic structural diagram of another base station opening device according to an embodiment of the present invention;
图5为本发明实施例的设备的结构示意图。Figure 5 is a schematic structural diagram of a device according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meanings as those commonly understood by those of ordinary skill in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have a meaning consistent with the meaning in the context of the prior art, and unless specifically defined, they will not use idealized or overly formal meanings. To explain.
本发明实施例提供的基站开站方法,能够为基于IP回传的通信基站在一些站址不易人为现场开站或者开站成本较高、效率低的场景,提供一种能够高效的、自动的、低成本的开站方法。The base station opening method provided by the embodiment of the present invention can provide a highly efficient and automatic method for communication base stations based on IP backhaul in scenarios where it is not easy to manually open a station at some site sites or where the cost of opening a station is high and low efficiency. , Low-cost method of opening a website.
图1为本发明一个实施例的基站开站方法的流程图。本实施例中基站开站方法的执行主体可以为基于IP回传的通信基站。参照图1,本发明实施例的基站开站方法具体包括以下步骤:Fig. 1 is a flowchart of a method for setting up a base station according to an embodiment of the present invention. The execution subject of the base station opening method in this embodiment may be a communication base station based on IP backhaul. 1, the method for setting up a base station according to an embodiment of the present invention specifically includes the following steps:
S11、根据当前基站所在IP传输网的VLAN信息发送网络配置请求消息到NMS(Network Management System,网络管理系统),以供所述NMS为当前基站分配对应的网络配置信息和NMS地址信息。S11. Send a network configuration request message to an NMS (Network Management System) according to the VLAN information of the IP transmission network where the current base station is located, so that the NMS can allocate corresponding network configuration information and NMS address information for the current base station.
具体的,网络配置请求消息中携带有当前基站的标识信息,标识信息为基站的唯一识别码,如MAC地址信息、SN号等,NMS可以根据设备的MAC地址信息为基站分配对应的网络配置信息和NMS地址信息。Specifically, the network configuration request message carries the identification information of the current base station. The identification information is the unique identification code of the base station, such as MAC address information, SN number, etc. The NMS can allocate corresponding network configuration information to the base station according to the MAC address information of the device. And NMS address information.
其中,所述网络配置信息包括WAN口IP地址、子网掩码和网关地址。Wherein, the network configuration information includes WAN port IP address, subnet mask and gateway address.
其中,所述NMS地址信息包括NMS IP地址。Wherein, the NMS address information includes the NMS IP address.
本实施例中,通信基站的OAM(Operation Administration and Maintenance,操作维护管理)系统通过读取数据库配置调用底层驱动DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)协议接口发送网络配置请求消息到网络管理系统NMS,以获取基站WAN口IP地址、子网掩码、网关地址、NMS IP地址。In this embodiment, the OAM (Operation Administration and Maintenance) system of the communication base station sends the network configuration request message to the network management by reading the database configuration and calling the underlying driver DHCP (Dynamic Host Configuration Protocol) protocol interface System NMS, to obtain the base station WAN port IP address, subnet mask, gateway address, NMS IP address.
S12、接收所述NMS为当前基站分配的所述网络配置信息和NMS地址信息,并根据所述网络配置信息和NMS地址信息建立与所述NMS之间的通信链路。S12. Receive the network configuration information and NMS address information allocated by the NMS for the current base station, and establish a communication link with the NMS according to the network configuration information and NMS address information.
具体的,在所述根据所述网络配置信息和NMS地址信息建立与NMS之间的通信链路之前,所述方法还包括:记录当前选用的VLAN信息,并根据所述VLAN信息配置当前基站的VLAN接口。Specifically, before the establishment of the communication link with the NMS according to the network configuration information and the NMS address information, the method further includes: recording the currently selected VLAN information, and configuring the current base station according to the VLAN information VLAN interface.
本实施例中,当基站获取到WAN口IP地址、子网掩码、网关地址、NMS IP后,记录此时所选的VLAN ID,并将其配置到VLAN接口中,并将获取到的NMS IP作为NMS系统的IP地址配置到数据库中,之后通信基站的OAM与NMS开始建立链路。In this embodiment, after the base station obtains the WAN port IP address, subnet mask, gateway address, and NMS IP, it records the VLAN ID selected at this time and configures it in the VLAN interface, and then obtains the NMS IP is configured in the database as the IP address of the NMS system, and then the OAM of the communication base station and the NMS start to establish a link.
S13、基于所述通信链路发送参数配置请求消息到所述NMS,所述参数配置请求消息中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站。S13. Send a parameter configuration request message to the NMS based on the communication link, where the parameter configuration request message carries the base station identity of the current base station, so that the NMS can obtain corresponding site-opening parameters according to the base station identity The site-opening parameters are delivered to the current base station.
其中,基站标识为基站的唯一识别码,例如:MAC地址信息,SN号等。Among them, the base station identifier is a unique identification code of the base station, for example: MAC address information, SN number, etc.
S14、接收所述NMS下发的所述开站参数,并根据所述开站参数执行开站。S14. Receive the site opening parameter issued by the NMS, and execute the site opening according to the site opening parameter.
本发明实施例提供的基站开站方法,能够根据当前IP传输网的VLAN信息发送网络配置请求消息到网络管理系统NMS,NMS为基于IP回传的通信基站分配对应的网络配置信息和NMS地址信息,以供基站能够根据网络配置信息和NMS地址信息建立与NMS的通信链接,并从NMS获取对应的开站参数进行开站,使得基于IP传输网络与核心网进行信息交互的通信基站能够快速、 有效、低成本的实现开站。The base station opening method provided by the embodiment of the present invention can send a network configuration request message to the network management system NMS according to the VLAN information of the current IP transmission network, and the NMS allocates corresponding network configuration information and NMS address information for the communication base station based on IP backhaul , So that the base station can establish a communication link with the NMS according to the network configuration information and the NMS address information, and obtain the corresponding opening parameters from the NMS to open the station, so that the communication base station based on the IP transmission network and the core network for information interaction can quickly and Effective and low-cost realization of site opening.
而且,本发明对于一些站址不易人为现场开站或者开站成本较高、效率低的场景,能够高效的实现自动开站,满足一些特定场景需求。Moreover, the present invention can efficiently realize automatic station opening for some scenes where it is not easy to open a station manually on site or where the opening cost is high and low efficiency, and meet the requirements of some specific scenes.
在本发明的一个具体实施例中,步骤S11中记载的根据当前基站所在IP传输网的VLAN信息发送网络配置请求消息到网络管理系统NMS,具体包括:根据预设VLAN配置数据中包括的VLAN ID取值范围,依次采用每一VLAN ID对应的DHCP协议接口发送所述网络配置请求消息到所述NMS,直到接收到所述NMS为当前基站分配的所述网络配置信息和NMS地址信息。In a specific embodiment of the present invention, the sending of the network configuration request message to the network management system NMS according to the VLAN information of the IP transmission network where the current base station is located as recorded in step S11 specifically includes: according to the VLAN ID included in the preset VLAN configuration data For the value range, the DHCP protocol interface corresponding to each VLAN ID is used in turn to send the network configuration request message to the NMS until the network configuration information and NMS address information allocated by the NMS for the current base station are received.
其中,预设VLAN配置数据可以通过数据库配置实现。数据库配置包括VLAN(Virtual Local Area Network,虚拟局域网)ID取值范围。本实施例中,基站既适用于携带VLAN信息的IP传输网也适用于不携带VLAN信息的IP传输网。Among them, the preset VLAN configuration data can be realized through database configuration. The database configuration includes the VLAN (Virtual Local Area Network, virtual local area network) ID value range. In this embodiment, the base station is applicable to both an IP transmission network that carries VLAN information and an IP transmission network that does not carry VLAN information.
具体的,基站OAM首先从无VLAN模式开始调用DHCP协议接口尝试获取WAN口IP地址、子网掩码、网关地址、NMS IP等,如果经过时间T1后没有获取到WAN口IP地址后,则OAM将第一个VLAN ID配置给底层驱动并调用DHCP协议接口进行WAN IP地址、子网掩码、网关地址、NMS IP获取操作,依次进行直到获取到WAN IP地址、子网掩码、网关地址、NMS IP为止。其中,OAM调用无VLAN的DHCP协议接口到调用第一个VLAN ID DHCP协议接口时间间隔T1,OAM调用前后两个VLAN DHCP协议接口时间间隔T2,T2也可以等于T1。Specifically, the base station OAM first calls the DHCP protocol interface from the VLAN-less mode to try to obtain the WAN port IP address, subnet mask, gateway address, NMS IP, etc. If the WAN port IP address is not obtained after the time T1, the OAM Configure the first VLAN ID to the underlying driver and call the DHCP protocol interface to obtain the WAN IP address, subnet mask, gateway address, and NMS IP, and proceed in turn until the WAN IP address, subnet mask, gateway address, NMS IP. Among them, the time interval between OAM calling the DHCP protocol interface without VLAN to calling the first VLAN ID DHCP protocol interface is T1, and the time interval between two VLAN DHCP protocol interfaces before and after OAM calling is T2, and T2 can also be equal to T1.
需要说明的是,如果通信基站到核心网和NMS之间经过的传输网为三层网络,则需要在三层交换机上配置DHCP中继。It should be noted that if the transmission network that passes between the communication base station to the core network and the NMS is a Layer 3 network, a DHCP relay needs to be configured on the Layer 3 switch.
本实施例中,基站会根据预设VLAN配置数据中包括的VLAN ID取值范围,依次采用取值范围中每一VLAN ID对应的DHCP协议接口发送所述网络配置请求消息到NMS,以获取NMS为该基站分配的网络配置信息和NMS地址信息。In this embodiment, the base station will use the DHCP protocol interface corresponding to each VLAN ID in the value range to send the network configuration request message to the NMS according to the VLAN ID value range included in the preset VLAN configuration data to obtain the NMS. Network configuration information and NMS address information allocated to the base station.
本发明可以满足多种场景,既适用于传输网中无VLAN的环境又适用于传输网中有VLAN的环境。在传输网中有VLAN的环境中本技术方案提供了一种VLAN学习方案能够自适应的学习到回传网络中的VLAN信息而不影响自动开站。The invention can meet multiple scenarios, and is suitable for environments without VLANs in the transmission network and for environments with VLANs in the transmission network. In an environment where there is a VLAN in the transmission network, this technical solution provides a VLAN learning solution that can adaptively learn the VLAN information in the backhaul network without affecting automatic station opening.
本发明技术方案既适用于通信基站与NMS遵循TR069协议也适用于通信基站与NMS遵循SNMP协议。The technical scheme of the present invention is applicable to both the communication base station and the NMS following the TR069 protocol and the communication base station and the NMS following the SNMP protocol.
在本发明的一个实施例中,所述基于所述通信链路发送参数配置请求消息到所述NMS,具体包括:通过所述通信链路发送基于SNMP协议生成的陷阱报文到所述NMS,所述陷阱报文中携带当前基站的基站标识。In an embodiment of the present invention, the sending a parameter configuration request message to the NMS based on the communication link specifically includes: sending a trap message generated based on the SNMP protocol to the NMS via the communication link, The trap message carries the base station identifier of the current base station.
本实施例中,基站通过与当前NMS之间的通信链路发送基于SNMP协议生成的陷阱报文到所述NMS,所述陷阱报文中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站。In this embodiment, the base station sends a trap message generated based on the SNMP protocol to the NMS through the communication link with the current NMS, and the trap message carries the base station identifier of the current base station for the NMS to follow The base station identifier acquires the corresponding site opening parameters and sends the site opening parameters to the current base station.
在本发明的另一个实施例中,所述基于所述通信链路发送参数配置请求消息到所述NMS,具体包括:通过所述通信链路发送基于TR069协议生成的boot消息到所述NMS,所述boot消息中携带当前基站的基站标识。In another embodiment of the present invention, the sending a parameter configuration request message to the NMS based on the communication link specifically includes: sending a boot message generated based on the TR069 protocol to the NMS via the communication link, The boot message carries the base station identifier of the current base station.
本实施例中,基站通过与当前NMS之间的通信链路发送基于TR069协议生成的boot消息到所述NMS,所述boot消息中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站。In this embodiment, the base station sends a boot message generated based on the TR069 protocol to the NMS through the communication link with the current NMS, and the boot message carries the base station identifier of the current base station for the NMS to follow the base station The identifier acquires the corresponding site-opening parameters and delivers the site-opening parameters to the current base station.
在具体示例中,当基站OAM与NMS建立链路之后,如果通信基站与NMS之间信息交互遵循TR069协议,则通信基站发0boot消息给NMS,此时会携带该通信基站的唯一识别码(如:SN号),NMS经过鉴权认证通过后给该基站创建网元,同时根据该通信基站上报的唯一识别码选择对应的开站参数并下发给该通信基站,通过下发通信基站开站参数,通常NMS下发开站参数可以以配置文件的形式下发给基站也可以直接下发对应的开站参数给通信基站。如 果通信基站与NMS之间的信息交互遵循SNMP协议,则此时通信基站可以通过trap主动给NMS发送消息,NMS收到后创建该基站的网元,并根据该通信基站trap上携带的唯一识别码选择对应开站参数以参数形式或者配置文件形式下发给该通信基站。所述的如果通信基站与NMS之间的信息交互遵循SNMP协议,则NMS在DHCP服务器给通信基站分配了WAN口IP地址、子网掩码、网关地址以及NMS IP后就可以自动创建该通信基站网元,并主动检测与该通信基站的通信链路是否正常,检测到NMS与该通信基站之间通信链路正常后即可根据该通信基站的唯一识别码选择对应的开站参数或者开站配置文件并下发给该通信基站。In a specific example, after the base station OAM and the NMS establish a link, if the information exchange between the communication base station and the NMS follows the TR069 protocol, the communication base station sends a 0boot message to the NMS, which will carry the unique identification code of the communication base station (such as : SN number), NMS creates a network element for the base station after passing the authentication and authentication, and selects the corresponding site-opening parameters according to the unique identification code reported by the communication base station and sends them to the communication base station. Parameter. Generally, the NMS can issue the site-opening parameters to the base station in the form of a configuration file, or directly issue the corresponding site-opening parameters to the communication base station. If the information exchange between the communication base station and the NMS follows the SNMP protocol, then the communication base station can actively send messages to the NMS through the trap, and the NMS creates the network element of the base station after receiving it, and according to the unique identification carried on the communication base station trap The site-opening parameter corresponding to the code selection is issued to the communication base station in the form of a parameter or a configuration file. If the information exchange between the communication base station and the NMS follows the SNMP protocol, the NMS can automatically create the communication base station after the DHCP server allocates the WAN port IP address, subnet mask, gateway address, and NMS IP to the communication base station Network element, and actively detect whether the communication link with the communication base station is normal. After detecting that the communication link between the NMS and the communication base station is normal, it can select the corresponding opening parameters or opening the station according to the unique identification code of the communication base station The configuration file is sent to the communication base station.
通信基站收到NMS下发的开站参数或者开站参数配置文件后,由OAM对内部进行参数配置,配置完成后开始小区创建、建立,小区建立成功,则该通信基站可以为用户提供无线通信业务,表示开站成功。After the communication base station receives the site-opening parameters or the site-opening parameter configuration file issued by the NMS, the OAM will configure the internal parameters. After the configuration is completed, the cell creation and establishment will start. If the cell is successfully established, the communication base station can provide users with wireless communication. Business, which means the opening of the site is successful.
本发明提供的基站开站方法,对于基于IP传输的通信基站来说能够降低开站成本、提高开站效率。The method for opening a base station provided by the present invention can reduce the cost and improve the efficiency of opening a station for a communication base station based on IP transmission.
本发明技术方案既适用于携带VLAN信息的IP传输网也适用于不携带VLAN信息的IP传输网。The technical scheme of the present invention is applicable to both the IP transmission network carrying VLAN information and the IP transmission network not carrying VLAN information.
本发明技术方案既适用于通信基站与NMS遵循TR069协议也适用于通信基站与NMS遵循SNMP协议。The technical scheme of the present invention is applicable to both the communication base station and the NMS following the TR069 protocol and the communication base station and the NMS following the SNMP protocol.
本发明适用于2G、3G、4G以及5G无线通信系统和有线通信系统,适用范围广。The invention is suitable for 2G, 3G, 4G and 5G wireless communication systems and wired communication systems, and has a wide range of applications.
图2为本发明另一个实施例的基站开站方法的流程图。本实施例中基站开站方法的执行主体可以为NMS系统。参照图2,本发明实施例的基站开站方法具体包括以下步骤:Fig. 2 is a flowchart of a method for setting up a base station according to another embodiment of the present invention. The execution subject of the method for opening a base station in this embodiment may be an NMS system. Referring to FIG. 2, the method for setting up a base station according to the embodiment of the present invention specifically includes the following steps:
S21、接收基站根据所在IP传输网的VLAN信息发送的网络配置请求消息。S21: Receive a network configuration request message sent by the base station according to the VLAN information of the IP transmission network where it is located.
具体的,网络配置请求消息中携带有当前基站的标识信息,标识信息为基站的唯一识别码,如MAC地址信息、SN号等,NMS可以根据设备的MAC 地址信息为基站分配对应的网络配置信息和NMS地址信息。Specifically, the network configuration request message carries the identification information of the current base station, and the identification information is the unique identification code of the base station, such as MAC address information, SN number, etc. The NMS can allocate corresponding network configuration information to the base station according to the MAC address information of the device And NMS address information.
本实施例中,通信基站的OAM(Operation Administration and Maintenance,操作维护管理)系统通过读取数据库配置调用底层驱动DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)协议接口发送网络配置请求消息到网络管理系统NMS,以获取基站WAN口IP地址、子网掩码、网关地址、NMS IP地址。In this embodiment, the OAM (Operation Administration and Maintenance) system of the communication base station sends the network configuration request message to the network management by reading the database configuration and calling the underlying driver DHCP (Dynamic Host Configuration Protocol) protocol interface System NMS, to obtain the base station WAN port IP address, subnet mask, gateway address, NMS IP address.
S22、根据所述网络配置请求消息为所述基站分配对应的网络配置信息和网络管理系统NMS地址信息,以供所述基站根据所述网络配置信息和NMS地址信息建立与当前NMS之间的通信链路。S22. Allocate corresponding network configuration information and network management system NMS address information to the base station according to the network configuration request message, so that the base station establishes communication with the current NMS according to the network configuration information and NMS address information link.
其中,所述网络配置信息包括WAN口IP地址、子网掩码和网关地址。Wherein, the network configuration information includes WAN port IP address, subnet mask and gateway address.
其中,所述NMS地址信息包括NMS IP地址。Wherein, the NMS address information includes the NMS IP address.
S23、接收所述基站基于所述通信链路发送的参数配置请求消息,所述参数配置请求消息中携带所述基站的基站标识,并根据所述基站标识获取对应的开站参数。S23. Receive a parameter configuration request message sent by the base station based on the communication link, where the parameter configuration request message carries the base station identifier of the base station, and obtain corresponding site-opening parameters according to the base station identifier.
S24、将所述开站参数下发到所述基站,以供所述基站根据所述开站参数执行开站。S24. Deliver the site-opening parameter to the base station, so that the base station performs site-opening according to the site-opening parameter.
本发明实施例提供的基站开站方法,能够根据当前IP传输网的VLAN信息发送网络配置请求消息到网络管理系统NMS,NMS为基于IP回传的通信基站分配对应的网络配置信息和NMS地址信息,以供基站能够根据网络配置信息和NMS地址信息建立与NMS的通信链接,并从NMS获取对应的开站参数进行开站,使得基于IP传输网络与核心网进行信息交互的通信基站能够快速、有效、低成本的实现开站。The base station opening method provided by the embodiment of the present invention can send a network configuration request message to the network management system NMS according to the VLAN information of the current IP transmission network, and the NMS allocates corresponding network configuration information and NMS address information for the communication base station based on IP backhaul , So that the base station can establish a communication link with the NMS according to the network configuration information and the NMS address information, and obtain the corresponding opening parameters from the NMS to open the station, so that the communication base station based on the IP transmission network and the core network for information interaction can quickly and Effective and low-cost realization of site opening.
而且,本发明对于一些站址不易人为现场开站或者开站成本较高、效率低的场景,能够高效的实现自动开站,满足一些特定场景需求。Moreover, the present invention can efficiently realize automatic station opening for some scenes where it is not easy to open a station manually on site or where the opening cost is high and low efficiency, and meet the requirements of some specific scenes.
在本发明的一个具体实施例中,接收基站发送的网络配置请求消息,具体是指基站会根据预设VLAN配置数据中包括的VLAN ID取值范围,依次采用 每一VLAN ID对应的DHCP协议接口发送所述网络配置请求消息到所述NMS,直到接收到所述NMS为当前基站分配的所述网络配置信息和NMS地址信息。In a specific embodiment of the present invention, receiving the network configuration request message sent by the base station specifically means that the base station will sequentially adopt the DHCP protocol interface corresponding to each VLAN ID according to the value range of the VLAN ID included in the preset VLAN configuration data Sending the network configuration request message to the NMS until the network configuration information and NMS address information allocated by the NMS for the current base station are received.
其中,预设VLAN配置数据可以通过数据库配置实现。数据库配置包括VLAN(Virtual Local Area Network,虚拟局域网)ID取值范围。本实施例中,基站既适用于携带VLAN信息的IP传输网也适用于不携带VLAN信息的IP传输网。Among them, the preset VLAN configuration data can be realized through database configuration. The database configuration includes the VLAN (Virtual Local Area Network, virtual local area network) ID value range. In this embodiment, the base station is applicable to both an IP transmission network that carries VLAN information and an IP transmission network that does not carry VLAN information.
具体的,基站OAM首先从无VLAN模式开始调用DHCP协议接口尝试获取WAN口IP地址、子网掩码、网关地址、NMS IP等,如果经过时间T1后没有获取到WAN口IP地址后,则OAM将第一个VLAN ID配置给底层驱动并调用DHCP协议接口进行WAN IP地址、子网掩码、网关地址、NMS IP获取操作,依次进行直到获取到WAN IP地址、子网掩码、网关地址、NMS IP为止。其中,OAM调用无VLAN的DHCP协议接口到调用第一个VLAN ID DHCP协议接口时间间隔T1,OAM调用前后两个VLAN DHCP协议接口时间间隔T2,T2也可以等于T1。Specifically, the base station OAM first calls the DHCP protocol interface from the VLAN-less mode to try to obtain the WAN port IP address, subnet mask, gateway address, NMS IP, etc. If the WAN port IP address is not obtained after the time T1, the OAM Configure the first VLAN ID to the underlying driver and call the DHCP protocol interface to obtain the WAN IP address, subnet mask, gateway address, and NMS IP, and proceed in turn until the WAN IP address, subnet mask, gateway address, NMS IP. Among them, the time interval between OAM calling the DHCP protocol interface without VLAN to calling the first VLAN ID DHCP protocol interface is T1, and the time interval between two VLAN DHCP protocol interfaces before and after OAM calling is T2, and T2 can also be equal to T1.
需要说明的是,如果通信基站到核心网和NMS之间经过的传输网为三层网络,则需要在三层交换机上配置DHCP中继。It should be noted that if the transmission network that passes between the communication base station to the core network and the NMS is a Layer 3 network, a DHCP relay needs to be configured on the Layer 3 switch.
本实施例中,基站会根据预设VLAN配置数据中包括的VLAN ID取值范围,依次采用取值范围中每一VLAN ID对应的DHCP协议接口发送所述网络配置请求消息到NMS,以获取NMS为该基站分配的网络配置信息和NMS地址信息。In this embodiment, the base station will use the DHCP protocol interface corresponding to each VLAN ID in the value range to send the network configuration request message to the NMS according to the VLAN ID value range included in the preset VLAN configuration data to obtain the NMS. Network configuration information and NMS address information allocated to the base station.
本发明可以满足多种场景,既适用于传输网中无VLAN的环境又适用于传输网中有VLAN的环境。在传输网中有VLAN的环境中本技术方案提供了一种VLAN学习方案能够自适应的学习到回传网络中的VLAN信息而不影响自动开站。The invention can meet multiple scenarios, and is suitable for environments without VLANs in the transmission network and for environments with VLANs in the transmission network. In an environment where there is a VLAN in the transmission network, this technical solution provides a VLAN learning solution that can adaptively learn the VLAN information in the backhaul network without affecting automatic station opening.
在本发明实施例中,所述将所述开站参数下发到所述基站,具体包括:将所述开站参数形成开站配置文件,并将所述开站配置文件下发到所述基站。In the embodiment of the present invention, the sending the site-opening parameters to the base station specifically includes: forming the site-opening parameters into a site-opening configuration file, and issuing the site-opening configuration file to the Base station.
本实施例中,NMS下发开站参数可以以配置文件的形式下发给基站也可以直接下发对应的开站参数给通信基站。In this embodiment, the NMS may issue the site-opening parameters to the base station in the form of a configuration file, or directly issue the corresponding site-opening parameters to the communication base station.
在一个实施例中,所述接收所述基站基于所述通信链路发送的参数配置请求消息,包括:接收所述基站通过所述通信链路发送的基于SNMP协议生成的陷阱报文,所述陷阱报文中携带当前基站的基站标识。In an embodiment, the receiving the parameter configuration request message sent by the base station based on the communication link includes: receiving a trap message generated based on the SNMP protocol sent by the base station via the communication link, and The trap message carries the base station identifier of the current base station.
本实施例中,基站通过与当前NMS之间的通信链路发送基于SNMP协议生成的陷阱报文到所述NMS,所述陷阱报文中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站。In this embodiment, the base station sends a trap message generated based on the SNMP protocol to the NMS through the communication link with the current NMS, and the trap message carries the base station identifier of the current base station for the NMS to follow The base station identifier acquires the corresponding site opening parameters and sends the site opening parameters to the current base station.
在另一个实施例中,所述接收所述基站基于所述通信链路发送的参数配置请求消息,包括:接收所述基站通过所述通信链路发送的基于TR069协议生成的boot消息,所述boot消息中携带当前基站的基站标识。In another embodiment, the receiving the parameter configuration request message sent by the base station based on the communication link includes: receiving the boot message generated based on the TR069 protocol sent by the base station via the communication link, and The boot message carries the base station identifier of the current base station.
本实施例中,基站通过与当前NMS之间的通信链路发送基于TR069协议生成的boot消息到所述NMS,所述boot消息中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站。In this embodiment, the base station sends a boot message generated based on the TR069 protocol to the NMS through the communication link with the current NMS, and the boot message carries the base station identifier of the current base station for the NMS to follow the base station The identifier acquires the corresponding site-opening parameters and delivers the site-opening parameters to the current base station.
可见,本发明技术方案既适用于通信基站与NMS遵循TR069协议也适用于通信基站与NMS遵循SNMP协议。It can be seen that the technical solution of the present invention is applicable to both the communication base station and the NMS following the TR069 protocol and the communication base station and the NMS following the SNMP protocol.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the described sequence of actions, because according to the embodiments of the present invention Some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
图3示意性示出了本发明一个实施例的基站开站装置的结构示意图。参照图3,本发明实施例的基站开站装置具体包括网络配置模块301、基站侧通信模块302、开站参数配置模块303以及开站执行模块304,其中:Fig. 3 schematically shows a schematic structural diagram of an apparatus for opening a base station according to an embodiment of the present invention. 3, the base station opening device of the embodiment of the present invention specifically includes a network configuration module 301, a base station side communication module 302, a station opening parameter configuration module 303, and a station opening execution module 304, where:
网络配置模块301,用于根据当前基站所在IP传输网的VLAN信息发送网络配置请求消息到网络管理系统NMS,以供所述NMS为当前基站分配对应的网络配置信息和NMS地址信息;The network configuration module 301 is configured to send a network configuration request message to the network management system NMS according to the VLAN information of the IP transmission network where the current base station is located, so that the NMS can allocate corresponding network configuration information and NMS address information for the current base station;
基站侧通信模块302,用于接收所述NMS为当前基站分配的所述网络配置信息和NMS地址信息,并根据所述网络配置信息和NMS地址信息建立与所述NMS之间的通信链路;The base station side communication module 302 is configured to receive the network configuration information and NMS address information allocated by the NMS for the current base station, and establish a communication link with the NMS according to the network configuration information and NMS address information;
开站参数配置模块303,用于基于所述通信链路发送参数配置请求消息到所述NMS,所述参数配置请求消息中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站;The station opening parameter configuration module 303 is configured to send a parameter configuration request message to the NMS based on the communication link, and the parameter configuration request message carries the base station identity of the current base station for the NMS to obtain according to the base station identity Corresponding site-opening parameters and sending the site-opening parameters to the current base station;
开站执行模块304,用于接收所述NMS下发的所述开站参数,并根据所述开站参数执行开站。The site opening execution module 304 is configured to receive the site opening parameters issued by the NMS, and execute the site opening according to the site opening parameters.
在本发明实施例中,所述网络配置模块301,具体用于根据预设VLAN配置数据中包括的VLAN ID取值范围,依次采用每一VLAN ID对应的DHCP协议接口发送所述网络配置请求消息到所述NMS,直到接收到所述NMS为当前基站分配的所述网络配置信息和NMS地址信息。In the embodiment of the present invention, the network configuration module 301 is specifically configured to use the DHCP protocol interface corresponding to each VLAN ID in turn to send the network configuration request message according to the value range of the VLAN ID included in the preset VLAN configuration data To the NMS, until the network configuration information and NMS address information allocated by the NMS for the current base station are received.
在一个具体实施例中,开站参数配置模块303,具体用于通过所述通信链路发送基于SNMP协议生成的陷阱报文到所述NMS,所述陷阱报文中携带当前基站的基站标识。In a specific embodiment, the station opening parameter configuration module 303 is specifically configured to send a trap message generated based on the SNMP protocol to the NMS via the communication link, and the trap message carries the base station identifier of the current base station.
本实施例中,基站通过与当前NMS之间的通信链路发送基于SNMP协议生成的陷阱报文到所述NMS,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站。In this embodiment, the base station sends a trap message generated based on the SNMP protocol to the NMS through the communication link with the current NMS, so that the NMS obtains the corresponding station-opening parameters according to the base station identifier and sends the The opening parameters are sent to the current base station.
在另一个具体实施例中,开站参数配置模块303,具体用于通过所述通信链路发送基于TR069协议生成的boot消息到所述NMS,所述boot消息中携带当前基站的基站标识。In another specific embodiment, the station opening parameter configuration module 303 is specifically configured to send a boot message generated based on the TR069 protocol to the NMS via the communication link, and the boot message carries the base station identifier of the current base station.
本实施例中,基站通过与当前NMS之间的通信链路发送基于TR069协议生成的boot消息到所述NMS,以供所述NMS根据所述基站标识获取对应的 开站参数并将所述开站参数下发到当前基站。In this embodiment, the base station sends a boot message generated based on the TR069 protocol to the NMS through the communication link with the current NMS, so that the NMS obtains the corresponding station-opening parameters according to the base station identifier and sends the boot message The station parameters are delivered to the current base station.
可见,本发明技术方案既适用于通信基站与NMS遵循TR069协议也适用于通信基站与NMS遵循SNMP协议。It can be seen that the technical solution of the present invention is applicable to both the communication base station and the NMS following the TR069 protocol and the communication base station and the NMS following the SNMP protocol.
图4示意性示出了本发明另一个实施例的基站开站装置的结构示意图。参照图4,本发明实施例的基站开站装置具体包括接收模块401、动态配置模块402、参数获取模块403以及发送模块404,其中:Fig. 4 schematically shows a schematic structural diagram of a base station opening device according to another embodiment of the present invention. 4, the device for opening a base station according to the embodiment of the present invention specifically includes a receiving module 401, a dynamic configuration module 402, a parameter acquiring module 403, and a sending module 404, where:
接收模块401,用于接收基站根据所在IP传输网的VLAN信息发送的网络配置请求消息;The receiving module 401 is configured to receive a network configuration request message sent by the base station according to VLAN information of the IP transmission network where it is located;
动态配置模块402,用于根据所述网络配置请求消息为所述基站分配对应的网络配置信息和网络管理系统NMS地址信息,以供所述基站根据所述网络配置信息和NMS地址信息建立与当前NMS之间的通信链路;The dynamic configuration module 402 is configured to allocate corresponding network configuration information and network management system NMS address information to the base station according to the network configuration request message, so that the base station can establish a connection with the current network configuration information and NMS address information according to the network configuration information and NMS address information. Communication link between NMS;
参数获取模块403,用于接收所述基站基于所述通信链路发送的参数配置请求消息,所述参数配置请求消息中携带所述基站的基站标识,并根据所述基站标识获取对应的开站参数;The parameter acquisition module 403 is configured to receive a parameter configuration request message sent by the base station based on the communication link, where the parameter configuration request message carries the base station identifier of the base station, and obtain the corresponding open station according to the base station identifier parameter;
发送模块404,用于将所述开站参数下发到所述基站,以供所述基站根据所述开站参数执行开站。The sending module 404 is configured to deliver the site-opening parameters to the base station, so that the base station performs site-opening according to the site-opening parameters.
其中,所述网络配置信息包括WAN口IP地址、子网掩码和网关地址。Wherein, the network configuration information includes WAN port IP address, subnet mask and gateway address.
本实施例中,基站会根据预设VLAN配置数据中包括的VLAN ID取值范围,依次采用取值范围中每一VLAN ID对应的DHCP协议接口发送所述网络配置请求消息到NMS,以供NMS动态配置模块402根据接收模块401接收到的网络配置请求消息为该基站分配对应的网络配置信息和NMS地址信息。In this embodiment, the base station will use the DHCP protocol interface corresponding to each VLAN ID in the value range according to the VLAN ID value range included in the preset VLAN configuration data to send the network configuration request message to the NMS for the NMS The dynamic configuration module 402 allocates corresponding network configuration information and NMS address information to the base station according to the network configuration request message received by the receiving module 401.
本发明可以满足多种场景,既适用于传输网中无VLAN的环境又适用于传输网中有VLAN的环境。在传输网中有VLAN的环境中本技术方案提供了一种VLAN学习方案能够自适应的学习到回传网络中的VLAN信息而不影响自动开站。The invention can meet multiple scenarios, and is suitable for environments without VLANs in the transmission network and for environments with VLANs in the transmission network. In an environment where there is a VLAN in the transmission network, this technical solution provides a VLAN learning solution that can adaptively learn the VLAN information in the backhaul network without affecting automatic station opening.
本发明主要为基于IP回传的通信基站在一些站址不易人为现场开站或者 开站成本较高、效率低的场景提供一种能够高效的、自动的、低成本的开站方法和系统。The present invention mainly provides an efficient, automatic, and low-cost method and system for setting up a communication base station based on IP backhaul in some scenes where it is not easy to set up a site manually or where the opening cost is high and low efficiency.
在一个具体实施例中,所述发送模块404,具体用于将所述开站参数形成开站配置文件,并将所述开站配置文件下发到所述基站。In a specific embodiment, the sending module 404 is specifically configured to form the site-opening parameters into a site-opening configuration file, and deliver the site-opening configuration file to the base station.
在一个具体实施例中,所述参数获取模块403,具体用于接收所述基站通过所述通信链路发送的基于SNMP协议生成的陷阱报文,所述陷阱报文中携带当前基站的基站标识。In a specific embodiment, the parameter acquisition module 403 is specifically configured to receive a trap message generated based on the SNMP protocol sent by the base station through the communication link, and the trap message carries the base station identifier of the current base station .
本实施例中,基站通过与当前NMS之间的通信链路发送基于SNMP协议生成的陷阱报文到所述NMS,所述陷阱报文中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站。In this embodiment, the base station sends a trap message generated based on the SNMP protocol to the NMS through the communication link with the current NMS, and the trap message carries the base station identifier of the current base station for the NMS to follow The base station identifier acquires the corresponding site opening parameters and sends the site opening parameters to the current base station.
在另一个具体实施例中,所述参数获取模块403,具体还可以用于接收所述基站通过所述通信链路发送的基于TR069协议生成的boot消息,所述boot消息中携带当前基站的基站标识。In another specific embodiment, the parameter acquisition module 403 may also be specifically configured to receive the boot message generated based on the TR069 protocol and sent by the base station through the communication link, and the boot message carries the base station of the current base station. Logo.
本实施例中,基站通过与当前NMS之间的通信链路发送基于TR069协议生成的boot消息到所述NMS,所述boot消息中携带当前基站的基站标识,以供所述NMS根据所述基站标识获取对应的开站参数并将所述开站参数下发到当前基站。In this embodiment, the base station sends a boot message generated based on the TR069 protocol to the NMS through the communication link with the current NMS, and the boot message carries the base station identifier of the current base station for the NMS to follow the base station The identifier acquires the corresponding site-opening parameters and delivers the site-opening parameters to the current base station.
可见,本发明技术方案既适用于通信基站与NMS遵循TR069协议也适用于通信基站与NMS遵循SNMP协议。It can be seen that the technical solution of the present invention is applicable to both the communication base station and the NMS following the TR069 protocol and the communication base station and the NMS following the SNMP protocol.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目 的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
本发明实施例提供的基站开站方法、装置、计算机存储介质及设备,能够根据当前IP传输网的VLAN信息发送网络配置请求消息到NMS,NMS为基于IP回传的通信基站分配对应的网络配置信息和NMS地址信息,以供基站能够根据网络配置信息和NMS地址信息建立与NMS的通信链接,并从NMS获取对应的开站参数进行开站,使得基于IP传输网络与核心网进行信息交互的通信基站能够快速、有效、低成本的实现开站。The base station opening method, device, computer storage medium and equipment provided by the embodiments of the present invention can send a network configuration request message to the NMS according to the VLAN information of the current IP transmission network, and the NMS allocates the corresponding network configuration for the communication base station based on IP backhaul Information and NMS address information, so that the base station can establish a communication link with the NMS according to the network configuration information and the NMS address information, and obtain the corresponding site-opening parameters from the NMS to open the site, so that the information exchange between the IP transmission network and the core network The communication base station can realize the establishment of the station quickly, effectively and at low cost.
而且,本发明对于一些站址不易人为现场开站或者开站成本较高、效率低的场景,能够高效的实现自动开站,满足一些特定场景需求。Moreover, the present invention can efficiently realize automatic station opening for some scenes where it is not easy to open a station manually on site or where the opening cost is high and low efficiency, and meet the requirements of some specific scenes.
此外,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上所述方法的步骤。In addition, the embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are realized.
本实施例中,所述基站开站装置集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。In this embodiment, if the module/unit integrated by the base station opening device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted in accordance with the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
图5为本发明实施例提供的设备的示意图。本发明实施例提供的设备,包 括存储器501、处理器502及存储在存储器501上并可在处理器502上运行的计算机程序,所述处理器502执行所述计算机程序时实现上述各个基站开站方法实施例中的步骤,例如图1所示的步骤,和/或,如图2所示的步骤。或者,所述处理器502执行所述计算机程序时实现上述各基站开站装置实施例中各模块/单元的功能,例如图3所示的网络配置模块301、基站侧通信模块302、开站参数配置模块303以及开站执行模块304,和/或,如图4所示的接收模块401、动态配置模块402、参数获取模块403以及发送模块404。Figure 5 is a schematic diagram of a device provided by an embodiment of the present invention. The device provided by the embodiment of the present invention includes a memory 501, a processor 502, and a computer program stored in the memory 501 and running on the processor 502. When the processor 502 executes the computer program, the above-mentioned base stations are opened. The steps in the method embodiment are, for example, the steps shown in FIG. 1 and/or the steps shown in FIG. 2. Alternatively, when the processor 502 executes the computer program, the functions of the modules/units in the above-mentioned embodiments of the base station opening device are realized, for example, the network configuration module 301, the base station side communication module 302, and the station opening parameters shown in FIG. 3 The configuration module 303 and the site opening execution module 304, and/or the receiving module 401, the dynamic configuration module 402, the parameter acquisition module 403, and the sending module 404 as shown in FIG.
示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述基站开站装置中的执行过程。例如,所述计算机程序可以被分割成如图3所示的网络配置模块301、基站侧通信模块302、开站参数配置模块303以及开站执行模块304,和/或,如图4所示的接收模块401、动态配置模块402、参数获取模块403以及发送模块404。Exemplarily, the computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory and executed by the processor to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the base station opening device. For example, the computer program can be divided into a network configuration module 301, a base station side communication module 302, a site setup parameter configuration module 303, and a site setup execution module 304 as shown in FIG. 3, and/or as shown in FIG. 4 The receiving module 401, the dynamic configuration module 402, the parameter obtaining module 403, and the sending module 404.
所述设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述设备可包括,但不仅限于,处理器、存储器。本领域技术人员可以理解,所述示意图5仅仅是所述设备的示例,并不构成对设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述设备还可以包括输入输出设备、网络接入设备、总线等。The device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the schematic diagram 5 is only an example of the device, and does not constitute a limitation on the device. It may include more or less components than those shown in the figure, or combine certain components, or different components. For example, the device may also include input and output devices, network access devices, buses, and so on.
所述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述设备的控制中心,利用各种接口和线路连接整个设备的各个部分。The processor may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), off-the-shelf Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The processor is the control center of the device, and various interfaces and lines are used to connect various parts of the entire device.
所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory may be used to store the computer program and/or module, and the processor implements the device by running or executing the computer program and/or module stored in the memory, and calling data stored in the memory Various functions. The memory may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.); the storage data area may store Data (such as audio data, phone book, etc.) created based on the use of mobile phones. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disks, memory, plug-in hard disks, smart media cards (SMC), and secure digital (SD) cards , Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
在本发明实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性或其它的形式。In the embodiments of the present invention, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units or units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be Combined or can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Those skilled in the art can understand that although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments means that they fall within the scope of the present invention and form Different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.