CN102075590A - Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station - Google Patents

Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station Download PDF

Info

Publication number
CN102075590A
CN102075590A CN2010105916815A CN201010591681A CN102075590A CN 102075590 A CN102075590 A CN 102075590A CN 2010105916815 A CN2010105916815 A CN 2010105916815A CN 201010591681 A CN201010591681 A CN 201010591681A CN 102075590 A CN102075590 A CN 102075590A
Authority
CN
China
Prior art keywords
base station
message
dhcp
address
dynamic host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010105916815A
Other languages
Chinese (zh)
Inventor
范景辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2010105916815A priority Critical patent/CN102075590A/en
Publication of CN102075590A publication Critical patent/CN102075590A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses methods and corresponding systems for acquiring and configuring network parameters by utilizing a base station, and the methods and the systems are applied to the electrifying process of the base station. The method for acquiring the network parameters comprises: the base station broadcasts and transmits a dynamic host configuration protocol (DHCP) discovery message; when a DHCP server receives the message, the DHCP server replies a DHCP providing massage to the base station, wherein an IP (Internet Protocol) address and other relevant configuration information which are allocated for the base state are carried in the DHCP providing message; and when the base station receives the DHCP providing message, the base station acquires the IP address and other relevant configuration information which are carried in the massage. The method for configuring the network parameters comprises: the base station broadcasts and transmits a DHCP request massage after acquiring the network parameters according to the method for acquiring the network parameters, wherein the DHCP request massage at least carries identification information of the DHCP server which distributes the IP address and other relevant configuration information for the DHCP request massage; and after the base station receives a DHCP response message replied by the DHCP server, the base station configures the acquired IP address and other relevant configuration information to the base station which is not configured with network parameters yet.

Description

