CN112866309A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN112866309A
CN112866309A CN201911102507.7A CN201911102507A CN112866309A CN 112866309 A CN112866309 A CN 112866309A CN 201911102507 A CN201911102507 A CN 201911102507A CN 112866309 A CN112866309 A CN 112866309A
Authority
CN
China
Prior art keywords
base station
omc
address
configuration
dhcp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911102507.7A
Other languages
Chinese (zh)
Other versions
CN112866309B (en
Inventor
王鑫鹏
张颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201911102507.7A priority Critical patent/CN112866309B/en
Publication of CN112866309A publication Critical patent/CN112866309A/en
Application granted granted Critical
Publication of CN112866309B publication Critical patent/CN112866309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/695Types of network addresses using masks or ranges of addresses

Abstract

The embodiment of the invention provides a communication method and a communication device. The method is applied to a base station, and comprises the following steps: detecting the starting failure, sending a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC), and carrying the equipment number (SN) of the base station in the DHCP broadcast message; receiving a DHCP response message of the OMC aiming at the DHCP broadcast message, and acquiring a starting configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and at least comprise a first Internet protocol address (IP) address of the base station, a second IP address of the OMC and a target subnet mask of the base station; configuring corresponding parameters according to the starting configuration parameters, and establishing connection with the OMC; and sending a configuration file acquisition request to the OMC. The embodiment of the invention solves the defect problem existing in the abnormal starting mode of the base station.

Description

