CN104702427A - Method and system for acquiring fault information - Google Patents

Method and system for acquiring fault information Download PDF

Info

Publication number
CN104702427A
CN104702427A CN201310659154.7A CN201310659154A CN104702427A CN 104702427 A CN104702427 A CN 104702427A CN 201310659154 A CN201310659154 A CN 201310659154A CN 104702427 A CN104702427 A CN 104702427A
Authority
CN
China
Prior art keywords
failure
dhcp
host configuration
dynamic host
configuration protocol
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
CN201310659154.7A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310659154.7A priority Critical patent/CN104702427A/en
Publication of CN104702427A publication Critical patent/CN104702427A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a system for acquiring fault information. The method comprises the following steps: sending a DHCP (Dynamic Host Configuration Protocol) request message for requesting allocation of an IP (Internet Protocol) address to a DHCP server by a terminal; receiving a DHCP response DHCP OFFER message returned by the DHCP server, wherein the DHCP OFFER message comprises fault indication information and fault description information; and acquiring the fault indication information and the fault description information. The DHCP OFFER message returned by the DHCP server to the terminal carries specific fault description information, so that specific online fault reasons can be determined rapidly according to the fault description information, and a network administrator is assisted to rapidly solve online faults.

Description

Obtain the method and system of fault message
Technical field
The present invention relates to the communication technology, particularly relate to a kind of method and system obtaining fault message.
Background technology
Along with the development of technology, user obtains the network information by the terminal be connected in the Internet, has been the major way of user's obtaining information.
Terminal is connected in the Internet, need to be configured with IP address in the terminal, DHCP (Dynamic Host Configuration Protocol can be passed through in this IP address, being called for short DHCP) agreement obtains, namely terminal is to Dynamic Host Configuration Protocol server, send IP address request, in the address realm that Dynamic Host Configuration Protocol server is never leased, select an IP address to send to terminal; In addition, if terminal and Dynamic Host Configuration Protocol server be not when the same physics network segment, need to arrange dhcp relay agent (DHCP Relay Agent) between, it can pass-along message to not at the Dynamic Host Configuration Protocol server of same physical subnets, also the message back of Dynamic Host Configuration Protocol server can be given not in the terminal of same physical subnets.
In prior art, when terminal sends IP address request to Dynamic Host Configuration Protocol server, when but normally cannot get IP address, network manager can not determine concrete failure cause, and causing trouble investigation is complicated, and network operation efficiency is low.
Summary of the invention
The invention provides a kind of method and system obtaining fault message, concrete failure cause of reaching the standard grade can be determined fast, the fault and assisted network keeper quick solution is reached the standard grade.
One aspect of the present invention is to provide a kind of method obtaining fault message, comprising:
Terminal sends the DHCP request message being used for request dispatching IP address to dynamic host configuration protocol DHCP server;
Receive the DHCP response DHCP OFFER message that described Dynamic Host Configuration Protocol server returns, described DHCPOFFER message comprises failure indication information and failure-description information;
Obtain described failure indication information and described failure-description information.
Another aspect of the present invention is to provide a kind of terminal and reaches the standard grade fault detection method, comprising:
The DHCP request message for request dispatching IP address that receiving terminal sends;
Return DHCP to described terminal and reply DHCP OFFER message, described DHCP OFFER message comprises failure indication information and failure-description information.
Another aspect of the present invention is to provide a kind of terminal, comprising:
Request message sending module, for sending the DHCP request message being used for request dispatching IP address to dynamic host configuration protocol DHCP server;
Response message receiver module, the DHCP returned for receiving described Dynamic Host Configuration Protocol server replys DHCPOFFER message, and described DHCP OFFER message comprises failure indication information and failure-description information;
Acquisition module, for obtaining described failure indication information and described failure-description information.
Another aspect of the present invention is to provide a kind of Dynamic Host Configuration Protocol server, comprising:
Request message receiver module, for the DHCP request message for request dispatching IP address that receiving terminal sends;
Response message sending module, reply DHCP OFFER message for returning DHCP to described terminal, described DHCP OFFER message comprises failure indication information and failure-description information.
Another aspect of the present invention is to provide a kind of system obtaining fault message, comprises described terminal and described Dynamic Host Configuration Protocol server.
The method and system of acquisition fault message provided by the invention, concrete failure-description information is carried in the DHCP OFFER message that Dynamic Host Configuration Protocol server returns to terminal, concrete failure cause of reaching the standard grade can be determined fast, the fault and assisted network keeper quick solution is reached the standard grade according to failure-description information.
Accompanying drawing explanation
The method flow diagram of the acquisition fault message that Fig. 1 provides for the embodiment of the present invention one;
The network topological diagram that the method for the acquisition fault message that Fig. 2 provides for the embodiment of the present invention one is suitable for;
The method flow diagram of the acquisition fault message that Fig. 3 provides for the embodiment of the present invention four;
The method flow diagram of the acquisition fault message that Fig. 4 provides for the embodiment of the present invention five;
The method flow diagram of the acquisition fault message that Fig. 5 provides for the embodiment of the present invention seven;
The structure chart of a kind of terminal that Fig. 6 provides for the embodiment of the present invention eight;
The structure chart of a kind of terminal that Fig. 7 provides for the embodiment of the present invention nine;
The structure chart of a kind of Dynamic Host Configuration Protocol server that Fig. 8 provides for the embodiment of the present invention ten;
The structure chart of the system of the acquisition fault message that Fig. 9 provides for the embodiment of the present invention 11.
Embodiment
Embodiment one
The method flow diagram of the acquisition fault message that Fig. 1 provides for the embodiment of the present invention one.The embodiment of the present invention is applicable to fault detect during alignment dynamic host configuration protocol DHCP server request distributing IP address in terminal, as shown in Figure 2, when terminal 20 reaches the standard grade request dispatching IP address, broadcast a DHCP DISCOVER to Access Network to wrap, wrap backward Dynamic Host Configuration Protocol server 22 and forward DHCP DISCOVER when dhcp relay agent 21 listens to DHCP DISCOVER and wrap, or do not forwarded by dhcp relay agent 21 and directly receive DHCP DISCOVER by Dynamic Host Configuration Protocol server 22 and wrap; It is mutual that information during Dynamic Host Configuration Protocol server 22 wraps according to DHCP DISCOVER and certificate server 23 carry out certification, after certification by certificate server 23, in the address realm that Dynamic Host Configuration Protocol server 22 is never leased, select an IP address encapsulation in DHCP OFFER message, and DHCP OFFER message is sent to dhcp relay agent 21, by dhcp relay agent 21, DHCP OFFER message is sent to terminal 20.In the process of terminal request distributing IP address, there will be fault causes terminal to obtain the failure of IP address, its failure cause includes but not limited to: the network failure between terminal and Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server equipment fault, network failure between Dynamic Host Configuration Protocol server and certificate server, certificate server equipment fault, user name authentication error or cipher authentication mistake, network access server port numbers (NAS-port-ID) authentication error and Dynamic Host Configuration Protocol server address pool runs out of resource sets, and concrete process fault detection is as follows:
Step 101, terminal send the DHCP request message being used for request dispatching IP address to dynamic host configuration protocol DHCP server;
After terminal is reached the standard grade, to dynamic host configuration protocol DHCP server or the DHCP request message being used for request dispatching IP address by dhcp relay agent to Dynamic Host Configuration Protocol server transmission, DHCP request message can be specifically DHCP DISCOVER message, includes user name, password and terminal positional information in described DHCP DISCOVER message.
Step 102, receive the DHCP that described Dynamic Host Configuration Protocol server returns and reply DHCP OFFER message, described DHCP OFFER message comprises failure indication information and failure-description information.
It is mutual that Dynamic Host Configuration Protocol server carries out certification according to the DHCP request message received and certificate server, if there is fault in verification process, then Dynamic Host Configuration Protocol server returns DHCP based on the fault occurred to terminal and replys DHCP OFFER message, and described DHCP OFFER message comprises failure indication information and failure-description information.
Step 103, obtain described failure indication information and described failure-description information.
Described failure indication information in terminal acquisition DHCP OFFER message and described failure-description information, described failure indication information is used to indicate terminal and there occurs fault of reaching the standard grade, and described failure-description information is for describing concrete failure cause of reaching the standard grade.
Carry concrete failure-description information in the DHCP OFFER message that the embodiment of the present invention returns to terminal at Dynamic Host Configuration Protocol server, concrete failure cause of reaching the standard grade can be determined fast, the fault and assisted network keeper quick solution is reached the standard grade according to failure-description information.
Embodiment two
On the basis of embodiment one, described failure indication information is client Internet protocol address (Client IP Address in described DHCP OFFER message, be called for short Ciaddr) information set in field, the upper line process that described failure indication information is used to indicate described terminal breaks down.
Dynamic Host Configuration Protocol server receives the DHCP request message of terminal transmission as after DHCP DISCOVER message, user authentication is carried out according to the information in DHCP DISCOVER message and certificate server, if certification is passed through, in the address realm that Dynamic Host Configuration Protocol server is never leased, select an IP address encapsulation in the response message, described response message can be specifically DHCP OFFER message, and DHCP OFFER message is sent to terminal by dhcp relay agent; If certification is broken down, the IP address that Dynamic Host Configuration Protocol server distributes to terminal becomes 0.0.0.0, namely in DHCP OFFER message, Ciaddr field is set to 0.0.0.0, and 0.0.0.0 indicates the upper line process of described terminal to break down as described failure indication information.
The embodiment of the present invention indicates the upper line process of described terminal to there occurs fault by Ciaddr field in DHCP OFFER message is set to 0.0.0.0, thus identifies the fault of reaching the standard grade occurred fast.
Embodiment three
On the basis of above-described embodiment, described failure-description information is the information for describing fault type or failure cause, and described failure-description information is arranged in the Error Text field that newly-increased option 62Option62 that described DHCP OFFER message carries comprises.Described newly-increased Option62 comprises header fields for identifying described newly-increased Option62, for identifying the length field of follow-up described Error Text field length and described Error Text field.Described failure-description information be following any one: for representing the descriptor of user name mistake or code error; For representing the descriptor of network access server port numbers NAS-port-ID mistake; For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server; For representing the descriptor of certification time-out, described certification time-out comprises: the network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
The response message that the embodiment of the present invention returns at Dynamic Host Configuration Protocol server as DHCP OFFER message in increased Option62 field newly, the structure of Option62 field is as table 1:
Table 1
As shown in table 1, " Code " field fixed value is hexadecimal OX3E or the decimal system 62, and for illustration of being Option62 field from this field, namely " Code " field is for identifying the header fields of described newly-increased Option62; " Len " field represents follow-up Error Text " Error Text " field length, and minimum value is 1 byte; " Error Text " is Error Text field, the failure-description information in concrete mark DHCP OFFER message, and for describing fault type or failure cause, each failure-description information is identified by different ASCII character, described failure-description information be following any one:
For representing the descriptor of user name mistake or code error, information in DHCPDISCOVER message is sent to certificate server by Dynamic Host Configuration Protocol server, the user name stored in certificate server when being registered according to user by certificate server, password carry out certification, after authentification failure, user name error message or code error information are returned to Dynamic Host Configuration Protocol server by certificate server, are write in " Error Text " field of Option62 in DHCP OFFER message by Dynamic Host Configuration Protocol server.
For representing the descriptor of network access server port numbers NAS-port-ID mistake, information in DHCP DISCOVER message is sent to certificate server by Dynamic Host Configuration Protocol server, the Option82 information stored in certificate server when being registered according to user by certificate server carries out certification, after authentification failure, NAS-port-ID error message is returned to Dynamic Host Configuration Protocol server by certificate server, is write in " Error Text " field of Option62 in DHCP OFFER message by Dynamic Host Configuration Protocol server.
For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server, after certificate server passes through user authentication, Dynamic Host Configuration Protocol server does not but have IP address assignment that can be for rent to be produced by Dynamic Host Configuration Protocol server to during terminal, and is recorded in " Error Text " field.
For representing the descriptor of certification time-out, Dynamic Host Configuration Protocol server produces when not receiving the response of certificate server after waiting for predetermined time, causes the reason of certification time-out to comprise: the network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
The embodiment of the present invention specifically illustrates the fault of reaching the standard grade of user name mistake or code error, NAS-port-ID mistake, address pool runs out of resource sets and certification time-out, can determine concrete failure cause by failure-description information.
Embodiment four
The method flow diagram of the acquisition fault message that Fig. 3 provides for the embodiment of the present invention four.As shown in Figure 3, on the basis of above-described embodiment, the described failure indication information of described acquisition and described failure-description information comprise:
Step 103a, obtain described failure indication information;
Step 103b, after determining that according to described failure indication information the upper line process of described terminal breaks down, obtain described failure-description information;
The method of described acquisition fault message also comprises:
Step 104, according to described failure-description information determination failure cause.
Terminal receives DHCP OFFER message, obtain described failure indication information and described failure-description information, determine that described terminal there occurs fault in upper line process according to described failure indication information, obtain described failure-description information, and determine concrete failure cause according to described failure-description information.
Terminal in the embodiment of the present invention can determine concrete failure cause according to failure-description information, improves the locating speed of the procedure fault reason of reaching the standard grade of terminal.
Embodiment five
The method flow diagram of the acquisition fault message that Fig. 4 provides for the embodiment of the present invention five.As shown in Figure 4, Dynamic Host Configuration Protocol server if can not be successfully described terminal distribution IP address, then returns DHCP OFFER message to described terminal after receiving the DHCP request message sent after terminal is reached the standard grade, for described terminal determination failure cause, concrete steps are as follows:
The DHCP request message for request dispatching IP address that step 401, receiving terminal send;
Step 402, to return DHCP reply DHCP OFFER message to described terminal, described DHCP OFFER message comprises failure indication information and failure-description information.
The DHCP request message for request dispatching IP address that Dynamic Host Configuration Protocol server receiving terminal sends is as after DHCP DISCOVER message, if can not be successfully described terminal distribution IP address, then return DHCP OFFER message to described terminal, described DHCP OFFER message comprises the failure indication information being used to indicate fault of reaching the standard grade, and for describing the failure-description information of failure cause.
Carry concrete failure-description information in the DHCP OFFER message that the embodiment of the present invention returns to terminal at Dynamic Host Configuration Protocol server, concrete failure cause of reaching the standard grade can be determined fast, the fault and assisted network keeper quick solution is reached the standard grade according to failure-description information.
Embodiment six
On the basis of embodiment five, described failure indication information is information set in Ciaddr field in described DHCP OFFER message, and the upper line process that described failure indication information is used to indicate described terminal breaks down.Described failure-description information is the information for describing fault type or failure cause, and described failure-description information is arranged in the Error Text field that newly-increased option 62Option62 that described DHCP OFFER message carries comprises.Described newly-increased Option62 comprises header fields for identifying described newly-increased Option62, for identifying the length field of follow-up described Error Text field length and described Error Text field.Described failure-description information be following any one: for representing the descriptor of user name mistake or code error; For representing the descriptor of network access server port numbers NAS-port-ID mistake; For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server; For representing the descriptor of certification time-out, described certification time-out comprises: the network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
Dynamic Host Configuration Protocol server receives the DHCP request message of terminal transmission as after DHCP DISCOVER message, user authentication is carried out according to the information in DHCP DISCOVER message and certificate server, if certification is passed through, in the address realm that Dynamic Host Configuration Protocol server is never leased, select an IP address encapsulation in the response message, described response message can be specifically DHCP OFFER message, and DHCP OFFER message is sent to terminal by dhcp relay agent; If certification is broken down, the IP address that Dynamic Host Configuration Protocol server distributes to terminal becomes 0.0.0.0, namely in DHCP OFFER message, Ciaddr field is set to 0.0.0.0, and the upper line process that 0.0.0.0 is used to indicate described terminal as described failure indication information breaks down.
The structure of Option62 field newly-increased in DHCP OFFER message is as shown in table 1, comprises " Code " field for identifying described newly-increased Option62 header fields, for identifying " Len " field and described Error Text field " Error Text " field of subsequent error the text field " Error Text " field length.
Described failure-description information be following any one:
For representing the descriptor of user name mistake or code error, information in DHCPDISCOVER message is sent to certificate server by Dynamic Host Configuration Protocol server, the user name stored in certificate server when being registered according to user by certificate server, password carry out certification, after authentification failure, user name error message or code error information are returned to Dynamic Host Configuration Protocol server by certificate server, are write in " Error Text " field of Option62 in DHCP OFFER message by Dynamic Host Configuration Protocol server.
For representing the descriptor of network access server port numbers NAS-port-ID mistake, information in DHCP DISCOVER message is sent to certificate server by Dynamic Host Configuration Protocol server, the Option82 information stored in certificate server when being registered according to user by certificate server carries out certification, after authentification failure, NAS-port-ID error message is returned to Dynamic Host Configuration Protocol server by certificate server, is write in " Error Text " field of Option62 in DHCP OFFER message by Dynamic Host Configuration Protocol server.
For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server, after certificate server passes through user authentication, Dynamic Host Configuration Protocol server does not have IP address assignment that can be for rent to be produced by Dynamic Host Configuration Protocol server to during terminal, and is recorded in " Error Text " field.
For representing the descriptor of certification time-out, Dynamic Host Configuration Protocol server produces when not receiving the response of certificate server after waiting for predetermined time value, causes the reason of certification time-out to comprise: the network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
The embodiment of the present invention indicates the upper line process of described terminal to there occurs fault by Ciaddr field in DHCP OFFER message is set to 0.0.0.0, identifies fault of reaching the standard grade fast, determines concrete failure cause additionally by failure-description information.
Embodiment seven
The method flow diagram of the acquisition fault message that Fig. 5 provides for the embodiment of the present invention seven.As shown in Figure 5, the method concrete steps of acquisition fault message that provide of the present embodiment are as follows:
Step 501, terminal initiate DHCP request, but cannot normally obtain IP address;
After terminal is reached the standard grade, after Dynamic Host Configuration Protocol server sends DHCP DISCOVER message, normally do not get IP address;
Step 502, judging whether to receive DHCP OFFER message, is perform step 503, otherwise performs step 505;
Terminal checks the DHCP OFFER message whether receiving Dynamic Host Configuration Protocol server and send in the recorded information of this locality;
Step 503, determine fault of reaching the standard grade;
If terminal determines the DHCP OFFER message that have received Dynamic Host Configuration Protocol server transmission in the recorded information of this locality, then determine to there occurs fault of reaching the standard grade;
Step 504, the Option62 field checked in DHCP OFFER message;
Terminal is known and be there occurs fault of reaching the standard grade, and checks the Option62 field of carrying in DHCP OFFER message, and according to " Error Text " field in Option62, obtains concrete failure cause of reaching the standard grade;
Step 505, determine network failure or Dynamic Host Configuration Protocol server equipment fault between terminal and described Dynamic Host Configuration Protocol server;
If terminal does not receive the DHCP OFFER message that Dynamic Host Configuration Protocol server sends in the recorded information of this locality, namely the DHCP DISCOVER message that terminal sends is not received by Dynamic Host Configuration Protocol server, then determine that between terminal and described Dynamic Host Configuration Protocol server, network failure or Dynamic Host Configuration Protocol server equipment break down;
Step 506, informing network keeper split fix;
After determining between terminal and described Dynamic Host Configuration Protocol server network failure or Dynamic Host Configuration Protocol server equipment fault, informing network keeper carries out concrete fault location to the segmentation between terminal and described Dynamic Host Configuration Protocol server or Dynamic Host Configuration Protocol server equipment;
Step 507, other assist location means;
Network manager can also in conjunction with the error message localizing faults reason recorded in dhcp relay agent;
Step 508, navigate to concrete failure cause;
Network manager orients concrete failure cause according to the result of above-mentioned steps 504, step 506 and step 507.
Whether the present embodiment receives according to terminal the DHCP OFFER message that Dynamic Host Configuration Protocol server returns judges whether to occur network failure, if do not receive DHCP OFFER message, determines network failure to occur, informing network keeper split fix; If receive DHCP OFFER message, then determine concrete failure cause of reaching the standard grade according to the Option62 field in DHCP OFFER message, achieve the quick position to fault, and assisted network keeper quick solution fault.
Embodiment eight
The structure chart of a kind of terminal that Fig. 6 provides for the embodiment of the present invention eight.As shown in Figure 6, a kind of terminal 60 that the present embodiment provides comprises request message sending module 61, response message receiver module 62 and acquisition module 63; Wherein request message sending module 61 is for sending the DHCP request message being used for request dispatching IP address to dynamic host configuration protocol DHCP server; The DHCP response DHCP OFFER message that response message receiver module 62 returns for receiving described Dynamic Host Configuration Protocol server, described DHCP OFFER message comprises failure indication information and failure-description information; Acquisition module 63 is for obtaining described failure indication information and described failure-description information.
It is information set in Ciaddr field in described DHCP OFFER message that wherein said response message receiver module 62 receives the failure indication information that DHCPOFFER message that described Dynamic Host Configuration Protocol server returns comprises, and the upper line process that described failure indication information is used to indicate described terminal breaks down.
It is information for describing fault type or failure cause that described response message receiver module 62 receives described failure-description information that DHCP OFFER message that described Dynamic Host Configuration Protocol server returns comprises, and described failure-description information is arranged in the Error Text field that newly-increased option 62Option62 that described DHCP OFFER message carries comprises.
Described newly-increased Option62 comprises header fields for identifying described newly-increased Option62, for identifying the length field of follow-up described Error Text field length and described Error Text field.
Described response message receiver module 62 receive failure-description information that DHCP OFFER message that described Dynamic Host Configuration Protocol server returns comprises be following any one: for representing the descriptor of user name mistake or code error; For representing the descriptor of network access server port numbers NAS-port-ID mistake; For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server; For representing the descriptor of certification time-out, described certification time-out comprises: the network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
The embodiment of the present invention indicates the upper line process of described terminal to there occurs fault by Ciaddr field in DHCP OFFER message is set to 0.0.0.0, identifies the fault of reaching the standard grade occurred fast, can determine concrete failure cause additionally by failure-description information.
Embodiment nine
The structure chart of a kind of terminal that Fig. 7 provides for the embodiment of the present invention nine.On the basis of embodiment eight, described acquisition module 63 is specifically for obtaining described failure indication information; After determining that according to described failure indication information the upper line process of described terminal breaks down, obtain described failure-description information.
Described terminal 60 also comprises fault determination module 64, for according to described failure-description information determination failure cause.
Terminal in the embodiment of the present invention can determine concrete failure cause according to failure-description information, improves the locating speed of the procedure fault reason of reaching the standard grade of terminal.Embodiment ten
The structure chart of a kind of Dynamic Host Configuration Protocol server that Fig. 8 provides for the embodiment of the present invention ten.As shown in Figure 8, the Dynamic Host Configuration Protocol server 80 that the present embodiment provides comprises request message receiver module 81 and response message sending module 82; Wherein, the DHCP request message for request dispatching IP address that sends for receiving terminal of request message receiver module 81; Response message sending module 82 replys DHCP OFFER message for returning DHCP to described terminal, and described DHCP OFFER message comprises failure indication information and failure-description information.
Wherein, the failure indication information included by DHCP OFFER message that response message sending module 82 returns is information set in Ciaddr field in described DHCP OFFER message, and the upper line process that described failure indication information is used to indicate described terminal breaks down.The failure-description information included by DHCP OFFER message that described response message sending module 82 returns is the information for describing fault type or failure cause, and described failure-description information is arranged in the Error Text field that newly-increased option 62Option62 that described DHCP OFFER message carries comprises.
Described newly-increased Option62 comprises header fields for identifying described newly-increased Option62, for identifying the length field of follow-up described Error Text field length and described Error Text field.
The failure-description information included by DHCP OFFER message that response message sending module 82 returns be following any one: for representing the descriptor of user name mistake or code error; For representing the descriptor of NAS-port-ID mistake; For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server; For representing the descriptor of certification time-out, described certification time-out comprises: the network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
The embodiment of the present invention carries concrete failure-description information by the DHCP OFFER message that returns to terminal at Dynamic Host Configuration Protocol server, concrete failure cause of reaching the standard grade can be determined fast, the fault and assisted network keeper quick solution is reached the standard grade according to failure-description information.
Embodiment 11
The structure chart of the system of the acquisition fault message that Fig. 9 provides for the embodiment of the present invention 11.As shown in Figure 9, the system 90 of acquisition fault message that the embodiment of the present invention provides comprises above-described embodiment eight or the terminal described in embodiment nine 60 and the Dynamic Host Configuration Protocol server described in embodiment ten 80.Wherein, terminal 60 is used for the DHCP request message of request dispatching IP address for sending to Dynamic Host Configuration Protocol server 80, and receives the DHCP OFFER message that Dynamic Host Configuration Protocol server 80 returns; And know according to the failure indication information that described DHCP OFFER message comprises fault of reaching the standard grade, by obtaining the failure-description information that described DHCP OFFER message comprises, determine failure cause.The DHCP request message for request dispatching IP address that Dynamic Host Configuration Protocol server 80 sends for receiving terminal 60, when not being successfully described terminal 60 distributing IP address, DHCP OFFER message is returned to described terminal 60, described DHCP OFFER message comprises the failure indication information being used to indicate fault of reaching the standard grade, and for describing the failure-description information of failure cause, determine failure cause for described terminal 60.
The present embodiment can realize the method for acquisition fault message provided by the invention by the system of the acquisition fault message be made up of terminal and Dynamic Host Configuration Protocol server.
In sum, when the present invention is broken down in terminal request IP address process, whether receive according to terminal the DHCP OFFER message that Dynamic Host Configuration Protocol server returns to judge whether to occur network failure, if do not receive DHCP OFFER message, determine network failure to occur, informing network keeper split fix; If receive DHCP OFFER message, then determine concrete failure cause of reaching the standard grade according to the failure-description information in DHCP OFFER message, thus achieve the quick position to fault, and assisted network keeper quick solution fault.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (23)