A kind of base station obtains, the method for configuration network parameter and corresponding system
Technical field
The present invention relates to the communications field, relate in particular to that a kind of base station obtains, the method for configuration network parameter and corresponding system.
Background technology
The full name of DHCP is DHCP (Dynamic Host Configuration Protocol), by IETF(Internet Engineering Task Force, the network engineering task groups) design, detailed protocol contents is recorded in RFC(Request For Comments, Request for Comment) in document rfc2131 and the rfc1541.The purpose of this design of protocol is in order to alleviate TCP/IP(Transmission Control Protocol/Internet Protocol, transmission control protocol/internet interconnection protocol) planning of network, the burden that administers and maintains solve problems such as IP address space shortage.The server of operation DHCP puts together the TCP/IP network settings.And DHCP itself is designed to BOOTP(Bootstrap Protocol, Bootstrap Protocol) expansion, to need to support the non-disk workstation of network configuration information, to needs fixedly the system of IP corresponding support also is provided.
Along with the network application of embedded device more and more widely, particularly the complexity of base station system from the networking to the network operation is more and more higher, and feasible mode by manual configuration base station network parameter (comprising IP address and other relevant configured parameters) seems more and more inconvenient and inapplicable.
Summary of the invention
The technical problem to be solved in the present invention provides method and the corresponding system that a kind of base station obtains network parameter, thereby overcomes the defective that base station in the prior art can only obtain network parameter based on artificial set-up mode.
For addressing the above problem, the invention provides the method that a kind of base station obtains network parameter, be applied to comprise in the power up of base station:
Base station broadcast sends DHCP (DHCP) and finds message;
After Dynamic Host Configuration Protocol server receives this message, reply DHCP to described base station message is provided, wherein carry IP address and other relevant configuration information into described base station assigns;
After described base station receives that described DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message.
Further, said method also can have following feature:
Be provided with the identification information of base station and the corresponding relation of IP address and other relevant configuration information in the described Dynamic Host Configuration Protocol server;
The described DHCP that described base station broadcast sends finds to carry in the message identification information of described base station;
After described Dynamic Host Configuration Protocol server receives this message, reply DHCP to described base station message be provided, wherein carry IP address and other relevant configuration information, specifically comprise into described base station assigns:
After described Dynamic Host Configuration Protocol server receives described DHCP discovery message, in described corresponding relation, search corresponding IP address and other relevant configuration information according to the identification information of the described base station of carrying in this message, and this IP address that finds and other relevant configuration information are carried at the described DHCP that replies to described base station provide in the message.
Further, said method also can have following feature:
Be preset with the identification information of this Dynamic Host Configuration Protocol server in the DHCP option 43 of described Dynamic Host Configuration Protocol server, and be preset with the identification information of the Dynamic Host Configuration Protocol server that can be this base station assigns network parameter in the described base station;
Then described Dynamic Host Configuration Protocol server provides the identification information that also carries this Dynamic Host Configuration Protocol server in the message at the DHCP that replys to described base station;
After described base station receives that described DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message, specifically comprise:
Described base station if it is consistent with the identification information of the local Dynamic Host Configuration Protocol server of presetting to judge the identification information of the Dynamic Host Configuration Protocol server that this message carries, then obtains IP address and other relevant configuration information of carrying in this message after receiving that DHCP provides message.
Correspondingly, the present invention also provides a kind of base station to obtain the system of network parameter, comprising:
The base station is used for broadcast transmission DHCP (DHCP) and finds message; After also being used to receive that DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message;
Dynamic Host Configuration Protocol server after being used to receive described DHCP and finding message, is replied DHCP to described base station message is provided, and wherein carries IP address and other relevant configuration information into described base station assigns.
Further, said system also can have following feature:
Be provided with the identification information of base station and the corresponding relation of IP address and other relevant configuration information in the described Dynamic Host Configuration Protocol server;
Described base station is used for finding that at the described DHCP of broadcast transmission message carries the identification information of described base station;
Described Dynamic Host Configuration Protocol server is used for after receiving described DHCP discovery message, in described corresponding relation, search corresponding IP address and other relevant configuration information according to the identification information of the described base station of carrying in this message, and this IP address that finds and other relevant configuration information are carried at the described DHCP that replies to described base station provide in the message.
Further, said system also can have following feature:
Be preset with the identification information of this Dynamic Host Configuration Protocol server in the DHCP option 43 of described Dynamic Host Configuration Protocol server, and be preset with the identification information of the Dynamic Host Configuration Protocol server that can be this base station assigns network parameter in the described base station;
Described Dynamic Host Configuration Protocol server also is used for providing message also to carry the identification information of this Dynamic Host Configuration Protocol server at the DHCP that replys to described base station;
Correspondingly, described base station is used for after receiving that DHCP provides message, if it is consistent with the identification information of the local Dynamic Host Configuration Protocol server of presetting to judge the identification information of the Dynamic Host Configuration Protocol server that this message carries, then obtain IP address and other relevant configuration information of carrying in this message.
Another technical problem that the present invention will solve provides a kind of method and corresponding system of base station configuration network parameter, thus alleviate human intervention the influence that may cause system.
For addressing the above problem, the invention provides a kind of method of base station configuration network parameter, comprising:
Base station broadcast sends DHCP (DHCP) and finds message;
After Dynamic Host Configuration Protocol server receives this message, reply DHCP to described base station message is provided, wherein carry IP address and other relevant configuration information into described base station assigns;
After described base station receives that described DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message;
Described base station broadcast sends the DHCP request message, wherein carries the identification information that distributes the Dynamic Host Configuration Protocol server of described IP address and other relevant configuration information for it at least;
After the dhcp response message that described Dynamic Host Configuration Protocol server replys is received in described base station, the described IP address that gets access to and other relevant configuration information are configured to as yet on this base station of configuration network parameter not.
Further, said method also can have following feature:
Be provided with the identification information of base station and the corresponding relation of IP address and other relevant configuration information in the described Dynamic Host Configuration Protocol server;
The described DHCP that described base station broadcast sends finds to carry in the message identification information of described base station;
After described Dynamic Host Configuration Protocol server receives this message, reply DHCP to described base station message be provided, wherein carry IP address and other relevant configuration information, specifically comprise into described base station assigns:
After described Dynamic Host Configuration Protocol server receives described DHCP discovery message, in described corresponding relation, search corresponding IP address and other relevant configuration information according to the identification information of the described base station of carrying in this message, and this IP address that finds and other relevant configuration information are carried at the described DHCP that replies to described base station provide in the message.
Further, said method also can have following feature:
Be preset with the identification information of this Dynamic Host Configuration Protocol server in the DHCP option 43 of described Dynamic Host Configuration Protocol server, and be preset with the identification information of the Dynamic Host Configuration Protocol server that can be this base station assigns network parameter in the described base station;
Then described Dynamic Host Configuration Protocol server provides the identification information that also carries this Dynamic Host Configuration Protocol server in the message at the DHCP that replys to described base station;
After described base station receives that described DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message, specifically comprise:
Described base station if it is consistent with the identification information of the local Dynamic Host Configuration Protocol server of presetting to judge the identification information of the Dynamic Host Configuration Protocol server that this message carries, then obtains IP address and other relevant configuration information of carrying in this message after receiving that DHCP provides message.
Further, said method also can have following feature:
After the dhcp response message that described Dynamic Host Configuration Protocol server replys is received in described base station, the described IP address that gets access to and other relevant configuration information are configured to as yet on this base station of configuration network parameter not, specifically comprise:
After the dhcp response message of described Dynamic Host Configuration Protocol server answer is received in described base station, if judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are identical with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station; If judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are different with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station, and update stored on this base station.
Further, said method also can comprise:
After the dhcp response message of described Dynamic Host Configuration Protocol server answer is received in described base station, if judge this base station configuration network parameter, judge then whether the described IP address and other relevant configuration information that get access to be identical with IP address and other relevant configured parameters of this base station preservation, if identical, then layoutprocedure finishes; If different, then the described described IP address that gets access to and other relevant configuration information updated stored on this base station, and restart this base station.
Further, said method also can comprise:
Described base station starts timer respectively when sending described DHCP discovery message and DHCP request message;
If described base station is when corresponding timer expiry, do not receive that still the DHCP that described Dynamic Host Configuration Protocol server is replied provides message or dhcp response message, whether the described DHCP that perhaps receives provides message or dhcp response message mistake, then judge this base station configuration network parameter; If dispose, then initiate configuration network parameter flow process again; If configuration after then obtaining the network parameter of preservation and be configured on this base station success from this base station, is initiated configuration network parameter flow process again; If obtain the network parameter failure of preservation or dispose this network parameter failure, then initiate configuration network parameter flow process again.
Correspondingly, the present invention also provides a kind of system of base station configuration network parameter, comprising:
The base station is used for broadcast transmission DHCP (DHCP) and finds message; After also being used to receive that DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message; Also be used for broadcast transmission DHCP request message, wherein carry the identification information that distributes the Dynamic Host Configuration Protocol server of described IP address and other relevant configuration information for it at least; Also be used for after receiving the dhcp response message that described Dynamic Host Configuration Protocol server is replied, the described IP address that gets access to and other relevant configuration information be configured to as yet on this base station of configuration network parameter not;
Dynamic Host Configuration Protocol server after being used to receive described DHCP and finding message, is replied DHCP to described base station message is provided, and wherein carries IP address and other relevant configuration information into described base station assigns; Also be used for after receiving the DHCP request message that carries self identification information, reply the dhcp response message.
Further, said system also can have following feature:
Described base station is used for after receiving the dhcp response message that described Dynamic Host Configuration Protocol server is replied, if judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are identical with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station; If judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are different with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station, and update stored on this base station.
Further, said system also can have following feature:
Described base station also is used for after receiving the dhcp response message that described Dynamic Host Configuration Protocol server is replied, if judge this base station configuration network parameter, be used to also then judge whether the described IP address and other relevant configuration information that get access to be identical with IP address and other relevant configured parameters of this base station preservation, if identical, then layoutprocedure finishes; If different, then are used for the described described IP address that gets access to and other relevant configuration information are updated stored in this base station, and restart this base station.
Further, said system also can have following feature:
Described base station also is used for starting timer respectively when sending described DHCP discovery message and DHCP request message;
Described base station also is used for when corresponding timer expiry, do not provide message or dhcp response message if still receive the DHCP that described Dynamic Host Configuration Protocol server is replied, whether the described DHCP that perhaps receives provides message or dhcp response message mistake, then judge this base station configuration network parameter; If dispose, then be used for initiating again configuration network parameter flow process; If configuration, after then being used for obtaining the network parameter of preservation and being configured on this base station success, initiate configuration network parameter flow process again from this base station; If obtain the network parameter failure of preservation or dispose this network parameter failure, then be used for initiating again configuration network parameter flow process.
The present invention has reduced the influence of network parameters such as artificial configurating base station IP address to the stability of a system, and the ease for use and the fail safe that have improved system.
Description of drawings
Fig. 1 be in the embodiment of the invention base station obtain, the flow chart of configuration network parameter;
Fig. 2 is the particular flow sheet of base station configuration network parameter in the application example of the present invention.
Embodiment
Hereinafter will be elaborated to embodiments of the invention in conjunction with the accompanying drawings.Need to prove that under the situation of not conflicting, embodiment among the application and the feature among the embodiment be combination in any mutually.
In the present embodiment, the base station obtains, the method for configuration network parameter, as shown in Figure 1, may further comprise the steps (need to prove that the network parameter that relates to comprises IP address and other relevant configuration information (as mask etc.) herein):
Step 10, power on after, the base station is as dhcp client, sends DHCP Discover broadcasting packet, the identification information of this base station of portability in this message; Wherein, this identification information is used for unique this base station that identifies, and more preferably can adopt the MAC(Media Access Control of this base station, medium access control) address is as its identification information;
After step 20, DHCP service end receive this message, reply DHCP Offer message, wherein carry IP address and other relevant configuration information into this base station assigns to above-mentioned base station;
In order to realize controllability, the identification information of base station and the corresponding relation of IP address and relevant configuration information can be set in Dynamic Host Configuration Protocol server in advance to this process of base station assigns IP address; Then Dynamic Host Configuration Protocol server be the IP address of base station assigns and other relevant configuration information for DHCP Discover broadcasting packet that it receives in the corresponding IP address and the relevant configuration information of identification information of the base station of carrying;
After above-mentioned DHCP Offer message is received in step 30, base station, obtain IP address and other relevant configuration information of carrying in this message.
Owing to may exist a plurality of Dynamic Host Configuration Protocol server can be same base station assigns network parameter in the network, and the parameter of a Dynamic Host Configuration Protocol server for its distribution can only be adopted in a base station, then can be in advance at the DHCP of Dynamic Host Configuration Protocol server option 43(Vendor Specific Information option) in the identification information of default this Dynamic Host Configuration Protocol server, and the default identification information that can be the Dynamic Host Configuration Protocol server of its distributed network parameters in the base station, wherein, the identification information of above-mentioned Dynamic Host Configuration Protocol server is used for this Dynamic Host Configuration Protocol server of unique sign.Then in step 20, Dynamic Host Configuration Protocol server also carries the identification information of this server in the DHCP Offer message of replying to the base station; Correspondingly, in step 30, the base station judges earlier whether the identification information of the Dynamic Host Configuration Protocol server that carries in this message is consistent with the identification information of the local Dynamic Host Configuration Protocol server of presetting after receiving DHCP Offer message, if consistent, then obtain IP address and other relevant configuration information of carrying in this message; If inconsistent, then abandon this message.
After execution of step 30, the flow process of obtaining network parameter has promptly been finished in the base station.
Step 40, base station send DHCP Request broadcasting packet, wherein carry the identification information of above-mentioned Dynamic Host Configuration Protocol server at least;
Step 50, base station are configured to the above-mentioned IP address that gets access to and other relevant configuration information on this base station after receiving the DHCP Ack message that above-mentioned Dynamic Host Configuration Protocol server is replied.
After configuration was finished, if run into the situation of this base station power-down, the information of above-mentioned configuration also can be lost.Therefore, still can use this IP address and other relevant configuration information, then also need above-mentioned IP address and other relevant configuration information are write the Flash(flash memory) for after guaranteeing to power on next time.Then the base station if obtain the network parameter failure from Dynamic Host Configuration Protocol server, then can be read above-mentioned IP address and other relevant configuration information, and be configured on this base station after being re-powered from Flash, can communication also normally power on to guarantee the base station.
Present embodiment also provides a kind of base station to obtain the system of network parameter, comprising:
The base station is used for broadcast transmission DHCP and finds message; After also being used to receive that DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message;
Dynamic Host Configuration Protocol server after being used to receive described DHCP and finding message, is replied DHCP to described base station message is provided, and wherein carries IP address and other relevant configuration information into described base station assigns.
Further,
Be provided with the identification information of base station and the corresponding relation of IP address and other relevant configuration information in the described Dynamic Host Configuration Protocol server;
Described base station is used for finding that at the described DHCP of broadcast transmission message carries the identification information of described base station;
Described Dynamic Host Configuration Protocol server is used for after receiving described DHCP discovery message, in described corresponding relation, search corresponding IP address and other relevant configuration information according to the identification information of the described base station of carrying in this message, and this IP address that finds and other relevant configuration information are carried at the described DHCP that replies to described base station provide in the message.
Further,
Be preset with the identification information of this Dynamic Host Configuration Protocol server in the DHCP option 43 of described Dynamic Host Configuration Protocol server, and be preset with the identification information of the Dynamic Host Configuration Protocol server that can be this base station assigns network parameter in the described base station;
Described Dynamic Host Configuration Protocol server also is used for providing message also to carry the identification information of this Dynamic Host Configuration Protocol server at the DHCP that replys to described base station;
Correspondingly, described base station is used for after receiving that DHCP provides message, if it is consistent with the identification information of the local Dynamic Host Configuration Protocol server of presetting to judge the identification information of the Dynamic Host Configuration Protocol server that this message carries, then obtain IP address and other relevant configuration information of carrying in this message.
Present embodiment also provides a kind of system of base station configuration network parameter, comprising:
The base station is used for broadcast transmission DHCP (DHCP) and finds message; After also being used to receive that DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message; Also be used for broadcast transmission DHCP request message, wherein carry the identification information that distributes the Dynamic Host Configuration Protocol server of described IP address and other relevant configuration information for it at least; Also be used for after receiving the dhcp response message that described Dynamic Host Configuration Protocol server is replied, the described IP address that gets access to and other relevant configuration information be configured to as yet on this base station of configuration network parameter not;
Dynamic Host Configuration Protocol server after being used to receive described DHCP and finding message, is replied DHCP to described base station message is provided, and wherein carries IP address and other relevant configuration information into described base station assigns; Also be used for after receiving the DHCP request message that carries self identification information, reply the dhcp response message.
Further,
Described base station is used for after receiving the dhcp response message that described Dynamic Host Configuration Protocol server is replied, if judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are identical with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station; If judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are different with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station, and update stored on this base station.
Further,
Described base station also is used for after receiving the dhcp response message that described Dynamic Host Configuration Protocol server is replied, if judge this base station configuration network parameter, be used to also then judge whether the described IP address and other relevant configuration information that get access to be identical with IP address and other relevant configured parameters of this base station preservation, if identical, then layoutprocedure finishes; If different, then are used for the described described IP address that gets access to and other relevant configuration information are updated stored in this base station, and restart this base station.
Further,
Described base station also is used for starting timer respectively when sending described DHCP discovery message and DHCP request message;
Described base station also is used for when corresponding timer expiry, do not provide message or dhcp response message if still receive the DHCP that described Dynamic Host Configuration Protocol server is replied, whether the described DHCP that perhaps receives provides message or dhcp response message mistake, then judge this base station configuration network parameter; If dispose, then be used for initiating again configuration network parameter flow process; If configuration, after then being used for obtaining the network parameter of preservation and being configured on this base station success, initiate configuration network parameter flow process again from this base station; If obtain the network parameter failure of preservation or dispose this network parameter failure, then be used for initiating again configuration network parameter flow process.
Below in conjunction with the drawings and the specific embodiments technical solution of the present invention is described in further detail.
As shown in Figure 2, the base station obtains, the method for configuration network parameter, may further comprise the steps:
Step 1: when the base station powers on, broadcast transmission DHCP Discover message, and timer T1 is set, carry the information such as MAC Address of this base station in the message.If receive the DHCP Offer message that the DHCP service end is returned before T1 is overtime, then execution in step 2; Otherwise, execution in step 6;
Step 2: verification is carried out to the DHCP Offer message that receives in the base station, comprises IP address and other relevant configuration information in the message;
Supposing has a Dynamic Host Configuration Protocol server in this place, base station network incessantly, then needs to be provided with in this base station in advance the identification information of the Dynamic Host Configuration Protocol server that can be its distributed network parameters.With this identification information is that zte001 is an example, and verification is carried out to the DHCP Offer message that receives in the base station, judges exactly whether the identification information of the Dynamic Host Configuration Protocol server of this DHCP Offer message of transmission that carries in this message is zte001; If then from this message, parse IP address and other relevant configuration information, execution in step 3; Otherwise, abandon this message, and after all DHCP Offer messages that receive before T1 is overtime all are dropped, execution in step 6;
Step 3: base station broadcast sends DHCP Request message, and timer T2 is set.Wherein, can be included as in this broadcasting packet its distributed network parameters Dynamic Host Configuration Protocol server identification information and for its IP address allocated information etc.If the DHCP Ack message of replying into the Dynamic Host Configuration Protocol server of its distributed network parameters is received in the base station before T2 is overtime, then execution in step 4; Otherwise, execution in step 6;
Step 4: verification is carried out to receiving DHCP Ack message in the base station, and this checking procedure can be that the base station judges whether comprised required overall network parameter in this DHCP Ack message, whether this Dynamic Host Configuration Protocol server IP address allocated is available etc.If verification is execution in step 5 then correctly; If check errors then sends DHCP Decline message, execution in step 6 to this Dynamic Host Configuration Protocol server;
Step 5: self configuration network parameter is judged in the base station whether, if not configuration, continue to judge then whether the network parameter of preserving among the network parameter that gets access to and the Flash is identical, if it is identical, then the network parameter that gets access to directly is configured on this base station, and the main control module in this base station reports BRS(Bear subsystem, the carrier system) power in advance successfully, the configuration network parametric procedure finishes;
If judge self not configuration network parameter, and the network parameter of preserving among the network parameter that gets access to and the Flash is different, then the base station is configured to this network parameter that gets access on this base station, and renewal is kept among the Flash, and reporting BRS to power in advance successfully to main control module, the configuration network parametric procedure finishes;
If self configuration network parameter is judged in the base station, further judge then whether the network parameter of preserving among the network parameter that gets access to and the Flash is identical, if identical, then network parameter configuration flow end; If different, then write the network parameter that gets access among the Flash and restart the base station after execution in step 1;
Step 6: judge whether configuration network parameter of this base station,, continue execution in step 1 or direct execution in step 1 behind the S1 duration of then delaying time if dispose; If not configuration, then execution in step 7;
Step 7: obtain the network parameter of preserving among the Flash, in two kinds of situation:
A. if the base station obtains network parameter and configuration successful from Flash, then send the BRS success message that powers in advance, and behind time-delay S1 duration, continue execution in step 1 to main control module;
B. if the base station obtains network parameter failure or the failure of configuration network parameter from Flash, judge then whether BRS powers in advance successful, the failure if BRS powers on is in advance then replied the BRS failed message that powers in advance to main control module, and through continuing execution in step 1 behind the time-delay S2 duration; If BRS powers on successfully in advance, then directly through continuing execution in step 1 behind the time-delay S2 duration.
From the foregoing description as can be seen, base station equipment is obtained static ip address and network parameter has very tight actual realization meaning because technical solution of the present invention is to solving, and fully take into account the processing of abnormal conditions in the implementation procedure, meanwhile by deep understanding to agreement, find a kind of solution message mistake alternant way method, in addition, the inventive method also has transplantation effect preferably, promptly can be used for to be used for other embedded system devices again on the related application of other base station systems.
One of ordinary skill in the art will appreciate that all or part of step in the said method can instruct related hardware to finish by program, described program can be stored in the computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of the foregoing description also can use one or more integrated circuits to realize.Correspondingly, each the module/unit in the foregoing description can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.