Communication method and device
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a communication method and apparatus.
Background
In a wireless communication system, when a base station is started, a relevant debugging and parameter configuration work needs to be performed, a self-starting work needs to read a configuration file from a hard disk of the base station, and the configuration file contains attribute information of the base station, such as cell parameters covered by the base station, relevant information of an Operation and Maintenance Center (OMC), an Internet Protocol (IP) address of the base station, and the like. And the base station reads the configuration file and then configures the attribute of the base station, and the base station is normally opened.
However, in some cases, the base station may not start normally, such as the situation of missing configuration files; for the base station in the initialization state, the configuration file cannot be read due to abnormal operation, and the base station must first acquire the correct configuration before being opened normally.
In the prior art, in order to solve the above problems, there are generally two ways: firstly, directly connecting other base stations at the near end, and copying a configuration file into the base stations; secondly, the base station establishes temporary connection with the OMC by acquiring the temporary IP address temporarily allocated by the OMC from the OMC and then requests a configuration file.
However, the above-described method is generally used only in the test phase, and only in the case of a small number of base stations. When the number of base stations is increased and the base stations are installed in various places in a scattered manner, the cost of the method is too high;
for the second mode, the specific flow is complex, and the base station establishes the temporary connection for multiple times, which increases the burden of the OMC and has the risk of the OMC being attacked; if a large number of abnormal base stations repeatedly use the temporary IP to continuously establish temporary connection with the OMC, the IP addresses may be exhausted, and the normal base stations cannot be connected.
Therefore, in the prior art, a certain defect exists in a mode for solving the abnormal starting of the base station.
Disclosure of Invention
The embodiment of the invention provides a communication method and a communication device, which aim to solve the problem of defects existing in a mode of abnormal starting of a base station in the prior art.
In one aspect, an embodiment of the present invention provides a communication method applied to a base station, where the method includes:
detecting the starting failure, sending a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC), and carrying the equipment number (SN) of the base station in the DHCP broadcast message;
receiving a DHCP response message of the OMC aiming at the DHCP broadcast message, and acquiring a starting configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and at least comprise a first Internet protocol address (IP) address of the base station, a second IP address of the OMC and a target subnet mask of the base station;
configuring corresponding parameters according to the starting configuration parameters, and establishing connection with the OMC;
and sending a configuration file acquisition request to the OMC.
In one aspect, an embodiment of the present invention provides a communication method, which is applied to an operation and maintenance center OMC, where the method includes:
receiving a Dynamic Host Configuration Protocol (DHCP) broadcast message sent by a base station, and acquiring an equipment number (SN) of the base station carried in the DHCP broadcast message;
determining preset starting configuration parameters corresponding to the SN, carrying the starting configuration parameters in a DHCP response message aiming at the DHCP broadcast message, and sending the DHCP response message to the base station; wherein the start configuration parameters at least include a first internet protocol address, IP, address of the base station, a second IP address of the OMC, and a target subnet mask of the base station;
receiving an OMC connection establishment request sent by the base station after the base station configures corresponding parameters according to the starting configuration parameters, and establishing connection with the base station;
and receiving a configuration file acquisition request sent by the base station.
On the other hand, an embodiment of the present invention further provides a communication apparatus, which is applied to a base station, and the apparatus includes:
the message sending module is used for sending a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC) when the starting failure is detected, and the DHCP broadcast message carries the equipment number (SN) of the base station;
a message receiving module, configured to receive a DHCP response message of the OMC for the DHCP broadcast message, and acquire a start configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and at least comprise a first Internet protocol address (IP) address of the base station, a second IP address of the OMC and a target subnet mask of the base station;
the parameter configuration module is used for configuring corresponding parameters according to the starting configuration parameters and establishing connection with the OMC;
and the request sending module is used for sending a configuration file acquisition request to the OMC.
On the other hand, an embodiment of the present invention further provides a communication apparatus, which is applied to an operation and maintenance center OMC, where the apparatus includes:
the SN acquisition module is used for receiving a Dynamic Host Configuration Protocol (DHCP) broadcast message sent by a base station and acquiring an equipment number (SN) of the base station carried in the DHCP broadcast message;
a parameter determining module, configured to determine a preset startup configuration parameter corresponding to the SN, carry the startup configuration parameter in a DHCP response message for the DHCP broadcast message, and send the DHCP response message to the base station; wherein the start configuration parameters at least include a first internet protocol address, IP, address of the base station, a second IP address of the OMC, and a target subnet mask of the base station;
a first request receiving module, configured to receive an OMC connection establishment request sent by the base station after configuring corresponding parameters according to the start configuration parameters, and establish a connection with the base station;
and the second request receiving module is used for receiving the configuration file acquisition request sent by the base station.
In yet another aspect, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the communication method as described above when executing the computer program.
In still another aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the communication method as described above.
In the embodiment of the invention, a base station detects the failure of starting, sends a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC), and carries an equipment number (SN) of the base station in the DHCP broadcast message; then receiving a DHCP response message of the OMC aiming at the DHCP broadcast message, and acquiring a starting configuration parameter carried in the DHCP response message; configuring corresponding parameters according to the starting configuration parameters, establishing connection with the OMC, and sending a configuration file acquisition request to the OMC; and acquiring a first IP address and a subnet mask through a DHCP session, setting the IP address of the base station as the first IP address, establishing connection with the OMC through a second IP address, acquiring a configuration file, and realizing self-starting of the base station. The embodiment of the invention can be applied to a far-end base station and a near-end base station, and does not increase extra burden on the OMC; and the OMC fault caused by the fact that the abnormal base station is also connected with the OMC through the temporary IP address when the temporary IP address is used is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a communication method according to an embodiment of the present invention;
FIG. 2 is an interaction scenario diagram of a first example of an embodiment of the invention;
fig. 3 is a second flowchart illustrating steps of a communication method according to an embodiment of the present invention;
FIG. 4 is one of a flow chart of steps of a second example of an embodiment of the present invention;
FIG. 5 is a second flowchart illustrating the steps of a second exemplary embodiment of the present invention;
fig. 6 is a block diagram of a communication device according to an embodiment of the present invention;
fig. 7 is a second block diagram of a communication device according to an embodiment of the present invention;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a communication method, which is applied to a base station, and the method includes:
step 101, detecting a start failure, sending a dynamic host configuration protocol DHCP broadcast message to an operation maintenance center OMC, and carrying an equipment number SN of the base station in the DHCP broadcast message.
In this step, if a start failure occurs when the base station starts, for example, if the Configuration file is abnormal, a Dynamic Host Configuration Protocol (DHCP) broadcast message (discover packet) is sent to the OMC; specifically, DHCP is a network protocol of a local area network, and a server (OMC) controls a section of lP address range to allocate an lP address and a subnet mask to a client (base station); the base station sends DHCP broadcast message to the OMC, and carries the equipment Number (SN) of the base station in the DHCP broadcast message, and requests the OMC to allocate IP starting configuration parameters for the OMC.
Typically, each base station has a unique SN code that identifies the identity of the base station; optionally, the SN is stored in a Programmable read only memory (EEPROM) of the base station, so as to avoid the SN code from being damaged.
Alternatively, the base station may be installed at a remote end, networked by optical fiber or other means, and establish a communication connection with the OMC.
As a first example, referring to fig. 2, after the base station detects the start failure in step 1, the base station performs step 2 to send a DHCP broadcast message to the OMC.
102, receiving a DHCP response message of the OMC to the DHCP broadcast message, and acquiring a start configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and the starting configuration parameters at least comprise a first Internet protocol address (IP) address of the base station, a second IP address of the OMC and a target subnet mask of the base station.
In this step, the base station receives a DHCP response message fed back by the OMC for the DHCP broadcast message, and acquires a start configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and on the OMC side, the OMC stores the SN of the base station as an identification number of the base station and records the corresponding relation between the SN and the starting configuration parameters of the base station; referring to fig. 2, the OMC performs step 3, searches for a start configuration parameter corresponding to the SN after receiving the SN of the base station, and performs step 4, and sends the start configuration parameter to the base station through a DHCP response message.
The starting configuration parameters at least comprise a first IP address of a base station, a second IP address of the OMC and a target subnet mask of the base station; specifically, the first IP address is an actual IP address, which is configured for the base station in advance, and is a non-temporary address, and the base station configures its own IP address as the address, and then subsequently continues to use the address; the second IP address is used for sending a request to the OMC by the base station; the subnet mask is used for dividing the first IP address and/or the second IP address into a network address and a host address, and is used for identifying the network address and the host address by the base station.
And 103, configuring corresponding parameters according to the starting configuration parameters, and establishing connection with the OMC.
In this step, the base station configures each corresponding parameter according to the start configuration parameter, for example, configures its own IP address as the first IP address, configures its own subnet mask as the target subnet mask, and establishes a connection with the OMC according to the second IP address.
Referring to fig. 2, the base station performs step 5, and configures start-up configuration parameters; and step 6, sending a connection establishment request to the OMC.
And step 104, sending a configuration file acquisition request to the OMC.
In this step, after establishing connection with the OMC, the base station sends a configuration file acquisition request to the OMC, and waits for the OMC to acquire a configuration file fed back by the request according to the configuration file; and if the OMC finds the configuration file corresponding to the base station according to the configuration file acquisition request, the OMC feeds back the configuration file to the base station, and the base station receives the configuration file and then executes a self-starting process according to the configuration file.
Referring to fig. 2, the base station performs step 7, sends a configuration file acquisition request to the OMC, and waits for feedback from the OMC.
Optionally, the configuration file is a startup configuration file, and the configuration file mainly includes a software/hardware architecture of the base station device, a connection mode of modules and boards, a mapping relationship between a cell/sector and an antenna feeder, a network parameter, a configuration parameter of a transmission parameter (including a physical layer, a link layer, and a network layer), and the like. The self-starting function can improve the station opening efficiency of the base station to a certain extent, reduce the station opening cost and reduce the personnel investment.
In the embodiment of the invention, a base station detects the failure of starting, sends a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC), and carries an equipment number (SN) of the base station in the DHCP broadcast message; then receiving a DHCP response message of the OMC aiming at the DHCP broadcast message, and acquiring a starting configuration parameter carried in the DHCP response message; configuring corresponding parameters according to the starting configuration parameters, establishing connection with the OMC, and sending a configuration file acquisition request to the OMC; and acquiring a first IP address and a subnet mask through a DHCP session, setting the IP address of the base station as the first IP address, establishing connection with the OMC through a second IP address, acquiring a configuration file, and realizing self-starting of the base station. The embodiment of the invention can be applied to a far-end base station and a near-end base station, and does not increase extra burden on the OMC; and the OMC fault caused by the fact that the abnormal base station is also connected with the OMC through the temporary IP address when the temporary IP address is used is avoided; the embodiment of the invention solves the defect problem existing in the abnormal starting mode of the base station.
Optionally, in this embodiment of the present invention, the step of configuring the corresponding parameter according to the start configuration parameter, and establishing a connection with the OMC includes:
configuring the IP address of the base station as a first IP address, and configuring the subnet mask of the base station as the target subnet mask;
and sending the connection request with the OMC to the second IP address, and establishing connection with the OMC.
Specifically, the first IP address is an actual IP address, which is configured for the base station in advance, and is a non-temporary address, and the base station configures its own IP address as the address, and then subsequently continues to use the address; the second IP address is used for sending a request to the OMC by the base station; the subnet mask is used for dividing the first IP address and/or the second IP address into a network address and a host address, and is used for identifying the network address and the host address by the base station.
Optionally, in this embodiment of the present invention, the step of detecting the start failure includes:
receiving a starting operation, and acquiring a preset configuration file;
determining a startup failure if at least one of the following conditions is detected:
the configuration file is missing;
a format error of the configuration file;
and missing or erroneous values for configuration items in the configuration file.
The base station reads the configuration file after receiving a starting operation, wherein the starting operation can be an initialization instruction or a power-on instruction; if the configuration file is read normally, executing a normal starting (station opening) process; and if at least one of the conditions of configuration file missing, configuration file format error or configuration item value missing or error in the configuration file is detected, determining that the starting is failed.
Optionally, in this embodiment of the present invention, after the step of sending the configuration file acquisition request to the OMC, the method includes:
receiving a configuration file requested to be fed back by the OMC according to the configuration file;
and executing a starting process according to the configuration file.
In this step, after sending a configuration file acquisition request to the OMC, the base station receives the configuration file fed back by the OMC, configures parameters of the base station according to the configuration file, and executes a start-up procedure.
Optionally, in the embodiment of the present invention, the start configuration parameters further include network configuration parameters;
the network configuration parameters include at least one of a gateway, a domain name and a domain name system DNS.
If the starting configuration parameters pre-configured for the base station by the OMC side also include network configuration parameters, the starting configuration parameters also include network configuration parameters.
In the embodiment of the invention, a base station detects the failure of starting, sends a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC), and carries an equipment number (SN) of the base station in the DHCP broadcast message; then receiving a DHCP response message of the OMC aiming at the DHCP broadcast message, and acquiring a starting configuration parameter carried in the DHCP response message; configuring corresponding parameters according to the starting configuration parameters, establishing connection with the OMC, and sending a configuration file acquisition request to the OMC; and acquiring a first IP address and a subnet mask through a DHCP session, setting the IP address of the base station as the first IP address, establishing connection with the OMC through a second IP address, acquiring a configuration file, and realizing self-starting of the base station. The embodiment of the invention can be applied to a far-end base station and a near-end base station, and does not increase extra burden on the OMC; and the OMC fault caused by the fact that the abnormal base station is also connected with the OMC through the temporary IP address when the temporary IP address is used is avoided.
The communication method provided by the embodiment of the present invention is described above by the base station side, and the communication method on the OMC side will be described below with reference to the accompanying drawings.
Referring to fig. 3, an embodiment of the present invention provides a communication method, which is applied to an operation and maintenance center OMC, where the method includes:
step 301, receiving a dynamic host configuration protocol DHCP broadcast message sent by a base station, and acquiring an equipment number SN of the base station carried in the DHCP broadcast message.
In this step, if the OMC receives the DHCP broadcast message, the base station side has abnormal starting condition; specifically, when the base station is started, if a starting failure occurs, for example, a configuration file is abnormal, a DHCP broadcast message is sent to the OMC; DHCP is a network protocol of a local area network, a server (OMC) controls a section of lP address range, and an lP address and a subnet mask are distributed for a client (base station); the base station sends DHCP broadcast message to the OMC, and carries the equipment Number (SN) of the base station in the DHCP broadcast message, and requests the OMC to allocate IP starting configuration parameters for the OMC.
After receiving the DHCP broadcast message, the OMC acquires the SN carried therein; typically, each base station has a unique SN code that identifies the identity of the base station; and the OMC stores the SN of the base station as the unique identification of the base station.
As a first example, referring to fig. 2 and fig. 2, after the base station detects the start failure in step 1, the base station performs step 2 to send a DHCP broadcast message to the OMC.
Step 302, determining a preset startup configuration parameter corresponding to the SN, carrying the startup configuration parameter in a DHCP response message for the DHCP broadcast message, and sending the DHCP response message to the base station; wherein the start configuration parameters at least include a first internet protocol address, IP, address of the base station, a second IP address of the OMC, and a target subnet mask of the base station.
In the step, after obtaining the SN, the OMC searches a preset starting configuration parameter corresponding to the SN; and the OMC stores the SN of the base station as an identification number of the base station in advance, records the corresponding relation between the SN and the starting configuration parameter of the base station, searches the starting configuration parameter corresponding to the SN according to the corresponding relation, carries the starting configuration parameter in a DHCP response message aiming at the DHCP broadcast message, and sends the DHCP response message to the base station.
Specifically, the start configuration parameters at least include a first IP address of the base station, a second IP address of the OMC, and a target subnet mask of the base station; specifically, the first IP address is an actual IP address, which is configured for the base station in advance, and is a non-temporary address, and the base station configures its own IP address as the address, and then subsequently continues to use the address; the second IP address is used for sending a request to the OMC by the base station; the subnet mask is used for dividing the first IP address and/or the second IP address into a network address and a host address, and is used for identifying the network address and the host address by the base station.
Referring to fig. 2, in step 3, after receiving the SN of the base station, the OMC searches for the start configuration parameter corresponding to the SN, and executes step 4, and the OMC sends the start configuration parameter to the base station through a DHCP response message.
Optionally, if the OMC does not find the start configuration parameter corresponding to the SN, the process is ended, and the DHCP broadcast message is ignored.
Step 303, receiving an OMC connection establishment request sent by the base station after configuring the corresponding parameter according to the start configuration parameter, and establishing a connection with the base station.
In the step, an OMC receives an OMC connection establishment request sent by a base station and establishes connection with the base station; the base station configures each corresponding parameter according to the start configuration parameter, for example, configures its own IP address as a first IP address, and configures its own subnet mask as the target subnet mask; and establishing connection with the OMC according to the second IP address, and sending a connection establishment request to the OMC. And the OMC establishes connection with the base station according to the connection establishment request.
Step 304, receiving a configuration file acquisition request sent by the base station.
In the step, after the OMC establishes connection with the base station, a configuration file acquisition request sent by the base station is received; and if the OMC finds the configuration file corresponding to the base station according to the configuration file acquisition request, the OMC feeds back the configuration file to the base station, and the base station receives the configuration file and then executes a self-starting process according to the configuration file.
Referring to fig. 2, the OMC performs step 8 to transmit a configuration file to the base station.
Optionally, the configuration file is a startup configuration file, and the configuration file mainly includes a software/hardware architecture of the base station device, a connection mode of modules and boards, a mapping relationship between a cell/sector and an antenna feeder, a network parameter, a configuration parameter of a transmission parameter (including a physical layer, a link layer, and a network layer), and the like. The self-starting function can improve the station opening efficiency of the base station to a certain extent, reduce the station opening cost and reduce the personnel investment.
In the embodiment of the invention, an OMC receives a Dynamic Host Configuration Protocol (DHCP) broadcast message sent by a base station, and acquires an equipment number (SN) of the base station carried in the DHCP broadcast message; determining preset starting configuration parameters corresponding to the SN, carrying the starting configuration parameters in a DHCP response message aiming at the DHCP broadcast message, and sending the DHCP response message to the base station; receiving an OMC connection establishment request sent by the base station after the base station configures corresponding parameters according to the starting configuration parameters, and establishing connection with the base station; finally, receiving a configuration file acquisition request sent by the base station, and if the configuration file of the base station exists, feeding back the configuration file to the base station; and sending the first IP address and the subnet mask to the base station through the DHCP session, so that the base station establishes connection with the OMC through the second IP address after setting the own IP address as the first IP address, acquires a configuration file and realizes the self-starting of the base station. The embodiment of the invention can be applied to a far-end base station and a near-end base station, and does not increase extra burden on the OMC; and the OMC fault caused by the fact that the abnormal base station is also connected with the OMC through the temporary IP address when the temporary IP address is used is avoided; the embodiment of the invention solves the defect problem existing in the abnormal starting mode of the base station.
Optionally, in this embodiment of the present invention, the step of receiving an OMC connection establishment request sent by the base station after configuring the corresponding parameter according to the start configuration parameter, and establishing a connection with the base station includes:
receiving an OMC connection establishment request sent by the base station after the base station configures corresponding parameters according to the starting configuration parameters;
acquiring the IP address of the base station carried in the connection establishment request;
and if the IP address is the same as the first IP address, the base station establishes connection.
Specifically, after receiving a connection establishment request initiated by a base station, the OMC determines whether an IP address of the base station carried in the connection establishment request is in a pre-stored base station configuration table, that is, whether the IP address is the same as a first IP address; and if the IP address is the same as the first IP address, the base station establishes connection, otherwise, connection establishment with the base station is refused, and the situation that the OMC is attacked because the connection establishment request comes from an abnormal base station is avoided.
Optionally, in this embodiment of the present invention, the step of receiving the configuration file acquisition request sent by the base station includes:
and feeding back the configuration file of the base station to the base station.
In this step, the OMC searches the configuration file corresponding to the base station according to the configuration file acquisition request, feeds back the configuration file to the base station, and executes the self-starting process according to the configuration file after the base station receives the configuration file.
In the embodiment of the invention, an OMC receives a Dynamic Host Configuration Protocol (DHCP) broadcast message sent by a base station, and acquires an equipment number (SN) of the base station carried in the DHCP broadcast message; determining preset starting configuration parameters corresponding to the SN, carrying the starting configuration parameters in a DHCP response message aiming at the DHCP broadcast message, and sending the DHCP response message to the base station; receiving an OMC connection establishment request sent by the base station after the base station configures corresponding parameters according to the starting configuration parameters, and establishing connection with the base station; finally, receiving a configuration file acquisition request sent by the base station, and if the configuration file of the base station exists, feeding back the configuration file to the base station; and sending the first IP address and the subnet mask to the base station through the DHCP session, so that the base station establishes connection with the OMC through the second IP address after setting the own IP address as the first IP address, acquires a configuration file and realizes the self-starting of the base station. The embodiment of the invention can be applied to a far-end base station and a near-end base station, and does not increase extra burden on the OMC; and the OMC fault caused by the fact that the abnormal base station is also connected with the OMC through the temporary IP address when the temporary IP address is used is avoided.
As a second example, referring to fig. 4 and 5, communication methods applied to a base station and an OMC are shown, respectively.
As shown in fig. 4, the base station side mainly performs the following steps:
step 401, after the base station is started, initializing, including loading u-boot, kernel, driver module, and starting process.
After an OM process (operation maintenance management process) is started, a configuration file is read, and if the configuration is correct, relevant parameters are set according to the configuration, and a normal station opening process is carried out.
And step 402, if the starting is successful, the base station configures the base station according to the configuration file and actively connects the OMC.
Step 403, the starting fails, and a remote automatic station opening process is entered;
wherein, if the following situation occurs: missing a configuration-related file;
the configuration file has an incorrect format and cannot be analyzed;
the base station can not be normally opened due to no value or incorrect value of an important configuration item in the configuration;
the configuration is considered to be incorrect, and the remote automatic station opening process is entered.
Step 404, the base station sends a DHCP discover packet to the OMC;
wherein, the base station uses the option 124 field in the DHCP discover packet to fill the SN of the base station.
Step 405, the base station receives the DHCP response message issued by the OMC, and extracts the starting configuration parameters;
if the OMC has the configuration of the base station, the DHCP discover packet sent by the base station is responded. The base station dynamically acquires an IP flow through a complete DHCP of the OMC, and acquires own starting configuration parameters which can comprise an IP address of the base station, an IP address of the OMC and a subnet mask; and there may be other network configuration information such as gateway, domain name, DNS, etc. according to the actual service situation.
In step 406, the base station performs configuration operation using the start-up configuration parameters, and then initiates a connection to the OMC.
And the IP, the subnet mask, the gateway and the DNS which are obtained by the base station through the DHCP are respectively set as the own IP, and the network subnet mask, the gateway and the DNS are configured. Then a connection to the OMC is initiated.
Step 407, after the connection between the base station and the OMC is successfully established, the base station sends a request configuration message to the OMC.
And step 408, after receiving the configuration sent by the OMC, the base station activates according to the attribute of the configuration setting itself, and enters into execution of a normal station opening process.
Referring to fig. 5, the OMC side mainly performs the following steps:
step 501, the OMC receives the DHCP discover packet and extracts the SN therein.
Wherein, OMC is configured with DHCP Server function; after receiving the DHCP discover packet on the network, the OMC analyzes the Option 124 field in the packet and extracts the SN number in the packet.
If option 124 is not resolved, then the message is ignored and not processed;
and if the SN is analyzed, searching the configuration corresponding to the SN in the stored configuration table.
Step 502, the startup configuration parameters corresponding to the SN are sent to the base station through a DHCP response message.
If the starting configuration parameters corresponding to the SN are found, responding to the DHCP request of the base station; sending start configuration parameters including the IP of the base station, the OMC IP and the subnet mask of the base station to the base station through a DHCP response message according to the information in the base station configuration; if the preset starting configuration parameters of the base station also comprise DNS, relevant network configuration information such as a lease gateway and the like is also sent to the base station.
If not, the message is ignored and not processed.
Step 503, after receiving the connection request initiated by the base station, the OMC determines whether the IP of the opposite end is in the stored base station configuration table, and if not, refuses to establish the connection.
Step 504, after the OMC establishes connection with the base station, if a configuration file acquisition request sent by the base station is received, the configuration file of the base station is sent to the base station.
In the above example, it can be realized that the initialization base station and the abnormal state base station, which have been installed on the site at the far end, automatically download the correct configuration from the OMC when starting, and then open the station correctly. The OMC is not additionally burdened, and the problem that when a temporary IP address is used, an abnormal base station is also connected with the OMC through the temporary IP address to cause OMC faults is avoided.
The communication method provided by the embodiment of the present invention is described above, and a communication apparatus provided by the embodiment of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 6, an embodiment of the present invention further provides a communication apparatus, which is applied to a base station, and the apparatus includes:
the message sending module 601 is configured to detect a start failure, send a dynamic host configuration protocol DHCP broadcast message to an operation maintenance center OMC, and carry the device number SN of the base station in the DHCP broadcast message.
If a starting failure occurs when a base station is started, for example, a Configuration file is abnormal, sending a Dynamic Host Configuration Protocol (DHCP) broadcast message (discover packet) to an OMC; specifically, DHCP is a network protocol of a local area network, and a server (OMC) controls a section of lP address range to allocate an lP address and a subnet mask to a client (base station); the base station sends DHCP broadcast message to the OMC, and carries the equipment Number (SN) of the base station in the DHCP broadcast message, and requests the OMC to allocate IP starting configuration parameters for the OMC.
Typically, each base station has a unique SN code that identifies the identity of the base station; optionally, the SN is stored in a Programmable read only memory (EEPROM) of the base station, so as to avoid the SN code from being damaged.
Alternatively, the base station may be installed at a remote end, networked by optical fiber or other means, and establish a communication connection with the OMC.
A message receiving module 602, configured to receive a DHCP response message of the OMC for the DHCP broadcast message, and acquire a start configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and the starting configuration parameters at least comprise a first Internet protocol address (IP) address of the base station, a second IP address of the OMC and a target subnet mask of the base station.
The base station receives a DHCP response message fed back by the OMC aiming at the DHCP broadcast message and acquires a starting configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and on the OMC side, the OMC stores the SN of the base station as an identification number of the base station and records the corresponding relation between the SN and the starting configuration parameters of the base station; referring to fig. 2, the OMC performs step 3, searches for a start configuration parameter corresponding to the SN after receiving the SN of the base station, and performs step 4, and sends the start configuration parameter to the base station through a DHCP response message.
The starting configuration parameters at least comprise a first IP address of a base station, a second IP address of the OMC and a target subnet mask of the base station; specifically, the first IP address is an actual IP address, which is configured for the base station in advance, and is a non-temporary address, and the base station configures its own IP address as the address, and then subsequently continues to use the address; the second IP address is used for sending a request to the OMC by the base station; the subnet mask is used for dividing the first IP address and/or the second IP address into a network address and a host address, and is used for identifying the network address and the host address by the base station.
A parameter configuration module 603, configured to configure a corresponding parameter according to the start configuration parameter, and establish a connection with the OMC.
The base station configures each corresponding parameter according to the start configuration parameter, for example, configures its own IP address as a first IP address, configures its own subnet mask as the target subnet mask, and establishes a connection with the OMC according to a second IP address.
A request sending module 604, configured to send a configuration file obtaining request to the OMC.
After establishing connection with the OMC, the base station sends a configuration file acquisition request to the OMC and waits for the OMC to acquire a configuration file fed back by the request according to the configuration file; and if the OMC finds the configuration file corresponding to the base station according to the configuration file acquisition request, the OMC feeds back the configuration file to the base station, and the base station receives the configuration file and then executes a self-starting process according to the configuration file.
Optionally, the configuration file is a startup configuration file, and the configuration file mainly includes a software/hardware architecture of the base station device, a connection mode of modules and boards, a mapping relationship between a cell/sector and an antenna feeder, a network parameter, a configuration parameter of a transmission parameter (including a physical layer, a link layer, and a network layer), and the like. The self-starting function can improve the station opening efficiency of the base station to a certain extent, reduce the station opening cost and reduce the personnel investment.
Optionally, in this embodiment of the present invention, the parameter configuration module 603 includes:
a configuration submodule, configured to configure the IP address of the base station as a first IP address, and configure the subnet mask of the base station as the target subnet mask;
and the connection submodule is used for sending the connection request with the OMC to the second IP address and establishing connection with the OMC.
Optionally, in this embodiment of the present invention, the message sending module 601 includes:
the acquisition submodule is used for receiving the starting operation and acquiring a preset configuration file;
a determining submodule, configured to determine that the booting fails if at least one of the following conditions is detected:
the configuration file is missing;
a format error of the configuration file;
and missing or erroneous values for configuration items in the configuration file.
Optionally, in an embodiment of the present invention, the apparatus includes:
the starting execution module is used for receiving the configuration file which is fed back by the OMC according to the configuration file acquisition request;
and executing a starting process according to the configuration file.
Optionally, in the embodiment of the present invention, the start configuration parameters further include network configuration parameters;
the network configuration parameters include at least one of a gateway, a domain name and a domain name system DNS.
The communication device provided in the embodiment of the present invention can implement each process implemented by the base station side in the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
In the embodiment of the present invention, when detecting a start failure, the message sending module 601 sends a dynamic host configuration protocol DHCP broadcast message to an operation maintenance center OMC, and the DHCP broadcast message carries an equipment number SN of the base station; a message receiving module 602 receives a DHCP response message of the OMC for the DHCP broadcast message, and obtains a start configuration parameter carried in the DHCP response message; the parameter configuration module 603 configures corresponding parameters according to the start configuration parameters, establishes connection with the OMC, and sends a configuration file acquisition request to the OMC by the request sending module 604; and acquiring a first IP address and a subnet mask through a DHCP session, setting the IP address of the base station as the first IP address, establishing connection with the OMC through a second IP address, acquiring a configuration file, and realizing self-starting of the base station. The embodiment of the invention can be applied to a far-end base station and a near-end base station, and does not increase extra burden on the OMC; and the OMC fault caused by the fact that the abnormal base station is also connected with the OMC through the temporary IP address when the temporary IP address is used is avoided; the embodiment of the invention solves the defect problem existing in the abnormal starting mode of the base station.
Referring to fig. 7, an embodiment of the present invention further provides a communication apparatus, which is applied to an operation and maintenance center OMC, where the apparatus includes:
the SN obtaining module 701 is configured to receive a dynamic host configuration protocol DHCP broadcast message sent by a base station, and obtain an equipment number SN of the base station carried in the DHCP broadcast message.
If the OMC receives the DHCP broadcast message, the base station side has abnormal starting condition; specifically, when the base station is started, if a starting failure occurs, for example, a configuration file is abnormal, a DHCP broadcast message is sent to the OMC; DHCP is a network protocol of a local area network, a server (OMC) controls a section of lP address range, and an lP address and a subnet mask are distributed for a client (base station); the base station sends DHCP broadcast message to the OMC, and carries the equipment Number (SN) of the base station in the DHCP broadcast message, and requests the OMC to allocate IP starting configuration parameters for the OMC.
After receiving the DHCP broadcast message, the OMC acquires the SN carried therein; typically, each base station has a unique SN code that identifies the identity of the base station; and the OMC stores the SN of the base station as the unique identification of the base station.
A parameter determining module 702, configured to determine a preset startup configuration parameter corresponding to the SN, carry the startup configuration parameter in a DHCP response message for the DHCP broadcast message, and send the DHCP response message to the base station; wherein the start configuration parameters at least include a first internet protocol address, IP, address of the base station, a second IP address of the OMC, and a target subnet mask of the base station.
After obtaining the SN, the OMC searches a preset starting configuration parameter corresponding to the SN; and the OMC stores the SN of the base station as an identification number of the base station in advance, records the corresponding relation between the SN and the starting configuration parameter of the base station, searches the starting configuration parameter corresponding to the SN according to the corresponding relation, carries the starting configuration parameter in a DHCP response message aiming at the DHCP broadcast message, and sends the DHCP response message to the base station.
Specifically, the start configuration parameters at least include a first IP address of the base station, a second IP address of the OMC, and a target subnet mask of the base station; specifically, the first IP address is an actual IP address, which is configured for the base station in advance, and is a non-temporary address, and the base station configures its own IP address as the address, and then subsequently continues to use the address; the second IP address is used for sending a request to the OMC by the base station; the subnet mask is used for dividing the first IP address and/or the second IP address into a network address and a host address, and is used for identifying the network address and the host address by the base station.
Optionally, if the OMC does not find the start configuration parameter corresponding to the SN, the process is ended, and the DHCP broadcast message is ignored.
A first request receiving module 703 is configured to receive an OMC connection establishment request sent by the base station after configuring the corresponding parameter according to the start configuration parameter, and establish a connection with the base station.
The OMC receives an OMC connection establishment request sent by a base station and establishes connection with the base station; the base station configures each corresponding parameter according to the start configuration parameter, for example, configures its own IP address as a first IP address, and configures its own subnet mask as the target subnet mask; and establishing connection with the OMC according to the second IP address, and sending a connection establishment request to the OMC. And the OMC establishes connection with the base station according to the connection establishment request.
A second request receiving module 704, configured to receive a configuration file obtaining request sent by the base station.
After the OMC establishes connection with a base station, receiving a configuration file acquisition request sent by the base station; and if the OMC finds the configuration file corresponding to the base station according to the configuration file acquisition request, the OMC feeds back the configuration file to the base station, and the base station receives the configuration file and then executes a self-starting process according to the configuration file.
Optionally, the configuration file is a startup configuration file, and the configuration file mainly includes a software/hardware architecture of the base station device, a connection mode of modules and boards, a mapping relationship between a cell/sector and an antenna feeder, a network parameter, a configuration parameter of a transmission parameter (including a physical layer, a link layer, and a network layer), and the like. The self-starting function can improve the station opening efficiency of the base station to a certain extent, reduce the station opening cost and reduce the personnel investment.
Optionally, in this embodiment of the present invention, the first request receiving module 703 includes:
a receiving submodule, configured to receive an OMC connection establishment request sent by the base station after configuring corresponding parameters according to the start configuration parameters;
an address acquisition submodule, configured to acquire the IP address of the base station carried in the connection establishment request;
and the connection establishing submodule is used for establishing connection of the base station if the IP address is the same as the first IP address.
Optionally, in an embodiment of the present invention, the apparatus includes:
and the file sending module is used for feeding back the configuration file of the base station to the base station.
The communication device provided in the embodiment of the present invention can implement each process implemented by the OMC side in the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
In the embodiment of the present invention, an SN obtaining module 701 receives a dynamic host configuration protocol DHCP broadcast message sent by a base station, and obtains an equipment number SN of the base station carried in the DHCP broadcast message; a parameter determining module 702 determines a preset start configuration parameter corresponding to the SN, carries the start configuration parameter in a DHCP response message for the DHCP broadcast message, and sends the DHCP response message to the base station; a first request receiving module 703 receives an OMC connection establishment request sent by the base station after configuring corresponding parameters according to the start configuration parameters, and establishes a connection with the base station; the second request receiving module 704 receives a configuration file obtaining request sent by the base station, and if the configuration file of the base station exists, feeds back the configuration file to the base station; and sending the first IP address and the subnet mask to the base station through the DHCP session, so that the base station establishes connection with the OMC through the second IP address after setting the own IP address as the first IP address, acquires a configuration file and realizes the self-starting of the base station. The embodiment of the invention can be applied to a far-end base station and a near-end base station, and does not increase extra burden on the OMC; and the OMC fault caused by the fact that the abnormal base station is also connected with the OMC through the temporary IP address when the temporary IP address is used is avoided; the embodiment of the invention solves the defect problem existing in the abnormal starting mode of the base station.
On the other hand, the embodiment of the present invention further provides an electronic device, which includes a memory, a processor, a bus, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the steps in the communication method are implemented.
For example, fig. 8 shows a schematic physical structure diagram of an electronic device.
As shown in fig. 8, the electronic device may include: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call logic instructions in the memory 830 to perform the following method:
detecting the starting failure, sending a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC), and carrying the equipment number (SN) of the base station in the DHCP broadcast message;
receiving a DHCP response message of the OMC aiming at the DHCP broadcast message, and acquiring a starting configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and at least comprise a first Internet protocol address (IP) address of the base station, a second IP address of the OMC and a target subnet mask of the base station;
configuring corresponding parameters according to the starting configuration parameters, and establishing connection with the OMC;
and sending a configuration file acquisition request to the OMC.
Or
Receiving a Dynamic Host Configuration Protocol (DHCP) broadcast message sent by a base station, and acquiring an equipment number (SN) of the base station carried in the DHCP broadcast message;
determining preset starting configuration parameters corresponding to the SN, carrying the starting configuration parameters in a DHCP response message aiming at the DHCP broadcast message, and sending the DHCP response message to the base station; wherein the start configuration parameters at least include a first internet protocol address, IP, address of the base station, a second IP address of the OMC, and a target subnet mask of the base station;
receiving an OMC connection establishment request sent by the base station after the base station configures corresponding parameters according to the starting configuration parameters, and establishing connection with the base station;
and receiving a configuration file acquisition request sent by the base station.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In still another aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the communication method provided in the foregoing embodiments, for example, the computer program includes:
detecting the starting failure, sending a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC), and carrying the equipment number (SN) of the base station in the DHCP broadcast message;
receiving a DHCP response message of the OMC aiming at the DHCP broadcast message, and acquiring a starting configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and at least comprise a first Internet protocol address (IP) address of the base station, a second IP address of the OMC and a target subnet mask of the base station;
configuring corresponding parameters according to the starting configuration parameters, and establishing connection with the OMC;
and sending a configuration file acquisition request to the OMC.
Or
Receiving a Dynamic Host Configuration Protocol (DHCP) broadcast message sent by a base station, and acquiring an equipment number (SN) of the base station carried in the DHCP broadcast message;
determining preset starting configuration parameters corresponding to the SN, carrying the starting configuration parameters in a DHCP response message aiming at the DHCP broadcast message, and sending the DHCP response message to the base station; wherein the start configuration parameters at least include a first internet protocol address, IP, address of the base station, a second IP address of the OMC, and a target subnet mask of the base station;
receiving an OMC connection establishment request sent by the base station after the base station configures corresponding parameters according to the starting configuration parameters, and establishing connection with the base station;
and receiving a configuration file acquisition request sent by the base station.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. A communication method applied to a base station, the method comprising:
detecting the starting failure, sending a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC), and carrying the equipment number (SN) of the base station in the DHCP broadcast message;
receiving a DHCP response message of the OMC aiming at the DHCP broadcast message, and acquiring a starting configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and at least comprise a first Internet protocol address (IP) address of the base station, a second IP address of the OMC and a target subnet mask of the base station;
configuring corresponding parameters according to the starting configuration parameters, and establishing connection with the OMC;
and sending a configuration file acquisition request to the OMC.
2. The communication method according to claim 1, wherein the step of configuring the corresponding parameter according to the start-up configuration parameter and establishing the connection with the OMC includes:
configuring the IP address of the base station as a first IP address, and configuring the subnet mask of the base station as the target subnet mask;
and sending the connection request with the OMC to the second IP address, and establishing connection with the OMC.
3. The communication method according to claim 1, wherein the step of detecting a start-up failure comprises:
receiving a starting operation, and acquiring a preset configuration file;
determining a startup failure if at least one of the following conditions is detected:
the configuration file is missing;
a format error of the configuration file;
and missing or erroneous values for configuration items in the configuration file.
4. The communication method according to claim 1, wherein after the step of sending a configuration file acquisition request to the OMC, the method comprises:
receiving a configuration file requested to be fed back by the OMC according to the configuration file;
and executing a starting process according to the configuration file.
5. The communication method according to claim 1, wherein the start-up configuration parameters further include network configuration parameters;
the network configuration parameters include at least one of a gateway, a domain name and a domain name system DNS.
6. A communication method applied to an Operation and Maintenance Center (OMC), the method comprising:
receiving a Dynamic Host Configuration Protocol (DHCP) broadcast message sent by a base station, and acquiring an equipment number (SN) of the base station carried in the DHCP broadcast message;
determining preset starting configuration parameters corresponding to the SN, carrying the starting configuration parameters in a DHCP response message aiming at the DHCP broadcast message, and sending the DHCP response message to the base station; wherein the start configuration parameters at least include a first internet protocol address, IP, address of the base station, a second IP address of the OMC, and a target subnet mask of the base station;
receiving an OMC connection establishment request sent by the base station after the base station configures corresponding parameters according to the starting configuration parameters, and establishing connection with the base station;
and receiving a configuration file acquisition request sent by the base station.
7. The communication method according to claim 6, wherein the step of receiving an OMC connection establishment request sent by the base station after configuring the corresponding parameter according to the start configuration parameter, and establishing a connection with the base station includes:
receiving an OMC connection establishment request sent by the base station after the base station configures corresponding parameters according to the starting configuration parameters;
acquiring the IP address of the base station carried in the connection establishment request;
and if the IP address is the same as the first IP address, the base station establishes connection.
8. The communication method according to claim 6, wherein the step of receiving the configuration file acquisition request sent by the base station is followed by:
and feeding back the configuration file of the base station to the base station.
9. A communication apparatus applied to a base station, the apparatus comprising:
the message sending module is used for sending a Dynamic Host Configuration Protocol (DHCP) broadcast message to an Operation Maintenance Center (OMC) when the starting failure is detected, and the DHCP broadcast message carries the equipment number (SN) of the base station;
a message receiving module, configured to receive a DHCP response message of the OMC for the DHCP broadcast message, and acquire a start configuration parameter carried in the DHCP response message; the starting configuration parameters are determined by the OMC according to the SN, and at least comprise a first Internet protocol address (IP) address of the base station, a second IP address of the OMC and a target subnet mask of the base station;
the parameter configuration module is used for configuring corresponding parameters according to the starting configuration parameters and establishing connection with the OMC;
and the request sending module is used for sending a configuration file acquisition request to the OMC.
10. A communication apparatus applied to an operation and maintenance center, OMC, the apparatus comprising:
the SN acquisition module is used for receiving a Dynamic Host Configuration Protocol (DHCP) broadcast message sent by a base station and acquiring an equipment number (SN) of the base station carried in the DHCP broadcast message;
a parameter determining module, configured to determine a preset startup configuration parameter corresponding to the SN, carry the startup configuration parameter in a DHCP response message for the DHCP broadcast message, and send the DHCP response message to the base station; wherein the start configuration parameters at least include a first internet protocol address, IP, address of the base station, a second IP address of the OMC, and a target subnet mask of the base station;
a first request receiving module, configured to receive an OMC connection establishment request sent by the base station after configuring corresponding parameters according to the start configuration parameters, and establish a connection with the base station;
and the second request receiving module is used for receiving the configuration file acquisition request sent by the base station.
11. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, characterized in that the computer program, when executed by the processor, implements the steps of the communication method according to any of claims 1 to 8.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the communication method according to one of claims 1 to 8.
CN201911102507.7A 2019-11-12 2019-11-12 Communication method and device Active CN112866309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911102507.7A CN112866309B (en) 2019-11-12 2019-11-12 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911102507.7A CN112866309B (en) 2019-11-12 2019-11-12 Communication method and device