1. obtain a method for fault message, it is characterized in that, comprising:
Terminal sends the DHCP request message being used for request dispatching IP address to dynamic host configuration protocol DHCP server;
Receive the DHCP response DHCP OFFER message that described Dynamic Host Configuration Protocol server returns, described DHCPOFFER message comprises failure indication information and failure-description information;
Obtain described failure indication information and described failure-description information.
2. method according to claim 1, is characterized in that, described failure indication information is information set in Ciaddr field in described DHCP OFFER message, and the upper line process that described failure indication information is used to indicate described terminal breaks down.
3. method according to claim 2, it is characterized in that, described failure-description information is the information for describing fault type or failure cause, and described failure-description information is arranged in the Error Text field that newly-increased option 62Option62 that described DHCPOFFER message carries comprises.
4. method according to claim 3, is characterized in that, described newly-increased Option62 comprises header fields for identifying described newly-increased Option62, for identifying the length field of follow-up described Error Text field length and described Error Text field.
5. the method according to any one of claim 1-4, is characterized in that, described failure-description information be following any one:
For representing the descriptor of user name mistake or code error;
For representing the descriptor of network access server port numbers NAS-port-ID mistake;
For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server;
For representing the descriptor of certification time-out, described certification time-out comprises:
Network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
6. the method according to any one of claim 1-5, is characterized in that,
The described failure indication information of described acquisition and described failure-description information comprise:
Obtain described failure indication information;
After determining that according to described failure indication information the upper line process of described terminal breaks down, obtain described failure-description information;
The method of described acquisition fault message also comprises:
According to described failure-description information determination failure cause.
7. obtain a method for fault message, it is characterized in that, comprising:
The DHCP request message for request dispatching IP address that receiving terminal sends;
Return DHCP to described terminal and reply DHCP OFFER message, described DHCP OFFER message comprises failure indication information and failure-description information.
8. method according to claim 7, is characterized in that, described failure indication information is information set in Ciaddr field in described DHCP OFFER message, and the upper line process that described failure indication information is used to indicate described terminal breaks down.
9. method according to claim 8, it is characterized in that, described failure-description information is the information for describing fault type or failure cause, and described failure-description information is arranged in the Error Text field that newly-increased option 62Option62 that described DHCPOFFER message carries comprises.
10. method according to claim 9, it is characterized in that, described newly-increased Option62 comprises header fields for identifying described newly-increased Option62, for identifying the length field of follow-up described Error Text field length and described Error Text field.
11. methods according to any one of claim 7-10, is characterized in that, described failure-description information be following any one:
For representing the descriptor of user name mistake or code error;
For representing the descriptor of network access server port numbers NAS-port-ID mistake;
For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server;
For representing the descriptor of certification time-out, described certification time-out comprises:
Network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
12. 1 kinds of terminals, is characterized in that, comprising:
Request message sending module, for sending the DHCP request message being used for request dispatching IP address to dynamic host configuration protocol DHCP server;
Response message receiver module, the DHCP returned for receiving described Dynamic Host Configuration Protocol server replys DHCPOFFER message, and described DHCP OFFER message comprises failure indication information and failure-description information;
Acquisition module, for obtaining described failure indication information and described failure-description information.
13. terminals according to claim 12, is characterized in that, described failure indication information is information set in Ciaddr field in described DHCP OFFER message, and the upper line process that described failure indication information is used to indicate described terminal breaks down.
14. terminals according to claim 13, it is characterized in that, described failure-description information is the information for describing fault type or failure cause, and described failure-description information is arranged in the Error Text field that newly-increased option 62Option62 that described DHCPOFFER message carries comprises.
15. terminals according to claim 14, it is characterized in that, described newly-increased Option62 comprises header fields for identifying described newly-increased Option62, for identifying the length field of follow-up described Error Text field length and described Error Text field.
16. terminals according to any one of claim 15, is characterized in that, described failure-description information be following any one:
For representing the descriptor of user name mistake or code error;
For representing the descriptor of network access server port numbers NAS-port-ID mistake;
For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server;
For representing the descriptor of certification time-out, described certification time-out comprises:
Network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
17. terminals according to any one of claim 12-16, it is characterized in that, described acquisition module is specifically for obtaining described failure indication information; After determining that according to described failure indication information the upper line process of described terminal breaks down, obtain described failure-description information; Described terminal also comprises fault determination module, for according to described failure-description information determination failure cause.
18. 1 kinds of Dynamic Host Configuration Protocol server, is characterized in that, comprising:
Request message receiver module, for the DHCP request message for request dispatching IP address that receiving terminal sends;
Response message sending module, reply DHCP OFFER message for returning DHCP to described terminal, described DHCP OFFER message comprises failure indication information and failure-description information.
19. Dynamic Host Configuration Protocol server according to claim 18, it is characterized in that, described failure indication information is information set in Ciaddr field in described DHCP OFFER message, and the upper line process that described failure indication information is used to indicate described terminal breaks down.
20. Dynamic Host Configuration Protocol server according to claim 19, it is characterized in that, described failure-description information is the information for describing fault type or failure cause, and described failure-description information is arranged in the Error Text field that newly-increased option 62Option62 that described DHCP OFFER message carries comprises.
21. Dynamic Host Configuration Protocol server according to claim 20, it is characterized in that, described newly-increased Option62 comprises header fields for identifying described newly-increased Option62, for identifying the length field of follow-up described Error Text field length and described Error Text field.
22. Dynamic Host Configuration Protocol server according to any one of claim 18-21, is characterized in that, described failure-description information be following any one:
For representing the descriptor of user name mistake or code error;
For representing the descriptor of network access server port numbers NAS-port-ID mistake;
For representing the descriptor of the address pool runs out of resource sets of described Dynamic Host Configuration Protocol server;
For representing the descriptor of certification time-out, described certification time-out comprises:
Network failure between described Dynamic Host Configuration Protocol server and certificate server causes the equipment fault of certification time-out or certificate server to cause certification time-out.
23. 1 kinds of systems obtaining fault message, is characterized in that, comprise the terminal as described in any one of claim 12-17, and the Dynamic Host Configuration Protocol server as described in any one of claim 18-22.
CN201310659154.7A 2013-12-06 2013-12-06 Method and system for acquiring fault information Pending CN104702427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310659154.7A CN104702427A (en) 2013-12-06 2013-12-06 Method and system for acquiring fault information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310659154.7A CN104702427A (en) 2013-12-06 2013-12-06 Method and system for acquiring fault information