Claims (16)

1. a base station obtains the method for network parameter, is applied to comprise in the power up of base station:
Base station broadcast sends DHCP (DHCP) and finds message;
After Dynamic Host Configuration Protocol server receives this message, reply DHCP to described base station message is provided, wherein carry IP address and other relevant configuration information into described base station assigns;
After described base station receives that described DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message.
2. the method for claim 1 is characterized in that:
Be provided with the identification information of base station and the corresponding relation of IP address and other relevant configuration information in the described Dynamic Host Configuration Protocol server;
The described DHCP that described base station broadcast sends finds to carry in the message identification information of described base station;
After described Dynamic Host Configuration Protocol server receives this message, reply DHCP to described base station message be provided, wherein carry IP address and other relevant configuration information, specifically comprise into described base station assigns:
After described Dynamic Host Configuration Protocol server receives described DHCP discovery message, in described corresponding relation, search corresponding IP address and other relevant configuration information according to the identification information of the described base station of carrying in this message, and this IP address that finds and other relevant configuration information are carried at the described DHCP that replies to described base station provide in the message.
3. method as claimed in claim 1 or 2 is characterized in that:
Be preset with the identification information of this Dynamic Host Configuration Protocol server in the DHCP option 43 of described Dynamic Host Configuration Protocol server, and be preset with the identification information of the Dynamic Host Configuration Protocol server that can be this base station assigns network parameter in the described base station;
Then described Dynamic Host Configuration Protocol server provides the identification information that also carries this Dynamic Host Configuration Protocol server in the message at the DHCP that replys to described base station;
After described base station receives that described DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message, specifically comprise:
Described base station if it is consistent with the identification information of the local Dynamic Host Configuration Protocol server of presetting to judge the identification information of the Dynamic Host Configuration Protocol server that this message carries, then obtains IP address and other relevant configuration information of carrying in this message after receiving that DHCP provides message.
4. the method for a base station configuration network parameter comprises:
Base station broadcast sends DHCP (DHCP) and finds message;
After Dynamic Host Configuration Protocol server receives this message, reply DHCP to described base station message is provided, wherein carry IP address and other relevant configuration information into described base station assigns;
After described base station receives that described DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message;
Described base station broadcast sends the DHCP request message, wherein carries the identification information that distributes the Dynamic Host Configuration Protocol server of described IP address and other relevant configuration information for it at least;
After the dhcp response message that described Dynamic Host Configuration Protocol server replys is received in described base station, the described IP address that gets access to and other relevant configuration information are configured to as yet on this base station of configuration network parameter not.
5. method as claimed in claim 4 is characterized in that:
Be provided with the identification information of base station and the corresponding relation of IP address and other relevant configuration information in the described Dynamic Host Configuration Protocol server;
The described DHCP that described base station broadcast sends finds to carry in the message identification information of described base station;
After described Dynamic Host Configuration Protocol server receives this message, reply DHCP to described base station message be provided, wherein carry IP address and other relevant configuration information, specifically comprise into described base station assigns:
After described Dynamic Host Configuration Protocol server receives described DHCP discovery message, in described corresponding relation, search corresponding IP address and other relevant configuration information according to the identification information of the described base station of carrying in this message, and this IP address that finds and other relevant configuration information are carried at the described DHCP that replies to described base station provide in the message.
6. as claim 4 or 5 described methods, it is characterized in that:
Be preset with the identification information of this Dynamic Host Configuration Protocol server in the DHCP option 43 of described Dynamic Host Configuration Protocol server, and be preset with the identification information of the Dynamic Host Configuration Protocol server that can be this base station assigns network parameter in the described base station;
Then described Dynamic Host Configuration Protocol server provides the identification information that also carries this Dynamic Host Configuration Protocol server in the message at the DHCP that replys to described base station;
After described base station receives that described DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message, specifically comprise:
Described base station if it is consistent with the identification information of the local Dynamic Host Configuration Protocol server of presetting to judge the identification information of the Dynamic Host Configuration Protocol server that this message carries, then obtains IP address and other relevant configuration information of carrying in this message after receiving that DHCP provides message.
7. method as claimed in claim 4 is characterized in that:
After the dhcp response message that described Dynamic Host Configuration Protocol server replys is received in described base station, the described IP address that gets access to and other relevant configuration information are configured to as yet on this base station of configuration network parameter not, specifically comprise:
After the dhcp response message of described Dynamic Host Configuration Protocol server answer is received in described base station, if judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are identical with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station; If judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are different with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station, and update stored on this base station.
8. as claim 4 or 7 described methods, it is characterized in that described method also comprises:
After the dhcp response message of described Dynamic Host Configuration Protocol server answer is received in described base station, if judge this base station configuration network parameter, judge then whether the described IP address and other relevant configuration information that get access to be identical with IP address and other relevant configured parameters of this base station preservation, if identical, then layoutprocedure finishes; If different, then the described described IP address that gets access to and other relevant configuration information updated stored on this base station, and restart this base station.
9. method as claimed in claim 4 is characterized in that, described method also comprises:
Described base station starts timer respectively when sending described DHCP discovery message and DHCP request message;
If described base station is when corresponding timer expiry, do not receive that still the DHCP that described Dynamic Host Configuration Protocol server is replied provides message or dhcp response message, whether the described DHCP that perhaps receives provides message or dhcp response message mistake, then judge this base station configuration network parameter; If dispose, then initiate configuration network parameter flow process again; If configuration after then obtaining the network parameter of preservation and be configured on this base station success from this base station, is initiated configuration network parameter flow process again; If obtain the network parameter failure of preservation or dispose this network parameter failure, then initiate configuration network parameter flow process again.
10. a base station obtains the system of network parameter, comprising:
The base station is used for broadcast transmission DHCP (DHCP) and finds message; After also being used to receive that DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message;
Dynamic Host Configuration Protocol server after being used to receive described DHCP and finding message, is replied DHCP to described base station message is provided, and wherein carries IP address and other relevant configuration information into described base station assigns.
11. system as claimed in claim 10 is characterized in that:
Be provided with the identification information of base station and the corresponding relation of IP address and other relevant configuration information in the described Dynamic Host Configuration Protocol server;
Described base station is used for finding that at the described DHCP of broadcast transmission message carries the identification information of described base station;
Described Dynamic Host Configuration Protocol server is used for after receiving described DHCP discovery message, in described corresponding relation, search corresponding IP address and other relevant configuration information according to the identification information of the described base station of carrying in this message, and this IP address that finds and other relevant configuration information are carried at the described DHCP that replies to described base station provide in the message.
12., it is characterized in that as claim 10 or 11 described systems:
Be preset with the identification information of this Dynamic Host Configuration Protocol server in the DHCP option 43 of described Dynamic Host Configuration Protocol server, and be preset with the identification information of the Dynamic Host Configuration Protocol server that can be this base station assigns network parameter in the described base station;
Described Dynamic Host Configuration Protocol server also is used for providing message also to carry the identification information of this Dynamic Host Configuration Protocol server at the DHCP that replys to described base station;
Correspondingly, described base station is used for after receiving that DHCP provides message, if it is consistent with the identification information of the local Dynamic Host Configuration Protocol server of presetting to judge the identification information of the Dynamic Host Configuration Protocol server that this message carries, then obtain IP address and other relevant configuration information of carrying in this message.
13. the system of a base station configuration network parameter comprises:
The base station is used for broadcast transmission DHCP (DHCP) and finds message; After also being used to receive that DHCP provides message, obtain IP address and other relevant configuration information of carrying in this message; Also be used for broadcast transmission DHCP request message, wherein carry the identification information that distributes the Dynamic Host Configuration Protocol server of described IP address and other relevant configuration information for it at least; Also be used for after receiving the dhcp response message that described Dynamic Host Configuration Protocol server is replied, the described IP address that gets access to and other relevant configuration information be configured to as yet on this base station of configuration network parameter not;
Dynamic Host Configuration Protocol server after being used to receive described DHCP and finding message, is replied DHCP to described base station message is provided, and wherein carries IP address and other relevant configuration information into described base station assigns; Also be used for after receiving the DHCP request message that carries self identification information, reply the dhcp response message.
14. system as claimed in claim 13 is characterized in that:
Described base station is used for after receiving the dhcp response message that described Dynamic Host Configuration Protocol server is replied, if judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are identical with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station; If judge this base station configuration network parameter not as yet, and the described IP address that gets access to and other relevant configuration information are different with IP address and other relevant configured parameters that preserve this base station, then the described described IP address that gets access to and other relevant configured parameters are configured on this base station, and update stored on this base station.
15., it is characterized in that as claim 13 or 14 described systems:
Described base station also is used for after receiving the dhcp response message that described Dynamic Host Configuration Protocol server is replied, if judge this base station configuration network parameter, be used to also then judge whether the described IP address and other relevant configuration information that get access to be identical with IP address and other relevant configured parameters of this base station preservation, if identical, then layoutprocedure finishes; If different, then are used for the described described IP address that gets access to and other relevant configuration information are updated stored in this base station, and restart this base station.
16. system as claimed in claim 13 is characterized in that:
Described base station also is used for starting timer respectively when sending described DHCP discovery message and DHCP request message;
Described base station also is used for when corresponding timer expiry, do not provide message or dhcp response message if still receive the DHCP that described Dynamic Host Configuration Protocol server is replied, whether the described DHCP that perhaps receives provides message or dhcp response message mistake, then judge this base station configuration network parameter; If dispose, then be used for initiating again configuration network parameter flow process; If configuration, after then being used for obtaining the network parameter of preservation and being configured on this base station success, initiate configuration network parameter flow process again from this base station; If obtain the network parameter failure of preservation or dispose this network parameter failure, then be used for initiating again configuration network parameter flow process.
CN2010105916815A 2010-12-16 2010-12-16 Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station Pending CN102075590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105916815A CN102075590A (en) 2010-12-16 2010-12-16 Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105916815A CN102075590A (en) 2010-12-16 2010-12-16 Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station