Publications (2)

Publication Number Publication Date
CN112866309A true CN112866309A (en) 2021-05-28
CN112866309B CN112866309B (en) 2022-10-04

Family

ID=75984432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911102507.7A Active CN112866309B (en) 2019-11-12 2019-11-12 Communication method and device

Country Status (1)

Country Link
CN (1) CN112866309B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086167A (en) * 2022-05-31 2022-09-20 上海商汤临港智能科技有限公司 Parameter configuration method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075590A (en) * 2010-12-16 2011-05-25 中兴通讯股份有限公司 Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station
CN103428681A (en) * 2013-08-06 2013-12-04 大唐移动通信设备有限公司 Base station self-starting configuration parameter acquisition method, base station self-starting method and equipment
WO2014121502A1 (en) * 2013-02-07 2014-08-14 华为技术有限公司 Startup configuration method in base station, base station and server
CN104618942A (en) * 2014-12-30 2015-05-13 大唐移动通信设备有限公司 Base station and PTN (Packet Transport Network) networking based automatic startup method thereof and RNC (Radio Network Controller)
CN108306992A (en) * 2016-08-09 2018-07-20 大唐移动通信设备有限公司 A kind of method of the blind startup in base station, base station and centralized Dynamic Host Configuration Protocol server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075590A (en) * 2010-12-16 2011-05-25 中兴通讯股份有限公司 Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station
WO2014121502A1 (en) * 2013-02-07 2014-08-14 华为技术有限公司 Startup configuration method in base station, base station and server
CN103428681A (en) * 2013-08-06 2013-12-04 大唐移动通信设备有限公司 Base station self-starting configuration parameter acquisition method, base station self-starting method and equipment
CN104618942A (en) * 2014-12-30 2015-05-13 大唐移动通信设备有限公司 Base station and PTN (Packet Transport Network) networking based automatic startup method thereof and RNC (Radio Network Controller)
CN108306992A (en) * 2016-08-09 2018-07-20 大唐移动通信设备有限公司 A kind of method of the blind startup in base station, base station and centralized Dynamic Host Configuration Protocol server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086167A (en) * 2022-05-31 2022-09-20 上海商汤临港智能科技有限公司 Parameter configuration method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112866309B (en) 2022-10-04