Publications (1)

Publication Number Publication Date
CN104702427A true CN104702427A (en) 2015-06-10

Family

ID=53349220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310659154.7A Pending CN104702427A (en) 2013-12-06 2013-12-06 Method and system for acquiring fault information

Country Status (1)

Country Link
CN (1) CN104702427A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499409A (en) * 2022-09-29 2022-12-20 阿里巴巴(中国)有限公司 NAT gateway, server and network system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206597A1 (en) * 2005-02-16 2006-09-14 Lg Electronics Inc. Method of allocating an internet protocol address in a broadband wireless access system
CN101370018A (en) * 2008-09-25 2009-02-18 华为技术有限公司 DHCP authentication method, apparatus and system
CN101437021A (en) * 2007-11-16 2009-05-20 华为技术有限公司 Method, system and apparatus for processing access prompt information
CN102685264A (en) * 2012-05-08 2012-09-19 北京星网锐捷网络技术有限公司 Dynamic host configuration protocol address allocation method, relay equipment and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206597A1 (en) * 2005-02-16 2006-09-14 Lg Electronics Inc. Method of allocating an internet protocol address in a broadband wireless access system
CN101437021A (en) * 2007-11-16 2009-05-20 华为技术有限公司 Method, system and apparatus for processing access prompt information
CN101370018A (en) * 2008-09-25 2009-02-18 华为技术有限公司 DHCP authentication method, apparatus and system
CN102685264A (en) * 2012-05-08 2012-09-19 北京星网锐捷网络技术有限公司 Dynamic host configuration protocol address allocation method, relay equipment and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499409A (en) * 2022-09-29 2022-12-20 阿里巴巴(中国)有限公司 NAT gateway, server and network system