Publications (1)

Publication Number Publication Date
CN102075590A true CN102075590A (en) 2011-05-25

Family

ID=44033930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105916815A Pending CN102075590A (en) 2010-12-16 2010-12-16 Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station

Country Status (1)

Country Link
CN (1) CN102075590A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917407A (en) * 2012-10-17 2013-02-06 北京信息科技大学 Wireless resource label packaging method orienting to end-to-end energy consumption management
CN103636167A (en) * 2013-02-07 2014-03-12 华为技术有限公司 Station opening configuration method in base station, base station, and server
CN103973828A (en) * 2013-02-01 2014-08-06 华为技术有限公司 Method and device for acquiring IP (internet protocol) addresses for DHCP (dynamic host configuration protocol) clients
CN104126287A (en) * 2011-12-29 2014-10-29 施耐德电器工业公司 Updating parameters in a network
CN104618943A (en) * 2014-12-29 2015-05-13 上海华为技术有限公司 OMCH (Operation Maintenance Channel) fault treatment method, device and system
CN106851644A (en) * 2015-12-04 2017-06-13 大唐移动通信设备有限公司 A kind of base station access method and system based on cloud framework
CN107395439A (en) * 2017-08-24 2017-11-24 郑州云海信息技术有限公司 A kind of network collocating method, device and controller
CN109068343A (en) * 2018-08-21 2018-12-21 京信通信系统(中国)有限公司 Opening base station method, apparatus, computer storage medium and equipment
CN109347994A (en) * 2018-10-19 2019-02-15 Oppo广东移动通信有限公司 Internet protocol address acquisition methods, device, storage medium and electronic equipment
CN109525685A (en) * 2018-12-27 2019-03-26 南京信息职业技术学院 A kind of IP address distribution method and system
CN112866309A (en) * 2019-11-12 2021-05-28 大唐移动通信设备有限公司 Communication method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7240088B2 (en) * 2002-01-25 2007-07-03 International Business Machines Corporation Node self-start in a decentralized cluster
CN101026819A (en) * 2007-03-28 2007-08-29 中兴通讯股份有限公司 Far end radio frequency unit initiated configuration method based on DHCP protocol
CN101600001A (en) * 2009-06-29 2009-12-09 中兴通讯股份有限公司 Acquisition methods and device based on the configuration information of dynamic host allocation protocol
CN101909285A (en) * 2009-06-03 2010-12-08 中兴通讯股份有限公司 Method and device for transmission self-configuration of self-organizing network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7240088B2 (en) * 2002-01-25 2007-07-03 International Business Machines Corporation Node self-start in a decentralized cluster
CN101026819A (en) * 2007-03-28 2007-08-29 中兴通讯股份有限公司 Far end radio frequency unit initiated configuration method based on DHCP protocol
CN101909285A (en) * 2009-06-03 2010-12-08 中兴通讯股份有限公司 Method and device for transmission self-configuration of self-organizing network
CN101600001A (en) * 2009-06-29 2009-12-09 中兴通讯股份有限公司 Acquisition methods and device based on the configuration information of dynamic host allocation protocol

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104126287A (en) * 2011-12-29 2014-10-29 施耐德电器工业公司 Updating parameters in a network
CN104126287B (en) * 2011-12-29 2017-10-27 施耐德电器工业公司 Update the parameter in network
CN102917407A (en) * 2012-10-17 2013-02-06 北京信息科技大学 Wireless resource label packaging method orienting to end-to-end energy consumption management
CN102917407B (en) * 2012-10-17 2015-03-04 北京信息科技大学 Wireless resource label packaging method orienting to end-to-end energy consumption management
WO2014117615A1 (en) * 2013-02-01 2014-08-07 华为技术有限公司 Method and apparatus for obtaining ip address by dhcp client
US20150334085A1 (en) * 2013-02-01 2015-11-19 Huawei Technologies Co., Ltd. Method and Apparatus for Acquiring IP Address by DHCP Client
CN103973828A (en) * 2013-02-01 2014-08-06 华为技术有限公司 Method and device for acquiring IP (internet protocol) addresses for DHCP (dynamic host configuration protocol) clients
US9736110B2 (en) * 2013-02-01 2017-08-15 Huawei Technologies Co., Ltd. Method and apparatus for acquiring IP address by DHCP client
WO2014121502A1 (en) * 2013-02-07 2014-08-14 华为技术有限公司 Startup configuration method in base station, base station and server
US9838221B2 (en) 2013-02-07 2017-12-05 Huawei Technologies Co., Ltd. Base station deployment configuration method for base station, base station, and server
CN103636167B (en) * 2013-02-07 2017-04-12 华为技术有限公司 Station opening configuration method in base station, base station, and server
CN103636167A (en) * 2013-02-07 2014-03-12 华为技术有限公司 Station opening configuration method in base station, base station, and server
CN104618943A (en) * 2014-12-29 2015-05-13 上海华为技术有限公司 OMCH (Operation Maintenance Channel) fault treatment method, device and system
CN106851644A (en) * 2015-12-04 2017-06-13 大唐移动通信设备有限公司 A kind of base station access method and system based on cloud framework
CN106851644B (en) * 2015-12-04 2019-08-09 大唐移动通信设备有限公司 A kind of base station access method and system based on cloud framework
CN107395439A (en) * 2017-08-24 2017-11-24 郑州云海信息技术有限公司 A kind of network collocating method, device and controller
CN109068343A (en) * 2018-08-21 2018-12-21 京信通信系统(中国)有限公司 Opening base station method, apparatus, computer storage medium and equipment
CN109347994A (en) * 2018-10-19 2019-02-15 Oppo广东移动通信有限公司 Internet protocol address acquisition methods, device, storage medium and electronic equipment
CN109347994B (en) * 2018-10-19 2021-02-09 Oppo广东移动通信有限公司 Internet protocol IP address obtaining method and device, storage medium and electronic equipment
CN109525685A (en) * 2018-12-27 2019-03-26 南京信息职业技术学院 A kind of IP address distribution method and system
CN109525685B (en) * 2018-12-27 2021-12-14 南京信息职业技术学院 IP address allocation method and system
CN112866309A (en) * 2019-11-12 2021-05-28 大唐移动通信设备有限公司 Communication method and device
CN112866309B (en) * 2019-11-12 2022-10-04 大唐移动通信设备有限公司 Communication method and device