Similar Documents

Publication Publication Date Title
US6958996B2 (en) Router with automatic protocol configuration and methods of use
US7159016B2 (en) Method and apparatus for configuring an endpoint device to a computer network
US20050220099A1 (en) Packet relay apparatus and control method for data relay apparatus
JP2002368763A (en) Network system, server unit and client unit, and method and program for providing network ip address
KR20040071131A (en) A method for setting up a ipoa channel based default administration channel
CN106572200A (en) IP address configuration method and IP address configuration device for baseboard management controller BMC
WO2017177798A1 (en) Method and system for discovering cloud access controller by access point
CN102594944B (en) A kind of method of automatic configuration and the network equipment
US20080133721A1 (en) Method For Installing An Automation Component And Correspoding Automation System
US9634984B2 (en) Method for configuring DNS server and driving apparatus of wireless data access device
CN103685398B (en) Communication connection method for building up and communication system
CN111147314A (en) Switch upgrading method, device and storage medium
US20160094388A1 (en) Backup Wide Area Network Connection For Access Points And Routers
CN112866309B (en) Communication method and device
CN100574480C (en) Far end radio frequency unit initiated configuration method based on the DHCP agreement
CN109640181B (en) Method for upgrading home gateway through set top box
CN107769979B (en) Method for synchronous configuration between routers
CN113038499A (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
CN109286575B (en) Message priority configuration method, device and network equipment
US11750560B2 (en) Zero Touch Provisioning for a network element over IPv6 unnumbered interfaces in OSPFv3 networks
KR102378070B1 (en) Method of Controlling an IP Address Acquisition Procedure in a Dual Stack Home Gateway
CN114448790A (en) Self-adaptive configuration system, method, network equipment and storage medium
CN113194115A (en) Method for automatically deploying client, network equipment and storage medium
CN107920004B (en) Network connection method, device and system of gateway
CN107465554B (en) Route switching method and system for wireless networking and single network application

Legal Events

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