Similar Documents

Publication Publication Date Title
EP3013086B1 (en) Method, apparatus and electronic device for connection management
CN104144419B (en) Identity authentication method, device and system
TWI735429B (en) Authentication method, device, system and electronic equipment for client login server end
CN106411878B (en) Method, device and system for making access control strategy
US20070274274A1 (en) Open wireless access point detection and identification
CN110830442A (en) Message processing method, device and gateway
CN103023727B (en) Portal Performance Test System and method
CN102413044A (en) Method, device, equipment and system for generating DHCP (Dynamic Host Configuration Protocol) Snooping binding table
CN111182537A (en) Network access method, device and system for mobile application
CN110619022B (en) Node detection method, device, equipment and storage medium based on block chain network
CN106878280B (en) User authentication method and device, and method and device for acquiring user number information
CN105592459A (en) Security authentication device based on wireless communication
US10200864B2 (en) Method and device for managing wireless access point
CN107547221B (en) Method and equipment for providing log information
CN104702427A (en) Method and system for acquiring fault information
CN110943962B (en) Authentication method, network equipment, authentication server and forwarding equipment
WO2017024762A1 (en) Method and equipment for distinguishing homonymic wireless access points
CN115643297A (en) Link establishment method and device, nonvolatile storage medium and computer equipment
CN107483294B (en) Method and device for monitoring network request
CN108513272A (en) Method for processing short messages and device
CN105163335B (en) A kind of network access management method, server, mobile terminal and system
CN112039882B (en) Message transmission processing method, system, device and storage medium
CN116489123A (en) Industrial Internet identification-based processing method and device
CN110636114B (en) Customer service access method, access system, service system and cloud platform
CN112367413A (en) Method for embedding MAC address into DHCPv6 stateful address allocation

Legal Events

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

Application publication date: 20150610

RJ01 Rejection of invention patent application after publication