Similar Documents

Publication Publication Date Title
CN102075590A (en) Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station
CN108886538B (en) Method and apparatus for configuring M2M device
CN107592209B (en) Method and system for automatically configuring IP address information by multi-network card server
CN101771612B (en) Tunnel establishing method, equipment and network system
CN1985470A (en) System, network entities and computer programs for configuration management of a dynamic host configuration protocol framework
JP6514238B2 (en) Profile management method and server
WO2016145801A1 (en) Base station activation method and device, system and computer storage medium
US20120124242A1 (en) Server and method for testing pxe function of network interface card
US20140341121A1 (en) Method and apparatus for communication between user equipments in wireless communication system
US20120188908A1 (en) Method and apparatus for acquiring network configuration information
CN102695194A (en) Element management system and method and system for self-configuration of eNodeBs
CN102685812A (en) Access point (AP) associated terminal control method, device and system
CN101873320A (en) Client information verification method based on DHCPv6 relay and device thereof
CN100574480C (en) Far end radio frequency unit initiated configuration method based on the DHCP agreement
CN105634805A (en) Method for performing unified configuration on additional equipment by master control equipment under wireless networking environment
CN102025797A (en) Address prefix processing method, device, system and network equipment
US10601824B2 (en) Provision of access to a network
WO2018006684A1 (en) Message processing method and device, and router
CN104023001A (en) Method for AC equipment to forward unauthorized message information
CN106375489B (en) Method and device for processing Media Access Control (MAC) address
CN102523316B (en) A kind of address distribution method and equipment
CN112055341B (en) Networking method, device and equipment of low-power-consumption Bluetooth Mesh network
CN100401846C (en) Method of establishing data transmission bearing
EP3068112B1 (en) System and method for mac address acquisition
CN105530187A (en) Physical address acquiring method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110525